agents-bridge 0.1.36 → 0.1.38
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/.env.example +20 -20
- package/LICENSE +21 -21
- package/README.md +312 -312
- package/bin/agent-bridge.mjs +13 -13
- package/config.example.json +208 -208
- package/config.multi-agent.example.json +113 -113
- package/dist/cli/botlink-openapi.d.ts +2 -0
- package/dist/cli/botlink-openapi.d.ts.map +1 -1
- package/dist/cli/botlink-openapi.js.map +1 -1
- package/dist/cli/cmd-contacts.js +1 -1
- package/dist/cli/cmd-contacts.js.map +1 -1
- package/dist/cli/cmd-list-groups.d.ts.map +1 -1
- package/dist/cli/cmd-list-groups.js +3 -2
- package/dist/cli/cmd-list-groups.js.map +1 -1
- package/dist/cli/cmd-schedules.d.ts +7 -0
- package/dist/cli/cmd-schedules.d.ts.map +1 -0
- package/dist/cli/cmd-schedules.js +137 -0
- package/dist/cli/cmd-schedules.js.map +1 -0
- package/dist/cli/cmd-send-message.d.ts.map +1 -1
- package/dist/cli/cmd-send-message.js +1 -0
- package/dist/cli/cmd-send-message.js.map +1 -1
- package/dist/cli/cmd-update.js +70 -70
- package/dist/cli/run-main.d.ts +9 -1
- package/dist/cli/run-main.d.ts.map +1 -1
- package/dist/cli/run-main.js +169 -122
- package/dist/cli/run-main.js.map +1 -1
- package/dist/entry.d.ts.map +1 -1
- package/dist/entry.js +16 -0
- package/dist/entry.js.map +1 -1
- package/package.json +69 -69
package/config.example.json
CHANGED
|
@@ -1,208 +1,208 @@
|
|
|
1
|
-
{
|
|
2
|
-
"channels": {
|
|
3
|
-
"botlink": {
|
|
4
|
-
"openapi_base_url": "https://your-botlink.com",
|
|
5
|
-
"poll_timeout": 30,
|
|
6
|
-
"retry_interval": 5,
|
|
7
|
-
"max_retry_interval": 60,
|
|
8
|
-
"accounts": {
|
|
9
|
-
"default": {
|
|
10
|
-
"gateway_url": "https://your-botlink.com",
|
|
11
|
-
"openapi_base_url": "https://your-botlink.com",
|
|
12
|
-
"bot_token": "bot_xxx",
|
|
13
|
-
"poll_timeout": 30,
|
|
14
|
-
"retry_interval": 5,
|
|
15
|
-
"max_retry_interval": 60
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"agents": {
|
|
21
|
-
"defaults": {
|
|
22
|
-
"model": {
|
|
23
|
-
"primary": "claude-cli/opus-4.6",
|
|
24
|
-
"fallbacks": [
|
|
25
|
-
"codex-cli/gpt-5.4"
|
|
26
|
-
]
|
|
27
|
-
},
|
|
28
|
-
"cliBackends": {
|
|
29
|
-
"claude-cli": {
|
|
30
|
-
"command": "claude",
|
|
31
|
-
"runtimeMode": "exec",
|
|
32
|
-
"args": [
|
|
33
|
-
"-p",
|
|
34
|
-
"--verbose",
|
|
35
|
-
"--output-format",
|
|
36
|
-
"stream-json",
|
|
37
|
-
"--include-partial-messages",
|
|
38
|
-
"--dangerously-skip-permissions"
|
|
39
|
-
],
|
|
40
|
-
"resumeArgs": [
|
|
41
|
-
"-p",
|
|
42
|
-
"--verbose",
|
|
43
|
-
"--output-format",
|
|
44
|
-
"stream-json",
|
|
45
|
-
"--include-partial-messages",
|
|
46
|
-
"--dangerously-skip-permissions",
|
|
47
|
-
"--resume",
|
|
48
|
-
"{sessionId}"
|
|
49
|
-
],
|
|
50
|
-
"output": "jsonl",
|
|
51
|
-
"resumeOutput": "jsonl",
|
|
52
|
-
"input": "arg",
|
|
53
|
-
"modelArg": "--model",
|
|
54
|
-
"sessionArg": "--session-id",
|
|
55
|
-
"sessionIdFields": [
|
|
56
|
-
"session_id",
|
|
57
|
-
"sessionId",
|
|
58
|
-
"conversation_id",
|
|
59
|
-
"conversationId"
|
|
60
|
-
],
|
|
61
|
-
"systemPromptArg": "--append-system-prompt",
|
|
62
|
-
"systemPromptMode": "append",
|
|
63
|
-
"systemPromptWhen": "first",
|
|
64
|
-
"clearEnv": [
|
|
65
|
-
"ANTHROPIC_API_KEY",
|
|
66
|
-
"ANTHROPIC_API_KEY_OLD"
|
|
67
|
-
],
|
|
68
|
-
"sessionMode": "always",
|
|
69
|
-
"serialize": true,
|
|
70
|
-
"reliability": {
|
|
71
|
-
"watchdog": {
|
|
72
|
-
"fresh": {
|
|
73
|
-
"noOutputTimeoutMs": 900000
|
|
74
|
-
},
|
|
75
|
-
"resume": {
|
|
76
|
-
"noOutputTimeoutMs": 900000
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"codex-cli": {
|
|
82
|
-
"command": "codex",
|
|
83
|
-
"runtimeMode": "app-server",
|
|
84
|
-
"appServer": {
|
|
85
|
-
"listen": "stdio://",
|
|
86
|
-
"startupTimeoutMs": 60000,
|
|
87
|
-
"requestTimeoutMs": 60000,
|
|
88
|
-
"serviceName": "agent-bridge",
|
|
89
|
-
"experimentalApi": false,
|
|
90
|
-
"approvalPolicy": "never",
|
|
91
|
-
"sandbox": "danger-full-access",
|
|
92
|
-
"persistExtendedHistory": false,
|
|
93
|
-
"experimentalRawEvents": false
|
|
94
|
-
},
|
|
95
|
-
"sessionMode": "existing",
|
|
96
|
-
"serialize": true,
|
|
97
|
-
"reliability": {
|
|
98
|
-
"watchdog": {
|
|
99
|
-
"fresh": {
|
|
100
|
-
"noOutputTimeoutMs": 900000
|
|
101
|
-
},
|
|
102
|
-
"resume": {
|
|
103
|
-
"noOutputTimeoutMs": 900000
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
"qwen-cli": {
|
|
109
|
-
"command": "qwen",
|
|
110
|
-
"runtimeMode": "exec",
|
|
111
|
-
"args": [
|
|
112
|
-
"-p",
|
|
113
|
-
"--output-format",
|
|
114
|
-
"json"
|
|
115
|
-
],
|
|
116
|
-
"resumeArgs": [
|
|
117
|
-
"-p",
|
|
118
|
-
"--resume",
|
|
119
|
-
"{sessionId}",
|
|
120
|
-
"--output-format",
|
|
121
|
-
"json"
|
|
122
|
-
],
|
|
123
|
-
"output": "json",
|
|
124
|
-
"resumeOutput": "json",
|
|
125
|
-
"input": "arg",
|
|
126
|
-
"modelArg": "--model",
|
|
127
|
-
"sessionArg": "--session-id",
|
|
128
|
-
"sessionIdFields": [
|
|
129
|
-
"session_id",
|
|
130
|
-
"sessionId"
|
|
131
|
-
],
|
|
132
|
-
"sessionMode": "always",
|
|
133
|
-
"serialize": true,
|
|
134
|
-
"reliability": {
|
|
135
|
-
"watchdog": {
|
|
136
|
-
"fresh": {
|
|
137
|
-
"noOutputTimeoutRatio": 0.8,
|
|
138
|
-
"minMs": 180000,
|
|
139
|
-
"maxMs": 600000
|
|
140
|
-
},
|
|
141
|
-
"resume": {
|
|
142
|
-
"noOutputTimeoutRatio": 0.3,
|
|
143
|
-
"minMs": 60000,
|
|
144
|
-
"maxMs": 180000
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
},
|
|
149
|
-
"wukong-cli": {
|
|
150
|
-
"command": "wukong-cli",
|
|
151
|
-
"runtimeMode": "exec",
|
|
152
|
-
"args": [
|
|
153
|
-
"--output-format",
|
|
154
|
-
"json",
|
|
155
|
-
"--no-color",
|
|
156
|
-
"--quiet"
|
|
157
|
-
],
|
|
158
|
-
"output": "json",
|
|
159
|
-
"input": "arg",
|
|
160
|
-
"promptArg": "--prompt",
|
|
161
|
-
"modelArg": "--model",
|
|
162
|
-
"sessionMode": "none",
|
|
163
|
-
"serialize": true,
|
|
164
|
-
"reliability": {
|
|
165
|
-
"watchdog": {
|
|
166
|
-
"fresh": {
|
|
167
|
-
"noOutputTimeoutRatio": 0.8,
|
|
168
|
-
"minMs": 180000,
|
|
169
|
-
"maxMs": 600000
|
|
170
|
-
},
|
|
171
|
-
"resume": {
|
|
172
|
-
"noOutputTimeoutRatio": 0.3,
|
|
173
|
-
"minMs": 60000,
|
|
174
|
-
"maxMs": 180000
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
"list": [
|
|
182
|
-
{
|
|
183
|
-
"id": "default",
|
|
184
|
-
"default": true
|
|
185
|
-
}
|
|
186
|
-
]
|
|
187
|
-
},
|
|
188
|
-
"bindings": [
|
|
189
|
-
{
|
|
190
|
-
"agentId": "default",
|
|
191
|
-
"match": {
|
|
192
|
-
"channel": "*"
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
],
|
|
196
|
-
"skills": {
|
|
197
|
-
"dirs": [
|
|
198
|
-
"./skills"
|
|
199
|
-
]
|
|
200
|
-
},
|
|
201
|
-
"files": {
|
|
202
|
-
"temp_dir": "/tmp/agent-bridge/files",
|
|
203
|
-
"max_file_size": 52428800
|
|
204
|
-
},
|
|
205
|
-
"logging": {
|
|
206
|
-
"level": "info"
|
|
207
|
-
}
|
|
208
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"channels": {
|
|
3
|
+
"botlink": {
|
|
4
|
+
"openapi_base_url": "https://your-botlink.com",
|
|
5
|
+
"poll_timeout": 30,
|
|
6
|
+
"retry_interval": 5,
|
|
7
|
+
"max_retry_interval": 60,
|
|
8
|
+
"accounts": {
|
|
9
|
+
"default": {
|
|
10
|
+
"gateway_url": "https://your-botlink.com",
|
|
11
|
+
"openapi_base_url": "https://your-botlink.com",
|
|
12
|
+
"bot_token": "bot_xxx",
|
|
13
|
+
"poll_timeout": 30,
|
|
14
|
+
"retry_interval": 5,
|
|
15
|
+
"max_retry_interval": 60
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"agents": {
|
|
21
|
+
"defaults": {
|
|
22
|
+
"model": {
|
|
23
|
+
"primary": "claude-cli/opus-4.6",
|
|
24
|
+
"fallbacks": [
|
|
25
|
+
"codex-cli/gpt-5.4"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"cliBackends": {
|
|
29
|
+
"claude-cli": {
|
|
30
|
+
"command": "claude",
|
|
31
|
+
"runtimeMode": "exec",
|
|
32
|
+
"args": [
|
|
33
|
+
"-p",
|
|
34
|
+
"--verbose",
|
|
35
|
+
"--output-format",
|
|
36
|
+
"stream-json",
|
|
37
|
+
"--include-partial-messages",
|
|
38
|
+
"--dangerously-skip-permissions"
|
|
39
|
+
],
|
|
40
|
+
"resumeArgs": [
|
|
41
|
+
"-p",
|
|
42
|
+
"--verbose",
|
|
43
|
+
"--output-format",
|
|
44
|
+
"stream-json",
|
|
45
|
+
"--include-partial-messages",
|
|
46
|
+
"--dangerously-skip-permissions",
|
|
47
|
+
"--resume",
|
|
48
|
+
"{sessionId}"
|
|
49
|
+
],
|
|
50
|
+
"output": "jsonl",
|
|
51
|
+
"resumeOutput": "jsonl",
|
|
52
|
+
"input": "arg",
|
|
53
|
+
"modelArg": "--model",
|
|
54
|
+
"sessionArg": "--session-id",
|
|
55
|
+
"sessionIdFields": [
|
|
56
|
+
"session_id",
|
|
57
|
+
"sessionId",
|
|
58
|
+
"conversation_id",
|
|
59
|
+
"conversationId"
|
|
60
|
+
],
|
|
61
|
+
"systemPromptArg": "--append-system-prompt",
|
|
62
|
+
"systemPromptMode": "append",
|
|
63
|
+
"systemPromptWhen": "first",
|
|
64
|
+
"clearEnv": [
|
|
65
|
+
"ANTHROPIC_API_KEY",
|
|
66
|
+
"ANTHROPIC_API_KEY_OLD"
|
|
67
|
+
],
|
|
68
|
+
"sessionMode": "always",
|
|
69
|
+
"serialize": true,
|
|
70
|
+
"reliability": {
|
|
71
|
+
"watchdog": {
|
|
72
|
+
"fresh": {
|
|
73
|
+
"noOutputTimeoutMs": 900000
|
|
74
|
+
},
|
|
75
|
+
"resume": {
|
|
76
|
+
"noOutputTimeoutMs": 900000
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"codex-cli": {
|
|
82
|
+
"command": "codex",
|
|
83
|
+
"runtimeMode": "app-server",
|
|
84
|
+
"appServer": {
|
|
85
|
+
"listen": "stdio://",
|
|
86
|
+
"startupTimeoutMs": 60000,
|
|
87
|
+
"requestTimeoutMs": 60000,
|
|
88
|
+
"serviceName": "agent-bridge",
|
|
89
|
+
"experimentalApi": false,
|
|
90
|
+
"approvalPolicy": "never",
|
|
91
|
+
"sandbox": "danger-full-access",
|
|
92
|
+
"persistExtendedHistory": false,
|
|
93
|
+
"experimentalRawEvents": false
|
|
94
|
+
},
|
|
95
|
+
"sessionMode": "existing",
|
|
96
|
+
"serialize": true,
|
|
97
|
+
"reliability": {
|
|
98
|
+
"watchdog": {
|
|
99
|
+
"fresh": {
|
|
100
|
+
"noOutputTimeoutMs": 900000
|
|
101
|
+
},
|
|
102
|
+
"resume": {
|
|
103
|
+
"noOutputTimeoutMs": 900000
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"qwen-cli": {
|
|
109
|
+
"command": "qwen",
|
|
110
|
+
"runtimeMode": "exec",
|
|
111
|
+
"args": [
|
|
112
|
+
"-p",
|
|
113
|
+
"--output-format",
|
|
114
|
+
"json"
|
|
115
|
+
],
|
|
116
|
+
"resumeArgs": [
|
|
117
|
+
"-p",
|
|
118
|
+
"--resume",
|
|
119
|
+
"{sessionId}",
|
|
120
|
+
"--output-format",
|
|
121
|
+
"json"
|
|
122
|
+
],
|
|
123
|
+
"output": "json",
|
|
124
|
+
"resumeOutput": "json",
|
|
125
|
+
"input": "arg",
|
|
126
|
+
"modelArg": "--model",
|
|
127
|
+
"sessionArg": "--session-id",
|
|
128
|
+
"sessionIdFields": [
|
|
129
|
+
"session_id",
|
|
130
|
+
"sessionId"
|
|
131
|
+
],
|
|
132
|
+
"sessionMode": "always",
|
|
133
|
+
"serialize": true,
|
|
134
|
+
"reliability": {
|
|
135
|
+
"watchdog": {
|
|
136
|
+
"fresh": {
|
|
137
|
+
"noOutputTimeoutRatio": 0.8,
|
|
138
|
+
"minMs": 180000,
|
|
139
|
+
"maxMs": 600000
|
|
140
|
+
},
|
|
141
|
+
"resume": {
|
|
142
|
+
"noOutputTimeoutRatio": 0.3,
|
|
143
|
+
"minMs": 60000,
|
|
144
|
+
"maxMs": 180000
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"wukong-cli": {
|
|
150
|
+
"command": "wukong-cli",
|
|
151
|
+
"runtimeMode": "exec",
|
|
152
|
+
"args": [
|
|
153
|
+
"--output-format",
|
|
154
|
+
"json",
|
|
155
|
+
"--no-color",
|
|
156
|
+
"--quiet"
|
|
157
|
+
],
|
|
158
|
+
"output": "json",
|
|
159
|
+
"input": "arg",
|
|
160
|
+
"promptArg": "--prompt",
|
|
161
|
+
"modelArg": "--model",
|
|
162
|
+
"sessionMode": "none",
|
|
163
|
+
"serialize": true,
|
|
164
|
+
"reliability": {
|
|
165
|
+
"watchdog": {
|
|
166
|
+
"fresh": {
|
|
167
|
+
"noOutputTimeoutRatio": 0.8,
|
|
168
|
+
"minMs": 180000,
|
|
169
|
+
"maxMs": 600000
|
|
170
|
+
},
|
|
171
|
+
"resume": {
|
|
172
|
+
"noOutputTimeoutRatio": 0.3,
|
|
173
|
+
"minMs": 60000,
|
|
174
|
+
"maxMs": 180000
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"list": [
|
|
182
|
+
{
|
|
183
|
+
"id": "default",
|
|
184
|
+
"default": true
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"bindings": [
|
|
189
|
+
{
|
|
190
|
+
"agentId": "default",
|
|
191
|
+
"match": {
|
|
192
|
+
"channel": "*"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"skills": {
|
|
197
|
+
"dirs": [
|
|
198
|
+
"./skills"
|
|
199
|
+
]
|
|
200
|
+
},
|
|
201
|
+
"files": {
|
|
202
|
+
"temp_dir": "/tmp/agent-bridge/files",
|
|
203
|
+
"max_file_size": 52428800
|
|
204
|
+
},
|
|
205
|
+
"logging": {
|
|
206
|
+
"level": "info"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
@@ -1,113 +1,113 @@
|
|
|
1
|
-
{
|
|
2
|
-
"channels": {
|
|
3
|
-
"botlink": {
|
|
4
|
-
"accounts": {
|
|
5
|
-
"codex-bot": {
|
|
6
|
-
"gateway_url": "https://your-botlink.com",
|
|
7
|
-
"openapi_base_url": "https://your-botlink.com",
|
|
8
|
-
"bot_token": "bot_codex_xxx",
|
|
9
|
-
"poll_timeout": 30,
|
|
10
|
-
"retry_interval": 5,
|
|
11
|
-
"max_retry_interval": 60
|
|
12
|
-
},
|
|
13
|
-
"claude-bot": {
|
|
14
|
-
"gateway_url": "https://your-botlink.com",
|
|
15
|
-
"openapi_base_url": "https://your-botlink.com",
|
|
16
|
-
"bot_token": "bot_claude_xxx",
|
|
17
|
-
"poll_timeout": 30,
|
|
18
|
-
"retry_interval": 5,
|
|
19
|
-
"max_retry_interval": 60
|
|
20
|
-
},
|
|
21
|
-
"qwen-bot": {
|
|
22
|
-
"gateway_url": "https://your-botlink.com",
|
|
23
|
-
"openapi_base_url": "https://your-botlink.com",
|
|
24
|
-
"bot_token": "bot_qwen_xxx",
|
|
25
|
-
"poll_timeout": 30,
|
|
26
|
-
"retry_interval": 5,
|
|
27
|
-
"max_retry_interval": 60
|
|
28
|
-
},
|
|
29
|
-
"wukong-bot": {
|
|
30
|
-
"gateway_url": "https://your-botlink.com",
|
|
31
|
-
"openapi_base_url": "https://your-botlink.com",
|
|
32
|
-
"bot_token": "bot_wukong_xxx",
|
|
33
|
-
"poll_timeout": 30,
|
|
34
|
-
"retry_interval": 5,
|
|
35
|
-
"max_retry_interval": 60
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
},
|
|
40
|
-
"agents": {
|
|
41
|
-
"defaults": {
|
|
42
|
-
"model": {
|
|
43
|
-
"primary": "claude-cli/opus-4.6"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"list": [
|
|
47
|
-
{
|
|
48
|
-
"id": "codex-assistant",
|
|
49
|
-
"default": true,
|
|
50
|
-
"name": "Codex 助理",
|
|
51
|
-
"model": "codex-cli/gpt-5.4",
|
|
52
|
-
"workspace": "/workspace/app",
|
|
53
|
-
"cliSessionId": "thread_xxxxxxxxxxxxxxxx"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
"id": "claudecode-assistant",
|
|
57
|
-
"name": "Claude Code 助理",
|
|
58
|
-
"model": "claude-cli/opus-4.6",
|
|
59
|
-
"workspace": "/workspace/app",
|
|
60
|
-
"cliSessionId": "01970df8-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"id": "qwen-assistant",
|
|
64
|
-
"name": "Qwen 助理",
|
|
65
|
-
"model": "qwen-cli/qwen3-coder-plus",
|
|
66
|
-
"workspace": "/workspace/app"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"id": "wukong-assistant",
|
|
70
|
-
"name": "悟空 助理",
|
|
71
|
-
"model": "wukong-cli/wukong-coder",
|
|
72
|
-
"workspace": "/workspace/app"
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
"bindings": [
|
|
77
|
-
{
|
|
78
|
-
"agentId": "codex-assistant",
|
|
79
|
-
"comment": "codex bot",
|
|
80
|
-
"match": {
|
|
81
|
-
"channel": "botlink",
|
|
82
|
-
"accountId": "codex-bot"
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"agentId": "claudecode-assistant",
|
|
87
|
-
"comment": "claude bot",
|
|
88
|
-
"match": {
|
|
89
|
-
"channel": "botlink",
|
|
90
|
-
"accountId": "claude-bot"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"agentId": "qwen-assistant",
|
|
95
|
-
"comment": "qwen bot",
|
|
96
|
-
"match": {
|
|
97
|
-
"channel": "botlink",
|
|
98
|
-
"accountId": "qwen-bot"
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"agentId": "wukong-assistant",
|
|
103
|
-
"comment": "wukong bot",
|
|
104
|
-
"match": {
|
|
105
|
-
"channel": "botlink",
|
|
106
|
-
"accountId": "wukong-bot"
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
],
|
|
110
|
-
"logging": {
|
|
111
|
-
"level": "info"
|
|
112
|
-
}
|
|
113
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"channels": {
|
|
3
|
+
"botlink": {
|
|
4
|
+
"accounts": {
|
|
5
|
+
"codex-bot": {
|
|
6
|
+
"gateway_url": "https://your-botlink.com",
|
|
7
|
+
"openapi_base_url": "https://your-botlink.com",
|
|
8
|
+
"bot_token": "bot_codex_xxx",
|
|
9
|
+
"poll_timeout": 30,
|
|
10
|
+
"retry_interval": 5,
|
|
11
|
+
"max_retry_interval": 60
|
|
12
|
+
},
|
|
13
|
+
"claude-bot": {
|
|
14
|
+
"gateway_url": "https://your-botlink.com",
|
|
15
|
+
"openapi_base_url": "https://your-botlink.com",
|
|
16
|
+
"bot_token": "bot_claude_xxx",
|
|
17
|
+
"poll_timeout": 30,
|
|
18
|
+
"retry_interval": 5,
|
|
19
|
+
"max_retry_interval": 60
|
|
20
|
+
},
|
|
21
|
+
"qwen-bot": {
|
|
22
|
+
"gateway_url": "https://your-botlink.com",
|
|
23
|
+
"openapi_base_url": "https://your-botlink.com",
|
|
24
|
+
"bot_token": "bot_qwen_xxx",
|
|
25
|
+
"poll_timeout": 30,
|
|
26
|
+
"retry_interval": 5,
|
|
27
|
+
"max_retry_interval": 60
|
|
28
|
+
},
|
|
29
|
+
"wukong-bot": {
|
|
30
|
+
"gateway_url": "https://your-botlink.com",
|
|
31
|
+
"openapi_base_url": "https://your-botlink.com",
|
|
32
|
+
"bot_token": "bot_wukong_xxx",
|
|
33
|
+
"poll_timeout": 30,
|
|
34
|
+
"retry_interval": 5,
|
|
35
|
+
"max_retry_interval": 60
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"agents": {
|
|
41
|
+
"defaults": {
|
|
42
|
+
"model": {
|
|
43
|
+
"primary": "claude-cli/opus-4.6"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"list": [
|
|
47
|
+
{
|
|
48
|
+
"id": "codex-assistant",
|
|
49
|
+
"default": true,
|
|
50
|
+
"name": "Codex 助理",
|
|
51
|
+
"model": "codex-cli/gpt-5.4",
|
|
52
|
+
"workspace": "/workspace/app",
|
|
53
|
+
"cliSessionId": "thread_xxxxxxxxxxxxxxxx"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "claudecode-assistant",
|
|
57
|
+
"name": "Claude Code 助理",
|
|
58
|
+
"model": "claude-cli/opus-4.6",
|
|
59
|
+
"workspace": "/workspace/app",
|
|
60
|
+
"cliSessionId": "01970df8-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "qwen-assistant",
|
|
64
|
+
"name": "Qwen 助理",
|
|
65
|
+
"model": "qwen-cli/qwen3-coder-plus",
|
|
66
|
+
"workspace": "/workspace/app"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "wukong-assistant",
|
|
70
|
+
"name": "悟空 助理",
|
|
71
|
+
"model": "wukong-cli/wukong-coder",
|
|
72
|
+
"workspace": "/workspace/app"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
75
|
+
},
|
|
76
|
+
"bindings": [
|
|
77
|
+
{
|
|
78
|
+
"agentId": "codex-assistant",
|
|
79
|
+
"comment": "codex bot",
|
|
80
|
+
"match": {
|
|
81
|
+
"channel": "botlink",
|
|
82
|
+
"accountId": "codex-bot"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"agentId": "claudecode-assistant",
|
|
87
|
+
"comment": "claude bot",
|
|
88
|
+
"match": {
|
|
89
|
+
"channel": "botlink",
|
|
90
|
+
"accountId": "claude-bot"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"agentId": "qwen-assistant",
|
|
95
|
+
"comment": "qwen bot",
|
|
96
|
+
"match": {
|
|
97
|
+
"channel": "botlink",
|
|
98
|
+
"accountId": "qwen-bot"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"agentId": "wukong-assistant",
|
|
103
|
+
"comment": "wukong bot",
|
|
104
|
+
"match": {
|
|
105
|
+
"channel": "botlink",
|
|
106
|
+
"accountId": "wukong-bot"
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"logging": {
|
|
111
|
+
"level": "info"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -9,7 +9,9 @@ export interface BotlinkGroup {
|
|
|
9
9
|
chatId?: string | number | null;
|
|
10
10
|
name?: string | null;
|
|
11
11
|
type?: string;
|
|
12
|
+
/** Current guardian membership, not the calling Agent membership. */
|
|
12
13
|
role?: string;
|
|
14
|
+
joinedAt?: string | null;
|
|
13
15
|
updatedAt?: string | null;
|
|
14
16
|
[key: string]: unknown;
|
|
15
17
|
}
|