open-agents-ai 0.184.78 → 0.184.79

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 +9 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -51443,16 +51443,20 @@ async function handleUpdate(subcommand, ctx) {
51443
51443
  await new Promise((r) => setTimeout(r, 200));
51444
51444
  const { execPath, argv } = process;
51445
51445
  try {
51446
- const { execFileSync } = await import("node:child_process");
51446
+ const { spawn: spawnChild } = await import("node:child_process");
51447
51447
  if (process.stdout.isTTY) {
51448
51448
  process.stdout.write("\x1B[?1002l\x1B[?1003l\x1B[?1006l\x1B[?25h\x1B[?1049l\x1B[0m");
51449
51449
  }
51450
- process.env.__OA_RESUMED = resumeFlag;
51451
- execFileSync(execPath, argv.slice(1), {
51450
+ const child = spawnChild(execPath, argv.slice(1), {
51452
51451
  stdio: "inherit",
51453
- env: { ...process.env, __OA_RESUMED: resumeFlag }
51452
+ env: { ...process.env, __OA_RESUMED: resumeFlag },
51453
+ detached: false
51454
51454
  });
51455
- process.exit(0);
51455
+ child.on("exit", (code) => {
51456
+ process.exit(code ?? 0);
51457
+ });
51458
+ process.removeAllListeners("SIGINT");
51459
+ process.removeAllListeners("SIGTERM");
51456
51460
  } catch {
51457
51461
  process.stderr.write("\x1B[0m\nRestart oa manually to use the new version.\n");
51458
51462
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.184.78",
3
+ "version": "0.184.79",
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",