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.
@@ -22,5 +22,9 @@ jobs:
22
22
  - name: Type check
23
23
  run: bun run typecheck
24
24
 
25
- - name: Run tests
25
+ - name: Run unit tests
26
26
  run: bun run test
27
+
28
+ - name: Run integration tests
29
+ run: bun run test:integration
30
+ timeout-minutes: 10
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 - Use Swarm Mail)
383
+ ### Agent Mail (Deprecated - MCP-based)
342
384
 
343
- > **Note:** Agent Mail tools (`agentmail_*`) have been removed in v0.14.0. Use `swarmmail_*` tools instead. The embedded Swarm Mail provides the same functionality without requiring an external MCP server.
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)