@desplega.ai/agent-swarm 2.7.4 → 2.7.5

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 (253) hide show
  1. package/README.md +1 -1
  2. package/dist/acp-adapter-g3ads55s.js +15 -0
  3. package/dist/{actions-gfrr9vb7.js → actions-zwfykqqk.js} +18 -18
  4. package/dist/{amp-adapter-0s58gm46.js → amp-adapter-z3s0ssdt.js} +3 -3
  5. package/dist/{app-stvq692g.js → app-vmp4fgep.js} +3 -3
  6. package/dist/{assistant-5s37fr9n.js → assistant-vwde653f.js} +28 -21
  7. package/dist/{boot-reembed-yzy1841n.js → boot-reembed-375t7tbk.js} +1 -1
  8. package/dist/{boot-reembed-cv82gz7y.js → boot-reembed-gq9rcpnj.js} +1 -1
  9. package/dist/{boot-scrub-sweep-8k4q95ap.js → boot-scrub-sweep-nd938kyf.js} +4 -4
  10. package/dist/{boot-seeds-ftt9htah.js → boot-seeds-aykx51v3.js} +4 -4
  11. package/dist/{boxd-515v1t8z.js → boxd-k1j26g3h.js} +1 -1
  12. package/dist/{claude-adapter-t00wrzeh.js → claude-adapter-8j4hm099.js} +7 -7
  13. package/dist/{claude-managed-adapter-g6vmjccb.js → claude-managed-adapter-dvs2xw5n.js} +2 -2
  14. package/dist/{claude-managed-setup-afpa82f7.js → claude-managed-setup-0wyynpn1.js} +3 -3
  15. package/dist/{claude-sdk-session-vj0c2azx.js → claude-sdk-session-q6wj5hmy.js} +9 -9
  16. package/dist/{cli-wndv9p7g.js → cli-0731hvbw.js} +6 -6
  17. package/dist/{cli-d2pzqej1.js → cli-0bxqnvq9.js} +719 -7
  18. package/dist/{cli-jkt52mgt.js → cli-0gey5fzy.js} +2 -2
  19. package/dist/{cli-1yekbyqm.js → cli-1338796d.js} +205 -48
  20. package/dist/{cli-1s1dqn1j.js → cli-1ayk1eas.js} +171 -123
  21. package/dist/{cli-a4btqqft.js → cli-1b7btd38.js} +1 -1
  22. package/dist/{cli-a2jw6ee5.js → cli-1p89xny0.js} +1 -1
  23. package/dist/{cli-v726afdm.js → cli-2pnswgh8.js} +1 -1
  24. package/dist/{cli-kvtc7aez.js → cli-3h4nhjn8.js} +42 -14
  25. package/dist/{cli-655xm9ms.js → cli-583frbyr.js} +1 -1
  26. package/dist/{cli-4r12t6w6.js → cli-5c4hjzne.js} +101 -4
  27. package/dist/{cli-az0bpf8p.js → cli-5pag6rmn.js} +3 -3
  28. package/dist/{cli-36g23z21.js → cli-6s7vdcta.js} +4 -4
  29. package/dist/{cli-rtk9g7av.js → cli-73jzwksr.js} +6 -2
  30. package/dist/{cli-jg0nfda6.js → cli-75gkpjvw.js} +52 -21
  31. package/dist/{cli-a81qevyg.js → cli-7a42nfy0.js} +20 -36
  32. package/dist/{cli-0sbkss7h.js → cli-7wcyk2s5.js} +2 -2
  33. package/dist/{cli-41z8xwj0.js → cli-7wspm5gm.js} +14 -4
  34. package/dist/{cli-byqfbnjw.js → cli-82ae98pz.js} +9 -9
  35. package/dist/{cli-bq2pcphn.js → cli-8hs41zy2.js} +1 -1
  36. package/dist/{cli-vqgnyh76.js → cli-98rw5dt5.js} +15 -3
  37. package/dist/{cli-9cctx1tn.js → cli-a22h291q.js} +1 -1
  38. package/dist/{cli-j4kt1mpb.js → cli-a47xy8eq.js} +3 -3
  39. package/dist/{cli-ycm6180s.js → cli-a7v854rf.js} +5 -3
  40. package/dist/{cli-98pke4vk.js → cli-ae7mrdf9.js} +2 -2
  41. package/dist/{cli-ahd90bwt.js → cli-afrrppsw.js} +6 -6
  42. package/dist/{cli-8yy525ad.js → cli-bhjt02p8.js} +2 -2
  43. package/dist/{cli-v1yw3wha.js → cli-bnz7a7qf.js} +4 -4
  44. package/dist/{cli-j4kw3rsx.js → cli-cm5yqn35.js} +18 -0
  45. package/dist/{cli-h55y2bjc.js → cli-dhar9qay.js} +2 -2
  46. package/dist/{cli-5gr1g711.js → cli-fqzx7gwa.js} +2 -2
  47. package/dist/{cli-tzrpv5sc.js → cli-ftyxyspd.js} +1 -1
  48. package/dist/cli-fw2w0kva.js +47 -0
  49. package/dist/{cli-2dfbv8qr.js → cli-fy6x31ps.js} +1 -0
  50. package/dist/{cli-mvckssyq.js → cli-g61qxmge.js} +5 -5
  51. package/dist/{cli-aq58fk5m.js → cli-g83s9ewh.js} +7 -1
  52. package/dist/{cli-224epwwf.js → cli-hn9hxmz9.js} +3 -3
  53. package/dist/{cli-5hjced2v.js → cli-j3jvnpe8.js} +6 -6
  54. package/dist/{cli-dae4sbgy.js → cli-jm2vfpfd.js} +2 -2
  55. package/dist/{cli-zn15c46z.js → cli-mjzynrse.js} +1 -1
  56. package/dist/{cli-a1fhj4n9.js → cli-mmwm7zbf.js} +2 -2
  57. package/dist/{cli-cq1pf336.js → cli-mry0qzym.js} +5 -5
  58. package/dist/{cli-bwty35gx.js → cli-mthwvjre.js} +1 -1
  59. package/dist/{cli-s0exq74r.js → cli-nmbmy64z.js} +3 -3
  60. package/dist/{cli-wcmnan2g.js → cli-nn4d8dne.js} +5 -5
  61. package/dist/{cli-jg4p5t36.js → cli-nzxr556s.js} +121 -51
  62. package/dist/{cli-bcz074zx.js → cli-p599f1qm.js} +1 -1
  63. package/dist/{cli-k76tgq03.js → cli-pywf3eh5.js} +2 -2
  64. package/dist/{cli-wk9md5px.js → cli-qxnf8z2z.js} +2 -2
  65. package/dist/{cli-je8yeyc5.js → cli-rhw40jgb.js} +5 -5
  66. package/dist/{cli-avgcz4ra.js → cli-rm6hqj3z.js} +406 -35
  67. package/dist/{cli-0fgr1w9b.js → cli-rpm2sgv0.js} +2 -2
  68. package/dist/{cli-t282jgab.js → cli-rqkxrmgw.js} +12 -12
  69. package/dist/{cli-2qpvmmkw.js → cli-s0qnd4wv.js} +1 -1
  70. package/dist/{cli-pwyevs29.js → cli-spknvxbq.js} +22 -21
  71. package/dist/{cli-9y354g3j.js → cli-srye3vdt.js} +1 -1
  72. package/dist/{cli-pe09p6dv.js → cli-tqgg40ek.js} +1 -1
  73. package/dist/{cli-f255yaqn.js → cli-vbyfwh92.js} +3 -3
  74. package/dist/{cli-gcbdjt47.js → cli-vfym7wmz.js} +6 -6
  75. package/dist/{cli-edmm9d9y.js → cli-vqypxzh4.js} +7 -7
  76. package/dist/{cli-1gm8jcyr.js → cli-wvaawacd.js} +13 -13
  77. package/dist/{cli-eny54typ.js → cli-wx3rhnm0.js} +1 -1
  78. package/dist/{cli-b1afgtj3.js → cli-xbkdm710.js} +3 -3
  79. package/dist/{cli-mc97xy2s.js → cli-xtjhfmpc.js} +16 -4
  80. package/dist/{cli-eqx6k993.js → cli-y24sc29k.js} +25 -13
  81. package/dist/{cli-ktmvb20s.js → cli-z6jkx23q.js} +12 -12
  82. package/dist/{cli-7n5sbw0z.js → cli-z8eh3ex8.js} +5 -5
  83. package/dist/cli-zh3fp8v2.js +151 -0
  84. package/dist/{cli-13jvmew3.js → cli-zppwg9p9.js} +7 -7
  85. package/dist/cli.js +18 -18
  86. package/dist/{codex-adapter-g0gctw29.js → codex-adapter-q6k3gnyg.js} +5 -5
  87. package/dist/{codex-hook-vrzz2xhr.js → codex-hook-9efm2x1m.js} +1 -1
  88. package/dist/{codex-login-0gg46ygn.js → codex-login-y0pmff1c.js} +1 -1
  89. package/dist/{codex-session-runner-dr2cxe1c.js → codex-session-runner-3mwmk3d9.js} +6 -6
  90. package/dist/{commands-1p07cvff.js → commands-evrenjn9.js} +2 -2
  91. package/dist/{controller-z0s7sv6r.js → controller-xjp8vswh.js} +4 -4
  92. package/dist/{controllers-connect-x9kvvhyk.js → controllers-connect-pp5jnxvc.js} +20 -20
  93. package/dist/{cursor-adapter-m5b98pvk.js → cursor-adapter-yf47w4t0.js} +2 -2
  94. package/dist/{db-rsh04kh3.js → db-rgfsh91f.js} +2 -2
  95. package/dist/{db-capk2raj.js → db-zxpw6aht.js} +3 -3
  96. package/dist/{devin-adapter-yxm87fe9.js → devin-adapter-r9phbnc9.js} +1 -1
  97. package/dist/{dispatcher-304q6fwa.js → dispatcher-smasgws7.js} +17 -17
  98. package/dist/{docker-7rxt0rry.js → docker-rrjhaqt9.js} +2 -2
  99. package/dist/{dsh-adapter-btewem0y.js → dsh-adapter-ftyy8dnp.js} +2 -2
  100. package/dist/{e2b-renc0k8q.js → e2b-qcaj675y.js} +2 -2
  101. package/dist/{e2b-7fc9b9bd.js → e2b-w1p0bnpm.js} +2 -2
  102. package/dist/{easter-egg-3d-fm1p3n4d.js → easter-egg-3d-yyts7p16.js} +1 -1
  103. package/dist/{embedding-space-s68v49ct.js → embedding-space-1z0mbg95.js} +6 -6
  104. package/dist/{embeddings-4ms3604w.js → embeddings-ygeg7tm7.js} +1 -1
  105. package/dist/{event-bus-dfjx2qdh.js → event-bus-g0ka3pbw.js} +1 -1
  106. package/dist/{execute-mcdgccjs.js → execute-14qhqp4d.js} +1 -1
  107. package/dist/{external-channel-9dxwfztn.js → external-channel-ttgrs3sx.js} +2 -2
  108. package/dist/fx-adapter-gt6pncj2.js +18 -0
  109. package/dist/{grok-adapter-05ecv4h0.js → grok-adapter-sm4m5k4g.js} +8 -8
  110. package/dist/handlers-vwmba1m2.js +31 -0
  111. package/dist/{heartbeat-3n94heh3.js → heartbeat-qahz4p62.js} +20 -20
  112. package/dist/{hook-zxwje86c.js → hook-4fd5wq5w.js} +4 -4
  113. package/dist/{hook-aadrn69x.js → hook-kj3d398m.js} +6 -6
  114. package/dist/{http-xzxk9mst.js → http-1ted0j1k.js} +100 -64
  115. package/dist/index-5r71rf98.js +32 -0
  116. package/dist/{index-d34f6r87.js → index-6rq3r5zb.js} +1 -1
  117. package/dist/{index-9j4zwcht.js → index-7v51awbn.js} +158 -672
  118. package/dist/index-anmwxs87.js +29 -0
  119. package/dist/{index-qeb82z37.js → index-q4b917zs.js} +1 -1
  120. package/dist/index-spp0ra5c.js +36 -0
  121. package/dist/{keepalive-w4aakbyk.js → keepalive-6cf311t5.js} +4 -4
  122. package/dist/lead-fjy418cw.js +69 -0
  123. package/dist/{maintenance-hbptpk6p.js → maintenance-a4bm1bmt.js} +1 -1
  124. package/dist/{oauth-refresh-sweep-217semrv.js → oauth-refresh-sweep-3h0dfw1k.js} +3 -3
  125. package/dist/{onboard-vz2s5df3.js → onboard-myn5hraa.js} +3 -3
  126. package/dist/{opencode-adapter-gtfd7d7v.js → opencode-adapter-p2nkb5am.js} +5 -5
  127. package/dist/{otel-impl-aefave37.js → otel-impl-a1a0ef6b.js} +2 -2
  128. package/dist/{pi-mono-adapter-f8h5yseh.js → pi-mono-adapter-rzmpb72a.js} +117 -23
  129. package/dist/{pricing-refresh-m1yhh9ya.js → pricing-refresh-83drrnxj.js} +3 -3
  130. package/dist/{rbac-roles-svj72cdf.js → rbac-roles-0fb6e7pj.js} +2 -2
  131. package/dist/{rbac-roles-rrw8twdz.js → rbac-roles-s8y6ecb5.js} +1 -1
  132. package/dist/{render-v2-amwbnfxh.js → render-v2-twmbgrz4.js} +3 -3
  133. package/dist/{resume-9cd6wf6z.js → resume-zfqc36xj.js} +7 -7
  134. package/dist/{runtime-fp4vrx7m.js → runtime-qwggdpqr.js} +1 -1
  135. package/dist/{session-access-21t6yjyg.js → session-access-sc9pn9da.js} +4 -4
  136. package/dist/{session-source-backfill-pxbzcsc6.js → session-source-backfill-qh07xr8g.js} +3 -3
  137. package/dist/{setup-4592tqz4.js → setup-4fr0m7a1.js} +1 -1
  138. package/dist/{virtual-modules-gzfnpmnz.js → virtual-modules-fh4ha15b.js} +2 -2
  139. package/dist/{work-objects-t9tcf174.js → work-objects-0wr8zxct.js} +20 -20
  140. package/dist/worker-0c5tyzqe.js +69 -0
  141. package/dist/{worker-follow-up-q32jh4yk.js → worker-follow-up-ktyyazyp.js} +17 -17
  142. package/dist/{x-b6wxntdt.js → x-vmmye1kb.js} +2 -2
  143. package/openapi.json +97 -32
  144. package/package.json +1 -1
  145. package/src/be/db/session-summaries.ts +8 -2
  146. package/src/be/db/session-tree.ts +174 -61
  147. package/src/be/db/session-visibility.ts +5 -4
  148. package/src/be/db.ts +8 -4
  149. package/src/be/migrations/259_session_summaries_open_tasks.sql +111 -0
  150. package/src/be/model-validation.ts +5 -1
  151. package/src/be/pricing-normalize.ts +7 -2
  152. package/src/be/scripts/typecheck.ts +1 -0
  153. package/src/be/seed/schedules-seeder.ts +135 -9
  154. package/src/be/seed/workflows-seeder.ts +65 -1
  155. package/src/be/seed-pricing.ts +23 -0
  156. package/src/be/steering.ts +50 -3
  157. package/src/be/swarm-config-guard.ts +1 -0
  158. package/src/commands/provider-credentials.ts +29 -2
  159. package/src/commands/runner.ts +86 -5
  160. package/src/extensions/contract-types.generated.ts +1 -1
  161. package/src/extensions/contract.ts +27 -1
  162. package/src/extensions/dispatcher.ts +4 -0
  163. package/src/http/agents.ts +1 -0
  164. package/src/http/mcp-bridge.ts +4 -0
  165. package/src/integrations/chat-sdk/inbound.ts +15 -5
  166. package/src/integrations/chat-sdk/steering.ts +3 -1
  167. package/src/kv-reserved-namespaces.ts +2 -0
  168. package/src/prompts/base-prompt.ts +4 -1
  169. package/src/prompts/session-templates.ts +26 -0
  170. package/src/providers/acp-adapter.ts +190 -26
  171. package/src/providers/acp-targets.ts +306 -6
  172. package/src/providers/amp-adapter.ts +1 -1
  173. package/src/providers/codex-adapter.ts +9 -44
  174. package/src/providers/codex-oauth/flow.ts +24 -3
  175. package/src/providers/codex-oauth/storage.ts +56 -17
  176. package/src/providers/codex-oauth/subscription.ts +67 -0
  177. package/src/providers/fx-adapter.ts +211 -0
  178. package/src/providers/index.ts +5 -1
  179. package/src/providers/mcp-loopback-proxy.ts +94 -0
  180. package/src/providers/pi-mono-adapter.ts +98 -13
  181. package/src/providers/pricing-sources.md +8 -0
  182. package/src/providers/reasoning-effort.ts +17 -1
  183. package/src/providers/types.ts +2 -1
  184. package/src/scheduler/scheduler.ts +36 -3
  185. package/src/scripts-runtime/sdk-allowlist.ts +1 -0
  186. package/src/scripts-runtime/types/stdlib.d.ts +5 -0
  187. package/src/scripts-runtime/types/swarm-extension.d.ts +33 -0
  188. package/src/scripts-runtime/types/swarm-sdk.d.ts +5 -0
  189. package/src/server.ts +7 -0
  190. package/src/slack/assistant.ts +17 -1
  191. package/src/slack/handlers.ts +18 -5
  192. package/src/slack/left-threads.ts +65 -0
  193. package/src/slack/steering.ts +3 -0
  194. package/src/slack/thread-buffer.ts +40 -16
  195. package/src/tests/acp-adapter.test.ts +79 -0
  196. package/src/tests/base-prompt.test.ts +12 -0
  197. package/src/tests/chat-sdk-inbound.test.ts +30 -0
  198. package/src/tests/chatgpt-subscription-model-groups.test.ts +62 -0
  199. package/src/tests/chatgpt-subscription-pi.test.ts +170 -0
  200. package/src/tests/chatgpt-subscription-session-bench.test.ts +198 -0
  201. package/src/tests/codex-oauth-credential-info.test.ts +40 -0
  202. package/src/tests/codex-oauth-refresh-egress.test.ts +194 -0
  203. package/src/tests/context-window.test.ts +7 -0
  204. package/src/tests/explicit-model-validation.test.ts +99 -0
  205. package/src/tests/extensions-run-context.test.ts +11 -0
  206. package/src/tests/extensions-steering.test.ts +353 -0
  207. package/src/tests/extensions-validate.test.ts +5 -0
  208. package/src/tests/fixtures/extensions/steering-policy/hooks.ts +39 -0
  209. package/src/tests/fixtures/extensions/steering-policy/manifest.json +7 -0
  210. package/src/tests/fixtures/fake-fx.ts +167 -0
  211. package/src/tests/fixtures/fx/acp-responses-recorded.json +157 -0
  212. package/src/tests/fixtures/fx/acp-updates-recorded.jsonl +15 -0
  213. package/src/tests/fx-adapter.test.ts +771 -0
  214. package/src/tests/grok-adapter.test.ts +36 -0
  215. package/src/tests/mcp-loopback-proxy.test.ts +193 -0
  216. package/src/tests/model-tier-resolution.test.ts +3 -3
  217. package/src/tests/pricing-refresh.test.ts +5 -5
  218. package/src/tests/prompt-template-session.test.ts +5 -3
  219. package/src/tests/provider-registration.test.ts +2 -1
  220. package/src/tests/query-audit-plans.test.ts +3 -2
  221. package/src/tests/script-connections.test.ts +2 -0
  222. package/src/tests/seed-model-profiles.test.ts +2 -2
  223. package/src/tests/seed-schedules.test.ts +138 -0
  224. package/src/tests/session-cost-recompute-unit.test.ts +39 -0
  225. package/src/tests/session-costs-golden.test.ts +26 -0
  226. package/src/tests/session-summaries-plans.test.ts +120 -0
  227. package/src/tests/session-summaries.test.ts +72 -12
  228. package/src/tests/sessions-tree.test.ts +11 -3
  229. package/src/tests/slack-leave-thread.test.ts +431 -0
  230. package/src/tests/tool-annotations.test.ts +2 -1
  231. package/src/tests/workflow-engine-v2.test.ts +42 -0
  232. package/src/tests/workflow-script-principal.test.ts +207 -7
  233. package/src/tools/slack-leave-thread.ts +104 -0
  234. package/src/tools/steer-task.ts +3 -2
  235. package/src/tools/tool-config.ts +2 -1
  236. package/src/types.ts +19 -0
  237. package/src/utils/codex-auth-failure.ts +30 -0
  238. package/src/utils/context-window.ts +4 -1
  239. package/src/utils/credentials.ts +7 -0
  240. package/src/utils/fx-models.ts +43 -0
  241. package/src/workflows/cooldown.ts +3 -2
  242. package/src/workflows/engine.ts +24 -9
  243. package/templates/schedules/dreaming-daily/config.json +1 -1
  244. package/templates/schedules/dreaming-daily/content.md +6 -14
  245. package/templates/skills/swarm-docs/content.md +1 -0
  246. package/templates/workflows/dreaming/content.md +5 -1
  247. package/dist/acp-adapter-96dc64m2.js +0 -15
  248. package/dist/handlers-jg7v74ty.js +0 -31
  249. package/dist/index-8c1zbz59.js +0 -29
  250. package/dist/index-8k8tmfxd.js +0 -32
  251. package/dist/index-hq617xdj.js +0 -36
  252. package/dist/lead-567kw7x3.js +0 -68
  253. package/dist/worker-fjdqra6q.js +0 -68
