opencode-swarm-plugin 0.26.1 → 0.27.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.
Files changed (77) hide show
  1. package/.turbo/turbo-build.log +4 -4
  2. package/CHANGELOG.md +23 -0
  3. package/README.md +43 -46
  4. package/bin/swarm.ts +8 -8
  5. package/dist/compaction-hook.d.ts +57 -0
  6. package/dist/compaction-hook.d.ts.map +1 -0
  7. package/dist/hive.d.ts +741 -0
  8. package/dist/hive.d.ts.map +1 -0
  9. package/dist/index.d.ts +139 -23
  10. package/dist/index.d.ts.map +1 -1
  11. package/dist/index.js +1353 -350
  12. package/dist/learning.d.ts +9 -9
  13. package/dist/plugin.js +1176 -350
  14. package/dist/schemas/cell-events.d.ts +1352 -0
  15. package/dist/schemas/{bead-events.d.ts.map → cell-events.d.ts.map} +1 -1
  16. package/dist/schemas/{bead.d.ts → cell.d.ts} +173 -29
  17. package/dist/schemas/cell.d.ts.map +1 -0
  18. package/dist/schemas/index.d.ts +11 -7
  19. package/dist/schemas/index.d.ts.map +1 -1
  20. package/dist/structured.d.ts +17 -7
  21. package/dist/structured.d.ts.map +1 -1
  22. package/dist/swarm-decompose.d.ts +5 -5
  23. package/dist/swarm-orchestrate.d.ts +16 -2
  24. package/dist/swarm-orchestrate.d.ts.map +1 -1
  25. package/dist/swarm-prompts.d.ts +9 -9
  26. package/dist/swarm-prompts.d.ts.map +1 -1
  27. package/dist/swarm-review.d.ts +210 -0
  28. package/dist/swarm-review.d.ts.map +1 -0
  29. package/dist/swarm-worktree.d.ts +185 -0
  30. package/dist/swarm-worktree.d.ts.map +1 -0
  31. package/dist/swarm.d.ts +7 -0
  32. package/dist/swarm.d.ts.map +1 -1
  33. package/dist/tool-availability.d.ts +3 -2
  34. package/dist/tool-availability.d.ts.map +1 -1
  35. package/docs/analysis-socratic-planner-pattern.md +1 -1
  36. package/docs/planning/ADR-007-swarm-enhancements-worktree-review.md +168 -0
  37. package/docs/testing/context-recovery-test.md +2 -2
  38. package/evals/README.md +2 -2
  39. package/evals/scorers/index.ts +7 -7
  40. package/examples/commands/swarm.md +21 -23
  41. package/examples/plugin-wrapper-template.ts +310 -44
  42. package/examples/skills/{beads-workflow → hive-workflow}/SKILL.md +40 -40
  43. package/examples/skills/swarm-coordination/SKILL.md +1 -1
  44. package/global-skills/swarm-coordination/SKILL.md +14 -14
  45. package/global-skills/swarm-coordination/references/coordinator-patterns.md +3 -3
  46. package/package.json +2 -2
  47. package/src/compaction-hook.ts +161 -0
  48. package/src/{beads.integration.test.ts → hive.integration.test.ts} +92 -80
  49. package/src/{beads.ts → hive.ts} +378 -219
  50. package/src/index.ts +57 -20
  51. package/src/learning.ts +9 -9
  52. package/src/output-guardrails.test.ts +4 -4
  53. package/src/output-guardrails.ts +9 -9
  54. package/src/planning-guardrails.test.ts +1 -1
  55. package/src/planning-guardrails.ts +1 -1
  56. package/src/schemas/{bead-events.test.ts → cell-events.test.ts} +83 -77
  57. package/src/schemas/cell-events.ts +807 -0
  58. package/src/schemas/{bead.ts → cell.ts} +95 -41
  59. package/src/schemas/evaluation.ts +1 -1
  60. package/src/schemas/index.ts +90 -18
  61. package/src/schemas/swarm-context.ts +2 -2
  62. package/src/structured.test.ts +15 -15
  63. package/src/structured.ts +18 -11
  64. package/src/swarm-decompose.ts +23 -23
  65. package/src/swarm-orchestrate.ts +135 -21
  66. package/src/swarm-prompts.ts +43 -43
  67. package/src/swarm-review.test.ts +702 -0
  68. package/src/swarm-review.ts +696 -0
  69. package/src/swarm-worktree.test.ts +501 -0
  70. package/src/swarm-worktree.ts +575 -0
  71. package/src/swarm.integration.test.ts +12 -12
  72. package/src/tool-availability.ts +36 -3
  73. package/dist/beads.d.ts +0 -386
  74. package/dist/beads.d.ts.map +0 -1
  75. package/dist/schemas/bead-events.d.ts +0 -698
  76. package/dist/schemas/bead.d.ts.map +0 -1
  77. package/src/schemas/bead-events.ts +0 -583
