@desplega.ai/agent-swarm 1.164.1 → 1.166.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 (328) hide show
  1. package/README.md +1 -1
  2. package/dist/acp-adapter-yzfxn8vj.js +23 -0
  3. package/dist/{actions-hp2h32dx.js → actions-qz3m692w.js} +24 -28
  4. package/dist/{amp-adapter-zfd7djyx.js → amp-adapter-j1xbmsqz.js} +7 -7
  5. package/dist/{app-w2d26h4f.js → app-43vrdmv8.js} +9 -10
  6. package/dist/{assistant-45pc4en7.js → assistant-ertffmka.js} +25 -29
  7. package/dist/{boot-reembed-k1q2s4fc.js → boot-reembed-998jtpdg.js} +12 -15
  8. package/dist/{boot-reembed-6rhcpsjf.js → boot-reembed-s7k7c6v2.js} +13 -15
  9. package/dist/boot-scrub-sweep-nepsk4t1.js +211 -0
  10. package/dist/{boot-seeds-ex93edx7.js → boot-seeds-vvzs1zhk.js} +12 -12
  11. package/dist/{claude-adapter-hcxd0szm.js → claude-adapter-2zvmekrp.js} +15 -17
  12. package/dist/{claude-managed-adapter-fz7xps2r.js → claude-managed-adapter-s49wbk8t.js} +5 -5
  13. package/dist/{claude-managed-setup-xx6f15h9.js → claude-managed-setup-cvhqq8qn.js} +4 -4
  14. package/dist/{claude-sdk-session-6nb9raem.js → claude-sdk-session-kkbxtw5q.js} +2624 -2606
  15. package/dist/{cli-etbrt8x1.js → cli-0nhdwxd5.js} +4 -4
  16. package/dist/{cli-jeefgppq.js → cli-0qjcsxgz.js} +7 -7
  17. package/dist/{cli-6behs2bt.js → cli-32bca7nr.js} +1 -1
  18. package/dist/{cli-gt8v96qx.js → cli-3ddybbbx.js} +4 -4
  19. package/dist/{acp-adapter-rxvek4ym.js → cli-3qn4r334.js} +317 -35
  20. package/dist/{cli-1d3w4xm3.js → cli-4r1sjfc4.js} +14 -6
  21. package/dist/{cli-691f2rxm.js → cli-66zh26sp.js} +68 -16
  22. package/dist/{cli-et8wdyqh.js → cli-68r1j4sg.js} +9 -9
  23. package/dist/{cli-xb7kyanp.js → cli-8kgvmkak.js} +3 -3
  24. package/dist/{cli-fdpkw8vk.js → cli-8t229cmr.js} +8 -8
  25. package/dist/{cli-gc54qc0p.js → cli-aqcey741.js} +1 -1
  26. package/dist/{cli-4q4cmr4t.js → cli-cpfmqz3n.js} +8 -8
  27. package/dist/{cli-a9bw0xxt.js → cli-df56tqdw.js} +997 -408
  28. package/dist/{cli-n7h1kqpf.js → cli-dmtrxqhg.js} +6 -1
  29. package/dist/{cli-xfb7333f.js → cli-dw2q9f7g.js} +5 -5
  30. package/dist/{cli-4drstbb9.js → cli-ecknp7p1.js} +81 -23
  31. package/dist/{cli-v0pvvhfq.js → cli-efnd2kce.js} +36 -1
  32. package/dist/{cli-1wetf34q.js → cli-f2n17zhp.js} +1 -1
  33. package/dist/{cli-2c8eky5y.js → cli-feh3dkah.js} +1 -1
  34. package/dist/cli-fn697bnt.js +126 -0
  35. package/dist/{cli-v5pr2fgt.js → cli-gt8azyet.js} +3 -3
  36. package/dist/{cli-dbszf3rw.js → cli-h3x613ze.js} +4 -4
  37. package/dist/{cli-nwhb8y2e.js → cli-hf5s9pgf.js} +1 -1
  38. package/dist/cli-j2jbr8af.js +516 -0
  39. package/dist/{cli-agjzafns.js → cli-jhm6hzjn.js} +593 -10
  40. package/dist/{cli-j0tmc908.js → cli-jvj6a0cv.js} +484 -477
  41. package/dist/{cli-xxz89c2n.js → cli-mb75wpxf.js} +1 -1
  42. package/dist/{cli-07s39g1n.js → cli-mv2520nm.js} +1 -1
  43. package/dist/{cli-v90vfwyb.js → cli-mwegs4af.js} +5 -5
  44. package/dist/{cli-bz1gbac9.js → cli-p4ztb80h.js} +2 -2
  45. package/dist/{cli-1wd1n2ya.js → cli-rfphkzh5.js} +1 -1
  46. package/dist/{cli-976r1zqx.js → cli-rggdq8wq.js} +5 -5
  47. package/dist/{cli-3ajw5v5v.js → cli-rsy933yz.js} +6 -6
  48. package/dist/{cli-yj790e19.js → cli-tadfgd0t.js} +8 -1
  49. package/dist/{cli-cn53e7vc.js → cli-ttbsse3f.js} +6 -1
  50. package/dist/{cli-dyqsrqcf.js → cli-v2a8x45d.js} +4 -4
  51. package/dist/{cli-wbvnn6tk.js → cli-v6vv7dy8.js} +91 -9
  52. package/dist/{cli-z2ap2c0c.js → cli-vzc73wet.js} +90 -55
  53. package/dist/cli-wt7ccy4r.js +2654 -0
  54. package/dist/{cli-4cn19jvn.js → cli-x7kpr72a.js} +3 -3
  55. package/dist/{cli-003785v9.js → cli-xvc3q9br.js} +1 -1
  56. package/dist/{cli-v0e7jpr5.js → cli-xvdgasgy.js} +13 -4
  57. package/dist/{cli-asqeg4ve.js → cli-y59h2pk9.js} +2 -2
  58. package/dist/{cli-0wn3ypqv.js → cli-yshaazs1.js} +14121 -3478
  59. package/dist/{cli-wg8yjqtw.js → cli-ysnyhws9.js} +16 -3
  60. package/dist/cli-zp67qg5x.js +92 -0
  61. package/dist/{cli-g3qgrzck.js → cli-zsh093hk.js} +71 -3
  62. package/dist/{cli-ma3zvh39.js → cli-zy7vwsne.js} +6066 -5829
  63. package/dist/cli.js +79 -26
  64. package/dist/{codex-adapter-pcxdn10v.js → codex-adapter-dw1wxqt8.js} +10 -10
  65. package/dist/{codex-hook-b1fb7c2k.js → codex-hook-d2rkvf39.js} +1 -1
  66. package/dist/{codex-login-059nm145.js → codex-login-terbdsqq.js} +2 -2
  67. package/dist/{codex-session-runner-xzwwddp8.js → codex-session-runner-3cgb8y1g.js} +10 -10
  68. package/dist/{commands-98at8mkn.js → commands-mhxam6z2.js} +9 -9
  69. package/dist/{cursor-adapter-dkg6qnkp.js → cursor-adapter-2qda3st7.js} +6 -6
  70. package/dist/{db-01g8wtvw.js → db-sjks418k.js} +11 -9
  71. package/dist/{devin-adapter-qmttt2fz.js → devin-adapter-bffjj5n4.js} +2 -2
  72. package/dist/{dispatcher-nn2k1wxd.js → dispatcher-1es759rn.js} +22 -26
  73. package/dist/{dsh-adapter-w4d4vwdq.js → dsh-adapter-bek4cyw9.js} +6 -6
  74. package/dist/{e2b-9e4g2hvt.js → e2b-nd50eccg.js} +1 -1
  75. package/dist/{event-bus-z7v2t26e.js → event-bus-vnfthafg.js} +2 -2
  76. package/dist/grok-adapter-ar9cw9jg.js +29 -0
  77. package/dist/{handlers-b0kqsbg8.js → handlers-1gkbhktr.js} +25 -29
  78. package/dist/{hook-sap7v1aj.js → hook-ds2zxq9v.js} +16 -18
  79. package/dist/{hook-pz50gqep.js → hook-vxa3tcsy.js} +10 -12
  80. package/dist/{http-ncr8rmd0.js → http-3h21z9md.js} +679 -227
  81. package/dist/{index-c4aqcyz1.js → index-9b65j1m5.js} +11 -11
  82. package/dist/{index-r46s01nq.js → index-bn6cy8ps.js} +22 -26
  83. package/dist/{index-38kqdt3e.js → index-dkfxpkmm.js} +23 -27
  84. package/dist/{index-630kj5vd.js → index-f8xnqrye.js} +55 -43
  85. package/dist/{index-fdk1t4d6.js → index-n0rxa4ca.js} +11962 -9900
  86. package/dist/{index-9nrj7797.js → index-n99fycq7.js} +22 -26
  87. package/dist/{keepalive-31613r2h.js → keepalive-3xspa9jw.js} +14 -11
  88. package/dist/{lead-mx59tr5s.js → lead-6qphc124.js} +43 -43
  89. package/dist/{maintenance-55ff39ca.js → maintenance-0teem1bb.js} +10 -12
  90. package/dist/{node-f0ykebbv.js → node-9sg7ajby.js} +25 -7
  91. package/dist/{oauth-refresh-sweep-anma954w.js → oauth-refresh-sweep-sh9q25xp.js} +13 -10
  92. package/dist/{onboard-b2fy8ftb.js → onboard-54qmnqxe.js} +4 -3
  93. package/dist/{opencode-adapter-p1s92tmy.js → opencode-adapter-wjfa2wvd.js} +6 -6
  94. package/dist/{otel-impl-9brvt7xv.js → otel-impl-ycqzp2a1.js} +2 -2
  95. package/dist/{pi-mono-adapter-kz4rrwvd.js → pi-mono-adapter-e77e9zst.js} +6 -6
  96. package/dist/{pricing-refresh-7w8mbmva.js → pricing-refresh-atnkngqs.js} +10 -10
  97. package/dist/{rbac-roles-ejp7qwvb.js → rbac-roles-9pjphh9q.js} +10 -10
  98. package/dist/{rbac-roles-nhk4r7bc.js → rbac-roles-j78wdksm.js} +10 -10
  99. package/dist/{render-v2-2gzt8skq.js → render-v2-pxjs49fx.js} +9 -10
  100. package/dist/{setup-5et8t412.js → setup-ymej0xtx.js} +2 -2
  101. package/dist/{work-objects-tb0er7qa.js → work-objects-3nh4ymzb.js} +26 -30
  102. package/dist/{worker-62cv075d.js → worker-qa9fkz5s.js} +43 -43
  103. package/dist/{x-vbxb31jr.js → x-ma4gnfgy.js} +2 -2
  104. package/openapi.json +457 -31
  105. package/package.json +14 -6
  106. package/plugin/commands/create-pr.md +7 -1
  107. package/plugin/pi-skills/create-pr/SKILL.md +7 -1
  108. package/src/agentmail/app.ts +5 -4
  109. package/src/be/automation-preflight.ts +11 -9
  110. package/src/be/boot-scrub-sweep.ts +302 -0
  111. package/src/be/connector-codes.ts +81 -0
  112. package/src/be/crypto/key-bootstrap.ts +1 -1
  113. package/src/be/db/approvals.ts +15 -1
  114. package/src/be/db/codex-oauth-device-flows.ts +40 -0
  115. package/src/be/db/config-secrets.ts +31 -0
  116. package/src/be/db/runtime.ts +4 -0
  117. package/src/be/db/script-runs.ts +15 -0
  118. package/src/be/db/tasks/write.ts +1 -1
  119. package/src/be/db-queries/mcp-oauth.ts +5 -0
  120. package/src/be/db-queries/oauth.ts +77 -0
  121. package/src/be/db.ts +162 -59
  122. package/src/be/events.ts +17 -1
  123. package/src/be/memory/index-content.ts +2 -2
  124. package/src/be/memory/providers/sqlite-store.ts +63 -11
  125. package/src/be/memory/types.ts +14 -0
  126. package/src/be/migrations/197_connector_codes.sql +23 -0
  127. package/src/be/migrations/198_permission_audit_guest.sql +33 -0
  128. package/src/be/migrations/200_backfill_auto_memory_expiry.sql +20 -0
  129. package/src/be/migrations/201_workflow_replay_columns.sql +10 -0
  130. package/src/be/migrations/202_codex_oauth_device_flows.sql +24 -0
  131. package/src/be/model-tier-resolution.ts +2 -1
  132. package/src/be/model-validation.ts +1 -1
  133. package/src/be/pricing-normalize.ts +3 -0
  134. package/src/be/rbac-audit.ts +2 -1
  135. package/src/be/scripts/db.ts +28 -4
  136. package/src/be/scripts/source-secrets.ts +37 -0
  137. package/src/be/scripts/typecheck.ts +23 -2
  138. package/src/be/scrub-json.ts +32 -0
  139. package/src/be/sealed-json.ts +59 -0
  140. package/src/be/secret-registry.ts +131 -0
  141. package/src/be/seed-pricing.ts +14 -0
  142. package/src/be/users.ts +7 -1
  143. package/src/be/workflow-replay.ts +77 -0
  144. package/src/cli.tsx +7 -0
  145. package/src/commands/provider-credentials.ts +46 -8
  146. package/src/commands/runner.ts +2 -10
  147. package/src/extensions/contract-types.generated.ts +1 -1
  148. package/src/github/app.ts +4 -4
  149. package/src/heartbeat/heartbeat.ts +20 -8
  150. package/src/hooks/pr-body-guard.ts +1 -1
  151. package/src/http/agents.ts +1 -0
  152. package/src/http/approval-requests.ts +1 -0
  153. package/src/http/apps.ts +3 -0
  154. package/src/http/auth.ts +4 -1
  155. package/src/http/codex-oauth-device.ts +8 -10
  156. package/src/http/codex-oauth-keep-warm.ts +2 -2
  157. package/src/http/config-values.ts +59 -0
  158. package/src/http/config.ts +5 -0
  159. package/src/http/db-query-bounded.ts +3 -0
  160. package/src/http/db-query-shared.ts +107 -15
  161. package/src/http/db-query.ts +10 -2
  162. package/src/http/extensions.ts +1 -0
  163. package/src/http/index.ts +23 -6
  164. package/src/http/integrations.ts +1 -38
  165. package/src/http/ip-rate-limit.ts +82 -0
  166. package/src/http/kv.ts +38 -4
  167. package/src/http/mcp-servers.ts +1 -0
  168. package/src/http/memory.ts +9 -0
  169. package/src/http/models-catalog.ts +2 -0
  170. package/src/http/operator-actor.ts +4 -0
  171. package/src/http/page-proxy.ts +22 -0
  172. package/src/http/pages.ts +4 -2
  173. package/src/http/realtime.ts +1 -1
  174. package/src/http/request-principal.ts +14 -1
  175. package/src/http/script-connections.ts +8 -0
  176. package/src/http/script-runs.ts +12 -4
  177. package/src/http/scripts.ts +15 -0
  178. package/src/http/session-cost-recompute.ts +3 -2
  179. package/src/http/tasks.ts +9 -0
  180. package/src/http/users.ts +226 -0
  181. package/src/http/workflows.ts +3 -2
  182. package/src/http.ts +1 -0
  183. package/src/integrations/kapso/client.ts +3 -1
  184. package/src/jira/app.ts +2 -2
  185. package/src/kv-view.ts +324 -0
  186. package/src/linear/app.ts +2 -2
  187. package/src/oauth/mcp-wrapper.ts +1 -1
  188. package/src/prompts/memories.ts +42 -1
  189. package/src/providers/acp-adapter.ts +85 -24
  190. package/src/providers/acp-target-catalog.ts +54 -1
  191. package/src/providers/acp-targets.ts +358 -4
  192. package/src/providers/amp-adapter.ts +1 -1
  193. package/src/providers/cursor-adapter.ts +1 -1
  194. package/src/providers/grok-adapter.ts +186 -0
  195. package/src/providers/index.ts +5 -1
  196. package/src/providers/pricing-sources.md +6 -0
  197. package/src/providers/reasoning-effort.ts +17 -1
  198. package/src/providers/types.ts +2 -1
  199. package/src/rbac/can.ts +4 -3
  200. package/src/rbac/legacy-policy.ts +3 -3
  201. package/src/rbac/types.ts +6 -0
  202. package/src/script-workflows/supervisor.ts +11 -2
  203. package/src/scripts-runtime/eval-harness.ts +2 -12
  204. package/src/scripts-runtime/executors/quickjs-bundle.ts +152 -0
  205. package/src/scripts-runtime/executors/quickjs-prelude.ts +285 -0
  206. package/src/scripts-runtime/executors/quickjs-runner.ts +580 -0
  207. package/src/scripts-runtime/executors/quickjs-worker.ts +81 -0
  208. package/src/scripts-runtime/executors/quickjs.ts +196 -0
  209. package/src/scripts-runtime/executors/registry.ts +2 -0
  210. package/src/scripts-runtime/executors/sourcemap.ts +79 -0
  211. package/src/scripts-runtime/script-error-hints.ts +14 -0
  212. package/src/scripts-runtime/swarm-sdk.ts +9 -2
  213. package/src/scripts-runtime/types/stdlib.d.ts +27 -8
  214. package/src/scripts-runtime/types/swarm-extension.d.ts +3 -0
  215. package/src/scripts-runtime/types/swarm-sdk.d.ts +27 -8
  216. package/src/server-user.ts +2 -20
  217. package/src/server.ts +3 -1
  218. package/src/slack/app.ts +4 -0
  219. package/src/slack/config.ts +3 -1
  220. package/src/slack/egress-scrub.ts +87 -0
  221. package/src/tests/acp-adapter.test.ts +191 -2
  222. package/src/tests/boot-scrub-sweep.test.ts +390 -0
  223. package/src/tests/budget-user-scope.test.ts +7 -21
  224. package/src/tests/check-pr-body.test.ts +149 -6
  225. package/src/tests/check-text-columns.test.ts +145 -0
  226. package/src/tests/claude-adapter-binary.test.ts +1 -1
  227. package/src/tests/claude-sdk-process.fixture.ts +13 -2
  228. package/src/tests/codex-oauth-device.test.ts +23 -37
  229. package/src/tests/codex-oauth-keep-warm.test.ts +29 -0
  230. package/src/tests/console-scrub.test.ts +141 -0
  231. package/src/tests/credential-check.test.ts +90 -0
  232. package/src/tests/db-query-denylist.test.ts +202 -0
  233. package/src/tests/db-task-read-contract.test.ts +1 -0
  234. package/src/tests/db-task-write-contract.test.ts +1 -0
  235. package/src/tests/docs-index-footprint.test.js +3 -3
  236. package/src/tests/entrypoint-acp-target-binary.test.ts +44 -1
  237. package/src/tests/events-scrub.test.ts +88 -0
  238. package/src/tests/explicit-model-validation.test.ts +81 -0
  239. package/src/tests/extensions-pre-task.test.ts +33 -1
  240. package/src/tests/fixtures/grok/acp-updates-recorded.jsonl +53 -0
  241. package/src/tests/fixtures/grok/prompt-response-meta.json +36 -0
  242. package/src/tests/fixtures/secret-corpus.ts +320 -0
  243. package/src/tests/grok-adapter.test.ts +647 -0
  244. package/src/tests/heartbeat-checklist.test.ts +44 -0
  245. package/src/tests/integration-disable-flags.test.ts +156 -0
  246. package/src/tests/kv-http.test.ts +34 -0
  247. package/src/tests/kv-tool.test.ts +274 -1
  248. package/src/tests/kv-view.test.ts +147 -0
  249. package/src/tests/mcp-user-route.test.ts +257 -15
  250. package/src/tests/memory-injection-outcome.test.ts +143 -0
  251. package/src/tests/model-tier-resolution.test.ts +76 -3
  252. package/src/tests/page-guest-session.test.ts +424 -0
  253. package/src/tests/page-proxy.test.ts +1 -1
  254. package/src/tests/page-viewer-auth.test.ts +22 -1
  255. package/src/tests/pr-body-leaks.test.ts +157 -2
  256. package/src/tests/preload.ts +10 -0
  257. package/src/tests/provider-registration.test.ts +3 -1
  258. package/src/tests/rbac-audit.test.ts +32 -0
  259. package/src/tests/rbac-mcp-admission-e2e.test.ts +4 -62
  260. package/src/tests/script-connections.test.ts +9 -0
  261. package/src/tests/script-executor-conformance.test.ts +3 -0
  262. package/src/tests/script-executor-quickjs.test.ts +442 -0
  263. package/src/tests/script-executor-registry.test.ts +6 -1
  264. package/src/tests/script-runs-http.test.ts +126 -1
  265. package/src/tests/script-runs-scrub.test.ts +275 -0
  266. package/src/tests/scripts-http.test.ts +82 -1
  267. package/src/tests/scripts-mcp-e2e.test.ts +42 -6
  268. package/src/tests/scripts-runtime.test.ts +37 -0
  269. package/src/tests/scrubbed-text-12e.test.ts +289 -0
  270. package/src/tests/sealed-key-guard.test.ts +166 -0
  271. package/src/tests/secret-canary-sweep.test.ts +958 -0
  272. package/src/tests/secret-registry.test.ts +355 -0
  273. package/src/tests/secret-rules.test.ts +230 -0
  274. package/src/tests/secret-scrubber.test.ts +317 -1
  275. package/src/tests/session-costs-golden.test.ts +17 -0
  276. package/src/tests/slack-egress-scrub.test.ts +216 -0
  277. package/src/tests/swarm-tool-result-gate.test.ts +143 -30
  278. package/src/tests/task-tools-ctx.test.ts +3 -0
  279. package/src/tests/user-token-routes.test.ts +342 -3
  280. package/src/tests/workflow-replay.test.ts +518 -0
  281. package/src/tests/workflow-scrub.test.ts +242 -0
  282. package/src/tests/workflow-system-one-decision-providers.test.ts +737 -0
  283. package/src/tools/db-query.ts +1 -1
  284. package/src/tools/inject-learning.ts +1 -1
  285. package/src/tools/kv/kv-get.ts +136 -6
  286. package/src/tools/send-task.ts +61 -17
  287. package/src/tools/utils.ts +186 -43
  288. package/src/tools/workflows/get-workflow-run.ts +3 -2
  289. package/src/types.ts +16 -1
  290. package/src/utils/console-scrub-install.ts +5 -0
  291. package/src/utils/console-scrub.ts +57 -0
  292. package/src/utils/credentials.ts +8 -0
  293. package/src/utils/page-session.ts +6 -2
  294. package/src/utils/pr-body-leaks.ts +149 -10
  295. package/src/utils/request-auth-context.ts +2 -0
  296. package/src/utils/secret-rules.generated.ts +2055 -0
  297. package/src/utils/secret-scrubber.ts +662 -36
  298. package/src/workflows/engine.ts +39 -4
  299. package/src/workflows/executors/notify.ts +6 -1
  300. package/src/workflows/executors/system-one-decision.ts +31 -12
  301. package/src/workflows/executors/system-one-openai-wire.ts +168 -0
  302. package/src/workflows/executors/system-one-providers.ts +112 -11
  303. package/src/workflows/executors/system-one-wire.ts +79 -0
  304. package/src/workflows/recovery.ts +10 -1
  305. package/src/workflows/resume.ts +62 -3
  306. package/src/workflows/retry-poller.ts +3 -0
  307. package/templates/ai-toolbox.manifest.json +2 -2
  308. package/templates/skills/agent-browser/SKILL.md +5 -5
  309. package/templates/skills/agent-browser/config.json +1 -1
  310. package/templates/skills/agent-browser/content.md +4 -4
  311. package/templates/skills/artifacts/content.md +17 -7
  312. package/templates/skills/jira-interaction/config.json +1 -1
  313. package/templates/skills/jira-interaction/content.md +56 -205
  314. package/templates/skills/linear-interaction/config.json +1 -1
  315. package/templates/skills/linear-interaction/content.md +31 -50
  316. package/templates/skills/pages/content.md +8 -4
  317. package/templates/skills/qa/content.md +2 -2
  318. package/templates/skills/workflow-iterate/content.md +4 -4
  319. package/tsconfig.json +3 -3
  320. package/dist/boot-scrub-logs-t8xg7wd7.js +0 -99
  321. package/dist/cli-0a7r5331.js +0 -168
  322. package/dist/cli-93rxw9yd.js +0 -951
  323. package/dist/cli-cvk6yzw5.js +0 -40
  324. package/dist/cli-dgnj0zcc.js +0 -40
  325. package/dist/cli-qt5wzq6v.js +0 -256
  326. package/dist/cli-v7fqehqd.js +0 -9281
  327. package/dist/cli-vbr859rz.js +0 -572
  328. package/src/be/boot-scrub-logs.ts +0 -132