@@ -68,10 +68,6 @@ import {
68
68
  resolveTriggerSurface,
69
69
  emitTaskTelemetry,
70
70
  init_telemetry_trigger,
71
- CODEX_AUTH_FAILURE_BENCH_THRESHOLD,
72
- CODEX_AUTH_WATCH_NAMESPACE,
73
- codexAuthBenchMarkerKey,
74
- init_codex_auth_failure,
75
71
  HeartbeatExpiryError,
76
72
  init_heartbeat_expiry,
77
73
  isRuntimePoolsEnabled,
@@ -231,14 +227,6 @@ import {
231
227
  init_db3,
232
228
  loadSecretRegistry,
233
229
  init_secret_registry,
234
- STEERING_MOVED_ERROR,
235
- SteeringRequestError,
236
- isSteeringEnabled,
237
- getTaskSteeringFields,
238
- getTaskSteeringFieldsForTasks,
239
- markSteeringUndeliverable,
240
- requestSteering,
241
- init_steering2,
242
230
  getWorkflowRunSummary,
243
231
  getWorkflowRunStepsSlimByRunId,
244
232
  WORKFLOW_RUN_TREE_MAX_DEPTH,
@@ -247,6 +235,14 @@ import {
247
235
  getWorkflowRunParent,
248
236
  init_workflow_runs,
249
237
  refreshActiveSessionOnActivity2,
238
+ STEERING_MOVED_ERROR,
239
+ SteeringRequestError,
240
+ isSteeringEnabled,
241
+ getTaskSteeringFields,
242
+ getTaskSteeringFieldsForTasks,
243
+ markSteeringUndeliverable,
244
+ requestSteering,
245
+ init_steering2,
250
246
  getPendingTaskForAgent2,
251
247
  startTask2,
252
248
  updateTaskClaudeSessionId2,
@@ -479,7 +475,7 @@ import {
479
475
  countScriptRunJournalSteps2,
480
476
  countScriptRunJournalAgentTaskSteps2,
481
477
  init_db4
482
- } from "./cli-1s1dqn1j.js";
478
+ } from "./cli-1ayk1eas.js";
483
479
  import {
484
480
  PRIMARY_ROLE_NAMES2,
485
481
  getUserGrant2,
@@ -490,8 +486,8 @@ import {
490
486
  assertNotLastAdmin2,
491
487
  setUserRoles2,
492
488
  init_rbac_roles
493
- } from "./cli-bq2pcphn.js";
494
- import"./cli-36g23z21.js";
489
+ } from "./cli-8hs41zy2.js";
490
+ import"./cli-6s7vdcta.js";
495
491
  import {
496
492
  upsertModelCatalogOverlay,
497
493
  deleteModelCatalogOverlay,
@@ -499,12 +495,12 @@ import {
499
495
  init_model_catalog_store,
500
496
  requestModelCatalogRefresh2,
501
497
  init_pricing_refresh
502
- } from "./cli-wcmnan2g.js";
498
+ } from "./cli-nn4d8dne.js";
503
499
  import {
504
500
  workflowEventBus2,
505
501
  init_event_bus
506
- } from "./cli-eny54typ.js";
507
- import"./cli-a1fhj4n9.js";
502
+ } from "./cli-wx3rhnm0.js";
503
+ import"./cli-mmwm7zbf.js";
508
504
  import {
509
505
  getSlackConnectionState,
510
506
  init_connection_state,
@@ -534,12 +530,12 @@ import {
534
530
  startSlackApp2,
535
531
  stopSlackApp2,
536
532
  init_app3
537
- } from "./cli-1gm8jcyr.js";
533
+ } from "./cli-wvaawacd.js";
538
534
  import {
539
535
  retryFailedRun2,
540
536
  cancelWorkflowRun2,
541
537
  init_resume
542
- } from "./cli-mvckssyq.js";
538
+ } from "./cli-g61qxmge.js";
543
539
  import {
544
540
  DEFAULT_NEGOTIATED_PROTOCOL_VERSION,
545
541
  SUPPORTED_PROTOCOL_VERSIONS,
@@ -945,7 +941,7 @@ import {
945
941
  getEnabledCapabilities,
946
942
  createServer,
947
943
  init_server
948
- } from "./cli-1yekbyqm.js";
944
+ } from "./cli-1338796d.js";
949
945
  import {
950
946
  FilesError,
951
947
  normalizeFilesError,
@@ -977,7 +973,7 @@ import {
977
973
  resolvePoolDelivery2,
978
974
  createPoolAgent2,
979
975
  init_db2
980
- } from "./cli-cq1pf336.js";
976
+ } from "./cli-mry0qzym.js";
981
977
  import {
982
978
  duplicateGuardedQueryKey,
983
979
  warnIfCorsAllowsAnyOrigin,
@@ -1031,7 +1027,7 @@ import {
1031
1027
  describeRequestRoute,
1032
1028
  route,
1033
1029
  init_route_def
1034
- } from "./cli-7n5sbw0z.js";
1030
+ } from "./cli-z8eh3ex8.js";
1035
1031
  import {
1036
1032
  startPoolRouting,
1037
1033
  stopPoolRouting,
@@ -1044,24 +1040,24 @@ import {
1044
1040
  checkHeartbeatChecklist2,
1045
1041
  runHeartbeatSweep2,
1046
1042
  stopHeartbeat2
1047
- } from "./cli-ktmvb20s.js";
1048
- import"./cli-0fgr1w9b.js";
1043
+ } from "./cli-z6jkx23q.js";
1044
+ import"./cli-rpm2sgv0.js";
1049
1045
  import {
1050
1046
  runtimeSupervisorStatus,
1051
1047
  startRuntimeSupervisor,
1052
1048
  stopRuntimeSupervisor
1053
- } from "./cli-t282jgab.js";
1049
+ } from "./cli-rqkxrmgw.js";
1054
1050
  import"./cli-ns59dc6r.js";
