claude-code-acp-ts 0.57.0-beta.2 → 0.59.0-beta.1

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
  };
@@ -66,9 +137,44 @@ type Session = {
66
137
  * the SDK still runs it and emits a result with no uuid we can match. Because
67
138
  * the SDK processes input FIFO, those orphan results arrive (in submission
68
139
  * order) before the next live turn's, so skipping exactly this many leaves
69
- * the genuine head untouched. Reset to 0 on every activation as a backstop
70
- * against an SDK that drops queued input on interrupt (no orphan emitted). */
140
+ * the genuine head untouched. On CLIs with the interrupt receipt, orphans
141
+ * the interrupt dropped (absent from `still_queued`) are uncounted as soon
142
+ * as the receipt arrives (see cancel()). Reset to 0 on every activation as
143
+ * a backstop against a dropped queued input this can't see (older CLIs, a
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. */
71
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;
72
178
  /** The long-lived consumer task. Lazily started on the first `prompt()` and
73
179
  * kept alive for the session so between-turn/background messages are still
74
180
  * drained and forwarded. */
@@ -114,11 +220,12 @@ type Session = {
114
220
  * cancel. */
115
221
  forceCancelTimer?: ReturnType<typeof setTimeout>;
116
222
  emitRawSDKMessages: boolean | SDKMessageFilter[];
117
- /** Context window size of the last top-level assistant model, carried across
223
+ /** Context window size of the session's current model, carried across
118
224
  * prompts so mid-stream usage_update notifications report a correct `size`
119
- * before the turn's first result message arrives. Defaults to
120
- * DEFAULT_CONTEXT_WINDOW, refreshed from each result's modelUsage, and
121
- * invalidated when the user switches the session's model. */
225
+ * before the turn's first result message arrives. Seeded from the SDK's
226
+ * getContextUsage report at session creation (DEFAULT_CONTEXT_WINDOW when
227
+ * that and the text heuristic both fail), refreshed the same way on model
228
+ * switches, and confirmed by each result's modelUsage. */
122
229
  contextWindowSize: number;
123
230
  /** Accumulated task list for the session, keyed by task ID. Task IDs are
124
231
  * per-session, so this state must not be shared across sessions. */
@@ -143,6 +250,113 @@ type Session = {
143
250
  * tool_use block streams; this set makes the two paths converge regardless of
144
251
  * order. Pruned at `tool_result` time alongside `toolUseCache`. */
145
252
  emittedToolCalls: Set<string>;
253
+ /** Registry of live background tasks, keyed by task id: populated at
254
+ * `task_started`, pruned when the task settles (a `task_notification` or
255
+ * a terminal `task_updated` patch), and reconciled against
256
+ * `background_tasks_changed`'s replace-semantics payload so a lost
257
+ * bookend can't leak an entry. One structure for both of its concerns so
258
+ * a future terminal path can't prune one and not the other:
259
+ *
260
+ * `parentToolUseId` — the tool_use id of the Agent/Task call that spawned
261
+ * the task. For subagent tasks the SDK keys its registry by agent id, so
262
+ * `task_started.task_id` IS the `agentID` that `canUseTool` later
263
+ * receives. Lets the permission flow attribute a subagent's
264
+ * eagerly-emitted `tool_call` (and the permission request itself) to its
265
+ * parent tool call via `_meta.claudeCode.parentToolUseId`, matching the
266
+ * streamed subagent path. Best-effort: a `canUseTool` that races ahead of
267
+ * the consumer processing `task_started` omits the attribution from the
268
+ * eager tool_call, and the streamed tool_use chunk's refining
269
+ * `tool_call_update` — which carries the message-level
270
+ * `parent_tool_use_id` — restores it for merging clients; that recovery
271
+ * is what makes best-effort acceptable here.
272
+ *
273
+ * `isSubagent` — whether the task is a Task/Agent-tool subagent
274
+ * (`task_started` carried a `subagent_type`). Read by
275
+ * `turnAwaitingSubagents` (with `spawnedTaskIds`) to decide whether a
276
+ * turn's settlement is deferred (see `Turn.deferredSettle`), so the
277
+ * subagents' post-result output and permission requests stay inside the
278
+ * turn (issues #864/#866). Deliberately false for non-subagent background
279
+ * tasks (e.g. a `run_in_background` dev server): those can outlive every
280
+ * turn, and the model's contract with them is a wake-on-exit
281
+ * notification, not a turn-scoped drain — a hold must NEVER wait on a
282
+ * shell.
283
+ *
284
+ * `endedPerLevel` — a `background_tasks_changed` payload did not include
285
+ * this subagent entry. The level's universe is BACKGROUND tasks only, so
286
+ * a live sync (foreground) subagent is legitimately absent — its entry is
287
+ * kept for permission attribution — but a hold must stop waiting on the
288
+ * id: an absent id can equally be a leaked async entry whose settle
289
+ * bookends were lost, and waiting on it would park the hold forever.
290
+ * Non-subagent entries are simply deleted instead (shells are always in
291
+ * the level's universe). */
292
+ liveBackgroundTasks: Map<string, {
293
+ parentToolUseId?: string;
294
+ isSubagent: boolean;
295
+ /** Absent-from-level lifecycle, one field so the illegal
296
+ * armed-but-not-ended state is unrepresentable: undefined = live per
297
+ * the level signal; "ended" = a level omitted the task (holds stop
298
+ * waiting on it; attribution is kept); "sweep-armed" = a turn
299
+ * activation saw it ended — the NEXT activation deletes it. The
300
+ * one-activation grace exists for the absent-mark race (a level
301
+ * payload built before a live async agent's registration): a
302
+ * corrective inclusive level resets the field to undefined — one
303
+ * assignment, disarming any in-flight sweep — if it arrives within a
304
+ * full turn, keeping the agent's attribution; eager deletion would
305
+ * be irreversible, since levels never ADD entries. A re-mark
306
+ * preserves an in-flight arm (`??=`), keeping a continuously absent
307
+ * entry on its two-activation clock. */
308
+ endedPerLevel?: "ended" | "sweep-armed";
309
+ }>;
310
+ /** Whether any top-level assistant text reached the client since the last
311
+ * stretch boundary. Set as a side effect of sending in the consumer's
312
+ * `sendUpdate`, never at an emission site; read at the terminal `result`
313
+ * to tell a turn whose answer was already delivered from one that only
314
+ * ever carried it on `result` (issue #453). Session-level (not
315
+ * consumer-scoped) so cancel()'s inline settle can clear it.
316
+ *
317
+ * The CURRENT boundary set — a new clear site must be added here: the
318
+ * result case's `finally` (user-turn results), settleActive's wasHeld
319
+ * clear (every held-turn settle lane: drain settle, both hand-offs,
320
+ * stream-done), failActive, the force-cancel backstop, the idle
321
+ * cancelled-settle, the autonomous-result close (only with no turn
322
+ * active OR queued — see its queued-turn guard), and cancel()'s inline
323
+ * mirror.
324
+ *
325
+ * Deliberately NOT reset on turn activation: activation can fire
326
+ * mid-message (see the echo hand-off), so a flag cleared there would
327
+ * forget text that already streamed and the result text would be emitted
328
+ * a second time. Neither the consolidated `assistant` message nor a
329
+ * `stream_event` carries `origin`, so an autonomous cycle's prose is
330
+ * indistinguishable from a user turn's here and sets the flag too; the
331
+ * autonomous-result close normally ends that stretch so a replayed
332
+ * prompt behind it still delivers, and only in the racing window (a
333
+ * turn already active or queued when the autonomous result lands) does
334
+ * the replayed turn stay silent rather than risk a duplicate. */
335
+ emittedAssistantText: boolean;
336
+ /** The most recent `session_state_changed` state the consumer processed.
337
+ * Read by cancel() to decide whether the interrupt will produce a
338
+ * trailing idle worth pre-counting: interrupting a RUNNING cycle yields
339
+ * one; interrupting an already-idle session (the common held-turn shape)
340
+ * yields none, and a pre-counted debt that never drains would mask one
341
+ * future issue-#825 detection. */
342
+ lastSessionState?: "idle" | "running" | "requires_action";
343
+ /** How many trailing `session_state_changed: idle` messages are already
344
+ * accounted for: every result is followed by one (user-turn results that
345
+ * terminate a turn — settle, reject, or orphan skip — and autonomous
346
+ * cycles alike), as is a cancelled turn settled by the next turn's echo
347
+ * hand-off or by cancel()'s inline settle of a held turn whose interrupt
348
+ * pre-empts a running cycle — the reason this lives on the Session:
349
+ * cancel() must be able to record the debt. The idle handler absorbs
350
+ * owed idles; an idle that arrives when NONE is owed while the active
351
+ * turn is still unsettled means the SDK ended the turn without ever
352
+ * emitting its result, so the turn will never settle on its own (issue
353
+ * #825). Stream-level debt, deliberately NOT reset per turn: a lagged
354
+ * idle can arrive after the next turn has already activated (issue
355
+ * #773), and the debt is what attributes it to the turn that owed it.
356
+ * Over-counting (an idle the SDK never emits) is benign: the counter
357
+ * just absorbs one future idle, and detection degrades to the status quo
358
+ * rather than misfiring. */
359
+ owedTrailingIdles: number;
146
360
  /** Maps the ACP `messageId` we expose to clients (see `messageIdForGrouping`)
147
361
  * to the SDK message uuid that the Agent SDK's rewind/resume APIs key on
148
362
  * (`Query.rewindFiles` takes a user-message uuid; `resumeSessionAt` takes an
@@ -217,6 +431,22 @@ type GatewayAuthMeta = {
217
431
  type GatewayAuthRequest = AuthenticateRequest & {
218
432
  _meta?: GatewayAuthMeta;
219
433
  };
434
+ /**
435
+ * Resolved, non-secret + secret routing config for the `main` provider. This is
436
+ * the shared shape produced by both `providers/set` and the legacy gateway auth
437
+ * path, and consumed by {@link createEnvForProvider}. `null` means the provider
438
+ * is unconfigured (no client-managed routing in effect).
439
+ */
440
+ type ProviderConfig = {
441
+ apiType: LlmProtocol;
442
+ baseUrl: string;
443
+ headers: Record<string, string>;
444
+ /** Present only for `apiType === "vertex"`. */
445
+ vertex?: {
446
+ projectId: string;
447
+ region: string;
448
+ };
449
+ };
220
450
  /**
221
451
  * Extra metadata that the agent provides for each tool_call / tool_update update.
222
452
  */
@@ -224,6 +454,7 @@ export type ToolUpdateMeta = {
224
454
  claudeCode?: {
225
455
  toolName: string;
226
456
  toolResponse?: unknown;
457
+ parentToolUseId?: string;
227
458
  };
228
459
  terminal_info?: {
229
460
  terminal_id: string;
@@ -246,6 +477,25 @@ export type ToolUseCache = {
246
477
  input: unknown;
247
478
  };
248
479
  };
480
+ type StreamedToolInput = {
481
+ id: string;
482
+ name: string;
483
+ partialJson: string;
484
+ /** Offset into `partialJson` the scanner has consumed; each delta only scans
485
+ * the newly appended fragment, so total scan work stays linear. */
486
+ scannedTo: number;
487
+ inString: boolean;
488
+ escaped: boolean;
489
+ objectDepth: number;
490
+ arrayDepth: number;
491
+ /** Offset of the most recent comma at the top level of the input object
492
+ * (-1 before the first). Everything before it is a complete field. */
493
+ lastTopLevelComma: number;
494
+ /** The comma offset the last emitted refinement was sliced at (-1 before the
495
+ * first), so a field boundary only triggers one recovery attempt. */
496
+ emittedThroughComma: number;
497
+ };
498
+ export type StreamedToolInputCache = Map<string, Map<number, StreamedToolInput>>;
249
499
  export declare function claudeCliPath(): Promise<string>;
250
500
  /**
251
501
  * Return user-message content with local-command marker tags removed, or
@@ -255,6 +505,23 @@ export declare function claudeCliPath(): Promise<string>;
255
505
  */
256
506
  export declare function stripLocalCommandMetadata(content: unknown): unknown | null;
257
507
  export declare function isLocalCommandMetadata(content: unknown): boolean;
508
+ /**
509
+ * True for the synthetic assistant message the CLI injects into the transcript
510
+ * when a turn fails authentication (e.g. "Not logged in · Please run /login",
511
+ * "Session expired. Please run /login to sign in again."). The `/login`
512
+ * instruction is Claude Code TUI-specific and meaningless to ACP clients
513
+ * (issue #863). The live prompt loop suppresses the text and fails the turn
514
+ * with `authRequired` so the client can run its own auth flow; replay must
515
+ * skip it too — both for parity with what the client saw live and because the
516
+ * message stays in the transcript forever, so it would resurface on every
517
+ * session/load even after the user has logged back in.
518
+ *
519
+ * Takes the API message (`message.message`), which replay only knows as
520
+ * `unknown`. The persisted record's structured `error: "authentication_failed"`
521
+ * marker is stripped by `getSessionMessages`, so the synthetic model + text is
522
+ * all both paths have to match on.
523
+ */
524
+ export declare function isSyntheticLoginMessage(apiMessage: unknown): boolean;
258
525
  export declare function resolvePermissionMode(defaultMode?: unknown, logger?: Logger): PermissionMode;
259
526
  /**
260
527
  * Builds the label for the "Always Allow" permission option so the user can see
@@ -292,6 +559,10 @@ export declare class ClaudeAcpAgent {
292
559
  clientCapabilities?: ClientCapabilities;
293
560
  logger: Logger;
294
561
  gatewayAuthRequest?: GatewayAuthRequest;
562
+ /** Client-managed LLM routing set via `providers/set`. Process-scoped and
563
+ * never persisted to disk (see the Configurable LLM Providers RFD). When
564
+ * set, it takes precedence over {@link gatewayAuthRequest}. */
565
+ providerConfig?: ProviderConfig;
295
566
  /** Grace period before a `session/cancel` forces a wedged prompt loop to
296
567
  * return "cancelled". See {@link DEFAULT_FORCE_CANCEL_GRACE_MS}. Mutable so
297
568
  * tests can shrink it. */
@@ -310,6 +581,36 @@ export declare class ClaudeAcpAgent {
310
581
  * the title is best-effort and another turn will retry. */
311
582
  private maybeUpdateSessionTitle;
312
583
  authenticate(_params: AuthenticateRequest): Promise<void>;
584
+ /**
585
+ * `providers/list` — returns the single client-configurable custom gateway
586
+ * provider (`main`). `current` carries only non-secret routing (never headers,
587
+ * which may hold secrets); only `apiType`/`baseUrl` are surfaced for UI
588
+ * display, and is `null` when the provider is not configured/disabled. The
589
+ * provider is optional (`required: false`): while disabled/unconfigured the
590
+ * agent falls back to its own default routing (normal Claude login).
591
+ */
592
+ unstable_listProviders(_params: ListProvidersRequest): Promise<ListProvidersResponse>;
593
+ /**
594
+ * `providers/set` — replace the full configuration for the `main` provider.
595
+ * Rejects unknown IDs, unsupported protocols, and empty/invalid base URLs with
596
+ * `invalid_params`. Config is process-scoped and applies to sessions created or
597
+ * loaded after this call.
598
+ */
599
+ unstable_setProvider(params: SetProviderRequest): Promise<SetProviderResponse>;
600
+ /**
601
+ * `providers/disable` — disabling the `main` provider clears any client-managed
602
+ * routing (both a `providers/set` config and the legacy gateway auth request),
603
+ * so the agent reverts to its own default routing and `providers/list` reports
604
+ * `current: null`. Disabling any other (unknown) ID is treated as a successful
605
+ * no-op per the RFD's idempotency rule.
606
+ */
607
+ unstable_disableProvider(params: DisableProviderRequest): Promise<DisableProviderResponse>;
608
+ /**
609
+ * Resolve the effective client-managed routing config. `providers/set` takes
610
+ * precedence; otherwise fall back to the legacy gateway auth request. Returns
611
+ * `null` when neither is configured.
612
+ */
613
+ resolveProviderConfig(): ProviderConfig | null;
313
614
  logout(_params: LogoutRequest): Promise<void>;
314
615
  prompt(params: PromptRequest): Promise<PromptResponse>;
315
616
  /** Lazily start the per-session consumer that drains the SDK query stream for
@@ -321,6 +622,22 @@ export declare class ClaudeAcpAgent {
321
622
  * Turn's deferred when that turn ends. Replaces the per-prompt message loop;
322
623
  * `params` only carries the (session-invariant) `sessionId`. */
323
624
  private runConsumer;
625
+ /** Route one orphaned command into the session's orphan-accounting lane:
626
+ * the per-uuid map on msg_lifecycle_v1 CLIs (drained by the command's own
627
+ * terminal lifecycle frame and the echo-less-result skip), the plain count
628
+ * elsewhere (the count lane can't express per-command states, so `state`
629
+ * only matters on the map lane). Both orphan-producing paths — cancel()'s
630
+ * queued-turn sweep and the consumer's force-cancel wedge path — must seed
631
+ * through here so the lane split stays a single mechanism.
632
+ *
633
+ * Known window: `msgLifecycleV1` is only learnable from the stream's first
634
+ * `system`/init (the control-channel initialize carries no capabilities),
635
+ * so a cancel that beats that drain seeds the COUNT lane on a
636
+ * lifecycle-capable CLI — where command coalescing can leave the count
637
+ * stale by N-1 (the pre-map bug, confined to this sub-second window and
638
+ * still healed by the next activation's reset). Structural until the SDK
639
+ * exposes capabilities before the stream starts. */
640
+ private trackOrphanCommand;
324
641
  cancel(params: CancelNotification): Promise<void>;
325
642
  /** Mark a session's SDK query stream as permanently ended and release the
326
643
  * resources tied to it: drop the consumer handle, dispose the settings
@@ -369,7 +686,12 @@ export declare class ClaudeAcpAgent {
369
686
  * instead of emitting a duplicate (see `emittedToolCalls`). Built via the same
370
687
  * `toolCallNotification` helper as the streamed path so the two are identical.
371
688
  * Tools the stream renders as a plan (TodoWrite) or suppresses (Task*) are
372
- * skipped so a permission prompt for them never surfaces a stray tool_call. */
689
+ * emitted too: a permission request referencing a tool call the client has
690
+ * never seen can trip strict clients (issue #851), so the reference must
691
+ * always resolve. Since the streamed path never completes those calls, they
692
+ * are resolved at tool_result time instead (see `toAcpNotifications`).
693
+ * `parentToolUseId` attributes a subagent's tool call to the Agent/Task call
694
+ * that spawned it, matching the streamed path's `_meta`. */
373
695
  private ensureToolCallEmitted;
374
696
  canUseTool(sessionId: string): CanUseTool;
375
697
  /**
@@ -556,6 +878,7 @@ export declare function toAcpNotifications(content: string | ContentBlockParam[]
556
878
  taskState?: TaskState;
557
879
  emittedToolCalls?: Set<string>;
558
880
  messageId?: string;
881
+ toolUseResult?: unknown;
559
882
  }): SessionNotification[];
560
883
  export declare function streamEventToAcpNotifications(message: SDKPartialAssistantMessage, sessionId: string, toolUseCache: ToolUseCache, client: AcpClient, logger: Logger, options?: {
561
884
  clientCapabilities?: ClientCapabilities;
@@ -563,6 +886,7 @@ export declare function streamEventToAcpNotifications(message: SDKPartialAssista
563
886
  taskState?: TaskState;
564
887
  emittedToolCalls?: Set<string>;
565
888
  messageId?: string;
889
+ streamedToolInputs?: StreamedToolInputCache;
566
890
  }): SessionNotification[];
567
891
  /** Run a `session/prompt` while honoring `$/cancel_request` for it. ACP clients
568
892
  * 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,UAAU,EAEV,aAAa,EAKb,SAAS,EAIT,OAAO,EACP,cAAc,EAEd,gBAAgB,EAChB,KAAK,EAKL,gBAAgB,EAChB,0BAA0B,EAC1B,cAAc,EAGf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAqBlG,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EASL,SAAS,EAKV,MAAM,YAAY,CAAC;AACpB,OAAO,EAAwC,QAAQ,EAAe,MAAM,YAAY,CAAC;AAEzF,eAAO,MAAM,iBAAiB,QACuC,CAAC;AAkBtE;;GAEG;AACH,MAAM,WAAW,MAAM;IACrB,GAAG,EAAE,CAAC,GAA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