package/openapi.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "Agent Swarm API",
5
- "version": "1.164.1",
5
+ "version": "1.166.0",
6
6
  "description": "Multi-agent orchestration API for Claude Code, Codex, and Gemini CLI. Enables task distribution, agent communication, and service discovery.\n\nMCP tools are documented separately in [MCP.md](./MCP.md)."
7
7
  },
8
8
  "servers": [
@@ -448,7 +448,8 @@
448
448
  "acp",
449
449
  "dsh",
450
450
  "amp",
451
- "cursor"
451
+ "cursor",
452
+ "grok"
452
453
  ]
453
454
  },
454
455
  "providerMeta": {
@@ -521,7 +522,8 @@
521
522
  "acp",
522
523
  "dsh",
523
524
  "amp",
524
- "cursor"
525
+ "cursor",
526
+ "grok"
525
527
  ]
526
528
  },
527
529
  "capabilities": {
@@ -671,6 +673,7 @@
671
673
  "dsh",
672
674
  "amp",
673
675
  "cursor",
676
+ "grok",
674
677
  null
675
678
  ],
676
679
  "default": null
@@ -752,6 +755,8 @@
752
755
  "type": "string",
753
756
  "enum": [
754
757
  "opencode",
758
+ "gemini",
759
+ "copilot",
755
760
  "custom"
756
761
  ]
