@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
@@ -3,14 +3,14 @@ import {
3
3
  requireFxRoute,
4
4
  fxSessionExists2,
5
5
  fxTargetProfile2
6
- } from "./cli-ad00h1st.js";
6
+ } from "./cli-0dkpdvnn.js";
7
7
  import {
8
8
  ACPAdapter2
9
- } from "./cli-cbg0j1yt.js";
9
+ } from "./cli-98sea4d9.js";
10
10
  import {
11
11
  getKnownContextWindowSize,
12
12
  init_context_window
13
- } from "./cli-gc6b94tj.js";
13
+ } from "./cli-fe8he9cy.js";
14
14
  import {
15
15
  getOpenRouterBaseUrl,
16
16
  init_openrouter_base_url
@@ -18,7 +18,7 @@ import {
18
18
  import {
19
19
  registerVolatileSecret,
20
20
  init_secret_scrubber
21
- } from "./cli-r9d2tya0.js";
21
+ } from "./cli-7qkbab03.js";
22
22
 
23
23
  // src/providers/fx-adapter.ts
24
24
  init_context_window();
@@ -1,12 +1,11 @@
1
1
  import {
2
- require_src4
3
- } from "./cli-mna6pmfx.js";
4
- import {
5
- __toESM
6
- } from "./cli-242037k3.js";
2
+ TraceFlags,
3
+ trace,
4
+ init_dist5
5
+ } from "./cli-0vxbrxr3.js";
7
6
 
8
7
  // src/providers/otel-env.ts
