@desplega.ai/agent-swarm 2.13.1 → 2.13.3

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 (229) hide show
  1. package/README.md +1 -1
  2. package/dist/acp-adapter-t2q6nsqv.js +17 -0
  3. package/dist/{acp-targets-n7vm5atw.js → acp-targets-k8xs4tj8.js} +7 -7
  4. package/dist/{actions-hq6wp9xv.js → actions-pg5fxjer.js} +25 -25
  5. package/dist/{agent-fs-provision-y0qc1rdd.js → agent-fs-provision-vbk3fppw.js} +4 -4
  6. package/dist/{amp-adapter-1qqs6h91.js → amp-adapter-adbhxsz9.js} +2 -2
  7. package/dist/{app-7m4z44rv.js → app-b267ggx1.js} +8 -8
  8. package/dist/{approval-notifications-8sr41gjx.js → approval-notifications-evc1a9z5.js} +9 -9
  9. package/dist/{assistant-hkczwfv6.js → assistant-wgz2ab84.js} +26 -26
  10. package/dist/{boot-args-schema-8025snev.js → boot-args-schema-6tpk28j4.js} +1 -1
  11. package/dist/{boot-reembed-15m87nr1.js → boot-reembed-ankp369c.js} +1 -1
  12. package/dist/{boot-reembed-4bbpxjh1.js → boot-reembed-r1zyvefv.js} +1 -1
  13. package/dist/{boot-scrub-sweep-eajr97e9.js → boot-scrub-sweep-cgb6r5bd.js} +2 -2
  14. package/dist/{boot-seeds-9cwy39jx.js → boot-seeds-bjceqg7b.js} +4 -4
  15. package/dist/{claude-adapter-g61wa4rt.js → claude-adapter-knztdnff.js} +9 -6
  16. package/dist/{claude-managed-adapter-znkk0prm.js → claude-managed-adapter-qwejzqkk.js} +3 -3
  17. package/dist/{claude-managed-setup-f1wndkr2.js → claude-managed-setup-0vgz4d1j.js} +4 -4
  18. package/dist/{claude-sdk-session-687xzf21.js → claude-sdk-session-c3g6dv0g.js} +11984 -11775
  19. package/dist/{cli-4mj5g29m.js → cli-0j4qmc80.js} +7 -7
  20. package/dist/{cli-fn8aj7gb.js → cli-1606qw3n.js} +98 -71
  21. package/dist/{cli-w41bvvms.js → cli-1gnf5c7x.js} +1 -1
  22. package/dist/{cli-aebswqmz.js → cli-1wew39p0.js} +15 -15
  23. package/dist/{cli-0fx95c06.js → cli-268b3dgn.js} +2 -2
  24. package/dist/cli-2ap1the6.js +11 -0
  25. package/dist/{cli-w6c6dj91.js → cli-4dyhzhpx.js} +1 -1
  26. package/dist/{cli-grcc2h2g.js → cli-55fqpd9q.js} +8 -8
  27. package/dist/{cli-p7g7wd9n.js → cli-61fzwtjk.js} +7 -7
  28. package/dist/{cli-zaate0rd.js → cli-61p7ty8d.js} +2 -2
  29. package/dist/{cli-cp0m07wb.js → cli-7fa6yv98.js} +2 -2
  30. package/dist/{cli-5v6b2am8.js → cli-7kv5d674.js} +7 -7
  31. package/dist/{cli-6r1dwegd.js → cli-80d5g0fa.js} +2 -2
  32. package/dist/{cli-0xwb7zpt.js → cli-88np9va3.js} +1 -1
  33. package/dist/{cli-1b5axkt1.js → cli-8m6gqnf1.js} +2 -2
  34. package/dist/{cli-0a336ze7.js → cli-8pnawt98.js} +3 -3
  35. package/dist/{cli-7ewre3dm.js → cli-8sayvj48.js} +2 -2
  36. package/dist/{cli-yeh3g1q6.js → cli-9gmkw6xn.js} +53 -32
  37. package/dist/{cli-h03j6je3.js → cli-a21cwm89.js} +2 -2
  38. package/dist/{cli-s6fhqbz1.js → cli-aytna2fm.js} +1 -1
  39. package/dist/{cli-84xtgbn6.js → cli-b0m3bg0f.js} +100 -2
  40. package/dist/{cli-mwxez0pz.js → cli-b768ek79.js} +1 -1
  41. package/dist/{cli-9xx36trj.js → cli-bh53ppqm.js} +2 -2
  42. package/dist/{cli-1carhg8g.js → cli-czeh7x13.js} +3 -3
  43. package/dist/{cli-cd9acnvd.js → cli-djwt4mtn.js} +71 -5
  44. package/dist/{cli-sfajkbd7.js → cli-dq30fq3q.js} +2 -2
  45. package/dist/{cli-a8ts6x1n.js → cli-dw43pnzp.js} +5 -5
  46. package/dist/{cli-h9bejmkf.js → cli-e4gx499y.js} +52 -29
  47. package/dist/{cli-t90k0phh.js → cli-ea367bdn.js} +32 -23
  48. package/dist/{cli-cmgdptmx.js → cli-ef590376.js} +29 -5
  49. package/dist/{cli-8rbkw18r.js → cli-fbmgpt72.js} +2 -2
  50. package/dist/{cli-tzzas8rb.js → cli-g4dhd3pr.js} +2 -2
  51. package/dist/{cli-snypfjgj.js → cli-gc715jrc.js} +1 -1
  52. package/dist/{cli-c0tyzt73.js → cli-gkjw33x5.js} +1 -1
  53. package/dist/{cli-z6m6xzxt.js → cli-grk77aen.js} +26 -5
  54. package/dist/{cli-hs3mqswp.js → cli-gxqwm3k3.js} +5 -5
  55. package/dist/{cli-4h90xaet.js → cli-h3drhntp.js} +1 -1
  56. package/dist/{cli-qn79645p.js → cli-h9d3sdnc.js} +1 -1
  57. package/dist/{cli-byxsctca.js → cli-hd2a204w.js} +6 -6
  58. package/dist/{cli-1dr5at77.js → cli-hhb8kbwd.js} +12 -12
  59. package/dist/{cli-zvpkrgsc.js → cli-hpxcfvdm.js} +3 -3
  60. package/dist/{cli-cqxwjb93.js → cli-hxj888w3.js} +1 -1
  61. package/dist/{cli-82j36f2m.js → cli-jjzxsk47.js} +9 -3
  62. package/dist/{cli-13t0smbk.js → cli-ka4tqjzd.js} +185 -58
  63. package/dist/{cli-jhtvt7gn.js → cli-kh973792.js} +3 -3
  64. package/dist/{cli-x5yb8zc8.js → cli-kwm1bek7.js} +1 -1
  65. package/dist/{cli-bjmq14k9.js → cli-mgr3gatr.js} +4 -4
  66. package/dist/{cli-c8kqmzzf.js → cli-nbawx3s0.js} +2 -2
  67. package/dist/{cli-04103ryh.js → cli-ppf9ap9n.js} +1 -1
  68. package/dist/{cli-dd57p1gd.js → cli-pzsedyb0.js} +4 -4
  69. package/dist/{cli-32xndx6b.js → cli-r6xnchva.js} +2 -2
  70. package/dist/{cli-4tbvndmm.js → cli-r8ddn0hf.js} +1 -1
  71. package/dist/{cli-y6qqbpwc.js → cli-snwz16eg.js} +1 -1
  72. package/dist/{cli-w24f3j49.js → cli-sy2ge2ye.js} +7 -6
  73. package/dist/{cli-3m8vqehw.js → cli-syqcny89.js} +3 -3
  74. package/dist/{cli-qx1dwrr5.js → cli-tjf1bh1v.js} +2 -2
  75. package/dist/{cli-xhkek467.js → cli-v1v49t36.js} +28 -2
  76. package/dist/{cli-cn6fpa1p.js → cli-v8rpjrnx.js} +1 -1
  77. package/dist/{cli-mmw2sjaf.js → cli-vgh5adn9.js} +5 -5
  78. package/dist/{cli-3zyme1wt.js → cli-w24741sm.js} +3 -3
  79. package/dist/{cli-gq6qhmrr.js → cli-wsnradtk.js} +3 -3
  80. package/dist/{cli-nk8swfpx.js → cli-wtffytm8.js} +3 -3
  81. package/dist/{cli-0m77n7ej.js → cli-xc8m5cjn.js} +54 -12
  82. package/dist/{cli-8cmjkbvj.js → cli-y0q92v4r.js} +2 -2
  83. package/dist/{cli-gedf48yw.js → cli-y754psdt.js} +4 -4
  84. package/dist/cli.js +19 -18
  85. package/dist/{codex-adapter-ysfg6ty3.js → codex-adapter-493vb8cv.js} +5 -5
  86. package/dist/{codex-hook-c0nvm30r.js → codex-hook-ej8hn6z5.js} +9 -2
  87. package/dist/{codex-session-runner-823scr6g.js → codex-session-runner-ps5m4z1g.js} +5 -5
  88. package/dist/{commands-5rbm07fz.js → commands-shktk0b8.js} +3 -3
  89. package/dist/{controllers-connect-34jzhfft.js → controllers-connect-yft057ws.js} +24 -24
  90. package/dist/core-nheayfgm.js +42 -0
  91. package/dist/{cursor-adapter-w1681kp1.js → cursor-adapter-8fpm4dng.js} +1 -1
  92. package/dist/{db-6bkgbfwk.js → db-0ezhdhz5.js} +3 -3
  93. package/dist/{db-hcj16x7z.js → db-84pz2w5c.js} +2 -2
  94. package/dist/{dispatcher-jgjqrfzv.js → dispatcher-h2rz69f6.js} +23 -23
  95. package/dist/{easter-egg-3d-w17nsny6.js → easter-egg-3d-m41ad78v.js} +1 -1
  96. package/dist/{embedding-space-v06fwy7b.js → embedding-space-yam9zwzj.js} +6 -6
  97. package/dist/{embeddings-g50dxea4.js → embeddings-g2be0y8q.js} +1 -1
  98. package/dist/{execute-1n36haw1.js → execute-hhdejgzf.js} +1 -1
  99. package/dist/{external-channel-43tv8pg6.js → external-channel-kjt2yzfj.js} +2 -2
  100. package/dist/fx-adapter-8g7xsp8q.js +20 -0
  101. package/dist/{grok-adapter-my5j8mdf.js → grok-adapter-ztk2zkz1.js} +9 -9
  102. package/dist/handlers-9ywssz71.js +41 -0
  103. package/dist/{heartbeat-sf3nk937.js → heartbeat-2e5jdexj.js} +25 -25
  104. package/dist/{hook-dqph1e05.js → hook-34s8cmgn.js} +9 -6
  105. package/dist/{hook-m1m9dm6w.js → hook-acg9saz7.js} +8 -5
  106. package/dist/{http-w0th1cz9.js → http-ra2zr2f8.js} +304 -111
  107. package/dist/{index-pb03vans.js → index-2z1z7qx6.js} +26 -26
  108. package/dist/{index-p2f5xg64.js → index-3j803vnb.js} +36259 -34299
  109. package/dist/index-6mgbdtv1.js +44 -0
  110. package/dist/{index-e8pz8qdg.js → index-7dgxveck.js} +2 -2
  111. package/dist/{index-gkpfgpg7.js → index-93bw5wds.js} +1 -1
  112. package/dist/{index-c0e8en64.js → index-9q42cr54.js} +1 -1
  113. package/dist/{index-ffba0z8q.js → index-9r4j0a60.js} +28 -18
  114. package/dist/index-hqdsn2t2.js +39 -0
  115. package/dist/{index-k8ajc0g0.js → index-maddg9ys.js} +1 -1
  116. package/dist/{index-y4vd4mhn.js → index-mbpxhc4w.js} +1 -1
  117. package/dist/index-rz8ve510.js +569 -0
  118. package/dist/index-st231bqv.js +40 -0
  119. package/dist/{index-ez823q84.js → index-ym9fgxad.js} +1 -1
  120. package/dist/{keepalive-2v06q2e8.js → keepalive-vjnnqbkm.js} +4 -4
  121. package/dist/lead-mk0xkth2.js +82 -0
  122. package/dist/{maintenance-vx7vjhhy.js → maintenance-px2g599e.js} +1 -1
  123. package/dist/{oauth-refresh-sweep-g06k4bza.js → oauth-refresh-sweep-nkykf09m.js} +3 -3
  124. package/dist/{object-webhooks-3dzdq4fm.js → object-webhooks-gt9xnq21.js} +7 -7
  125. package/dist/{onboard-232pazny.js → onboard-1f134p65.js} +3 -3
  126. package/dist/{opencode-adapter-t0paqbh8.js → opencode-adapter-94976yab.js} +6 -6
  127. package/dist/{otel-impl-kmpkyp4y.js → otel-impl-5d4p2fqs.js} +1 -1
  128. package/dist/{pending-x0z3vx1x.js → pending-vkk0vx6n.js} +24 -24
  129. package/dist/{pi-mono-adapter-7pmypn6d.js → pi-mono-adapter-cyzdv5er.js} +11 -11
  130. package/dist/{pricing-refresh-ytjmtyd7.js → pricing-refresh-jtmjwss9.js} +2 -2
  131. package/dist/{rbac-roles-xyaxekh3.js → rbac-roles-1fvmdyeb.js} +2 -2
  132. package/dist/{rbac-roles-fgm5mxr2.js → rbac-roles-yd1fgpsn.js} +3 -3
  133. package/dist/{render-v2-ws972g4r.js → render-v2-kb5s3vx4.js} +8 -8
  134. package/dist/{resume-m6mjzhkp.js → resume-z1vs44n5.js} +11 -11
  135. package/dist/{runtime-zzpc0c8a.js → runtime-gk6ct7r7.js} +1 -1
  136. package/dist/{session-access-vp35xs91.js → session-access-nz6nre4d.js} +5 -5
  137. package/dist/{session-source-backfill-p73e8zbe.js → session-source-backfill-wb60zjkd.js} +1 -1
  138. package/dist/{setup-r4kd7rxg.js → setup-2x8g8j4s.js} +1 -1
  139. package/dist/thread-buffer-d50rqpev.js +42 -0
  140. package/dist/{tree-visibility-07h2tbs2.js → tree-visibility-ts3z30kw.js} +2 -2
  141. package/dist/{user-merge-jobs-96vg9rpe.js → user-merge-jobs-zetg26e0.js} +3 -3
  142. package/dist/{virtual-modules-vgn3f2x4.js → virtual-modules-674fka8x.js} +3 -3
  143. package/dist/{work-objects-74hbcx3e.js → work-objects-w52yyjxm.js} +26 -26
  144. package/dist/worker-662x1vse.js +82 -0
  145. package/dist/{worker-follow-up-ezavwn5d.js → worker-follow-up-dyfxyjbj.js} +23 -23
  146. package/openapi.json +6 -2
  147. package/package.json +7 -6
  148. package/src/be/migrations/341_user_token_expiry.sql +4 -0
  149. package/src/be/scripts/run-credential.ts +55 -1
  150. package/src/be/scripts/typecheck.ts +4 -4
  151. package/src/be/scripts/user-code-mode.ts +160 -0
  152. package/src/be/users.ts +48 -7
  153. package/src/commands/onboard/agent-fs-version.ts +1 -1
  154. package/src/commands/runner.ts +62 -6
  155. package/src/hooks/codex-hook.ts +15 -4
  156. package/src/hooks/hook.ts +7 -0
  157. package/src/http/script-connection-proxy.ts +18 -6
  158. package/src/http/scripts.ts +2 -11
  159. package/src/http/session-cost-recompute.ts +3 -1
  160. package/src/http/session-data.ts +3 -0
  161. package/src/http/users.ts +1 -0
  162. package/src/integrations/chat-sdk/adapters.ts +29 -0
  163. package/src/integrations/chat-sdk/limits.ts +3 -0
  164. package/src/integrations/chat-sdk/rocketchat/README.md +8 -0
  165. package/src/integrations/chat-sdk/rocketchat/index.ts +790 -0
  166. package/src/integrations/chat-sdk/rocketchat/markdown.ts +210 -0
  167. package/src/integrations/chat-sdk/rocketchat/types.ts +249 -0
  168. package/src/integrations/chat-sdk/runtime.ts +11 -5
  169. package/src/integrations/chat-sdk/schema.ts +37 -3
  170. package/src/integrations/chat-sdk/status.ts +9 -0
  171. package/src/prompts/base-prompt.ts +1 -1
  172. package/src/prompts/session-templates.ts +1 -1
  173. package/src/providers/acp-targets.ts +2 -2
  174. package/src/providers/amp-adapter.ts +1 -1
  175. package/src/providers/claude-adapter.ts +21 -1
  176. package/src/providers/claude-sdk-session.ts +22 -3
  177. package/src/providers/claude-session-events.ts +76 -1
  178. package/src/providers/cursor-adapter.ts +1 -1
  179. package/src/providers/fx-adapter.ts +2 -2
  180. package/src/providers/pricing-sources.md +3 -0
  181. package/src/providers/types.ts +13 -0
  182. package/src/rbac/legacy-policy.ts +1 -0
  183. package/src/rbac/permissions.ts +4 -0
  184. package/src/scripts-runtime/executors/native.ts +225 -67
  185. package/src/scripts-runtime/mcp-client.ts +2 -1
  186. package/src/scripts-runtime/swarm-sdk.ts +2 -1
  187. package/src/scripts-runtime/types/stdlib.d.ts +4 -4
  188. package/src/scripts-runtime/types/swarm-sdk.d.ts +4 -4
  189. package/src/server-user.ts +98 -0
  190. package/src/slack/render-v2.ts +27 -7
  191. package/src/tests/base-prompt.test.ts +6 -2
  192. package/src/tests/chat-sdk-rocketchat-vendored.test.ts +67 -0
  193. package/src/tests/chat-sdk-status-route.test.ts +13 -1
  194. package/src/tests/claude-adapter.test.ts +115 -0
  195. package/src/tests/codex-app-server.test.ts +4 -6
  196. package/src/tests/fixtures/fx/acp-updates-recorded.jsonl +1 -1
  197. package/src/tests/internal-ai/complete-structured.test.ts +105 -0
  198. package/src/tests/internal-ai/credentials.test.ts +149 -0
  199. package/src/tests/internal-ai/task-title.test.ts +78 -0
  200. package/src/tests/mcp-input-caps.test.ts +16 -11
  201. package/src/tests/mcp-user-route.test.ts +10 -1
  202. package/src/tests/runner-slot-reconcile.test.ts +102 -0
  203. package/src/tests/script-connections-mcp.test.ts +14 -10
  204. package/src/tests/script-connections-sql.test.ts +6 -2
  205. package/src/tests/script-connections.test.ts +2 -0
  206. package/src/tests/slack-render-v2.test.ts +85 -0
  207. package/src/tools/script-common.ts +37 -22
  208. package/src/tools/script-query-types.ts +1 -1
  209. package/src/tools/script-run.ts +1 -1
  210. package/src/tools/script-search.ts +12 -10
  211. package/src/tools/utils.ts +7 -1
  212. package/src/types.ts +2 -1
  213. package/src/utils/internal-ai/complete-structured.ts +36 -5
  214. package/src/utils/internal-ai/credentials.ts +78 -2
  215. package/src/utils/internal-ai/models.ts +37 -1
  216. package/src/utils/internal-ai/task-title.ts +31 -1
  217. package/templates/skills/chat-sdk/content.md +2 -2
  218. package/templates/skills/swarm-docs/content.md +10 -0
  219. package/dist/acp-adapter-xtj40wd8.js +0 -17
  220. package/dist/core-kdehq26g.js +0 -42
  221. package/dist/fx-adapter-bvh05t4a.js +0 -20
  222. package/dist/handlers-wyymeeqh.js +0 -41
  223. package/dist/index-22khdtby.js +0 -44
  224. package/dist/index-np0582ac.js +0 -40
  225. package/dist/index-vgkrj1jt.js +0 -39
  226. package/dist/lead-55z813ng.js +0 -79
  227. package/dist/thread-buffer-cm2nzq6t.js +0 -42
  228. package/dist/worker-5pn2vzx6.js +0 -79
  229. /package/dist/{cli-m4ejz4nj.js → cli-cah298e5.js} +0 -0
