agents-bridge 0.1.24 → 0.1.26
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 +16 -16
- package/config.example.json +39 -39
- package/config.multi-agent.example.json +46 -46
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
核心特点:
|
|
6
6
|
|
|
7
7
|
- 客户端主动外连,无需暴露入站端口
|
|
8
|
-
- 支持 `claude-cli/...`、`codex-cli/...`、`qwen-cli/...`、`wukong-cli/...` 这类 CLI 模型引用
|
|
8
|
+
- 支持 `claude-cli/...`、`codex-cli/...`、`qwen-cli/...`、`wukong-cli/...` 这类 CLI 模型引用
|
|
9
9
|
- 支持多 agent 配置与按绑定规则路由
|
|
10
10
|
- 提供 `onboard`、`add-agent`、`doctor`、`logs`、`config` 等运维命令
|
|
11
11
|
- 支持前台运行和守护进程模式
|
|
@@ -163,7 +163,7 @@ botlink 配置读取时兼容旧的顶层 `gateway_url` / `bot_token` 写法,
|
|
|
163
163
|
|
|
164
164
|
- `channels.botlink.accounts.<accountId>.gateway_url`:botlink 网关地址
|
|
165
165
|
- `channels.botlink.accounts.<accountId>.bot_token`:bot token
|
|
166
|
-
- `agents.defaults.model.primary`:主模型引用,例如 `claude-cli/opus-4.6`、`codex-cli/gpt-5.4`、`qwen-cli/qwen3-coder-plus` 或 `wukong-cli/wukong-coder`
|
|
166
|
+
- `agents.defaults.model.primary`:主模型引用,例如 `claude-cli/opus-4.6`、`codex-cli/gpt-5.4`、`qwen-cli/qwen3-coder-plus` 或 `wukong-cli/wukong-coder`
|
|
167
167
|
- `agents.defaults.model.fallbacks`:备用模型链
|
|
168
168
|
- `agents.defaults.cliBackends`:CLI backend 启动参数与运行模式
|
|
169
169
|
- `agents.list`:命名 agent 列表
|
|
@@ -225,20 +225,20 @@ agents-bridge add-agent --create-account office-bot --account-gateway-url https:
|
|
|
225
225
|
|
|
226
226
|
当前消息执行链路仅支持 CLI 模式模型,也就是:
|
|
227
227
|
|
|
228
|
-
- `claude-cli/...`
|
|
229
|
-
- `codex-cli/...`
|
|
230
|
-
- `qwen-cli/...`
|
|
231
|
-
- `wukong-cli/...`
|
|
232
|
-
|
|
233
|
-
配置层已经允许 `anthropic/...`、`openai/...` 这类 API provider 引用,但当前主运行时尚未实现 API 模式;若把它们设为主模型,程序会返回“当前仅支持 CLI 模式模型”。
|
|
234
|
-
|
|
235
|
-
内置 `wukong-cli` 默认按通用 JSON exec 模式启动:
|
|
236
|
-
|
|
237
|
-
```bash
|
|
238
|
-
wukong-cli --output-format json --no-color --quiet --model <model> --prompt "<prompt>"
|
|
239
|
-
```
|
|
240
|
-
|
|
241
|
-
如果本地悟空 CLI 的可执行文件不在 `PATH`,可以把 `command` 覆盖为完整路径。若参数不同,可以在 `agents.defaults.cliBackends.wukong-cli` 或单个 agent 的 `cliBackends.wukong-cli` 中覆盖 `command`、`args`、`modelArg`、`promptArg` 等字段。
|
|
228
|
+
- `claude-cli/...`
|
|
229
|
+
- `codex-cli/...`
|
|
230
|
+
- `qwen-cli/...`
|
|
231
|
+
- `wukong-cli/...`
|
|
232
|
+
|
|
233
|
+
配置层已经允许 `anthropic/...`、`openai/...` 这类 API provider 引用,但当前主运行时尚未实现 API 模式;若把它们设为主模型,程序会返回“当前仅支持 CLI 模式模型”。
|
|
234
|
+
|
|
235
|
+
内置 `wukong-cli` 默认按通用 JSON exec 模式启动:
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
wukong-cli --output-format json --no-color --quiet --model <model> --prompt "<prompt>"
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
如果本地悟空 CLI 的可执行文件不在 `PATH`,可以把 `command` 覆盖为完整路径。若参数不同,可以在 `agents.defaults.cliBackends.wukong-cli` 或单个 agent 的 `cliBackends.wukong-cli` 中覆盖 `command`、`args`、`modelArg`、`promptArg` 等字段。
|
|
242
242
|
|
|
243
243
|
## 数据目录
|
|
244
244
|
|
package/config.example.json
CHANGED
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
"sessionMode": "existing",
|
|
96
96
|
"serialize": true
|
|
97
97
|
},
|
|
98
|
-
"qwen-cli": {
|
|
99
|
-
"command": "qwen",
|
|
100
|
-
"runtimeMode": "exec",
|
|
98
|
+
"qwen-cli": {
|
|
99
|
+
"command": "qwen",
|
|
100
|
+
"runtimeMode": "exec",
|
|
101
101
|
"args": [
|
|
102
102
|
"-p",
|
|
103
103
|
"--output-format",
|
|
@@ -132,42 +132,42 @@
|
|
|
132
132
|
"noOutputTimeoutRatio": 0.3,
|
|
133
133
|
"minMs": 60000,
|
|
134
134
|
"maxMs": 180000
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
"wukong-cli": {
|
|
140
|
-
"command": "wukong-cli",
|
|
141
|
-
"runtimeMode": "exec",
|
|
142
|
-
"args": [
|
|
143
|
-
"--output-format",
|
|
144
|
-
"json",
|
|
145
|
-
"--no-color",
|
|
146
|
-
"--quiet"
|
|
147
|
-
],
|
|
148
|
-
"output": "json",
|
|
149
|
-
"input": "arg",
|
|
150
|
-
"promptArg": "--prompt",
|
|
151
|
-
"modelArg": "--model",
|
|
152
|
-
"sessionMode": "none",
|
|
153
|
-
"serialize": true,
|
|
154
|
-
"reliability": {
|
|
155
|
-
"watchdog": {
|
|
156
|
-
"fresh": {
|
|
157
|
-
"noOutputTimeoutRatio": 0.8,
|
|
158
|
-
"minMs": 180000,
|
|
159
|
-
"maxMs": 600000
|
|
160
|
-
},
|
|
161
|
-
"resume": {
|
|
162
|
-
"noOutputTimeoutRatio": 0.3,
|
|
163
|
-
"minMs": 60000,
|
|
164
|
-
"maxMs": 180000
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
},
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"wukong-cli": {
|
|
140
|
+
"command": "wukong-cli",
|
|
141
|
+
"runtimeMode": "exec",
|
|
142
|
+
"args": [
|
|
143
|
+
"--output-format",
|
|
144
|
+
"json",
|
|
145
|
+
"--no-color",
|
|
146
|
+
"--quiet"
|
|
147
|
+
],
|
|
148
|
+
"output": "json",
|
|
149
|
+
"input": "arg",
|
|
150
|
+
"promptArg": "--prompt",
|
|
151
|
+
"modelArg": "--model",
|
|
152
|
+
"sessionMode": "none",
|
|
153
|
+
"serialize": true,
|
|
154
|
+
"reliability": {
|
|
155
|
+
"watchdog": {
|
|
156
|
+
"fresh": {
|
|
157
|
+
"noOutputTimeoutRatio": 0.8,
|
|
158
|
+
"minMs": 180000,
|
|
159
|
+
"maxMs": 600000
|
|
160
|
+
},
|
|
161
|
+
"resume": {
|
|
162
|
+
"noOutputTimeoutRatio": 0.3,
|
|
163
|
+
"minMs": 60000,
|
|
164
|
+
"maxMs": 180000
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
171
|
"list": [
|
|
172
172
|
{
|
|
173
173
|
"id": "default",
|
|
@@ -16,21 +16,21 @@
|
|
|
16
16
|
"retry_interval": 5,
|
|
17
17
|
"max_retry_interval": 60
|
|
18
18
|
},
|
|
19
|
-
"qwen-bot": {
|
|
20
|
-
"gateway_url": "https://your-botlink.com",
|
|
21
|
-
"bot_token": "bot_qwen_xxx",
|
|
22
|
-
"poll_timeout": 30,
|
|
23
|
-
"retry_interval": 5,
|
|
24
|
-
"max_retry_interval": 60
|
|
25
|
-
},
|
|
26
|
-
"wukong-bot": {
|
|
27
|
-
"gateway_url": "https://your-botlink.com",
|
|
28
|
-
"bot_token": "bot_wukong_xxx",
|
|
29
|
-
"poll_timeout": 30,
|
|
30
|
-
"retry_interval": 5,
|
|
31
|
-
"max_retry_interval": 60
|
|
32
|
-
}
|
|
33
|
-
}
|
|
19
|
+
"qwen-bot": {
|
|
20
|
+
"gateway_url": "https://your-botlink.com",
|
|
21
|
+
"bot_token": "bot_qwen_xxx",
|
|
22
|
+
"poll_timeout": 30,
|
|
23
|
+
"retry_interval": 5,
|
|
24
|
+
"max_retry_interval": 60
|
|
25
|
+
},
|
|
26
|
+
"wukong-bot": {
|
|
27
|
+
"gateway_url": "https://your-botlink.com",
|
|
28
|
+
"bot_token": "bot_wukong_xxx",
|
|
29
|
+
"poll_timeout": 30,
|
|
30
|
+
"retry_interval": 5,
|
|
31
|
+
"max_retry_interval": 60
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
36
|
"agents": {
|
|
@@ -55,20 +55,20 @@
|
|
|
55
55
|
"workspace": "/workspace/app",
|
|
56
56
|
"cliSessionId": "01970df8-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
57
57
|
},
|
|
58
|
-
{
|
|
59
|
-
"id": "qwen-assistant",
|
|
60
|
-
"name": "Qwen 助理",
|
|
61
|
-
"model": "qwen-cli/qwen3-coder-plus",
|
|
62
|
-
"workspace": "/workspace/app"
|
|
63
|
-
},
|
|
64
|
-
{
|
|
65
|
-
"id": "wukong-assistant",
|
|
66
|
-
"name": "悟空 助理",
|
|
67
|
-
"model": "wukong-cli/wukong-coder",
|
|
68
|
-
"workspace": "/workspace/app"
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
},
|
|
58
|
+
{
|
|
59
|
+
"id": "qwen-assistant",
|
|
60
|
+
"name": "Qwen 助理",
|
|
61
|
+
"model": "qwen-cli/qwen3-coder-plus",
|
|
62
|
+
"workspace": "/workspace/app"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "wukong-assistant",
|
|
66
|
+
"name": "悟空 助理",
|
|
67
|
+
"model": "wukong-cli/wukong-coder",
|
|
68
|
+
"workspace": "/workspace/app"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
72
|
"bindings": [
|
|
73
73
|
{
|
|
74
74
|
"agentId": "codex-assistant",
|
|
@@ -86,23 +86,23 @@
|
|
|
86
86
|
"accountId": "claude-bot"
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
|
-
{
|
|
90
|
-
"agentId": "qwen-assistant",
|
|
91
|
-
"comment": "qwen bot",
|
|
92
|
-
"match": {
|
|
93
|
-
"channel": "botlink",
|
|
94
|
-
"accountId": "qwen-bot"
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"agentId": "wukong-assistant",
|
|
99
|
-
"comment": "wukong bot",
|
|
100
|
-
"match": {
|
|
101
|
-
"channel": "botlink",
|
|
102
|
-
"accountId": "wukong-bot"
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
],
|
|
89
|
+
{
|
|
90
|
+
"agentId": "qwen-assistant",
|
|
91
|
+
"comment": "qwen bot",
|
|
92
|
+
"match": {
|
|
93
|
+
"channel": "botlink",
|
|
94
|
+
"accountId": "qwen-bot"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"agentId": "wukong-assistant",
|
|
99
|
+
"comment": "wukong bot",
|
|
100
|
+
"match": {
|
|
101
|
+
"channel": "botlink",
|
|
102
|
+
"accountId": "wukong-bot"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
106
|
"logging": {
|
|
107
107
|
"level": "info"
|
|
108
108
|
}
|