757
762
  },
@@ -1004,7 +1009,8 @@
1004
1009
  "acp",
1005
1010
  "dsh",
1006
1011
  "amp",
1007
- "cursor"
1012
+ "cursor",
1013
+ "grok"
1008
1014
  ]
1009
1015
  },
1010
1016
  "harnessProvider": {
@@ -1023,6 +1029,7 @@
1023
1029
  "dsh",
1024
1030
  "amp",
1025
1031
  "cursor",
1032
+ "grok",
1026
1033
  null
1027
1034
  ]
1028
1035
  },
@@ -3170,7 +3177,8 @@
3170
3177
  "acp",
3171
3178
  "dsh",
3172
3179
  "amp",
3173
- "cursor"
3180
+ "cursor",
3181
+ "grok"
3174
3182
  ]
3175
3183
  },
3176
3184
  "model": {
@@ -9632,7 +9640,7 @@
9632
9640
  }
9633
9641
  },
9634
9642
  "400": {
9635
- "description": "Invalid or disallowed SQL",
9643
+ "description": "Invalid or disallowed SQL, including queries that read credential tables",
9636
9644
  "content": {
9637
9645
  "application/json": {
9638
9646
  "schema": {
@@ -9715,7 +9723,8 @@
9715
9723
  "acp",
9716
9724
  "dsh",
9717
9725
  "amp",
9718
- "cursor"
9726
+ "cursor",
9727
+ "grok"
9719
9728
  ]
9720
9729
  },
9721
9730
  "harness_provider": {
@@ -9730,7 +9739,8 @@
9730
9739
  "acp",
9731
9740
  "dsh",
9732
9741
  "amp",
9733
- "cursor"
9742
+ "cursor",
9743
+ "grok"
9734
9744
  ]
9735
9745
  },
9736
9746
  "runtimeInstanceId": {
@@ -10021,7 +10031,8 @@
10021
10031
  "acp",
10022
10032
  "dsh",
10023
10033
  "amp",
10024
- "cursor"
10034
+ "cursor",
10035
+ "grok"
10025
10036
  ]
10026
10037
  }
