@cuylabs/agent-core 5.7.0 → 6.0.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/{chunk-MSRJADIB.js → chunk-2W7IUHNV.js} +2 -2
- package/dist/{chunk-D24LUJUN.js → chunk-3LSEB7W6.js} +1 -1
- package/dist/{chunk-4HB2AAGM.js → chunk-FFSB7RFD.js} +1 -1
- package/dist/{chunk-DDYPN2JE.js → chunk-K5WUYL2H.js} +41 -41
- package/dist/{chunk-DWM3E5GI.js → chunk-KE7A7V7F.js} +2 -2
- package/dist/{chunk-C4ZVWRS5.js → chunk-S2L4AJ72.js} +1 -1
- package/dist/dispatch/index.js +2 -2
- package/dist/execution/index.js +4 -4
- package/dist/execution/turn/index.js +4 -4
- package/dist/index.js +55 -55
- package/dist/inference/index.js +3 -3
- package/dist/middleware/index.js +2 -2
- package/dist/safety/index.js +1 -1
- package/dist/skill/index.js +1 -1
- package/dist/subagents/index.d.ts +2 -2
- package/dist/subagents/index.d.ts.map +1 -1
- package/dist/subagents/index.js +11 -11
- package/dist/subagents/results.d.ts +3 -3
- package/dist/subagents/results.d.ts.map +1 -1
- package/dist/subagents/tool-factories.d.ts +2 -2
- package/dist/subagents/tool-factories.d.ts.map +1 -1
- package/dist/subagents/tools.d.ts +1 -1
- package/dist/tool/index.js +2 -2
- package/package.json +1 -1
- package/dist/{chunk-LPWOYMS2.js → chunk-ZETYNQ35.js} +3 -3
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
import {
|
|
10
10
|
Inference,
|
|
11
11
|
buildModelCallContext
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KE7A7V7F.js";
|
|
13
13
|
import {
|
|
14
14
|
LLMError
|
|
15
15
|
} from "./chunk-STDJYXYK.js";
|
|
16
16
|
import {
|
|
17
17
|
executeAgentToolCall
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-S2L4AJ72.js";
|
|
19
19
|
import {
|
|
20
20
|
streamWithinScope
|
|
21
21
|
} from "./chunk-AHDCR7SX.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Profiles
|
|
3
|
+
} from "./chunk-TPZ37IWI.js";
|
|
1
4
|
import {
|
|
2
5
|
createLocalDispatchRuntime
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZETYNQ35.js";
|
|
4
7
|
import {
|
|
5
8
|
Tool
|
|
6
9
|
} from "./chunk-MJML3A2F.js";
|
|
7
|
-
import {
|
|
8
|
-
Profiles
|
|
9
|
-
} from "./chunk-TPZ37IWI.js";
|
|
10
10
|
|
|
11
11
|
// src/subagents/types.ts
|
|
12
12
|
var DEFAULT_SUBAGENT_CONCURRENCY = 6;
|
|
@@ -91,11 +91,11 @@ ID: ${agentId}
|
|
|
91
91
|
Role: ${roleName}
|
|
92
92
|
` + (sessionId ? `Session: ${sessionId}
|
|
93
93
|
|
|
94
|
-
` : "\n") + `Use
|
|
94
|
+
` : "\n") + `Use get_agent_results with this ID to collect the result later.`,
|
|
95
95
|
metadata: { agentId, role: roleName, sessionId }
|
|
96
96
|
};
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function formatGetAgentResultsResult(agentId, roleName, result) {
|
|
99
99
|
return {
|
|
100
100
|
title: `${roleName} finished`,
|
|
101
101
|
output: `<agent_result id="${agentId}" role="${roleName}" session="${result.sessionId}">
|
|
@@ -135,7 +135,7 @@ function formatInspectAgentResult(result) {
|
|
|
135
135
|
...result.error ? ["", `Error: ${result.error}`] : [],
|
|
136
136
|
...result.hasResult ? [
|
|
137
137
|
"",
|
|
138
|
-
`Result: available via
|
|
138
|
+
`Result: available via get_agent_results (${result.resultLength ?? 0} chars).`,
|
|
139
139
|
...result.resultPreview ? ["", "Result preview:", result.resultPreview] : []
|
|
140
140
|
] : result.status === "completed" ? ["", "Result: completed, but full result metadata is unavailable."] : ["", "Result: not available yet."],
|
|
141
141
|
...result.recentActivity.length > 0 ? [
|
|
@@ -158,20 +158,20 @@ function formatInspectAgentResult(result) {
|
|
|
158
158
|
}
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function formatGetAgentResultsTimeoutResult(timeoutMs, runningIds) {
|
|
162
162
|
return {
|
|
163
|
-
title: "
|
|
164
|
-
output: `
|
|
163
|
+
title: "Result retrieval timed out",
|
|
164
|
+
output: `No requested subagent result became available within ${timeoutMs}ms.
|
|
165
165
|
|
|
166
166
|
` + (runningIds.length > 0 ? `Still running: ${runningIds.join(", ")}
|
|
167
167
|
|
|
168
|
-
Use
|
|
168
|
+
Use get_agent_results again to check later, close_agent if the result is no longer needed, or continue with any completed results you already have.` : "No requested subagents are still running. Check their status again or continue with any completed results you already have."),
|
|
169
169
|
metadata: { timeoutMs, runningIds }
|
|
170
170
|
};
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function formatGetAgentResultsErrorResult(error) {
|
|
173
173
|
return {
|
|
174
|
-
title: "
|
|
174
|
+
title: "Result retrieval failed",
|
|
175
175
|
output: error instanceof Error ? error.message : String(error),
|
|
176
176
|
metadata: { error: true }
|
|
177
177
|
};
|
|
@@ -414,12 +414,12 @@ async function inspectDispatch(options) {
|
|
|
414
414
|
// src/subagents/tool-factories.ts
|
|
415
415
|
var SUBAGENT_TOOL_IDS = [
|
|
416
416
|
"invoke_agent",
|
|
417
|
-
"
|
|
417
|
+
"get_agent_results",
|
|
418
418
|
"inspect_agent",
|
|
419
419
|
"close_agent"
|
|
420
420
|
];
|
|
421
|
-
var
|
|
422
|
-
var
|
|
421
|
+
var DEFAULT_GET_AGENT_RESULTS_TIMEOUT_MS = 6e4;
|
|
422
|
+
var MAX_GET_AGENT_RESULTS_TIMEOUT_MS = 6e5;
|
|
423
423
|
function getRoleNames(roles) {
|
|
424
424
|
return roles.map((role) => role.name);
|
|
425
425
|
}
|
|
@@ -428,7 +428,7 @@ function findRole(roles, roleName) {
|
|
|
428
428
|
}
|
|
429
429
|
function buildInvokeDescription(roles, isAsync) {
|
|
430
430
|
const roleList = roles.map((role) => ` - "${role.name}": ${role.description}`).join("\n");
|
|
431
|
-
const modeNote = isAsync ? "Returns an agent ID immediately. For parallel work, launch all needed subagents first, then use `
|
|
431
|
+
const modeNote = isAsync ? "Returns an agent ID immediately. For parallel work, launch all needed subagents first, then use `get_agent_results` to collect the results." : "Blocks until the subagent completes and returns the result directly.";
|
|
432
432
|
return `Delegate a focused task to a specialized subagent.
|
|
433
433
|
|
|
434
434
|
Available roles:
|
|
@@ -441,7 +441,7 @@ Guidelines:
|
|
|
441
441
|
- Provide clear, self-contained instructions \u2014 the subagent has a fresh context
|
|
442
442
|
- Include any relevant file paths, function names, or context the subagent needs
|
|
443
443
|
- Mention the working directory structure if known (for example, "code is in packages/agent-core/src")
|
|
444
|
-
- For parallel work, invoke multiple subagents before
|
|
444
|
+
- For parallel work, invoke multiple subagents before retrieving results
|
|
445
445
|
- Subagents will retry on errors and explore alternatives`;
|
|
446
446
|
}
|
|
447
447
|
function toCompletedResult(record) {
|
|
@@ -457,14 +457,14 @@ function toCompletedResult(record) {
|
|
|
457
457
|
toolCalls: record.result.toolCalls
|
|
458
458
|
};
|
|
459
459
|
}
|
|
460
|
-
function
|
|
460
|
+
function normalizeGetAgentResultsTimeoutMs(timeoutMs) {
|
|
461
461
|
if (timeoutMs === void 0) {
|
|
462
|
-
return
|
|
462
|
+
return DEFAULT_GET_AGENT_RESULTS_TIMEOUT_MS;
|
|
463
463
|
}
|
|
464
464
|
if (!Number.isFinite(timeoutMs) || timeoutMs <= 0) {
|
|
465
|
-
return
|
|
465
|
+
return DEFAULT_GET_AGENT_RESULTS_TIMEOUT_MS;
|
|
466
466
|
}
|
|
467
|
-
return Math.min(Math.floor(timeoutMs),
|
|
467
|
+
return Math.min(Math.floor(timeoutMs), MAX_GET_AGENT_RESULTS_TIMEOUT_MS);
|
|
468
468
|
}
|
|
469
469
|
async function waitForTerminalDispatch(runtime, id) {
|
|
470
470
|
for (; ; ) {
|
|
@@ -479,16 +479,16 @@ async function waitForTerminalDispatch(runtime, id) {
|
|
|
479
479
|
}
|
|
480
480
|
function formatTerminalFailure(record) {
|
|
481
481
|
if (record.status === "failed") {
|
|
482
|
-
return
|
|
482
|
+
return formatGetAgentResultsErrorResult(
|
|
483
483
|
new Error(record.error ?? `Subagent "${record.id}" failed.`)
|
|
484
484
|
);
|
|
485
485
|
}
|
|
486
486
|
if (record.status === "cancelled") {
|
|
487
|
-
return
|
|
487
|
+
return formatGetAgentResultsErrorResult(
|
|
488
488
|
new Error(record.error ?? `Subagent "${record.id}" was cancelled.`)
|
|
489
489
|
);
|
|
490
490
|
}
|
|
491
|
-
return
|
|
491
|
+
return formatGetAgentResultsErrorResult(
|
|
492
492
|
new Error(
|
|
493
493
|
`Subagent "${record.id}" is in unexpected state "${record.status}".`
|
|
494
494
|
)
|
|
@@ -555,15 +555,15 @@ function createInvokeAgentTool(runtime, roles, options) {
|
|
|
555
555
|
}
|
|
556
556
|
}));
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
return Tool.define("
|
|
560
|
-
description: "
|
|
558
|
+
function createGetAgentResultsTool(runtime) {
|
|
559
|
+
return Tool.define("get_agent_results", {
|
|
560
|
+
description: "Retrieve completed results from one or more subagents. When no requested subagent is complete yet, waits up to the timeout and reports which IDs are still running.",
|
|
561
561
|
parameters: z.object({
|
|
562
|
-
ids: z.array(z.string()).min(1).describe("Subagent IDs to
|
|
562
|
+
ids: z.array(z.string()).min(1).describe("Subagent IDs to retrieve results for (from invoke_agent)"),
|
|
563
563
|
timeout_ms: z.number().optional().describe("Timeout in milliseconds (default: 60000, max: 600000)")
|
|
564
564
|
}),
|
|
565
565
|
execute: async (params) => {
|
|
566
|
-
const timeoutMs =
|
|
566
|
+
const timeoutMs = normalizeGetAgentResultsTimeoutMs(params.timeout_ms);
|
|
567
567
|
const existing = await Promise.all(
|
|
568
568
|
params.ids.map(async (id) => [id, await runtime.check(id)])
|
|
569
569
|
);
|
|
@@ -579,10 +579,10 @@ function createWaitAgentTool(runtime) {
|
|
|
579
579
|
const [id, record] = await Promise.race(checks);
|
|
580
580
|
if (record.status === "running") {
|
|
581
581
|
const runningIds = existing.filter(([, current]) => current?.status === "running").map(([currentId]) => currentId);
|
|
582
|
-
return
|
|
582
|
+
return formatGetAgentResultsTimeoutResult(timeoutMs, runningIds);
|
|
583
583
|
}
|
|
584
584
|
if (record.status === "completed") {
|
|
585
|
-
return
|
|
585
|
+
return formatGetAgentResultsResult(
|
|
586
586
|
id,
|
|
587
587
|
record.targetType,
|
|
588
588
|
toCompletedResult(record)
|
|
@@ -590,14 +590,14 @@ function createWaitAgentTool(runtime) {
|
|
|
590
590
|
}
|
|
591
591
|
return formatTerminalFailure(record);
|
|
592
592
|
} catch (error) {
|
|
593
|
-
return
|
|
593
|
+
return formatGetAgentResultsErrorResult(error);
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
});
|
|
597
597
|
}
|
|
598
598
|
function createInspectAgentTool(runtime) {
|
|
599
599
|
return Tool.define("inspect_agent", {
|
|
600
|
-
description: "Inspect a running or completed subagent without blocking for the full result. Use this for progress checks, current status, recent activity, and tool progress. If the subagent is complete and you need the full result, call
|
|
600
|
+
description: "Inspect a running or completed subagent without blocking for the full result. Use this for progress checks, current status, recent activity, and tool progress. If the subagent is complete and you need the full result, call get_agent_results.",
|
|
601
601
|
capabilities: {
|
|
602
602
|
parallelSafe: true,
|
|
603
603
|
readOnly: true,
|
|
@@ -617,7 +617,7 @@ function createInspectAgentTool(runtime) {
|
|
|
617
617
|
recentEvents: normalizeInspectRecentEvents(params.recent_events)
|
|
618
618
|
});
|
|
619
619
|
} catch (error) {
|
|
620
|
-
return
|
|
620
|
+
return formatGetAgentResultsErrorResult(error);
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
});
|
|
@@ -663,7 +663,7 @@ function createSubAgentTools(parent, options) {
|
|
|
663
663
|
];
|
|
664
664
|
if (options.async) {
|
|
665
665
|
tools2.push(
|
|
666
|
-
|
|
666
|
+
createGetAgentResultsTool(childRuntime),
|
|
667
667
|
createInspectAgentTool(childRuntime),
|
|
668
668
|
createCloseAgentTool(childRuntime)
|
|
669
669
|
);
|
|
@@ -676,7 +676,7 @@ function createSubAgentTools(parent, options) {
|
|
|
676
676
|
];
|
|
677
677
|
if (options.async) {
|
|
678
678
|
tools.push(
|
|
679
|
-
|
|
679
|
+
createGetAgentResultsTool(runtime),
|
|
680
680
|
createInspectAgentTool(runtime),
|
|
681
681
|
createCloseAgentTool(runtime)
|
|
682
682
|
);
|
|
@@ -1175,16 +1175,16 @@ export {
|
|
|
1175
1175
|
formatSyncSubAgentResult,
|
|
1176
1176
|
formatSyncSubAgentErrorResult,
|
|
1177
1177
|
formatAsyncSpawnedResult,
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1178
|
+
formatGetAgentResultsResult,
|
|
1179
|
+
formatGetAgentResultsTimeoutResult,
|
|
1180
|
+
formatGetAgentResultsErrorResult,
|
|
1181
1181
|
formatMissingAgentsResult,
|
|
1182
1182
|
formatCloseMissingAgentResult,
|
|
1183
1183
|
formatCloseAlreadyResolvedResult,
|
|
1184
1184
|
formatCancelledAgentResult,
|
|
1185
1185
|
SUBAGENT_TOOL_IDS,
|
|
1186
1186
|
createInvokeAgentTool,
|
|
1187
|
-
|
|
1187
|
+
createGetAgentResultsTool,
|
|
1188
1188
|
createInspectAgentTool,
|
|
1189
1189
|
createCloseAgentTool,
|
|
1190
1190
|
createSubAgentTools,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./chunk-STDJYXYK.js";
|
|
5
5
|
import {
|
|
6
6
|
executeAgentToolCall
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-S2L4AJ72.js";
|
|
8
8
|
import {
|
|
9
9
|
snapshotScope
|
|
10
10
|
} from "./chunk-AHDCR7SX.js";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
} from "./chunk-CNM6OROH.js";
|
|
18
18
|
import {
|
|
19
19
|
formatApprovalDeniedReason
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-FFSB7RFD.js";
|
|
21
21
|
|
|
22
22
|
// src/inference/toolset.ts
|
|
23
23
|
import {
|
package/dist/dispatch/index.js
CHANGED
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
DISPATCH_STATES,
|
|
17
17
|
createDispatchTools,
|
|
18
18
|
createLocalDispatchRuntime
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-ZETYNQ35.js";
|
|
20
|
+
import "../chunk-EDKZOPUV.js";
|
|
20
21
|
import "../chunk-SZ2XBPTW.js";
|
|
21
22
|
import "../chunk-MJML3A2F.js";
|
|
22
|
-
import "../chunk-EDKZOPUV.js";
|
|
23
23
|
import "../chunk-CGP6UNCQ.js";
|
|
24
24
|
export {
|
|
25
25
|
DEFAULT_DISPATCH_TOOL_IDS,
|
package/dist/execution/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
processStepStream,
|
|
15
15
|
runModelStep,
|
|
16
16
|
runToolBatch
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-2W7IUHNV.js";
|
|
18
18
|
import {
|
|
19
19
|
applyAgentWorkflowCommitResult,
|
|
20
20
|
applyAgentWorkflowContextCompactionResult,
|
|
@@ -46,9 +46,9 @@ import "../chunk-DYZGHHDB.js";
|
|
|
46
46
|
import "../chunk-CGP6UNCQ.js";
|
|
47
47
|
import {
|
|
48
48
|
convertAgentMessagesToModelMessages
|
|
49
|
-
} from "../chunk-
|
|
49
|
+
} from "../chunk-KE7A7V7F.js";
|
|
50
50
|
import "../chunk-STDJYXYK.js";
|
|
51
|
-
import "../chunk-
|
|
51
|
+
import "../chunk-S2L4AJ72.js";
|
|
52
52
|
import {
|
|
53
53
|
currentScope,
|
|
54
54
|
restoreScope,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
import "../chunk-W6LWIMIX.js";
|
|
59
59
|
import "../chunk-CNM6OROH.js";
|
|
60
60
|
import "../chunk-I6PKJ7XQ.js";
|
|
61
|
-
import "../chunk-
|
|
61
|
+
import "../chunk-FFSB7RFD.js";
|
|
62
62
|
import "../chunk-FII65CN7.js";
|
|
63
63
|
import "../chunk-S6AKEPAX.js";
|
|
64
64
|
export {
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
processStepStream,
|
|
12
12
|
runModelStep,
|
|
13
13
|
runToolBatch
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-2W7IUHNV.js";
|
|
15
15
|
import {
|
|
16
16
|
AgentTurnStateConflictError,
|
|
17
17
|
advanceAgentTurnState,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
} from "../../chunk-E66PKKDL.js";
|
|
23
23
|
import "../../chunk-DYZGHHDB.js";
|
|
24
24
|
import "../../chunk-CGP6UNCQ.js";
|
|
25
|
-
import "../../chunk-
|
|
25
|
+
import "../../chunk-KE7A7V7F.js";
|
|
26
26
|
import "../../chunk-STDJYXYK.js";
|
|
27
|
-
import "../../chunk-
|
|
27
|
+
import "../../chunk-S2L4AJ72.js";
|
|
28
28
|
import "../../chunk-AHDCR7SX.js";
|
|
29
29
|
import "../../chunk-W6LWIMIX.js";
|
|
30
30
|
import "../../chunk-CNM6OROH.js";
|
|
31
31
|
import "../../chunk-I6PKJ7XQ.js";
|
|
32
|
-
import "../../chunk-
|
|
32
|
+
import "../../chunk-FFSB7RFD.js";
|
|
33
33
|
import "../../chunk-FII65CN7.js";
|
|
34
34
|
import "../../chunk-S6AKEPAX.js";
|
|
35
35
|
export {
|
package/dist/index.js
CHANGED
|
@@ -12,23 +12,23 @@ import {
|
|
|
12
12
|
clearInstalledSubAgents,
|
|
13
13
|
configureSubAgents,
|
|
14
14
|
createCloseAgentTool,
|
|
15
|
+
createGetAgentResultsTool,
|
|
15
16
|
createInspectAgentTool,
|
|
16
17
|
createInvokeAgentTool,
|
|
17
18
|
createSubAgentTools,
|
|
18
|
-
createWaitAgentTool,
|
|
19
19
|
discoverSubAgentRoles,
|
|
20
20
|
formatAsyncSpawnedResult,
|
|
21
21
|
formatCancelledAgentResult,
|
|
22
22
|
formatCloseAlreadyResolvedResult,
|
|
23
23
|
formatCloseMissingAgentResult,
|
|
24
|
+
formatGetAgentResultsErrorResult,
|
|
25
|
+
formatGetAgentResultsResult,
|
|
26
|
+
formatGetAgentResultsTimeoutResult,
|
|
24
27
|
formatInvalidAgentTypeResult,
|
|
25
28
|
formatMissingAgentsResult,
|
|
26
29
|
formatSpawnBlockedResult,
|
|
27
30
|
formatSyncSubAgentErrorResult,
|
|
28
31
|
formatSyncSubAgentResult,
|
|
29
|
-
formatWaitErrorResult,
|
|
30
|
-
formatWaitResult,
|
|
31
|
-
formatWaitTimeoutResult,
|
|
32
32
|
getConfiguredSubAgents,
|
|
33
33
|
getInstalledSubAgentBackend,
|
|
34
34
|
getProjectSubAgentRolesDir,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
parseSubAgentRoleFrontmatter,
|
|
41
41
|
parseSubAgentToolSpec,
|
|
42
42
|
toSubAgentRole
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-K5WUYL2H.js";
|
|
44
44
|
import {
|
|
45
45
|
InMemoryMailboxStore,
|
|
46
46
|
InMemoryTaskBoardStore,
|
|
@@ -71,38 +71,12 @@ import {
|
|
|
71
71
|
localHost
|
|
72
72
|
} from "./chunk-X4VN4GIJ.js";
|
|
73
73
|
import {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
ensureNonEmpty,
|
|
81
|
-
mergeInspection
|
|
82
|
-
} from "./chunk-2BRLPF3Z.js";
|
|
83
|
-
import {
|
|
84
|
-
DEFAULT_DISPATCH_TOOL_IDS,
|
|
85
|
-
DEFAULT_LOCAL_DISPATCH_CONCURRENCY,
|
|
86
|
-
DEFAULT_LOCAL_DISPATCH_DEPTH,
|
|
87
|
-
DEFAULT_LOCAL_DISPATCH_TITLE_PREFIX,
|
|
88
|
-
DISPATCH_STATES,
|
|
89
|
-
createDispatchTools,
|
|
90
|
-
createLocalDispatchRuntime,
|
|
91
|
-
createSubAgentRunSession,
|
|
92
|
-
ensureSessionLoaded,
|
|
93
|
-
getVisibleSessionMessages,
|
|
94
|
-
repairOrphanedToolCalls
|
|
95
|
-
} from "./chunk-LPWOYMS2.js";
|
|
96
|
-
import {
|
|
97
|
-
sleep
|
|
98
|
-
} from "./chunk-SZ2XBPTW.js";
|
|
99
|
-
import {
|
|
100
|
-
MAX_BYTES,
|
|
101
|
-
MAX_LINES,
|
|
102
|
-
Tool,
|
|
103
|
-
normalizeToolReplayPolicy,
|
|
104
|
-
truncateOutput
|
|
105
|
-
} from "./chunk-MJML3A2F.js";
|
|
74
|
+
createMemoryMiddleware,
|
|
75
|
+
formatMemoryContextFragment,
|
|
76
|
+
normalizeMemoryRecords,
|
|
77
|
+
resolveAgentMemoryCaptureConfig,
|
|
78
|
+
resolveAgentMemoryConfig
|
|
79
|
+
} from "./chunk-DD7S7ZG4.js";
|
|
106
80
|
import {
|
|
107
81
|
MiddlewareRunner,
|
|
108
82
|
approvalMiddleware,
|
|
@@ -110,7 +84,7 @@ import {
|
|
|
110
84
|
isApprovalMiddleware,
|
|
111
85
|
otelMiddleware,
|
|
112
86
|
promptCacheMiddleware
|
|
113
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-3LSEB7W6.js";
|
|
114
88
|
import {
|
|
115
89
|
LayeredSettings,
|
|
116
90
|
NullSettings,
|
|
@@ -188,6 +162,32 @@ import {
|
|
|
188
162
|
parseFrontmatter
|
|
189
163
|
} from "./chunk-F2ZKMUW7.js";
|
|
190
164
|
import "./chunk-VOUEJSW6.js";
|
|
165
|
+
import {
|
|
166
|
+
assembleModelContext
|
|
167
|
+
} from "./chunk-TYQWH6XH.js";
|
|
168
|
+
import {
|
|
169
|
+
InMemoryDispatchEventStore,
|
|
170
|
+
createCompositeDispatchTaskExecutor,
|
|
171
|
+
createDispatchExternalTaskControl,
|
|
172
|
+
createDispatchTaskExecutor,
|
|
173
|
+
createRuntimeDispatchExecutor,
|
|
174
|
+
createRuntimeDispatchTargets,
|
|
175
|
+
ensureNonEmpty,
|
|
176
|
+
mergeInspection
|
|
177
|
+
} from "./chunk-2BRLPF3Z.js";
|
|
178
|
+
import {
|
|
179
|
+
DEFAULT_DISPATCH_TOOL_IDS,
|
|
180
|
+
DEFAULT_LOCAL_DISPATCH_CONCURRENCY,
|
|
181
|
+
DEFAULT_LOCAL_DISPATCH_DEPTH,
|
|
182
|
+
DEFAULT_LOCAL_DISPATCH_TITLE_PREFIX,
|
|
183
|
+
DISPATCH_STATES,
|
|
184
|
+
createDispatchTools,
|
|
185
|
+
createLocalDispatchRuntime,
|
|
186
|
+
createSubAgentRunSession,
|
|
187
|
+
ensureSessionLoaded,
|
|
188
|
+
getVisibleSessionMessages,
|
|
189
|
+
repairOrphanedToolCalls
|
|
190
|
+
} from "./chunk-ZETYNQ35.js";
|
|
191
191
|
import {
|
|
192
192
|
InMemorySessionStore,
|
|
193
193
|
LocalSessionTurnLock,
|
|
@@ -211,8 +211,15 @@ import {
|
|
|
211
211
|
toJSONLBatch
|
|
212
212
|
} from "./chunk-EDKZOPUV.js";
|
|
213
213
|
import {
|
|
214
|
-
|
|
215
|
-
} from "./chunk-
|
|
214
|
+
sleep
|
|
215
|
+
} from "./chunk-SZ2XBPTW.js";
|
|
216
|
+
import {
|
|
217
|
+
MAX_BYTES,
|
|
218
|
+
MAX_LINES,
|
|
219
|
+
Tool,
|
|
220
|
+
normalizeToolReplayPolicy,
|
|
221
|
+
truncateOutput
|
|
222
|
+
} from "./chunk-MJML3A2F.js";
|
|
216
223
|
import "./chunk-3NBTQHVV.js";
|
|
217
224
|
import {
|
|
218
225
|
createEventBus
|
|
@@ -237,7 +244,7 @@ import {
|
|
|
237
244
|
processStepStream,
|
|
238
245
|
runModelStep,
|
|
239
246
|
runToolBatch
|
|
240
|
-
} from "./chunk-
|
|
247
|
+
} from "./chunk-2W7IUHNV.js";
|
|
241
248
|
import {
|
|
242
249
|
applyAgentWorkflowCommitResult,
|
|
243
250
|
applyAgentWorkflowContextCompactionResult,
|
|
@@ -330,7 +337,7 @@ import {
|
|
|
330
337
|
streamOnce,
|
|
331
338
|
streamStep,
|
|
332
339
|
withRetry
|
|
333
|
-
} from "./chunk-
|
|
340
|
+
} from "./chunk-KE7A7V7F.js";
|
|
334
341
|
import {
|
|
335
342
|
LLMError,
|
|
336
343
|
getErrorCategory,
|
|
@@ -343,7 +350,7 @@ import {
|
|
|
343
350
|
executeAgentToolCall,
|
|
344
351
|
extractFilePathsFromArgs,
|
|
345
352
|
shouldCaptureBaseline
|
|
346
|
-
} from "./chunk-
|
|
353
|
+
} from "./chunk-S2L4AJ72.js";
|
|
347
354
|
import {
|
|
348
355
|
currentScope,
|
|
349
356
|
restoreScope,
|
|
@@ -427,7 +434,7 @@ import {
|
|
|
427
434
|
normalizeRememberScopes,
|
|
428
435
|
selectRememberScope,
|
|
429
436
|
shouldCascadeApprovalDecision
|
|
430
|
-
} from "./chunk-
|
|
437
|
+
} from "./chunk-FFSB7RFD.js";
|
|
431
438
|
import {
|
|
432
439
|
describeApprovalOperation,
|
|
433
440
|
extractApprovalPatterns,
|
|
@@ -451,13 +458,6 @@ import {
|
|
|
451
458
|
createFileLogger,
|
|
452
459
|
silentLogger
|
|
453
460
|
} from "./chunk-S6AKEPAX.js";
|
|
454
|
-
import {
|
|
455
|
-
createMemoryMiddleware,
|
|
456
|
-
formatMemoryContextFragment,
|
|
457
|
-
normalizeMemoryRecords,
|
|
458
|
-
resolveAgentMemoryCaptureConfig,
|
|
459
|
-
resolveAgentMemoryConfig
|
|
460
|
-
} from "./chunk-DD7S7ZG4.js";
|
|
461
461
|
|
|
462
462
|
// src/tracking/turn-tracker/tracker.ts
|
|
463
463
|
import { spawn } from "child_process";
|
|
@@ -4421,6 +4421,7 @@ export {
|
|
|
4421
4421
|
createEventBus,
|
|
4422
4422
|
createEventPrinter,
|
|
4423
4423
|
createFileLogger,
|
|
4424
|
+
createGetAgentResultsTool,
|
|
4424
4425
|
createHeadlessDenyApprovalPolicy,
|
|
4425
4426
|
createHumanInputController,
|
|
4426
4427
|
createHumanInputHandler,
|
|
@@ -4457,7 +4458,6 @@ export {
|
|
|
4457
4458
|
createToolVisibilityMatcher,
|
|
4458
4459
|
createTrustedSessionApprovalPolicy,
|
|
4459
4460
|
createTurnTracker,
|
|
4460
|
-
createWaitAgentTool,
|
|
4461
4461
|
currentScope,
|
|
4462
4462
|
decideContextCompaction,
|
|
4463
4463
|
defaultAgentTaskCheckpointStrategy,
|
|
@@ -4502,6 +4502,9 @@ export {
|
|
|
4502
4502
|
formatCoordinatorTaskNotifications,
|
|
4503
4503
|
formatCoordinatorWorkerReports,
|
|
4504
4504
|
formatEnvironment,
|
|
4505
|
+
formatGetAgentResultsErrorResult,
|
|
4506
|
+
formatGetAgentResultsResult,
|
|
4507
|
+
formatGetAgentResultsTimeoutResult,
|
|
4505
4508
|
formatInstructions,
|
|
4506
4509
|
formatInvalidAgentTypeResult,
|
|
4507
4510
|
formatMemoryContextFragment,
|
|
@@ -4509,9 +4512,6 @@ export {
|
|
|
4509
4512
|
formatSpawnBlockedResult,
|
|
4510
4513
|
formatSyncSubAgentErrorResult,
|
|
4511
4514
|
formatSyncSubAgentResult,
|
|
4512
|
-
formatWaitErrorResult,
|
|
4513
|
-
formatWaitResult,
|
|
4514
|
-
formatWaitTimeoutResult,
|
|
4515
4515
|
gatherEnvironment,
|
|
4516
4516
|
generateEntryId,
|
|
4517
4517
|
generateSplitTurnSummary,
|
package/dist/inference/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
streamOnce,
|
|
15
15
|
streamStep,
|
|
16
16
|
withRetry
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-KE7A7V7F.js";
|
|
18
18
|
import {
|
|
19
19
|
LLMError,
|
|
20
20
|
getErrorCategory,
|
|
@@ -23,12 +23,12 @@ import {
|
|
|
23
23
|
isRetryableCategory,
|
|
24
24
|
parseRetryDelay
|
|
25
25
|
} from "../chunk-STDJYXYK.js";
|
|
26
|
-
import "../chunk-
|
|
26
|
+
import "../chunk-S2L4AJ72.js";
|
|
27
27
|
import "../chunk-AHDCR7SX.js";
|
|
28
28
|
import "../chunk-W6LWIMIX.js";
|
|
29
29
|
import "../chunk-CNM6OROH.js";
|
|
30
30
|
import "../chunk-I6PKJ7XQ.js";
|
|
31
|
-
import "../chunk-
|
|
31
|
+
import "../chunk-FFSB7RFD.js";
|
|
32
32
|
import "../chunk-FII65CN7.js";
|
|
33
33
|
import "../chunk-S6AKEPAX.js";
|
|
34
34
|
export {
|
package/dist/middleware/index.js
CHANGED
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
isApprovalMiddleware,
|
|
6
6
|
otelMiddleware,
|
|
7
7
|
promptCacheMiddleware
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-3LSEB7W6.js";
|
|
9
9
|
import {
|
|
10
10
|
isBlockedModelCall
|
|
11
11
|
} from "../chunk-W6LWIMIX.js";
|
|
12
12
|
import "../chunk-I6PKJ7XQ.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-FFSB7RFD.js";
|
|
14
14
|
import "../chunk-FII65CN7.js";
|
|
15
15
|
import "../chunk-S6AKEPAX.js";
|
|
16
16
|
export {
|
package/dist/safety/index.js
CHANGED
package/dist/skill/index.js
CHANGED
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
createSkillTool,
|
|
4
4
|
createSkillTools
|
|
5
5
|
} from "../chunk-ASXF5AC6.js";
|
|
6
|
-
import "../chunk-MJML3A2F.js";
|
|
7
6
|
import {
|
|
8
7
|
DEFAULT_EXTERNAL_DIRS,
|
|
9
8
|
DEFAULT_MAX_SCAN_DEPTH,
|
|
@@ -19,6 +18,7 @@ import {
|
|
|
19
18
|
loadSkillMetadata,
|
|
20
19
|
parseFrontmatter
|
|
21
20
|
} from "../chunk-F2ZKMUW7.js";
|
|
21
|
+
import "../chunk-MJML3A2F.js";
|
|
22
22
|
export {
|
|
23
23
|
DEFAULT_EXTERNAL_DIRS,
|
|
24
24
|
DEFAULT_MAX_SCAN_DEPTH,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type { SubAgentCompletedResult, SubAgentConfig, SubAgentRole, SubAgentToolsOptions, } from "./types.js";
|
|
2
2
|
export { DEFAULT_SUBAGENT_CONCURRENCY, DEFAULT_SUBAGENT_DEPTH, DEFAULT_SUBAGENT_SESSION_PREFIX, } from "./types.js";
|
|
3
3
|
export { createSubAgentTools } from "./tools.js";
|
|
4
|
-
export { createCloseAgentTool, createInspectAgentTool, createInvokeAgentTool,
|
|
5
|
-
export { formatAsyncSpawnedResult, formatCancelledAgentResult, formatCloseAlreadyResolvedResult, formatCloseMissingAgentResult, formatInvalidAgentTypeResult, formatMissingAgentsResult, formatSpawnBlockedResult, formatSyncSubAgentErrorResult, formatSyncSubAgentResult,
|
|
4
|
+
export { createCloseAgentTool, createInspectAgentTool, createInvokeAgentTool, createGetAgentResultsTool, SUBAGENT_TOOL_IDS, } from "./tool-factories.js";
|
|
5
|
+
export { formatAsyncSpawnedResult, formatCancelledAgentResult, formatCloseAlreadyResolvedResult, formatCloseMissingAgentResult, formatInvalidAgentTypeResult, formatMissingAgentsResult, formatSpawnBlockedResult, formatSyncSubAgentErrorResult, formatSyncSubAgentResult, formatGetAgentResultsErrorResult, formatGetAgentResultsResult, formatGetAgentResultsTimeoutResult, } from "./results.js";
|
|
6
6
|
export { clearInstalledSubAgents, configureSubAgents, getConfiguredSubAgents, getInstalledSubAgentBackend, installLocalSubAgents, installSubAgentTools, LOCAL_SUBAGENT_BACKEND, } from "./installation.js";
|
|
7
7
|
export * from "./roles/index.js";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/subagents/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,uBAAuB,EACvB,cAAc,EACd,YAAY,EACZ,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACtB,+BAA+B,GAChC,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/subagents/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,uBAAuB,EACvB,cAAc,EACd,YAAY,EACZ,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAEpB,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACtB,+BAA+B,GAChC,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EACL,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,wBAAwB,EACxB,0BAA0B,EAC1B,gCAAgC,EAChC,6BAA6B,EAC7B,4BAA4B,EAC5B,yBAAyB,EACzB,wBAAwB,EACxB,6BAA6B,EAC7B,wBAAwB,EACxB,gCAAgC,EAChC,2BAA2B,EAC3B,kCAAkC,GACnC,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAClB,sBAAsB,EACtB,2BAA2B,EAC3B,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,mBAAmB,CAAC;AAC3B,cAAc,kBAAkB,CAAC"}
|
package/dist/subagents/index.js
CHANGED
|
@@ -7,23 +7,23 @@ import {
|
|
|
7
7
|
clearInstalledSubAgents,
|
|
8
8
|
configureSubAgents,
|
|
9
9
|
createCloseAgentTool,
|
|
10
|
+
createGetAgentResultsTool,
|
|
10
11
|
createInspectAgentTool,
|
|
11
12
|
createInvokeAgentTool,
|
|
12
13
|
createSubAgentTools,
|
|
13
|
-
createWaitAgentTool,
|
|
14
14
|
discoverSubAgentRoles,
|
|
15
15
|
formatAsyncSpawnedResult,
|
|
16
16
|
formatCancelledAgentResult,
|
|
17
17
|
formatCloseAlreadyResolvedResult,
|
|
18
18
|
formatCloseMissingAgentResult,
|
|
19
|
+
formatGetAgentResultsErrorResult,
|
|
20
|
+
formatGetAgentResultsResult,
|
|
21
|
+
formatGetAgentResultsTimeoutResult,
|
|
19
22
|
formatInvalidAgentTypeResult,
|
|
20
23
|
formatMissingAgentsResult,
|
|
21
24
|
formatSpawnBlockedResult,
|
|
22
25
|
formatSyncSubAgentErrorResult,
|
|
23
26
|
formatSyncSubAgentResult,
|
|
24
|
-
formatWaitErrorResult,
|
|
25
|
-
formatWaitResult,
|
|
26
|
-
formatWaitTimeoutResult,
|
|
27
27
|
getConfiguredSubAgents,
|
|
28
28
|
getInstalledSubAgentBackend,
|
|
29
29
|
getProjectSubAgentRolesDir,
|
|
@@ -35,11 +35,11 @@ import {
|
|
|
35
35
|
parseSubAgentRoleFrontmatter,
|
|
36
36
|
parseSubAgentToolSpec,
|
|
37
37
|
toSubAgentRole
|
|
38
|
-
} from "../chunk-
|
|
39
|
-
import "../chunk-LPWOYMS2.js";
|
|
40
|
-
import "../chunk-MJML3A2F.js";
|
|
38
|
+
} from "../chunk-K5WUYL2H.js";
|
|
41
39
|
import "../chunk-TPZ37IWI.js";
|
|
40
|
+
import "../chunk-ZETYNQ35.js";
|
|
42
41
|
import "../chunk-EDKZOPUV.js";
|
|
42
|
+
import "../chunk-MJML3A2F.js";
|
|
43
43
|
import "../chunk-CGP6UNCQ.js";
|
|
44
44
|
export {
|
|
45
45
|
DEFAULT_SUBAGENT_CONCURRENCY,
|
|
@@ -50,23 +50,23 @@ export {
|
|
|
50
50
|
clearInstalledSubAgents,
|
|
51
51
|
configureSubAgents,
|
|
52
52
|
createCloseAgentTool,
|
|
53
|
+
createGetAgentResultsTool,
|
|
53
54
|
createInspectAgentTool,
|
|
54
55
|
createInvokeAgentTool,
|
|
55
56
|
createSubAgentTools,
|
|
56
|
-
createWaitAgentTool,
|
|
57
57
|
discoverSubAgentRoles,
|
|
58
58
|
formatAsyncSpawnedResult,
|
|
59
59
|
formatCancelledAgentResult,
|
|
60
60
|
formatCloseAlreadyResolvedResult,
|
|
61
61
|
formatCloseMissingAgentResult,
|
|
62
|
+
formatGetAgentResultsErrorResult,
|
|
63
|
+
formatGetAgentResultsResult,
|
|
64
|
+
formatGetAgentResultsTimeoutResult,
|
|
62
65
|
formatInvalidAgentTypeResult,
|
|
63
66
|
formatMissingAgentsResult,
|
|
64
67
|
formatSpawnBlockedResult,
|
|
65
68
|
formatSyncSubAgentErrorResult,
|
|
66
69
|
formatSyncSubAgentResult,
|
|
67
|
-
formatWaitErrorResult,
|
|
68
|
-
formatWaitResult,
|
|
69
|
-
formatWaitTimeoutResult,
|
|
70
70
|
getConfiguredSubAgents,
|
|
71
71
|
getInstalledSubAgentBackend,
|
|
72
72
|
getProjectSubAgentRolesDir,
|
|
@@ -29,11 +29,11 @@ export declare function formatSpawnBlockedResult(message: string): Tool.ExecuteR
|
|
|
29
29
|
export declare function formatSyncSubAgentResult(roleName: string, result: SubAgentCompletedResult): Tool.ExecuteResult;
|
|
30
30
|
export declare function formatSyncSubAgentErrorResult(roleName: string, error: unknown): Tool.ExecuteResult;
|
|
31
31
|
export declare function formatAsyncSpawnedResult(agentId: string, roleName: string, sessionId?: string): Tool.ExecuteResult;
|
|
32
|
-
export declare function
|
|
32
|
+
export declare function formatGetAgentResultsResult(agentId: string, roleName: string, result: SubAgentCompletedResult): Tool.ExecuteResult;
|
|
33
33
|
export declare function formatInspectMissingAgentResult(id: string): Tool.ExecuteResult;
|
|
34
34
|
export declare function formatInspectAgentResult(result: SubAgentInspectionResult): Tool.ExecuteResult;
|
|
35
|
-
export declare function
|
|
36
|
-
export declare function
|
|
35
|
+
export declare function formatGetAgentResultsTimeoutResult(timeoutMs: number, runningIds: string[]): Tool.ExecuteResult;
|
|
36
|
+
export declare function formatGetAgentResultsErrorResult(error: unknown): Tool.ExecuteResult;
|
|
37
37
|
export declare function formatMissingAgentsResult(ids: string[]): Tool.ExecuteResult;
|
|
38
38
|
export declare function formatCloseMissingAgentResult(id: string): Tool.ExecuteResult;
|
|
39
39
|
export declare function formatCloseAlreadyResolvedResult(id: string, state: string): Tool.ExecuteResult;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"results.d.ts","sourceRoot":"","sources":["../../src/subagents/results.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,WAAW,EAAE,KAAK,CAAC;QACjB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC,CAAC;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAwCD,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAAE,GACnB,IAAI,CAAC,aAAa,CAQpB;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC,aAAa,CAM5E;AAED,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,uBAAuB,GAC9B,IAAI,CAAC,aAAa,CAepB;AAED,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,OAAO,GACb,IAAI,CAAC,aAAa,CASpB;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,GACjB,IAAI,CAAC,aAAa,CAWpB;AAED,wBAAgB,
|
|
1
|
+
{"version":3,"file":"results.d.ts","sourceRoot":"","sources":["../../src/subagents/results.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAE1D,MAAM,WAAW,wBAAwB;IACvC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,WAAW,EAAE,KAAK,CAAC;QACjB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,QAAQ,EAAE,MAAM,CAAC;KAClB,CAAC,CAAC;IACH,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAwCD,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,MAAM,EAChB,UAAU,EAAE,MAAM,EAAE,GACnB,IAAI,CAAC,aAAa,CAQpB;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC,aAAa,CAM5E;AAED,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,uBAAuB,GAC9B,IAAI,CAAC,aAAa,CAepB;AAED,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,OAAO,GACb,IAAI,CAAC,aAAa,CASpB;AAED,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,GACjB,IAAI,CAAC,aAAa,CAWpB;AAED,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,uBAAuB,GAC9B,IAAI,CAAC,aAAa,CAgBpB;AAED,wBAAgB,+BAA+B,CAC7C,EAAE,EAAE,MAAM,GACT,IAAI,CAAC,aAAa,CAMpB;AAED,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,wBAAwB,GAC/B,IAAI,CAAC,aAAa,CAkDpB;AAED,wBAAgB,kCAAkC,CAChD,SAAS,EAAE,MAAM,EACjB,UAAU,EAAE,MAAM,EAAE,GACnB,IAAI,CAAC,aAAa,CAWpB;AAED,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,OAAO,GACb,IAAI,CAAC,aAAa,CAMpB;AAED,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC,aAAa,CAM3E;AAED,wBAAgB,6BAA6B,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC,aAAa,CAM5E;AAED,wBAAgB,gCAAgC,CAC9C,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,GACZ,IAAI,CAAC,aAAa,CAMpB;AAED,wBAAgB,0BAA0B,CACxC,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,MAAM,GACf,IAAI,CAAC,aAAa,CAMpB"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import type { DispatchRuntime } from "../dispatch/types.js";
|
|
2
2
|
import { Tool } from "../tool/tool.js";
|
|
3
3
|
import type { SubAgentRole } from "./types.js";
|
|
4
|
-
export declare const SUBAGENT_TOOL_IDS: readonly ["invoke_agent", "
|
|
4
|
+
export declare const SUBAGENT_TOOL_IDS: readonly ["invoke_agent", "get_agent_results", "inspect_agent", "close_agent"];
|
|
5
5
|
export declare function createInvokeAgentTool(runtime: DispatchRuntime, roles: readonly SubAgentRole[], options?: {
|
|
6
6
|
async?: boolean;
|
|
7
7
|
sessionTitlePrefix?: string;
|
|
8
8
|
}): Tool.AnyInfo;
|
|
9
|
-
export declare function
|
|
9
|
+
export declare function createGetAgentResultsTool(runtime: DispatchRuntime): Tool.AnyInfo;
|
|
10
10
|
export declare function createInspectAgentTool(runtime: DispatchRuntime): Tool.AnyInfo;
|
|
11
11
|
export declare function createCloseAgentTool(runtime: DispatchRuntime): Tool.AnyInfo;
|
|
12
12
|
//# sourceMappingURL=tool-factories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-factories.d.ts","sourceRoot":"","sources":["../../src/subagents/tool-factories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,KAAK,EAA2B,YAAY,EAAE,MAAM,YAAY,CAAC;AAuBxE,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"tool-factories.d.ts","sourceRoot":"","sources":["../../src/subagents/tool-factories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAkB,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5E,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,KAAK,EAA2B,YAAY,EAAE,MAAM,YAAY,CAAC;AAuBxE,eAAO,MAAM,iBAAiB,gFAKpB,CAAC;AAyGX,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,eAAe,EACxB,KAAK,EAAE,SAAS,YAAY,EAAE,EAC9B,OAAO,CAAC,EAAE;IACR,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,GACA,IAAI,CAAC,OAAO,CAyEd;AAED,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,eAAe,GACvB,IAAI,CAAC,OAAO,CAsDd;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC,OAAO,CAgC7E;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC,OAAO,CAuB3E"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Subagent tools.
|
|
3
3
|
*
|
|
4
|
-
* Provides `invoke_agent`, `
|
|
4
|
+
* Provides `invoke_agent`, `get_agent_results`, `inspect_agent`, and `close_agent`
|
|
5
5
|
* backed by the local in-process dispatch runtime.
|
|
6
6
|
*
|
|
7
7
|
* @packageDocumentation
|
package/dist/tool/index.js
CHANGED
|
@@ -17,9 +17,9 @@ import {
|
|
|
17
17
|
} from "../chunk-MJML3A2F.js";
|
|
18
18
|
import {
|
|
19
19
|
executeAgentToolCall
|
|
20
|
-
} from "../chunk-
|
|
20
|
+
} from "../chunk-S2L4AJ72.js";
|
|
21
21
|
import "../chunk-AHDCR7SX.js";
|
|
22
|
-
import "../chunk-
|
|
22
|
+
import "../chunk-FFSB7RFD.js";
|
|
23
23
|
import {
|
|
24
24
|
getRequiredToolHost,
|
|
25
25
|
resolveCapability
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Tool
|
|
3
|
-
} from "./chunk-MJML3A2F.js";
|
|
4
1
|
import {
|
|
5
2
|
buildEntryPath,
|
|
6
3
|
deserializeMessage
|
|
7
4
|
} from "./chunk-EDKZOPUV.js";
|
|
5
|
+
import {
|
|
6
|
+
Tool
|
|
7
|
+
} from "./chunk-MJML3A2F.js";
|
|
8
8
|
|
|
9
9
|
// src/agent/session.ts
|
|
10
10
|
async function ensureSessionLoaded(options) {
|