@agentclientprotocol/claude-agent-acp 0.108.1-preview.3 → 0.108.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.
package/README.md CHANGED
@@ -74,6 +74,10 @@ with replay, which `replay_complete` ends, `session/close`, `session/prompt`, `s
74
74
  compaction, display terminals for commands, permission requests, elicitation, providers, auth, and
75
75
  [subagents](docs/subagent-sessions.md). Steering is v1 only for now.
76
76
 
77
+ Two parts of the draft are not served yet. `session/prompt` takes an `idempotencyKey` and does not
78
+ use it, so a prompt that a client sends again with the same key is inserted again. The adapter
79
+ announces no session cursors, so `session/fork` with a `cursorId` fails with `-32602`.
80
+
77
81
  v2 is served by the v2 agent in `src/v2/`, which runs straight on Claude
78
82
  Code instead of translating to v1. A v2 client that declares JetBrains AIR
79
83
  (`_meta.jetbrains.air`) also gets the AIR extensions that ACP v2 does not cover.
@@ -10,6 +10,13 @@ type ForkSessionDependencies = {
10
10
  message?: unknown;
11
11
  }) => string | undefined;
12
12
  };
13
+ /**
14
+ * Copies the transcript of `params.sessionId` into a new session.
15
+ *
16
+ * Fails with invalid params (-32602) for a `cursorId`: the agent sends no
17
+ * `cursor_update`, so it issued no cursor, and ACP forbids forking the whole
18
+ * session in its place.
19
+ */
13
20
  export declare function forkSession(params: ForkSessionRequest, dependencies: ForkSessionDependencies): Promise<ForkSessionResponse>;
14
21
  export {};
15
22
  //# sourceMappingURL=fork-session.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fork-session.d.ts","sourceRoot":"","sources":["../src/fork-session.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EAEpB,MAAM,mCAAmC,CAAC;AAyB3C,KAAK,uBAAuB,GAAG;IAC7B,mBAAmB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClD,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;KAAE,CAAC;IAC/C,oBAAoB,EAAE,CAAC,OAAO,EAAE;QAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,KAAK,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AA6IF,wBAAsB,WAAW,CAC/B,MAAM,EAAE,kBAAkB,EAC1B,YAAY,EAAE,uBAAuB,GACpC,OAAO,CAAC,mBAAmB,CAAC,CAS9B"}
1
+ {"version":3,"file":"fork-session.d.ts","sourceRoot":"","sources":["../src/fork-session.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EAEpB,MAAM,mCAAmC,CAAC;AAyB3C,KAAK,uBAAuB,GAAG;IAC7B,mBAAmB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClD,MAAM,CAAC,EAAE;QAAE,GAAG,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,CAAA;KAAE,CAAC;IAC/C,oBAAoB,EAAE,CAAC,OAAO,EAAE;QAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QACrB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,KAAK,MAAM,GAAG,SAAS,CAAC;CAC1B,CAAC;AA6IF;;;;;;GAMG;AACH,wBAAsB,WAAW,CAC/B,MAAM,EAAE,kBAAkB,EAC1B,YAAY,EAAE,uBAAuB,GACpC,OAAO,CAAC,mBAAmB,CAAC,CAe9B"}
@@ -105,7 +105,17 @@ function isUnknownSessionError(error, sessionId) {
105
105
  return (error.message === `Session ${sessionId} not found` ||
106
106
  error.message === `Invalid sessionId: ${sessionId}`);
107
107
  }
108
+ /**
109
+ * Copies the transcript of `params.sessionId` into a new session.
110
+ *
111
+ * Fails with invalid params (-32602) for a `cursorId`: the agent sends no
112
+ * `cursor_update`, so it issued no cursor, and ACP forbids forking the whole
113
+ * session in its place.
114
+ */
108
115
  export async function forkSession(params, dependencies) {
116
+ if (params.cursorId != null) {
117
+ throw RequestError.invalidParams({ cursorId: params.cursorId }, `Session ${params.sessionId} has no cursor ${params.cursorId}: this agent announces no session cursors. Send the request without \`cursorId\` to fork the whole session.`);
118
+ }
109
119
  try {
110
120
  return await forkTranscript(params, dependencies);
111
121
  }
