feat(agent): implement phase 2 runtime and inline clarification

This commit is contained in:
2026-04-09 14:28:27 +02:00
parent b08e448be0
commit 29c93eeb35
18 changed files with 2376 additions and 5 deletions

View File

@@ -180,6 +180,26 @@ describe("canvas connection policy", () => {
).toBeNull();
});
it("allows agent to agent-output", () => {
expect(
validateCanvasConnectionPolicy({
sourceType: "agent",
targetType: "agent-output",
targetIncomingCount: 0,
}),
).toBeNull();
});
it("blocks non-agent sources to agent-output", () => {
expect(
validateCanvasConnectionPolicy({
sourceType: "text",
targetType: "agent-output",
targetIncomingCount: 0,
}),
).toBe("agent-output-source-invalid");
});
it("blocks prompt to agent", () => {
expect(
validateCanvasConnectionPolicy({
@@ -197,4 +217,10 @@ describe("canvas connection policy", () => {
"Agent-Nodes akzeptieren nur Content- und Kontext-Inputs, keine Generierungs-Steuerknoten wie Prompt.",
);
});
it("describes invalid agent-output source message", () => {
expect(
getCanvasConnectionValidationMessage("agent-output-source-invalid"),
).toBe("Agent-Ausgabe akzeptiert nur Eingaben von Agent-Nodes.");
});
});