9
- var import_api = __toESM(require_src4(), 1);
8
+ init_dist5();
10
9
  function isTruthy(value) {
11
10
  const v = (value ?? "").toLowerCase();
12
11
  return v === "1" || v === "true" || v === "yes" || v === "on";
@@ -14,12 +13,12 @@ function isTruthy(value) {
14
13
  function isHarnessOtelEnabled(sourceEnv) {
15
14
  return isTruthy(sourceEnv.SWARM_ENABLE_HARNESS_OTEL) || isTruthy(sourceEnv.SWARM_ENABLE_CLAUDE_CODE_OTEL);
16
15
  }
17
- function buildOtelTraceparentEnv(sourceEnv, activeSpan = import_api.trace.getActiveSpan()) {
16
+ function buildOtelTraceparentEnv(sourceEnv, activeSpan = trace.getActiveSpan()) {
18
17
  if (!isHarnessOtelEnabled(sourceEnv)) {
19
18
  return {};
20
19
  }
21
20
  const spanContext = activeSpan?.spanContext();
22
- if (!spanContext || (spanContext.traceFlags & import_api.TraceFlags.SAMPLED) === 0) {
21
+ if (!spanContext || (spanContext.traceFlags & TraceFlags.SAMPLED) === 0) {
23
22
  return {};
24
23
  }
25
24
  const env = {
@@ -22,7 +22,7 @@ function __classPrivateFieldGet2(receiver, state, kind, f) {
22
22
  var init_tslib = () => {};
23
23
 
24
24
  // node_modules/@earendil-works/pi-ai/node_modules/@anthropic-ai/sdk/internal/errors.mjs
25
- function isAbortError3(err) {
25
+ function isAbortError2(err) {
26
26
  return typeof err === "object" && err !== null && (("name" in err) && err.name === "AbortError" || ("message" in err) && String(err.message).includes("FetchRequestCanceledException"));
27
27
  }
28
28
  var castToError2 = (err) => {
@@ -398,4 +398,4 @@ function promiseWithResolvers2() {
398
398
  }
399
399
  var init_promise = () => {};
400
400
 
401
- export { __classPrivateFieldSet2, __classPrivateFieldGet2, init_tslib, isAbortError3, castToError2, init_errors, AnthropicError2, APIError2, APIUserAbortError2, APIConnectionError2, APIConnectionTimeoutError2, RetryableError2, BadRequestError2, AuthenticationError2, PermissionDeniedError2, NotFoundError3, ConflictError2, UnprocessableEntityError2, RateLimitError2, InternalServerError2, init_error, isAbsoluteURL2, isArray2, isReadonlyArray2, maybeObj2, isEmptyObj2, isObj2, validatePositiveInteger2, safeJSON2, checkNever2, init_values, readEnv2, init_env, concatBytes2, encodeUTF82, decodeUTF82, init_bytes, defaultLogLevel2, parseLogLevel2, loggerFor2, defaultLogger2, debugLogRequestDetails2, init_log, isStatus2, isFatal4xx2, backoff2, jitter2, applyJitter2, init_backoff, ToolError2, init_ToolError, DEFAULT_MEMORY_SYNC_INTERVAL_MS2, checkMemorySyncInterval2, init_sync_interval, promiseWithResolvers2, init_promise };
401
+ export { __classPrivateFieldSet2, __classPrivateFieldGet2, init_tslib, isAbortError2, castToError2, init_errors, AnthropicError2, APIError2, APIUserAbortError2, APIConnectionError2, APIConnectionTimeoutError2, RetryableError2, BadRequestError2, AuthenticationError2, PermissionDeniedError2, NotFoundError3, ConflictError2, UnprocessableEntityError2, RateLimitError2, InternalServerError2, init_error, isAbsoluteURL2, isArray2, isReadonlyArray2, maybeObj2, isEmptyObj2, isObj2, validatePositiveInteger2, safeJSON2, checkNever2, init_values, readEnv2, init_env, concatBytes2, encodeUTF82, decodeUTF82, init_bytes, defaultLogLevel2, parseLogLevel2, loggerFor2, defaultLogger2, debugLogRequestDetails2, init_log, isStatus2, isFatal4xx2, backoff2, jitter2, applyJitter2, init_backoff, ToolError2, init_ToolError, DEFAULT_MEMORY_SYNC_INTERVAL_MS2, checkMemorySyncInterval2, init_sync_interval, promiseWithResolvers2, init_promise };
@@ -17,7 +17,7 @@ import {
17
17
  deleteSkillFile2,
18
18
  getSkillById2,
19
19
  init_db4
20
- } from "./cli-krk8y8c7.js";
20
+ } from "./cli-z0c98h7h.js";
21
21
  import {
22
22
  snapshotAndUpdateWorkflow,
23
23
  init_version,
@@ -28,15 +28,15 @@ import {
28
28
  liveSkillSpec,
29
29
  skillHash,
30
30
  init_assets
31
- } from "./cli-kc7vd07m.js";
31
+ } from "./cli-5xjdft4s.js";
32
32
  import {
33
33
  getSeedState,
34
34
  init_state_db
35
- } from "./cli-v4z5v3jd.js";
35
+ } from "./cli-phantfg3.js";
36
36
  import {
37
37
  matchesDefaultIdentityMd,
38
38
  init_defaults
39
- } from "./cli-wym6rxgt.js";
39
+ } from "./cli-8kemtj1r.js";
40
40
  import {
41
41
  __esm
42
42
  } from "./cli-242037k3.js";
@@ -3748,11 +3748,11 @@ function findSecretsIn(text) {
3748
3748
  }
3749
3749
  return { knownValues: [...knownValues].sort(), gitleaksRules: [...gitleaksRules].sort() };
3750
3750
  }
3751
- function scrubObject(value, seen = new WeakSet, keyCache = new Map) {
3751
+ function scrubObject(value, seen = new WeakSet, keyCache = new Map, scrub = scrubSecrets) {
3752
3752
  if (value === null || value === undefined)
3753
3753
  return value;
3754
3754
  if (typeof value === "string")
3755
- return scrubSecrets(value);
3755
+ return scrub(value);
3756
3756
  if (typeof value !== "object")
3757
3757
  return value;
3758
3758
  if (seen.has(value)) {
@@ -3760,14 +3760,14 @@ function scrubObject(value, seen = new WeakSet, keyCache = new Map) {
3760
3760
  }
3761
3761
  seen.add(value);
3762
3762
  if (Array.isArray(value)) {
3763
- return value.map((item) => scrubObject(item, seen, keyCache));
3763
+ return value.map((item) => scrubObject(item, seen, keyCache, scrub));
3764
3764
  }
3765
3765
  const out = {};
3766
3766
  const nextSuffix = new Map;
3767
3767
  for (const [key, child] of Object.entries(value)) {
3768
3768
  let scrubbed = keyCache.get(key);
3769
3769
  if (scrubbed === undefined) {
3770
- scrubbed = scrubSecrets(key);
3770
+ scrubbed = scrub(key);
3771
3771
  keyCache.set(key, scrubbed);
3772
3772
  }
3773
3773
  let outKey = scrubbed;
@@ -3777,7 +3777,7 @@ function scrubObject(value, seen = new WeakSet, keyCache = new Map) {
3777
3777
  n++;
3778
3778
  nextSuffix.set(scrubbed, n + 1);
3779
3779
  }
3780
- out[outKey] = scrubObject(child, seen, keyCache);
3780
+ out[outKey] = scrubObject(child, seen, keyCache, scrub);
3781
3781
  }
3782
3782
  return out;
3783
3783
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  withRegistryCatalogSections,
3
3
  init_src2
4
- } from "./cli-r9d2tya0.js";
4
+ } from "./cli-7qkbab03.js";
5
5
  import {
6
6
  __esm
7
7
  } from "./cli-242037k3.js";
@@ -6,25 +6,25 @@ import {
6
6
  assertUrlSafe,
7
7
  publicEndpointSsrfOptions,
8
8
  init_mcp_wrapper
9
- } from "./cli-krk8y8c7.js";
10
- import {
11
- getRouteProvider,
12
- createScopedFetch,
13
- deriveDefaultRoute,
14
- init_src
15
- } from "./cli-wd7b5hgc.js";
9
+ } from "./cli-z0c98h7h.js";
16
10
  import {
17
11
  getOpenRouterBaseUrl,
18
12
  getOpenRouterAttributionHeaders,
19
13
  init_openrouter_base_url
20
14
  } from "./cli-dfyv0jdy.js";
15
+ import {
16
+ getRouteProvider,
17
+ createScopedFetch,
18
+ deriveDefaultRoute,
19
+ init_src
20
+ } from "./cli-w81s97bn.js";
21
21
  import {
22
22
  providerBaseUrl,
23
23
  providerForKeyVar,
24
24
  init_src2,
25
25
  scrubSecrets,
26
26
  init_secret_scrubber
27
- } from "./cli-r9d2tya0.js";
27
+ } from "./cli-7qkbab03.js";
28
28
 
29
29
  // src/utils/lead-monitor-channels.ts
30
30
  function isLeadChannelMonitoringEnabled(env = process.env) {
@@ -3,7 +3,7 @@ import {
3
3
  isModelScopedWindow,
4
4
  parseModelLimitMessage,
5
5
  init_model_rate_limit_windows
6
- } from "./cli-wd7b5hgc.js";
6
+ } from "./cli-w81s97bn.js";
7
7
 
8
8
  // src/utils/error-tracker.ts
9
9
  init_model_rate_limit_windows();
@@ -1,11 +1,15 @@
1
1
  import {
2
2
  getSlackConfiguration,
3
3
  init_config5
4
- } from "./cli-t9pzz2eq.js";
4
+ } from "./cli-ntmjzyte.js";
5
5
  import {
6
6
  isSteeringEnabled2,
7
7
  init_steering_enabled
8
8
  } from "./cli-4sydckyj.js";
9
+ import {
10
+ agentsMayMerge,
11
+ init_types5
12
+ } from "./cli-zmfs06hg.js";
9
13
  import {
10
14
  registerTemplate,
11
15
  init_registry3,
@@ -13,11 +17,7 @@ import {
13
17
  resolveTemplateAsync,
14
18
  init_resolver,
15
19
  init_session_templates
16
- } from "./cli-24wervhz.js";
17
- import {
18
- agentsMayMerge,
19
- init_types5
20
- } from "./cli-tc165vrb.js";
20
+ } from "./cli-aktk3qt6.js";
21
21
  import {
22
22
  MAX_PROFILE_FILE_LENGTH,
23
23
  getAppUrl,
@@ -34,7 +34,7 @@ import {
34
34
  import {
35
35
  scrubSecrets,
36
36
  init_secret_scrubber
37
- } from "./cli-r9d2tya0.js";
37
+ } from "./cli-7qkbab03.js";
38
38
  import {
39
39
  __esm
40
40
  } from "./cli-242037k3.js";
@@ -561,13 +561,8 @@ function renderSwarmAutoMerge(policy) {
561
561
  if (!auto.enabled)
562
562
  return `
563
563
  - Swarm auto-merge: off`;
564
- const parts = [`Swarm auto-merge: on (minimum score ${auto.threshold})`];
565
- if (auto.classes.length > 0)
566
- parts.push(`classes: ${auto.classes.join(", ")}`);
567
- if (auto.riskyPaths.length > 0)
568
- parts.push(`never for paths: ${auto.riskyPaths.join(", ")}`);
569
564
  return `
570
- - ${parts.join("; ")}`;
565
+ - Swarm auto-merge: on. The swarm auto-merger merges PRs that pass its scoring. The live threshold, classes and risky paths are in this repo's \`mergePolicy.autoMerge\` (\`get-repos\`); process: ${REPO_MERGE_POLICY_DOCS_URL}`;
571
566
  }
572
567
  async function renderRepositoryVars(repo, ctx) {
573
568
  const vars = {
@@ -634,7 +629,7 @@ Do NOT use \`--no-verify\` or any flag that bypasses git hooks.
634
629
  `;
635
630
  }
636
631
  const mergePolicy = await resolveTemplateAsync("system.agent.repository.merge_policy", {
637
- agents_may_merge: agentsMayMerge(g) ? "Allowed" : "Not allowed (default)",
632
+ agents_may_merge: agentsMayMerge(g) ? "allowed" : "not allowed (default)",
638
633
  swarm_auto_merge: renderSwarmAutoMerge(g.mergePolicy),
639
634
  merge_checks: g.mergeChecks.length > 0 ? `
640
635
  - Before merging, verify:
@@ -703,7 +698,7 @@ ${header}
703
698
  }
704
699
  return "";
705
700
  }
706
- var BOOTSTRAP_MAX_CHARS = 20000, BOOTSTRAP_TOTAL_MAX_CHARS = 120000, REPO_CLAUDE_MD_MAX_CHARS = 12000, CLAUDE_MD_INJECT_PROVIDERS, REPO_CLAUDE_MD_INLINE_PROVIDERS, collapseSeams = (text) => text.replace(/\n{3,}/g, `
701
+ var BOOTSTRAP_MAX_CHARS = 20000, BOOTSTRAP_TOTAL_MAX_CHARS = 120000, REPO_CLAUDE_MD_MAX_CHARS = 12000, CLAUDE_MD_INJECT_PROVIDERS, REPO_MERGE_POLICY_DOCS_URL = "https://docs.agent-swarm.dev/docs/guides/repo-merge-policy", REPO_CLAUDE_MD_INLINE_PROVIDERS, collapseSeams = (text) => text.replace(/\n{3,}/g, `
707
702
 
708
703
  `), getBasePrompt = async (args) => (await getBasePromptWithParts(args)).prompt, getBasePromptWithParts = async (args) => {
709
704
  const { role, agentId, traits } = args;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  workflowEventBus2,
3
3
  init_event_bus
4
- } from "./cli-rp1n2xpd.js";
4
+ } from "./cli-0nvqg1hb.js";
5
5
  import {
6
6
  withLoopPath,
7
7
  init_event_loop_lag,
@@ -23,6 +23,8 @@ import {
23
23
  runtimeReadsRepoSecrets,
24
24
  checkProfileForAgent,
25
25
  init_model_profile_check,
26
+ resolveGroupForAgent,
27
+ init_model_group_resolution,
26
28
  rowToAgentTask,
27
29
  getTaskById2,
28
30
  hasNonTerminalResumeChild2,
@@ -70,11 +72,11 @@ import {
70
72
  getStaleApprovalRequests2,
71
73
  upsertKv2,
72
74
  init_db4
73
- } from "./cli-krk8y8c7.js";
75
+ } from "./cli-z0c98h7h.js";
74
76
  import {
75
77
  listRuntimePools2,
76
78
  init_db2
77
- } from "./cli-qrwjk4xy.js";
79
+ } from "./cli-0qyfna7a.js";
78
80
  import {
79
81
  runtimeStaleThresholdMinutes,
80
82
  countActiveRuntimeInstancesForAgent,
@@ -84,15 +86,15 @@ import {
84
86
  init_multi_runtime,
85
87
  createApprovalFollowUpTask2,
86
88
  init_approval_notifications
87
- } from "./cli-2savn6mm.js";
89
+ } from "./cli-eaqxkeq0.js";
88
90
  import {
89
91
  userHoldsOperatorGrantedRole2,
90
92
  assertMayActOnOperatorGrantedTarget2,
91
93
  init_rbac_roles
92
- } from "./cli-3wsabyt0.js";
94
+ } from "./cli-ww8wxfzx.js";
93
95
  import {
94
96
  remediateStalledRuntime
95
- } from "./cli-f2rwt43y.js";
97
+ } from "./cli-v84kb7af.js";
96
98
  import {
97
99
  recoverIncompleteRuns,
98
100
  init_recovery,
@@ -120,13 +122,13 @@ import {
120
122
  init_worker_follow_up,
121
123
  canClaim,
122
124
  init_budget_admission
123
- } from "./cli-kc7vd07m.js";
125
+ } from "./cli-5xjdft4s.js";
124
126
  import {
125
127
  runScriptWithRunCredential,
126
128
  init_run_credential,
127
129
  runSavedScriptAsAgent,
128
130
  init_run_saved
129
- } from "./cli-v4z5v3jd.js";
131
+ } from "./cli-phantfg3.js";
130
132
  import {
131
133
  isMultiRuntimeEnabled,
132
134
  init_multi_runtime2
@@ -135,13 +137,7 @@ import {
135
137
  recordIdentityEvent,
136
138
  mintToken,
137
139
  init_users
138
- } from "./cli-adzmmcvf.js";
139
- import {
140
- registerTemplate,
141
- init_registry3,
142
- resolveTemplate,
143
- init_resolver
144
- } from "./cli-24wervhz.js";
140
+ } from "./cli-ny8f5g7t.js";
145
141
  import {
146
142
  DEFAULT_OPENROUTER_BASE_URL,
147
143
  getOpenRouterBaseUrl,
@@ -152,7 +148,13 @@ import {
152
148
  OPEN_TASK_STATUSES,
153
149
  SUPERSEDED_WORKFLOW_TASK_REASON,
154
150
  init_types5
155
- } from "./cli-tc165vrb.js";
151
+ } from "./cli-zmfs06hg.js";
152
+ import {
153
+ registerTemplate,
154
+ init_registry3,
155
+ resolveTemplate,
156
+ init_resolver
157
+ } from "./cli-aktk3qt6.js";
156
158
  import {
157
159
  isEnvFlagEnabled,
158
160
  init_env_flag
@@ -160,11 +162,11 @@ import {
160
162
  import {
161
163
  init_package,
162
164
  package_default
163
- } from "./cli-shyhb4t5.js";
165
+ } from "./cli-wtwe8vng.js";
164
166
  import {
165
167
  scrubSecrets,
166
168
  init_secret_scrubber
167
- } from "./cli-r9d2tya0.js";
169
+ } from "./cli-7qkbab03.js";
168
170
 
169
171
  // src/be/runtime-pools/routing.ts
170
172
  init_multi_runtime2();
@@ -174,6 +176,7 @@ init_event_bus();
174
176
  init_budget_admission();
175
177
  init_db4();
176
178
  init_read();
179
+ init_model_group_resolution();
177
180
  init_model_profile_check();
178
181
  init_model_validation2();
179
182
  init_multi_runtime();
@@ -298,23 +301,34 @@ async function routePoolTasks(opts = {}) {
298
301
  };
299
302
  const profileOk = new Map;
300
303
  const passesProfileCheck = async (agent, task, viaWake) => {
301
- if (!task.profile)
304
+ const profile = task.profile;
305
+ const group = profile ? undefined : task.modelGroup;
306
+ if (!profile && !group)
302
307
  return true;
303
308
  for (const includeRepoSecrets of secretViews(agent, viaWake)) {
304
309
  const memoKey = JSON.stringify([
305
310
  agent.id,
306
- task.profile,
311
+ profile ? "profile" : "group",
312
+ profile ?? group,
307
313
  task.vcsRepo ?? null,
308
314
  includeRepoSecrets
309
315
  ]);
310
316
  let ok = profileOk.get(memoKey);
311
317
  if (ok === undefined) {
312
- const result = await checkProfileForAgent(agent.id, task.profile, {
313
- vcsRepo: task.vcsRepo,
314
- includeRepoSecrets,
315
- fallbacks: false
316
- });
317
- ok = result?.ok !== false;
318
+ if (profile) {
319
+ const result = await checkProfileForAgent(agent.id, profile, {
320
+ vcsRepo: task.vcsRepo,
321
+ includeRepoSecrets,
322
+ fallbacks: false
323
+ });
324
+ ok = result?.ok !== false;
325
+ } else {
326
+ const resolution = await resolveGroupForAgent(group, agent.id, {
327
+ vcsRepo: task.vcsRepo,
328
+ includeRepoSecrets
329
+ });
330
+ ok = resolution.kind !== "none";
331
+ }
318
332
  profileOk.set(memoKey, ok);
319
333
  }
320
334
  if (!ok)
@@ -39,39 +39,39 @@ import {
39
39
  getLatestStepForNode2,
40
40
  getCurrentStepForNode2,
41
41
  init_db4
42
- } from "./cli-krk8y8c7.js";
42
+ } from "./cli-z0c98h7h.js";
43
43
  import {
44
44
  ConfigQuestionSettingsSchema,
45
45
  normalizeApprovalQuestions,
46
46
  init_approval_config_question,
47
47
  dispatchApprovalNotifications2,
48
48
  init_approval_notifications
49
- } from "./cli-2savn6mm.js";
49
+ } from "./cli-eaqxkeq0.js";
50
50
  import {
51
51
  resolveCredential,
52
52
  init_credentials
53
- } from "./cli-91amj3md.js";
53
+ } from "./cli-s7bfz1ye.js";
54
54
  import {
55
55
  isSlackConfigured,
56
56
  init_config5
57
- } from "./cli-t9pzz2eq.js";
57
+ } from "./cli-ntmjzyte.js";
58
58
  import {
59
59
  DEFAULT_MODEL
60
60
  } from "./cli-jjzxsk47.js";
61
- import {
62
- selectCredential,
63
- init_credentials2
64
- } from "./cli-wd7b5hgc.js";
65
- import {
66
- deepInterpolate,
67
- init_template2
68
- } from "./cli-24wervhz.js";
69
61
  import {
70
62
  DEFAULT_OPENROUTER_BASE_URL,
71
63
  getOpenRouterBaseUrl,
72
64
  getOpenRouterAttributionHeaders,
73
65
  init_openrouter_base_url
74
66
  } from "./cli-dfyv0jdy.js";
67
+ import {
68
+ selectCredential,
69
+ init_credentials2
70
+ } from "./cli-w81s97bn.js";
71
+ import {
72
+ deepInterpolate,
73
+ init_template2
74
+ } from "./cli-aktk3qt6.js";
75
75
  import {
76
76
  init_zod
77
77
  } from "./cli-96234j5w.js";
@@ -107,7 +107,7 @@ import {
107
107
  isSensitiveKey,
108
108
  scrubSecrets,
109
109
  init_secret_scrubber
110
- } from "./cli-r9d2tya0.js";
110
+ } from "./cli-7qkbab03.js";
111
111
  import {
112
112
  __esm
113
113
  } from "./cli-242037k3.js";
