@desplega.ai/agent-swarm 2.13.3 → 2.13.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 (424) hide show
  1. package/dist/acp-adapter-tbt61zkm.js +17 -0
  2. package/dist/{acp-targets-k8xs4tj8.js → acp-targets-w8dbs4nr.js} +10 -10
  3. package/dist/{actions-pg5fxjer.js → actions-8zrcbjrx.js} +237 -27
  4. package/dist/{agent-fs-provision-vbk3fppw.js → agent-fs-provision-cbt2ttds.js} +4 -4
  5. package/dist/{amp-adapter-adbhxsz9.js → amp-adapter-8x6zp8w4.js} +3 -3
  6. package/dist/{anthropic-messages-88b7s3n9.js → anthropic-messages-vdd1zmha.js} +10 -10
  7. package/dist/{app-b267ggx1.js → app-zfa9dwjw.js} +7 -7
  8. package/dist/{approval-notifications-evc1a9z5.js → approval-notifications-rv92zmza.js} +8 -8
  9. package/dist/{assistant-wgz2ab84.js → assistant-q7s7rm1q.js} +25 -25
  10. package/dist/{boot-args-schema-6tpk28j4.js → boot-args-schema-g27kpzr1.js} +1 -1
  11. package/dist/{boot-reembed-r1zyvefv.js → boot-reembed-1mjs52nt.js} +1 -1
  12. package/dist/{boot-reembed-ankp369c.js → boot-reembed-m62dpdkg.js} +1 -1
  13. package/dist/{boot-scrub-sweep-cgb6r5bd.js → boot-scrub-sweep-ss1vcamw.js} +2 -2
  14. package/dist/{boot-seeds-bjceqg7b.js → boot-seeds-hwnvgbb3.js} +4 -4
  15. package/dist/{boxd-hr8rsxzq.js → boxd-y0szhp0g.js} +2 -2
  16. package/dist/{claude-adapter-knztdnff.js → claude-adapter-0rjmbhjk.js} +9 -9
  17. package/dist/{claude-managed-adapter-qwejzqkk.js → claude-managed-adapter-6k032agg.js} +4 -4
  18. package/dist/{claude-managed-setup-0vgz4d1j.js → claude-managed-setup-6czvve8q.js} +5 -5
  19. package/dist/{claude-sdk-session-c3g6dv0g.js → claude-sdk-session-pr0znb81.js} +12671 -11885
  20. package/dist/{cli-2v4xxnx2.js → cli-0h8skzss.js} +1 -1
  21. package/dist/{cli-7fa6yv98.js → cli-0qt3epg4.js} +7 -7
  22. package/dist/{cli-aytna2fm.js → cli-19d6v8er.js} +7 -7
  23. package/dist/{cli-8m6gqnf1.js → cli-1jq2em7b.js} +4 -4
  24. package/dist/{cli-fp65jdp2.js → cli-1kvcsd2f.js} +219 -155
  25. package/dist/{cli-8fj8yfmk.js → cli-2vp0z049.js} +1 -1
  26. package/dist/{cli-61p7ty8d.js → cli-2wzkvfgm.js} +3 -3
  27. package/dist/{cli-tjf1bh1v.js → cli-34fygf87.js} +6 -4
  28. package/dist/{cli-czeh7x13.js → cli-3860pmrq.js} +4 -4
  29. package/dist/{cli-dq30fq3q.js → cli-3vw6dd4g.js} +2 -2
  30. package/dist/{cli-4dyhzhpx.js → cli-4gaf3tx5.js} +1 -1
  31. package/dist/{cli-3mf04tkh.js → cli-4vynxtrb.js} +1 -1
  32. package/dist/{cli-hpxcfvdm.js → cli-55h8m1x3.js} +10 -7
  33. package/dist/{cli-hxj888w3.js → cli-5n9w2xzx.js} +2 -2
  34. package/dist/{cli-50whymxq.js → cli-5tq15aa7.js} +2 -2
  35. package/dist/{cli-8sayvj48.js → cli-5web09sb.js} +3 -3
  36. package/dist/{cli-gc715jrc.js → cli-69zzpjgh.js} +1 -1
  37. package/dist/{cli-vgh5adn9.js → cli-6msnpj1z.js} +8 -8
  38. package/dist/{cli-f8rcvf2x.js → cli-7r9tvk8v.js} +76 -3
  39. package/dist/{cli-fbmgpt72.js → cli-7ypg8hka.js} +3 -3
  40. package/dist/{cli-xc8m5cjn.js → cli-887vhew6.js} +3 -3
  41. package/dist/{cli-q8aq48v1.js → cli-8b4rpnwj.js} +1 -1
  42. package/dist/{cli-pzsedyb0.js → cli-8pd1t17c.js} +14 -14
  43. package/dist/{cli-je587f74.js → cli-94gx6ze9.js} +1 -1
  44. package/dist/{cli-h9d3sdnc.js → cli-94mxerrp.js} +1 -1
  45. package/dist/{cli-ef590376.js → cli-9n6g14vs.js} +3 -3
  46. package/dist/{cli-80d5g0fa.js → cli-abby987g.js} +3 -3
  47. package/dist/{cli-grk77aen.js → cli-avax5mp9.js} +2 -2
  48. package/dist/{cli-hd2a204w.js → cli-b42yfn17.js} +14 -14
  49. package/dist/{cli-gkjw33x5.js → cli-b9ygp1kz.js} +2 -2
  50. package/dist/{cli-bh53ppqm.js → cli-bvamr9g0.js} +4 -4
  51. package/dist/{cli-ka4tqjzd.js → cli-ced4azn1.js} +15 -12
  52. package/dist/{cli-v1v49t36.js → cli-cmbb2t8a.js} +3 -3
  53. package/dist/{cli-hhb8kbwd.js → cli-cp163xga.js} +31 -16
  54. package/dist/{cli-55fqpd9q.js → cli-ebpq3c5z.js} +8 -8
  55. package/dist/{cli-9gmkw6xn.js → cli-ehg90jd1.js} +128 -48
  56. package/dist/{cli-jg5txpm6.js → cli-emdfd8fh.js} +75 -1
  57. package/dist/{cli-gxqwm3k3.js → cli-evy3egte.js} +104 -10
  58. package/dist/{cli-a21cwm89.js → cli-ewk3sg68.js} +3 -3
  59. package/dist/{cli-syqcny89.js → cli-f7b9nyvk.js} +9 -9
  60. package/dist/{cli-268b3dgn.js → cli-f9xw9pr4.js} +5 -5
  61. package/dist/{cli-61fzwtjk.js → cli-ffn0a515.js} +9 -9
  62. package/dist/{cli-ya1cj689.js → cli-fw67mnyc.js} +1 -1
  63. package/dist/{cli-dqgnbnxs.js → cli-grbngev5.js} +6 -1
  64. package/dist/{cli-sy2ge2ye.js → cli-hd5bm1e1.js} +4 -4
  65. package/dist/{cli-rfejbpe1.js → cli-htb5bpz2.js} +1 -1
  66. package/dist/{cli-w24741sm.js → cli-j69pzrrz.js} +7 -7
  67. package/dist/{cli-g4dhd3pr.js → cli-jdq3jmny.js} +6 -23
  68. package/dist/{cli-hv3820ez.js → cli-k0nebh10.js} +1 -1
  69. package/dist/{cli-d2epqm0y.js → cli-kezzteka.js} +1 -1
  70. package/dist/{cli-h0ewec3d.js → cli-kr0jpw9c.js} +1 -1
  71. package/dist/{cli-t25rq8mg.js → cli-ks06cd0n.js} +40 -11
  72. package/dist/{cli-1gnf5c7x.js → cli-kwj3131p.js} +1 -1
  73. package/dist/{cli-wtffytm8.js → cli-m8f4379k.js} +3 -3
  74. package/dist/{cli-43dsqhcp.js → cli-n79j1vxc.js} +4 -4
  75. package/dist/{cli-b768ek79.js → cli-nrt048ys.js} +1 -0
  76. package/dist/{cli-h3drhntp.js → cli-pedm2kht.js} +2 -2
  77. package/dist/{cli-eds5xnsz.js → cli-phmy14hb.js} +2 -2
  78. package/dist/{cli-7kv5d674.js → cli-prz1p3ft.js} +5 -5
  79. package/dist/{cli-nbawx3s0.js → cli-q1h041y8.js} +6 -6
  80. package/dist/{cli-cah298e5.js → cli-q41qar56.js} +104 -119
  81. package/dist/{cli-kwm1bek7.js → cli-qmx8bnt4.js} +2 -2
  82. package/dist/{cli-1wew39p0.js → cli-qrvk9nka.js} +28 -19
  83. package/dist/{cli-v8rpjrnx.js → cli-r3dxpmyt.js} +1 -1
  84. package/dist/{cli-0j4qmc80.js → cli-ryem5cfq.js} +8 -8
  85. package/dist/{cli-8pnawt98.js → cli-s8dhq7rj.js} +5 -5
  86. package/dist/{cli-zkbz8m2q.js → cli-sejvnjvw.js} +3 -2
  87. package/dist/{cli-at67kvnp.js → cli-srktrbby.js} +1 -1
  88. package/dist/{cli-wsnradtk.js → cli-srre41gb.js} +2 -2
  89. package/dist/{cli-r6xnchva.js → cli-t0n9svkb.js} +7 -7
  90. package/dist/{cli-y0q92v4r.js → cli-t879ww0y.js} +2 -2
  91. package/dist/{cli-eetzmsy5.js → cli-t9pzz2eq.js} +2 -2
  92. package/dist/{cli-xwsm6xkr.js → cli-tgc1kgg3.js} +1 -1
  93. package/dist/{cli-dw43pnzp.js → cli-tt7dkwjj.js} +7 -7
  94. package/dist/{cli-y754psdt.js → cli-tvyt8w6n.js} +5 -5
  95. package/dist/cli-v09eza21.js +1907 -0
  96. package/dist/{cli-mgr3gatr.js → cli-vbge4rsp.js} +4 -4
  97. package/dist/{cli-ppf9ap9n.js → cli-vcpyttcw.js} +1 -1
  98. package/dist/{cli-1606qw3n.js → cli-wzecestt.js} +1100 -432
  99. package/dist/{cli-5basv0e7.js → cli-x2adbg4j.js} +71 -9
  100. package/dist/{cli-vx9acp12.js → cli-ybte1fqc.js} +1 -1
  101. package/dist/{cli-vdfngx2g.js → cli-ywy8yz6t.js} +2 -2
  102. package/dist/{cli-cpkxh68d.js → cli-z1vam71h.js} +2 -2
  103. package/dist/{cli-djwt4mtn.js → cli-z3x7h79n.js} +15 -9
  104. package/dist/cli-z40t85ms.js +27 -0
  105. package/dist/{cli-ea367bdn.js → cli-zbbtp02a.js} +104 -27
  106. package/dist/{cli-88np9va3.js → cli-zntvmqmm.js} +2 -2
  107. package/dist/{cli-snwz16eg.js → cli-zxa1vmx7.js} +2 -2
  108. package/dist/{cli-50wa8k4h.js → cli-zy9bb22b.js} +1 -2
  109. package/dist/{cli-e4gx499y.js → cli-zzq96q57.js} +273 -106
  110. package/dist/cli.js +21 -21
  111. package/dist/{codex-adapter-493vb8cv.js → codex-adapter-bn7eaxk5.js} +8 -8
  112. package/dist/{codex-hook-ej8hn6z5.js → codex-hook-nnmezjg9.js} +3 -3
  113. package/dist/{codex-login-ven5cz5j.js → codex-login-ktfg1cxk.js} +1 -1
  114. package/dist/{codex-session-runner-ps5m4z1g.js → codex-session-runner-j1e9hffc.js} +9 -9
  115. package/dist/{commands-shktk0b8.js → commands-amhpafrr.js} +3 -3
  116. package/dist/{controller-wn3vd217.js → controller-tw7g10j2.js} +4 -4
  117. package/dist/{controllers-connect-yft057ws.js → controllers-connect-2ssqz7f4.js} +25 -25
  118. package/dist/core-bwp98v4w.js +42 -0
  119. package/dist/{cursor-adapter-8fpm4dng.js → cursor-adapter-d6knjmwa.js} +2 -2
  120. package/dist/{db-0ezhdhz5.js → db-fd6xxm77.js} +3 -3
  121. package/dist/{db-84pz2w5c.js → db-sc59379z.js} +2 -2
  122. package/dist/{devin-adapter-fs90ab4v.js → devin-adapter-3bp6rape.js} +1 -1
  123. package/dist/{dispatcher-h2rz69f6.js → dispatcher-a2gdqz8c.js} +22 -22
  124. package/dist/{docker-1h33jvh9.js → docker-a59g3ebm.js} +2 -2
  125. package/dist/{dsh-adapter-g9yqv09y.js → dsh-adapter-43ygwqn7.js} +2 -2
  126. package/dist/{e2b-jnk0yeva.js → e2b-cn7cvjqy.js} +3 -3
  127. package/dist/{e2b-y7e5kmzf.js → e2b-qnxyfea6.js} +3 -3
  128. package/dist/{easter-egg-3d-m41ad78v.js → easter-egg-3d-a0pphy71.js} +1 -1
  129. package/dist/{embedding-space-yam9zwzj.js → embedding-space-qepzrach.js} +6 -6
  130. package/dist/{embeddings-g2be0y8q.js → embeddings-d7vr881x.js} +1 -1
  131. package/dist/{event-bus-08t2b4y2.js → event-bus-7gbsr0g4.js} +1 -1
  132. package/dist/{execute-hhdejgzf.js → execute-6afts2bn.js} +1 -1
  133. package/dist/{external-channel-kjt2yzfj.js → external-channel-881zq1x4.js} +2 -2
  134. package/dist/fx-adapter-cr2hq17y.js +20 -0
  135. package/dist/grok-adapter-ayddnbsc.js +20 -0
  136. package/dist/handlers-7ghs84x2.js +41 -0
  137. package/dist/{heartbeat-2e5jdexj.js → heartbeat-4c022m6a.js} +25 -25
  138. package/dist/{hook-acg9saz7.js → hook-4k84x499.js} +6 -6
  139. package/dist/{hook-34s8cmgn.js → hook-a7eh6zty.js} +9 -9
  140. package/dist/{http-ra2zr2f8.js → http-6aw5wanc.js} +456 -1864
  141. package/dist/{index-mbpxhc4w.js → index-126v2d0t.js} +1 -4
  142. package/dist/index-dtt0d634.js +44 -0
  143. package/dist/index-hmszyqkk.js +42 -0
  144. package/dist/index-j6rm1rtn.js +39 -0
  145. package/dist/{index-9q42cr54.js → index-rwwhsmjg.js} +1 -1
  146. package/dist/{index-93bw5wds.js → index-xhad0n8m.js} +1 -1
  147. package/dist/{index-2z1z7qx6.js → index-yq9hhhhy.js} +26 -26
  148. package/dist/{index-9r4j0a60.js → index-z2g9469g.js} +410 -27
  149. package/dist/{k8s-8326q0rq.js → k8s-36gfn847.js} +2 -2
  150. package/dist/{keepalive-vjnnqbkm.js → keepalive-zhbmztqw.js} +5 -5
  151. package/dist/lead-g2j4q39z.js +83 -0
  152. package/dist/{maintenance-px2g599e.js → maintenance-rsp0591h.js} +1 -1
  153. package/dist/{node-2wfcey7d.js → node-0as4n1ef.js} +3 -3
  154. package/dist/{node-zd6shky9.js → node-dhxbt01p.js} +3 -3
  155. package/dist/{node-z67yjre7.js → node-rxte5hc6.js} +290 -70
  156. package/dist/{node-hjn5n1yp.js → node-t0ct2zpw.js} +3 -5
  157. package/dist/{oauth-refresh-sweep-nkykf09m.js → oauth-refresh-sweep-w3cqmxq7.js} +4 -4
  158. package/dist/{object-webhooks-gt9xnq21.js → object-webhooks-331hay92.js} +7 -7
  159. package/dist/{onboard-1f134p65.js → onboard-n2w80m2n.js} +7 -7
  160. package/dist/{opencode-adapter-94976yab.js → opencode-adapter-z98127cz.js} +8 -8
  161. package/dist/{otel-impl-5d4p2fqs.js → otel-impl-xsk35tvf.js} +2 -2
  162. package/dist/{pending-vkk0vx6n.js → pending-2e6trkxd.js} +23 -23
  163. package/dist/{pi-mono-adapter-cyzdv5er.js → pi-mono-adapter-wh6yndtm.js} +13 -13
  164. package/dist/{pricing-refresh-jtmjwss9.js → pricing-refresh-9355dj1t.js} +2 -2
  165. package/dist/{rbac-roles-yd1fgpsn.js → rbac-roles-58y3m912.js} +3 -3
  166. package/dist/{rbac-roles-1fvmdyeb.js → rbac-roles-8eajw4s6.js} +6 -4
  167. package/dist/{render-v2-kb5s3vx4.js → render-v2-7gskkmd4.js} +7 -7
  168. package/dist/{resume-z1vs44n5.js → resume-0drnmpja.js} +10 -10
  169. package/dist/{runtime-gk6ct7r7.js → runtime-d2tcmqte.js} +1 -1
  170. package/dist/{session-access-nz6nre4d.js → session-access-0ztys6bd.js} +5 -5
  171. package/dist/{session-source-backfill-wb60zjkd.js → session-source-backfill-cdm5s046.js} +3 -3
  172. package/dist/{setup-2x8g8j4s.js → setup-pqwb9tcc.js} +1 -1
  173. package/dist/thread-buffer-epx3san4.js +42 -0
  174. package/dist/{tree-visibility-ts3z30kw.js → tree-visibility-rwz67mje.js} +2 -2
  175. package/dist/{user-merge-jobs-zetg26e0.js → user-merge-jobs-mxrhamwt.js} +3 -3
  176. package/dist/{virtual-modules-674fka8x.js → virtual-modules-71y1gsmg.js} +3 -3
  177. package/dist/{work-objects-w52yyjxm.js → work-objects-3k4ykt9j.js} +25 -25
  178. package/dist/worker-09gqn9xy.js +83 -0
  179. package/dist/{worker-follow-up-dyfxyjbj.js → worker-follow-up-y0h64xpr.js} +22 -22
  180. package/dist/{x-asbrnafg.js → x-d27jj7z7.js} +2 -2
  181. package/openapi.json +861 -33
  182. package/package.json +4 -4
  183. package/src/apps/sync.ts +20 -5
  184. package/src/azure-devops/boards-sync.ts +1 -1
  185. package/src/be/db/approvals.ts +2 -0
  186. package/src/be/db/runtime.ts +5 -0
  187. package/src/be/db/script-run-sources.ts +17 -0
  188. package/src/be/db/slack-trees.ts +12 -1
  189. package/src/be/db/tasks/read.ts +25 -1
  190. package/src/be/db/tasks/write.ts +47 -12
  191. package/src/be/db/users/avatar.ts +12 -0
  192. package/src/be/db-retention.ts +1 -1
  193. package/src/be/db.ts +149 -67
  194. package/src/be/design-system.ts +63 -0
  195. package/src/be/migrations/342_script_run_sources.sql +20 -0
  196. package/src/be/migrations/344_user_avatar.sql +4 -0
  197. package/src/be/migrations/345_task_status_kind.sql +6 -0
  198. package/src/be/migrations/runner.ts +8 -0
  199. package/src/be/migrations/script-run-sources.ts +51 -0
  200. package/src/be/primitives/object-embed.ts +2 -2
  201. package/src/be/primitives/objects.ts +2 -2
  202. package/src/be/rbac-roles.ts +2 -0
  203. package/src/be/runtime-pools/supervisor.ts +1 -0
  204. package/src/be/scripts/typecheck.ts +5 -3
  205. package/src/be/seed-scripts/catalog/design-system-seed.ts +158 -0
  206. package/src/be/seed-scripts/index.ts +9 -0
  207. package/src/be/swarm-config-guard.ts +25 -1
  208. package/src/bitbucket/handlers.ts +1 -1
  209. package/src/commands/credential-outcome-report.ts +96 -0
  210. package/src/commands/onboard/agent-fs-version.ts +1 -1
  211. package/src/commands/runner.ts +49 -3
  212. package/src/event-waits/github.ts +39 -6
  213. package/src/event-waits/index.ts +4 -2
  214. package/src/event-waits/types.ts +10 -3
  215. package/src/extensions/contract-types.generated.ts +1 -1
  216. package/src/github/app.ts +177 -13
  217. package/src/github/handlers.ts +7 -2
  218. package/src/github/pull-request-state.ts +100 -11
  219. package/src/gitlab/handlers.ts +2 -2
  220. package/src/heartbeat/heartbeat.ts +24 -5
  221. package/src/http/all-routes.ts +1 -0
  222. package/src/http/api-keys.ts +26 -0
  223. package/src/http/approval-chat-answer.ts +99 -0
  224. package/src/http/approval-requests.ts +280 -225
  225. package/src/http/asset-key-write.ts +45 -0
  226. package/src/http/assets.ts +4 -3
  227. package/src/http/design-system.ts +103 -0
  228. package/src/http/github-token.ts +27 -6
  229. package/src/http/index.ts +10 -6
  230. package/src/http/pages-public.ts +25 -10
  231. package/src/http/pages.ts +21 -10
  232. package/src/http/person-responder.ts +28 -0
  233. package/src/http/schedules.ts +6 -6
  234. package/src/http/sessions.ts +7 -2
  235. package/src/http/tasks.ts +23 -5
  236. package/src/http/users.ts +5 -0
  237. package/src/http/webhooks.ts +19 -1
  238. package/src/http/workflows.ts +5 -10
  239. package/src/integrations/chat-sdk/adapters.ts +33 -3
  240. package/src/integrations/chat-sdk/commands.ts +3 -1
  241. package/src/integrations/chat-sdk/inbound.ts +6 -18
  242. package/src/integrations/chat-sdk/mentions.ts +188 -0
  243. package/src/integrations/chat-sdk/outbound.ts +20 -3
  244. package/src/integrations/chat-sdk/router.ts +8 -0
  245. package/src/integrations/chat-sdk/telegram-thread.ts +12 -0
  246. package/src/jira/adf.ts +35 -9
  247. package/src/jira/sync.ts +1 -1
  248. package/src/kv-reserved-namespaces.ts +5 -0
  249. package/src/linear/sync.ts +5 -3
  250. package/src/pages/page-head.ts +11 -1
  251. package/src/prompts/session-templates.ts +1 -0
  252. package/src/providers/acp-targets.ts +2 -2
  253. package/src/providers/amp-adapter.ts +1 -1
  254. package/src/providers/claude-adapter.ts +5 -0
  255. package/src/providers/claude-sdk-session.ts +5 -0
  256. package/src/providers/dsh-adapter.ts +48 -13
  257. package/src/providers/runtime-dependencies.ts +1 -1
  258. package/src/rbac/legacy-policy.ts +4 -0
  259. package/src/rbac/permissions.ts +8 -0
  260. package/src/scheduler/deferred-task-waits.ts +74 -13
  261. package/src/scheduler/index.ts +1 -0
  262. package/src/scheduler/scheduler.test.ts +32 -1
  263. package/src/scheduler/scheduler.ts +24 -1
  264. package/src/script-workflows/executor.ts +6 -0
  265. package/src/script-workflows/supervisor.ts +2 -1
  266. package/src/scripts-runtime/sdk-allowlist.ts +2 -0
  267. package/src/scripts-runtime/swarm-sdk.ts +20 -24
  268. package/src/scripts-runtime/types/stdlib.d.ts +12 -2
  269. package/src/scripts-runtime/types/swarm-extension.d.ts +19 -2
  270. package/src/scripts-runtime/types/swarm-sdk.d.ts +12 -2
  271. package/src/server.ts +2 -0
  272. package/src/slack/actions.ts +4 -1
  273. package/src/slack/approval-actions.ts +148 -0
  274. package/src/slack/approval-buttons.ts +28 -0
  275. package/src/slack/render-v2.ts +148 -7
  276. package/src/tests/api-drain-worker-e2e.test.ts +0 -2
  277. package/src/tests/approval-auto-cancellation-migration.test.ts +8 -19
  278. package/src/tests/approval-card-resolution.test.ts +2 -17
  279. package/src/tests/approval-requests-notifications.test.ts +41 -27
  280. package/src/tests/approval-requests.test.ts +137 -369
  281. package/src/tests/apps-sync-engine.test.ts +5 -3
  282. package/src/tests/apps-table-filters-migration.test.ts +44 -25
  283. package/src/tests/bitbucket-handlers.test.ts +2 -0
  284. package/src/tests/chat-sdk-commands.test.ts +1 -0
  285. package/src/tests/chat-sdk-mentions.test.ts +183 -0
  286. package/src/tests/claude-adapter.test.ts +35 -0
  287. package/src/tests/codex-adapter.test.ts +3 -92
  288. package/src/tests/codex-gpt6-release.test.ts +0 -9
  289. package/src/tests/codex-oauth-credential-info.test.ts +35 -18
  290. package/src/tests/codex-oauth.test.ts +0 -6
  291. package/src/tests/codex-pool.test.ts +5 -214
  292. package/src/tests/codex-rate-limit-parse.test.ts +0 -7
  293. package/src/tests/codex-swarm-events.test.ts +11 -54
  294. package/src/tests/create-page-tool.test.ts +5 -0
  295. package/src/tests/db-client-busy-retry.test.ts +49 -16
  296. package/src/tests/defer-task.test.ts +1 -0
  297. package/src/tests/dsh-adapter.test.ts +53 -1
  298. package/src/tests/e2e-shards.test.ts +9 -9
  299. package/src/tests/enabled-tools.test.ts +0 -2
  300. package/src/tests/fixtures/base-prompt-baseline.json +6 -6
  301. package/src/tests/fixtures/compiled-source-schema-boot.ts +24 -0
  302. package/src/tests/fixtures/secret-corpus.ts +43 -1
  303. package/src/tests/github-app-worker-auth-helper.test.ts +147 -1
  304. package/src/tests/gitlab-handlers.test.ts +2 -0
  305. package/src/tests/heartbeat-jev-gate.test.ts +9 -241
  306. package/src/tests/heartbeat-reroute-decision.test.ts +2 -0
  307. package/src/tests/heartbeat-stall-thresholds.test.ts +174 -0
  308. package/src/tests/heartbeat-supersede-resume.test.ts +2 -0
  309. package/src/tests/heartbeat.test.ts +1 -0
  310. package/src/tests/jira-adf.test.ts +42 -2
  311. package/src/tests/key-usage-selection.test.ts +302 -0
  312. package/src/tests/memory-e2e.test.ts +34 -103
  313. package/src/tests/memory-key-paths.test.ts +5 -0
  314. package/src/tests/memory-rater-llm.test.ts +33 -149
  315. package/src/tests/memory-store.test.ts +24 -125
  316. package/src/tests/memory.test.ts +31 -100
  317. package/src/tests/merge-gate-detect-changes.test.ts +314 -16
  318. package/src/tests/migration-342-script-run-sources.test.ts +196 -0
  319. package/src/tests/migration-bunfs-compat.test.ts +129 -9
  320. package/src/tests/otel-service-name.test.ts +0 -9
  321. package/src/tests/otel-session-cost-metrics.test.ts +1 -38
  322. package/src/tests/pool-session-logs.test.ts +8 -42
  323. package/src/tests/pre-push-affected-tests.test.ts +106 -0
  324. package/src/tests/prompt-template-session.test.ts +3 -0
  325. package/src/tests/rbac-e2e-helpers.test.ts +10 -4
  326. package/src/tests/rbac-e2e-helpers.ts +13 -4
  327. package/src/tests/rbac-roles.test.ts +2 -0
  328. package/src/tests/runner-api-drain.test.ts +2 -17
  329. package/src/tests/runner-terminal-window-report.test.ts +132 -0
  330. package/src/tests/runtime-e2b-pools.test.ts +7 -1
  331. package/src/tests/runtime-supervisor-failures.test.ts +1 -0
  332. package/src/tests/sandboxed-process.test.ts +26 -21
  333. package/src/tests/schedule-http-triage-tools.test.ts +12 -9
  334. package/src/tests/schedule-target-type.test.ts +4 -1
  335. package/src/tests/scheduled-tasks.test.ts +14 -51
  336. package/src/tests/script-connections.test.ts +2 -0
  337. package/src/tests/script-executor-conformance.test.ts +4 -48
  338. package/src/tests/script-executor-quickjs-pool.test.ts +9 -7
  339. package/src/tests/script-native-startup.test.ts +21 -25
  340. package/src/tests/script-runs-retention.test.ts +43 -16
  341. package/src/tests/script-workflows-runtime-e2e.test.ts +56 -22
  342. package/src/tests/scripts-http.test.ts +9 -3
  343. package/src/tests/sdk-allowlist.test.ts +26 -13
  344. package/src/tests/sdk-store-progress-skipped.test.ts +12 -5
  345. package/src/tests/secret-rules.test.ts +38 -2
  346. package/src/tests/secret-scrub-gate.test.ts +7 -0
  347. package/src/tests/secret-scrubber.test.ts +62 -2
  348. package/src/tests/seed-scripts.test.ts +2 -2
  349. package/src/tests/session-logs.test.ts +1 -260
  350. package/src/tests/slack-render-v2.test.ts +5 -148
  351. package/src/tests/system-one-hosts-ui-mirror.test.ts +1 -0
  352. package/src/tests/task-cascade-fail.test.ts +1 -0
  353. package/src/tests/task-supersede-resume.test.ts +1 -0
  354. package/src/tests/test-proc.ts +5 -2
  355. package/src/tests/vcs-azure-devops.test.ts +10 -0
  356. package/src/tests/vcs-provider.test.ts +8 -0
  357. package/src/tests/window-stream-reporter.test.ts +122 -0
  358. package/src/tests/workflow-agent-task-retry.test.ts +1 -3
  359. package/src/tests/workflow-cascade-cancel.test.ts +1 -0
  360. package/src/tests/workflow-retry-v2.test.ts +34 -43
  361. package/src/tests/workflow-retry-validation.test.ts +8 -48
  362. package/src/tests/worktree-reaper.test.ts +2 -2
  363. package/src/themes/design-system.ts +163 -0
  364. package/src/themes/page-theme.ts +28 -19
  365. package/src/tools/cancel-task.ts +2 -2
  366. package/src/tools/chat-post.ts +7 -3
  367. package/src/tools/create-page.ts +3 -0
  368. package/src/tools/defer-task.ts +7 -2
  369. package/src/tools/design-system.ts +102 -0
  370. package/src/tools/get-task-details.ts +8 -4
  371. package/src/tools/get-tasks.ts +13 -2
  372. package/src/tools/manage-user.ts +9 -0
  373. package/src/tools/mcp-servers/mcp-server-get.ts +1 -1
  374. package/src/tools/mcp-servers/mcp-server-list.ts +1 -1
  375. package/src/tools/register-chat-channel.ts +11 -2
  376. package/src/tools/skills/skill-get-file.ts +1 -1
  377. package/src/tools/skills/skill-get.ts +1 -1
  378. package/src/tools/skills/skill-list.ts +1 -1
  379. package/src/tools/skills/skill-search.ts +1 -1
  380. package/src/tools/store-progress.ts +5 -3
  381. package/src/tools/utils.ts +49 -4
  382. package/src/tools/workflows/get-workflow-run.ts +1 -1
  383. package/src/tools/workflows/get-workflow.ts +1 -1
  384. package/src/tools/workflows/list-workflow-runs.ts +1 -1
  385. package/src/tools/workflows/list-workflows.ts +1 -1
  386. package/src/types.ts +158 -0
  387. package/src/utils/constants.ts +12 -0
  388. package/src/utils/credentials.ts +42 -5
  389. package/src/utils/error-tracker.ts +6 -0
  390. package/src/utils/key-usage.ts +114 -0
  391. package/src/utils/sandboxed-process.ts +1 -0
  392. package/src/utils/secret-rules.generated.ts +149 -149
  393. package/src/utils/secret-scrubber.ts +111 -5
  394. package/src/vcs/azure-devops.ts +22 -1
  395. package/src/vcs/index.ts +3 -1
  396. package/src/workflows/approval-inline.ts +122 -0
  397. package/src/workflows/approval-notifications.ts +7 -2
  398. package/src/workflows/engine.ts +6 -5
  399. package/src/workflows/executors/agent-task.ts +14 -0
  400. package/src/workflows/executors/system-one-providers.ts +23 -0
  401. package/src/workflows/resume.ts +5 -2
  402. package/templates/skills/apps/SKILL.md +2 -0
  403. package/templates/skills/apps/content.md +2 -0
  404. package/templates/skills/boards-and-sheets/content.md +4 -2
  405. package/templates/skills/pages/content.md +41 -8
  406. package/templates/skills/swarm-docs/content.md +6 -0
  407. package/templates/skills/swarm-scripts/SKILL.md +1 -0
  408. package/templates/skills/swarm-scripts/content.md +1 -0
  409. package/templates/skills/workflow-iterate/content.md +1 -1
  410. package/dist/acp-adapter-t2q6nsqv.js +0 -17
  411. package/dist/cli-kh973792.js +0 -98
  412. package/dist/core-nheayfgm.js +0 -42
  413. package/dist/fx-adapter-8g7xsp8q.js +0 -20
  414. package/dist/grok-adapter-ztk2zkz1.js +0 -20
  415. package/dist/handlers-9ywssz71.js +0 -41
  416. package/dist/index-6mgbdtv1.js +0 -44
  417. package/dist/index-hqdsn2t2.js +0 -39
  418. package/dist/index-st231bqv.js +0 -40
  419. package/dist/lead-mk0xkth2.js +0 -82
  420. package/dist/thread-buffer-d50rqpev.js +0 -42
  421. package/dist/worker-662x1vse.js +0 -82
  422. package/src/tests/apps-table-selection-migration.test.ts +0 -95
  423. package/src/tests/extensions-example-heartbeat-remediate.test.ts +0 -69
  424. package/src/tests/extensions-example-rewrite-and-suppress.test.ts +0 -70
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": "2.13.3",
5
+ "version": "2.13.5",
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": [
@@ -258,6 +258,27 @@
258
258
  "type": "string",
