opencara 0.107.0 → 0.108.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/bin.js +12 -81
- package/dist/opencara-mcp.js +2 -145
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -243,50 +243,11 @@ var KanbanWaveDispatchCallSchema = z4.object({
|
|
|
243
243
|
flowSlug: z4.string().min(1),
|
|
244
244
|
issueNumbers: z4.array(z4.number().int()).min(1).max(10)
|
|
245
245
|
});
|
|
246
|
-
var IssueSubissueCreateCallSchema = z4.object({
|
|
247
|
-
...AgentCallEnvelope,
|
|
248
|
-
kind: z4.literal("issue.subissue.create"),
|
|
249
|
-
parentIssueNumber: z4.number().int(),
|
|
250
|
-
title: z4.string().min(1),
|
|
251
|
-
bodyMd: z4.string(),
|
|
252
|
-
labels: z4.array(z4.string()).optional()
|
|
253
|
-
});
|
|
254
|
-
var IssueCreateCallSchema = z4.object({
|
|
255
|
-
...AgentCallEnvelope,
|
|
256
|
-
kind: z4.literal("issue.create"),
|
|
257
|
-
title: z4.string().min(1),
|
|
258
|
-
bodyMd: z4.string(),
|
|
259
|
-
labels: z4.array(z4.string()).optional()
|
|
260
|
-
});
|
|
261
|
-
var IssueStateSetCallSchema = z4.object({
|
|
262
|
-
...AgentCallEnvelope,
|
|
263
|
-
kind: z4.literal("issue.state.set"),
|
|
264
|
-
issueNumber: z4.number().int(),
|
|
265
|
-
state: z4.enum(["open", "closed"]),
|
|
266
|
-
stateReason: z4.enum(["completed", "not_planned", "reopened"]).nullable().optional()
|
|
267
|
-
});
|
|
268
|
-
var IssueCommentCreateCallSchema = z4.object({
|
|
269
|
-
...AgentCallEnvelope,
|
|
270
|
-
kind: z4.literal("issue.comment.create"),
|
|
271
|
-
issueNumber: z4.number().int(),
|
|
272
|
-
bodyMd: z4.string().min(1)
|
|
273
|
-
});
|
|
274
|
-
var IssueLabelsSetCallSchema = z4.object({
|
|
275
|
-
...AgentCallEnvelope,
|
|
276
|
-
kind: z4.literal("issue.labels.set"),
|
|
277
|
-
issueNumber: z4.number().int(),
|
|
278
|
-
labels: z4.array(z4.string())
|
|
279
|
-
});
|
|
280
246
|
var AgentCallSchema = z4.discriminatedUnion("kind", [
|
|
281
247
|
IssueBodySetCallSchema,
|
|
282
248
|
FlowNodeConfigSetCallSchema,
|
|
283
249
|
TemplateNodeConfigSetCallSchema,
|
|
284
|
-
KanbanWaveDispatchCallSchema
|
|
285
|
-
IssueSubissueCreateCallSchema,
|
|
286
|
-
IssueCreateCallSchema,
|
|
287
|
-
IssueStateSetCallSchema,
|
|
288
|
-
IssueCommentCreateCallSchema,
|
|
289
|
-
IssueLabelsSetCallSchema
|
|
250
|
+
KanbanWaveDispatchCallSchema
|
|
290
251
|
]);
|
|
291
252
|
var AgentCallRequestEnvelope = {
|
|
292
253
|
type: z4.literal("agent-call-request"),
|
|
@@ -319,50 +280,11 @@ var KanbanWaveDispatchCallRequestSchema = z4.object({
|
|
|
319
280
|
flowSlug: z4.string().min(1),
|
|
320
281
|
issueNumbers: z4.array(z4.number().int()).min(1).max(10)
|
|
321
282
|
});
|
|
322
|
-
var IssueSubissueCreateCallRequestSchema = z4.object({
|
|
323
|
-
...AgentCallRequestEnvelope,
|
|
324
|
-
kind: z4.literal("issue.subissue.create"),
|
|
325
|
-
parentIssueNumber: z4.number().int(),
|
|
326
|
-
title: z4.string().min(1),
|
|
327
|
-
bodyMd: z4.string(),
|
|
328
|
-
labels: z4.array(z4.string()).optional()
|
|
329
|
-
});
|
|
330
|
-
var IssueCreateCallRequestSchema = z4.object({
|
|
331
|
-
...AgentCallRequestEnvelope,
|
|
332
|
-
kind: z4.literal("issue.create"),
|
|
333
|
-
title: z4.string().min(1),
|
|
334
|
-
bodyMd: z4.string(),
|
|
335
|
-
labels: z4.array(z4.string()).optional()
|
|
336
|
-
});
|
|
337
|
-
var IssueStateSetCallRequestSchema = z4.object({
|
|
338
|
-
...AgentCallRequestEnvelope,
|
|
339
|
-
kind: z4.literal("issue.state.set"),
|
|
340
|
-
issueNumber: z4.number().int(),
|
|
341
|
-
state: z4.enum(["open", "closed"]),
|
|
342
|
-
stateReason: z4.enum(["completed", "not_planned", "reopened"]).nullable().optional()
|
|
343
|
-
});
|
|
344
|
-
var IssueCommentCreateCallRequestSchema = z4.object({
|
|
345
|
-
...AgentCallRequestEnvelope,
|
|
346
|
-
kind: z4.literal("issue.comment.create"),
|
|
347
|
-
issueNumber: z4.number().int(),
|
|
348
|
-
bodyMd: z4.string().min(1)
|
|
349
|
-
});
|
|
350
|
-
var IssueLabelsSetCallRequestSchema = z4.object({
|
|
351
|
-
...AgentCallRequestEnvelope,
|
|
352
|
-
kind: z4.literal("issue.labels.set"),
|
|
353
|
-
issueNumber: z4.number().int(),
|
|
354
|
-
labels: z4.array(z4.string())
|
|
355
|
-
});
|
|
356
283
|
var AgentCallRequestSchema = z4.discriminatedUnion("kind", [
|
|
357
284
|
IssueBodySetCallRequestSchema,
|
|
358
285
|
FlowNodeConfigSetCallRequestSchema,
|
|
359
286
|
TemplateNodeConfigSetCallRequestSchema,
|
|
360
|
-
KanbanWaveDispatchCallRequestSchema
|
|
361
|
-
IssueSubissueCreateCallRequestSchema,
|
|
362
|
-
IssueCreateCallRequestSchema,
|
|
363
|
-
IssueStateSetCallRequestSchema,
|
|
364
|
-
IssueCommentCreateCallRequestSchema,
|
|
365
|
-
IssueLabelsSetCallRequestSchema
|
|
287
|
+
KanbanWaveDispatchCallRequestSchema
|
|
366
288
|
]);
|
|
367
289
|
var AgentCallResultSchema = z4.object({
|
|
368
290
|
type: z4.literal("agent-call-result"),
|
|
@@ -1151,6 +1073,15 @@ function buildAgentCallRequest(runId, callId, kind, args) {
|
|
|
1151
1073
|
nodeId: String(args["nodeId"] ?? ""),
|
|
1152
1074
|
config: args["config"] ?? {}
|
|
1153
1075
|
};
|
|
1076
|
+
case "kanban.wave.dispatch":
|
|
1077
|
+
return {
|
|
1078
|
+
type: "agent-call-request",
|
|
1079
|
+
runId,
|
|
1080
|
+
callId,
|
|
1081
|
+
kind: "kanban.wave.dispatch",
|
|
1082
|
+
flowSlug: String(args["flowSlug"] ?? ""),
|
|
1083
|
+
issueNumbers: Array.isArray(args["issueNumbers"]) ? args["issueNumbers"].map((n) => Number(n)) : []
|
|
1084
|
+
};
|
|
1154
1085
|
default:
|
|
1155
1086
|
return null;
|
|
1156
1087
|
}
|
|
@@ -1376,7 +1307,7 @@ function resolveLocalAcpAdapter(command, args) {
|
|
|
1376
1307
|
}
|
|
1377
1308
|
|
|
1378
1309
|
// src/commands/run.ts
|
|
1379
|
-
var PKG_VERSION = "0.
|
|
1310
|
+
var PKG_VERSION = "0.108.0";
|
|
1380
1311
|
var LOG_FLUSH_MS = 800;
|
|
1381
1312
|
var MAX_CHUNK_SIZE = 4 * 1024;
|
|
1382
1313
|
async function run(opts = {}) {
|
package/dist/opencara-mcp.js
CHANGED
|
@@ -284,50 +284,11 @@ var KanbanWaveDispatchCallSchema = z3.object({
|
|
|
284
284
|
flowSlug: z3.string().min(1),
|
|
285
285
|
issueNumbers: z3.array(z3.number().int()).min(1).max(10)
|
|
286
286
|
});
|
|
287
|
-
var IssueSubissueCreateCallSchema = z3.object({
|
|
288
|
-
...AgentCallEnvelope,
|
|
289
|
-
kind: z3.literal("issue.subissue.create"),
|
|
290
|
-
parentIssueNumber: z3.number().int(),
|
|
291
|
-
title: z3.string().min(1),
|
|
292
|
-
bodyMd: z3.string(),
|
|
293
|
-
labels: z3.array(z3.string()).optional()
|
|
294
|
-
});
|
|
295
|
-
var IssueCreateCallSchema = z3.object({
|
|
296
|
-
...AgentCallEnvelope,
|
|
297
|
-
kind: z3.literal("issue.create"),
|
|
298
|
-
title: z3.string().min(1),
|
|
299
|
-
bodyMd: z3.string(),
|
|
300
|
-
labels: z3.array(z3.string()).optional()
|
|
301
|
-
});
|
|
302
|
-
var IssueStateSetCallSchema = z3.object({
|
|
303
|
-
...AgentCallEnvelope,
|
|
304
|
-
kind: z3.literal("issue.state.set"),
|
|
305
|
-
issueNumber: z3.number().int(),
|
|
306
|
-
state: z3.enum(["open", "closed"]),
|
|
307
|
-
stateReason: z3.enum(["completed", "not_planned", "reopened"]).nullable().optional()
|
|
308
|
-
});
|
|
309
|
-
var IssueCommentCreateCallSchema = z3.object({
|
|
310
|
-
...AgentCallEnvelope,
|
|
311
|
-
kind: z3.literal("issue.comment.create"),
|
|
312
|
-
issueNumber: z3.number().int(),
|
|
313
|
-
bodyMd: z3.string().min(1)
|
|
314
|
-
});
|
|
315
|
-
var IssueLabelsSetCallSchema = z3.object({
|
|
316
|
-
...AgentCallEnvelope,
|
|
317
|
-
kind: z3.literal("issue.labels.set"),
|
|
318
|
-
issueNumber: z3.number().int(),
|
|
319
|
-
labels: z3.array(z3.string())
|
|
320
|
-
});
|
|
321
287
|
var AgentCallSchema = z3.discriminatedUnion("kind", [
|
|
322
288
|
IssueBodySetCallSchema,
|
|
323
289
|
FlowNodeConfigSetCallSchema,
|
|
324
290
|
TemplateNodeConfigSetCallSchema,
|
|
325
|
-
KanbanWaveDispatchCallSchema
|
|
326
|
-
IssueSubissueCreateCallSchema,
|
|
327
|
-
IssueCreateCallSchema,
|
|
328
|
-
IssueStateSetCallSchema,
|
|
329
|
-
IssueCommentCreateCallSchema,
|
|
330
|
-
IssueLabelsSetCallSchema
|
|
291
|
+
KanbanWaveDispatchCallSchema
|
|
331
292
|
]);
|
|
332
293
|
var AgentCallRequestEnvelope = {
|
|
333
294
|
type: z3.literal("agent-call-request"),
|
|
@@ -360,50 +321,11 @@ var KanbanWaveDispatchCallRequestSchema = z3.object({
|
|
|
360
321
|
flowSlug: z3.string().min(1),
|
|
361
322
|
issueNumbers: z3.array(z3.number().int()).min(1).max(10)
|
|
362
323
|
});
|
|
363
|
-
var IssueSubissueCreateCallRequestSchema = z3.object({
|
|
364
|
-
...AgentCallRequestEnvelope,
|
|
365
|
-
kind: z3.literal("issue.subissue.create"),
|
|
366
|
-
parentIssueNumber: z3.number().int(),
|
|
367
|
-
title: z3.string().min(1),
|
|
368
|
-
bodyMd: z3.string(),
|
|
369
|
-
labels: z3.array(z3.string()).optional()
|
|
370
|
-
});
|
|
371
|
-
var IssueCreateCallRequestSchema = z3.object({
|
|
372
|
-
...AgentCallRequestEnvelope,
|
|
373
|
-
kind: z3.literal("issue.create"),
|
|
374
|
-
title: z3.string().min(1),
|
|
375
|
-
bodyMd: z3.string(),
|
|
376
|
-
labels: z3.array(z3.string()).optional()
|
|
377
|
-
});
|
|
378
|
-
var IssueStateSetCallRequestSchema = z3.object({
|
|
379
|
-
...AgentCallRequestEnvelope,
|
|
380
|
-
kind: z3.literal("issue.state.set"),
|
|
381
|
-
issueNumber: z3.number().int(),
|
|
382
|
-
state: z3.enum(["open", "closed"]),
|
|
383
|
-
stateReason: z3.enum(["completed", "not_planned", "reopened"]).nullable().optional()
|
|
384
|
-
});
|
|
385
|
-
var IssueCommentCreateCallRequestSchema = z3.object({
|
|
386
|
-
...AgentCallRequestEnvelope,
|
|
387
|
-
kind: z3.literal("issue.comment.create"),
|
|
388
|
-
issueNumber: z3.number().int(),
|
|
389
|
-
bodyMd: z3.string().min(1)
|
|
390
|
-
});
|
|
391
|
-
var IssueLabelsSetCallRequestSchema = z3.object({
|
|
392
|
-
...AgentCallRequestEnvelope,
|
|
393
|
-
kind: z3.literal("issue.labels.set"),
|
|
394
|
-
issueNumber: z3.number().int(),
|
|
395
|
-
labels: z3.array(z3.string())
|
|
396
|
-
});
|
|
397
324
|
var AgentCallRequestSchema = z3.discriminatedUnion("kind", [
|
|
398
325
|
IssueBodySetCallRequestSchema,
|
|
399
326
|
FlowNodeConfigSetCallRequestSchema,
|
|
400
327
|
TemplateNodeConfigSetCallRequestSchema,
|
|
401
|
-
KanbanWaveDispatchCallRequestSchema
|
|
402
|
-
IssueSubissueCreateCallRequestSchema,
|
|
403
|
-
IssueCreateCallRequestSchema,
|
|
404
|
-
IssueStateSetCallRequestSchema,
|
|
405
|
-
IssueCommentCreateCallRequestSchema,
|
|
406
|
-
IssueLabelsSetCallRequestSchema
|
|
328
|
+
KanbanWaveDispatchCallRequestSchema
|
|
407
329
|
]);
|
|
408
330
|
var AgentCallResultSchema = z3.object({
|
|
409
331
|
type: z3.literal("agent-call-result"),
|
|
@@ -494,36 +416,6 @@ var kanbanWaveDispatchShape = KanbanWaveDispatchCallSchema.omit({
|
|
|
494
416
|
callId: true,
|
|
495
417
|
kind: true
|
|
496
418
|
}).shape;
|
|
497
|
-
var issueSubissueCreateShape = IssueSubissueCreateCallSchema.omit({
|
|
498
|
-
type: true,
|
|
499
|
-
runId: true,
|
|
500
|
-
callId: true,
|
|
501
|
-
kind: true
|
|
502
|
-
}).shape;
|
|
503
|
-
var issueCreateShape = IssueCreateCallSchema.omit({
|
|
504
|
-
type: true,
|
|
505
|
-
runId: true,
|
|
506
|
-
callId: true,
|
|
507
|
-
kind: true
|
|
508
|
-
}).shape;
|
|
509
|
-
var issueStateSetShape = IssueStateSetCallSchema.omit({
|
|
510
|
-
type: true,
|
|
511
|
-
runId: true,
|
|
512
|
-
callId: true,
|
|
513
|
-
kind: true
|
|
514
|
-
}).shape;
|
|
515
|
-
var issueCommentCreateShape = IssueCommentCreateCallSchema.omit({
|
|
516
|
-
type: true,
|
|
517
|
-
runId: true,
|
|
518
|
-
callId: true,
|
|
519
|
-
kind: true
|
|
520
|
-
}).shape;
|
|
521
|
-
var issueLabelsSetShape = IssueLabelsSetCallSchema.omit({
|
|
522
|
-
type: true,
|
|
523
|
-
runId: true,
|
|
524
|
-
callId: true,
|
|
525
|
-
kind: true
|
|
526
|
-
}).shape;
|
|
527
419
|
var TOOLS = [
|
|
528
420
|
{
|
|
529
421
|
name: "opencara_issue_body_set",
|
|
@@ -552,41 +444,6 @@ var TOOLS = [
|
|
|
552
444
|
title: "Dispatch a batch of issues to a flow",
|
|
553
445
|
description: "Dispatch up to 10 issues in parallel to the named project flow. Requires project scope. Reject if the flow does not exist, is disabled, or any of the issue numbers are not in the project. Returns the wave id.",
|
|
554
446
|
inputShape: kanbanWaveDispatchShape
|
|
555
|
-
},
|
|
556
|
-
{
|
|
557
|
-
name: "opencara_issue_subissue_create",
|
|
558
|
-
kind: "issue.subissue.create",
|
|
559
|
-
title: "Create a GitHub sub-issue under a parent",
|
|
560
|
-
description: "Create a new GitHub issue and link it as a child of the given parent issue via the GraphQL addSubIssue mutation. Requires project scope. Reject if the parent issue is not in the project.",
|
|
561
|
-
inputShape: issueSubissueCreateShape
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
name: "opencara_issue_create",
|
|
565
|
-
kind: "issue.create",
|
|
566
|
-
title: "Create a top-level GitHub issue",
|
|
567
|
-
description: "Create a new GitHub issue in the run's project with no parent link. Requires project scope. Returns the new issueNumber and nodeId.",
|
|
568
|
-
inputShape: issueCreateShape
|
|
569
|
-
},
|
|
570
|
-
{
|
|
571
|
-
name: "opencara_issue_state_set",
|
|
572
|
-
kind: "issue.state.set",
|
|
573
|
-
title: "Open or close an existing issue",
|
|
574
|
-
description: "Set an issue's state to open or closed. Optional stateReason: completed | not_planned | reopened. Requires project scope. Reject if the issue is not in the project.",
|
|
575
|
-
inputShape: issueStateSetShape
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
name: "opencara_issue_comment_create",
|
|
579
|
-
kind: "issue.comment.create",
|
|
580
|
-
title: "Post a comment on an issue",
|
|
581
|
-
description: "Post a Markdown comment on the named issue. Comments are not mirrored locally; the comment lives on GitHub. Requires project scope. Reject if the issue is not in the project.",
|
|
582
|
-
inputShape: issueCommentCreateShape
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
name: "opencara_issue_labels_set",
|
|
586
|
-
kind: "issue.labels.set",
|
|
587
|
-
title: "Replace the label set on an issue",
|
|
588
|
-
description: "Set the issue's labels to exactly the listed names (REST setLabels semantics). Any label not in the list is removed; empty array clears all labels. Requires project scope.",
|
|
589
|
-
inputShape: issueLabelsSetShape
|
|
590
447
|
}
|
|
591
448
|
];
|
|
592
449
|
function registerOpencaraTools(server, router) {
|