opencode-swarm-plugin 0.17.1 → 0.19.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 +95 -85
- package/.github/workflows/ci.yml +5 -1
- package/README.md +48 -4
- package/dist/index.js +2652 -2080
- package/dist/plugin.js +2302 -1725
- package/package.json +1 -1
- package/src/agent-mail.ts +13 -0
- package/src/anti-patterns.test.ts +1167 -0
- package/src/anti-patterns.ts +29 -11
- package/src/learning.ts +106 -0
- package/src/pattern-maturity.ts +51 -13
- package/src/plugin.ts +15 -3
- package/src/rate-limiter.ts +48 -4
- 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/index.ts +87 -1
- package/src/streams/migrations.ts +46 -4
- package/src/streams/projections.ts +15 -0
- package/src/streams/store.integration.test.ts +110 -0
- package/src/streams/store.ts +447 -193
- package/src/structured.test.ts +1046 -0
- package/src/structured.ts +74 -27
- package/src/swarm-decompose.ts +912 -0
- 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 -3639
- package/src/tool-availability.ts +29 -6
- package/test-bug-fixes.ts +86 -0
package/.github/workflows/ci.yml
CHANGED
package/README.md
CHANGED
|
@@ -55,6 +55,48 @@ cd your-project
|
|
|
55
55
|
swarm init
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
+
## Migrating from MCP Agent Mail
|
|
59
|
+
|
|
60
|
+
If you were using the MCP-based Agent Mail (pre-v0.15), here's how to migrate:
|
|
61
|
+
|
|
62
|
+
### What Changed
|
|
63
|
+
|
|
64
|
+
- **Before:** Agent Mail required a separate MCP server running Go-based agent-mail
|
|
65
|
+
- **After:** Agent Mail is now embedded using PGLite (no external dependencies)
|
|
66
|
+
|
|
67
|
+
### Migration Steps
|
|
68
|
+
|
|
69
|
+
1. **Update the plugin:**
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
npm install -g opencode-swarm-plugin@latest
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
2. **Remove MCP configuration** (if present):
|
|
76
|
+
- Delete any `agent-mail` MCP server configuration from your OpenCode config
|
|
77
|
+
- The embedded version starts automatically
|
|
78
|
+
|
|
79
|
+
3. **Data Migration:**
|
|
80
|
+
- Previous MCP data is NOT automatically migrated
|
|
81
|
+
- For most users, starting fresh is recommended (swarm state is ephemeral)
|
|
82
|
+
- If you need historical data, export from MCP before upgrading
|
|
83
|
+
|
|
84
|
+
### Breaking Changes
|
|
85
|
+
|
|
86
|
+
- `agentmail_*` tools now use embedded PGLite instead of MCP
|
|
87
|
+
- No external server required
|
|
88
|
+
- Slightly different error messages (more actionable)
|
|
89
|
+
|
|
90
|
+
### Rollback
|
|
91
|
+
|
|
92
|
+
If you need to rollback:
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
npm install -g opencode-swarm-plugin@0.14.x
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
And restore your MCP configuration.
|
|
99
|
+
|
|
58
100
|
## CLI
|
|
59
101
|
|
|
60
102
|
```
|
|
@@ -338,9 +380,11 @@ curl -fsSL https://raw.githubusercontent.com/Dicklesworthstone/coding_agent_sess
|
|
|
338
380
|
| `swarmmail_ack` | Acknowledge message |
|
|
339
381
|
| `swarmmail_health` | Check embedded database health |
|
|
340
382
|
|
|
341
|
-
### Agent Mail (Deprecated -
|
|
383
|
+
### Agent Mail (Deprecated - MCP-based)
|
|
342
384
|
|
|
343
|
-
> **Note:**
|
|
385
|
+
> **Note:** The MCP-based `agentmail_*` tools in `src/agent-mail.ts` are **deprecated** as of v0.14.0. They remain for backward compatibility but will be removed in v1.0.0.
|
|
386
|
+
>
|
|
387
|
+
> **Use `swarmmail_*` tools instead** - embedded PGLite implementation with no external server required. See [Migrating from MCP Agent Mail](#migrating-from-mcp-agent-mail) for migration guide.
|
|
344
388
|
|
|
345
389
|
## Event-Sourced Architecture (Embedded)
|
|
346
390
|
|
|
@@ -376,13 +420,13 @@ The plugin includes an embedded event-sourced Swarm Mail implementation as an al
|
|
|
376
420
|
|
|
377
421
|
### Architecture Comparison
|
|
378
422
|
|
|
379
|
-
**MCP-based (external):**
|
|
423
|
+
**MCP-based (deprecated, external):**
|
|
380
424
|
|
|
381
425
|
```
|
|
382
426
|
plugin tools → HTTP → MCP Server (Go process) → SQLite
|
|
383
427
|
```
|
|
384
428
|
|
|
385
|
-
**Event-sourced (embedded):**
|
|
429
|
+
**Event-sourced (embedded, current):**
|
|
386
430
|
|
|
387
431
|
```
|
|
388
432
|
plugin tools → streams/agent-mail.ts → streams/store.ts → PGLite (in-process)
|