@agentclientprotocol/claude-agent-acp 0.110.1-preview.3 → 0.110.1-preview.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.
Files changed (45) hide show
  1. package/dist/air-extension.d.ts +2 -0
  2. package/dist/air-extension.d.ts.map +1 -1
  3. package/dist/air-extension.js +2 -0
  4. package/dist/elicitation.d.ts.map +1 -1
  5. package/dist/elicitation.js +6 -1
  6. package/dist/native-subagents.d.ts +11 -5
  7. package/dist/native-subagents.d.ts.map +1 -1
  8. package/dist/native-subagents.js +53 -11
  9. package/dist/steering-priority.d.ts +3 -0
  10. package/dist/steering-priority.d.ts.map +1 -0
  11. package/dist/steering-priority.js +4 -0
  12. package/dist/subagent-replay.d.ts +14 -12
  13. package/dist/subagent-replay.d.ts.map +1 -1
  14. package/dist/subagent-replay.js +29 -13
  15. package/dist/v1/acp-agent.d.ts.map +1 -1
  16. package/dist/v1/acp-agent.js +25 -4
  17. package/dist/v1/steering.d.ts +1 -8
  18. package/dist/v1/steering.d.ts.map +1 -1
  19. package/dist/v1/steering.js +0 -7
  20. package/dist/v2/agent.d.ts.map +1 -1
  21. package/dist/v2/agent.js +16 -11
  22. package/dist/v2/background.d.ts +3 -10
  23. package/dist/v2/background.d.ts.map +1 -1
  24. package/dist/v2/clear-context.d.ts +3 -4
  25. package/dist/v2/clear-context.d.ts.map +1 -1
  26. package/dist/v2/clear-context.js +8 -9
  27. package/dist/v2/elicitation.d.ts +1 -1
  28. package/dist/v2/elicitation.d.ts.map +1 -1
  29. package/dist/v2/elicitation.js +18 -15
  30. package/dist/v2/restarts.d.ts +3 -3
  31. package/dist/v2/restarts.d.ts.map +1 -1
  32. package/dist/v2/restarts.js +12 -12
  33. package/dist/v2/session.d.ts +16 -11
  34. package/dist/v2/session.d.ts.map +1 -1
  35. package/dist/v2/session.js +138 -42
  36. package/dist/v2/stream.d.ts +2 -0
  37. package/dist/v2/stream.d.ts.map +1 -1
  38. package/dist/v2/stream.js +11 -0
  39. package/dist/v2/subagent-replay.d.ts +1 -5
  40. package/dist/v2/subagent-replay.d.ts.map +1 -1
  41. package/dist/v2/subagent-replay.js +5 -10
  42. package/dist/v2/tasks.d.ts +20 -4
  43. package/dist/v2/tasks.d.ts.map +1 -1
  44. package/dist/v2/tasks.js +52 -8
  45. package/package.json +1 -1
@@ -13,13 +13,14 @@ import * as sessionIndex from "./session-index.js";
13
13
  import { AsyncTaskRuntime, backgroundBashTaskFromToolResult, backgroundedBashToolCallIds, clientSupportsAsyncTasks, } from "../async-tasks.js";
14
14
  import { SessionBackgroundWork } from "./background-work.js";
15
15
  import { ASYNC_TASK_STOP_METHOD, parseAsyncTaskStopRequest, } from "./async-task-stop.js";
16
- import { STEER_METHOD, STEER_PRIORITY_LATER, STEER_PRIORITY_NOW, parseSteerRequest, } from "./steering.js";
16
+ import { STEER_METHOD, parseSteerRequest, } from "./steering.js";
17
17
  import { AUTH_STATUS_UPDATE_METHOD, authStatusCapability, fromAccountInfo, gatewayAuthStatus, notLoggedInAuthStatus, } from "../auth-status.js";
18
18
  import { AuthStatusReporter, cliLogout } from "../auth-status-reporter.js";
19
19
  import { terminalAuthMethods as authMethodsForTerminal } from "../auth-methods.js";
20
20
  import { McpOverAcp, sdkMcpServers } from "../mcp-servers.js";
21
21
  import { claudeCliPath, cliDelivery } from "../claude-cli.js";
22
22
  import { randomUUID } from "node:crypto";
23
+ import { steeringPriority } from "../steering-priority.js";
23
24
  import * as fs from "node:fs/promises";
24
25
  import * as path from "node:path";
25
26
  import packageJson from "../../package.json" with { type: "json" };
