opencode-swarm-plugin 0.26.1 → 0.27.2

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 +38 -0
  3. package/README.md +43 -46
  4. package/bin/swarm.ts +10 -54
  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
@@ -355,7 +355,7 @@ export declare class InMemoryStrikeStorage implements StrikeStorage {
355
355
  *
356
356
  * Records a failure attempt and increments the strike count.
357
357
  *
358
- * @param beadId - Bead ID
358
+ * @param beadId - Cell ID
359
359
  * @param attempt - Description of what was attempted
360
360
  * @param reason - Why it failed
361
361
  * @param storage - Strike storage (defaults to in-memory)
@@ -365,7 +365,7 @@ export declare function addStrike(beadId: string, attempt: string, reason: strin
365
365
  /**
366
366
  * Get strike count for a bead
367
367
  *
368
- * @param beadId - Bead ID
368
+ * @param beadId - Cell ID
369
369
  * @param storage - Strike storage
370
370
  * @returns Strike count (0-3)
371
371
  */
@@ -373,7 +373,7 @@ export declare function getStrikes(beadId: string, storage?: StrikeStorage): Pro
373
373
  /**
374
374
  * Check if a bead has struck out (3 strikes)
375
375
  *
376
- * @param beadId - Bead ID
376
+ * @param beadId - Cell ID
377
377
  * @param storage - Strike storage
378
378
  * @returns True if bead has 3 strikes
379
379
  */
@@ -384,7 +384,7 @@ export declare function isStrikedOut(beadId: string, storage?: StrikeStorage): P
384
384
  * When a bead hits 3 strikes, this generates a prompt that forces
385
385
  * the human to question the architecture instead of attempting Fix #4.
386
386
  *
387
- * @param beadId - Bead ID
387
+ * @param beadId - Cell ID
388
388
  * @param storage - Strike storage
389
389
  * @returns Architecture review prompt
390
390
  */
@@ -392,7 +392,7 @@ export declare function getArchitecturePrompt(beadId: string, storage?: StrikeSt
392
392
  /**
393
393
  * Clear strikes for a bead (e.g., after successful fix)
394
394
  *
395
- * @param beadId - Bead ID
395
+ * @param beadId - Cell ID
396
396
  * @param storage - Strike storage
397
397
  */
398
398
  export declare function clearStrikes(beadId: string, storage?: StrikeStorage): Promise<void>;
@@ -440,7 +440,7 @@ export declare class ErrorAccumulator {
440
440
  /**
441
441
  * Record an error during subtask execution
442
442
  *
443
- * @param beadId - Bead ID where error occurred
443
+ * @param beadId - Cell ID where error occurred
444
444
  * @param errorType - Category of error
445
445
  * @param message - Human-readable error message
446
446
  * @param options - Additional context (stack trace, tool name, etc.)
@@ -489,7 +489,7 @@ export declare class ErrorAccumulator {
489
489
  /**
490
490
  * Format memory store instruction for successful task completion
491
491
  *
492
- * @param beadId - Bead ID that completed
492
+ * @param beadId - Cell ID that completed
493
493
  * @param summary - Completion summary
494
494
  * @param filesTouched - Files modified
495
495
  * @param strategy - Decomposition strategy used (if applicable)
@@ -503,7 +503,7 @@ export declare function formatMemoryStoreOnSuccess(beadId: string, summary: stri
503
503
  /**
504
504
  * Format memory store instruction for architectural problems (3-strike)
505
505
  *
506
- * @param beadId - Bead ID that struck out
506
+ * @param beadId - Cell ID that struck out
507
507
  * @param failures - Array of failure attempts
508
508
  * @returns Memory store instruction object
509
509
  */
@@ -530,7 +530,7 @@ export declare function formatMemoryQueryForDecomposition(task: string, limit?:
530
530
  /**
531
531
  * Format memory validation hint when CASS history helped
532
532
  *
533
- * @param beadId - Bead ID that benefited from CASS
533
+ * @param beadId - Cell ID that benefited from CASS
534
534
  * @returns Memory validation hint
535
535
  */
536
536
  export declare function formatMemoryValidationHint(beadId: string): {