agents-bridge 0.1.37 → 0.2.0

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 (39) hide show
  1. package/.env.example +20 -20
  2. package/LICENSE +21 -21
  3. package/README.md +353 -312
  4. package/bin/agent-bridge.mjs +13 -13
  5. package/config.example.json +250 -208
  6. package/config.multi-agent.example.json +113 -113
  7. package/dist/agents/cli-backends.d.ts.map +1 -1
  8. package/dist/agents/cli-backends.js +41 -2
  9. package/dist/agents/cli-backends.js.map +1 -1
  10. package/dist/agents/cli-output.d.ts +1 -1
  11. package/dist/agents/cli-output.d.ts.map +1 -1
  12. package/dist/agents/cli-output.js +38 -6
  13. package/dist/agents/cli-output.js.map +1 -1
  14. package/dist/agents/cli-runner.d.ts.map +1 -1
  15. package/dist/agents/cli-runner.js +5 -2
  16. package/dist/agents/cli-runner.js.map +1 -1
  17. package/dist/cli/botlink-openapi.d.ts +2 -0
  18. package/dist/cli/botlink-openapi.d.ts.map +1 -1
  19. package/dist/cli/botlink-openapi.js.map +1 -1
  20. package/dist/cli/cmd-add-agent.js +1 -1
  21. package/dist/cli/cmd-add-agent.js.map +1 -1
  22. package/dist/cli/cmd-contacts.js +1 -1
  23. package/dist/cli/cmd-contacts.js.map +1 -1
  24. package/dist/cli/cmd-doctor.d.ts +2 -0
  25. package/dist/cli/cmd-doctor.d.ts.map +1 -1
  26. package/dist/cli/cmd-doctor.js +28 -33
  27. package/dist/cli/cmd-doctor.js.map +1 -1
  28. package/dist/cli/cmd-list-groups.d.ts.map +1 -1
  29. package/dist/cli/cmd-list-groups.js +3 -2
  30. package/dist/cli/cmd-list-groups.js.map +1 -1
  31. package/dist/cli/cmd-update.js +70 -70
  32. package/dist/cli/run-main.d.ts.map +1 -1
  33. package/dist/cli/run-main.js +144 -141
  34. package/dist/cli/run-main.js.map +1 -1
  35. package/dist/config/default-config.d.ts +1 -1
  36. package/dist/config/default-config.d.ts.map +1 -1
  37. package/dist/config/default-config.js +19 -0
  38. package/dist/config/default-config.js.map +1 -1
  39. package/package.json +70 -69
@@ -1,13 +1,13 @@
1
- #!/usr/bin/env node
2
-
3
- // agents-bridge CLI entry point
4
- // Used by: npm install -g agents-bridge / npx agents-bridge
5
-
6
- import { fileURLToPath } from 'node:url'
7
- import { dirname, resolve } from 'node:path'
8
- import { pathToFileURL } from 'node:url'
9
-
10
- const __dirname = dirname(fileURLToPath(import.meta.url))
11
-
12
- // Import the compiled entry point
13
- await import(pathToFileURL(resolve(__dirname, '..', 'dist', 'entry.js')).href)
1
+ #!/usr/bin/env node
2
+
3
+ // agents-bridge CLI entry point
4
+ // Used by: npm install -g agents-bridge / npx agents-bridge
5
+
6
+ import { fileURLToPath } from 'node:url'
7
+ import { dirname, resolve } from 'node:path'
8
+ import { pathToFileURL } from 'node:url'
9
+
10
+ const __dirname = dirname(fileURLToPath(import.meta.url))
11
+
12
+ // Import the compiled entry point
13
+ await import(pathToFileURL(resolve(__dirname, '..', 'dist', 'entry.js')).href)
@@ -1,208 +1,250 @@
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
+ "cursor-cli": {
180
+ "command": "cursor-agent",
181
+ "runtimeMode": "exec",
182
+ "args": [
183
+ "-p",
184
+ "--force",
185
+ "--output-format",
186
+ "stream-json"
187
+ ],
188
+ "resumeArgs": [
189
+ "-p",
190
+ "--force",
191
+ "--output-format",
192
+ "stream-json",
193
+ "--resume",
194
+ "{sessionId}"
195
+ ],
196
+ "output": "jsonl",
197
+ "resumeOutput": "jsonl",
198
+ "input": "arg",
199
+ "modelArg": "--model",
200
+ "sessionIdFields": [
201
+ "session_id",
202
+ "sessionId"
203
+ ],
204
+ "sessionMode": "existing",
205
+ "serialize": true,
206
+ "reliability": {
207
+ "watchdog": {
208
+ "fresh": {
209
+ "noOutputTimeoutRatio": 0.8,
210
+ "minMs": 180000,
211
+ "maxMs": 600000
212
+ },
213
+ "resume": {
214
+ "noOutputTimeoutRatio": 0.3,
215
+ "minMs": 60000,
216
+ "maxMs": 180000
217
+ }
218
+ }
219
+ }
220
+ }
221
+ }
222
+ },
223
+ "list": [
224
+ {
225
+ "id": "default",
226
+ "default": true
227
+ }
228
+ ]
229
+ },
230
+ "bindings": [
231
+ {
232
+ "agentId": "default",
233
+ "match": {
234
+ "channel": "*"
235
+ }
236
+ }
237
+ ],
238
+ "skills": {
239
+ "dirs": [
240
+ "./skills"
241
+ ]
242
+ },
243
+ "files": {
244
+ "temp_dir": "/tmp/agent-bridge/files",
245
+ "max_file_size": 52428800
246
+ },
247
+ "logging": {
248
+ "level": "info"
249
+ }
250
+ }