@desplega.ai/agent-swarm 2.13.2 → 2.13.4

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 (324) hide show
  1. package/dist/acp-adapter-mr4temec.js +17 -0
  2. package/dist/{acp-targets-mz8c5dnt.js → acp-targets-zrk9k0n7.js} +10 -10
  3. package/dist/{actions-5ft3qp5a.js → actions-acqqj9jn.js} +236 -26
  4. package/dist/{agent-fs-provision-6fgz7wvz.js → agent-fs-provision-zmaykqnd.js} +4 -4
  5. package/dist/{amp-adapter-nthn8ezm.js → amp-adapter-a7ts8tmw.js} +3 -3
  6. package/dist/{app-535m78qw.js → app-tmwa442h.js} +7 -7
  7. package/dist/{approval-notifications-dewbk403.js → approval-notifications-6psaaaye.js} +8 -8
  8. package/dist/{assistant-39zyabv2.js → assistant-564v6emv.js} +25 -25
  9. package/dist/{boot-args-schema-bqv5bf77.js → boot-args-schema-n099e0f2.js} +1 -1
  10. package/dist/{boot-reembed-fas7z3zn.js → boot-reembed-chx66qfk.js} +1 -1
  11. package/dist/{boot-reembed-157c0gcz.js → boot-reembed-epvg4fp9.js} +1 -1
  12. package/dist/{boot-scrub-sweep-tmec0be2.js → boot-scrub-sweep-dhkfp0a7.js} +2 -2
  13. package/dist/{boot-seeds-32zm50x2.js → boot-seeds-m74fc07r.js} +4 -4
  14. package/dist/{boxd-hr8rsxzq.js → boxd-451q55ys.js} +1 -1
  15. package/dist/{claude-adapter-gwq7x2nj.js → claude-adapter-hw63yj3j.js} +12 -9
  16. package/dist/{claude-managed-adapter-rkvw6fvq.js → claude-managed-adapter-z5s7fx6p.js} +3 -3
  17. package/dist/{claude-managed-setup-0vgz4d1j.js → claude-managed-setup-wee1762m.js} +3 -3
  18. package/dist/{claude-sdk-session-5wbwxy8c.js → claude-sdk-session-cktyqkpk.js} +27 -13
  19. package/dist/{cli-d528acsw.js → cli-0fgvnb0x.js} +7 -7
  20. package/dist/{cli-2v4xxnx2.js → cli-0h8skzss.js} +1 -1
  21. package/dist/{cli-jkkcm72j.js → cli-0p76my9q.js} +31 -16
  22. package/dist/{cli-fp65jdp2.js → cli-1kvcsd2f.js} +219 -155
  23. package/dist/{cli-gc7jkf4a.js → cli-1vmhnncj.js} +3 -3
  24. package/dist/{cli-tceqvv6h.js → cli-29h5239w.js} +5 -5
  25. package/dist/cli-2ap1the6.js +11 -0
  26. package/dist/{cli-8fj8yfmk.js → cli-2vp0z049.js} +1 -1
  27. package/dist/{cli-ewb028rs.js → cli-3bxrrh53.js} +4 -4
  28. package/dist/{cli-nvqq3232.js → cli-3tzmh38q.js} +9 -9
  29. package/dist/{cli-0xwb7zpt.js → cli-3xqad83h.js} +2 -2
  30. package/dist/{cli-0f7n3td3.js → cli-3zrwrnz7.js} +1 -1
  31. package/dist/{cli-2wde56gv.js → cli-404am6f3.js} +7 -7
  32. package/dist/{cli-r4fphq38.js → cli-49aq3cyn.js} +4 -4
  33. package/dist/{cli-8qvte9hn.js → cli-4fpa0zns.js} +3 -3
  34. package/dist/{cli-x5yb8zc8.js → cli-4pbwg7sn.js} +2 -2
  35. package/dist/{cli-s08zsqva.js → cli-4q2c8rxw.js} +76 -10
  36. package/dist/{cli-3mf04tkh.js → cli-4vynxtrb.js} +1 -1
  37. package/dist/{cli-tbdw3f92.js → cli-5ashycw3.js} +3 -3
  38. package/dist/{cli-c9bwawf9.js → cli-5rgm8p39.js} +3 -3
  39. package/dist/{cli-g0b3ma7r.js → cli-5rxsb3wq.js} +6 -6
  40. package/dist/{cli-a6rzw649.js → cli-60dwk8tx.js} +3 -3
  41. package/dist/{cli-xhkek467.js → cli-7by7vp6m.js} +30 -4
  42. package/dist/{cli-62fjschk.js → cli-7g3fg4gf.js} +7 -7
  43. package/dist/{cli-ka13xx6b.js → cli-7gbff32z.js} +2 -2
  44. package/dist/{cli-q8aq48v1.js → cli-8b4rpnwj.js} +1 -1
  45. package/dist/{cli-1f48qdnb.js → cli-8cas2xvp.js} +3 -3
  46. package/dist/{cli-dnvmwsvc.js → cli-904wk98s.js} +799 -371
  47. package/dist/{cli-m1wddksc.js → cli-93n305hm.js} +2 -2
  48. package/dist/{cli-31vt7baf.js → cli-944w9wb4.js} +21 -17
  49. package/dist/{cli-je587f74.js → cli-94gx6ze9.js} +1 -1
  50. package/dist/{cli-fcwrd7bh.js → cli-9ah37a8a.js} +6 -6
  51. package/dist/{cli-rfejbpe1.js → cli-akm6y2a8.js} +1 -1
  52. package/dist/{cli-f8rcvf2x.js → cli-azj9t1f9.js} +37 -2
  53. package/dist/{cli-mwxez0pz.js → cli-b768ek79.js} +1 -1
  54. package/dist/{cli-cmgdptmx.js → cli-bv4vvnmg.js} +31 -7
  55. package/dist/{cli-1gevjrc1.js → cli-bzcwwebm.js} +1 -1
  56. package/dist/{cli-sjk85d7v.js → cli-cq4am6vg.js} +3 -3
  57. package/dist/{cli-f1sdh8ca.js → cli-d5pc8ep0.js} +103 -9
  58. package/dist/{cli-7m6bbtab.js → cli-ea7nz50q.js} +12 -12
  59. package/dist/{cli-zkbz8m2q.js → cli-fkpnx3vf.js} +1 -1
  60. package/dist/{cli-ya1cj689.js → cli-fw67mnyc.js} +1 -1
  61. package/dist/{cli-5basv0e7.js → cli-gkv0r2hq.js} +1 -1
  62. package/dist/{cli-nkfv398a.js → cli-gse7bp3z.js} +12 -10
  63. package/dist/{cli-4djg31jh.js → cli-gtj12v95.js} +1 -1
  64. package/dist/{cli-qn79645p.js → cli-h9d3sdnc.js} +1 -1
  65. package/dist/{cli-tgmate57.js → cli-hdhpdrka.js} +6 -23
  66. package/dist/{cli-fgm2mad9.js → cli-hhtbandk.js} +2 -2
  67. package/dist/cli-hyqksecw.js +1907 -0
  68. package/dist/{cli-t25rq8mg.js → cli-ja450998.js} +40 -11
  69. package/dist/{cli-43dsqhcp.js → cli-jbrc98qb.js} +4 -4
  70. package/dist/{cli-82j36f2m.js → cli-jjzxsk47.js} +9 -3
  71. package/dist/{cli-xerdrnqs.js → cli-jyhbvdga.js} +3 -3
  72. package/dist/{cli-t9nxq30h.js → cli-jzerrzgc.js} +8 -8
  73. package/dist/{cli-hv3820ez.js → cli-k0nebh10.js} +1 -1
  74. package/dist/{cli-s6fhqbz1.js → cli-ka48vpev.js} +6 -6
  75. package/dist/{cli-d2epqm0y.js → cli-kezzteka.js} +1 -1
  76. package/dist/{cli-getrvmtx.js → cli-kj84fqxz.js} +2 -2
  77. package/dist/{cli-h0ewec3d.js → cli-kr0jpw9c.js} +1 -1
  78. package/dist/{cli-gq6qhmrr.js → cli-m1sns1da.js} +3 -3
  79. package/dist/{cli-bp2rt28p.js → cli-n1kjs58m.js} +5 -5
  80. package/dist/{cli-rvhaahfv.js → cli-nc4pbwmp.js} +9 -9
  81. package/dist/{cli-d0jb2qnt.js → cli-p3knvk62.js} +74 -47
  82. package/dist/{cli-50whymxq.js → cli-p436yrzp.js} +2 -2
  83. package/dist/{cli-cs26ed89.js → cli-phdzn699.js} +8 -8
  84. package/dist/{cli-b0kqw55g.js → cli-pz1dp12c.js} +1 -1
  85. package/dist/{cli-8a4qg44m.js → cli-pz1nq5xm.js} +6 -6
  86. package/dist/{cli-e87fg3en.js → cli-qzz6tz8s.js} +1 -1
  87. package/dist/{cli-69eq6gdk.js → cli-rmgvwcmy.js} +38 -29
  88. package/dist/{cli-5k1hvycs.js → cli-rv3y60bt.js} +4 -4
  89. package/dist/cli-s33bzmk0.js +27 -0
  90. package/dist/{cli-at67kvnp.js → cli-srktrbby.js} +1 -1
  91. package/dist/{cli-6rmryz03.js → cli-t0jmkcah.js} +14 -14
  92. package/dist/{cli-eetzmsy5.js → cli-t9pzz2eq.js} +2 -2
  93. package/dist/{cli-wdtqkqnq.js → cli-tr19nyn9.js} +4 -4
  94. package/dist/{cli-erh1rgh4.js → cli-ts5yv7dn.js} +165 -88
  95. package/dist/{cli-zqy28rwx.js → cli-tsc3pdfd.js} +4 -4
  96. package/dist/{cli-x7aqhxj5.js → cli-tzw1jr2t.js} +2 -2
  97. package/dist/{cli-n14r8h4n.js → cli-x2cem5vy.js} +6 -4
  98. package/dist/{cli-vx9acp12.js → cli-ybte1fqc.js} +1 -1
  99. package/dist/{cli-xysy1g8x.js → cli-ysv0k1we.js} +2 -2
  100. package/dist/{cli-vdfngx2g.js → cli-ywy8yz6t.js} +2 -2
  101. package/dist/{cli-cpkxh68d.js → cli-z1vam71h.js} +2 -2
  102. package/dist/{cli-zm6bkx3e.js → cli-zexwhj3f.js} +3 -3
  103. package/dist/{cli-j2ybkdk2.js → cli-zhwjdhjr.js} +2 -2
  104. package/dist/{cli-gedf48yw.js → cli-zjdhrzm0.js} +8 -8
  105. package/dist/cli.js +20 -20
  106. package/dist/{codex-adapter-x25xfbnh.js → codex-adapter-2fs2c0n6.js} +8 -8
  107. package/dist/{codex-hook-c0nvm30r.js → codex-hook-jxjv6dy5.js} +10 -3
  108. package/dist/{codex-login-ven5cz5j.js → codex-login-ktfg1cxk.js} +1 -1
  109. package/dist/{codex-session-runner-kn5xnrvp.js → codex-session-runner-r55tmx4c.js} +9 -9
  110. package/dist/{commands-8n59gxmy.js → commands-0mxdy9x8.js} +3 -3
  111. package/dist/{controller-wn3vd217.js → controller-g3vkfhr4.js} +4 -4
  112. package/dist/{controllers-connect-09gvkrhc.js → controllers-connect-4wdmncqt.js} +25 -25
  113. package/dist/core-gsvj5f3z.js +42 -0
  114. package/dist/{cursor-adapter-w1681kp1.js → cursor-adapter-t9qb96q2.js} +2 -2
  115. package/dist/{db-e71keqxk.js → db-487vvyv9.js} +3 -3
  116. package/dist/{db-spg81qtr.js → db-76p7w3gr.js} +2 -2
  117. package/dist/{devin-adapter-fs90ab4v.js → devin-adapter-3bp6rape.js} +1 -1
  118. package/dist/{dispatcher-fr4vawwb.js → dispatcher-64rp6w67.js} +22 -22
  119. package/dist/{docker-1h33jvh9.js → docker-a59g3ebm.js} +2 -2
  120. package/dist/{dsh-adapter-g9yqv09y.js → dsh-adapter-8abzqk5c.js} +2 -2
  121. package/dist/{e2b-y7e5kmzf.js → e2b-3ykbe805.js} +2 -2
  122. package/dist/{e2b-jnk0yeva.js → e2b-dc8f6ctq.js} +2 -2
  123. package/dist/{easter-egg-3d-ac9tv9a6.js → easter-egg-3d-jrrwyf55.js} +1 -1
  124. package/dist/{embedding-space-an77f45k.js → embedding-space-001hhhpk.js} +6 -6
  125. package/dist/{embeddings-jkrehejr.js → embeddings-esj19cnw.js} +1 -1
  126. package/dist/{event-bus-08t2b4y2.js → event-bus-7gbsr0g4.js} +1 -1
  127. package/dist/{execute-3mys4nta.js → execute-301hkxqg.js} +1 -1
  128. package/dist/{external-channel-s6zxpts9.js → external-channel-w10e2j05.js} +2 -2
  129. package/dist/fx-adapter-4sjrbdne.js +20 -0
  130. package/dist/grok-adapter-3a0ezfee.js +20 -0
  131. package/dist/handlers-ef3k11hb.js +41 -0
  132. package/dist/{heartbeat-jjpb44e5.js → heartbeat-tbrj7vhq.js} +25 -25
  133. package/dist/hook-3am1sq68.js +22 -0
  134. package/dist/{hook-y6n23zzj.js → hook-tx917rqw.js} +11 -8
  135. package/dist/{http-8c6y008s.js → http-3rmemtqy.js} +340 -1841
  136. package/dist/{index-mbpxhc4w.js → index-126v2d0t.js} +1 -4
  137. package/dist/{index-xcw7hjt5.js → index-2jw11t8s.js} +26 -26
  138. package/dist/{index-p2f5xg64.js → index-3j803vnb.js} +36259 -34299
  139. package/dist/{index-we3nd2t0.js → index-aetfyx6p.js} +1 -1
  140. package/dist/index-e6bq0exk.js +42 -0
  141. package/dist/{index-0vthtbc2.js → index-gfnq66t1.js} +231 -25
  142. package/dist/index-hf2k1vge.js +39 -0
  143. package/dist/{index-6h3r0vpe.js → index-s7xtvc0f.js} +1 -1
  144. package/dist/index-taxmejj3.js +44 -0
  145. package/dist/{k8s-8326q0rq.js → k8s-36gfn847.js} +2 -2
  146. package/dist/{keepalive-7e9r5dvp.js → keepalive-9px3t7qj.js} +5 -5
  147. package/dist/lead-5vt6f174.js +83 -0
  148. package/dist/{maintenance-d3erjvcg.js → maintenance-vwqjwst6.js} +1 -1
  149. package/dist/{oauth-refresh-sweep-0qh70988.js → oauth-refresh-sweep-yqry3wn4.js} +4 -4
  150. package/dist/{object-webhooks-ac7v2q5p.js → object-webhooks-8s1wtths.js} +7 -7
  151. package/dist/{onboard-5yphtken.js → onboard-hb8czx0p.js} +7 -7
  152. package/dist/{opencode-adapter-0xvyba4m.js → opencode-adapter-djd6m6dk.js} +8 -8
  153. package/dist/{otel-impl-svqp691q.js → otel-impl-2ymwyczz.js} +2 -2
  154. package/dist/{pending-bn4xe5br.js → pending-nxavtvx7.js} +23 -23
  155. package/dist/{pi-mono-adapter-763s8a3w.js → pi-mono-adapter-d2cpmcy4.js} +13 -13
  156. package/dist/{pricing-refresh-kfc215mf.js → pricing-refresh-1yz8jkqv.js} +2 -2
  157. package/dist/{rbac-roles-6r4h2ghj.js → rbac-roles-7s6m31xw.js} +6 -4
  158. package/dist/{rbac-roles-3bznvkpt.js → rbac-roles-dbpx0x9v.js} +3 -3
  159. package/dist/{render-v2-f3qedbpy.js → render-v2-7y20rjrn.js} +7 -7
  160. package/dist/{resume-vcag4ann.js → resume-wz546x47.js} +10 -10
  161. package/dist/{runtime-x0s55z2t.js → runtime-cb5bd9tz.js} +1 -1
  162. package/dist/{session-access-nwzve8q2.js → session-access-4vcft8kq.js} +5 -5
  163. package/dist/{session-source-backfill-jpqfzmgz.js → session-source-backfill-57b50tpw.js} +3 -3
  164. package/dist/{setup-d2smwaem.js → setup-e1tevjyj.js} +1 -1
  165. package/dist/thread-buffer-686pa1p1.js +42 -0
  166. package/dist/{tree-visibility-dwzc8en0.js → tree-visibility-07wf1nct.js} +2 -2
  167. package/dist/{user-merge-jobs-4ce7kma2.js → user-merge-jobs-n20qpv6s.js} +3 -3
  168. package/dist/{virtual-modules-78a6yw71.js → virtual-modules-6fxmn1yv.js} +3 -3
  169. package/dist/{work-objects-m0w1e7q8.js → work-objects-eg7y48pe.js} +25 -25
  170. package/dist/worker-4vp616ms.js +83 -0
  171. package/dist/{worker-follow-up-e3t6f895.js → worker-follow-up-jnvnnf2b.js} +22 -22
  172. package/dist/{x-asbrnafg.js → x-d27jj7z7.js} +2 -2
  173. package/openapi.json +478 -28
  174. package/package.json +3 -3
  175. package/src/be/db/approvals.ts +2 -0
  176. package/src/be/db/runtime.ts +5 -0
  177. package/src/be/db/script-run-sources.ts +17 -0
  178. package/src/be/db-retention.ts +1 -1
  179. package/src/be/db.ts +71 -62
  180. package/src/be/design-system.ts +63 -0
  181. package/src/be/migrations/342_script_run_sources.sql +20 -0
  182. package/src/be/migrations/runner.ts +8 -0
  183. package/src/be/migrations/script-run-sources.ts +51 -0
  184. package/src/be/rbac-roles.ts +2 -0
  185. package/src/be/scripts/typecheck.ts +4 -2
  186. package/src/be/seed-scripts/catalog/design-system-seed.ts +158 -0
  187. package/src/be/seed-scripts/index.ts +9 -0
  188. package/src/be/swarm-config-guard.ts +21 -1
  189. package/src/commands/onboard/agent-fs-version.ts +1 -1
  190. package/src/commands/runner.ts +62 -6
  191. package/src/heartbeat/heartbeat.ts +18 -4
  192. package/src/hooks/codex-hook.ts +15 -4
  193. package/src/hooks/hook.ts +7 -0
  194. package/src/http/all-routes.ts +1 -0
  195. package/src/http/approval-chat-answer.ts +99 -0
  196. package/src/http/approval-requests.ts +280 -225
  197. package/src/http/design-system.ts +103 -0
  198. package/src/http/index.ts +10 -6
  199. package/src/http/pages-public.ts +25 -10
  200. package/src/http/pages.ts +17 -0
  201. package/src/http/person-responder.ts +28 -0
  202. package/src/http/session-cost-recompute.ts +3 -1
  203. package/src/http/session-data.ts +3 -0
  204. package/src/integrations/chat-sdk/adapters.ts +33 -3
  205. package/src/integrations/chat-sdk/inbound.ts +6 -18
  206. package/src/integrations/chat-sdk/mentions.ts +188 -0
  207. package/src/integrations/chat-sdk/outbound.ts +20 -3
  208. package/src/integrations/chat-sdk/router.ts +8 -0
  209. package/src/integrations/chat-sdk/telegram-thread.ts +12 -0
  210. package/src/jira/adf.ts +35 -9
  211. package/src/kv-reserved-namespaces.ts +5 -0
  212. package/src/pages/page-head.ts +11 -1
  213. package/src/prompts/base-prompt.ts +1 -1
  214. package/src/prompts/session-templates.ts +1 -1
  215. package/src/providers/acp-targets.ts +2 -2
  216. package/src/providers/amp-adapter.ts +1 -1
  217. package/src/providers/claude-adapter.ts +21 -1
  218. package/src/providers/claude-sdk-session.ts +22 -3
  219. package/src/providers/claude-session-events.ts +76 -1
  220. package/src/providers/cursor-adapter.ts +1 -1
  221. package/src/providers/dsh-adapter.ts +48 -13
  222. package/src/providers/fx-adapter.ts +2 -2
  223. package/src/providers/pricing-sources.md +3 -0
  224. package/src/providers/types.ts +13 -0
  225. package/src/rbac/legacy-policy.ts +4 -0
  226. package/src/rbac/permissions.ts +8 -0
  227. package/src/scheduler/index.ts +1 -0
  228. package/src/scheduler/scheduler.test.ts +32 -1
  229. package/src/scheduler/scheduler.ts +24 -1
  230. package/src/script-workflows/executor.ts +6 -0
  231. package/src/script-workflows/supervisor.ts +2 -1
  232. package/src/scripts-runtime/sdk-allowlist.ts +2 -0
  233. package/src/scripts-runtime/swarm-sdk.ts +12 -23
  234. package/src/scripts-runtime/types/stdlib.d.ts +4 -1
  235. package/src/scripts-runtime/types/swarm-sdk.d.ts +4 -1
  236. package/src/server.ts +2 -0
  237. package/src/slack/actions.ts +3 -0
  238. package/src/slack/approval-actions.ts +148 -0
  239. package/src/slack/approval-buttons.ts +28 -0
  240. package/src/slack/render-v2.ts +27 -7
  241. package/src/tests/base-prompt.test.ts +6 -2
  242. package/src/tests/chat-sdk-mentions.test.ts +183 -0
  243. package/src/tests/claude-adapter.test.ts +115 -0
  244. package/src/tests/create-page-tool.test.ts +5 -0
  245. package/src/tests/dsh-adapter.test.ts +53 -1
  246. package/src/tests/fixtures/compiled-source-schema-boot.ts +24 -0
  247. package/src/tests/fixtures/fx/acp-updates-recorded.jsonl +1 -1
  248. package/src/tests/fixtures/secret-corpus.ts +43 -1
  249. package/src/tests/heartbeat-stall-thresholds.test.ts +174 -0
  250. package/src/tests/internal-ai/complete-structured.test.ts +105 -0
  251. package/src/tests/internal-ai/credentials.test.ts +149 -0
  252. package/src/tests/internal-ai/task-title.test.ts +78 -0
  253. package/src/tests/jira-adf.test.ts +42 -2
  254. package/src/tests/mcp-input-caps.test.ts +16 -11
  255. package/src/tests/merge-gate-detect-changes.test.ts +208 -16
  256. package/src/tests/migration-342-script-run-sources.test.ts +196 -0
  257. package/src/tests/migration-bunfs-compat.test.ts +129 -9
  258. package/src/tests/rbac-e2e-helpers.test.ts +10 -4
  259. package/src/tests/rbac-e2e-helpers.ts +13 -4
  260. package/src/tests/rbac-roles.test.ts +2 -0
  261. package/src/tests/runner-slot-reconcile.test.ts +102 -0
  262. package/src/tests/runtime-e2b-pools.test.ts +7 -1
  263. package/src/tests/schedule-target-type.test.ts +4 -1
  264. package/src/tests/script-connections.test.ts +2 -0
  265. package/src/tests/script-runs-retention.test.ts +43 -16
  266. package/src/tests/script-workflows-runtime-e2e.test.ts +56 -22
  267. package/src/tests/scripts-http.test.ts +9 -3
  268. package/src/tests/sdk-allowlist.test.ts +26 -13
  269. package/src/tests/sdk-store-progress-skipped.test.ts +12 -5
  270. package/src/tests/secret-rules.test.ts +34 -0
  271. package/src/tests/secret-scrub-gate.test.ts +7 -0
  272. package/src/tests/secret-scrubber.test.ts +62 -2
  273. package/src/tests/seed-scripts.test.ts +2 -2
  274. package/src/tests/slack-render-v2.test.ts +85 -0
  275. package/src/tests/system-one-hosts-ui-mirror.test.ts +1 -0
  276. package/src/tests/vcs-azure-devops.test.ts +10 -0
  277. package/src/tests/vcs-provider.test.ts +8 -0
  278. package/src/themes/design-system.ts +163 -0
  279. package/src/themes/page-theme.ts +28 -19
  280. package/src/tools/chat-post.ts +7 -3
  281. package/src/tools/create-page.ts +3 -0
  282. package/src/tools/design-system.ts +102 -0
  283. package/src/tools/mcp-servers/mcp-server-get.ts +1 -1
  284. package/src/tools/mcp-servers/mcp-server-list.ts +1 -1
  285. package/src/tools/register-chat-channel.ts +11 -2
  286. package/src/tools/skills/skill-get-file.ts +1 -1
  287. package/src/tools/skills/skill-get.ts +1 -1
  288. package/src/tools/skills/skill-list.ts +1 -1
  289. package/src/tools/skills/skill-search.ts +1 -1
  290. package/src/tools/utils.ts +49 -4
  291. package/src/tools/workflows/get-workflow-run.ts +1 -1
  292. package/src/tools/workflows/get-workflow.ts +1 -1
  293. package/src/tools/workflows/list-workflow-runs.ts +1 -1
  294. package/src/tools/workflows/list-workflows.ts +1 -1
  295. package/src/types.ts +67 -1
  296. package/src/utils/internal-ai/complete-structured.ts +36 -5
  297. package/src/utils/internal-ai/credentials.ts +78 -2
  298. package/src/utils/internal-ai/models.ts +37 -1
  299. package/src/utils/internal-ai/task-title.ts +31 -1
  300. package/src/utils/secret-rules.generated.ts +149 -149
  301. package/src/utils/secret-scrubber.ts +111 -5
  302. package/src/vcs/azure-devops.ts +22 -1
  303. package/src/vcs/index.ts +3 -1
  304. package/src/workflows/approval-inline.ts +122 -0
  305. package/src/workflows/approval-notifications.ts +7 -2
  306. package/src/workflows/engine.ts +6 -5
  307. package/src/workflows/executors/agent-task.ts +14 -0
  308. package/src/workflows/executors/system-one-providers.ts +23 -0
  309. package/templates/skills/pages/content.md +34 -8
  310. package/templates/skills/swarm-docs/content.md +13 -0
  311. package/templates/skills/workflow-iterate/content.md +1 -1
  312. package/dist/acp-adapter-x1qqgzwx.js +0 -17
  313. package/dist/cli-n46d87mj.js +0 -98
  314. package/dist/core-2b8bv6ny.js +0 -42
  315. package/dist/fx-adapter-4yet1c4f.js +0 -20
  316. package/dist/grok-adapter-8ge6tw7m.js +0 -20
  317. package/dist/handlers-0r9evrdj.js +0 -41
  318. package/dist/hook-68gbs87k.js +0 -19
  319. package/dist/index-1v23363p.js +0 -39
  320. package/dist/index-30qw6vyw.js +0 -44
  321. package/dist/index-6bm3w6cn.js +0 -40
  322. package/dist/lead-3jpc7kcr.js +0 -79
  323. package/dist/thread-buffer-8fc703jc.js +0 -42
  324. package/dist/worker-3p2vq107.js +0 -79