259
259
  "format": "date-time"
260
260
  },
261
+ "statusKind": {
262
+ "type": "string",
263
+ "enum": [
264
+ "agent",
265
+ "runner",
266
+ "deferred",
267
+ "error",
268
+ "cascade",
269
+ "external",
270
+ "user",
271
+ "workflow",
272
+ "system",
273
+ "graceful_shutdown",
274
+ "context_limits",
275
+ "manual_supersede",
276
+ "crash_recovery",
277
+ "provider_fallback",
278
+ "workflow_retry"
279
+ ],
280
+ "description": "Why the task reached its terminal status, e.g. `failed` + `agent` (the agent chose to fail) vs `failed` + `error` (rate limit, crash, exit code). Absent while open and on rows finished before the field existed."
281
+ },
261
282
  "failureReason": {
262
283
  "type": "string"
263
284
  },
@@ -1927,6 +1948,137 @@
1927
1948
  "createdAt"
1928
1949
  ]
1929
1950
  },
1951
+ "DesignSystem": {
1952
+ "type": [
1953
+ "object",
1954
+ "null"
1955
+ ],
1956
+ "properties": {
1957
+ "v": {
1958
+ "type": "number",
1959
+ "enum": [
1960
+ 1
1961
+ ]
1962
+ },
1963
+ "status": {
1964
+ "type": "string",
1965
+ "enum": [
1966
+ "active",
1967
+ "declined"
1968
+ ]
1969
+ },
1970
+ "basePreset": {
1971
+ "type": "string"
1972
+ },
1973
+ "tokens": {
1974
+ "$ref": "#/components/schemas/PageThemeTokens"
1975
+ },
1976
+ "fontsHref": {
1977
+ "type": "string"
1978
+ },
1979
+ "logo": {
1980
+ "type": "object",
1981
+ "properties": {
1982
+ "url": {
1983
+ "type": "string",
1984
+ "minLength": 1,
1985
+ "maxLength": 2048
1986
+ },
1987
+ "alt": {
1988
+ "type": "string",
1989
+ "minLength": 1,
1990
+ "maxLength": 200
1991
+ }
1992
+ },
1993
+ "required": [
1994
+ "url",
1995
+ "alt"
1996
+ ]
1997
+ },
1998
+ "mode": {
1999
+ "type": "string",
2000
+ "enum": [
2001
+ "viewer",
2002
+ "light",
2003
+ "dark"
2004
+ ]
2005
+ },
2006
+ "chartPalette": {
2007
+ "type": "array",
2008
+ "items": {
2009
+ "type": "string"
2010
+ }
2011
+ },
2012
+ "source": {
2013
+ "type": "object",
2014
+ "properties": {
2015
+ "kind": {
2016
+ "type": "string",
2017
+ "enum": [
2018
+ "manual",
2019
+ "website",
2020
+ "brand-kit",
2021
+ "preset"
2022
+ ]
2023
+ },
2024
+ "ref": {
2025
+ "type": "string",
2026
+ "maxLength": 2048
2027
+ },
2028
+ "extractedAt": {
2029
+ "type": "string",
2030
+ "maxLength": 64
2031
+ }
2032
+ },
2033
+ "required": [
2034
+ "kind"
2035
+ ]
2036
+ },
2037
+ "updatedBy": {
2038
+ "type": [
2039
+ "string",
2040
+ "null"
2041
+ ]
2042
+ },
2043
+ "updatedByAgentId": {
2044
+ "type": "string"
2045
+ },
2046
+ "updatedAt": {
2047
+ "type": "string"
2048
+ }
2049
+ },
2050
+ "required": [
2051
+ "v",
2052
+ "status",
2053
+ "basePreset",
2054
+ "tokens",
2055
+ "mode",
2056
+ "source",
2057
+ "updatedBy",
2058
+ "updatedAt"
2059
+ ]
2060
+ },
2061
+ "PageThemeTokens": {
2062
+ "type": "object",
2063
+ "properties": {
2064
+ "light": {
2065
+ "type": "object",
2066
+ "additionalProperties": {
2067
+ "type": "string"
2068
+ }
2069
+ },
2070
+ "dark": {
2071
+ "type": "object",
2072
+ "additionalProperties": {
2073
+ "type": "string"
2074
+ }
2075
+ }
2076
+ },
2077
+ "required": [
2078
+ "light",
2079
+ "dark"
2080
+ ]
2081
+ },
1930
2082
  "SwarmEvent": {
1931
2083
  "type": "object",
1932
2084
  "properties": {
@@ -3640,30 +3792,6 @@
3640
3792
  }
3641
3793
  }
