open-agents-ai 0.184.22 → 0.184.24

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 +25 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -48145,15 +48145,29 @@ async function handleSlashCommand(input, ctx) {
48145
48145
  }
48146
48146
  }
48147
48147
  if (config.transport.libp2p && ctx.exposeStart) {
48148
+ let daemonReady = false;
48148
48149
  try {
48149
48150
  const nexus = new NexusTool(projectDir);
48150
- renderInfo("Ensuring nexus daemon is connected...");
48151
+ renderInfo("Starting nexus daemon...");
48151
48152
  await nexus.execute({ action: "connect" });
48152
- await new Promise((r) => setTimeout(r, 2e3));
48153
+ for (let wait = 0; wait < 15; wait++) {
48154
+ await new Promise((r) => setTimeout(r, 1e3));
48155
+ try {
48156
+ const status = await nexus.execute({ action: "status" });
48157
+ if (typeof status === "string" && status.includes("connected")) {
48158
+ daemonReady = true;
48159
+ renderInfo("Nexus daemon ready.");
48160
+ break;
48161
+ }
48162
+ } catch {
48163
+ }
48164
+ }
48165
+ if (!daemonReady)
48166
+ renderWarning("Nexus daemon did not become ready in 15s. P2P may fail.");
48153
48167
  } catch (err) {
48154
- renderWarning(`Nexus: ${err instanceof Error ? err.message : String(err)}`);
48168
+ renderWarning(`Nexus connect: ${err instanceof Error ? err.message : String(err)}`);
48155
48169
  }
48156
- if (!p2pAlreadyActive) {
48170
+ if (daemonReady && !p2pAlreadyActive) {
48157
48171
  try {
48158
48172
  const url = await ctx.exposeStart("ollama", void 0, "libp2p");
48159
48173
  if (url)
@@ -49967,18 +49981,19 @@ async function handleSponsoredEndpoint(ctx, local) {
49967
49981
  } catch {
49968
49982
  }
49969
49983
  if (nexusTool) {
49970
- process.stdout.write(` ${c2.dim("Connecting to nexus P2P mesh...")}
49971
- `);
49972
49984
  try {
49973
- const statusResult = await nexusTool.execute({ action: "status" });
49974
- const isConnected = typeof statusResult === "string" && statusResult.includes("connected");
49975
- if (!isConnected) {
49985
+ const statusResult = String(await nexusTool.execute({ action: "status" }) ?? "");
49986
+ const isConnected = /Connected:\s*true/i.test(statusResult) || statusResult.includes("Daemon running");
49987
+ if (isConnected) {
49988
+ process.stdout.write(` ${c2.dim("Using existing nexus connection...")}
49989
+ `);
49990
+ } else {
49976
49991
  process.stdout.write(` ${c2.dim("Starting nexus daemon...")}
49977
49992
  `);
49978
49993
  await nexusTool.execute({ action: "connect" });
49979
49994
  await new Promise((r) => setTimeout(r, 3e3));
49980
49995
  }
49981
- process.stdout.write(` ${c2.dim("Querying nexus sponsors room...")}
49996
+ process.stdout.write(` ${c2.dim("Querying sponsors on the mesh...")}
49982
49997
  `);
49983
49998
  const discoverResult = await nexusTool.execute({
49984
49999
  action: "sponsor_discover",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "open-agents-ai",
3
- "version": "0.184.22",
3
+ "version": "0.184.24",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) \u2014 interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",