@agentclientprotocol/claude-agent-acp 0.114.1-preview.4 → 0.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/session-cursors.d.ts +3 -1
- package/dist/session-cursors.d.ts.map +1 -1
- package/dist/session-cursors.js +4 -2
- package/dist/session-read.d.ts +79 -4
- package/dist/session-read.d.ts.map +1 -1
- package/dist/session-read.js +447 -62
- package/dist/subagent-history.d.ts +8 -0
- package/dist/subagent-history.d.ts.map +1 -1
- package/dist/subagent-history.js +11 -6
- package/dist/subagent-replay.d.ts +32 -4
- package/dist/subagent-replay.d.ts.map +1 -1
- package/dist/subagent-replay.js +65 -4
- package/dist/subagent-status.d.ts +132 -0
- package/dist/subagent-status.d.ts.map +1 -0
- package/dist/subagent-status.js +482 -0
- package/dist/v1/acp-agent.d.ts.map +1 -1
- package/dist/v1/acp-agent.js +48 -9
- package/dist/v1/session-read.d.ts +8 -0
- package/dist/v1/session-read.d.ts.map +1 -1
- package/dist/v1/session-read.js +14 -4
- package/dist/v2/agent.d.ts.map +1 -1
- package/dist/v2/agent.js +4 -3
- package/dist/v2/session-read.d.ts +37 -3
- package/dist/v2/session-read.d.ts.map +1 -1
- package/dist/v2/session-read.js +17 -4
- package/dist/v2/subagent-replay.d.ts +22 -1
- package/dist/v2/subagent-replay.d.ts.map +1 -1
- package/dist/v2/subagent-replay.js +53 -10
- package/package.json +1 -1
|
@@ -47,6 +47,8 @@ export declare function subagentHistory(sessionId: string, options?: {
|
|
|
47
47
|
strict?: boolean;
|
|
48
48
|
transcript?: string;
|
|
49
49
|
}): Promise<SubagentHistory>;
|
|
50
|
+
/** The transcript of the child `agentId` in the subagent folder `directory`. */
|
|
51
|
+
export declare function subagentTranscript(directory: string, agentId: string): string;
|
|
50
52
|
/**
|
|
51
53
|
* The agent that the Agent or Task call `launchId` launched, from the subagent
|
|
52
54
|
* history of the session `sessionId`.
|
|
@@ -77,6 +79,12 @@ export declare function subagentLaunchIds(content: unknown): string[];
|
|
|
77
79
|
export declare function readSubagentMessages(sessionId: string, agentId: string, history: SubagentHistory, logger: {
|
|
78
80
|
error(...args: unknown[]): void;
|
|
79
81
|
}): Promise<SessionMessage[]>;
|
|
82
|
+
/** Whether a filesystem error means a file does not exist. */
|
|
83
|
+
export declare function isMissing(error: unknown): boolean;
|
|
84
|
+
/** Retain the failed file for the caller's retryable error. */
|
|
85
|
+
export declare function withPath(error: unknown, file: string): Error & {
|
|
86
|
+
path: string;
|
|
87
|
+
};
|
|
80
88
|
/** Read a child from the resolved project without silently omitting read failures. */
|
|
81
89
|
export declare function readSubagentMessagesOrFail(sessionId: string, agentId: string, history: SubagentHistory, launchId: string): Promise<SessionMessage[]>;
|
|
82
90
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subagent-history.d.ts","sourceRoot":"","sources":["../src/subagent-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EAEpB,MAAM,gCAAgC,CAAC;AAKxC,OAAO,EAA+B,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAI7F,0DAA0D;AAC1D,MAAM,WAAW,cAAc;IAC7B,oDAAoD;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uDAAuD;IACvD,UAAU,EAAE,OAAO,CAAC;IACpB,mCAAmC;IACnC,aAAa,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,uDAAuD;AACvD,MAAM,WAAW,eAAe;IAC9B,qEAAqE;IACrE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACpC;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,wBAAsB,eAAe,CACnC,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAO,GACtD,OAAO,CAAC,eAAe,CAAC,
|
|
1
|
+
{"version":3,"file":"subagent-history.d.ts","sourceRoot":"","sources":["../src/subagent-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EAEpB,MAAM,gCAAgC,CAAC;AAKxC,OAAO,EAA+B,KAAK,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAI7F,0DAA0D;AAC1D,MAAM,WAAW,cAAc;IAC7B,oDAAoD;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uDAAuD;IACvD,UAAU,EAAE,OAAO,CAAC;IACpB,mCAAmC;IACnC,aAAa,EAAE,OAAO,CAAC;IACvB;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,uDAAuD;AACvD,MAAM,WAAW,eAAe;IAC9B,qEAAqE;IACrE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACpC;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;GASG;AACH,wBAAsB,eAAe,CACnC,SAAS,EAAE,MAAM,EACjB,OAAO,GAAE;IAAE,MAAM,CAAC,EAAE,O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,EAAE,MAAM,GACf,OAAO,CAAC,cAAc,EAAE,CAAC,CAmB3B;AAyBD;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,cAAc,EAAE,GAAG,cAAc,EAAE,CAkB5E"}
|
package/dist/subagent-history.js
CHANGED
|
@@ -45,7 +45,8 @@ export async function subagentHistory(sessionId, options = {}) {
|
|
|
45
45
|
.map(text)
|
|
46
46
|
.find((value) => value && path.isAbsolute(value));
|
|
47
47
|
const cwd = placement
|
|
48
|
-
? ((await recordedCwd(
|
|
48
|
+
? ((await recordedCwd(subagentTranscript(directory, match[1]), options.strict)) ??
|
|
49
|
+
placement)
|
|
49
50
|
: undefined;
|
|
50
51
|
agents.set(meta.toolUseId, {
|
|
51
52
|
agentId: match[1],
|
|
@@ -106,6 +107,10 @@ async function recordedCwd(file, strict = false) {
|
|
|
106
107
|
function subagentsDirectory(transcript, sessionId) {
|
|
107
108
|
return path.join(path.dirname(transcript), sessionId, "subagents");
|
|
108
109
|
}
|
|
110
|
+
/** The transcript of the child `agentId` in the subagent folder `directory`. */
|
|
111
|
+
export function subagentTranscript(directory, agentId) {
|
|
112
|
+
return path.join(directory, `agent-${agentId}.jsonl`);
|
|
113
|
+
}
|
|
109
114
|
/**
|
|
110
115
|
* The agent that the Agent or Task call `launchId` launched, from the subagent
|
|
111
116
|
* history of the session `sessionId`.
|
|
@@ -146,7 +151,7 @@ export async function subagentLineage(sessionId, agentId, logger) {
|
|
|
146
151
|
for (const candidate of launchOf.keys()) {
|
|
147
152
|
let launches = agentLaunches.get(candidate);
|
|
148
153
|
if (!launches) {
|
|
149
|
-
launches = await readLaunchIdsFromTranscript(
|
|
154
|
+
launches = await readLaunchIdsFromTranscript(subagentTranscript(subagentsDirectory(transcript, sessionId), candidate), candidate, logger);
|
|
150
155
|
agentLaunches.set(candidate, launches);
|
|
151
156
|
}
|
|
152
157
|
if (launches.has(launchId))
|
|
@@ -281,7 +286,7 @@ async function withSubagentBranches(sessionId, agentId, history, messages) {
|
|
|
281
286
|
return messages;
|
|
282
287
|
let entries;
|
|
283
288
|
try {
|
|
284
|
-
entries = await readTranscriptEntries(
|
|
289
|
+
entries = await readTranscriptEntries(subagentTranscript(history.directory, agentId));
|
|
285
290
|
}
|
|
286
291
|
catch {
|
|
287
292
|
return messages;
|
|
@@ -297,11 +302,11 @@ async function withSubagentBranches(sessionId, agentId, history, messages) {
|
|
|
297
302
|
return withReplyBranches(entries, messages, read);
|
|
298
303
|
}
|
|
299
304
|
/** Whether a filesystem error means a file does not exist. */
|
|
300
|
-
function isMissing(error) {
|
|
305
|
+
export function isMissing(error) {
|
|
301
306
|
return error?.code === "ENOENT";
|
|
302
307
|
}
|
|
303
308
|
/** Retain the failed file for the caller's retryable error. */
|
|
304
|
-
function withPath(error, file) {
|
|
309
|
+
export function withPath(error, file) {
|
|
305
310
|
if (error instanceof Error && typeof error.path === "string") {
|
|
306
311
|
return error;
|
|
307
312
|
}
|
|
@@ -311,7 +316,7 @@ function withPath(error, file) {
|
|
|
311
316
|
export async function readSubagentMessagesOrFail(sessionId, agentId, history, launchId) {
|
|
312
317
|
if (!history.directory)
|
|
313
318
|
throw new Error("Subagent directory was not resolved");
|
|
314
|
-
const file =
|
|
319
|
+
const file = subagentTranscript(history.directory, agentId);
|
|
315
320
|
try {
|
|
316
321
|
const entries = await readTranscriptEntries(file);
|
|
317
322
|
const messages = await readSubagentChain(sessionId, agentId, entries);
|
|
@@ -40,7 +40,8 @@ import type { SessionConfigOption } from "@agentclientprotocol/sdk/unstable";
|
|
|
40
40
|
import type { SessionMessage } from "@anthropic-ai/claude-agent-sdk";
|
|
41
41
|
import type { AcpSessionNotification, SubagentState } from "./acp-subagents.js";
|
|
42
42
|
import { type SubagentModels, type WorkState } from "./native-subagents.js";
|
|
43
|
-
import type
|
|
43
|
+
import { type SubagentHistory, type SubagentRecord } from "./subagent-history.js";
|
|
44
|
+
import type { NestedLaunches, SubagentStatus, SubagentStatusEntry } from "./subagent-status.js";
|
|
44
45
|
type Publish = (notification: AcpSessionNotification) => Promise<void>;
|
|
45
46
|
/** A child that the replay shows: its launch has metadata. */
|
|
46
47
|
export type ReplayChild = {
|
|
@@ -111,6 +112,12 @@ export declare class ReplayTranscript<Child extends ReplayChild = ReplayChild> {
|
|
|
111
112
|
* `messages`, the transcript of the session `ownerSessionId`.
|
|
112
113
|
*/
|
|
113
114
|
scan(messages: readonly SessionMessage[], ownerSessionId: string): void;
|
|
115
|
+
/**
|
|
116
|
+
* A status read: registers the launches that the child session `owner`
|
|
117
|
+
* made (see `SubagentStatus.launches`), with the states of their task
|
|
118
|
+
* notifications. Returns the children that they launched, in launch order.
|
|
119
|
+
*/
|
|
120
|
+
scanLaunches(launches: NestedLaunches, owner: string): Child[];
|
|
114
121
|
/**
|
|
115
122
|
* The report of a completed hand-back, once. `null` hides its other updates
|
|
116
123
|
* and unfinished calls. `undefined` leaves failed calls and other updates visible.
|
|
@@ -163,6 +170,13 @@ export declare class RfdSubagentReplay {
|
|
|
163
170
|
* a child's reported `cwd`, else its parent's, up to the root's.
|
|
164
171
|
*/
|
|
165
172
|
private effectiveCwd;
|
|
173
|
+
/**
|
|
174
|
+
* A status read: announces `child` with the prompt of its launch, then the
|
|
175
|
+
* children that it launched, from `status` without its transcript.
|
|
176
|
+
*/
|
|
177
|
+
announceStatus(child: ReplayChild, status: SubagentStatus): Promise<void>;
|
|
178
|
+
/** The status of each announced child (see `SubagentStatus.transcriptEntries`). */
|
|
179
|
+
statusEntries(status: SubagentStatus, rootSessionId: string): SubagentStatusEntry[];
|
|
166
180
|
/** Takes the model of a replayed response of the child `owner` (see {@link trackResponseModel}). */
|
|
167
181
|
responseModel(owner: ReplayChild, model: string | undefined): void;
|
|
168
182
|
/**
|
|
@@ -177,6 +191,13 @@ export declare class RfdSubagentReplay {
|
|
|
177
191
|
* show. Tool results stay.
|
|
178
192
|
*/
|
|
179
193
|
childContent(child: ReplayChild, message: SessionMessage, content: unknown): Promise<unknown>;
|
|
194
|
+
/**
|
|
195
|
+
* Starts the replay of `child`'s history. When its transcript does not
|
|
196
|
+
* start with the prompt (see {@link startsWithPrompt}), the prompt of the
|
|
197
|
+
* launch goes first, so that new records come after it on the child's
|
|
198
|
+
* stream and a cursor of that stream can continue.
|
|
199
|
+
*/
|
|
200
|
+
childReplaying(child: ReplayChild, messages: readonly SessionMessage[]): Promise<void>;
|
|
180
201
|
/**
|
|
181
202
|
* Ends the replay of `child`'s history. `messages` is its transcript: when
|
|
182
203
|
* it is empty, the replay has only the child's association, and the prompt
|
|
@@ -199,10 +220,10 @@ export declare class RfdSubagentReplay {
|
|
|
199
220
|
*/
|
|
200
221
|
taskNotification(taskId: string, status: string): boolean;
|
|
201
222
|
/**
|
|
202
|
-
* Sends the end of every announced child (see `replayEndState`)
|
|
203
|
-
* subagent history is missing.
|
|
223
|
+
* Sends the end of every announced child (see `replayEndState`) unless
|
|
224
|
+
* `endStates` is false, and a notice when subagent history is missing.
|
|
204
225
|
*/
|
|
205
|
-
finish(supportsNotices: boolean, rootSessionId: string): Promise<void>;
|
|
226
|
+
finish(supportsNotices: boolean, rootSessionId: string, endStates?: boolean): Promise<void>;
|
|
206
227
|
/** Whether the replay announced the child session `sessionId`. */
|
|
207
228
|
announced(sessionId: string): boolean;
|
|
208
229
|
/**
|
|
@@ -276,6 +297,13 @@ export declare function replayEndState(child: ReplayChild): WorkState;
|
|
|
276
297
|
export declare function textOf(content: unknown): string;
|
|
277
298
|
/** Whether `dir` is an existing directory. */
|
|
278
299
|
export declare function isDirectory(dir: string): boolean;
|
|
300
|
+
/**
|
|
301
|
+
* Whether a child's transcript `messages` starts with a user message with
|
|
302
|
+
* text, which the replay sends as the prompt. A transcript can start without
|
|
303
|
+
* it: the SDK can start a child's history after the prompt, such as after a
|
|
304
|
+
* `system` record that the next record names as its parent.
|
|
305
|
+
*/
|
|
306
|
+
export declare function startsWithPrompt(messages: readonly SessionMessage[]): boolean;
|
|
279
307
|
/** A message that a SendMessage call delivered to the child. */
|
|
280
308
|
export declare function isDelivery(message: SessionMessage): boolean;
|
|
281
309
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subagent-replay.d.ts","sourceRoot":"","sources":["../src/subagent-replay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,KAAK,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAYL,KAAK,cAAc,EAGnB,KAAK,SAAS,EACf,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"subagent-replay.d.ts","sourceRoot":"","sources":["../src/subagent-replay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAC7E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,KAAK,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAYL,KAAK,cAAc,EAGnB,KAAK,SAAS,EACf,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhG,KAAK,OAAO,GAAG,CAAC,YAAY,EAAE,sBAAsB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEvE,8DAA8D;AAC9D,MAAM,MAAM,WAAW,GAAG;IACxB,mDAAmD;IACnD,QA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AAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAAE,EACtE,KAAK,EAAE,SAAS,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAO7E;AAED,iGAAiG;AACjG,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,sBAAsB,CAAC,QAAQ,CAAC,EAAE;IAAE,aAAa,EAAE,QAAQ,CAAA;CAAE,CAAC,CASxE"}
|
package/dist/subagent-replay.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { statSync } from "node:fs";
|
|
2
2
|
import { childModelOption, HANDBACK_TOOL, handbackMessage, isNativeSubagentControlTool, launchReply, linkedSessionMessages, nativeSubagentState, responseModelEntry, rfdEndState, rfdLabels, sameDirectory, targetAgentId, withSessionReference, } from "./native-subagents.js";
|
|
3
3
|
import { noticeUpdate } from "./session-notices.js";
|
|
4
|
+
import { subagentLaunchIds, } from "./subagent-history.js";
|
|
4
5
|
/**
|
|
5
6
|
* What the v1 and v2 replays read from the transcripts before they send anything: the
|
|
6
7
|
* children that launches with metadata started, the launches without metadata
|
|
@@ -87,6 +88,22 @@ export class ReplayTranscript {
|
|
|
87
88
|
}
|
|
88
89
|
}
|
|
89
90
|
}
|
|
91
|
+
/**
|
|
92
|
+
* A status read: registers the launches that the child session `owner`
|
|
93
|
+
* made (see `SubagentStatus.launches`), with the states of their task
|
|
94
|
+
* notifications. Returns the children that they launched, in launch order.
|
|
95
|
+
*/
|
|
96
|
+
scanLaunches(launches, owner) {
|
|
97
|
+
this.scan(launches.messages, owner);
|
|
98
|
+
for (const notification of launches.notifications) {
|
|
99
|
+
const child = this.byAgentId.get(notification.task_id);
|
|
100
|
+
if (child)
|
|
101
|
+
child.notified = nativeSubagentState(notification.status) ?? child.notified;
|
|
102
|
+
}
|
|
103
|
+
return launches.messages
|
|
104
|
+
.flatMap((message) => subagentLaunchIds(message.message?.content))
|
|
105
|
+
.flatMap((launchId) => this.children.get(launchId) ?? []);
|
|
106
|
+
}
|
|
90
107
|
/**
|
|
91
108
|
* The report of a completed hand-back, once. `null` hides its other updates
|
|
92
109
|
* and unfinished calls. `undefined` leaves failed calls and other updates visible.
|
|
@@ -206,6 +223,25 @@ export class RfdSubagentReplay {
|
|
|
206
223
|
}
|
|
207
224
|
return this.rootCwd;
|
|
208
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* A status read: announces `child` with the prompt of its launch, then the
|
|
228
|
+
* children that it launched, from `status` without its transcript.
|
|
229
|
+
*/
|
|
230
|
+
async announceStatus(child, status) {
|
|
231
|
+
await this.announce(child);
|
|
232
|
+
if (!child.promptSent && typeof child.input.prompt === "string") {
|
|
233
|
+
await this.sendPrompt(child, child.input.prompt);
|
|
234
|
+
}
|
|
235
|
+
const launches = status.launches(child.record.agentId, child.launchId);
|
|
236
|
+
for (const nested of this.transcript.scanLaunches(launches, child.sessionId)) {
|
|
237
|
+
if (!nested.announced)
|
|
238
|
+
await this.announceStatus(nested, status);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
/** The status of each announced child (see `SubagentStatus.transcriptEntries`). */
|
|
242
|
+
statusEntries(status, rootSessionId) {
|
|
243
|
+
return status.transcriptEntries(this.transcript.children.values(), rootSessionId);
|
|
244
|
+
}
|
|
209
245
|
/** Takes the model of a replayed response of the child `owner` (see {@link trackResponseModel}). */
|
|
210
246
|
responseModel(owner, model) {
|
|
211
247
|
trackResponseModel(owner, model);
|
|
@@ -234,6 +270,19 @@ export class RfdSubagentReplay {
|
|
|
234
270
|
const rest = content.filter((block) => !(typeof block === "object" && block !== null && block.type === "text"));
|
|
235
271
|
return rest.length > 0 ? rest : null;
|
|
236
272
|
}
|
|
273
|
+
/**
|
|
274
|
+
* Starts the replay of `child`'s history. When its transcript does not
|
|
275
|
+
* start with the prompt (see {@link startsWithPrompt}), the prompt of the
|
|
276
|
+
* launch goes first, so that new records come after it on the child's
|
|
277
|
+
* stream and a cursor of that stream can continue.
|
|
278
|
+
*/
|
|
279
|
+
async childReplaying(child, messages) {
|
|
280
|
+
if (!child.promptSent &&
|
|
281
|
+
typeof child.input.prompt === "string" &&
|
|
282
|
+
!startsWithPrompt(messages)) {
|
|
283
|
+
await this.sendPrompt(child, child.input.prompt);
|
|
284
|
+
}
|
|
285
|
+
}
|
|
237
286
|
/**
|
|
238
287
|
* Ends the replay of `child`'s history. `messages` is its transcript: when
|
|
239
288
|
* it is empty, the replay has only the child's association, and the prompt
|
|
@@ -308,11 +357,11 @@ export class RfdSubagentReplay {
|
|
|
308
357
|
return true;
|
|
309
358
|
}
|
|
310
359
|
/**
|
|
311
|
-
* Sends the end of every announced child (see `replayEndState`)
|
|
312
|
-
* subagent history is missing.
|
|
360
|
+
* Sends the end of every announced child (see `replayEndState`) unless
|
|
361
|
+
* `endStates` is false, and a notice when subagent history is missing.
|
|
313
362
|
*/
|
|
314
|
-
async finish(supportsNotices, rootSessionId) {
|
|
315
|
-
for (const child of [...this.transcript.children.values()].reverse()) {
|
|
363
|
+
async finish(supportsNotices, rootSessionId, endStates = true) {
|
|
364
|
+
for (const child of endStates ? [...this.transcript.children.values()].reverse() : []) {
|
|
316
365
|
if (!child.announced)
|
|
317
366
|
continue;
|
|
318
367
|
await this.publish({
|
|
@@ -522,6 +571,18 @@ export function isDirectory(dir) {
|
|
|
522
571
|
return false;
|
|
523
572
|
}
|
|
524
573
|
}
|
|
574
|
+
/**
|
|
575
|
+
* Whether a child's transcript `messages` starts with a user message with
|
|
576
|
+
* text, which the replay sends as the prompt. A transcript can start without
|
|
577
|
+
* it: the SDK can start a child's history after the prompt, such as after a
|
|
578
|
+
* `system` record that the next record names as its parent.
|
|
579
|
+
*/
|
|
580
|
+
export function startsWithPrompt(messages) {
|
|
581
|
+
const [first] = messages;
|
|
582
|
+
return (first?.type === "user" &&
|
|
583
|
+
!isDelivery(first) &&
|
|
584
|
+
textOf(first.message?.content).trim() !== "");
|
|
585
|
+
}
|
|
525
586
|
/** A message that a SendMessage call delivered to the child. */
|
|
526
587
|
export function isDelivery(message) {
|
|
527
588
|
return message.origin?.kind === "coordinator";
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The status read of a session's subagents: `_session/read` with
|
|
3
|
+
* `filters.subagents: "status"`.
|
|
4
|
+
*
|
|
5
|
+
* The replay renders the root transcript and announces each child from its
|
|
6
|
+
* metadata file, as the full replay does, but reads no child transcript. Of
|
|
7
|
+
* each child it reads the file status and the end of the transcript, from
|
|
8
|
+
* the last 64 KB (see `readTail`), for the model, the time of the last record
|
|
9
|
+
* and whether the last turn ended.
|
|
10
|
+
* A child whose metadata file names a parent (`parentAgentId`) is announced
|
|
11
|
+
* under that parent. Its launch call, launch result and task notification are
|
|
12
|
+
* in the parent's transcript, which is searched for the lines that name the
|
|
13
|
+
* launch. Only those lines are parsed, and a later read searches only the
|
|
14
|
+
* bytes appended since (see `readLaunches`).
|
|
15
|
+
*
|
|
16
|
+
* The read reports each announced child once more, in one update outside the
|
|
17
|
+
* cursor (see {@link SubagentStatus.frame}). An append to a child that
|
|
18
|
+
* launched no children changes only that update (see
|
|
19
|
+
* {@link SubagentStatus.afterAppend}).
|
|
20
|
+
*/
|
|
21
|
+
import type { SessionMessage } from "@anthropic-ai/claude-agent-sdk";
|
|
22
|
+
import type { SubagentState } from "./acp-subagents.js";
|
|
23
|
+
import { type WorkState } from "./native-subagents.js";
|
|
24
|
+
import { type SubagentHistory } from "./subagent-history.js";
|
|
25
|
+
import { type ReplayChild } from "./subagent-replay.js";
|
|
26
|
+
import { type PersistedTaskNotification } from "./task-notifications.js";
|
|
27
|
+
/** One child of a status read, as the client gets it. */
|
|
28
|
+
export type SubagentStatusEntry = {
|
|
29
|
+
sessionId: string;
|
|
30
|
+
/** The child that launched it; absent for a child of the root. */
|
|
31
|
+
parentSessionId?: string;
|
|
32
|
+
/** A `subagent_state_update` state on v1 AIR clients, a `subagent_update` state otherwise. */
|
|
33
|
+
state: string | WorkState;
|
|
34
|
+
background?: true;
|
|
35
|
+
agentType?: string;
|
|
36
|
+
cwd?: string;
|
|
37
|
+
model?: string;
|
|
38
|
+
updatedAt?: string;
|
|
39
|
+
/** The size of its transcript in bytes; absent when it has none yet. */
|
|
40
|
+
size?: number;
|
|
41
|
+
};
|
|
42
|
+
/** The launches that a child made, from the lines of its transcript that name them. */
|
|
43
|
+
export type NestedLaunches = {
|
|
44
|
+
/**
|
|
45
|
+
* The launch calls and their results, each in a message of its own with
|
|
46
|
+
* only that block. Each has `parent_tool_use_id`: the launch of the child,
|
|
47
|
+
* as the messages of a child transcript have in the full replay.
|
|
48
|
+
*/
|
|
49
|
+
messages: SessionMessage[];
|
|
50
|
+
/** The task notifications of these launches. */
|
|
51
|
+
notifications: PersistedTaskNotification[];
|
|
52
|
+
};
|
|
53
|
+
export declare class SubagentStatus {
|
|
54
|
+
readonly history: SubagentHistory;
|
|
55
|
+
private readonly tails;
|
|
56
|
+
/** The launches of each child that launched children, by its agent id. */
|
|
57
|
+
private readonly nested;
|
|
58
|
+
private reported;
|
|
59
|
+
private readonly sources;
|
|
60
|
+
/** The agent ids that a metadata file names as `parentAgentId`. */
|
|
61
|
+
private readonly launchers;
|
|
62
|
+
private constructor();
|
|
63
|
+
/** Reads the transcript ends of the children of `history`, and the launches of nested children. */
|
|
64
|
+
static read(history: SubagentHistory): Promise<SubagentStatus>;
|
|
65
|
+
/** The launches that the child `agentId`, launched by `launchId`, made (see {@link NestedLaunches}). */
|
|
66
|
+
launches(agentId: string, launchId: string): NestedLaunches;
|
|
67
|
+
/**
|
|
68
|
+
* The entry of a v1 AIR child (`replaySessionHistory` in the v1 agent): its
|
|
69
|
+
* end, as the full replay's `subagent_state_update` names it, or `running`
|
|
70
|
+
* or `idle` while it has none. Unlike that update, a background launch's
|
|
71
|
+
* result is no end: the launch answers at once. A launch without a metadata
|
|
72
|
+
* file and without an end is `disconnected`, as in that update.
|
|
73
|
+
*/
|
|
74
|
+
airEntry(launchId: string, child: {
|
|
75
|
+
sessionId: string;
|
|
76
|
+
reconstructable: boolean;
|
|
77
|
+
terminalState?: SubagentState;
|
|
78
|
+
notifiedState?: SubagentState;
|
|
79
|
+
}, parentSessionId: string | undefined): SubagentStatusEntry;
|
|
80
|
+
/**
|
|
81
|
+
* The entries of the announced `children` on the subagents RFD form (v1)
|
|
82
|
+
* and on v2: the end of each (see `replayEndState`), or `running` or `idle`
|
|
83
|
+
* while it has none.
|
|
84
|
+
*/
|
|
85
|
+
transcriptEntries(children: Iterable<ReplayChild>, rootSessionId: string): SubagentStatusEntry[];
|
|
86
|
+
/** Takes the entries of the replay's announced children. */
|
|
87
|
+
report(entries: SubagentStatusEntry[]): void;
|
|
88
|
+
/**
|
|
89
|
+
* The status after appends to the child transcripts `files`, which it
|
|
90
|
+
* reads the ends of again, with the entries of the same replay. Undefined
|
|
91
|
+
* when one of them is not the transcript of a child of `history`, or is
|
|
92
|
+
* the transcript of a child that launched children: the replay renders
|
|
93
|
+
* the launches in it, so it must render again.
|
|
94
|
+
*
|
|
95
|
+
* The replay depends on the other inputs only: the root transcript, the
|
|
96
|
+
* metadata files and the transcripts of the children that launched
|
|
97
|
+
* children. The caller checks that they are unchanged. The entries then
|
|
98
|
+
* equal those of a new replay.
|
|
99
|
+
*/
|
|
100
|
+
afterAppend(files: string[]): Promise<SubagentStatus | undefined>;
|
|
101
|
+
/**
|
|
102
|
+
* The status update of the root session `sessionId`, with the {@link report}ed
|
|
103
|
+
* entries: `_subagent_status` on v2, which accepts custom variants that start
|
|
104
|
+
* with `_`, and `session_info_update` with `_meta.sessionRead.subagents` on v1,
|
|
105
|
+
* whose update variants are closed.
|
|
106
|
+
*/
|
|
107
|
+
frame(sessionId: string, protocol: 1 | 2): {
|
|
108
|
+
sessionId: string;
|
|
109
|
+
update: {
|
|
110
|
+
sessionUpdate: string;
|
|
111
|
+
subagents: SubagentStatusEntry[];
|
|
112
|
+
_meta?: undefined;
|
|
113
|
+
} | {
|
|
114
|
+
sessionUpdate: string;
|
|
115
|
+
_meta: {
|
|
116
|
+
sessionRead: {
|
|
117
|
+
subagents: SubagentStatusEntry[];
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
subagents?: undefined;
|
|
121
|
+
};
|
|
122
|
+
};
|
|
123
|
+
/** `idle` when the child's last turn ended (see `tailOf`). A writer that died stays `running`. */
|
|
124
|
+
private activity;
|
|
125
|
+
private entry;
|
|
126
|
+
private file;
|
|
127
|
+
}
|
|
128
|
+
/** The bytes that launch scans read as new, for tests. */
|
|
129
|
+
export declare const launchScanStats: {
|
|
130
|
+
bytes: number;
|
|
131
|
+
};
|
|
132
|
+
//# sourceMappingURL=subagent-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subagent-status.d.ts","sourceRoot":"","sources":["../src/subagent-status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAKL,KAAK,eAAe,EAErB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAkB,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxE,OAAO,EAAuB,KAAK,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AAgB9F,yDAAyD;AACzD,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,kEAAkE;IAClE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,8FAA8F;IAC9F,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,IAAI,CAAC;I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