@desplega.ai/agent-swarm 2.14.0 → 2.14.1

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 (344) hide show
  1. package/dist/acp-adapter-7jv7w8jh.js +17 -0
  2. package/dist/{acp-targets-23exz4z4.js → acp-targets-0ebmg3et.js} +10 -10
  3. package/dist/{actions-zcr25x27.js → actions-0ds9dx6c.js} +28 -28
  4. package/dist/{agent-fs-provision-7fa9e12e.js → agent-fs-provision-zpbxa9jc.js} +4 -4
  5. package/dist/{amp-adapter-s7ytmv6b.js → amp-adapter-awh5nn7a.js} +3 -3
  6. package/dist/{anthropic-messages-vdd1zmha.js → anthropic-messages-gtgp9r85.js} +17 -17
  7. package/dist/{app-5d3sz1hy.js → app-nzejkvpp.js} +10 -10
  8. package/dist/{approval-notifications-7qgkzkzx.js → approval-notifications-hbqtb2w3.js} +11 -11
  9. package/dist/{assistant-p2yvhc3j.js → assistant-1paft129.js} +29 -29
  10. package/dist/{boot-args-schema-ry6cb0p7.js → boot-args-schema-zs435mfx.js} +1 -1
  11. package/dist/{boot-reembed-2hkm3vz2.js → boot-reembed-7xq2qgg4.js} +1 -1
  12. package/dist/{boot-reembed-c9643ms3.js → boot-reembed-91qrd4mz.js} +1 -1
  13. package/dist/{boot-scrub-sweep-3ycxr51t.js → boot-scrub-sweep-3h5xscw6.js} +2 -2
  14. package/dist/{boot-seeds-2hzvvzg0.js → boot-seeds-xkxqa8zc.js} +4 -4
  15. package/dist/{boxd-9py3x0jb.js → boxd-464x3w4m.js} +3 -3
  16. package/dist/{claude-adapter-dnkww93e.js → claude-adapter-6d8eyf2f.js} +12 -13
  17. package/dist/{claude-managed-adapter-yk0cr5x6.js → claude-managed-adapter-jzxcaf9m.js} +4 -4
  18. package/dist/{claude-managed-setup-4byxpp47.js → claude-managed-setup-5fcx0qh3.js} +10 -10
  19. package/dist/{claude-sdk-session-4wf3dbvs.js → claude-sdk-session-11vhz1hc.js} +11442 -12786
  20. package/dist/{cli-2ckwgs7q.js → cli-02ba8qx5.js} +1 -1
  21. package/dist/{cli-wvgg7r4j.js → cli-08gfvs58.js} +2 -2
  22. package/dist/{cli-ad00h1st.js → cli-0dkpdvnn.js} +10 -10
  23. package/dist/{cli-879txsac.js → cli-0mq8kxfx.js} +4 -4
  24. package/dist/{cli-rp1n2xpd.js → cli-0nvqg1hb.js} +1 -1
  25. package/dist/{cli-qrwjk4xy.js → cli-0qyfna7a.js} +5 -5
  26. package/dist/cli-0vxbrxr3.js +1006 -0
  27. package/dist/{cli-vxmmttmt.js → cli-132h67ps.js} +52 -52
  28. package/dist/{cli-yd7e590v.js → cli-1e13gvfn.js} +14 -14
  29. package/dist/cli-1hj68b3h.js +30 -0
  30. package/dist/{cli-hzhv7yac.js → cli-1zbj28py.js} +1 -1
  31. package/dist/{cli-0k7ppk9k.js → cli-20mkgwev.js} +43 -38
  32. package/dist/{cli-ejnhs815.js → cli-288k5ep1.js} +11 -11
  33. package/dist/{cli-njvpngc6.js → cli-2n7qdqfv.js} +3 -3
  34. package/dist/{cli-r04ve9xw.js → cli-2r62jy9s.js} +1 -1
  35. package/dist/{cli-9j1t3kf6.js → cli-3179w2rz.js} +2 -2
  36. package/dist/cli-3a3hm1z8.js +15 -0
  37. package/dist/cli-3bagv8rt.js +37 -0
  38. package/dist/{cli-6ajyhxh7.js → cli-3bcsc3m7.js} +2 -2
  39. package/dist/{cli-jgq9xptq.js → cli-3g0vbq46.js} +4 -4
  40. package/dist/{cli-69szn7w7.js → cli-3ktfe5jx.js} +71 -47
  41. package/dist/{cli-yjb3cddd.js → cli-44r66df2.js} +1 -1
  42. package/dist/{cli-mv8ft7b0.js → cli-4y2bekkn.js} +3 -3
  43. package/dist/cli-547fsc36.js +15 -0
  44. package/dist/{cli-6p8p2e6r.js → cli-5pyes68e.js} +1278 -23
  45. package/dist/{cli-930zbczq.js → cli-5t00r6c9.js} +3 -3
  46. package/dist/{cli-kc7vd07m.js → cli-5xjdft4s.js} +3601 -1700
  47. package/dist/{cli-4dyzzkfb.js → cli-643skca1.js} +954 -180
  48. package/dist/{cli-vr4eyq6p.js → cli-6a77m17n.js} +540 -412
  49. package/dist/{cli-v41kn3cd.js → cli-6prwz0zn.js} +4427 -5566
  50. package/dist/{cli-1nfabrt4.js → cli-6xrbpj5j.js} +4 -4
  51. package/dist/{cli-meydjstb.js → cli-6yhjqd6k.js} +4965 -69
  52. package/dist/{cli-6yy4fepf.js → cli-727sq1f9.js} +4 -4
  53. package/dist/{cli-snxhtehz.js → cli-7abeph0b.js} +7 -8
  54. package/dist/{cli-ty3gha1p.js → cli-7b9bwrfg.js} +2 -2
  55. package/dist/{cli-g6a696c0.js → cli-7dwsn9y5.js} +4 -4
  56. package/dist/{cli-r9d2tya0.js → cli-7qkbab03.js} +5 -5
  57. package/dist/{cli-7ca8hczj.js → cli-7svwhw1a.js} +1 -1
  58. package/dist/{cli-ze1ndjs4.js → cli-83kf2y60.js} +8 -8
  59. package/dist/{cli-rs1rzwp4.js → cli-8crn0510.js} +1 -1
  60. package/dist/{cli-wym6rxgt.js → cli-8kemtj1r.js} +10 -15
  61. package/dist/{cli-md4tn21h.js → cli-967jrz7j.js} +40 -26
  62. package/dist/{cli-jcnc5ret.js → cli-976m0zcw.js} +38 -28
  63. package/dist/{cli-cbg0j1yt.js → cli-98sea4d9.js} +3 -3
  64. package/dist/{cli-xh5fpmg8.js → cli-9txap41q.js} +101 -18
  65. package/dist/{cli-24wervhz.js → cli-aktk3qt6.js} +3 -3
  66. package/dist/{cli-096aftq6.js → cli-b70cpf8f.js} +7 -7
  67. package/dist/{cli-2ap1the6.js → cli-by7s3n4p.js} +1 -1
  68. package/dist/{cli-w4bvtxet.js → cli-byzq8xht.js} +7 -7
  69. package/dist/{cli-phe2vcw5.js → cli-d1zkys4j.js} +150 -99
  70. package/dist/cli-dr6x9qdk.js +15 -0
  71. package/dist/cli-dt931hb8.js +9740 -0
  72. package/dist/{cli-0e914dp9.js → cli-e1wprqnd.js} +3 -3
  73. package/dist/{cli-2ayk9gn8.js → cli-e2wzzw17.js} +2 -2
  74. package/dist/{cli-1jx0srjt.js → cli-e9p9h14n.js} +1921 -80
  75. package/dist/{cli-2savn6mm.js → cli-eaqxkeq0.js} +10 -10
  76. package/dist/{cli-dw9rtjm3.js → cli-etykr11s.js} +3061 -727
  77. package/dist/{cli-73rmgm45.js → cli-f07sgaax.js} +2 -2
  78. package/dist/{cli-gc6b94tj.js → cli-fe8he9cy.js} +2 -2
  79. package/dist/{cli-s4pccby1.js → cli-h0edykd1.js} +1 -1
  80. package/dist/cli-h5cveb69.js +15 -0
  81. package/dist/{cli-gcyws2bp.js → cli-hamdfjtx.js} +2 -2
  82. package/dist/{cli-jwnac23b.js → cli-hh5m39pt.js} +1 -1
  83. package/dist/{cli-f9g96z28.js → cli-j8fmn3wv.js} +11 -11
  84. package/dist/cli-jngvszex.js +1514 -0
  85. package/dist/{cli-8vbxjzk0.js → cli-k791mabe.js} +6 -6
  86. package/dist/{cli-9fwznq4p.js → cli-k9m8fckz.js} +7 -7
  87. package/dist/{cli-39t9d248.js → cli-kz8rar0g.js} +1 -1
  88. package/dist/{cli-rzbsh6bw.js → cli-n15fhd43.js} +1 -1
  89. package/dist/{cli-wvbaq052.js → cli-nmdy8bzf.js} +10 -3
  90. package/dist/{cli-t9pzz2eq.js → cli-ntmjzyte.js} +4 -1
  91. package/dist/{cli-adzmmcvf.js → cli-ny8f5g7t.js} +2 -2
  92. package/dist/cli-p0g0erm9.js +15 -0
  93. package/dist/{cli-2zjxake1.js → cli-pgdqhdkw.js} +4 -4
  94. package/dist/cli-ph1jce1b.js +16 -0
  95. package/dist/{cli-v4z5v3jd.js → cli-phantfg3.js} +480 -328
  96. package/dist/{cli-2414h5r9.js → cli-rb1z91g8.js} +10221 -1397
  97. package/dist/{cli-a49frv85.js → cli-redtbppc.js} +1 -1
  98. package/dist/{cli-91amj3md.js → cli-s7bfz1ye.js} +15 -15
  99. package/dist/{cli-kg63yp1r.js → cli-sf5kp73f.js} +18 -18
  100. package/dist/{cli-fww016hh.js → cli-sq32dgfe.js} +1373 -7129
  101. package/dist/{cli-enavhq6r.js → cli-tbrjvrrg.js} +1 -1
  102. package/dist/{cli-84xn7bgz.js → cli-tdd9dvw6.js} +1 -1
  103. package/dist/{cli-qkbevqer.js → cli-tjrrabez.js} +3 -3
  104. package/dist/{cli-q457ga28.js → cli-tkrp183j.js} +11 -11
  105. package/dist/{cli-7w1fs01q.js → cli-trvtxwzt.js} +2 -2
  106. package/dist/{cli-ayxxkk3p.js → cli-v1rhq77v.js} +8 -8
  107. package/dist/{cli-9j47sgzy.js → cli-v3jxx8dv.js} +2 -2
  108. package/dist/{cli-f2rwt43y.js → cli-v84kb7af.js} +13 -13
  109. package/dist/{cli-3mhdmcd4.js → cli-vp2ksaq9.js} +1 -1
  110. package/dist/{cli-b0m3bg0f.js → cli-vrb8pvrf.js} +6 -6
  111. package/dist/cli-vxxdf2ma.js +15 -0
  112. package/dist/{cli-wd7b5hgc.js → cli-w81s97bn.js} +1 -1
  113. package/dist/{cli-bqfx72e6.js → cli-wkzrknpt.js} +1 -1
  114. package/dist/{cli-cg1q8ymp.js → cli-wqpvfq2m.js} +1 -1
  115. package/dist/{cli-pq0kv31y.js → cli-wsh5vfa7.js} +9 -9
  116. package/dist/{cli-shyhb4t5.js → cli-wtwe8vng.js} +39 -39
  117. package/dist/{cli-3wsabyt0.js → cli-ww8wxfzx.js} +2 -2
  118. package/dist/{cli-e8trbfx1.js → cli-x80zagf5.js} +1 -1
  119. package/dist/{cli-r495stwd.js → cli-xd6ntv7x.js} +2 -2
  120. package/dist/{cli-0h6m6z5g.js → cli-xmc2nrtv.js} +1 -1
  121. package/dist/{cli-q5n3deaf.js → cli-ytgtqsy9.js} +1 -1
  122. package/dist/{cli-srq69pn1.js → cli-yvnnyjxm.js} +1 -1
  123. package/dist/{cli-krk8y8c7.js → cli-z0c98h7h.js} +1747 -439
  124. package/dist/{cli-mw1tmn3x.js → cli-z0effej1.js} +7 -7
  125. package/dist/{cli-7g5qj2ca.js → cli-zcb64xzv.js} +1 -1
  126. package/dist/{cli-m0ea8ggd.js → cli-zdkcp8p0.js} +2 -2
  127. package/dist/{cli-37p61fcg.js → cli-zgsd2w2k.js} +20 -22
  128. package/dist/{cli-tc165vrb.js → cli-zmfs06hg.js} +7 -6
  129. package/dist/{cli-edxfzgah.js → cli-zvsy4abb.js} +4 -4
  130. package/dist/{cli-z8t4485r.js → cli-zyf288rw.js} +2 -2
  131. package/dist/cli.js +58 -59
  132. package/dist/{codex-adapter-eq61radw.js → codex-adapter-seht4h9t.js} +9 -9
  133. package/dist/{codex-hook-8nmepvz6.js → codex-hook-w5nmtrn2.js} +2 -2
  134. package/dist/{codex-login-vbd9707w.js → codex-login-67qarfcg.js} +1 -1
  135. package/dist/{codex-session-runner-rfx355h4.js → codex-session-runner-tq95x3gq.js} +10 -10
  136. package/dist/{commands-d1z0sx62.js → commands-0awwqxq5.js} +3 -3
  137. package/dist/{controller-9hz6d8x3.js → controller-hgjx521c.js} +4 -4
  138. package/dist/{controllers-connect-tz07d2xr.js → controllers-connect-j4kdmhfj.js} +28 -28
  139. package/dist/core-8fw1gwg7.js +41 -0
  140. package/dist/{cursor-adapter-ef22ze3j.js → cursor-adapter-0rg8wk6j.js} +2 -2
  141. package/dist/{db-gd81d68c.js → db-8xs2js3s.js} +3 -3
  142. package/dist/{db-vrckks6q.js → db-dd6hj211.js} +2 -2
  143. package/dist/{devin-adapter-kdt6a2bh.js → devin-adapter-tn1twrha.js} +1 -1
  144. package/dist/{devtools-qxfgbsqz.js → devtools-b8qts77k.js} +1 -1
  145. package/dist/{dispatcher-76as8w2t.js → dispatcher-v7drd034.js} +24 -24
  146. package/dist/{docker-51ta7jsh.js → docker-6007r2fj.js} +2 -2
  147. package/dist/{dsh-adapter-ypfvcdyz.js → dsh-adapter-ah8npj2x.js} +2 -2
  148. package/dist/{e2b-dm9r8hpy.js → e2b-hg80w0qr.js} +2 -2
  149. package/dist/{e2b-05kn3kpq.js → e2b-z1g7vpz6.js} +4 -4
  150. package/dist/{easter-egg-3d-sg21j15g.js → easter-egg-3d-8n4w3s9k.js} +1 -1
  151. package/dist/{embedding-space-zsdw37bb.js → embedding-space-0p921zt3.js} +5 -5
  152. package/dist/{embeddings-p4e3e1m6.js → embeddings-9s7kbrc6.js} +1 -1
  153. package/dist/emscripten-module-Q67P5WYC-3sde6cre.js +2458 -0
  154. package/dist/{event-bus-tvf2grf4.js → event-bus-pawddp92.js} +1 -1
  155. package/dist/{execute-nztd0af0.js → execute-x0fy9j0m.js} +1 -1
  156. package/dist/{external-channel-717yzn4d.js → external-channel-ktfvn29c.js} +2 -2
  157. package/dist/ffi-cbfmmtqk.js +85 -0
  158. package/dist/fx-adapter-15vjxvgm.js +20 -0
  159. package/dist/getMachineId-bsd-2rd3pnz7.js +36 -0
  160. package/dist/getMachineId-bsd-3p48mkt1.js +36 -0
  161. package/dist/{getMachineId-bsd-637a7rbk.js → getMachineId-bsd-bk6tmeen.js} +5 -5
  162. package/dist/getMachineId-bsd-pssqgwmm.js +37 -0
  163. package/dist/getMachineId-bsd-v218x3xd.js +36 -0
  164. package/dist/getMachineId-bsd-wbxcazef.js +36 -0
  165. package/dist/getMachineId-bsd-x0942pbz.js +36 -0
  166. package/dist/getMachineId-darwin-5qsy4qcg.js +36 -0
  167. package/dist/getMachineId-darwin-6v7zsshx.js +37 -0
  168. package/dist/getMachineId-darwin-fcc3fjag.js +36 -0
  169. package/dist/getMachineId-darwin-pg84hftj.js +36 -0
  170. package/dist/{getMachineId-darwin-9vytrcnn.js → getMachineId-darwin-tyyevt26.js} +5 -5
  171. package/dist/getMachineId-darwin-wagmbf0d.js +36 -0
  172. package/dist/getMachineId-darwin-zvkmwr3y.js +36 -0
  173. package/dist/{getMachineId-linux-mkzsvyyz.js → getMachineId-linux-2ncg1epd.js} +3 -3
  174. package/dist/getMachineId-linux-2tmt2ptc.js +29 -0
  175. package/dist/getMachineId-linux-empwyp2y.js +29 -0
  176. package/dist/getMachineId-linux-fanqd45b.js +29 -0
  177. package/dist/getMachineId-linux-h6fyga0x.js +29 -0
  178. package/dist/getMachineId-linux-tbhgz1k9.js +29 -0
  179. package/dist/getMachineId-linux-zrbyw7dt.js +29 -0
  180. package/dist/getMachineId-unsupported-29g9dkgv.js +19 -0
  181. package/dist/getMachineId-unsupported-8xfq8djv.js +19 -0
  182. package/dist/getMachineId-unsupported-8y9cag1p.js +19 -0
  183. package/dist/getMachineId-unsupported-a6sjrm02.js +19 -0
  184. package/dist/getMachineId-unsupported-bp3w7ds0.js +19 -0
  185. package/dist/{getMachineId-unsupported-4cfs2n11.js → getMachineId-unsupported-sj6fk8sw.js} +3 -3
  186. package/dist/getMachineId-unsupported-v0p5gdxp.js +19 -0
  187. package/dist/getMachineId-win-hc996p0x.js +38 -0
  188. package/dist/{getMachineId-win-154s3qma.js → getMachineId-win-msq9ad87.js} +6 -6
  189. package/dist/getMachineId-win-tajyqwd6.js +38 -0
  190. package/dist/getMachineId-win-tzc163da.js +38 -0
  191. package/dist/getMachineId-win-xdaa0mgq.js +38 -0
  192. package/dist/getMachineId-win-xk6p98m5.js +38 -0
  193. package/dist/getMachineId-win-xtk658fm.js +38 -0
  194. package/dist/{google-generative-ai-sw77egmr.js → google-generative-ai-nzndg246.js} +1 -1
  195. package/dist/{google-vertex-rrw93g8h.js → google-vertex-ragh3nnw.js} +1 -1
  196. package/dist/grok-adapter-77httan0.js +20 -0
  197. package/dist/handlers-c1jp5b6h.js +39 -0
  198. package/dist/heartbeat-5yaj6dym.js +49 -0
  199. package/dist/{hook-ctz0xmp3.js → hook-2jttae8s.js} +10 -11
  200. package/dist/hook-c99nycyh.js +21 -0
  201. package/dist/{http-zregegrx.js → http-7y9dbfrr.js} +155 -122
  202. package/dist/{index-kzdqn3dd.js → index-6g9rdcrj.js} +3036 -758
  203. package/dist/index-7dwh9kxh.js +41 -0
  204. package/dist/{index-ym9fgxad.js → index-8p03vx1h.js} +8 -8
  205. package/dist/{index-maddg9ys.js → index-cw8nxnba.js} +4330 -15375
  206. package/dist/{index-fdym6ryb.js → index-dm7c6hw5.js} +28 -28
  207. package/dist/index-fqf82sbk.js +10584 -0
  208. package/dist/{index-126v2d0t.js → index-g7rthzrv.js} +11 -2923
  209. package/dist/{index-x9qf8dg7.js → index-h9xnzfhx.js} +21 -20
  210. package/dist/{index-42jq9yy3.js → index-jvfp0j47.js} +516 -10
  211. package/dist/{index-mtnbhe12.js → index-q60mhcpd.js} +23631 -19921
  212. package/dist/{index-evay0xyk.js → index-qxcfv8vq.js} +1 -1
  213. package/dist/{index-rz8ve510.js → index-t274qhhs.js} +6 -6
  214. package/dist/{index-kdmkfjt7.js → index-t4n9z755.js} +3491 -2487
  215. package/dist/{index-7dgxveck.js → index-tcegcysh.js} +5 -5
  216. package/dist/{index-whysn1wf.js → index-tn1m3q9b.js} +3 -3
  217. package/dist/index-wp9tarbt.js +43 -0
  218. package/dist/{index-5kx15d19.js → index-xhp7yp3t.js} +1 -1
  219. package/dist/index-z6np2405.js +38 -0
  220. package/dist/{k8s-ejkk0aw7.js → k8s-mr1r12th.js} +2 -2
  221. package/dist/{keepalive-zdqay870.js → keepalive-7eyb8y4t.js} +4 -4
  222. package/dist/lead-50cgn8s1.js +81 -0
  223. package/dist/{maintenance-t5ndg11m.js → maintenance-tdrd8nwv.js} +1 -1
  224. package/dist/module-ES6BEMUI-6htewwha.js +1210 -0
  225. package/dist/{node-0as4n1ef.js → node-gbx1t3pa.js} +1 -1
  226. package/dist/{oauth-refresh-sweep-y9zyd7t6.js → oauth-refresh-sweep-f4c7g37h.js} +3 -3
  227. package/dist/{object-webhooks-mkca91s0.js → object-webhooks-p190rdxp.js} +7 -7
  228. package/dist/{onboard-ss995244.js → onboard-56h4sks6.js} +7 -7
  229. package/dist/{opencode-adapter-mwpz0278.js → opencode-adapter-xg3yxfr0.js} +8 -8
  230. package/dist/{otel-impl-6n6vva3x.js → otel-impl-kepzgm4n.js} +36360 -9179
  231. package/dist/{pending-2sxh1t6j.js → pending-xgv316w0.js} +25 -25
  232. package/dist/{pi-mono-adapter-sfb7zy43.js → pi-mono-adapter-txe0syzb.js} +19 -22
  233. package/dist/{pricing-refresh-h79bg4cf.js → pricing-refresh-041zpyhf.js} +2 -2
  234. package/dist/{rbac-roles-ckq0czp4.js → rbac-roles-8f3jbcaf.js} +2 -2
  235. package/dist/{rbac-roles-jg2e260w.js → rbac-roles-cw7rrw5b.js} +3 -3
  236. package/dist/{render-v2-ymbshmn0.js → render-v2-2ezw4mzt.js} +10 -10
  237. package/dist/{resume-jdhnt4jk.js → resume-p14wdx8m.js} +13 -13
  238. package/dist/{runtime-y28jhhnf.js → runtime-he7c9g1r.js} +1 -1
  239. package/dist/{session-access-k4ta5hvp.js → session-access-8jvq86fj.js} +5 -5
  240. package/dist/{session-source-backfill-528j4s8j.js → session-source-backfill-6fe3hcgb.js} +3 -3
  241. package/dist/{setup-d6pj82fr.js → setup-6v0bn4r1.js} +3 -3
  242. package/dist/thread-buffer-8860v1ta.js +40 -0
  243. package/dist/{token-util-pjgekqxr.js → token-util-hnzceyn9.js} +1 -1
  244. package/dist/{token-pgr2w4s3.js → token-xnc02n6w.js} +21 -14
  245. package/dist/{tree-visibility-kjxv3nxk.js → tree-visibility-g1a8ff4r.js} +2 -2
  246. package/dist/{user-merge-jobs-rabbncf6.js → user-merge-jobs-vjsps179.js} +3 -3
  247. package/dist/{virtual-modules-22k51txd.js → virtual-modules-mreda4fp.js} +3 -3
  248. package/dist/{work-objects-xtjbar3r.js → work-objects-hfw15e35.js} +26 -26
  249. package/dist/{worker-follow-up-fg48vk6d.js → worker-follow-up-gbaz2ydz.js} +24 -24
  250. package/dist/worker-hkm8ftqp.js +81 -0
  251. package/dist/{x-vfsqypht.js → x-k29vmskt.js} +2 -2
  252. package/openapi.json +57 -1
  253. package/package.json +39 -39
  254. package/src/be/db/model-profiles.ts +103 -12
  255. package/src/be/db/tasks/read.ts +5 -0
  256. package/src/be/db.ts +14 -4
  257. package/src/be/model-group-resolution.ts +134 -0
  258. package/src/be/model-tier-resolution.ts +120 -17
  259. package/src/be/model-validation.ts +9 -1
  260. package/src/be/runtime-pools/routing.ts +22 -8
  261. package/src/be/scripts/extract-schema.ts +7 -0
  262. package/src/be/swarm-config-guard.ts +17 -7
  263. package/src/commands/onboard/agent-fs-version.ts +1 -1
  264. package/src/extensions/contract-types.generated.ts +1 -1
  265. package/src/http/db-query.ts +8 -2
  266. package/src/http/operator-actor.ts +3 -8
  267. package/src/http/poll.ts +20 -1
  268. package/src/http/repos.ts +3 -1
  269. package/src/http/schedules.ts +23 -3
  270. package/src/http/tasks.ts +11 -1
  271. package/src/prompts/base-prompt.ts +10 -6
  272. package/src/prompts/session-templates.ts +3 -3
  273. package/src/providers/acp-targets.ts +1 -1
  274. package/src/providers/amp-adapter.ts +11 -9
  275. package/src/providers/cursor-adapter.ts +1 -1
  276. package/src/realtime/browser.generated.txt +1 -1
  277. package/src/scheduler/schedule-task.ts +1 -0
  278. package/src/scripts-runtime/types/swarm-extension.d.ts +2 -0
  279. package/src/slack/config.ts +4 -0
  280. package/src/slack/render-v2.ts +2 -1
  281. package/src/slack/responses.ts +2 -1
  282. package/src/tasks/follow-up-gate.ts +142 -38
  283. package/src/tasks/worker-follow-up.ts +126 -37
  284. package/src/tests/amp-adapter.test.ts +57 -9
  285. package/src/tests/base-prompt.test.ts +36 -2
  286. package/src/tests/db-retention-defaults.test.ts +28 -3
  287. package/src/tests/entrypoint-repo-autoclone-args.test.ts +10 -0
  288. package/src/tests/follow-up-gate-shadow.test.ts +268 -10
  289. package/src/tests/linear-outbound-sync.test.ts +59 -25
  290. package/src/tests/operator-actor-keyless.test.ts +103 -0
  291. package/src/tests/profile-tier-alias.test.ts +9 -3
  292. package/src/tests/runner-repo-clone-args.test.ts +15 -6
  293. package/src/tests/workflow-system-one-extraction.test.ts +21 -0
  294. package/src/tests/workflow-wait-filter.test.ts +7 -7
  295. package/src/tests/worktree-reaper.test.ts +15 -4
  296. package/src/tools/schedules/create-schedule.ts +20 -3
  297. package/src/tools/schedules/patch-schedule.ts +30 -4
  298. package/src/tools/schedules/update-schedule.ts +30 -4
  299. package/src/tools/send-task.ts +17 -3
  300. package/src/tools/slack-post.ts +7 -2
  301. package/src/tools/slack-reply.ts +6 -2
  302. package/src/tools/task-action.ts +16 -3
  303. package/src/tools/utils.ts +1 -1
  304. package/src/types.ts +10 -0
  305. package/src/utils/amp-models.ts +20 -4
  306. package/src/utils/secret-scrubber.ts +6 -4
  307. package/src/workflows/engine.ts +36 -8
  308. package/src/workflows/executors/agent-task.ts +13 -2
  309. package/src/workflows/executors/code-match.ts +11 -31
  310. package/src/workflows/executors/script.ts +13 -0
  311. package/src/workflows/executors/system-one-extraction.ts +9 -6
  312. package/src/workflows/executors/wait.ts +1 -1
  313. package/src/workflows/foreach-driver.ts +5 -1
  314. package/src/workflows/model-validation.ts +13 -1
  315. package/src/workflows/predicate-sandbox.ts +171 -0
  316. package/src/workflows/retry-poller.ts +1 -1
  317. package/src/workflows/wait-filter.ts +14 -192
  318. package/templates/skills/heartbeat-runbook/content.md +1 -0
  319. package/templates/skills/slack-interaction/content.md +4 -0
  320. package/templates/skills/swarm-docs/content.md +1 -0
  321. package/dist/acp-adapter-99n6z9ky.js +0 -17
  322. package/dist/cli-5ss6qqt9.js +0 -45
  323. package/dist/cli-dzzh58sy.js +0 -6996
  324. package/dist/cli-j9ccfveb.js +0 -1849
  325. package/dist/cli-mna6pmfx.js +0 -1485
  326. package/dist/cli-r8ddn0hf.js +0 -25583
  327. package/dist/core-dynsv289.js +0 -41
  328. package/dist/fx-adapter-9k0hptnz.js +0 -20
  329. package/dist/grok-adapter-skdj2pce.js +0 -20
  330. package/dist/handlers-5btjqkz6.js +0 -39
  331. package/dist/heartbeat-vfb1gy84.js +0 -49
  332. package/dist/hook-eh52p7yd.js +0 -22
  333. package/dist/index-7w8p6em0.js +0 -41
  334. package/dist/index-t56y945n.js +0 -4
  335. package/dist/index-vfemrwwk.js +0 -10002
  336. package/dist/index-vz4semsx.js +0 -38
  337. package/dist/index-y3s0xp2v.js +0 -43
  338. package/dist/lead-6cscw8a5.js +0 -82
  339. package/dist/thread-buffer-9w6x5zec.js +0 -40
  340. package/dist/worker-g4aj93dt.js +0 -82
  341. package/dist/{azure-openai-responses-jeaas6x0.js → azure-openai-responses-e76k86gf.js} +4 -4
  342. package/dist/{openai-codex-responses-70g39cgz.js → openai-codex-responses-z2h941b8.js} +4 -4
  343. package/dist/{openai-completions-cv3hp4h5.js → openai-completions-5bxdkeg9.js} +4 -4
  344. package/dist/{openai-responses-trsvnks6.js → openai-responses-dzf3e8r5.js} +4 -4