1055
1051
  import {
1056
1052
  ACP_TARGET_IDS
1057
- } from "./cli-9cctx1tn.js";
1053
+ } from "./cli-a22h291q.js";
1058
1054
  import {
1059
1055
  reasoningCapability,
1060
1056
  supportedReasoningLevels
1061
- } from "./cli-vqgnyh76.js";
1057
+ } from "./cli-98rw5dt5.js";
1062
1058
  import {
1063
1059
  MAX_RATE_LIMIT_RESET_MS
1064
- } from "./cli-bwty35gx.js";
1060
+ } from "./cli-mthwvjre.js";
1065
1061
  import {
1066
1062
  isLeadChannelMonitoringEnabled,
1067
1063
  ORG_IDENTITY_KEYS,
@@ -1071,11 +1067,11 @@ import {
1071
1067
  isUnknownModelError,
1072
1068
  checkProviderPoolKey,
1073
1069
  writeSkillsToFilesystem
1074
- } from "./cli-je8yeyc5.js";
1070
+ } from "./cli-rhw40jgb.js";
1075
1071
  import {
1076
1072
  inviteEmailToSharedOrg,
1077
1073
  ensureAgentFsCredentialsForAgent
1078
- } from "./cli-f255yaqn.js";
1074
+ } from "./cli-vbyfwh92.js";
1079
1075
  import {
1080
1076
  Anthropic
1081
1077
  } from "./cli-318r69gq.js";
