@agentclientprotocol/claude-agent-acp 0.100.1-preview.1 → 0.100.1-preview.3

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.
@@ -67,127 +67,160 @@ export interface BackgroundSink {
67
67
  /** The session ended: its list is no longer reported. */
68
68
  forget(sessionId: string): void;
69
69
  }
70
- /** The state of a session that its lists are built from. */
71
- export interface BackgroundWorkSession {
72
- reportsBackground?: boolean;
73
- backgroundLevel?: BackgroundLevel;
74
- backgroundTerminals?: Map<string, BackgroundTerminal>;
75
- backgroundToolCalls?: Map<string, BackgroundToolCall>;
76
- nativeSubagentsByTaskId?: Map<string, NativeSubagent>;
77
- liveBackgroundTasks?: Map<string, {
70
+ /**
71
+ * The state of a session that other modules own, and that the background
72
+ * work reads: Claude Code's tasks as the consumer tracks them, the subagent
73
+ * sessions, and the query that stops a task.
74
+ */
75
+ export interface BackgroundOwner {
76
+ liveBackgroundTasks: Map<string, {
78
77
  parentToolUseId?: string;
79
78
  isSubagent: boolean;
80
79
  }>;
81
- /** The tool uses whose result has not come yet, by id. */
82
- toolUseCache?: Record<string, unknown>;
80
+ nativeSubagentsByTaskId?: Map<string, NativeSubagent>;
83
81
  query: {
84
82
  stopTask(taskId: string): Promise<void>;
85
83
  };
86
84
  }
87
- /**
88
- * Registers each tool call of a tool result message whose task goes on in
89
- * the background: a `Monitor` or `Workflow` call, whose structured result
90
- * names its task, or a call that a live task names as its tool use, such as
91
- * a backgrounded MCP call. The task must be in the level: one that ended
92
- * already, or that Claude Code marks `ambient`, leaves its call as it is.
93
- * Returns the ids of the calls, whose result then reports `in_progress` (see
94
- * `withRunningToolCall`).
95
- */
96
- export declare function registerBackgroundToolCalls(session: BackgroundWorkSession, content: unknown, toolUseResult: unknown, toolUses: Record<string, {
97
- name: string;
98
- input: unknown;
99
- }>, parentToolUseId: string | null): Set<string>;
100
- /** The level of a `background_tasks_changed` payload. */
101
- export declare function backgroundLevel(tasks: {
85
+ /** A task of a `background_tasks_changed` payload. */
86
+ export type LevelTask = {
102
87
  task_id: string;
103
88
  task_type: string;
104
89
  description: string;
105
90
  parent_task_id?: string;
106
91
  ambient?: boolean;
107
- }[]): BackgroundLevel;
108
- /**
109
- * The `background` list of the root session `rootSessionId` and of each of
110
- * its announced subagent sessions, by session id, deeper sessions first and
111
- * the root last. Each list is empty while
112
- * the level has not been reported: Claude Code sends none before the first
113
- * background task starts.
114
- */
115
- export declare function backgroundLists(session: BackgroundWorkSession, rootSessionId: string): Map<string, BackgroundItem[]>;
116
- /**
117
- * The tasks of the terminals and tool calls that `level` does not hold:
118
- * Claude Code no longer runs them, so they end before a list drops them, as
119
- * v2 requires. A terminal or tool call is registered at its tool result,
120
- * after its task joined the level, so a later level without the task means
121
- * that it ended. Claude Code usually sends a task's end before that level,
122
- * which ends them first, but the SDK does not promise that order.
123
- */
124
- export declare function droppedTasks(session: BackgroundWorkSession, level: BackgroundLevel): string[];
125
- /**
126
- * Starts reading the output of the background command `taskId` into its
127
- * terminal, when the session reports its background work and the Bash result
128
- * named the command's output file. `send` sends an update of the terminal's
129
- * tool call, routed as the call's other updates. Called once the Bash
130
- * result's own updates are sent: the first output replaces the placeholder
131
- * that they gave the terminal.
132
- */
133
- export declare function followBackgroundTerminalOutput(session: BackgroundWorkSession, sessionId: string, taskId: string, send: (notification: AcpSessionNotification) => Promise<void>): void;
134
- /**
135
- * Reads the rest of the output of the background command `taskId` into its
136
- * terminal: the command ended, and its output goes before its exit, as v2
137
- * asks.
138
- */
139
- export declare function finishBackgroundTerminalOutput(session: BackgroundWorkSession, taskId: string): Promise<void>;
140
- /**
141
- * Removes the terminal of the background command `taskId` of the session
142
- * `sessionId`, and returns the update that exits it, or undefined when the
143
- * command has no terminal. Claude Code reports no exit code for it, and
144
- * `completed` does not mean 0: Claude Code accepts some non-zero codes as a
145
- * success, such as grep's 1.
146
- */
147
- export declare function takeBackgroundTerminalExit(session: BackgroundWorkSession, sessionId: string, taskId: string): AcpSessionNotification | undefined;
148
- /**
149
- * Removes the background tool call of the task `taskId` of the session
150
- * `sessionId`, and returns the update that gives it its final status, or
151
- * undefined when the task has no such call. A task that Claude Code stopped
152
- * is `cancelled`. One that ended without saying how, such as one that the
153
- * level dropped, is `completed`: it no longer runs, and reported no failure.
154
- */
155
- export declare function takeBackgroundToolCallEnd(session: BackgroundWorkSession, sessionId: string, taskId: string, end: BackgroundTaskEnd): AcpSessionNotification | undefined;
156
- /**
157
- * The update that reports the background tool call of the task `taskId` as
158
- * `paused`, or as `in_progress` again, when `paused` changes it. Claude Code
159
- * pauses a workflow this way.
160
- */
161
- export declare function backgroundToolCallPause(session: BackgroundWorkSession, sessionId: string, taskId: string, paused: boolean): AcpSessionNotification | undefined;
162
- /**
163
- * The current state of each background tool call in `toolCallIds` of the
164
- * root session `sessionId`: the call as `renderer` shows its tool use, with
165
- * its status now (see `ClaudeAcpAgent.publishBackgroundToolCalls`).
166
- */
167
- export declare function backgroundToolCallStates(session: BackgroundWorkSession & {
168
- cwd: string;
169
- }, sessionId: string, toolCallIds: string[], renderer: AcpToolCallRenderer): AcpSessionNotification[];
92
+ };
170
93
  /**
171
- * Ends the background work of a session whose query closed: Claude Code's
172
- * background tasks end with its process. Returns the updates that exit the
173
- * root session's terminals and cancel its tool calls, and empties the level,
174
- * so the next lists are empty. A subagent's command or tool call is left as
175
- * it was: it is on the child's stream, which the closed query's routing
176
- * owned.
94
+ * The background work of one root session, and of its subagent sessions: the
95
+ * terminals and tool calls of the tasks that run in the background, and what
96
+ * the client is told of them.
97
+ *
98
+ * Terminals are kept for every client that renders them, as before the
99
+ * background lists. The rest is kept only when `reported`.
177
100
  */
178
- export declare function endBackgroundWork(session: BackgroundWorkSession, sessionId: string): AcpSessionNotification[];
101
+ export declare class SessionBackgroundWork {
102
+ private readonly sessionId;
103
+ readonly reported: boolean;
104
+ /** Claude Code's live background task set, from its last `background_tasks_changed`. */
105
+ private level;
106
+ /** The terminals of the commands that went to the background, by task id. */
107
+ private readonly terminals;
108
+ /** The tool calls whose tasks went on in the background, by task id. */
109
+ private readonly toolCalls;
110
+ /**
111
+ * The tool calls that returned, oldest first. A task that a call started
112
+ * is part of that call until it returns, and the foreground work waits on
113
+ * it. The task's `task_started` can come after the call returned. Bounded
114
+ * by {@link MAX_RETURNED_CALLS}: a task joins the level around the time its
115
+ * call returns.
116
+ */
117
+ private readonly returned;
118
+ /**
119
+ * `reported`: whether the client gets the lists. Only when Claude Code's
120
+ * interrupt spares background tasks, as `perTaskStopAffordance` makes it.
121
+ */
122
+ constructor(sessionId: string, reported: boolean);
123
+ /**
124
+ * Keeps the display terminal of the command `taskId` running after its Bash
125
+ * result, until its task ends (see `withRunningTerminal`).
126
+ */
127
+ terminalStarted(taskId: string, terminal: BackgroundTerminal): void;
128
+ /**
129
+ * Reads what a tool result message tells of the background tasks:
130
+ *
131
+ * - The returned calls no longer hold the tasks that they started.
132
+ * - Each call whose task goes on in the background is registered: a
133
+ * `Monitor` or `Workflow` call, whose structured result names its task,
134
+ * or a call that a live task names as its tool use, such as a
135
+ * backgrounded MCP call. The task must be in the level: one that ended
136
+ * already, or that Claude Code marks `ambient`, leaves its call as it is.
137
+ *
138
+ * Returns the ids of the registered calls, whose result then reports
139
+ * `in_progress` (see `withRunningToolCall`).
140
+ */
141
+ toolResults(owner: BackgroundOwner, content: unknown, toolUseResult: unknown, toolUses: Record<string, {
142
+ name: string;
143
+ input: unknown;
144
+ }>, parentToolUseId: string | null): Set<string>;
145
+ /**
146
+ * Starts reading the output of the background command `taskId` into its
147
+ * terminal, when the client gets the lists and the Bash result named the
148
+ * command's output file. `send` sends an update of the terminal's tool
149
+ * call, routed as the call's other updates. Called once the Bash result's
150
+ * own updates are sent: the first output replaces the placeholder that they
151
+ * gave the terminal.
152
+ */
153
+ followOutput(taskId: string, send: Send): void;
154
+ /**
155
+ * The task `taskId` ended. Reads the rest of its command's output, then
156
+ * exits its terminal, and gives a tool call whose task it was its final
157
+ * status: `cancelled` for a task that Claude Code stopped, and `completed`
158
+ * for one that ended without saying how, such as one that the level
159
+ * dropped: it no longer runs, and reported no failure. Claude Code reports
160
+ * no exit code for a command, and `completed` does not mean 0: Claude Code
161
+ * accepts some non-zero codes as a success, such as grep's 1.
162
+ */
163
+ taskEnded(taskId: string, end: BackgroundTaskEnd, send: Send): Promise<void>;
164
+ /**
165
+ * The update that reports the background tool call of the task `taskId` as
166
+ * `paused`, or as `in_progress` again, when `paused` changes it. Claude Code
167
+ * pauses a workflow this way.
168
+ */
169
+ taskPaused(taskId: string, paused: boolean): AcpSessionNotification | undefined;
170
+ /**
171
+ * Takes Claude Code's new live background task set. The terminals and tool
172
+ * calls whose tasks it no longer holds end first, before a list drops them,
173
+ * as v2 requires. A terminal or tool call is registered at its tool result,
174
+ * after its task joined the level, so a later level without the task means
175
+ * that it ended. Claude Code usually sends a task's end before that level,
176
+ * which ends them first, but the SDK does not promise that order.
177
+ */
178
+ levelChanged(tasks: LevelTask[], send: Send): Promise<void>;
179
+ /**
180
+ * The query closed: Claude Code's background tasks end with its process.
181
+ * Stops reading output, and returns the updates that exit the root
182
+ * session's terminals and cancel its tool calls. The level empties, so the
183
+ * next lists are empty. A subagent's command or tool call is left as it
184
+ * was: it is on the child's stream, which the closed query's routing owned.
185
+ */
186
+ queryClosed(): AcpSessionNotification[];
187
+ /**
188
+ * The `background` list of the root session and of each of its announced
189
+ * subagent sessions, with what their repeated states need, deeper sessions
190
+ * first and the root last: a child's own list goes out before its parent's
191
+ * list drops it. Each list is empty while the level has not been reported:
192
+ * Claude Code sends none before the first background task starts.
193
+ */
194
+ reports(owner: BackgroundOwner, rootState: WorkStateName): BackgroundReport[];
195
+ /**
196
+ * The current state of each background tool call in `toolCallIds`: the
197
+ * call as `renderer` shows its tool use, with its status now (see
198
+ * `ClaudeAcpAgent.publishBackgroundToolCalls`).
199
+ */
200
+ toolCallStates(toolCallIds: string[], renderer: AcpToolCallRenderer, cwd: string): AcpSessionNotification[];
201
+ /**
202
+ * The task of the terminal or tool call `target` that the session
203
+ * `sessionId` lists, or undefined when it lists no such item.
204
+ */
205
+ listedTask(owner: BackgroundOwner, sessionId: string, target: BackgroundTarget): string | undefined;
206
+ }
207
+ type Send = (notification: AcpSessionNotification) => Promise<void>;
208
+ /** A terminal or tool call that `terminal/cancel` or `tool_call/cancel` names. */
209
+ export type BackgroundTarget = {
210
+ terminalId: string;
211
+ } | {
212
+ toolCallId: string;
213
+ };
179
214
  /**
180
215
  * Stops the task of a terminal or tool call that the session `sessionId`
181
216
  * lists (v2 `terminal/cancel` and `tool_call/cancel`). `sessions` are the
182
- * root sessions, by id: a subagent session's list is built with its root's.
183
- * The terminal exits, or the tool call gets its final status, when Claude
184
- * Code reports the task stopped.
217
+ * root sessions: a subagent session's list is built with its root's. The
218
+ * terminal exits, or the tool call gets its final status, when Claude Code
219
+ * reports the task stopped.
185
220
  */
186
- export declare function cancelBackgroundWork(sessions: Record<string, BackgroundWorkSession>, sessionId: string, target: {
187
- terminalId: string;
188
- } | {
189
- toolCallId: string;
190
- }): Promise<void>;
221
+ export declare function cancelBackgroundWork(sessions: Array<BackgroundOwner & {
222
+ background?: SessionBackgroundWork;
223
+ }>, sessionId: string, target: BackgroundTarget): Promise<void>;
191
224
  /**
192
225
  * Publishes the lists of each session that reports them, each time one
193
226
  * changes. The sink sends them to the client synchronously, so a list follows
@@ -205,8 +238,11 @@ export declare class BackgroundWorkReporter {
205
238
  * first call for a session publishes its list, also when it is empty.
206
239
  * `rootState` is the root session's state now.
207
240
  */
208
- sync(rootSessionId: string, session: BackgroundWorkSession, rootState: WorkStateName): void;
241
+ sync(rootSessionId: string, session: BackgroundOwner & {
242
+ background?: SessionBackgroundWork;
243
+ }, rootState: WorkStateName): void;
209
244
  /** The root session `rootSessionId` ended, and its subagent sessions with it. */
210
245
  forget(rootSessionId: string): void;
211
246
  }
247
+ export {};
212
248
  //# sourceMappingURL=background-work.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"background-work.d.ts","sourceRoot":"","sources":["../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