3642
3794
  },
3643
- "PageThemeTokens": {
3644
- "type": [
3645
- "object",
3646
- "null"
3647
- ],
3648
- "properties": {
3649
- "light": {
3650
- "type": "object",
3651
- "additionalProperties": {
3652
- "type": "string"
3653
- }
3654
- },
3655
- "dark": {
3656
- "type": "object",
3657
- "additionalProperties": {
3658
- "type": "string"
3659
- }
3660
- }
3661
- },
3662
- "required": [
3663
- "light",
3664
- "dark"
3665
- ]
3666
- },
3667
3795
  "Page": {
3668
3796
  "type": "object",
3669
3797
  "properties": {
@@ -3723,7 +3851,14 @@
3723
3851
  ]
3724
3852
  },
3725
3853
  "themeTokens": {
3726
- "$ref": "#/components/schemas/PageThemeTokens"
3854
+ "anyOf": [
3855
+ {
3856
+ "$ref": "#/components/schemas/PageThemeTokens"
3857
+ },
3858
+ {
3859
+ "type": "null"
3860
+ }
3861
+ ]
3727
3862
  },
3728
3863
  "designVersion": {
3729
3864
  "type": "integer",
@@ -3835,7 +3970,14 @@
3835
3970
  ]
3836
3971
  },
