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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (203) hide show
  1. package/README.md +5 -1
  2. package/dist/acp-agent.d.ts +113 -439
  3. package/dist/acp-agent.d.ts.map +1 -1
  4. package/dist/acp-agent.js +362 -2409
  5. package/dist/acp-subagents.d.ts +1 -2
  6. package/dist/acp-subagents.d.ts.map +1 -1
  7. package/dist/auth-methods.d.ts +21 -0
  8. package/dist/auth-methods.d.ts.map +1 -0
  9. package/dist/auth-methods.js +68 -0
  10. package/dist/auth-status-reporter.d.ts +112 -0
  11. package/dist/auth-status-reporter.d.ts.map +1 -0
  12. package/dist/auth-status-reporter.js +253 -0
  13. package/dist/background-work.d.ts +12 -265
  14. package/dist/background-work.d.ts.map +1 -1
  15. package/dist/background-work.js +8 -558
  16. package/dist/client-system-prompt.d.ts +7 -0
  17. package/dist/client-system-prompt.d.ts.map +1 -1
  18. package/dist/client-system-prompt.js +24 -0
  19. package/dist/context-compaction.d.ts +20 -0
  20. package/dist/context-compaction.d.ts.map +1 -1
  21. package/dist/context-compaction.js +26 -0
  22. package/dist/context-window.d.ts +70 -0
  23. package/dist/context-window.d.ts.map +1 -0
  24. package/dist/context-window.js +132 -0
  25. package/dist/diff.d.ts +1 -1
  26. package/dist/diff.js +1 -1
  27. package/dist/elicitation.d.ts +66 -1
  28. package/dist/elicitation.d.ts.map +1 -1
  29. package/dist/elicitation.js +109 -0
  30. package/dist/file-change-audit.d.ts +4 -3
  31. package/dist/file-change-audit.d.ts.map +1 -1
  32. package/dist/file-change-audit.js +3 -2
  33. package/dist/mcp-oauth.d.ts +44 -0
  34. package/dist/mcp-oauth.d.ts.map +1 -0
  35. package/dist/mcp-oauth.js +142 -0
  36. package/dist/mcp-servers.d.ts +10 -0
  37. package/dist/mcp-servers.d.ts.map +1 -0
  38. package/dist/mcp-servers.js +29 -0
  39. package/dist/native-subagents.d.ts +18 -8
  40. package/dist/native-subagents.d.ts.map +1 -1
  41. package/dist/native-subagents.js +7 -35
  42. package/dist/permissions/presentation.d.ts +29 -0
  43. package/dist/permissions/presentation.d.ts.map +1 -1
  44. package/dist/permissions/presentation.js +38 -11
  45. package/dist/prompt-suggestions.d.ts +29 -0
  46. package/dist/prompt-suggestions.d.ts.map +1 -1
  47. package/dist/prompt-suggestions.js +45 -0
  48. package/dist/providers.d.ts +139 -0
  49. package/dist/providers.d.ts.map +1 -0
  50. package/dist/providers.js +286 -0
  51. package/dist/remote-control.d.ts +62 -0
  52. package/dist/remote-control.d.ts.map +1 -0
  53. package/dist/remote-control.js +78 -0
  54. package/dist/result-end.d.ts +39 -0
  55. package/dist/result-end.d.ts.map +1 -0
  56. package/dist/result-end.js +50 -0
  57. package/dist/serve.d.ts +7 -2
  58. package/dist/serve.d.ts.map +1 -1
  59. package/dist/serve.js +10 -5
  60. package/dist/session-config-ids.d.ts +1 -0
  61. package/dist/session-config-ids.d.ts.map +1 -1
  62. package/dist/session-config-ids.js +1 -0
  63. package/dist/session-config-options.d.ts +64 -0
  64. package/dist/session-config-options.d.ts.map +1 -0
  65. package/dist/session-config-options.js +162 -0
  66. package/dist/session-effort.d.ts +67 -0
  67. package/dist/session-effort.d.ts.map +1 -1
  68. package/dist/session-effort.js +98 -0
  69. package/dist/session-env.d.ts +22 -0
  70. package/dist/session-env.d.ts.map +1 -0
  71. package/dist/session-env.js +66 -0
  72. package/dist/session-fast-mode.d.ts +83 -0
  73. package/dist/session-fast-mode.d.ts.map +1 -0
  74. package/dist/session-fast-mode.js +142 -0
  75. package/dist/session-index/connection.d.ts +2 -5
  76. package/dist/session-index/connection.d.ts.map +1 -1
  77. package/dist/session-index/connection.js +3 -5
  78. package/dist/session-mode.d.ts +1 -0
  79. package/dist/session-mode.d.ts.map +1 -1
  80. package/dist/session-mode.js +1 -1
  81. package/dist/session-model.d.ts +41 -0
  82. package/dist/session-model.d.ts.map +1 -1
  83. package/dist/session-model.js +110 -45
  84. package/dist/session-notices.d.ts +44 -0
  85. package/dist/session-notices.d.ts.map +1 -1
  86. package/dist/session-notices.js +68 -0
  87. package/dist/session-titles.d.ts +34 -12
  88. package/dist/session-titles.d.ts.map +1 -1
  89. package/dist/session-titles.js +7 -6
  90. package/dist/session-usage.d.ts +125 -0
  91. package/dist/session-usage.d.ts.map +1 -0
  92. package/dist/session-usage.js +196 -0
  93. package/dist/streamed-text.d.ts +33 -0
  94. package/dist/streamed-text.d.ts.map +1 -0
  95. package/dist/streamed-text.js +71 -0
  96. package/dist/subagent-configuration.d.ts +32 -0
  97. package/dist/subagent-configuration.d.ts.map +1 -0
  98. package/dist/subagent-configuration.js +70 -0
  99. package/dist/subagent-replay.d.ts +18 -0
  100. package/dist/subagent-replay.d.ts.map +1 -1
  101. package/dist/subagent-replay.js +25 -15
  102. package/dist/tool-calls/client-capabilities.d.ts +8 -8
  103. package/dist/tool-calls/client-capabilities.js +4 -4
  104. package/dist/tool-calls/renderer.d.ts +4 -5
  105. package/dist/tool-calls/renderer.d.ts.map +1 -1
  106. package/dist/tool-calls/renderer.js +4 -5
  107. package/dist/turn-events.d.ts +6 -46
  108. package/dist/turn-events.d.ts.map +1 -1
  109. package/dist/v2/agent.d.ts +7 -11
  110. package/dist/v2/agent.d.ts.map +1 -1
  111. package/dist/v2/agent.js +751 -331
  112. package/dist/v2/air.d.ts +33 -0
  113. package/dist/v2/air.d.ts.map +1 -0
  114. package/dist/v2/air.js +29 -0
  115. package/dist/v2/auth.d.ts +97 -0
  116. package/dist/v2/auth.d.ts.map +1 -0
  117. package/dist/v2/auth.js +216 -0
  118. package/dist/v2/background.d.ts +27 -16
  119. package/dist/v2/background.d.ts.map +1 -1
  120. package/dist/v2/background.js +4 -32
  121. package/dist/v2/child-config.d.ts +55 -0
  122. package/dist/v2/child-config.d.ts.map +1 -0
  123. package/dist/v2/child-config.js +92 -0
  124. package/dist/v2/clear-context.d.ts +94 -0
  125. package/dist/v2/clear-context.d.ts.map +1 -0
  126. package/dist/v2/clear-context.js +176 -0
  127. package/dist/v2/commands.d.ts +46 -0
  128. package/dist/v2/commands.d.ts.map +1 -0
  129. package/dist/v2/commands.js +54 -0
  130. package/dist/v2/config.d.ts +187 -0
  131. package/dist/v2/config.d.ts.map +1 -0
  132. package/dist/v2/config.js +494 -0
  133. package/dist/v2/elicitation.d.ts +93 -0
  134. package/dist/v2/elicitation.d.ts.map +1 -0
  135. package/dist/v2/elicitation.js +160 -0
  136. package/dist/v2/file-changes.d.ts +61 -0
  137. package/dist/v2/file-changes.d.ts.map +1 -0
  138. package/dist/v2/file-changes.js +108 -0
  139. package/dist/v2/file-preview.d.ts +18 -0
  140. package/dist/v2/file-preview.d.ts.map +1 -0
  141. package/dist/v2/file-preview.js +29 -0
  142. package/dist/v2/initialize.d.ts +10 -24
  143. package/dist/v2/initialize.d.ts.map +1 -1
  144. package/dist/v2/initialize.js +4 -111
  145. package/dist/v2/outcome.d.ts +81 -0
  146. package/dist/v2/outcome.d.ts.map +1 -0
  147. package/dist/v2/outcome.js +165 -0
  148. package/dist/v2/permissions.d.ts +92 -0
  149. package/dist/v2/permissions.d.ts.map +1 -0
  150. package/dist/v2/permissions.js +162 -0
  151. package/dist/v2/prompt.d.ts +2 -42
  152. package/dist/v2/prompt.d.ts.map +1 -1
  153. package/dist/v2/prompt.js +2 -119
  154. package/dist/v2/remote-control.d.ts +41 -0
  155. package/dist/v2/remote-control.d.ts.map +1 -0
  156. package/dist/v2/remote-control.js +63 -0
  157. package/dist/v2/reports.d.ts +198 -0
  158. package/dist/v2/reports.d.ts.map +1 -0
  159. package/dist/v2/reports.js +487 -0
  160. package/dist/v2/restarts.d.ts +128 -0
  161. package/dist/v2/restarts.d.ts.map +1 -0
  162. package/dist/v2/restarts.js +348 -0
  163. package/dist/v2/session-requests.d.ts +20 -0
  164. package/dist/v2/session-requests.d.ts.map +1 -0
  165. package/dist/v2/session-requests.js +108 -0
  166. package/dist/v2/session-update.d.ts +2 -13
  167. package/dist/v2/session-update.d.ts.map +1 -1
  168. package/dist/v2/session-update.js +2 -22
  169. package/dist/v2/session.d.ts +340 -41
  170. package/dist/v2/session.d.ts.map +1 -1
  171. package/dist/v2/session.js +1223 -141
  172. package/dist/v2/setup.d.ts +49 -0
  173. package/dist/v2/setup.d.ts.map +1 -0
  174. package/dist/v2/setup.js +62 -0
  175. package/dist/v2/stopped-work.d.ts +123 -0
  176. package/dist/v2/stopped-work.d.ts.map +1 -0
  177. package/dist/v2/stopped-work.js +210 -0
  178. package/dist/v2/stream.d.ts +228 -0
  179. package/dist/v2/stream.d.ts.map +1 -0
  180. package/dist/v2/stream.js +506 -0
  181. package/dist/v2/subagent-replay.d.ts +115 -0
  182. package/dist/v2/subagent-replay.d.ts.map +1 -0
  183. package/dist/v2/subagent-replay.js +479 -0
  184. package/dist/v2/subscription-guard.d.ts +60 -0
  185. package/dist/v2/subscription-guard.d.ts.map +1 -0
  186. package/dist/v2/subscription-guard.js +84 -0
  187. package/dist/v2/tasks.d.ts +492 -0
  188. package/dist/v2/tasks.d.ts.map +1 -0
  189. package/dist/v2/tasks.js +1728 -0
  190. package/dist/v2/terminal.d.ts.map +1 -1
  191. package/dist/v2/terminal.js +6 -1
  192. package/dist/v2/tool-call.d.ts +3 -2
  193. package/dist/v2/tool-call.d.ts.map +1 -1
  194. package/dist/v2/update-translator.d.ts +36 -0
  195. package/dist/v2/update-translator.d.ts.map +1 -0
  196. package/dist/v2/update-translator.js +80 -0
  197. package/dist/workflow-progress.d.ts +23 -0
  198. package/dist/workflow-progress.d.ts.map +1 -1
  199. package/dist/workflow-progress.js +31 -8
  200. package/package.json +1 -1
  201. package/dist/v2/permission.d.ts +0 -28
  202. package/dist/v2/permission.d.ts.map +0 -1
  203. package/dist/v2/permission.js +0 -41
