@agentclientprotocol/claude-agent-acp 0.58.1 → 0.60.0

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.
@@ -1,4 +1,4 @@
1
- import { AuthenticateRequest, CancelNotification, ClientCapabilities, CompleteElicitationNotification, CreateElicitationRequest, CreateElicitationResponse, ForkSessionRequest, ForkSessionResponse, InitializeRequest, InitializeResponse, ListSessionsRequest, ListSessionsResponse, LoadSessionRequest, LoadSessionResponse, LogoutRequest, NewSessionRequest, NewSessionResponse, PromptRequest, PromptResponse, ReadTextFileRequest, ReadTextFileResponse, RequestPermissionRequest, RequestPermissionResponse, ResumeSessionRequest, ResumeSessionResponse, SessionConfigOption, SessionModeState, SessionNotification, SetSessionConfigOptionRequest, SetSessionConfigOptionResponse, SetSessionModeRequest, SetSessionModeResponse, CloseSessionRequest, CloseSessionResponse, DeleteSessionRequest, DeleteSessionResponse, WriteTextFileRequest, WriteTextFileResponse } from "@agentclientprotocol/sdk";
1
+ import { AuthenticateRequest, CancelNotification, ClientCapabilities, CompleteElicitationNotification, CreateElicitationRequest, CreateElicitationResponse, DisableProviderRequest, DisableProviderResponse, ForkSessionRequest, ForkSessionResponse, InitializeRequest, InitializeResponse, ListProvidersRequest, ListProvidersResponse, LlmProtocol, ListSessionsRequest, ListSessionsResponse, LoadSessionRequest, LoadSessionResponse, LogoutRequest, NewSessionRequest, NewSessionResponse, PromptRequest, PromptResponse, ReadTextFileRequest, ReadTextFileResponse, SetProviderRequest, SetProviderResponse, RequestPermissionRequest, RequestPermissionResponse, ResumeSessionRequest, ResumeSessionResponse, SessionConfigOption, SessionModeState, SessionNotification, SetSessionConfigOptionRequest, SetSessionConfigOptionResponse, SetSessionModeRequest, SetSessionModeResponse, CloseSessionRequest, CloseSessionResponse, DeleteSessionRequest, DeleteSessionResponse, WriteTextFileRequest, WriteTextFileResponse } from "@agentclientprotocol/sdk";
2
2
  import { AgentInfo, CanUseTool, FastModeState, ModelInfo, Options, PermissionMode, PermissionUpdate, Query, SDKMessageOrigin, SDKPartialAssistantMessage, SDKUserMessage } from "@anthropic-ai/claude-agent-sdk";
3
3
  import { ContentBlockParam } from "@anthropic-ai/sdk/resources";
4
4
  import { BetaContentBlock, BetaRawContentBlockDelta } from "@anthropic-ai/sdk/resources/beta.mjs";