@@ -156,8 +156,9 @@ type Turn = {
156
156
  * PREVIOUS turn's followup chain while a later turn happens to be held
157
157
  * is attributed to the holder — extending that hold behind a foreign
158
158
  * chain. Bounded: the hold still ends at drain, hand-off, or cancel.
159
- * The set is also kept for a client with `backgroundSubagents`, but no
160
- * hold reads it there (see `deferredSettle`). */
159
+ * The set is also kept for a client that gets no hold (see
160
+ * `endsTurnsWithLiveSubagents`), but no hold reads it there (see
161
+ * `deferredSettle`). */
161
162
  spawnedTaskIds?: Set<string>;
162
163
  /** Set instead of settling when the turn's terminal result arrives while
163
164
  * subagents it spawned are still live (`spawnedTaskIds` ∩
@@ -168,8 +169,9 @@ type Turn = {
168
169
  * issue #866), and the model's task-notification followup summary all
169
170
  * land inside the turn.
170
171
  *
171
- * An ACP v1 AIR client that declares `backgroundSubagents` gets no hold:
172
- * this field stays unset, and the turn settles at its result. AIR keeps
172
+ * An ACP v1 AIR client that declares `backgroundSubagents`, and an ACP v1
173
+ * client in the `rfd` form of subagent sessions, get no hold: this field
174
+ * stays unset, and the turn settles at its result. Such a client keeps
173
175
  * listening after the prompt response, so the subagent updates, their
174
176
  * permission requests and elicitations, and the followup summary go out
175
177
  * after it, with the same routing. A held turn hides the end of the
@@ -662,13 +664,13 @@ export type Session = {
662
664
  * `turnAwaitingSubagents` (with `spawnedTaskIds`) to decide whether a
663
665
  * turn's settlement is deferred (see `Turn.deferredSettle`), so the
664
666
  * subagents' post-result output and permission requests stay inside the
665
- * turn (issues #864/#866). A client with `backgroundSubagents` gets no
666
- * such hold. Its subagent requests keep this attribution after the
667
- * prompt response. Deliberately false for non-subagent background
668
- * tasks (e.g. a `run_in_background` dev server): those can outlive every
669
- * turn, and the model's contract with them is a wake-on-exit
670
- * notification, not a turn-scoped drain — a hold must NEVER wait on a
671
- * shell.
667
+ * turn (issues #864/#866). A client that gets no hold (see
668
+ * `endsTurnsWithLiveSubagents`) keeps this attribution for its subagent
669
+ * requests after the prompt response. Deliberately false for
670
+ * non-subagent background tasks (e.g. a `run_in_background` dev server):
671
+ * those can outlive every turn, and the model's contract with them is a
672
+ * wake-on-exit notification, not a turn-scoped drain — a hold must NEVER
673
+ * wait on a shell.
672
674
  *
673
675
  * `endedPerLevel` — a `background_tasks_changed` payload did not include
674
676
  * this subagent entry. The level's universe is BACKGROUND tasks only, so
@@ -727,9 +729,9 @@ export type Session = {
727
729
  * agent id without a new `task_started` (a running `task_updated` patch or
728
730
  * a SendMessage `resumedAgentId`). The resume signal puts the subagent back
729
731
  * into `liveBackgroundTasks` from this record, so the resuming turn holds
730
- * and its permission requests keep their attribution. With
731
- * `backgroundSubagents` the resuming turn does not hold, and the
732
- * attribution stays the same. Bounded by
732
+ * and its permission requests keep their attribution. For a client that
733
+ * gets no hold (see `endsTurnsWithLiveSubagents`) the resuming turn does
734
+ * not hold, and the attribution stays the same. Bounded by
733
735
  * `MAX_RESUMABLE_SUBAGENTS`, oldest first. */
734
736
  resumableSubagents?: Map<string, {
735
737
  parentToolUseId?: string;
@@ -913,8 +915,10 @@ export declare class ClaudeAcpAgent {
913
915
  private readonly sessionIndex;
914
916
  /**
915
917
  * Whether a turn ends at its result while background subagents that it
916
- * spawned or resumed still run. Only an AIR client that declares
917
- * `backgroundSubagents` gets this. Every other client keeps the hold of
918
+ * spawned or resumed still run. An AIR client that declares
919
+ * `backgroundSubagents` gets this, and so does a client in the `rfd` form
920
+ * of subagent sessions: the RFD has the client keep receiving child events
921
+ * after the parent's prompt response. Every other client keeps the hold of
918
922
  * `Turn.deferredSettle`.
919
923
  */
920
924
  private endsTurnsWithLiveSubagents;
@@ -1497,7 +1501,7 @@ export declare class ClaudeAcpAgent {
1497
1501
  *
1498
1502
  * Call it in the same synchronous step as the handler's `return`: an
1499
1503
  * `await` between them would let the timer run before the response. The ACP
1500
- * SDK (2.7.0) gives a request handler no responder and no after-response
1504
+ * SDK (2.8.0) gives a request handler no responder and no after-response
1501
1505
  * hook, so the order rests on two things that its source shows and its API
1502
1506
  * does not promise. `registerAppRequest` queues the response in the
1503
1507
  * microtask that follows the handler's return, with no macrotask in
@@ -1 +1 @@
1
- {"version":3,"file":"acp-agent.d.ts","sourceRoot":"","sources":["../../src/v1/acp-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EACR,mBAAmB,EAEnB,kBAAkB,EAClB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAGlB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAElB,oBAAoB,EACpB,qBAAqB,EAErB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EAEb,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EAEpB,kBAAkB,EAClB,mBAAmB,EAEnB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAEhB,6BAA6B,EAC7B,8BAA8B,EAC9B,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EAEtB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAc,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5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sH;YACxG,qBAAqB;IA8DnC,OAAO,CAAC,4BAA4B;IAcpC,2FAA2F;IAC3F,OAAO,CAAC,iCAAiC;CAyC1C;AAuQD;;;;;;;;;;;oEAWoE;AACpE,wBAAsB,yBAAyB,CAC7C,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC,EAC3D,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,WAAW,GAClB,OAAO,CAAC,cAAc,CAAC,CAczB;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,MAAM,GAAG,SAAS,EAC1B,OAAO,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,GACvC,QAAQ,CAkDV"}
@@ -204,8 +204,8 @@ const AUTONOMOUS_CYCLE = "autonomous-cycle";
204
204
  /** Whether this turn's terminal result arrived but its settlement is being
205
205
  * held for background subagents it spawned (see Turn.deferredSettle). The
206
206
  * single spelling of the hold predicate, shared by the consumer's settle
207
- * lanes and cancel(). Always false for a client with `backgroundSubagents`,
208
- * because no turn of that client is held. */
207
+ * lanes and cancel(). Always false for a client that gets no hold (see
208
+ * `endsTurnsWithLiveSubagents`), because no turn of that client is held. */
209
209
  function isHeldOpen(turn) {
210
210
  return turn != null && turn.deferredSettle !== undefined && !turn.settled;
211
211
  }
@@ -418,12 +418,15 @@ export class ClaudeAcpAgent {
418
418
  });
419
419
  /**
420
420
  * Whether a turn ends at its result while background subagents that it
421
- * spawned or resumed still run. Only an AIR client that declares
422
- * `backgroundSubagents` gets this. Every other client keeps the hold of
421
+ * spawned or resumed still run. An AIR client that declares
422
+ * `backgroundSubagents` gets this, and so does a client in the `rfd` form
423
+ * of subagent sessions: the RFD has the client keep receiving child events
424
+ * after the parent's prompt response. Every other client keeps the hold of
423
425
  * `Turn.deferredSettle`.
424
426
  */
425
427
  endsTurnsWithLiveSubagents() {
426
- return clientSupportsAirCapability(this.clientCapabilities, AIR_BACKGROUND_SUBAGENTS_CAPABILITY);
428
+ return (subagentForm(this.clientCapabilities) === "rfd" ||
429
+ clientSupportsAirCapability(this.clientCapabilities, AIR_BACKGROUND_SUBAGENTS_CAPABILITY));
427
430
  }
428
431
  constructor(client, logger) {
429
432
  this.sessions = {};
@@ -1732,10 +1735,11 @@ export class ClaudeAcpAgent {
1732
1735
  // settles, since an interrupted subagent stream (keyed by a
1733
1736
  // parent_tool_use_id that never recurs) has no boundary event of its own.
1734
1737
  const streamedToolInputs = new Map();
1735
- /** Sweeps `streamedToolInputs` when a turn ends. A turn of a client with
1736
- * `backgroundSubagents` can end while its subagents still stream tool
1737
- * input, so the sweep keeps the lanes of live subagents, unless the turn
1738
- * ends cancelled. Their own message boundaries drop them later. */
1738
+ /** Sweeps `streamedToolInputs` when a turn ends. A turn of a client that
1739
+ * gets no hold (see `endsTurnsWithLiveSubagents`) can end while its
1740
+ * subagents still stream tool input, so the sweep keeps the lanes of
1741
+ * live subagents, unless the turn ends cancelled. Their own message
1742
+ * boundaries drop them later. */
1739
1743
  const sweepStreamedToolInputs = (turnStopReason) => {
1740
1744
  if (turnStopReason === "cancelled" || !this.endsTurnsWithLiveSubagents()) {
1741
1745
  streamedToolInputs.clear();
@@ -2264,8 +2268,8 @@ export class ClaudeAcpAgent {
2264
2268
  };
2265
2269
  /** Registers a live background task (see `liveBackgroundTasks`). A
2266
2270
  * subagent is also recorded on the active turn, so that turn holds until
2267
- * the subagent settles (see `Turn.spawnedTaskIds`). A client with
2268
- * `backgroundSubagents` gets no hold (see `turnAwaitingSubagents`).
2271
+ * the subagent settles (see `Turn.spawnedTaskIds`), unless the client
2272
+ * gets no hold (see `turnAwaitingSubagents`).
2269
2273
  * Its requests may already be open, and where it runs decides
2270
2274
  * whether they block the foreground work, so that is checked again. */
2271
2275
  const registerLiveTask = (taskId, parentToolUseId, isSubagent, placement = {}) => {
@@ -2292,9 +2296,9 @@ export class ClaudeAcpAgent {
2292
2296
  };
2293
2297
  /** Registers a settled subagent again when the SDK resumes it without a
2294
2298
  * new `task_started`. The active turn is the one that resumed it, so it
2295
- * holds until the subagent settles again, unless the client declared
2296
- * `backgroundSubagents`. A repeated resume signal finds the subagent live
2297
- * and changes nothing. */
2299
+ * holds until the subagent settles again, unless the client gets no
2300
+ * hold (see `endsTurnsWithLiveSubagents`). A repeated resume signal
2301
+ * finds the subagent live and changes nothing. */
2298
2302
  const resumeLiveTask = (taskId) => {
2299
2303
  if (session.liveBackgroundTasks.has(taskId))
2300
2304
  return;
@@ -2306,10 +2310,11 @@ export class ClaudeAcpAgent {
2306
2310
  /** Whether any background subagent this turn spawned is still live —
2307
2311
  * while true, the turn's settlement stays deferred so the subagent's
2308
2312
  * output and permission requests land inside it (see
2309
- * Turn.deferredSettle). Always false for a client that declared
2310
- * `backgroundSubagents`: its turns end at their result, and the subagent
2311
- * traffic goes out after the prompt response. This is the single gate of
2312
- * the hold, so no turn of such a client is ever held open. */
2313
+ * Turn.deferredSettle). Always false for a client that gets no hold
2314
+ * (see `endsTurnsWithLiveSubagents`): its turns end at their result, and
2315
+ * the subagent traffic goes out after the prompt response. This is the
2316
+ * single gate of the hold, so no turn of such a client is ever held
2317
+ * open. */
2313
2318
  const turnAwaitingSubagents = (turn) => {
2314
2319
  if (this.endsTurnsWithLiveSubagents() || !turn.spawnedTaskIds?.size) {
2315
2320
  return false;
@@ -2343,7 +2348,8 @@ export class ClaudeAcpAgent {
2343
2348
  * turn that can have spawned subagents must route through here: a site
2344
2349
  * calling settleActive directly bypasses the hold and re-opens the
2345
2350
  * out-of-turn permission deadlock (issue #866) through its lane. For a
2346
- * client with `backgroundSubagents` this always settles now. */
2351
+ * client that gets no hold (see `endsTurnsWithLiveSubagents`) this
2352
+ * always settles now. */
2347
2353
  const settleOrDefer = async (outcome, { steeredWork = true } = {}) => {
2348
2354
  // No result ends a steered turn: the steer aborted the cycle this result
2349
2355
  // may belong to, and the steered one is still to come. Record the outcome
@@ -4176,8 +4182,9 @@ export class ClaudeAcpAgent {
4176
4182
  await settleOrDefer({ ...heldTurn.deferredSettle, stopReason: "cancelled" });
4177
4183
  break;
4178
4184
  }
4179
- // The same followup with no held turn: the client declared
4180
- // `backgroundSubagents`, or the hold already ended. A user
4185
+ // The same followup with no held turn: the client gets no
4186
+ // hold (see `endsTurnsWithLiveSubagents`), or the hold already
4187
+ // ended. A user
4181
4188
  // turn that took the cycle over owns the request (see
4182
4189
  // `requestOwnerTurn`), so it continues the accepted plan in a
4183
4190
  // fresh context, as the user lane does. With no such turn
@@ -4444,9 +4451,10 @@ export class ClaudeAcpAgent {
4444
4451
  // permission requests, and the model's promised summary all land
4445
4452
  // inside the turn. `session/cancel` and the next prompt's echo
4446
4453
  // hand-off still settle a deferred turn early, so a long-running
4447
- // subagent never holds the prompt hostage. A client with
4448
- // `backgroundSubagents` gets no hold: the turn settles here, and
4449
- // the subagent traffic goes out after the prompt response.
4454
+ // subagent never holds the prompt hostage. A client that gets
4455
+ // no hold (see `endsTurnsWithLiveSubagents`) has the turn settle
4456
+ // here, and the subagent traffic goes out after the prompt
4457
+ // response.
4450
4458
  //
4451
4459
  // is_error/auth already settled via failActive (activeTurn is null
4452
4460
  // then, so both branches no-op); a cancelled turn settles at
@@ -6792,9 +6800,10 @@ export class ClaudeAcpAgent {
6792
6800
  defaultToNo,
6793
6801
  availableModes: this.sessionModes.availableModeIds(session.modes),
6794
6802
  prePlanMode: session.prePlanMode,
6795
- // A fresh context continues the ACP turn that owns the request. With
6796
- // `backgroundSubagents` a followup cycle can ask out of a turn, and
6797
- // then there is no turn to continue.
6803
+ // A fresh context continues the ACP turn that owns the request. For
6804
+ // a client that gets no hold (see `endsTurnsWithLiveSubagents`) a
6805
+ // followup cycle can ask out of a turn, and then there is no turn to
6806
+ // continue.
6798
6807
  allowContextReset: !this.endsTurnsWithLiveSubagents() ||
6799
6808
  this.requestOwnerTurn(sessionId, session) !== undefined,
6800
6809
  showClearContextOnPlanAccept: session.settingsManager.getShowClearContextOnPlanAccept(session.effortSettingsOverride),
@@ -6999,7 +7008,7 @@ export class ClaudeAcpAgent {
6999
7008
  *
7000
7009
  * Call it in the same synchronous step as the handler's `return`: an
7001
7010
  * `await` between them would let the timer run before the response. The ACP
7002
- * SDK (2.7.0) gives a request handler no responder and no after-response
7011
+ * SDK (2.8.0) gives a request handler no responder and no after-response
7003
7012
  * hook, so the order rests on two things that its source shows and its API
7004
7013
  * does not promise. `registerAppRequest` queues the response in the
7005
7014
  * microtask that follows the handler's return, with no macrotask in
@@ -1 +1 @@
1
- {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/v2/agent.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAYxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AA8D3C,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;AAYxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AA+D3C,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"}
package/dist/v2/agent.js CHANGED
@@ -43,6 +43,7 @@ import { airInitializeMeta, airSupport, NO_AIR } from "./air.js";
43
43
  import { V2Auth } from "./auth.js";
44
44
  import { subagentHooks } from "./child-config.js";
45
45
  import { modelSwitchHook, SessionConfig } from "./config.js";
46
+ import { v2ElicitationRequest } from "./elicitation.js";
46
47
  import { fileChangePreviewHook } from "./file-preview.js";
47
48
  import { canUseTool, denyingStoppedWork } from "./permissions.js";
48
49
  import { ReplayHolds } from "./replay-hold.js";
@@ -209,10 +210,10 @@ class V2Agent {
209
210
  createElicitation(request, signal) {
210
211
  // An elicitation of a request, not of a session, names no session.
211
212
  const sessionId = request.sessionId;
212
- // The v1 types accept a property schema with any tag; the v2 types accept
213
- // one only in a received value. An MCP server's schema is relayed
214
- // unchanged, as on v1, so this cast does not check it.
215
- return this.afterReplay(typeof sessionId === "string" ? sessionId : undefined, signal, () => this.ctx.request(v2.methods.client.elicitation.create, request, { cancellationSignal: signal, stopWaitingOnCancel: true }));
213
+ return this.afterReplay(typeof sessionId === "string" ? sessionId : undefined, signal, () => this.ctx.request(v2.methods.client.elicitation.create, v2ElicitationRequest(request), {
214
+ cancellationSignal: signal,
215
+ stopWaitingOnCancel: true,
216
+ }));
216
217
  }
217
218
  completeElicitation(params) {
218
219
  return this.ctx.notify(v2.methods.client.elicitation.complete, params);
@@ -432,6 +433,10 @@ class V2Agent {
432
433
  release?.();
433
434
  // A notice is not history, so it follows `replay_complete`.
434
435
  subagents?.reportMissingHistory();
436
+ // A `subagent_update` after its parent's `replay_complete` is current,
437
+ // and so is a `state_update` of the child: the replayed children's
438
+ // current states go out here, before the snapshot and the response.
439
+ subagents?.currentStates();
435
440
  }
436
441
  // The current title, after the replay and before the state.
437
442
  await session.reports.publishTitle();
@@ -439,20 +444,6 @@ class V2Agent {
439
444
  this.send(notification);
440
445
  const response = await this.setupFields(session);
441
446
  this.afterSetup(session, params);
442
- // A replayed child's state that comes before the response is history to
443
- // the client, also after the child's `replay_complete`: the children's
444
- // current states follow the response. The ACP SDK (2.7.0)
445
- // gives a request handler no responder and no after-response hook, so the
446
- // order rests on two things that its source shows and its API does not
447
- // promise. `registerAppRequest` queues the response in the microtask that
448
- // follows this handler's return, with no macrotask in between, so the
449
- // timer runs after it. And `Connection.sendMessage` writes in call order,
450
- // so what the timer sends is written after the response. The timer is
451
- // set in the same synchronous step as the `return`: an `await` between
452
- // them would let it run first. The v1 core's `afterSetupResponse` relies
453
- // on the same.
454
- if (subagents)
455
- setTimeout(() => subagents.afterResponse(), 0);
456
447
  return response;
457
448
  }
458
449
  /**
@@ -18,10 +18,24 @@
18
18
  * answers is shared with v1 (`elicitation.ts`).
19
19
  */
20
20
  import type { CompleteElicitationNotification, CreateElicitationRequest, CreateElicitationResponse } from "@agentclientprotocol/sdk/unstable";
21
+ import type * as v2 from "@agentclientprotocol/sdk/experimental/v2/unstable";
21
22
  import type { CanUseTool, Options, Query } from "@anthropic-ai/claude-agent-sdk";
22
23
  import type { Logger } from "../logger.js";
23
24
  import { type ElicitationSupport } from "../elicitation.js";
24
25
  import type { RequestTarget } from "./tasks.js";
26
+ /**
27
+ * The v2 form of an elicitation that the shared module built in v1 types.
28
+ *
29
+ * A form's string properties go without `pattern`: v1 has the keyword, and v2
30
+ * removed it. Only an MCP server's schema can carry one, since it is relayed
31
+ * as the server sent it. The server still gets the answer as the client sent
32
+ * it, and checks it against its own schema.
33
+ *
34
+ * Nothing else changes, and the cast does not check the rest: the v1 types
35
+ * accept a property schema with any `type`, and the v2 types accept an
36
+ * unknown one only in a received value.
37
+ */
38
+ export declare function v2ElicitationRequest(request: CreateElicitationRequest): v2.CreateElicitationRequest;
25
39
  /** What the elicitations need of the connection and the session. */
26
40
  export interface ElicitationHost {
27
41
  readonly sessionId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"elicitation.d.ts","sourceRoot":"","sources":["../../src/v2/elicitation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EACV,+BAA+B,EAC/B,wBAAwB,EACxB,yBAAyB,EAC1B,MAAM,mCA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AI;IAIb;;;OAGG;IACH,SAAS,IAAI,IAAI;IAOjB;;;;OAIG;IACH,OAAO,CAAC,MAAM;IAyBd;;;;OAIG;IACH,OAAO,CAAC,cAAc;CAevB"}
@@ -1,5 +1,34 @@
1
1
  import { answerAskUserQuestion, answerMcpElicitation, answerUserDialog, elicitUnlessWithdrawn, REFUSAL_FALLBACK_DIALOG_KIND, } from "../elicitation.js";
2
2
  import { startMcpServerAuthentication } from "../mcp-oauth.js";
3
+ /**
4
+ * The v2 form of an elicitation that the shared module built in v1 types.
5
+ *
6
+ * A form's string properties go without `pattern`: v1 has the keyword, and v2
7
+ * removed it. Only an MCP server's schema can carry one, since it is relayed
8
+ * as the server sent it. The server still gets the answer as the client sent
9
+ * it, and checks it against its own schema.
10
+ *
11
+ * Nothing else changes, and the cast does not check the rest: the v1 types
12
+ * accept a property schema with any `type`, and the v2 types accept an
13
+ * unknown one only in a received value.
14
+ */
15
+ export function v2ElicitationRequest(request) {
16
+ if (request.mode !== "form")
17
+ return request;
18
+ // The custom modes of the union keep `mode` a string, so it does not narrow.
19
+ const { requestedSchema } = request;
20
+ const properties = Object.fromEntries(Object.entries(requestedSchema.properties ?? {}).map(([name, property]) => {
21
+ if (property.type !== "string" || !("pattern" in property))
22
+ return [name, property];
23
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
24
+ const { pattern, ...rest } = property;
25
+ return [name, rest];
26
+ }));
27
+ return {
28
+ ...request,
29
+ requestedSchema: { ...requestedSchema, properties },
30
+ };
31
+ }
3
32
  export class SessionElicitations {
4
33
  host;
5
34
  /** Whether Claude Code takes `annotations[question].unanswered` (`ask_user_question_unanswered_v1`). */
@@ -20,17 +20,21 @@
20
20
  * history follows its launch, so a call to a child from its parent is always
21
21
  * delivered first. Any other SendMessage call stays a tool call.
22
22
  *
23
- * Every child's end goes out on its parent at the end of the replay. Each
24
- * announced child then gets its own `replay_complete`, as v2 requires, and
25
- * its end once on its own stream: v2 forbids replaying a child's past
26
- * `running` as current activity. These states are history to the client, so
27
- * each child's current state goes out again after the response
28
- * ({@link afterResponse}).
29
- * A child that the live session still tracks, on a resume of the active
30
- * session, gets its current state from the resume snapshot instead
31
- * (`SessionTasks.currentState`). After the response, a child whose
32
- * configuration is not the `model` that the replay sent, such as a live child
33
- * whose hooks reported its mode, gets it again.
23
+ * Every child's end goes out on its parent at the end of the replay, and
24
+ * each announced child then gets its own `replay_complete`, as v2 requires.
25
+ * These ends are history to the client: a `subagent_update` is an update of
26
+ * the child's parent, so the parent's `replay_complete` is what separates a
27
+ * replayed one from a current one. A child's own stream gets no state in the
28
+ * replay: v2 forbids replaying a past `running` as current activity.
29
+ *
30
+ * Each child's current state goes out after the root's `replay_complete`,
31
+ * which follows every other one, and before the resume's state snapshot
32
+ * ({@link currentStates}): on its parent and on its own stream. A child that
33
+ * works in the live session, on a resume of the active session, gets its
34
+ * current state from the resume snapshot instead
35
+ * (`SessionTasks.currentState`). A child whose configuration is not the
36
+ * `model` that the replay sent, such as a live child whose hooks reported its
37
+ * mode, gets it again then too.
34
38
  *
35
39
  * A launch without metadata has no known id, so it is not announced: the RFD
36
40
  * forbids inventing one. Its Agent call stays an ordinary tool call of the
@@ -56,8 +60,8 @@ export interface ReplayHost {
56
60
  }
57
61
  /** What the live session knows of the replayed children. */
58
62
  export interface LiveChildren {
59
- /** Whether the live session tracks the child session `sessionId`. */
60
- tracks(sessionId: string): boolean;
63
+ /** Whether the child session `sessionId` works in the live session now. */
64
+ working(sessionId: string): boolean;
61
65
  /** The configuration that the client last got for the live child `sessionId`, if any. */
62
66
  configuration(sessionId: string): SessionConfigOption[] | undefined;
63
67
  }
@@ -82,9 +86,8 @@ export declare class SubagentReplay {
82
86
  /**
83
87
  * Ends the replay of the children. Every child's end goes out on its
84
88
  * parent, whose history it is. Then each announced child gets its
85
- * `replay_complete`, also one without history, and its end once on its own
86
- * stream. A `state_update` is not history, so it follows the child's
87
- * `replay_complete`.
89
+ * `replay_complete`, also one without history. The caller sends the root's
90
+ * `replay_complete` next, then the current states ({@link currentStates}).
88
91
  */
89
92
  finish(): void;
90
93
  /**
@@ -93,15 +96,22 @@ export declare class SubagentReplay {
93
96
  */
94
97
  reportMissingHistory(): void;
95
98
  /**
96
- * After the response, as the v1 core sends them (`currentStates`): the
97
- * current state of each replayed child that the live session does not
98
- * track, since its process is gone, so its replayed end. A `cwd` that is
99
- * gone, such as a worktree that Claude Code removed, is cleared. Then each
100
- * replayed child's configuration, when it is not the `model` that the
101
- * replay sent: the live child's, else the model of its latest response, by
102
- * the session's model list.
99
+ * What is current of the replayed children. The caller sends it after the
100
+ * root's `replay_complete`, so every child's parent has sent its own, and
101
+ * before the resume's state snapshot.
102
+ *
103
+ * The current state of each replayed child that does not work in the live
104
+ * session: its work ended, or its process is gone, so its replayed end, on
105
+ * its parent and on its own stream. A `cwd` that is gone, such as a
106
+ * worktree that Claude Code removed, is cleared. Then each replayed child's
107
+ * configuration, when it is not the `model` that the replay sent: the live
108
+ * child's, else the model of its latest response, by the session's model
109
+ * list.
110
+ *
111
+ * The v1 core sends the same after the response (`currentStates`): on v1
112
+ * the response is what separates a replayed child state from a current one.
103
113
  */
104
- afterResponse(): void;
114
+ currentStates(): void;
105
115
  private sendConfiguration;
106
116
  private sendEndState;
107
117
  private ownerHooks;
@@ -1 +1 @@
1
- {"version":3,"file":"subagent-replay.d.ts","sourceRoot":"","sources":["../../src/v2/subagent-replay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,KAAK,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAOL,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAmBhC,OAAO,K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;IACH;;;;;;;OAOG;IACH,OAAO,CAAC,KAAK;IAyDb;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAcjB,0FAA0F;IAC1F,OAAO,CAAC,QAAQ;IAiBhB,OAAO,CAAC,QAAQ;IAiChB,qFAAqF;IACrF,OAAO,CAAC,SAAS;IAcjB;;;;;;;OAOG;IACH,OAAO,CAAC,YAAY;IAgBpB;;;;;;;OAOG;IACH,OAAO,CAAC,YAAY;IAwBpB,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,KAAK;CAKd"}
@@ -5,7 +5,7 @@ import { taskNotificationsOf } from "../task-notifications.js";
5
5
  import { REPLAY_COMPLETE } from "./setup.js";
6
6
  import { SessionOutput } from "./stream.js";
7
7
  import { sameDirectory } from "./tasks.js";
8
- const NO_LIVE_CHILDREN = { tracks: () => false, configuration: () => undefined };
8
+ const NO_LIVE_CHILDREN = { working: () => false, configuration: () => undefined };
9
9
  export class SubagentReplay {
10
10
  host;
11
11
  history;
@@ -53,9 +53,8 @@ export class SubagentReplay {
53
53
  /**
54
54
  * Ends the replay of the children. Every child's end goes out on its
55
55
  * parent, whose history it is. Then each announced child gets its
56
- * `replay_complete`, also one without history, and its end once on its own
57
- * stream. A `state_update` is not history, so it follows the child's
58
- * `replay_complete`.
56
+ * `replay_complete`, also one without history. The caller sends the root's
57
+ * `replay_complete` next, then the current states ({@link currentStates}).
59
58
  */
60
59
  finish() {
61
60
  const announced = [...this.transcript.children.values()].filter((child) => child.announced);
@@ -71,10 +70,6 @@ export class SubagentReplay {
71
70
  }
72
71
  for (const child of announced) {
73
72
  this.host.send({ sessionId: child.sessionId, update: REPLAY_COMPLETE });
74
- this.host.send({
75
- sessionId: child.sessionId,
76
- update: { sessionUpdate: "state_update", ...replayEndState(child) },
77
- });
78
73
  }
79
74
  }
80
75
  /**
@@ -90,19 +85,26 @@ export class SubagentReplay {
90
85
  }
91
86
  }
92
87
  /**
93
- * After the response, as the v1 core sends them (`currentStates`): the
94
- * current state of each replayed child that the live session does not
95
- * track, since its process is gone, so its replayed end. A `cwd` that is
96
- * gone, such as a worktree that Claude Code removed, is cleared. Then each
97
- * replayed child's configuration, when it is not the `model` that the
98
- * replay sent: the live child's, else the model of its latest response, by
99
- * the session's model list.
88
+ * What is current of the replayed children. The caller sends it after the
89
+ * root's `replay_complete`, so every child's parent has sent its own, and
90
+ * before the resume's state snapshot.
91
+ *
92
+ * The current state of each replayed child that does not work in the live
93
+ * session: its work ended, or its process is gone, so its replayed end, on
94
+ * its parent and on its own stream. A `cwd` that is gone, such as a
95
+ * worktree that Claude Code removed, is cleared. Then each replayed child's
96
+ * configuration, when it is not the `model` that the replay sent: the live
97
+ * child's, else the model of its latest response, by the session's model
98
+ * list.
99
+ *
100
+ * The v1 core sends the same after the response (`currentStates`): on v1
101
+ * the response is what separates a replayed child state from a current one.
100
102
  */
101
- afterResponse() {
103
+ currentStates() {
102
104
  for (const child of this.transcript.children.values()) {
103
105
  if (!child.announced)
104
106
  continue;
105
- if (!this.live.tracks(child.sessionId))
107
+ if (!this.live.working(child.sessionId))
106
108
  this.sendEndState(child);
107
109
  this.sendConfiguration(child);
108
110
  }
package/dist/v2/tasks.js CHANGED
@@ -315,7 +315,7 @@ export class SessionTasks {
315
315
  /** Reads the subagents that the history `messages` launched, for its replay. */
316
316
  loadReplay(messages) {
317
317
  return SubagentReplay.load(this.host, messages, {
318
- tracks: (sessionId) => this.children.has(sessionId),
318
+ working: (sessionId) => this.children.get(sessionId)?.working === true,
319
319
  configuration: (sessionId) => this.hasChild(sessionId) ? this.configs.published(sessionId) : undefined,
320
320
  });
321
321
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.108.1-preview.3",
6
+ "version": "0.108.1-preview.5",
7
7
  "description": "An ACP-compatible coding agent powered by the Claude Agent SDK (TypeScript)",
8
8
  "main": "dist/lib.js",
9
9
  "types": "dist/lib.d.ts",
@@ -68,7 +68,7 @@
68
68
  "node": ">=22"
69
69
  },
70
70
  "dependencies": {
71
- "@agentclientprotocol/sdk": "2.7.0",
71
+ "@agentclientprotocol/sdk": "2.8.0",
72
72
  "@anthropic-ai/claude-agent-sdk": "0.3.326",
73
73
  "diff": "9.0.0",
74
74
  "zod": "4.6.7"