@agent-compose/sdk 0.8.4 → 0.8.5

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 (44) hide show
  1. package/dist/agent/agent-context.d.ts +9 -1
  2. package/dist/agent/agent-loop.d.ts +10 -1
  3. package/dist/client.d.ts +171 -33
  4. package/dist/directives.d.ts +14 -0
  5. package/dist/generated/verb-synopsis.d.ts +34 -0
  6. package/dist/index.d.ts +6 -4
  7. package/dist/index.js +1024 -39
  8. package/dist/runtimes/_cli-agent.d.ts +106 -0
  9. package/dist/runtimes/claude-code.d.ts +31 -1
  10. package/dist/runtimes/openai-desktop.d.ts +50 -0
  11. package/dist/runtimes/openai-desktop.js +1048 -57
  12. package/dist/runtimes/openai-desktop.test.d.ts +20 -0
  13. package/dist/runtimes/tool-pulse.test.d.ts +17 -0
  14. package/dist/sandbox/devbox.d.ts +5 -5
  15. package/dist/sandbox/registry.d.ts +12 -0
  16. package/dist/sandbox/sizes.d.ts +11 -5
  17. package/dist/sandbox.d.ts +1 -1
  18. package/dist/step-invocation/types.d.ts +1 -1
  19. package/dist/types/api-conversations.d.ts +85 -12
  20. package/dist/types/api-factory.d.ts +111 -1
  21. package/dist/types/conversation-stream.d.ts +22 -1
  22. package/dist/types/protocol.d.ts +118 -1
  23. package/dist/types/runtime.d.ts +71 -0
  24. package/package.json +1 -1
  25. package/src/agent/agent-context.ts +43 -9
  26. package/src/agent/agent-loop.ts +11 -5
  27. package/src/agent/desktop-open.ts +13 -1
  28. package/src/client.ts +256 -38
  29. package/src/directives.ts +21 -1
  30. package/src/generated/verb-synopsis.ts +544 -0
  31. package/src/index.ts +17 -3
  32. package/src/runtimes/_cli-agent.ts +313 -22
  33. package/src/runtimes/claude-code.ts +249 -12
  34. package/src/runtimes/openai-desktop.ts +82 -19
  35. package/src/sandbox/devbox.ts +5 -5
  36. package/src/sandbox/providers/e2b.ts +60 -16
  37. package/src/sandbox/registry.ts +19 -1
  38. package/src/sandbox/sizes.ts +11 -5
  39. package/src/sandbox.ts +1 -0
  40. package/src/types/api-conversations.ts +65 -13
  41. package/src/types/api-factory.ts +121 -1
  42. package/src/types/conversation-stream.ts +24 -1
  43. package/src/types/protocol.ts +113 -1
  44. package/src/types/runtime.ts +63 -0
