open-agents-ai 0.71.2 → 0.71.4
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 +17 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11176,7 +11176,15 @@ async function loadNexus() {
|
|
|
11176
11176
|
try {
|
|
11177
11177
|
nexusMod = await import("open-agents-nexus");
|
|
11178
11178
|
} catch {
|
|
11179
|
-
|
|
11179
|
+
try {
|
|
11180
|
+
execSync20("npm install -g open-agents-nexus@latest 2>/dev/null || npm install open-agents-nexus@latest 2>/dev/null", {
|
|
11181
|
+
stdio: "pipe",
|
|
11182
|
+
timeout: 12e4
|
|
11183
|
+
});
|
|
11184
|
+
nexusMod = await import("open-agents-nexus");
|
|
11185
|
+
} catch {
|
|
11186
|
+
throw new Error("Failed to auto-install open-agents-nexus. Install manually: npm install -g open-agents-nexus");
|
|
11187
|
+
}
|
|
11180
11188
|
}
|
|
11181
11189
|
}
|
|
11182
11190
|
return nexusMod;
|
|
@@ -11518,6 +11526,13 @@ var init_nexus = __esm({
|
|
|
11518
11526
|
x402: walletAddress ? { enabled: true, walletAddress, allowedCurrencies: ["USDC"], allowedNetworks: ["base"] } : { enabled: false }
|
|
11519
11527
|
});
|
|
11520
11528
|
await client.connect();
|
|
11529
|
+
try {
|
|
11530
|
+
const node = client.network?.node;
|
|
11531
|
+
if (node && typeof node.start === "function" && !node.isStarted?.()) {
|
|
11532
|
+
await node.start();
|
|
11533
|
+
}
|
|
11534
|
+
} catch {
|
|
11535
|
+
}
|
|
11521
11536
|
clientInstance = client;
|
|
11522
11537
|
connectionPeerId = client.peerId;
|
|
11523
11538
|
await writeFile12(join28(this.nexusDir, "connection.json"), JSON.stringify({
|
|
@@ -15133,6 +15148,7 @@ If you notice you're performing the SAME multi-step sequence for the 3rd time or
|
|
|
15133
15148
|
|
|
15134
15149
|
- nexus: Decentralized agent-to-agent communication via open-agents-nexus.
|
|
15135
15150
|
|
|
15151
|
+
open-agents-nexus is auto-installed on first use \u2014 just call connect and it handles the rest.
|
|
15136
15152
|
The core flow is simple \u2014 connect, join a room, send/receive messages:
|
|
15137
15153
|
nexus(action='connect', agent_name='MyAgent')
|
|
15138
15154
|
nexus(action='join_room', room_id='general')
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-agents-ai",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.4",
|
|
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",
|
|
@@ -68,6 +68,6 @@
|
|
|
68
68
|
},
|
|
69
69
|
"optionalDependencies": {
|
|
70
70
|
"moondream": "^0.2.0",
|
|
71
|
-
"open-agents-nexus": "^0.
|
|
71
|
+
"open-agents-nexus": "^0.3.0"
|
|
72
72
|
}
|
|
73
73
|
}
|