open-agents-ai 0.184.23 → 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.
- package/dist/index.js +7 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49981,18 +49981,19 @@ async function handleSponsoredEndpoint(ctx, local) {
|
|
|
49981
49981
|
} catch {
|
|
49982
49982
|
}
|
|
49983
49983
|
if (nexusTool) {
|
|
49984
|
-
process.stdout.write(` ${c2.dim("Connecting to nexus P2P mesh...")}
|
|
49985
|
-
`);
|
|
49986
49984
|
try {
|
|
49987
|
-
const statusResult = await nexusTool.execute({ action: "status" });
|
|
49988
|
-
const isConnected =
|
|
49989
|
-
if (
|
|
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 {
|
|
49990
49991
|
process.stdout.write(` ${c2.dim("Starting nexus daemon...")}
|
|
49991
49992
|
`);
|
|
49992
49993
|
await nexusTool.execute({ action: "connect" });
|
|
49993
49994
|
await new Promise((r) => setTimeout(r, 3e3));
|
|
49994
49995
|
}
|
|
49995
|
-
process.stdout.write(` ${c2.dim("Querying
|
|
49996
|
+
process.stdout.write(` ${c2.dim("Querying sponsors on the mesh...")}
|
|
49996
49997
|
`);
|
|
49997
49998
|
const discoverResult = await nexusTool.execute({
|
|
49998
49999
|
action: "sponsor_discover",
|
package/package.json
CHANGED