10027
10038
  },
@@ -10239,7 +10250,8 @@
10239
10250
  "acp",
10240
10251
  "dsh",
10241
10252
  "amp",
10242
- "cursor"
10253
+ "cursor",
10254
+ "grok"
10243
10255
  ]
10244
10256
  },
10245
10257
  "model": {
@@ -10275,6 +10287,8 @@
10275
10287
  "type": "string",
10276
10288
  "enum": [
10277
10289
  "opencode",
10290
+ "gemini",
10291
+ "copilot",
10278
10292
  "custom"
10279
10293
  ]
10280
10294
  },
@@ -11340,6 +11354,7 @@
11340
11354
  "dsh",
11341
11355
  "amp",
11342
11356
  "cursor",
11357
+ "grok",
11343
11358
  null
11344
11359
  ]
11345
11360
  },
@@ -11359,6 +11374,7 @@
11359
11374
  "dsh",
11360
11375
  "amp",
11361
11376
  "cursor",
11377
+ "grok",
11362
11378
  null
11363
11379
  ]
11364
11380
  },
@@ -11480,6 +11496,7 @@
11480
11496
  "dsh",
11481
11497
  "amp",
11482
11498
  "cursor",
11499
+ "grok",
11483
11500
  null
11484
11501
  ]
11485
11502
  },