@@ -120,7 +120,7 @@ async function notifyAutomationPreflightFailure(preflight) {
120
120
  return;
121
121
  }
122
122
  try {
123
- const { getSlackApp } = await import("./app-5d3sz1hy.js");
123
+ const { getSlackApp } = await import("./app-nzejkvpp.js");
124
124
  const app = getSlackApp();
125
125
  if (!app) {
126
126
  console.warn("[Automation Preflight] Slack not available, cannot send notification");
@@ -1645,8 +1645,8 @@ function validateAnswer(id, field, raw) {
1645
1645
  const ok = raw.value.every((item) => field.items === "number" ? isFiniteNumber(item) : typeof item === "string");
1646
1646
  if (!ok)
1647
1647
  fail(`${at}.value items must all be ${field.items === "number" ? "numbers" : "strings"}`);
1648
- if (raw.spans !== undefined) {
1649
- if (!Array.isArray(raw.spans) || !raw.spans.every(isSpan)) {
1648
+ if (raw.spans !== undefined && raw.spans !== null) {
1649
+ if (!Array.isArray(raw.spans) || !raw.spans.every((s) => s === null || isSpan(s))) {
1650
1650
  fail(`${at}.spans must be a list of [start, end] offsets`);
1651
1651
  }
1652
1652
  answer.spans = raw.spans;
@@ -1685,7 +1685,7 @@ function validateAnswer(id, field, raw) {
1685
1685
  }
1686
1686
  default:
1687
1687
  checkScalar(at, field, raw.value);
1688
- if (raw.span !== undefined) {
1688
+ if (raw.span !== undefined && raw.span !== null) {
1689
1689
  if (!isSpan(raw.span))
1690
1690
  fail(`${at}.span must be [start, end] offsets`);
1691
1691
  answer.span = raw.span;
@@ -1983,7 +1983,7 @@ var init_system_one_extraction = __esm(() => {
1983
1983
  p_null: UnitInterval.optional(),
1984
1984
  confidence: UnitInterval.optional(),
1985
1985
  span: Span.optional(),
1986
- spans: array2(Span).optional(),
1986
+ spans: array2(Span.nullable()).optional(),
1987
1987
  unit: string2().optional(),
1988
1988
  mean: union3([Point, array2(Point)]).optional(),
1989
1989
  median: union3([Point, array2(Point)]).optional(),
@@ -3903,7 +3903,7 @@ async function runClaimedStep(def, runId, ctx, node, registry, existingStep, ste
3903
3903
  const interpolatedConfig = interpolatedValue;
3904
3904
  const executionCtx = { ...ctx, ...interpolationCtx };
3905
3905
  if (scriptBodyUnresolved && scriptBodyUnresolved.length > 0) {
3906
- const errorMsg = scriptBodyInterpolationError(node.id, scriptBodyUnresolved);
3906
+ const errorMsg = scriptBodyInterpolationError(node.id, scriptBodyUnresolved, node.type);
3907
3907
  await checkpointStepFailure(runId, stepId, errorMsg, 0, undefined, { fence });
3908
3908
  return { outcome: "failed", successors: [] };
3909
3909
  }
@@ -3972,7 +3972,7 @@ async function runClaimedStep(def, runId, ctx, node, registry, existingStep, ste
3972
3972
  }
3973
3973
  const waiting = await checkpointStepWaiting(runId, stepId, ctx);
3974
3974
  if (waiting && result.waitFor === "workflow.child.finished") {
3975
- const { resumeFromChildRun } = await import("./resume-jdhnt4jk.js");
3975
+ const { resumeFromChildRun } = await import("./resume-p14wdx8m.js");
3976
3976
  await resumeFromChildRun(stepId, registry);
3977
3977
  }
3978
3978
  return { outcome: waiting ? "waiting" : "completed", successors: [] };
@@ -4141,14 +4141,15 @@ function interpolateNodeConfig(node, interpolationCtx) {
4141
4141
  unresolved: [...configResult.unresolved, ...questionsResult.unresolved]
4142
4142
  };
4143
4143
  }
4144
- if (node.type === "script" && typeof node.config.script === "string") {
4145
- const { script, ...configWithoutScript } = node.config;
4144
+ const sourceField = EXECUTABLE_SOURCE_FIELDS.get(node.type);
4145
+ if (sourceField !== undefined && typeof node.config[sourceField] === "string") {
4146
+ const { [sourceField]: script, ...configWithoutScript } = node.config;
4146
4147
  const restResult = deepInterpolate(configWithoutScript, interpolationCtx);
4147
4148
  const scriptResult = deepInterpolate(script, buildScriptBodyCtx(node, interpolationCtx));
4148
4149
  return {
4149
4150
  value: {
4150
4151
  ...restResult.value,
4151
- script: scriptResult.unresolved.length > 0 ? script : scriptResult.value
4152
+ [sourceField]: scriptResult.unresolved.length > 0 ? script : scriptResult.value
4152
4153
  },
4153
4154
  unresolved: [...restResult.unresolved, ...scriptResult.unresolved],
4154
4155
  scriptBodyUnresolved: scriptResult.unresolved
@@ -4168,11 +4169,15 @@ function interpolateNodeConfig(node, interpolationCtx) {
4168
4169
  unresolved: [...configResult.unresolved, ...argsResult.unresolved]
4169
4170
  };
4170
4171
  }
4171
- function scriptBodyInterpolationError(nodeId, tokens) {
4172
+ function scriptBodyInterpolationError(nodeId, tokens, nodeType = "script") {
4172
4173
  const renderedTokens = [...new Set(tokens)].map((token) => `{{${token}}}`).join(", ");
4174
+ const field = EXECUTABLE_SOURCE_FIELDS.get(nodeType);
4175
+ if (nodeType !== "script" && field !== undefined) {
4176
+ return `Executable source interpolation failed for node "${nodeId}" (config.${field}): unresolved or disallowed token(s): ${renderedTokens}. Executable source may interpolate only input, workflow, swarm, or run values. ` + (nodeType === "wait" ? "Match trigger or upstream values with the object form of config.filter, whose values interpolate as data." : "Read trigger, alias, item, or upstream values at runtime from the function's input argument.");
4177
+ }
4173
4178
  return `Script body interpolation failed for node "${nodeId}": unresolved or disallowed token(s): ${renderedTokens}. Executable source may interpolate only input, workflow, swarm, or run values. Pass dynamic trigger or upstream values through config.args and read them from argv. Inline script nodes also support config.env for environment variables.`;
4174
4179
  }
4175
- var TriggerSchemaError, ParentStepNotCurrentError, activeWalks, executingSteps, SCRIPT_BODY_ALLOWED_SOURCES, SYSTEM_ONE_DATA_FIELDS;
4180
+ var TriggerSchemaError, ParentStepNotCurrentError, activeWalks, executingSteps, SCRIPT_BODY_ALLOWED_SOURCES, EXECUTABLE_SOURCE_FIELDS, SYSTEM_ONE_DATA_FIELDS;
4176
4181
  var init_engine = __esm(() => {
4177
4182
  init_automation_preflight_alert();
4178
4183
  init_automation_preflight();
@@ -4213,6 +4218,11 @@ var init_engine = __esm(() => {
4213
4218
  activeWalks = new Map;
4214
4219
  executingSteps = new Set;
4215
4220
  SCRIPT_BODY_ALLOWED_SOURCES = new Set(["input", "workflow", "swarm", "run"]);
4221
+ EXECUTABLE_SOURCE_FIELDS = new Map([
4222
+ ["script", "script"],
4223
+ ["code-match", "code"],
4224
+ ["wait", "filter"]
4225
+ ]);
4216
4226
  SYSTEM_ONE_DATA_FIELDS = new Set(["state", "questions", "fields", "images"]);
4217
4227
  });
4218
4228
 
@@ -4493,7 +4503,7 @@ async function runForeachDrive(runId, parentNodeId, registry) {
4493
4503
  if (drive.successors.length > 0) {
4494
4504
  await walkGraph(workflow.definition, runId, ctx, drive.successors, registry, workflow.id, getSecretInputKeys(workflow.input), { successorDebt: debt });
4495
4505
  } else {
4496
- const { finalizeOrWait } = await import("./resume-jdhnt4jk.js");
4506
+ const { finalizeOrWait } = await import("./resume-p14wdx8m.js");
4497
4507
  await finalizeOrWait(runId);
4498
4508
  }
4499
4509
  return drive;
@@ -4587,7 +4597,7 @@ async function startChild(input) {
4587
4597
  if (interpolation.scriptBodyUnresolved && interpolation.scriptBodyUnresolved.length > 0) {
4588
4598
  return {
4589
4599
  status: "failed",
4590
- error: scriptBodyInterpolationError(child.nodeId, interpolation.scriptBodyUnresolved)
4600
+ error: scriptBodyInterpolationError(child.nodeId, interpolation.scriptBodyUnresolved, bodyNode.type)
4591
4601
  };
4592
4602
  }
4593
4603
  if (interpolation.strictUnresolved && interpolation.strictUnresolved.length > 0) {
@@ -4631,7 +4641,7 @@ async function startChild(input) {
4631
4641
  const parked = await getDbClient2().get("UPDATE workflow_run_steps SET status = 'waiting' WHERE id = ? AND status = 'running' RETURNING id", [child.id]);
4632
4642
  if (parked && result.waitFor === "workflow.child.finished") {
4633
4643
  ownedChildren.delete(child.id);
4634
- const { resumeFromChildRun } = await import("./resume-jdhnt4jk.js");
4644
+ const { resumeFromChildRun } = await import("./resume-p14wdx8m.js");
4635
4645
  await resumeFromChildRun(child.id, registry);
4636
4646
  }
4637
4647
  return null;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveAcpTarget2
3
- } from "./cli-ad00h1st.js";
3
+ } from "./cli-0dkpdvnn.js";
4
4
  import {
5
5
  fetchInstalledMcpServers
6
6
  } from "./cli-5y2fvw4z.js";
@@ -34,11 +34,11 @@ import {
34
34
  import {
35
35
  init_package,
36
36
  package_default
37
- } from "./cli-shyhb4t5.js";
37
+ } from "./cli-wtwe8vng.js";
38
38
  import {
39
39
  scrubSecrets,
40
40
  init_secret_scrubber
41
- } from "./cli-r9d2tya0.js";
41
+ } from "./cli-7qkbab03.js";
42
42
 
43
43
  // node_modules/@agentclientprotocol/sdk/dist/core/jsonrpc.js
44
44
  var CANCEL_REQUEST_METHOD = "$/cancel_request";