Add capability-probed structured outputs and a prototype/instance creation graph.

Probe API profiles for json_schema/tools, flatten worker artifacts onto a strict schema, and let users spawn or revise graph nodes instead of a one-shot DAG.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-31 01:57:22 +08:00
co-authored by Cursor
parent 872f742d3e
commit bd5d88abfa
65 changed files with 7625 additions and 942 deletions
+22
View File
@@ -3,6 +3,7 @@ import {
displayStageLabel,
displayWorkerLabel,
formatWorkerDisplayTitle,
isFlowPlanReview,
reviewComposerCopy,
} from "../src/server/display-labels.js";
@@ -52,4 +53,25 @@ describe("display-labels", () => {
expect(setup.acceptLabel).toBe("选定此开场");
expect(setup.kind).toBe("opening");
});
it("treats design-flow review as the pick-node surface", () => {
expect(
isFlowPlanReview({
waitingReason: { kind: "review_artifact" },
reviewArtifact: { workerId: "design-flow" },
}),
).toBe(true);
expect(
isFlowPlanReview({
waitingReason: { kind: "review_artifact" },
reviewArtifact: { workerId: "design-step" },
}),
).toBe(false);
expect(
isFlowPlanReview({
waitingReason: { kind: "pick_creation_step" },
reviewArtifact: { workerId: "design-flow" },
}),
).toBe(false);
});
});