3837
3972
  "themeTokens": {
3838
- "$ref": "#/components/schemas/PageThemeTokens"
3973
+ "anyOf": [
3974
+ {
3975
+ "$ref": "#/components/schemas/PageThemeTokens"
3976
+ },
3977
+ {
3978
+ "type": "null"
3979
+ }
3980
+ ]
3839
3981
  },
3840
3982
  "designVersion": {
3841
3983
  "type": "integer",
@@ -5564,6 +5706,82 @@
5564
5706
  "null"
5565
5707
  ]
5566
5708
  },
5709
+ "avatar": {
5710
+ "oneOf": [
5711
+ {
5712
+ "type": "object",
5713
+ "properties": {
5714
+ "type": {
5715
+ "type": "string",
5716
+ "enum": [
5717
+ "lucide"
5718
+ ]
5719
+ },
5720
+ "icon": {
5721
+ "type": "string",
5722
+ "maxLength": 64,
5723
+ "pattern": "^[a-z0-9-]+$"
5724
+ },
5725
+ "color": {
5726
+ "type": "string",
5727
+ "pattern": "^#[0-9a-fA-F]{6}$"
5728
+ }
5729
+ },
5730
+ "required": [
5731
+ "type",
5732
+ "icon"
5733
+ ]
5734
+ },
5735
+ {
5736
+ "type": "object",
5737
+ "properties": {
5738
+ "type": {
5739
+ "type": "string",
5740
+ "enum": [
5741
+ "url"
5742
+ ]
5743
+ },
5744
+ "url": {
5745
+ "type": "string",
5746
+ "maxLength": 2048,
5747
+ "format": "uri"
5748
+ }
5749
+ },
5750
+ "required": [
5751
+ "type",
5752
+ "url"
5753
+ ]
5754
+ },
5755
+ {
5756
+ "type": "object",
5757
+ "properties": {
5758
+ "type": {
5759
+ "type": "string",
5760
+ "enum": [
5761
+ "agent-fs"
5762
+ ]
5763
+ },
5764
+ "path": {
5765
+ "type": "string",
5766
+ "minLength": 2,
5767
+ "maxLength": 1024
5768
+ },
5769
+ "orgId": {
5770
+ "type": "string",
5771
+ "minLength": 1
5772
+ },
5773
+ "driveId": {
5774
+ "type": "string",
5775
+ "minLength": 1
5776
+ }
5777
+ },
5778
+ "required": [
5779
+ "type",
5780
+ "path"
5781
+ ]
5782
+ }
5783
+ ]
5784
+ },
5567
5785
  "createdAt": {
5568
5786
  "type": "string",
5569
5787
  "format": "date-time"
@@ -15812,6 +16030,22 @@
15812
16030
  },
