@desplega.ai/agent-swarm 1.160.0 → 1.162.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 (398) hide show
  1. package/README.md +4 -3
  2. package/dist/{acp-adapter-2mjwcsfh.js → acp-adapter-74m73ae9.js} +163 -49
  3. package/dist/{actions-e43rxskr.js → actions-4sr14gnt.js} +42 -38
  4. package/dist/{anthropic-messages-5qx80j9k.js → anthropic-messages-8xxrzky9.js} +22 -26
  5. package/dist/{app-mc7xfagn.js → app-pt68fbwp.js} +17 -14
  6. package/dist/{artifact-3v5t9jtg.js → artifact-fey7dvj9.js} +3 -2
  7. package/dist/{assistant-sedkzv3b.js → assistant-cv3jytks.js} +43 -39
  8. package/dist/{azure-openai-responses-nfb21z9a.js → azure-openai-responses-f5cqsyj8.js} +15 -10
  9. package/dist/{boot-reembed-m3656j2n.js → boot-reembed-4ht4gqth.js} +17 -14
  10. package/dist/{boot-reembed-cqz9swn5.js → boot-reembed-nxpcvpj9.js} +16 -13
  11. package/dist/{boot-scrub-logs-xbxf5d7w.js → boot-scrub-logs-k93kyw8k.js} +13 -10
  12. package/dist/boot-seeds-1skcrs0e.js +32 -0
  13. package/dist/{claude-adapter-dc6289mc.js → claude-adapter-r5g0tzge.js} +39 -30
  14. package/dist/{claude-managed-adapter-naaw51me.js → claude-managed-adapter-yxkfxg8j.js} +6 -5
  15. package/dist/{claude-managed-setup-eacvchx0.js → claude-managed-setup-pkyrgshb.js} +27 -27
  16. package/dist/{claude-sdk-session-bqp2xvym.js → claude-sdk-session-jxyxnrwd.js} +8041 -7910
  17. package/dist/{cli-4derpgyk.js → cli-2hhfhfq5.js} +6 -1
  18. package/dist/{cli-rykfmgwg.js → cli-2x0e561b.js} +1 -1
  19. package/dist/{cli-tzx2ke1v.js → cli-2zy95vhm.js} +137 -64
  20. package/dist/{cli-0x01kwrd.js → cli-4cwxn7gp.js} +47 -186
  21. package/dist/{cli-xjcywfsf.js → cli-4dcpaefp.js} +12 -11
  22. package/dist/{cli-v7fn5gms.js → cli-4x0csdjq.js} +164 -76
  23. package/dist/{cli-12tszpk9.js → cli-5bcd7sfy.js} +91 -29
  24. package/dist/{cli-jz4w45qt.js → cli-5k6k8ta3.js} +190 -50
  25. package/dist/{cli-tpq83z89.js → cli-5xhpb3kv.js} +20 -19
  26. package/dist/{cli-r1mxd1xh.js → cli-7af8yhav.js} +6 -179
  27. package/dist/{cli-jajnsm8q.js → cli-7tre70zp.js} +18160 -31345
  28. package/dist/{cli-447dt1h3.js → cli-8ev9xqnx.js} +218 -25
  29. package/dist/cli-bsky8g7w.js +449 -0
  30. package/dist/{cli-0z2v4nhw.js → cli-cat6h73s.js} +1 -1
  31. package/dist/{cli-25fcq4b4.js → cli-cebmgwsc.js} +15 -11
  32. package/dist/{cli-shkxm1vn.js → cli-cvatsam7.js} +189 -13
  33. package/dist/{cli-2658f6at.js → cli-cvk6yzw5.js} +6 -8
  34. package/dist/cli-dbmwby6a.js +9 -0
  35. package/dist/{cli-ptr8h7kp.js → cli-eg0b3p0k.js} +5 -218
  36. package/dist/cli-f9w1semm.js +413 -0
  37. package/dist/{cli-523679eh.js → cli-g739zqzt.js} +6 -5
  38. package/dist/{cli-dv6cdjs2.js → cli-gd4favx9.js} +28 -7
  39. package/dist/{cli-c8a36vcc.js → cli-gpqpmns7.js} +2 -2
  40. package/dist/{cli-5nbmpy8w.js → cli-hb5c2x5y.js} +1 -1
  41. package/dist/{cli-741yb0xx.js → cli-hmsw1gpy.js} +55 -169
  42. package/dist/{cli-qydf22qq.js → cli-jf7wmv1r.js} +2562 -735
  43. package/dist/{cli-mfe5btp9.js → cli-jxs2ygaw.js} +317 -121
  44. package/dist/{cli-kmcpfwn2.js → cli-jyy6pm2f.js} +19 -3
  45. package/dist/cli-kdkwd3yr.js +615 -0
  46. package/dist/{cli-6cs6wzxt.js → cli-kh04eqwe.js} +2 -2
  47. package/dist/{cli-9hsgwz4w.js → cli-kp42yek0.js} +1309 -391
  48. package/dist/cli-ma3zvh39.js +10404 -0
  49. package/dist/{cli-ybgv4kw2.js → cli-mbssg1xv.js} +9 -2
  50. package/dist/{cli-jsp14b6c.js → cli-mzfth0bp.js} +38 -1
  51. package/dist/{cli-r2ap2czm.js → cli-nexqx4ve.js} +6 -0
  52. package/dist/{cli-f8gy6r2r.js → cli-nq7yqw7b.js} +19 -8
  53. package/dist/{cli-10nhj6xq.js → cli-nt8hecg9.js} +34 -33
  54. package/dist/cli-p0r8sxj5.js +303 -0
  55. package/dist/{cli-58e8yr0d.js → cli-pkd6s2wy.js} +4 -2
  56. package/dist/{cli-a8dvhzrt.js → cli-q24re23n.js} +7 -5
  57. package/dist/cli-qjjvzwzd.js +222 -0
  58. package/dist/cli-qrgt5bqf.js +189 -0
  59. package/dist/{cli-et8m9xsv.js → cli-rfjw9jw2.js} +22 -10
  60. package/dist/{cli-7e398j1h.js → cli-rj0gqwwp.js} +3 -3
  61. package/dist/{cli-btfv8y88.js → cli-rnyzn44p.js} +2 -2
  62. package/dist/{cli-d5czme6m.js → cli-s3hwpt9v.js} +4754 -4945
  63. package/dist/{cli-0jwe9034.js → cli-sptrj5f5.js} +3 -3
  64. package/dist/{cli-0q3avq3s.js → cli-sqvfa090.js} +19 -11
  65. package/dist/{cli-azhgzetg.js → cli-swfmp1fx.js} +27 -27
  66. package/dist/{cli-jyk0ynw2.js → cli-t845n9xk.js} +23 -10
  67. package/dist/{cli-zpep9q5e.js → cli-tcen9p5w.js} +20 -15
  68. package/dist/{cli-74h9hscv.js → cli-tre4bdgq.js} +1 -1
  69. package/dist/{cli-pm1rst0h.js → cli-twrh04ap.js} +30 -15
  70. package/dist/{cli-phsaj4xq.js → cli-v0pvvhfq.js} +1 -1
  71. package/dist/{cli-ydmcgve1.js → cli-vc9bp061.js} +5 -5
  72. package/dist/{cli-g2whhdrf.js → cli-vxe6qa4h.js} +1 -1
  73. package/dist/{cli-vctdqs5h.js → cli-vy3ed88x.js} +15 -2
  74. package/dist/{cli-br0qdrnp.js → cli-vyqs9ya8.js} +18 -18
  75. package/dist/{cli-cpvsaqsw.js → cli-w0bwte75.js} +8 -5
  76. package/dist/cli-wbvnn6tk.js +861 -0
  77. package/dist/{cli-r94z9p1z.js → cli-wgbezhw2.js} +3 -0
  78. package/dist/{cli-evvtk35y.js → cli-wjgs5wxe.js} +7 -7
  79. package/dist/cli-wxkkd0e0.js +33 -0
  80. package/dist/{cli-0wgxmwf6.js → cli-xk79303e.js} +20 -7
  81. package/dist/{cli-ktmyrtpn.js → cli-xqpk3rp7.js} +33 -10
  82. package/dist/{cli-ygwm91nt.js → cli-yy6dew39.js} +1 -1
  83. package/dist/cli-zp38xvtm.js +9487 -0
  84. package/dist/{cli-tfky2838.js → cli-zvhd3f64.js} +4 -4
  85. package/dist/{cli-jayjpjmb.js → cli-zxqx25nz.js} +66 -23
  86. package/dist/cli.js +40 -32
  87. package/dist/{cloudflare-workers-ai-system-one-k6fbxw9d.js → cloudflare-workers-ai-system-one-k8ddqjkq.js} +8 -6
  88. package/dist/{codex-adapter-nmxcatww.js → codex-adapter-esvmnhn7.js} +24 -23
  89. package/dist/{codex-hook-20me6byw.js → codex-hook-m73jmqgx.js} +19 -3
  90. package/dist/{codex-login-w6fz4xbz.js → codex-login-cf7mzsgg.js} +2 -2
  91. package/dist/{codex-session-runner-90aa80ev.js → codex-session-runner-ban9excr.js} +24 -23
  92. package/dist/{commands-8wcq1kn7.js → commands-75413p2n.js} +13 -10
  93. package/dist/{db-j40kc4se.js → db-7f5pecwg.js} +17 -10
  94. package/dist/{dispatcher-4zqy768d.js → dispatcher-fh9at8nz.js} +41 -37
  95. package/dist/dsh-adapter-wpze65d4.js +24 -0
  96. package/dist/{e2b-ez07znam.js → e2b-gjgdjp91.js} +12 -9
  97. package/dist/easter-egg-3d-3w5c2n4c.js +1057 -0
  98. package/dist/{execute-6e7qeyk4.js → execute-f50wg9nh.js} +203 -49
  99. package/dist/{google-generative-ai-k6n5nbpp.js → google-generative-ai-jxxpnegy.js} +2 -2
  100. package/dist/{google-vertex-44xxtcvp.js → google-vertex-x7q1angm.js} +5 -5
  101. package/dist/{handlers-kjdce1w5.js → handlers-w13787bb.js} +44 -40
  102. package/dist/{hook-r2t4bqfg.js → hook-46g1jrvx.js} +34 -20
  103. package/dist/{hook-czx13n12.js → hook-4tpts2ry.js} +25 -21
  104. package/dist/{http-3bbb19be.js → http-19pzbfrt.js} +1440 -283
  105. package/dist/{index-668me3f0.js → index-8fd4dm4h.js} +42 -38
  106. package/dist/{index-fg0dsp6c.js → index-dqmp15bq.js} +41 -37
  107. package/dist/{index-kkv84jq9.js → index-qb4q1y3e.js} +41 -37
  108. package/dist/index-s75wc4wd.js +33 -0
  109. package/dist/{index-zg7vp46x.js → index-scptvdxg.js} +64 -38
  110. package/dist/{keepalive-yra8dy57.js → keepalive-xa5ts9cd.js} +15 -12
  111. package/dist/{lead-va0pad2c.js → lead-qp4xkvjq.js} +59 -54
  112. package/dist/{maintenance-hqewtmyg.js → maintenance-rm5885hm.js} +17 -14
  113. package/dist/{mistral-conversations-pc3ntnxt.js → mistral-conversations-rw7fbt22.js} +4 -4
  114. package/dist/{node-a5e00qhp.js → node-8zkdq42h.js} +834 -833
  115. package/dist/node-f0ykebbv.js +2107 -0
  116. package/dist/node-wyamey5r.js +19 -0
  117. package/dist/{oauth-refresh-sweep-7rdt1m9n.js → oauth-refresh-sweep-1csdfebf.js} +14 -11
  118. package/dist/{onboard-j6ms6d0x.js → onboard-r6b78cs4.js} +10 -10
  119. package/dist/{openai-codex-responses-bbancrr0.js → openai-codex-responses-efvrgrq3.js} +4 -4
  120. package/dist/{openai-completions-jpaj5g2b.js → openai-completions-bbbrrz4z.js} +12 -8
  121. package/dist/{openai-responses-200k1wx4.js → openai-responses-9jjyrcm1.js} +15 -10
  122. package/dist/{opencode-adapter-89rabkw2.js → opencode-adapter-kb3g6pkf.js} +12 -9
  123. package/dist/{otel-impl-a792rjz0.js → otel-impl-0y9knpky.js} +6 -6
  124. package/dist/{pi-mono-adapter-g7qzvr3v.js → pi-mono-adapter-z6s1bme2.js} +128 -37
  125. package/dist/{pricing-refresh-wx0tp7cb.js → pricing-refresh-mth26tgp.js} +15 -12
  126. package/dist/{rbac-roles-8tzawacv.js → rbac-roles-kwntb23q.js} +17 -12
  127. package/dist/rbac-roles-vpk4ebm8.js +45 -0
  128. package/dist/{registry-v5wytg0s.js → registry-km6t1jd2.js} +1 -1
  129. package/dist/{render-v2-mm7zswb8.js → render-v2-hcm7h00y.js} +17 -14
  130. package/dist/{runtime-zyssgse0.js → runtime-vfjsfsc5.js} +5 -4
  131. package/dist/{setup-8y70ys6t.js → setup-hbyzd65h.js} +2 -2
  132. package/dist/{virtual-modules-6nmk7h3n.js → virtual-modules-9bv7ry91.js} +9 -7
  133. package/dist/{work-objects-fg6xkb0n.js → work-objects-m09sxnhe.js} +44 -40
  134. package/dist/{worker-wmwhxsph.js → worker-0h35rvk4.js} +59 -54
  135. package/dist/{x-n3e0v3xa.js → x-f1gt1pz3.js} +2 -2
  136. package/openapi.json +699 -26
  137. package/package.json +19 -11
  138. package/src/azure-devops/api.ts +121 -0
  139. package/src/azure-devops/auth.ts +78 -0
  140. package/src/azure-devops/handlers.ts +413 -0
  141. package/src/azure-devops/index.ts +27 -0
  142. package/src/azure-devops/templates.ts +108 -0
  143. package/src/azure-devops/types.ts +90 -0
  144. package/src/be/api-drain.ts +184 -0
  145. package/src/be/db/tasks/read.ts +32 -7
  146. package/src/be/db/tasks/write.ts +21 -4
  147. package/src/be/db-client.ts +11 -2
  148. package/src/be/db-retention.ts +95 -32
  149. package/src/be/db.ts +44 -19
  150. package/src/be/memory/constants.ts +16 -0
  151. package/src/be/memory/graph-expansion.ts +8 -1
  152. package/src/be/memory/index-content.ts +20 -1
  153. package/src/be/memory/key-guard.ts +93 -0
  154. package/src/be/memory/key-paths.ts +103 -0
  155. package/src/be/memory/link-resolver.ts +29 -3
  156. package/src/be/memory/providers/sqlite-store.ts +152 -45
  157. package/src/be/memory/raters/llm-summarizer.ts +10 -4
  158. package/src/be/memory/raters/llm.ts +15 -5
  159. package/src/be/memory/raters/store.ts +6 -3
  160. package/src/be/memory/raters/types.ts +11 -0
  161. package/src/be/memory/reranker.ts +38 -7
  162. package/src/be/memory/types.ts +12 -1
  163. package/src/be/migrations/190_memory_rating_model.sql +7 -0
  164. package/src/be/migrations/191_context_versions_previous_index.sql +8 -0
  165. package/src/be/migrations/192_favorites_agent_fs_path.sql +36 -0
  166. package/src/be/onboarding.ts +7 -1
  167. package/src/be/pricing-normalize.ts +4 -2
  168. package/src/be/scripts/typecheck.ts +4 -3
  169. package/src/be/seed-pricing.ts +16 -0
  170. package/src/be/seed-prompt-templates.ts +1 -0
  171. package/src/be/swarm-config-guard.ts +46 -17
  172. package/src/be/task-citations.ts +11 -5
  173. package/src/be/users.ts +3 -0
  174. package/src/cli.tsx +3 -2
  175. package/src/comb/agent-fs.ts +39 -0
  176. package/src/comb/config.ts +37 -0
  177. package/src/comb/markers.ts +37 -0
  178. package/src/comb/review-batch.ts +486 -0
  179. package/src/comb/templates.ts +88 -0
  180. package/src/commands/claude-managed-setup.ts +33 -31
  181. package/src/commands/context-preamble.ts +4 -1
  182. package/src/commands/hook.ts +2 -1
  183. package/src/commands/provider-credentials.ts +28 -15
  184. package/src/commands/runner.ts +458 -110
  185. package/src/commands/templates.ts +10 -0
  186. package/src/e2b/env.ts +2 -0
  187. package/src/extensions/catalog.generated.json +17 -0
  188. package/src/extensions/contract-types.generated.ts +1 -1
  189. package/src/fs/agent-fs-provider.ts +106 -2
  190. package/src/github/handlers.ts +10 -74
  191. package/src/github/reactions.ts +119 -138
  192. package/src/github/task-reactions.ts +34 -11
  193. package/src/heartbeat/heartbeat.ts +4 -0
  194. package/src/hooks/codex-hook.ts +25 -1
  195. package/src/hooks/hook.ts +14 -1
  196. package/src/hooks/pr-body-guard.ts +983 -0
  197. package/src/http/agents.ts +1 -1
  198. package/src/http/all-routes.ts +1 -0
  199. package/src/http/assets.ts +5 -17
  200. package/src/http/comb.ts +131 -0
  201. package/src/http/core.ts +14 -1
  202. package/src/http/extensions.ts +51 -27
  203. package/src/http/fs.ts +9 -17
  204. package/src/http/index.ts +27 -9
  205. package/src/http/mcp-user.ts +8 -13
  206. package/src/http/mcp.ts +19 -12
  207. package/src/http/memory.ts +80 -14
  208. package/src/http/onboarding.ts +21 -2
  209. package/src/http/poll.ts +30 -3
  210. package/src/http/realtime.ts +62 -0
  211. package/src/http/request-principal.ts +22 -0
  212. package/src/http/session-data.ts +6 -4
  213. package/src/http/stats.ts +1 -0
  214. package/src/http/status.ts +34 -2
  215. package/src/http/tasks.ts +17 -3
  216. package/src/http/users.ts +1 -1
  217. package/src/http/webhooks.ts +120 -2
  218. package/src/kv-reserved-namespaces.ts +10 -5
  219. package/src/providers/claude-adapter.ts +84 -16
  220. package/src/providers/claude-managed-adapter.ts +29 -2
  221. package/src/providers/codex-adapter.ts +1 -1
  222. package/src/providers/codex-skill-resolver.ts +6 -0
  223. package/src/providers/dsh-adapter.ts +204 -7
  224. package/src/providers/opencode-adapter.ts +24 -3
  225. package/src/providers/pi-mono-adapter.ts +154 -5
  226. package/src/providers/pi-mono-extension.ts +1 -1
  227. package/src/providers/pricing-sources.md +5 -1
  228. package/src/providers/reasoning-effort.ts +10 -2
  229. package/src/providers/types.ts +1 -1
  230. package/src/rbac/legacy-policy.ts +3 -0
  231. package/src/rbac/permissions.ts +14 -0
  232. package/src/realtime/auth.ts +63 -1
  233. package/src/realtime/tickets.ts +52 -0
  234. package/src/realtime/transport.ts +51 -22
  235. package/src/scripts-runtime/types/stdlib.d.ts +13 -5
  236. package/src/scripts-runtime/types/swarm-extension.d.ts +7 -3
  237. package/src/scripts-runtime/types/swarm-sdk.d.ts +13 -5
  238. package/src/tasks/context-key.ts +38 -1
  239. package/src/telemetry-context.ts +175 -0
  240. package/src/telemetry-contract/EVENTS.md +81 -0
  241. package/src/telemetry-contract/SOURCE.json +9 -0
  242. package/src/telemetry-contract/catalog.json +1335 -0
  243. package/src/telemetry-contract/index.ts +60 -0
  244. package/src/telemetry-contract/types.gen.ts +1971 -0
  245. package/src/telemetry-identity.ts +129 -0
  246. package/src/telemetry-snapshot.ts +211 -0
  247. package/src/telemetry-trigger.ts +125 -0
  248. package/src/telemetry-types.typetest.ts +40 -0
  249. package/src/telemetry.ts +271 -67
  250. package/src/tests/api-drain-e2e.test.ts +249 -0
  251. package/src/tests/api-drain-worker-e2e.test.ts +216 -0
  252. package/src/tests/api-drain.test.ts +351 -0
  253. package/src/tests/azure-devops-auth.test.ts +100 -0
  254. package/src/tests/azure-devops-handlers.test.ts +324 -0
  255. package/src/tests/azure-devops-webhook-malformed.test.ts +96 -0
  256. package/src/tests/claude-default-route.test.ts +260 -0
  257. package/src/tests/claude-managed-adapter.test.ts +47 -0
  258. package/src/tests/claude-managed-setup.test.ts +48 -0
  259. package/src/tests/claude-prompt-body-once.test.ts +117 -0
  260. package/src/tests/claude-routes-e2e.test.ts +316 -0
  261. package/src/tests/comb-config-guard.test.ts +38 -0
  262. package/src/tests/comb-links.test.ts +162 -0
  263. package/src/tests/comb-markers.test.ts +68 -0
  264. package/src/tests/comb-review-batch.test.ts +770 -0
  265. package/src/tests/comb-status.test.ts +152 -0
  266. package/src/tests/context-versions-retention.test.ts +314 -0
  267. package/src/tests/core-auth.test.ts +7 -0
  268. package/src/tests/db-retention.test.ts +14 -14
  269. package/src/tests/db-task-read-contract.test.ts +3 -0
  270. package/src/tests/db-task-write-contract.test.ts +3 -0
  271. package/src/tests/docs-index-footprint.test.js +3 -3
  272. package/src/tests/dsh-adapter.test.ts +134 -2
  273. package/src/tests/dsh-usage.test.ts +153 -0
  274. package/src/tests/extensions-catalog.test.ts +1 -0
  275. package/src/tests/extensions-example-deploy-awareness.test.ts +301 -0
  276. package/src/tests/extensions-http.test.ts +137 -10
  277. package/src/tests/extensions-mcp-tools.test.ts +28 -0
  278. package/src/tests/favorites-agent-fs-path.test.ts +226 -0
  279. package/src/tests/fetch-resolved-env.test.ts +24 -0
  280. package/src/tests/fixtures/azure-devops/pull-request-commented.json +129 -0
  281. package/src/tests/fixtures/azure-devops/pull-request-created.json +88 -0
  282. package/src/tests/fixtures/fake-claude-routes.ts +229 -0
  283. package/src/tests/github-handlers-reactions.test.ts +486 -0
  284. package/src/tests/github-reactions.test.ts +280 -0
  285. package/src/tests/harness-cli-version.test.ts +62 -0
  286. package/src/tests/http-api-integration.test.ts +21 -0
  287. package/src/tests/http-task-write-ownership.test.ts +24 -1
  288. package/src/tests/internal-ai/complete-structured.test.ts +94 -0
  289. package/src/tests/internal-ai/credentials.test.ts +22 -0
  290. package/src/tests/internal-ai/models.test.ts +36 -2
  291. package/src/tests/internal-ai/schema-parity.test.ts +25 -1
  292. package/src/tests/internal-ai/summarize-session.test.ts +23 -7
  293. package/src/tests/mcp-user-route.test.ts +133 -0
  294. package/src/tests/memory-key-paths.test.ts +1055 -0
  295. package/src/tests/memory-link-resolver.test.ts +34 -0
  296. package/src/tests/memory-rate-endpoint.test.ts +66 -0
  297. package/src/tests/memory-rater-llm-summarizer.test.ts +2 -1
  298. package/src/tests/memory-rater-llm.test.ts +73 -0
  299. package/src/tests/memory-rater-store.test.ts +31 -0
  300. package/src/tests/memory-reranker.test.ts +40 -0
  301. package/src/tests/onboarding.test.ts +108 -0
  302. package/src/tests/opencode-adapter.test.ts +57 -0
  303. package/src/tests/opencode-plugin.test.ts +4 -0
  304. package/src/tests/pi-codemode.test.ts +82 -4
  305. package/src/tests/pi-mono-adapter.test.ts +265 -2
  306. package/src/tests/pr-body-leaks.test.ts +789 -0
  307. package/src/tests/preload.ts +14 -0
  308. package/src/tests/provider-registration.test.ts +0 -2
  309. package/src/tests/providers/pi-cost.test.ts +190 -4
  310. package/src/tests/rbac-engine.test.ts +25 -1
  311. package/src/tests/realtime-room-auth.test.ts +104 -1
  312. package/src/tests/realtime-tickets.test.ts +74 -0
  313. package/src/tests/realtime-transport.test.ts +131 -4
  314. package/src/tests/runner-api-drain.test.ts +301 -0
  315. package/src/tests/runner-fallback-output.test.ts +61 -0
  316. package/src/tests/runner-fenced-json-output.test.ts +178 -0
  317. package/src/tests/runner-slot-reconcile.test.ts +199 -0
  318. package/src/tests/script-connections.test.ts +6 -0
  319. package/src/tests/send-task-requested-by.test.ts +133 -15
  320. package/src/tests/session-costs-recompute-all-providers.test.ts +23 -0
  321. package/src/tests/task-lifecycle-telemetry.test.ts +8 -3
  322. package/src/tests/task-reactions.test.ts +29 -6
  323. package/src/tests/telemetry-context.test.ts +314 -0
  324. package/src/tests/telemetry-init.test.ts +51 -19
  325. package/src/tests/telemetry-snapshot.test.ts +229 -0
  326. package/src/tests/telemetry-trigger.test.ts +200 -0
  327. package/src/tests/template-registry-helpers.ts +1 -0
  328. package/src/tests/vcs-azure-devops.test.ts +73 -0
  329. package/src/tests/webhooks-task-blocked.test.ts +23 -0
  330. package/src/tests/workflow-agent-task-retry.test.ts +363 -0
  331. package/src/tests/workflow-definition-telemetry.test.ts +4 -4
  332. package/src/tests/workflow-llm.test.ts +14 -0
  333. package/src/tools/context-diff.ts +20 -0
  334. package/src/tools/extension-install.ts +27 -16
  335. package/src/tools/memory-edit.ts +47 -3
  336. package/src/tools/memory-search.ts +13 -1
  337. package/src/tools/memory-store.ts +55 -3
  338. package/src/tools/poll-task.ts +20 -1
  339. package/src/tools/send-task.ts +9 -1
  340. package/src/tools/task-action.ts +11 -0
  341. package/src/types.ts +45 -8
  342. package/src/utils/api-drain.ts +24 -0
  343. package/src/utils/constants.ts +57 -16
  344. package/src/utils/credentials.test.ts +31 -1
  345. package/src/utils/credentials.ts +20 -9
  346. package/src/utils/dsh-usage.ts +53 -0
  347. package/src/utils/harness-cli-version.ts +6 -4
  348. package/src/utils/internal-ai/complete-structured.ts +26 -3
  349. package/src/utils/internal-ai/credentials.ts +23 -9
  350. package/src/utils/internal-ai/index.ts +8 -1
  351. package/src/utils/internal-ai/models.ts +34 -8
  352. package/src/utils/internal-ai/summarize-session.ts +22 -8
  353. package/src/utils/pr-body-leaks.ts +172 -0
  354. package/src/utils/secret-scrubber.ts +8 -0
  355. package/src/utils/task-attachment-links.ts +14 -8
  356. package/src/vcs/azure-devops.ts +80 -0
  357. package/src/vcs/index.ts +5 -1
  358. package/src/vcs/types.ts +2 -2
  359. package/src/workflows/recovery.ts +26 -1
  360. package/src/workflows/resume.ts +31 -4
  361. package/src/workflows/task-step-routing.ts +75 -2
  362. package/templates/community/open-prompt-showreel/PLAYBOOK.md +336 -0
  363. package/templates/community/open-prompt-showreel/README.md +33 -0
  364. package/templates/community/open-prompt-showreel/example/tla-races/facts.ts +145 -0
  365. package/templates/community/open-prompt-showreel/example/tla-races/facts.v3.json +140 -0
  366. package/templates/community/open-prompt-showreel/example/tla-races/music.mist-city.json +8 -0
  367. package/templates/community/open-prompt-showreel/example/tla-races/reel.html +805 -0
  368. package/templates/community/open-prompt-showreel/example/tla-races/smoke.sh +48 -0
  369. package/templates/community/open-prompt-showreel/lead-prompt.md +89 -0
  370. package/templates/community/open-prompt-showreel/setup.sh +167 -0
  371. package/templates/community/open-prompt-showreel/skills/motion-design-replication/SKILL.md +85 -0
  372. package/templates/community/open-prompt-showreel/skills/motion-design-video-analysis/SKILL.md +115 -0
  373. package/templates/community/open-prompt-showreel/skills/open-prompt-showreel/SKILL.md +147 -0
  374. package/templates/community/open-prompt-showreel/skills/video-generation/SKILL.md +195 -0
  375. package/templates/community/open-prompt-showreel/tools/fetch-music.sh +65 -0
  376. package/templates/community/open-prompt-showreel/tools/music-analyze.py +69 -0
  377. package/templates/community/open-prompt-showreel/tools/music-current.sh +34 -0
  378. package/templates/community/open-prompt-showreel/tools/music-cut.sh +36 -0
  379. package/templates/community/open-prompt-showreel/tools/music-refine.py +39 -0
  380. package/templates/community/open-prompt-showreel/tools/render.mjs +157 -0
  381. package/templates/community/open-prompt-showreel/tools/sheet.sh +44 -0
  382. package/templates/community/open-prompt-showreel/tools/web-compress.sh +17 -0
  383. package/templates/community/open-prompt-showreel/tools/x-reencode.sh +21 -0
  384. package/templates/extensions/README.md +1 -0
  385. package/templates/extensions/deploy-awareness/README.md +28 -0
  386. package/templates/extensions/deploy-awareness/hooks.ts +152 -0
  387. package/templates/extensions/deploy-awareness/manifest.json +8 -0
  388. package/templates/skills/memory/config.json +2 -2
  389. package/templates/skills/memory/content.md +59 -5
  390. package/templates/skills/swarm-extensions/config.json +1 -1
  391. package/templates/skills/swarm-extensions/content.md +28 -5
  392. package/tsconfig.json +3 -0
  393. package/dist/boot-seeds-gsetbs5y.js +0 -28
  394. package/dist/cli-j490egb5.js +0 -5632
  395. package/dist/cli-tjf4cn8z.js +0 -9119
  396. package/dist/cli-tmqt7dpj.js +0 -572
  397. package/dist/dsh-adapter-mpnzgztj.js +0 -19
  398. package/dist/index-7aj368tw.js +0 -30
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.160.0",
5
+ "version": "1.162.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": [
@@ -165,12 +165,14 @@
165
165
  "ui",
166
166
  "github",
167
167
  "gitlab",
168
+ "azure-devops",
168
169
  "agentmail",
169
170
  "system",
170
171
  "schedule",
171
172
  "workflow",
172
173
  "linear",
173
- "jira"
174
+ "jira",
175
+ "comb"
174
176
  ],
