open-agents-ai 0.184.22 → 0.184.23

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 +18 -4
  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)
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.23",
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",