15813
16031
  "respondedAt": {
15814
16032
  "type": "string"
16033
+ },
16034
+ "via": {
16035
+ "type": "object",
16036
+ "properties": {
16037
+ "channel": {
16038
+ "type": "string"
16039
+ },
16040
+ "platformUserId": {
16041
+ "type": "string"
16042
+ }
16043
+ },
16044
+ "required": [
16045
+ "channel",
16046
+ "platformUserId"
16047
+ ],
16048
+ "description": "Set when the answer came from a chat button: the channel and the platform user."
15815
16049
  }
15816
16050
  },
15817
16051
  "required": [
@@ -16316,6 +16550,22 @@
16316
16550
  },
16317
16551
  "respondedAt": {
16318
16552
  "type": "string"
16553
+ },
16554
+ "via": {
16555
+ "type": "object",
16556
+ "properties": {
16557
+ "channel": {
16558
+ "type": "string"
16559
+ },
16560
+ "platformUserId": {
16561
+ "type": "string"
16562
+ }
16563
+ },
16564
+ "required": [
16565
+ "channel",
16566
+ "platformUserId"
16567
+ ],
16568
+ "description": "Set when the answer came from a chat button: the channel and the platform user."
16319
16569
  }
16320
16570
  },
16321
16571
  "required": [
@@ -16891,6 +17141,22 @@
16891
17141
  },