@@ -1091,7 +1087,7 @@ import {
1091
1087
  ampBillsCacheWrites,
1092
1088
  resolveAmpModel,
1093
1089
  init_amp_models
1094
- } from "./cli-zn15c46z.js";
1090
+ } from "./cli-mjzynrse.js";
1095
1091
  import {
1096
1092
  RATING_MODEL_MAX_LENGTH,
1097
1093
  REFERENCES_SOURCE_MAX_LENGTH,
@@ -1101,7 +1097,7 @@ import {
1101
1097
  import {
1102
1098
  normalizeModelKey,
1103
1099
  init_pricing_normalize
1104
- } from "./cli-mc97xy2s.js";
1100
+ } from "./cli-xtjhfmpc.js";
1105
1101
  import {
1106
1102
  require_dist2,
1107
1103
  getMcpOAuthToken,
@@ -1190,7 +1186,7 @@ import {
1190
1186
  init_typecheck,
1191
1187
  parseSkillContent,
1192
1188
  init_skill_parser
1193
- } from "./cli-d2pzqej1.js";
1189
+ } from "./cli-0bxqnvq9.js";
1194
1190
  import {
1195
1191
  signalProcessGroup,
1196
1192
  detachedProcessGroup,
@@ -1207,7 +1203,7 @@ import {
1207
1203
  forceRefreshAuthorizationOrThrow,
1208
1204
  forceRefreshTokenOrThrow,
1209
1205
  init_ensure_token
1210
- } from "./cli-0sbkss7h.js";
1206
+ } from "./cli-7wcyk2s5.js";
1211
1207
  import {
1212
1208
  automationIntegrationFixUrl,
1213
1209
  preflightAutomation,
@@ -1251,7 +1247,7 @@ import {
1251
1247
  definitionNodeIds,
1252
1248
  validateDefinition,
1253
1249
  init_definition2
1254
- } from "./cli-pwyevs29.js";
1250
+ } from "./cli-spknvxbq.js";
1255
1251
  import {
1256
1252
  _fetchHolder,
1257
1253
  CLIENT_ID,
@@ -1267,7 +1263,7 @@ import {
1267
1263
  loadAllCodexOAuthSlots,
1268
1264
  getValidCodexOAuth,
1269
1265
  init_storage
1270
- } from "./cli-jg0nfda6.js";
1266
+ } from "./cli-75gkpjvw.js";
1271
1267
  import {
1272
1268
  isMultiRuntimeEnabled,
1273
1269
  init_multi_runtime2
@@ -1295,11 +1291,11 @@ import {
1295
1291
  revokeMcpToken,
1296
1292
  computeExpiresAt,
1297
1293
  init_mcp_wrapper
1298
- } from "./cli-k76tgq03.js";
1294
+ } from "./cli-pywf3eh5.js";
1299
1295
  import {
1300
1296
  createRuntimeProvider,
1301
1297
  init_runtime_providers
1302
- } from "./cli-b1afgtj3.js";
1298
+ } from "./cli-xbkdm710.js";
1303
1299
  import {
1304
1300
  registerSessionTokenConnection,
1305
1301
  init_session_token_connections,
@@ -1326,7 +1322,7 @@ import {
1326
1322
  revokeAgentTokens,
1327
1323
  fingerprintApiKey,
1328
1324
  init_users
1329
- } from "./cli-8yy525ad.js";
1325
+ } from "./cli-bhjt02p8.js";
1330
1326
  import"./cli-v41kn3cd.js";
