opencode-swarm-plugin 0.18.0 → 0.20.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/.beads/issues.jsonl +74 -61
- package/.github/workflows/ci.yml +5 -1
- package/README.md +48 -4
- package/dist/index.js +6643 -6326
- package/dist/plugin.js +2726 -2404
- package/package.json +1 -1
- package/src/agent-mail.ts +20 -7
- package/src/anti-patterns.test.ts +1167 -0
- package/src/anti-patterns.ts +29 -11
- package/src/index.ts +8 -0
- package/src/pattern-maturity.test.ts +1160 -0
- package/src/pattern-maturity.ts +51 -13
- package/src/plugin.ts +15 -3
- package/src/schemas/bead.ts +35 -4
- package/src/schemas/evaluation.ts +18 -6
- package/src/schemas/index.ts +25 -2
- package/src/schemas/task.ts +49 -21
- package/src/streams/debug.ts +101 -3
- package/src/streams/events.ts +22 -0
- package/src/streams/index.ts +58 -1
- package/src/streams/migrations.ts +46 -4
- package/src/streams/store.integration.test.ts +110 -0
- package/src/streams/store.ts +311 -126
- package/src/structured.test.ts +1046 -0
- package/src/structured.ts +74 -27
- package/src/swarm-decompose.ts +912 -0
- package/src/swarm-mail.ts +7 -7
- package/src/swarm-orchestrate.ts +1869 -0
- package/src/swarm-prompts.ts +756 -0
- package/src/swarm-strategies.ts +407 -0
- package/src/swarm.ts +23 -3876
- package/src/tool-availability.ts +29 -6
- package/test-bug-fixes.ts +86 -0
package/src/swarm-mail.ts
CHANGED
|
@@ -28,6 +28,7 @@ import {
|
|
|
28
28
|
checkSwarmHealth,
|
|
29
29
|
} from "./streams/swarm-mail";
|
|
30
30
|
import { getActiveReservations } from "./streams/projections";
|
|
31
|
+
import type { MailSessionState } from "./streams/events";
|
|
31
32
|
import {
|
|
32
33
|
existsSync,
|
|
33
34
|
mkdirSync,
|
|
@@ -47,13 +48,12 @@ interface ToolContext {
|
|
|
47
48
|
sessionID: string;
|
|
48
49
|
}
|
|
49
50
|
|
|
50
|
-
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
51
|
+
/**
|
|
52
|
+
* Swarm Mail session state
|
|
53
|
+
* @deprecated Use MailSessionState from streams/events.ts instead
|
|
54
|
+
* This is kept for backward compatibility and re-exported as an alias
|
|
55
|
+
*/
|
|
56
|
+
export type SwarmMailState = MailSessionState;
|
|
57
57
|
|
|
58
58
|
/** Init tool arguments */
|
|
59
59
|
interface InitArgs {
|