@agentclientprotocol/claude-agent-acp 0.89.2-preview.5 → 0.89.2-preview.7
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/dist/acp-agent.d.ts +36 -1
- package/dist/acp-agent.d.ts.map +1 -1
- package/dist/acp-agent.js +271 -52
- package/dist/turn-events.d.ts +13 -3
- package/dist/turn-events.d.ts.map +1 -1
- package/dist/v2/prompt.d.ts +6 -5
- package/dist/v2/prompt.d.ts.map +1 -1
- package/dist/v2/prompt.js +6 -5
- package/package.json +1 -1
package/dist/acp-agent.d.ts
CHANGED
|
@@ -284,7 +284,19 @@ type Turn = {
|
|
|
284
284
|
export type Session = {
|
|
285
285
|
query: Query;
|
|
286
286
|
input: Pushable<SDKUserMessage>;
|
|
287
|
+
/** Set by a cancel. While it is set, the consumer treats what arrives as the
|
|
288
|
+
* work the cancel stopped: it drops main-thread `assistant` and `user`
|
|
289
|
+
* messages (streamed text still goes out), skips results, and starts no
|
|
290
|
+
* model cycle. Cleared when the next prompt's turn activates,
|
|
291
|
+
* or when Claude Code starts a model request that serves none of
|
|
292
|
+
* {@link Session.cancelledPrompts} (see the `status` case of the
|
|
293
|
+
* consumer), such as its follow-up after a background command finished. */
|
|
287
294
|
cancelled: boolean;
|
|
295
|
+
/** The prompts whose work the cancel stopped: the turns it settled as
|
|
296
|
+
* cancelled, and their steers. Recorded when the cancel arrives, before the
|
|
297
|
+
* orphan accounting, which can undercount a prompt that Claude Code had
|
|
298
|
+
* already taken off its queue. */
|
|
299
|
+
cancelledPrompts?: Set<string>;
|
|
288
300
|
/** FIFO of in-flight prompts. The head is the turn the SDK is currently
|
|
289
301
|
* processing; later entries are queued and will be echoed in order. */
|
|
290
302
|
turnQueue?: Turn[];
|
|
@@ -356,6 +368,16 @@ export type Session = {
|
|
|
356
368
|
* cancel() routes orphan accounting to `orphanCommands` (exact, per-uuid)
|
|
357
369
|
* instead of `pendingOrphanResults` (count, coalescing-blind). */
|
|
358
370
|
msgLifecycleV1?: boolean;
|
|
371
|
+
/** True once a `system`/init advertised the request_marker_lists_v1
|
|
372
|
+
* capability: each `status: requesting` frame, which starts a model
|
|
373
|
+
* request, then lists the prompts the request serves in
|
|
374
|
+
* `user_message_uuids`, and leaves the field out for a request that serves
|
|
375
|
+
* none, such as a cycle that Claude Code started on its own. */
|
|
376
|
+
requestMarkerListsV1?: boolean;
|
|
377
|
+
/** A main-thread model request started (`status: requesting`) since the
|
|
378
|
+
* last result, so a model cycle runs. Read only with
|
|
379
|
+
* {@link Session.requestMarkerListsV1}. */
|
|
380
|
+
modelRequestSinceResult?: boolean;
|
|
359
381
|
/** Latched from `system`/init `terminal_slash_commands` (CLI 2.1.232+):
|
|
360
382
|
* names of advertised slash commands whose UX is bound to the CLI's own
|
|
361
383
|
* terminal (e.g. /doctor, /color). ACP clients aren't that terminal, so
|
|
@@ -1315,11 +1337,24 @@ export declare class ClaudeAcpAgent {
|
|
|
1315
1337
|
* when a turn activates. */
|
|
1316
1338
|
private syncAwaitingUser;
|
|
1317
1339
|
/** Make `owner` the foreground work of the session `sessionId` (see
|
|
1318
|
-
* {@link ForegroundEvents})
|
|
1340
|
+
* {@link ForegroundEvents}): it reports `running`, then waits at once if a
|
|
1341
|
+
* request is open. If work already runs, it goes on under `owner` and
|
|
1342
|
+
* reports nothing new: a turn takes over a cycle that Claude Code started on
|
|
1343
|
+
* its own, and only the owner's end ends the work. */
|
|
1319
1344
|
private startForeground;
|
|
1320
1345
|
/** End the foreground work of the session `sessionId` with `outcome`, or as
|
|
1321
1346
|
* failed with `error`, if `owner` is that work. */
|
|
1322
1347
|
private endForeground;
|
|
1348
|
+
/** Start a model cycle that Claude Code started on its own as the foreground
|
|
1349
|
+
* work (see {@link ForegroundEvents}) when `message` is its first output:
|
|
1350
|
+
* model output of the main conversation (not a subagent's) while no work
|
|
1351
|
+
* runs. That includes a turn that v1 holds for its background subagents,
|
|
1352
|
+
* whose work ended at its result, so its follow-up is a cycle. Output of
|
|
1353
|
+
* the work a cancel stopped starts nothing (see Session.cancelled). */
|
|
1354
|
+
private startAutonomousCycle;
|
|
1355
|
+
/** End the session's model cycle that Claude Code started on its own, if one
|
|
1356
|
+
* runs. */
|
|
1357
|
+
private endAutonomousCycle;
|
|
1323
1358
|
/** Forward a permission request to the client, wiring the tool call's
|
|
1324
1359
|
* `signal` through as a `cancellationSignal`. When the turn is cancelled
|
|
1325
1360
|
* while the client's prompt is still open the signal aborts, the SDK sends
|
package/dist/acp-agent.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acp-agent.d.ts","sourceRoot":"","sources":["../src/acp-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EAER,mBAAmB,EAEnB,gBAAgB,EAChB,kBAAkB,EAClB,kBAAkB,EAClB,+BAA+B,EAC/B,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,uBAAuB,EACvB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,oBAAoB,EACpB,qBAAqB,EAErB,WAAW,EACX,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EAGb,iBAAiB,EACjB,kBAAkB,EAClB,aAAa,EACb,cAAc,EAEd,mBAAmB,EACnB,oBAAoB,EAEpB,kBAAkB,EAClB,mBAAmB,EAEnB,yBAAyB,EACzB,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,6BAA6B,EAC7B,8BAA8B,EAC9B,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EAEtB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,gBAAgB,EAAc,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC9F,OAAO,EAEL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M,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,CA0CV;AAED,8BAA8B;AAC9B,wBAAgB,MAAM,CAAC,MAAM,CAAC,EAAE,MAAM;;;EAMrC"}
|
package/dist/acp-agent.js
CHANGED
|
@@ -280,6 +280,10 @@ const AUTONOMOUS_RESULT_ORIGINS = new Set([
|
|
|
280
280
|
"observer",
|
|
281
281
|
"observer-activity",
|
|
282
282
|
]);
|
|
283
|
+
/** The foreground work of a session (see ForegroundEvents): a prompt's turn,
|
|
284
|
+
* or a model cycle that Claude Code started on its own. At most one cycle
|
|
285
|
+
* runs at a time, so a constant names it. */
|
|
286
|
+
const AUTONOMOUS_CYCLE = "autonomous-cycle";
|
|
283
287
|
/** Whether this turn's terminal result arrived but its settlement is being
|
|
284
288
|
* held for background subagents it spawned (see Turn.deferredSettle). The
|
|
285
289
|
* single spelling of the hold predicate, shared by the consumer's settle
|
|
@@ -2406,6 +2410,8 @@ export class ClaudeAcpAgent {
|
|
|
2406
2410
|
if (turnInFlight.deferredSettle !== undefined) {
|
|
2407
2411
|
turnInFlight.steeredSettle = turnInFlight.deferredSettle;
|
|
2408
2412
|
turnInFlight.deferredSettle = undefined;
|
|
2413
|
+
// The held turn's work had ended at its result; the steer resumes it.
|
|
2414
|
+
this.startForeground(sessionId, turnInFlight);
|
|
2409
2415
|
}
|
|
2410
2416
|
session.input.push(userMessage);
|
|
2411
2417
|
const firstText = params.prompt[0]?.type === "text" ? params.prompt[0].text : "";
|
|
@@ -2712,6 +2718,7 @@ export class ClaudeAcpAgent {
|
|
|
2712
2718
|
const activateTurn = (turn) => {
|
|
2713
2719
|
session.activeTurn = turn;
|
|
2714
2720
|
session.cancelled = false;
|
|
2721
|
+
session.cancelledPrompts = undefined;
|
|
2715
2722
|
compaction.resume();
|
|
2716
2723
|
if (turn.localCommand?.startsAtActivation)
|
|
2717
2724
|
ensureLocalCommandMarkdown(turn);
|
|
@@ -2783,7 +2790,7 @@ export class ClaudeAcpAgent {
|
|
|
2783
2790
|
* a stamp naming an orphaned command consumes the result outright, and a
|
|
2784
2791
|
* stamp naming anything else positively refutes "this is a dead turn's
|
|
2785
2792
|
* result", so the dup-over-loss one-skip must not eat it. */
|
|
2786
|
-
const ensureActiveTurn = async (resultUserMessageUuid) => {
|
|
2793
|
+
const ensureActiveTurn = async (resultUserMessageUuid, resultUserMessageUuids) => {
|
|
2787
2794
|
if (session.activeTurn) {
|
|
2788
2795
|
if (!isHeldOpen(session.activeTurn)) {
|
|
2789
2796
|
return;
|
|
@@ -2809,8 +2816,8 @@ export class ClaudeAcpAgent {
|
|
|
2809
2816
|
}
|
|
2810
2817
|
// Orphan accounting runs BEFORE the head check: an orphan's echo-less
|
|
2811
2818
|
// result can arrive with an EMPTY queue (the common post-cancel
|
|
2812
|
-
// timeline — the
|
|
2813
|
-
// user hasn't typed yet), and it must still be consumed here. Skipping
|
|
2819
|
+
// timeline — the cancelled turn settled at its interrupted result and
|
|
2820
|
+
// the user hasn't typed yet), and it must still be consumed here. Skipping
|
|
2814
2821
|
// the bookkeeping when there is nothing to promote would leave a
|
|
2815
2822
|
// phantom entry/count that swallows the next live echo-less result
|
|
2816
2823
|
// (e.g. /compact) instead.
|
|
@@ -2879,6 +2886,14 @@ export class ClaudeAcpAgent {
|
|
|
2879
2886
|
}
|
|
2880
2887
|
}
|
|
2881
2888
|
}
|
|
2889
|
+
// A result that names a prompt a cancel stopped is that prompt's, even
|
|
2890
|
+
// when the orphan accounting above lost track of it: the interrupt
|
|
2891
|
+
// receipt leaves out a prompt that Claude Code had already taken off its
|
|
2892
|
+
// queue. It must not settle the prompt sent after the cancel.
|
|
2893
|
+
const stamps = resultUserMessageUuids ??
|
|
2894
|
+
(resultUserMessageUuid !== undefined ? [resultUserMessageUuid] : []);
|
|
2895
|
+
if (stamps.some((uuid) => session.cancelledPrompts?.has(uuid)))
|
|
2896
|
+
return;
|
|
2882
2897
|
const head = firstUnsettledQueuedTurn();
|
|
2883
2898
|
if (!head) {
|
|
2884
2899
|
return;
|
|
@@ -3051,6 +3066,8 @@ export class ClaudeAcpAgent {
|
|
|
3051
3066
|
!session.activeTurn.settled &&
|
|
3052
3067
|
turnAwaitingSubagents(session.activeTurn)) {
|
|
3053
3068
|
session.activeTurn.deferredSettle = outcome;
|
|
3069
|
+
// The hold delays v1's answer; the turn's work ended at its result.
|
|
3070
|
+
this.endForeground(params.sessionId, session.activeTurn, { outcome });
|
|
3054
3071
|
}
|
|
3055
3072
|
else {
|
|
3056
3073
|
await settleActive(outcome);
|
|
@@ -3227,6 +3244,7 @@ export class ClaudeAcpAgent {
|
|
|
3227
3244
|
/** Reject every in-flight turn — used when the stream dies. */
|
|
3228
3245
|
const failAllTurns = (error) => {
|
|
3229
3246
|
disarmForceCancel(session);
|
|
3247
|
+
this.endAutonomousCycle(params.sessionId, { error });
|
|
3230
3248
|
const turns = session.activeTurn
|
|
3231
3249
|
? [session.activeTurn, ...(session.turnQueue ?? []).filter((t) => t !== session.activeTurn)]
|
|
3232
3250
|
: [...(session.turnQueue ?? [])];
|
|
@@ -3324,9 +3342,9 @@ export class ClaudeAcpAgent {
|
|
|
3324
3342
|
}
|
|
3325
3343
|
}
|
|
3326
3344
|
else if (active.commandResultSeen) {
|
|
3327
|
-
// Its result was already consumed (
|
|
3328
|
-
//
|
|
3329
|
-
//
|
|
3345
|
+
// Its result was already consumed (at the cancelled guard);
|
|
3346
|
+
// only the terminal frame is outstanding, which no-ops with no
|
|
3347
|
+
// entry. Nothing to track.
|
|
3330
3348
|
}
|
|
3331
3349
|
else {
|
|
3332
3350
|
// The wedged turn WAS dispatched (it's active), so track it
|
|
@@ -3393,6 +3411,9 @@ export class ClaudeAcpAgent {
|
|
|
3393
3411
|
// it), but the stored one is the authoritative source.
|
|
3394
3412
|
const inFlight = session.activeTurn;
|
|
3395
3413
|
await finishLifecycle(session.cancelled ? "cancelled" : "failed", session.cancelled ? "stopped" : "failed", "at end of stream");
|
|
3414
|
+
this.endAutonomousCycle(params.sessionId, session.cancelled
|
|
3415
|
+
? { outcome: { stopReason: "cancelled" } }
|
|
3416
|
+
: { error: RequestError.internalError(undefined, SESSION_ENDED_MESSAGE) });
|
|
3396
3417
|
await settleActive(session.cancelled
|
|
3397
3418
|
? cancelledOutcome(session, inFlight)
|
|
3398
3419
|
: (inFlight?.deferredSettle ?? turnOutcome(session, stopReason)));
|
|
@@ -3535,6 +3556,7 @@ export class ClaudeAcpAgent {
|
|
|
3535
3556
|
await this.publishRuntimeGoal(params.sessionId, toGoalSnapshot(activeGoal));
|
|
3536
3557
|
continue;
|
|
3537
3558
|
}
|
|
3559
|
+
this.startAutonomousCycle(params.sessionId, session, message);
|
|
3538
3560
|
switch (message.type) {
|
|
3539
3561
|
case "system":
|
|
3540
3562
|
switch (message.subtype) {
|
|
@@ -3546,6 +3568,9 @@ export class ClaudeAcpAgent {
|
|
|
3546
3568
|
if (message.capabilities?.includes("msg_lifecycle_v1")) {
|
|
3547
3569
|
session.msgLifecycleV1 = true;
|
|
3548
3570
|
}
|
|
3571
|
+
if (message.capabilities?.includes("request_marker_lists_v1")) {
|
|
3572
|
+
session.requestMarkerListsV1 = true;
|
|
3573
|
+
}
|
|
3549
3574
|
// A fresh `system`/init (e.g. after reinitialize) can carry an
|
|
3550
3575
|
// updated Fast mode state; reconcile it with what we seeded at
|
|
3551
3576
|
// session creation.
|
|
@@ -3581,6 +3606,24 @@ export class ClaudeAcpAgent {
|
|
|
3581
3606
|
}
|
|
3582
3607
|
break;
|
|
3583
3608
|
case "status": {
|
|
3609
|
+
// A model request that serves none of the prompts a cancel
|
|
3610
|
+
// stopped is new work, such as Claude Code's follow-up after a
|
|
3611
|
+
// background command finished. It comes after the stopped
|
|
3612
|
+
// work's result: Claude Code ends the interrupted turn first,
|
|
3613
|
+
// then runs any prompt it had already taken off its queue (its
|
|
3614
|
+
// request names it, so the cancel still drops it), then its own
|
|
3615
|
+
// follow-ups, whose requests name no prompt.
|
|
3616
|
+
if (message.status === "requesting" &&
|
|
3617
|
+
session.cancelled &&
|
|
3618
|
+
session.requestMarkerListsV1 &&
|
|
3619
|
+
!servesCancelledWork(session, message)) {
|
|
3620
|
+
session.cancelled = false;
|
|
3621
|
+
session.cancelledPrompts = undefined;
|
|
3622
|
+
// The stopped work's tail has drained, as at activation.
|
|
3623
|
+
compaction.resume();
|
|
3624
|
+
}
|
|
3625
|
+
if (message.status === "requesting")
|
|
3626
|
+
session.modelRequestSinceResult = true;
|
|
3584
3627
|
if (message.status === "compacting") {
|
|
3585
3628
|
await compaction.start(message.uuid);
|
|
3586
3629
|
}
|
|
@@ -3672,6 +3715,17 @@ export class ClaudeAcpAgent {
|
|
|
3672
3715
|
session.owedTrailingIdles = 0;
|
|
3673
3716
|
}
|
|
3674
3717
|
if (message.state === "idle") {
|
|
3718
|
+
// A model cycle that Claude Code started on its own normally
|
|
3719
|
+
// ends at its result. An idle that no earlier result owes
|
|
3720
|
+
// means that result will not come (the stream dropped
|
|
3721
|
+
// mid-cycle, as for a turn in issue #825), so the cycle ends
|
|
3722
|
+
// here. An owed idle belongs to an earlier result: it can lag
|
|
3723
|
+
// past the cycle's first output.
|
|
3724
|
+
if (session.owedTrailingIdles === 0) {
|
|
3725
|
+
this.endAutonomousCycle(params.sessionId, {
|
|
3726
|
+
outcome: { stopReason: session.cancelled ? "cancelled" : "end_turn" },
|
|
3727
|
+
});
|
|
3728
|
+
}
|
|
3675
3729
|
// A non-cancelled turn normally settled at its terminal
|
|
3676
3730
|
// `result` already (issue #773), and that result recorded an
|
|
3677
3731
|
// owed trailing idle — absorbed here via the decrement. We
|
|
@@ -3681,9 +3735,9 @@ export class ClaudeAcpAgent {
|
|
|
3681
3735
|
// the time it arrives the SDK may have echoed the NEXT turn
|
|
3682
3736
|
// and activated it — settling now would resolve that new
|
|
3683
3737
|
// turn prematurely with end_turn and ~zero usage, dropping
|
|
3684
|
-
// its real result. A cancelled turn
|
|
3685
|
-
//
|
|
3686
|
-
//
|
|
3738
|
+
// its real result. A cancelled turn settles at its
|
|
3739
|
+
// interrupted result (at the `session.cancelled` guard); one
|
|
3740
|
+
// whose result never came settles here.
|
|
3687
3741
|
//
|
|
3688
3742
|
// An idle that is NOT owed while the active turn is still
|
|
3689
3743
|
// unsettled is the issue #825 signature: `idle` is the SDK's
|
|
@@ -3695,12 +3749,9 @@ export class ClaudeAcpAgent {
|
|
|
3695
3749
|
// the turn NOW so its session/prompt gets a terminal
|
|
3696
3750
|
// response, instead of leaving it hanging until the next
|
|
3697
3751
|
// prompt drains the wreckage.
|
|
3698
|
-
// A cancelled turn
|
|
3699
|
-
//
|
|
3700
|
-
//
|
|
3701
|
-
// report it — clients metering spend would otherwise lose
|
|
3702
|
-
// the interrupted turn's tokens entirely (issue #844). Zero
|
|
3703
|
-
// when the cancel pre-empted the result (wedge/force-cancel).
|
|
3752
|
+
// A cancelled turn reaches this with no result of its own,
|
|
3753
|
+
// so its usage is zero (wedge/force-cancel), or, for a held
|
|
3754
|
+
// turn, the usage its result recorded (issue #844).
|
|
3704
3755
|
if (session.cancelled && session.activeTurn && !session.activeTurn.settled) {
|
|
3705
3756
|
// A held turn's result passed long ago; this idle is the
|
|
3706
3757
|
// trailer of the followup cycle the cancel interrupted,
|
|
@@ -3753,8 +3804,11 @@ export class ClaudeAcpAgent {
|
|
|
3753
3804
|
// Via the subagent gate, not settleActive: a steered turn
|
|
3754
3805
|
// can also have spawned background subagents, which own it
|
|
3755
3806
|
// from here (settles now if none is live, holds otherwise).
|
|
3807
|
+
const outcome = session.activeTurn.steeredSettle;
|
|
3756
3808
|
const steered = session.activeTurn;
|
|
3757
|
-
steered.deferredSettle =
|
|
3809
|
+
steered.deferredSettle = outcome;
|
|
3810
|
+
// A hold delays v1's answer; the turn's work ends here.
|
|
3811
|
+
this.endForeground(params.sessionId, steered, { outcome });
|
|
3758
3812
|
leaveSteerLane(steered);
|
|
3759
3813
|
await settleDeferredIfDrained();
|
|
3760
3814
|
}
|
|
@@ -4237,6 +4291,7 @@ export class ClaudeAcpAgent {
|
|
|
4237
4291
|
}
|
|
4238
4292
|
break;
|
|
4239
4293
|
case "result": {
|
|
4294
|
+
session.modelRequestSinceResult = false;
|
|
4240
4295
|
// The result ends the model turn. A background task that still
|
|
4241
4296
|
// waits for its tool call id gets its spawn now, without the id.
|
|
4242
4297
|
await asyncTasks.releaseHeld();
|
|
@@ -4271,7 +4326,7 @@ export class ClaudeAcpAgent {
|
|
|
4271
4326
|
// the map in that case).
|
|
4272
4327
|
if (!isAutonomousResult) {
|
|
4273
4328
|
recordResultForOrphanCommands();
|
|
4274
|
-
await ensureActiveTurn(message.user_message_uuid);
|
|
4329
|
+
await ensureActiveTurn(message.user_message_uuid, message.user_message_uuids);
|
|
4275
4330
|
// A result that names a steer consumed it (see
|
|
4276
4331
|
// Turn.steeredEchoes), so the steered work is done: retire
|
|
4277
4332
|
// its echo — the CLI may never have replayed it — and, with
|
|
@@ -4332,13 +4387,10 @@ export class ClaudeAcpAgent {
|
|
|
4332
4387
|
// orphan skip) and the SDK follows it with a trailing
|
|
4333
4388
|
// `session_state_changed: idle` — record the debt so the idle
|
|
4334
4389
|
// handler absorbs that idle rather than reading it as a turn the
|
|
4335
|
-
// SDK abandoned (issue #825).
|
|
4336
|
-
// turn
|
|
4337
|
-
// guard
|
|
4338
|
-
//
|
|
4339
|
-
// the debt there instead) — counting here too would double it.
|
|
4340
|
-
// Results skipped while cancelled with NO active turn — orphaned
|
|
4341
|
-
// queued turns the SDK still ran, or a force-cancelled turn's
|
|
4390
|
+
// SDK abandoned (issue #825). That includes the result of a
|
|
4391
|
+
// cancelled turn, which settles it at the `session.cancelled`
|
|
4392
|
+
// guard below. Results skipped while cancelled with NO active
|
|
4393
|
+
// turn — orphaned queued turns the SDK still ran, or a force-cancelled turn's
|
|
4342
4394
|
// late result after the backstop settled it — get no such settle,
|
|
4343
4395
|
// so their trailers must be counted here or they'd later be read
|
|
4344
4396
|
// as the next healthy turn being abandoned and false-fail it.
|
|
@@ -4351,20 +4403,17 @@ export class ClaudeAcpAgent {
|
|
|
4351
4403
|
// but a held turn settling AT a followup result unblocks the
|
|
4352
4404
|
// client at exactly that point, making the race the common
|
|
4353
4405
|
// case.
|
|
4354
|
-
//
|
|
4355
|
-
// turn's OWN result — a followup result arriving inside the
|
|
4356
|
-
// cancel window still gets its own trailer and must be counted,
|
|
4357
|
-
// or that idle would later false-fail the next prompt.
|
|
4358
|
-
// A second exclusion: a steered turn's own results (see
|
|
4406
|
+
// One exclusion: a steered turn's own results (see
|
|
4359
4407
|
// Turn.steeredEchoes). One idle covers the whole interrupted +
|
|
4360
4408
|
// steered sequence and that idle settles the turn, so counting
|
|
4361
4409
|
// either result would leave a debt that swallows it. Autonomous
|
|
4362
4410
|
// results inside a steered turn keep their own trailers, and so
|
|
4363
4411
|
// does a result that named the steer: it took the turn out of the
|
|
4364
|
-
// steer lane above and settles at the result, not the idle.
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4412
|
+
// steer lane above and settles at the result, not the idle. So
|
|
4413
|
+
// does a cancelled steered turn's result, which settles it at the
|
|
4414
|
+
// `session.cancelled` guard below.
|
|
4415
|
+
const owesTrailingIdle = isAutonomousResult || !isSteering(session.activeTurn) || session.cancelled;
|
|
4416
|
+
if (owesTrailingIdle) {
|
|
4368
4417
|
session.owedTrailingIdles++;
|
|
4369
4418
|
}
|
|
4370
4419
|
// Accumulate usage into the user turn's tally. Skip autonomous
|
|
@@ -4450,6 +4499,26 @@ export class ClaudeAcpAgent {
|
|
|
4450
4499
|
}),
|
|
4451
4500
|
});
|
|
4452
4501
|
}
|
|
4502
|
+
// A model cycle that Claude Code started on its own ends at its
|
|
4503
|
+
// result, after its usage, also after a cancel. A turn that
|
|
4504
|
+
// Claude Code takes in takes the cycle over, so a cycle that
|
|
4505
|
+
// still runs owns this result, whatever its origin says. A
|
|
4506
|
+
// placeholder result (`num_turns: 0`, see the autonomous lane
|
|
4507
|
+
// below) comes before the shared followup runs, so it ends
|
|
4508
|
+
// nothing. The diagnostic of an ExitPlanMode answer that
|
|
4509
|
+
// interrupted the cycle ends it `cancelled`, as it ends a turn,
|
|
4510
|
+
// unless a held turn continues the accepted plan in a fresh
|
|
4511
|
+
// context: that turn takes the cycle over (see the autonomous
|
|
4512
|
+
// lane below).
|
|
4513
|
+
const exitPlanInterruption = pendingExitPlanModeInterruption !== undefined &&
|
|
4514
|
+
isExitPlanInterruptionResult(message, pendingExitPlanModeInterruption);
|
|
4515
|
+
const continuesPlan = exitPlanInterruption &&
|
|
4516
|
+
isHeldOpen(session.activeTurn) &&
|
|
4517
|
+
pendingExitPlanContextReset?.toolUseId ===
|
|
4518
|
+
pendingExitPlanModeInterruption?.toolUseId;
|
|
4519
|
+
if (!continuesPlan && !(isAutonomousResult && message.num_turns === 0)) {
|
|
4520
|
+
this.endAutonomousCycle(params.sessionId, autonomousCycleEnd(message, resultModelUsage, session.cancelled || exitPlanInterruption || isAbortedResult(message)));
|
|
4521
|
+
}
|
|
4453
4522
|
if (session.cancelled) {
|
|
4454
4523
|
session.pendingExitPlanModeInterruption = undefined;
|
|
4455
4524
|
session.pendingExitPlanContextReset = undefined;
|
|
@@ -4457,6 +4526,21 @@ export class ClaudeAcpAgent {
|
|
|
4457
4526
|
await clearFailuresFromEarlierTurns();
|
|
4458
4527
|
stopReason = "cancelled";
|
|
4459
4528
|
}
|
|
4529
|
+
// The cancelled turn ends at the result of the work the
|
|
4530
|
+
// interrupt stopped: its own result, or for a turn held open
|
|
4531
|
+
// for its subagents (see Turn.deferredSettle), its follow-up's
|
|
4532
|
+
// aborted one. A follow-up result that is not aborted, such as
|
|
4533
|
+
// a placeholder or one that ended before the interrupt landed,
|
|
4534
|
+
// belongs to other work. Claude Code ends the stopped work
|
|
4535
|
+
// first, then goes on with its queue, so the idle can come
|
|
4536
|
+
// much later, after a follow-up. That idle, the next echo's
|
|
4537
|
+
// hand-off, and the force-cancel backstop settle a turn whose
|
|
4538
|
+
// result never comes.
|
|
4539
|
+
const active = session.activeTurn;
|
|
4540
|
+
const stoppedWork = !isAutonomousResult || (isHeldOpen(active) && isAbortedResult(message));
|
|
4541
|
+
if (active && !active.settled && stoppedWork) {
|
|
4542
|
+
await settleActive(cancelledOutcome(session, active));
|
|
4543
|
+
}
|
|
4460
4544
|
break;
|
|
4461
4545
|
}
|
|
4462
4546
|
// A held turn (see Turn.deferredSettle) settles at its
|
|
@@ -4493,8 +4577,11 @@ export class ClaudeAcpAgent {
|
|
|
4493
4577
|
pendingExitPlanModeInterruption.toolUseId) {
|
|
4494
4578
|
// The fresh query has none of this one's background
|
|
4495
4579
|
// tasks, so the hold can never drain there: drop it, and
|
|
4496
|
-
// let the continuation's own result settle the turn.
|
|
4580
|
+
// let the continuation's own result settle the turn. The
|
|
4581
|
+
// continuation is the turn's work again, which takes
|
|
4582
|
+
// over the follow-up cycle that planned it.
|
|
4497
4583
|
heldTurn.deferredSettle = undefined;
|
|
4584
|
+
this.startForeground(params.sessionId, heldTurn);
|
|
4498
4585
|
await this.exitPlan.restart(params.sessionId, session, pendingExitPlanContextReset);
|
|
4499
4586
|
return;
|
|
4500
4587
|
}
|
|
@@ -4761,9 +4848,10 @@ export class ClaudeAcpAgent {
|
|
|
4761
4848
|
// subagent never holds the prompt hostage.
|
|
4762
4849
|
//
|
|
4763
4850
|
// is_error/auth already settled via failActive (activeTurn is null
|
|
4764
|
-
// then, so both branches no-op);
|
|
4765
|
-
//
|
|
4766
|
-
//
|
|
4851
|
+
// then, so both branches no-op); a cancelled turn settles at
|
|
4852
|
+
// the `session.cancelled` guard above, or on the idle/abort
|
|
4853
|
+
// path when its result never comes. settleActive is idempotent,
|
|
4854
|
+
// so a duplicate idle is a no-op.
|
|
4767
4855
|
//
|
|
4768
4856
|
// A result also closes this compaction lifecycle — before the
|
|
4769
4857
|
// settle, so a `cancelled` terminal for an entity the runtime
|
|
@@ -4962,7 +5050,7 @@ export class ClaudeAcpAgent {
|
|
|
4962
5050
|
if (session.activeTurn !== queued) {
|
|
4963
5051
|
if (session.activeTurn) {
|
|
4964
5052
|
// Hand off the previous turn. If a cancel is pending for it
|
|
4965
|
-
// (its
|
|
5053
|
+
// (neither its result nor its idle has arrived), settle it
|
|
4966
5054
|
// "cancelled" per the ACP contract rather than "end_turn" —
|
|
4967
5055
|
// otherwise a cancel followed quickly by the next prompt
|
|
4968
5056
|
// would report the cancelled turn as a normal completion.
|
|
@@ -5440,6 +5528,16 @@ export class ClaudeAcpAgent {
|
|
|
5440
5528
|
return;
|
|
5441
5529
|
}
|
|
5442
5530
|
session.cancelled = true;
|
|
5531
|
+
// Before anything awaits, so a model request that the consumer reads in
|
|
5532
|
+
// the meantime is already judged against these prompts.
|
|
5533
|
+
session.cancelledPrompts ??= new Set();
|
|
5534
|
+
for (const turn of session.turnQueue ?? []) {
|
|
5535
|
+
if (turn.settled)
|
|
5536
|
+
continue;
|
|
5537
|
+
session.cancelledPrompts.add(turn.promptUuid);
|
|
5538
|
+
for (const uuid of turn.steeredUuids ?? [])
|
|
5539
|
+
session.cancelledPrompts.add(uuid);
|
|
5540
|
+
}
|
|
5443
5541
|
for (const turn of session.turnQueue ?? [])
|
|
5444
5542
|
turn.localCommandAbort?.abort();
|
|
5445
5543
|
session.pendingExitPlanModeInterruption = undefined;
|
|
@@ -5490,9 +5588,10 @@ export class ClaudeAcpAgent {
|
|
|
5490
5588
|
// never decrements the count) to miss.
|
|
5491
5589
|
const lifecycleLane = session.msgLifecycleV1 === true;
|
|
5492
5590
|
// Settle queued turns that haven't started yet (no echo seen) right away —
|
|
5493
|
-
// they have no in-flight SDK work to interrupt. The
|
|
5494
|
-
//
|
|
5495
|
-
// backstop below). Mirrors the old pendingMessages
|
|
5591
|
+
// they have no in-flight SDK work to interrupt. The consumer settles the
|
|
5592
|
+
// active turn at its interrupted result, or at the idle when that never
|
|
5593
|
+
// comes (or via the backstop below). Mirrors the old pendingMessages
|
|
5594
|
+
// cancellation.
|
|
5496
5595
|
const orphanedTurns = [];
|
|
5497
5596
|
if (session.turnQueue) {
|
|
5498
5597
|
for (const turn of session.turnQueue) {
|
|
@@ -5578,14 +5677,19 @@ export class ClaudeAcpAgent {
|
|
|
5578
5677
|
// whose session sits idle gets no trailing idle (the interrupt emits
|
|
5579
5678
|
// nothing; with no state events consumed yet, the same is assumed).
|
|
5580
5679
|
// A held turn whose followup cycle is live (running, or blocked on a
|
|
5581
|
-
// permission request) is left to that
|
|
5582
|
-
//
|
|
5583
|
-
//
|
|
5584
|
-
//
|
|
5585
|
-
//
|
|
5680
|
+
// permission request) is left to that cycle's interrupted result, like any
|
|
5681
|
+
// live turn, or to the idle when no result comes. The captured outcome
|
|
5682
|
+
// preserves usage and metadata (issue #844), while reporter state makes a
|
|
5683
|
+
// late checkpoint response harmless.
|
|
5684
|
+
// Since CLI 2.1.270, Claude Code reports `running` for as long as
|
|
5685
|
+
// background agents live, so the session state cannot tell a live
|
|
5686
|
+
// followup from a hold. With request markers, a followup is live when one
|
|
5687
|
+
// of its model requests started after the turn's result.
|
|
5586
5688
|
{
|
|
5587
5689
|
const active = session.activeTurn;
|
|
5588
|
-
const followupLive = session.
|
|
5690
|
+
const followupLive = session.requestMarkerListsV1
|
|
5691
|
+
? session.modelRequestSinceResult === true
|
|
5692
|
+
: session.lastSessionState === "running" || session.lastSessionState === "requires_action";
|
|
5589
5693
|
if (active &&
|
|
5590
5694
|
(active.settling || (isHeldOpen(active) && !followupLive)) &&
|
|
5591
5695
|
(active.deferredSettle ?? active.settlingOutcome)) {
|
|
@@ -5625,7 +5729,7 @@ export class ClaudeAcpAgent {
|
|
|
5625
5729
|
}
|
|
5626
5730
|
}
|
|
5627
5731
|
// A steered active turn (see Turn.steeredEchoes) settles "cancelled" in the
|
|
5628
|
-
// consumer at
|
|
5732
|
+
// consumer at its interrupted result, or at the idle, like any live turn. But the
|
|
5629
5733
|
// steer lane pays for its last result's trailer by settling on it, which
|
|
5630
5734
|
// this cancel pre-empts, so count that trailer here or it arrives un-owed
|
|
5631
5735
|
// against the next prompt and false-fails it (issue #825). Over-counting
|
|
@@ -5656,6 +5760,10 @@ export class ClaudeAcpAgent {
|
|
|
5656
5760
|
}
|
|
5657
5761
|
// Before the interrupt: once it stops the running turn, Claude Code starts
|
|
5658
5762
|
// the next queued message right away.
|
|
5763
|
+
// A prompt or steer that arrived while this cancel awaited is abandoned
|
|
5764
|
+
// too, after the record above was taken.
|
|
5765
|
+
for (const uuid of abandoned)
|
|
5766
|
+
(session.cancelledPrompts ??= new Set()).add(uuid);
|
|
5659
5767
|
this.dropQueuedMessages(params.sessionId, session.query, abandoned);
|
|
5660
5768
|
const interrupt = session.query.interrupt();
|
|
5661
5769
|
if (!options.awaitInterrupt) {
|
|
@@ -5776,6 +5884,9 @@ export class ClaudeAcpAgent {
|
|
|
5776
5884
|
catch (error) {
|
|
5777
5885
|
this.logger.error(`Session ${sessionId}: cancellation failed during teardown`, error);
|
|
5778
5886
|
}
|
|
5887
|
+
// The turns end before this returns; so does a model cycle that Claude
|
|
5888
|
+
// Code started on its own, which no turn waits for.
|
|
5889
|
+
this.endAutonomousCycle(sessionId, { outcome: { stopReason: "cancelled" } });
|
|
5779
5890
|
// cancel() arms the force-cancel floor and interrupts gracefully, but a
|
|
5780
5891
|
// wedged consumer only wakes when `cancelController` aborts — closeQueryStream
|
|
5781
5892
|
// below doesn't touch it. Since we're tearing the session down anyway, wake
|
|
@@ -6322,13 +6433,24 @@ export class ClaudeAcpAgent {
|
|
|
6322
6433
|
work.events.running();
|
|
6323
6434
|
}
|
|
6324
6435
|
/** Make `owner` the foreground work of the session `sessionId` (see
|
|
6325
|
-
* {@link ForegroundEvents})
|
|
6436
|
+
* {@link ForegroundEvents}): it reports `running`, then waits at once if a
|
|
6437
|
+
* request is open. If work already runs, it goes on under `owner` and
|
|
6438
|
+
* reports nothing new: a turn takes over a cycle that Claude Code started on
|
|
6439
|
+
* its own, and only the owner's end ends the work. */
|
|
6326
6440
|
startForeground(sessionId, owner) {
|
|
6327
|
-
if (!this.foregroundEvents
|
|
6441
|
+
if (!this.foregroundEvents)
|
|
6328
6442
|
return;
|
|
6443
|
+
const current = this.foregroundWork.get(sessionId);
|
|
6444
|
+
if (current) {
|
|
6445
|
+
current.owner = owner;
|
|
6446
|
+
return;
|
|
6447
|
+
}
|
|
6329
6448
|
const events = this.foregroundEvents(sessionId);
|
|
6330
6449
|
this.foregroundWork.set(sessionId, { owner, events, awaitingUser: false });
|
|
6331
6450
|
events.running();
|
|
6451
|
+
const session = this.sessions[sessionId];
|
|
6452
|
+
if (session)
|
|
6453
|
+
this.syncAwaitingUser(sessionId, session);
|
|
6332
6454
|
}
|
|
6333
6455
|
/** End the foreground work of the session `sessionId` with `outcome`, or as
|
|
6334
6456
|
* failed with `error`, if `owner` is that work. */
|
|
@@ -6342,6 +6464,33 @@ export class ClaudeAcpAgent {
|
|
|
6342
6464
|
else
|
|
6343
6465
|
work.events.failed(end.error);
|
|
6344
6466
|
}
|
|
6467
|
+
/** Start a model cycle that Claude Code started on its own as the foreground
|
|
6468
|
+
* work (see {@link ForegroundEvents}) when `message` is its first output:
|
|
6469
|
+
* model output of the main conversation (not a subagent's) while no work
|
|
6470
|
+
* runs. That includes a turn that v1 holds for its background subagents,
|
|
6471
|
+
* whose work ended at its result, so its follow-up is a cycle. Output of
|
|
6472
|
+
* the work a cancel stopped starts nothing (see Session.cancelled). */
|
|
6473
|
+
startAutonomousCycle(sessionId, session, message) {
|
|
6474
|
+
if (!this.foregroundEvents || this.foregroundWork.has(sessionId) || session.cancelled)
|
|
6475
|
+
return;
|
|
6476
|
+
if (message.type !== "assistant" && message.type !== "stream_event")
|
|
6477
|
+
return;
|
|
6478
|
+
if (message.parent_tool_use_id !== null)
|
|
6479
|
+
return;
|
|
6480
|
+
// A turn that Claude Code started is the foreground work already. Without
|
|
6481
|
+
// lifecycle frames, a queued turn's output can come before its echo, so
|
|
6482
|
+
// output while a turn is queued may be that turn's. With them, a turn that
|
|
6483
|
+
// Claude Code has not started has no output yet.
|
|
6484
|
+
const queued = (session.turnQueue ?? []).some((turn) => !turn.settled && turn !== session.activeTurn);
|
|
6485
|
+
if (queued && !session.msgLifecycleV1)
|
|
6486
|
+
return;
|
|
6487
|
+
this.startForeground(sessionId, AUTONOMOUS_CYCLE);
|
|
6488
|
+
}
|
|
6489
|
+
/** End the session's model cycle that Claude Code started on its own, if one
|
|
6490
|
+
* runs. */
|
|
6491
|
+
endAutonomousCycle(sessionId, end) {
|
|
6492
|
+
this.endForeground(sessionId, AUTONOMOUS_CYCLE, end);
|
|
6493
|
+
}
|
|
6345
6494
|
/** Forward a permission request to the client, wiring the tool call's
|
|
6346
6495
|
* `signal` through as a `cancellationSignal`. When the turn is cancelled
|
|
6347
6496
|
* while the client's prompt is still open the signal aborts, the SDK sends
|
|
@@ -7949,6 +8098,30 @@ function cancelledOutcome(session, turn) {
|
|
|
7949
8098
|
...(recorded._meta ? { _meta: recorded._meta } : {}),
|
|
7950
8099
|
};
|
|
7951
8100
|
}
|
|
8101
|
+
/** Whether the model request that `status` (a `status: requesting` frame)
|
|
8102
|
+
* starts may belong to the work a cancel stopped. It may while:
|
|
8103
|
+
* - a turn is unsettled: the stopped turn, whose result is still to come, or
|
|
8104
|
+
* a queued prompt, which the cancel abandons (one that arrived while the
|
|
8105
|
+
* cancel awaited is recorded only when the cancel sweeps the queue) or
|
|
8106
|
+
* whose echo ends the cancel right after its request anyway;
|
|
8107
|
+
* - the orphan accounting still expects the result of an abandoned prompt
|
|
8108
|
+
* that Claude Code may still run, which it can fold into its own
|
|
8109
|
+
* follow-up after that follow-up's first request;
|
|
8110
|
+
* - the request serves one of {@link Session.cancelledPrompts}, as an
|
|
8111
|
+
* abandoned prompt's request does even when the interrupt receipt left it
|
|
8112
|
+
* out of the orphan accounting. */
|
|
8113
|
+
function servesCancelledWork(session, status) {
|
|
8114
|
+
const cancelled = session.cancelledPrompts;
|
|
8115
|
+
if (!cancelled)
|
|
8116
|
+
return false;
|
|
8117
|
+
if ((session.turnQueue ?? []).some((turn) => !turn.settled))
|
|
8118
|
+
return true;
|
|
8119
|
+
if ((session.pendingOrphanResults ?? 0) > 0 || (session.orphanCommands?.size ?? 0) > 0) {
|
|
8120
|
+
return true;
|
|
8121
|
+
}
|
|
8122
|
+
const served = status.user_message_uuids;
|
|
8123
|
+
return (Array.isArray(served) && served.some((uuid) => typeof uuid === "string" && cancelled.has(uuid)));
|
|
8124
|
+
}
|
|
7952
8125
|
/** `_meta.quota` for a prompt response: what the turn spent, shaped like
|
|
7953
8126
|
* codex-acp's (snake_case container keys, camelCase counters) so a client
|
|
7954
8127
|
* reads one shape from either agent.
|
|
@@ -7961,16 +8134,62 @@ function cancelledOutcome(session, turn) {
|
|
|
7961
8134
|
* so the rows can total more than `token_count`. They are the fuller picture,
|
|
7962
8135
|
* not a decomposition of it. */
|
|
7963
8136
|
function turnQuotaMeta(session) {
|
|
8137
|
+
return quotaMeta(session.accumulatedUsage, session.accumulatedModelUsage);
|
|
8138
|
+
}
|
|
8139
|
+
/** `_meta.quota` for work that spent `usage` in its main agent loop and
|
|
8140
|
+
* `modelUsage` by model (see {@link turnQuotaMeta}). */
|
|
8141
|
+
function quotaMeta(usage, modelUsage) {
|
|
7964
8142
|
return {
|
|
7965
8143
|
quota: {
|
|
7966
|
-
token_count: quotaTokenCount(
|
|
7967
|
-
model_usage: Object.entries(
|
|
8144
|
+
token_count: quotaTokenCount(usage),
|
|
8145
|
+
model_usage: Object.entries(modelUsage ?? {}).map(([model, usage]) => ({
|
|
7968
8146
|
model,
|
|
7969
8147
|
token_count: quotaTokenCount(usage),
|
|
7970
8148
|
})),
|
|
7971
8149
|
},
|
|
7972
8150
|
};
|
|
7973
8151
|
}
|
|
8152
|
+
/** Whether Claude Code ended the work of `result` because an interrupt
|
|
8153
|
+
* stopped it, while the model streamed or while a tool ran. */
|
|
8154
|
+
function isAbortedResult(result) {
|
|
8155
|
+
return (result.terminal_reason === "aborted_streaming" || result.terminal_reason === "aborted_tools");
|
|
8156
|
+
}
|
|
8157
|
+
/** How a model cycle that Claude Code started on its own ended, read from its
|
|
8158
|
+
* result as a turn's is: a refusal, the token limit, and the turn and budget
|
|
8159
|
+
* limits are their stop reasons, an error result fails the cycle, and a
|
|
8160
|
+
* cancel ends it `cancelled`. The usage and `_meta.quota` are the result's
|
|
8161
|
+
* own, `modelUsage` its increment by model, since autonomous results stay out
|
|
8162
|
+
* of the turn tally. */
|
|
8163
|
+
function autonomousCycleEnd(result, modelUsage, cancelled) {
|
|
8164
|
+
// Typed non-null, but third-party backends have been observed omitting
|
|
8165
|
+
// usage token fields (see snapshotFromUsage).
|
|
8166
|
+
const tally = {
|
|
8167
|
+
inputTokens: result.usage.input_tokens ?? 0,
|
|
8168
|
+
outputTokens: result.usage.output_tokens ?? 0,
|
|
8169
|
+
cachedReadTokens: result.usage.cache_read_input_tokens ?? 0,
|
|
8170
|
+
cachedWriteTokens: result.usage.cache_creation_input_tokens ?? 0,
|
|
8171
|
+
};
|
|
8172
|
+
const ended = (stopReason) => ({
|
|
8173
|
+
outcome: {
|
|
8174
|
+
stopReason,
|
|
8175
|
+
usage: { ...tally, totalTokens: tallyTotal(tally) },
|
|
8176
|
+
_meta: quotaMeta(tally, modelUsage),
|
|
8177
|
+
},
|
|
8178
|
+
});
|
|
8179
|
+
if (cancelled)
|
|
8180
|
+
return ended("cancelled");
|
|
8181
|
+
if (result.stop_reason === "refusal")
|
|
8182
|
+
return ended("refusal");
|
|
8183
|
+
if (result.stop_reason === "max_tokens")
|
|
8184
|
+
return ended("max_tokens");
|
|
8185
|
+
if (result.is_error) {
|
|
8186
|
+
const text = result.subtype === "success" ? result.result : result.errors.join(", ") || result.subtype;
|
|
8187
|
+
return { error: RequestError.internalError(undefined, text) };
|
|
8188
|
+
}
|
|
8189
|
+
return ended(result.subtype === "success" || result.subtype === "error_during_execution"
|
|
8190
|
+
? "end_turn"
|
|
8191
|
+
: "max_turn_requests");
|
|
8192
|
+
}
|
|
7974
8193
|
/** One `token_count` object. `cachedInputTokens` is cache reads, matching
|
|
7975
8194
|
* codex's field; Claude also reports cache writes, which codex has no slot
|
|
7976
8195
|
* for, so those ride along in an extra sibling (the same name the ACP `usage`
|
package/dist/turn-events.d.ts
CHANGED
|
@@ -38,9 +38,19 @@ export interface TurnEvents {
|
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* The foreground work of a session: what a client would wait for before it
|
|
41
|
-
* sends the next prompt.
|
|
42
|
-
* {@link
|
|
43
|
-
*
|
|
41
|
+
* sends the next prompt. One piece of work runs at a time, and the next starts
|
|
42
|
+
* with {@link running}. The work is either:
|
|
43
|
+
*
|
|
44
|
+
* - A prompt's turn, from {@link TurnEvents.inserted} until its result, or
|
|
45
|
+
* until it fails or is cancelled. A turn that v1 holds open for the
|
|
46
|
+
* background subagents it spawned (`Turn.deferredSettle`) ends its work at
|
|
47
|
+
* its result all the same: the hold only delays v1's answer.
|
|
48
|
+
* - A model cycle that Claude Code starts on its own while no work runs: for
|
|
49
|
+
* example, its follow-up after a background command or subagent finished,
|
|
50
|
+
* or its answer to a message from another session. It runs until its result.
|
|
51
|
+
*
|
|
52
|
+
* A prompt that Claude Code takes in while a cycle runs takes the cycle over:
|
|
53
|
+
* the cycle reports nothing more, and the turn reports from there.
|
|
44
54
|
*/
|
|
45
55
|
export interface ForegroundEvents {
|
|
46
56
|
/** The work started, or works again after it waited for the user. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"turn-events.d.ts","sourceRoot":"","sources":["../src/turn-events.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC;;;OAGG;IACH,KAAK,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;IAClC;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C1B,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC"}
|
package/dist/v2/prompt.d.ts
CHANGED
|
@@ -35,11 +35,12 @@ export declare function v2Prompt(agent: ClaudeAcpAgent, params: v2.PromptRequest
|
|
|
35
35
|
* code as for an error response (for example, `-32000` starts the client's
|
|
36
36
|
* sign-in).
|
|
37
37
|
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
38
|
+
* The work is a prompt's turn or a model cycle that Claude Code started on its
|
|
39
|
+
* own, such as its follow-up after a background subagent finished. A turn's
|
|
40
|
+
* work ends at its result, also when v1 holds the turn's answer for the
|
|
41
|
+
* background subagents it spawned (`Turn.deferredSettle`): v2 allows
|
|
42
|
+
* background updates while idle, so the subagents' output and requests arrive
|
|
43
|
+
* after `idle`, and their follow-up is a cycle of its own.
|
|
43
44
|
*/
|
|
44
45
|
export declare function v2Foreground(send: (update: v2.SessionUpdate) => void): ForegroundEvents;
|
|
45
46
|
/**
|
package/dist/v2/prompt.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/v2/prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAIL,KAAK,aAAa,EAEnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,0CAA0C,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAuC,MAAM,mBAAmB,CAAC;AAE/F;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,EAAE,CAAC,aAAa,EACxB,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,KAAK,IAAI,GACvC,OAAO,CAAC,EAAE,CAAC,cAAc,CAAC,CAiC5B;AAED
|
|
1
|
+
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/v2/prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,EAIL,KAAK,aAAa,EAEnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,KAAK,EAAE,MAAM,0CAA0C,CAAC;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAuC,MAAM,mBAAmB,CAAC;AAE/F;;;;;;;;;;;GAWG;AACH,wBAAgB,QAAQ,CACtB,KAAK,EAAE,cAAc,EACrB,MAAM,EAAE,EAAE,CAAC,aAAa,EACxB,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,KAAK,IAAI,GACvC,OAAO,CAAC,EAAE,CAAC,cAAc,CAAC,CAiC5B;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,aAAa,KAAK,IAAI,GAAG,gBAAgB,CAoBvF;AAgCD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,EAAE,EAAE,CAAC,aAAa,GAAG,aAAa,CAEvF"}
|
package/dist/v2/prompt.js
CHANGED
|
@@ -64,11 +64,12 @@ export function v2Prompt(agent, params, send) {
|
|
|
64
64
|
* code as for an error response (for example, `-32000` starts the client's
|
|
65
65
|
* sign-in).
|
|
66
66
|
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
67
|
+
* The work is a prompt's turn or a model cycle that Claude Code started on its
|
|
68
|
+
* own, such as its follow-up after a background subagent finished. A turn's
|
|
69
|
+
* work ends at its result, also when v1 holds the turn's answer for the
|
|
70
|
+
* background subagents it spawned (`Turn.deferredSettle`): v2 allows
|
|
71
|
+
* background updates while idle, so the subagents' output and requests arrive
|
|
72
|
+
* after `idle`, and their follow-up is a cycle of its own.
|
|
72
73
|
*/
|
|
73
74
|
export function v2Foreground(send) {
|
|
74
75
|
return {
|
package/package.json
CHANGED