@@ -8,17 +8,17 @@ import {
8
8
  getMemoryStore2,
9
9
  init_memory,
10
10
  init_db4
11
- } from "./cli-erh1rgh4.js";
11
+ } from "./cli-ts5yv7dn.js";
12
12
  import {
13
13
  contentSha256,
14
14
  init_profile_sync
15
- } from "./cli-s6fhqbz1.js";
15
+ } from "./cli-ka48vpev.js";
16
16
  import {
17
17
  SCRUBBER_RULES_VERSION,
18
18
  createSweepScrubber,
19
19
  scrubberRulesFingerprint,
20
20
  init_secret_scrubber
21
- } from "./cli-fp65jdp2.js";
21
+ } from "./cli-1kvcsd2f.js";
22
22
 
23
23
  // src/be/boot-scrub-sweep.ts
24
24
  init_profile_sync();
@@ -142,7 +142,7 @@ async function runBootScrubSweep2(opts = {}) {
142
142
  console.log(`[${tag}] complete`);
143
143
  const memoryChanged = stats.find((s) => s.table === "agent_memory")?.changed ?? 0;
144
144
  if (memoryChanged > 0 && opts.reembed !== false) {
145
- const { runBootReembed } = await import("./boot-reembed-157c0gcz.js");
145
+ const { runBootReembed } = await import("./boot-reembed-epvg4fp9.js");
146
146
  await runBootReembed();
147
147
  }
148
148
  return stats;
@@ -10,12 +10,12 @@ import {
10
10
  resolveConfigValueOrThrow,
11
11
  resolveHeadersOrThrow,
12
12
  FileAuthStorageBackend
13
- } from "./cli-t9nxq30h.js";
13
+ } from "./cli-jzerrzgc.js";
14
14
  import {
15
15
  oauthSuccessHtml,
16
16
  oauthErrorHtml,
17
17
  init_oauth_page
18
- } from "./cli-xhkek467.js";
18
+ } from "./cli-7by7vp6m.js";
19
19
  import {
20
20
  __toESM
21
21
  } from "./cli-242037k3.js";
