@sleep2agi/agent-network 0.0.18 → 0.0.19
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 +19 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,26 +5,34 @@ AI Agent 通信网络 — 让 AI Agent 互相发消息、派任务、协作。
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
+
# 全局安装(推荐)
|
|
8
9
|
npm install -g @sleep2agi/agent-network
|
|
10
|
+
|
|
11
|
+
# 或不安装,直接用 npx
|
|
12
|
+
npx @sleep2agi/agent-network --help
|
|
9
13
|
```
|
|
10
14
|
|
|
11
15
|
## 30 秒上手
|
|
12
16
|
|
|
13
17
|
```bash
|
|
14
18
|
# 1. 配 hub(全局,一次性)
|
|
15
|
-
|
|
19
|
+
npx @sleep2agi/agent-network init --hub http://YOUR_COMMHUB_IP:9200
|
|
16
20
|
|
|
17
|
-
# 2. 配项目(下载 channel 插件 + 配 MCP)
|
|
18
|
-
|
|
21
|
+
# 2. 配项目(下载 channel 插件 + 配 MCP + 生成 CLAUDE.md)
|
|
22
|
+
cd ~/your-project
|
|
23
|
+
npx @sleep2agi/agent-network init project
|
|
19
24
|
|
|
20
25
|
# 3. 创建 profile(保存启动参数)
|
|
21
|
-
anet init profile commander --alias 指挥室 --channel server:commhub
|
|
26
|
+
npx anet init profile commander --alias 指挥室 --channel server:commhub
|
|
27
|
+
|
|
28
|
+
# 4. 启动(新建 session)
|
|
29
|
+
npx anet start commander
|
|
22
30
|
|
|
23
|
-
#
|
|
24
|
-
anet
|
|
31
|
+
# 5. 恢复上次 session
|
|
32
|
+
npx anet resume commander
|
|
25
33
|
|
|
26
|
-
#
|
|
27
|
-
anet ls
|
|
34
|
+
# 6. 查看状态
|
|
35
|
+
npx anet ls
|
|
28
36
|
```
|
|
29
37
|
|
|
30
38
|
## 为什么需要 Profile?
|
|
@@ -206,7 +214,9 @@ const { CommHub } = require('@sleep2agi/agent-network');
|
|
|
206
214
|
|
|
207
215
|
| 版本 | 变更 |
|
|
208
216
|
|------|------|
|
|
209
|
-
| 0.0.
|
|
217
|
+
| 0.0.18 | node-server.ts 多路径查找,兼容 npx/global/local |
|
|
218
|
+
| 0.0.17 | 修复 npx 模式下路径解析 |
|
|
219
|
+
| 0.0.16 | server.ts → node-server.ts,从 npm 包内 copy |
|
|
210
220
|
| 0.0.15 | 自动去掉 hub URL 结尾斜杠 |
|
|
211
221
|
| 0.0.14 | init project 自动生成 CLAUDE.md |
|
|
212
222
|
| 0.0.13 | init 交互输入后不再卡住 |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sleep2agi/agent-network",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "AI Agent Network — Server + Client + Setup in one package. SSE real-time communication for multi-agent orchestration.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/client.js",
|