175
177
  "default": "mcp"
176
178
  },
@@ -285,7 +287,8 @@
285
287
  "type": "string",
286
288
  "enum": [
287
289
  "github",
288
- "gitlab"
290
+ "gitlab",
291
+ "azure-devops"
289
292
  ]
290
293
  },
291
294
  "vcsRepo": {
@@ -1842,19 +1845,35 @@
1842
1845
  "type": "string",
1843
1846
  "minLength": 1,
1844
1847
  "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
1845
- "description": "Name of a predefined extension in the catalog (`GET /api/extensions/catalog`)."
1848
+ "description": "Name of a predefined extension in the catalog (`GET /api/extensions/catalog`). Mutually exclusive with `manifest` and `files`."
1849
+ },
1850
+ "manifest": {
1851
+ "allOf": [
1852
+ {
1853
+ "$ref": "#/components/schemas/ExtensionManifest"
1854
+ },
1855
+ {
1856
+ "description": "Inline bundle manifest. Requires `files`. Accepted only when `EXTENSION_ALLOW_INLINE_INSTALL` is on and the caller is a lead, operator, or dashboard user."
1857
+ }
1858
+ ]
1859
+ },
1860
+ "files": {
1861
+ "type": "object",
1862
+ "additionalProperties": {
1863
+ "type": "string"
1864
+ },
1865
+ "description": "Inline bundle files keyed by relative path. Requires `manifest`."
1846
1866
  },
