brainclaw 1.22.0 → 1.23.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/brainclaw-vscode.vsix +0 -0
- package/dist/cli/register-capture.js +15 -0
- package/dist/commands/loops-handlers.js +0 -1
- package/dist/commands/mcp-catalog.js +24 -256
- package/dist/commands/mcp-read-handlers.js +5 -1
- package/dist/commands/mcp-schemas.generated.js +811 -1
- package/dist/commands/mcp-write-coordination.js +16 -7
- package/dist/commands/mcp.js +45 -1
- package/dist/commands/memory-confirm.js +83 -0
- package/dist/commands/switch.js +24 -2
- package/dist/core/assignment-request-schema.js +112 -0
- package/dist/core/capture-schema.js +62 -0
- package/dist/core/claim-request-schema.js +72 -0
- package/dist/core/code-map/aggregate.js +36 -1
- package/dist/core/sequence-request-schema.js +93 -0
- package/dist/core/session-request-schema.js +90 -0
- package/dist/core/step-request-schema.js +112 -0
- package/dist/core/store-resolution.js +34 -5
- package/dist/core/warnings.js +37 -0
- package/dist/facts.js +6 -6
- package/dist/facts.json +5 -5
- package/docs/integrations/mcp.md +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
// AUTO-GENERATED by scripts/build-mcp-schemas.mjs — DO NOT EDIT BY HAND.
|
|
2
|
-
// Source zod schemas: src/core/loops/types.ts, src/core/loops/facade-schema.ts
|
|
2
|
+
// Source zod schemas: src/core/loops/types.ts, src/core/loops/facade-schema.ts,
|
|
3
|
+
// src/core/capture-schema.ts, src/core/sequence-request-schema.ts,
|
|
4
|
+
// src/core/claim-request-schema.ts, src/core/session-request-schema.ts,
|
|
5
|
+
// src/core/step-request-schema.ts, src/core/assignment-request-schema.ts
|
|
3
6
|
// Regenerate: npm run build:mcp-schemas
|
|
4
7
|
//
|
|
5
8
|
// This file materializes the zod-derived JSON Schema view consumed by the
|
|
@@ -300,6 +303,813 @@ export const generatedSchemas = {
|
|
|
300
303
|
"role"
|
|
301
304
|
],
|
|
302
305
|
"additionalProperties": false
|
|
306
|
+
},
|
|
307
|
+
"WriteNoteRequest": {
|
|
308
|
+
"type": "object",
|
|
309
|
+
"properties": {
|
|
310
|
+
"text": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"description": "Note content."
|
|
313
|
+
},
|
|
314
|
+
"agent": {
|
|
315
|
+
"type": "string",
|
|
316
|
+
"description": "Agent name."
|
|
317
|
+
},
|
|
318
|
+
"agentId": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"description": "Registered agent id."
|
|
321
|
+
},
|
|
322
|
+
"tags": {
|
|
323
|
+
"type": "array",
|
|
324
|
+
"items": {
|
|
325
|
+
"type": "string"
|
|
326
|
+
},
|
|
327
|
+
"description": "Optional tags."
|
|
328
|
+
},
|
|
329
|
+
"visibility": {
|
|
330
|
+
"type": "string",
|
|
331
|
+
"description": "Visibility: shared, machine, private."
|
|
332
|
+
},
|
|
333
|
+
"ttl": {
|
|
334
|
+
"type": "string",
|
|
335
|
+
"description": "Optional TTL: 30m, 2h, 7d."
|
|
336
|
+
},
|
|
337
|
+
"autoReflect": {
|
|
338
|
+
"type": "boolean",
|
|
339
|
+
"description": "Attempt to reflect the runtime note into durable memory immediately."
|
|
340
|
+
},
|
|
341
|
+
"crossProject": {
|
|
342
|
+
"type": "string",
|
|
343
|
+
"description": "Push note to a linked project (name or path). Requires role: publisher in cross_project_links config."
|
|
344
|
+
},
|
|
345
|
+
"cross_project": {
|
|
346
|
+
"type": "string",
|
|
347
|
+
"description": "Snake_case alias of crossProject."
|
|
348
|
+
}
|
|
349
|
+
},
|
|
350
|
+
"required": [
|
|
351
|
+
"text"
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
"QuickCaptureRequest": {
|
|
355
|
+
"type": "object",
|
|
356
|
+
"properties": {
|
|
357
|
+
"text": {
|
|
358
|
+
"type": "string",
|
|
359
|
+
"description": "Free-form capture text."
|
|
360
|
+
},
|
|
361
|
+
"type": {
|
|
362
|
+
"type": "string",
|
|
363
|
+
"enum": [
|
|
364
|
+
"decision",
|
|
365
|
+
"trap",
|
|
366
|
+
"constraint",
|
|
367
|
+
"note"
|
|
368
|
+
],
|
|
369
|
+
"description": "Caller-asserted classification. Strongly recommended — the calling agent knows the nature of the capture better than keyword heuristics (cnd_abe61d68: 18 false contradiction positives on a review summary)."
|
|
370
|
+
},
|
|
371
|
+
"context": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"description": "Optional file/path/scope context to associate with the capture."
|
|
374
|
+
},
|
|
375
|
+
"agent": {
|
|
376
|
+
"type": "string",
|
|
377
|
+
"description": "Agent name."
|
|
378
|
+
},
|
|
379
|
+
"agentId": {
|
|
380
|
+
"type": "string",
|
|
381
|
+
"description": "Registered agent id."
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
"required": [
|
|
385
|
+
"text"
|
|
386
|
+
]
|
|
387
|
+
},
|
|
388
|
+
"CreateSequenceRequest": {
|
|
389
|
+
"type": "object",
|
|
390
|
+
"properties": {
|
|
391
|
+
"name": {
|
|
392
|
+
"type": "string",
|
|
393
|
+
"description": "Sequence name."
|
|
394
|
+
},
|
|
395
|
+
"description": {
|
|
396
|
+
"type": "string",
|
|
397
|
+
"description": "Optional sequence description."
|
|
398
|
+
},
|
|
399
|
+
"status": {
|
|
400
|
+
"type": "string",
|
|
401
|
+
"description": "Status: draft, active, archived."
|
|
402
|
+
},
|
|
403
|
+
"owner": {
|
|
404
|
+
"type": "string",
|
|
405
|
+
"description": "Optional sequence owner."
|
|
406
|
+
},
|
|
407
|
+
"items": {
|
|
408
|
+
"type": "array",
|
|
409
|
+
"items": {
|
|
410
|
+
"type": "object",
|
|
411
|
+
"properties": {
|
|
412
|
+
"planId": {
|
|
413
|
+
"type": "string",
|
|
414
|
+
"minLength": 1,
|
|
415
|
+
"description": "Plan item ID referenced by this sequence item."
|
|
416
|
+
},
|
|
417
|
+
"stepId": {
|
|
418
|
+
"type": "string",
|
|
419
|
+
"minLength": 1,
|
|
420
|
+
"description": "Optional plan step ID inside planId for step-level dispatch/readiness."
|
|
421
|
+
},
|
|
422
|
+
"rank": {
|
|
423
|
+
"type": "number",
|
|
424
|
+
"minimum": 1,
|
|
425
|
+
"description": "Positive integer ordering key. Ranks must be unique within a sequence."
|
|
426
|
+
},
|
|
427
|
+
"hard_after": {
|
|
428
|
+
"type": "array",
|
|
429
|
+
"items": {
|
|
430
|
+
"type": "string"
|
|
431
|
+
},
|
|
432
|
+
"description": "Sequence item planId values that must complete before this item becomes ready."
|
|
433
|
+
},
|
|
434
|
+
"soft_after": {
|
|
435
|
+
"type": "array",
|
|
436
|
+
"items": {
|
|
437
|
+
"type": "string"
|
|
438
|
+
},
|
|
439
|
+
"description": "Advisory predecessor planId values; they inform ordering but do not block readiness."
|
|
440
|
+
},
|
|
441
|
+
"lane": {
|
|
442
|
+
"type": "string",
|
|
443
|
+
"description": "Optional lane label used for parallel dispatch grouping and filtering."
|
|
444
|
+
},
|
|
445
|
+
"scope_hint": {
|
|
446
|
+
"type": "string",
|
|
447
|
+
"description": "Optional file/path scope hint for claim and brief generation."
|
|
448
|
+
},
|
|
449
|
+
"rationale": {
|
|
450
|
+
"type": "string",
|
|
451
|
+
"description": "Optional explanation for this item or dependency placement."
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
"required": [
|
|
455
|
+
"planId",
|
|
456
|
+
"rank"
|
|
457
|
+
],
|
|
458
|
+
"additionalProperties": false,
|
|
459
|
+
"description": "Sequence lane item. planId is required; stepId optionally narrows dispatch/readiness to a specific plan step."
|
|
460
|
+
},
|
|
461
|
+
"description": "Sequence items in rank order."
|
|
462
|
+
},
|
|
463
|
+
"tags": {
|
|
464
|
+
"type": "array",
|
|
465
|
+
"items": {
|
|
466
|
+
"type": "string"
|
|
467
|
+
},
|
|
468
|
+
"description": "Optional tags."
|
|
469
|
+
},
|
|
470
|
+
"agent": {
|
|
471
|
+
"type": "string",
|
|
472
|
+
"description": "Agent name."
|
|
473
|
+
},
|
|
474
|
+
"agentId": {
|
|
475
|
+
"type": "string",
|
|
476
|
+
"description": "Registered agent id."
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
"required": [
|
|
480
|
+
"name"
|
|
481
|
+
]
|
|
482
|
+
},
|
|
483
|
+
"UpdateSequenceRequest": {
|
|
484
|
+
"type": "object",
|
|
485
|
+
"properties": {
|
|
486
|
+
"id": {
|
|
487
|
+
"type": "string",
|
|
488
|
+
"description": "Sequence ID or short label."
|
|
489
|
+
},
|
|
490
|
+
"name": {
|
|
491
|
+
"type": "string",
|
|
492
|
+
"description": "Optional new sequence name."
|
|
493
|
+
},
|
|
494
|
+
"description": {
|
|
495
|
+
"type": "string",
|
|
496
|
+
"description": "Optional new description."
|
|
497
|
+
},
|
|
498
|
+
"status": {
|
|
499
|
+
"type": "string",
|
|
500
|
+
"description": "Status: draft, active, archived."
|
|
501
|
+
},
|
|
502
|
+
"owner": {
|
|
503
|
+
"type": "string",
|
|
504
|
+
"description": "Optional sequence owner."
|
|
505
|
+
},
|
|
506
|
+
"items": {
|
|
507
|
+
"type": "array",
|
|
508
|
+
"items": {
|
|
509
|
+
"type": "object",
|
|
510
|
+
"properties": {
|
|
511
|
+
"planId": {
|
|
512
|
+
"type": "string",
|
|
513
|
+
"minLength": 1,
|
|
514
|
+
"description": "Plan item ID referenced by this sequence item."
|
|
515
|
+
},
|
|
516
|
+
"stepId": {
|
|
517
|
+
"type": "string",
|
|
518
|
+
"minLength": 1,
|
|
519
|
+
"description": "Optional plan step ID inside planId for step-level dispatch/readiness."
|
|
520
|
+
},
|
|
521
|
+
"rank": {
|
|
522
|
+
"type": "number",
|
|
523
|
+
"minimum": 1,
|
|
524
|
+
"description": "Positive integer ordering key. Ranks must be unique within a sequence."
|
|
525
|
+
},
|
|
526
|
+
"hard_after": {
|
|
527
|
+
"type": "array",
|
|
528
|
+
"items": {
|
|
529
|
+
"type": "string"
|
|
530
|
+
},
|
|
531
|
+
"description": "Sequence item planId values that must complete before this item becomes ready."
|
|
532
|
+
},
|
|
533
|
+
"soft_after": {
|
|
534
|
+
"type": "array",
|
|
535
|
+
"items": {
|
|
536
|
+
"type": "string"
|
|
537
|
+
},
|
|
538
|
+
"description": "Advisory predecessor planId values; they inform ordering but do not block readiness."
|
|
539
|
+
},
|
|
540
|
+
"lane": {
|
|
541
|
+
"type": "string",
|
|
542
|
+
"description": "Optional lane label used for parallel dispatch grouping and filtering."
|
|
543
|
+
},
|
|
544
|
+
"scope_hint": {
|
|
545
|
+
"type": "string",
|
|
546
|
+
"description": "Optional file/path scope hint for claim and brief generation."
|
|
547
|
+
},
|
|
548
|
+
"rationale": {
|
|
549
|
+
"type": "string",
|
|
550
|
+
"description": "Optional explanation for this item or dependency placement."
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
"required": [
|
|
554
|
+
"planId",
|
|
555
|
+
"rank"
|
|
556
|
+
],
|
|
557
|
+
"additionalProperties": false,
|
|
558
|
+
"description": "Sequence lane item. planId is required; stepId optionally narrows dispatch/readiness to a specific plan step."
|
|
559
|
+
},
|
|
560
|
+
"description": "Optional replacement items array."
|
|
561
|
+
},
|
|
562
|
+
"tags": {
|
|
563
|
+
"type": "array",
|
|
564
|
+
"items": {
|
|
565
|
+
"type": "string"
|
|
566
|
+
},
|
|
567
|
+
"description": "Optional replacement tags."
|
|
568
|
+
},
|
|
569
|
+
"agent": {
|
|
570
|
+
"type": "string",
|
|
571
|
+
"description": "Agent name."
|
|
572
|
+
},
|
|
573
|
+
"agentId": {
|
|
574
|
+
"type": "string",
|
|
575
|
+
"description": "Registered agent id."
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
"required": [
|
|
579
|
+
"id"
|
|
580
|
+
]
|
|
581
|
+
},
|
|
582
|
+
"ClaimRequest": {
|
|
583
|
+
"type": "object",
|
|
584
|
+
"properties": {
|
|
585
|
+
"scope": {
|
|
586
|
+
"type": "string",
|
|
587
|
+
"description": "Scope being claimed."
|
|
588
|
+
},
|
|
589
|
+
"description": {
|
|
590
|
+
"type": "string",
|
|
591
|
+
"description": "Description of the work."
|
|
592
|
+
},
|
|
593
|
+
"agent": {
|
|
594
|
+
"type": "string",
|
|
595
|
+
"description": "Agent or person name."
|
|
596
|
+
},
|
|
597
|
+
"agentId": {
|
|
598
|
+
"type": "string",
|
|
599
|
+
"description": "Registered agent id."
|
|
600
|
+
},
|
|
601
|
+
"planId": {
|
|
602
|
+
"type": "string",
|
|
603
|
+
"description": "Optional linked plan item ID."
|
|
604
|
+
},
|
|
605
|
+
"project": {
|
|
606
|
+
"type": "string",
|
|
607
|
+
"description": "Project name or path. Use this when working on a project different from the MCP server workspace (e.g. CLI agents in a different directory)."
|
|
608
|
+
},
|
|
609
|
+
"store": {
|
|
610
|
+
"type": "string",
|
|
611
|
+
"description": "Target store level: local (default), repo, workspace."
|
|
612
|
+
},
|
|
613
|
+
"worktreeBranch": {
|
|
614
|
+
"type": "string",
|
|
615
|
+
"description": "Branch name for the worktree. Defaults to feat/<scope-slug>."
|
|
616
|
+
},
|
|
617
|
+
"worktree": {
|
|
618
|
+
"type": "boolean",
|
|
619
|
+
"description": "Whether to create an isolated git worktree (default true). Pass false for an advisory-only lock with no worktree (trp#431) — for in-place work in the main tree."
|
|
620
|
+
},
|
|
621
|
+
"advisory": {
|
|
622
|
+
"type": "boolean",
|
|
623
|
+
"description": "Alias for worktree:false — advisory-only lock with no worktree (trp#431)."
|
|
624
|
+
},
|
|
625
|
+
"handoffMode": {
|
|
626
|
+
"type": "string",
|
|
627
|
+
"enum": [
|
|
628
|
+
"self-commit",
|
|
629
|
+
"integrator"
|
|
630
|
+
],
|
|
631
|
+
"description": "Handoff mode: \"self-commit\" (worker commits+merges) or \"integrator\" (another agent reviews+merges). Default: self-commit."
|
|
632
|
+
}
|
|
633
|
+
},
|
|
634
|
+
"required": [
|
|
635
|
+
"scope",
|
|
636
|
+
"description"
|
|
637
|
+
]
|
|
638
|
+
},
|
|
639
|
+
"ReleaseClaimRequest": {
|
|
640
|
+
"type": "object",
|
|
641
|
+
"properties": {
|
|
642
|
+
"id": {
|
|
643
|
+
"type": "string",
|
|
644
|
+
"description": "Claim ID to release."
|
|
645
|
+
},
|
|
646
|
+
"planStatus": {
|
|
647
|
+
"type": "string",
|
|
648
|
+
"description": "Optional: update linked plan status."
|
|
649
|
+
},
|
|
650
|
+
"coordinator_override": {
|
|
651
|
+
"type": "boolean",
|
|
652
|
+
"description": "Opt-in override for a trusted+ caller releasing a claim they do NOT own (cross-agent teardown, ghost-claim cleanup). Rejected for contributor-level callers; audited when used. trp#928."
|
|
653
|
+
}
|
|
654
|
+
},
|
|
655
|
+
"required": [
|
|
656
|
+
"id"
|
|
657
|
+
]
|
|
658
|
+
},
|
|
659
|
+
"SessionStartRequest": {
|
|
660
|
+
"type": "object",
|
|
661
|
+
"properties": {
|
|
662
|
+
"agent": {
|
|
663
|
+
"type": "string",
|
|
664
|
+
"description": "Agent name."
|
|
665
|
+
},
|
|
666
|
+
"agentId": {
|
|
667
|
+
"type": "string",
|
|
668
|
+
"description": "Registered agent id."
|
|
669
|
+
},
|
|
670
|
+
"context": {
|
|
671
|
+
"type": "string",
|
|
672
|
+
"description": "Context target path."
|
|
673
|
+
},
|
|
674
|
+
"maintenanceMode": {
|
|
675
|
+
"type": "string",
|
|
676
|
+
"enum": [
|
|
677
|
+
"fast",
|
|
678
|
+
"full"
|
|
679
|
+
],
|
|
680
|
+
"description": "Maintenance mode. Default is full for explicit session-start calls; use fast to skip non-critical maintenance work."
|
|
681
|
+
},
|
|
682
|
+
"includeContext": {
|
|
683
|
+
"type": "boolean",
|
|
684
|
+
"description": "Include project memory context in the response (equivalent to bclaw_get_context)."
|
|
685
|
+
},
|
|
686
|
+
"includeBoard": {
|
|
687
|
+
"type": "boolean",
|
|
688
|
+
"description": "Include agent board (plans, claims, handoffs) in the response (equivalent to bclaw_get_agent_board)."
|
|
689
|
+
},
|
|
690
|
+
"contextProfile": {
|
|
691
|
+
"type": "string",
|
|
692
|
+
"description": "Context profile when includeContext is true: dev (default), dense, compact, copilot, quick, briefing, openclaw, ops, research. If unset, uses the agent default profile."
|
|
693
|
+
},
|
|
694
|
+
"contextFormat": {
|
|
695
|
+
"type": "string",
|
|
696
|
+
"description": "Context format when includeContext is true: markdown, json, or template."
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
},
|
|
700
|
+
"SessionEndRequest": {
|
|
701
|
+
"type": "object",
|
|
702
|
+
"properties": {
|
|
703
|
+
"session": {
|
|
704
|
+
"type": "string",
|
|
705
|
+
"description": "Session ID."
|
|
706
|
+
},
|
|
707
|
+
"agent": {
|
|
708
|
+
"type": "string",
|
|
709
|
+
"description": "Agent name."
|
|
710
|
+
},
|
|
711
|
+
"agentId": {
|
|
712
|
+
"type": "string",
|
|
713
|
+
"description": "Registered agent id."
|
|
714
|
+
},
|
|
715
|
+
"summary": {
|
|
716
|
+
"type": "string",
|
|
717
|
+
"description": "Session summary text."
|
|
718
|
+
},
|
|
719
|
+
"narrative": {
|
|
720
|
+
"type": "string",
|
|
721
|
+
"description": "Free-text narrative of what happened in the session and why. Goes beyond the auto-generated commit list: \"Tried X, failed because Y, pivoted to Z. Watch out for A.\""
|
|
722
|
+
},
|
|
723
|
+
"autoReflect": {
|
|
724
|
+
"type": "boolean",
|
|
725
|
+
"description": "Auto-reflect session notes as candidates."
|
|
726
|
+
},
|
|
727
|
+
"autoRelease": {
|
|
728
|
+
"type": "boolean",
|
|
729
|
+
"description": "Auto-release any active claims at session end."
|
|
730
|
+
},
|
|
731
|
+
"reflectHandoff": {
|
|
732
|
+
"type": "boolean",
|
|
733
|
+
"description": "Materialize an open handoff from git commits since session start."
|
|
734
|
+
},
|
|
735
|
+
"dispatchReview": {
|
|
736
|
+
"type": "boolean",
|
|
737
|
+
"description": "When used with reflectHandoff, auto-dispatch a code review if the reflected handoff is reviewable."
|
|
738
|
+
},
|
|
739
|
+
"reviewer": {
|
|
740
|
+
"type": "string",
|
|
741
|
+
"description": "Explicit reviewer for the reflected handoff review dispatch."
|
|
742
|
+
},
|
|
743
|
+
"reflect": {
|
|
744
|
+
"type": "boolean",
|
|
745
|
+
"description": "Emit the dogfooding reflection prompt (project + your surfaces/skills/tools). Default true — pass false to suppress on a trivial session. Capture actionable findings via bclaw_quick_capture."
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
},
|
|
749
|
+
"AddStepRequest": {
|
|
750
|
+
"type": "object",
|
|
751
|
+
"properties": {
|
|
752
|
+
"planId": {
|
|
753
|
+
"type": "string",
|
|
754
|
+
"description": "Plan item ID."
|
|
755
|
+
},
|
|
756
|
+
"data": {
|
|
757
|
+
"type": "object",
|
|
758
|
+
"properties": {
|
|
759
|
+
"text": {
|
|
760
|
+
"type": "string",
|
|
761
|
+
"description": "Step description."
|
|
762
|
+
},
|
|
763
|
+
"title": {
|
|
764
|
+
"type": "string",
|
|
765
|
+
"description": "Alias for text."
|
|
766
|
+
},
|
|
767
|
+
"assignee": {
|
|
768
|
+
"type": "string",
|
|
769
|
+
"description": "Optional assignee."
|
|
770
|
+
},
|
|
771
|
+
"estimated_effort": {
|
|
772
|
+
"type": "number",
|
|
773
|
+
"description": "Step-level estimate in minutes (pln#495). A duration string like \"2h\"/\"30m\" is also accepted and coerced."
|
|
774
|
+
},
|
|
775
|
+
"actual_effort": {
|
|
776
|
+
"type": "string",
|
|
777
|
+
"description": "Step-level actual effort, free-form (\"45m\", \"2h\"), parsed when the estimation report runs."
|
|
778
|
+
}
|
|
779
|
+
},
|
|
780
|
+
"description": "Canonical step payload: { text, title?, assignee? }. title is accepted as an alias for text."
|
|
781
|
+
},
|
|
782
|
+
"text": {
|
|
783
|
+
"type": "string",
|
|
784
|
+
"description": "Legacy top-level step description; prefer data.text."
|
|
785
|
+
},
|
|
786
|
+
"agent": {
|
|
787
|
+
"type": "string",
|
|
788
|
+
"description": "Agent name."
|
|
789
|
+
},
|
|
790
|
+
"agentId": {
|
|
791
|
+
"type": "string",
|
|
792
|
+
"description": "Registered agent id."
|
|
793
|
+
},
|
|
794
|
+
"assignee": {
|
|
795
|
+
"type": "string",
|
|
796
|
+
"description": "Legacy top-level optional assignee; prefer data.assignee."
|
|
797
|
+
},
|
|
798
|
+
"project": {
|
|
799
|
+
"type": "string",
|
|
800
|
+
"description": "Optional: name (or path/basename) of a linked project to add the step in. Defaults to the current project. Same resolution as canonical-grammar tools — accepts cross_project_links and workspace store-chain children."
|
|
801
|
+
}
|
|
802
|
+
},
|
|
803
|
+
"required": [
|
|
804
|
+
"planId"
|
|
805
|
+
]
|
|
806
|
+
},
|
|
807
|
+
"UpdateStepRequest": {
|
|
808
|
+
"type": "object",
|
|
809
|
+
"properties": {
|
|
810
|
+
"planId": {
|
|
811
|
+
"type": "string",
|
|
812
|
+
"description": "Plan item ID."
|
|
813
|
+
},
|
|
814
|
+
"stepId": {
|
|
815
|
+
"type": "string",
|
|
816
|
+
"description": "Step ID to update."
|
|
817
|
+
},
|
|
818
|
+
"status": {
|
|
819
|
+
"type": "string",
|
|
820
|
+
"description": "New status: todo, in_progress, testing, done, blocked."
|
|
821
|
+
},
|
|
822
|
+
"text": {
|
|
823
|
+
"type": "string",
|
|
824
|
+
"description": "New step text."
|
|
825
|
+
},
|
|
826
|
+
"assignee": {
|
|
827
|
+
"type": "string",
|
|
828
|
+
"description": "New assignee (empty string to unassign)."
|
|
829
|
+
},
|
|
830
|
+
"estimated_effort": {
|
|
831
|
+
"type": "number",
|
|
832
|
+
"description": "Step-level estimate in minutes (pln#495); a duration string is also coerced."
|
|
833
|
+
},
|
|
834
|
+
"actual_effort": {
|
|
835
|
+
"type": "string",
|
|
836
|
+
"description": "Step-level actual effort, free-form (\"45m\", \"2h\")."
|
|
837
|
+
},
|
|
838
|
+
"agent": {
|
|
839
|
+
"type": "string",
|
|
840
|
+
"description": "Agent name."
|
|
841
|
+
},
|
|
842
|
+
"agentId": {
|
|
843
|
+
"type": "string",
|
|
844
|
+
"description": "Registered agent id."
|
|
845
|
+
},
|
|
846
|
+
"project": {
|
|
847
|
+
"type": "string",
|
|
848
|
+
"description": "Optional: name of a linked project to update the step in. Defaults to the current project."
|
|
849
|
+
}
|
|
850
|
+
},
|
|
851
|
+
"required": [
|
|
852
|
+
"planId",
|
|
853
|
+
"stepId"
|
|
854
|
+
]
|
|
855
|
+
},
|
|
856
|
+
"CompleteStepRequest": {
|
|
857
|
+
"type": "object",
|
|
858
|
+
"properties": {
|
|
859
|
+
"planId": {
|
|
860
|
+
"type": "string",
|
|
861
|
+
"description": "Plan item ID."
|
|
862
|
+
},
|
|
863
|
+
"stepId": {
|
|
864
|
+
"type": "string",
|
|
865
|
+
"description": "Step ID to complete."
|
|
866
|
+
},
|
|
867
|
+
"agent": {
|
|
868
|
+
"type": "string",
|
|
869
|
+
"description": "Agent name."
|
|
870
|
+
},
|
|
871
|
+
"agentId": {
|
|
872
|
+
"type": "string",
|
|
873
|
+
"description": "Registered agent id."
|
|
874
|
+
},
|
|
875
|
+
"project": {
|
|
876
|
+
"type": "string",
|
|
877
|
+
"description": "Optional: name of a linked project to complete the step in. Defaults to the current project."
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
"required": [
|
|
881
|
+
"planId",
|
|
882
|
+
"stepId"
|
|
883
|
+
]
|
|
884
|
+
},
|
|
885
|
+
"DeleteStepRequest": {
|
|
886
|
+
"type": "object",
|
|
887
|
+
"properties": {
|
|
888
|
+
"planId": {
|
|
889
|
+
"type": "string",
|
|
890
|
+
"description": "Plan item ID."
|
|
891
|
+
},
|
|
892
|
+
"stepId": {
|
|
893
|
+
"type": "string",
|
|
894
|
+
"description": "Step ID to delete."
|
|
895
|
+
},
|
|
896
|
+
"agent": {
|
|
897
|
+
"type": "string",
|
|
898
|
+
"description": "Agent name."
|
|
899
|
+
},
|
|
900
|
+
"agentId": {
|
|
901
|
+
"type": "string",
|
|
902
|
+
"description": "Registered agent id."
|
|
903
|
+
},
|
|
904
|
+
"project": {
|
|
905
|
+
"type": "string",
|
|
906
|
+
"description": "Optional: name of a linked project to delete the step from. Defaults to the current project."
|
|
907
|
+
}
|
|
908
|
+
},
|
|
909
|
+
"required": [
|
|
910
|
+
"planId",
|
|
911
|
+
"stepId"
|
|
912
|
+
]
|
|
913
|
+
},
|
|
914
|
+
"AssignmentUpdateRequest": {
|
|
915
|
+
"type": "object",
|
|
916
|
+
"properties": {
|
|
917
|
+
"assignment_id": {
|
|
918
|
+
"type": "string",
|
|
919
|
+
"description": "Assignment ID from the dispatch brief (asgn_xxx)."
|
|
920
|
+
},
|
|
921
|
+
"status": {
|
|
922
|
+
"type": "string",
|
|
923
|
+
"enum": [
|
|
924
|
+
"accepted",
|
|
925
|
+
"started",
|
|
926
|
+
"progress",
|
|
927
|
+
"completed",
|
|
928
|
+
"failed",
|
|
929
|
+
"blocked"
|
|
930
|
+
],
|
|
931
|
+
"description": "Lifecycle status to report."
|
|
932
|
+
},
|
|
933
|
+
"message": {
|
|
934
|
+
"type": "string",
|
|
935
|
+
"description": "Human-readable status message or progress note."
|
|
936
|
+
},
|
|
937
|
+
"artifacts": {
|
|
938
|
+
"type": "array",
|
|
939
|
+
"items": {
|
|
940
|
+
"type": "object",
|
|
941
|
+
"properties": {
|
|
942
|
+
"type": {
|
|
943
|
+
"type": "string",
|
|
944
|
+
"description": "Artifact type: commit, branch, file, pr, test_result."
|
|
945
|
+
},
|
|
946
|
+
"ref": {
|
|
947
|
+
"type": "string",
|
|
948
|
+
"description": "Reference: SHA, branch name, file path, PR URL."
|
|
949
|
+
},
|
|
950
|
+
"description": {
|
|
951
|
+
"type": "string",
|
|
952
|
+
"description": "Optional description."
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
"required": [
|
|
956
|
+
"type",
|
|
957
|
+
"ref"
|
|
958
|
+
]
|
|
959
|
+
},
|
|
960
|
+
"description": "Artifacts produced. Most useful for completed status."
|
|
961
|
+
},
|
|
962
|
+
"error_message": {
|
|
963
|
+
"type": "string",
|
|
964
|
+
"description": "Error details (for failed status)."
|
|
965
|
+
},
|
|
966
|
+
"blocker": {
|
|
967
|
+
"type": "string",
|
|
968
|
+
"description": "Blocker description (for blocked status)."
|
|
969
|
+
},
|
|
970
|
+
"action_required": {
|
|
971
|
+
"type": "object",
|
|
972
|
+
"properties": {
|
|
973
|
+
"kind": {
|
|
974
|
+
"type": "string",
|
|
975
|
+
"enum": [
|
|
976
|
+
"approval",
|
|
977
|
+
"user_input",
|
|
978
|
+
"clarification",
|
|
979
|
+
"plan_approval"
|
|
980
|
+
],
|
|
981
|
+
"description": "Kind of action needed."
|
|
982
|
+
},
|
|
983
|
+
"title": {
|
|
984
|
+
"type": "string",
|
|
985
|
+
"description": "Short title shown to supervisors/UI."
|
|
986
|
+
},
|
|
987
|
+
"prompt": {
|
|
988
|
+
"type": "string",
|
|
989
|
+
"description": "Question or approval prompt to answer."
|
|
990
|
+
},
|
|
991
|
+
"options": {
|
|
992
|
+
"type": "array",
|
|
993
|
+
"items": {
|
|
994
|
+
"type": "string"
|
|
995
|
+
},
|
|
996
|
+
"description": "Optional answer choices."
|
|
997
|
+
},
|
|
998
|
+
"response_schema": {
|
|
999
|
+
"type": "object",
|
|
1000
|
+
"description": "Optional structured response schema hint."
|
|
1001
|
+
},
|
|
1002
|
+
"tags": {
|
|
1003
|
+
"type": "array",
|
|
1004
|
+
"items": {
|
|
1005
|
+
"type": "string"
|
|
1006
|
+
},
|
|
1007
|
+
"description": "Optional tags."
|
|
1008
|
+
}
|
|
1009
|
+
},
|
|
1010
|
+
"required": [
|
|
1011
|
+
"kind",
|
|
1012
|
+
"title",
|
|
1013
|
+
"prompt"
|
|
1014
|
+
],
|
|
1015
|
+
"description": "Optional ActionRequired payload when status=blocked. Lets the worker request approval, user input, or clarification before resuming."
|
|
1016
|
+
},
|
|
1017
|
+
"agent": {
|
|
1018
|
+
"type": "string",
|
|
1019
|
+
"description": "Agent name."
|
|
1020
|
+
},
|
|
1021
|
+
"agentId": {
|
|
1022
|
+
"type": "string",
|
|
1023
|
+
"description": "Registered agent id."
|
|
1024
|
+
}
|
|
1025
|
+
},
|
|
1026
|
+
"required": [
|
|
1027
|
+
"assignment_id",
|
|
1028
|
+
"status"
|
|
1029
|
+
]
|
|
1030
|
+
},
|
|
1031
|
+
"AssignmentActionRequest": {
|
|
1032
|
+
"type": "object",
|
|
1033
|
+
"properties": {
|
|
1034
|
+
"action_id": {
|
|
1035
|
+
"type": "string",
|
|
1036
|
+
"description": "ActionRequired ID (act_xxx)."
|
|
1037
|
+
},
|
|
1038
|
+
"outcome": {
|
|
1039
|
+
"type": "string",
|
|
1040
|
+
"enum": [
|
|
1041
|
+
"resolved",
|
|
1042
|
+
"rejected",
|
|
1043
|
+
"cancelled"
|
|
1044
|
+
],
|
|
1045
|
+
"description": "How the supervisor resolves the pending action."
|
|
1046
|
+
},
|
|
1047
|
+
"text": {
|
|
1048
|
+
"type": "string",
|
|
1049
|
+
"description": "Human-readable response or rationale."
|
|
1050
|
+
},
|
|
1051
|
+
"payload": {
|
|
1052
|
+
"type": "object",
|
|
1053
|
+
"description": "Optional structured response payload."
|
|
1054
|
+
},
|
|
1055
|
+
"agent": {
|
|
1056
|
+
"type": "string",
|
|
1057
|
+
"description": "Supervisor/agent responding to the action."
|
|
1058
|
+
},
|
|
1059
|
+
"agentId": {
|
|
1060
|
+
"type": "string",
|
|
1061
|
+
"description": "Registered agent id."
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
"required": [
|
|
1065
|
+
"action_id",
|
|
1066
|
+
"outcome"
|
|
1067
|
+
]
|
|
1068
|
+
},
|
|
1069
|
+
"AssignmentEventsRequest": {
|
|
1070
|
+
"type": "object",
|
|
1071
|
+
"properties": {
|
|
1072
|
+
"assignmentId": {
|
|
1073
|
+
"type": "string",
|
|
1074
|
+
"description": "Filter by linked assignment ID."
|
|
1075
|
+
},
|
|
1076
|
+
"runId": {
|
|
1077
|
+
"type": "string",
|
|
1078
|
+
"description": "Filter by linked run ID."
|
|
1079
|
+
},
|
|
1080
|
+
"claimId": {
|
|
1081
|
+
"type": "string",
|
|
1082
|
+
"description": "Filter by linked claim ID."
|
|
1083
|
+
},
|
|
1084
|
+
"sessionId": {
|
|
1085
|
+
"type": "string",
|
|
1086
|
+
"description": "Filter by runtime session ID."
|
|
1087
|
+
},
|
|
1088
|
+
"agent": {
|
|
1089
|
+
"type": "string",
|
|
1090
|
+
"description": "Filter by agent name."
|
|
1091
|
+
},
|
|
1092
|
+
"eventType": {
|
|
1093
|
+
"type": "string",
|
|
1094
|
+
"description": "Filter by runtime event type."
|
|
1095
|
+
},
|
|
1096
|
+
"id": {
|
|
1097
|
+
"type": "string",
|
|
1098
|
+
"description": "Get a single runtime event by ID."
|
|
1099
|
+
},
|
|
1100
|
+
"limit": {
|
|
1101
|
+
"type": "number",
|
|
1102
|
+
"description": "Maximum number of events to return (default: 20)."
|
|
1103
|
+
},
|
|
1104
|
+
"offset": {
|
|
1105
|
+
"type": "number",
|
|
1106
|
+
"description": "Number of events to skip (for pagination)."
|
|
1107
|
+
},
|
|
1108
|
+
"compact": {
|
|
1109
|
+
"type": "boolean",
|
|
1110
|
+
"description": "Return only key fields to reduce output size."
|
|
1111
|
+
}
|
|
1112
|
+
}
|
|
303
1113
|
}
|
|
304
1114
|
};
|
|
305
1115
|
//# sourceMappingURL=mcp-schemas.generated.js.map
|