@@ -8,12 +8,12 @@ import {
8
8
  invalidateTelemetryUserRole,
9
9
  init_telemetry_identity,
10
10
  init_db4
11
- } from "./cli-erh1rgh4.js";
11
+ } from "./cli-ts5yv7dn.js";
12
12
  import {
13
13
  revokeAllUserCredentials,
14
14
  isLiveUserToken,
15
15
  init_users
16
- } from "./cli-getrvmtx.js";
16
+ } from "./cli-kj84fqxz.js";
17
17
  import {
18
18
  init_env_flag
19
19
  } from "./cli-cebvbc9t.js";
@@ -332,7 +332,8 @@ var init_rbac_roles = __esm(() => {
332
332
  "comb.presence",
333
333
  "fs.join.own",
334
334
  "objects.read",
335
- "objects.write"
335
+ "objects.write",
336
+ "page.launch"
336
337
  ]
337
338
  },
338
339
  {
@@ -347,7 +348,8 @@ var init_rbac_roles = __esm(() => {
347
348
  "session.presence",
348
349
  "comb.presence",
349
350
  "fs.join.own",
350
- "objects.read"
351
+ "objects.read",
352
+ "page.launch"
351
353
  ]
352
354
  },
353
355
  {
@@ -6,7 +6,7 @@ import {
6
6
  import {
7
7
  scrubSecrets,
8
8
  init_secret_scrubber
9
- } from "./cli-fp65jdp2.js";
9
+ } from "./cli-1kvcsd2f.js";
10
10
  import {
11
11
  __esm
12
12
  } from "./cli-242037k3.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createSsrfGuardedFetch,
3
3
  init_egress_guard
4
- } from "./cli-erh1rgh4.js";
4
+ } from "./cli-ts5yv7dn.js";
5
5
  import {
6
6
  isEnvFlagEnabled,
7
7
  init_env_flag
@@ -14,7 +14,7 @@ import {
14
14
  scrubSecrets,
15
15
  registerVolatileSecret,
16
16
  init_secret_scrubber
17
- } from "./cli-fp65jdp2.js";
17
+ } from "./cli-1kvcsd2f.js";
18
18
  import {
19
19
  __esm
20
20
  } from "./cli-242037k3.js";
