open-agents-ai 0.186.25 → 0.186.27

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 +27 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -51437,10 +51437,23 @@ Clone a new voice: /voice clone <wav-file> [name]`);
51437
51437
  if (!sponsorPeerId) {
51438
51438
  try {
51439
51439
  const nexus = new NexusTool(projectDir);
51440
- const st = String(await nexus.execute({ action: "status" }) ?? "");
51441
- const pm = st.match(/Peer ID:\s*(12D3KooW\S+)/i);
51442
- if (pm)
51440
+ let st = String(await nexus.execute({ action: "status" }) ?? "");
51441
+ let pm = st.match(/Peer ID:\s*(12D3KooW\S+)/i);
51442
+ if (pm) {
51443
51443
  sponsorPeerId = pm[1];
51444
+ } else {
51445
+ renderInfo("Waiting for nexus daemon to connect (up to 30s)...");
51446
+ for (let i = 0; i < 30; i++) {
51447
+ await new Promise((r) => setTimeout(r, 1e3));
51448
+ st = String(await nexus.execute({ action: "status" }) ?? "");
51449
+ pm = st.match(/Peer ID:\s*(12D3KooW\S+)/i);
51450
+ if (pm) {
51451
+ sponsorPeerId = pm[1];
51452
+ renderInfo("Nexus daemon connected.");
51453
+ break;
51454
+ }
51455
+ }
51456
+ }
51444
51457
  } catch {
51445
51458
  }
51446
51459
  }
@@ -71969,6 +71982,17 @@ Rationale: ${proposal.rationale}${provenanceNote}`;
71969
71982
  autoNexus.execute({ action: "connect" }).then((r) => {
71970
71983
  if (r.success && r.output.includes("Connected")) {
71971
71984
  writeContent(() => renderInfo("Nexus P2P network connected."));
71985
+ try {
71986
+ const nexusPidFile = join75(repoRoot, ".oa", "nexus", "daemon.pid");
71987
+ if (existsSync58(nexusPidFile)) {
71988
+ const nPid = parseInt(readFileSync47(nexusPidFile, "utf8").trim(), 10);
71989
+ if (nPid > 0 && !registry.daemons.has("Nexus")) {
71990
+ registry.register({ name: "Nexus", pid: nPid, startedAt: Date.now(), status: "running" });
71991
+ statusBar.ensureMonitorTimer();
71992
+ }
71993
+ }
71994
+ } catch {
71995
+ }
71972
71996
  }
71973
71997
  }).catch(() => {
71974
71998
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.186.25",
3
+ "version": "0.186.27",
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",