open-agents-ai 0.186.26 → 0.186.28

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 +26 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -71977,11 +71977,37 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
71977
71977
  });
71978
71978
  }
71979
71979
  }
71980
+ try {
71981
+ const { unlinkSync: _rmStale } = await import("node:fs");
71982
+ const { homedir: _hdir } = await import("node:os");
71983
+ for (const dp of [
71984
+ join75(repoRoot, ".oa", "nexus", "nexus-daemon.mjs"),
71985
+ join75(_hdir(), ".open-agents", ".oa", "nexus", "nexus-daemon.mjs")
71986
+ ]) {
71987
+ if (existsSync58(dp))
71988
+ try {
71989
+ _rmStale(dp);
71990
+ } catch {
71991
+ }
71992
+ }
71993
+ } catch {
71994
+ }
71980
71995
  try {
71981
71996
  const autoNexus = new NexusTool(repoRoot);
71982
71997
  autoNexus.execute({ action: "connect" }).then((r) => {
71983
71998
  if (r.success && r.output.includes("Connected")) {
71984
71999
  writeContent(() => renderInfo("Nexus P2P network connected."));
72000
+ try {
72001
+ const nexusPidFile = join75(repoRoot, ".oa", "nexus", "daemon.pid");
72002
+ if (existsSync58(nexusPidFile)) {
72003
+ const nPid = parseInt(readFileSync47(nexusPidFile, "utf8").trim(), 10);
72004
+ if (nPid > 0 && !registry.daemons.has("Nexus")) {
72005
+ registry.register({ name: "Nexus", pid: nPid, startedAt: Date.now(), status: "running" });
72006
+ statusBar.ensureMonitorTimer();
72007
+ }
72008
+ }
72009
+ } catch {
72010
+ }
71985
72011
  }
71986
72012
  }).catch(() => {
71987
72013
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.186.26",
3
+ "version": "0.186.28",
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",