@@ -2,7 +2,7 @@ import {
2
2
  runtimeCatalogSection,
3
3
  runtimeCatalogModel,
4
4
  init_runtime_model_catalog
5
- } from "./cli-q8aq48v1.js";
5
+ } from "./cli-8b4rpnwj.js";
6
6
  import {
7
7
  CHATGPT_SUBSCRIPTION_PROVIDER,
8
8
  dshCatalogRef,
@@ -12,7 +12,7 @@ import {
12
12
  reasoningLevelsFor,
13
13
  claudeCatalogModelId,
14
14
  init_src2
15
- } from "./cli-fp65jdp2.js";
15
+ } from "./cli-1kvcsd2f.js";
16
16
 
17
17
  // src/providers/reasoning-effort.ts
18
18
  init_src2();
@@ -2,12 +2,12 @@ import {
2
2
  runtimeCatalogSection,
3
3
  runtimeCatalogModel,
4
4
  init_runtime_model_catalog
5
- } from "./cli-q8aq48v1.js";
5
+ } from "./cli-8b4rpnwj.js";
6
6
  import {
7
7
  chatgptSubscriptionModelId,
8
8
  buildClaudeShortnameMap,
9
9
  init_src2
10
- } from "./cli-fp65jdp2.js";
10
+ } from "./cli-1kvcsd2f.js";
11
11
  import {
12
12
  __esm
13
13
  } from "./cli-242037k3.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  scrubSecrets,
