@agentclientprotocol/claude-agent-acp 0.107.1-preview.1 → 0.107.1-preview.2

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
@@ -64,9 +64,9 @@ for v2 is negotiated down to v1. With `v2`, the adapter rejects the `initialize`
64
64
  `auto`, the default, serves both.
65
65
 
66
66
  On v2 the adapter serves the session baseline (`session/new`, `session/list`, `session/resume`
67
- with replay, `session/close`, `session/prompt`, `session/cancel`), `session/delete`,
68
- `session/fork`, `session/status`, `session/options` (with initial `configOptions` on `session/new` and
69
- `session/resume`), `session/set_title`, additional directories, config options (the mode is one), plans, notices,
67
+ with replay, which `replay_complete` ends, `session/close`, `session/prompt`, `session/cancel`), `session/delete`,
68
+ `session/fork`, `session/status`, `session/options` (with initial `configOptions` on `session/new`,
69
+ `session/resume` and `session/fork`), `session/set_title`, additional directories, config options (the mode is one), plans, notices,
70
70
  compaction, display terminals for commands, permission requests, elicitation, providers, auth, and
71
71
  [subagents](docs/subagent-sessions.md). Steering is v1 only for now.
72
72
 
@@ -1,7 +1,8 @@
1
1
  import type { Logger } from "./logger.js";
2
2
  /**
3
3
  * What a core advertises as `options` in its session capabilities:
4
- * `session/options`, and `configOptions` on its setup requests.
4
+ * `session/options`, and `configOptions` on its setup requests, `session/fork`
5
+ * included.
5
6
  */
6
7
  export declare const SESSION_OPTIONS_CAPABILITY: {};
