-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlhm.plugin.json
More file actions
712 lines (712 loc) · 24.9 KB
/
Copy pathlhm.plugin.json
File metadata and controls
712 lines (712 loc) · 24.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
{
"identifier": "pounceai-bob-control",
"name": "Bob Control",
"version": "2.3.0",
"description": "Bob Control: MCP server + CLI + worker that runs IBM Bob (and any MCP-capable agent) unattended against a SQLite task board. The board path can be configured via environment variables such as BOB_TASKS_DB, BOB_TASKS_PORTABLE, or BOB_TASKS_WORKTREE_SHARED.",
"author": "PounceAI",
"authorUrl": "https://github.com/PounceAI",
"homepage": "https://github.com/PounceAI/bob-control",
"category": "developer",
"tags": [
"mcp",
"task-board",
"agent-orchestration",
"ibm-bob",
"sqlite",
"worker",
"cli",
"automation"
],
"tools": [
{
"name": "create_task",
"title": "Create Task",
"description": "Provision a new task for Bob to work on. Returns the created task including its id.",
"inputSchema": {
"type": "object",
"properties": {
"title": {
"type": "string",
"minLength": 1,
"description": "Short, action-oriented task title"
},
"description": {
"type": "string",
"description": "Detailed instructions, context, and acceptance criteria"
},
"priority": {
"type": "string",
"enum": [
"low",
"medium",
"high",
"urgent"
],
"description": "Priority bucket (default: medium)"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "Labels for filtering, e.g. ['rpg','refactor']"
},
"mode": {
"type": "string",
"description": "Bob mode to run this task in: 'code' | 'advanced' (adds MCP/Browser) | 'ask' (read-only) | 'orchestrator', or a custom mode slug. Omit to let the dispatcher auto-route from the task content."
},
"depends_on": {
"type": "array",
"items": {
"type": "integer"
},
"description": "Task IDs this task depends on (all must be 'done' before this task is eligible)"
},
"staged": {
"type": "boolean",
"description": "Create the task non-pullable ('staged') so a running worker can't grab it mid-curation. Release later with release_tasks. Use for bulk-create + triage."
}
},
"required": [
"title"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "list_tasks",
"title": "List Tasks",
"description": "List tasks, optionally filtered by status and/or tag. Ordered by priority, then oldest first.",
"inputSchema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"staged",
"pending",
"in_progress",
"needs_input",
"blocked",
"analysis_done",
"done",
"cancelled"
]
},
"tag": {
"type": "string"
},
"limit": {
"type": "integer",
"exclusiveMinimum": 0
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "get_task",
"title": "Get Task",
"description": "Get full details of a single task, including its notes / work log.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Task id"
}
},
"required": [
"id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "get_next_task",
"title": "Get Next Task",
"description": "Fetch the highest-priority pending task. Optionally filter by tag, and optionally claim it (mark in_progress + assign) in the same call.",
"inputSchema": {
"type": "object",
"properties": {
"tag": {
"type": "string"
},
"claim": {
"type": "boolean",
"description": "If true, immediately mark the task in_progress and assign it"
},
"assignee": {
"type": "string",
"description": "Who is taking the task (default: 'bob')"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "predict_mode",
"title": "Predict Mode",
"description": "Preview which Bob mode a task dispatches in, computed from the connector's router (modes.ts) \u2014 the single source of truth, so callers never re-encode the keyword table. Pass `id` to route an existing task, or `text` to route a hypothetical task (the text is treated as the title). Resolution order (first match wins): an explicit `mode` \u203a a tag naming a mode \u203a the keyword auto-router \u203a `code`. Returns {mode, source: explicit|tag|auto-router|default, risk: safe|standard|elevated}. Risk gates dispatch \u2014 the worker auto-runs only at/below its --max-risk (default standard), so an `advanced` (elevated) task waits for manual dispatch.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Route an existing task by id"
},
"text": {
"type": "string",
"description": "Route hypothetical task text (treated as the task title) instead of an id"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "claim_task",
"title": "Claim Task",
"description": "Mark a task as in_progress and assign it to an owner.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"assignee": {
"type": "string",
"description": "Owner (default: 'bob')"
}
},
"required": [
"id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "update_task_status",
"title": "Update Task Status",
"description": "Change a task's status (pending | in_progress | blocked | done | cancelled).",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"status": {
"type": "string",
"enum": [
"staged",
"pending",
"in_progress",
"needs_input",
"blocked",
"analysis_done",
"done",
"cancelled"
]
}
},
"required": [
"id",
"status"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "add_task_note",
"title": "Add Task Note",
"description": "Append a progress note / work-log entry to a task.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"note": {
"type": "string",
"minLength": 1
},
"author": {
"type": "string",
"description": "Note author (default: 'bob')"
}
},
"required": [
"id",
"note"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "submit_result",
"title": "Submit Result",
"description": "Attach a result to a task and complete it. A read-only run (ask/plan/review mode) terminates as 'analysis_done', not 'done'. To reach 'done' on an implementation task, pass `evidence` (files changed / commit / test result); without evidence it lands in 'analysis_done'. Pass mark_done:false to just attach the result without completing.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"result": {
"type": "string",
"minLength": 1
},
"mark_done": {
"type": "boolean",
"description": "Complete the task (default: true). false = attach result only."
},
"evidence": {
"type": "object",
"properties": {
"files": {
"type": "array",
"items": {
"type": "string"
},
"description": "Paths created/changed (recorded as artifacts)"
},
"files_changed": {
"type": "integer"
},
"commit": {
"type": "string",
"description": "Commit sha produced"
},
"test": {
"type": "string",
"description": "Verification result, e.g. 'npm test: 42 passed'"
},
"diffstat": {
"type": "string"
}
},
"additionalProperties": false,
"description": "Proof of execution required for an implementation task to reach 'done'."
}
},
"required": [
"id",
"result"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "ask_question",
"title": "Ask a Question (needs human input)",
"description": "Raise a question for a human when you lack a value you need \u2014 NEVER guess or fabricate. Parks the task as 'needs_input' and writes the question to the board (visible via get_task and board_report). Returns a question_id; then call await_answer to wait for the reply.",
"inputSchema": {
"type": "object",
"properties": {
"task_id": {
"type": "integer"
},
"text": {
"type": "string",
"minLength": 1,
"description": "The question to ask the human"
},
"options": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional multiple-choice answers"
},
"timeout_ms": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 86400000,
"description": "How long to wait before the question times out and the task parks blocked (default 30m, max 24h)"
}
},
"required": [
"task_id",
"text"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "answer_task_question",
"title": "Answer a Task's Question",
"description": "Answer a question a worker raised (see needs_input tasks / board_report). Matched by question_id so a stale answer can't apply to a new question. Records the answer and resumes the waiting worker (task returns to in_progress).",
"inputSchema": {
"type": "object",
"properties": {
"task_id": {
"type": "integer"
},
"question_id": {
"type": "string",
"description": "The question_id from get_task.pending_question / board_report"
},
"answer": {
"type": "string",
"minLength": 1
}
},
"required": [
"task_id",
"question_id",
"answer"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "await_answer",
"title": "Await an Answer (worker blocks here)",
"description": "Block until the question is answered, or report back so you can call again. Returns {status:'answered', answer} when answered, {status:'timed_out'} once past the deadline (the task is then parked blocked \u2014 do NOT proceed or guess), or {status:'waiting'} after the poll window (call await_answer again). The worker's wait loop after ask_question.",
"inputSchema": {
"type": "object",
"properties": {
"task_id": {
"type": "integer"
},
"question_id": {
"type": "string"
},
"wait_ms": {
"type": "integer",
"exclusiveMinimum": 0,
"description": "Per-call poll window (default 25000ms, capped 55000ms)"
}
},
"required": [
"task_id",
"question_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "await_task",
"title": "Await Task Completion (blocks here)",
"description": "Block until task #task_id settles, then return it \u2014 the way to 'hook' back into your turn the moment Bob finishes. Returns {status:'done'|'analysis_done', result} on success, {status:'blocked'|'cancelled', result} when Bob stopped without completing, {status:'needs_input', question} when Bob is waiting on a board question (answer it with answer_task_question, then call await_task again), or {status:'waiting', current} after the poll window (call await_task again). Polls the shared board; the result is written by Bob's worker. Use after dispatching a task you want to act on as soon as it's done. PREFER this over looping on list_tasks/board_status/get_task to watch a task \u2014 it blocks server-side until the settling write lands and hands back needs_input questions to answer, so you should NOT poll the board by hand. Requires something draining the board \u2014 a 1.x worker process or the 2.0 in-process loop; check board_status.worker_draining first (it reflects both).",
"inputSchema": {
"type": "object",
"properties": {
"task_id": {
"type": "integer"
},
"wait_ms": {
"type": "integer",
"exclusiveMinimum": 0,
"description": "Per-call poll window (default 25000ms, capped 55000ms)"
}
},
"required": [
"task_id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "set_task_mode",
"title": "Set Task Mode",
"description": "Set or clear a task's Bob mode slug. Pass an empty string to clear it and let the dispatcher auto-route.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"mode": {
"type": "string",
"description": "Mode slug ('code' | 'advanced' | 'ask' | 'orchestrator' | custom), or '' to clear"
}
},
"required": [
"id",
"mode"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "set_task_dependencies",
"title": "Set Task Dependencies",
"description": "Set or clear a task's dependencies. All dependencies must be 'done' before the task is eligible. Pass an empty array to clear dependencies.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Task id"
},
"depends_on": {
"type": "array",
"items": {
"type": "integer"
},
"description": "Task IDs this task depends on (empty array clears dependencies)"
}
},
"required": [
"id",
"depends_on"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "delete_task",
"title": "Delete Task",
"description": "Delete a task and its notes. DELETE IS NOT UNDO: if the task already ran and recorded artifacts (files written, commits), this refuses and lists the orphaned paths unless force:true (delete the record anyway) or cleanup:true (also remove the files). Prefer update_task_status 'cancelled' to keep a record.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Task id"
},
"force": {
"type": "boolean",
"description": "Delete the record even if it has recorded artifacts"
},
"cleanup": {
"type": "boolean",
"description": "Also unlink the files the task wrote, then delete"
}
},
"required": [
"id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "disarm_board",
"title": "Disarm Board (pause dispatch)",
"description": "Pause all dispatch: while disarmed, no worker can pull or claim any task. Use before a bulk-create/triage so nothing is grabbed mid-curation, then arm_board when ready.",
"inputSchema": {
"type": "object",
"properties": {
"reason": {
"type": "string",
"description": "Why dispatch is paused (shown in board_status)"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "arm_board",
"title": "Arm Board (resume dispatch)",
"description": "Resume dispatch: workers may pull/claim pending tasks again.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {}
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "release_tasks",
"title": "Release Staged Tasks",
"description": "Move staged tasks to pending so workers can pull them. Optionally filter by ids and/or tag. With no filter, releases every staged task. The deliberate 'arm' step after curation.",
"inputSchema": {
"type": "object",
"properties": {
"ids": {
"type": "array",
"items": {
"type": "integer"
},
"description": "Only release these task ids"
},
"tag": {
"type": "string",
"description": "Only release staged tasks carrying this tag"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "board_status",
"title": "Board Status",
"description": "Dispatch state, counts, and the live task list: whether the board is `armed`, task `counts` by status, whether a drainer is currently servicing the board (`worker_draining` \u2014 a live heartbeat from either a 1.x worker process or the 2.0 in-process loop, with `.tags` = the --tag each live worker drains, null = an unfiltered worker that drains all tags, and `.last_dispatch` = the freshest dispatch outcome among live workers ({status, detail, seconds_ago}, null if none yet) \u2014 a health signal beyond mere liveness: a logged-out/failing Bob keeps beating, so a `last_dispatch.status` of 'aborted' means the drainer is alive but not completing work (warn before dispatching)), `worker_leases` (which checkout each live worker owns), and `open_tasks` \u2014 the non-terminal tasks (staged / pending / in_progress / needs_input / blocked) as compact {id,title,status,mode,tags,priority} rows for deduping before create_task (capped; see open_tasks_truncated). Check `worker_draining.draining` before await_task: if false, nothing is draining the board, so don't block \u2014 start a drainer first (open the repo in a Bob 2.0 window, or run a 1.x worker). And if draining is true but no entry in `worker_draining.tags` is null or matches your task's tags, a tag-pinned worker still won't pull it. Also check before a bulk-create.",
"inputSchema": {
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {}
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "record_artifact",
"title": "Record Artifact",
"description": "Record a side effect a worker produced for a task: a file written (kind 'file' + path), a commit (kind 'commit' + detail=sha), or a test result (kind 'test' + detail). Artifacts make delete safe and let an implementation task reach 'done' with evidence.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "Task id"
},
"kind": {
"type": "string",
"enum": [
"file",
"commit",
"test"
]
},
"path": {
"type": "string",
"description": "Filesystem path for kind 'file' (absolute is best, for cleanup)"
},
"detail": {
"type": "string",
"description": "Commit sha, test summary, or diffstat"
}
},
"required": [
"id",
"kind"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "board_report",
"title": "Board Report",
"description": "Render the board as a markdown standup/audit: tasks grouped by status in pull order, each with age, idle time, latest note, and a stalled flag for long-running in_progress work. Optionally filter to one status.",
"inputSchema": {
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"staged",
"pending",
"in_progress",
"needs_input",
"blocked",
"analysis_done",
"done",
"cancelled"
],
"description": "Restrict the report to a single status group"
}
},
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
},
{
"name": "revert_task",
"title": "Revert a Task (roll back to its checkpoint)",
"description": "Restore the working tree to the task's pre-task checkpoint \u2014 undo what the task changed. Requires a checkpoint, which the worker captures by default but CONSUMES on completion (a failed dispatch preserves its WIP to branch bob/task-<id> instead), so this works only while one still exists. REFUSES if this server's repo isn't the one the task edited, or if HEAD moved since capture (pass force to override). The pre-revert state is pinned to a recovery ref. Restores tracked files (HEAD untouched) and removes files the task created.",
"inputSchema": {
"type": "object",
"properties": {
"id": {
"type": "integer"
},
"force": {
"type": "boolean",
"description": "Revert even if HEAD moved since the checkpoint"
}
},
"required": [
"id"
],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#"
},
"execution": {
"taskSupport": "forbidden"
}
}
]
}