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:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user