1847
1867
  "priority": {
1848
- "type": "integer"
1868
+ "type": "integer",
1869
+ "description": "Handler priority. Lower values run first."
1849
1870
  },
1850
1871
  "config": {
1851
1872
  "type": "object",
1852
- "additionalProperties": {}
1873
+ "additionalProperties": {},
1874
+ "description": "Extension configuration."
1853
1875
  }
1854
1876
  },
1855
- "required": [
1856
- "template"
1857
- ],
1858
1877
  "additionalProperties": false
1859
1878
  },
1860
1879
  "ExtensionCatalogItem": {
@@ -2049,7 +2068,8 @@
2049
2068
  "enum": [
2050
2069
  "page",
2051
2070
  "workflow",
2052
- "schedule"
2071
+ "schedule",
2072
+ "agent-fs-path"
2053
2073
  ]
2054
2074
  },
2055
2075
  "itemId": {
@@ -6146,7 +6166,7 @@
6146
6166
  "/ping": {
6147
6167
  "post": {
6148
6168
  "summary": "Report agent liveness",
6149
- "description": "Refreshes the calling agent's status. Workers may send `X-Runtime-Instance-ID`, the per-boot identifier of the calling process. It is ignored unless MULTI_RUNTIME_ENABLED is set. With multi-runtime mode on, the header must identify a live runtime of this agent; an absent, unknown, offline, or foreign identifier makes the call a no-op instead of an error, so workers predating the flag keep running.",
6169
+ "description": "Refreshes the calling agent's status. Workers may send `X-Runtime-Instance-ID`, the per-boot identifier of the calling process. It is ignored unless MULTI_RUNTIME_ENABLED is set. With multi-runtime mode on, the header must identify a live runtime of this agent; an absent, unknown, offline, or foreign identifier makes the call a no-op instead of an error, so workers predating the flag keep running. While the API is draining after SIGTERM, every response (this one included) carries `X-Swarm-Draining: 1`: workers hand off in-flight tasks and take no new work.",
6150
6170
  "tags": [
6151
6171
  "Core"
6152
6172
  ],
@@ -15120,6 +15140,353 @@
15120
15140
  }
15121
15141
  }
15122
15142
  },