@@ -0,0 +1,544 @@
1
+ /**
2
+ * GENERATED FILE — DO NOT EDIT.
3
+ *
4
+ * Regenerate with `cd cli && bun run generate:verbs` (the CLI build chains
5
+ * it). Source of truth: the commander registry in `cli/src/program.ts`.
6
+ * Generator: `cli/scripts/generate-verb-synopsis.ts`.
7
+ *
8
+ * This is the complete list of `agentc` verbs, shipped verbatim into every
9
+ * agent-facing context — the cloud-session system prompt
10
+ * (server/src/agent/cloud-executor.ts) and the in-sandbox platform manual
11
+ * (sdk/src/agent/agent-context.ts). It exists because a hand-maintained
12
+ * subset drifted: an agent told its owner the CLI "has no cancel verb"
13
+ * while `agentc cancel` had shipped long before. A lockstep test
14
+ * (cli/src/__tests__/verb-synopsis.test.ts) fails the build if a registered
15
+ * command is missing here, so the drift cannot recur.
16
+ */
17
+
18
+ /** One top-level verb, one subcommand level deep. `args` is a leaf verb's
19
+ * typed shape (positional args + mandatory options); subcommand entries
20
+ * carry their own signatures inline. */
21
+ export interface AgentcVerbEntry {
22
+ name: string;
23
+ aliases: readonly string[];
24
+ args: string;
25
+ description: string;
26
+ subcommands: readonly string[];
27
+ }
28
+
29
+ /** Every registered top-level verb, sorted by name. */
30
+ export const AGENTC_VERBS: readonly AgentcVerbEntry[] = [
31
+ {
32
+ "name": "auth",
33
+ "aliases": [],
34
+ "args": "",
35
+ "description": "Manage authentication",
36
+ "subcommands": [
37
+ "login <key>",
38
+ "logout",
39
+ "status"
40
+ ]
41
+ },
42
+ {
43
+ "name": "branch",
44
+ "aliases": [],
45
+ "args": "",
46
+ "description": "Session drive branches: claim/release write authority, rebase on main",
47
+ "subcommands": [
48
+ "claim <target>",
49
+ "rebase [target]",
50
+ "release [target]",
51
+ "status"
52
+ ]
53
+ },
54
+ {
55
+ "name": "bridge",
56
+ "aliases": [],
57
+ "args": "",
58
+ "description": "Connect a local coding agent (Claude Code / OpenCode) to…",
59
+ "subcommands": [
60
+ "login --agent <kind>",
61
+ "status",
62
+ "logout"
63
+ ]
64
+ },
65
+ {
66
+ "name": "calendar",
67
+ "aliases": [],
68
+ "args": "",
69
+ "description": "Check your owner's calendar",
70
+ "subcommands": []
71
+ },
72
+ {
73
+ "name": "cancel",
74
+ "aliases": [],
75
+ "args": "<run-id>",
76
+ "description": "Cancel an in-progress run",
77
+ "subcommands": []
78
+ },
79
+ {
80
+ "name": "compliance",
81
+ "aliases": [],
82
+ "args": "",
83
+ "description": "Break-glass compliance sessions",
84
+ "subcommands": [
85
+ "request --scope <kind> --reason <text> --ttl <duration>",
86
+ "approve <session-id>",
87
+ "revoke <session-id>",
88
+ "list",
89
+ "accesses <session-id>"
90
+ ]
91
+ },
92
+ {
93
+ "name": "connect",
94
+ "aliases": [],
95
+ "args": "",
96
+ "description": "Connect this machine: sign in if needed (one browser approval),…",
97
+ "subcommands": []
98
+ },
99
+ {
100
+ "name": "conv",
101
+ "aliases": [],
102
+ "args": "",
103
+ "description": "List and read conversations",
104
+ "subcommands": [
105
+ "list",
106
+ "read <conversationId>",
107
+ "post <channelId> [text]",
108
+ "members <conversationId>",
109
+ "invite <conversationId> <users...>",
110
+ "role"
111
+ ]
112
+ },
113
+ {
114
+ "name": "display",
115
+ "aliases": [],
116
+ "args": "",
117
+ "description": "Render a rich card into the conversation transcript",
118
+ "subcommands": [
119
+ "run <runId>",
120
+ "changes <runId>",
121
+ "document <drive-path>",
122
+ "plan --entries <json>",
123
+ "image <drive-path>",
124
+ "desktop",
125
+ "preview <drive-path>",
126
+ "table",
127
+ "chart --data <json> --kind <kind>",
128
+ "diff <drive-path> --from <rev> --to <rev>",
129
+ "ask --prompt <text>"
130
+ ]
131
+ },
132
+ {
133
+ "name": "events",
134
+ "aliases": [],
135
+ "args": "",
136
+ "description": "Send or list run events",
137
+ "subcommands": [
138
+ "send <run-id> <name>",
139
+ "list [run-id]"
140
+ ]
141
+ },
142
+ {
143
+ "name": "factory",
144
+ "aliases": [],
145
+ "args": "",
146
+ "description": "Manage factories",
147
+ "subcommands": [
148
+ "list",
149
+ "create <slug>",
150
+ "use <slug>",
151
+ "delete <slug>",
152
+ "show"
153
+ ]
154
+ },
155
+ {
156
+ "name": "files",
157
+ "aliases": [],
158
+ "args": "",
159
+ "description": "Read/write documents on a factory's drive",
160
+ "subcommands": [
161
+ "conflicts",
162
+ "mount [dir]",
163
+ "unmount",
164
+ "mounts",
165
+ "merge",
166
+ "flush",
167
+ "put <local-file> <drive-path>",
168
+ "ls [prefix]",
169
+ "read <drive-path>",
170
+ "write <drive-path>",
171
+ "pull <drive-path>",
172
+ "get <drive-path>"
173
+ ]
174
+ },
175
+ {
176
+ "name": "import",
177
+ "aliases": [],
178
+ "args": "",
179
+ "description": "Move a local Claude Code session into Agent Compose: history,…",
180
+ "subcommands": []
181
+ },
182
+ {
183
+ "name": "init",
184
+ "aliases": [],
185
+ "args": "",
186
+ "description": "Install agentc skills",
187
+ "subcommands": []
188
+ },
189
+ {
190
+ "name": "invoke",
191
+ "aliases": [],
192
+ "args": "[template]",
193
+ "description": "Invoke a registered workflow template or a platform default",
194
+ "subcommands": []
195
+ },
196
+ {
197
+ "name": "keys",
198
+ "aliases": [],
199
+ "args": "",
200
+ "description": "Manage API keys",
201
+ "subcommands": [
202
+ "create <name>",
203
+ "list"
204
+ ]
205
+ },
206
+ {
207
+ "name": "list",
208
+ "aliases": [],
209
+ "args": "",
210
+ "description": "List workflow templates you can invoke",
211
+ "subcommands": []
212
+ },
213
+ {
214
+ "name": "login",
215
+ "aliases": [],
216
+ "args": "",
217
+ "description": "Log in via your browser",
218
+ "subcommands": []
219
+ },
220
+ {
221
+ "name": "logout",
222
+ "aliases": [],
223
+ "args": "",
224
+ "description": "Clear this machine's browser-login credentials",
225
+ "subcommands": []
226
+ },
227
+ {
228
+ "name": "logs",
229
+ "aliases": [],
230
+ "args": "<run-id>",
231
+ "description": "Stream logs for a run",
232
+ "subcommands": []
233
+ },
234
+ {
235
+ "name": "machine",
236
+ "aliases": [],
237
+ "args": "",
238
+ "description": "Resize this session's machine",
239
+ "subcommands": [
240
+ "upsize"
241
+ ]
242
+ },
243
+ {
244
+ "name": "mail",
245
+ "aliases": [],
246
+ "args": "",
247
+ "description": "Check your owner's email",
248
+ "subcommands": [
249
+ "search [query...]",
250
+ "read <message-id>"
251
+ ]
252
+ },
253
+ {
254
+ "name": "members",
255
+ "aliases": [],
256
+ "args": "",
257
+ "description": "List teammates and flag them for attention",
258
+ "subcommands": [
259
+ "list",
260
+ "notify --user <id-or-email> --text <message>"
261
+ ]
262
+ },
263
+ {
264
+ "name": "merge",
265
+ "aliases": [],
266
+ "args": "",
267
+ "description": "Merge THIS session's own drive branch into the shared drive's…",
268
+ "subcommands": []
269
+ },
270
+ {
271
+ "name": "navigate",
272
+ "aliases": [],
273
+ "args": "<path>",
274
+ "description": "Take the user's dashboard to a page",
275
+ "subcommands": []
276
+ },
277
+ {
278
+ "name": "notify",
279
+ "aliases": [],
280
+ "args": "[need...]",
281
+ "description": "Push a non-blocking need OR FINDING to your owner's queue…",
282
+ "subcommands": []
283
+ },
284
+ {
285
+ "name": "pause",
286
+ "aliases": [],
287
+ "args": "--reason <text>",
288
+ "description": "Ask the human a question and block until they answer",
289
+ "subcommands": []
290
+ },
291
+ {
292
+ "name": "preview",
293
+ "aliases": [],
294
+ "args": "",
295
+ "description": "Expose a dev-server port on a hosted, member-gated URL",
296
+ "subcommands": [
297
+ "open|announce <port>",
298
+ "list",
299
+ "close <port>"
300
+ ]
301
+ },
302
+ {
303
+ "name": "project",
304
+ "aliases": [],
305
+ "args": "",
306
+ "description": "Create and manage projects",
307
+ "subcommands": [
308
+ "create <name>",
309
+ "list",
310
+ "show <ref>",
311
+ "delete <ref>",
312
+ "members <ref>",
313
+ "invite <ref>",
314
+ "role",
315
+ "remove-member <ref> <user>",
316
+ "leave <ref>",
317
+ "objects <ref>",
318
+ "add <ref> <objectRef>",
319
+ "refresh <ref> <sessionRef>",
320
+ "remove <ref> <objectRef>"
321
+ ]
322
+ },
323
+ {
324
+ "name": "register",
325
+ "aliases": [],
326
+ "args": "<workflow>",
327
+ "description": "Register a workflow with the server",
328
+ "subcommands": []
329
+ },
330
+ {
331
+ "name": "repos",
332
+ "aliases": [],
333
+ "args": "",
334
+ "description": "Link factory-drive directories to GitHub repositories",
335
+ "subcommands": [
336
+ "link <repoFullName> --prefix <dir>",
337
+ "links",
338
+ "unlink <linkId>",
339
+ "clone <link>",
340
+ "restore",
341
+ "setup",
342
+ "gh-token [link]",
343
+ "git-credential [op]",
344
+ "mirror <link>"
345
+ ]
346
+ },
347
+ {
348
+ "name": "review",
349
+ "aliases": [],
350
+ "args": "",
351
+ "description": "In-sandbox toolbelt for a spawned diff-review session",
352
+ "subcommands": [
353
+ "findings",
354
+ "publish --notes <file>",
355
+ "git-credential <action>",
356
+ "changes",
357
+ "file <path>"
358
+ ]
359
+ },
360
+ {
361
+ "name": "run",
362
+ "aliases": [],
363
+ "args": "",
364
+ "description": "Dispatch workflows and check run status",
365
+ "subcommands": [
366
+ "dispatch <templateName> --input <json>",
367
+ "get <runId>",
368
+ "watch <runId>",
369
+ "list",
370
+ "artifacts <runId> [path]",
371
+ "latest"
372
+ ]
373
+ },
374
+ {
375
+ "name": "schedule",
376
+ "aliases": [],
377
+ "args": "",
378
+ "description": "Manage cron schedules attached to registered workflows",
379
+ "subcommands": [
380
+ "create <name> --workflow <name> --cron <expr>",
381
+ "list",
382
+ "delete <id>"
383
+ ]
384
+ },
385
+ {
386
+ "name": "search",
387
+ "aliases": [],
388
+ "args": "<query>",
389
+ "description": "Search factory files",
390
+ "subcommands": []
391
+ },
392
+ {
393
+ "name": "secrets",
394
+ "aliases": [],
395
+ "args": "",
396
+ "description": "Manage secrets",
397
+ "subcommands": [
398
+ "set <workflow> <key> <value>",
399
+ "list <workflow>",
400
+ "delete <workflow> <key>",
401
+ "factory",
402
+ "session"
403
+ ]
404
+ },
405
+ {
406
+ "name": "services",
407
+ "aliases": [],
408
+ "args": "",
409
+ "description": "Durable services manifest",
410
+ "subcommands": [
411
+ "list",
412
+ "add <name> --command <cmd>",
413
+ "remove <name>",
414
+ "restore [names...]"
415
+ ]
416
+ },
417
+ {
418
+ "name": "session",
419
+ "aliases": [
420
+ "chat"
421
+ ],
422
+ "args": "",
423
+ "description": "Interactive terminal chat on a conversation",
424
+ "subcommands": [
425
+ "login",
426
+ "logout",
427
+ "add",
428
+ "import",
429
+ "resume <conversationId>",
430
+ "terminal <conversationId>",
431
+ "fork [conversationId]",
432
+ "share <conversationId>",
433
+ "unshare <conversationId>",
434
+ "attach <channelId> [conversationId]",
435
+ "detach <channelId> [conversationId]",
436
+ "share-file <conversationId> <path>",
437
+ "unshare-file <conversationId> <path>",
438
+ "message <target> [text]"
439
+ ]
440
+ },
441
+ {
442
+ "name": "setup",
443
+ "aliases": [],
444
+ "args": "",
445
+ "description": "Set this machine up so any agent on it can…",
446
+ "subcommands": []
447
+ },
448
+ {
449
+ "name": "share",
450
+ "aliases": [],
451
+ "args": "<ref>",
452
+ "description": "Share a drive document or a workflow template",
453
+ "subcommands": []
454
+ },
455
+ {
456
+ "name": "skills",
457
+ "aliases": [],
458
+ "args": "",
459
+ "description": "Bring your own skills: import local Claude Code skills into…",
460
+ "subcommands": [
461
+ "import",
462
+ "list",
463
+ "show <name>",
464
+ "adopt <name>",
465
+ "rm <name>",
466
+ "share <name>",
467
+ "unshare <name>"
468
+ ]
469
+ },
470
+ {
471
+ "name": "snapshot",
472
+ "aliases": [],
473
+ "args": "",
474
+ "description": "Manage captured sandbox snapshots",
475
+ "subcommands": [
476
+ "list",
477
+ "delete <run-id> [snapshot-id]",
478
+ "show <run-id>"
479
+ ]
480
+ },
481
+ {
482
+ "name": "takeover",
483
+ "aliases": [],
484
+ "args": "",
485
+ "description": "Offer the human this desktop",
486
+ "subcommands": []
487
+ },
488
+ {
489
+ "name": "thread",
490
+ "aliases": [],
491
+ "args": "",
492
+ "description": "Read this session's thread queue on your owner's board",
493
+ "subcommands": [
494
+ "progress [note...]"
495
+ ]
496
+ },
497
+ {
498
+ "name": "upgrade",
499
+ "aliases": [],
500
+ "args": "",
501
+ "description": "Update the agentc CLI to the latest published version",
502
+ "subcommands": []
503
+ },
504
+ {
505
+ "name": "usage",
506
+ "aliases": [],
507
+ "args": "",
508
+ "description": "Show billable usage",
509
+ "subcommands": []
510
+ },
511
+ {
512
+ "name": "watch",
513
+ "aliases": [],
514
+ "args": "",
515
+ "description": "Connect the claude-code session already running in this directory to…",
516
+ "subcommands": []
517
+ },
518
+ {
519
+ "name": "web",
520
+ "aliases": [],
521
+ "args": "<query...>",
522
+ "description": "Search the web",
523
+ "subcommands": []
524
+ },
525
+ {
526
+ "name": "work",
527
+ "aliases": [],
528
+ "args": "",
529
+ "description": "Hold or release this session's background-work busy lease",
530
+ "subcommands": [
531
+ "hold",
532
+ "watch --cmd <shell>",
533
+ "release"
534
+ ]
535
+ }
536
+ ] as const;
537
+
538
+ /** The rendered block: title, one framing line, then one line per verb.
539
+ * Ships verbatim in the server's cloud-session system prompt. */
540
+ export const AGENTC_VERB_SYNOPSIS = "agentc verbs — the complete list:\nGenerated from the CLI's own registry — if a verb is listed here it EXISTS on your PATH; run `agentc <verb> --help` for its flags, and never tell anyone a capability is missing without checking this list first.\n- agentc auth login <key>, logout, status — Manage authentication\n- agentc branch claim <target>, rebase [target], release [target], status — Session drive branches: claim/release write authority, rebase on main\n- agentc bridge login --agent <kind>, status, logout — Connect a local coding agent (Claude Code / OpenCode) to…\n- agentc calendar — Check your owner's calendar\n- agentc cancel <run-id> — Cancel an in-progress run\n- agentc compliance request --scope <kind> --reason <text> --ttl <duration>, approve <session-id>, revoke <session-id>, list, accesses <session-id> — Break-glass compliance sessions\n- agentc connect — Connect this machine: sign in if needed (one browser approval),…\n- agentc conv list, read <conversationId>, post <channelId> [text], members <conversationId>, invite <conversationId> <users...>, role — List and read conversations\n- agentc display run <runId>, changes <runId>, document <drive-path>, plan --entries <json>, image <drive-path>, desktop, preview <drive-path>, table, chart --data <json> --kind <kind>, diff <drive-path> --from <rev> --to <rev>, ask --prompt <text> — Render a rich card into the conversation transcript\n- agentc events send <run-id> <name>, list [run-id] — Send or list run events\n- agentc factory list, create <slug>, use <slug>, delete <slug>, show — Manage factories\n- agentc files conflicts, mount [dir], unmount, mounts, merge, flush, put <local-file> <drive-path>, ls [prefix], read <drive-path>, write <drive-path>, pull <drive-path>, get <drive-path> — Read/write documents on a factory's drive\n- agentc import — Move a local Claude Code session into Agent Compose: history,…\n- agentc init — Install agentc skills\n- agentc invoke [template] — Invoke a registered workflow template or a platform default\n- agentc keys create <name>, list — Manage API keys\n- agentc list — List workflow templates you can invoke\n- agentc login — Log in via your browser\n- agentc logout — Clear this machine's browser-login credentials\n- agentc logs <run-id> — Stream logs for a run\n- agentc machine upsize — Resize this session's machine\n- agentc mail search [query...], read <message-id> — Check your owner's email\n- agentc members list, notify --user <id-or-email> --text <message> — List teammates and flag them for attention\n- agentc merge — Merge THIS session's own drive branch into the shared drive's…\n- agentc navigate <path> — Take the user's dashboard to a page\n- agentc notify [need...] — Push a non-blocking need OR FINDING to your owner's queue…\n- agentc pause --reason <text> — Ask the human a question and block until they answer\n- agentc preview open|announce <port>, list, close <port> — Expose a dev-server port on a hosted, member-gated URL\n- agentc project create <name>, list, show <ref>, delete <ref>, members <ref>, invite <ref>, role, remove-member <ref> <user>, leave <ref>, objects <ref>, add <ref> <objectRef>, refresh <ref> <sessionRef>, remove <ref> <objectRef> — Create and manage projects\n- agentc register <workflow> — Register a workflow with the server\n- agentc repos link <repoFullName> --prefix <dir>, links, unlink <linkId>, clone <link>, restore, setup, gh-token [link], git-credential [op], mirror <link> — Link factory-drive directories to GitHub repositories\n- agentc review findings, publish --notes <file>, git-credential <action>, changes, file <path> — In-sandbox toolbelt for a spawned diff-review session\n- agentc run dispatch <templateName> --input <json>, get <runId>, watch <runId>, list, artifacts <runId> [path], latest — Dispatch workflows and check run status\n- agentc schedule create <name> --workflow <name> --cron <expr>, list, delete <id> — Manage cron schedules attached to registered workflows\n- agentc search <query> — Search factory files\n- agentc secrets set <workflow> <key> <value>, list <workflow>, delete <workflow> <key>, factory, session — Manage secrets\n- agentc services list, add <name> --command <cmd>, remove <name>, restore [names...] — Durable services manifest\n- agentc session|chat login, logout, add, import, resume <conversationId>, terminal <conversationId>, fork [conversationId], share <conversationId>, unshare <conversationId>, attach <channelId> [conversationId], detach <channelId> [conversationId], share-file <conversationId> <path>, unshare-file <conversationId> <path>, message <target> [text] — Interactive terminal chat on a conversation\n- agentc setup — Set this machine up so any agent on it can…\n- agentc share <ref> — Share a drive document or a workflow template\n- agentc skills import, list, show <name>, adopt <name>, rm <name>, share <name>, unshare <name> — Bring your own skills: import local Claude Code skills into…\n- agentc snapshot list, delete <run-id> [snapshot-id], show <run-id> — Manage captured sandbox snapshots\n- agentc takeover — Offer the human this desktop\n- agentc thread progress [note...] — Read this session's thread queue on your owner's board\n- agentc upgrade — Update the agentc CLI to the latest published version\n- agentc usage — Show billable usage\n- agentc watch — Connect the claude-code session already running in this directory to…\n- agentc web <query...> — Search the web\n- agentc work hold, watch --cmd <shell>, release — Hold or release this session's background-work busy lease";
541
+
542
+ /** The same block as a markdown `##` section — ships verbatim inside the
543
+ * in-sandbox platform manual (`AGENT_COMPOSE_MANUAL`). Same verb lines. */
544
+ export const AGENTC_VERB_SYNOPSIS_MD = "## agentc verbs — the complete list\n\nGenerated from the CLI's own registry — if a verb is listed here it EXISTS on your PATH; run `agentc <verb> --help` for its flags, and never tell anyone a capability is missing without checking this list first.\n\n- agentc auth login <key>, logout, status — Manage authentication\n- agentc branch claim <target>, rebase [target], release [target], status — Session drive branches: claim/release write authority, rebase on main\n- agentc bridge login --agent <kind>, status, logout — Connect a local coding agent (Claude Code / OpenCode) to…\n- agentc calendar — Check your owner's calendar\n- agentc cancel <run-id> — Cancel an in-progress run\n- agentc compliance request --scope <kind> --reason <text> --ttl <duration>, approve <session-id>, revoke <session-id>, list, accesses <session-id> — Break-glass compliance sessions\n- agentc connect — Connect this machine: sign in if needed (one browser approval),…\n- agentc conv list, read <conversationId>, post <channelId> [text], members <conversationId>, invite <conversationId> <users...>, role — List and read conversations\n- agentc display run <runId>, changes <runId>, document <drive-path>, plan --entries <json>, image <drive-path>, desktop, preview <drive-path>, table, chart --data <json> --kind <kind>, diff <drive-path> --from <rev> --to <rev>, ask --prompt <text> — Render a rich card into the conversation transcript\n- agentc events send <run-id> <name>, list [run-id] — Send or list run events\n- agentc factory list, create <slug>, use <slug>, delete <slug>, show — Manage factories\n- agentc files conflicts, mount [dir], unmount, mounts, merge, flush, put <local-file> <drive-path>, ls [prefix], read <drive-path>, write <drive-path>, pull <drive-path>, get <drive-path> — Read/write documents on a factory's drive\n- agentc import — Move a local Claude Code session into Agent Compose: history,…\n- agentc init — Install agentc skills\n- agentc invoke [template] — Invoke a registered workflow template or a platform default\n- agentc keys create <name>, list — Manage API keys\n- agentc list — List workflow templates you can invoke\n- agentc login — Log in via your browser\n- agentc logout — Clear this machine's browser-login credentials\n- agentc logs <run-id> — Stream logs for a run\n- agentc machine upsize — Resize this session's machine\n- agentc mail search [query...], read <message-id> — Check your owner's email\n- agentc members list, notify --user <id-or-email> --text <message> — List teammates and flag them for attention\n- agentc merge — Merge THIS session's own drive branch into the shared drive's…\n- agentc navigate <path> — Take the user's dashboard to a page\n- agentc notify [need...] — Push a non-blocking need OR FINDING to your owner's queue…\n- agentc pause --reason <text> — Ask the human a question and block until they answer\n- agentc preview open|announce <port>, list, close <port> — Expose a dev-server port on a hosted, member-gated URL\n- agentc project create <name>, list, show <ref>, delete <ref>, members <ref>, invite <ref>, role, remove-member <ref> <user>, leave <ref>, objects <ref>, add <ref> <objectRef>, refresh <ref> <sessionRef>, remove <ref> <objectRef> — Create and manage projects\n- agentc register <workflow> — Register a workflow with the server\n- agentc repos link <repoFullName> --prefix <dir>, links, unlink <linkId>, clone <link>, restore, setup, gh-token [link], git-credential [op], mirror <link> — Link factory-drive directories to GitHub repositories\n- agentc review findings, publish --notes <file>, git-credential <action>, changes, file <path> — In-sandbox toolbelt for a spawned diff-review session\n- agentc run dispatch <templateName> --input <json>, get <runId>, watch <runId>, list, artifacts <runId> [path], latest — Dispatch workflows and check run status\n- agentc schedule create <name> --workflow <name> --cron <expr>, list, delete <id> — Manage cron schedules attached to registered workflows\n- agentc search <query> — Search factory files\n- agentc secrets set <workflow> <key> <value>, list <workflow>, delete <workflow> <key>, factory, session — Manage secrets\n- agentc services list, add <name> --command <cmd>, remove <name>, restore [names...] — Durable services manifest\n- agentc session|chat login, logout, add, import, resume <conversationId>, terminal <conversationId>, fork [conversationId], share <conversationId>, unshare <conversationId>, attach <channelId> [conversationId], detach <channelId> [conversationId], share-file <conversationId> <path>, unshare-file <conversationId> <path>, message <target> [text] — Interactive terminal chat on a conversation\n- agentc setup — Set this machine up so any agent on it can…\n- agentc share <ref> — Share a drive document or a workflow template\n- agentc skills import, list, show <name>, adopt <name>, rm <name>, share <name>, unshare <name> — Bring your own skills: import local Claude Code skills into…\n- agentc snapshot list, delete <run-id> [snapshot-id], show <run-id> — Manage captured sandbox snapshots\n- agentc takeover — Offer the human this desktop\n- agentc thread progress [note...] — Read this session's thread queue on your owner's board\n- agentc upgrade — Update the agentc CLI to the latest published version\n- agentc usage — Show billable usage\n- agentc watch — Connect the claude-code session already running in this directory to…\n- agentc web <query...> — Search the web\n- agentc work hold, watch --cmd <shell>, release — Hold or release this session's background-work busy lease";
package/src/index.ts CHANGED
@@ -101,7 +101,11 @@ export type {
101
101
  AgentMessageError,
102
102
  AgentMessageUsage,
103
103
  AgentMessageTaskNotification,
104
+ AgentMessageTaskProgress,
105
+ WorkflowProgressEntry,
104
106
  AgentMessageHarnessNotice,
107
+ AgentMessageCompaction,
108
+ AgentMessageSubagentUserMessage,
105
109
  AgentStatus,
106
110
  } from "./types/protocol.js";