@@ -28,7 +29,7 @@ import { startMcpServerAuthentication as startSharedMcpServerAuthentication, sup
28
29
  import { forkSession } from "../fork-session.js";
29
30
  import { clientSystemPrompt, sessionSystemPrompt, SYSTEM_PROMPT_CAPABILITY, } from "../client-system-prompt.js";
30
31
  import { readSubagentMessages, subagentHistory, subagentLaunchIds, subagentLaunchedBy, subagentLineage, } from "../subagent-history.js";
31
- import { RfdSubagentReplay, replaySubagentTerminalState, } from "../subagent-replay.js";
32
+ import { RfdSubagentReplay, ReplayTranscript, replaySubagentTerminalState, } from "../subagent-replay.js";
32
33
  import { readHistoryAcrossCompactions, readResumedSession, readResumedTail, } from "../resumed-session.js";
33
34
  import { SessionTiming } from "../session-timing.js";
34
35
  import { ALLOW_BYPASS, autoModeDisabled } from "../permissions/modes.js";
@@ -1589,8 +1590,7 @@ export class ClaudeAcpAgent {
1589
1590
  userMessage.uuid = steeredUuid;
1590
1591
  // Deliver into the running turn rather than queuing behind it as a fresh
1591
1592
  // prompt would.
1592
- userMessage.priority =
1593
- (session.openUserInputs?.size ?? 0) > 0 ? STEER_PRIORITY_LATER : STEER_PRIORITY_NOW;
1593
+ userMessage.priority = steeringPriority((session.openUserInputs?.size ?? 0) > 0);
1594
1594
  // Mark before the push and in the same synchronous section as the in-flight
1595
1595
  // check: the interrupt can have the CLI finalizing the aborted cycle by the
1596
1596
  // time the consumer next runs, and an unmarked result would settle the turn
@@ -4961,6 +4961,8 @@ export class ClaudeAcpAgent {
4961
4961
  }
4962
4962
  let content;
4963
4963
  let toolUseResult = message.type === "user" ? message.tool_use_result : undefined;
4964
+ if (message.type === "user")
4965
+ await subagents.toolResult(message);
4964
4966
  if (message.type === "assistant" &&
4965
4967
  (message.parent_tool_use_id === null || forwardsSubagentText())) {
4966
4968
  // Each text/thinking block may have streamed live as deltas
@@ -6061,6 +6063,8 @@ export class ClaudeAcpAgent {
6061
6063
  const subagents = nativeReplayEnabled && replayChildren.size > 0
6062
6064
  ? await subagentHistory(sessionId)
6063
6065
  : { agents: new Map() };
6066
+ const airReplay = nativeReplayEnabled ? new ReplayTranscript(subagents) : undefined;
6067
+ airReplay?.scan(messages, sessionId);
6064
6068
  const replayedSubagents = new Set();
6065
6069
  const rfdHistory = form === "rfd" &&
6066
6070
  messages.some((message) => subagentLaunchIds(message.message?.content)
@@ -6267,6 +6271,22 @@ export class ClaudeAcpAgent {
6267
6271
  }
6268
6272
  if (rfdReplay && (await rfdReplay.toolCallUpdate(notification.update, child)))
6269
6273
  continue;
6274
+ const handback = parentToolUseId
6275
+ ? airReplay?.handbackUpdate(notification.update)
6276
+ : undefined;
6277
+ if (handback !== undefined) {
6278
+ if (handback !== null) {
6279
+ await this.client.sessionUpdate({
6280
+ sessionId: replayTargetSessionId,
6281
+ update: {
6282
+ sessionUpdate: "agent_message_chunk",
6283
+ messageId: handback.messageId,
6284
+ content: { type: "text", text: handback.text },
6285
+ },
6286
+ });
6287
+ }
6288
+ continue;
6289
+ }
6270
6290
  const replayed = { ...notification, sessionId: replayTargetSessionId };
6271
6291
  await this.client.sessionUpdate(rfdReplay
6272
6292
  ? asSdkSessionNotification(rfdReplay.withTarget(replayed, replayTargetSessionId))
@@ -6284,6 +6304,7 @@ export class ClaudeAcpAgent {
6284
6304
  replayedSubagents.add(agentId);
6285
6305
  const childMessages = await readSubagentMessages(sessionId, agentId, subagents, this.logger);
6286
6306
  registerLaunches(childMessages);
6307
+ airReplay?.scan(childMessages, agentId);
6287
6308
  for (const childMessage of childMessages)
6288
6309
  await replayMessage(childMessage);
6289
6310
  }
@@ -5,13 +5,6 @@ import { PromptRequest } from "@agentclientprotocol/sdk/unstable";
5
5
  * agreed ACP steering wire protocol; advertised to clients via the top-level
6
6
  * `InitializeResponse._meta.steering.supported`. */
7
7
  export declare const STEER_METHOD = "_session/steering";
8
- /** How urgently the SDK delivers a steered message relative to the running
9
- * turn — an internal Claude implementation detail, not part of the wire
10
- * contract. `now` pre-empts the current generation, while `later` waits for a
11
- * pending permission/elicitation callback to settle instead of cancelling its
12
- * ACP request and hiding the client's user-input card (IJAI-1191). */
13
- export declare const STEER_PRIORITY_NOW: "now";
14
- export declare const STEER_PRIORITY_LATER: "later";
15
8
  /** Request-level steering options. `promptRequired` is opt-in so existing Hosts
16
9
  * keep the established idle fallback behavior. */
17
10
  type SteerMeta = {
@@ -23,7 +16,7 @@ type SteerMeta = {
23
16
  /** Params of a {@link STEER_METHOD} request. Shaped like the relevant subset of
24
17
  * a `PromptRequest` so the same `promptToClaude` conversion applies. Delivery
25
18
  * priority is deliberately NOT exposed here — it's an internal detail the agent
26
- * chooses (see {@link STEER_PRIORITY}). */
19
+ * chooses. */
27
20
  export type SteerRequest = {
28
21
  sessionId: string;
29
22
  prompt: PromptRequest["prompt"];
@@ -1 +1 @@
1
- {"version":3,"file":"steering.d.ts","sourceRoot":"","sources":["../../src/v1/steering.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAgB,MAAM,mCAAmC,CAAC;AAEhF;;;;qDAIqD;AACrD,eAAO,MAAM,YAAY,sBAAsB,CAAC;AAEhD;;;;uEAIuE;AACvE,eAAO,MAAM,kBAAkB,EAAG,KAAc,CAAC;AACjD,eAAO,MAAM,oBAAoB,EAAG,OAAgB,CAAC;AAErD;mDACmD;AACnD,KAAK,SAAS,GAAG;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE;QACT,YAAY,CAAC,EAAE,gBAAgB,CAAC;KACjC,CAAC;CACH,CAAC;AAEF;;;4CAG4C;AAC5C,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF;;4EAE4E;AAC5E,MAAM,MAAM,aAAa,GACrB;IAAE,OAAO,EAAE,UAAU,CAAA;CAAE,GACvB;IAAE,OAAO,EAAE,gBAAgB,CAAA;CAAE,GAC7B;IAAE,OAAO,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAE3D;;2EAE2E;AAC3E,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,YAAY,CAyB/D"}
1
+ {"version":3,"file":"steering.d.ts","sourceRoot":"","sources":["../../src/v1/steering.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAgB,MAAM,mCAAmC,CAAC;AAEhF;;;;qDAIqD;AACrD,eAAO,MAAM,YAAY,sBAAsB,CAAC;AAEhD;mDACmD;AACnD,KAAK,SAAS,GAAG;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE;QACT,YAAY,CAAC,EAAE,gBAAgB,CAAC;KACjC,CAAC;CACH,CAAC;AAEF;;;eAGe;AACf,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,CAAC;CAC1B,CAAC;AAEF;;4EAE4E;AAC5E,MAAM,MAAM,aAAa,GACrB;IAAE,OAAO,EAAE,UAAU,CAAA;CAAE,GACvB;IAAE,OAAO,EAAE,gBAAgB,CAAA;CAAE,GAC7B;IAAE,OAAO,EAAE,gBAAgB,CAAC;IAAC,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC;AAE3D;;2EAE2E;AAC3E,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,OAAO,GAAG,YAAY,CAyB/D"}
@@ -5,13 +5,6 @@ import { RequestError } from "@agentclientprotocol/sdk/unstable";
5
5
  * agreed ACP steering wire protocol; advertised to clients via the top-level
6
6
  * `InitializeResponse._meta.steering.supported`. */
7
7
  export const STEER_METHOD = "_session/steering";
8
- /** How urgently the SDK delivers a steered message relative to the running
9
- * turn — an internal Claude implementation detail, not part of the wire
10
- * contract. `now` pre-empts the current generation, while `later` waits for a
11
- * pending permission/elicitation callback to settle instead of cancelling its
12
- * ACP request and hiding the client's user-input card (IJAI-1191). */
13
- export const STEER_PRIORITY_NOW = "now";
14
- export const STEER_PRIORITY_LATER = "later";
15
8
  /** Validate raw JSON-RPC params into a {@link SteerRequest}. Kept minimal — the
16
9
  * content blocks are handed to `promptToClaude`, which tolerates unknown block
17
10
  * types — but `sessionId` and a non-empty `prompt` array are required. */
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/v2/agent.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAaxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAsE3C,sEAAsE;AACtE,MAAM,WAAW,WAAW;IAC1B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;AAED,8CAA8C;AAC9C,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,GACpC,EAAE,CAAC,QAAQ,CA6Cb"}
1
+ {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/v2/agent.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAaxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAsE3C,sEAAsE;AACtE,MAAM,WAAW,WAAW;IAC1B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC1B;AAED,8CAA8C;AAC9C,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,IAAI,GACpC,EAAE,CAAC,QAAQ,CA+Cb"}
package/dist/v2/agent.js CHANGED
@@ -87,7 +87,7 @@ export function v2AgentApp(logger, onAgent) {
87
87
  .onRequest(v2.methods.agent.session.delete, ({ params }) => agent.deleteSession(params))
88
88
  .onRequest(v2.methods.agent.session.setTitle, ({ params }) => agent.setTitle(params))
89
89
  .onRequest(v2.methods.agent.session.setConfigOption, ({ params }) => agent.setConfigOption(params))
90
- .onRequest(v2.methods.agent.session.prompt, ({ params }) => agent.prompt(params))
90
+ .onRequest(v2.methods.agent.session.prompt, ({ params, signal }) => agent.prompt(params, signal))
91
91
  .onRequest(v2.methods.agent.terminal.cancel, ({ params }) => agent.cancelItem(params.sessionId, { terminalId: params.terminalId }))
92
92
  .onRequest(v2.methods.agent.toolCall.cancel, ({ params }) => agent.cancelItem(params.sessionId, { toolCallId: params.toolCallId }))
93
93
  // `session/cancel` of a session that is not active is ignored. A
@@ -283,8 +283,7 @@ class V2Agent {
283
283
  // `providers/list`, `set`, and `disable`, served for every client.
284
284
  providers: {},
285
285
  auth,
286
- // A prompt that comes while Claude works waits in Claude Code's queue.
287
- _meta: { claudeCode: { promptQueueing: true }, ..._meta },
286
+ _meta,
288
287
  },
289
288
  authMethods,
290
289
  };
@@ -303,8 +302,8 @@ class V2Agent {
303
302
  * order but the number of promise hops (v2 allows either), and the golden
304
303
  * files of the scenarios (`acp-scenarios-v2.test.ts`) hold it.
305
304
  */
306
- prompt(params) {
307
- const prompt = () => this.session(params.sessionId, "prompt").prompt(params, (query) => this.guard.beforePrompt(params.sessionId, query));
305
+ prompt(params, signal) {
306
+ const prompt = () => this.session(params.sessionId, "prompt").prompt(params, signal, (query) => this.guard.beforePrompt(params.sessionId, query));
308
307
  try {
309
308
  this.session(params.sessionId, "prompt");
310
309
  this.auth.promptStarted(params.sessionId);
@@ -428,15 +427,21 @@ class V2Agent {
428
427
  // session's.
429
428
  const request = await validatedSetup(params);
430
429
  assertCwdOf(session, request.cwd, "resume it");
431
- const served = await this.sdkMcpServers(sessionId, request.mcpServers);
432
- await session.setMcpServers({ ...clientOptions(params._meta)?.mcpServers, ...served.configs }, served.unserved);
433
430
  if (!sameDirectories(request.additionalDirectories ?? [], session.additionalDirectories)) {
434
- // The SDK cannot change them on a running query: it restarts with
435
- // them at its next turn boundary (see `restarts.ts`).
436
- this.restarts.rootsChanged(sessionId, params);
431
+ // Claude Code cannot replace launch roots while work or requests remain.
432
+ if (!session.canReplaceRoots()) {
433
+ throw RequestError.invalidParams({ additionalDirectories: request.additionalDirectories ?? [] }, "Workspace roots cannot change while work or input requests remain. Resume with the current roots, or try again after work ends.");
434
+ }
435
+ await this.restarts.rootsChanged(sessionId, params);
436
+ session = this.sessions.get(sessionId);
437
+ if (!session ||
438
+ !sameDirectories(request.additionalDirectories ?? [], session.additionalDirectories)) {
439
+ throw RequestError.internalError({ sessionId }, "The session could not activate the workspace roots. Try resuming it again.");
440
+ }
437
441
  }
438
442
  else {
439
- // A restart of its query starts with these servers.
443
+ const served = await this.sdkMcpServers(sessionId, request.mcpServers);
444
+ await session.setMcpServers({ ...clientOptions(params._meta)?.mcpServers, ...served.configs }, served.unserved);
440
445
  this.restarts.track(sessionId, params);
441
446
  }
442
447
  }
@@ -11,16 +11,9 @@
11
11
  import type * as v2 from "@agentclientprotocol/sdk/experimental/v2/unstable";
12
12
  import type { V2Terminals } from "./terminal.js";
13
13
  /** An item of a `background` list. */
14
- export type BackgroundItem = {
15
- type: "terminal";
16
- terminalId: string;
17
- } | {
18
- type: "tool_call";
19
- toolCallId: string;
20
- } | {
21
- type: "subagent";
22
- sessionId: string;
23
- };
14
+ export type BackgroundItem = Extract<v2.BackgroundWork, {
15
+ type: "terminal" | "tool_call" | "subagent";
16
+ }>;
24
17
  /** The work state of a session, as its `state_update` names it. */
25
18
  export type WorkStateName = "idle" | "running" | "requires_action" | "unknown";
26
19
  /** A new list of the session `sessionId`, with what its repeated state needs. */
@@ -1 +1 @@
1
- {"version":3,"file":"background.d.ts","sourceRoot":"","sources":["../../src/v2/background.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAEjD,sCAAsC;AACtC,MAAM,MAAM,cAAc,GACtB;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GACxC;IAAE,IAAI,EAAE,WAAW,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GACzC;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AM/D;;;;OAIG;IACH,OAAO,CAAC,eAAe;CAwBxB"}
@@ -63,11 +63,10 @@ export declare class ClearContext {
63
63
  };
64
64
  }): ((notification: AcpSessionNotification) => AcpSessionNotification) | undefined;
65
65
  /**
66
- * A result of the open turn. Returns whether the turn goes on: it is the
67
- * interruption of a plan accepted with clearing the context, or `/clear`'s.
68
- * The fresh context starts with the first.
66
+ * Classifies the result of a plan interruption or a fresh context.
67
+ * A rejected plan ends the turn cancelled. An accepted plan continues after `/clear`.
69
68
  */
70
- holdsResult(message: SDKResultMessage, end: TurnEnd): boolean;
69
+ resultDisposition(message: SDKResultMessage, end: TurnEnd): "held" | "rejected" | "ended";
71
70
  /** Claude Code mounted a fresh conversation: the plan goes out in it. */
72
71
  conversationReset(): void;
73
72
  /** Whether the open turn waits for the plan's prompt to start. */
@@ -1 +1 @@
1
- {"version":3,"file":"clear-context.d.ts","sourceRoot":"","sources":["../../src/v2/clear-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAMzE,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEvF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,KAAK,IAAI,GAAG,GAAG,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;AAEhE,iDAAiD;AACjD,MAAM,WAAW,gBAAgB;IAC/B,oFAAoF;IACpF,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IACrC,gEAAgE;IAChE,SAAS,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/C,wEAAwE;IACxE,OAAO,CAAC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6E;IAC7E,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAqD;gBAG3D,IAAI,EAAE,gBAAgB,EACvC,QAAQ,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC,EAC3C,OAAO,EAAE,MAAM,IAAI;IAKtC;;;OAGG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,GAAG,SAAS,GAAG,IAAI;IAK3E;;;;OAIG;IACH,WAAW,CAAC,OAAO,EAAE;QACnB,IAAI,EAAE,MAAM,CAAC;QACb,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAC3B,OAAO,CAAC,EAAE;YAAE,OAAO,CAAC,EAAE,OAAO,CAAA;SAAE,CAAC;KACjC,GAAG,CAAC,CAAC,YAAY,EAAE,sBAAsB,KAAK,sBAAsB,CAAC,GAAG,SAAS;IAgBlF;;;OAGG;IACH,iBAAiB,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,EAAE,OAAO,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO;IA6BzF,yEAAyE;IACzE,iBAAiB,IAAI,IAAI;IAIzB,kEAAkE;IAClE,SAAS,IAAI,OAAO;IAIpB,sFAAsF;IACtF,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAMpC,+GAA+G;IAC/G,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO;IAIjC;;;OAGG;IACH,OAAO,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO;IAM9B;;;;OAIG;IACH,IAAI,IAAI,MAAM,EAAE;IAWhB,+EAA+E;IAC/E,OAAO,CAAC,OAAO;CAgBhB"}
@@ -41,29 +41,28 @@ export class ClearContext {
41
41
  return (notification) => acceptedPlanToolResult(notification, acceptedToolUse);
42
42
  }
43
43
  /**
44
- * A result of the open turn. Returns whether the turn goes on: it is the
45
- * interruption of a plan accepted with clearing the context, or `/clear`'s.
46
- * The fresh context starts with the first.
44
+ * Classifies the result of a plan interruption or a fresh context.
45
+ * A rejected plan ends the turn cancelled. An accepted plan continues after `/clear`.
47
46
  */
48
- holdsResult(message, end) {
47
+ resultDisposition(message, end) {
49
48
  const continuation = this.continuation;
50
49
  if (continuation) {
51
50
  if (continuation.planStarted)
52
- return false;
51
+ return "ended";
53
52
  continuation.carried.push(end);
54
53
  // Without a `conversation_reset` (an older Claude Code), `/clear`'s result shows it ran.
55
54
  this.mounted();
56
- return true;
55
+ return "held";
57
56
  }
58
57
  const interruption = this.interruption;
59
58
  if (!interruption || !isExitPlanInterruptionResult(message, interruption))
60
- return false;
59
+ return "ended";
61
60
  this.interruption = undefined;
62
61
  const reset = this.accepted;
63
62
  this.accepted = undefined;
64
63
  // "No, keep planning": the turn ends.
65
64
  if (!reset || reset.toolUseId !== interruption.toolUseId)
66
- return false;
65
+ return "rejected";
67
66
  const clearUuid = this.newUuid();
68
67
  this.continuation = {
69
68
  reset,
@@ -74,7 +73,7 @@ export class ClearContext {
74
73
  planStarted: false,
75
74
  };
76
75
  this.host.push("/clear", clearUuid);
77
- return true;
76
+ return "held";
78
77
  }
79
78
  /** Claude Code mounted a fresh conversation: the plan goes out in it. */
80
79
  conversationReset() {
@@ -17,7 +17,7 @@
17
17
  * the user to finish there. Building the elicitations and reading the
18
18
  * answers is shared with v1 (`elicitation.ts`).
19
19
  */
20
- import type { CompleteElicitationNotification, CreateElicitationRequest, CreateElicitationResponse } from "@agentclientprotocol/sdk/unstable";
20
+ import { CreateElicitationRequest, type CompleteElicitationNotification, type CreateElicitationResponse } from "@agentclientprotocol/sdk/unstable";
21
21
  import type * as v2 from "@agentclientprotocol/sdk/experimental/v2/unstable";
22
22
  import type { CanUseTool, Options, Query } from "@anthropic-ai/claude-agent-sdk";
23
23
  import type { Logger } from "../logger.js";
@@ -1 +1 @@
1
- {"version":3,"file":"elicitation.d.ts","sourceRoot":"","sources":["../../src/v2/elicitation.ts"],"names":[],"mappings":"AAAA;;;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iB/C,2EAA2E;IAC3E,IAAI,CAAC,YAAY,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,GAAG,IAAI;IAIvD,yFAAyF;IACzF,SAAS,CAAC,aAAa,EAAE,MAAM,GAAG,IAAI;IAStC;;;;OAIG;IACH,sBAAsB,CAAC,WAAW,EAAE,SAAS,MAAM,EAAE,GAAG,IAAI;IAkB5D,gFAAgF;IAChF,KAAK,IAAI,IAAI;IAIb;;;OAGG;IACH,SAAS,IAAI,IAAI;IAOjB;;;;OAIG;IACH,OAAO,CAAC,MAAM;IAkCd;;;;OAIG;IACH,OAAO,CAAC,cAAc;CAevB"}
@@ -148,21 +148,24 @@ export class SessionElicitations {
148
148
  * module doc).
149
149
  */
150
150
  elicit(target, toolSignal, holdAcceptedUrl = false) {
151
- return (request) => target.openRequest(toolSignal, async (signal) => {
152
- const outcome = await elicitUnlessWithdrawn(signal, (signal) => this.host.createElicitation(request, signal));
153
- const elicitationId = request.elicitationId;
154
- if (holdAcceptedUrl &&
155
- request.mode === "url" &&
156
- typeof elicitationId === "string" &&
157
- "response" in outcome &&
158
- outcome.response.action === "accept") {
159
- // Opened before this request settles, so the state stays
160
- // `requires_action`. Claude Code gets the answer at once: the MCP
161
- // server waits for the user's interaction itself.
162
- void target.openRequest(toolSignal, (signal) => this.untilCompleted(elicitationId, signal));
163
- }
164
- return outcome;
165
- });
151
+ return (request) => {
152
+ const toolCallId = "sessionId" in request ? request.toolCallId : undefined;
153
+ const context = typeof toolCallId === "string" ? { type: "tool_call", toolCallId } : { type: "session" };
154
+ return target.openRequest(toolSignal, async (signal) => {
155
+ const outcome = await elicitUnlessWithdrawn(signal, (signal) => this.host.createElicitation(request, signal));
156
+ const elicitationId = request.elicitationId;
157
+ if (holdAcceptedUrl &&
158
+ request.mode === "url" &&
159
+ typeof elicitationId === "string" &&
160
+ "response" in outcome &&
161
+ outcome.response.action === "accept") {
162
+ // Keep the request open after consent. Claude Code gets the answer
163
+ // at once; the MCP server still waits for the user's interaction.
164
+ void target.openRequest(toolSignal, (signal) => this.untilCompleted(elicitationId, signal), context);
165
+ }
166
+ return outcome;
167
+ }, context);
168
+ };
166
169
  }
167
170
  /**
168
171
  * Resolves once Claude Code reports the elicitation `elicitationId`
@@ -56,10 +56,10 @@ export declare class SessionRestarts {
56
56
  setupAnswered(sessionId: string): void;
57
57
  /**
58
58
  * A resume of the active session brought other additional directories:
59
- * the session restarts with `params`, as for a new route (see the module
60
- * doc). Does not wait for it.
59
+ * the session restarts with `params` at a work boundary. The caller waits
60
+ * for the restart before reporting the new roots.
61
61
  */
62
- rootsChanged(sessionId: string, params: SetupParams): void;
62
+ rootsChanged(sessionId: string, params: SetupParams): Promise<void>;
63
63
  /**
64
64
  * The session is no longer active, such as when its query ended. A route
65
65
  * restart that is due does not run.
@@ -1 +1 @@
1
- {"version":3,"file":"restarts.d.ts","sourceRoot":"","sources":["../../src/v2/restarts.ts"],"names":[],"mappings":"AAqDA,OAAO,KAAK,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAG9C,sFAAsF;AACtF,MAAM,MAAM,WAAW,GAAG,EAAE,CAAC,iBAAiB,GAAG,EAAE,CAAC,oBAAoB,GAAG,EAAE,CAAC,kBAAkB,CAAC;AAEjG,2CAA2C;AAC3C,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,sCAAsC;IACtC,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC;IACjD;;;OAGG;IACH,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAClE,2DAA2D;IAC3D,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,E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MAAM,GAAG,IAAI;IAI9C;;;;;;OAMG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS;IAU1D;;;OAGG;IACH,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAItC,yEAAyE;IACzE,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,SAAS;IAIrD;;;;OAIG;IACH,SAAS,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAOlC;;;;;OAKG;IACG,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAS/C,0CAA0C;IAC1C,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAK/B,iGAAiG;IAC3F,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAU9B;;;;;OAKG;YACW,cAAc;IAiD5B;;;;OAIG;IACH,OAAO,CAAC,IAAI;IA8CZ,6EAA6E;IAC7E,OAAO,CAAC,IAAI;IAkBZ,OAAO,CAAC,OAAO;CAKhB"}
@@ -10,8 +10,8 @@
10
10
  * - The route: `providers/set`, `providers/disable`, and an `auth/logout`
11
11
  * that drops a provider or a gateway login. Each live session restarts at
12
12
  * its next turn boundary: no turn is open, no prompt of the session waits
13
- * to go to Claude Code or in its queue, and no subagent runs, background
14
- * ones included. A session at a turn boundary restarts right away, and the
13
+ * to go to Claude Code or in its queue, and no subagent runs.
14
+ * A session at a turn boundary restarts right away, and the
15
15
  * request that changed the route answers once it did. A busy session's
16
16
  * restart is due at its next turn boundary, which the request does not
17
17
  * wait for: until then the session keeps its query, and its prompts go to
@@ -22,10 +22,9 @@
22
22
  * setup response went out.
23
23
  * A session that cannot start again stops: its requests then fail with
24
24
  * what happened, until a resume starts it again.
25
- * - The additional directories: a resume of the active session with other
26
- * ones restarts it as for a new route, and does not wait for it. Claude
27
- * Code reads them once, when its process starts, and the SDK has no call
28
- * that changes them on a running query.
25
+ * - The additional directories: a resume can replace them only at a work
26
+ * boundary. It waits for the restart before reporting success. Claude Code
27
+ * reads workspace roots at process start; flag settings cannot replace them.
29
28
  * - The account, under `--hide-claude-auth` (see `subscription-guard.ts`):
30
29
  * the next prompt that finds the session at a turn boundary restarts it
31
30
  * first, so the guard judges the new account. If the restart fails, such
@@ -35,8 +34,9 @@
35
34
  * The new query starts before the old one ends, so a failed start leaves the
36
35
  * session as it was. The old one ends at its next turn boundary after that,
37
36
  * so work that started on it during the start, such as a turn that Claude
38
- * Code started on its own, is not cut. Its background commands end with it
39
- * (their terminals exit), as when a query ends. The new query starts without
37
+ * Code started on its own, is not cut. Retirement ends background commands
38
+ * and tool tasks with the old query; it does not wait for them to finish.
39
+ * The new query starts without
40
40
  * the effort of the setup's `_meta`, and the client's choices are set again
41
41
  * on it (`SessionConfig.restoreFrom`), which then reports its options in a
42
42
  * `config_option_update`. Ending the old query withdraws its MCP OAuth
@@ -109,12 +109,12 @@ export class SessionRestarts {
109
109
  }
110
110
  /**
111
111
  * A resume of the active session brought other additional directories:
112
- * the session restarts with `params`, as for a new route (see the module
113
- * doc). Does not wait for it.
112
+ * the session restarts with `params` at a work boundary. The caller waits
113
+ * for the restart before reporting the new roots.
114
114
  */
115
- rootsChanged(sessionId, params) {
115
+ async rootsChanged(sessionId, params) {
116
116
  this.track(sessionId, params);
117
- void this.rerouteSession(sessionId);
117
+ await this.rerouteSession(sessionId);
118
118
  }
119
119
  /**
120
120
  * The session is no longer active, such as when its query ended. A route
@@ -1,5 +1,5 @@
1
1
  import { type CompleteElicitationNotification, type CreateElicitationRequest, type CreateElicitationResponse, type ToolCallUpdate } from "@agentclientprotocol/sdk/unstable";
2
- import type * as v2 from "@agentclientprotocol/sdk/experimental/v2/unstable";
2
+ import * as v2 from "@agentclientprotocol/sdk/experimental/v2/unstable";
3
3
  import type { PermissionMode, PermissionResult, Query, SDKUserMessage } from "@anthropic-ai/claude-agent-sdk";
4
4
  import type { Logger } from "../logger.js";
5
5
  import type { ElicitationSupport } from "../elicitation.js";
@@ -17,7 +17,7 @@ import { StoppedWork } from "./stopped-work.js";
17
17
  import { SessionReports } from "./reports.js";
18
18
  import { SessionElicitations } from "./elicitation.js";
19
19
  import { SessionOutput } from "./stream.js";
20
- import { SessionTasks, type RequestTarget } from "./tasks.js";
20
+ import { SessionTasks, type RequestTarget, type RequestContext } from "./tasks.js";
21
21
  /** What a session needs of its connection. */
22
22
  export interface SessionConnection {
23
23
  readonly logger: Logger;
@@ -48,6 +48,8 @@ export declare class V2Session implements RequestTarget {
48
48
  private readonly input;
49
49
  /** The prompts not inserted yet, by uuid. */
50
50
  private readonly pending;
51
+ /** Priority prompts whose reply still belongs to the open foreground work. */
52
+ private readonly steeredPrompts;
51
53
  /** Whether a turn of Claude Code is open: the session's foreground work. */
52
54
  private foreground;
53
55
  /** The prompt whose `started` frame came last in the open turn. */
@@ -180,7 +182,7 @@ export declare class V2Session implements RequestTarget {
180
182
  * gets that prompt's outcome, and a retry of an inserted one its
181
183
  * `messageId`, and neither goes to Claude Code again.
182
184
  */
183
- prompt(params: v2.PromptRequest, guard?: (query: Query) => Promise<void> | undefined): Promise<v2.PromptResponse>;
185
+ prompt(params: v2.PromptRequest, signal: AbortSignal, guard?: (query: Query) => Promise<void> | undefined): Promise<v2.PromptResponse>;
184
186
  /**
185
187
  * Sends the prompt to Claude Code as the message `attempt.uuid` (see
186
188
  * {@link prompt}).
@@ -198,10 +200,13 @@ export declare class V2Session implements RequestTarget {
198
200
  * Whether no turn is open and no prompt waits in Claude Code's queue. With
199
201
  * `restart`, for a restart of the query (see `restarts.ts`), also no
200
202
  * prompt of the session waits to go to Claude Code, which the restart would
201
- * answer with -32800, and no subagent runs. Without it, for the adapter's
202
- * `/remote-control`, whose own prompt waits for the boundary.
203
+ * answer with -32800. No live subagent remains. Background commands and
204
+ * tool tasks end when the old query retires. Without it, for
205
+ * the adapter's `/remote-control`, whose own prompt waits for the boundary.
203
206
  */
204
207
  atTurnBoundary(restart: boolean): boolean;
208
+ /** Whether a resume can replace roots without ending work or withdrawing an input request. */
209
+ canReplaceRoots(): boolean;
205
210
  /**
206
211
  * Resolves `true` at the next turn boundary (see {@link atTurnBoundary}),
207
212
  * at once if the session is at one, and `false` once the session closed.
@@ -276,7 +281,7 @@ export declare class V2Session implements RequestTarget {
276
281
  target(agentId: string | undefined): Promise<RequestTarget>;
277
282
  requestPermission(request: v2.RequestPermissionRequest, toolSignal: AbortSignal): Promise<v2.RequestPermissionResponse>;
278
283
  /** Runs `send` as an open request of this session (see {@link RequestTarget.openRequest}). */
279
- openRequest<T>(toolSignal: AbortSignal, send: (signal: AbortSignal) => Promise<T>): Promise<T>;
284
+ openRequest<T>(toolSignal: AbortSignal, send: (signal: AbortSignal) => Promise<T>, context?: RequestContext): Promise<T>;
280
285
  modeChanged(mode: PermissionMode): void;
281
286
  prePlanMode(): string | undefined;
282
287
  /** A fresh context continues the open turn: only the root's plan in a turn
@@ -396,12 +401,9 @@ export declare class V2Session implements RequestTarget {
396
401
  * that prompt's.
397
402
  */
398
403
  private closeTurn;
399
- /**
400
- * While the turn waits on subagents, it is blocked when each of them is
401
- * (see `SessionTasks.foregroundBlocked`). Otherwise by the session's own
402
- * open requests.
403
- */
404
+ /** Reports waiting only when no foreground tool or subagent can progress. */
404
405
  private foregroundState;
406
+ private foregroundToolsCanProgress;
405
407
  /**
406
408
  * Reports the foreground state when it changed. `withdrawnByCancel`: the
407
409
  * change is the end of a request that a cancel withdrew, so the work is
@@ -412,6 +414,9 @@ export declare class V2Session implements RequestTarget {
412
414
  private send;
413
415
  /** Sends an update of the session or of a child, with its `background` list. */
414
416
  private sendNotification;
417
+ /** Withdraws one pending prompt without interrupting the running work. */
418
+ private withdrawPrompt;
419
+ private takePrompt;
415
420
  /** Fails the prompt `uuid` if it is not answered yet. Returns whether it was pending. */
416
421
  private failPrompt;
417
422
  private failPending;
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/v2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