1331
1327
  import {
1332
1328
  setBedrockProviderModule,
@@ -1498,12 +1494,18 @@ import {
1498
1494
  KvKeySchema,
1499
1495
  KvEntrySchema,
1500
1496
  init_types4
1501
- } from "./cli-41z8xwj0.js";
1497
+ } from "./cli-7wspm5gm.js";
1498
+ import {
1499
+ CODEX_AUTH_FAILURE_BENCH_THRESHOLD,
1500
+ CODEX_AUTH_WATCH_NAMESPACE,
1501
+ codexAuthBenchMarkerKey,
1502
+ init_codex_auth_failure
1503
+ } from "./cli-fw2w0kva.js";
1502
1504
  import {
1503
1505
  IDENTITY_FIELD_BUDGETS,
1504
1506
  IdentityFieldBudgetError,
1505
1507
  init_identity_field_budget
1506
- } from "./cli-ycm6180s.js";
1508
+ } from "./cli-a7v854rf.js";
1507
1509
  import {
1508
1510
  getSlackConfiguration,
1509
1511
  init_config4
@@ -1530,7 +1532,7 @@ import {
1530
1532
  splitCredentialPool,
1531
1533
  selectCredential,
1532
1534
  init_credentials2
1533
- } from "./cli-aq58fk5m.js";
1535
+ } from "./cli-g83s9ewh.js";
1534
1536
  import {
1535
1537
  interpolate,
1536
1538
  init_template2,
@@ -1540,7 +1542,7 @@ import {
1540
1542
  resolveTemplate,
1541
1543
  init_resolver,
1542
1544
  init_session_templates
1543
- } from "./cli-j4kw3rsx.js";
1545
+ } from "./cli-cm5yqn35.js";
1544
1546
  import {
1545
1547
  init_zod
1546
1548
  } from "./cli-k5671be5.js";