@@ -47,6 +47,77 @@ type Turn = {
47
47
  /** Set once the deferred has been resolved/rejected, so the consumer never
48
48
  * settles a turn twice (idle + handoff + stream-end can all race). */
49
49
  settled: boolean;
50
+ /** Set when a `command_lifecycle` "started" frame arrives for this turn's
51
+ * uuid (msg_lifecycle_v1 CLIs): the SDK dispatched the command into a turn.
52
+ * Read by cancel() to seed the orphan's state — a started orphan's turn may
53
+ * still emit a result, an undispatched one may be dropped without one. */
54
+ commandStarted?: boolean;
55
+ /** Set when a terminal `command_lifecycle` frame arrives for this turn's
56
+ * uuid while the turn is still queued (msg_lifecycle_v1 CLIs). The command
57
+ * is already finished SDK-side, so a later cancel() must not seed an
58
+ * orphan entry for it — no terminal frame will ever come to drain it.
59
+ * "completed"/"discarded" leave nothing outstanding; "cancelled" after a
60
+ * dispatch means the dead turn's result may still arrive (seeded as a
61
+ * zombie) unless it already passed (`commandResultSeen`), and without a
62
+ * dispatch means dropped (nothing coming). */
63
+ commandFinished?: "completed" | "discarded" | "cancelled";
64
+ /** Set when a user-turn result arrives while this command is known
65
+ * dispatched (`commandStarted`) with no terminal frame yet. Turns run
66
+ * sequentially and frames arrive in stream order, so the turn this command
67
+ * was dispatched into IS the turn that emitted that result — including
68
+ * when the command was FOLDED into another turn (their shared result).
69
+ * Read by cancel() and the force-cancel wedge path so neither seeds an
70
+ * orphan entry for a result that has already passed: such an entry could
71
+ * never be drained by its result and would swallow an unrelated later
72
+ * echo-less one instead. */
73
+ commandResultSeen?: boolean;
74
+ /** Task ids of the background subagents launched while this turn was the
75
+ * active one — including during its held-open drain window, so an agent
76
+ * chain (a followup that launches another subagent) extends the hold.
77
+ * A turn only waits on its OWN spawned subagents: a long-running agent
78
+ * from an earlier turn must not stall every later prompt's settlement.
79
+ * Known residual: task_started carries no lineage, so a spawn made by a
80
+ * PREVIOUS turn's followup chain while a later turn happens to be held
81
+ * is attributed to the holder — extending that hold behind a foreign
82
+ * chain. Bounded: the hold still ends at drain, hand-off, or cancel. */
83
+ spawnedTaskIds?: Set<string>;
84
+ /** Set instead of settling when the turn's terminal result arrives while
85
+ * subagents it spawned are still live (`spawnedTaskIds` ∩
86
+ * `session.liveBackgroundTasks`). The turn is held open — its
87
+ * `session/prompt` stays pending — so the subagents' streamed output,
88
+ * their permission requests (which would otherwise block on an RPC a
89
+ * client that stops consuming at the prompt response never answers —
90
+ * issue #866), and the model's task-notification followup summary all
91
+ * land inside the turn.
92
+ *
93
+ * The CLI does NOT hold its trailing idle for background agents (observed
94
+ * on 2.1.206: `idle` follows the result immediately while the subagent
95
+ * still runs), so the hold spans multiple idle cycles: user result →
96
+ * idle → (subagent works) → task_notification → followup turn → idle.
97
+ * The stored outcome (the result's stop reason and usage snapshot) is
98
+ * what the turn settles with once its spawned subagents have settled —
99
+ * at the followup's terminal result (the summary has streamed by then),
100
+ * or at an idle with none of its subagents left (no followup came). A
101
+ * cancel or the next turn's echo hand-off settles it earlier, so a
102
+ * long-running subagent never holds the prompt hostage.
103
+ *
104
+ * Accepted residuals. (1) A subagent that ends WITHOUT waking the model —
105
+ * its task_notification lost or skipped (only the terminal task_updated
106
+ * patch is guaranteed per transition) — leaves no followup result and no
107
+ * further idle, so the held turn parks until `session/cancel` or the next
108
+ * prompt (either settles it: the echo hand-off or ensureActiveTurn's
109
+ * held-turn hand-off). Settling at the prune sites instead would preempt
110
+ * the followup summary in the normal ordering (prunes precede the
111
+ * notification), and a grace timer was judged not worth the machinery —
112
+ * the same rescue contract as the adapter's other wedge classes (issue
113
+ * #825's out-of-scope notes). (2) Drained-ness is judged by live-task
114
+ * membership only: with parallel subagents, a notification that prunes
115
+ * the last task during an earlier task's still-streaming followup lets
116
+ * that followup's result settle the turn before the LAST task's summary
117
+ * streams — degrading to post-turn delivery for it, never worse than the
118
+ * pre-hold behavior (pending wakes are not countable: notifications can
119
+ * batch into one followup). */
120
+ deferredSettle?: PromptResponse;
50
121
  resolve: (response: PromptResponse) => void;
51
122
  reject: (error: unknown) => void;
52
123
  };