@@ -64,12 +64,12 @@ import {
64
64
  claimKv2,
65
65
  deleteKv2,
66
66
  init_db4
67
- } from "./cli-h9bejmkf.js";
67
+ } from "./cli-e4gx499y.js";
68
68
  import {
69
69
  getChannelExternality2,
70
70
  getChannelBlockReason2,
71
71
  init_external_channel
72
- } from "./cli-cqxwjb93.js";
72
+ } from "./cli-hxj888w3.js";
73
73
  import {
74
74
  isSlackTaskTreeEnabled2,
75
75
  invalidateSlackTreeOperations2,
@@ -80,7 +80,7 @@ import {
80
80
  assertSlackTreeCurrent2,
81
81
  canPresentSlackTree2,
82
82
  init_tree_visibility
83
- } from "./cli-w6c6dj91.js";
83
+ } from "./cli-4dyhzhpx.js";
84
84
  import {
85
85
  require_dist6,
86
86
  require_is_electron,
@@ -92,7 +92,7 @@ import {
92
92
  cardToBlockKit2,
93
93
  cardToFallbackText2,
94
94
  init_dist6
95
- } from "./cli-4tbvndmm.js";
95
+ } from "./cli-r8ddn0hf.js";
96
96
  import {
97
97
  workflowEventBus2,
98
98
  init_event_bus
@@ -110,7 +110,7 @@ import {
110
110
  import {
111
111
  getSessionRoot,
112
112
  init_session_shares
113
- } from "./cli-w41bvvms.js";
113
+ } from "./cli-1gnf5c7x.js";
114
114
  import {
115
115
  require_p_retry
116
116
  } from "./cli-952zgdwp.js";
@@ -118,7 +118,7 @@ import {
118
118
  findUserById,
119
119
  getUserIdentities,
120
120
  init_users
121
- } from "./cli-z6m6xzxt.js";
121
+ } from "./cli-grk77aen.js";
122
122
  import {
123
123
  getGitHubLinkConfig,
124
124
  init_github_host
@@ -126,7 +126,7 @@ import {
126
126
  import {
127
127
  taskAttachmentDisplayUrl,
128
128
  init_task_attachment_links
129
- } from "./cli-s6fhqbz1.js";
129
+ } from "./cli-aytna2fm.js";
130
130
  import {
131
131
  getSlackConfiguration,
132
132
  init_config4
@@ -12411,7 +12411,7 @@ async function initOtel(serviceRole = process.env.AGENT_ROLE || "api") {
12411
12411
  return;
12412
12412
  initialized = true;
12413
12413
  try {
12414
- const impl = await import("./otel-impl-kmpkyp4y.js");
12414
+ const impl = await import("./otel-impl-5d4p2fqs.js");
12415
12415
  await impl.boot(serviceRole, {
12416
12416
  exportConsoleLogs: serviceRole === "api" && isApiLogExportEnabled()
12417
12417
  });
@@ -16728,9 +16728,18 @@ async function clearAssistantStatus(client, channelId, threadTs, statusBudget) {
16728
16728
  outcomeDelivered: true
16729
16729
  });
16730
16730
  }
16731
+ function positiveEnvNumber(raw, fallback) {
16732
+ const value = Number(raw);
16733
+ return Number.isFinite(value) && value > 0 ? value : fallback;
16734
+ }
16731
16735
  function slackTreeStallMinutes() {
16732
- const minutes = Number(process.env.SLACK_TREE_STALL_MIN);
16733
- return Number.isFinite(minutes) && minutes > 0 ? minutes : 15;
16736
+ return positiveEnvNumber(process.env.SLACK_TREE_STALL_MIN, 15);
16737
+ }
16738
+ function slackConclusionSettleSeconds() {
16739
+ return positiveEnvNumber(process.env.SLACK_CONCLUSION_SETTLE_SEC, 10);
16740
+ }
16741
+ function slackConclusionTimeoutMinutes() {
16742
+ return positiveEnvNumber(process.env.SLACK_CONCLUSION_TIMEOUT_MIN, 240);
16734
16743
  }
16735
16744
  function isStalledMember(task, now) {
16736
16745
  if (task.status !== "in_progress")
@@ -16862,8 +16871,8 @@ function normalizeV2Text(value) {
16862
16871
  `);
16863
16872
  }
16864
16873
  function threadHeaderText(tasks, now, duration) {
16865
- const settleSec = Number(process.env.SLACK_CONCLUSION_SETTLE_SEC) || 10;
16866
- const timeoutMin = Number(process.env.SLACK_CONCLUSION_TIMEOUT_MIN) || 240;
16874
+ const settleSec = slackConclusionSettleSeconds();
16875
+ const timeoutMin = slackConclusionTimeoutMinutes();
16867
16876
  const asks = tasks.filter((task) => task.source === "slack");
16868
16877
  const timedOut = asks.some((ask) => closureState(ask, buildAskClosure(ask, tasks), now, settleSec, timeoutMin) === "timedOut");
16869
16878
  if (timedOut)
@@ -17764,7 +17773,7 @@ async function refreshResolvedDeferralCards() {
17764
17773
  }
17765
17774
  }
17766
17775
  function slackOutcomeWindow(delegationEnabled, now = Date.now()) {
17767
- const timeoutMs = (Number(process.env.SLACK_CONCLUSION_TIMEOUT_MIN) || 240) * 60000;
17776
+ const timeoutMs = slackConclusionTimeoutMinutes() * 60000;
17768
17777
  const windowMs = Math.max(timeoutMs, 60 * 60000);
17769
17778
  return {
17770
17779
  finishedAfter: new Date(now - windowMs).toISOString(),
@@ -17796,8 +17805,8 @@ async function processSlackThread(thread, {
17796
17805
  if (!existingTree && !tasks.some((task) => task.source === "slack" && task.createdAt >= activatedAt && !["backlog", "unassigned", "superseded"].includes(task.status))) {
17797
17806
  return "closed";
17798
17807
  }
17799
- const settleSec = Number(process.env.SLACK_CONCLUSION_SETTLE_SEC) || 10;
17800
- const timeoutMin = Number(process.env.SLACK_CONCLUSION_TIMEOUT_MIN) || 240;
17808
+ const settleSec = slackConclusionSettleSeconds();
17809
+ const timeoutMin = slackConclusionTimeoutMinutes();
17801
17810
  const closuresByAskId = new Map;
17802
17811
  const ownerAskId = new Map;
17803
17812
  if (delegationEnabled) {
@@ -19102,17 +19111,17 @@ async function initSlackApp2() {
19102
19111
  created.use(slackInboundOutcomeMiddleware(config.mode === "http" ? "http" : "socket"));
19103
19112
  if (config.mode === "http")
19104
19113
  created.use(ignoreSelfAsIgnored);
19105
- const { registerMessageHandler } = await import("./handlers-wyymeeqh.js");
19106
- const { registerCommandHandler } = await import("./commands-5rbm07fz.js");
19107
- const { registerActionHandlers } = await import("./actions-hq6wp9xv.js");
19108
- const { registerWorkObjectHandlers } = await import("./work-objects-74hbcx3e.js");
19114
+ const { registerMessageHandler } = await import("./handlers-9ywssz71.js");
19115
+ const { registerCommandHandler } = await import("./commands-shktk0b8.js");
19116
+ const { registerActionHandlers } = await import("./actions-pg5fxjer.js");
19117
+ const { registerWorkObjectHandlers } = await import("./work-objects-w52yyjxm.js");
19109
19118
  registerMessageHandler(created);
19110
19119
  registerCommandHandler(created);
19111
19120
  registerActionHandlers(created);
19112
19121
  registerWorkObjectHandlers(created);
19113
- const { createAssistant } = await import("./assistant-hkczwfv6.js");
19122
+ const { createAssistant } = await import("./assistant-wgz2ab84.js");
19114
19123
  created.assistant(createAssistant());
19115
- const { isBlockExternalEnabled, scanExternalChannelsOnBoot } = await import("./external-channel-43tv8pg6.js");
19124
+ const { isBlockExternalEnabled, scanExternalChannelsOnBoot } = await import("./external-channel-kjt2yzfj.js");
19116
19125
  if (isBlockExternalEnabled()) {
19117
19126
  scanExternalChannelsOnBoot(created.client).catch((error) => {
19118
19127
  console.error("[Slack] External channel boot scan failed:", error);
@@ -19140,7 +19149,7 @@ async function startSlackApp2() {
19140
19149
  startRetryAttempt = 0;
19141
19150
  if (!httpReceiver)
19142
19151
  startSocketWatchdog();
19143
- const { isSlackRenderV2Enabled } = await import("./render-v2-ws972g4r.js");
19152
+ const { isSlackRenderV2Enabled } = await import("./render-v2-kb5s3vx4.js");
19144
19153
  if (isSlackRenderV2Enabled())
19145
19154
  await ensureSlackRenderV2Activation2();
19146
19155
  await recoverSlackInboundAfterRestart();
@@ -19156,7 +19165,7 @@ async function startSlackApp2() {
19156
19165
  } else {
19157
19166
  console.log("[Slack] Bot connected via Socket Mode");
19158
19167
  }
19159
- const { restoreBufferedSlackMessages } = await import("./thread-buffer-cm2nzq6t.js");
19168
+ const { restoreBufferedSlackMessages } = await import("./thread-buffer-d50rqpev.js");
19160
19169
  await restoreBufferedSlackMessages().catch((error) => {
19161
19170
  console.error("[Slack] Failed to restore buffered thread messages:", error);
19162
19171
  });
@@ -6,12 +6,12 @@ import {
6
6
  resolveCredential,
7
7
  resolveCredentials,
8
8
  init_credentials
9
- } from "./cli-xhkek467.js";
9
+ } from "./cli-v1v49t36.js";
10
10
  import {
11
11
  kindForModelString,
12
12
  parseModelStr,
13
13
  init_models2
14
- } from "./cli-82j36f2m.js";
14
+ } from "./cli-jjzxsk47.js";
15
15
  import {
16
16
  selectCredential,
17
17
  init_credentials2
@@ -4967,6 +4967,9 @@ async function defaultSpawnClaudeCli(prompt, model, signal, jsonSchema) {
4967
4967
  signal?.removeEventListener("abort", abortHandler);
4968
4968
  }
4969
4969
  }
4970
+ function providerRequestOptions(cred) {
4971
+ return cred.kind === "amazon-bedrock" ? { region: cred.region } : undefined;
4972
+ }
4970
4973
  async function completeStructuredWithModel(opts) {
4971
4974
  const retries = opts.retries ?? 3;
4972
4975
  const callerTag = opts.callerTag ?? "<unset>";
@@ -5038,7 +5041,8 @@ ${claudeUserPrompt}`, cred.modelDefault, opts.signal, jsonSchema);
5038
5041
  }
5039
5042
  const headers = provider === "openrouter" ? getOpenRouterAttributionHeaders(model.baseUrl, env) : {};
5040
5043
  const completeFn = opts._complete ?? complete;
5041
- const toolChoice = model.api === "anthropic-messages" ? { type: "tool", name: opts.toolName } : "required";
5044
+ const toolChoice = model.api === "anthropic-messages" || model.api === "bedrock-converse-stream" ? { type: "tool", name: opts.toolName } : "required";
5045
+ const providerOptions = providerRequestOptions(cred);
5042
5046
  let userPrompt = opts.userPrompt;
5043
5047
  let lastErr = null;
5044
5048
  for (let attempt = 0;attempt < retries; attempt++) {
@@ -5053,7 +5057,13 @@ ${claudeUserPrompt}`, cred.modelDefault, opts.signal, jsonSchema);
5053
5057
  parameters: opts.toolSchema
5054
5058
  }
5055
5059
  ]
5056
- }, { apiKey: cred.apiKey, signal: opts.signal, toolChoice, headers });
5060
+ }, {
5061
+ apiKey: "apiKey" in cred ? cred.apiKey : undefined,
5062
+ signal: opts.signal,
5063
+ toolChoice,
5064
+ headers,
5065
+ ...providerOptions ?? {}
5066
+ });
5057
5067
  const toolCall = msg.content.find((c) => c.type === "toolCall" && c.name === opts.toolName);
5058
5068
  if (!toolCall) {
5059
5069
  const assistantText = msg.content.filter((content) => content.type === "text").map((content) => content.text).join(`
@@ -5109,7 +5119,21 @@ var TASK_TITLE_MODEL_CANDIDATES = [
5109
5119
  { kind: "anthropic", models: ["anthropic/claude-haiku-5-5"] },
5110
5120
  { kind: "openai", models: ["openai/gpt-6-luna", "openai/gpt-5-nano"] },
5111
5121
  { kind: "openai-codex", models: ["openai-codex/gpt-6-luna"] },
5112
- { kind: "claude-cli", models: ["haiku"] }
5122
+ { kind: "claude-cli", models: ["haiku"] },
5123
+ {
5124
+ kind: "fireworks",
5125
+ models: [
5126
+ "fireworks/accounts/fireworks/models/deepseek-v4p1-flash",
5127
+ "fireworks/accounts/fireworks/models/glm-5p3-flash"
5128
+ ]
5129
+ },
5130
+ {
5131
+ kind: "amazon-bedrock",
5132
+ models: [
5133
+ "amazon-bedrock/global.anthropic.claude-haiku-5-5",
5134
+ "amazon-bedrock/amazon.nova-micro-v1:0"
5135
+ ]
5136
+ }
5113
5137
  ];
5114
5138
  function buildTaskTitlePlan(env = process.env) {
5115
5139
  const pinned = env[TASK_TITLE_MODEL_ENV]?.trim();
@@ -12,11 +12,11 @@ import {
12
12
  isModelNameTakenError,
13
13
  init_model_profiles,
14
14
  init_db4
15
- } from "./cli-h9bejmkf.js";
15
+ } from "./cli-e4gx499y.js";
16
16
  import {
17
17
  ensureRbacSeedsSynced2,
18
18
  init_rbac_roles
19
- } from "./cli-qx1dwrr5.js";
19
+ } from "./cli-tjf1bh1v.js";
20
20
  import {
21
21
  MODEL_TIERS,
22
22
  DEFAULT_MODEL_TIER_MAP,
@@ -5,12 +5,12 @@ import {
5
5
  import {
6
6
  publicEndpointSsrfOptions,
7
7
  init_mcp_wrapper
8
- } from "./cli-c0tyzt73.js";
8
+ } from "./cli-gkjw33x5.js";
9
9
  import {
10
10
  assertUrlSafe,
11
11
  normalizeOrgWebsite,
12
12
  init_org_website
13
- } from "./cli-h9bejmkf.js";
13
+ } from "./cli-e4gx499y.js";
14
14
  import {
15
15
  getRouteProvider,
16
16
  createScopedFetch,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_package,
3
3
  package_default
4
- } from "./cli-w24f3j49.js";
4
+ } from "./cli-sy2ge2ye.js";
5
5
 
6
6
  // src/commands/shared/client-config.ts
7
7
  init_package();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  createSsrfGuardedFetch,
3
3
  init_egress_guard
4
- } from "./cli-h9bejmkf.js";
4
+ } from "./cli-e4gx499y.js";
5
5
  import {
6
6
  isEnvFlagEnabled,
7
7
  init_env_flag
@@ -7,7 +7,7 @@ import {
7
7
  scheduleOrgDomainRecompute,
8
8
  init_telemetry_identity,
9
9
  init_db4
10
- } from "./cli-h9bejmkf.js";
10
+ } from "./cli-e4gx499y.js";
11
11
  import {
12
12
  registerVolatileSecret,
13
13
  unregisterVolatileSecret,
@@ -149,7 +149,7 @@ async function listUserEvents(userId, opts = {}) {
149
149
  async function listUserTokens(userId) {
150
150
  return getDbClient2().query(`SELECT id, userId, label, tokenPreview, createdAt, lastUsedAt, revokedAt
151
151
  FROM user_tokens
152
- WHERE userId = ?
152
+ WHERE userId = ? AND expiresAt IS NULL
153
153
  ORDER BY createdAt DESC`, [userId]);
154
154
  }
155
155
  async function recordIdentityEvent(userId, eventType, actor, before, after) {
@@ -237,6 +237,24 @@ async function mintToken(userId, label, actor, options = {}) {
237
237
  });
238
238
  return { tokenId, plaintext };
239
239
  }
240
+ async function mintUserScriptRunToken(userId, ttlMs) {
241
+ const plaintext = `${TOKEN_PREFIX}${randomChars(TOKEN_ALPHABET, 24)}`;
242
+ const tokenId = randomUUID().replace(/-/g, "");
243
+ const now = new Date;
244
+ await getDbClient2().run(`INSERT INTO user_tokens (id, userId, label, tokenHash, tokenPreview, createdAt, expiresAt)
245
+ VALUES (?, ?, 'script-run', ?, ?, ?, ?)`, [
246
+ tokenId,
247
+ userId,
248
+ sha256Hex(plaintext),
249
+ plaintext.slice(-4),
250
+ now.toISOString(),
251
+ new Date(now.getTime() + ttlMs).toISOString()
252
+ ]);
253
+ return { tokenId, plaintext };
254
+ }
255
+ async function revokeUserScriptRunToken(tokenId) {
256
+ await getDbClient2().run("UPDATE user_tokens SET revokedAt = ? WHERE id = ? AND expiresAt IS NOT NULL AND revokedAt IS NULL", [new Date().toISOString(), tokenId]);
257
+ }
240
258
  async function revokeToken(tokenId, actor) {
241
259
  await getDbClient2().transaction(async (tx) => {
242
260
  const row = await tx.get("SELECT userId, label, tokenPreview FROM user_tokens WHERE id = ?", [tokenId]);
@@ -267,9 +285,11 @@ async function revokeAllUserCredentials(userId, actor) {
267
285
  async function resolveUserToken(plaintext) {
268
286
  const hash = sha256Hex(plaintext);
269
287
  const client = getDbClient2();
270
- const row = await client.get("SELECT id, userId, revokedAt FROM user_tokens WHERE tokenHash = ?", [hash]);
288
+ const row = await client.get("SELECT id, userId, revokedAt, expiresAt FROM user_tokens WHERE tokenHash = ?", [hash]);
271
289
  if (!row || row.revokedAt !== null)
272
290
  return null;
291
+ if (row.expiresAt !== null && Date.parse(row.expiresAt) <= Date.now())
292
+ return null;
273
293
  try {
274
294
  await client.run("UPDATE user_tokens SET lastUsedAt = ? WHERE id = ?", [
275
295
  new Date().toISOString(),
@@ -279,7 +299,8 @@ async function resolveUserToken(plaintext) {
279
299
  return { user: await findUserById(row.userId), tokenId: row.id };
280
300
  }
281
301
  async function isLiveUserToken(tokenId, userId) {
282
- const row = await getDbClient2().get("SELECT 1 AS found FROM user_tokens WHERE id = ? AND userId = ? AND revokedAt IS NULL", [tokenId, userId]);
302
+ const row = await getDbClient2().get(`SELECT 1 AS found FROM user_tokens
303
+ WHERE id = ? AND userId = ? AND revokedAt IS NULL AND (expiresAt IS NULL OR expiresAt > ?)`, [tokenId, userId, new Date().toISOString()]);
283
304
  return row != null;
284
305
  }
285
306
  async function mintSessionToken(agentId, taskId, ttlMs, parent) {
@@ -486,4 +507,4 @@ var init_users = __esm(() => {
486
507
  };
487
508
  });
488
509
 
489
- export { registerSessionTokenConnection, closeSessionTokenConnections, init_session_token_connections, findUserById, findUserByExternalId, findUserByEmail, findUsersByName, getUserIdentities, listUserEvents, listUserTokens, recordIdentityEvent, findOrCreateUserByEmail, linkIdentity, unlinkIdentity, mintToken, revokeToken, revokeAllUserCredentials, resolveUserToken, isLiveUserToken, InvalidRuntimeTokenError, mintSessionToken, mintRuntimeToken, mintScriptRunToken, isScriptRunToken, insertSessionToken, revokeSessionToken, revokeRuntimeTokensForRuntime, AgentTokenExistsError, mintAgentToken, rotateAgentToken, revokeAgentTokens, revokeAllAgentSessionTokens, resolveSessionToken, fingerprintApiKey, init_users };
510
+ export { registerSessionTokenConnection, closeSessionTokenConnections, init_session_token_connections, findUserById, findUserByExternalId, findUserByEmail, findUsersByName, getUserIdentities, listUserEvents, listUserTokens, recordIdentityEvent, findOrCreateUserByEmail, linkIdentity, unlinkIdentity, mintToken, mintUserScriptRunToken, revokeUserScriptRunToken, revokeToken, revokeAllUserCredentials, resolveUserToken, isLiveUserToken, InvalidRuntimeTokenError, mintSessionToken, mintRuntimeToken, mintScriptRunToken, isScriptRunToken, insertSessionToken, revokeSessionToken, revokeRuntimeTokensForRuntime, AgentTokenExistsError, mintAgentToken, rotateAgentToken, revokeAgentTokens, revokeAllAgentSessionTokens, resolveSessionToken, fingerprintApiKey, init_users };
@@ -25,17 +25,17 @@ import {
25
25
  getUserById2,
26
26
  getAllUsers2,
27
27
  init_db4
28
- } from "./cli-h9bejmkf.js";
28
+ } from "./cli-e4gx499y.js";
29
29
  import {
30
30
  externalChannelToolError2,
31
31
  isBlockExternalEnabled2,
32
32
  getChannelBlockReason2,
33
33
  init_external_channel
34
- } from "./cli-cqxwjb93.js";
34
+ } from "./cli-hxj888w3.js";
35
35
  import {
36
36
  getSlackApp2,
37
37
  init_app4
38
- } from "./cli-t90k0phh.js";
38
+ } from "./cli-ea367bdn.js";
39
39
  import {
40
40
  isMultiRuntimeEnabled,
41
41
  init_multi_runtime2
@@ -43,11 +43,11 @@ import {
43
43
  import {
44
44
  revokeRuntimeTokensForRuntime,
45
45
  init_users
46
- } from "./cli-z6m6xzxt.js";
46
+ } from "./cli-grk77aen.js";
47
47
  import {
48
48
  resolveTemplate,
49
49
  init_resolver
50
- } from "./cli-mwxez0pz.js";
50
+ } from "./cli-b768ek79.js";
51
51
  import {
52
52
  TERMINAL_TASK_STATUSES,
53
53
  init_types5
@@ -16,7 +16,7 @@ import {
16
16
  getActivePricingRow2,
17
17
  insertPricingRow2,
18
18
  init_db4
19
- } from "./cli-h9bejmkf.js";
19
+ } from "./cli-e4gx499y.js";
20
20
  import {
21
21
  scrubSecrets,
22
22
  init_secret_scrubber
@@ -2,7 +2,7 @@ import {
2
2
  resolveTemplateAsync,
3
3
  init_resolver,
4
4
  init_session_templates
5
- } from "./cli-mwxez0pz.js";
5
+ } from "./cli-b768ek79.js";
6
6
 
7
7
  // src/prompts/steering-delivery.ts
8
8
  init_session_templates();
@@ -19,7 +19,7 @@ import {
19
19
  upsertSwarmConfig2,
20
20
  getResolvedConfig2,
21
21
  init_db4
22
- } from "./cli-h9bejmkf.js";
22
+ } from "./cli-e4gx499y.js";
23
23
  import {
24
24
  getPoolCache,
25
25
  reconcileCacheReleases,
@@ -33,7 +33,7 @@ import {
33
33
  getPoolForAgent2,
34
34
  resolvePoolDelivery2,
35
35
  init_db2
36
- } from "./cli-0fx95c06.js";
36
+ } from "./cli-268b3dgn.js";
37
37
  import {
38
38
  workflowEventBus2,
39
39
  init_event_bus
@@ -47,7 +47,7 @@ import {
47
47
  listRuntimeInstancesForAgent,
48
48
  listRuntimeInstancesForPool,
49
49
  init_multi_runtime
50
- } from "./cli-hs3mqswp.js";
50
+ } from "./cli-gxqwm3k3.js";
51
51
  import {
52
52
  pendingWorkForAgent,
53
53
  countPoolRuntimes,
@@ -57,7 +57,7 @@ import {
57
57
  init_worker_follow_up,
58
58
  canClaim,
59
59
  init_budget_admission
60
- } from "./cli-fn8aj7gb.js";
60
+ } from "./cli-1606qw3n.js";
61
61
  import {
62
62
  isMultiRuntimeEnabled,
63
63
  init_multi_runtime2
@@ -87,7 +87,7 @@ import {
87
87
  import {
88
88
  mintRuntimeToken,
89
89
  init_users
90
- } from "./cli-z6m6xzxt.js";
90
+ } from "./cli-grk77aen.js";
91
91
  import {
92
92
  TERMINAL_TASK_STATUSES,
93
93
  isTerminalTaskStatus,
@@ -524,7 +524,7 @@ async function recoverSessions(runtimeId, reason) {
524
524
  }
525
525
  if (!sessions.length)
526
526
  return;
527
- const { remediateTaskForDeadRuntime } = await import("./heartbeat-sf3nk937.js");
527
+ const { remediateTaskForDeadRuntime } = await import("./heartbeat-2e5jdexj.js");
528
528
  for (const session of sessions) {
529
529
  try {
530
530
  const task = await getTaskById2(session.taskId);
@@ -39,39 +39,39 @@ import {
39
39
  getLatestStepForNode2,
40
40
  getCurrentStepForNode2,
41
41
  init_db4
42
- } from "./cli-h9bejmkf.js";
42
+ } from "./cli-e4gx499y.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-hs3mqswp.js";
49
+ } from "./cli-gxqwm3k3.js";
50
50
  import {
51
51
  resolveCredential,
52
52
  init_credentials
53
- } from "./cli-xhkek467.js";
53
+ } from "./cli-v1v49t36.js";
54
54
  import {
55
55
  isSlackConfigured,
56
56
  init_config4
57
57
  } from "./cli-eetzmsy5.js";
58
58
  import {
59
59
  DEFAULT_MODEL
60
- } from "./cli-82j36f2m.js";
60
+ } from "./cli-jjzxsk47.js";
61
61
  import {
62
62
  selectCredential,
63
63
  init_credentials2
64
64
  } from "./cli-5basv0e7.js";
65
+ import {
66
+ deepInterpolate,
67
+ init_template2
68
+ } from "./cli-b768ek79.js";
65
69
  import {
66
70
  DEFAULT_OPENROUTER_BASE_URL,
67
71
  getOpenRouterBaseUrl,
68
72
  getOpenRouterAttributionHeaders,
69
73
  init_openrouter_base_url
70
74
  } from "./cli-dfyv0jdy.js";
71
- import {
72
- deepInterpolate,
73
- init_template2
74
- } from "./cli-mwxez0pz.js";
75
75
  import {
76
76
  init_zod
77
77
  } from "./cli-96234j5w.js";
@@ -120,7 +120,7 @@ async function notifyAutomationPreflightFailure(preflight) {
120
120
  return;
121
121
  }
122
122
  try {
123
- const { getSlackApp } = await import("./app-7m4z44rv.js");
123
+ const { getSlackApp } = await import("./app-b267ggx1.js");
124
124
  const app = getSlackApp();
125
125
  if (!app) {
126
126
  console.warn("[Automation Preflight] Slack not available, cannot send notification");
@@ -3939,7 +3939,7 @@ async function runClaimedStep(def, runId, ctx, node, registry, existingStep, ste
3939
3939
  }
3940
3940
  const waiting = await checkpointStepWaiting(runId, stepId, ctx);
3941
3941
  if (waiting && result.waitFor === "workflow.child.finished") {
3942
- const { resumeFromChildRun } = await import("./resume-m6mjzhkp.js");
3942
+ const { resumeFromChildRun } = await import("./resume-z1vs44n5.js");
3943
3943
  await resumeFromChildRun(stepId, registry);
3944
3944
  }
3945
3945
  return { outcome: waiting ? "waiting" : "completed", successors: [] };
@@ -4460,7 +4460,7 @@ async function runForeachDrive(runId, parentNodeId, registry) {
4460
4460
  if (drive.successors.length > 0) {
4461
4461
  await walkGraph(workflow.definition, runId, ctx, drive.successors, registry, workflow.id, getSecretInputKeys(workflow.input), { successorDebt: debt });
4462
4462
  } else {
4463
- const { finalizeOrWait } = await import("./resume-m6mjzhkp.js");
4463
+ const { finalizeOrWait } = await import("./resume-z1vs44n5.js");
4464
4464
  await finalizeOrWait(runId);
4465
4465
  }
4466
4466
  return drive;
@@ -4604,7 +4604,7 @@ async function startChild(input) {
4604
4604
  const parked = await getDbClient2().get("UPDATE workflow_run_steps SET status = 'waiting' WHERE id = ? AND status = 'running' RETURNING id", [child.id]);
4605
4605
  if (parked && result.waitFor === "workflow.child.finished") {
4606
4606
  ownedChildren.delete(child.id);
4607
- const { resumeFromChildRun } = await import("./resume-m6mjzhkp.js");
4607
+ const { resumeFromChildRun } = await import("./resume-z1vs44n5.js");
4608
4608
  await resumeFromChildRun(child.id, registry);
4609
4609
  }
4610
4610
  return null;
@@ -35,7 +35,7 @@ import {
35
35
  getPendingWaitsByEvent2,
36
36
  resolveWaitState2,
37
37
  init_db4
38
- } from "./cli-h9bejmkf.js";
38
+ } from "./cli-e4gx499y.js";
39
39
  import {
40
40
  workflowEventBus2,
41
41
  init_event_bus
@@ -43,7 +43,7 @@ import {
43
43
  import {
44
44
  postApprovalCancellationUpdates2,
45
45
  init_approval_notifications
46
- } from "./cli-hs3mqswp.js";
46
+ } from "./cli-gxqwm3k3.js";
47
47
  import {
48
48
  BaseExecutor,
49
49
  init_base,
@@ -85,7 +85,7 @@ import {
85
85
  getNextTargets,
86
86
  getSuccessors,
87
87
  init_definition2
88
- } from "./cli-1dr5at77.js";
88
+ } from "./cli-hhb8kbwd.js";
89
89
  import {
90
90
  RetryPolicySchema,
91
91
  SUPERSEDED_WORKFLOW_TASK_REASON,
@@ -4,7 +4,7 @@ import {
4
4
  claimKv2,
5
5
  deleteKv2,
6
6
  init_db4
7
- } from "./cli-h9bejmkf.js";
7
+ } from "./cli-e4gx499y.js";
8
8
  import {
9
9
  isEnvFlagEnabled,
10
10
  init_env_flag
@@ -25,20 +25,26 @@ var init_models2 = __esm(() => {
25
25
  anthropic: "anthropic/claude-haiku-4-5",
26
26
  openai: "openai/gpt-6-luna",
27
27
  "openai-codex": "openai-codex/gpt-6-luna",
28
- "claude-cli": "haiku"
28
+ "claude-cli": "haiku",
29
+ fireworks: "fireworks/accounts/fireworks/models/deepseek-v4p1-flash",
30
+ "amazon-bedrock": "amazon-bedrock/global.anthropic.claude-haiku-5-5"
29
31
  };
30
32
  MEMORY_RATER_DEFAULT_MODEL = {
31
33
  openrouter: "openrouter/deepseek/deepseek-v4.1-flash",
32
34
  anthropic: "anthropic/claude-haiku-4-5",
33
35
  openai: "openai/gpt-6-luna",
34
36
  "openai-codex": "openai-codex/gpt-6-luna",
35
- "claude-cli": "haiku"
37
+ "claude-cli": "haiku",
38
+ fireworks: "fireworks/accounts/fireworks/models/deepseek-v4p1-flash",
39
+ "amazon-bedrock": "amazon-bedrock/global.anthropic.claude-haiku-5-5"
36
40
  };
37
41
  PROVIDER_TO_KIND = {
38
42
  openrouter: "openrouter",
39
43
  anthropic: "anthropic",
40
44
  openai: "openai",
41
- "openai-codex": "openai-codex"
45
+ "openai-codex": "openai-codex",
46
+ fireworks: "fireworks",
47
+ "amazon-bedrock": "amazon-bedrock"
42
48
  };
43
49
  });
44
50