@agentclientprotocol/claude-agent-acp 0.106.1-preview.1 → 0.106.1-preview.11

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.
Files changed (68) hide show
  1. package/README.md +1 -76
  2. package/dist/async-tasks.d.ts +1 -1
  3. package/dist/async-tasks.js +1 -1
  4. package/dist/context-window.d.ts +11 -9
  5. package/dist/context-window.d.ts.map +1 -1
  6. package/dist/context-window.js +12 -13
  7. package/dist/managed-policy.d.ts +9 -0
  8. package/dist/managed-policy.d.ts.map +1 -1
  9. package/dist/managed-policy.js +25 -0
  10. package/dist/native-subagents.d.ts +72 -9
  11. package/dist/native-subagents.d.ts.map +1 -1
  12. package/dist/native-subagents.js +130 -12
  13. package/dist/session-fast-mode.d.ts +16 -10
  14. package/dist/session-fast-mode.d.ts.map +1 -1
  15. package/dist/session-fast-mode.js +36 -25
  16. package/dist/session-index/transcript-scan.d.ts +4 -2
  17. package/dist/session-index/transcript-scan.d.ts.map +1 -1
  18. package/dist/session-index/transcript-scan.js +67 -12
  19. package/dist/session-model.d.ts +22 -16
  20. package/dist/session-model.d.ts.map +1 -1
  21. package/dist/session-model.js +66 -38
  22. package/dist/session-usage.d.ts +8 -17
  23. package/dist/session-usage.d.ts.map +1 -1
  24. package/dist/session-usage.js +8 -21
  25. package/dist/settings.d.ts +2 -0
  26. package/dist/settings.d.ts.map +1 -1
  27. package/dist/settings.js +12 -0
  28. package/dist/subagent-replay.d.ts +16 -1
  29. package/dist/subagent-replay.d.ts.map +1 -1
  30. package/dist/subagent-replay.js +28 -1
  31. package/dist/tool-calls/renderer.d.ts +31 -1
  32. package/dist/tool-calls/renderer.d.ts.map +1 -1
  33. package/dist/tool-calls/renderer.js +42 -7
  34. package/dist/tool-calls/retracted.d.ts +29 -0
  35. package/dist/tool-calls/retracted.d.ts.map +1 -0
  36. package/dist/tool-calls/retracted.js +66 -0
  37. package/dist/v1/acp-agent.d.ts +36 -68
  38. package/dist/v1/acp-agent.d.ts.map +1 -1
  39. package/dist/v1/acp-agent.js +78 -262
  40. package/dist/v1/async-task-stop.d.ts +11 -0
  41. package/dist/v1/async-task-stop.d.ts.map +1 -0
  42. package/dist/v1/async-task-stop.js +18 -0
  43. package/dist/v1/session-fingerprint.d.ts +16 -0
  44. package/dist/v1/session-fingerprint.d.ts.map +1 -0
  45. package/dist/v1/session-fingerprint.js +129 -0
  46. package/dist/v1/steering.d.ts +48 -0
  47. package/dist/v1/steering.d.ts.map +1 -0
  48. package/dist/v1/steering.js +41 -0
  49. package/dist/v2/agent.js +10 -4
  50. package/dist/v2/outcome.d.ts +3 -2
  51. package/dist/v2/outcome.d.ts.map +1 -1
  52. package/dist/v2/outcome.js +8 -3
  53. package/dist/v2/reports.d.ts +2 -2
  54. package/dist/v2/reports.d.ts.map +1 -1
  55. package/dist/v2/reports.js +3 -6
  56. package/dist/v2/session.d.ts +11 -4
  57. package/dist/v2/session.d.ts.map +1 -1
  58. package/dist/v2/session.js +19 -4
  59. package/dist/v2/setup.js +1 -1
  60. package/dist/v2/stream.d.ts +17 -5
  61. package/dist/v2/stream.d.ts.map +1 -1
  62. package/dist/v2/stream.js +40 -19
  63. package/dist/v2/subagent-replay.js +2 -2
  64. package/dist/v2/tasks.d.ts +29 -11
  65. package/dist/v2/tasks.d.ts.map +1 -1
  66. package/dist/v2/tasks.js +69 -19
  67. package/dist/v2/tool-call.js +3 -0
  68. package/package.json +5 -5
