@dexto/agent-management 1.10.0 → 1.10.1
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/tool-factories/agent-spawner/factory.cjs +4 -0
- package/dist/tool-factories/agent-spawner/factory.d.ts.map +1 -1
- package/dist/tool-factories/agent-spawner/factory.js +5 -1
- package/dist/tool-factories/agent-spawner/spawn-agent-tool.cjs +1 -0
- package/dist/tool-factories/agent-spawner/spawn-agent-tool.d.ts.map +1 -1
- package/dist/tool-factories/agent-spawner/spawn-agent-tool.js +2 -1
- package/dist/tool-factories/creator-tools/factory.cjs +6 -0
- package/dist/tool-factories/creator-tools/factory.d.ts.map +1 -1
- package/dist/tool-factories/creator-tools/factory.js +7 -0
- package/package.json +6 -6
|
@@ -255,6 +255,7 @@ const agentSpawnerToolsFactory = {
|
|
|
255
255
|
inputSchema: import_schemas.SpawnAgentInputSchema,
|
|
256
256
|
execute: (input, context) => ensureToolsInitialized(context).spawnAgent.execute(input, context),
|
|
257
257
|
presentation: {
|
|
258
|
+
activity: import_core.TOOL_ACTIVITY.runAgent,
|
|
258
259
|
describeHeader: (input) => {
|
|
259
260
|
const agentId = typeof input.agentId === "string" ? input.agentId : void 0;
|
|
260
261
|
const agentLabel = agentId ? agentId.replace(/-agent$/, "") : void 0;
|
|
@@ -282,6 +283,7 @@ const agentSpawnerToolsFactory = {
|
|
|
282
283
|
inputSchema: import_orchestration.WaitForInputSchema,
|
|
283
284
|
execute: (input, context) => ensureToolsInitialized(context).waitFor.execute(input, context),
|
|
284
285
|
presentation: {
|
|
286
|
+
activity: import_core.TOOL_ACTIVITY.wait,
|
|
285
287
|
describeHeader: (input) => {
|
|
286
288
|
const argsText = input.taskId ? (0, import_core.truncateForHeader)(input.taskId, 80) : input.taskIds && input.taskIds.length > 0 ? (0, import_core.truncateForHeader)(`${input.taskIds.length} tasks`, 80) : void 0;
|
|
287
289
|
return (0, import_core.createLocalToolCallHeader)({
|
|
@@ -305,6 +307,7 @@ const agentSpawnerToolsFactory = {
|
|
|
305
307
|
inputSchema: import_orchestration.CheckTaskInputSchema,
|
|
306
308
|
execute: (input, context) => ensureToolsInitialized(context).checkTask.execute(input, context),
|
|
307
309
|
presentation: {
|
|
310
|
+
activity: import_core.TOOL_ACTIVITY.checkTask,
|
|
308
311
|
describeHeader: (input) => {
|
|
309
312
|
const argsText = (0, import_core.truncateForHeader)(input.taskId, 80);
|
|
310
313
|
return (0, import_core.createLocalToolCallHeader)({
|
|
@@ -328,6 +331,7 @@ const agentSpawnerToolsFactory = {
|
|
|
328
331
|
inputSchema: import_orchestration.ListTasksInputSchema,
|
|
329
332
|
execute: (input, context) => ensureToolsInitialized(context).listTasks.execute(input, context),
|
|
330
333
|
presentation: {
|
|
334
|
+
activity: import_core.TOOL_ACTIVITY.listTasks,
|
|
331
335
|
describeHeader: () => (0, import_core.createLocalToolCallHeader)({
|
|
332
336
|
title: "List Tasks"
|
|
333
337
|
}),
|
|
@@ -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;AAmBvD,OAAO,EAGH,KAAK,kBAAkB,EAE1B,MAAM,cAAc,CAAC;AAkCtB,eAAO,MAAM,wBAAwB,EAAE,WAAW,CAAC,kBAAkB,
|
|
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,CAmYpE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLocalToolCallHeader, truncateForHeader } from "@dexto/core";
|
|
1
|
+
import { TOOL_ACTIVITY, createLocalToolCallHeader, truncateForHeader } from "@dexto/core";
|
|
2
2
|
import { ToolError } from "@dexto/core";
|
|
3
3
|
import {
|
|
4
4
|
ConditionEngine,
|
|
@@ -245,6 +245,7 @@ const agentSpawnerToolsFactory = {
|
|
|
245
245
|
inputSchema: SpawnAgentInputSchema,
|
|
246
246
|
execute: (input, context) => ensureToolsInitialized(context).spawnAgent.execute(input, context),
|
|
247
247
|
presentation: {
|
|
248
|
+
activity: TOOL_ACTIVITY.runAgent,
|
|
248
249
|
describeHeader: (input) => {
|
|
249
250
|
const agentId = typeof input.agentId === "string" ? input.agentId : void 0;
|
|
250
251
|
const agentLabel = agentId ? agentId.replace(/-agent$/, "") : void 0;
|
|
@@ -272,6 +273,7 @@ const agentSpawnerToolsFactory = {
|
|
|
272
273
|
inputSchema: WaitForInputSchema,
|
|
273
274
|
execute: (input, context) => ensureToolsInitialized(context).waitFor.execute(input, context),
|
|
274
275
|
presentation: {
|
|
276
|
+
activity: TOOL_ACTIVITY.wait,
|
|
275
277
|
describeHeader: (input) => {
|
|
276
278
|
const argsText = input.taskId ? truncateForHeader(input.taskId, 80) : input.taskIds && input.taskIds.length > 0 ? truncateForHeader(`${input.taskIds.length} tasks`, 80) : void 0;
|
|
277
279
|
return createLocalToolCallHeader({
|
|
@@ -295,6 +297,7 @@ const agentSpawnerToolsFactory = {
|
|
|
295
297
|
inputSchema: CheckTaskInputSchema,
|
|
296
298
|
execute: (input, context) => ensureToolsInitialized(context).checkTask.execute(input, context),
|
|
297
299
|
presentation: {
|
|
300
|
+
activity: TOOL_ACTIVITY.checkTask,
|
|
298
301
|
describeHeader: (input) => {
|
|
299
302
|
const argsText = truncateForHeader(input.taskId, 80);
|
|
300
303
|
return createLocalToolCallHeader({
|
|
@@ -318,6 +321,7 @@ const agentSpawnerToolsFactory = {
|
|
|
318
321
|
inputSchema: ListTasksInputSchema,
|
|
319
322
|
execute: (input, context) => ensureToolsInitialized(context).listTasks.execute(input, context),
|
|
320
323
|
presentation: {
|
|
324
|
+
activity: TOOL_ACTIVITY.listTasks,
|
|
321
325
|
describeHeader: () => createLocalToolCallHeader({
|
|
322
326
|
title: "List Tasks"
|
|
323
327
|
}),
|
|
@@ -62,6 +62,7 @@ function createSpawnAgentTool(service) {
|
|
|
62
62
|
description: "Spawn a sub-agent to handle a task and return its result.",
|
|
63
63
|
getDescription: () => buildDescription(service),
|
|
64
64
|
presentation: {
|
|
65
|
+
activity: import_core.TOOL_ACTIVITY.runAgent,
|
|
65
66
|
describeHeader: (input) => {
|
|
66
67
|
const agentLabel = input.agentId ? input.agentId.replace(/-agent$/, "") : null;
|
|
67
68
|
const title = agentLabel ? agentLabel.charAt(0).toUpperCase() + agentLabel.slice(1) : "Agent";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spawn-agent-tool.d.ts","sourceRoot":"","sources":["../../../src/tool-factories/agent-spawner/spawn-agent-tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AA4CxD,wBAAgB,oBAAoB,CAChC,OAAO,EAAE,mBAAmB,GAC7B,IAAI,CAAC,OAAO,qBAAqB,CAAC,
|
|
1
|
+
{"version":3,"file":"spawn-agent-tool.d.ts","sourceRoot":"","sources":["../../../src/tool-factories/agent-spawner/spawn-agent-tool.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAwB,MAAM,aAAa,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AA4CxD,wBAAgB,oBAAoB,CAChC,OAAO,EAAE,mBAAmB,GAC7B,IAAI,CAAC,OAAO,qBAAqB,CAAC,CAyDpC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLocalToolCallHeader, truncateForHeader } from "@dexto/core";
|
|
1
|
+
import { TOOL_ACTIVITY, createLocalToolCallHeader, truncateForHeader } from "@dexto/core";
|
|
2
2
|
import { SpawnAgentInputSchema } from "./schemas.js";
|
|
3
3
|
async function buildDescription(service) {
|
|
4
4
|
const availableAgents = await service.getAvailableAgents();
|
|
@@ -39,6 +39,7 @@ function createSpawnAgentTool(service) {
|
|
|
39
39
|
description: "Spawn a sub-agent to handle a task and return its result.",
|
|
40
40
|
getDescription: () => buildDescription(service),
|
|
41
41
|
presentation: {
|
|
42
|
+
activity: TOOL_ACTIVITY.runAgent,
|
|
42
43
|
describeHeader: (input) => {
|
|
43
44
|
const agentLabel = input.agentId ? input.agentId.replace(/-agent$/, "") : null;
|
|
44
45
|
const title = agentLabel ? agentLabel.charAt(0).toUpperCase() + agentLabel.slice(1) : "Agent";
|
|
@@ -236,6 +236,7 @@ const creatorToolsFactory = {
|
|
|
236
236
|
id: "skill_create",
|
|
237
237
|
description: "Create a standalone SKILL.md file, scaffold bundled resource directories, and register it with the running agent. Files under mcps/ are inert bundled files.",
|
|
238
238
|
inputSchema: SkillCreateInputSchema,
|
|
239
|
+
presentation: { activity: import_core.TOOL_ACTIVITY.createSkill },
|
|
239
240
|
execute: async (input, context) => {
|
|
240
241
|
const resolvedInput = resolveSkillCreateInput(input);
|
|
241
242
|
const skillId = resolvedInput.id.trim();
|
|
@@ -284,6 +285,7 @@ const creatorToolsFactory = {
|
|
|
284
285
|
id: "skill_update",
|
|
285
286
|
description: "Update an existing standalone SKILL.md file.",
|
|
286
287
|
inputSchema: SkillUpdateInputSchema,
|
|
288
|
+
presentation: { activity: import_core.TOOL_ACTIVITY.updateSkill },
|
|
287
289
|
execute: async (input, context) => {
|
|
288
290
|
const skillId = input.id.trim();
|
|
289
291
|
(0, import_core.assertValidPromptName)(skillId, {
|
|
@@ -329,6 +331,7 @@ const creatorToolsFactory = {
|
|
|
329
331
|
id: "skill_refresh",
|
|
330
332
|
description: "Refresh one standalone skill bundle in the current session after editing SKILL.md, handlers/, scripts/, mcps/, or references/.",
|
|
331
333
|
inputSchema: SkillRefreshInputSchema,
|
|
334
|
+
presentation: { activity: import_core.TOOL_ACTIVITY.refreshSkill },
|
|
332
335
|
execute: async (input, context) => {
|
|
333
336
|
const skillId = input.id.trim();
|
|
334
337
|
(0, import_core.assertValidPromptName)(skillId, {
|
|
@@ -364,6 +367,7 @@ const creatorToolsFactory = {
|
|
|
364
367
|
id: "skill_search",
|
|
365
368
|
description: "Search loaded skills (supports query).",
|
|
366
369
|
inputSchema: SkillSearchInputSchema,
|
|
370
|
+
presentation: { activity: import_core.TOOL_ACTIVITY.searchSkills },
|
|
367
371
|
execute: async (input, context) => {
|
|
368
372
|
const query = input.query?.trim() ?? "";
|
|
369
373
|
const normalizedQuery = normalizeSkillQuery(query);
|
|
@@ -404,6 +408,7 @@ const creatorToolsFactory = {
|
|
|
404
408
|
id: "skill_list",
|
|
405
409
|
description: "List discovered standalone skills and their search paths. Supports optional query filtering.",
|
|
406
410
|
inputSchema: SkillListInputSchema,
|
|
411
|
+
presentation: { activity: import_core.TOOL_ACTIVITY.searchSkills },
|
|
407
412
|
execute: async (input) => {
|
|
408
413
|
const query = input.query?.trim().toLowerCase();
|
|
409
414
|
const skills = (0, import_discover_skills.discoverStandaloneSkills)(input.projectPath);
|
|
@@ -423,6 +428,7 @@ const creatorToolsFactory = {
|
|
|
423
428
|
id: "tool_catalog",
|
|
424
429
|
description: "List available tools and configured toolkits for the current agent (from the loaded image/config).",
|
|
425
430
|
inputSchema: ToolCatalogInputSchema,
|
|
431
|
+
presentation: { activity: import_core.TOOL_ACTIVITY.discoverTools },
|
|
426
432
|
execute: async (input, context) => {
|
|
427
433
|
const agent = context.agent;
|
|
428
434
|
if (!agent) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/tool-factories/creator-tools/factory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/tool-factories/creator-tools/factory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAWvD,OAAO,EAIH,KAAK,kBAAkB,EAC1B,MAAM,cAAc,CAAC;AAqVtB,eAAO,MAAM,mBAAmB,EAAE,WAAW,CAAC,kBAAkB,CAyS/D,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { promises as fs } from "node:fs";
|
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import {
|
|
4
4
|
ToolError,
|
|
5
|
+
TOOL_ACTIVITY,
|
|
5
6
|
defineTool,
|
|
6
7
|
assertValidPromptName
|
|
7
8
|
} from "@dexto/core";
|
|
@@ -210,6 +211,7 @@ const creatorToolsFactory = {
|
|
|
210
211
|
id: "skill_create",
|
|
211
212
|
description: "Create a standalone SKILL.md file, scaffold bundled resource directories, and register it with the running agent. Files under mcps/ are inert bundled files.",
|
|
212
213
|
inputSchema: SkillCreateInputSchema,
|
|
214
|
+
presentation: { activity: TOOL_ACTIVITY.createSkill },
|
|
213
215
|
execute: async (input, context) => {
|
|
214
216
|
const resolvedInput = resolveSkillCreateInput(input);
|
|
215
217
|
const skillId = resolvedInput.id.trim();
|
|
@@ -258,6 +260,7 @@ const creatorToolsFactory = {
|
|
|
258
260
|
id: "skill_update",
|
|
259
261
|
description: "Update an existing standalone SKILL.md file.",
|
|
260
262
|
inputSchema: SkillUpdateInputSchema,
|
|
263
|
+
presentation: { activity: TOOL_ACTIVITY.updateSkill },
|
|
261
264
|
execute: async (input, context) => {
|
|
262
265
|
const skillId = input.id.trim();
|
|
263
266
|
assertValidPromptName(skillId, {
|
|
@@ -303,6 +306,7 @@ const creatorToolsFactory = {
|
|
|
303
306
|
id: "skill_refresh",
|
|
304
307
|
description: "Refresh one standalone skill bundle in the current session after editing SKILL.md, handlers/, scripts/, mcps/, or references/.",
|
|
305
308
|
inputSchema: SkillRefreshInputSchema,
|
|
309
|
+
presentation: { activity: TOOL_ACTIVITY.refreshSkill },
|
|
306
310
|
execute: async (input, context) => {
|
|
307
311
|
const skillId = input.id.trim();
|
|
308
312
|
assertValidPromptName(skillId, {
|
|
@@ -338,6 +342,7 @@ const creatorToolsFactory = {
|
|
|
338
342
|
id: "skill_search",
|
|
339
343
|
description: "Search loaded skills (supports query).",
|
|
340
344
|
inputSchema: SkillSearchInputSchema,
|
|
345
|
+
presentation: { activity: TOOL_ACTIVITY.searchSkills },
|
|
341
346
|
execute: async (input, context) => {
|
|
342
347
|
const query = input.query?.trim() ?? "";
|
|
343
348
|
const normalizedQuery = normalizeSkillQuery(query);
|
|
@@ -378,6 +383,7 @@ const creatorToolsFactory = {
|
|
|
378
383
|
id: "skill_list",
|
|
379
384
|
description: "List discovered standalone skills and their search paths. Supports optional query filtering.",
|
|
380
385
|
inputSchema: SkillListInputSchema,
|
|
386
|
+
presentation: { activity: TOOL_ACTIVITY.searchSkills },
|
|
381
387
|
execute: async (input) => {
|
|
382
388
|
const query = input.query?.trim().toLowerCase();
|
|
383
389
|
const skills = discoverStandaloneSkills(input.projectPath);
|
|
@@ -397,6 +403,7 @@ const creatorToolsFactory = {
|
|
|
397
403
|
id: "tool_catalog",
|
|
398
404
|
description: "List available tools and configured toolkits for the current agent (from the loaded image/config).",
|
|
399
405
|
inputSchema: ToolCatalogInputSchema,
|
|
406
|
+
presentation: { activity: TOOL_ACTIVITY.discoverTools },
|
|
400
407
|
execute: async (input, context) => {
|
|
401
408
|
const agent = context.agent;
|
|
402
409
|
if (!agent) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dexto/agent-management",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"yaml": "^2.8.3",
|
|
24
24
|
"zod": "^4.3.6",
|
|
25
|
-
"@dexto/agent-config": "1.10.
|
|
26
|
-
"@dexto/core": "1.10.
|
|
27
|
-
"@dexto/llm": "1.10.
|
|
28
|
-
"@dexto/orchestration": "1.10.
|
|
29
|
-
"@dexto/tools-builtins": "1.10.
|
|
25
|
+
"@dexto/agent-config": "1.10.1",
|
|
26
|
+
"@dexto/core": "1.10.1",
|
|
27
|
+
"@dexto/llm": "1.10.1",
|
|
28
|
+
"@dexto/orchestration": "1.10.1",
|
|
29
|
+
"@dexto/tools-builtins": "1.10.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^22.13.5"
|