open-agents-ai 0.103.18 → 0.103.20

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 (3) hide show
  1. package/README.md +40 -1
  2. package/dist/index.js +1562 -252
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -919,6 +919,7 @@ The TUI features an animated multilingual phrase carousel, live metrics bar with
919
919
  | `/models` | List all available models |
920
920
  | `/endpoint <url>` | Connect to a remote vLLM or OpenAI-compatible API |
921
921
  | `/endpoint <url> --auth <key>` | Set endpoint with Bearer auth |
922
+ | `/endpoint <peerId> --auth <key>` | Connect to a libp2p peer via nexus P2P network |
922
923
  | **Task Control** | |
923
924
  | `/pause` | Pause after current turn finishes (gentle halt) |
924
925
  | `/stop` | Kill current inference immediately, save state |
@@ -952,7 +953,11 @@ The TUI features an animated multilingual phrase carousel, live metrics bar with
952
953
  | `/secrets set <name> <value>` | Register a secret in the vault |
953
954
  | `/secrets list` | List registered secrets (values hidden) |
954
955
  | `/secrets import-env` | Auto-import secrets from environment variables |
955
- | `/expose` | Expose local inference via cloudflared tunnel |
956
+ | `/expose ollama` | Expose local inference via libp2p (default) |
957
+ | `/expose ollama --tunnel` | Expose via cloudflared tunnel |
958
+ | `/expose ollama --full` | Allow full Ollama API access (pull/delete) |
959
+ | `/expose stop` | Stop the expose gateway |
960
+ | `/expose status` | Show expose usage stats |
956
961
  | **Metrics & Updates** | |
957
962
  | `/cost` | Show token cost breakdown for the current session |
958
963
  | `/score` | Show inference capability scorecard (memory, compute, speed, model compatibility) |
@@ -1498,6 +1503,40 @@ Use `/endpoint` in the TUI or pass via CLI:
1498
1503
 
1499
1504
  The agent auto-detects the provider, normalizes the URL (strips `/v1/chat/completions` if pasted), tests connectivity, and saves the configuration. You can paste full endpoint URLs — they'll be cleaned up automatically.
1500
1505
 
1506
+ ### P2P Inference via libp2p
1507
+
1508
+ Expose your local Ollama models to the decentralized nexus network, or consume another peer's models — no port forwarding, DNS, or cloud accounts needed:
1509
+
1510
+ ```bash
1511
+ # Provider: expose local models via libp2p (default transport)
1512
+ /expose ollama
1513
+
1514
+ # Output shows a copy-pasteable command:
1515
+ # /endpoint 12D3KooWSwaCi1J... --auth 5aJ68QuP...
1516
+
1517
+ # Consumer: connect to a remote peer
1518
+ /endpoint 12D3KooWSwaCi1JgXp2f2tQNFZFyMPZVcDe8oyTG672n6ELxSgBt --auth 5aJ68QuPxyz
1519
+
1520
+ # Fallback: expose via cloudflared tunnel instead
1521
+ /expose ollama --tunnel
1522
+
1523
+ # Grant full Ollama API access to consumers (pull, delete, etc.)
1524
+ /expose ollama --full
1525
+ ```
1526
+
1527
+ Transport: DHT + mDNS + NATS relay + circuit relay. Auth key is auto-generated and required for all requests. System metrics (CPU/GPU/memory) are available to consumers via the `system_metrics` capability. Without `--full`, destructive Ollama API endpoints (`/api/pull`, `/api/delete`, `/api/create`) are blocked.
1528
+
1529
+ ### Endpoint Cascade Failover
1530
+
1531
+ When you've used multiple endpoints, the agent automatically builds a failover cascade. If the primary endpoint fails with transient errors (502, connection refused, timeout), it transparently switches to the next endpoint that has the same model — then periodically probes the primary to return when it recovers:
1532
+
1533
+ ```
1534
+ [cascade] Failover → https://api.groq.com/openai: 2 consecutive failures: fetch failed
1535
+ [cascade] Primary recovered: http://localhost:11434
1536
+ ```
1537
+
1538
+ No configuration needed — the cascade is built from your endpoint usage history. Works across local Ollama, cloud providers, and P2P peers.
1539
+
1501
1540
  ## Evaluation Suite
1502
1541
 
1503
1542
  46 evaluation tasks test the agent's autonomous capabilities across coding, web research, SDLC analysis, tool creation, multi-file reasoning, memory systems, and context engineering: