@agen-ai/agent-orchestration 0.4.3 → 0.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -94,6 +94,9 @@ async function reduceOutput(state, live, output) {
94
94
  await observe(state, live, { kind: "request", request: historical });
95
95
  }
96
96
  } else if (event.type === "turn.completed") {
97
+ if (event.payload.structuredOutput.kind !== "not_requested") {
98
+ throw new Error("Managed delegation does not admit structured final responses.");
99
+ }
97
100
  return { terminal: event.payload.outcome === "completed" ? { kind: "succeeded", result: { text: live.summary, truncated: live.truncated, references: [...live.references] } } : event.payload.outcome === "canceled" ? { kind: "canceled", confirmation: "provider_terminal" } : { kind: "failed", error: projectDelegationFailure(event.payload.error) } };
98
101
  }
99
102
  return {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agen-ai/agent-orchestration",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "private": false,
5
5
  "description": "Optional policy-governed managed delegation for the AgenAI coding-agent runtime.",
6
6
  "type": "module",
@@ -33,9 +33,9 @@
33
33
  "dependencies": {
34
34
  "zod": "4.4.3",
35
35
  "@modelcontextprotocol/sdk": "1.29.0",
36
- "@agen-ai/agent-protocol": "^0.4.3",
37
- "@agen-ai/agent-runtime": "^0.4.3",
38
- "@agen-ai/validation": "^0.4.3"
36
+ "@agen-ai/agent-protocol": "^0.4.5",
37
+ "@agen-ai/validation": "^0.4.5",
38
+ "@agen-ai/agent-runtime": "^0.4.5"
39
39
  },
40
40
  "devDependencies": {
41
41
  "tsup": "^8.5.0"