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/dist/cli/run-main.js
CHANGED
|
@@ -3,6 +3,7 @@ export function parseCliArgs(argv = process.argv.slice(2)) {
|
|
|
3
3
|
const validCommands = new Set([
|
|
4
4
|
'start', 'stop', 'status', 'onboard', 'add-agent', 'restart', 'doctor', 'logs', 'config', 'update', 'version', 'help',
|
|
5
5
|
'reload', 'list-agents', 'create-group', 'add-group-members', 'list-groups', 'list-members', 'contacts', 'send-message',
|
|
6
|
+
'list-schedules', 'create-schedule', 'update-schedule', 'delete-schedule', 'run-schedule',
|
|
6
7
|
]);
|
|
7
8
|
const normalizedArgv = argv.map(arg => (arg === '--verson' ? '--version' : arg));
|
|
8
9
|
const { values, positionals, tokens } = parseArgs({
|
|
@@ -43,6 +44,14 @@ export function parseCliArgs(argv = process.argv.slice(2)) {
|
|
|
43
44
|
'member-bot-policy': { type: 'string' },
|
|
44
45
|
text: { type: 'string' },
|
|
45
46
|
'client-message-id': { type: 'string' },
|
|
47
|
+
'schedule-id': { type: 'string' },
|
|
48
|
+
'schedule-type': { type: 'string' },
|
|
49
|
+
'rule-regex': { type: 'string' },
|
|
50
|
+
'interval-minutes': { type: 'string' },
|
|
51
|
+
'total-runs': { type: 'string' },
|
|
52
|
+
enabled: { type: 'boolean' },
|
|
53
|
+
disabled: { type: 'boolean' },
|
|
54
|
+
'allow-self-mention': { type: 'boolean', default: false },
|
|
46
55
|
'dry-run': { type: 'boolean', default: false },
|
|
47
56
|
json: { type: 'boolean', default: false },
|
|
48
57
|
},
|
|
@@ -86,6 +95,14 @@ export function parseCliArgs(argv = process.argv.slice(2)) {
|
|
|
86
95
|
'member-bot-policy',
|
|
87
96
|
'text',
|
|
88
97
|
'client-message-id',
|
|
98
|
+
'schedule-id',
|
|
99
|
+
'schedule-type',
|
|
100
|
+
'rule-regex',
|
|
101
|
+
'interval-minutes',
|
|
102
|
+
'total-runs',
|
|
103
|
+
'enabled',
|
|
104
|
+
'disabled',
|
|
105
|
+
'allow-self-mention',
|
|
89
106
|
'dry-run',
|
|
90
107
|
'json',
|
|
91
108
|
]);
|
|
@@ -155,6 +172,14 @@ export function parseCliArgs(argv = process.argv.slice(2)) {
|
|
|
155
172
|
memberBotPolicy: values['member-bot-policy'],
|
|
156
173
|
text: values.text,
|
|
157
174
|
clientMessageId: values['client-message-id'],
|
|
175
|
+
scheduleId: values['schedule-id'],
|
|
176
|
+
scheduleType: values['schedule-type'],
|
|
177
|
+
ruleRegex: values['rule-regex'],
|
|
178
|
+
intervalMinutes: values['interval-minutes'],
|
|
179
|
+
totalRuns: values['total-runs'],
|
|
180
|
+
enabled: values.enabled,
|
|
181
|
+
disabled: values.disabled,
|
|
182
|
+
allowSelfMention: Boolean(values['allow-self-mention']),
|
|
158
183
|
dryRun: Boolean(values['dry-run']),
|
|
159
184
|
json: Boolean(values.json),
|
|
160
185
|
rest,
|
|
@@ -167,128 +192,150 @@ function asStringArray(value) {
|
|
|
167
192
|
return typeof value === 'string' ? [value] : [];
|
|
168
193
|
}
|
|
169
194
|
export function printHelp() {
|
|
170
|
-
console.log(`
|
|
171
|
-
agents-bridge - Local Agent Gateway for botlink
|
|
172
|
-
|
|
173
|
-
Usage:
|
|
174
|
-
agents-bridge <command> [options]
|
|
175
|
-
|
|
176
|
-
Commands:
|
|
177
|
-
start Start the gateway (foreground by default)
|
|
178
|
-
stop Stop a running daemon
|
|
179
|
-
restart Restart the gateway
|
|
180
|
-
reload Reload config in a running daemon/process
|
|
181
|
-
status Show connection and runtime status
|
|
182
|
-
onboard Interactive setup wizard
|
|
183
|
-
add-agent Add an agent to the current config
|
|
184
|
-
list-agents List BotLink agents owned by the current BotLink user
|
|
185
|
-
create-group Create a BotLink group conversation as an authorized agent
|
|
186
|
-
add-group-members Add users or owned agents to a BotLink group
|
|
187
|
-
list-groups List
|
|
188
|
-
list-members List members visible in a BotLink group conversation
|
|
189
|
-
contacts List
|
|
190
|
-
send-message Send a text message to a BotLink conversation
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
--
|
|
209
|
-
--
|
|
210
|
-
--
|
|
211
|
-
--
|
|
212
|
-
--bot
|
|
213
|
-
--bot-
|
|
214
|
-
--
|
|
215
|
-
--
|
|
216
|
-
--
|
|
217
|
-
--bot-
|
|
218
|
-
--
|
|
219
|
-
--
|
|
220
|
-
--
|
|
221
|
-
--
|
|
222
|
-
--
|
|
223
|
-
--
|
|
224
|
-
--
|
|
225
|
-
--
|
|
226
|
-
--
|
|
227
|
-
--
|
|
228
|
-
--
|
|
229
|
-
--
|
|
230
|
-
--
|
|
231
|
-
--
|
|
232
|
-
--
|
|
233
|
-
--
|
|
234
|
-
--
|
|
235
|
-
--
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
agents-bridge
|
|
252
|
-
agents-bridge
|
|
253
|
-
agents-bridge
|
|
254
|
-
agents-bridge
|
|
255
|
-
agents-bridge
|
|
256
|
-
agents-bridge
|
|
257
|
-
agents-bridge
|
|
258
|
-
agents-bridge
|
|
259
|
-
agents-bridge
|
|
260
|
-
agents-bridge
|
|
261
|
-
agents-bridge
|
|
262
|
-
agents-bridge
|
|
263
|
-
agents-bridge
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
195
|
+
console.log(`
|
|
196
|
+
agents-bridge - Local Agent Gateway for botlink
|
|
197
|
+
|
|
198
|
+
Usage:
|
|
199
|
+
agents-bridge <command> [options]
|
|
200
|
+
|
|
201
|
+
Commands:
|
|
202
|
+
start Start the gateway (foreground by default)
|
|
203
|
+
stop Stop a running daemon
|
|
204
|
+
restart Restart the gateway
|
|
205
|
+
reload Reload config in a running daemon/process
|
|
206
|
+
status Show connection and runtime status
|
|
207
|
+
onboard Interactive setup wizard
|
|
208
|
+
add-agent Add an agent to the current config
|
|
209
|
+
list-agents List BotLink agents owned by the current BotLink user
|
|
210
|
+
create-group Create a BotLink group conversation as an authorized agent
|
|
211
|
+
add-group-members Add users or owned agents to a BotLink group
|
|
212
|
+
list-groups List all groups joined by the current guardian
|
|
213
|
+
list-members List members visible in a BotLink group conversation
|
|
214
|
+
contacts List current guardian groups and all their people/Agents
|
|
215
|
+
send-message Send a text message to a BotLink conversation
|
|
216
|
+
list-schedules List schedules owned by this agent in a BotLink conversation
|
|
217
|
+
create-schedule Create a schedule that sends as this agent
|
|
218
|
+
update-schedule Update an agent schedule
|
|
219
|
+
delete-schedule Cancel an agent schedule
|
|
220
|
+
run-schedule Run an agent schedule immediately
|
|
221
|
+
doctor Diagnose environment (network, CLI tools, API keys)
|
|
222
|
+
logs View recent logs
|
|
223
|
+
config Show current configuration
|
|
224
|
+
update Update the installed CLI
|
|
225
|
+
version Show package version
|
|
226
|
+
help Show this help
|
|
227
|
+
|
|
228
|
+
Options:
|
|
229
|
+
-c, --config <path> Path to config.json
|
|
230
|
+
-d, --daemon Run as background daemon (with 'start')
|
|
231
|
+
-h, --help Show this help
|
|
232
|
+
-v, --version Show package version
|
|
233
|
+
--account-id <id> Bind add-agent to an existing botlink account
|
|
234
|
+
--create-account <id> Create a new botlink account while adding an agent
|
|
235
|
+
--account-gateway-url <url> Gateway URL for --create-account
|
|
236
|
+
--account-bot-token <token> Bot token for --create-account
|
|
237
|
+
--create-bot Create a BotLink Agent Bot before writing local config
|
|
238
|
+
--create-bot-auth <mode> bot-token (default) or admin-token
|
|
239
|
+
--source-account-id <id> Existing account used as bot-token auth source
|
|
240
|
+
--provision-token <token> Admin provision token for --create-bot-auth admin-token
|
|
241
|
+
--owner-user-id <id> Owner user for admin-token bot creation
|
|
242
|
+
--bot-name <name> Remote Bot name for --create-bot
|
|
243
|
+
--bot-description <text> Remote Bot description
|
|
244
|
+
--bot-access-mode <mode> public, request, or private (default: private)
|
|
245
|
+
--bot-agent-type <type> worker or coordinator (default: worker)
|
|
246
|
+
--bot-agent-role <role> Agent role, e.g. operations
|
|
247
|
+
--bot-agent-capability <cap> Direct capability to grant; repeatable
|
|
248
|
+
--model <modelRef> Model ref for add-agent, e.g. codex-cli/gpt-5.5
|
|
249
|
+
--workspace <path> Workspace path for add-agent
|
|
250
|
+
--binding <channel> Binding channel for add-agent (default: botlink)
|
|
251
|
+
--default Make the added agent the default
|
|
252
|
+
--no-interactive Fail instead of prompting for missing add-agent inputs
|
|
253
|
+
--agent-id <id> Select the botlink account bound to an agent
|
|
254
|
+
--conversation-id <id> Target BotLink conversation ID
|
|
255
|
+
--group-id <id> Alias of --conversation-id
|
|
256
|
+
--chat-id <id> Telegram-compatible chat ID, resolved to conversationId before sending
|
|
257
|
+
--name <name> Group name for create-group
|
|
258
|
+
--user-id <id> User to add to a group; repeatable
|
|
259
|
+
--member-agent-id <botId> Agent/BotLink bot to add to a group; repeatable
|
|
260
|
+
--bot-id <botId> Alias of --member-agent-id
|
|
261
|
+
--member-bot-policy <policy> single_bot or multi_bot_reserved
|
|
262
|
+
--text <text> Text to send
|
|
263
|
+
--client-message-id <id> Optional idempotency key
|
|
264
|
+
--allow-self-mention Allow bridge-cli bot messages to @ the sending bot
|
|
265
|
+
--schedule-id <id> Schedule ID for update/delete/run
|
|
266
|
+
--schedule-type <type> regex or interval
|
|
267
|
+
--rule-regex <regex> Regex schedule rule, e.g. "^09:00$"
|
|
268
|
+
--interval-minutes <n> Interval schedule minutes
|
|
269
|
+
--total-runs <n> Interval total run count
|
|
270
|
+
--enabled Enable a schedule
|
|
271
|
+
--disabled Disable a schedule
|
|
272
|
+
--dry-run Validate without sending
|
|
273
|
+
--json Print raw JSON response
|
|
274
|
+
|
|
275
|
+
Examples:
|
|
276
|
+
agents-bridge start # Start in foreground
|
|
277
|
+
agents-bridge start --daemon # Start as daemon
|
|
278
|
+
agents-bridge start -c ./my-config.json # Start with custom config
|
|
279
|
+
agents-bridge restart --daemon # Restart in daemon mode
|
|
280
|
+
agents-bridge reload # Reload updated config without restart
|
|
281
|
+
agents-bridge onboard # Interactive setup
|
|
282
|
+
agents-bridge add-agent # Add a named agent
|
|
283
|
+
agents-bridge update # Update the installed CLI
|
|
284
|
+
agents-bridge add-agent --account-id office-bot
|
|
285
|
+
agents-bridge add-agent office-codex --model codex-cli/gpt-5.5 --workspace D:\\workspace\\office --account-id office-bot --no-interactive
|
|
286
|
+
agents-bridge add-agent --create-account office-bot --account-gateway-url https://botlink.example.com --account-bot-token bot_xxx
|
|
287
|
+
agents-bridge add-agent ops --create-bot --create-bot-auth admin-token --provision-token pt_xxx --owner-user-id user_xxx --bot-name "Ops Agent" --bot-agent-role operations --model codex-cli/gpt-5.5 --workspace D:\\workspace\\office --no-interactive
|
|
288
|
+
agents-bridge add-agent office-codex --create-bot --source-account-id ops --bot-name "Office Codex" --model codex-cli/gpt-5.5 --workspace D:\\workspace\\office --no-interactive
|
|
289
|
+
agents-bridge add-agent office-codex --create-bot --create-bot-auth admin-token --provision-token pt_xxx --owner-user-id user_xxx --bot-name "Office Codex" --model codex-cli/gpt-5.5 --workspace D:\\workspace\\office --no-interactive
|
|
290
|
+
agents-bridge list-agents --agent-id ops --json
|
|
291
|
+
agents-bridge create-group --agent-id ops --name "协作群"
|
|
292
|
+
agents-bridge add-group-members --agent-id ops --group-id conv_xxx --user-id user_xxx --member-agent-id bot_xxx
|
|
293
|
+
agents-bridge list-groups --json
|
|
294
|
+
agents-bridge list-groups --agent-id office-codex
|
|
295
|
+
agents-bridge list-members --agent-id office-codex --group-id conv_xxx
|
|
296
|
+
agents-bridge list-members --chat-id -100123456789 --json
|
|
297
|
+
agents-bridge contacts --agent-id office-codex --json
|
|
298
|
+
agents-bridge send-message --conversation-id conv_xxx --text "hello"
|
|
299
|
+
agents-bridge send-message --chat-id -100123456789 --text "hello"
|
|
300
|
+
agents-bridge send-message --agent-id office-codex --group-id conv_xxx --text "hello"
|
|
301
|
+
agents-bridge send-message --agent-id office-codex --group-id conv_xxx --allow-self-mention --text "@office-codex ping"
|
|
302
|
+
agents-bridge create-schedule --agent-id office-codex --group-id conv_xxx --name "早报" --rule-regex "^09:00$" --text "@office-codex 发日报"
|
|
303
|
+
agents-bridge create-schedule --agent-id office-codex --group-id conv_xxx --name "轮询" --schedule-type interval --interval-minutes 30 --total-runs 10 --text "检查进度"
|
|
304
|
+
agents-bridge update-schedule --agent-id office-codex --group-id conv_xxx --schedule-id sch_xxx --disabled
|
|
305
|
+
agents-bridge delete-schedule --agent-id office-codex --group-id conv_xxx --schedule-id sch_xxx
|
|
306
|
+
agents-bridge run-schedule --agent-id office-codex --group-id conv_xxx --schedule-id sch_xxx
|
|
307
|
+
agents-bridge doctor # Check environment
|
|
308
|
+
|
|
309
|
+
Agent workflow:
|
|
310
|
+
When a user asks to send a BotLink group message, do not ask them for conversationId first.
|
|
311
|
+
Group role/joinedAt describe the current guardian, not the calling Agent.
|
|
312
|
+
Group members include other people and their Agents; list-agents lists only your guardian's Agents.
|
|
313
|
+
Sending (including dry-run) requires the calling Agent to have joined the target group.
|
|
314
|
+
Run list-groups, choose the matching group by name/type, then pass its conversationId to send-message.
|
|
315
|
+
If multiple groups match, show the candidates and ask the user to choose one.
|
|
316
|
+
If no config.json is found, ask the user for the config path and retry with -c <path>.
|
|
317
|
+
|
|
318
|
+
Agent automation workflow:
|
|
319
|
+
Use an operations agent account for provisioning commands. A regular worker agent may be rejected by
|
|
320
|
+
the server even if the CLI accepts the command.
|
|
321
|
+
|
|
322
|
+
1. Bootstrap an operations agent with an admin provision token:
|
|
323
|
+
agents-bridge add-agent ops --create-bot --create-bot-auth admin-token --provision-token pt_xxx --owner-user-id user_xxx --bot-name "Ops Agent" --bot-agent-role operations --model codex-cli/gpt-5.5 --workspace <path> --no-interactive
|
|
324
|
+
|
|
325
|
+
2. Create worker agents through that operations agent:
|
|
326
|
+
agents-bridge add-agent worker-a --create-bot --source-account-id ops --bot-name "Worker A" --model codex-cli/gpt-5.5 --workspace <path> --no-interactive
|
|
327
|
+
|
|
328
|
+
3. Query agents owned by the current BotLink user and keep the botId values for group membership:
|
|
329
|
+
agents-bridge list-agents --agent-id ops --json
|
|
330
|
+
|
|
331
|
+
4. Create a group and keep the returned conversationId:
|
|
332
|
+
agents-bridge create-group --agent-id ops --name "协作群" --json
|
|
333
|
+
|
|
334
|
+
5. Add users and agents to that group. Use userId for people and botId/member-agent-id for agents:
|
|
335
|
+
agents-bridge add-group-members --agent-id ops --group-id <conversationId> --user-id <userId> --member-agent-id <botId> --json
|
|
336
|
+
|
|
337
|
+
6. Verify membership before continuing the collaboration:
|
|
338
|
+
agents-bridge list-members --agent-id ops --group-id <conversationId> --json
|
|
292
339
|
`.trim());
|
|
293
340
|
}
|
|
294
341
|
//# sourceMappingURL=run-main.js.map
|
package/dist/cli/run-main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-main.js","sourceRoot":"","sources":["../../src/cli/run-main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"run-main.js","sourceRoot":"","sources":["../../src/cli/run-main.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AA8ErC,MAAM,UAAU,YAAY,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACvD,MAAM,aAAa,GAAG,IAAI,GAAG,CAAU;QACrC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM;QACrH,QAAQ,EAAE,aAAa,EAAE,cAAc,EAAE,mBAAmB,EAAE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AAK,KAAK,QAAQ,CAAC,CAAA;IAC5E,CAAC;IACD,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAA;AACjD,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,OAAO,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgJb,CAAC,IAAI,EAAE,CAAC,CAAA;AACT,CAAC"}
|
package/dist/entry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry.d.ts","sourceRoot":"","sources":["../src/entry.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"entry.d.ts","sourceRoot":"","sources":["../src/entry.ts"],"names":[],"mappings":";AA4BA,OAAO,uBAAuB,CAAA"}
|
package/dist/entry.js
CHANGED
|
@@ -19,6 +19,7 @@ import { cmdAddGroupMembers } from './cli/cmd-add-group-members.js';
|
|
|
19
19
|
import { cmdListGroups } from './cli/cmd-list-groups.js';
|
|
20
20
|
import { cmdListMembers } from './cli/cmd-list-members.js';
|
|
21
21
|
import { cmdContacts } from './cli/cmd-contacts.js';
|
|
22
|
+
import { cmdCreateSchedule, cmdDeleteSchedule, cmdListSchedules, cmdRunSchedule, cmdUpdateSchedule, } from './cli/cmd-schedules.js';
|
|
22
23
|
import './channels/botlink.js';
|
|
23
24
|
async function main() {
|
|
24
25
|
let args;
|
|
@@ -69,6 +70,21 @@ async function main() {
|
|
|
69
70
|
case 'send-message':
|
|
70
71
|
await cmdSendMessage(args);
|
|
71
72
|
break;
|
|
73
|
+
case 'list-schedules':
|
|
74
|
+
await cmdListSchedules(args);
|
|
75
|
+
break;
|
|
76
|
+
case 'create-schedule':
|
|
77
|
+
await cmdCreateSchedule(args);
|
|
78
|
+
break;
|
|
79
|
+
case 'update-schedule':
|
|
80
|
+
await cmdUpdateSchedule(args);
|
|
81
|
+
break;
|
|
82
|
+
case 'delete-schedule':
|
|
83
|
+
await cmdDeleteSchedule(args);
|
|
84
|
+
break;
|
|
85
|
+
case 'run-schedule':
|
|
86
|
+
await cmdRunSchedule(args);
|
|
87
|
+
break;
|
|
72
88
|
case 'restart':
|
|
73
89
|
await cmdRestart(args);
|
|
74
90
|
break;
|
package/dist/entry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry.js","sourceRoot":"","sources":["../src/entry.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AACxD,OAAO,EAAE,cAA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Gateway for botlink platform",
|
|
5
|
-
"homepage": "http://git.51baiwang.com/sk-spec-driven/agent-bridge",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+http://git.51baiwang.com/sk-spec-driven/agent-bridge.git"
|
|
9
|
-
},
|
|
10
|
-
"bugs": {
|
|
11
|
-
"url": "http://git.51baiwang.com/sk-spec-driven/agent-bridge/issues"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [
|
|
14
|
-
"agent",
|
|
15
|
-
"bridge",
|
|
16
|
-
"gateway",
|
|
17
|
-
"cli",
|
|
18
|
-
"botlink",
|
|
19
|
-
"codex",
|
|
20
|
-
"claude"
|
|
21
|
-
],
|
|
22
|
-
"type": "module",
|
|
23
|
-
"license": "MIT",
|
|
24
|
-
"main": "dist/entry.js",
|
|
25
|
-
"bin": {
|
|
26
|
-
"agents-bridge": "bin/agent-bridge.mjs"
|
|
27
|
-
},
|
|
28
|
-
"files": [
|
|
29
|
-
"dist",
|
|
30
|
-
"!dist/**/*.test.js",
|
|
31
|
-
"!dist/**/*.test.js.map",
|
|
32
|
-
"!dist/**/*.test.d.ts",
|
|
33
|
-
"!dist/**/*.test.d.ts.map",
|
|
34
|
-
"bin",
|
|
35
|
-
"config.example.json",
|
|
36
|
-
"config.multi-agent.example.json",
|
|
37
|
-
".env.example"
|
|
38
|
-
],
|
|
39
|
-
"scripts": {
|
|
40
|
-
"build": "node ./scripts/build.mjs",
|
|
41
|
-
"dev": "tsx watch src/entry.ts",
|
|
42
|
-
"start": "node dist/entry.js start",
|
|
43
|
-
"typecheck": "tsc --noEmit",
|
|
44
|
-
"prepack": "node ./scripts/build.mjs && tsc --noEmit",
|
|
45
|
-
"prepublishOnly": "npm run prepack"
|
|
46
|
-
},
|
|
47
|
-
"workspaces": [
|
|
48
|
-
"packages/*",
|
|
49
|
-
"extensions/*"
|
|
50
|
-
],
|
|
51
|
-
"dependencies": {
|
|
52
|
-
"pino": "^9.0.0",
|
|
53
|
-
"pino-pretty": "^11.0.0",
|
|
54
|
-
"zod": "^3.24.0"
|
|
55
|
-
},
|
|
56
|
-
"devDependencies": {
|
|
57
|
-
"@types/node": "^22.0.0",
|
|
58
|
-
"tsx": "^4.21.0",
|
|
59
|
-
"typescript": "^5.9.3"
|
|
60
|
-
},
|
|
61
|
-
"engines": {
|
|
62
|
-
"node": ">=22.0.0",
|
|
63
|
-
"pnpm": ">=9.0.0"
|
|
64
|
-
},
|
|
65
|
-
"publishConfig": {
|
|
66
|
-
"registry": "https://registry.npmjs.org/"
|
|
67
|
-
},
|
|
68
|
-
"packageManager": "pnpm@10.32.1"
|
|
69
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "agents-bridge",
|
|
3
|
+
"version": "0.1.38",
|
|
4
|
+
"description": "Local Agent Gateway for botlink platform",
|
|
5
|
+
"homepage": "http://git.51baiwang.com/sk-spec-driven/agent-bridge",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+http://git.51baiwang.com/sk-spec-driven/agent-bridge.git"
|
|
9
|
+
},
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "http://git.51baiwang.com/sk-spec-driven/agent-bridge/issues"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"agent",
|
|
15
|
+
"bridge",
|
|
16
|
+
"gateway",
|
|
17
|
+
"cli",
|
|
18
|
+
"botlink",
|
|
19
|
+
"codex",
|
|
20
|
+
"claude"
|
|
21
|
+
],
|
|
22
|
+
"type": "module",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"main": "dist/entry.js",
|
|
25
|
+
"bin": {
|
|
26
|
+
"agents-bridge": "bin/agent-bridge.mjs"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist",
|
|
30
|
+
"!dist/**/*.test.js",
|
|
31
|
+
"!dist/**/*.test.js.map",
|
|
32
|
+
"!dist/**/*.test.d.ts",
|
|
33
|
+
"!dist/**/*.test.d.ts.map",
|
|
34
|
+
"bin",
|
|
35
|
+
"config.example.json",
|
|
36
|
+
"config.multi-agent.example.json",
|
|
37
|
+
".env.example"
|
|
38
|
+
],
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "node ./scripts/build.mjs",
|
|
41
|
+
"dev": "tsx watch src/entry.ts",
|
|
42
|
+
"start": "node dist/entry.js start",
|
|
43
|
+
"typecheck": "tsc --noEmit",
|
|
44
|
+
"prepack": "node ./scripts/build.mjs && tsc --noEmit",
|
|
45
|
+
"prepublishOnly": "npm run prepack"
|
|
46
|
+
},
|
|
47
|
+
"workspaces": [
|
|
48
|
+
"packages/*",
|
|
49
|
+
"extensions/*"
|
|
50
|
+
],
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"pino": "^9.0.0",
|
|
53
|
+
"pino-pretty": "^11.0.0",
|
|
54
|
+
"zod": "^3.24.0"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@types/node": "^22.0.0",
|
|
58
|
+
"tsx": "^4.21.0",
|
|
59
|
+
"typescript": "^5.9.3"
|
|
60
|
+
},
|
|
61
|
+
"engines": {
|
|
62
|
+
"node": ">=22.0.0",
|
|
63
|
+
"pnpm": ">=9.0.0"
|
|
64
|
+
},
|
|
65
|
+
"publishConfig": {
|
|
66
|
+
"registry": "https://registry.npmjs.org/"
|
|
67
|
+
},
|
|
68
|
+
"packageManager": "pnpm@10.32.1"
|
|
69
|
+
}
|