open-agents-ai 0.187.301 → 0.187.302

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.
Files changed (2) hide show
  1. package/dist/index.js +15 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -326223,6 +326223,21 @@ async function handleV1Update(req2, res, requestId) {
326223
326223
  stdio: "ignore"
326224
326224
  });
326225
326225
  follower.unref();
326226
+ const relaunchScript = [
326227
+ `while kill -0 ${installPid} 2>/dev/null; do sleep 1; done`,
326228
+ // Short grace period before restart
326229
+ `sleep 1`,
326230
+ // Use PATH to pick up the freshly installed oa; background and disown
326231
+ `oa serve --quiet --daemon >/dev/null 2>&1 & disown`,
326232
+ // Terminate current daemon so the new one can bind the port
326233
+ `kill -TERM ${process.pid} >/dev/null 2>&1 || true`
326234
+ ].join("; ");
326235
+ const relauncher = spawn25("bash", ["-c", relaunchScript], {
326236
+ detached: true,
326237
+ stdio: "ignore",
326238
+ env: cleanEnv
326239
+ });
326240
+ relauncher.unref();
326226
326241
  } catch {
326227
326242
  }
326228
326243
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.187.301",
3
+ "version": "0.187.302",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",