@kynver-app/mcp-agent-os 0.3.8 → 0.3.9
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/tools/tasks.js +10 -0
- package/package.json +1 -1
package/dist/tools/tasks.js
CHANGED
|
@@ -31,6 +31,11 @@ const taskEventType = z.enum([
|
|
|
31
31
|
"failed",
|
|
32
32
|
]);
|
|
33
33
|
const artifactVisibility = z.enum(["internal", "telegram_safe", "public_pr_safe"]);
|
|
34
|
+
const personaSlug = z
|
|
35
|
+
.string()
|
|
36
|
+
.nullable()
|
|
37
|
+
.optional()
|
|
38
|
+
.describe("Lane-expert worker slug to attribute the task to, or null to clear/filter unassigned tasks.");
|
|
34
39
|
export function registerTaskTools({ register, resolveToolSlug, jsonResult, compact, }) {
|
|
35
40
|
const slugField = z
|
|
36
41
|
.string()
|
|
@@ -45,6 +50,7 @@ export function registerTaskTools({ register, resolveToolSlug, jsonResult, compa
|
|
|
45
50
|
parentTaskId: z.string().optional().describe("Parent task id when this is one of 2+ coordinated workers."),
|
|
46
51
|
goalId: z.string().optional(),
|
|
47
52
|
projectId: z.string().optional(),
|
|
53
|
+
personaSlug,
|
|
48
54
|
idempotencyKey: z.string().optional().describe("Dedupe key from the foreground turn. Strongly recommended."),
|
|
49
55
|
requestId: z.string().optional().describe("Raw foreground request id; used as the dedupe key if idempotencyKey is absent."),
|
|
50
56
|
slug: slugField,
|
|
@@ -61,6 +67,7 @@ export function registerTaskTools({ register, resolveToolSlug, jsonResult, compa
|
|
|
61
67
|
status: taskStatus.optional(),
|
|
62
68
|
executor: taskExecutor.optional(),
|
|
63
69
|
parentTaskId: z.string().optional(),
|
|
70
|
+
personaSlug,
|
|
64
71
|
limit: z.number().optional().describe("Max rows (default 50, max 200)."),
|
|
65
72
|
slug: slugField,
|
|
66
73
|
}, async (args) => {
|
|
@@ -71,6 +78,8 @@ export function registerTaskTools({ register, resolveToolSlug, jsonResult, compa
|
|
|
71
78
|
params.set("executor", args.executor);
|
|
72
79
|
if (args.parentTaskId)
|
|
73
80
|
params.set("parentTaskId", args.parentTaskId);
|
|
81
|
+
if (args.personaSlug !== undefined)
|
|
82
|
+
params.set("personaSlug", args.personaSlug ?? "");
|
|
74
83
|
if (args.limit)
|
|
75
84
|
params.set("limit", String(args.limit));
|
|
76
85
|
const qs = params.toString();
|
|
@@ -88,6 +97,7 @@ export function registerTaskTools({ register, resolveToolSlug, jsonResult, compa
|
|
|
88
97
|
parentTaskId: z.string().optional(),
|
|
89
98
|
goalId: z.string().optional(),
|
|
90
99
|
projectId: z.string().optional(),
|
|
100
|
+
personaSlug,
|
|
91
101
|
lastSummary: z.string().optional().describe("Latest progress summary."),
|
|
92
102
|
blocker: z.string().optional(),
|
|
93
103
|
branch: z.string().optional(),
|
package/package.json
CHANGED