@@ -1576,7 +1578,7 @@ import {
1576
1578
  import {
1577
1579
  init_package,
1578
1580
  package_default
1579
- } from "./cli-pe09p6dv.js";
1581
+ } from "./cli-tqgg40ek.js";
1580
1582
  import {
1581
1583
  realtimeBus,
1582
1584
  init_bus
@@ -1609,13 +1611,13 @@ import {
1609
1611
  registerVolatileSecret,
1610
1612
  registerEnvSecrets,
1611
1613
  init_secret_scrubber
1612
- } from "./cli-a4btqqft.js";
1614
+ } from "./cli-1b7btd38.js";
1613
1615
  import {
1614
1616
  isAlias,
1615
1617
  baseUrlEnvVar,
1616
1618
  providerForKeyVar,
1617
1619
  init_src2
1618
- } from "./cli-4r12t6w6.js";
1620
+ } from "./cli-5c4hjzne.js";
1619
1621
  import {
1620
1622
  __toESM
1621
1623
  } from "./cli-242037k3.js";
@@ -5047,7 +5049,8 @@ var LocalHarnessProviderSchema = _enum2([
5047
5049
  "dsh",
5048
5050
  "amp",
5049
5051
  "cursor",
5050
- "grok"
5052
+ "grok",
5053
+ "fx"
5051
5054
  ]);
