open-agents-ai 0.186.25 → 0.186.26
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.
- package/dist/index.js +16 -3
- 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
|
-
|
|
51441
|
-
|
|
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
|
}
|
package/package.json
CHANGED