@dexto/agent-management 1.6.27 → 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.d.ts.map +1 -1
- 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",
|
|
@@ -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"}
|
|
@@ -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",
|