open-agents-ai 0.186.24 → 0.186.25

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 +49 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -54317,6 +54317,55 @@ async function handleUpdate(subcommand, ctx) {
54317
54317
  installOverlay.dismiss();
54318
54318
  return;
54319
54319
  }
54320
+ if (primaryUpdated || depsUpdated) {
54321
+ installOverlay.setStatus("Cleaning stale daemon scripts...");
54322
+ try {
54323
+ const { existsSync: _fe, unlinkSync: _ul, readdirSync: _rd } = await import("node:fs");
54324
+ const { join: _pj } = await import("node:path");
54325
+ const { homedir: _hd } = await import("node:os");
54326
+ const daemonPaths = [
54327
+ _pj(_hd(), ".open-agents", ".oa", "nexus", "nexus-daemon.mjs"),
54328
+ _pj(process.cwd(), ".oa", "nexus", "nexus-daemon.mjs")
54329
+ ];
54330
+ let cleaned = 0;
54331
+ for (const dp of daemonPaths) {
54332
+ if (_fe(dp)) {
54333
+ try {
54334
+ _ul(dp);
54335
+ cleaned++;
54336
+ } catch {
54337
+ }
54338
+ }
54339
+ }
54340
+ try {
54341
+ const pidPaths = [
54342
+ _pj(_hd(), ".open-agents", ".oa", "nexus", "daemon.pid"),
54343
+ _pj(process.cwd(), ".oa", "nexus", "daemon.pid")
54344
+ ];
54345
+ for (const pp of pidPaths) {
54346
+ if (_fe(pp)) {
54347
+ const { readFileSync: _rf } = await import("node:fs");
54348
+ const pid = parseInt(_rf(pp, "utf8").trim(), 10);
54349
+ if (pid > 0) {
54350
+ try {
54351
+ process.kill(pid, "SIGTERM");
54352
+ } catch {
54353
+ }
54354
+ try {
54355
+ _ul(pp);
54356
+ } catch {
54357
+ }
54358
+ cleaned++;
54359
+ }
54360
+ }
54361
+ }
54362
+ } catch {
54363
+ }
54364
+ if (cleaned > 0)
54365
+ installOverlay.setStatus(`Cleaned ${cleaned} stale daemon artifact(s)`);
54366
+ } catch {
54367
+ }
54368
+ }
54320
54369
  if (doRebuild) {
54321
54370
  installOverlay.setStatus("Rebuilding native modules...");
54322
54371
  await new Promise((resolve36) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.186.24",
3
+ "version": "0.186.25",
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",