@agen-ai/agent-orchestration 0.4.2 → 0.4.3

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.
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @agen-ai/agent-orchestration
2
2
 
3
3
  Optional managed delegation for applications using the AgenAI coding-agent SDK, at coordinated
4
- unpublished source version `0.4.2` (published `0.4.1`). This package sits above
4
+ release version `0.4.3`. This package sits above
5
5
  `@agen-ai/agent-runtime`. Core runtime consumers do not depend on it. Current source uses Agent
6
6
  Protocol V12; published `0.4.1` uses V11 and the earlier `0.4.0` release uses V10. Managed store
7
7
  contract is 4; the reference SQLite format remains 3; retained historical requests cannot reconstruct live reply authority.
@@ -85,6 +85,9 @@ async function pump(state) {
85
85
  executionReleased: false,
86
86
  schedule: () => schedule(state)
87
87
  };
88
+ live.lifetime.signal.addEventListener("abort", () => {
89
+ for (const presentation of live.requestPresentations.values()) presentation.abort.abort(live.lifetime.signal.reason);
90
+ }, { once: true });
88
91
  try {
89
92
  assertRunDispatch(state, live, run.admittedPolicyRevision, run.admittedOriginPolicyRevision);
90
93
  if (!await dispatchIntent(state, live, "prepare")) continue;
@@ -39,12 +39,13 @@ async function routeRequest(state, live, request) {
39
39
  await markRequest(state, live, "opened", historical);
40
40
  const handle = Object.freeze({});
41
41
  const presentationAbort = new AbortController();
42
+ if (live.lifetime.signal.aborted) presentationAbort.abort(live.lifetime.signal.reason);
42
43
  const pending = {
43
44
  handle,
44
45
  live,
45
46
  request,
46
47
  history: historical,
47
- signal: AbortSignal.any([presentationAbort.signal, live.lifetime.signal]),
48
+ signal: presentationAbort.signal,
48
49
  eligibility: "waiting"
49
50
  };
50
51
  live.request = pending;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agen-ai/agent-orchestration",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
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.2",
37
- "@agen-ai/validation": "^0.4.2",
38
- "@agen-ai/agent-runtime": "^0.4.2"
36
+ "@agen-ai/agent-protocol": "^0.4.3",
37
+ "@agen-ai/agent-runtime": "^0.4.3",
38
+ "@agen-ai/validation": "^0.4.3"
39
39
  },
40
40
  "devDependencies": {
41
41
  "tsup": "^8.5.0"