7
8
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"initial-config-options.d.ts","sourceRoot":"","sources":["../src/initial-config-options.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C;;;GAGG;AACH,eAAO,MAAM,0BAA0B,IAAK,CAAC;AAI7C;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,EACjE,OAAO,EAAE,SAAS,CAAC,EAAE,GAAG,IAAI,GAAG,SAAS,GACvC,SAAS,CAAC,EAAE,CAYd;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,yBAAyB,CAAC,CAAC,SAAS;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,EAC5E,OAAO,EAAE,SAAS,CAAC,EAAE,EACrB,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,EACnC,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CASf"}
1
+ {"version":3,"file":"initial-config-options.d.ts","sourceRoot":"","sources":["../src/initial-config-options.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,IAAK,CAAC;AAI7C;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,EACjE,OAAO,EAAE,SAAS,CAAC,EAAE,GAAG,IAAI,GAAG,SAAS,GACvC,SAAS,CAAC,EAAE,CAYd;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,yBAAyB,CAAC,CAAC,SAAS;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,EAC5E,OAAO,EAAE,SAAS,CAAC,EAAE,EACrB,GAAG,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,CAAC,OAAO,CAAC,EACnC,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC,CASf"}
@@ -6,7 +6,8 @@
6
6
  import { RequestError } from "@agentclientprotocol/sdk/unstable";
7
7
  /**
8
8
  * What a core advertises as `options` in its session capabilities:
9
- * `session/options`, and `configOptions` on its setup requests.
9
+ * `session/options`, and `configOptions` on its setup requests, `session/fork`
10
+ * included.
10
11
  */
11
12
  export const SESSION_OPTIONS_CAPABILITY = {};
12
13
  const INVALID_PARAMS = RequestError.invalidParams().code;
@@ -1 +1 @@
1
-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;AAClD,MAAM,MAAM,YAAY,GAAG;IACzB,uDAAuD;IACvD,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,+DAA+D;IAC/D,iBAAiB,EAAE,OAAO,CAAC;IAC3B,MAAM,EAAE,WAAW,CAAC;IACpB,uEAAuE;IACvE,mBAAmB,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF;;;;;;yEAMyE;AACzE,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAC1C,KAAK,EAAE,WAAW,CAAC;IACnB,8DAA8D;IAC9D,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,YAAY,EAAE,SAAS,GAAG,SAAS,CAAC;IACpC,OAAO,EAAE,MAAM,CAAC;IAChB,oEAAoE;IACpE,QAAQ,EAAE,QAAQ,CAAC;IACnB,mBAAmB,EAAE,OAAO,CAAC;CAC9B,GAAG,YAAY,CAmBf;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,4BAA4B,CAChD,MAAM,EAAE,YAAY,EACpB,MAAM,EAAE,mBAAmB,GAAG,SAAS,EACvC,SAAS,EAAE,OAAO,EAClB,mBAAmB,EAAE,OAAO,EAC5B,iBAAiB,EAAE,CAAC,QAAQ,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,GACpF,OAAO,CAAC;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,MAAM,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CA2C3F"}
@@ -81,6 +81,9 @@ export function effortLevelName(level) {
81
81
  }
82
82
  export function buildEffortConfigOption(modelInfos, currentModelId, currentEffortLevel, useRecommendedValue) {
83
83
  const currentModelInfo = modelInfos.find((model) => model.value === currentModelId);
84
+ // In Claude Code's order, which lists the levels from lowest to highest
85
+ // ("low" to "max"), as ACP v2 asks of a `thought_level` select. Nothing
86
+ // here sorts them.
84
87
  const supportedLevels = currentModelInfo?.supportsEffort
85
88
  ? (currentModelInfo.supportedEffortLevels ?? [])
86
89
  : [];
@@ -940,8 +940,9 @@ export declare class ClaudeAcpAgent {
940
940
  * Copies the session's transcript into a new session, then starts that
941
941
  * session, so the client can prompt it as soon as the response arrives, as
942
942
  * the schema requires of a fork. It starts like a resumed session: from the
943
- * copied transcript, with the model and the permission mode it records. A
944
- * later load or resume with the same settings reuses it.
943
+ * copied transcript, with the model and the permission mode it records,
944
+ * and then the request's `configOptions`. A later load or resume with the
945
+ * same settings reuses it.
945
946
  */
946
947
  unstable_forkSession(params: ForkSessionRequest): Promise<ForkSessionResponse>;
947
948
  /** Runs `fork`, the handler of a `session/fork` request of `sourceId`,
@@ -1471,7 +1472,7 @@ export declare class ClaudeAcpAgent {
1471
1472
  *
1472
1473
  * Call it in the same synchronous step as the handler's `return`: an
1473
1474
  * `await` between them would let the timer run before the response. The ACP
1474
- * SDK (2.6.0) gives a request handler no responder and no after-response
1475
+ * SDK (2.7.0) gives a request handler no responder and no after-response
1475
1476
  * hook, so the order rests on two things that its source shows and its API
1476
1477
  * does not promise. `registerAppRequest` queues the response in the
1477
1478
  * 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,mB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G,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,CAgDV"}
@@ -719,10 +719,13 @@ export class ClaudeAcpAgent {
719
719
  * Copies the session's transcript into a new session, then starts that
720
720
  * session, so the client can prompt it as soon as the response arrives, as
721
721
  * the schema requires of a fork. It starts like a resumed session: from the
722
- * copied transcript, with the model and the permission mode it records. A
723
- * later load or resume with the same settings reuses it.
722
+ * copied transcript, with the model and the permission mode it records,
723
+ * and then the request's `configOptions`. A later load or resume with the
724
+ * same settings reuses it.
724
725
  */
725
726
  async unstable_forkSession(params) {
727
+ // Before the copy: two entries with the same `configId` fork nothing.
728
+ const initial = initialConfigOptions(params.configOptions);
726
729
  while (this.providerUpdate)
727
730
  await this.providerUpdate;
728
731
  // Reject a bad `cwd` or prompt before copying the transcript.
@@ -736,14 +739,14 @@ export class ClaudeAcpAgent {
736
739
  // The fork row can lack `forkedFrom`: the scan reads it from the first
737
740
  // 64 KB of the transcript only. So the fork is held back by its id too.
738
741
  this.sessionIndex.onForkCreated(params.sessionId, sessionId);
739
- const { modes, configOptions } = await this.getOrCreateSession({
742
+ const { modes, configOptions } = await this.withInitialConfigOptions(await this.getOrCreateSession({
740
743
  sessionId,
741
744
  cwd: params.cwd,
742
745
  mcpServers: params.mcpServers,
743
746
  additionalDirectories: params.additionalDirectories,
744
747
  systemPrompt: params.systemPrompt,
745
748
  _meta: params._meta,
746
- });
749
+ }), initial);
747
750
  this.afterSetupResponse(sessionId, params.mcpServers ?? []);
748
751
  return { sessionId, modes, configOptions };
749
752
  }
@@ -6868,7 +6871,7 @@ export class ClaudeAcpAgent {
6868
6871
  *
6869
6872
  * Call it in the same synchronous step as the handler's `return`: an
6870
6873
  * `await` between them would let the timer run before the response. The ACP
6871
- * SDK (2.6.0) gives a request handler no responder and no after-response
6874
+ * SDK (2.7.0) gives a request handler no responder and no after-response
6872
6875
  * hook, so the order rests on two things that its source shows and its API
6873
6876
  * does not promise. `registerAppRequest` queues the response in the
6874
6877
  * 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":"AAoBA,OAAO,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAYxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AA4D3C,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,CA2Cb"}
1
+ {"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../src/v2/agent.ts"],"names":[],"mappings":"AAoBA,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,CA2Cb"}
package/dist/v2/agent.js CHANGED
@@ -45,11 +45,12 @@ import { subagentHooks } from "./child-config.js";
45
45
  import { modelSwitchHook, SessionConfig } from "./config.js";
46
46
  import { fileChangePreviewHook } from "./file-preview.js";
47
47
  import { canUseTool, denyingStoppedWork } from "./permissions.js";
48
+ import { ReplayHolds } from "./replay-hold.js";
48
49
  import { reportHooks } from "./reports.js";
49
50
  import { savedSessionStatus } from "../session-status.js";
50
51
  import { SessionRestarts } from "./restarts.js";
51
52
  import { V2Session } from "./session.js";
52
- import { afterSetupResponse, clientOptions, replayEndUpdate, sessionModels, withClientHooks, } from "./setup.js";
53
+ import { afterSetupResponse, clientOptions, REPLAY_COMPLETE, replayEndUpdate, sessionModels, withClientHooks, } from "./setup.js";
53
54
  import { SubscriptionGuard } from "./subscription-guard.js";
54
55
  import { restrictedChild } from "./tasks.js";
55
56
  /** The sessions per `session/list` page. */
@@ -110,6 +111,8 @@ class V2Agent {
110
111
  * response, and nothing of the session after it.
111
112
  */
112
113
  resuming = new Map();
114
+ /** What the resumes that replay hold back until their `replay_complete` (see `replay-hold.ts`). */
115
+ replays = new ReplayHolds();
113
116
  translator = new V2UpdateTranslator();
114
117
  auth;
115
118
  /** The `--hide-claude-auth` subscription guard (see `subscription-guard.ts`). */
@@ -146,23 +149,62 @@ class V2Agent {
146
149
  });
147
150
  }
148
151
  // --- SessionConnection ---------------------------------------------------
152
+ /** Sends the update, after the `replay_complete` of a replay that holds it (see {@link heldBy}). */
149
153
  send(notification) {
150
- this.ctx.notify(v2.methods.client.session.update, notification).catch((error) => {
151
- this.logger.error(`Failed to send a ${notification.update.sessionUpdate} update:`, error);
152
- });
154
+ const send = () => {
155
+ this.ctx.notify(v2.methods.client.session.update, notification).catch((error) => {
156
+ this.logger.error(`Failed to send a ${notification.update.sessionUpdate} update:`, error);
157
+ });
158
+ };
159
+ const held = this.heldBy(notification.sessionId);
160
+ if (held === undefined)
161
+ send();
162
+ else
163
+ this.replays.defer(held, send);
164
+ }
165
+ /**
166
+ * The session whose replay holds what the session `sessionId` sends now
167
+ * (see `replay-hold.ts`): itself, or the root session of a subagent's
168
+ * session.
169
+ */
170
+ heldBy(sessionId) {
171
+ if (!this.replays.any)
172
+ return undefined;
173
+ if (this.replays.holds(sessionId))
174
+ return sessionId;
175
+ const root = this.ownerOfChild(sessionId)?.sessionId;
176
+ return root !== undefined && this.replays.holds(root) ? root : undefined;
177
+ }
178
+ /**
179
+ * Sends a request of the session `sessionId` to the client, after the
180
+ * `replay_complete` of a replay that holds it (see {@link heldBy}). A
181
+ * request that `signal` withdrew while it waited is not sent, and rejects.
182
+ */
183
+ afterReplay(sessionId, signal, send) {
184
+ const held = sessionId === undefined ? undefined : this.heldBy(sessionId);
185
+ if (held === undefined)
186
+ return send();
187
+ return new Promise((resolve, reject) => this.replays.defer(held, () => {
188
+ if (signal.aborted)
189
+ reject(new Error("The request was withdrawn"));
190
+ else
191
+ send().then(resolve, reject);
192
+ }));
153
193
  }
154
194
  requestPermission(request, signal) {
155
195
  // Aborting `signal` sends `$/cancel_request`, and stops waiting for the answer.
156
- return this.ctx.request(v2.methods.client.session.requestPermission, request, {
196
+ return this.afterReplay(request.sessionId, signal, () => this.ctx.request(v2.methods.client.session.requestPermission, request, {
157
197
  cancellationSignal: signal,
158
198
  stopWaitingOnCancel: true,
159
- });
199
+ }));
160
200
  }
161
201
  createElicitation(request, signal) {
202
+ // An elicitation of a request, not of a session, names no session.
203
+ const sessionId = request.sessionId;
162
204
  // The v1 types accept a property schema with any tag; the v2 types accept
163
205
  // one only in a received value. An MCP server's schema is relayed
164
206
  // unchanged, as on v1, so this cast does not check it.
165
- return this.ctx.request(v2.methods.client.elicitation.create, request, { cancellationSignal: signal, stopWaitingOnCancel: true });
207
+ return this.afterReplay(typeof sessionId === "string" ? sessionId : undefined, signal, () => this.ctx.request(v2.methods.client.elicitation.create, request, { cancellationSignal: signal, stopWaitingOnCancel: true }));
166
208
  }
167
209
  completeElicitation(params) {
168
210
  return this.ctx.notify(v2.methods.client.elicitation.complete, params);
@@ -251,28 +293,40 @@ class V2Agent {
251
293
  }
252
294
  /**
253
295
  * Copies the session's transcript into a new session (`forkSession`), and
254
- * starts it from the copy, so the client can prompt it at once.
296
+ * starts it from the copy, so the client can prompt it at once. The
297
+ * request's `configOptions` are set on the fork, over what the copy starts
298
+ * with.
255
299
  */
256
300
  async forkSession(params) {
257
301
  if (this.ownerOfChild(params.sessionId))
258
302
  throw restrictedChild(params.sessionId, "fork");
259
- // Rejects a bad `cwd` or MCP server before the transcript is copied.
303
+ // Rejects bad `configOptions`, a bad `cwd` or MCP server before the transcript is copied.
304
+ const initial = initialConfigRequests(params.sessionId, params.configOptions);
260
305
  await validatedSetup(params);
261
306
  const { sessionId } = await forkSession(v1ForkSessionRequest(params), {
262
307
  logger: this.logger,
263
308
  messageIdForGrouping,
264
309
  });
265
310
  const session = await this.startSession(sessionId, params, sessionId);
311
+ // The entries are the fork's: only the copy gave it its id.
312
+ await session.setInitialConfigOptions(initial.map((entry) => ({ ...entry, sessionId })));
266
313
  const response = { sessionId, ...(await this.setupFields(session)) };
267
314
  this.afterSetup(session, params);
268
315
  return response;
269
316
  }
270
317
  /**
271
318
  * Resumes a stored session, or attaches to a live one. With `replayFrom:
272
- * { type: "start" }` the stored history replays first. Either way, the
273
- * state snapshot goes out after any replay and before the response. The
274
- * request's `configOptions` are set before the replay, on an active session
275
- * too.
319
+ * { type: "start" }` the stored history replays first, and
320
+ * `replay_complete` ends it, also when the history is empty. Either way,
321
+ * the state snapshot goes out after any replay and before the response.
322
+ * The request's `configOptions` are set before the replay, on an active
323
+ * session too.
324
+ *
325
+ * From the request to `replay_complete`, the session and its subagent
326
+ * sessions send only the replay. What they send besides, such as the
327
+ * output of work that goes on in an active session, goes out after
328
+ * `replay_complete` (see `replay-hold.ts`). A resume that fails sends no
329
+ * `replay_complete`, and then what the session held.
276
330
  */
277
331
  resumeSession(params) {
278
332
  const { sessionId } = params;
@@ -298,15 +352,44 @@ class V2Agent {
298
352
  if (this.ownerOfChild(sessionId))
299
353
  throw restrictedChild(sessionId, "resume");
300
354
  const initial = initialConfigRequests(sessionId, params.configOptions);
355
+ // No await before it: nothing of the session goes out between the request and the hold.
356
+ const release = replayFrom != null ? this.replays.begin(sessionId) : undefined;
357
+ try {
358
+ return await this.resumeHeld(params, initial, release);
359
+ }
360
+ finally {
361
+ // A resume that failed before its `replay_complete`.
362
+ release?.();
363
+ }
364
+ }
365
+ /**
366
+ * {@link resume}, once the request is valid. `release` ends the hold of a
367
+ * resume that replays.
368
+ */
369
+ async resumeHeld(params, initial, release) {
370
+ const { sessionId, replayFrom } = params;
371
+ // The replay: the messages before each compaction too, unless reading them fails.
372
+ const acrossCompactions = (chain, cwd) => {
373
+ const messages = chain.then((read) => readHistoryAcrossCompactions(sessionId, read, this.logger, cwd));
374
+ // A resume that fails before the replay leaves them unawaited.
375
+ chain.catch(() => { });
376
+ messages.catch(() => { });
377
+ return messages;
378
+ };
301
379
  await this.restarts.settled(sessionId);
302
380
  // A concurrent resume of this session started its query: this one then
303
381
  // attaches to the session that it started.
304
382
  await this.startSettled(sessionId);
305
383
  let session = this.sessions.get(sessionId);
306
- let history;
307
- // The replay: the messages before each compaction too, unless reading them fails.
308
384
  let replayed;
309
385
  if (session) {
386
+ // Read first, so the history ends as close to the request as it can.
387
+ // The session's work goes on, and what it sends from the request on
388
+ // follows `replay_complete`: an update that the history had too would
389
+ // reach the client twice.
390
+ if (replayFrom != null) {
391
+ replayed = acrossCompactions(getSessionMessages(sessionId, { dir: session.cwd }), session.cwd);
392
+ }
310
393
  // Resuming the active session synchronizes it again. Its work goes on,
311
394
  // and the request's MCP servers and additional directories replace the
312
395
  // session's.
@@ -328,26 +411,21 @@ class V2Agent {
328
411
  }
329
412
  else {
330
413
  // One read of the transcript serves the replay and the resumed model.
331
- history = replayFrom != null ? getSessionMessages(sessionId, { dir: params.cwd }) : undefined;
414
+ const history = replayFrom != null ? getSessionMessages(sessionId, { dir: params.cwd }) : undefined;
332
415
  // The read across compactions overlaps the start of the query.
333
- replayed = history?.then((messages) => readHistoryAcrossCompactions(sessionId, messages, this.logger, params.cwd));
334
- // A failed start leaves them unawaited.
335
- history?.catch(() => { });
336
- replayed?.catch(() => { });
416
+ if (history)
417
+ replayed = acrossCompactions(history, params.cwd);
337
418
  session = await this.startSession(sessionId, params, sessionId, history);
338
419
  }
339
420
  await session.setInitialConfigOptions(initial);
340
421
  let subagents;
341
- if (replayFrom != null) {
342
- const cwd = session.cwd;
343
- const messages = await (replayed ??
344
- getSessionMessages(sessionId, { dir: cwd }).then((chain) => readHistoryAcrossCompactions(sessionId, chain, this.logger, cwd)));
422
+ if (replayed) {
423
+ const messages = await replayed;
345
424
  subagents = await session.tasks.loadReplay(messages);
346
- session.output.replay(messages, subagents?.hooks(session.output, messages), session.tasks.backgroundWork(sessionId), session.tasks.replayedBackground(sessionId));
347
- subagents?.finish();
348
- const end = replayEndUpdate(this.clientCapabilities);
349
- if (end)
350
- this.send({ sessionId, update: end });
425
+ this.replay(session, messages, subagents);
426
+ release?.();
427
+ // A notice is not history, so it follows `replay_complete`.
428
+ subagents?.reportMissingHistory();
351
429
  }
352
430
  // The current title, after the replay and before the state.
353
431
  await session.reports.publishTitle();
@@ -355,8 +433,9 @@ class V2Agent {
355
433
  this.send(notification);
356
434
  const response = await this.setupFields(session);
357
435
  this.afterSetup(session, params);
358
- // The response ends the replay, and the replayed children's states before
359
- // it are history: their current states follow it. The ACP SDK (2.6.0)
436
+ // A replayed child's state that comes before the response is history to
437
+ // the client, also after the child's `replay_complete`: the children's
438
+ // current states follow the response. The ACP SDK (2.7.0)
360
439
  // gives a request handler no responder and no after-response hook, so the
361
440
  // order rests on two things that its source shows and its API does not
362
441
  // promise. `registerAppRequest` queues the response in the microtask that
@@ -370,6 +449,24 @@ class V2Agent {
370
449
  setTimeout(() => subagents.afterResponse(), 0);
371
450
  return response;
372
451
  }
452
+ /**
453
+ * Replays `messages`, the history of `session`, with the histories of its
454
+ * subagents (`subagents`), and ends the replay: each replayed child's
455
+ * `replay_complete` (see `SubagentReplay.finish`), then the session's. An
456
+ * AIR client that declared `loadReplayEnd` gets AIR's own mark after it.
457
+ * All in one synchronous step, as `ReplayHolds.replay` requires.
458
+ */
459
+ replay(session, messages, subagents) {
460
+ const { sessionId } = session;
461
+ this.replays.replay(() => {
462
+ session.output.replay(messages, subagents?.hooks(session.output, messages), session.tasks.backgroundWork(sessionId), session.tasks.replayedBackground(sessionId));
463
+ subagents?.finish();
464
+ this.send({ sessionId, update: REPLAY_COMPLETE });
465
+ const end = replayEndUpdate(this.clientCapabilities);
466
+ if (end)
467
+ this.send({ sessionId, update: end });
468
+ });
469
+ }
373
470
  async listSessions(params) {
374
471
  if (params.cwd != null && !path.isAbsolute(params.cwd)) {
375
472
  throw RequestError.invalidParams({ cwd: params.cwd }, "`cwd` must be an absolute path");
@@ -0,0 +1,35 @@
1
+ /**
2
+ * What a `session/resume` with `replayFrom` holds back. Between the request
3
+ * and the session's `replay_complete`, v2 allows only the session's replayed
4
+ * history. Every other update of the session and of its subagent sessions,
5
+ * such as a chunk of a message that streams, a notice or a state, waits and
6
+ * goes out after `replay_complete`, in the order it was sent. So does a
7
+ * permission request or an elicitation.
8
+ *
9
+ * The replay itself runs in one synchronous step ({@link ReplayHolds.replay}),
10
+ * so what a session sends during that step is its replayed history. Nothing
11
+ * else tells the two apart.
12
+ */
13
+ export declare class ReplayHolds {
14
+ /** What each session with a replay in flight holds, in send order, with the count of its replays. */
15
+ private readonly sessions;
16
+ /** Whether {@link replay} runs. */
17
+ private replaying;
18
+ /** Whether any session holds its sends. */
19
+ get any(): boolean;
20
+ /** Whether the session `sessionId` holds what it sends now: a replay of it is in flight, and is not the sender. */
21
+ holds(sessionId: string): boolean;
22
+ /**
23
+ * A resume of `sessionId` that replays came: the session holds its sends
24
+ * from now on. Returns the release, to call once the session's
25
+ * `replay_complete` went out, or the resume failed. It sends what the
26
+ * session held, unless another replay of the session is still in flight.
27
+ * Calling it again does nothing.
28
+ */
29
+ begin(sessionId: string): () => void;
30
+ /** Runs `send` once the session `sessionId` no longer holds its sends (see {@link holds}). */
31
+ defer(sessionId: string, send: () => void): void;
32
+ /** Runs `replay`, which must send the history and its `replay_complete` before it returns. */
33
+ replay(replay: () => void): void;
34
+ }
35
+ //# sourceMappingURL=replay-hold.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"replay-hold.d.ts","sourceRoot":"","sources":["../../src/v2/replay-hold.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,qBAAa,WAAW;IACtB,qGAAqG;IACrG,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAoE;IAC7F,mCAAmC;IACnC,OAAO,CAAC,SAAS,CAAS;IAE1B,2CAA2C;IAC3C,IAAI,GAAG,IAAI,OAAO,CAEjB;IAED,mHAAmH;IACnH,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO;IAIjC;;;;;;OAMG;IACH,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,IAAI;IAcpC,8FAA8F;IAC9F,KAAK,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,IAAI,GAAG,IAAI;IAIhD,8FAA8F;IAC9F,MAAM,CAAC,MAAM,EAAE,MAAM,IAAI,GAAG,IAAI;CAQjC"}
@@ -0,0 +1,63 @@
1
+ /**
2
+ * What a `session/resume` with `replayFrom` holds back. Between the request
3
+ * and the session's `replay_complete`, v2 allows only the session's replayed
4
+ * history. Every other update of the session and of its subagent sessions,
5
+ * such as a chunk of a message that streams, a notice or a state, waits and
6
+ * goes out after `replay_complete`, in the order it was sent. So does a
7
+ * permission request or an elicitation.
8
+ *
9
+ * The replay itself runs in one synchronous step ({@link ReplayHolds.replay}),
10
+ * so what a session sends during that step is its replayed history. Nothing
11
+ * else tells the two apart.
12
+ */
13
+ export class ReplayHolds {
14
+ /** What each session with a replay in flight holds, in send order, with the count of its replays. */
15
+ sessions = new Map();
16
+ /** Whether {@link replay} runs. */
17
+ replaying = false;
18
+ /** Whether any session holds its sends. */
19
+ get any() {
20
+ return this.sessions.size > 0;
21
+ }
22
+ /** Whether the session `sessionId` holds what it sends now: a replay of it is in flight, and is not the sender. */
23
+ holds(sessionId) {
24
+ return !this.replaying && this.sessions.has(sessionId);
25
+ }
26
+ /**
27
+ * A resume of `sessionId` that replays came: the session holds its sends
28
+ * from now on. Returns the release, to call once the session's
29
+ * `replay_complete` went out, or the resume failed. It sends what the
30
+ * session held, unless another replay of the session is still in flight.
31
+ * Calling it again does nothing.
32
+ */
33
+ begin(sessionId) {
34
+ const hold = this.sessions.get(sessionId) ?? { resumes: 0, sends: [] };
35
+ hold.resumes++;
36
+ this.sessions.set(sessionId, hold);
37
+ let released = false;
38
+ return () => {
39
+ if (released)
40
+ return;
41
+ released = true;
42
+ if (--hold.resumes > 0)
43
+ return;
44
+ this.sessions.delete(sessionId);
45
+ for (const send of hold.sends)
46
+ send();
47
+ };
48
+ }
49
+ /** Runs `send` once the session `sessionId` no longer holds its sends (see {@link holds}). */
50
+ defer(sessionId, send) {
51
+ this.sessions.get(sessionId).sends.push(send);
52
+ }
53
+ /** Runs `replay`, which must send the history and its `replay_complete` before it returns. */
54
+ replay(replay) {
55
+ this.replaying = true;
56
+ try {
57
+ replay();
58
+ }
59
+ finally {
60
+ this.replaying = false;
61
+ }
62
+ }
63
+ }
@@ -10,7 +10,10 @@ import * as v2 from "@agentclientprotocol/sdk/experimental/v2/unstable";
10
10
  * {@link initialConfigRequests}).
11
11
  */
12
12
  export declare function v1NewSessionRequest(params: v2.NewSessionRequest): NewSessionRequest;
13
- /** The v1 request of a v2 `session/fork`. */
13
+ /**
14
+ * The v1 request of a v2 `session/fork`. Without `configOptions`: the fork
15
+ * applies them once it started (see {@link initialConfigRequests}).
16
+ */
14
17
  export declare function v1ForkSessionRequest(params: v2.ForkSessionRequest): ForkSessionRequest;
15
18
  /** v2 tags a select value with `type: "id"`; v1 leaves it untagged. */
16
19
  export declare function v1SetSessionConfigOptionRequest(params: v2.SetSessionConfigOptionRequest): SetSessionConfigOptionRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"session-requests.d.ts","sourceRoot":"","sources":["../../src/v2/session-requests.ts"],"names":[],"m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E,CAAC,iBAAiB,GAAG,iBAAiB,CASnF;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,EAAE,CAAC,kBAAkB,GAAG,kBAAkB,CAQtF;AAaD,uEAAuE;AACvE,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,EAAE,CAAC,6BAA6B,GACvC,6BAA6B,CAgB/B;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,EAAE,CAAC,0BAA0B,EAAE,GAAG,IAAI,GAAG,SAAS,GAC1D,EAAE,CAAC,6BAA6B,EAAE,CAMpC;AAED,sFAAsF;AACtF,wBAAgB,eAAe,CAAC,OAAO,EAAE,mBAAmB,EAAE,GAAG,EAAE,CAAC,mBAAmB,EAAE,CAQxF;AAWD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE,CAMvF"}
@@ -22,9 +22,13 @@ export function v1NewSessionRequest(params) {
22
22
  ...v1SystemPromptField(systemPrompt),
23
23
  };
24
24
  }
25
- /** The v1 request of a v2 `session/fork`. */
25
+ /**
26
+ * The v1 request of a v2 `session/fork`. Without `configOptions`: the fork
27
+ * applies them once it started (see {@link initialConfigRequests}).
28
+ */
26
29
  export function v1ForkSessionRequest(params) {
27
- const { mcpServers, systemPrompt, ...request } = params;
30
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
31
+ const { mcpServers, systemPrompt, configOptions, ...request } = params;
28
32
  return {
29
33
  ...request,
30
34
  ...(mcpServers ? { mcpServers: v1McpServers(mcpServers) } : {}),
@@ -34,8 +34,15 @@ export declare function sessionModels(query: Query, sdkModels: ModelInfo[], sett
34
34
  allowlistedModelInfo: ModelInfo | undefined;
35
35
  }>;
36
36
  /**
37
- * The update that ends a replay, for a client that declares AIR's
38
- * `loadReplayEnd` capability, as v1 sends it.
37
+ * The update that ends the history replay of a `session/resume` with
38
+ * `replayFrom`, on the resumed session and on each subagent session that the
39
+ * replay announced.
40
+ */
41
+ export declare const REPLAY_COMPLETE: v2.SessionUpdate;
42
+ /**
43
+ * AIR's own mark of the end of a replay, for a client that declares AIR's
44
+ * `loadReplayEnd` capability, as v1 sends it. It is not history, so on v2 it
45
+ * follows {@link REPLAY_COMPLETE}.
39
46
  */
40
47
  export declare function replayEndUpdate(capabilities: v2.ClientCapabilities | null | undefined): v2.SessionUpdate | undefined;
41
48
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../../src/v2/setup.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EACL,KAAK,mBAAmB,EACxB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,OAAO,EACZ,KAAK,KAAK,EACV,KAAK,QAAQ,EACd,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAQ3C,OAAO,EAIL,KAAK,iBAAiB,EAEvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAE9C,qEAAqE;AACrE,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAEhE;AAED,wEAAwE;AACxE,wBAAgB,eAAe,CAC7B,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,EACxB,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,mBAAmB,EAAE,CAAC,CAAC,GACrD,OAAO,CAAC,MAAM,CAAC,SAAS,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAMnD;AAED;;;;;;;;;GASG;AAC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;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,WAAW,GAAG,IAAI,CAOhF"}
package/dist/v2/setup.js CHANGED
@@ -34,8 +34,15 @@ export async function sessionModels(query, sdkModels, settings, narrow, narrowed
34
34
  return { models, ...withCurrentModelInfo(narrowed, listed, models.currentModelId) };
35
35
  }
36
36
  /**
37
- * The update that ends a replay, for a client that declares AIR's
38
- * `loadReplayEnd` capability, as v1 sends it.
37
+ * The update that ends the history replay of a `session/resume` with
38
+ * `replayFrom`, on the resumed session and on each subagent session that the
39
+ * replay announced.
40
+ */
41
+ export const REPLAY_COMPLETE = { sessionUpdate: "replay_complete" };
42
+ /**
43
+ * AIR's own mark of the end of a replay, for a client that declares AIR's
44
+ * `loadReplayEnd` capability, as v1 sends it. It is not history, so on v2 it
45
+ * follows {@link REPLAY_COMPLETE}.
39
46
  */
40
47
  export function replayEndUpdate(capabilities) {
41
48
  if (!clientSupportsAirCapability(capabilities, AIR_LOAD_REPLAY_END_CAPABILITY))
@@ -20,10 +20,12 @@
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, and once
24
- * on the child's own stream: v2 forbids replaying a child's past `running` as
25
- * current activity. These states are history to the client, so each child's
26
- * current state goes out again after the response ({@link afterResponse}).
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}).
27
29
  * A child that the live session still tracks, on a resume of the active
28
30
  * session, gets its current state from the resume snapshot instead
29
31
  * (`SessionTasks.currentState`). After the response, a child whose
@@ -32,8 +34,8 @@
32
34
  *
33
35
  * A launch without metadata has no known id, so it is not announced: the RFD
34
36
  * forbids inventing one. Its Agent call stays an ordinary tool call of the
35
- * parent, and a notice at the end says that subagent history is missing, as
36
- * it does for a child whose transcript cannot be read.
37
+ * parent, and a notice after the root's `replay_complete` says that subagent
38
+ * history is missing, as it does for a child whose transcript cannot be read.
37
39
  */
38
40
  import type * as v2 from "@agentclientprotocol/sdk/experimental/v2/unstable";
39
41
  import type { SessionConfigOption } from "@agentclientprotocol/sdk/unstable";
@@ -78,10 +80,18 @@ export declare class SubagentReplay {
78
80
  /** The hooks of the replay of the root session's history (`messages`). */
79
81
  hooks(output: SessionOutput, messages: SessionMessage[]): ReplayHooks;
80
82
  /**
81
- * Ends the replay: every child's end, on its parent, then once on its own
82
- * stream, and the notice when subagent history is missing.
83
+ * Ends the replay of the children. Every child's end goes out on its
84
+ * 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`.
83
88
  */
84
89
  finish(): void;
90
+ /**
91
+ * The notice when subagent history is missing, on the root session. It is
92
+ * no history, so the caller sends the root's `replay_complete` first.
93
+ */
94
+ reportMissingHistory(): void;
85
95
  /**
86
96
  * After the response, as the v1 core sends them (`currentStates`): the
87
97
  * current state of each replayed child that the live session does not
@@ -1 +1 @@
1
- {"version":3,"file":"subagent-replay.d.ts","sourceRoot":"","sources":["../../src/v2/subagent-replay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;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,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,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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"}
@@ -2,6 +2,7 @@ import { childModelOption, launchReply, linkedSessionMessages, nativeSubagentSta
2
2
  import { readSubagentMessages, subagentHistory, subagentLaunchIds, } from "../subagent-history.js";
3
3
  import { deliveredCall, firstResponseModel, isDelivery, isDirectory, missingHistoryNotice, ReplayTranscript, replayEndState, textOf, } from "../subagent-replay.js";
4
4
  import { taskNotificationsOf } from "../task-notifications.js";
5
+ import { REPLAY_COMPLETE } from "./setup.js";
5
6
  import { SessionOutput } from "./stream.js";
6
7
  import { sameDirectory } from "./tasks.js";
7
8
  const NO_LIVE_CHILDREN = { tracks: () => false, configuration: () => undefined };
@@ -50,8 +51,11 @@ export class SubagentReplay {
50
51
  return this.ownerHooks(output, undefined);
51
52
  }
52
53
  /**
53
- * Ends the replay: every child's end, on its parent, then once on its own
54
- * stream, and the notice when subagent history is missing.
54
+ * Ends the replay of the children. Every child's end goes out on its
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`.
55
59
  */
56
60
  finish() {
57
61
  const announced = [...this.transcript.children.values()].filter((child) => child.announced);
@@ -66,11 +70,18 @@ export class SubagentReplay {
66
70
  });
67
71
  }
68
72
  for (const child of announced) {
73
+ this.host.send({ sessionId: child.sessionId, update: REPLAY_COMPLETE });
69
74
  this.host.send({
70
75
  sessionId: child.sessionId,
71
76
  update: { sessionUpdate: "state_update", ...replayEndState(child) },
72
77
  });
73
78
  }
79
+ }
80
+ /**
81
+ * The notice when subagent history is missing, on the root session. It is
82
+ * no history, so the caller sends the root's `replay_complete` first.
83
+ */
84
+ reportMissingHistory() {
74
85
  const missing = this.transcript.omitted.size + this.withoutHistory;
75
86
  if (missing > 0) {
76
87
  this.rootOutput?.emitV1([
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.107.1-preview.1",
6
+ "version": "0.107.1-preview.2",
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.6.0",
71
+ "@agentclientprotocol/sdk": "2.7.0",
72
72
  "@anthropic-ai/claude-agent-sdk": "0.3.323",
73
73
  "diff": "9.0.0",
74
74
  "zod": "4.6.7"