107
111
 
@@ -121,7 +125,7 @@ export type {
121
125
  InlineWorkflowPayload, InvokeInlineOptions, InvokeInlineAndWaitOptions,
122
126
  ListSnapshotsOptions, TemplateRow, ListTemplatesOptions,
123
127
  CreateFactoryInput, UpdateFactoryInput,
124
- SecretOptions, SetSecretResult, SecretListEntry, SessionSecretEntry, SessionSecretInput, SessionSecretRequestCreated, SessionSecretRequestStatus,
128
+ SecretOptions, SetSecretResult, SecretListEntry, SessionSecretEntry, SessionSecretInput, SessionSecretRequestCreated, SessionSecretRequestStatus, SessionSecretRequestSummary, VaultRequestKind, VaultCatalogEntry,
125
129
  CreateApiKeyInput, StreamRunLogsOptions,
126
130
  TeamMember, Mention, CreateMentionsInput,
127
131
  EventSubjectType, EventRow, ReportEventInput, ListEventsOptions, ListEventsResult,
@@ -138,6 +142,7 @@ export type {
138
142
  AnswerSteerOptions,
139
143
  ResumePauseOptions, ResumePauseResponse, ResumePauseSuccess, ResumePausePending, ResumePauseActor,
140
144
  ConversationMessagePart, ConversationRow, ConversationMessageRow,
145
+ CreateChatInput, ChannelIvyState, ProjectIvyConnection,
141
146
  ConversationsPage, ConversationDetail, ConversationThread,
142
147
  ConversationPageContext, SendConversationMessageInput, SendConversationMessageResult,
143
148
  UnnotifiedMention,
@@ -145,6 +150,7 @@ export type {
145
150
  CreateCloudSessionInput, CloudSessionCreated,
146
151
  // Cloud-session developer surface (ADR-0052)
147
152
  SessionPreview, PreviewOpened, OpenPreviewInput, SessionForked, BackgroundWorkHeld,
153
+ BackgroundWorkChildDecl, BackgroundWorkStatus,
148
154
  // Session branch proposals (ADR-0053)
149
155
  SessionFileChange, SessionChangeSet, SessionChangeStats, SessionDiffReviewBound, ReviewSuggestion,
150
156
  ReviewSuggestionInput, ReviewNotesPublished, ReviewGitCredential, SessionReviewDocument,
@@ -161,7 +167,7 @@ export type {
161
167
  SessionPerfBucket, SessionPerfHistoryPage, FactoryPerfSummary,
162
168
  FactoryFileSearchRow, FactoryFolderSearchRow, SearchFactoryFilesOptions, FactoryFileSearchResult, PublicFileLinkState,
163
169
  // Drive file listing (live + browse-at-head)
164
- FactoryFileListRow, ListFactoryFilesOptions, FactoryFileListPage,
170
+ FactoryFileListRow, ListFactoryFilesOptions, FactoryFileListPage, FactoryFileConflict, FactoryFileConflictList, ProjectSecretMeta, ProjectSecretList,
165
171
  // Membership-scoped authorization (ADR-0045)
166
172
  ConversationMemberRole, ConversationMember,
167
173
  DocumentCapability, TemplateCapability, ScopeGrant, ArtifactScope,
@@ -188,7 +194,7 @@ export {
188
194
  REVISION_SELECTOR_RE,
189
195
  ASK_DIRECTIVE_PROMPT_MAX, ASK_DIRECTIVE_MAX_OPTIONS,
190
196
  ASK_DIRECTIVE_OPTION_ID_MAX, ASK_DIRECTIVE_OPTION_LABEL_MAX,
191
- ASK_APPROVER_MIN, ASK_APPROVER_MAX,
197
+ ASK_APPROVER_MIN, ASK_APPROVER_MAX, TAKEOVER_NOTE_MAX_CHARS,
192
198
  } from "./directives.js";
193
199
  export type { CloudDirective } from "./directives.js";
194
200
 
@@ -318,6 +324,7 @@ export type { RunEvent } from "./types/events.js";
318
324
  // Sandbox providers
319
325
  export { createSandbox, reconnectSandbox, killAllSandboxes, killSandboxById,
320
326
  getSandboxQuotas, listOwnedSandboxes, deleteSandboxSnapshot, snapshotResolves,
327
+ isSandboxSourceNotFoundError,
321
328
  makeSandboxProvider, makeDesktopSandboxProvider,
322
329
  parseSseExecStream, AGENT_COMPOSE_TAG,
323
330
  SANDBOX_SIZES, SANDBOX_MACHINES, SANDBOX_VCPUS, DEFAULT_SANDBOX_SIZE, SESSION_DEFAULT_SANDBOX_SIZE,
@@ -427,6 +434,13 @@ export { agent } from "./agent/run-agent.js";
427
434
  export type { AgentOpts } from "./agent/run-agent.js";
428
435
  export { AGENT_COMPOSE_MANUAL, buildAgentContextDoc, writeAgentContext, buildAddedSessionBrief } from "./agent/agent-context.js";
429
436
  export type { AgentConnectorInfo, AddedSessionBriefParams } from "./agent/agent-context.js";
437
+ // The complete `agentc` verb list, GENERATED from the CLI's commander
438
+ // registry (cli/scripts/generate-verb-synopsis.ts) and checked in. Both
439
+ // agent-facing contexts ship it verbatim — the in-sandbox manual above and
440
+ // the server's cloud-session prompt — so a verb can never drift out of what
441
+ // agents believe the CLI can do. Never hand-edit the generated module.
442
+ export { AGENTC_VERBS, AGENTC_VERB_SYNOPSIS, AGENTC_VERB_SYNOPSIS_MD } from "./generated/verb-synopsis.js";
443
+ export type { AgentcVerbEntry } from "./generated/verb-synopsis.js";
430
444
  export {
431
445
  AC_OPEN_PATH, AC_OPEN_STATE_DIR, AC_OPEN_SHIM_PATHS, AC_OPEN_SCRIPT, AC_OPEN_SHIM,
432
446
  installDesktopOpenCmd,