3
3
  init_secret_scrubber
4
- } from "./cli-fp65jdp2.js";
4
+ } from "./cli-1kvcsd2f.js";
5
5
 
6
6
  // src/providers/runtime-dependencies.ts
7
7
  init_secret_scrubber();
@@ -51,7 +51,7 @@ async function validateProviderDependencies(provider, config, dependencies = pro
51
51
  };
52
52
  switch (provider) {
53
53
  case "claude": {
54
- const { resolveClaudeBinaryArgv, withClaudeRouteEnv } = await import("./claude-adapter-gwq7x2nj.js");
54
+ const { resolveClaudeBinaryArgv, withClaudeRouteEnv } = await import("./claude-adapter-hw63yj3j.js");
55
55
  const sourceEnv = withClaudeRouteEnv(env);
56
56
  const { argv, useClaudeBridge } = resolveClaudeBinaryArgv(sourceEnv);
57
57
  requireExecutable(argv[0], useClaudeBridge ? "Use worker-full or install @desplega.ai/claude-bridge during image provisioning." : "Install Claude Code or set CLAUDE_BINARY to a trusted executable on the worker.", sourceEnv);
@@ -69,7 +69,7 @@ async function validateProviderDependencies(provider, config, dependencies = pro
69
69
  case "grok":
70
70
  case "fx":
71
71
  case "acp": {
72
- const { resolveAcpTarget, grokTargetProfile, fxTargetProfile } = await import("./acp-targets-mz8c5dnt.js");
72
+ const { resolveAcpTarget, grokTargetProfile, fxTargetProfile } = await import("./acp-targets-zrk9k0n7.js");
73
73
  const target = provider === "grok" ? grokTargetProfile : provider === "fx" ? fxTargetProfile : resolveAcpTarget(config);
74
74
  const hint = provider === "grok" ? "Use worker-full, install @xai-official/grok@1.0.77, or set GROK_BINARY to a trusted executable." : provider === "fx" ? "Use worker-full, install the pinned fx release (Dockerfile.worker FX_VERSION), or set FX_BINARY." : `ACP_TARGET='${target.target}'. ${acpInstallHints[target.target]}`;
75
75
  requireExecutable(target.command(config)[0], hint, target.env(config));
@@ -3,7 +3,7 @@ import {
3
3
  getSwarmConfigs2,
4
4
  getResolvedConfig2,
5
5
  init_db4
6
- } from "./cli-erh1rgh4.js";
6
+ } from "./cli-ts5yv7dn.js";
7
7
  import {
8
8
  AgentFsProvider,
9
9
  init_agent_fs_provider
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  registerVolatileSecret,
13
13
  init_secret_scrubber
14
- } from "./cli-fp65jdp2.js";
14
+ } from "./cli-1kvcsd2f.js";
15
15
  import {
16
16
  __esm
17
17
  } from "./cli-242037k3.js";
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  applyReasoningEffort
3
- } from "./cli-vdfngx2g.js";
3
+ } from "./cli-ywy8yz6t.js";
4
4
  import {
5
5
  getContextWindowSize,
6
6
  clampContextPercent,
7
7
  init_context_window
8
- } from "./cli-cpkxh68d.js";
8
+ } from "./cli-z1vam71h.js";
9
9
  import {
10
10
  resolveSlashSkillPrompt
11
11
  } from "./cli-5j88qqa8.js";
