@dexto/agent-management 1.6.26 → 1.7.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/AgentManager.cjs +1 -1
- package/dist/AgentManager.d.ts +3 -35
- package/dist/AgentManager.d.ts.map +1 -1
- package/dist/AgentManager.js +1 -1
- package/dist/images/image-store.cjs +2 -0
- package/dist/images/image-store.d.ts +3 -39
- package/dist/images/image-store.d.ts.map +1 -1
- package/dist/images/image-store.js +2 -0
- package/dist/models/custom-models.d.ts +14 -62
- package/dist/models/custom-models.d.ts.map +1 -1
- package/dist/models/model-picker-state.d.ts +102 -101
- package/dist/models/model-picker-state.d.ts.map +1 -1
- package/dist/plugins/marketplace/schemas.cjs +1 -1
- package/dist/plugins/marketplace/schemas.d.ts +32 -196
- package/dist/plugins/marketplace/schemas.d.ts.map +1 -1
- package/dist/plugins/marketplace/schemas.js +1 -1
- package/dist/plugins/schemas.cjs +2 -2
- package/dist/plugins/schemas.d.ts +17 -143
- package/dist/plugins/schemas.d.ts.map +1 -1
- package/dist/plugins/schemas.js +2 -2
- package/dist/preferences/schemas.cjs +2 -2
- package/dist/preferences/schemas.d.ts +78 -246
- package/dist/preferences/schemas.d.ts.map +1 -1
- package/dist/preferences/schemas.js +2 -2
- package/dist/project-registry.d.ts +6 -86
- package/dist/project-registry.d.ts.map +1 -1
- package/dist/registry/types.d.ts +13 -73
- package/dist/registry/types.d.ts.map +1 -1
- package/dist/runtime/schemas.cjs +2 -2
- package/dist/runtime/schemas.d.ts +26 -31
- package/dist/runtime/schemas.d.ts.map +1 -1
- package/dist/runtime/schemas.js +2 -2
- package/dist/tool-factories/agent-spawner/factory.cjs +18 -5
- package/dist/tool-factories/agent-spawner/factory.d.ts.map +1 -1
- package/dist/tool-factories/agent-spawner/factory.js +18 -5
- package/dist/tool-factories/agent-spawner/schemas.d.ts +4 -61
- package/dist/tool-factories/agent-spawner/schemas.d.ts.map +1 -1
- package/dist/tool-factories/creator-tools/schemas.d.ts +9 -8
- package/dist/tool-factories/creator-tools/schemas.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -12,13 +12,7 @@ export declare const DEFAULT_TASK_TIMEOUT = 300000;
|
|
|
12
12
|
export declare const AgentRuntimeConfigSchema: z.ZodObject<{
|
|
13
13
|
maxAgents: z.ZodDefault<z.ZodNumber>;
|
|
14
14
|
defaultTaskTimeout: z.ZodDefault<z.ZodNumber>;
|
|
15
|
-
},
|
|
16
|
-
maxAgents: number;
|
|
17
|
-
defaultTaskTimeout: number;
|
|
18
|
-
}, {
|
|
19
|
-
maxAgents?: number | undefined;
|
|
20
|
-
defaultTaskTimeout?: number | undefined;
|
|
21
|
-
}>;
|
|
15
|
+
}, z.core.$strict>;
|
|
22
16
|
export type ValidatedAgentRuntimeConfig = z.output<typeof AgentRuntimeConfigSchema>;
|
|
23
17
|
/**
|
|
24
18
|
* Schema for SpawnConfig
|
|
@@ -30,40 +24,41 @@ export declare const SpawnConfigSchema: z.ZodObject<{
|
|
|
30
24
|
agentId: z.ZodOptional<z.ZodString>;
|
|
31
25
|
group: z.ZodOptional<z.ZodString>;
|
|
32
26
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
33
|
-
},
|
|
34
|
-
agentConfig: Record<string, unknown>;
|
|
35
|
-
ephemeral: boolean;
|
|
36
|
-
agentId?: string | undefined;
|
|
37
|
-
group?: string | undefined;
|
|
38
|
-
metadata?: Record<string, unknown> | undefined;
|
|
39
|
-
}, {
|
|
40
|
-
agentConfig: Record<string, unknown>;
|
|
41
|
-
agentId?: string | undefined;
|
|
42
|
-
ephemeral?: boolean | undefined;
|
|
43
|
-
group?: string | undefined;
|
|
44
|
-
metadata?: Record<string, unknown> | undefined;
|
|
45
|
-
}>;
|
|
27
|
+
}, z.core.$strict>;
|
|
46
28
|
export type ValidatedSpawnConfig = z.output<typeof SpawnConfigSchema>;
|
|
47
29
|
/**
|
|
48
30
|
* Schema for AgentStatus
|
|
49
31
|
*/
|
|
50
|
-
export declare const AgentStatusSchema: z.ZodEnum<
|
|
32
|
+
export declare const AgentStatusSchema: z.ZodEnum<{
|
|
33
|
+
error: "error";
|
|
34
|
+
starting: "starting";
|
|
35
|
+
idle: "idle";
|
|
36
|
+
running: "running";
|
|
37
|
+
stopping: "stopping";
|
|
38
|
+
stopped: "stopped";
|
|
39
|
+
}>;
|
|
51
40
|
export type ValidatedAgentStatus = z.output<typeof AgentStatusSchema>;
|
|
52
41
|
/**
|
|
53
42
|
* Schema for AgentFilter
|
|
54
43
|
*/
|
|
55
44
|
export declare const AgentFilterSchema: z.ZodObject<{
|
|
56
45
|
group: z.ZodOptional<z.ZodString>;
|
|
57
|
-
status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<
|
|
46
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
47
|
+
error: "error";
|
|
48
|
+
starting: "starting";
|
|
49
|
+
idle: "idle";
|
|
50
|
+
running: "running";
|
|
51
|
+
stopping: "stopping";
|
|
52
|
+
stopped: "stopped";
|
|
53
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
54
|
+
error: "error";
|
|
55
|
+
starting: "starting";
|
|
56
|
+
idle: "idle";
|
|
57
|
+
running: "running";
|
|
58
|
+
stopping: "stopping";
|
|
59
|
+
stopped: "stopped";
|
|
60
|
+
}>>]>>;
|
|
58
61
|
ephemeral: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
-
},
|
|
60
|
-
status?: "error" | "starting" | "idle" | "running" | "stopping" | "stopped" | ("error" | "starting" | "idle" | "running" | "stopping" | "stopped")[] | undefined;
|
|
61
|
-
ephemeral?: boolean | undefined;
|
|
62
|
-
group?: string | undefined;
|
|
63
|
-
}, {
|
|
64
|
-
status?: "error" | "starting" | "idle" | "running" | "stopping" | "stopped" | ("error" | "starting" | "idle" | "running" | "stopping" | "stopped")[] | undefined;
|
|
65
|
-
ephemeral?: boolean | undefined;
|
|
66
|
-
group?: string | undefined;
|
|
67
|
-
}>;
|
|
62
|
+
}, z.core.$strict>;
|
|
68
63
|
export type ValidatedAgentFilter = z.output<typeof AgentFilterSchema>;
|
|
69
64
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/runtime/schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,oBAAoB,SAAS,CAAC;AAM3C;;GAEG;AACH,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/runtime/schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,oBAAoB,SAAS,CAAC;AAM3C;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;kBAiBc,CAAC;AAEpD,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAMpF;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;kBA2BsB,CAAC;AAErD,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAMtE;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;EAO5B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAMtE;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;kBAYoB,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
package/dist/runtime/schemas.js
CHANGED
|
@@ -6,11 +6,11 @@ const AgentRuntimeConfigSchema = z.object({
|
|
|
6
6
|
defaultTaskTimeout: z.number().int().nonnegative().default(DEFAULT_TASK_TIMEOUT).describe("Default task timeout in milliseconds (0 = no timeout)")
|
|
7
7
|
}).strict().describe("Configuration for the AgentRuntime");
|
|
8
8
|
const SpawnConfigSchema = z.object({
|
|
9
|
-
agentConfig: z.record(z.unknown()).describe("Base agent configuration"),
|
|
9
|
+
agentConfig: z.record(z.string(), z.unknown()).describe("Base agent configuration"),
|
|
10
10
|
ephemeral: z.boolean().default(true).describe("Whether agent should be destroyed after task completion"),
|
|
11
11
|
agentId: z.string().min(1).optional().describe("Optional custom agent ID (auto-generated if not provided)"),
|
|
12
12
|
group: z.string().min(1).optional().describe("Optional group identifier for logical grouping"),
|
|
13
|
-
metadata: z.record(z.unknown()).optional().describe("Optional metadata for tracking relationships or context")
|
|
13
|
+
metadata: z.record(z.string(), z.unknown()).optional().describe("Optional metadata for tracking relationships or context")
|
|
14
14
|
}).strict().describe("Configuration for spawning an agent");
|
|
15
15
|
const AgentStatusSchema = z.enum([
|
|
16
16
|
"starting",
|
|
@@ -78,6 +78,7 @@ const agentSpawnerToolsFactory = {
|
|
|
78
78
|
updateWorkspaceRootHint(spawnerRuntime, context);
|
|
79
79
|
attachTaskForker({ toolServices, taskForker: spawnerRuntime, logger });
|
|
80
80
|
const taskSessions = /* @__PURE__ */ new Map();
|
|
81
|
+
const taskHostRuntimeContexts = /* @__PURE__ */ new Map();
|
|
81
82
|
const emitTasksUpdate = (sessionId) => {
|
|
82
83
|
const tasks = taskRegistry.list({
|
|
83
84
|
status: ["running", "completed", "failed", "cancelled"]
|
|
@@ -100,13 +101,14 @@ const agentSpawnerToolsFactory = {
|
|
|
100
101
|
}
|
|
101
102
|
});
|
|
102
103
|
};
|
|
103
|
-
const triggerBackgroundCompletion = (taskId, sessionId) => {
|
|
104
|
+
const triggerBackgroundCompletion = (taskId, sessionId, hostRuntime) => {
|
|
104
105
|
if (!sessionId) {
|
|
105
106
|
return;
|
|
106
107
|
}
|
|
107
108
|
agent.emit("tool:background-completed", {
|
|
108
109
|
toolCallId: taskId,
|
|
109
|
-
sessionId
|
|
110
|
+
sessionId,
|
|
111
|
+
...hostRuntime !== void 0 && { hostRuntime }
|
|
110
112
|
});
|
|
111
113
|
const taskInfo = taskRegistry.getInfo(taskId);
|
|
112
114
|
const resultText = (() => {
|
|
@@ -154,9 +156,14 @@ const agentSpawnerToolsFactory = {
|
|
|
154
156
|
sessionId,
|
|
155
157
|
content,
|
|
156
158
|
source: "external",
|
|
157
|
-
metadata: { taskId }
|
|
159
|
+
metadata: { taskId },
|
|
160
|
+
...hostRuntime !== void 0 && { hostRuntime }
|
|
158
161
|
});
|
|
159
|
-
agent.generate(content, sessionId
|
|
162
|
+
agent.generate(content, sessionId, {
|
|
163
|
+
...hostRuntime !== void 0 && {
|
|
164
|
+
executionContext: hostRuntime
|
|
165
|
+
}
|
|
166
|
+
}).catch(() => void 0);
|
|
160
167
|
}
|
|
161
168
|
}).catch(() => {
|
|
162
169
|
});
|
|
@@ -169,6 +176,9 @@ const agentSpawnerToolsFactory = {
|
|
|
169
176
|
if (event.sessionId) {
|
|
170
177
|
taskSessions.set(taskId, event.sessionId);
|
|
171
178
|
}
|
|
179
|
+
if (event.hostRuntime !== void 0) {
|
|
180
|
+
taskHostRuntimeContexts.set(taskId, event.hostRuntime);
|
|
181
|
+
}
|
|
172
182
|
try {
|
|
173
183
|
taskRegistry.register(
|
|
174
184
|
{
|
|
@@ -186,6 +196,7 @@ const agentSpawnerToolsFactory = {
|
|
|
186
196
|
);
|
|
187
197
|
} catch (error) {
|
|
188
198
|
taskSessions.delete(taskId);
|
|
199
|
+
taskHostRuntimeContexts.delete(taskId);
|
|
189
200
|
event.promise.catch(() => void 0);
|
|
190
201
|
logger.warn(
|
|
191
202
|
`Failed to register background task ${taskId}: ${error instanceof Error ? error.message : String(error)}`,
|
|
@@ -196,8 +207,10 @@ const agentSpawnerToolsFactory = {
|
|
|
196
207
|
emitTasksUpdate(event.sessionId);
|
|
197
208
|
event.promise.finally(() => {
|
|
198
209
|
taskSessions.delete(taskId);
|
|
210
|
+
const hostRuntime = taskHostRuntimeContexts.get(taskId);
|
|
211
|
+
taskHostRuntimeContexts.delete(taskId);
|
|
199
212
|
emitTasksUpdate(event.sessionId);
|
|
200
|
-
triggerBackgroundCompletion(taskId, event.sessionId);
|
|
213
|
+
triggerBackgroundCompletion(taskId, event.sessionId, hostRuntime);
|
|
201
214
|
});
|
|
202
215
|
};
|
|
203
216
|
const abortController = new AbortController();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/tool-factories/agent-spawner/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/tool-factories/agent-spawner/factory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAmBvD,OAAO,EAGH,KAAK,kBAAkB,EAE1B,MAAM,cAAc,CAAC;AAkCtB,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,kBAAkB,CAiYpE,CAAC"}
|
|
@@ -68,6 +68,7 @@ const agentSpawnerToolsFactory = {
|
|
|
68
68
|
updateWorkspaceRootHint(spawnerRuntime, context);
|
|
69
69
|
attachTaskForker({ toolServices, taskForker: spawnerRuntime, logger });
|
|
70
70
|
const taskSessions = /* @__PURE__ */ new Map();
|
|
71
|
+
const taskHostRuntimeContexts = /* @__PURE__ */ new Map();
|
|
71
72
|
const emitTasksUpdate = (sessionId) => {
|
|
72
73
|
const tasks = taskRegistry.list({
|
|
73
74
|
status: ["running", "completed", "failed", "cancelled"]
|
|
@@ -90,13 +91,14 @@ const agentSpawnerToolsFactory = {
|
|
|
90
91
|
}
|
|
91
92
|
});
|
|
92
93
|
};
|
|
93
|
-
const triggerBackgroundCompletion = (taskId, sessionId) => {
|
|
94
|
+
const triggerBackgroundCompletion = (taskId, sessionId, hostRuntime) => {
|
|
94
95
|
if (!sessionId) {
|
|
95
96
|
return;
|
|
96
97
|
}
|
|
97
98
|
agent.emit("tool:background-completed", {
|
|
98
99
|
toolCallId: taskId,
|
|
99
|
-
sessionId
|
|
100
|
+
sessionId,
|
|
101
|
+
...hostRuntime !== void 0 && { hostRuntime }
|
|
100
102
|
});
|
|
101
103
|
const taskInfo = taskRegistry.getInfo(taskId);
|
|
102
104
|
const resultText = (() => {
|
|
@@ -144,9 +146,14 @@ const agentSpawnerToolsFactory = {
|
|
|
144
146
|
sessionId,
|
|
145
147
|
content,
|
|
146
148
|
source: "external",
|
|
147
|
-
metadata: { taskId }
|
|
149
|
+
metadata: { taskId },
|
|
150
|
+
...hostRuntime !== void 0 && { hostRuntime }
|
|
148
151
|
});
|
|
149
|
-
agent.generate(content, sessionId
|
|
152
|
+
agent.generate(content, sessionId, {
|
|
153
|
+
...hostRuntime !== void 0 && {
|
|
154
|
+
executionContext: hostRuntime
|
|
155
|
+
}
|
|
156
|
+
}).catch(() => void 0);
|
|
150
157
|
}
|
|
151
158
|
}).catch(() => {
|
|
152
159
|
});
|
|
@@ -159,6 +166,9 @@ const agentSpawnerToolsFactory = {
|
|
|
159
166
|
if (event.sessionId) {
|
|
160
167
|
taskSessions.set(taskId, event.sessionId);
|
|
161
168
|
}
|
|
169
|
+
if (event.hostRuntime !== void 0) {
|
|
170
|
+
taskHostRuntimeContexts.set(taskId, event.hostRuntime);
|
|
171
|
+
}
|
|
162
172
|
try {
|
|
163
173
|
taskRegistry.register(
|
|
164
174
|
{
|
|
@@ -176,6 +186,7 @@ const agentSpawnerToolsFactory = {
|
|
|
176
186
|
);
|
|
177
187
|
} catch (error) {
|
|
178
188
|
taskSessions.delete(taskId);
|
|
189
|
+
taskHostRuntimeContexts.delete(taskId);
|
|
179
190
|
event.promise.catch(() => void 0);
|
|
180
191
|
logger.warn(
|
|
181
192
|
`Failed to register background task ${taskId}: ${error instanceof Error ? error.message : String(error)}`,
|
|
@@ -186,8 +197,10 @@ const agentSpawnerToolsFactory = {
|
|
|
186
197
|
emitTasksUpdate(event.sessionId);
|
|
187
198
|
event.promise.finally(() => {
|
|
188
199
|
taskSessions.delete(taskId);
|
|
200
|
+
const hostRuntime = taskHostRuntimeContexts.get(taskId);
|
|
201
|
+
taskHostRuntimeContexts.delete(taskId);
|
|
189
202
|
emitTasksUpdate(event.sessionId);
|
|
190
|
-
triggerBackgroundCompletion(taskId, event.sessionId);
|
|
203
|
+
triggerBackgroundCompletion(taskId, event.sessionId, hostRuntime);
|
|
191
204
|
});
|
|
192
205
|
};
|
|
193
206
|
const abortController = new AbortController();
|
|
@@ -11,61 +11,15 @@ export declare const DEFAULT_SUB_AGENT_REASONING_VARIANT: ReasoningVariant;
|
|
|
11
11
|
* Configuration schema for the agent spawner tools factory.
|
|
12
12
|
*/
|
|
13
13
|
export declare const AgentSpawnerConfigSchema: z.ZodObject<{
|
|
14
|
-
/** Type discriminator for the factory */
|
|
15
14
|
type: z.ZodLiteral<"agent-spawner">;
|
|
16
|
-
/** Maximum concurrent sub-agents this parent can spawn (default: 5) */
|
|
17
15
|
maxConcurrentAgents: z.ZodDefault<z.ZodNumber>;
|
|
18
|
-
/** Default timeout for task execution in milliseconds (default: 3600000 = 1 hour) */
|
|
19
16
|
defaultTimeout: z.ZodDefault<z.ZodNumber>;
|
|
20
17
|
subAgentMaxIterations: z.ZodDefault<z.ZodNumber>;
|
|
21
18
|
subAgentReasoningVariant: z.ZodDefault<z.ZodString>;
|
|
22
|
-
/** Whether spawning is enabled (default: true) */
|
|
23
19
|
allowSpawning: z.ZodDefault<z.ZodBoolean>;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
* only when the workspace registry opts into them.
|
|
28
|
-
*
|
|
29
|
-
* Example:
|
|
30
|
-
* ```yaml
|
|
31
|
-
* customTools:
|
|
32
|
-
* - type: agent-spawner
|
|
33
|
-
* allowedAgents: ["explore-agent", "research-agent"]
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
allowedAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
37
|
-
/**
|
|
38
|
-
* Agent IDs that should have their tools auto-approved.
|
|
39
|
-
* Use for agents with only read-only/safe tools (e.g., explore-agent).
|
|
40
|
-
*
|
|
41
|
-
* Example:
|
|
42
|
-
* ```yaml
|
|
43
|
-
* customTools:
|
|
44
|
-
* - type: agent-spawner
|
|
45
|
-
* allowedAgents: ["explore-agent"]
|
|
46
|
-
* autoApproveAgents: ["explore-agent"]
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
autoApproveAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
50
|
-
}, "strict", z.ZodTypeAny, {
|
|
51
|
-
type: "agent-spawner";
|
|
52
|
-
maxConcurrentAgents: number;
|
|
53
|
-
defaultTimeout: number;
|
|
54
|
-
subAgentMaxIterations: number;
|
|
55
|
-
subAgentReasoningVariant: string;
|
|
56
|
-
allowSpawning: boolean;
|
|
57
|
-
allowedAgents?: string[] | undefined;
|
|
58
|
-
autoApproveAgents?: string[] | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
type: "agent-spawner";
|
|
61
|
-
maxConcurrentAgents?: number | undefined;
|
|
62
|
-
defaultTimeout?: number | undefined;
|
|
63
|
-
subAgentMaxIterations?: number | undefined;
|
|
64
|
-
subAgentReasoningVariant?: string | undefined;
|
|
65
|
-
allowSpawning?: boolean | undefined;
|
|
66
|
-
allowedAgents?: string[] | undefined;
|
|
67
|
-
autoApproveAgents?: string[] | undefined;
|
|
68
|
-
}>;
|
|
20
|
+
allowedAgents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
|
+
autoApproveAgents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
22
|
+
}, z.core.$strict>;
|
|
69
23
|
export type AgentSpawnerConfig = z.output<typeof AgentSpawnerConfigSchema>;
|
|
70
24
|
/**
|
|
71
25
|
* Input schema for spawn_agent tool
|
|
@@ -74,20 +28,9 @@ export type AgentSpawnerConfig = z.output<typeof AgentSpawnerConfigSchema>;
|
|
|
74
28
|
* We don't expose timeout as a tool parameter because lowering it just wastes runs.
|
|
75
29
|
*/
|
|
76
30
|
export declare const SpawnAgentInputSchema: z.ZodObject<{
|
|
77
|
-
/** Short task description (shown in UI/logs) */
|
|
78
31
|
task: z.ZodString;
|
|
79
|
-
/** Detailed instructions for the sub-agent */
|
|
80
32
|
instructions: z.ZodString;
|
|
81
|
-
/** Agent ID from registry (optional - uses default minimal agent if not provided) */
|
|
82
33
|
agentId: z.ZodOptional<z.ZodString>;
|
|
83
|
-
},
|
|
84
|
-
task: string;
|
|
85
|
-
instructions: string;
|
|
86
|
-
agentId?: string | undefined;
|
|
87
|
-
}, {
|
|
88
|
-
task: string;
|
|
89
|
-
instructions: string;
|
|
90
|
-
agentId?: string | undefined;
|
|
91
|
-
}>;
|
|
34
|
+
}, z.core.$strict>;
|
|
92
35
|
export type SpawnAgentInput = z.output<typeof SpawnAgentInputSchema>;
|
|
93
36
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/tool-factories/agent-spawner/schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,gCAAgC,MAAM,CAAC;AACpD,eAAO,MAAM,mCAAmC,EAAE,gBAA6B,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/tool-factories/agent-spawner/schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,gCAAgC,MAAM,CAAC;AACpD,eAAO,MAAM,mCAAmC,EAAE,gBAA6B,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;kBAiF6B,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAM3E;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB;;;;kBAcrB,CAAC;AAEd,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -3,13 +3,14 @@ export declare const CREATOR_TOOL_NAMES: readonly ["skill_create", "skill_update
|
|
|
3
3
|
export type CreatorToolName = (typeof CREATOR_TOOL_NAMES)[number];
|
|
4
4
|
export declare const CreatorToolsConfigSchema: z.ZodObject<{
|
|
5
5
|
type: z.ZodLiteral<"creator-tools">;
|
|
6
|
-
enabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
6
|
+
enabledTools: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
7
|
+
skill_create: "skill_create";
|
|
8
|
+
skill_update: "skill_update";
|
|
9
|
+
skill_refresh: "skill_refresh";
|
|
10
|
+
skill_search: "skill_search";
|
|
11
|
+
skill_list: "skill_list";
|
|
12
|
+
tool_catalog: "tool_catalog";
|
|
13
|
+
}>>>;
|
|
14
|
+
}, z.core.$strict>;
|
|
14
15
|
export type CreatorToolsConfig = z.output<typeof CreatorToolsConfigSchema>;
|
|
15
16
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/tool-factories/creator-tools/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB,0GAOrB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/tool-factories/creator-tools/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB,0GAOrB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAElE,eAAO,MAAM,wBAAwB;;;;;;;;;;kBAQxB,CAAC;AAEd,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexto/agent-management",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"yaml": "^2.8.3",
|
|
19
|
-
"zod": "^3.
|
|
20
|
-
"@dexto/agent-config": "1.
|
|
21
|
-
"@dexto/core": "1.
|
|
22
|
-
"@dexto/orchestration": "1.
|
|
23
|
-
"@dexto/tools-builtins": "1.
|
|
19
|
+
"zod": "^4.3.6",
|
|
20
|
+
"@dexto/agent-config": "1.7.0",
|
|
21
|
+
"@dexto/core": "1.7.0",
|
|
22
|
+
"@dexto/orchestration": "1.7.0",
|
|
23
|
+
"@dexto/tools-builtins": "1.7.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^22.13.5"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"zod": "^3.
|
|
29
|
+
"zod": "^4.3.6"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
32
|
"dist",
|