@@ -11499,6 +11516,7 @@
11499
11516
  "dsh",
11500
11517
  "amp",
11501
11518
  "cursor",
11519
+ "grok",
11502
11520
  null
11503
11521
  ]
11504
11522
  },
@@ -20567,21 +20585,102 @@
20567
20585
  "required": true,
20568
20586
  "name": "key",
20569
20587
  "in": "path"
20588
+ },
20589
+ {
20590
+ "schema": {
20591
+ "type": "string",
20592
+ "maxLength": 1024
20593
+ },
20594
+ "required": false,
20595
+ "name": "path",
20596
+ "in": "query"
20597
+ },
20598
+ {
20599
+ "schema": {
20600
+ "type": [
20601
+ "integer",
20602
+ "null"
20603
+ ],
20604
+ "minimum": 0
20605
+ },
20606
+ "required": false,
20607
+ "name": "offset",
20608
+ "in": "query"
20609
+ },
20610
+ {
20611
+ "schema": {
20612
+ "type": "integer",
20613
+ "exclusiveMinimum": 0
20614
+ },
20615
+ "required": false,
20616
+ "name": "limit",
20617
+ "in": "query"
20570
20618
  }
20571
20619
  ],
20572
20620
  "responses": {
20573
20621
  "200": {
20574
- "description": "KV entry",
20622
+ "description": "KV entry (or a path/offset/limit view of it)",
20575
20623
  "content": {
20576
20624
  "application/json": {
20577
20625
  "schema": {
20578
- "$ref": "#/components/schemas/KvEntry"
20626
+ "allOf": [
20627
+ {
20628
+ "$ref": "#/components/schemas/KvEntry"
20629
+ },
20630
+ {
20631
+ "type": "object",
20632
+ "properties": {
20633
+ "view": {
20634
+ "type": "object",
20635
+ "properties": {
20636
+ "path": {
20637
+ "type": "string"
20638
+ },
20639
+ "type": {
20640
+ "type": "string",
20641
+ "enum": [
20642
+ "object",
20643
+ "array",
20644
+ "string",
20645
+ "number",
20646
+ "boolean",
20647
+ "null"
20648
+ ]
20649
+ },
20650
+ "total": {
20651
+ "type": "integer",
20652
+ "minimum": 0
20653
+ },
20654
+ "offset": {
20655
+ "type": "integer",
20656
+ "minimum": 0
20657
+ },
20658
+ "returned": {
20659
+ "type": "integer",
20660
+ "minimum": 0
20661
+ },
20662
+ "nextOffset": {
20663
+ "type": [
20664
+ "integer",
20665
+ "null"
20666
+ ],
20667
+ "minimum": 0
20668
+ }
20669
+ },
20670
+ "required": [
20671
+ "path",
20672
+ "type"
20673
+ ]
20674
+ }
20675
+ }
20676
+ }
20677
+ ]
20579
20678
  }
20580
20679
  }
20581
20680
  }
20582
20681
  },
20583
20682
  "400": {
20584
- "description": "Validation error or unresolvable namespace",
20683
+ "description": "Validation error, unresolvable namespace, or invalid view path",
20585
20684
  "content": {
20586
20685
  "application/json": {
20587
20686
  "schema": {
@@ -20977,21 +21076,102 @@
20977
21076
  "required": true,
20978
21077
  "name": "key",
20979
21078
  "in": "path"
21079
+ },
21080
+ {
21081
+ "schema": {
21082
+ "type": "string",
21083
+ "maxLength": 1024
21084
+ },
21085
+ "required": false,
21086
+ "name": "path",
21087
+ "in": "query"
21088
+ },
21089
+ {
21090
+ "schema": {
21091
+ "type": [
21092
+ "integer",
21093
+ "null"
21094
+ ],
21095
+ "minimum": 0
21096
+ },
21097
+ "required": false,
21098
+ "name": "offset",
21099
+ "in": "query"
21100
+ },
21101
+ {
21102
+ "schema": {
21103
+ "type": "integer",
21104
+ "exclusiveMinimum": 0
21105
+ },
21106
+ "required": false,
21107
+ "name": "limit",
21108
+ "in": "query"
20980
21109
  }
20981
21110
  ],
20982
21111
  "responses": {
20983
21112
  "200": {
20984
- "description": "KV entry",
21113
+ "description": "KV entry (or a path/offset/limit view of it)",
20985
21114
  "content": {
20986
21115
  "application/json": {
20987
21116
  "schema": {
20988
- "$ref": "#/components/schemas/KvEntry"
21117
+ "allOf": [
21118
+ {
21119
+ "$ref": "#/components/schemas/KvEntry"
21120
+ },
21121
+ {
21122
+ "type": "object",
21123
+ "properties": {
21124
+ "view": {
21125
+ "type": "object",
21126
+ "properties": {
21127
+ "path": {
21128
+ "type": "string"
21129
+ },
21130
+ "type": {
21131
+ "type": "string",
21132
+ "enum": [
21133
+ "object",
21134
+ "array",
21135
+ "string",
21136
+ "number",
21137
+ "boolean",
21138
+ "null"
21139
+ ]
21140
+ },
21141
+ "total": {
21142
+ "type": "integer",
21143
+ "minimum": 0
21144
+ },
21145
+ "offset": {
21146
+ "type": "integer",
21147
+ "minimum": 0
21148
+ },
21149
+ "returned": {
21150
+ "type": "integer",
21151
+ "minimum": 0
21152
+ },
21153
+ "nextOffset": {
21154
+ "type": [
21155
+ "integer",
21156
+ "null"
21157
+ ],
21158
+ "minimum": 0
21159
+ }
21160
+ },
21161
+ "required": [
21162
+ "path",
21163
+ "type"
21164
+ ]
21165
+ }
21166
+ }
21167
+ }
21168
+ ]
20989
21169
  }
20990
21170
  }
20991
21171
  }
20992
21172
  },
20993
21173
  "400": {
20994
- "description": "Validation error or unresolvable namespace",
21174
+ "description": "Validation error, unresolvable namespace, or invalid view path",
20995
21175
  "content": {
20996
21176
  "application/json": {
20997
21177
  "schema": {
@@ -21646,6 +21826,15 @@
21646
21826
  },
21647
21827
  "accessCount": {
21648
21828
  "type": "number"
21829
+ },
21830
+ "summary": {
21831
+ "type": [
21832
+ "string",
21833
+ "null"
21834
+ ]
21835
+ },
21836
+ "createdAt": {
21837
+ "type": "string"
21649
21838
  }
21650
21839
  },
21651
21840
  "required": [
@@ -24569,7 +24758,8 @@
24569
24758
  "acp",
24570
24759
  "dsh",
24571
24760
  "amp",
24572
- "cursor"
24761
+ "cursor",
24762
+ "grok"
24573
24763
  ]
24574
24764
  },
24575
24765
  "tier": {
@@ -26509,7 +26699,8 @@
26509
26699
  "acp",
26510
26700
  "dsh",
26511
26701
  "amp",
26512
- "cursor"
26702
+ "cursor",
26703
+ "grok"
26513
26704
  ]
26514
26705
  },
26515
26706
  "providers": {
@@ -26529,7 +26720,8 @@
26529
26720
  "acp",
26530
26721
  "dsh",
26531
26722
  "amp",
26532
- "cursor"
26723
+ "cursor",
26724
+ "grok"
26533
26725
  ]
26534
26726
  },
26535
26727
  "state": {
@@ -26858,7 +27050,8 @@
26858
27050
  "acp",
26859
27051
  "dsh",
26860
27052
  "amp",
26861
- "cursor"
27053
+ "cursor",
27054
+ "grok"
26862
27055
  ]
26863
27056
  }
26864
27057
  },
@@ -27446,7 +27639,8 @@
27446
27639
  "acp",
27447
27640
  "dsh",
27448
27641
  "amp",
27449
- "cursor"
27642
+ "cursor",
27643
+ "grok"
27450
27644
  ]
