@myagentroam/agent 0.11.18 → 0.11.19
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.
|
@@ -75,10 +75,6 @@ export function renderSubagentUpdate(snapshot, truncated = false) {
|
|
|
75
75
|
field('summary', snapshot.summary);
|
|
76
76
|
for (const path of snapshot.changedFiles ?? [])
|
|
77
77
|
field('changed_file', path);
|
|
78
|
-
for (const text of snapshot.verification ?? [])
|
|
79
|
-
field('verification', text);
|
|
80
|
-
for (const { path, startLine, endLine } of snapshot.evidence ?? [])
|
|
81
|
-
field('evidence', path, { startLine, endLine });
|
|
82
78
|
if (snapshot.latestActivity)
|
|
83
79
|
field('activity', '', snapshot.latestActivity);
|
|
84
80
|
return root + ' truncated="' + String(truncated) + '">\n' + lines.join('') + close;
|
|
@@ -216,7 +216,9 @@ export class SubagentScheduler {
|
|
|
216
216
|
agentId: task.agentId,
|
|
217
217
|
description: task.input.description,
|
|
218
218
|
status: task.status,
|
|
219
|
-
...(task.result
|
|
219
|
+
...(task.result
|
|
220
|
+
? { summary: task.result.summary, changedFiles: [...task.result.changedFiles] }
|
|
221
|
+
: {}),
|
|
220
222
|
...(task.errorCode ? { errorCode: task.errorCode } : {}),
|
|
221
223
|
...(task.errorMessage ? { errorMessage: task.errorMessage } : {})
|
|
222
224
|
};
|
|
@@ -191,11 +191,7 @@ export class SubagentSessionController {
|
|
|
191
191
|
truncated: snapshot.latestMessage?.truncated === true ||
|
|
192
192
|
(includeTerminalDetails &&
|
|
193
193
|
(snapshot.summary !== state.summary ||
|
|
194
|
-
(snapshot.changedFiles?.length ?? 0) < state.changedFiles.length
|
|
195
|
-
(snapshot.evidence?.length ?? 0) < state.evidence.length ||
|
|
196
|
-
(snapshot.verification?.length ?? 0) < state.verification.length ||
|
|
197
|
-
(snapshot.verification?.some((value, index) => value !== state.verification[index]) ??
|
|
198
|
-
false))),
|
|
194
|
+
(snapshot.changedFiles?.length ?? 0) < state.changedFiles.length)),
|
|
199
195
|
acknowledge: () => {
|
|
200
196
|
state.observedMessageRevision = Math.max(state.observedMessageRevision, messageRevision);
|
|
201
197
|
if (includeTerminalDetails)
|
|
@@ -1246,22 +1242,12 @@ export class SubagentSessionController {
|
|
|
1246
1242
|
? [...state.changedFiles]
|
|
1247
1243
|
: state.changedFiles.slice(0, TOOL_EXECUTION_LIMITS.subagentChangedFilesMaxItems)
|
|
1248
1244
|
}),
|
|
1249
|
-
...(!includeTerminalDetails || !terminal || state.verification.length === 0
|
|
1245
|
+
...(!full || !includeTerminalDetails || !terminal || state.verification.length === 0
|
|
1250
1246
|
? {}
|
|
1251
|
-
: {
|
|
1252
|
-
|
|
1253
|
-
? [...state.verification]
|
|
1254
|
-
: state.verification
|
|
1255
|
-
.slice(0, TOOL_EXECUTION_LIMITS.subagentVerificationMaxItems)
|
|
1256
|
-
.map((text) => truncateUtf8(text, 2_000))
|
|
1257
|
-
}),
|
|
1258
|
-
...(!includeTerminalDetails || !terminal || state.evidence.length === 0
|
|
1247
|
+
: { verification: [...state.verification] }),
|
|
1248
|
+
...(!full || !includeTerminalDetails || !terminal || state.evidence.length === 0
|
|
1259
1249
|
? {}
|
|
1260
|
-
: {
|
|
1261
|
-
evidence: (full
|
|
1262
|
-
? state.evidence
|
|
1263
|
-
: state.evidence.slice(0, TOOL_EXECUTION_LIMITS.subagentEvidenceMaxItems)).map((item) => ({ ...item }))
|
|
1264
|
-
}),
|
|
1250
|
+
: { evidence: state.evidence.map((item) => ({ ...item })) }),
|
|
1265
1251
|
...(state.errorCode === undefined ? {} : { errorCode: state.errorCode }),
|
|
1266
1252
|
...(state.errorMessage === undefined ? {} : { errorMessage: state.errorMessage })
|
|
1267
1253
|
};
|
|
@@ -5,7 +5,7 @@ export const agentWaitToolDefinition = {
|
|
|
5
5
|
name: 'agent_wait',
|
|
6
6
|
allowedCallers: ['direct'],
|
|
7
7
|
parallelSafety: 'serial',
|
|
8
|
-
description: 'Read or wait a bounded time for a child agent result. Unread child messages and terminal results are supplied automatically before the next model request. Wait only when the next local step depends on the child result; otherwise continue useful non-overlapping work. waitFor defaults to "completion"; use "message" only when a fresh public commentary/final message would change the next decision. Omit agentId to wait for whichever live child returns first, matching Codex-style untargeted waiting and avoiding UUID transcription; provide the exact agentId returned by agent_start only when observing a specific child. If no child is live, untargeted waiting reads the most recently created child. For an exec processId, use exec_wait instead (tools.exec_wait in Code Mode). Omitting waitMs waits up to 30 seconds by default; waitMs=0 returns the current snapshot immediately. Positive waits range up to 5 minutes, and positive values below 10 seconds are raised to 10 seconds. When blocked on a live child result, prefer one 300000 ms completion wait rather than repeated short waits. Use agentIds with mode any (default) or all to wait for an explicit non-empty set of up to 8 distinct child IDs; never combine agentId and agentIds or use mode without agentIds. mode and waitFor are independent. A group uses one deadline and returns mode, waitFor, waitOutcome, agents in input order, and pendingAgentIds. Failed, cancelled and interrupted turns also satisfy completion; terminal state satisfies message waits too. Group waitMs=0 returns only snapshots without consuming messages. Single-target and untargeted results include waitOutcome as snapshot, message, completion, or timeout plus the real agentId and description. A message, timeout with unread progress, or first terminal completion result includes the newly observed latest public commentary/final message; snapshots and repeated observations omit previously observed message text. latestActivity can still identify a public message or bounded tool started/completed/failed status. A queued or running result is not completion. A message wait consumes only the latest unread public message in the current Session runtime; tool activity does not wake it, and parent cancellation preserves unread progress for a later Execution. waitOutcome distinguishes snapshot, message, completion, and timeout. A foreground steer may return interrupted with reason=steer without cancelling any child. Do not use message waits as heartbeat checks or request progress merely to confirm that a child is still running. First terminal results include bounded summary
|
|
8
|
+
description: 'Read or wait a bounded time for a child agent result. Unread child messages and terminal results are supplied automatically before the next model request. Wait only when the next local step depends on the child result; otherwise continue useful non-overlapping work. waitFor defaults to "completion"; use "message" only when a fresh public commentary/final message would change the next decision. Omit agentId to wait for whichever live child returns first, matching Codex-style untargeted waiting and avoiding UUID transcription; provide the exact agentId returned by agent_start only when observing a specific child. If no child is live, untargeted waiting reads the most recently created child. For an exec processId, use exec_wait instead (tools.exec_wait in Code Mode). Omitting waitMs waits up to 30 seconds by default; waitMs=0 returns the current snapshot immediately. Positive waits range up to 5 minutes, and positive values below 10 seconds are raised to 10 seconds. When blocked on a live child result, prefer one 300000 ms completion wait rather than repeated short waits. Use agentIds with mode any (default) or all to wait for an explicit non-empty set of up to 8 distinct child IDs; never combine agentId and agentIds or use mode without agentIds. mode and waitFor are independent. A group uses one deadline and returns mode, waitFor, waitOutcome, agents in input order, and pendingAgentIds. Failed, cancelled and interrupted turns also satisfy completion; terminal state satisfies message waits too. Group waitMs=0 returns only snapshots without consuming messages. Single-target and untargeted results include waitOutcome as snapshot, message, completion, or timeout plus the real agentId and description. A message, timeout with unread progress, or first terminal completion result includes the newly observed latest public commentary/final message; snapshots and repeated observations omit previously observed message text. latestActivity can still identify a public message or bounded tool started/completed/failed status. A queued or running result is not completion. A message wait consumes only the latest unread public message in the current Session runtime; tool activity does not wake it, and parent cancellation preserves unread progress for a later Execution. waitOutcome distinguishes snapshot, message, completion, and timeout. A foreground steer may return interrupted with reason=steer without cancelling any child. Do not use message waits as heartbeat checks or request progress merely to confirm that a child is still running. First terminal results include bounded summary and changedFiles, without automatic command or read records. Use public child conclusions and relevant file references to avoid repeating the full exploration, while independently checking consequential edits and claims.',
|
|
9
9
|
inputSchema: {
|
|
10
10
|
type: 'object',
|
|
11
11
|
properties: {
|