opencode-swarm-plugin 0.31.5 → 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 +20 -0
- package/bin/swarm.ts +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
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
|
+
|
|
3
23
|
## 0.31.5
|
|
4
24
|
|
|
5
25
|
### 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