swarm-code 0.1.15 → 0.1.16
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/dist/agents/opencode.js +3 -0
- package/package.json +1 -1
package/dist/agents/opencode.js
CHANGED
|
@@ -158,6 +158,9 @@ class OpenCodeServerPool {
|
|
|
158
158
|
resolveReady = resolve;
|
|
159
159
|
rejectReady = reject;
|
|
160
160
|
});
|
|
161
|
+
// Prevent unhandled rejection crash — timeout/exit rejections are
|
|
162
|
+
// communicated via the null return from startServer(), not via this promise.
|
|
163
|
+
readyPromise.catch(() => { });
|
|
161
164
|
const proc = spawn("opencode", ["serve", "--port", String(port), "--hostname", hostname], {
|
|
162
165
|
cwd,
|
|
163
166
|
stdio: ["ignore", "pipe", "pipe"],
|
package/package.json
CHANGED