@@ -1,42 +1,341 @@
1
- /**
2
- * The ACP v2 session lifecycle, expressed through the v1 session methods of
3
- * `ClaudeAcpAgent`: v2 requests become the v1 requests that the agent serves,
4
- * and its v1 responses become v2 responses.
5
- */
6
- import { type AvailableCommand, type ForkSessionRequest, type LoadSessionRequest, type NewSessionRequest, type NewSessionResponse, type ResumeSessionRequest, type ResumeSessionResponse, type SessionConfigOption, type SetSessionConfigOptionRequest } from "@agentclientprotocol/sdk/unstable";
7
- import * as v2 from "@agentclientprotocol/sdk/experimental/v2/unstable";
8
- export declare function v1NewSessionRequest(params: v2.NewSessionRequest): NewSessionRequest;
9
- /**
10
- * The v1 request that a v2 `session/resume` means.
11
- *
12
- * v2 restores a session with `session/resume` and replays its history only
13
- * when `replayFrom` asks for it. v1 has two methods: `session/resume`, which
14
- * never replays, and `session/load`, which replays the whole history before it
15
- * responds. `replayFrom: { type: "start" }` is the second; a cursor that
16
- * starts elsewhere is rejected.
17
- */
18
- export declare function v1RestoreSessionRequest(params: v2.ResumeSessionRequest): {
19
- method: "resume";
20
- request: ResumeSessionRequest;
21
- } | {
22
- method: "load";
23
- request: LoadSessionRequest;
24
- };
25
- /**
26
- * The v1 request of a v2 `session/fork`. In both versions the agent's fork
27
- * returns a session that the client can prompt, with its config options.
28
- */
29
- export declare function v1ForkSessionRequest(params: v2.ForkSessionRequest): ForkSessionRequest;
30
- /** v2 drops `modes`: the session mode is the `mode` config option, which the agent always lists. */
31
- export declare function v2NewSessionResponse(response: NewSessionResponse): v2.NewSessionResponse;
32
- export declare function v2ResumeSessionResponse(response: ResumeSessionResponse): v2.ResumeSessionResponse;
33
- /** v2 tags a select value with `type: "id"`; v1 leaves it untagged. */
34
- export declare function v1SetSessionConfigOptionRequest(params: v2.SetSessionConfigOptionRequest): SetSessionConfigOptionRequest;
35
- /** v2 names the id of an option `configId` and the id of a select group `groupId`. */
36
- export declare function v2ConfigOptions(options: SessionConfigOption[]): v2.SessionConfigOption[];
37
- /**
38
- * v2 tags each command with `type: "command"` and its free-text input with
39
- * `type: "text"`. A receiver drops a command without the `type` tag.
40
- */
41
- export declare function v2AvailableCommands(commands: AvailableCommand[]): v2.AvailableCommand[];
1
+ import { type CompleteElicitationNotification, type CreateElicitationRequest, type CreateElicitationResponse, type ToolCallUpdate } from "@agentclientprotocol/sdk/unstable";
2
+ import type * as v2 from "@agentclientprotocol/sdk/experimental/v2/unstable";
3
+ import type { PermissionMode, PermissionResult, Query, SDKUserMessage } from "@anthropic-ai/claude-agent-sdk";
4
+ import { type Logger } from "../acp-agent.js";
5
+ import type { ElicitationSupport } from "../elicitation.js";
6
+ import { Pushable } from "../utils.js";
7
+ import type { V2UpdateTranslator } from "./update-translator.js";
8
+ import type { ClearContextReset } from "../clear-context-coordinator.js";
9
+ import type { AirSupport } from "./air.js";
10
+ import { ClearContext } from "./clear-context.js";
11
+ import { SessionCommands } from "./commands.js";
12
+ import type { SessionConfig } from "./config.js";
13
+ import { StoppedWork } from "./stopped-work.js";
14
+ import { SessionReports } from "./reports.js";
15
+ import { SessionElicitations } from "./elicitation.js";
16
+ import { SessionOutput } from "./stream.js";
17
+ import { SessionTasks, type RequestTarget } from "./tasks.js";
18
+ /** What a session needs of its connection. */
19
+ export interface SessionConnection {
20
+ readonly logger: Logger;
21
+ readonly translator: V2UpdateTranslator;
22
+ /** The AIR extensions that the client takes, read at `initialize` (see `air.ts`). */
23
+ readonly air: AirSupport;
24
+ /** Sends an update of the session. Updates go out in the order of the calls. */
25
+ send(notification: v2.UpdateSessionNotification): void;
26
+ requestPermission(request: v2.RequestPermissionRequest, signal: AbortSignal): Promise<v2.RequestPermissionResponse>;
27
+ /** The elicitation modes that the client advertised. */
28
+ readonly elicitation: ElicitationSupport;
29
+ createElicitation(request: CreateElicitationRequest, signal: AbortSignal): Promise<CreateElicitationResponse>;
30
+ completeElicitation(params: CompleteElicitationNotification): Promise<void>;
31
+ /** The query of `session` ended on its own: the session cannot go on. */
32
+ ended(session: V2Session): void;
33
+ /** A turn of the session failed for a missing login (`authRequired`). */
34
+ signedOut(sessionId: string): void;
35
+ }
36
+ type McpServers = Parameters<Query["setMcpServers"]>[0];
37
+ export declare class V2Session implements RequestTarget {
38
+ readonly sessionId: string;
39
+ readonly cwd: string;
40
+ /** The session's additional directories, as its query got them. */
41
+ readonly additionalDirectories: readonly string[];
42
+ private readonly connection;
43
+ private readonly input;
44
+ /** The prompts not inserted yet, by uuid. */
45
+ private readonly pending;
46
+ /** Whether a turn of Claude Code is open: the session's foreground work. */
47
+ private foreground;
48
+ /** The prompt whose `started` frame came last in the open turn. */
49
+ private turnCommand;
50
+ /** The state the client was told last. */
51
+ private reportedState;
52
+ /** The open permission requests and elicitations of the session. */
53
+ private readonly requests;
54
+ /** Whether `session/cancel` stops the open turn: its idle reports `cancelled`. */
55
+ private cancelledWork;
56
+ /** What a cancel stopped before the client saw it, and the reach of its interrupt. */
57
+ readonly stopped: StoppedWork;
58
+ /** The interrupt of the last `session/cancel`, while it runs. */
59
+ private interrupting;
60
+ /** Pushes prompts in the order they came (see {@link prompt}). */
61
+ private pushes;
62
+ /** Pushes the adapter's own prompts of the open turn in order (see {@link pushOwnPrompt}). */
63
+ private ownPushes;
64
+ /** The result that ended the open turn, with what the turn spent. */
65
+ private lastEnd;
66
+ private usage;
67
+ /**
68
+ * Whether Claude Code's `idle` for the last result is still to come. It can
69
+ * come after the next cycle's first output, and does not end that cycle.
70
+ */
71
+ private idleOwed;
72
+ /** Whether Claude Code sends `command_lifecycle` frames (`msg_lifecycle_v1`). */
73
+ private lifecycleFrames;
74
+ /** What the open turn's assistant messages reported about its end (see {@link TurnReport}). */
75
+ private readonly turnReport;
76
+ /** Set by `session/close`, or when the query ends: nothing more goes out. */
77
+ private closed;
78
+ private closing;
79
+ /** Set by {@link start}. */
80
+ private query;
81
+ readonly output: SessionOutput;
82
+ /** Usage, quota, notices, compactions and the title (see {@link SessionReports}). */
83
+ readonly reports: SessionReports;
84
+ /** Resolves the adapter's own `/compact` once a turn ends (see {@link compact}). */
85
+ private ownCommandDone;
86
+ /** The `background` lists of the session and its children, stamped on each state. */
87
+ private readonly background;
88
+ readonly tasks: SessionTasks;
89
+ readonly elicitations: SessionElicitations;
90
+ /** AIR's file-change reports, when the client declared them (see `file-changes.ts`). */
91
+ private readonly fileChanges;
92
+ config: SessionConfig;
93
+ commands: SessionCommands;
94
+ /** ExitPlanMode's "clear context" option (see {@link ClearContext}). */
95
+ readonly clearContext: ClearContext;
96
+ /** The `/mcp` prompts not inserted yet, by uuid, and the open turn's (see `SessionCommands`). */
97
+ private readonly localCommands;
98
+ private turnLocalCommand;
99
+ /** The JSON of the query's MCP servers. */
100
+ private mcpServers;
101
+ /** The adapter's `/remote-control`, and messages typed in other clients. */
102
+ private readonly remoteControl;
103
+ /** Who waits for {@link turnBoundary}, with whether it waits for a restart. */
104
+ private readonly boundaryWaiters;
105
+ constructor(sessionId: string, cwd: string,
106
+ /** The session's additional directories, as its query got them. */
107
+ additionalDirectories: readonly string[], connection: SessionConnection, input: Pushable<SDKUserMessage>,
108
+ /** Whether Claude Code's interrupt spares background tasks (see {@link SessionTasks}). */
109
+ reportsBackground?: boolean,
110
+ /**
111
+ * The query's additional directories: the request's and those of the
112
+ * client's `_meta.claudeCode.options`. A file-change report lists paths
113
+ * in them and in `cwd`.
114
+ */
115
+ workspaceDirectories?: readonly string[]);
116
+ /**
117
+ * Starts reading the query. Called once, after its initialization.
118
+ * `mcpServers` are the servers the query started with.
119
+ */
120
+ start(query: Query, config: SessionConfig, mcpServers: McpServers, resumed?: boolean): void;
121
+ /** Sends the session's commands in an update, read again from Claude Code. */
122
+ sendCommands(): Promise<void>;
123
+ /**
124
+ * What `session/resume` sends before its response: the listed children
125
+ * with their current states, the current update of each listed item, then
126
+ * the session's state, with its list. A snapshot is no new completion, so
127
+ * its idle has no stop reason.
128
+ */
129
+ resumeSnapshot(): v2.UpdateSessionNotification[];
130
+ /**
131
+ * Replaces the session's MCP servers, as a resume of the active session
132
+ * asks. The same servers stay as they are, connected.
133
+ */
134
+ setMcpServers(servers: McpServers): Promise<void>;
135
+ /**
136
+ * Pushes the prompt to Claude Code. Answers once Claude Code inserted it
137
+ * (see the module doc), right after the prompt's `user_message`.
138
+ *
139
+ * A prompt waits for the interrupt of an earlier `session/cancel` before it
140
+ * goes to Claude Code: the interrupt's `cancelQueued` must not end a prompt
141
+ * that came after the cancel.
142
+ *
143
+ * `guard`, the subscription guard's check (see `subscription-guard.ts`),
144
+ * runs in the prompt's turn among the session's prompts, so they keep their
145
+ * order, and a cancel or close answers a prompt that waits for it with
146
+ * -32800 as any prompt not inserted yet. Its refusal answers the prompt.
147
+ * The adapter's `/remote-control` is not guarded.
148
+ */
149
+ prompt(params: v2.PromptRequest, guard?: (query: Query) => Promise<void> | undefined): Promise<v2.PromptResponse>;
150
+ /**
151
+ * Whether no turn is open and no prompt waits in Claude Code's queue. With
152
+ * `restart`, for a restart of the query (see `restarts.ts`), also no
153
+ * prompt of the session waits to go to Claude Code, which the restart would
154
+ * answer with -32800, and no subagent runs. Without it, for the adapter's
155
+ * `/remote-control`, whose own prompt waits for the boundary.
156
+ */
157
+ atTurnBoundary(restart: boolean): boolean;
158
+ /**
159
+ * Resolves `true` at the next turn boundary (see {@link atTurnBoundary}),
160
+ * at once if the session is at one, and `false` once the session closed.
161
+ */
162
+ turnBoundary(restart: boolean): Promise<boolean>;
163
+ private checkBoundary;
164
+ /**
165
+ * The adapter's idle compaction: `/compact`, as Claude Code's own turn. It
166
+ * is no prompt of the client's, so it gets no `user_message`, and the client
167
+ * sees its turn as `running`, then `idle`. Resolves when a turn ends after
168
+ * it: the idle compaction runs it only while the session is idle, so the
169
+ * next turn to end is its own.
170
+ */
171
+ private compact;
172
+ /**
173
+ * Sends Claude Code the adapter's own prompt `text`, after the interrupt of
174
+ * an earlier `session/cancel`, as {@link prompt} does. It is no prompt of
175
+ * the client's: it gets no `user_message`, also when its echo carries the
176
+ * human `origin` that `promptToClaude` stamps.
177
+ *
178
+ * These prompts continue the open turn (`clear-context.ts`), so they do not
179
+ * wait on {@link pushes}: a `/remote-control` there waits for the turn to
180
+ * end, which needs them. The client's prompts keep their order among
181
+ * themselves on `pushes`.
182
+ */
183
+ private pushOwnPrompt;
184
+ /**
185
+ * Stops the foreground work, and answers the prompts not inserted yet with
186
+ * -32800. The work's idle reports `cancelled`. Background work goes on.
187
+ *
188
+ * The interrupt goes out also while the session is idle:
189
+ * Claude Code may run a cycle that this session has not read yet.
190
+ */
191
+ cancel(): Promise<void>;
192
+ /**
193
+ * What a cancel or close stops at once: the prompts not inserted yet, the
194
+ * open turn, and the work of the subagents that it waits on. The open
195
+ * permission requests stay open: Claude Code's interrupt withdraws them,
196
+ * and the end of the stopped work withdraws what is left (see
197
+ * {@link closeTurn}).
198
+ */
199
+ private stopForeground;
200
+ setConfigOption(params: v2.SetSessionConfigOptionRequest): Promise<v2.SessionConfigOption[]>;
201
+ /**
202
+ * Cancels as `session/cancel` does, ends the open turn with its cancelled
203
+ * idle, then ends the query, which stops the background work too. Nothing
204
+ * of the session goes out after it resolves. It does not wait for Claude
205
+ * Code to end the work: the query's end stops it, and the
206
+ * tool calls that the work leaves open end `cancelled` before its idle.
207
+ */
208
+ close(): Promise<void>;
209
+ /**
210
+ * Ends the session's query, which a new one replaced (see `restarts.ts`).
211
+ * The session is idle then. Its background work ends with the query: its
212
+ * terminals exit and its listed tool calls end before the list drops them,
213
+ * as when a query ends. Then it closes as {@link close} does.
214
+ */
215
+ retire(): Promise<void>;
216
+ get airClient(): boolean;
217
+ availableModes(): string[];
218
+ cancelling(): boolean;
219
+ dropsToolUse(toolUseId: string, agentId: string | undefined, signal: AbortSignal): Promise<boolean>;
220
+ /** The session of a permission request: this one, or a subagent's (see `canUseTool`). */
221
+ target(agentId: string | undefined): Promise<RequestTarget>;
222
+ requestPermission(request: v2.RequestPermissionRequest, toolSignal: AbortSignal): Promise<v2.RequestPermissionResponse>;
223
+ /** Runs `send` as an open request of this session (see {@link RequestTarget.openRequest}). */
224
+ openRequest<T>(toolSignal: AbortSignal, send: (signal: AbortSignal) => Promise<T>): Promise<T>;
225
+ modeChanged(mode: PermissionMode): void;
226
+ prePlanMode(): string | undefined;
227
+ /** A fresh context continues the open turn: only the root's plan in a turn offers it. */
228
+ contextReset(agentId: string | undefined): {
229
+ offered: boolean;
230
+ usedPercent: number | undefined;
231
+ };
232
+ exitPlanInterrupting(toolUseId: string, reset: ClearContextReset | undefined): void;
233
+ permissionAllowed(result: PermissionResult): Promise<PermissionResult>;
234
+ requestShows(target: RequestTarget, toolName: string, toolCallId: string): void;
235
+ toolCallSubject<T extends ToolCallUpdate>(sessionId: string, toolCall: T): T;
236
+ /**
237
+ * Claude Code switched the model without the adapter: a typed `/model`
238
+ * (see `modelSwitchHook`), or a refusal fallback.
239
+ */
240
+ modelSwitched(model: string): void;
241
+ /** The reports follow the model: its context window, and the idle compaction. */
242
+ private modelChangedReports;
243
+ /** Claude Code reported a Fast mode state, on `system`/init or a result. */
244
+ private fastModeReported;
245
+ /**
246
+ * Claude Code mounted a fresh conversation (such as for `/clear`), whose
247
+ * Task* ids and task store are independent of the previous transcript. The
248
+ * old conversation's plans are removed (`plan_removed` of the checklist and
249
+ * of the approved ExitPlanMode plan) before a follow-up prompt can
250
+ * republish stale tasks, and the title and the idle compaction start over.
251
+ * The fresh context of an approved plan removes no plan: that plan becomes
252
+ * the session's plan in it.
253
+ */
254
+ private conversationReset;
255
+ private consume;
256
+ /**
257
+ * Claude Code's tool results. A SendMessage result can restore the agent
258
+ * that it resumed from the history: the results go out after the restore
259
+ * (see `SessionTasks.restoreResumed`).
260
+ */
261
+ private toolResultMessage;
262
+ private toolResults;
263
+ /**
264
+ * Handles one message. Only a `/mcp` turn's result, a result whose turn
265
+ * reads file-change reports, and a subagent's restore from the history are
266
+ * awaited (see {@link result}, {@link endTurn} and `SessionTasks.restored`).
267
+ */
268
+ private handle;
269
+ /**
270
+ * The messages that report on the session rather than carry Claude's
271
+ * output (see {@link SessionReports}).
272
+ */
273
+ private report;
274
+ private lifecycle;
275
+ /**
276
+ * Claude Code took in the prompt `uuid`: its `started` frame or its echo.
277
+ * The prompt's `user_message` comes before the turn's `running`. v2 allows
278
+ * either order. A prompt that a cancel abandoned starts
279
+ * nothing (see {@link StoppedWork}).
280
+ */
281
+ private promptStarted;
282
+ private inserted;
283
+ /**
284
+ * Output of the main conversation while no turn is open starts a cycle
285
+ * that Claude Code started on its own. Without lifecycle frames, a pushed
286
+ * prompt's output can come before its echo, so output while one waits is
287
+ * that prompt's, and its echo opens the turn.
288
+ */
289
+ private outputStarts;
290
+ private result;
291
+ /**
292
+ * Ends the open turn at its result. The file-change reports that its
293
+ * prompts asked for go out first (see `file-changes.ts`). `consume` waits
294
+ * for them, so the idle follows them.
295
+ */
296
+ private endTurn;
297
+ /**
298
+ * Claude Code's `idle`. The one that follows a result is that result's, and
299
+ * can come after the next cycle's first output. Any other ends the open
300
+ * turn, such as one that an interrupt stopped before it ran.
301
+ */
302
+ private claudeCodeIdle;
303
+ /** Sends the commands again, without failing the message that changed them. */
304
+ private resendCommands;
305
+ /** The query ended, with `error` when it failed. The session cannot go on. */
306
+ private ended;
307
+ /** The session ends: its idle compaction is off, and its own `/compact` settles. */
308
+ private endReports;
309
+ /**
310
+ * Opens a turn, if none is open. `command` is the prompt that started it,
311
+ * if one did.
312
+ */
313
+ private openTurn;
314
+ /**
315
+ * Ends the open turn: its idle goes out with the turn's outcome. A turn
316
+ * that waits for its plan's prompt in a fresh context goes on: its end is
317
+ * that prompt's.
318
+ */
319
+ private closeTurn;
320
+ /**
321
+ * While the turn waits on subagents, it is blocked when each of them is
322
+ * (see `SessionTasks.foregroundBlocked`). Otherwise by the session's own
323
+ * open requests.
324
+ */
325
+ private foregroundState;
326
+ /**
327
+ * Reports the foreground state when it changed. `withdrawnByCancel`: the
328
+ * change is the end of a request that a cancel withdrew, so the work is
329
+ * stopping and its idle follows: no `running` goes out for it.
330
+ */
331
+ private reportState;
332
+ private stateUpdate;
333
+ private send;
334
+ /** Sends an update of the session or of a child, with its `background` list. */
335
+ private sendNotification;
336
+ /** Fails the prompt `uuid` if it is not answered yet. Returns whether it was pending. */
337
+ private failPrompt;
338
+ private failPending;
339
+ }
340
+ export {};
42
341
  //# sourceMappingURL=session.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/v2/session.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EAEvB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EAGxB,KAAK,6BAA6B,EAEnC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAIxE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,EAAE,CAAC,iBAAiB,GAAG,iBAAiB,CAQnF;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,EAAE,CAAC,oBAAoB,GAE7B;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,OAAO,EAAE,oBAAoB,CAAA;CAAE,GACnD;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,kBAAkB,CAAA;CAAE,CAoBlD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,EAAE,CAAC,kBAAkB,GAAG,kBAAkB,CAOtF;AAaD,oGAAoG;AACpG,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,kBAAkB,GAAG,EAAE,CAAC,kBAAkB,CAExF;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,qBAAqB,GAAG,EAAE,CAAC,qBAAqB,CAKjG;AAED,uEAAuE;AACvE,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,EAAE,CAAC,6BAA6B,GACvC,6BAA6B,CAgB/B;AAED,sFAAsF;AACtF,wBAAgB,eAAe,CAAC,OAAO,EAAE,mBAAmB,EAAE,GAAG,EAAE,CAAC,mBAAmB,EAAE,CAQxF;AAWD;;;GAGG;AACH,w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