@agentclientprotocol/claude-agent-acp 0.102.0 → 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.
- package/README.md +5 -1
- package/dist/acp-agent.d.ts +119 -439
- package/dist/acp-agent.d.ts.map +1 -1
- package/dist/acp-agent.js +380 -2412
- package/dist/acp-subagents.d.ts +1 -2
- package/dist/acp-subagents.d.ts.map +1 -1
- package/dist/auth-methods.d.ts +21 -0
- package/dist/auth-methods.d.ts.map +1 -0
- package/dist/auth-methods.js +68 -0
- package/dist/auth-status-reporter.d.ts +112 -0
- package/dist/auth-status-reporter.d.ts.map +1 -0
- package/dist/auth-status-reporter.js +253 -0
- package/dist/background-work.d.ts +12 -265
- package/dist/background-work.d.ts.map +1 -1
- package/dist/background-work.js +8 -558
- package/dist/client-system-prompt.d.ts +7 -0
- package/dist/client-system-prompt.d.ts.map +1 -1
- package/dist/client-system-prompt.js +24 -0
- package/dist/context-compaction.d.ts +20 -0
- package/dist/context-compaction.d.ts.map +1 -1
- package/dist/context-compaction.js +26 -0
- package/dist/context-window.d.ts +70 -0
- package/dist/context-window.d.ts.map +1 -0
- package/dist/context-window.js +132 -0
- package/dist/diff.d.ts +1 -1
- package/dist/diff.js +1 -1
- package/dist/elicitation.d.ts +66 -1
- package/dist/elicitation.d.ts.map +1 -1
- package/dist/elicitation.js +109 -0
- package/dist/file-change-audit.d.ts +4 -3
- package/dist/file-change-audit.d.ts.map +1 -1
- package/dist/file-change-audit.js +3 -2
- package/dist/mcp-oauth.d.ts +44 -0
- package/dist/mcp-oauth.d.ts.map +1 -0
- package/dist/mcp-oauth.js +142 -0
- package/dist/mcp-servers.d.ts +10 -0
- package/dist/mcp-servers.d.ts.map +1 -0
- package/dist/mcp-servers.js +29 -0
- package/dist/native-subagents.d.ts +18 -8
- package/dist/native-subagents.d.ts.map +1 -1
- package/dist/native-subagents.js +7 -35
- package/dist/permissions/presentation.d.ts +29 -0
- package/dist/permissions/presentation.d.ts.map +1 -1
- package/dist/permissions/presentation.js +38 -11
- package/dist/plans.d.ts +36 -6
- package/dist/plans.d.ts.map +1 -1
- package/dist/plans.js +49 -11
- package/dist/prompt-suggestions.d.ts +29 -0
- package/dist/prompt-suggestions.d.ts.map +1 -1
- package/dist/prompt-suggestions.js +45 -0
- package/dist/providers.d.ts +139 -0
- package/dist/providers.d.ts.map +1 -0
- package/dist/providers.js +286 -0
- package/dist/remote-control.d.ts +62 -0
- package/dist/remote-control.d.ts.map +1 -0
- package/dist/remote-control.js +78 -0
- package/dist/result-end.d.ts +39 -0
- package/dist/result-end.d.ts.map +1 -0
- package/dist/result-end.js +50 -0
- package/dist/serve.d.ts +7 -2
- package/dist/serve.d.ts.map +1 -1
- package/dist/serve.js +10 -5
- package/dist/session-config-ids.d.ts +1 -0
- package/dist/session-config-ids.d.ts.map +1 -1
- package/dist/session-config-ids.js +1 -0
- package/dist/session-config-options.d.ts +64 -0
- package/dist/session-config-options.d.ts.map +1 -0
- package/dist/session-config-options.js +162 -0
- package/dist/session-effort.d.ts +67 -0
- package/dist/session-effort.d.ts.map +1 -1
- package/dist/session-effort.js +98 -0
- package/dist/session-env.d.ts +22 -0
- package/dist/session-env.d.ts.map +1 -0
- package/dist/session-env.js +66 -0
- package/dist/session-fast-mode.d.ts +83 -0
- package/dist/session-fast-mode.d.ts.map +1 -0
- package/dist/session-fast-mode.js +142 -0
- package/dist/session-index/connection.d.ts +2 -5
- package/dist/session-index/connection.d.ts.map +1 -1
- package/dist/session-index/connection.js +3 -5
- package/dist/session-mode.d.ts +1 -0
- package/dist/session-mode.d.ts.map +1 -1
- package/dist/session-mode.js +1 -1
- package/dist/session-model.d.ts +41 -0
- package/dist/session-model.d.ts.map +1 -1
- package/dist/session-model.js +110 -45
- package/dist/session-notices.d.ts +44 -0
- package/dist/session-notices.d.ts.map +1 -1
- package/dist/session-notices.js +68 -0
- package/dist/session-titles.d.ts +34 -12
- package/dist/session-titles.d.ts.map +1 -1
- package/dist/session-titles.js +7 -6
- package/dist/session-usage.d.ts +125 -0
- package/dist/session-usage.d.ts.map +1 -0
- package/dist/session-usage.js +196 -0
- package/dist/streamed-text.d.ts +33 -0
- package/dist/streamed-text.d.ts.map +1 -0
- package/dist/streamed-text.js +71 -0
- package/dist/subagent-configuration.d.ts +32 -0
- package/dist/subagent-configuration.d.ts.map +1 -0
- package/dist/subagent-configuration.js +70 -0
- package/dist/subagent-replay.d.ts +18 -0
- package/dist/subagent-replay.d.ts.map +1 -1
- package/dist/subagent-replay.js +25 -15
- package/dist/tool-calls/client-capabilities.d.ts +8 -8
- package/dist/tool-calls/client-capabilities.js +4 -4
- package/dist/tool-calls/renderer.d.ts +4 -5
- package/dist/tool-calls/renderer.d.ts.map +1 -1
- package/dist/tool-calls/renderer.js +4 -5
- package/dist/turn-events.d.ts +6 -46
- package/dist/turn-events.d.ts.map +1 -1
- package/dist/v2/agent.d.ts +7 -11
- package/dist/v2/agent.d.ts.map +1 -1
- package/dist/v2/agent.js +751 -331
- package/dist/v2/air.d.ts +33 -0
- package/dist/v2/air.d.ts.map +1 -0
- package/dist/v2/air.js +29 -0
- package/dist/v2/auth.d.ts +97 -0
- package/dist/v2/auth.d.ts.map +1 -0
- package/dist/v2/auth.js +216 -0
- package/dist/v2/background.d.ts +27 -16
- package/dist/v2/background.d.ts.map +1 -1
- package/dist/v2/background.js +4 -32
- package/dist/v2/child-config.d.ts +55 -0
- package/dist/v2/child-config.d.ts.map +1 -0
- package/dist/v2/child-config.js +92 -0
- package/dist/v2/clear-context.d.ts +94 -0
- package/dist/v2/clear-context.d.ts.map +1 -0
- package/dist/v2/clear-context.js +176 -0
- package/dist/v2/commands.d.ts +46 -0
- package/dist/v2/commands.d.ts.map +1 -0
- package/dist/v2/commands.js +54 -0
- package/dist/v2/config.d.ts +187 -0
- package/dist/v2/config.d.ts.map +1 -0
- package/dist/v2/config.js +494 -0
- package/dist/v2/elicitation.d.ts +93 -0
- package/dist/v2/elicitation.d.ts.map +1 -0
- package/dist/v2/elicitation.js +160 -0
- package/dist/v2/file-changes.d.ts +61 -0
- package/dist/v2/file-changes.d.ts.map +1 -0
- package/dist/v2/file-changes.js +108 -0
- package/dist/v2/file-preview.d.ts +18 -0
- package/dist/v2/file-preview.d.ts.map +1 -0
- package/dist/v2/file-preview.js +29 -0
- package/dist/v2/initialize.d.ts +10 -24
- package/dist/v2/initialize.d.ts.map +1 -1
- package/dist/v2/initialize.js +4 -111
- package/dist/v2/outcome.d.ts +81 -0
- package/dist/v2/outcome.d.ts.map +1 -0
- package/dist/v2/outcome.js +165 -0
- package/dist/v2/permissions.d.ts +92 -0
- package/dist/v2/permissions.d.ts.map +1 -0
- package/dist/v2/permissions.js +162 -0
- package/dist/v2/prompt.d.ts +2 -42
- package/dist/v2/prompt.d.ts.map +1 -1
- package/dist/v2/prompt.js +2 -119
- package/dist/v2/remote-control.d.ts +41 -0
- package/dist/v2/remote-control.d.ts.map +1 -0
- package/dist/v2/remote-control.js +63 -0
- package/dist/v2/reports.d.ts +198 -0
- package/dist/v2/reports.d.ts.map +1 -0
- package/dist/v2/reports.js +487 -0
- package/dist/v2/restarts.d.ts +128 -0
- package/dist/v2/restarts.d.ts.map +1 -0
- package/dist/v2/restarts.js +348 -0
- package/dist/v2/session-requests.d.ts +20 -0
- package/dist/v2/session-requests.d.ts.map +1 -0
- package/dist/v2/session-requests.js +108 -0
- package/dist/v2/session-update.d.ts +2 -13
- package/dist/v2/session-update.d.ts.map +1 -1
- package/dist/v2/session-update.js +2 -22
- package/dist/v2/session.d.ts +340 -41
- package/dist/v2/session.d.ts.map +1 -1
- package/dist/v2/session.js +1223 -141
- package/dist/v2/setup.d.ts +49 -0
- package/dist/v2/setup.d.ts.map +1 -0
- package/dist/v2/setup.js +62 -0
- package/dist/v2/stopped-work.d.ts +123 -0
- package/dist/v2/stopped-work.d.ts.map +1 -0
- package/dist/v2/stopped-work.js +210 -0
- package/dist/v2/stream.d.ts +228 -0
- package/dist/v2/stream.d.ts.map +1 -0
- package/dist/v2/stream.js +506 -0
- package/dist/v2/subagent-replay.d.ts +115 -0
- package/dist/v2/subagent-replay.d.ts.map +1 -0
- package/dist/v2/subagent-replay.js +479 -0
- package/dist/v2/subscription-guard.d.ts +60 -0
- package/dist/v2/subscription-guard.d.ts.map +1 -0
- package/dist/v2/subscription-guard.js +84 -0
- package/dist/v2/tasks.d.ts +492 -0
- package/dist/v2/tasks.d.ts.map +1 -0
- package/dist/v2/tasks.js +1728 -0
- package/dist/v2/terminal.d.ts.map +1 -1
- package/dist/v2/terminal.js +6 -1
- package/dist/v2/tool-call.d.ts +3 -2
- package/dist/v2/tool-call.d.ts.map +1 -1
- package/dist/v2/update-translator.d.ts +36 -0
- package/dist/v2/update-translator.d.ts.map +1 -0
- package/dist/v2/update-translator.js +80 -0
- package/dist/workflow-progress.d.ts +23 -0
- package/dist/workflow-progress.d.ts.map +1 -1
- package/dist/workflow-progress.js +31 -8
- package/package.json +1 -1
- package/dist/v2/permission.d.ts +0 -28
- package/dist/v2/permission.d.ts.map +0 -1
- package/dist/v2/permission.js +0 -41
|
@@ -0,0 +1,492 @@
|
|
|
1
|
+
import { RequestError, type SessionModeState } from "@agentclientprotocol/sdk/unstable";
|
|
2
|
+
import type * as v2 from "@agentclientprotocol/sdk/experimental/v2/unstable";
|
|
3
|
+
import type { HookInput, SDKMessage, SDKUserMessage, SessionMessage } from "@anthropic-ai/claude-agent-sdk";
|
|
4
|
+
import type { Logger } from "../acp-agent.js";
|
|
5
|
+
import type { AcpSessionNotification } from "../acp-subagents.js";
|
|
6
|
+
import { type SubagentModels } from "../native-subagents.js";
|
|
7
|
+
import type { V2Background, WorkStateName } from "./background.js";
|
|
8
|
+
import type { V2UpdateTranslator } from "./update-translator.js";
|
|
9
|
+
import { ChildConfigurations } from "./child-config.js";
|
|
10
|
+
import { SessionOutput } from "./stream.js";
|
|
11
|
+
import { SubagentReplay } from "./subagent-replay.js";
|
|
12
|
+
/** What the tasks need of their root session. */
|
|
13
|
+
export interface TaskHost {
|
|
14
|
+
readonly sessionId: string;
|
|
15
|
+
readonly cwd: string;
|
|
16
|
+
readonly logger: Logger;
|
|
17
|
+
readonly translator: V2UpdateTranslator;
|
|
18
|
+
readonly background: V2Background;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the session reports its background work: only when Claude Code's
|
|
21
|
+
* interrupt spares background tasks (`perTaskStopAffordance`).
|
|
22
|
+
*/
|
|
23
|
+
readonly reportsBackground: boolean;
|
|
24
|
+
/** Sends an update of the root session or one of its children. */
|
|
25
|
+
send(notification: v2.UpdateSessionNotification): void;
|
|
26
|
+
/** The root session's foreground state now. */
|
|
27
|
+
rootState(): WorkStateName;
|
|
28
|
+
/** A subagent's open requests changed, which can block the root's foreground work. */
|
|
29
|
+
foregroundRequestsChanged(): void;
|
|
30
|
+
/** The entries of the root session's `model` option, for a child's `model`. */
|
|
31
|
+
models(): SubagentModels;
|
|
32
|
+
/** The root session's modes, for a child's `mode`. */
|
|
33
|
+
modes(): SessionModeState["availableModes"];
|
|
34
|
+
stopTask(taskId: string): Promise<void>;
|
|
35
|
+
}
|
|
36
|
+
/** Where a permission request or elicitation goes: the root session or a child. */
|
|
37
|
+
export interface RequestTarget {
|
|
38
|
+
readonly sessionId: string;
|
|
39
|
+
readonly cwd: string;
|
|
40
|
+
/** The output of the session, which holds its tool calls. */
|
|
41
|
+
readonly output: SessionOutput;
|
|
42
|
+
/** For a subagent's request: the Agent or Task call that launched the subagent. */
|
|
43
|
+
readonly parentToolUseId?: string;
|
|
44
|
+
/** Whether a cancel stops the work that the request belongs to. */
|
|
45
|
+
cancelling(): boolean;
|
|
46
|
+
requestPermission(request: v2.RequestPermissionRequest, signal: AbortSignal): Promise<v2.RequestPermissionResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* Runs `send` as an open request of the target (`requires_action`) until it
|
|
49
|
+
* settles. Its signal aborts with `signal`, or when a cancel or close
|
|
50
|
+
* withdraws the target's requests.
|
|
51
|
+
*/
|
|
52
|
+
openRequest<T>(signal: AbortSignal, send: (signal: AbortSignal) => Promise<T>): Promise<T>;
|
|
53
|
+
}
|
|
54
|
+
export declare class SessionTasks {
|
|
55
|
+
private readonly host;
|
|
56
|
+
/** The root session's output, which owns its tool calls. */
|
|
57
|
+
private readonly rootOutput;
|
|
58
|
+
/** The subagents, by agent id. */
|
|
59
|
+
private readonly children;
|
|
60
|
+
/** The child of each Agent call that launched or resumed one. */
|
|
61
|
+
private readonly childByToolUse;
|
|
62
|
+
/** The Agent and Task calls, by tool use id. */
|
|
63
|
+
private readonly launches;
|
|
64
|
+
/** The messages of a launch whose child has not started, by launch id. */
|
|
65
|
+
private readonly pendingByLaunch;
|
|
66
|
+
/** The live subagent tasks, by agent id, announced or not. */
|
|
67
|
+
private readonly agents;
|
|
68
|
+
/** The open permission requests of each subagent, by agent id. */
|
|
69
|
+
private readonly agentRequests;
|
|
70
|
+
/** The subagents whose runs a cancel stops, by agent id, until their runs end. */
|
|
71
|
+
private readonly cancelledAgents;
|
|
72
|
+
/** The subagents that the root's last cancel stopped (see {@link foregroundCancelFailed}). */
|
|
73
|
+
private readonly foregroundCancelled;
|
|
74
|
+
/**
|
|
75
|
+
* Whether the root's cancel is in effect: from {@link cancelForeground}
|
|
76
|
+
* until {@link foregroundCancelEnded} or {@link foregroundCancelFailed}.
|
|
77
|
+
*/
|
|
78
|
+
private rootCancelling;
|
|
79
|
+
/** Set when the root session closes: no request goes to the client after it. */
|
|
80
|
+
private closed;
|
|
81
|
+
/** The session that made each SendMessage call: the sender of a resumed child's prompt. */
|
|
82
|
+
private readonly senderByToolUse;
|
|
83
|
+
/** The other tasks that `task_started` reported, until they end. */
|
|
84
|
+
private readonly started;
|
|
85
|
+
/** Claude Code's live background tasks, from its last `background_tasks_changed`. */
|
|
86
|
+
private level;
|
|
87
|
+
/** The terminals of the commands that went to the background, by task id. */
|
|
88
|
+
private readonly terminals;
|
|
89
|
+
/**
|
|
90
|
+
* The tool calls whose tasks go on in the background, by task id. A call
|
|
91
|
+
* that the adapter started for its task (see {@link adoptTasks}) has the
|
|
92
|
+
* task's description as its `title` instead of a tool use.
|
|
93
|
+
*/
|
|
94
|
+
private readonly toolCalls;
|
|
95
|
+
/** The tool calls that returned: their tasks no longer hold their work. */
|
|
96
|
+
private readonly returned;
|
|
97
|
+
/** What a subagent's hooks reported before the child was announced, by agent id. */
|
|
98
|
+
private readonly startedHooks;
|
|
99
|
+
/** The children's configurations (see `child-config.ts`). */
|
|
100
|
+
readonly configs: ChildConfigurations;
|
|
101
|
+
/**
|
|
102
|
+
* The SendMessage calls, which the client is not shown until their final
|
|
103
|
+
* update, with their first report and the session that made them. A message
|
|
104
|
+
* that reaches an announced child replaces its call.
|
|
105
|
+
*/
|
|
106
|
+
private readonly hiddenSendMessages;
|
|
107
|
+
/**
|
|
108
|
+
* The SendMessage calls that a permission request showed before their tool
|
|
109
|
+
* use streamed: the client holds them, so they stay shown until their final
|
|
110
|
+
* update, as on v1 (its `eagerToolCallSessions`).
|
|
111
|
+
*/
|
|
112
|
+
private readonly shownSendMessages;
|
|
113
|
+
/**
|
|
114
|
+
* The SubagentHandback calls of announced children, which the client is not
|
|
115
|
+
* shown until their final update, with their first report, the report from
|
|
116
|
+
* their input, and the call that delegated the run.
|
|
117
|
+
*/
|
|
118
|
+
private readonly handbacks;
|
|
119
|
+
/** The restore of a subagent from the session's history, while it reads it (see {@link restore}). */
|
|
120
|
+
private restoring;
|
|
121
|
+
constructor(host: TaskHost,
|
|
122
|
+
/** The root session's output, which owns its tool calls. */
|
|
123
|
+
rootOutput: SessionOutput);
|
|
124
|
+
/**
|
|
125
|
+
* Takes a message of the query that concerns the tasks. Returns whether it
|
|
126
|
+
* was a child's, which then goes to the child's stream only.
|
|
127
|
+
*/
|
|
128
|
+
handle(message: SDKMessage): boolean;
|
|
129
|
+
/**
|
|
130
|
+
* The restore of a subagent that {@link handle} started, once: the session
|
|
131
|
+
* handles its next message after it, so the child's traffic finds it.
|
|
132
|
+
*/
|
|
133
|
+
restored(): Promise<void> | undefined;
|
|
134
|
+
/**
|
|
135
|
+
* Restores the agent that a SendMessage result of `output` resumed
|
|
136
|
+
* (`resumedAgentId`), when this process does not know it, as the v1 core
|
|
137
|
+
* does (`sendMessageResumed`): Claude Code can resume an agent without a
|
|
138
|
+
* `task_started`. The caller sends the result's updates after it, so the
|
|
139
|
+
* restored child takes the call's message. Undefined when nothing is
|
|
140
|
+
* restored: the agent is known, or no SendMessage call of the session
|
|
141
|
+
* carried the result.
|
|
142
|
+
*/
|
|
143
|
+
restoreResumed(output: SessionOutput, message: SDKUserMessage): Promise<void> | undefined;
|
|
144
|
+
/**
|
|
145
|
+
* The tool results of the root session, or of a child (`output`): a
|
|
146
|
+
* background command's terminal and a background task's tool call keep
|
|
147
|
+
* running past them.
|
|
148
|
+
*/
|
|
149
|
+
toolResults(output: SessionOutput, message: SDKUserMessage): void;
|
|
150
|
+
/** Reads the subagents that the history `messages` launched, for its replay. */
|
|
151
|
+
loadReplay(messages: SessionMessage[]): Promise<SubagentReplay | undefined>;
|
|
152
|
+
/** Whether a subagent task runs, announced or not, in the foreground or the background. */
|
|
153
|
+
hasLiveSubagents(): boolean;
|
|
154
|
+
/** Whether `sessionId` is an announced child session of this root. */
|
|
155
|
+
hasChild(sessionId: string): boolean;
|
|
156
|
+
/**
|
|
157
|
+
* The session that a permission request of the agent `agentId` goes to:
|
|
158
|
+
* its child session once it is announced, else the root. A request can
|
|
159
|
+
* come before its subagent's `task_started`: it blocks the root's work once
|
|
160
|
+
* that shows the subagent runs in the foreground.
|
|
161
|
+
*/
|
|
162
|
+
target(agentId: string | undefined, root: RequestTarget): Promise<RequestTarget>;
|
|
163
|
+
/**
|
|
164
|
+
* Whether the root's foreground work, through the subagents that it waits
|
|
165
|
+
* on (those it does not run in the background), waits on the user: each of
|
|
166
|
+
* them is blocked. Undefined when it waits on no subagent. A subagent is
|
|
167
|
+
* blocked when each subagent that it waits on is, or, waiting on none, when
|
|
168
|
+
* a request of it is open. So one that still makes progress keeps the work
|
|
169
|
+
* `running`, as v2 asks.
|
|
170
|
+
*/
|
|
171
|
+
foregroundBlocked(): boolean | undefined;
|
|
172
|
+
private subagentsBlocked;
|
|
173
|
+
/**
|
|
174
|
+
* The root's foreground work is cancelled: so is the work of the subagents
|
|
175
|
+
* that it waits on. Their open requests are withdrawn. Claude Code's
|
|
176
|
+
* interrupt stops their runs, which then end `cancelled`. Until then, of
|
|
177
|
+
* their consolidated messages only the results of the tool calls that the
|
|
178
|
+
* client holds go out, as on the root (see `SessionOutput.cancelled`). A foreground subagent that Claude Code
|
|
179
|
+
* reports after the cancel, until {@link foregroundCancelEnded}, is
|
|
180
|
+
* stopped work too: Claude Code started it before the interrupt, and the
|
|
181
|
+
* session reads its `task_started` only after the cancel.
|
|
182
|
+
*/
|
|
183
|
+
cancelForeground(): void;
|
|
184
|
+
/**
|
|
185
|
+
* The work that the root's cancel stopped ended: its result, Claude Code's
|
|
186
|
+
* idle, or the start of a later prompt. A subagent that comes after it is
|
|
187
|
+
* the later work's.
|
|
188
|
+
*/
|
|
189
|
+
foregroundCancelEnded(): void;
|
|
190
|
+
/**
|
|
191
|
+
* The interrupt of the root's cancel failed: the subagents that it stopped
|
|
192
|
+
* go on. Their requests were withdrawn, and their later ones are theirs
|
|
193
|
+
* again, not a stopped run's.
|
|
194
|
+
*/
|
|
195
|
+
foregroundCancelFailed(): void;
|
|
196
|
+
/**
|
|
197
|
+
* A cancel failed to stop the agents `agentIds` that it withdrew: their
|
|
198
|
+
* runs go on, and their later requests are theirs again. Each reports
|
|
199
|
+
* `running` again, which the withdrawn requests did not.
|
|
200
|
+
*/
|
|
201
|
+
private cancelFailed;
|
|
202
|
+
/**
|
|
203
|
+
* The root session closes: every subagent's open request is withdrawn, and
|
|
204
|
+
* a later one never reaches the client.
|
|
205
|
+
*/
|
|
206
|
+
withdrawAll(): void;
|
|
207
|
+
/**
|
|
208
|
+
* `session/cancel` of a child: stops its run, and the work of the subagents
|
|
209
|
+
* that it waits on. Its idle reports `cancelled` once Claude Code reports
|
|
210
|
+
* the task stopped. A child that does not work has nothing to stop.
|
|
211
|
+
*/
|
|
212
|
+
cancelChild(sessionId: string): Promise<void>;
|
|
213
|
+
/**
|
|
214
|
+
* Claude Code denied a tool use without asking: on the session of the agent
|
|
215
|
+
* `agent_id` names, where its tool call is.
|
|
216
|
+
*/
|
|
217
|
+
permissionDenied(message: Extract<SDKMessage, {
|
|
218
|
+
subtype: "permission_denied";
|
|
219
|
+
}>): void;
|
|
220
|
+
/**
|
|
221
|
+
* A permission request on the session of `output` shows the tool call
|
|
222
|
+
* `toolCallId` to the client. A SendMessage call whose tool use has not
|
|
223
|
+
* streamed yet then stays shown: its updates go out, and its message goes
|
|
224
|
+
* to the child only. One that already streamed stays hidden.
|
|
225
|
+
*/
|
|
226
|
+
requestShows(output: SessionOutput, toolName: string, toolCallId: string): void;
|
|
227
|
+
/**
|
|
228
|
+
* A hook of the subagent `input.agent_id`, as the v1 core reads them
|
|
229
|
+
* (`subagentConfigurationHook`): its `cwd` is the child's working
|
|
230
|
+
* directory, such as its worktree, and its configuration goes to the
|
|
231
|
+
* child's session (see `child-config.ts`). What a hook reports before the
|
|
232
|
+
* child's announcement goes with it.
|
|
233
|
+
*/
|
|
234
|
+
subagentHook(input: HookInput): void;
|
|
235
|
+
/**
|
|
236
|
+
* Stops the listed terminal or tool call of `sessionId` (`terminal/cancel`
|
|
237
|
+
* and `tool_call/cancel`). It ends when Claude Code reports its task
|
|
238
|
+
* stopped. Returns false when the session does not list it, also when it
|
|
239
|
+
* ended while Claude Code tried to stop it.
|
|
240
|
+
*/
|
|
241
|
+
cancelItem(sessionId: string, target: {
|
|
242
|
+
terminalId: string;
|
|
243
|
+
} | {
|
|
244
|
+
toolCallId: string;
|
|
245
|
+
}): Promise<boolean>;
|
|
246
|
+
/**
|
|
247
|
+
* The current state of the session's work, for a resume of the active
|
|
248
|
+
* session: each subagent that a session lists, or that works in its
|
|
249
|
+
* foreground, with its labels and state (also on its own stream), and the
|
|
250
|
+
* current update of each item that a session lists. Every item comes
|
|
251
|
+
* before the state that lists it, and a child's announcement before any
|
|
252
|
+
* update of its session, so a child whose list names items is announced
|
|
253
|
+
* first and gets its state after them.
|
|
254
|
+
*/
|
|
255
|
+
currentState(): v2.UpdateSessionNotification[];
|
|
256
|
+
/** The tool calls of `sessionId` whose tasks go on in the background: a cancel leaves them. */
|
|
257
|
+
backgroundCalls(sessionId: string): Set<string>;
|
|
258
|
+
/**
|
|
259
|
+
* Claude Code's query ended: its tasks ended with its process. Terminals
|
|
260
|
+
* exit and background tool calls are cancelled; a child that worked ends
|
|
261
|
+
* `error`, as the root's work does.
|
|
262
|
+
*/
|
|
263
|
+
queryEnded(error: {
|
|
264
|
+
code: number;
|
|
265
|
+
message: string;
|
|
266
|
+
} | undefined): void;
|
|
267
|
+
/**
|
|
268
|
+
* Claude Code mounted a fresh conversation (`conversation_reset`). Its
|
|
269
|
+
* subagents end, deeper ones first, as on v1 (`finishAll`): each
|
|
270
|
+
* child that works goes `idle` with no stop reason, since nothing says how
|
|
271
|
+
* its run ended, after its unfinished tool calls end `failed`. Then every
|
|
272
|
+
* child is forgotten: a later event of one
|
|
273
|
+
* changes nothing, and a child not announced yet stays unexposed. Claude
|
|
274
|
+
* Code's tasks (the live subagents, background commands and other tasks)
|
|
275
|
+
* stay as its task events report them.
|
|
276
|
+
*/
|
|
277
|
+
conversationReset(): void;
|
|
278
|
+
/**
|
|
279
|
+
* Publishes the `background` list of each session that changed, deeper
|
|
280
|
+
* sessions first, so a child's own list is current before its parent's
|
|
281
|
+
* list names or drops it.
|
|
282
|
+
*/
|
|
283
|
+
publish(): void;
|
|
284
|
+
private taskStarted;
|
|
285
|
+
private taskUpdated;
|
|
286
|
+
private taskNotification;
|
|
287
|
+
/**
|
|
288
|
+
* A task's progress report. A workflow's goes on its tool call, as its
|
|
289
|
+
* title and body (`workflowCard`), without changing its status. A report
|
|
290
|
+
* that comes before the call returns waits for the result (see
|
|
291
|
+
* {@link toolResults}), and a report without `workflow_progress` keeps the
|
|
292
|
+
* last phase and agent list. A report that changes nothing on the card
|
|
293
|
+
* sends nothing.
|
|
294
|
+
*/
|
|
295
|
+
private taskProgress;
|
|
296
|
+
/**
|
|
297
|
+
* The task `taskId` ended. Claude Code can report one end twice (a
|
|
298
|
+
* terminal `task_updated` and a `task_notification`), so a second is a
|
|
299
|
+
* no-op, unless it gives the error text of a failure that the first lacked.
|
|
300
|
+
*/
|
|
301
|
+
private taskEnded;
|
|
302
|
+
/**
|
|
303
|
+
* Claude Code's live background task set changed. Terminals and tool calls
|
|
304
|
+
* whose tasks it no longer holds ended, without saying how.
|
|
305
|
+
*/
|
|
306
|
+
private levelChanged;
|
|
307
|
+
/** A new child, not announced, which runs; the messages of its launch that came wait for it. */
|
|
308
|
+
private newChild;
|
|
309
|
+
/**
|
|
310
|
+
* Restores the agent `agentId`, which the SendMessage call `toolUseId`
|
|
311
|
+
* resumed with `prompt`, as the v1 core does (`NativeSubagentRuntime.restore`):
|
|
312
|
+
* the process does not know it, because it ran before the session was
|
|
313
|
+
* resumed. The session's subagent history (`subagentLineage`) gives the
|
|
314
|
+
* call that launched it and its ancestors. Claude Code sends the resumed
|
|
315
|
+
* run's messages under that launch call's id. Before the agent's traffic,
|
|
316
|
+
* the RFD requires its ancestors, parent before child, so each one that is
|
|
317
|
+
* not announced is, with no state, since nothing says that it runs. Then
|
|
318
|
+
* the agent, running, and the SendMessage call's message to it. The RFD
|
|
319
|
+
* forbids guessing a parent, so an agent that the history cannot place
|
|
320
|
+
* stays unexposed, its traffic the root's.
|
|
321
|
+
*/
|
|
322
|
+
private restore;
|
|
323
|
+
/**
|
|
324
|
+
* A message of a subagent, by its `parent_tool_use_id`: it goes to the
|
|
325
|
+
* child's stream, or waits for the child's announcement. A message of an
|
|
326
|
+
* agent that no known call launched is the root's.
|
|
327
|
+
*/
|
|
328
|
+
private childMessage;
|
|
329
|
+
/** Sends a message of the announced `child` to its stream. */
|
|
330
|
+
private deliver;
|
|
331
|
+
/**
|
|
332
|
+
* Announces `child` on `parentSessionId`, running, with its parent's
|
|
333
|
+
* labels for it, then sends its prompt as the parent's message to it, and
|
|
334
|
+
* the messages that came before.
|
|
335
|
+
*/
|
|
336
|
+
private announce;
|
|
337
|
+
/**
|
|
338
|
+
* Makes `child` a session of `parentSessionId`, with its parent's labels
|
|
339
|
+
* for it, its `cwd` and its output. Returns the identity of its launch.
|
|
340
|
+
*/
|
|
341
|
+
private open;
|
|
342
|
+
/**
|
|
343
|
+
* A message delegated to `child`, with the id of the call that sent it. A
|
|
344
|
+
* launch's prompt replaces its call (`linked`): it goes out as the
|
|
345
|
+
* sender's outgoing message and the child's incoming one.
|
|
346
|
+
*/
|
|
347
|
+
private sendPrompt;
|
|
348
|
+
/**
|
|
349
|
+
* Rewrites an update of `output`, the output of the root or of `child`: an
|
|
350
|
+
* update of an Agent or Task call goes out as {@link launchUpdate} says,
|
|
351
|
+
* and Claude Code's late result of a call that the child's stop ended
|
|
352
|
+
* goes nowhere.
|
|
353
|
+
*/
|
|
354
|
+
private route;
|
|
355
|
+
/**
|
|
356
|
+
* An update of an Agent or Task call. Its child, if it started, is
|
|
357
|
+
* announced at the call's first update. The call goes out only once it
|
|
358
|
+
* ends without an announced child, except a background launch that
|
|
359
|
+
* completed: its child starts after it. A foreground child's answer, the
|
|
360
|
+
* completed result, is its reply to the parent.
|
|
361
|
+
*/
|
|
362
|
+
private launchUpdate;
|
|
363
|
+
/**
|
|
364
|
+
* An update of a SendMessage call, which its message replaces once it
|
|
365
|
+
* reaches an announced child (see {@link startRun}): the sender's outgoing
|
|
366
|
+
* view and the child's incoming one. Claude Code reports that delivery
|
|
367
|
+
* before the call's final update. A call whose message reached no announced
|
|
368
|
+
* child, such as one to the parent, is shown after all, with its final
|
|
369
|
+
* status. Undefined for any other update.
|
|
370
|
+
*/
|
|
371
|
+
private sendMessageUpdate;
|
|
372
|
+
/**
|
|
373
|
+
* An update of a SubagentHandback call of the announced `child`, which its
|
|
374
|
+
* report replaces: the child's message to its parent, the outgoing view on
|
|
375
|
+
* the child and the incoming one on the parent. Its run's result is then no
|
|
376
|
+
* reply. A call that failed delivered nothing, so the child is shown the
|
|
377
|
+
* call after all. Undefined for any other update.
|
|
378
|
+
*/
|
|
379
|
+
private handbackUpdate;
|
|
380
|
+
/**
|
|
381
|
+
* A SendMessage result that reports the agent it resumed (`resumedAgentId`):
|
|
382
|
+
* the call is the child's delegation, which it takes unless the run of that
|
|
383
|
+
* call ended already, as on v1 (`sendMessageResumed`). Claude Code
|
|
384
|
+
* can resume a child without a new `task_started`.
|
|
385
|
+
*/
|
|
386
|
+
private sendMessageResumed;
|
|
387
|
+
/** A child that ended before its announcement stays unexposed, and is forgotten. */
|
|
388
|
+
private withdrawChild;
|
|
389
|
+
/** A new run of the announced `child`, with the prompt that the call `toolUseId` sent it. */
|
|
390
|
+
private startRun;
|
|
391
|
+
/**
|
|
392
|
+
* A run of `child` ended: its unfinished tool calls get their final status,
|
|
393
|
+
* except its background work, then its idle goes out, as v2 asks. A stopped
|
|
394
|
+
* run's end `cancelled`, and a failed run's or an unexplained end's
|
|
395
|
+
* (`undefined`, an idle with no stop reason) `failed`. At a completed end, a
|
|
396
|
+
* tool call that Claude dropped before it ran ends `cancelled`, as on the
|
|
397
|
+
* root (see `SessionOutput.closeUnfinished`).
|
|
398
|
+
*/
|
|
399
|
+
private endRun;
|
|
400
|
+
/** The tool calls and terminals of `sessionId` that go on in the background. */
|
|
401
|
+
backgroundWork(sessionId: string): Set<string>;
|
|
402
|
+
/**
|
|
403
|
+
* Rewrites a replayed update of `sessionId`'s background work as the live
|
|
404
|
+
* tool result was (see `toolResult`): a running command's result keeps its
|
|
405
|
+
* terminal running, and a running task's tool call stays `in_progress`.
|
|
406
|
+
*/
|
|
407
|
+
replayedBackground(sessionId: string): (notification: AcpSessionNotification) => AcpSessionNotification;
|
|
408
|
+
private childState;
|
|
409
|
+
/** Sends the child's state on its stream and in its parent's mirror, when it changed. */
|
|
410
|
+
private reportChild;
|
|
411
|
+
private sendChildState;
|
|
412
|
+
/**
|
|
413
|
+
* Runs `send` as an open request of the agent `agentId` (see
|
|
414
|
+
* {@link RequestTarget.openRequest}). While it is open, `announced`, the
|
|
415
|
+
* child session it goes to, is `requires_action`, and the work that waits
|
|
416
|
+
* on the agent is too. After the root closed, or while a cancel stops the
|
|
417
|
+
* agent's run, `send` runs with an aborted signal and the request does not
|
|
418
|
+
* count as open.
|
|
419
|
+
*/
|
|
420
|
+
private agentRequest;
|
|
421
|
+
/** Set by the session: sends a permission request to the client. */
|
|
422
|
+
hostRequest: (request: v2.RequestPermissionRequest, signal: AbortSignal) => Promise<v2.RequestPermissionResponse>;
|
|
423
|
+
/**
|
|
424
|
+
* While the root's cancel is in effect, the agent `agentId`, when the root
|
|
425
|
+
* waits on it, is stopped with the root's work (see {@link cancelForeground}).
|
|
426
|
+
*/
|
|
427
|
+
private cancelIfForeground;
|
|
428
|
+
/** Withdraws the open requests of the agent `agentId`, whose run a cancel stops. */
|
|
429
|
+
private withdraw;
|
|
430
|
+
/**
|
|
431
|
+
* Whether the work of `sessionId` (the root when undefined) waits on the
|
|
432
|
+
* agent `agentId`: the agent is that session's, or each agent from it up to
|
|
433
|
+
* that session runs in the foreground of its parent.
|
|
434
|
+
*/
|
|
435
|
+
private waitsOn;
|
|
436
|
+
/**
|
|
437
|
+
* Reports the model of a child response as the entry of the root's `model`
|
|
438
|
+
* option that matches it, else as the id, in the child's configuration.
|
|
439
|
+
* The child gets no model before its first response, and the client gets
|
|
440
|
+
* its configuration again only when it changes.
|
|
441
|
+
*/
|
|
442
|
+
private reportModel;
|
|
443
|
+
/** Sends the configuration of the announced `child`, when the client does not hold it. */
|
|
444
|
+
private publishConfiguration;
|
|
445
|
+
private reportCwd;
|
|
446
|
+
/** The working directory of the root or of an announced child. */
|
|
447
|
+
private cwdOf;
|
|
448
|
+
private outputOf;
|
|
449
|
+
/**
|
|
450
|
+
* The announcement of `child`, with its `cancel` capability unless
|
|
451
|
+
* `cancellable` is false: a restored ancestor, which nothing says runs.
|
|
452
|
+
*/
|
|
453
|
+
private announcement;
|
|
454
|
+
/** The announced children, each after its parent. */
|
|
455
|
+
private parentsFirst;
|
|
456
|
+
/**
|
|
457
|
+
* The `background` list of each session, from Claude Code's live background
|
|
458
|
+
* tasks: its background terminals, tool calls and other tasks, and its
|
|
459
|
+
* children that work in the background or have background work of their
|
|
460
|
+
* own. Claude Code marks its housekeeping `ambient`, which is left out,
|
|
461
|
+
* except a task that a tool call started. A task that a tool call started
|
|
462
|
+
* is part of that call until the call returns, and is not listed.
|
|
463
|
+
*/
|
|
464
|
+
private lists;
|
|
465
|
+
/**
|
|
466
|
+
* Starts a tool call for each live task that no terminal or tool call
|
|
467
|
+
* stands for yet: v2 lists background work only by an entity the client
|
|
468
|
+
* knows. Such a task is one that no tool call started, such as one a hook
|
|
469
|
+
* started, or one whose tool call returned, with its final status, before
|
|
470
|
+
* the task started. The call (`task_<taskId>`) has the task's description
|
|
471
|
+
* as its title, is `in_progress`, and ends with the task. A task of an
|
|
472
|
+
* announced subagent gets its call on the subagent's session. Ambient
|
|
473
|
+
* tasks are housekeeping and get no call. {@link publish} calls it before
|
|
474
|
+
* each list it publishes, so the call comes before the first list that
|
|
475
|
+
* names it, as v2 requires.
|
|
476
|
+
*/
|
|
477
|
+
private adoptTasks;
|
|
478
|
+
/** The task of the terminal or tool call `target` that `sessionId` lists. */
|
|
479
|
+
private listedTask;
|
|
480
|
+
private followOutput;
|
|
481
|
+
private exitTerminal;
|
|
482
|
+
private endToolCall;
|
|
483
|
+
private sendAll;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Whether two paths name one directory, also through a symlink: a hook's
|
|
487
|
+
* `cwd` is the real path, such as `/private/tmp/project` for `/tmp/project`.
|
|
488
|
+
*/
|
|
489
|
+
export declare function sameDirectory(left: string, right: string): boolean;
|
|
490
|
+
/** The error of a request on a child session: the client can only watch a child. */
|
|
491
|
+
export declare function restrictedChild(sessionId: string, method: string): RequestError;
|
|
492
|
+
//# sourceMappingURL=tasks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tasks.d.ts","sourceRoot":"","sources":["../../src/v2/tasks.ts"],"names":[],"mappings":"AA+CA,OAAO,EAAE,YAAY,EAAE,KAAK,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,KAAK,KAAK,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,KAAK,EACV,SAAS,EACT,UAAU,EACV,cAAc,EACd,cAAc,EACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAGlE,OAAO,EAgBL,KAAK,cAAc,EACpB,MAAM,wBAAwB,CAAC;AAKhC,OAAO,KAAK,EAAkB,YAAY,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAEjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAEtD,iDAAiD;AACjD,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAC;IACxC,QAAQ,CAAC,UAAU,EAAE,YAAY,CAAC;IAClC;;;OAGG;IACH,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC,kEAAkE;IAClE,IAAI,CAAC,YAAY,EAAE,EAAE,CAAC,yBAAyB,GAAG,IAAI,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