// GET /cms/admin/workflow — the editorial pipeline's DAG structure, for the // Svelte Flow visual editor (nodes + edges). Mirrors the [[workflows]] manifest. import "auth" as auth; let g = auth::guard(ctx, ["admin", "author"]); if !g.ok { return g.response; } #{ statusCode: 200, body: #{ name: "editorial_pipeline", steps: [ #{ name: "validate", label: "Validate content", depends_on: [] }, #{ name: "enrich", label: "Auto-excerpt + reading time", depends_on: ["validate"], when: "validate ok" }, #{ name: "seo", label: "SEO check", depends_on: ["validate"], when: "validate ok" }, #{ name: "publish", label: "Publish + notify readers", depends_on: ["enrich", "seo"], when: "validate ok" }, #{ name: "finalize", label: "Finalize run", depends_on: ["publish"] }, ] } }