@@ -18,11 +18,11 @@ import {
18
18
  resolveTemplateAsync,
19
19
  init_resolver,
20
20
  init_session_templates
21
- } from "./cli-mwxez0pz.js";
21
+ } from "./cli-b768ek79.js";
22
22
  import {
23
23
  DEFAULT_MODEL_TIER_MAP,
24
24
  init_types5
25
- } from "./cli-f8rcvf2x.js";
25
+ } from "./cli-azj9t1f9.js";
26
26
  import {
27
27
  parseEnvFlag,
28
28
  init_env_flag
@@ -33,7 +33,7 @@ import {
33
33
  scrubSecrets,
34
34
  registerVolatileSecret,
35
35
  init_secret_scrubber
36
- } from "./cli-fp65jdp2.js";
36
+ } from "./cli-1kvcsd2f.js";
37
37
 
38
38
  // src/providers/cursor-adapter.ts
39
39
  init_src2();
@@ -54,7 +54,7 @@ function checkCursorCredentials2(env) {
54
54
  return env.CURSOR_API_KEY?.trim() ? { ready: true, missing: [], satisfiedBy: "env" } : { ready: false, missing: ["CURSOR_API_KEY"], hint: "Set CURSOR_API_KEY for cursor." };
55
55
  }
56
56
  async function liveTestCursorKey2(apiKey) {
57
- const { Cursor } = await import("./index-p2f5xg64.js");
57
+ const { Cursor } = await import("./index-3j803vnb.js");
58
58
  try {
59
59
  await Cursor.me({ apiKey });
60
60
  return { ok: true };
@@ -74,7 +74,7 @@ async function listCursorModels(apiKey) {
74
74
  if (modelListCache?.key === apiKey && Date.now() - modelListCache.at < MODEL_LIST_TTL_MS) {
75
75
  return modelListCache.models;
76
76
  }
77
- const { Cursor } = await import("./index-p2f5xg64.js");
77
+ const { Cursor } = await import("./index-3j803vnb.js");
78
78
  const models = await Cursor.models.list({ apiKey });
79
79
  modelListCache = { key: apiKey, at: Date.now(), models };
80
80
  return models;
@@ -448,7 +448,7 @@ class CursorAdapter2 {
448
448
  if (!apiKey)
449
449
  throw new Error("cursor requires CURSOR_API_KEY");
450
450
  registerVolatileSecret(apiKey, "CURSOR_API_KEY");
451
- const { Agent, JsonlLocalAgentStore } = await import("./index-p2f5xg64.js");
451
+ const { Agent, JsonlLocalAgentStore } = await import("./index-3j803vnb.js");
452
452
  const modelId = config.model || DEFAULT_MODEL_TIER_MAP.cursor.regular;
453
453
  const effort = applyReasoningEffort("cursor", modelId, config.reasoningEffort);
454
454
  const requested = effort.kind === "cursor-effort" ? effort.reasoningEffort : undefined;
package/dist/cli.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  scrubSecrets,
22
22
  init_secret_scrubber
23
- } from "./cli-fp65jdp2.js";
23
+ } from "./cli-1kvcsd2f.js";
24
24
  import {
25
25
  __toESM,
26
26
  __commonJS
@@ -50,7 +50,7 @@ var import_react = __toESM(require_react(), 1);
50
50
  // package.json
51
51
  var package_default = {
52
52
  name: "@desplega.ai/agent-swarm",
53
- version: "2.13.2",
53
+ version: "2.13.4",
54
54
  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.",
55
55
  keywords: [
56
56
  "agent-swarm.dev",
@@ -269,8 +269,8 @@ var package_default = {
269
269
  "@chat-adapter/slack": "4.45.0",
270
270
  "@chat-adapter/teams": "4.45.0",
271
271
  "@chat-adapter/telegram": "4.45.0",
272
- "@cursor/sdk": "1.3.1",
273
- "@desplega.ai/agent-fs-just-bash": "0.18.28",
272
+ "@cursor/sdk": "1.4.0",
273
+ "@desplega.ai/agent-fs-just-bash": "0.18.32",
274
274
  "@desplega.ai/business-use": "^0.4.2",
275
275
  "@earendil-works/pi-agent-core": "^1.5.2",
276
276
  "@earendil-works/pi-ai": "^1.5.2",
@@ -848,7 +848,7 @@ function McpServer({ port, apiKey, dbPath }) {
848
848
  if (dbPath) {
849
849
  process.env.DATABASE_PATH = dbPath;
850
850
  }
851
- import("./http-8c6y008s.js").then(() => {
851
+ import("./http-3rmemtqy.js").then(() => {
852
852
  setStatus("running");
853
853
  }).catch((err) => {
854
854
  setStatus("error");
@@ -929,7 +929,7 @@ function WorkerRunner({ prompt, systemPrompt, systemPromptFile, additionalArgs }
929
929
  const { exit } = use_app_default();
930
930
  import_react.useEffect(() => {
931
931
  installConsoleScrub();
932
- import("./worker-3p2vq107.js").then(({ runWorker }) => runWorker({
932
+ import("./worker-4vp616ms.js").then(({ runWorker }) => runWorker({
933
933
  prompt: prompt || undefined,
934
934
  systemPrompt: systemPrompt || undefined,
935
935
  systemPromptFile: systemPromptFile || undefined,
@@ -946,7 +946,7 @@ function LeadRunner({ prompt, systemPrompt, systemPromptFile, additionalArgs })
946
946
  const { exit } = use_app_default();
947
947
  import_react.useEffect(() => {
948
948
  installConsoleScrub();
949
- import("./lead-3jpc7kcr.js").then(({ runLead }) => runLead({
949
+ import("./lead-5vt6f174.js").then(({ runLead }) => runLead({
950
950
  prompt: prompt || undefined,
951
951
  systemPrompt: systemPrompt || undefined,
952
952
  systemPromptFile: systemPromptFile || undefined,
@@ -985,8 +985,8 @@ function LazyComponent({
985
985
  }
986
986
  return import_react.createElement(Component, props);
987
987
  }
988
- var loadOnboard = () => import("./onboard-5yphtken.js").then(({ Onboard }) => Onboard);
989
- var loadConnect = () => import("./setup-d2smwaem.js").then(({ Setup }) => Setup);
988
+ var loadOnboard = () => import("./onboard-hb8czx0p.js").then(({ Onboard }) => Onboard);
989
+ var loadConnect = () => import("./setup-e1tevjyj.js").then(({ Setup }) => Setup);
990
990
  function UnknownCommand({ command }) {
991
991
  const { exit } = use_app_default();
992
992
  import_react.useEffect(() => {
@@ -1115,19 +1115,19 @@ ${binName} docs \u2014 v${package_default.version}
1115
1115
  }
1116
1116
  process.exit(0);
1117
1117
  } else if (args.command === "hook") {
1118
- const { runHook } = await import("./hook-68gbs87k.js");
1118
+ const { runHook } = await import("./hook-3am1sq68.js");
1119
1119
  await runHook();
1120
1120
  } else if (args.command === "codex-hook") {
1121
- const { handleCodexHook } = await import("./codex-hook-c0nvm30r.js");
1121
+ const { handleCodexHook } = await import("./codex-hook-jxjv6dy5.js");
1122
1122
  await handleCodexHook();
1123
1123
  process.exit(process.exitCode ?? 0);
1124
1124
  } else if (args.command === "session-summary-stdin") {
1125
- const { runSessionSummaryFromStdin } = await import("./hook-y6n23zzj.js");
1125
+ const { runSessionSummaryFromStdin } = await import("./hook-tx917rqw.js");
1126
1126
  await runSessionSummaryFromStdin();
1127
1127
  process.exit(process.exitCode ?? 0);
1128
1128
  } else if (args.command === "x") {
1129
1129
  const xArgs = process.argv.slice(process.argv.indexOf("x") + 1);
1130
- const { runXCommand } = await import("./x-asbrnafg.js");
1130
+ const { runXCommand } = await import("./x-d27jj7z7.js");
1131
1131
  await runXCommand(xArgs);
1132
1132
  } else if (args.command === "scripts") {
1133
1133
  const scriptsArgs = process.argv.slice(process.argv.indexOf("scripts") + 1);
@@ -1135,7 +1135,7 @@ ${binName} docs \u2014 v${package_default.version}
1135
1135
  printHelp("scripts");
1136
1136
  process.exit(scriptsArgs[0] === "reembed" || args.showHelp ? 0 : 1);
1137
1137
  }
1138
- const { runScriptsMaintenanceCommand } = await import("./maintenance-d3erjvcg.js");
1138
+ const { runScriptsMaintenanceCommand } = await import("./maintenance-vwqjwst6.js");
1139
1139
  await runScriptsMaintenanceCommand(scriptsArgs);
1140
1140
  console.log("Scripts re-embedded.");
1141
1141
  } else if (args.command === "rbac") {
@@ -1145,17 +1145,17 @@ ${binName} docs \u2014 v${package_default.version}
1145
1145
  printHelp("rbac");
1146
1146
  process.exit(args.showHelp ? 0 : 1);
1147
1147
  }
1148
- const { runRbacCliCommand } = await import("./rbac-roles-6r4h2ghj.js");
1148
+ const { runRbacCliCommand } = await import("./rbac-roles-7s6m31xw.js");
1149
1149
  await runRbacCliCommand(rbacArgs);
1150
1150
  } else if (args.command === "codex-login") {
1151
- const { runCodexLogin } = await import("./codex-login-ven5cz5j.js");
1151
+ const { runCodexLogin } = await import("./codex-login-ktfg1cxk.js");
1152
1152
  const codexLoginArgs = process.argv.slice(process.argv.indexOf("codex-login") + 1);
1153
1153
  await runCodexLogin(codexLoginArgs);
1154
1154
  } else if (args.command === "codex-session-runner") {
1155
- const { runCodexSessionRunner } = await import("./codex-session-runner-kn5xnrvp.js");
1155
+ const { runCodexSessionRunner } = await import("./codex-session-runner-r55tmx4c.js");
1156
1156
  await runCodexSessionRunner();
1157
1157
  } else if (args.command === "claude-managed-setup") {
1158
- const { runClaudeManagedSetup } = await import("./claude-managed-setup-0vgz4d1j.js");
1158
+ const { runClaudeManagedSetup } = await import("./claude-managed-setup-wee1762m.js");
1159
1159
  const setupArgs = process.argv.slice(process.argv.indexOf("claude-managed-setup") + 1);
1160
1160
  await runClaudeManagedSetup(setupArgs);
1161
1161
  } else if (args.command === "worker-token") {
@@ -1163,11 +1163,11 @@ ${binName} docs \u2014 v${package_default.version}
1163
1163
  const tokenArgs = process.argv.slice(process.argv.indexOf("worker-token") + 1);
1164
1164
  process.exit(await runWorkerToken(tokenArgs));
1165
1165
  } else if (args.command === "e2b") {
1166
- const { runE2BCommand } = await import("./e2b-jnk0yeva.js");
1166
+ const { runE2BCommand } = await import("./e2b-dc8f6ctq.js");
1167
1167
  const e2bArgs = process.argv.slice(process.argv.indexOf("e2b") + 1);
1168
1168
  await runE2BCommand(e2bArgs);
1169
1169
  } else if (args.command === "controller") {
1170
- const { runController } = await import("./controller-wn3vd217.js");
1170
+ const { runController } = await import("./controller-g3vkfhr4.js");
1171
1171
  await runController(process.argv.slice(process.argv.indexOf("controller") + 1));
1172
1172
  } else {
1173
1173
  render_default(/* @__PURE__ */ jsx_dev_runtime.jsxDEV(App, {
@@ -2,17 +2,17 @@ import {
2
2
  checkCodexCredentials2,
3
3
  createInProcessCodexSession2,
4
4
  CodexAdapter2
5
- } from "./cli-6rmryz03.js";
6
- import"./cli-at67kvnp.js";
5
+ } from "./cli-t0jmkcah.js";
6
+ import"./cli-srktrbby.js";
7
7
  import"./cli-kr5tjjtz.js";
8
- import"./cli-zm6bkx3e.js";
8
+ import"./cli-zexwhj3f.js";
9
9
  import"./cli-snxhtehz.js";
10
- import"./cli-gq6qhmrr.js";
10
+ import"./cli-m1sns1da.js";
11
11
  import"./cli-0726awxw.js";
12
- import"./cli-0xwb7zpt.js";
13
- import"./cli-zkbz8m2q.js";
14
- import"./cli-cmgdptmx.js";
15
- import"./cli-vdfngx2g.js";
12
+ import"./cli-3xqad83h.js";
13
+ import"./cli-fkpnx3vf.js";
14
+ import"./cli-bv4vvnmg.js";
15
+ import"./cli-ywy8yz6t.js";
16
16
  export {
17
17
  CodexAdapter2 as CodexAdapter,
18
18
  checkCodexCredentials2 as checkCodexCredentials,
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env bun
2
2
  import {
3
3
  renderSteeringDelivery
4
- } from "./cli-qn79645p.js";
4
+ } from "./cli-h9d3sdnc.js";
5
5
  import {
6
6
  canonicalToolName,
7
7
  canonicalArgs,
8
8
  runNativePre,
9
9
  runNativePost
10
- } from "./cli-2v4xxnx2.js";
10
+ } from "./cli-0h8skzss.js";
11
11
  import {
12
12
  guardGhPrBody,
13
13
  guardGhPrRoom
@@ -134,6 +134,7 @@ function nativeTargetOf(config) {
134
134
  taskId: config.taskId
135
135
  };
136
136
  }
137
+ var CODEX_REWRITABLE_TOOLS = new Set(["bash", "apply_patch"]);
137
138
  async function codexNativePre(msg, config, fetchImpl = fetch, deps, roomDeps) {
138
139
  const call = nativeCallOf(msg);
139
140
  const target = nativeTargetOf(config);
@@ -142,7 +143,13 @@ async function codexNativePre(msg, config, fetchImpl = fetch, deps, roomDeps) {
142
143
  const decision = await runNativePre(target, call, fetchImpl);
143
144
  if (decision.action === "block")
144
145
  return decision;
145
- if (decision.action === "modify" && call.tool === "bash") {
146
+ if (decision.action === "modify") {
147
+ if (!CODEX_REWRITABLE_TOOLS.has(call.tool)) {
148
+ return {
149
+ action: "block",
150
+ reason: `An extension rewrote this ${call.nativeTool} call, but codex cannot apply the rewrite in place. Retry with these arguments: ${JSON.stringify(decision.args)}`
151
+ };
152
+ }
146
153
  const reason = await codexPreToolUseBlock({ ...msg, tool_input: decision.args }, deps, roomDeps);
147
154
  if (reason)
148
155
  return { action: "block", reason };
@@ -8,7 +8,7 @@ import {
8
8
  loadAllCodexOAuthSlots,
9
9
  storeCodexOAuth,
10
10
  init_storage
11
- } from "./cli-8fj8yfmk.js";
11
+ } from "./cli-2vp0z049.js";
12
12
  import {
13
13
  getApiKey,
14
14
  init_api_key
@@ -1,20 +1,20 @@
1
- import"./cli-0xwb7zpt.js";
1
+ import"./cli-3xqad83h.js";
2
2
  import {
3
3
  createInProcessCodexSession2
4
- } from "./cli-6rmryz03.js";
5
- import"./cli-zkbz8m2q.js";
6
- import"./cli-cmgdptmx.js";
7
- import"./cli-gq6qhmrr.js";
8
- import"./cli-zm6bkx3e.js";
4
+ } from "./cli-t0jmkcah.js";
5
+ import"./cli-fkpnx3vf.js";
6
+ import"./cli-bv4vvnmg.js";
7
+ import"./cli-m1sns1da.js";
8
+ import"./cli-zexwhj3f.js";
9
9
  import"./cli-0726awxw.js";
10
- import"./cli-at67kvnp.js";
10
+ import"./cli-srktrbby.js";
11
11
  import"./cli-kr5tjjtz.js";
12
12
  import"./cli-snxhtehz.js";
13
- import"./cli-vdfngx2g.js";
13
+ import"./cli-ywy8yz6t.js";
14
14
  import {
15
15
  scrubSecrets,
16
16
  init_secret_scrubber
17
- } from "./cli-fp65jdp2.js";
17
+ } from "./cli-1kvcsd2f.js";
18
18
 
19
19
  // src/commands/codex-session-runner.ts
20
20
  init_secret_scrubber();
@@ -2,16 +2,16 @@ import {
2
2
  getAllAgents2,
3
3
  getAllTasks2,
4
4
  init_db4
5
- } from "./cli-erh1rgh4.js";
5
+ } from "./cli-ts5yv7dn.js";
6
6
  import {
7
7
  EXTERNAL_CHANNEL_BLOCKED_REPLY2,
8
8
  shouldBlockChannel2,
9
9
  init_external_channel
10
- } from "./cli-ka13xx6b.js";
10
+ } from "./cli-7gbff32z.js";
11
11
  import {
12
12
  isSlackLeaveThreadDisabled,
13
13
  init_left_threads
14
- } from "./cli-4djg31jh.js";
14
+ } from "./cli-gtj12v95.js";
15
15
  import {
16
16
  isEnvFlagEnabled,
17
17
  init_env_flag
@@ -3,20 +3,20 @@ import {
3
3
  CONTROLLER_PROTOCOL_VERSION,
4
4
  CONTROLLER_PING_INTERVAL_MS,
5
5
  ControllerServerMessageSchema
6
- } from "./cli-50whymxq.js";
6
+ } from "./cli-p436yrzp.js";
7
7
  import {
8
8
  createRuntimeProvider,
9
9
  init_runtime_providers
10
- } from "./cli-43dsqhcp.js";
10
+ } from "./cli-jbrc98qb.js";
11
11
  import {
12
12
  RuntimeProviderKindSchema,
13
13
  init_types5
14
- } from "./cli-f8rcvf2x.js";
14
+ } from "./cli-azj9t1f9.js";
15
15
  import {
16
16
  scrubSecrets,
17
17
  registerVolatileSecret,
18
18
  init_secret_scrubber
19
- } from "./cli-fp65jdp2.js";
19
+ } from "./cli-1kvcsd2f.js";
20
20
 
21
21
  // src/commands/controller.ts
22
22
  init_runtime_providers();
@@ -3,16 +3,16 @@ import {
3
3
  isRuntimePoolsEnabled,
4
4
  init_runtime_pools_flag,
5
5
  init_db4
6
- } from "./cli-erh1rgh4.js";
6
+ } from "./cli-ts5yv7dn.js";
7
7
  import {
8
8
  CONTROLLER_PROTOCOL_VERSION,
9
9
  CONTROLLER_PING_INTERVAL_MS,
10
10
  ControllerClientMessageSchema
11
- } from "./cli-50whymxq.js";
11
+ } from "./cli-p436yrzp.js";
12
12
  import {
13
13
  getRuntimeController2,
14
14
  init_db2
15
- } from "./cli-tceqvv6h.js";
15
+ } from "./cli-29h5239w.js";
16
16
  import {
17
17
  remoteControllerSession,
18
18
  installRemoteController,
@@ -21,40 +21,40 @@ import {
21
21
  ensureRuntimeOwnerId,
22
22
  reconcileRemoteProvisions,
23
23
  reconcileControllerOrphans
24
- } from "./cli-7m6bbtab.js";
25
- import"./cli-ka13xx6b.js";
26
- import"./cli-e87fg3en.js";
24
+ } from "./cli-ea7nz50q.js";
25
+ import"./cli-7gbff32z.js";
26
+ import"./cli-qzz6tz8s.js";
27
27
  import"./cli-vr4eyq6p.js";
28
28
  import"./cli-r8ddn0hf.js";
29
- import"./cli-vx9acp12.js";
30
- import"./cli-69eq6gdk.js";
31
- import"./cli-f1sdh8ca.js";
32
- import"./cli-fcwrd7bh.js";
29
+ import"./cli-ybte1fqc.js";
30
+ import"./cli-rmgvwcmy.js";
31
+ import"./cli-d5pc8ep0.js";
32
+ import"./cli-9ah37a8a.js";
33
33
  import {
34
34
  resolveHttpRequestAuth,
35
35
  init_auth
36
- } from "./cli-dnvmwsvc.js";
37
- import"./cli-n14r8h4n.js";
38
- import"./cli-8qvte9hn.js";
39
- import"./cli-m1wddksc.js";
36
+ } from "./cli-904wk98s.js";
37
+ import"./cli-x2cem5vy.js";
38
+ import"./cli-4fpa0zns.js";
39
+ import"./cli-93n305hm.js";
40
40
  import"./cli-y260hgep.js";
41
41
  import {
42
42
  route,
43
43
  init_route_def
44
- } from "./cli-2wde56gv.js";
45
- import"./cli-nkfv398a.js";
46
- import"./cli-xerdrnqs.js";
47
- import"./cli-wdtqkqnq.js";
48
- import"./cli-j2ybkdk2.js";
49
- import"./cli-4djg31jh.js";
50
- import"./cli-jkkcm72j.js";
44
+ } from "./cli-404am6f3.js";
45
+ import"./cli-gse7bp3z.js";
46
+ import"./cli-jyhbvdga.js";
47
+ import"./cli-tr19nyn9.js";
48
+ import"./cli-zhwjdhjr.js";
49
+ import"./cli-gtj12v95.js";
50
+ import"./cli-0p76my9q.js";
51
51
  import {
52
52
  getApiKey,
53
53
  init_api_key
54
54
  } from "./cli-pax9q4ff.js";
55
55
  import"./cli-b0m3bg0f.js";
56
- import"./cli-b0kqw55g.js";
57
- import"./cli-xysy1g8x.js";
56
+ import"./cli-pz1dp12c.js";
57
+ import"./cli-ysv0k1we.js";
58
58
  import {
59
59
  import_websocket_server,
60
60
  init_wrapper2
@@ -62,11 +62,11 @@ import {
62
62
  import {
63
63
  registerSessionTokenConnection,
64
64
  init_session_token_connections
65
- } from "./cli-getrvmtx.js";
65
+ } from "./cli-kj84fqxz.js";
66
66
  import {
67
67
  scrubSecrets,
68
68
  init_secret_scrubber
69
- } from "./cli-fp65jdp2.js";
69
+ } from "./cli-1kvcsd2f.js";
70
70
 
71
71
  // src/http/controllers-connect.ts
72
72
  init_wrapper2();