@@ -0,0 +1,81 @@
1
+ import"./cli-z0c98h7h.js";
2
+ import"./cli-ww8wxfzx.js";
3
+ import"./cli-tjrrabez.js";
4
+ import"./cli-e2wzzw17.js";
5
+ import"./cli-0nvqg1hb.js";
6
+ import"./cli-zyf288rw.js";
7
+ import"./cli-tdd9dvw6.js";
8
+ import"./cli-6a77m17n.js";
9
+ import"./cli-dt931hb8.js";
10
+ import"./cli-sq32dgfe.js";
11
+ import"./cli-eaqxkeq0.js";
12
+ import"./cli-d1zkys4j.js";
13
+ import {
14
+ getEnabledCapabilities,
15
+ init_server
16
+ } from "./cli-5xjdft4s.js";
17
+ import"./cli-y260hgep.js";
18
+ import"./cli-0qyfna7a.js";
19
+ import"./cli-byzq8xht.js";
20
+ import"./cli-83kf2y60.js";
21
+ import"./cli-n15fhd43.js";
22
+ import {
23
+ runAgent
24
+ } from "./cli-132h67ps.js";
25
+ import"./cli-08gfvs58.js";
26
+ import"./cli-4y2bekkn.js";
27
+ import"./cli-77cd6gy8.js";
28
+ import"./cli-8crn0510.js";
29
+ import"./cli-tbrjvrrg.js";
30
+ import"./cli-xd6ntv7x.js";
31
+ import"./cli-tkrp183j.js";
32
+ import"./cli-5pyes68e.js";
33
+ import"./cli-by7s3n4p.js";
34
+ import"./cli-3179w2rz.js";
35
+ import"./cli-k791mabe.js";
36
+ import"./cli-trvtxwzt.js";
37
+ import"./cli-zcb64xzv.js";
38
+ import"./cli-d82btycs.js";
39
+ import"./cli-0726awxw.js";
40
+ import"./cli-k9m8fckz.js";
41
+ import"./cli-zgsd2w2k.js";
42
+ import"./cli-7abeph0b.js";
43
+ import"./cli-20mkgwev.js";
44
+ import"./cli-b70cpf8f.js";
45
+ import"./cli-1zbj28py.js";
46
+ import"./cli-kr5tjjtz.js";
47
+ import"./cli-sf5kp73f.js";
48
+ import"./cli-j8fmn3wv.js";
49
+ import"./cli-h0edykd1.js";
50
+ import"./cli-6xrbpj5j.js";
51
+ import"./cli-0dkpdvnn.js";
52
+ import"./cli-98sea4d9.js";
53
+ import"./cli-wsh5vfa7.js";
54
+ import"./cli-1e13gvfn.js";
55
+ import"./cli-727sq1f9.js";
56
+ import"./cli-e1wprqnd.js";
57
+ import"./cli-ytgtqsy9.js";
58
+ import"./cli-phantfg3.js";
59
+ import"./cli-zdkcp8p0.js";
60
+ import"./cli-3g0vbq46.js";
61
+ import"./cli-3bcsc3m7.js";
62
+ import"./cli-yvnnyjxm.js";
63
+ import"./cli-976m0zcw.js";
64
+ import"./cli-hh5m39pt.js";
65
+ import"./cli-vrb8pvrf.js";
66
+ import"./cli-ny8f5g7t.js";
67
+
68
+ // src/commands/worker.ts
69
+ init_server();
70
+ var workerConfig = {
71
+ role: "worker",
72
+ defaultPrompt: "/start-worker",
73
+ metadataType: "worker_metadata",
74
+ capabilities: getEnabledCapabilities()
75
+ };
76
+ async function runWorker(opts) {
77
+ return runAgent(workerConfig, opts);
78
+ }
79
+ export {
80
+ runWorker
81
+ };
@@ -4,11 +4,11 @@ import {
4
4
  executeComposioRequest,
5
5
  formatComposioResultForCli,
6
6
  init_composio
7
- } from "./cli-bqfx72e6.js";
7
+ } from "./cli-wkzrknpt.js";
8
8
  import {
9
9
  scrubSecrets,
10
10
  init_secret_scrubber
11
- } from "./cli-r9d2tya0.js";
11
+ } from "./cli-7qkbab03.js";
12
12
 