@@ -70,8 +141,40 @@ type Session = {
70
141
  * the interrupt dropped (absent from `still_queued`) are uncounted as soon
71
142
  * as the receipt arrives (see cancel()). Reset to 0 on every activation as
72
143
  * a backstop against a dropped queued input this can't see (older CLIs, a
73
- * receipt lost to a failed control round-trip). */
144
+ * receipt lost to a failed control round-trip). Only used when the CLI does
145
+ * NOT emit lifecycle frames (see `orphanCommands` for the msg_lifecycle_v1
146
+ * lane); a count can't express command coalescing — N queued commands can
147
+ * fold into ONE turn emitting one result, leaving a stale skip of N-1. */
74
148
  pendingOrphanResults?: number;
149
+ /** msg_lifecycle_v1 lane of the orphan accounting (see
150
+ * `pendingOrphanResults` for the count lane): the uuids of cancelled queued
151
+ * turns whose SDK-side command may still produce an unaccounted result,
152
+ * keyed to what we know of its fate. "pending" = not seen dispatched; if
153
+ * the SDK drops it (interrupt, `cancelled` before "started") no result
154
+ * ever comes. "started" = dispatched into a turn whose result is still
155
+ * coming; exactly one terminal lifecycle frame will follow. "zombie" = its
156
+ * turn was aborted/failed after dispatch with no result seen since
157
+ * (`cancelled` after "started"); no more lifecycle frames come, but the
158
+ * dead turn's error result may still arrive. Entries are removed the
159
+ * moment their result is covered: EVERY user-turn result covers ALL
160
+ * started and zombie entries at once (turns run sequentially and frames
161
+ * arrive in stream order, so at any result the started entries were
162
+ * dispatched into — possibly folded into — the emitting turn, and any
163
+ * zombie's late result has already passed or never existed), whether that
164
+ * result was attributed to the active turn or skipped echo-less (see
165
+ * recordResultForOrphanCommands / ensureActiveTurn). A command's own
166
+ * terminal frame also drains its entry ("completed" is emitted after any
167
+ * result its turn produced; a bare `cancelled` deletes a pending entry —
168
+ * dropped without running — and zombifies a started one). An echo-less
169
+ * result is an orphan's iff this map is non-empty (FIFO: orphan turns run
170
+ * before any live turn's). Cleared on every activation, same self-heal as
171
+ * the count (covers a lost frame, which can leak an entry — each state
172
+ * bounds the damage to one wrong skip). */
173
+ orphanCommands?: Map<string, "pending" | "started" | "zombie">;
174
+ /** True once a `system`/init advertised the msg_lifecycle_v1 capability, so
175
+ * cancel() routes orphan accounting to `orphanCommands` (exact, per-uuid)
176
+ * instead of `pendingOrphanResults` (count, coalescing-blind). */
177
+ msgLifecycleV1?: boolean;
75
178
  /** The long-lived consumer task. Lazily started on the first `prompt()` and
76
179
  * kept alive for the session so between-turn/background messages are still
77
180
  * drained and forwarded. */