27451
27645
  },
27452
27646
  "state": {
@@ -28439,7 +28633,8 @@
28439
28633
  "acp",
28440
28634
  "dsh",
28441
28635
  "amp",
28442
- "cursor"
28636
+ "cursor",
28637
+ "grok"
28443
28638
  ]
28444
28639
  },
28445
28640
  "state": {
@@ -31149,7 +31344,8 @@
31149
31344
  "acp",
31150
31345
  "dsh",
31151
31346
  "amp",
31152
- "cursor"
31347
+ "cursor",
31348
+ "grok"
31153
31349
  ]
31154
31350
  },
31155
31351
  "required": true,
@@ -31233,7 +31429,8 @@
31233
31429
  "acp",
31234
31430
  "dsh",
31235
31431
  "amp",
31236
- "cursor"
31432
+ "cursor",
31433
+ "grok"
31237
31434
  ]
31238
31435
  },
31239
31436
  "required": true,
@@ -31350,7 +31547,8 @@
31350
31547
  "acp",
31351
31548
  "dsh",
31352
31549
  "amp",
31353
- "cursor"
31550
+ "cursor",
31551
+ "grok"
31354
31552
  ]
31355
31553
  },
31356
31554
  "required": true,
@@ -31435,7 +31633,8 @@
31435
31633
  "acp",
