opencode-swarm-plugin 0.31.4 → 0.31.6

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/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # opencode-swarm-plugin
2
2
 
3
+ ## 0.31.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`3147d36`](https://github.com/joelhooks/swarm-tools/commit/3147d36cf2355b9cfe461c7dfc3b30675ea36d89) Thanks [@joelhooks](https://github.com/joelhooks)! - ## 🚪 Setup Now Exits Cleanly After Migration
8
+
9
+ Fixed a process hang where `swarm setup` would complete the migration but never exit.
10
+
11
+ **Root cause:** The PGLite connection created for memory migration kept the Node.js event loop alive indefinitely.
12
+
13
+ **Fix:** Close the swarmMail connection after migration completes. The connection is scoped to the migration block and not needed afterward.
14
+
15
+ ```typescript
16
+ // After migration completes
17
+ await swarmMail.close();
18
+ ```
19
+
20
+ **Before:** `swarm setup` hangs after "Migration complete" message
21
+ **After:** Process exits cleanly, returns to shell
22
+
23
+ ## 0.31.5
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [[`64368aa`](https://github.com/joelhooks/swarm-tools/commit/64368aa6106089346cd2b1324f6235d5c673964b)]:
28
+ - swarm-mail@1.2.1
29
+
3
30
  ## 0.31.4
4
31
 
5
32
  ### Patch Changes
package/bin/swarm.ts CHANGED
@@ -1741,6 +1741,9 @@ async function setup() {
1741
1741
  p.log.message(dim(` ... and ${result.errors.length - 3} more errors`));
1742
1742
  }
1743
1743
  }
1744
+
1745
+ // Close the connection to allow process to exit
1746
+ await swarmMail.close();
1744
1747
  } catch (error) {
1745
1748
  migrateSpinner.stop("Migration failed");
1746
1749
  p.log.error(error instanceof Error ? error.message : String(error));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-swarm-plugin",
3
- "version": "0.31.4",
3
+ "version": "0.31.6",
4
4
  "description": "Multi-agent swarm coordination for OpenCode with learning capabilities, beads integration, and Agent Mail",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -39,7 +39,7 @@
39
39
  "gray-matter": "^4.0.3",
40
40
  "ioredis": "^5.4.1",
41
41
  "minimatch": "^10.1.1",
42
- "swarm-mail": "1.2.0",
42
+ "swarm-mail": "1.2.1",
43
43
  "zod": "4.1.8"
44
44
  },
45
45
  "devDependencies": {