@mclawnet/mcp-server 0.1.3 → 0.1.4

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.
@@ -0,0 +1,526 @@
1
+ export interface InboxRelayLike {
2
+ deliver(swarmId: string, instanceId: string): void | Promise<void>;
3
+ }
4
+ export interface TaskToolInboxContext {
5
+ rootDir: string;
6
+ relay?: InboxRelayLike;
7
+ }
8
+ export interface TaskToolContext {
9
+ rootDir: string;
10
+ /**
11
+ * Optional inbox context. When set, completing a task fans out
12
+ * `dep-resolved-*` comments and `unblock-*` inbox messages to downstream
13
+ * tasks (best-effort: failures are logged, never abort the status change).
14
+ */
15
+ inbox?: TaskToolInboxContext;
16
+ }
17
+ export declare const TASK_TOOL_NAMES: Set<string>;
18
+ export declare function getTaskToolDefinitions(): ({
19
+ name: string;
20
+ description: string;
21
+ inputSchema: {
22
+ type: "object";
23
+ properties: {
24
+ workDir: {
25
+ type: string;
26
+ description: string;
27
+ };
28
+ teamName: {
29
+ type: string;
30
+ description: string;
31
+ };
32
+ subject: {
33
+ type: string;
34
+ description: string;
35
+ };
36
+ description: {
37
+ type: string;
38
+ description: string;
39
+ };
40
+ swarmId: {
41
+ type: string;
42
+ description: string;
43
+ };
44
+ owner: {
45
+ type: string;
46
+ description: string;
47
+ };
48
+ from: {
49
+ type: string;
50
+ description: string;
51
+ };
52
+ blockedBy: {
53
+ type: string;
54
+ items: {
55
+ type: string;
56
+ };
57
+ description: string;
58
+ };
59
+ sourceMessageId?: undefined;
60
+ sourceInstanceId?: undefined;
61
+ taskId?: undefined;
62
+ status?: undefined;
63
+ author?: undefined;
64
+ body?: undefined;
65
+ type?: undefined;
66
+ id?: undefined;
67
+ fromTaskId?: undefined;
68
+ toTaskId?: undefined;
69
+ instanceId?: undefined;
70
+ format?: undefined;
71
+ roleType?: undefined;
72
+ };
73
+ required: string[];
74
+ };
75
+ } | {
76
+ name: string;
77
+ description: string;
78
+ inputSchema: {
79
+ type: "object";
80
+ properties: {
81
+ workDir: {
82
+ type: string;
83
+ description: string;
84
+ };
85
+ teamName: {
86
+ type: string;
87
+ description: string;
88
+ };
89
+ subject: {
90
+ type: string;
91
+ description: string;
92
+ };
93
+ description: {
94
+ type: string;
95
+ description: string;
96
+ };
97
+ swarmId: {
98
+ type: string;
99
+ description: string;
100
+ };
101
+ owner: {
102
+ type: string;
103
+ description: string;
104
+ };
105
+ from: {
106
+ type: string;
107
+ description: string;
108
+ };
109
+ blockedBy: {
110
+ type: string;
111
+ items: {
112
+ type: string;
113
+ };
114
+ description: string;
115
+ };
116
+ sourceMessageId: {
117
+ type: string;
118
+ description: string;
119
+ };
120
+ sourceInstanceId: {
121
+ type: string;
122
+ description: string;
123
+ };
124
+ taskId?: undefined;
125
+ status?: undefined;
126
+ author?: undefined;
127
+ body?: undefined;
128
+ type?: undefined;
129
+ id?: undefined;
130
+ fromTaskId?: undefined;
131
+ toTaskId?: undefined;
132
+ instanceId?: undefined;
133
+ format?: undefined;
134
+ roleType?: undefined;
135
+ };
136
+ required: string[];
137
+ };
138
+ } | {
139
+ name: string;
140
+ description: string;
141
+ inputSchema: {
142
+ type: "object";
143
+ properties: {
144
+ workDir: {
145
+ type: string;
146
+ description: string;
147
+ };
148
+ taskId: {
149
+ type: string;
150
+ description: string;
151
+ };
152
+ teamName?: undefined;
153
+ subject?: undefined;
154
+ description?: undefined;
155
+ swarmId?: undefined;
156
+ owner?: undefined;
157
+ from?: undefined;
158
+ blockedBy?: undefined;
159
+ sourceMessageId?: undefined;
160
+ sourceInstanceId?: undefined;
161
+ status?: undefined;
162
+ author?: undefined;
163
+ body?: undefined;
164
+ type?: undefined;
165
+ id?: undefined;
166
+ fromTaskId?: undefined;
167
+ toTaskId?: undefined;
168
+ instanceId?: undefined;
169
+ format?: undefined;
170
+ roleType?: undefined;
171
+ };
172
+ required: string[];
173
+ };
174
+ } | {
175
+ name: string;
176
+ description: string;
177
+ inputSchema: {
178
+ type: "object";
179
+ properties: {
180
+ workDir: {
181
+ type: string;
182
+ description: string;
183
+ };
184
+ swarmId: {
185
+ type: string;
186
+ description: string;
187
+ };
188
+ status: {
189
+ type: string;
190
+ description: string;
191
+ enum?: undefined;
192
+ };
193
+ owner: {
194
+ type: string;
195
+ description: string;
196
+ };
197
+ teamName?: undefined;
198
+ subject?: undefined;
199
+ description?: undefined;
200
+ from?: undefined;
201
+ blockedBy?: undefined;
202
+ sourceMessageId?: undefined;
203
+ sourceInstanceId?: undefined;
204
+ taskId?: undefined;
205
+ author?: undefined;
206
+ body?: undefined;
207
+ type?: undefined;
208
+ id?: undefined;
209
+ fromTaskId?: undefined;
210
+ toTaskId?: undefined;
211
+ instanceId?: undefined;
212
+ format?: undefined;
213
+ roleType?: undefined;
214
+ };
215
+ required: string[];
216
+ };
217
+ } | {
218
+ name: string;
219
+ description: string;
220
+ inputSchema: {
221
+ type: "object";
222
+ properties: {
223
+ workDir: {
224
+ type: string;
225
+ description: string;
226
+ };
227
+ taskId: {
228
+ type: string;
229
+ description: string;
230
+ };
231
+ status: {
232
+ type: string;
233
+ enum: string[];
234
+ description: string;
235
+ };
236
+ teamName?: undefined;
237
+ subject?: undefined;
238
+ description?: undefined;
239
+ swarmId?: undefined;
240
+ owner?: undefined;
241
+ from?: undefined;
242
+ blockedBy?: undefined;
243
+ sourceMessageId?: undefined;
244
+ sourceInstanceId?: undefined;
245
+ author?: undefined;
246
+ body?: undefined;
247
+ type?: undefined;
248
+ id?: undefined;
249
+ fromTaskId?: undefined;
250
+ toTaskId?: undefined;
251
+ instanceId?: undefined;
252
+ format?: undefined;
253
+ roleType?: undefined;
254
+ };
255
+ required: string[];
256
+ };
257
+ } | {
258
+ name: string;
259
+ description: string;
260
+ inputSchema: {
261
+ type: "object";
262
+ properties: {
263
+ workDir: {
264
+ type: string;
265
+ description: string;
266
+ };
267
+ taskId: {
268
+ type: string;
269
+ description: string;
270
+ };
271
+ owner: {
272
+ type: string[];
273
+ description: string;
274
+ };
275
+ from: {
276
+ type: string;
277
+ description: string;
278
+ };
279
+ teamName?: undefined;
280
+ subject?: undefined;
281
+ description?: undefined;
282
+ swarmId?: undefined;
283
+ blockedBy?: undefined;
284
+ sourceMessageId?: undefined;
285
+ sourceInstanceId?: undefined;
286
+ status?: undefined;
287
+ author?: undefined;
288
+ body?: undefined;
289
+ type?: undefined;
290
+ id?: undefined;
291
+ fromTaskId?: undefined;
292
+ toTaskId?: undefined;
293
+ instanceId?: undefined;
294
+ format?: undefined;
295
+ roleType?: undefined;
296
+ };
297
+ required: string[];
298
+ };
299
+ } | {
300
+ name: string;
301
+ description: string;
302
+ inputSchema: {
303
+ type: "object";
304
+ properties: {
305
+ workDir: {
306
+ type: string;
307
+ description: string;
308
+ };
309
+ taskId: {
310
+ type: string;
311
+ description: string;
312
+ };
313
+ author: {
314
+ type: string;
315
+ description: string;
316
+ };
317
+ body: {
318
+ type: string;
319
+ description: string;
320
+ };
321
+ type: {
322
+ type: string;
323
+ description: string;
324
+ };
325
+ id: {
326
+ type: string;
327
+ description: string;
328
+ };
329
+ teamName?: undefined;
330
+ subject?: undefined;
331
+ description?: undefined;
332
+ swarmId?: undefined;
333
+ owner?: undefined;
334
+ from?: undefined;
335
+ blockedBy?: undefined;
336
+ sourceMessageId?: undefined;
337
+ sourceInstanceId?: undefined;
338
+ status?: undefined;
339
+ fromTaskId?: undefined;
340
+ toTaskId?: undefined;
341
+ instanceId?: undefined;
342
+ format?: undefined;
343
+ roleType?: undefined;
344
+ };
345
+ required: string[];
346
+ };
347
+ } | {
348
+ name: string;
349
+ description: string;
350
+ inputSchema: {
351
+ type: "object";
352
+ properties: {
353
+ workDir: {
354
+ type: string;
355
+ description: string;
356
+ };
357
+ fromTaskId: {
358
+ type: string;
359
+ description: string;
360
+ };
361
+ toTaskId: {
362
+ type: string;
363
+ description: string;
364
+ };
365
+ teamName?: undefined;
366
+ subject?: undefined;
367
+ description?: undefined;
368
+ swarmId?: undefined;
369
+ owner?: undefined;
370
+ from?: undefined;
371
+ blockedBy?: undefined;
372
+ sourceMessageId?: undefined;
373
+ sourceInstanceId?: undefined;
374
+ taskId?: undefined;
375
+ status?: undefined;
376
+ author?: undefined;
377
+ body?: undefined;
378
+ type?: undefined;
379
+ id?: undefined;
380
+ instanceId?: undefined;
381
+ format?: undefined;
382
+ roleType?: undefined;
383
+ };
384
+ required: string[];
385
+ };
386
+ } | {
387
+ name: string;
388
+ description: string;
389
+ inputSchema: {
390
+ type: "object";
391
+ properties: {
392
+ workDir: {
393
+ type: string;
394
+ description: string;
395
+ };
396
+ swarmId: {
397
+ type: string;
398
+ description: string;
399
+ };
400
+ instanceId: {
401
+ type: string;
402
+ description: string;
403
+ };
404
+ format: {
405
+ type: string;
406
+ enum: string[];
407
+ description: string;
408
+ default: string;
409
+ };
410
+ teamName?: undefined;
411
+ subject?: undefined;
412
+ description?: undefined;
413
+ owner?: undefined;
414
+ from?: undefined;
415
+ blockedBy?: undefined;
416
+ sourceMessageId?: undefined;
417
+ sourceInstanceId?: undefined;
418
+ taskId?: undefined;
419
+ status?: undefined;
420
+ author?: undefined;
421
+ body?: undefined;
422
+ type?: undefined;
423
+ id?: undefined;
424
+ fromTaskId?: undefined;
425
+ toTaskId?: undefined;
426
+ roleType?: undefined;
427
+ };
428
+ required: string[];
429
+ };
430
+ } | {
431
+ name: string;
432
+ description: string;
433
+ inputSchema: {
434
+ type: "object";
435
+ properties: {
436
+ workDir: {
437
+ type: string;
438
+ description: string;
439
+ };
440
+ swarmId: {
441
+ type: string;
442
+ description: string;
443
+ };
444
+ format: {
445
+ type: string;
446
+ enum: string[];
447
+ description: string;
448
+ default: string;
449
+ };
450
+ teamName?: undefined;
451
+ subject?: undefined;
452
+ description?: undefined;
453
+ owner?: undefined;
454
+ from?: undefined;
455
+ blockedBy?: undefined;
456
+ sourceMessageId?: undefined;
457
+ sourceInstanceId?: undefined;
458
+ taskId?: undefined;
459
+ status?: undefined;
460
+ author?: undefined;
461
+ body?: undefined;
462
+ type?: undefined;
463
+ id?: undefined;
464
+ fromTaskId?: undefined;
465
+ toTaskId?: undefined;
466
+ instanceId?: undefined;
467
+ roleType?: undefined;
468
+ };
469
+ required: string[];
470
+ };
471
+ } | {
472
+ name: string;
473
+ description: string;
474
+ inputSchema: {
475
+ type: "object";
476
+ properties: {
477
+ workDir: {
478
+ type: string;
479
+ description: string;
480
+ };
481
+ swarmId: {
482
+ type: string;
483
+ description: string;
484
+ };
485
+ instanceId: {
486
+ type: string;
487
+ description: string;
488
+ };
489
+ roleType: {
490
+ type: string;
491
+ description: string;
492
+ };
493
+ format: {
494
+ type: string;
495
+ enum: string[];
496
+ description: string;
497
+ default: string;
498
+ };
499
+ teamName?: undefined;
500
+ subject?: undefined;
501
+ description?: undefined;
502
+ owner?: undefined;
503
+ from?: undefined;
504
+ blockedBy?: undefined;
505
+ sourceMessageId?: undefined;
506
+ sourceInstanceId?: undefined;
507
+ taskId?: undefined;
508
+ status?: undefined;
509
+ author?: undefined;
510
+ body?: undefined;
511
+ type?: undefined;
512
+ id?: undefined;
513
+ fromTaskId?: undefined;
514
+ toTaskId?: undefined;
515
+ };
516
+ required: string[];
517
+ };
518
+ })[];
519
+ export declare function handleTaskToolCall(name: string, args: Record<string, unknown>, context: TaskToolContext): Promise<{
520
+ content: Array<{
521
+ type: "text";
522
+ text: string;
523
+ }>;
524
+ isError?: boolean;
525
+ }>;
526
+ //# sourceMappingURL=task.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../src/tools/task.ts"],"names":[],"mappings":"AAoBA,MAAM,WAAW,cAAc;IAC7B,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACpE;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MA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