15143
+ "/api/comb/review-batches": {
15144
+ "post": {
15145
+ "summary": "Send agent-fs comments to the swarm as one lead task",
15146
+ "description": "Comb's 'Send to swarm'. The server reads each comment again from agent-fs with its bootstrap key, skips replies, resolved comments, and comments already sent, and creates ONE task for the lead. Each sent comment gets a `[comb:sent task=<id>]` reply from the swarm service account. A comment is sent at most once. When an earlier send lost its reply, the batch posts that reply again (`repaired`). Answers 404 while COMB_ENABLED is off.",
15147
+ "tags": [
15148
+ "Comb"
15149
+ ],
15150
+ "security": [
15151
+ {
15152
+ "bearerAuth": []
15153
+ }
15154
+ ],
15155
+ "requestBody": {
15156
+ "content": {
15157
+ "application/json": {
15158
+ "schema": {
15159
+ "type": "object",
15160
+ "properties": {
15161
+ "orgId": {
15162
+ "type": "string",
15163
+ "minLength": 1
15164
+ },
15165
+ "driveId": {
15166
+ "type": "string",
15167
+ "minLength": 1
15168
+ },
15169
+ "commentIds": {
15170
+ "type": "array",
15171
+ "items": {
15172
+ "type": "string",
15173
+ "format": "uuid"
15174
+ },
15175
+ "minItems": 1,
15176
+ "maxItems": 50
15177
+ },
15178
+ "scopePath": {
15179
+ "type": "string",
15180
+ "minLength": 1,
15181
+ "maxLength": 1024
15182
+ }
15183
+ },
15184
+ "required": [
15185
+ "orgId",
15186
+ "driveId",
15187
+ "commentIds",
15188
+ "scopePath"
15189
+ ]
15190
+ }
15191
+ }
15192
+ }
15193
+ },
15194
+ "responses": {
15195
+ "200": {
15196
+ "description": "No new task: the batch only posted missing 'sent' replies again",
15197
+ "content": {
15198
+ "application/json": {
15199
+ "schema": {
15200
+ "type": "object",
15201
+ "properties": {
15202
+ "taskId": {
15203
+ "type": [
15204
+ "string",
15205
+ "null"
15206
+ ]
15207
+ },
15208
+ "sent": {
15209
+ "type": "array",
15210
+ "items": {
15211
+ "type": "string"
15212
+ }
15213
+ },
15214
+ "skipped": {
15215
+ "type": "array",
15216
+ "items": {
15217
+ "type": "object",
15218
+ "properties": {
15219
+ "id": {
15220
+ "type": "string"
15221
+ },
15222
+ "reason": {
15223
+ "type": "string",
15224
+ "enum": [
15225
+ "not-found",
15226
+ "reply",
15227
+ "resolved",
15228
+ "already-sent"
15229
+ ]
15230
+ },
15231
+ "taskId": {
15232
+ "type": "string"
15233
+ }
15234
+ },
15235
+ "required": [
15236
+ "id",
15237
+ "reason"
15238
+ ]
15239
+ }
15240
+ },
15241
+ "repaired": {
15242
+ "type": "array",
15243
+ "items": {
15244
+ "type": "object",
15245
+ "properties": {
15246
+ "id": {
15247
+ "type": "string"
15248
+ },
15249
+ "taskId": {
15250
+ "type": "string"
15251
+ }
15252
+ },
15253
+ "required": [
15254
+ "id",
15255
+ "taskId"
15256
+ ]
15257
+ }
15258
+ }
15259
+ },
15260
+ "required": [
15261
+ "taskId",
15262
+ "sent",
15263
+ "skipped",
15264
+ "repaired"
15265
+ ]
15266
+ }
15267
+ }
15268
+ }
15269
+ },
15270
+ "201": {
15271
+ "description": "Task created",
15272
+ "content": {
15273
+ "application/json": {
15274
+ "schema": {
15275
+ "type": "object",
15276
+ "properties": {
15277
+ "taskId": {
15278
+ "type": [
15279
+ "string",
15280
+ "null"
15281
+ ]
15282
+ },
15283
+ "sent": {
15284
+ "type": "array",
15285
+ "items": {
15286
+ "type": "string"
15287
+ }
15288
+ },
15289
+ "skipped": {
15290
+ "type": "array",
15291
+ "items": {
15292
+ "type": "object",
15293
+ "properties": {
15294
+ "id": {
15295
+ "type": "string"
15296
+ },
15297
+ "reason": {
15298
+ "type": "string",
15299
+ "enum": [
15300
+ "not-found",
15301
+ "reply",
15302
+ "resolved",
15303
+ "already-sent"
15304
+ ]
15305
+ },
15306
+ "taskId": {
15307
+ "type": "string"
15308
+ }
15309
+ },
15310
+ "required": [
15311
+ "id",
15312
+ "reason"
15313
+ ]
15314
+ }
15315
+ },
15316
+ "repaired": {
15317
+ "type": "array",
15318
+ "items": {
15319
+ "type": "object",
15320
+ "properties": {
15321
+ "id": {
15322
+ "type": "string"
15323
+ },
15324
+ "taskId": {
15325
+ "type": "string"
15326
+ }
15327
+ },
15328
+ "required": [
15329
+ "id",
15330
+ "taskId"
15331
+ ]
15332
+ }
15333
+ }
15334
+ },
15335
+ "required": [
15336
+ "taskId",
15337
+ "sent",
15338
+ "skipped",
15339
+ "repaired"
15340
+ ]
15341
+ }
15342
+ }
15343
+ }
15344
+ },
15345
+ "400": {
15346
+ "description": "Invalid body, or not the swarm drive",
15347
+ "content": {
15348
+ "application/json": {
15349
+ "schema": {
15350
+ "$ref": "#/components/schemas/ErrorResponse"
15351
+ }
15352
+ }
15353
+ }
15354
+ },
15355
+ "403": {
15356
+ "description": "Caller cannot create tasks",
15357
+ "content": {
15358
+ "application/json": {
15359
+ "schema": {
15360
+ "$ref": "#/components/schemas/ErrorResponse"
15361
+ }
15362
+ }
15363
+ }
15364
+ },
15365
+ "404": {
15366
+ "description": "Comb is not enabled",
15367
+ "content": {
15368
+ "application/json": {
15369
+ "schema": {
15370
+ "$ref": "#/components/schemas/ErrorResponse"
15371
+ }
15372
+ }
15373
+ }
15374
+ },
15375
+ "409": {
15376
+ "description": "Nothing to send (every comment was skipped)",
15377
+ "content": {
15378
+ "application/json": {
15379
+ "schema": {
15380
+ "type": "object",
15381
+ "properties": {
15382
+ "error": {
15383
+ "type": "string"
15384
+ },
15385
+ "skipped": {
15386
+ "type": "array",
15387
+ "items": {
15388
+ "type": "object",
15389
+ "properties": {
15390
+ "id": {
15391
+ "type": "string"
15392
+ },
15393
+ "reason": {
15394
+ "type": "string",
15395
+ "enum": [
15396
+ "not-found",
15397
+ "reply",
15398
+ "resolved",
15399
+ "already-sent"
15400
+ ]
15401
+ },
15402
+ "taskId": {
15403
+ "type": "string"
15404
+ }
15405
+ },
15406
+ "required": [
15407
+ "id",
15408
+ "reason"
15409
+ ]
15410
+ }
15411
+ }
15412
+ },
15413
+ "required": [
15414
+ "error",
15415
+ "skipped"
15416
+ ]
15417
+ }
15418
+ }
15419
+ }
15420
+ },
15421
+ "422": {
15422
+ "description": "Task creation blocked by an extension",
15423
+ "content": {
15424
+ "application/json": {
15425
+ "schema": {
15426
+ "$ref": "#/components/schemas/ErrorResponse"
15427
+ }
15428
+ }
15429
+ }
15430
+ },
15431
+ "502": {
15432
+ "description": "agent-fs could not read a comment",
15433
+ "content": {
15434
+ "application/json": {
15435
+ "schema": {
15436
+ "$ref": "#/components/schemas/ErrorResponse"
15437
+ }
15438
+ }
15439
+ }
15440
+ },
15441
+ "503": {
15442
+ "description": "agent-fs or the swarm drive is not set up, or an operator disabled a Comb review template",
15443
+ "content": {
15444
+ "application/json": {
15445
+ "schema": {
15446
+ "type": "object",
15447
+ "properties": {
15448
+ "error": {
15449
+ "type": "string"
15450
+ },
15451
+ "skipped": {
15452
+ "type": "array",
15453
+ "items": {
15454
+ "type": "object",
15455
+ "properties": {
15456
+ "id": {
15457
+ "type": "string"
15458
+ },
15459
+ "reason": {
15460
+ "type": "string",
15461
+ "enum": [
15462
+ "not-found",
15463
+ "reply",
15464
+ "resolved",
15465
+ "already-sent"
15466
+ ]
15467
+ },
15468
+ "taskId": {
15469
+ "type": "string"
15470
+ }
15471
+ },
15472
+ "required": [
15473
+ "id",
15474
+ "reason"
15475
+ ]
15476
+ }
15477
+ }
15478
+ },
15479
+ "required": [
15480
+ "error",
15481
+ "skipped"
15482
+ ]
15483
+ }
15484
+ }
15485
+ }
15486
+ }
15487
+ }
15488
+ }
15489
+ },
15123
15490
  "/api/tasks/{id}/context": {
15124
15491
  "post": {
15125
15492
  "summary": "Record a context usage snapshot for a task",
@@ -17547,8 +17914,8 @@
17547
17914
  "/api/extensions/install": {
17548
17915
  "post": {
17549
17916
  "operationId": "extensions_install",
17550
- "summary": "Install a predefined extension from the catalog",
17551
- "description": "Installs the named template from `GET /api/extensions/catalog`. Inline bundles (`manifest`/`files`) are rejected with `inline_install_disabled`. Any authenticated agent can install a disabled draft owned by its agent ID. Workers can update only their own bundles; activation remains lead/operator-only.",
17917
+ "summary": "Install an extension from the catalog or an inline bundle",
17918
+ "description": "Installs the named `template` from `GET /api/extensions/catalog`, or an inline `manifest` plus `files`. Inline bundles are rejected with `inline_install_disabled` unless `EXTENSION_ALLOW_INLINE_INSTALL` is on, and then only lead, operator, and dashboard-user callers may send them (workers get 403). Any authenticated agent can install a catalog draft owned by its agent ID. Workers can update only their own bundles. A new extension is always disabled; activation remains lead/operator-only.",
17552
17919
  "tags": [
17553
17920
  "Extensions"
17554
17921
  ],
@@ -17731,7 +18098,7 @@
17731
18098
  }
17732
18099
  },
17733
18100
  "400": {
17734
- "description": "Inline bundle rejected or bundle validation failed",
18101
+ "description": "Inline install disabled, invalid body (template and manifest/files are mutually exclusive), or bundle validation failed",
17735
18102
  "content": {
17736
18103
  "application/json": {
17737
18104
  "schema": {
@@ -17741,7 +18108,7 @@
17741
18108
  }
17742
18109
  },
17743
18110
  "403": {
17744
- "description": "Permission denied",
18111
+ "description": "Permission denied, including inline bundles from workers",
17745
18112
  "content": {
17746
18113
  "application/json": {
17747
18114
  "schema": {
@@ -18534,7 +18901,8 @@
18534
18901
  "enum": [
18535
18902
  "page",
18536
18903
  "workflow",
18537
- "schedule"
18904
+ "schedule",
18905
+ "agent-fs-path"
18538
18906
  ]
18539
18907
  },
18540
18908
  "required": false,
@@ -18612,7 +18980,8 @@
18612
18980
  "enum": [
18613
18981
  "page",
18614
18982
  "workflow",
18615
- "schedule"
18983
+ "schedule",
18984
+ "agent-fs-path"
18616
18985
  ]
18617
18986
  },
18618
18987
  "itemId": {
@@ -18648,7 +19017,8 @@
18648
19017
  "enum": [
18649
19018
  "page",
18650
19019
  "workflow",
18651
- "schedule"
19020
+ "schedule",
19021
+ "agent-fs-path"
18652
19022
  ]
18653
19023
  },
18654
19024
  "itemId": {
@@ -20749,7 +21119,17 @@
20749
21119
  }
20750
21120
  },
20751
21121
  "400": {
20752
- "description": "Validation error",
21122
+ "description": "Validation error, or a sourcePath under /longterm that is not an allowed memory key",
21123
+ "content": {
21124
+ "application/json": {
21125
+ "schema": {
21126
+ "$ref": "#/components/schemas/ErrorResponse"
21127
+ }
21128
+ }
21129
+ }
21130
+ },
21131
+ "403": {
21132
+ "description": "sourcePath is under a lead-only /longterm root and the caller is not the lead",
20753
21133
  "content": {
20754
21134
  "application/json": {
20755
21135
  "schema": {
@@ -20810,6 +21190,12 @@
20810
21190
  "session_summary",
20811
21191
  "task_completion"
20812
21192
  ]
21193
+ },
21194
+ "keyPrefix": {
21195
+ "type": "string",
21196
+ "minLength": 1,
21197
+ "maxLength": 200,
21198
+ "description": "Only return memories whose key starts with this text (literal, case-sensitive), for example '/longterm/facts/'."
20813
21199
  }
20814
21200
  },
20815
21201
  "required": [
@@ -22085,6 +22471,12 @@
22085
22471
  "minLength": 1,
22086
22472
  "maxLength": 512,
22087
22473
  "description": "Optional external source ID this memory references. Free-form string, convention \"<source>:<identifier>\" (e.g. \"github:owner/repo#N\", \"linear:KEY-N\", \"customer:<slug>\", \"slack:<channel>:<ts>\", \"agentmail:<thread-id>\"). Pick any prefix that fits — no closed enum. When present, an edge from this memory to the external source is created/updated."
22474
+ },
22475
+ "model": {
22476
+ "type": "string",
22477
+ "minLength": 1,
22478
+ "maxLength": 200,
22479
+ "description": "Optional. Model that produced an `llm` rating, as \"<provider>/<model-id>\" (e.g. \"openrouter/deepseek/deepseek-v4.1-flash\"). Stored in memory_rating.model for `llm` events and ignored for `explicit-self`."
22088
22480
  }
22089
22481
  },
22090
22482
  "required": [
@@ -25097,7 +25489,7 @@
25097
25489
  "/status": {
25098
25490
  "get": {
25099
25491
  "summary": "Identity + setup readiness + live activity for the swarm dashboard",
25100
- "description": "Single source of truth consumed by the UI home page. Identity comes from SWARM_* envs; setup milestones each emit `unverified | configured | verified`; automations report `running | needs_setup` from the same runtime preflight used at dispatch; activity counts agents alive in the last 5 min and tasks created in the last 24h; agent_fs reports whether AGENT_FS_API_URL is set; telemetry reports the effective ANONYMIZED_TELEMETRY opt-out state.",
25492
+ "description": "Single source of truth consumed by the UI home page. Identity comes from SWARM_* envs; setup milestones each emit `unverified | configured | verified`; automations report `running | needs_setup` from the same runtime preflight used at dispatch; activity counts agents alive in the last 5 min and tasks created in the last 24h; agent_fs reports whether AGENT_FS_API_URL is set, plus the Comb settings (COMB_ENABLED, the browser-facing agent-fs URL, the shared org and drive ids, and the agent-fs user id of the swarm service account); telemetry reports the effective ANONYMIZED_TELEMETRY opt-out state.",
25101
25493
  "tags": [
25102
25494
  "Status"
25103
25495
  ],
@@ -25298,13 +25690,57 @@
25298
25690
  "capabilities": {
25299
25691
  "type": "object",
25300
25692
  "additionalProperties": {}
25693
+ },
25694
+ "comb": {
25695
+ "type": "object",
25696
+ "properties": {
25697
+ "enabled": {
25698
+ "type": "boolean"
25699
+ },
25700
+ "api_url": {
25701
+ "type": [
25702
+ "string",
25703
+ "null"
25704
+ ]
25705
+ },
25706
+ "live_url": {
25707
+ "type": "string"
25708
+ },
25709
+ "org_id": {
25710
+ "type": [
25711
+ "string",
25712
+ "null"
25713
+ ]
25714
+ },
25715
+ "drive_id": {
25716
+ "type": [
25717
+ "string",
25718
+ "null"
25719
+ ]
25720
+ },
25721
+ "service_user_id": {
25722
+ "type": [
25723
+ "string",
25724
+ "null"
25725
+ ]
25726
+ }
25727
+ },
25728
+ "required": [
25729
+ "enabled",
25730
+ "api_url",
25731
+ "live_url",
25732
+ "org_id",
25733
+ "drive_id",
25734
+ "service_user_id"
25735
+ ]
25301
25736
  }
25302
25737
  },
25303
25738
  "required": [
25304
25739
  "configured",
25305
25740
  "base_url",
25306
25741
  "provider_id",
25307
- "capabilities"
25742
+ "capabilities",
25743
+ "comb"
25308
25744
  ]
25309
25745
  },
25310
25746
  "automations": {
@@ -25688,6 +26124,7 @@
25688
26124
  "timeout",
25689
26125
  "dimension",
25690
26126
  "model",
26127
+ "endpoint",
25691
26128
  "not_enabled",
25692
26129
  "expired",
25693
26130
  "unknown",
@@ -25743,6 +26180,7 @@
25743
26180
  "timeout",
25744
26181
  "dimension",
25745
26182
  "model",
26183
+ "endpoint",
25746
26184
  "not_enabled",
25747
26185
  "expired",
25748
26186
  "unknown",
@@ -25804,6 +26242,7 @@
25804
26242
  "timeout",
25805
26243
  "dimension",
25806
26244
  "model",
26245
+ "endpoint",
25807
26246
  "not_enabled",
25808
26247
  "expired",
25809
26248
  "unknown",
@@ -25861,6 +26300,7 @@
25861
26300
  "timeout",
25862
26301
  "dimension",
25863
26302
  "model",
26303
+ "endpoint",
25864
26304
  "not_enabled",
25865
26305
  "expired",
25866
26306
  "unknown",
@@ -25903,6 +26343,7 @@
25903
26343
  "openai",
25904
26344
  "openrouter",
25905
26345
  "vercel",
26346
+ "azure",
25906
26347
  "custom",
25907
26348
  "existing",
25908
26349
  null
@@ -25919,6 +26360,7 @@
25919
26360
  "timeout",
25920
26361
  "dimension",
25921
26362
  "model",
26363
+ "endpoint",
25922
26364
  "not_enabled",
25923
26365
  "expired",
25924
26366
  "unknown",
@@ -25977,6 +26419,7 @@
25977
26419
  "timeout",
25978
26420
  "dimension",
25979
26421
  "model",
26422
+ "endpoint",
25980
26423
  "not_enabled",
25981
26424
  "expired",
25982
26425
  "unknown",
@@ -26032,6 +26475,7 @@
26032
26475
  "timeout",
26033
26476
  "dimension",
26034
26477
  "model",
26478
+ "endpoint",
26035
26479
  "not_enabled",
26036
26480
  "expired",
26037
26481
  "unknown",
@@ -26473,6 +26917,7 @@
26473
26917
  "timeout",
26474
26918
  "dimension",
26475
26919
  "model",
26920
+ "endpoint",
26476
26921
  "not_enabled",
26477
26922
  "expired",
26478
26923
  "unknown"
@@ -26670,6 +27115,7 @@
26670
27115
  "timeout",
26671
27116
  "dimension",
26672
27117
  "model",
27118
+ "endpoint",
26673
27119
  "not_enabled",
26674
27120
  "expired",
26675
27121
  "unknown",
@@ -26725,6 +27171,7 @@
26725
27171
  "timeout",
26726
27172
  "dimension",
26727
27173
  "model",
27174
+ "endpoint",
26728
27175
  "not_enabled",
26729
27176
  "expired",
26730
27177
  "unknown",
@@ -26786,6 +27233,7 @@
26786
27233
  "timeout",
26787
27234
  "dimension",
26788
27235
  "model",
27236
+ "endpoint",
26789
27237
  "not_enabled",
26790
27238
  "expired",
26791
27239
  "unknown",
@@ -26843,6 +27291,7 @@
26843
27291
  "timeout",
26844
27292
  "dimension",
26845
27293
  "model",
27294
+ "endpoint",
26846
27295
  "not_enabled",
26847
27296
  "expired",
26848
27297
  "unknown",
@@ -26885,6 +27334,7 @@
26885
27334
  "openai",
26886
27335
  "openrouter",
26887
27336
  "vercel",
27337
+ "azure",
26888
27338
  "custom",
26889
27339
  "existing",
26890
27340
  null
@@ -26901,6 +27351,7 @@
26901
27351
  "timeout",
26902
27352
  "dimension",
26903
27353
  "model",
27354
+ "endpoint",
26904
27355
  "not_enabled",
26905
27356
  "expired",
26906
27357
  "unknown",
@@ -26959,6 +27410,7 @@
26959
27410
  "timeout",
26960
27411
  "dimension",
26961
27412
  "model",
27413
+ "endpoint",
26962
27414
  "not_enabled",
26963
27415
  "expired",
26964
27416
  "unknown",
@@ -27014,6 +27466,7 @@
27014
27466
  "timeout",
27015
27467
  "dimension",
27016
27468
  "model",
27469
+ "endpoint",
27017
27470
  "not_enabled",
27018
27471
  "expired",
27019
27472
  "unknown",
@@ -27240,6 +27693,7 @@
27240
27693
  "openai",
27241
27694
  "openrouter",
27242
27695
  "vercel",
27696
+ "azure",
27243
27697
  "custom",
27244
27698
  "existing"
27245
27699
  ]
@@ -27302,6 +27756,7 @@
27302
27756
  "timeout",
27303
27757
  "dimension",
27304
27758
  "model",
27759
+ "endpoint",
27305
27760
  "not_enabled",
27306
27761
  "expired",
27307
27762
  "unknown"
@@ -29322,6 +29777,7 @@
29322
29777
  "/api/poll": {
29323
29778
  "get": {
29324
29779
  "summary": "Poll for triggers (tasks, mentions)",
29780
+ "description": "While the API is draining after SIGTERM it dispatches nothing: the answer is `{ trigger: null }` and carries `X-Swarm-Draining: 1`, the signal for a worker to hand off in-flight tasks.",
29325
29781
  "tags": [
29326
29782
  "Poll"
29327
29783
  ],
@@ -29423,6 +29879,9 @@
29423
29879
  "taskId": {
29424
29880
  "type": "string"
29425
29881
  },
29882
+ "triggerSurface": {
29883
+ "type": "string"
29884
+ },
29426
29885
  "task": {
29427
29886
  "allOf": [
29428
29887
  {
@@ -30491,6 +30950,63 @@
30491
30950
  }
30492
30951
  }
30493
30952
  },
30953
+ "/api/realtime/ticket": {
30954
+ "post": {
30955
+ "summary": "Issue a one-shot dashboard realtime ticket",
30956
+ "tags": [
30957
+ "Rooms"
30958
+ ],
30959
+ "security": [
30960
+ {
30961
+ "bearerAuth": []
30962
+ }
30963
+ ],
30964
+ "responses": {
30965
+ "200": {
30966
+ "description": "One-shot realtime ticket",
30967
+ "content": {
30968
+ "application/json": {
30969
+ "schema": {
30970
+ "type": "object",
30971
+ "properties": {
30972
+ "ticket": {
30973
+ "type": "string"
30974
+ },
30975
+ "expiresAt": {
30976
+ "type": "integer"
30977
+ }
30978
+ },
30979
+ "required": [
30980
+ "ticket",
30981
+ "expiresAt"
30982
+ ]
30983
+ }
30984
+ }
30985
+ }
30986
+ },
30987
+ "403": {
30988
+ "description": "Comb presence is not allowed",
30989
+ "content": {
30990
+ "application/json": {
30991
+ "schema": {
30992
+ "$ref": "#/components/schemas/ErrorResponse"
30993
+ }
30994
+ }
30995
+ }
30996
+ },
30997
+ "404": {
30998
+ "description": "Comb is not enabled",
30999
+ "content": {
31000
+ "application/json": {
31001
+ "schema": {
31002
+ "$ref": "#/components/schemas/ErrorResponse"
31003
+ }
31004
+ }
31005
+ }
31006
+ }
31007
+ }
31008
+ }
31009
+ },
30494
31010
  "/@swarm/realtime.js": {
30495
31011
  "get": {
30496
31012
  "summary": "Browser SDK for realtime rooms and channels",
@@ -40741,12 +41257,14 @@
40741
41257
  "ui",
40742
41258
  "github",
40743
41259
  "gitlab",
41260
+ "azure-devops",
40744
41261
  "agentmail",
40745
41262
  "system",
40746
41263
  "schedule",
40747
41264
  "workflow",
40748
41265
  "linear",
40749
- "jira"
41266
+ "jira",
41267
+ "comb"
40750
41268
  ],
40751
41269
  "default": "mcp"
40752
41270
  },
@@ -45015,6 +45533,71 @@
45015
45533
  "batchSize",
45016
45534
  "slowestStatementMs"
45017
45535
  ]
45536
+ },
45537
+ "contextVersions": {
45538
+ "type": "object",
45539
+ "properties": {
45540
+ "at": {
45541
+ "type": "string"
45542
+ },
45543
+ "rowsDeleted": {
45544
+ "type": "number"
45545
+ },
45546
+ "batches": {
45547
+ "type": "number"
45548
+ },
45549
+ "durationMs": {
45550
+ "type": "number"
45551
+ },
45552
+ "dryRun": {
45553
+ "type": "boolean"
45554
+ },
45555
+ "cumulativeRowsDeleted": {
45556
+ "type": "number"
45557
+ },
45558
+ "outcome": {
45559
+ "type": "string",
45560
+ "enum": [
45561
+ "converged",
45562
+ "budget_exhausted",
45563
+ "error"
45564
+ ]
45565
+ },
45566
+ "drained": {
45567
+ "type": "boolean"
45568
+ },
45569
+ "backlogRemaining": {
45570
+ "type": "number"
45571
+ },
45572
+ "batchSize": {
45573
+ "type": "number"
45574
+ },
45575
+ "slowestStatementMs": {
45576
+ "type": "number"
45577
+ },
45578
+ "lastError": {
45579
+ "type": "string"
45580
+ },
45581
+ "lastErrorAt": {
45582
+ "type": "string"
45583
+ },
45584
+ "lastSuccessAt": {
45585
+ "type": "string"
45586
+ }
45587
+ },
45588
+ "required": [
45589
+ "at",
45590
+ "rowsDeleted",
45591
+ "batches",
45592
+ "durationMs",
45593
+ "dryRun",
45594
+ "cumulativeRowsDeleted",
45595
+ "outcome",
45596
+ "drained",
45597
+ "backlogRemaining",
45598
+ "batchSize",
45599
+ "slowestStatementMs"
45600
+ ]
45018
45601
  }
45019
45602
  }
45020
45603
  }
@@ -46011,12 +46594,14 @@
46011
46594
  "ui",
46012
46595
  "github",
46013
46596
  "gitlab",
46597
+ "azure-devops",
46014
46598
  "agentmail",
46015
46599
  "system",
46016
46600
  "schedule",
46017
46601
  "workflow",
46018
46602
  "linear",
46019
- "jira"
46603
+ "jira",
46604
+ "comb"
46020
46605
  ],
46021
46606
  "default": "mcp"
46022
46607
  },
@@ -46320,12 +46905,14 @@
46320
46905
  "ui",
46321
46906
  "github",
46322
46907
  "gitlab",
46908
+ "azure-devops",
46323
46909
  "agentmail",
46324
46910
  "system",
46325
46911
  "schedule",
46326
46912
  "workflow",
46327
46913
  "linear",
46328
- "jira"
46914
+ "jira",
46915
+ "comb"
46329
46916
  ]
46330
46917
  },