16892
17142
  "respondedAt": {
16893
17143
  "type": "string"
17144
+ },
17145
+ "via": {
17146
+ "type": "object",
17147
+ "properties": {
17148
+ "channel": {
17149
+ "type": "string"
17150
+ },
17151
+ "platformUserId": {
17152
+ "type": "string"
17153
+ }
17154
+ },
17155
+ "required": [
17156
+ "channel",
17157
+ "platformUserId"
17158
+ ],
17159
+ "description": "Set when the answer came from a chat button: the channel and the platform user."
16894
17160
  }
16895
17161
  },
16896
17162
  "required": [
@@ -17375,6 +17641,22 @@
17375
17641
  },
17376
17642
  "respondedAt": {
17377
17643
  "type": "string"
17644
+ },
17645
+ "via": {
17646
+ "type": "object",
17647
+ "properties": {
17648
+ "channel": {
17649
+ "type": "string"
17650
+ },
17651
+ "platformUserId": {
17652
+ "type": "string"
17653
+ }
17654
+ },
17655
+ "required": [
17656
+ "channel",
17657
+ "platformUserId"
17658
+ ],
17659
+ "description": "Set when the answer came from a chat button: the channel and the platform user."
17378
17660
  }
17379
17661
  },
17380
17662
  "required": [
@@ -17881,6 +18163,22 @@
17881
18163
  },
17882
18164
  "respondedAt": {
17883
18165
  "type": "string"
18166
+ },
18167
+ "via": {
18168
+ "type": "object",
18169
+ "properties": {
18170
+ "channel": {
18171
+ "type": "string"
18172
+ },
18173
+ "platformUserId": {
18174
+ "type": "string"
18175
+ }
18176
+ },
18177
+ "required": [
18178
+ "channel",
18179
+ "platformUserId"
18180
+ ],
18181
+ "description": "Set when the answer came from a chat button: the channel and the platform user."
17884
18182
  }
17885
18183
  },
17886
18184
  "required": [
@@ -21059,6 +21357,32 @@
21059
21357
  },
21060
21358
  "authFailureFence": {
21061
21359
  "type": "integer"
21360
+ },
21361
+ "keyUsage": {
21362
+ "type": "array",
21363
+ "items": {
21364
+ "type": "number"
21365
+ }
21366
+ },
21367
+ "keyPace": {
21368
+ "type": "array",
21369
+ "items": {
21370
+ "type": "number"
21371
+ }
21372
+ },
21373
+ "selectionStrategy": {
21374
+ "type": "string",
21375
+ "enum": [
21376
+ "pace",
21377
+ "usage"
21378
+ ]
21379
+ },
21380
+ "activeSessions": {
21381
+ "type": "array",
21382
+ "items": {
21383
+ "type": "integer",
21384
+ "minimum": 0
21385
+ }
21062
21386
  }
21063
21387
  },
21064
21388
  "required": [
@@ -21066,7 +21390,11 @@
21066
21390
  "availableIndices",
21067
21391
  "totalKeys",
21068
21392
  "spendCappedIndices",
21069
- "authFailureFence"
21393
+ "authFailureFence",
21394
+ "keyUsage",
21395
+ "keyPace",
21396
+ "selectionStrategy",
21397
+ "activeSessions"
21070
21398
  ]
21071
21399
  }
21072
21400
  }
@@ -23468,6 +23796,235 @@
23468
23796
  }
23469
23797
  }
23470
23798
  },