5052
5055
  var AcpRuntimeConfigSchema = object2({
5053
5056
  target: _enum2(ACP_TARGET_IDS),
@@ -11074,6 +11077,7 @@ declare module "swarm-extension" {
11074
11077
  | "amp"
11075
11078
  | "cursor"
11076
11079
  | "grok"
11080
+ | "fx"
11077
11081
  | undefined;
11078
11082
  leadOnly?: boolean | undefined;
11079
11083
  }
@@ -11209,6 +11213,7 @@ declare module "swarm-extension" {
11209
11213
  | "amp"
11210
11214
  | "cursor"
11211
11215
  | "grok"
11216
+ | "fx"
11212
11217
  | undefined;
11213
11218
  providerMeta?: Record<string, unknown> | undefined;
11214
11219
  harnessVariant?: string | undefined;
@@ -11231,6 +11236,7 @@ declare module "swarm-extension" {
11231
11236
  | "amp"
11232
11237
  | "cursor"
11233
11238
  | "grok"
11239
+ | "fx"
11234
11240
  | undefined;
11235
11241
  leadOnly?: boolean | undefined;
11236
11242
  }
@@ -11252,6 +11258,10 @@ declare module "swarm-extension" {
11252
11258
  runtimeInstanceId?: string | null | undefined;
11253
11259
  };
11254
11260
 
11261
+ export type SteerMode = "steer" | "queue";
11262
+
11263
+ export type SteeringSource = "script" | "slack" | "mcp" | "api" | "ui" | "chat";
11264
+
11255
11265
  export type RequestInfo = {
11256
11266
  sessionId: string | undefined;
11257
11267
  agentId: string | undefined;
@@ -11462,6 +11472,27 @@ declare module "swarm-extension" {
11462
11472
  leadAgentId: string;
11463
11473
  summary: string;
11464
11474
  }
11475
+ export interface TaskSteerEvent {
11476
+ task: AgentTask;
11477
+ message: string;
11478
+ mode: SteerMode;
11479
+ source: SteeringSource;
11480
+ sender: {
11481
+ kind: "user" | "agent" | "system";
11482
+ userId?: string;
11483
+ agentId?: string;
11484
+ };
11485
+ messageTimestamps?: string[];
11486
+ /** Slack ingress metadata; not persisted or writable through modify. */
11487
+ slack?: {
11488
+ channelId: string;
11489
+ threadTs: string;
11490
+ userId?: string;
11491
+ };
11492
+ }
11493
+ export interface TaskSteerModify {
11494
+ message: string;
11495
+ }
11465
11496
  export type TaskFollowUpModify = Partial<
11466
11497
  Pick<CreateTaskOptions, "agentId" | "priority" | "followUpConfig">
11467
11498
  > & {
@@ -11694,6 +11725,11 @@ declare module "swarm-extension" {
11694
11725
  modify: TaskFollowUpModify;
11695
11726
  result: PreResult<TaskFollowUpModify>;
11696
11727
  };
11728
+ "pre.task.steer": {
11729
+ event: TaskSteerEvent;
11730
+ modify: TaskSteerModify;
11731
+ result: PreResult<TaskSteerModify>;
11732
+ };
11697
11733
  "pre.slack.route": {
11698
11734
  event: SlackRouteEvent;
11699
11735
  modify: SlackRouteModify;
@@ -42876,7 +42912,7 @@ var httpServer = createHttpServer(async (req, res) => {
42876
42912
  });
42877
42913
  });
42878
42914
  var detachRealtime = attachRealtimeTransport(httpServer);
42879
- var { attachControllerTransport } = await import("./controllers-connect-x9kvvhyk.js");
42915
+ var { attachControllerTransport } = await import("./controllers-connect-pp5jnxvc.js");
42880
42916
  var detachControllers = attachControllerTransport(httpServer);
42881
42917
  var stopWorkerNudges = startWorkerNudgeListener();
42882
42918
  var stopRoomDeletion = realtimeBus.subscribe("room:namespace-deleted", (namespace) => {
@@ -42905,7 +42941,7 @@ async function shutdown() {
42905
42941
  sessionsProcessed: getServerSessionsProcessed()
42906
42942
  });
42907
42943
  if (hasCapability("scheduling")) {
42908
- const { stopScheduler } = await import("./index-8k8tmfxd.js");
42944
+ const { stopScheduler } = await import("./index-5r71rf98.js");
42909
42945
  stopScheduler();
42910
42946
  }
42911
42947
  stopHeartbeat2();
@@ -42917,7 +42953,7 @@ async function shutdown() {
42917
42953
  await stopSlackApp2();
42918
42954
  await stopChatSdk();
42919
42955
  if (!isEnvFlagEnabled("OAUTH_KEEPALIVE_DISABLE", false)) {
42920
- const { stopOAuthKeepalive } = await import("./keepalive-w4aakbyk.js");
42956
+ const { stopOAuthKeepalive } = await import("./keepalive-6cf311t5.js");
42921
42957
  await stopOAuthKeepalive();
42922
42958
  }
42923
42959
  stopOAuthPendingGc();
@@ -42999,21 +43035,21 @@ try {
42999
43035
  console.warn("[startup] CAPABILITIES upgrade seed failed (non-fatal):", err);
43000
43036
  }
43001
43037
  try {
43002
- const { ensurePricingSeeded } = await import("./boot-seeds-ftt9htah.js");
43038
+ const { ensurePricingSeeded } = await import("./boot-seeds-aykx51v3.js");
43003
43039
  ensurePricingSeeded();
43004
- const { startPricingRefreshLoop } = await import("./pricing-refresh-m1yhh9ya.js");
43040
+ const { startPricingRefreshLoop } = await import("./pricing-refresh-83drrnxj.js");
43005
43041
  startPricingRefreshLoop();
43006
43042
  } catch (err) {
43007
43043
  console.error("[startup] Failed to seed pricing rows:", err);
43008
43044
  }
43009
43045
  try {
43010
- const { ensureModelProfilesSeeded } = await import("./boot-seeds-ftt9htah.js");
43046
+ const { ensureModelProfilesSeeded } = await import("./boot-seeds-aykx51v3.js");
43011
43047
  await ensureModelProfilesSeeded();
43012
43048
  } catch (err) {
43013
43049
  console.error("[startup] Failed to seed model profiles:", err);
43014
43050
  }
43015
43051
  try {
43016
- const { ensureRbacSeeded } = await import("./boot-seeds-ftt9htah.js");
43052
+ const { ensureRbacSeeded } = await import("./boot-seeds-aykx51v3.js");
43017
43053
  ensureRbacSeeded();
43018
43054
  } catch (err) {
43019
43055
  console.error("[startup] Failed to sync RBAC seed rows:", err);
@@ -43021,7 +43057,7 @@ try {
43021
43057
  throw err;
43022
43058
  }
43023
43059
  try {
43024
- const { runAllSeeders } = await import("./index-9j4zwcht.js");
43060
+ const { runAllSeeders } = await import("./index-7v51awbn.js");
43025
43061
  await runAllSeeders({ scriptEmbeddingMode: "skip" });
43026
43062
  } catch (err) {
43027
43063
  console.error("[startup] Failed to seed built-in entities:", err);
@@ -43084,26 +43120,26 @@ httpServer.listen(port, async () => {
43084
43120
  await initWorkflows2();
43085
43121
  await startScriptRunSupervisor(getMcpBaseUrl());
43086
43122
  if (hasCapability("scheduling")) {
43087
- const { startScheduler } = await import("./index-8k8tmfxd.js");
43088
- const { getExecutorRegistry } = await import("./index-hq617xdj.js");
43123
+ const { startScheduler } = await import("./index-5r71rf98.js");
43124
+ const { getExecutorRegistry } = await import("./index-spp0ra5c.js");
43089
43125
  const intervalMs = Number(process.env.SCHEDULER_INTERVAL_MS) || 1e4;
43090
43126
  startScheduler(getExecutorRegistry(), intervalMs, {
43091
43127
  runId: globalState.__runId
43092
43128
  });
43093
43129
  }
43094
43130
  if (!isEnvFlagEnabled("HEARTBEAT_DISABLE", false)) {
43095
- const { startHeartbeat } = await import("./index-8c1zbz59.js");
43131
+ const { startHeartbeat } = await import("./index-anmwxs87.js");
43096
43132
  const heartbeatMs = Number(process.env.HEARTBEAT_INTERVAL_MS) || 90000;
43097
43133
  startHeartbeat(heartbeatMs);
43098
43134
  }
43099
43135
  startPoolRouting();
43100
43136
  startRuntimeSupervisor();
43101
43137
  if (!isEnvFlagEnabled("OAUTH_KEEPALIVE_DISABLE", false)) {
43102
- const { startOAuthKeepalive } = await import("./keepalive-w4aakbyk.js");
43138
+ const { startOAuthKeepalive } = await import("./keepalive-6cf311t5.js");
43103
43139
  startOAuthKeepalive();
43104
43140
  }
43105
43141
  if (!isEnvFlagEnabled("OAUTH_REFRESH_SWEEP_DISABLE", false)) {
43106
- const { startOAuthRefreshSweep } = await import("./oauth-refresh-sweep-217semrv.js");
43142
+ const { startOAuthRefreshSweep } = await import("./oauth-refresh-sweep-3h0dfw1k.js");
43107
43143
  startOAuthRefreshSweep();
43108
43144
  }
43109
43145
  startOAuthPendingGc();
@@ -43112,16 +43148,16 @@ httpServer.listen(port, async () => {
43112
43148
  await startDbRetention();
43113
43149
  startHumanFreeDrain();
43114
43150
  startTaskSearchBackfill();
43115
- import("./embedding-space-s68v49ct.js").then(({ runEmbeddingMaintenance, setDeploymentEnvReader }) => {
43151
+ import("./embedding-space-1z0mbg95.js").then(({ runEmbeddingMaintenance, setDeploymentEnvReader }) => {
43116
43152
  setDeploymentEnvReader(getDeploymentEnvValue);
43117
43153
  return runEmbeddingMaintenance({ backfill: true });
43118
43154
  }).catch((err) => {
43119
43155
  console.error("[embedding-space] startup maintenance failed (non-fatal):", err);
43120
43156
  });
43121
- import("./boot-scrub-sweep-8k4q95ap.js").then(({ runBootScrubSweep }) => runBootScrubSweep()).catch((err) => {
43157
+ import("./boot-scrub-sweep-nd938kyf.js").then(({ runBootScrubSweep }) => runBootScrubSweep()).catch((err) => {
43122
43158
  console.error("[boot-scrub-sweep] startup scrub failed (non-fatal):", err);
43123
43159
  });
43124
- import("./session-source-backfill-pxbzcsc6.js").then(({ runSessionSourceBackfill }) => runSessionSourceBackfill()).catch((err) => {
43160
+ import("./session-source-backfill-qh07xr8g.js").then(({ runSessionSourceBackfill }) => runSessionSourceBackfill()).catch((err) => {
43125
43161
  console.error("[session-source-backfill] startup run failed (non-fatal):", err);
43126
43162
  });
43127
43163
  }).on("error", (err) => {
@@ -0,0 +1,32 @@
1
+ import {
2
+ calculateNextRun2,
3
+ startScheduler2,
4
+ stopScheduler2,
5
+ runScheduleNow2,
6
+ init_scheduler2
7
+ } from "./cli-1338796d.js";
8
+ import"./cli-6s7vdcta.js";
9
+ import"./cli-nn4d8dne.js";
10
+ import"./cli-xtjhfmpc.js";
11
+ import"./cli-0bxqnvq9.js";
12
+ import"./cli-7wcyk2s5.js";
13
+ import"./cli-3xj33nrx.js";
14
+ import"./cli-z8eh3ex8.js";
15
+ import"./cli-g61qxmge.js";
16
+ import"./cli-spknvxbq.js";
17
+ import"./cli-wvaawacd.js";
18
+ import"./cli-mmwm7zbf.js";
19
+ import"./cli-pywf3eh5.js";
20
+ import"./cli-mry0qzym.js";
21
+ import"./cli-bhjt02p8.js";
22
+ import"./cli-8hs41zy2.js";
23
+ import"./cli-1ayk1eas.js";
24
+ import"./cli-wx3rhnm0.js";
25
+ init_scheduler2();
26
+
27
+ export {
28
+ calculateNextRun2 as calculateNextRun,
29
+ runScheduleNow2 as runScheduleNow,
30
+ startScheduler2 as startScheduler,
31
+ stopScheduler2 as stopScheduler
32
+ };
@@ -21,7 +21,7 @@ import {
21
21
  require_scala,
22
22
  require_swift,
23
23
  require_typescript
24
- } from "./cli-edmm9d9y.js";
24
+ } from "./cli-vqypxzh4.js";
25
25
  import {
26
26
  __commonJS
27
27
  } from "./cli-242037k3.js";