31436
31634
  "dsh",
31437
31635
  "amp",
31438
- "cursor"
31636
+ "cursor",
31637
+ "grok"
31439
31638
  ]
31440
31639
  },
31441
31640
  "required": true,
@@ -41347,7 +41546,8 @@
41347
41546
  "acp",
41348
41547
  "dsh",
41349
41548
  "amp",
41350
- "cursor"
41549
+ "cursor",
41550
+ "grok"
41351
41551
  ]
41352
41552
  },
41353
41553
  "createdAt": {
@@ -42302,7 +42502,8 @@
42302
42502
  "acp",
42303
42503
  "dsh",
42304
42504
  "amp",
42305
- "cursor"
42505
+ "cursor",
42506
+ "grok"
42306
42507
  ]
42307
42508
  },
42308
42509
  "requestedByUserId": {
@@ -47650,7 +47851,8 @@
47650
47851
  "acp",
47651
47852
  "dsh",
47652
47853
  "amp",
47653
- "cursor"
47854
+ "cursor",
47855
+ "grok"
47654
47856
  ]
47655
47857
  },
47656
47858
  "requestedByUserId": {
@@ -48127,7 +48329,8 @@
48127
48329
  "acp",
48128
48330
  "dsh",
48129
48331
  "amp",
48130
- "cursor"
48332
+ "cursor",
48333
+ "grok"
48131
48334
  ]
48132
48335
  },
48133
48336
  "model": {
@@ -49073,7 +49276,8 @@
49073
49276
  "acp",
49074
49277
  "dsh",
49075
49278
  "amp",
49076
- "cursor"
49279
+ "cursor",
49280
+ "grok"
49077
49281
  ]
49078
49282
  }
49079
49283
  },
@@ -52563,6 +52767,228 @@
52563
52767
  }
52564
52768
  }
52565
52769
  },