23799
+ "/api/design-system": {
23800
+ "get": {
23801
+ "summary": "Get the org design system",
23802
+ "tags": [
23803
+ "Pages"
23804
+ ],
23805
+ "security": [
23806
+ {
23807
+ "bearerAuth": []
23808
+ }
23809
+ ],
23810
+ "responses": {
23811
+ "200": {
23812
+ "description": "The org design system and the value it replaced",
23813
+ "content": {
23814
+ "application/json": {
23815
+ "schema": {
23816
+ "type": "object",
23817
+ "properties": {
23818
+ "status": {
23819
+ "type": "string",
23820
+ "enum": [
23821
+ "none",
23822
+ "invalid",
23823
+ "active",
23824
+ "declined"
23825
+ ]
23826
+ },
23827
+ "designSystem": {
23828
+ "$ref": "#/components/schemas/DesignSystem"
23829
+ },
23830
+ "invalidReason": {
23831
+ "type": "string"
23832
+ },
23833
+ "previous": {
23834
+ "$ref": "#/components/schemas/DesignSystem"
23835
+ }
23836
+ },
23837
+ "required": [
23838
+ "status",
23839
+ "designSystem",
23840
+ "previous"
23841
+ ]
23842
+ }
23843
+ }
23844
+ }
23845
+ }
23846
+ }
23847
+ },
23848
+ "put": {
23849
+ "summary": "Set or decline the org design system",
23850
+ "tags": [
23851
+ "Pages"
23852
+ ],
23853
+ "security": [
23854
+ {
23855
+ "bearerAuth": []
23856
+ }
23857
+ ],
23858
+ "requestBody": {
23859
+ "content": {
23860
+ "application/json": {
23861
+ "schema": {
23862
+ "type": "object",
23863
+ "properties": {
23864
+ "status": {
23865
+ "type": "string",
23866
+ "enum": [
23867
+ "active",
23868
+ "declined"
23869
+ ],
23870
+ "description": "\"active\" (default) saves the design system. \"declined\" records that the requester does not want one, so agents stop asking. A declined record keeps only `source`."
23871
+ },
23872
+ "basePreset": {
23873
+ "type": "string",
23874
+ "description": "Preset id the tokens apply on top of, for example hive or paper. Default hive."
23875
+ },
23876
+ "themeTokens": {
23877
+ "type": "object",
23878
+ "properties": {
23879
+ "format": {
23880
+ "type": "string",
23881
+ "enum": [
23882
+ "tokens",
23883
+ "css"
23884
+ ]
23885
+ },
23886
+ "light": {
23887
+ "type": "object",
23888
+ "additionalProperties": {
23889
+ "type": "string"
23890
+ }
23891
+ },
23892
+ "dark": {
23893
+ "type": "object",
23894
+ "additionalProperties": {
23895
+ "type": "string"
23896
+ }
23897
+ },
23898
+ "css": {
23899
+ "type": "string"
23900
+ }
23901
+ },
23902
+ "additionalProperties": false,
23903
+ "description": "Token overrides on top of the base preset, in the same formats as create_page themeTokens: { light, dark } maps, or { format: \"css\", css } with a shadcn, tweakcn or Tailwind v4 variable block."
23904
+ },
23905
+ "fontsHref": {
23906
+ "type": "string",
23907
+ "maxLength": 2048,
23908
+ "description": "Google Fonts stylesheet URL (https://fonts.googleapis.com/...) that loads the fonts the tokens name."
23909
+ },
23910
+ "logo": {
23911
+ "type": "object",
23912
+ "properties": {
23913
+ "url": {
23914
+ "type": "string",
23915
+ "minLength": 1,
23916
+ "maxLength": 2048
23917
+ },
23918
+ "alt": {
23919
+ "type": "string",
23920
+ "minLength": 1,
23921
+ "maxLength": 200
23922
+ }
23923
+ },
23924
+ "required": [
23925
+ "url",
23926
+ "alt"
23927
+ ],
23928
+ "description": "https logo URL and its alt text."
23929
+ },
23930
+ "mode": {
23931
+ "type": "string",
23932
+ "enum": [
23933
+ "viewer",
23934
+ "light",
23935
+ "dark"
23936
+ ],
23937
+ "description": "\"viewer\" (default) follows the viewer's light or dark mode. \"light\" or \"dark\" locks every page to that mode."
23938
+ },
23939
+ "chartPalette": {
23940
+ "type": "array",
23941
+ "items": {
23942
+ "type": "string"
23943
+ },
23944
+ "maxItems": 12,
23945
+ "description": "Ordered chart series colors, as CSS color values."
23946
+ },
23947
+ "source": {
23948
+ "type": "object",
23949
+ "properties": {
23950
+ "kind": {
23951
+ "type": "string",
23952
+ "enum": [
23953
+ "manual",
23954
+ "website",
23955
+ "brand-kit",
23956
+ "preset"
23957
+ ]
23958
+ },
23959
+ "ref": {
23960
+ "type": "string",
23961
+ "maxLength": 2048
23962
+ },
23963
+ "extractedAt": {
23964
+ "type": "string",
23965
+ "maxLength": 64
23966
+ }
23967
+ },
23968
+ "required": [
23969
+ "kind"
23970
+ ],
23971
+ "description": "Where the design system came from. Default { kind: manual }."
23972
+ }
23973
+ },
23974
+ "additionalProperties": false
23975
+ }
23976
+ }
23977
+ }
23978
+ },
23979
+ "responses": {
23980
+ "200": {
23981
+ "description": "The saved, normalized design system",
23982
+ "content": {
23983
+ "application/json": {
23984
+ "schema": {
23985
+ "type": "object",
23986
+ "properties": {
23987
+ "designSystem": {
23988
+ "$ref": "#/components/schemas/DesignSystem"
23989
+ },
23990
+ "ignoredTokens": {
23991
+ "type": "array",
23992
+ "items": {
23993
+ "type": "string"
23994
+ }
23995
+ }
23996
+ },
23997
+ "required": [
23998
+ "designSystem",
23999
+ "ignoredTokens"
24000
+ ]
24001
+ }
24002
+ }
24003
+ }
24004
+ },
24005
+ "400": {
24006
+ "description": "Invalid design system",
24007
+ "content": {
24008
+ "application/json": {
24009
+ "schema": {
24010
+ "$ref": "#/components/schemas/ErrorResponse"
24011
+ }
24012
+ }
24013
+ }
24014
+ },
24015
+ "403": {
24016
+ "description": "Permission denied",
24017
+ "content": {
24018
+ "application/json": {
24019
+ "schema": {
24020
+ "$ref": "#/components/schemas/ErrorResponse"
24021
+ }
24022
+ }
24023
+ }
24024
+ }
24025
+ }
24026
+ }
24027
+ },
23471
24028
  "/api/events": {
23472
24029
  "post": {
23473
24030
  "summary": "Store a single event",
@@ -26641,7 +27198,7 @@
26641
27198
  "/api/github/installation-token": {
26642
27199
  "post": {
26643
27200
  "summary": "Mint a GitHub App installation token for worker git and gh",
26644
- "description": "Internal worker endpoint. Returns a short-lived installation token for the installation in `GITHUB_APP_INSTALLATION_ID`, minted with the API server's GitHub App credentials. The caller cannot choose the installation. Only a registered agent (swarm API key plus X-Agent-ID, or an agent or runtime token) may call it; user, guest and ACP task tokens are refused. 404 when the App or the installation id is not configured, so workers fall back to `GITHUB_TOKEN`.",
27201
+ "description": "Internal worker endpoint. Returns a short-lived installation token for worker `git` and `gh`. With a `repo` (`owner/name`) whose owner is listed in the deployment env `GITHUB_APP_REPO_OWNERS`, the API resolves that repository's App installation with the App JWT and mints for it; the repository must also be registered in `swarm_repos` on the configured GitHub host (403 otherwise). Any other call mints for the installation in `GITHUB_APP_INSTALLATION_ID`, so single-installation deployments are unchanged and a caller never picks an installation the operator did not list. Only a registered agent (swarm API key plus X-Agent-ID, or an agent or runtime token) may call it; user, guest and ACP task tokens are refused. 404 when the App is not configured, so workers fall back to `GITHUB_TOKEN`.",
26645
27202
  "tags": [
26646
27203
  "GitHub"
26647
27204
  ],
@@ -26655,7 +27212,13 @@
26655
27212
  "application/json": {
26656
27213
  "schema": {
26657
27214
  "type": "object",
26658
- "properties": {}
27215
+ "properties": {
27216
+ "repo": {
27217
+ "type": "string",
27218
+ "maxLength": 200,
27219
+ "pattern": "^[A-Za-z0-9_.-]+\\/[A-Za-z0-9_.-]+$"
27220
+ }
27221
+ }
26659
27222
  }
26660
27223
  }
26661
27224
  }
@@ -26684,7 +27247,7 @@
26684
27247
  }
26685
27248
  },
26686
27249
  "403": {
26687
- "description": "Caller is not a registered agent",
27250
+ "description": "Caller is not a registered agent, or the repo of a listed owner is not registered in the swarm",
26688
27251
  "content": {
26689
27252
  "application/json": {
26690
27253
  "schema": {
@@ -26704,7 +27267,7 @@
26704
27267
  }
26705
27268
  },
26706
27269
  "502": {
26707
- "description": "GitHub refused or failed to mint the token",
27270
+ "description": "GitHub refused or failed to mint the token, or the repo has no App installation",
26708
27271
  "content": {
26709
27272
  "application/json": {
26710
27273
  "schema": {
@@ -39019,6 +39582,33 @@
39019
39582
  "name": "status",
39020
39583
  "in": "query"
39021
39584
  },
39585
+ {
39586
+ "schema": {
39587
+ "type": "string",
39588
+ "enum": [
39589
+ "agent",
39590
+ "runner",
39591
+ "deferred",
39592
+ "error",
39593
+ "cascade",
39594
+ "external",
39595
+ "user",
39596
+ "workflow",
39597
+ "system",
39598
+ "graceful_shutdown",
39599
+ "context_limits",
39600
+ "manual_supersede",
39601
+ "crash_recovery",
39602
+ "provider_fallback",
39603
+ "workflow_retry"
39604
+ ],
39605
+ "description": "Why the task ended, e.g. `status=failed&statusKind=error` (crash, rate limit, exit code) vs `statusKind=agent` (the agent chose to fail). Valid kinds per status: TASK_STATUS_KINDS in src/types.ts."
39606
+ },
39607
+ "required": false,
39608
+ "description": "Why the task ended, e.g. `status=failed&statusKind=error` (crash, rate limit, exit code) vs `statusKind=agent` (the agent chose to fail). Valid kinds per status: TASK_STATUS_KINDS in src/types.ts.",
39609
+ "name": "statusKind",
39610
+ "in": "query"
39611
+ },
39022
39612
  {
39023
39613
  "schema": {
39024
39614
  "type": "string"
@@ -39406,6 +39996,27 @@
39406
39996
  "type": "string",
39407
39997
  "format": "date-time"
39408
39998
  },
39999
+ "statusKind": {
40000
+ "type": "string",
40001
+ "enum": [
40002
+ "agent",
40003
+ "runner",
40004
+ "deferred",
40005
+ "error",
40006
+ "cascade",
40007
+ "external",
40008
+ "user",
40009
+ "workflow",
40010
+ "system",
40011
+ "graceful_shutdown",
40012
+ "context_limits",
40013
+ "manual_supersede",
40014
+ "crash_recovery",
40015
+ "provider_fallback",
40016
+ "workflow_retry"
40017
+ ],
40018
+ "description": "Why the task reached its terminal status, e.g. `failed` + `agent` (the agent chose to fail) vs `failed` + `error` (rate limit, crash, exit code). Absent while open and on rows finished before the field existed."
40019
+ },
39409
40020
  "peakContextPercent": {
39410
40021
  "type": "number",
39411
40022
  "minimum": 0,
@@ -41074,6 +41685,27 @@
41074
41685
  "type": "string",
41075
41686
  "format": "date-time"
41076
41687
  },
41688
+ "statusKind": {
41689
+ "type": "string",
41690
+ "enum": [
41691
+ "agent",
41692
+ "runner",
41693
+ "deferred",
41694
+ "error",
41695
+ "cascade",
41696
+ "external",
41697
+ "user",
41698
+ "workflow",
41699
+ "system",
41700
+ "graceful_shutdown",
41701
+ "context_limits",
41702
+ "manual_supersede",
41703
+ "crash_recovery",
41704
+ "provider_fallback",
41705
+ "workflow_retry"
41706
+ ],
41707
+ "description": "Why the task reached its terminal status, e.g. `failed` + `agent` (the agent chose to fail) vs `failed` + `error` (rate limit, crash, exit code). Absent while open and on rows finished before the field existed."
41708
+ },
41077
41709
  "peakContextPercent": {
41078
41710
  "type": "number",
41079
41711
  "minimum": 0,
@@ -42707,7 +43339,14 @@
42707
43339
  ]
42708
43340
  },
42709
43341
  "themeTokens": {
42710
- "$ref": "#/components/schemas/PageThemeTokens"
43342
+ "anyOf": [
43343
+ {
43344
+ "$ref": "#/components/schemas/PageThemeTokens"
43345
+ },
43346
+ {
43347
+ "type": "null"
43348
+ }
43349
+ ]
42711
43350
  },
42712
43351
  "designVersion": {
42713
43352
  "type": "integer",
@@ -43185,6 +43824,16 @@
43185
43824
  }
43186
43825
  }
43187
43826
  },
43827
+ "403": {
43828
+ "description": "Caller may not open pages",
43829
+ "content": {
43830
+ "application/json": {
43831
+ "schema": {
43832
+ "$ref": "#/components/schemas/ErrorResponse"
43833
+ }
43834
+ }
43835
+ }
43836
+ },
43188
43837
  "404": {
43189
43838
  "description": "Page not found",
43190
43839
  "content": {
@@ -59726,6 +60375,27 @@
59726
60375
  "type": "string",
59727
60376
  "format": "date-time"
59728
60377
  },
60378
+ "statusKind": {
60379
+ "type": "string",
60380
+ "enum": [
60381
+ "agent",
60382
+ "runner",
60383
+ "deferred",
60384
+ "error",
60385
+ "cascade",
60386
+ "external",
60387
+ "user",
60388
+ "workflow",
60389
+ "system",
60390
+ "graceful_shutdown",
60391
+ "context_limits",
60392
+ "manual_supersede",
60393
+ "crash_recovery",
60394
+ "provider_fallback",
60395
+ "workflow_retry"
60396
+ ],
60397
+ "description": "Why the task reached its terminal status, e.g. `failed` + `agent` (the agent chose to fail) vs `failed` + `error` (rate limit, crash, exit code). Absent while open and on rows finished before the field existed."
60398
+ },
59729
60399
  "peakContextPercent": {
59730
60400
  "type": "number",
59731
60401
  "minimum": 0,
@@ -70303,6 +70973,85 @@
70303
70973
  "suspended"
70304
70974
  ]
70305
70975
  },
70976
+ "avatar": {
70977
+ "oneOf": [
70978
+ {
70979
+ "type": "object",
70980
+ "properties": {
70981
+ "type": {
70982
+ "type": "string",
70983
+ "enum": [
70984
+ "lucide"
70985
+ ]
70986
+ },
70987
+ "icon": {
70988
+ "type": "string",
70989
+ "maxLength": 64,
70990
+ "pattern": "^[a-z0-9-]+$"
70991
+ },
70992
+ "color": {
70993
+ "type": "string",
70994
+ "pattern": "^#[0-9a-fA-F]{6}$"
70995
+ }
70996
+ },
70997
+ "required": [
70998
+ "type",
70999
+ "icon"
71000
+ ]
71001
+ },
71002
+ {
71003
+ "type": "object",
71004
+ "properties": {
71005
+ "type": {
71006
+ "type": "string",
71007
+ "enum": [
71008
+ "url"
71009
+ ]
71010
+ },
71011
+ "url": {
71012
+ "type": "string",
71013
+ "maxLength": 2048,
71014
+ "format": "uri"
71015
+ }
71016
+ },
71017
+ "required": [
71018
+ "type",
71019
+ "url"
71020
+ ]
71021
+ },
71022
+ {
71023
+ "type": "object",
71024
+ "properties": {
71025
+ "type": {
71026
+ "type": "string",
71027
+ "enum": [
71028
+ "agent-fs"
71029
+ ]
71030
+ },
71031
+ "path": {
71032
+ "type": "string",
71033
+ "minLength": 2,
71034
+ "maxLength": 1024
71035
+ },
71036
+ "orgId": {
71037
+ "type": "string",
71038
+ "minLength": 1
71039
+ },
71040
+ "driveId": {
71041
+ "type": "string",
71042
+ "minLength": 1
71043
+ }
71044
+ },
71045
+ "required": [
71046
+ "type",
71047
+ "path"
71048
+ ]
71049
+ },
71050
+ {
71051
+ "type": "null"
71052
+ }
71053
+ ]
71054
+ },
70306
71055
  "identities": {
70307
71056
  "type": "array",
70308
71057
  "items": {
@@ -71336,6 +72085,85 @@
71336
72085
  "suspended"
71337
72086
  ]
71338
72087
  },
72088
+ "avatar": {
72089
+ "oneOf": [
72090
+ {
72091
+ "type": "object",
72092
+ "properties": {
72093
+ "type": {
72094
+ "type": "string",
72095
+ "enum": [
72096
+ "lucide"
72097
+ ]
72098
+ },
72099
+ "icon": {
72100
+ "type": "string",
72101
+ "maxLength": 64,
72102
+ "pattern": "^[a-z0-9-]+$"
72103
+ },
72104
+ "color": {
72105
+ "type": "string",
72106
+ "pattern": "^#[0-9a-fA-F]{6}$"
72107
+ }
72108
+ },
72109
+ "required": [
72110
+ "type",
72111
+ "icon"
72112
+ ]
72113
+ },
72114
+ {
72115
+ "type": "object",
72116
+ "properties": {
72117
+ "type": {
72118
+ "type": "string",
72119
+ "enum": [
72120
+ "url"
72121
+ ]
72122
+ },
72123
+ "url": {
72124
+ "type": "string",
72125
+ "maxLength": 2048,
72126
+ "format": "uri"
72127
+ }
72128
+ },
72129
+ "required": [
72130
+ "type",
72131
+ "url"
72132
+ ]
72133
+ },
72134
+ {
72135
+ "type": "object",
72136
+ "properties": {
72137
+ "type": {
72138
+ "type": "string",
72139
+ "enum": [
72140
+ "agent-fs"
72141
+ ]
72142
+ },
72143
+ "path": {
72144
+ "type": "string",
72145
+ "minLength": 2,
72146
+ "maxLength": 1024
72147
+ },
72148
+ "orgId": {
72149
+ "type": "string",
72150
+ "minLength": 1
72151
+ },
72152
+ "driveId": {
72153
+ "type": "string",
72154
+ "minLength": 1
72155
+ }
72156
+ },
72157
+ "required": [
72158
+ "type",
72159
+ "path"
72160
+ ]
72161
+ },
72162
+ {
72163
+ "type": "null"
72164
+ }
72165
+ ]
72166
+ },
71339
72167
  "identities": {
71340
72168
  "type": "array",
71341
72169
  "items": {