open-agents-ai 0.81.0 → 0.83.0
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
CHANGED
|
@@ -11445,7 +11445,7 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
|
|
|
11445
11445
|
];
|
|
11446
11446
|
NexusTool = class {
|
|
11447
11447
|
name = "nexus";
|
|
11448
|
-
description = "Decentralized agent-to-agent communication via open-agents-nexus v1.
|
|
11448
|
+
description = "Decentralized agent-to-agent communication via open-agents-nexus v1.4.0. Spawns a background Node.js process with real network sockets for libp2p + NATS P2P mesh. Simple flow: connect \u2192 join room \u2192 send messages. Auto-installs/updates nexus if needed. Also supports direct peer invoke (streaming inference), IPFS content storage, direct messages, peer discovery, x402 micropayments, and inference proofs. Onboarding: curl openagents.nexus/llms.txt for full instructions, /.well-known/agent.json for machine-readable manifest.";
|
|
11449
11449
|
parameters = {
|
|
11450
11450
|
type: "object",
|
|
11451
11451
|
properties: {
|
|
@@ -11667,18 +11667,50 @@ process.on('SIGINT', () => process.emit('SIGTERM'));
|
|
|
11667
11667
|
}
|
|
11668
11668
|
const nodeModulesDir = resolve26(this.repoRoot, "node_modules");
|
|
11669
11669
|
let nexusResolved = false;
|
|
11670
|
+
let installedVersion = "";
|
|
11670
11671
|
try {
|
|
11671
11672
|
const nexusPkg = join28(nodeModulesDir, "open-agents-nexus", "package.json");
|
|
11672
11673
|
if (existsSync21(nexusPkg)) {
|
|
11673
11674
|
nexusResolved = true;
|
|
11675
|
+
try {
|
|
11676
|
+
const pkg = JSON.parse(readFileSync15(nexusPkg, "utf8"));
|
|
11677
|
+
installedVersion = pkg.version || "";
|
|
11678
|
+
} catch {
|
|
11679
|
+
}
|
|
11674
11680
|
} else {
|
|
11675
11681
|
const globalDir = execSync21("npm root -g", { encoding: "utf8", timeout: 5e3 }).trim();
|
|
11676
|
-
|
|
11682
|
+
const globalPkg = join28(globalDir, "open-agents-nexus", "package.json");
|
|
11683
|
+
if (existsSync21(globalPkg)) {
|
|
11677
11684
|
nexusResolved = true;
|
|
11685
|
+
try {
|
|
11686
|
+
const pkg = JSON.parse(readFileSync15(globalPkg, "utf8"));
|
|
11687
|
+
installedVersion = pkg.version || "";
|
|
11688
|
+
} catch {
|
|
11689
|
+
}
|
|
11678
11690
|
}
|
|
11679
11691
|
}
|
|
11680
11692
|
} catch {
|
|
11681
11693
|
}
|
|
11694
|
+
if (nexusResolved && installedVersion) {
|
|
11695
|
+
try {
|
|
11696
|
+
const latestRaw = execSync21("npm view open-agents-nexus version 2>/dev/null", {
|
|
11697
|
+
encoding: "utf8",
|
|
11698
|
+
timeout: 8e3
|
|
11699
|
+
}).trim();
|
|
11700
|
+
if (latestRaw && latestRaw !== installedVersion) {
|
|
11701
|
+
try {
|
|
11702
|
+
execSync21(`npm install open-agents-nexus@${latestRaw} --save 2>&1`, {
|
|
11703
|
+
cwd: this.repoRoot,
|
|
11704
|
+
stdio: "pipe",
|
|
11705
|
+
timeout: 6e4
|
|
11706
|
+
});
|
|
11707
|
+
installedVersion = latestRaw;
|
|
11708
|
+
} catch {
|
|
11709
|
+
}
|
|
11710
|
+
}
|
|
11711
|
+
} catch {
|
|
11712
|
+
}
|
|
11713
|
+
}
|
|
11682
11714
|
if (!nexusResolved) {
|
|
11683
11715
|
try {
|
|
11684
11716
|
execSync21("npm install open-agents-nexus@latest 2>&1", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "open-agents-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.83.0",
|
|
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",
|
|
@@ -70,6 +70,6 @@
|
|
|
70
70
|
},
|
|
71
71
|
"optionalDependencies": {
|
|
72
72
|
"moondream": "^0.2.0",
|
|
73
|
-
"open-agents-nexus": "^1.
|
|
73
|
+
"open-agents-nexus": "^1.4.1"
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -26,6 +26,7 @@ If a tool fails, try a different approach. If you're unsure, explore with your t
|
|
|
26
26
|
- web_fetch: Fetch a web page and extract text content (for docs, MDN, w3schools.com, etc.)
|
|
27
27
|
- memory_read: Read from persistent memory (learned patterns, solutions)
|
|
28
28
|
- memory_write: Store a fact, pattern, or solution in persistent memory for future tasks
|
|
29
|
+
- nexus: P2P agent networking (libp2p + NATS + IPFS). Connect to other agents, join rooms, send messages, discover peers, invoke capabilities, store content, manage wallet. Actions: connect, disconnect, status, join_room, leave_room, send_message, read_messages, discover_peers, list_rooms, send_dm, find_agent, invoke_capability, store_content, retrieve_content, wallet_status, wallet_create, inference_proof.
|
|
29
30
|
- task_complete: Signal task completion with a summary
|
|
30
31
|
|
|
31
32
|
## Parallel Execution & Sub-Agents
|
|
@@ -184,9 +185,9 @@ If you notice you're performing the SAME multi-step sequence for the 3rd time or
|
|
|
184
185
|
- Test the tool mentally before creating — ensure the steps would work in order
|
|
185
186
|
- Prefer 'project' scope unless the pattern genuinely applies to all projects
|
|
186
187
|
|
|
187
|
-
## Nexus P2P Networking (v1.
|
|
188
|
+
## Nexus P2P Networking (v1.4.0) — Decentralized Agent Communication
|
|
188
189
|
|
|
189
|
-
|
|
190
|
+
You HAVE the nexus tool. It is one of your registered tools. USE IT when asked about connecting, messaging, or networking with other agents.
|
|
190
191
|
|
|
191
192
|
open-agents-nexus is auto-installed on first use. Requires Node >= 22 (Promise.withResolvers).
|
|
192
193
|
|
|
@@ -17,6 +17,7 @@ NEVER say "I can't do that". ALWAYS attempt the task using your tools. If a tool
|
|
|
17
17
|
- web_search: Search the web
|
|
18
18
|
- web_fetch: Fetch a web page's text
|
|
19
19
|
- memory_read / memory_write: Persistent memory across sessions
|
|
20
|
+
- nexus: P2P agent networking (connect, join_room, send_message, discover_peers, invoke_capability, wallet, etc.)
|
|
20
21
|
- task_complete: Signal completion with a summary
|
|
21
22
|
- background_run / task_status / task_output / task_stop: Background tasks
|
|
22
23
|
- batch_edit: Multiple edits across files in one call
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
You are a coding agent. You MUST call tools in EVERY response. NEVER reply with only text.
|
|
2
2
|
|
|
3
|
-
Tools: file_read, file_write, file_edit, shell, task_complete, find_files, grep_search, web_search, web_fetch
|
|
3
|
+
Tools: file_read, file_write, file_edit, shell, task_complete, find_files, grep_search, web_search, web_fetch, nexus
|
|
4
4
|
|
|
5
5
|
Steps:
|
|
6
6
|
1. file_read the source files AND test files
|