@@ -117,12 +220,34 @@ type Session = {
117
220
  * cancel. */
118
221
  forceCancelTimer?: ReturnType<typeof setTimeout>;
119
222
  emitRawSDKMessages: boolean | SDKMessageFilter[];
120
- /** Context window size of the last top-level assistant model, carried across
223
+ /** Context window size of the session's current model, carried across
121
224
  * prompts so mid-stream usage_update notifications report a correct `size`
122
- * before the turn's first result message arrives. Defaults to
123
- * DEFAULT_CONTEXT_WINDOW, refreshed from each result's modelUsage, and
124
- * invalidated when the user switches the session's model. */
225
+ * before the turn's first result message arrives. Seeded synchronously at
226
+ * session creation and on model switches from the per-model cache or the
227
+ * text heuristic (DEFAULT_CONTEXT_WINDOW when both miss; on session/load the
228
+ * resumed session's own `getContextUsage` report wins, see
229
+ * `readResumedLiveModel`), then confirmed — and the cache populated — by each
230
+ * result's modelUsage. No extra `getContextUsage` IPC is on these paths: on a
231
+ * fresh session it stalls until the first turn runs (see the seeding call
232
+ * sites and `contextWindowCache`). */
125
233
  contextWindowSize: number;
234
+ /** Whether `contextWindowSize` came from an authoritative source (the
235
+ * cross-session cache, a resumed session's `getContextUsage` report, or a
236
+ * `result.modelUsage`) rather than the text heuristic / default. Guards the
237
+ * mid-stream `message_start` heuristic upgrade: an authoritative window that
238
+ * happens to equal DEFAULT_CONTEXT_WINDOW must not be mistaken for "unseeded"
239
+ * and clobbered by a "1m" text match. */
240
+ contextWindowAuthoritative: boolean;
241
+ /** Stable identifier of the LLM backend this session's query was created
242
+ * against, derived from the routing-relevant vars of the exact `env` handed
243
+ * to the SDK at query creation (see {@link providerCacheKeyFor}). The context
244
+ * window is a property of (model id, backend) — the same resolved model id
245
+ * can name different windows behind different base URLs, routing headers, or
246
+ * credentials — so this scopes the module-global `contextWindowCache` per
247
+ * backend. Captured from the query's own env (not re-resolved later) because
248
+ * the process-wide provider config can change while a session is being
249
+ * created, while the query stays baked to the env it was created with. */
250
+ providerCacheKey: string;
126
251
  /** Accumulated task list for the session, keyed by task ID. Task IDs are
127
252
  * per-session, so this state must not be shared across sessions. */
128
253
  taskState: TaskState;
@@ -146,6 +271,113 @@ type Session = {
146
271
  * tool_use block streams; this set makes the two paths converge regardless of
147
272
  * order. Pruned at `tool_result` time alongside `toolUseCache`. */
148
273
  emittedToolCalls: Set<string>;
274
+ /** Registry of live background tasks, keyed by task id: populated at
275
+ * `task_started`, pruned when the task settles (a `task_notification` or
276
+ * a terminal `task_updated` patch), and reconciled against
277
+ * `background_tasks_changed`'s replace-semantics payload so a lost
278
+ * bookend can't leak an entry. One structure for both of its concerns so
279
+ * a future terminal path can't prune one and not the other:
280
+ *
281
+ * `parentToolUseId` — the tool_use id of the Agent/Task call that spawned
282
+ * the task. For subagent tasks the SDK keys its registry by agent id, so
283
+ * `task_started.task_id` IS the `agentID` that `canUseTool` later
284
+ * receives. Lets the permission flow attribute a subagent's
285
+ * eagerly-emitted `tool_call` (and the permission request itself) to its
286
+ * parent tool call via `_meta.claudeCode.parentToolUseId`, matching the
287
+ * streamed subagent path. Best-effort: a `canUseTool` that races ahead of
288
+ * the consumer processing `task_started` omits the attribution from the
289
+ * eager tool_call, and the streamed tool_use chunk's refining
290
+ * `tool_call_update` — which carries the message-level
291
+ * `parent_tool_use_id` — restores it for merging clients; that recovery
292
+ * is what makes best-effort acceptable here.
293
+ *
294
+ * `isSubagent` — whether the task is a Task/Agent-tool subagent
295
+ * (`task_started` carried a `subagent_type`). Read by
296
+ * `turnAwaitingSubagents` (with `spawnedTaskIds`) to decide whether a
297
+ * turn's settlement is deferred (see `Turn.deferredSettle`), so the
298
+ * subagents' post-result output and permission requests stay inside the
299
+ * turn (issues #864/#866). Deliberately false for non-subagent background
300
+ * tasks (e.g. a `run_in_background` dev server): those can outlive every
301
+ * turn, and the model's contract with them is a wake-on-exit
302
+ * notification, not a turn-scoped drain — a hold must NEVER wait on a
303
+ * shell.
304
+ *
305
+ * `endedPerLevel` — a `background_tasks_changed` payload did not include
306
+ * this subagent entry. The level's universe is BACKGROUND tasks only, so
307
+ * a live sync (foreground) subagent is legitimately absent — its entry is
308
+ * kept for permission attribution — but a hold must stop waiting on the
309
+ * id: an absent id can equally be a leaked async entry whose settle
310
+ * bookends were lost, and waiting on it would park the hold forever.
311
+ * Non-subagent entries are simply deleted instead (shells are always in
312
+ * the level's universe). */
313
+ liveBackgroundTasks: Map<string, {
314
+ parentToolUseId?: string;
315
+ isSubagent: boolean;
316
+ /** Absent-from-level lifecycle, one field so the illegal
317
+ * armed-but-not-ended state is unrepresentable: undefined = live per
318
+ * the level signal; "ended" = a level omitted the task (holds stop
319
+ * waiting on it; attribution is kept); "sweep-armed" = a turn
320
+ * activation saw it ended — the NEXT activation deletes it. The
321
+ * one-activation grace exists for the absent-mark race (a level
322
+ * payload built before a live async agent's registration): a
323
+ * corrective inclusive level resets the field to undefined — one
324
+ * assignment, disarming any in-flight sweep — if it arrives within a
325
+ * full turn, keeping the agent's attribution; eager deletion would
326
+ * be irreversible, since levels never ADD entries. A re-mark
327
+ * preserves an in-flight arm (`??=`), keeping a continuously absent
328
+ * entry on its two-activation clock. */
329
+ endedPerLevel?: "ended" | "sweep-armed";
330
+ }>;
331
+ /** Whether any top-level assistant text reached the client since the last
332
+ * stretch boundary. Set as a side effect of sending in the consumer's
333
+ * `sendUpdate`, never at an emission site; read at the terminal `result`
334
+ * to tell a turn whose answer was already delivered from one that only
335
+ * ever carried it on `result` (issue #453). Session-level (not
336
+ * consumer-scoped) so cancel()'s inline settle can clear it.
337
+ *
338
+ * The CURRENT boundary set — a new clear site must be added here: the
339
+ * result case's `finally` (user-turn results), settleActive's wasHeld
340
+ * clear (every held-turn settle lane: drain settle, both hand-offs,
341
+ * stream-done), failActive, the force-cancel backstop, the idle
342
+ * cancelled-settle, the autonomous-result close (only with no turn
343
+ * active OR queued — see its queued-turn guard), and cancel()'s inline
344
+ * mirror.
345
+ *
346
+ * Deliberately NOT reset on turn activation: activation can fire
347
+ * mid-message (see the echo hand-off), so a flag cleared there would
348
+ * forget text that already streamed and the result text would be emitted
349
+ * a second time. Neither the consolidated `assistant` message nor a
350
+ * `stream_event` carries `origin`, so an autonomous cycle's prose is
351
+ * indistinguishable from a user turn's here and sets the flag too; the
352
+ * autonomous-result close normally ends that stretch so a replayed
353
+ * prompt behind it still delivers, and only in the racing window (a
354
+ * turn already active or queued when the autonomous result lands) does
355
+ * the replayed turn stay silent rather than risk a duplicate. */
356
+ emittedAssistantText: boolean;
357
+ /** The most recent `session_state_changed` state the consumer processed.
358
+ * Read by cancel() to decide whether the interrupt will produce a
359
+ * trailing idle worth pre-counting: interrupting a RUNNING cycle yields
360
+ * one; interrupting an already-idle session (the common held-turn shape)
361
+ * yields none, and a pre-counted debt that never drains would mask one
362
+ * future issue-#825 detection. */
363
+ lastSessionState?: "idle" | "running" | "requires_action";
364
+ /** How many trailing `session_state_changed: idle` messages are already
365
+ * accounted for: every result is followed by one (user-turn results that
366
+ * terminate a turn — settle, reject, or orphan skip — and autonomous
367
+ * cycles alike), as is a cancelled turn settled by the next turn's echo
368
+ * hand-off or by cancel()'s inline settle of a held turn whose interrupt
369
+ * pre-empts a running cycle — the reason this lives on the Session:
370
+ * cancel() must be able to record the debt. The idle handler absorbs
371
+ * owed idles; an idle that arrives when NONE is owed while the active
372
+ * turn is still unsettled means the SDK ended the turn without ever
373
+ * emitting its result, so the turn will never settle on its own (issue
374
+ * #825). Stream-level debt, deliberately NOT reset per turn: a lagged
375
+ * idle can arrive after the next turn has already activated (issue
376
+ * #773), and the debt is what attributes it to the turn that owed it.
377
+ * Over-counting (an idle the SDK never emits) is benign: the counter
378
+ * just absorbs one future idle, and detection degrades to the status quo
379
+ * rather than misfiring. */
380
+ owedTrailingIdles: number;
149
381
  /** Maps the ACP `messageId` we expose to clients (see `messageIdForGrouping`)
150
382
  * to the SDK message uuid that the Agent SDK's rewind/resume APIs key on
151
383
  * (`Query.rewindFiles` takes a user-message uuid; `resumeSessionAt` takes an
@@ -220,6 +452,22 @@ type GatewayAuthMeta = {
220
452
  type GatewayAuthRequest = AuthenticateRequest & {
221
453
  _meta?: GatewayAuthMeta;
222
454
  };
455
+ /**
456
+ * Resolved, non-secret + secret routing config for the `main` provider. This is
457
+ * the shared shape produced by both `providers/set` and the legacy gateway auth
458
+ * path, and consumed by {@link createEnvForProvider}. `null` means the provider
459
+ * is unconfigured (no client-managed routing in effect).
460
+ */
461
+ type ProviderConfig = {
462
+ apiType: LlmProtocol;
463
+ baseUrl: string;
464
+ headers: Record<string, string>;
465
+ /** Present only for `apiType === "vertex"`. */
466
+ vertex?: {
467
+ projectId: string;
468
+ region: string;
469
+ };
470
+ };
223
471
  /**
224
472
  * Extra metadata that the agent provides for each tool_call / tool_update update.
225
473
  */
@@ -227,6 +475,7 @@ export type ToolUpdateMeta = {
227
475
  claudeCode?: {
228
476
  toolName: string;
229
477
  toolResponse?: unknown;
478
+ parentToolUseId?: string;
230
479
  };
231
480
  terminal_info?: {
232
481
  terminal_id: string;
@@ -249,6 +498,25 @@ export type ToolUseCache = {
249
498
  input: unknown;
250
499
  };
251
500
  };
501
+ type StreamedToolInput = {
502
+ id: string;
503
+ name: string;
504
+ partialJson: string;
505
+ /** Offset into `partialJson` the scanner has consumed; each delta only scans
506
+ * the newly appended fragment, so total scan work stays linear. */
507
+ scannedTo: number;
508
+ inString: boolean;
509
+ escaped: boolean;
510
+ objectDepth: number;
511
+ arrayDepth: number;
512
+ /** Offset of the most recent comma at the top level of the input object
513
+ * (-1 before the first). Everything before it is a complete field. */
514
+ lastTopLevelComma: number;
515
+ /** The comma offset the last emitted refinement was sliced at (-1 before the
516
+ * first), so a field boundary only triggers one recovery attempt. */
517
+ emittedThroughComma: number;
518
+ };
519
+ export type StreamedToolInputCache = Map<string, Map<number, StreamedToolInput>>;
252
520
  export declare function claudeCliPath(): Promise<string>;
253
521
  /**
254
522
  * Return user-message content with local-command marker tags removed, or
@@ -258,6 +526,23 @@ export declare function claudeCliPath(): Promise<string>;
258
526
  */
259
527
  export declare function stripLocalCommandMetadata(content: unknown): unknown | null;
260
528
  export declare function isLocalCommandMetadata(content: unknown): boolean;
529
+ /**
530
+ * True for the synthetic assistant message the CLI injects into the transcript
531
+ * when a turn fails authentication (e.g. "Not logged in · Please run /login",
532
+ * "Session expired. Please run /login to sign in again."). The `/login`
533
+ * instruction is Claude Code TUI-specific and meaningless to ACP clients
534
+ * (issue #863). The live prompt loop suppresses the text and fails the turn
535
+ * with `authRequired` so the client can run its own auth flow; replay must
536
+ * skip it too — both for parity with what the client saw live and because the
537
+ * message stays in the transcript forever, so it would resurface on every
538
+ * session/load even after the user has logged back in.
539
+ *
540
+ * Takes the API message (`message.message`), which replay only knows as
541
+ * `unknown`. The persisted record's structured `error: "authentication_failed"`
542
+ * marker is stripped by `getSessionMessages`, so the synthetic model + text is
543
+ * all both paths have to match on.
544
+ */
545
+ export declare function isSyntheticLoginMessage(apiMessage: unknown): boolean;
261
546
  export declare function resolvePermissionMode(defaultMode?: unknown, logger?: Logger): PermissionMode;
262
547
  /**
263
548
  * Builds the label for the "Always Allow" permission option so the user can see
@@ -295,6 +580,10 @@ export declare class ClaudeAcpAgent {
295
580
  clientCapabilities?: ClientCapabilities;
296
581
  logger: Logger;
297
582
  gatewayAuthRequest?: GatewayAuthRequest;
583
+ /** Client-managed LLM routing set via `providers/set`. Process-scoped and
584
+ * never persisted to disk (see the Configurable LLM Providers RFD). When
585
+ * set, it takes precedence over {@link gatewayAuthRequest}. */
586
+ providerConfig?: ProviderConfig;
298
587
  /** Grace period before a `session/cancel` forces a wedged prompt loop to
299
588
  * return "cancelled". See {@link DEFAULT_FORCE_CANCEL_GRACE_MS}. Mutable so
300
589
  * tests can shrink it. */
@@ -313,6 +602,36 @@ export declare class ClaudeAcpAgent {
313
602
  * the title is best-effort and another turn will retry. */
314
603
  private maybeUpdateSessionTitle;
315
604
  authenticate(_params: AuthenticateRequest): Promise<void>;
605
+ /**
606
+ * `providers/list` — returns the single client-configurable custom gateway
607
+ * provider (`main`). `current` carries only non-secret routing (never headers,
608
+ * which may hold secrets); only `apiType`/`baseUrl` are surfaced for UI
609
+ * display, and is `null` when the provider is not configured/disabled. The
610
+ * provider is optional (`required: false`): while disabled/unconfigured the
611
+ * agent falls back to its own default routing (normal Claude login).
612
+ */
613
+ unstable_listProviders(_params: ListProvidersRequest): Promise<ListProvidersResponse>;
614
+ /**
615
+ * `providers/set` — replace the full configuration for the `main` provider.
616
+ * Rejects unknown IDs, unsupported protocols, and empty/invalid base URLs with
617
+ * `invalid_params`. Config is process-scoped and applies to sessions created or
618
+ * loaded after this call.
619
+ */
620
+ unstable_setProvider(params: SetProviderRequest): Promise<SetProviderResponse>;
621
+ /**
622
+ * `providers/disable` — disabling the `main` provider clears any client-managed
623
+ * routing (both a `providers/set` config and the legacy gateway auth request),
624
+ * so the agent reverts to its own default routing and `providers/list` reports
625
+ * `current: null`. Disabling any other (unknown) ID is treated as a successful
626
+ * no-op per the RFD's idempotency rule.
627
+ */
628
+ unstable_disableProvider(params: DisableProviderRequest): Promise<DisableProviderResponse>;
629
+ /**
630
+ * Resolve the effective client-managed routing config. `providers/set` takes
631
+ * precedence; otherwise fall back to the legacy gateway auth request. Returns
632
+ * `null` when neither is configured.
633
+ */
634
+ resolveProviderConfig(): ProviderConfig | null;
316
635
  logout(_params: LogoutRequest): Promise<void>;
317
636
  prompt(params: PromptRequest): Promise<PromptResponse>;
318
637
  /** Lazily start the per-session consumer that drains the SDK query stream for
@@ -324,6 +643,22 @@ export declare class ClaudeAcpAgent {
324
643
  * Turn's deferred when that turn ends. Replaces the per-prompt message loop;
325
644
  * `params` only carries the (session-invariant) `sessionId`. */
326
645
  private runConsumer;
646
+ /** Route one orphaned command into the session's orphan-accounting lane:
647
+ * the per-uuid map on msg_lifecycle_v1 CLIs (drained by the command's own
648
+ * terminal lifecycle frame and the echo-less-result skip), the plain count
649
+ * elsewhere (the count lane can't express per-command states, so `state`
650
+ * only matters on the map lane). Both orphan-producing paths — cancel()'s
651
+ * queued-turn sweep and the consumer's force-cancel wedge path — must seed
652
+ * through here so the lane split stays a single mechanism.
653
+ *
654
+ * Known window: `msgLifecycleV1` is only learnable from the stream's first
655
+ * `system`/init (the control-channel initialize carries no capabilities),
656
+ * so a cancel that beats that drain seeds the COUNT lane on a
657
+ * lifecycle-capable CLI — where command coalescing can leave the count
658
+ * stale by N-1 (the pre-map bug, confined to this sub-second window and
659
+ * still healed by the next activation's reset). Structural until the SDK
660
+ * exposes capabilities before the stream starts. */
661
+ private trackOrphanCommand;
327
662
  cancel(params: CancelNotification): Promise<void>;
328
663
  /** Mark a session's SDK query stream as permanently ended and release the
329
664
  * resources tied to it: drop the consumer handle, dispose the settings
@@ -372,7 +707,12 @@ export declare class ClaudeAcpAgent {
372
707
  * instead of emitting a duplicate (see `emittedToolCalls`). Built via the same
373
708
  * `toolCallNotification` helper as the streamed path so the two are identical.
374
709
  * Tools the stream renders as a plan (TodoWrite) or suppresses (Task*) are
375
- * skipped so a permission prompt for them never surfaces a stray tool_call. */
710
+ * emitted too: a permission request referencing a tool call the client has
711
+ * never seen can trip strict clients (issue #851), so the reference must
712
+ * always resolve. Since the streamed path never completes those calls, they
713
+ * are resolved at tool_result time instead (see `toAcpNotifications`).
714
+ * `parentToolUseId` attributes a subagent's tool call to the Agent/Task call
715
+ * that spawned it, matching the streamed path's `_meta`. */
376
716
  private ensureToolCallEmitted;
377
717
  canUseTool(sessionId: string): CanUseTool;
378
718
  /**
@@ -559,6 +899,7 @@ export declare function toAcpNotifications(content: string | ContentBlockParam[]
559
899
  taskState?: TaskState;
560
900
  emittedToolCalls?: Set<string>;
561
901
  messageId?: string;
902
+ toolUseResult?: unknown;
562
903
  }): SessionNotification[];
563
904
  export declare function streamEventToAcpNotifications(message: SDKPartialAssistantMessage, sessionId: string, toolUseCache: ToolUseCache, client: AcpClient, logger: Logger, options?: {
564
905
  clientCapabilities?: ClientCapabilities;
@@ -566,6 +907,7 @@ export declare function streamEventToAcpNotifications(message: SDKPartialAssista
566
907
  taskState?: TaskState;
567
908
  emittedToolCalls?: Set<string>;
568
909
  messageId?: string;
910
+ streamedToolInputs?: StreamedToolInputCache;
569
911
  }): SessionNotification[];
570
912
  /** Run a `session/prompt` while honoring `$/cancel_request` for it. ACP clients
571
913
  * normally stop a turn with the `session/cancel` notification, but `signal`
@@ -1 +1 @@
1
- {"version":3,"file":"acp-agent.d.ts","sourceRoot":"","sources":["../src/acp-agent.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EAGnB,kBAAkB,EAClB,kBAAkB,EAClB,+BAA+B,EAC/B,wBAAwB,EACxB,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EAGb,iBAAiB,EACjB,kBAAkB,EAElB,aAAa,EACb,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EAEpB,wBAAwB,EACxB,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,EACL,SAAS,EACT,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