52770
+ "/api/users/{id}/connector-codes": {
52771
+ "post": {
52772
+ "summary": "Create a single-use connect code for the agent-swarm.dev ChatGPT connector",
52773
+ "description": "Returns a 10-minute single-use code and the connector URL that carries it. The connector trades the code for an MCP token at POST /api/connector/exchange.",
52774
+ "tags": [
52775
+ "Users"
52776
+ ],
52777
+ "security": [
52778
+ {
52779
+ "bearerAuth": []
52780
+ }
52781
+ ],
52782
+ "parameters": [
52783
+ {
52784
+ "schema": {
52785
+ "type": "string"
52786
+ },
52787
+ "required": true,
52788
+ "name": "id",
52789
+ "in": "path"
52790
+ }
52791
+ ],
52792
+ "requestBody": {
52793
+ "content": {
52794
+ "application/json": {
52795
+ "schema": {
52796
+ "type": "object",
52797
+ "properties": {
52798
+ "label": {
52799
+ "type": "string",
52800
+ "minLength": 1
52801
+ }
52802
+ }
52803
+ }
52804
+ }
52805
+ }
52806
+ },
52807
+ "responses": {
52808
+ "201": {
52809
+ "description": "Connect code, its expiry and the connector URL",
52810
+ "content": {
52811
+ "application/json": {
52812
+ "schema": {
52813
+ "type": "object",
52814
+ "properties": {
52815
+ "code": {
52816
+ "type": "string"
52817
+ },
52818
+ "expiresAt": {
52819
+ "type": "string"
52820
+ },
52821
+ "connectUrl": {
52822
+ "type": "string"
52823
+ }
52824
+ },
52825
+ "required": [
52826
+ "code",
52827
+ "expiresAt",
52828
+ "connectUrl"
52829
+ ]
52830
+ }
52831
+ }
52832
+ }
52833
+ },
52834
+ "400": {
52835
+ "description": "The public API origin or CONNECTOR_CONNECT_URL is not HTTPS",
52836
+ "content": {
52837
+ "application/json": {
52838
+ "schema": {
52839
+ "$ref": "#/components/schemas/ErrorResponse"
52840
+ }
52841
+ }
52842
+ }
52843
+ },
52844
+ "401": {
52845
+ "description": "Unauthorized",
52846
+ "content": {
52847
+ "application/json": {
52848
+ "schema": {
52849
+ "$ref": "#/components/schemas/ErrorResponse"
52850
+ }
52851
+ }
52852
+ }
52853
+ },
52854
+ "404": {
52855
+ "description": "User not found",
52856
+ "content": {
52857
+ "application/json": {
52858
+ "schema": {
52859
+ "$ref": "#/components/schemas/ErrorResponse"
52860
+ }
52861
+ }
52862
+ }
52863
+ }
52864
+ }
52865
+ }
52866
+ },
52867
+ "/api/connector/exchange": {
52868
+ "post": {
52869
+ "summary": "Exchange a connect code for a user MCP token",
52870
+ "description": "Unauthenticated: the single-use code is the credential. Rate limited per IP. Unknown, expired and used codes all return 404 code_invalid.",
52871
+ "tags": [
52872
+ "Users"
52873
+ ],
52874
+ "requestBody": {
52875
+ "content": {
52876
+ "application/json": {
52877
+ "schema": {
52878
+ "type": "object",
52879
+ "properties": {
52880
+ "code": {
52881
+ "type": "string",
52882
+ "minLength": 1,
52883
+ "maxLength": 256
52884
+ }
52885
+ },
52886
+ "required": [
52887
+ "code"
52888
+ ]
52889
+ }
52890
+ }
52891
+ }
52892
+ },
52893
+ "responses": {
52894
+ "200": {
52895
+ "description": "Minted MCP token for the code's user",
52896
+ "content": {
52897
+ "application/json": {
52898
+ "schema": {
52899
+ "type": "object",
52900
+ "properties": {
52901
+ "token": {
52902
+ "type": "string"
52903
+ },
52904
+ "userId": {
52905
+ "type": "string"
52906
+ },
52907
+ "version": {
52908
+ "type": "string"
52909
+ }
52910
+ },
52911
+ "required": [
52912
+ "token",
52913
+ "userId",
52914
+ "version"
52915
+ ]
52916
+ }
52917
+ }
52918
+ }
52919
+ },
52920
+ "404": {
52921
+ "description": "Code unknown, malformed, expired or already used",
52922
+ "content": {
52923
+ "application/json": {
52924
+ "schema": {
52925
+ "$ref": "#/components/schemas/ErrorResponse"
52926
+ }
52927
+ }
52928
+ }
52929
+ },
52930
+ "413": {
52931
+ "description": "Request body too large",
52932
+ "content": {
52933
+ "application/json": {
52934
+ "schema": {
52935
+ "$ref": "#/components/schemas/ErrorResponse"
52936
+ }
52937
+ }
52938
+ }
52939
+ },
52940
+ "429": {
52941
+ "description": "Rate limited",
52942
+ "content": {
52943
+ "application/json": {
52944
+ "schema": {
52945
+ "$ref": "#/components/schemas/ErrorResponse"
52946
+ }
52947
+ }
52948
+ }
52949
+ }
52950
+ }
52951
+ }
52952
+ },
52953
+ "/api/connector/discovery": {
52954
+ "get": {
52955
+ "summary": "Public origins the agent-swarm.dev connector needs to find this swarm's dashboard",
52956
+ "description": "Unauthenticated. Lets the connector turn an API origin into the dashboard URL that serves /connect. appUrl is omitted when APP_URL is not set or is not https.",
52957
+ "tags": [
52958
+ "Users"
52959
+ ],
52960
+ "responses": {
52961
+ "200": {
52962
+ "description": "Public API origin, dashboard origin and connector connect URL",
52963
+ "content": {
52964
+ "application/json": {
52965
+ "schema": {
52966
+ "type": "object",
52967
+ "properties": {
52968
+ "apiUrl": {
52969
+ "type": "string"
52970
+ },
52971
+ "appUrl": {
52972
+ "type": "string"
52973
+ },
52974
+ "connectUrl": {
52975
+ "type": [
52976
+ "string",
52977
+ "null"
52978
+ ]
52979
+ }
52980
+ },
52981
+ "required": [
52982
+ "apiUrl",
52983
+ "connectUrl"
52984
+ ]
52985
+ }
52986
+ }
52987
+ }
52988
+ }
52989
+ }
52990
+ }
52991
+ },
52566
52992
  "/api/users/{id}/merge": {
52567
52993
  "post": {
52568
52994
  "summary": "Merge another user into this one — moves identities + email aliases, deletes source",