@cuylabs/agent-core 0.9.0 → 0.10.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/README.md +33 -17
- package/dist/chunk-2O4MCSQS.js +780 -0
- package/dist/chunk-2TTOLHBT.js +198 -0
- package/dist/chunk-5FMSGQVX.js +281 -0
- package/dist/chunk-5NVVNXPQ.js +288 -0
- package/dist/{chunk-EKR6PKXU.js → chunk-6HZBHFOL.js} +3 -3
- package/dist/chunk-CJI7PVS2.js +58 -0
- package/dist/{chunk-WKHDSSXG.js → chunk-CMYN2RCB.js} +146 -46
- package/dist/chunk-FII65CN7.js +117 -0
- package/dist/{chunk-UHCJEM2E.js → chunk-ICZ66572.js} +13 -6
- package/dist/chunk-KYLPMBHD.js +316 -0
- package/dist/chunk-MXAP4UG6.js +2956 -0
- package/dist/{chunk-4QFNWPIF.js → chunk-N3VX7FEE.js} +35 -2
- package/dist/{chunk-MAZ5DY5B.js → chunk-NDZWXCBZ.js} +213 -78
- package/dist/{chunk-MHKK374K.js → chunk-Q742PSH3.js} +11 -27
- package/dist/{chunk-WGZAPU6N.js → chunk-QAL3OMI3.js} +15 -1
- package/dist/{chunk-UDCZ673N.js → chunk-RN6WZEUF.js} +27 -23
- package/dist/{chunk-ZXAKHMWH.js → chunk-ROTGCYDW.js} +22 -84
- package/dist/chunk-SPBFQXOT.js +0 -0
- package/dist/chunk-SSFBF3US.js +602 -0
- package/dist/chunk-SZ2XBPTW.js +8 -0
- package/dist/chunk-T4UIX5D7.js +115 -0
- package/dist/{chunk-IYWQOJMQ.js → chunk-TIHPYVAJ.js} +34 -34
- package/dist/{chunk-RKEW5WXI.js → chunk-TOTDGK3P.js} +1 -1
- package/dist/chunk-V4RFNEET.js +563 -0
- package/dist/chunk-VOUEJSW6.js +0 -0
- package/dist/{chunk-J4QDGZIA.js → chunk-WBPOZ7CL.js} +659 -275
- package/dist/chunk-X4VN4GIJ.js +185 -0
- package/dist/dispatch/index.d.ts +93 -0
- package/dist/dispatch/index.js +37 -0
- package/dist/events/index.d.ts +93 -0
- package/dist/events/index.js +6 -0
- package/dist/{runtime → execution}/index.d.ts +120 -35
- package/dist/{runtime → execution}/index.js +17 -11
- package/dist/index.d.ts +489 -115
- package/dist/index.js +1665 -462
- package/dist/inference/errors/index.js +1 -1
- package/dist/inference/index.d.ts +13 -21
- package/dist/inference/index.js +15 -12
- package/dist/instance-BqV2D5pc.d.ts +5723 -0
- package/dist/logger/index.d.ts +50 -0
- package/dist/logger/index.js +11 -0
- package/dist/mcp/index.d.ts +5 -9
- package/dist/mcp/index.js +2 -3
- package/dist/middleware/index.d.ts +10 -150
- package/dist/middleware/index.js +10 -2
- package/dist/model-messages-B4nK9D1-.d.ts +13 -0
- package/dist/models/index.d.ts +5 -2
- package/dist/models/index.js +2 -1
- package/dist/models/reasoning/index.js +2 -1
- package/dist/plugin/index.d.ts +55 -11
- package/dist/plugin/index.js +1 -1
- package/dist/profiles/index.d.ts +55 -0
- package/dist/{presets → profiles}/index.js +10 -10
- package/dist/prompt/index.d.ts +8 -13
- package/dist/safety/index.d.ts +109 -14
- package/dist/safety/index.js +59 -3
- package/dist/sandbox/index.d.ts +81 -0
- package/dist/sandbox/index.js +1 -0
- package/dist/skill/index.d.ts +10 -8
- package/dist/skill/index.js +2 -2
- package/dist/storage/index.d.ts +12 -4
- package/dist/storage/index.js +1 -1
- package/dist/subagents/index.d.ts +177 -0
- package/dist/subagents/index.js +78 -0
- package/dist/team/index.d.ts +544 -0
- package/dist/team/index.js +41 -0
- package/dist/tool/host/index.d.ts +41 -0
- package/dist/tool/host/index.js +10 -0
- package/dist/tool/index.d.ts +111 -21
- package/dist/tool/index.js +20 -13
- package/dist/{types-VQgymC1N.d.ts → types-Bj_J8u_W.d.ts} +44 -64
- package/dist/{types-CHiPh8U2.d.ts → types-C_LCeYNg.d.ts} +7 -7
- package/dist/types-RSCv7nQ4.d.ts +59 -0
- package/package.json +46 -47
- package/dist/builder-BgZ_j4Vs.d.ts +0 -35
- package/dist/chunk-5ARZJWD2.js +0 -259
- package/dist/chunk-DXFBQMXP.js +0 -53
- package/dist/chunk-H3FUYU52.js +0 -81
- package/dist/chunk-JLXG2SH7.js +0 -905
- package/dist/chunk-N7P4PN3O.js +0 -84
- package/dist/chunk-OFDKHNCX.js +0 -727
- package/dist/chunk-SDSBEQXG.js +0 -157
- package/dist/chunk-VEKUXUVF.js +0 -41
- package/dist/chunk-VNQBHPCT.js +0 -398
- package/dist/chunk-WWYYNWEW.js +0 -259
- package/dist/context/index.d.ts +0 -259
- package/dist/context/index.js +0 -26
- package/dist/events-CE72w8W4.d.ts +0 -149
- package/dist/host/index.d.ts +0 -45
- package/dist/host/index.js +0 -8
- package/dist/index-DQuTZ8xL.d.ts +0 -1335
- package/dist/messages-BYWGn8TY.d.ts +0 -110
- package/dist/presets/index.d.ts +0 -53
- package/dist/registry-DwYqsQkX.d.ts +0 -164
- package/dist/runner-CI-XeR16.d.ts +0 -91
- package/dist/scope/index.d.ts +0 -10
- package/dist/scope/index.js +0 -14
- package/dist/session-manager-KbYt2WUh.d.ts +0 -282
- package/dist/signal/index.d.ts +0 -28
- package/dist/signal/index.js +0 -6
- package/dist/sub-agent/index.d.ts +0 -24
- package/dist/sub-agent/index.js +0 -32
- package/dist/tool-CZWN3KbO.d.ts +0 -141
- package/dist/tool-DkhSCV2Y.d.ts +0 -145
- package/dist/tracker-DClqYqTj.d.ts +0 -96
- package/dist/tracking/index.d.ts +0 -111
- package/dist/tracking/index.js +0 -20
- package/dist/types-BfNpU8NS.d.ts +0 -270
- package/dist/types-BlOKk-Bb.d.ts +0 -330
- package/dist/types-BlZwmnuW.d.ts +0 -50
- package/dist/types-CQL-SvTn.d.ts +0 -29
- package/dist/types-CWm-7rvB.d.ts +0 -55
- package/dist/types-DTSkxakL.d.ts +0 -651
- package/dist/types-DmDwi2zI.d.ts +0 -339
- package/dist/types-YuWV4ag7.d.ts +0 -72
package/dist/safety/index.d.ts
CHANGED
|
@@ -1,10 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { c9 as RiskLevel, ap as ApprovalRule, an as ApprovalRequest, aq as ApprovalRuleContext, ca as RuleSource, ae as ApprovalCascadePolicy, am as ApprovalRememberScope, ah as ApprovalDecision, af as ApprovalConfig } from '../instance-BqV2D5pc.js';
|
|
2
|
+
export { ab as ApprovalAction, ad as ApprovalCascadeMode, ag as ApprovalCorrection, ai as ApprovalEvaluation, ak as ApprovalHandler, ao as ApprovalResolution, dE as createApprovalHandler } from '../instance-BqV2D5pc.js';
|
|
3
|
+
import '../types-C_LCeYNg.js';
|
|
4
|
+
import 'ai';
|
|
5
|
+
import '../types-RSCv7nQ4.js';
|
|
6
|
+
import 'zod';
|
|
7
|
+
import '../types-CQaXbRsS.js';
|
|
8
|
+
import '../types-Bj_J8u_W.js';
|
|
9
|
+
import '@ai-sdk/provider-utils';
|
|
10
|
+
import '../sandbox/index.js';
|
|
11
|
+
import '../llm-error-D93FNNLY.js';
|
|
3
12
|
|
|
4
13
|
/**
|
|
5
14
|
* Get the risk level for a tool.
|
|
15
|
+
*
|
|
16
|
+
* Resolution order (first match wins):
|
|
17
|
+
* 1. Caller-supplied `customRisks` map (e.g. from ApprovalMiddlewareConfig)
|
|
18
|
+
* 2. Tool-declared `riskLevel` from capabilities (set via Tool.define)
|
|
19
|
+
* 3. Built-in `DEFAULT_TOOL_RISKS` map
|
|
20
|
+
* 4. Fallback: `"moderate"`
|
|
6
21
|
*/
|
|
7
|
-
declare function getToolRisk(tool: string, customRisks?: Record<string, RiskLevel
|
|
22
|
+
declare function getToolRisk(tool: string, customRisks?: Record<string, RiskLevel>,
|
|
23
|
+
/** Risk level declared by the tool's own capabilities. */
|
|
24
|
+
declaredRisk?: RiskLevel): RiskLevel;
|
|
8
25
|
|
|
9
26
|
/**
|
|
10
27
|
* Thrown when a user or rule denies an operation.
|
|
@@ -12,7 +29,8 @@ declare function getToolRisk(tool: string, customRisks?: Record<string, RiskLeve
|
|
|
12
29
|
declare class ApprovalDeniedError extends Error {
|
|
13
30
|
readonly tool: string;
|
|
14
31
|
readonly args: unknown;
|
|
15
|
-
|
|
32
|
+
readonly feedback?: string;
|
|
33
|
+
constructor(tool: string, args: unknown, detail?: string);
|
|
16
34
|
}
|
|
17
35
|
/**
|
|
18
36
|
* Thrown when an approval request times out.
|
|
@@ -23,16 +41,93 @@ declare class ApprovalTimeoutError extends Error {
|
|
|
23
41
|
constructor(tool: string, timeoutMs: number);
|
|
24
42
|
}
|
|
25
43
|
|
|
44
|
+
type ApprovalRuleCondition = NonNullable<ApprovalRule["when"]>;
|
|
45
|
+
declare function createConditionalApprovalRule(rule: Omit<ApprovalRule, "when">, when: ApprovalRuleCondition): ApprovalRule;
|
|
46
|
+
declare function allApprovalConditions(...conditions: ApprovalRuleCondition[]): ApprovalRuleCondition;
|
|
47
|
+
declare function anyApprovalConditions(...conditions: ApprovalRuleCondition[]): ApprovalRuleCondition;
|
|
48
|
+
declare function matchApprovalSessions(...sessionIds: string[]): ApprovalRuleCondition;
|
|
49
|
+
declare function matchApprovalRisks(...risks: RiskLevel[]): ApprovalRuleCondition;
|
|
50
|
+
declare function matchApprovalArgValue(path: string, predicate: (value: unknown, context: ApprovalRuleContext) => boolean): ApprovalRuleCondition;
|
|
51
|
+
interface ApprovalNumericThresholdOptions {
|
|
52
|
+
gt?: number;
|
|
53
|
+
gte?: number;
|
|
54
|
+
lt?: number;
|
|
55
|
+
lte?: number;
|
|
56
|
+
}
|
|
57
|
+
declare function matchApprovalNumericArg(path: string, thresholds: ApprovalNumericThresholdOptions): ApprovalRuleCondition;
|
|
58
|
+
declare function matchApprovalStringPrefixes(path: string, ...prefixes: string[]): ApprovalRuleCondition;
|
|
59
|
+
declare function normalizeApprovalCascadePolicy(input?: ApprovalCascadePolicy): Required<ApprovalCascadePolicy>;
|
|
60
|
+
declare function normalizeRememberScopes(scopes?: readonly ApprovalRememberScope[]): ApprovalRememberScope[];
|
|
61
|
+
declare function selectRememberScope(decision: ApprovalDecision, request: ApprovalRequest, fallback?: ApprovalRememberScope): ApprovalRememberScope;
|
|
62
|
+
declare function createRememberedApprovalRules(request: ApprovalRequest, source?: RuleSource): ApprovalRule[];
|
|
63
|
+
declare function approvalRequestsOverlap(left: ApprovalRequest, right: ApprovalRequest): boolean;
|
|
64
|
+
declare function shouldCascadeApprovalDecision(resolved: ApprovalRequest, candidate: ApprovalRequest, decision: ApprovalDecision): boolean;
|
|
65
|
+
declare function formatApprovalDeniedReason(tool: string, detail?: string): string;
|
|
66
|
+
declare function createApprovalCorrection(tool: string, detail?: string): {
|
|
67
|
+
kind: "approval-denied";
|
|
68
|
+
tool: string;
|
|
69
|
+
reason: string;
|
|
70
|
+
feedback?: string;
|
|
71
|
+
};
|
|
72
|
+
declare function buildApprovalRuleContext(sessionId: string, tool: string, args: unknown, risk: RiskLevel, patternExtractor?: (input: unknown) => string[]): ApprovalRuleContext;
|
|
73
|
+
|
|
74
|
+
type ApprovalPolicyPresetName = "interactive" | "headless-deny" | "dangerously-allow-all" | "risk-tier";
|
|
75
|
+
interface ApprovalPolicyPresetOptions {
|
|
76
|
+
onRequest?: ApprovalConfig["onRequest"];
|
|
77
|
+
rules?: ApprovalRule[];
|
|
78
|
+
timeout?: number;
|
|
79
|
+
rememberScope?: ApprovalRememberScope;
|
|
80
|
+
allowedRememberScopes?: ApprovalConfig["allowedRememberScopes"];
|
|
81
|
+
cascade?: ApprovalConfig["cascade"];
|
|
82
|
+
}
|
|
83
|
+
interface RiskTierApprovalPolicyOptions extends ApprovalPolicyPresetOptions {
|
|
84
|
+
safe?: ApprovalConfig["defaultAction"];
|
|
85
|
+
moderate?: ApprovalConfig["defaultAction"];
|
|
86
|
+
dangerous?: ApprovalConfig["defaultAction"];
|
|
87
|
+
source?: RuleSource;
|
|
88
|
+
}
|
|
89
|
+
interface TrustedSessionApprovalPolicyOptions extends ApprovalPolicyPresetOptions {
|
|
90
|
+
sessionIds: string[];
|
|
91
|
+
tools?: string[];
|
|
92
|
+
patterns?: string[];
|
|
93
|
+
risks?: RiskLevel[];
|
|
94
|
+
source?: RuleSource;
|
|
95
|
+
}
|
|
96
|
+
interface ThresholdApprovalRuleOptions {
|
|
97
|
+
tool: string;
|
|
98
|
+
pattern?: string;
|
|
99
|
+
action: "allow" | "deny";
|
|
100
|
+
argPath: string;
|
|
101
|
+
gt?: number;
|
|
102
|
+
gte?: number;
|
|
103
|
+
lt?: number;
|
|
104
|
+
lte?: number;
|
|
105
|
+
source?: RuleSource;
|
|
106
|
+
reason?: string;
|
|
107
|
+
}
|
|
108
|
+
declare function createInteractiveApprovalPolicy(options?: ApprovalPolicyPresetOptions): ApprovalConfig;
|
|
109
|
+
declare function createHeadlessDenyApprovalPolicy(options?: Omit<ApprovalPolicyPresetOptions, "onRequest">): ApprovalConfig;
|
|
110
|
+
declare function createDangerouslyAllowAllApprovalPolicy(options?: Omit<ApprovalPolicyPresetOptions, "onRequest">): ApprovalConfig;
|
|
111
|
+
declare function createRiskTierApprovalPolicy(options?: RiskTierApprovalPolicyOptions): ApprovalConfig;
|
|
112
|
+
declare function createTrustedSessionApprovalPolicy(options: TrustedSessionApprovalPolicyOptions): ApprovalConfig;
|
|
113
|
+
declare function createThresholdApprovalRule(options: ThresholdApprovalRuleOptions): ApprovalRule;
|
|
114
|
+
declare function createApprovalPolicyPreset(name: ApprovalPolicyPresetName, options?: ApprovalPolicyPresetOptions | RiskTierApprovalPolicyOptions): ApprovalConfig;
|
|
115
|
+
|
|
26
116
|
/**
|
|
27
|
-
*
|
|
117
|
+
* Simple glob-style pattern matching.
|
|
118
|
+
* Supports: `*` (any chars), `?` (single char)
|
|
119
|
+
*
|
|
120
|
+
* Uses an iterative two-pointer approach instead of regex
|
|
121
|
+
* to avoid ReDoS risk from user-provided patterns.
|
|
28
122
|
*/
|
|
29
|
-
declare function
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
123
|
+
declare function matchApprovalPattern(pattern: string, value: string): boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Extract approval patterns from tool arguments for "remember" functionality.
|
|
126
|
+
*/
|
|
127
|
+
declare function extractApprovalPatterns(tool: string, args: unknown): string[];
|
|
128
|
+
/**
|
|
129
|
+
* Generate a human-readable description of an operation.
|
|
130
|
+
*/
|
|
131
|
+
declare function describeApprovalOperation(tool: string, args: unknown): string;
|
|
37
132
|
|
|
38
|
-
export { ApprovalConfig, ApprovalDeniedError, type
|
|
133
|
+
export { ApprovalCascadePolicy, ApprovalConfig, ApprovalDecision, ApprovalDeniedError, type ApprovalPolicyPresetName, type ApprovalPolicyPresetOptions, ApprovalRememberScope, ApprovalRequest, ApprovalRule, type ApprovalRuleCondition, ApprovalRuleContext, ApprovalTimeoutError, RiskLevel, type RiskTierApprovalPolicyOptions, RuleSource, type ThresholdApprovalRuleOptions, type TrustedSessionApprovalPolicyOptions, allApprovalConditions, anyApprovalConditions, approvalRequestsOverlap, buildApprovalRuleContext, createApprovalCorrection, createApprovalPolicyPreset, createConditionalApprovalRule, createDangerouslyAllowAllApprovalPolicy, createHeadlessDenyApprovalPolicy, createInteractiveApprovalPolicy, createRememberedApprovalRules, createRiskTierApprovalPolicy, createThresholdApprovalRule, createTrustedSessionApprovalPolicy, describeApprovalOperation, extractApprovalPatterns, formatApprovalDeniedReason, getToolRisk, matchApprovalArgValue, matchApprovalNumericArg, matchApprovalPattern, matchApprovalRisks, matchApprovalSessions, matchApprovalStringPrefixes, normalizeApprovalCascadePolicy, normalizeRememberScopes, selectRememberScope, shouldCascadeApprovalDecision };
|
package/dist/safety/index.js
CHANGED
|
@@ -1,12 +1,68 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ApprovalDeniedError,
|
|
3
3
|
ApprovalTimeoutError,
|
|
4
|
+
allApprovalConditions,
|
|
5
|
+
anyApprovalConditions,
|
|
6
|
+
approvalRequestsOverlap,
|
|
7
|
+
buildApprovalRuleContext,
|
|
8
|
+
createApprovalCorrection,
|
|
4
9
|
createApprovalHandler,
|
|
5
|
-
|
|
6
|
-
|
|
10
|
+
createApprovalPolicyPreset,
|
|
11
|
+
createConditionalApprovalRule,
|
|
12
|
+
createDangerouslyAllowAllApprovalPolicy,
|
|
13
|
+
createHeadlessDenyApprovalPolicy,
|
|
14
|
+
createInteractiveApprovalPolicy,
|
|
15
|
+
createRememberedApprovalRules,
|
|
16
|
+
createRiskTierApprovalPolicy,
|
|
17
|
+
createThresholdApprovalRule,
|
|
18
|
+
createTrustedSessionApprovalPolicy,
|
|
19
|
+
formatApprovalDeniedReason,
|
|
20
|
+
getToolRisk,
|
|
21
|
+
matchApprovalArgValue,
|
|
22
|
+
matchApprovalNumericArg,
|
|
23
|
+
matchApprovalRisks,
|
|
24
|
+
matchApprovalSessions,
|
|
25
|
+
matchApprovalStringPrefixes,
|
|
26
|
+
normalizeApprovalCascadePolicy,
|
|
27
|
+
normalizeRememberScopes,
|
|
28
|
+
selectRememberScope,
|
|
29
|
+
shouldCascadeApprovalDecision
|
|
30
|
+
} from "../chunk-V4RFNEET.js";
|
|
31
|
+
import {
|
|
32
|
+
describeApprovalOperation,
|
|
33
|
+
extractApprovalPatterns,
|
|
34
|
+
matchApprovalPattern
|
|
35
|
+
} from "../chunk-FII65CN7.js";
|
|
7
36
|
export {
|
|
8
37
|
ApprovalDeniedError,
|
|
9
38
|
ApprovalTimeoutError,
|
|
39
|
+
allApprovalConditions,
|
|
40
|
+
anyApprovalConditions,
|
|
41
|
+
approvalRequestsOverlap,
|
|
42
|
+
buildApprovalRuleContext,
|
|
43
|
+
createApprovalCorrection,
|
|
10
44
|
createApprovalHandler,
|
|
11
|
-
|
|
45
|
+
createApprovalPolicyPreset,
|
|
46
|
+
createConditionalApprovalRule,
|
|
47
|
+
createDangerouslyAllowAllApprovalPolicy,
|
|
48
|
+
createHeadlessDenyApprovalPolicy,
|
|
49
|
+
createInteractiveApprovalPolicy,
|
|
50
|
+
createRememberedApprovalRules,
|
|
51
|
+
createRiskTierApprovalPolicy,
|
|
52
|
+
createThresholdApprovalRule,
|
|
53
|
+
createTrustedSessionApprovalPolicy,
|
|
54
|
+
describeApprovalOperation,
|
|
55
|
+
extractApprovalPatterns,
|
|
56
|
+
formatApprovalDeniedReason,
|
|
57
|
+
getToolRisk,
|
|
58
|
+
matchApprovalArgValue,
|
|
59
|
+
matchApprovalNumericArg,
|
|
60
|
+
matchApprovalPattern,
|
|
61
|
+
matchApprovalRisks,
|
|
62
|
+
matchApprovalSessions,
|
|
63
|
+
matchApprovalStringPrefixes,
|
|
64
|
+
normalizeApprovalCascadePolicy,
|
|
65
|
+
normalizeRememberScopes,
|
|
66
|
+
selectRememberScope,
|
|
67
|
+
shouldCascadeApprovalDecision
|
|
12
68
|
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { T as ToolHost } from '../types-C_LCeYNg.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Preview endpoint exposed by a managed sandbox environment.
|
|
5
|
+
*/
|
|
6
|
+
interface SandboxPreview {
|
|
7
|
+
/** The internal port inside the environment. */
|
|
8
|
+
port: number;
|
|
9
|
+
/** Publicly reachable URL for the preview. */
|
|
10
|
+
url: string;
|
|
11
|
+
/** Optional user-facing label. */
|
|
12
|
+
label?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Snapshot handle returned by a sandbox implementation.
|
|
16
|
+
*/
|
|
17
|
+
interface SandboxSnapshotResult {
|
|
18
|
+
/** Provider-specific snapshot identifier. */
|
|
19
|
+
id: string;
|
|
20
|
+
/** Optional display label or description. */
|
|
21
|
+
label?: string;
|
|
22
|
+
/** Provider-specific metadata for later restore flows. */
|
|
23
|
+
metadata?: Record<string, unknown>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Metadata describing a managed sandbox session.
|
|
27
|
+
*/
|
|
28
|
+
interface SandboxSessionMetadata {
|
|
29
|
+
/** Implementation kind such as "docker", "local", or "cloud". */
|
|
30
|
+
kind?: string;
|
|
31
|
+
/** Human-readable label for logs or dashboards. */
|
|
32
|
+
label?: string;
|
|
33
|
+
/** Working directory exposed through the embedded ToolHost. */
|
|
34
|
+
workingDirectory?: string;
|
|
35
|
+
/** Extra environment details suitable for prompts or UI surfaces. */
|
|
36
|
+
environmentDetails?: string;
|
|
37
|
+
/** Preview endpoints exposed by the environment. */
|
|
38
|
+
previews?: readonly SandboxPreview[];
|
|
39
|
+
/** Session expiration timestamp when managed by a lease/timeout system. */
|
|
40
|
+
expiresAt?: number;
|
|
41
|
+
/** Initial timeout/lease duration in milliseconds. */
|
|
42
|
+
timeoutMs?: number;
|
|
43
|
+
/** Provider-specific metadata. */
|
|
44
|
+
[key: string]: unknown;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Managed execution environment used by host-backed tools.
|
|
48
|
+
*
|
|
49
|
+
* A SandboxSession owns environment lifecycle concerns such as start/stop,
|
|
50
|
+
* snapshots, timeout extension, and preview URLs, while exposing a `ToolHost`
|
|
51
|
+
* for the actual file/shell operations tools perform.
|
|
52
|
+
*/
|
|
53
|
+
interface SandboxSession {
|
|
54
|
+
/** Stable identifier for the environment session. */
|
|
55
|
+
readonly id: string;
|
|
56
|
+
/** Tool execution surface exposed by the environment. */
|
|
57
|
+
readonly host: ToolHost;
|
|
58
|
+
/** Optional metadata about the environment. */
|
|
59
|
+
readonly metadata?: SandboxSessionMetadata;
|
|
60
|
+
/** Stop and clean up the environment. */
|
|
61
|
+
stop(): Promise<void>;
|
|
62
|
+
/** Create a restorable snapshot when supported by the provider. */
|
|
63
|
+
snapshot?(): Promise<SandboxSnapshotResult>;
|
|
64
|
+
/** Extend the environment lease/timeout when supported. */
|
|
65
|
+
extendTimeout?(additionalMs: number): Promise<{
|
|
66
|
+
expiresAt: number;
|
|
67
|
+
} | void>;
|
|
68
|
+
/** Return a preview URL for an exposed port when supported. */
|
|
69
|
+
getPreviewUrl?(port: number): string | undefined;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Factory/connector surface for sandbox implementations.
|
|
73
|
+
*
|
|
74
|
+
* Providers may support only `connect`, only `create`, or both.
|
|
75
|
+
*/
|
|
76
|
+
interface SandboxProvider<TConnectOptions = unknown, TCreateOptions = TConnectOptions> {
|
|
77
|
+
connect?(options: TConnectOptions): Promise<SandboxSession>;
|
|
78
|
+
create?(options: TCreateOptions): Promise<SandboxSession>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type { SandboxPreview, SandboxProvider, SandboxSession, SandboxSessionMetadata, SandboxSnapshotResult };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "../chunk-VOUEJSW6.js";
|
package/dist/skill/index.d.ts
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import
|
|
1
|
+
import { cy as SkillScope, cz as SkillSource, cu as SkillMetadata, cx as SkillResourceType, cw as SkillResource, cr as SkillContent, cq as SkillConfig, ct as SkillDiscoveryResult, cv as SkillRegistry, T as Tool } from '../instance-BqV2D5pc.js';
|
|
2
|
+
export { c7 as RemoteSkillEntry, c8 as RemoteSkillIndex, cs as SkillDiscoveryError, cA as SkillSourceType, dH as createSkillRegistry, dJ as emptySkillRegistry } from '../instance-BqV2D5pc.js';
|
|
3
|
+
import '../types-C_LCeYNg.js';
|
|
4
|
+
import 'ai';
|
|
5
|
+
import '../types-RSCv7nQ4.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../
|
|
8
|
-
import '../types-
|
|
9
|
-
import '
|
|
7
|
+
import '../types-CQaXbRsS.js';
|
|
8
|
+
import '../types-Bj_J8u_W.js';
|
|
9
|
+
import '@ai-sdk/provider-utils';
|
|
10
|
+
import '../sandbox/index.js';
|
|
11
|
+
import '../llm-error-D93FNNLY.js';
|
|
10
12
|
|
|
11
13
|
declare const SKILL_FILENAME = "SKILL.md";
|
|
12
14
|
declare const DEFAULT_SKILL_MAX_SIZE = 102400;
|
package/dist/skill/index.js
CHANGED
|
@@ -2,8 +2,7 @@ import {
|
|
|
2
2
|
createSkillResourceTool,
|
|
3
3
|
createSkillTool,
|
|
4
4
|
createSkillTools
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-MHKK374K.js";
|
|
5
|
+
} from "../chunk-TOTDGK3P.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-SPILYYDF.js";
|
|
21
|
+
import "../chunk-Q742PSH3.js";
|
|
22
22
|
export {
|
|
23
23
|
DEFAULT_EXTERNAL_DIRS,
|
|
24
24
|
DEFAULT_MAX_SCAN_DEPTH,
|
package/dist/storage/index.d.ts
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import {
|
|
1
|
+
import { b8 as FileEntry, ci as SessionEntry, M as Message, bB as MessageEntry, bJ as MetadataEntry, cf as SerializedMessage, ck as SessionInfo, cl as SessionStorage, cj as SessionHeader, S as SessionManager } from '../instance-BqV2D5pc.js';
|
|
2
|
+
export { at as BranchEntry, ay as CompactionEntry, aA as ConfigChangeEntry, aG as CreateSessionOptions, b5 as EntryBase, ce as STORAGE_VERSION, ch as SessionContext } from '../instance-BqV2D5pc.js';
|
|
3
|
+
import { L as Logger } from '../types-RSCv7nQ4.js';
|
|
4
|
+
import '../types-C_LCeYNg.js';
|
|
5
|
+
import 'ai';
|
|
6
|
+
import 'zod';
|
|
7
|
+
import '../types-CQaXbRsS.js';
|
|
8
|
+
import '../types-Bj_J8u_W.js';
|
|
9
|
+
import '@ai-sdk/provider-utils';
|
|
10
|
+
import '../sandbox/index.js';
|
|
11
|
+
import '../llm-error-D93FNNLY.js';
|
|
4
12
|
|
|
5
13
|
/**
|
|
6
14
|
* Storage Utilities
|
|
@@ -17,7 +25,7 @@ declare function generateEntryId(existingIds?: Set<string>): string;
|
|
|
17
25
|
* Parse JSONL content into entries
|
|
18
26
|
* Handles malformed lines gracefully
|
|
19
27
|
*/
|
|
20
|
-
declare function parseJSONL<T>(content: string): T[];
|
|
28
|
+
declare function parseJSONL<T>(content: string, logger?: Logger): T[];
|
|
21
29
|
/**
|
|
22
30
|
* Serialize entry to JSONL line
|
|
23
31
|
*/
|
package/dist/storage/index.js
CHANGED
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { aT as DispatchRole, aS as DispatchResult, br as LocalDispatchRuntimeOptions, B as Agent, T as Tool, aU as DispatchRuntime, c2 as Profile } from '../instance-BqV2D5pc.js';
|
|
2
|
+
import '../types-C_LCeYNg.js';
|
|
3
|
+
import 'ai';
|
|
4
|
+
import '../types-RSCv7nQ4.js';
|
|
5
|
+
import 'zod';
|
|
6
|
+
import '../types-CQaXbRsS.js';
|
|
7
|
+
import '../types-Bj_J8u_W.js';
|
|
8
|
+
import '@ai-sdk/provider-utils';
|
|
9
|
+
import '../sandbox/index.js';
|
|
10
|
+
import '../llm-error-D93FNNLY.js';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Subagent types.
|
|
14
|
+
*
|
|
15
|
+
* Subagents are the model-facing tool surface built on top of the local
|
|
16
|
+
* dispatch runtime.
|
|
17
|
+
*
|
|
18
|
+
* @packageDocumentation
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
type SubAgentRole = DispatchRole;
|
|
22
|
+
interface SubAgentCompletedResult extends DispatchResult {
|
|
23
|
+
sessionId: string;
|
|
24
|
+
}
|
|
25
|
+
interface SubAgentConfig extends Omit<LocalDispatchRuntimeOptions, "parent" | "childToolIds" | "createChildTools"> {
|
|
26
|
+
async?: boolean;
|
|
27
|
+
}
|
|
28
|
+
type SubAgentToolsOptions = SubAgentConfig;
|
|
29
|
+
declare const DEFAULT_SUBAGENT_CONCURRENCY = 6;
|
|
30
|
+
declare const DEFAULT_SUBAGENT_DEPTH = 2;
|
|
31
|
+
declare const DEFAULT_SUBAGENT_SESSION_PREFIX = "Subagent";
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Subagent tools.
|
|
35
|
+
*
|
|
36
|
+
* Provides `invoke_agent`, `wait_agent`, and `close_agent` backed by the
|
|
37
|
+
* local in-process dispatch runtime.
|
|
38
|
+
*
|
|
39
|
+
* @packageDocumentation
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
declare function createSubAgentTools(parent: Agent, options: SubAgentToolsOptions): Tool.AnyInfo[];
|
|
43
|
+
|
|
44
|
+
declare const SUBAGENT_TOOL_IDS: readonly ["invoke_agent", "wait_agent", "close_agent"];
|
|
45
|
+
declare function createInvokeAgentTool(runtime: DispatchRuntime, roles: readonly SubAgentRole[], options?: {
|
|
46
|
+
async?: boolean;
|
|
47
|
+
sessionTitlePrefix?: string;
|
|
48
|
+
}): Tool.AnyInfo;
|
|
49
|
+
declare function createWaitAgentTool(runtime: DispatchRuntime): Tool.AnyInfo;
|
|
50
|
+
declare function createCloseAgentTool(runtime: DispatchRuntime): Tool.AnyInfo;
|
|
51
|
+
|
|
52
|
+
declare function formatInvalidAgentTypeResult(roleName: string, validNames: string[]): Tool.ExecuteResult;
|
|
53
|
+
declare function formatSpawnBlockedResult(message: string): Tool.ExecuteResult;
|
|
54
|
+
declare function formatSyncSubAgentResult(roleName: string, result: SubAgentCompletedResult): Tool.ExecuteResult;
|
|
55
|
+
declare function formatSyncSubAgentErrorResult(roleName: string, error: unknown): Tool.ExecuteResult;
|
|
56
|
+
declare function formatAsyncSpawnedResult(agentId: string, roleName: string, sessionId?: string): Tool.ExecuteResult;
|
|
57
|
+
declare function formatWaitResult(agentId: string, roleName: string, result: SubAgentCompletedResult): Tool.ExecuteResult;
|
|
58
|
+
declare function formatWaitTimeoutResult(timeoutMs: number, runningIds: string[]): Tool.ExecuteResult;
|
|
59
|
+
declare function formatWaitErrorResult(error: unknown): Tool.ExecuteResult;
|
|
60
|
+
declare function formatMissingAgentsResult(ids: string[]): Tool.ExecuteResult;
|
|
61
|
+
declare function formatCloseMissingAgentResult(id: string): Tool.ExecuteResult;
|
|
62
|
+
declare function formatCloseAlreadyResolvedResult(id: string, state: string): Tool.ExecuteResult;
|
|
63
|
+
declare function formatCancelledAgentResult(id: string, roleName: string): Tool.ExecuteResult;
|
|
64
|
+
|
|
65
|
+
declare const LOCAL_SUBAGENT_BACKEND = "@cuylabs/agent-core/local";
|
|
66
|
+
interface SubAgentInstallTarget {
|
|
67
|
+
addTool(tool: Tool.Info): void;
|
|
68
|
+
removeTool(toolId: string): boolean;
|
|
69
|
+
}
|
|
70
|
+
declare function configureSubAgents(agent: object, config: SubAgentConfig): SubAgentConfig;
|
|
71
|
+
declare function getConfiguredSubAgents(agent: object): SubAgentConfig | undefined;
|
|
72
|
+
declare function getInstalledSubAgentBackend(agent: object): string | undefined;
|
|
73
|
+
declare function clearInstalledSubAgents(agent: SubAgentInstallTarget & object): void;
|
|
74
|
+
declare function installSubAgentTools(options: {
|
|
75
|
+
agent: SubAgentInstallTarget & object;
|
|
76
|
+
config: SubAgentConfig;
|
|
77
|
+
backend: string;
|
|
78
|
+
tools: readonly Tool.AnyInfo[];
|
|
79
|
+
}): readonly Tool.AnyInfo[];
|
|
80
|
+
declare function installLocalSubAgents(agent: SubAgentInstallTarget & object, config?: SubAgentConfig): readonly Tool.AnyInfo[];
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Markdown subagent role parser.
|
|
84
|
+
*
|
|
85
|
+
* Parses `.md` files into `SubAgentRole` objects using a hybrid approach:
|
|
86
|
+
* frontmatter maps to role config, and the body becomes the system prompt.
|
|
87
|
+
*
|
|
88
|
+
* @packageDocumentation
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
interface MarkdownSubAgentRoleFrontmatter {
|
|
92
|
+
name: string;
|
|
93
|
+
description: string;
|
|
94
|
+
profile?: string;
|
|
95
|
+
extends?: string;
|
|
96
|
+
model?: string;
|
|
97
|
+
maxSteps?: string;
|
|
98
|
+
temperature?: string;
|
|
99
|
+
reasoning?: string;
|
|
100
|
+
tools?: string;
|
|
101
|
+
skills?: string;
|
|
102
|
+
allowFurtherDispatch?: string;
|
|
103
|
+
}
|
|
104
|
+
interface ParsedMarkdownSubAgentRole {
|
|
105
|
+
frontmatter: MarkdownSubAgentRoleFrontmatter;
|
|
106
|
+
body: string;
|
|
107
|
+
filePath: string;
|
|
108
|
+
}
|
|
109
|
+
type ToolModifier = {
|
|
110
|
+
kind: "add";
|
|
111
|
+
pattern: string;
|
|
112
|
+
} | {
|
|
113
|
+
kind: "remove";
|
|
114
|
+
pattern: string;
|
|
115
|
+
};
|
|
116
|
+
type ParsedToolSpec = {
|
|
117
|
+
mode: "explicit";
|
|
118
|
+
patterns: string[];
|
|
119
|
+
} | {
|
|
120
|
+
mode: "modifiers";
|
|
121
|
+
modifiers: ToolModifier[];
|
|
122
|
+
} | {
|
|
123
|
+
mode: "inherit";
|
|
124
|
+
};
|
|
125
|
+
interface SubAgentRoleResolvers {
|
|
126
|
+
resolveProfile?: (name: string) => Profile | undefined;
|
|
127
|
+
resolveParent?: (name: string) => SubAgentRole | undefined;
|
|
128
|
+
}
|
|
129
|
+
declare function parseSubAgentRoleFrontmatter(raw: string): Record<string, string>;
|
|
130
|
+
declare function parseMarkdownSubAgentRole(content: string, filePath: string): ParsedMarkdownSubAgentRole | null;
|
|
131
|
+
declare function parseSubAgentToolSpec(raw?: string): ParsedToolSpec;
|
|
132
|
+
declare function toSubAgentRole(parsed: ParsedMarkdownSubAgentRole, resolvers?: SubAgentRoleResolvers): SubAgentRole;
|
|
133
|
+
interface MarkdownSubAgentRole extends SubAgentRole {
|
|
134
|
+
_modelId?: string;
|
|
135
|
+
_skillNames?: string[];
|
|
136
|
+
_source?: string;
|
|
137
|
+
}
|
|
138
|
+
declare function isMarkdownSubAgentRole(role: SubAgentRole): role is MarkdownSubAgentRole;
|
|
139
|
+
type ParsedSubAgentToolSpec = ParsedToolSpec;
|
|
140
|
+
type SubAgentToolModifier = ToolModifier;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Subagent role discovery.
|
|
144
|
+
*
|
|
145
|
+
* Discovers subagent roles from markdown files across multiple locations
|
|
146
|
+
* and merges them with built-in TypeScript roles.
|
|
147
|
+
*
|
|
148
|
+
* @packageDocumentation
|
|
149
|
+
*/
|
|
150
|
+
|
|
151
|
+
type SubAgentRoleSource = "builtin" | "user" | "project" | "config";
|
|
152
|
+
interface DiscoveredSubAgentRole {
|
|
153
|
+
role: SubAgentRole;
|
|
154
|
+
source: SubAgentRoleSource;
|
|
155
|
+
filePath?: string;
|
|
156
|
+
}
|
|
157
|
+
interface SubAgentRoleDiscoveryOptions {
|
|
158
|
+
cwd: string;
|
|
159
|
+
userDir?: string;
|
|
160
|
+
projectDir?: string;
|
|
161
|
+
configPaths?: string[];
|
|
162
|
+
builtInRoles?: SubAgentRole[];
|
|
163
|
+
resolveProfile?: (name: string) => Profile | undefined;
|
|
164
|
+
}
|
|
165
|
+
interface SubAgentRoleDiscoveryResult {
|
|
166
|
+
roles: SubAgentRole[];
|
|
167
|
+
discovered: DiscoveredSubAgentRole[];
|
|
168
|
+
errors: Array<{
|
|
169
|
+
path: string;
|
|
170
|
+
error: string;
|
|
171
|
+
}>;
|
|
172
|
+
}
|
|
173
|
+
declare function getUserSubAgentRolesDir(userDir?: string): string;
|
|
174
|
+
declare function getProjectSubAgentRolesDir(cwd: string, projectDir?: string): string;
|
|
175
|
+
declare function discoverSubAgentRoles(options: SubAgentRoleDiscoveryOptions): SubAgentRoleDiscoveryResult;
|
|
176
|
+
|
|
177
|
+
export { DEFAULT_SUBAGENT_CONCURRENCY, DEFAULT_SUBAGENT_DEPTH, DEFAULT_SUBAGENT_SESSION_PREFIX, type DiscoveredSubAgentRole, LOCAL_SUBAGENT_BACKEND, type MarkdownSubAgentRole, type MarkdownSubAgentRoleFrontmatter, type ParsedMarkdownSubAgentRole, type ParsedSubAgentToolSpec, SUBAGENT_TOOL_IDS, type SubAgentCompletedResult, type SubAgentConfig, type SubAgentRole, type SubAgentRoleDiscoveryOptions, type SubAgentRoleDiscoveryResult, type SubAgentRoleResolvers, type SubAgentRoleSource, type SubAgentToolModifier, type SubAgentToolsOptions, clearInstalledSubAgents, configureSubAgents, createCloseAgentTool, createInvokeAgentTool, createSubAgentTools, createWaitAgentTool, discoverSubAgentRoles, formatAsyncSpawnedResult, formatCancelledAgentResult, formatCloseAlreadyResolvedResult, formatCloseMissingAgentResult, formatInvalidAgentTypeResult, formatMissingAgentsResult, formatSpawnBlockedResult, formatSyncSubAgentErrorResult, formatSyncSubAgentResult, formatWaitErrorResult, formatWaitResult, formatWaitTimeoutResult, getConfiguredSubAgents, getInstalledSubAgentBackend, getProjectSubAgentRolesDir, getUserSubAgentRolesDir, installLocalSubAgents, installSubAgentTools, isMarkdownSubAgentRole, parseMarkdownSubAgentRole, parseSubAgentRoleFrontmatter, parseSubAgentToolSpec, toSubAgentRole };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_SUBAGENT_CONCURRENCY,
|
|
3
|
+
DEFAULT_SUBAGENT_DEPTH,
|
|
4
|
+
DEFAULT_SUBAGENT_SESSION_PREFIX,
|
|
5
|
+
LOCAL_SUBAGENT_BACKEND,
|
|
6
|
+
SUBAGENT_TOOL_IDS,
|
|
7
|
+
clearInstalledSubAgents,
|
|
8
|
+
configureSubAgents,
|
|
9
|
+
createCloseAgentTool,
|
|
10
|
+
createInvokeAgentTool,
|
|
11
|
+
createSubAgentTools,
|
|
12
|
+
createWaitAgentTool,
|
|
13
|
+
discoverSubAgentRoles,
|
|
14
|
+
formatAsyncSpawnedResult,
|
|
15
|
+
formatCancelledAgentResult,
|
|
16
|
+
formatCloseAlreadyResolvedResult,
|
|
17
|
+
formatCloseMissingAgentResult,
|
|
18
|
+
formatInvalidAgentTypeResult,
|
|
19
|
+
formatMissingAgentsResult,
|
|
20
|
+
formatSpawnBlockedResult,
|
|
21
|
+
formatSyncSubAgentErrorResult,
|
|
22
|
+
formatSyncSubAgentResult,
|
|
23
|
+
formatWaitErrorResult,
|
|
24
|
+
formatWaitResult,
|
|
25
|
+
formatWaitTimeoutResult,
|
|
26
|
+
getConfiguredSubAgents,
|
|
27
|
+
getInstalledSubAgentBackend,
|
|
28
|
+
getProjectSubAgentRolesDir,
|
|
29
|
+
getUserSubAgentRolesDir,
|
|
30
|
+
installLocalSubAgents,
|
|
31
|
+
installSubAgentTools,
|
|
32
|
+
isMarkdownSubAgentRole,
|
|
33
|
+
parseMarkdownSubAgentRole,
|
|
34
|
+
parseSubAgentRoleFrontmatter,
|
|
35
|
+
parseSubAgentToolSpec,
|
|
36
|
+
toSubAgentRole
|
|
37
|
+
} from "../chunk-2O4MCSQS.js";
|
|
38
|
+
import "../chunk-6HZBHFOL.js";
|
|
39
|
+
import "../chunk-SSFBF3US.js";
|
|
40
|
+
import "../chunk-Q742PSH3.js";
|
|
41
|
+
import "../chunk-ICZ66572.js";
|
|
42
|
+
export {
|
|
43
|
+
DEFAULT_SUBAGENT_CONCURRENCY,
|
|
44
|
+
DEFAULT_SUBAGENT_DEPTH,
|
|
45
|
+
DEFAULT_SUBAGENT_SESSION_PREFIX,
|
|
46
|
+
LOCAL_SUBAGENT_BACKEND,
|
|
47
|
+
SUBAGENT_TOOL_IDS,
|
|
48
|
+
clearInstalledSubAgents,
|
|
49
|
+
configureSubAgents,
|
|
50
|
+
createCloseAgentTool,
|
|
51
|
+
createInvokeAgentTool,
|
|
52
|
+
createSubAgentTools,
|
|
53
|
+
createWaitAgentTool,
|
|
54
|
+
discoverSubAgentRoles,
|
|
55
|
+
formatAsyncSpawnedResult,
|
|
56
|
+
formatCancelledAgentResult,
|
|
57
|
+
formatCloseAlreadyResolvedResult,
|
|
58
|
+
formatCloseMissingAgentResult,
|
|
59
|
+
formatInvalidAgentTypeResult,
|
|
60
|
+
formatMissingAgentsResult,
|
|
61
|
+
formatSpawnBlockedResult,
|
|
62
|
+
formatSyncSubAgentErrorResult,
|
|
63
|
+
formatSyncSubAgentResult,
|
|
64
|
+
formatWaitErrorResult,
|
|
65
|
+
formatWaitResult,
|
|
66
|
+
formatWaitTimeoutResult,
|
|
67
|
+
getConfiguredSubAgents,
|
|
68
|
+
getInstalledSubAgentBackend,
|
|
69
|
+
getProjectSubAgentRolesDir,
|
|
70
|
+
getUserSubAgentRolesDir,
|
|
71
|
+
installLocalSubAgents,
|
|
72
|
+
installSubAgentTools,
|
|
73
|
+
isMarkdownSubAgentRole,
|
|
74
|
+
parseMarkdownSubAgentRole,
|
|
75
|
+
parseSubAgentRoleFrontmatter,
|
|
76
|
+
parseSubAgentToolSpec,
|
|
77
|
+
toSubAgentRole
|
|
78
|
+
};
|