package/dist/hive.d.ts ADDED
@@ -0,0 +1,741 @@
1
+ import { z } from "zod";
2
+ import { type HiveAdapter } from "swarm-mail";
3
+ /**
4
+ * Set the working directory for all hive commands.
5
+ * Call this from the plugin initialization with the project directory.
6
+ *
7
+ * @param directory - Absolute path to the project directory
8
+ */
9
+ export declare function setHiveWorkingDirectory(directory: string): void;
10
+ /**
11
+ * Get the current working directory for hive commands.
12
+ * Returns the configured directory or process.cwd() as fallback.
13
+ */
14
+ export declare function getHiveWorkingDirectory(): string;
15
+ export declare const setBeadsWorkingDirectory: typeof setHiveWorkingDirectory;
16
+ export declare const getBeadsWorkingDirectory: typeof getHiveWorkingDirectory;
17
+ /**
18
+ * Custom error for hive operations
19
+ */
20
+ export declare class HiveError extends Error {
21
+ readonly command: string;
22
+ readonly exitCode?: number | undefined;
23
+ readonly stderr?: string | undefined;
24
+ constructor(message: string, command: string, exitCode?: number | undefined, stderr?: string | undefined);
25
+ }
26
+ export declare const BeadError: typeof HiveError;
27
+ /**
28
+ * Custom error for validation failures
29
+ */
30
+ export declare class HiveValidationError extends Error {
31
+ readonly zodError: z.ZodError;
32
+ constructor(message: string, zodError: z.ZodError);
33
+ }
34
+ export declare const BeadValidationError: typeof HiveValidationError;
35
+ /**
36
+ * Get or create a HiveAdapter instance for a project
37
+ * Exported for testing - allows tests to verify state directly
38
+ *
39
+ * On first initialization, checks for .beads/issues.jsonl and imports
40
+ * historical beads if the database is empty.
41
+ */
42
+ export declare function getHiveAdapter(projectKey: string): Promise<HiveAdapter>;
43
+ export declare const getBeadsAdapter: typeof getHiveAdapter;
44
+ /**
45
+ * Create a new cell with type-safe validation
46
+ */
47
+ export declare const hive_create: {
48
+ description: string;
49
+ args: {
50
+ title: z.ZodString;
51
+ type: z.ZodOptional<z.ZodEnum<{
52
+ bug: "bug";
53
+ feature: "feature";
54
+ task: "task";
55
+ epic: "epic";
56
+ chore: "chore";
57
+ }>>;
58
+ priority: z.ZodOptional<z.ZodNumber>;
59
+ description: z.ZodOptional<z.ZodString>;
60
+ parent_id: z.ZodOptional<z.ZodString>;
61
+ };
62
+ execute(args: {
63
+ title: string;
64
+ type?: "bug" | "feature" | "task" | "epic" | "chore" | undefined;
65
+ priority?: number | undefined;
66
+ description?: string | undefined;
67
+ parent_id?: string | undefined;
68
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
69
+ };
70
+ /**
71
+ * Create an epic with subtasks in one atomic operation
72
+ */
73
+ export declare const hive_create_epic: {
74
+ description: string;
75
+ args: {
76
+ epic_title: z.ZodString;
77
+ epic_description: z.ZodOptional<z.ZodString>;
78
+ epic_id: z.ZodOptional<z.ZodString>;
79
+ subtasks: z.ZodArray<z.ZodObject<{
80
+ title: z.ZodString;
81
+ priority: z.ZodOptional<z.ZodNumber>;
82
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
83
+ id_suffix: z.ZodOptional<z.ZodString>;
84
+ }, z.core.$strip>>;
85
+ strategy: z.ZodOptional<z.ZodEnum<{
86
+ "file-based": "file-based";
87
+ "feature-based": "feature-based";
88
+ "risk-based": "risk-based";
89
+ }>>;
90
+ task: z.ZodOptional<z.ZodString>;
91
+ project_key: z.ZodOptional<z.ZodString>;
92
+ recovery_context: z.ZodOptional<z.ZodObject<{
93
+ shared_context: z.ZodOptional<z.ZodString>;
94
+ skills_to_load: z.ZodOptional<z.ZodArray<z.ZodString>>;
95
+ coordinator_notes: z.ZodOptional<z.ZodString>;
96
+ }, z.core.$strip>>;
97
+ };
98
+ execute(args: {
99
+ epic_title: string;
100
+ subtasks: {
101
+ title: string;
102
+ priority?: number | undefined;
103
+ files?: string[] | undefined;
104
+ id_suffix?: string | undefined;
105
+ }[];
106
+ epic_description?: string | undefined;
107
+ epic_id?: string | undefined;
108
+ strategy?: "file-based" | "feature-based" | "risk-based" | undefined;
109
+ task?: string | undefined;
110
+ project_key?: string | undefined;
111
+ recovery_context?: {
112
+ shared_context?: string | undefined;
113
+ skills_to_load?: string[] | undefined;
114
+ coordinator_notes?: string | undefined;
115
+ } | undefined;
116
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
117
+ };
118
+ /**
119
+ * Query cells with filters
120
+ */
121
+ export declare const hive_query: {
122
+ description: string;
123
+ args: {
124
+ status: z.ZodOptional<z.ZodEnum<{
125
+ open: "open";
126
+ in_progress: "in_progress";
127
+ blocked: "blocked";
128
+ closed: "closed";
129
+ }>>;
130
+ type: z.ZodOptional<z.ZodEnum<{
131
+ bug: "bug";
132
+ feature: "feature";
133
+ task: "task";
134
+ epic: "epic";
135
+ chore: "chore";
136
+ }>>;
137
+ ready: z.ZodOptional<z.ZodBoolean>;
138
+ limit: z.ZodOptional<z.ZodNumber>;
139
+ };
140
+ execute(args: {
141
+ status?: "open" | "in_progress" | "blocked" | "closed" | undefined;
142
+ type?: "bug" | "feature" | "task" | "epic" | "chore" | undefined;
143
+ ready?: boolean | undefined;
144
+ limit?: number | undefined;
145
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
146
+ };
147
+ /**
148
+ * Update a cell's status or description
149
+ */
150
+ export declare const hive_update: {
151
+ description: string;
152
+ args: {
153
+ id: z.ZodString;
154
+ status: z.ZodOptional<z.ZodEnum<{
155
+ open: "open";
156
+ in_progress: "in_progress";
157
+ blocked: "blocked";
158
+ closed: "closed";
159
+ }>>;
160
+ description: z.ZodOptional<z.ZodString>;
161
+ priority: z.ZodOptional<z.ZodNumber>;
162
+ };
163
+ execute(args: {
164
+ id: string;
165
+ status?: "open" | "in_progress" | "blocked" | "closed" | undefined;
166
+ description?: string | undefined;
167
+ priority?: number | undefined;
168
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
169
+ };
170
+ /**
171
+ * Close a cell with reason
172
+ */
173
+ export declare const hive_close: {
174
+ description: string;
175
+ args: {
176
+ id: z.ZodString;
177
+ reason: z.ZodString;
178
+ };
179
+ execute(args: {
180
+ id: string;
181
+ reason: string;
182
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
183
+ };
184
+ /**
185
+ * Mark a cell as in-progress
186
+ */
187
+ export declare const hive_start: {
188
+ description: string;
189
+ args: {
190
+ id: z.ZodString;
191
+ };
192
+ execute(args: {
193
+ id: string;
194
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
195
+ };
196
+ /**
197
+ * Get the next ready cell
198
+ */
199
+ export declare const hive_ready: {
200
+ description: string;
201
+ args: {};
202
+ execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
203
+ };
204
+ /**
205
+ * Sync hive to git and push
206
+ */
207
+ export declare const hive_sync: {
208
+ description: string;
209
+ args: {
210
+ auto_pull: z.ZodOptional<z.ZodBoolean>;
211
+ };
212
+ execute(args: {
213
+ auto_pull?: boolean | undefined;
214
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
215
+ };
216
+ /**
217
+ * Link a cell to an Agent Mail thread
218
+ */
219
+ export declare const hive_link_thread: {
220
+ description: string;
221
+ args: {
222
+ cell_id: z.ZodString;
223
+ thread_id: z.ZodString;
224
+ };
225
+ execute(args: {
226
+ cell_id: string;
227
+ thread_id: string;
228
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
229
+ };
230
+ export declare const hiveTools: {
231
+ hive_create: {
232
+ description: string;
233
+ args: {
234
+ title: z.ZodString;
235
+ type: z.ZodOptional<z.ZodEnum<{
236
+ bug: "bug";
237
+ feature: "feature";
238
+ task: "task";
239
+ epic: "epic";
240
+ chore: "chore";
241
+ }>>;
242
+ priority: z.ZodOptional<z.ZodNumber>;
243
+ description: z.ZodOptional<z.ZodString>;
244
+ parent_id: z.ZodOptional<z.ZodString>;
245
+ };
246
+ execute(args: {
247
+ title: string;
248
+ type?: "bug" | "feature" | "task" | "epic" | "chore" | undefined;
249
+ priority?: number | undefined;
250
+ description?: string | undefined;
251
+ parent_id?: string | undefined;
252
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
253
+ };
254
+ hive_create_epic: {
255
+ description: string;
256
+ args: {
257
+ epic_title: z.ZodString;
258
+ epic_description: z.ZodOptional<z.ZodString>;
259
+ epic_id: z.ZodOptional<z.ZodString>;
260
+ subtasks: z.ZodArray<z.ZodObject<{
261
+ title: z.ZodString;
262
+ priority: z.ZodOptional<z.ZodNumber>;
263
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
264
+ id_suffix: z.ZodOptional<z.ZodString>;
265
+ }, z.core.$strip>>;
266
+ strategy: z.ZodOptional<z.ZodEnum<{
267
+ "file-based": "file-based";
268
+ "feature-based": "feature-based";
269
+ "risk-based": "risk-based";
270
+ }>>;
271
+ task: z.ZodOptional<z.ZodString>;
272
+ project_key: z.ZodOptional<z.ZodString>;
273
+ recovery_context: z.ZodOptional<z.ZodObject<{
274
+ shared_context: z.ZodOptional<z.ZodString>;
275
+ skills_to_load: z.ZodOptional<z.ZodArray<z.ZodString>>;
276
+ coordinator_notes: z.ZodOptional<z.ZodString>;
277
+ }, z.core.$strip>>;
278
+ };
279
+ execute(args: {
280
+ epic_title: string;
281
+ subtasks: {
282
+ title: string;
283
+ priority?: number | undefined;
284
+ files?: string[] | undefined;
285
+ id_suffix?: string | undefined;
286
+ }[];
287
+ epic_description?: string | undefined;
288
+ epic_id?: string | undefined;
289
+ strategy?: "file-based" | "feature-based" | "risk-based" | undefined;
290
+ task?: string | undefined;
291
+ project_key?: string | undefined;
292
+ recovery_context?: {
293
+ shared_context?: string | undefined;
294
+ skills_to_load?: string[] | undefined;
295
+ coordinator_notes?: string | undefined;
296
+ } | undefined;
297
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
298
+ };
299
+ hive_query: {
300
+ description: string;
301
+ args: {
302
+ status: z.ZodOptional<z.ZodEnum<{
303
+ open: "open";
304
+ in_progress: "in_progress";
305
+ blocked: "blocked";
306
+ closed: "closed";
307
+ }>>;
308
+ type: z.ZodOptional<z.ZodEnum<{
309
+ bug: "bug";
310
+ feature: "feature";
311
+ task: "task";
312
+ epic: "epic";
313
+ chore: "chore";
314
+ }>>;
315
+ ready: z.ZodOptional<z.ZodBoolean>;
316
+ limit: z.ZodOptional<z.ZodNumber>;
317
+ };
318
+ execute(args: {
319
+ status?: "open" | "in_progress" | "blocked" | "closed" | undefined;
320
+ type?: "bug" | "feature" | "task" | "epic" | "chore" | undefined;
321
+ ready?: boolean | undefined;
322
+ limit?: number | undefined;
323
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
324
+ };
325
+ hive_update: {
326
+ description: string;
327
+ args: {
328
+ id: z.ZodString;
329
+ status: z.ZodOptional<z.ZodEnum<{
330
+ open: "open";
331
+ in_progress: "in_progress";
332
+ blocked: "blocked";
333
+ closed: "closed";
334
+ }>>;
335
+ description: z.ZodOptional<z.ZodString>;
336
+ priority: z.ZodOptional<z.ZodNumber>;
337
+ };
338
+ execute(args: {
339
+ id: string;
340
+ status?: "open" | "in_progress" | "blocked" | "closed" | undefined;
341
+ description?: string | undefined;
342
+ priority?: number | undefined;
343
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
344
+ };
345
+ hive_close: {
346
+ description: string;
347
+ args: {
348
+ id: z.ZodString;
349
+ reason: z.ZodString;
350
+ };
351
+ execute(args: {
352
+ id: string;
353
+ reason: string;
354
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
355
+ };
356
+ hive_start: {
357
+ description: string;
358
+ args: {
359
+ id: z.ZodString;
360
+ };
361
+ execute(args: {
362
+ id: string;
363
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
364
+ };
365
+ hive_ready: {
366
+ description: string;
367
+ args: {};
368
+ execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
369
+ };
370
+ hive_sync: {
371
+ description: string;
372
+ args: {
373
+ auto_pull: z.ZodOptional<z.ZodBoolean>;
374
+ };
375
+ execute(args: {
376
+ auto_pull?: boolean | undefined;
377
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
378
+ };
379
+ hive_link_thread: {
380
+ description: string;
381
+ args: {
382
+ cell_id: z.ZodString;
383
+ thread_id: z.ZodString;
384
+ };
385
+ execute(args: {
386
+ cell_id: string;
387
+ thread_id: string;
388
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
389
+ };
390
+ };
391
+ /**
392
+ * @deprecated Use hive_create instead. Will be removed in v1.0
393
+ */
394
+ export declare const beads_create: {
395
+ description: string;
396
+ args: {
397
+ title: z.ZodString;
398
+ type: z.ZodOptional<z.ZodEnum<{
399
+ bug: "bug";
400
+ feature: "feature";
401
+ task: "task";
402
+ epic: "epic";
403
+ chore: "chore";
404
+ }>>;
405
+ priority: z.ZodOptional<z.ZodNumber>;
406
+ description: z.ZodOptional<z.ZodString>;
407
+ parent_id: z.ZodOptional<z.ZodString>;
408
+ };
409
+ execute(args: {
410
+ title: string;
411
+ type?: "bug" | "feature" | "task" | "epic" | "chore" | undefined;
412
+ priority?: number | undefined;
413
+ description?: string | undefined;
414
+ parent_id?: string | undefined;
415
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
416
+ };
417
+ /**
418
+ * @deprecated Use hive_create_epic instead. Will be removed in v1.0
419
+ */
420
+ export declare const beads_create_epic: {
421
+ description: string;
422
+ args: {
423
+ epic_title: z.ZodString;
424
+ epic_description: z.ZodOptional<z.ZodString>;
425
+ epic_id: z.ZodOptional<z.ZodString>;
426
+ subtasks: z.ZodArray<z.ZodObject<{
427
+ title: z.ZodString;
428
+ priority: z.ZodOptional<z.ZodNumber>;
429
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
430
+ id_suffix: z.ZodOptional<z.ZodString>;
431
+ }, z.core.$strip>>;
432
+ strategy: z.ZodOptional<z.ZodEnum<{
433
+ "file-based": "file-based";
434
+ "feature-based": "feature-based";
435
+ "risk-based": "risk-based";
436
+ }>>;
437
+ task: z.ZodOptional<z.ZodString>;
438
+ project_key: z.ZodOptional<z.ZodString>;
439
+ recovery_context: z.ZodOptional<z.ZodObject<{
440
+ shared_context: z.ZodOptional<z.ZodString>;
441
+ skills_to_load: z.ZodOptional<z.ZodArray<z.ZodString>>;
442
+ coordinator_notes: z.ZodOptional<z.ZodString>;
443
+ }, z.core.$strip>>;
444
+ };
445
+ execute(args: {
446
+ epic_title: string;
447
+ subtasks: {
448
+ title: string;
449
+ priority?: number | undefined;
450
+ files?: string[] | undefined;
451
+ id_suffix?: string | undefined;
452
+ }[];
453
+ epic_description?: string | undefined;
454
+ epic_id?: string | undefined;
455
+ strategy?: "file-based" | "feature-based" | "risk-based" | undefined;
456
+ task?: string | undefined;
457
+ project_key?: string | undefined;
458
+ recovery_context?: {
459
+ shared_context?: string | undefined;
460
+ skills_to_load?: string[] | undefined;
461
+ coordinator_notes?: string | undefined;
462
+ } | undefined;
463
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
464
+ };
465
+ /**
466
+ * @deprecated Use hive_query instead. Will be removed in v1.0
467
+ */
468
+ export declare const beads_query: {
469
+ description: string;
470
+ args: {
471
+ status: z.ZodOptional<z.ZodEnum<{
472
+ open: "open";
473
+ in_progress: "in_progress";
474
+ blocked: "blocked";
475
+ closed: "closed";
476
+ }>>;
477
+ type: z.ZodOptional<z.ZodEnum<{
478
+ bug: "bug";
479
+ feature: "feature";
480
+ task: "task";
481
+ epic: "epic";
482
+ chore: "chore";
483
+ }>>;
484
+ ready: z.ZodOptional<z.ZodBoolean>;
485
+ limit: z.ZodOptional<z.ZodNumber>;
486
+ };
487
+ execute(args: {
488
+ status?: "open" | "in_progress" | "blocked" | "closed" | undefined;
489
+ type?: "bug" | "feature" | "task" | "epic" | "chore" | undefined;
490
+ ready?: boolean | undefined;
491
+ limit?: number | undefined;
492
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
493
+ };
494
+ /**
495
+ * @deprecated Use hive_update instead. Will be removed in v1.0
496
+ */
497
+ export declare const beads_update: {
498
+ description: string;
499
+ args: {
500
+ id: z.ZodString;
501
+ status: z.ZodOptional<z.ZodEnum<{
502
+ open: "open";
503
+ in_progress: "in_progress";
504
+ blocked: "blocked";
505
+ closed: "closed";
506
+ }>>;
507
+ description: z.ZodOptional<z.ZodString>;
508
+ priority: z.ZodOptional<z.ZodNumber>;
509
+ };
510
+ execute(args: {
511
+ id: string;
512
+ status?: "open" | "in_progress" | "blocked" | "closed" | undefined;
513
+ description?: string | undefined;
514
+ priority?: number | undefined;
515
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
516
+ };
517
+ /**
518
+ * @deprecated Use hive_close instead. Will be removed in v1.0
519
+ */
520
+ export declare const beads_close: {
521
+ description: string;
522
+ args: {
523
+ id: z.ZodString;
524
+ reason: z.ZodString;
525
+ };
526
+ execute(args: {
527
+ id: string;
528
+ reason: string;
529
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
530
+ };
531
+ /**
532
+ * @deprecated Use hive_start instead. Will be removed in v1.0
533
+ */
534
+ export declare const beads_start: {
535
+ description: string;
536
+ args: {
537
+ id: z.ZodString;
538
+ };
539
+ execute(args: {
540
+ id: string;
541
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
542
+ };
543
+ /**
544
+ * @deprecated Use hive_ready instead. Will be removed in v1.0
545
+ */
546
+ export declare const beads_ready: {
547
+ description: string;
548
+ args: {};
549
+ execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
550
+ };
551
+ /**
552
+ * @deprecated Use hive_sync instead. Will be removed in v1.0
553
+ */
554
+ export declare const beads_sync: {
555
+ description: string;
556
+ args: {
557
+ auto_pull: z.ZodOptional<z.ZodBoolean>;
558
+ };
559
+ execute(args: {
560
+ auto_pull?: boolean | undefined;
561
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
562
+ };
563
+ /**
564
+ * @deprecated Use hive_link_thread instead. Will be removed in v1.0
565
+ */
566
+ export declare const beads_link_thread: {
567
+ description: string;
568
+ args: {
569
+ cell_id: z.ZodString;
570
+ thread_id: z.ZodString;
571
+ };
572
+ execute(args: {
573
+ cell_id: string;
574
+ thread_id: string;
575
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
576
+ };
577
+ /**
578
+ * @deprecated Use hiveTools instead. Will be removed in v1.0
579
+ */
580
+ export declare const beadsTools: {
581
+ beads_create: {
582
+ description: string;
583
+ args: {
584
+ title: z.ZodString;
585
+ type: z.ZodOptional<z.ZodEnum<{
586
+ bug: "bug";
587
+ feature: "feature";
588
+ task: "task";
589
+ epic: "epic";
590
+ chore: "chore";
591
+ }>>;
592
+ priority: z.ZodOptional<z.ZodNumber>;
593
+ description: z.ZodOptional<z.ZodString>;
594
+ parent_id: z.ZodOptional<z.ZodString>;
595
+ };
596
+ execute(args: {
597
+ title: string;
598
+ type?: "bug" | "feature" | "task" | "epic" | "chore" | undefined;
599
+ priority?: number | undefined;
600
+ description?: string | undefined;
601
+ parent_id?: string | undefined;
602
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
603
+ };
604
+ beads_create_epic: {
605
+ description: string;
606
+ args: {
607
+ epic_title: z.ZodString;
608
+ epic_description: z.ZodOptional<z.ZodString>;
609
+ epic_id: z.ZodOptional<z.ZodString>;
610
+ subtasks: z.ZodArray<z.ZodObject<{
611
+ title: z.ZodString;
612
+ priority: z.ZodOptional<z.ZodNumber>;
613
+ files: z.ZodOptional<z.ZodArray<z.ZodString>>;
614
+ id_suffix: z.ZodOptional<z.ZodString>;
615
+ }, z.core.$strip>>;
616
+ strategy: z.ZodOptional<z.ZodEnum<{
617
+ "file-based": "file-based";
618
+ "feature-based": "feature-based";
619
+ "risk-based": "risk-based";
620
+ }>>;
621
+ task: z.ZodOptional<z.ZodString>;
622
+ project_key: z.ZodOptional<z.ZodString>;
623
+ recovery_context: z.ZodOptional<z.ZodObject<{
624
+ shared_context: z.ZodOptional<z.ZodString>;
625
+ skills_to_load: z.ZodOptional<z.ZodArray<z.ZodString>>;
626
+ coordinator_notes: z.ZodOptional<z.ZodString>;
627
+ }, z.core.$strip>>;
628
+ };
629
+ execute(args: {
630
+ epic_title: string;
631
+ subtasks: {
632
+ title: string;
633
+ priority?: number | undefined;
634
+ files?: string[] | undefined;
635
+ id_suffix?: string | undefined;
636
+ }[];
637
+ epic_description?: string | undefined;
638
+ epic_id?: string | undefined;
639
+ strategy?: "file-based" | "feature-based" | "risk-based" | undefined;
640
+ task?: string | undefined;
641
+ project_key?: string | undefined;
642
+ recovery_context?: {
643
+ shared_context?: string | undefined;
644
+ skills_to_load?: string[] | undefined;
645
+ coordinator_notes?: string | undefined;
646
+ } | undefined;
647
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
648
+ };
649
+ beads_query: {
650
+ description: string;
651
+ args: {
652
+ status: z.ZodOptional<z.ZodEnum<{
653
+ open: "open";
654
+ in_progress: "in_progress";
655
+ blocked: "blocked";
656
+ closed: "closed";
657
+ }>>;
658
+ type: z.ZodOptional<z.ZodEnum<{
659
+ bug: "bug";
660
+ feature: "feature";
661
+ task: "task";
662
+ epic: "epic";
663
+ chore: "chore";
664
+ }>>;
665
+ ready: z.ZodOptional<z.ZodBoolean>;
666
+ limit: z.ZodOptional<z.ZodNumber>;
667
+ };
668
+ execute(args: {
669
+ status?: "open" | "in_progress" | "blocked" | "closed" | undefined;
670
+ type?: "bug" | "feature" | "task" | "epic" | "chore" | undefined;
671
+ ready?: boolean | undefined;
672
+ limit?: number | undefined;
673
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
674
+ };
675
+ beads_update: {
676
+ description: string;
677
+ args: {
678
+ id: z.ZodString;
679
+ status: z.ZodOptional<z.ZodEnum<{
680
+ open: "open";
681
+ in_progress: "in_progress";
682
+ blocked: "blocked";
683
+ closed: "closed";
684
+ }>>;
685
+ description: z.ZodOptional<z.ZodString>;
686
+ priority: z.ZodOptional<z.ZodNumber>;
687
+ };
688
+ execute(args: {
689
+ id: string;
690
+ status?: "open" | "in_progress" | "blocked" | "closed" | undefined;
691
+ description?: string | undefined;
692
+ priority?: number | undefined;
693
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
694
+ };
695
+ beads_close: {
696
+ description: string;
697
+ args: {
698
+ id: z.ZodString;
699
+ reason: z.ZodString;
700
+ };
701
+ execute(args: {
702
+ id: string;
703
+ reason: string;
704
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
705
+ };
706
+ beads_start: {
707
+ description: string;
708
+ args: {
709
+ id: z.ZodString;
710
+ };
711
+ execute(args: {
712
+ id: string;
713
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
714
+ };
715
+ beads_ready: {
716
+ description: string;
717
+ args: {};
718
+ execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
719
+ };
720
+ beads_sync: {
721
+ description: string;
722
+ args: {
723
+ auto_pull: z.ZodOptional<z.ZodBoolean>;
724
+ };
725
+ execute(args: {
726
+ auto_pull?: boolean | undefined;
727
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
728
+ };
729
+ beads_link_thread: {
730
+ description: string;
731
+ args: {
732
+ cell_id: z.ZodString;
733
+ thread_id: z.ZodString;
734
+ };
735
+ execute(args: {
736
+ cell_id: string;
737
+ thread_id: string;
738
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
739
+ };
740
+ };
741
+ //# sourceMappingURL=hive.d.ts.map