46331
46918
  "outputSchema": {
@@ -47420,7 +48007,7 @@
47420
48007
  },
47421
48008
  "responses": {
47422
48009
  "200": {
47423
- "description": "Progress updated",
48010
+ "description": "Progress updated; a no-op once the task is terminal",
47424
48011
  "content": {
47425
48012
  "application/json": {
47426
48013
  "schema": {
@@ -47505,6 +48092,19 @@
47505
48092
  },
47506
48093
  "force": {
47507
48094
  "type": "boolean"
48095
+ },
48096
+ "provider": {
48097
+ "type": "string",
48098
+ "enum": [
48099
+ "claude",
48100
+ "codex",
48101
+ "pi",
48102
+ "devin",
48103
+ "claude-managed",
48104
+ "opencode",
48105
+ "acp",
48106
+ "dsh"
48107
+ ]
47508
48108
  }
47509
48109
  },
47510
48110
  "required": [
@@ -48021,7 +48621,8 @@
48021
48621
  "type": "string",
48022
48622
  "enum": [
48023
48623
  "github",
48024
- "gitlab"
48624
+ "gitlab",
48625
+ "azure-devops"
48025
48626
  ]
48026
48627
  },
48027
48628
  "vcsRepo": {
@@ -51678,6 +52279,78 @@
51678
52279
  }
51679
52280
  }
51680
52281
  },
52282
+ "/api/azure-devops/webhook": {
52283
+ "post": {
52284
+ "summary": "Handle Azure DevOps service-hook events",
52285
+ "tags": [
52286
+ "Webhooks"
52287
+ ],
52288
+ "responses": {
52289
+ "200": {
52290
+ "description": "Event processed",
52291
+ "content": {
52292
+ "application/json": {
52293
+ "schema": {
52294
+ "type": "object",
52295
+ "properties": {
52296
+ "created": {
52297
+ "type": "boolean"
52298
+ },
52299
+ "taskId": {
52300
+ "type": "string"
52301
+ },
52302
+ "skipped": {
52303
+ "type": "boolean"
52304
+ },
52305
+ "reason": {
52306
+ "type": "string"
52307
+ },
52308
+ "extension": {
52309
+ "type": "object",
52310
+ "properties": {
52311
+ "id": {
52312
+ "type": "string"
52313
+ },
52314
+ "name": {
52315
+ "type": "string"
52316
+ }
52317
+ },
52318
+ "required": [
52319
+ "id",
52320
+ "name"
52321
+ ]
52322
+ }
52323
+ },
52324
+ "required": [
52325
+ "created"
52326
+ ]
52327
+ }
52328
+ }
52329
+ }
52330
+ },
52331
+ "401": {
52332
+ "description": "Invalid Basic auth credentials",
52333
+ "content": {
52334
+ "application/json": {
52335
+ "schema": {
52336
+ "$ref": "#/components/schemas/ErrorResponse"
52337
+ }
52338
+ }
52339
+ }
52340
+ },
52341
+ "503": {
52342
+ "description": "Azure DevOps integration not configured",
52343
+ "content": {
52344
+ "application/json": {
52345
+ "schema": {
52346
+ "$ref": "#/components/schemas/ErrorResponse"
52347
+ }
52348
+ }
52349
+ }
52350
+ }
52351
+ }
52352
+ }
52353
+ },
51681
52354
  "/api/agentmail/webhook": {
51682
52355
  "post": {
51683
52356
  "summary": "Handle AgentMail webhook events",