Release 2.7.0: executable handbooks and native user-site workflows

This commit is contained in:
cflmy committed 2026-11-10 17:03:06 +08:00
1 parent aa0c4d0f55
commit d9aef957f7
562 files changed
+21064 -20387

No files matched your search

@@ -33,7 +33,7 @@ func parseArtifactRoute(v any) artifactRoute {
}
}
func (st *state) mountArtifactRoutes(mux *http.ServeMux) {
func (st *state) mountArtifactRoutes(mux routeRegistrar) {
for _, key := range sortedKeys(st.artifactRoutes) {
cfg := parseArtifactRoute(st.artifactRoutes[key])
if cfg.File == "" || cfg.Path == "" {
@@ -131,7 +131,7 @@ func (st *state) handleArtifact(w http.ResponseWriter, r *http.Request, route ar
}
}
value, err := plugin.RunArtifact(route.File, payload)
value, err := plugin.RunArtifactAtRoot(route.File, payload, st.entryDir)
if err != nil {
jsonErr(w, http.StatusInternalServerError, err.Error())
return