@sleep2agi/agent-network 2.0.3-preview.6 → 2.0.3-preview.8

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/README.md CHANGED
@@ -2,12 +2,12 @@
2
2
 
3
3
  `anet` — a single CLI to run a local AI Agent network. Launch the hub, the dashboard, and as many agent nodes as you want. Verified end-to-end on macOS / Linux / Docker via Playwright.
4
4
 
5
- **v2.0.0 stable.** Pairs with `@sleep2agi/commhub-server` 0.5.0, `@sleep2agi/agent-network-dashboard` 0.1.0, `@sleep2agi/agent-node` 2.1.1. Everything below in the **Verified flow** section has E2E coverage; everything in the **Not verified** section is best-effort.
5
+ **Current preview line.** Pairs with `@sleep2agi/commhub-server` 0.5.3-preview.0, `@sleep2agi/agent-network-dashboard` 0.2.1-preview.1, `@sleep2agi/agent-node` 2.2.0-preview.1. The local flow below is the supported path; experimental commands are called out separately.
6
6
 
7
7
  ## Install
8
8
 
9
9
  ```bash
10
- npm install -g @sleep2agi/agent-network
10
+ npm install -g @sleep2agi/agent-network@preview
11
11
  anet -v
12
12
  ```
13
13
 
@@ -23,7 +23,7 @@ anet hub start
23
23
  # • http://127.0.0.1:9200
24
24
  # • SQLite at ~/.commhub/commhub.db
25
25
  # • Default admin account auto-created: admin / anethub
26
- # • Prints a LAN URL so other machines can join
26
+ # • For LAN access, start with --host 0.0.0.0 and use the printed LAN URL
27
27
 
28
28
  # Terminal 2 — Dashboard
29
29
  anet hub dashboard
@@ -51,12 +51,18 @@ anet node start video-bot
51
51
 
52
52
  Ask `my-bot` something like *"ask video-bot what it can do"*. `my-bot` discovers `video-bot` via the commhub MCP `get_all_status` tool, dispatches the question with `send_task`, polls `get_task`, and integrates the reply. The Tasks and Messages pages show the full handshake.
53
53
 
54
- ### LAN-shared hub (verified)
54
+ ### LAN-shared hub
55
55
 
56
- `anet hub start` listens on `0.0.0.0`. From another machine on the same network:
56
+ By default `anet hub start` binds to `127.0.0.1`. To accept agents from other machines on the same network, start the hub with an explicit LAN bind:
57
57
 
58
58
  ```bash
59
- npm install -g @sleep2agi/agent-network
59
+ anet hub start --host 0.0.0.0
60
+ ```
61
+
62
+ Then on another machine:
63
+
64
+ ```bash
65
+ npm install -g @sleep2agi/agent-network@preview
60
66
  anet init --hub http://<HUB-LAN-IP>:9200
61
67
  anet login --username admin --password anethub
62
68
  anet node create remote-bot
@@ -69,7 +75,7 @@ anet node start remote-bot
69
75
 
70
76
  | Provider | Status | Notes |
71
77
  |---|---|---|
72
- | Anthropic | verified | `sk-ant-...`, default `claude-sonnet-4-5` |
78
+ | Anthropic | verified | `sk-ant-...`, model passed through from `--model` or provider default |
73
79
  | MiniMax (国内 / 国际) | verified | `sk-cp-...` |
74
80
  | DeepSeek | verified | `sk-...` |
75
81
  | GLM (智谱) | verified | open.bigmodel.cn key |
@@ -84,7 +90,6 @@ anet node start remote-bot
84
90
  ```bash
85
91
  # Hub + Dashboard
86
92
  anet hub start # local CommHub + auto admin/anethub [verified]
87
- anet hub stop # stop the local hub [verified]
88
93
  anet hub dashboard # launch the Web Dashboard [verified]
89
94
 
90
95
  # Auth
@@ -118,12 +123,12 @@ anet init project # write .mcp.json + CLAUDE.md [verifi
118
123
 
119
124
  ## Not verified
120
125
 
121
- Listed for transparency — these commands exist but are not part of the supported v2.0.0 path.
126
+ Listed for transparency — these commands exist but are not part of the primary supported path.
122
127
 
123
- - `anet quickstart` — removed from the docs; use `anet hub start` + `anet node create` instead.
128
+ - `anet quickstart` — legacy guided setup; use `anet hub start` + `anet node create` instead.
124
129
  - `anet license` / `anet activate` — placeholders for a future paid tier.
125
130
  - `anet network create` / `anet network invite` / cross-user network sharing — code is in, no full E2E.
126
- - `anet channel add telegram|wechat|feishu` — channels exist but are not E2E regressed in v2.0.0.
131
+ - `anet channel add telegram|wechat|feishu` — channel code exists; only the Telegram-oriented paths are actively exercised.
127
132
 
128
133
  ## Configuration files
129
134
 
@@ -138,16 +143,23 @@ A typical `config.json` after `anet node create`:
138
143
 
139
144
  ```json
140
145
  {
141
- "alias": "my-bot",
146
+ "node_id": "n_a1b2c3d4",
147
+ "node_name": "my-bot",
142
148
  "hub": "http://127.0.0.1:9200",
149
+ "token": "ntok_...",
143
150
  "runtime": "claude-agent-sdk",
144
151
  "model": "MiniMax-M2.7",
145
- "anthropic_base_url": "https://api.minimax.io/anthropic",
146
- "anthropic_auth_token": "sk-...",
147
- "tools": "all",
148
- "maxTurns": 50,
149
- "dangerouslySkipPermissions": true,
150
- "teammateMode": true
152
+ "channels": ["server:commhub"],
153
+ "tools": ["Read", "Write", "Edit", "Bash", "Glob", "Grep"],
154
+ "env": {
155
+ "ANTHROPIC_BASE_URL": "https://api.minimax.io/anthropic",
156
+ "ANTHROPIC_AUTH_TOKEN": "sk-..."
157
+ },
158
+ "flags": {
159
+ "dangerouslySkipPermissions": true,
160
+ "teammateMode": "in-process",
161
+ "maxTurns": 50
162
+ }
151
163
  }
152
164
  ```
153
165
 
@@ -155,9 +167,9 @@ A typical `config.json` after `anet node create`:
155
167
 
156
168
  | Package | Version | What it does |
157
169
  |---|---|---|
158
- | [@sleep2agi/commhub-server](https://www.npmjs.com/package/@sleep2agi/commhub-server) | 0.5.0 | MCP + REST + SSE hub |
159
- | [@sleep2agi/agent-network-dashboard](https://www.npmjs.com/package/@sleep2agi/agent-network-dashboard) | 0.1.0 | Web Dashboard |
160
- | [@sleep2agi/agent-node](https://www.npmjs.com/package/@sleep2agi/agent-node) | 2.1.1 | Agent runtime |
170
+ | [@sleep2agi/commhub-server](https://www.npmjs.com/package/@sleep2agi/commhub-server) | 0.5.3-preview.0 | MCP + REST + SSE hub |
171
+ | [@sleep2agi/agent-network-dashboard](https://www.npmjs.com/package/@sleep2agi/agent-network-dashboard) | 0.2.1-preview.1 | Web Dashboard |
172
+ | [@sleep2agi/agent-node](https://www.npmjs.com/package/@sleep2agi/agent-node) | 2.2.0-preview.1 | Agent runtime |
161
173
 
162
174
  ## Docs
163
175