package/README.md CHANGED
@@ -53,81 +53,6 @@ npm run build:binary
53
53
  npm run smoke:binary # add `-- --full` to drive a real session; needs a Claude login
54
54
  ```
55
55
 
56
- ### Subagent sessions
57
-
58
- A client that declares `clientCapabilities.subagents`, other than JetBrains AIR, gets each Agent or
59
- Task subagent as its own child session, following the [subagents RFD](https://github.com/agentclientprotocol/agent-client-protocol/blob/main/docs/rfds/subagents.mdx):
60
-
61
- - `subagent_update` on the parent announces the child before any of its traffic, with the
62
- parent's `title` and `description` for it, and reports its work state: `running`,
63
- `requires_action` while one of its requests is open (and `running` again when the last one ends,
64
- unless a cancel withdrew it: the child is stopping then), and `idle` when its work ends, with
65
- `end_turn` or `cancelled` when the SDK gives the reason. A failure is `idle` with the `error`
66
- stop reason and the SDK's error text as its `error`. The child keeps its session for every
67
- delegation to it.
68
- - A child that runs outside its parent's working directory, such as an Agent call with
69
- `isolation: "worktree"`, gets its `cwd` on `subagent_update` before its first tool call. The
70
- adapter takes it from the `cwd` of the child's own hooks: its SubagentStart hook runs before its
71
- first model request. It sends `cwd: null` when the child is back in its parent's directory. A
72
- child in its parent's directory gets no `cwd`, and no child gets `additionalDirectories`: Claude
73
- Code gives a subagent the session's additional directories, so it inherits them. A replay
74
- announces a child with the `cwd` that its transcript recorded, and clears it after the response
75
- when that directory no longer exists.
76
- - Session messages replace the Agent or Task call that launches the child, which its parent is
77
- not shown:
78
- - The launch's prompt is a `session_message` in both transcripts: the parent's outgoing view and
79
- the child's incoming one. Both use the launch's tool use id, and each names the other with the
80
- draft RFD's `recipientMessageId` and `senderMessageId`.
81
- - A foreground child's answer, from the launch's result, is the child's `session_message` to
82
- the parent. In Claude Code's hand-back mode, the child's `SubagentHandback` call is its
83
- message to the parent instead, in both transcripts and linked the same way.
84
- - A launch whose child is never exposed is shown as a tool call after all, with its final
85
- status.
86
- - The message of a SendMessage call that resumes the child is a `session_message` in the child's
87
- transcript. The SendMessage call stays a tool call of the session that made it.
88
- - `session/cancel` on the parent interrupts Claude Code, which stops the foreground children that
89
- the turn waits on. Background children keep running, as the RFD prefers; a client stops one with
90
- its own `cancel`. Each stopped child reports `idle` with `cancelled` from Claude Code's own
91
- events, and its open requests are withdrawn. The adapter ends no child at a cancel itself, so a
92
- child that keeps running keeps its open requests and its open tool calls. To spare background
93
- children, the adapter declares the SDK option `perTaskStopAffordance`, which a client can turn
94
- off in `_meta.claudeCode.options`. That option spares background workflows too, which a client
95
- cannot stop, so the adapter stops them after the interrupt, as Claude Code did without it.
96
- Background commands keep running after a cancel either way. A tool call of a stopped child that Claude Code reports no
97
- result for, such as the command it was running, ends in the child's session before the cancelled
98
- prompt resolves. When Claude Code stops a background child after that, or while no prompt runs,
99
- the tool call ends right after the child reports `idle`. A child that still runs when Claude Code
100
- exits is `idle` with no stop reason.
101
- - A child whose parent is not yet known when it ends is not exposed, since the RFD forbids
102
- guessing its parent.
103
- - A replay restores each child under its live session id, from its own transcript, with the same
104
- session messages as live, and its end is an `idle` before the response.
105
- A launch without Claude Code's metadata file for the child stays an ordinary tool call of the
106
- parent, and a notice, for a client that takes notices, says that subagent history is missing.
107
- - After a load or resume, with or without replay, a SendMessage that resumes an agent from before
108
- it runs that agent in its session from before. Before the agent's traffic, each of its ancestors
109
- that the client was not told about in this connection is announced, parent before child and
110
- with no work state, as the RFD requires. An agent whose launch the session's history does not
111
- record stays unexposed.
112
- - Each running child is announced with the `cancel` capability. `session/cancel` with the child's
113
- session id stops that child's current work, through the SDK's `Query.stopTask`, and not its
114
- parent's: Claude Code also stops the foreground children it waits on, and the parent's turn goes
115
- on. Each stopped child reports `idle` with `cancelled` from Claude Code's own events, and its
116
- requests that the stop withdraws report no `running` first. A replayed child, which no longer
117
- runs, gets no capabilities. A client cannot prompt or otherwise change a child.
118
-
119
- An [ACP v2](#experimental-acp-v2) client gets the same without declaring anything, since subagents
120
- are part of v2's baseline. Each child also reports its work state as its own `state_update`, right
121
- after the parent's copy.
122
-
123
- JetBrains AIR keeps the earlier draft of the RFD (`subagent_spawned`, `subagent_state_update`),
124
- which it enables with `nativeSubagentSessions` in `_meta.jetbrains.air.capabilities`. See
125
- [AIR extensions](docs/air-extensions.md#native-subagent-sessions).
126
-
127
- Without either signal, Agent and Task stay ordinary tool calls and child interactions stay on the
128
- root session. Clients that use the historical `_meta["subagent-transcript"]` capability or the
129
- `forwardSubagentText` session option retain the flattened child transcript.
130
-
131
56
  ### Experimental ACP v2
132
57
 
133
58
  The adapter also serves the [draft ACP v2](https://agentclientprotocol.com/protocol/v2/overview):
@@ -143,7 +68,7 @@ with replay, `session/close`, `session/prompt`, `session/cancel`), `session/dele
143
68
  `session/fork`, `session/status`, `session/options` (with initial `configOptions` on `session/new` and
144
69
  `session/resume`), `session/set_title`, additional directories, config options (the mode is one), plans, notices,
