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.
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +23 -0
- package/README.md +43 -46
- package/bin/swarm.ts +8 -8
- package/dist/compaction-hook.d.ts +57 -0
- package/dist/compaction-hook.d.ts.map +1 -0
- package/dist/hive.d.ts +741 -0
- package/dist/hive.d.ts.map +1 -0
- package/dist/index.d.ts +139 -23
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1353 -350
- package/dist/learning.d.ts +9 -9
- package/dist/plugin.js +1176 -350
- package/dist/schemas/cell-events.d.ts +1352 -0
- package/dist/schemas/{bead-events.d.ts.map → cell-events.d.ts.map} +1 -1
- package/dist/schemas/{bead.d.ts → cell.d.ts} +173 -29
- package/dist/schemas/cell.d.ts.map +1 -0
- package/dist/schemas/index.d.ts +11 -7
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/structured.d.ts +17 -7
- package/dist/structured.d.ts.map +1 -1
- package/dist/swarm-decompose.d.ts +5 -5
- package/dist/swarm-orchestrate.d.ts +16 -2
- package/dist/swarm-orchestrate.d.ts.map +1 -1
- package/dist/swarm-prompts.d.ts +9 -9
- package/dist/swarm-prompts.d.ts.map +1 -1
- package/dist/swarm-review.d.ts +210 -0
- package/dist/swarm-review.d.ts.map +1 -0
- package/dist/swarm-worktree.d.ts +185 -0
- package/dist/swarm-worktree.d.ts.map +1 -0
- package/dist/swarm.d.ts +7 -0
- package/dist/swarm.d.ts.map +1 -1
- package/dist/tool-availability.d.ts +3 -2
- package/dist/tool-availability.d.ts.map +1 -1
- package/docs/analysis-socratic-planner-pattern.md +1 -1
- package/docs/planning/ADR-007-swarm-enhancements-worktree-review.md +168 -0
- package/docs/testing/context-recovery-test.md +2 -2
- package/evals/README.md +2 -2
- package/evals/scorers/index.ts +7 -7
- package/examples/commands/swarm.md +21 -23
- package/examples/plugin-wrapper-template.ts +310 -44
- package/examples/skills/{beads-workflow → hive-workflow}/SKILL.md +40 -40
- package/examples/skills/swarm-coordination/SKILL.md +1 -1
- package/global-skills/swarm-coordination/SKILL.md +14 -14
- package/global-skills/swarm-coordination/references/coordinator-patterns.md +3 -3
- package/package.json +2 -2
- package/src/compaction-hook.ts +161 -0
- package/src/{beads.integration.test.ts → hive.integration.test.ts} +92 -80
- package/src/{beads.ts → hive.ts} +378 -219
- package/src/index.ts +57 -20
- package/src/learning.ts +9 -9
- package/src/output-guardrails.test.ts +4 -4
- package/src/output-guardrails.ts +9 -9
- package/src/planning-guardrails.test.ts +1 -1
- package/src/planning-guardrails.ts +1 -1
- package/src/schemas/{bead-events.test.ts → cell-events.test.ts} +83 -77
- package/src/schemas/cell-events.ts +807 -0
- package/src/schemas/{bead.ts → cell.ts} +95 -41
- package/src/schemas/evaluation.ts +1 -1
- package/src/schemas/index.ts +90 -18
- package/src/schemas/swarm-context.ts +2 -2
- package/src/structured.test.ts +15 -15
- package/src/structured.ts +18 -11
- package/src/swarm-decompose.ts +23 -23
- package/src/swarm-orchestrate.ts +135 -21
- package/src/swarm-prompts.ts +43 -43
- package/src/swarm-review.test.ts +702 -0
- package/src/swarm-review.ts +696 -0
- package/src/swarm-worktree.test.ts +501 -0
- package/src/swarm-worktree.ts +575 -0
- package/src/swarm.integration.test.ts +12 -12
- package/src/tool-availability.ts +36 -3
- package/dist/beads.d.ts +0 -386
- package/dist/beads.d.ts.map +0 -1
- package/dist/schemas/bead-events.d.ts +0 -698
- package/dist/schemas/bead.d.ts.map +0 -1
- package/src/schemas/bead-events.ts +0 -583
package/dist/learning.d.ts
CHANGED
|
@@ -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 -
|
|
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 -
|
|
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 -
|
|
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 -
|
|
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 -
|
|
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 -
|
|
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 -
|
|
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 -
|
|
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 -
|
|
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): {
|