13
13
  // src/commands/x.ts
14
14
  init_secret_scrubber();
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.14.0",
5
+ "version": "2.14.1",
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": [
@@ -468,6 +468,9 @@
468
468
  "resolvedProfile": {
469
469
  "type": "string"
470
470
  },
471
+ "modelGroup": {
472
+ "type": "string"
473
+ },
471
474
  "fallbackHops": {
472
475
  "type": "array",
473
476
  "items": {
@@ -3735,6 +3738,7 @@
3735
3738
  "task_dispatch_rejected_affinity",
3736
3739
  "task_authorization_rejected",
3737
3740
  "task_recovery_authorization",
3741
+ "task_model_group_resolved",
3738
3742
  "task_dependency_repointed",
3739
3743
  "task_released",
3740
3744
  "task_deferred_wait_woke",
@@ -39990,6 +39994,9 @@
39990
39994
  "resolvedProfile": {
39991
39995
  "type": "string"
39992
39996
  },
39997
+ "modelGroup": {
39998
+ "type": "string"
39999
+ },
39993
40000
  "provider": {
39994
40001
  "type": "string",
39995
40002
  "enum": [
@@ -40318,6 +40325,10 @@
40318
40325
  "type": "string",
40319
40326
  "minLength": 1
40320
40327
  },
40328
+ "modelGroup": {
40329
+ "type": "string",
40330
+ "minLength": 1
40331
+ },
40321
40332
  "draft": {
40322
40333
  "type": "boolean"
40323
40334
  }
@@ -41712,6 +41723,9 @@
41712
41723
  "resolvedProfile": {
41713
41724
  "type": "string"
41714
41725
  },
41726
+ "modelGroup": {
41727
+ "type": "string"
41728
+ },
41715
41729
  "provider": {
41716
41730
  "type": "string",
41717
41731
  "enum": [
@@ -47927,6 +47941,9 @@
47927
47941
  "profile": {
47928
47942
  "type": "string"
47929
47943
  },
47944
+ "modelGroup": {
47945
+ "type": "string"
47946
+ },
47930
47947
  "allowCustomModel": {
47931
47948
  "type": "boolean"
47932
47949
  },
@@ -48111,6 +48128,9 @@
48111
48128
  "profile": {
48112
48129
  "type": "string"
48113
48130
  },
48131
+ "modelGroup": {
48132
+ "type": "string"
48133
+ },
48114
48134
  "scheduleType": {
48115
48135
  "type": "string",
48116
48136
  "enum": [
@@ -48482,6 +48502,9 @@
48482
48502
  "profile": {
48483
48503
  "type": "string"
48484
48504
  },
48505
+ "modelGroup": {
48506
+ "type": "string"
48507
+ },
48485
48508
  "scheduleType": {
48486
48509
  "type": "string",
48487
48510
  "enum": [
@@ -48680,6 +48703,9 @@
48680
48703
  "profile": {
48681
48704
  "type": "string"
48682
48705
  },
48706
+ "modelGroup": {
48707
+ "type": "string"
48708
+ },
48683
48709
  "scheduleType": {
48684
48710
  "type": "string",
48685
48711
  "enum": [
@@ -48921,6 +48947,9 @@
48921
48947
  "profile": {
48922
48948
  "type": "string"
48923
48949
  },
48950
+ "modelGroup": {
48951
+ "type": "string"
48952
+ },
48924
48953
  "scheduleType": {
48925
48954
  "type": "string",
48926
48955
  "enum": [
@@ -49177,6 +49206,9 @@
49177
49206
  "profile": {
49178
49207
  "type": "string"
49179
49208
  },
49209
+ "modelGroup": {
49210
+ "type": "string"
49211
+ },
49180
49212
  "scheduleType": {
49181
49213
  "type": "string",
49182
49214
  "enum": [
@@ -49376,6 +49408,12 @@
49376
49408
  "null"
49377
49409
  ]
49378
49410
  },
49411
+ "modelGroup": {
49412
+ "type": [
49413
+ "string",
49414
+ "null"
49415
+ ]
49416
+ },
49379
49417
  "allowCustomModel": {
49380
49418
  "type": "boolean"
49381
49419
  },
@@ -49562,6 +49600,9 @@
49562
49600
  "profile": {
49563
49601
  "type": "string"
49564
49602
  },
49603
+ "modelGroup": {
49604
+ "type": "string"
49605
+ },
49565
49606
  "scheduleType": {
49566
49607
  "type": "string",
49567
49608
  "enum": [
@@ -49792,6 +49833,12 @@
49792
49833
  "null"
49793
49834
  ]
49794
49835
  },
49836
+ "modelGroup": {
49837
+ "type": [
49838
+ "string",
49839
+ "null"
49840
+ ]
49841
+ },
49795
49842
  "allowCustomModel": {
49796
49843
  "type": "boolean"
49797
49844
  },
@@ -49978,6 +50025,9 @@
49978
50025
  "profile": {
49979
50026
  "type": "string"
49980
50027
  },
50028
+ "modelGroup": {
50029
+ "type": "string"
50030
+ },
49981
50031
  "scheduleType": {
49982
50032
  "type": "string",
49983
50033
  "enum": [
@@ -67565,6 +67615,9 @@
67565
67615
  "profile": {
67566
67616
  "type": "string"
67567
67617
  },
67618
+ "modelGroup": {
67619
+ "type": "string"
67620
+ },
67568
67621
  "scheduleType": {
67569
67622
  "type": "string",
67570
67623
  "enum": [
@@ -67755,6 +67808,9 @@
67755
67808
  "profile": {
67756
67809
  "type": "string"
67757
67810
  },
67811
+ "modelGroup": {
67812
+ "type": "string"
67813
+ },
67758
67814
  "scheduleType": {
67759
67815
  "type": "string",
67760
67816
  "enum": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@desplega.ai/agent-swarm",
3
- "version": "2.14.0",
3
+ "version": "2.14.1",
4
4
  "description": "agent-swarm.dev — an open-source operating system for AI work: a lead agent breaks goals into tasks, routes them to specialized workers such as Claude Code or Codex, runs each worker in an isolated container, and preserves shared memory, tools, schedules, and review gates so delegated work compounds across sessions.",
5
5
  "keywords": [
6
6
  "agent-swarm.dev",
@@ -64,8 +64,8 @@
64
64
  "overrides": {
65
65
  "@slack/socket-mode": "^2.0.7",
66
66
  "lodash-es": "4.18.1",
67
- "react": "19.2.3",
68
- "react-dom": "19.2.3"
67
+ "react": "19.3.1",
68
+ "react-dom": "19.3.1"
69
69
  },
70
70
  "trustedDependencies": [
71
71
  "esbuild",
@@ -187,18 +187,18 @@
187
187
  "@desplega.ai/slack-mock": "^0.6.1",
188
188
  "@desplega/model-catalog": "workspace:*",
189
189
  "@desplega/model-routing": "workspace:*",
190
- "@faker-js/faker": "^10.4.0",
190
+ "@faker-js/faker": "^10.6.0",
191
191
  "@opencode/plugin": "2.3.2",
192
192
  "@opencode/sdk": "2.3.2",
193
- "@oxlint/plugins": "1.78.0",
193
+ "@oxlint/plugins": "1.93.0",
194
194
  "@types/bun": "latest",
195
- "dependency-cruiser": "^18.0.0",
195
+ "dependency-cruiser": "^18.7.2",
196
196
  "happy-dom": "^21.0.4",
197
- "konsistent": "1.0.0-beta.1",
197
+ "konsistent": "1.0.0-beta.13",
198
198
  "openapi-typescript": "^7",
199
- "oxlint": "1.78.0",
199
+ "oxlint": "1.93.0",
200
200
  "ts-morph": "^28.0.0",
201
- "turbo": "^2.10.0"
201
+ "turbo": "^2.11.11"
202
202
  },
203
203
  "peerDependencies": {
204
204
  "typescript": "^5"
@@ -208,20 +208,20 @@
208
208
  },
209
209
  "dependencies": {
210
210
  "@agentclientprotocol/sdk": "2.8.0",
211
- "@ai-sdk/openai": "^3.0.41",
212
- "@anthropic-ai/claude-agent-sdk": "0.3.327",
211
+ "@ai-sdk/openai": "^3.0.141",
212
+ "@anthropic-ai/claude-agent-sdk": "0.3.328",
213
213
  "@anthropic-ai/sdk": "^1.10.0",
214
- "@asteasolutions/zod-to-openapi": "^8.0.0",
215
- "@aws-sdk/client-bedrock": "3.1048.0",
216
- "@boxd-sh/sdk": "0.2.20",
214
+ "@asteasolutions/zod-to-openapi": "^8.5.0",
215
+ "@aws-sdk/client-bedrock": "3.1167.0",
216
+ "@boxd-sh/sdk": "0.2.22",
217
217
  "@chat-adapter/discord": "4.45.0",
218
218
  "@chat-adapter/shared": "4.45.0",
219
219
  "@chat-adapter/slack": "4.45.0",
220
220
  "@chat-adapter/teams": "4.45.0",
221
221
  "@chat-adapter/telegram": "4.45.0",
222
- "@cursor/sdk": "1.4.1",
223
- "@desplega.ai/agent-fs-just-bash": "0.18.34",
224
- "@desplega.ai/business-use": "^0.4.2",
222
+ "@cursor/sdk": "1.4.2",
223
+ "@desplega.ai/agent-fs-just-bash": "0.18.35",
224
+ "@desplega.ai/business-use": "^0.4.3",
225
225
  "@earendil-works/pi-agent-core": "^1.5.2",
226
226
  "@earendil-works/pi-ai": "^1.5.2",
227
227
  "@earendil-works/pi-coding-agent": "^1.5.2",
@@ -231,44 +231,44 @@
231
231
  "@json-render/chat": "0.22.0",
232
232
  "@json-render/core": "0.22.0",
233
233
  "@linear/sdk": "^77.0.0",
234
- "@modelcontextprotocol/sdk": "1.32.1",
234
+ "@modelcontextprotocol/sdk": "1.32.2",
235
235
  "@openai/codex": "0.170.0",
236
- "@openfort/openfort-node": "^0.9.1",
237
- "@opentelemetry/api": "^1.9.1",
236
+ "@openfort/openfort-node": "^0.9.3",
237
+ "@opentelemetry/api": "^1.10.0",
238
238
  "@opentelemetry/api-logs": "^0.218.0",
239
239
  "@opentelemetry/exporter-metrics-otlp-http": "^0.218.0",
240
240
  "@opentelemetry/exporter-trace-otlp-http": "^0.218.0",
241
- "@opentelemetry/resources": "^2.7.1",
242
- "@opentelemetry/sdk-metrics": "^2.7.1",
241
+ "@opentelemetry/resources": "^2.12.1",
242
+ "@opentelemetry/sdk-metrics": "^2.12.1",
243
243
  "@opentelemetry/sdk-node": "^0.218.0",
244
- "@opentelemetry/semantic-conventions": "^1.41.1",
245
- "@slack/bolt": "^4.6.0",
246
- "@slack/web-api": "7.13.0",
247
- "@types/react": "^19.2.7",
244
+ "@opentelemetry/semantic-conventions": "^1.45.0",
245
+ "@slack/bolt": "^4.7.3",
246
+ "@slack/web-api": "7.19.0",
247
+ "@types/react": "^19.3.0",
248
248
  "@x402/core": "^2.5.0",
249
249
  "@x402/evm": "^2.5.0",
250
250
  "@x402/fetch": "^2.5.0",
251
- "ai": "^6.0.116",
251
+ "ai": "^6.0.330",
252
252
  "chat": "4.45.0",
253
- "cron-parser": "^5.4.0",
254
- "date-fns": "^4.1.0",
253
+ "cron-parser": "^5.10.5",
254
+ "date-fns": "^4.4.0",
255
255
  "e2b": "2.26.0",
256
256
  "fractional-indexing": "4.0.0",
257
- "ink": "^6.5.1",
257
+ "ink": "^6.8.0",
258
258
  "just-bash": "3.6.0",
259
- "oauth4webapi": "^3.8.5",
260
- "openai": "^6.22.0",
259
+ "oauth4webapi": "^3.8.8",
260
+ "openai": "^6.49.0",
261
261
  "quickjs-emscripten-core": "0.32.0",
262
- "react": "19.2.3",
262
+ "react": "19.3.1",
263
263
  "react-devtools-core": "^7.0.1",
264
264
  "sqlite-vec": "^0.1.9",
265
- "svix": "^1.62.0",
266
- "viem": "^2.46.3",
267
- "ws": "8.21.0",
265
+ "svix": "^1.99.1",
266
+ "viem": "^2.57.19",
267
+ "ws": "8.22.2",
268
268
  "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
269
269
  "y-protocols": "1.0.7",
270
- "yjs": "13.6.32",
271
- "zod": "^4.2.1",
272
- "zod-to-json-schema": "^3.25.1"
270
+ "yjs": "13.6.33",
271
+ "zod": "^4.6.7",
272
+ "zod-to-json-schema": "^3.25.2"
273
273
  }
274
274
  }
@@ -14,11 +14,17 @@ import {
14
14
  ReasoningEffortSchema,
15
15
  SUPERSEDED_WORKFLOW_TASK_REASON,
16
16
  } from "../../types";
17
+ import {
18
+ groupUnavailableMessage,
19
+ modelGroupMemberHarnesses,
20
+ resolveGroupForAgent,
21
+ } from "../model-group-resolution";
17
22
  import {
18
23
  checkProfileForAgent,
19
24
  formatProfileCheckFailures,
20
25
  vcsRepoId,
21
26
  } from "../model-profile-check";
27
+ import { getAgentById } from "./agents";
22
28
  import { getDbClient } from "./runtime";
23
29
  import { SUPERSEDED_RESUME_REPAIR_WINDOW_MS } from "./tasks/read";
24
30
 
@@ -445,15 +451,22 @@ export async function repoModelOverrideKeys(
445
451
  * (harness, model, credentials, allowlist). A pooled task (no agent) is judged
446
452
  * per agent at claim instead. `profile` is exclusive with `model` and
447
453
  * `modelTier`, which pick the model another way.
454
+ *
455
+ * A `modelGroup` is judged the same way: exclusive with `model`, `modelTier`
456
+ * and `profile`, the group must exist, and with a known agent one of its
457
+ * members must run there (`resolveGroupForAgent`).
448
458
  */
449
459
  export async function taskProfileError(check: {
450
460
  profile?: string | null;
451
461
  model?: string | null;
452
462
  modelTier?: string | null;
463
+ modelGroup?: string | null;
453
464
  agentId?: string | null;
454
465
  /** The task's repo; its scoped credentials count, as on the worker. */
455
466
  vcsRepo?: string | null;
456
467
  }): Promise<string | null> {
468
+ const group = check.modelGroup?.trim();
469
+ if (group) return await taskModelGroupError({ ...check, modelGroup: group });
457
470
  const name = check.profile?.trim();
458
471
  if (!name) return null;
459
472
  if (check.model?.trim() || check.modelTier?.trim()) {
@@ -472,26 +485,94 @@ export async function taskProfileError(check: {
472
485
  return formatProfileCheckFailures(result);
473
486
  }
474
487
 
488
+ async function taskModelGroupError(check: {
489
+ modelGroup: string;
490
+ profile?: string | null;
491
+ model?: string | null;
492
+ modelTier?: string | null;
493
+ agentId?: string | null;
494
+ vcsRepo?: string | null;
495
+ }): Promise<string | null> {
496
+ if (check.model?.trim() || check.modelTier?.trim() || check.profile?.trim()) {
497
+ return "Pass `modelGroup`, or `model`/`modelTier`/`profile`, not both.";
498
+ }
499
+ if (!check.agentId) {
500
+ return (await modelGroupMemberHarnesses(check.modelGroup))
501
+ ? null
502
+ : unknownModelGroupMessage(check.modelGroup);
503
+ }
504
+ const resolution = await resolveGroupForAgent(check.modelGroup, check.agentId, {
505
+ vcsRepo: check.vcsRepo,
506
+ });
507
+ if (resolution.kind === "missing") return unknownModelGroupMessage(check.modelGroup);
508
+ if (resolution.kind === "resolved") return null;
509
+ const agent = await getAgentById(check.agentId);
510
+ return groupUnavailableMessage(
511
+ check.modelGroup,
512
+ agent?.harnessProvider ?? agent?.provider,
513
+ resolution.skipped,
514
+ );
515
+ }
516
+
517
+ function unknownModelGroupMessage(name: string): string {
518
+ return `Unknown model group "${name}". List groups with GET /api/model-groups.`;
519
+ }
520
+
521
+ /**
522
+ * Whether a model-group reference trigger (migration 314) refused a write:
523
+ * the group was deleted between the gate and the insert.
524
+ */
525
+ export function modelGroupRefError(error: unknown): boolean {
526
+ const message = error instanceof Error ? error.message : "";
527
+ return message.includes("model-group-missing:");
528
+ }
529
+
475
530
  /**
476
- * The profile half of a schedule update. `profile` and `model`/`modelTier`
477
- * pick the model two ways, so setting one clears the other, and sending both
478
- * is an error. A new profile, or a move of a profiled schedule to another
479
- * agent, is judged by `taskProfileError`. Returns the columns to write.
531
+ * The profile and group half of a schedule update. `profile`, `modelGroup` and
532
+ * `model`/`modelTier` pick the model three ways, so setting one clears the
533
+ * others, and sending two is an error. A new profile or group, or a move of a
534
+ * profiled or grouped schedule to another agent, is judged by
535
+ * `taskProfileError`. Returns the columns to write.
480
536
  */
481
537
  export async function scheduleProfileUpdate(
482
- existing: { profile?: string | null; targetAgentId?: string | null },
538
+ existing: {
539
+ profile?: string | null;
540
+ modelGroup?: string | null;
541
+ targetAgentId?: string | null;
542
+ },
483
543
  patch: {
484
544
  profile?: string | null;
545
+ modelGroup?: string | null;
485
546
  model?: string | null;
486
547
  modelTier?: string | null;
487
548
  targetAgentId?: string | null;
488
549
  },
489
550
  ): Promise<
490
551
  | { error: string }
491
- | { error?: undefined; fields: { profile?: string | null; model?: null; modelTier?: null } }
552
+ | {
553
+ error?: undefined;
554
+ fields: {
555
+ profile?: string | null;
556
+ modelGroup?: string | null;
557
+ model?: null;
558
+ modelTier?: null;
559
+ };
560
+ }
492
561
  > {
493
562
  const profile = patch.profile === undefined ? undefined : patch.profile?.trim() || null;
563
+ const modelGroup = patch.modelGroup === undefined ? undefined : patch.modelGroup?.trim() || null;
494
564
  const agentId = patch.targetAgentId !== undefined ? patch.targetAgentId : existing.targetAgentId;
565
+ if (modelGroup) {
566
+ const error = await taskProfileError({
567
+ modelGroup,
568
+ profile,
569
+ model: patch.model,
570
+ modelTier: patch.modelTier,
571
+ agentId,
572
+ });
573
+ if (error) return { error };
574
+ return { fields: { modelGroup, profile: null, model: null, modelTier: null } };
575
+ }
495
576
  if (profile) {
496
577
  const error = await taskProfileError({
497
578
  profile,
@@ -500,18 +581,28 @@ export async function scheduleProfileUpdate(
500
581
  agentId,
501
582
  });
502
583
  if (error) return { error };
503
- return { fields: { profile, model: null, modelTier: null } };
584
+ return { fields: { profile, modelGroup: null, model: null, modelTier: null } };
504
585
  }
505
- if (patch.model?.trim() || patch.modelTier?.trim() || profile === null) {
506
- return { fields: { profile: null } };
586
+ if (patch.model?.trim() || patch.modelTier?.trim()) {
587
+ return { fields: { profile: null, modelGroup: null } };
507
588
  }
589
+ const cleared = {
590
+ ...(profile === null ? { profile: null } : {}),
591
+ ...(modelGroup === null ? { modelGroup: null } : {}),
592
+ };
508
593
  const agentChanged =
509
594
  patch.targetAgentId !== undefined && patch.targetAgentId !== existing.targetAgentId;
510
- if (agentChanged && existing.profile) {
511
- const error = await taskProfileError({ profile: existing.profile, agentId });
595
+ if (agentChanged) {
596
+ const keptProfile = profile === null ? null : existing.profile;
597
+ const keptGroup = modelGroup === null ? null : existing.modelGroup;
598
+ const error = keptGroup
599
+ ? await taskProfileError({ modelGroup: keptGroup, agentId })
600
+ : keptProfile
601
+ ? await taskProfileError({ profile: keptProfile, agentId })
602
+ : null;
512
603
  if (error) return { error };
513
604
  }
514
- return { fields: {} };
605
+ return { fields: cleared };
515
606
  }
516
607
 
517
608
  type OverrideRowState = { value: string; exportToEnv?: number } | null;
@@ -106,6 +106,7 @@ export type AgentTaskRow = {
106
106
  modelAlias?: string | null;
107
107
  profile?: string | null;
108
108
  resolvedProfile?: string | null;
109
+ modelGroup?: string | null;
109
110
  fallbackHops?: string | null;
110
111
  scheduleId: string | null;
111
112
  workflowRunId: string | null;
@@ -176,6 +177,7 @@ type AgentTaskSummaryRow = Pick<
176
177
  | "resolvedEffort"
177
178
  | "profile"
178
179
  | "resolvedProfile"
180
+ | "modelGroup"
179
181
  | "provider"
180
182
  | "requestedByUserId"
181
183
  | "progress"
@@ -258,6 +260,7 @@ const LIST_COLUMNS = {
258
260
  agent_tasks.scheduleId, agent_tasks.model, agent_tasks.modelTier,
259
261
  agent_tasks.resolvedModel, agent_tasks.modelSource, agent_tasks.modelAlias, agent_tasks.effort,
260
262
  agent_tasks.resolvedEffort, agent_tasks.profile, agent_tasks.resolvedProfile,
263
+ agent_tasks.modelGroup,
261
264
  agent_tasks.provider, agent_tasks.requestedByUserId, agent_tasks.progress,
262
265
  agent_tasks.createdAt, agent_tasks.lastUpdatedAt, agent_tasks.finishedAt,
263
266
  agent_tasks.statusKind, agent_tasks.peakContextPercent`,
@@ -409,6 +412,7 @@ export function rowToAgentTask(row: AgentTaskRow): AgentTask {
409
412
  : undefined,
410
413
  profile: row.profile ?? undefined,
411
414
  resolvedProfile: row.resolvedProfile ?? undefined,
415
+ modelGroup: row.modelGroup ?? undefined,
412
416
  fallbackHops: parseFallbackHops(row.fallbackHops),
413
417
  scheduleId: row.scheduleId ?? undefined,
414
418
  workflowRunId: row.workflowRunId ?? undefined,
@@ -487,6 +491,7 @@ export function rowToAgentTaskSummary(row: AgentTaskSummaryRow): AgentTaskSummar
487
491
  : undefined,
488
492
  profile: row.profile ?? undefined,
489
493
  resolvedProfile: row.resolvedProfile ?? undefined,
494
+ modelGroup: row.modelGroup ?? undefined,
490
495
  provider: (row.provider as ProviderName | null) ?? undefined,
491
496
  requestedByUserId: row.requestedByUserId ?? undefined,
492
497
  progress: row.progress ?? undefined,