145
70
  compaction, display terminals for commands, permission requests, elicitation, providers, auth, and
146
- [subagents](#subagent-sessions). Steering is v1 only for now.
71
+ [subagents](docs/subagent-sessions.md). Steering is v1 only for now.
147
72
 
148
73
  v2 is served by the v2 agent in `src/v2/`, which runs straight on Claude
149
74
  Code instead of translating to v1. A v2 client that declares JetBrains AIR
@@ -224,7 +224,7 @@ export declare class AsyncTaskRuntime {
224
224
  * its tool result. The text of a tool result never gives a task id: a
225
225
  * foreground command can print any text.
226
226
  *
227
- * Claude Code sends no `tool_use_result` with a subagent's tool results. For
227
+ * Claude Code sends no `tool_use_result` with a subagent's Bash results. For
228
228
  * those, `startedTaskOf` gives the background `local_bash` task whose
229
229
  * `task_started` named the Bash call, which comes before the result.
230
230
  */
@@ -710,7 +710,7 @@ function recordPublished(task, fields) {
710
710
  * its tool result. The text of a tool result never gives a task id: a
711
711
  * foreground command can print any text.
712
712
  *
713
- * Claude Code sends no `tool_use_result` with a subagent's tool results. For
713
+ * Claude Code sends no `tool_use_result` with a subagent's Bash results. For
714
714
  * those, `startedTaskOf` gives the background `local_bash` task whose
715
715
  * `task_started` named the Bash call, which comes before the result.
716
716
  */
@@ -12,8 +12,8 @@ import type { ModelInfo, Query } from "@anthropic-ai/claude-agent-sdk";
12
12
  * Header/credential values can be secrets; the key only ever lives as an
13
13
  * in-memory Map key and is never logged or surfaced. Over-keying is the safe
14
14
  * side: a var change that didn't really change the backend costs one cache
15
- * miss (heuristic seed until the next result), while under-keying would serve
16
- * one backend's window for another's. */
15
+ * miss (the default window until Claude Code reports it), while under-keying
16
+ * would serve one backend's window for another's. */
17
17
  export declare function providerCacheKeyFor(env: Record<string, string | undefined>): string;
18
18
  /** Compose the `contextWindowCache` key from a session's provider key and a
19
19
  * model id. `\0`-joined so the model segment can't collide with a provider
@@ -35,13 +35,15 @@ export declare function cacheResultContextWindow(providerCacheKey: string, model
35
35
  /** The context window to report *right now* for a model, with NO IPC on the
36
36
  * critical path: the cached authoritative value if we've learned it (from a
37
37
  * prior turn's `result.modelUsage`, this or any session on the same backend),
38
- * else the text heuristic over the model row's identity strings, else the
39
- * default. Derives the cache key itself — `modelInfo?.resolvedModel ?? modelId`,
40
- * the same rule at every seed site — so read keys can't drift from the write
41
- * site's spelling. `authoritative` reports whether the value came from the
42
- * cache: an authoritative window can legitimately equal
43
- * DEFAULT_CONTEXT_WINDOW, so the value alone can't tell the caller. */
44
- export declare function immediateContextWindow(providerCacheKey: string, modelId: string, modelInfo?: Pick<ModelInfo, "resolvedModel" | "displayName" | "description">): {
38
+ * else DEFAULT_CONTEXT_WINDOW. The model's names do not give the window:
39
+ * Claude Code 2.1.323 reports 1M for `sonnet`, and 200K for it under
40
+ * `CLAUDE_CODE_DISABLE_1M_CONTEXT=1`. Derives the cache key itself —
41
+ * `modelInfo?.resolvedModel ?? modelId`, the same rule at every seed site — so
42
+ * read keys can't drift from the write site's spelling. `authoritative`
43
+ * reports whether the value came from the cache: an authoritative window can
44
+ * legitimately equal DEFAULT_CONTEXT_WINDOW, so the value alone can't tell the
45
+ * caller. */
46
+ export declare function immediateContextWindow(providerCacheKey: string, modelId: string, modelInfo?: Pick<ModelInfo, "resolvedModel">): {
45
47
  size: number;
46
48
  authoritative: boolean;
47
49
  };
@@ -1 +1 @@
1
- {"version":3,"file":"context-window.d.ts","sourceRoot":"","sources":["../src/context-window.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AAkDvE;;;;;;;;0CAQ0C;AAC1C,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,CAEnF;AAED;;eAEe;AACf,wBAAgB,qBAAqB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cAAc,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACzC,MAAM,EAAE,MAAM,GACb,IAAI,CAKN;AAED;;;;;;;;;;cAUc;AACd,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,MAAM,EACxB,OAAO,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,GAC3C;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,OAAO,CAAA;CAAE,CAM1C;AAED;;;+BAG+B;AAC/B,wBAAgB,uBAAuB,IAAI,IAAI,CAE9C;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,iBAAiB,CACrC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,iBAAiB,CAAC,GACpC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAG7B"}
@@ -1,4 +1,4 @@
1
- import { DEFAULT_CONTEXT_WINDOW, inferContextWindowFromModel } from "./session-usage.js";
1
+ import { DEFAULT_CONTEXT_WINDOW } from "./session-usage.js";
2
2
  /** Cross-session cache of authoritative context windows, keyed by
3
3
  * `${providerCacheKey}\0${modelId}` (see {@link contextWindowCacheKey}).
4
4
  * The window is a property of (model id, backend): the same resolved model id
@@ -51,8 +51,8 @@ const PROVIDER_ROUTING_ENV_VARS = [
51
51
  * Header/credential values can be secrets; the key only ever lives as an
52
52
  * in-memory Map key and is never logged or surfaced. Over-keying is the safe
53
53
  * side: a var change that didn't really change the backend costs one cache
54
- * miss (heuristic seed until the next result), while under-keying would serve
55
- * one backend's window for another's. */
54
+ * miss (the default window until Claude Code reports it), while under-keying
55
+ * would serve one backend's window for another's. */
56
56
  export function providerCacheKeyFor(env) {
57
57
  return PROVIDER_ROUTING_ENV_VARS.map((name) => env[name] ?? "").join("\0");
58
58
  }
@@ -88,20 +88,19 @@ export function cacheResultContextWindow(providerCacheKey, modelUsageKey, assist
88
88
  /** The context window to report *right now* for a model, with NO IPC on the
89
89
  * critical path: the cached authoritative value if we've learned it (from a
90
90
  * prior turn's `result.modelUsage`, this or any session on the same backend),
91
- * else the text heuristic over the model row's identity strings, else the
92
- * default. Derives the cache key itself — `modelInfo?.resolvedModel ?? modelId`,
93
- * the same rule at every seed site — so read keys can't drift from the write
94
- * site's spelling. `authoritative` reports whether the value came from the
95
- * cache: an authoritative window can legitimately equal
96
- * DEFAULT_CONTEXT_WINDOW, so the value alone can't tell the caller. */
91
+ * else DEFAULT_CONTEXT_WINDOW. The model's names do not give the window:
92
+ * Claude Code 2.1.323 reports 1M for `sonnet`, and 200K for it under
93
+ * `CLAUDE_CODE_DISABLE_1M_CONTEXT=1`. Derives the cache key itself —
94
+ * `modelInfo?.resolvedModel ?? modelId`, the same rule at every seed site — so
95
+ * read keys can't drift from the write site's spelling. `authoritative`
96
+ * reports whether the value came from the cache: an authoritative window can
97
+ * legitimately equal DEFAULT_CONTEXT_WINDOW, so the value alone can't tell the
98
+ * caller. */
97
99
  export function immediateContextWindow(providerCacheKey, modelId, modelInfo) {
98
100
  const cached = contextWindowCache.get(contextWindowCacheKey(providerCacheKey, modelInfo?.resolvedModel ?? modelId));
99
101
  if (cached !== undefined)
100
102
  return { size: cached, authoritative: true };
101
- return {
102
- size: inferContextWindowFromModel(modelId, modelInfo?.resolvedModel, modelInfo?.displayName, modelInfo?.description) ?? DEFAULT_CONTEXT_WINDOW,
103
- authoritative: false,
104
- };
103
+ return { size: DEFAULT_CONTEXT_WINDOW, authoritative: false };
105
104
  }
106
105
  /** Forgets the learned windows, as a logout asks: 1M-context entitlement is
107
106
  * gated per org/tier, and an OAuth re-login is invisible to the env-derived
@@ -1,4 +1,13 @@
1
1
  import { resolveSettings } from "@anthropic-ai/claude-agent-sdk";
2
+ /**
3
+ * The machine policy sources that may be there and did not load
4
+ * (`machinePolicy.didNotLoad`, SDK 0.3.323), named for a log line: "the macOS
5
+ * MDM profile, the managed-settings file". The resolved settings show such a
6
+ * source as absent, so the adapter applies nothing from it, and Claude Code
7
+ * reads the policy itself. Undefined when every source loaded, and when the
8
+ * SDK does not report it.
9
+ */
10
+ export declare function unloadedPolicySources(resolved: Pick<Awaited<ReturnType<typeof resolveSettings>>, "machinePolicy">): string | undefined;
2
11
  /**
3
12
  * Applies the managed-policy tier's env vars to `process.env` before any SDK
4
13
  * call, so the SDK subprocess inherits them. Going through `resolveSettings`
@@ -1 +1 @@
1
- {"version":3,"file":"managed-policy.d.ts","sourceRoot":"","sources":["../src/managed-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,GAAE,OAAO,eAAiC,EACjD,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,GACpD,OAAO,CAAC,IAAI,CAAC,CAYf"}
1
+ {"version":3,"file":"managed-policy.d.ts","sourceRoot":"","sources":["../src/managed-policy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AASjE;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,EAAE,eAAe,CAAC,GAC3E,MAAM,GAAG,SAAS,CAIpB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,GAAE,OAAO,eAAiC,EACjD,GAAG,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAe,GACpD,OAAO,CAAC,IAAI,CAAC,CAmBf"}
@@ -1,4 +1,24 @@
1
1
  import { resolveSettings } from "@anthropic-ai/claude-agent-sdk";
2
+ /** The machine policy sources that `machinePolicy.didNotLoad` names. */
3
+ const POLICY_SOURCES = {
4
+ profile: "the macOS MDM profile",
5
+ registry: "the Windows registry policy",
6
+ file: "the managed-settings file",
7
+ };
8
+ /**
9
+ * The machine policy sources that may be there and did not load
10
+ * (`machinePolicy.didNotLoad`, SDK 0.3.323), named for a log line: "the macOS
11
+ * MDM profile, the managed-settings file". The resolved settings show such a
12
+ * source as absent, so the adapter applies nothing from it, and Claude Code
13
+ * reads the policy itself. Undefined when every source loaded, and when the
14
+ * SDK does not report it.
15
+ */
16
+ export function unloadedPolicySources(resolved) {
17
+ const unloaded = resolved.machinePolicy?.didNotLoad;
18
+ if (!unloaded || unloaded.length === 0)
19
+ return undefined;
20
+ return unloaded.map((kind) => POLICY_SOURCES[kind] ?? kind).join(", ");
21
+ }
2
22
  /**
3
23
  * Applies the managed-policy tier's env vars to `process.env` before any SDK
4
24
  * call, so the SDK subprocess inherits them. Going through `resolveSettings`
@@ -25,6 +45,11 @@ export async function applyManagedPolicyEnv(resolve = resolveSettings, env = pro
25
45
  console.error("Failed to resolve managed policy settings:", error);
26
46
  return;
27
47
  }
48
+ const unloaded = unloadedPolicySources(policy);
49
+ if (unloaded) {
50
+ console.error(`Managed settings did not load from ${unloaded}: its env vars are not applied. ` +
51
+ "Restart the agent to read it again.");
52
+ }
28
53
  for (const [key, value] of Object.entries(policy.effective.env ?? {})) {
29
54
  env[key] = value;
30
55
  }
@@ -97,10 +97,15 @@ export type TaskEnd = {
97
97
  /** The SDK's reason for an unusual end, such as `worker_restart`. */
98
98
  reason?: string;
99
99
  /**
100
- * The adapter knows that the work ended, but not why: the stream ended, or
101
- * the conversation was reset, with the task still running.
100
+ * The adapter knows that the work ended, but not why: the stream ended
101
+ * with the task still running.
102
102
  */
103
103
  unexplained?: boolean;
104
+ /**
105
+ * The adapter stops following the task, which may still run: the
106
+ * conversation was reset, and the runtime forgets its children.
107
+ */
108
+ unobservable?: boolean;
104
109
  };
105
110
  type TaskStarted = {
106
111
  taskId: string;
@@ -193,6 +198,11 @@ export declare class NativeSubagentRuntime {
193
198
  * input, and the call that delegated the run.
194
199
  */
195
200
  private readonly handbacks;
201
+ /**
202
+ * The RFD form: the agent that each TaskStop or SendMessage call names (see
203
+ * {@link targetAgentId}), until the call's final update.
204
+ */
205
+ private readonly targetByToolCall;
196
206
  private readonly generationByTaskId;
197
207
  private readonly pending;
198
208
  private pendingCount;
@@ -307,12 +317,24 @@ export declare class NativeSubagentRuntime {
307
317
  finishTask(taskId: string, status: unknown, deliver: Publish, toolUseId?: string | null, end?: TaskEnd): Promise<void>;
308
318
  /**
309
319
  * Ends every child that still runs, because the stream ended or the
310
- * conversation was reset. AIR's draft reports `state` for each. In the RFD
311
- * form the cause of each child's end is unknown, so it is idle with no stop
312
- * reason: a child that a cancel stopped already reported it from the SDK's
313
- * events, and a background child that outlived the cancel was not cancelled.
320
+ * conversation was reset. AIR's draft reports `state` for each.
321
+ *
322
+ * The RFD form, at the end of the stream: Claude Code's process ran the
323
+ * children and is gone, or the caller closes the query next, which
324
+ * terminates it, so their work ended. Its cause is unknown, so each is idle with no stop reason: a
325
+ * child that a cancel stopped already reported it from the SDK's events,
326
+ * and a background child that outlived the cancel was not cancelled.
327
+ *
328
+ * The RFD form, at a conversation reset (`mayStillRun`): Claude Code can
329
+ * keep the old conversation's subagents running, and the caller forgets
330
+ * them next (`clear`), so no later event of theirs is reported. Their work
331
+ * did not end as far as the adapter knows, so each is `unknown`, as the
332
+ * RFD requires when a child can no longer be observed, and loses its
333
+ * `cancel` capability. A child that is idle keeps its state.
314
334
  */
315
- finishAll(state: SubagentState, deliver: Publish): Promise<void>;
335
+ finishAll(state: SubagentState, deliver: Publish, { mayStillRun }?: {
336
+ mayStillRun?: boolean;
337
+ }): Promise<void>;
316
338
  /**
317
339
  * The parent session got `session/cancel`. AIR's draft ends every child as
318
340
  * cancelled here. The RFD form reports nothing: acknowledging a cancel is no
@@ -423,7 +445,10 @@ export declare class NativeSubagentRuntime {
423
445
  * then its configuration. A runtime without a form never does.
424
446
  */
425
447
  private announce;
426
- /** The RFD form: publishes the work state of `child` on its parent. */
448
+ /**
449
+ * The RFD form: publishes the work state of `child` on its parent, with
450
+ * `capabilities` when the child's change with it.
451
+ */
427
452
  private reportState;
428
453
  /**
429
454
  * Routes an update to the child session. It never goes to the root session:
@@ -473,6 +498,23 @@ export declare class NativeSubagentRuntime {
473
498
  * final status. Any other update is returned as is.
474
499
  */
475
500
  private routeRfdSendMessage;
501
+ /** The RFD form: remembers the agent that a TaskStop or SendMessage call names. */
502
+ private rememberTarget;
503
+ /**
504
+ * The RFD form: `notification`, an update that the client is shown, with
505
+ * the RFD's `session` reference when it is of a tool call that operates on
506
+ * an announced child of another session (see {@link withSessionReference}):
507
+ *
508
+ * - a TaskStop or SendMessage call that names the child by its agent id;
509
+ * - a SendMessage call that resumed the child, and stays shown because a
510
+ * permission request showed it;
511
+ * - an Agent/Task call that launched the child, and stays shown for the
512
+ * same reason.
513
+ *
514
+ * The RFD requires the announcement before the reference, so a call whose
515
+ * child is not announced yet gets none.
516
+ */
517
+ private withTarget;
476
518
  /** Whether `update` is of an Agent/Task call, by its tool name or, in the
477
519
  * RFD form, by the id of a call the client is not shown. */
478
520
  private isControlUpdate;
@@ -550,10 +592,28 @@ export declare function finishNativeSubagent(session: NativeSubagentSession, tas
550
592
  * prompt goes from the parent to the child, a SendMessage call, whose message
551
593
  * goes from its sender to a child, or a child's SubagentHandback call, whose
552
594
  * report goes from the child to the parent. Both views use the
553
- * call's tool use id, and each names the other with the draft RFD's
595
+ * call's tool use id, and each names the other with the RFD's
554
596
  * `recipientMessageId` and `senderMessageId`.
555
597
  */
556
598
  export declare function linkedSessionMessages(toolUseId: string, senderSessionId: string, recipientSessionId: string, text: string): AcpSessionNotification[];
599
+ /**
600
+ * The RFD form: the agent that a tool call names as the one it operates on:
601
+ * the `task_id` of a TaskStop call, or the `to` of a SendMessage call. It is
602
+ * an agent only if it is the id of one: an agent's id is its child session's
603
+ * id. Both tools also take a name, which is not resolved here: Claude Code
604
+ * resolves it, and the adapter cannot tell which agent it picked. `undefined`
605
+ * for any other call.
606
+ */
607
+ export declare function targetAgentId(toolName: unknown, rawInput: unknown): string | undefined;
608
+ /**
609
+ * The RFD form: `notification`, a tool call's report, with a `session`
610
+ * reference to `sessionId` after its content: `{ "type": "session",
611
+ * "sessionId": "..." }`, which links the call to the session it operates on.
612
+ * A `tool_call_update` replaces the content that the client holds, so the
613
+ * reference goes on every report that carries content, and a
614
+ * `tool_call_update` without content is returned as it is.
615
+ */
616
+ export declare function withSessionReference(notification: AcpSessionNotification, sessionId: string): AcpSessionNotification;
557
617
  /**
558
618
  * The tool with which a child hands its report to its parent, when Claude
559
619
  * Code runs in hand-back mode. The Agent/Task result then only says that the
@@ -586,6 +646,9 @@ export declare function launchReply(launchId: string, childSessionId: string, pa
586
646
  * A task that a worker restart orphaned, or that was still running when the
587
647
  * stream ended, is idle with no stop reason: its work ended, but the adapter
588
648
  * did not see a cancellation or a failure, which the RFD forbids claiming.
649
+ *
650
+ * A child that the adapter can no longer observe and that may still run is
651
+ * not idle but `unknown` (see `NativeSubagentRuntime.finishAll`).
589
652
  */
590
653
  export declare function rfdEndState(state: SubagentState, end: TaskEnd | undefined): WorkState;
591
654
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"native-subagents.d.ts","sourceRoot":"","sources":["../src/native-subagents.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACzB,MAAM,mCAAmC,CAAC;AAG3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAM9F,kFAAkF;AAClF,MAAM,MAAM,SAAS,GAAG,WAAW,CACjC,OAAO,CAAC,mBAAmB,CAAC,QAAQ,CAAC,EAAE;IAAE,aAAa,EAAE,iBAAiB,CAAA;CAAE,CAAC,CAAC,OAAO,CAAC,CACtF,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,EAAE,MAAM,CAA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