@desplega.ai/agent-swarm 1.131.0 → 1.133.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. package/README.md +2 -2
  2. package/dist/{actions-w53mbns9.js → actions-cskpayd7.js} +11 -9
  3. package/dist/{anthropic-messages-rjmd2e7n.js → anthropic-messages-tpxtbx7b.js} +28 -12
  4. package/dist/{app-m9gwqsqv.js → app-ang77nbb.js} +8 -6
  5. package/dist/{assistant-bp65m6f3.js → assistant-b4exebdw.js} +16 -13
  6. package/dist/{azure-openai-responses-c0yjmbfd.js → azure-openai-responses-m3921t4y.js} +8 -8
  7. package/dist/{boot-reembed-62p0at2k.js → boot-reembed-ps2aftpb.js} +9 -7
  8. package/dist/{boot-reembed-xmfp6wdh.js → boot-reembed-znyk3nxb.js} +10 -8
  9. package/dist/{boot-scrub-logs-rr8q2dms.js → boot-scrub-logs-2ax3xgz1.js} +7 -5
  10. package/dist/{claude-adapter-2y47mrkd.js → claude-adapter-3ct8kgxw.js} +13 -9
  11. package/dist/{claude-managed-adapter-gv19tdew.js → claude-managed-adapter-akx4ntf2.js} +2 -2
  12. package/dist/{cli-t1xze5qh.js → cli-13w2hwkh.js} +1 -1
  13. package/dist/{cli-efxfnq6q.js → cli-1532szb1.js} +8 -6
  14. package/dist/{cli-d2tfkcga.js → cli-23d3rseb.js} +33 -17
  15. package/dist/{cli-nm5gtp1x.js → cli-2a75z9c5.js} +196 -7
  16. package/dist/{cli-fywms69x.js → cli-2t30rj0d.js} +1 -1
  17. package/dist/{cli-cvgjwnh1.js → cli-3c3tdgab.js} +10 -10
  18. package/dist/{cli-pm6xbh84.js → cli-3zzxa9jz.js} +46 -16
  19. package/dist/{cli-cdeg08wx.js → cli-4k6233gc.js} +1 -1
  20. package/dist/{cli-t55yw3a1.js → cli-5p2tz05r.js} +2 -2
  21. package/dist/{cli-0rcyq6d9.js → cli-5z2yhzvd.js} +125 -47
  22. package/dist/{cli-3kf51j15.js → cli-6zfq31nj.js} +9 -3
  23. package/dist/{cli-er3a4bb0.js → cli-8m9de10a.js} +6 -1
  24. package/dist/{cli-gm9cbhbq.js → cli-8t14vg9w.js} +27 -8
  25. package/dist/{cli-72q8m8gk.js → cli-9nfc2es8.js} +6 -6
  26. package/dist/{cli-5ze9rv97.js → cli-9ta3pwms.js} +11 -4
  27. package/dist/{cli-78xwvkhj.js → cli-avr0ns7z.js} +2 -2
  28. package/dist/{cli-n6h8qt8n.js → cli-c897wyhw.js} +12 -7
  29. package/dist/{cli-2q72qz2s.js → cli-dgk20ft7.js} +15 -6
  30. package/dist/cli-et1bbwqf.js +13 -0
  31. package/dist/{cli-bqw0mt1n.js → cli-f5w27pj3.js} +3 -3
  32. package/dist/{cli-2wadx7p2.js → cli-f8dre4bz.js} +2 -2
  33. package/dist/{cli-e7ckcg4v.js → cli-ftwpv451.js} +170 -387
  34. package/dist/{cli-g6b8x1h8.js → cli-g854s2dw.js} +1 -1
  35. package/dist/{cli-5kx36evn.js → cli-ggmdxeqa.js} +13 -8
  36. package/dist/cli-hkwfe3qj.js +530 -0
  37. package/dist/{cli-5dsbcjjw.js → cli-jqwnqx9m.js} +1 -1
  38. package/dist/{cli-9dr5qzc0.js → cli-ny122vh4.js} +21 -10
  39. package/dist/{cli-5v4rw6yd.js → cli-pvzqhbs9.js} +2 -2
  40. package/dist/cli-pzq5rjym.js +15 -0
  41. package/dist/{cli-xpxde7rm.js → cli-qes8ef67.js} +48 -30
  42. package/dist/{cli-sajgpkqg.js → cli-qs9hhsvb.js} +1723 -325
  43. package/dist/cli-qys3rhhz.js +27 -0
  44. package/dist/{cli-rzbpmxdr.js → cli-r6tpm37h.js} +2 -2
  45. package/dist/{cli-qv61hp37.js → cli-rch80c76.js} +2 -2
  46. package/dist/{cli-0258203w.js → cli-rpp0x4zy.js} +137 -17
  47. package/dist/{cli-5n6e5yfn.js → cli-s1k0wxhe.js} +12 -7
  48. package/dist/{cli-psh3c4va.js → cli-sfd9v7sj.js} +1 -1
  49. package/dist/{cli-70xqj0z3.js → cli-sh3ytsyj.js} +49 -39
  50. package/dist/{cli-zsspvvm2.js → cli-w1mp9jy7.js} +1 -1
  51. package/dist/{cli-d3x3x1c9.js → cli-xdb4mpnp.js} +2 -2
  52. package/dist/{cli-57khth04.js → cli-xmyqv00z.js} +120 -4
  53. package/dist/{cli-yw8vghx2.js → cli-xv8t8p3c.js} +65 -32
  54. package/dist/{cli-f1am9szv.js → cli-xxv5pn4f.js} +1 -1
  55. package/dist/{cli-t76vw5db.js → cli-y08jvxzx.js} +601 -140
  56. package/dist/{cli-a4jzdpa3.js → cli-zfbf3srj.js} +650 -245
  57. package/dist/{cli-a40rnf71.js → cli-zmq89k34.js} +6 -6
  58. package/dist/{cli-qmdnhpej.js → cli-zr9q011v.js} +23 -13
  59. package/dist/cli.js +22 -22
  60. package/dist/{codex-adapter-d24q75wk.js → codex-adapter-bef93pq4.js} +9 -7
  61. package/dist/{codex-hook-hq54t9ft.js → codex-hook-e8dba65p.js} +3 -2
  62. package/dist/{codex-session-runner-g50vcsex.js → codex-session-runner-5pkxys7x.js} +9 -7
  63. package/dist/{commands-c3nrc5hg.js → commands-e23s1bff.js} +9 -7
  64. package/dist/{db-nt7fg3tw.js → db-m3nabatn.js} +17 -5
  65. package/dist/{google-generative-ai-hysrd8qx.js → google-generative-ai-8maw55xh.js} +11 -8
  66. package/dist/{google-vertex-p5arrga0.js → google-vertex-8vjqmx8g.js} +11 -8
  67. package/dist/{handlers-fkr6swat.js → handlers-akazedvr.js} +16 -13
  68. package/dist/{hook-77wpvnjc.js → hook-ze4cpf0v.js} +55 -41
  69. package/dist/{hook-g019yehy.js → hook-zfqyyenw.js} +10 -7
  70. package/dist/{http-jewj0syk.js → http-sja0n6kw.js} +730 -150
  71. package/dist/index-0gr8vd6k.js +39 -0
  72. package/dist/{index-7n2xpbd4.js → index-354vkhdv.js} +154 -74
  73. package/dist/{index-070v4eyb.js → index-5qthek5t.js} +2 -3
  74. package/dist/{index-hfvggd0z.js → index-95t3cqq5.js} +16 -14
  75. package/dist/{index-9znhar3x.js → index-sea66619.js} +3 -4
  76. package/dist/{index-6gm5he8h.js → index-vpn36mma.js} +15 -13
  77. package/dist/{keepalive-j0fjvqfd.js → keepalive-3sp3meqj.js} +16 -10
  78. package/dist/{lead-1n8x30xe.js → lead-mefeewkf.js} +39 -36
  79. package/dist/{maintenance-gvev11sa.js → maintenance-8tbrbjfg.js} +10 -8
  80. package/dist/mistral-conversations-00zrp7g4.js +717 -0
  81. package/dist/{oauth-refresh-sweep-s9ecsvh0.js → oauth-refresh-sweep-srjwjz6m.js} +8 -6
  82. package/dist/{onboard-pvm5b38w.js → onboard-mt2tgyjg.js} +7 -7
  83. package/dist/{openai-codex-responses-5g27pd6f.js → openai-codex-responses-map32h2s.js} +18 -18
  84. package/dist/{openai-completions-3vkmfz2a.js → openai-completions-w871b1cq.js} +12 -11
  85. package/dist/{openai-responses-dg4t7j7a.js → openai-responses-b0j7xnw8.js} +15 -12
  86. package/dist/{opencode-adapter-1gm38aba.js → opencode-adapter-b39jefcj.js} +5 -3
  87. package/dist/{openrouter-images-g3gm8931.js → openrouter-images-srfkywy0.js} +4 -4
  88. package/dist/{otel-impl-p6jvgd9c.js → otel-impl-z6pxt3j9.js} +224 -9
  89. package/dist/{pi-mono-adapter-t091s27g.js → pi-mono-adapter-btvqmj58.js} +1138 -408
  90. package/dist/{pricing-refresh-k49rcyed.js → pricing-refresh-kyq8cezh.js} +9 -7
  91. package/dist/{rbac-roles-cr80g96t.js → rbac-roles-3ryfrfna.js} +8 -6
  92. package/dist/{rbac-roles-30pspvy7.js → rbac-roles-6qfvbee1.js} +9 -7
  93. package/dist/{render-v2-xm457ng1.js → render-v2-p61ppjey.js} +8 -6
  94. package/dist/{seed-pricing-yhpv35fr.js → seed-pricing-j56bbj4y.js} +8 -6
  95. package/dist/{setup-nytnmwwr.js → setup-tpr6c1kn.js} +2 -2
  96. package/dist/{worker-msytr2cw.js → worker-9w1v0mbb.js} +39 -36
  97. package/openapi.json +542 -16
  98. package/package.json +6 -6
  99. package/src/be/budget-refusal-notify.ts +14 -7
  100. package/src/be/db-queries/task-artifacts.ts +182 -0
  101. package/src/be/db.ts +783 -169
  102. package/src/be/events.ts +5 -0
  103. package/src/be/migrations/130_scratch_script_retention_grace.sql +6 -0
  104. package/src/be/migrations/131_session_logs_created_at_index.sql +2 -0
  105. package/src/be/migrations/132_multi_runtime_instances.sql +44 -0
  106. package/src/be/migrations/133_workflow_run_trigger_type.sql +12 -0
  107. package/src/be/migrations/135_backfill_task_pull_request_attachments.sql +228 -0
  108. package/src/be/migrations/136_task_requester_provenance.sql +37 -0
  109. package/src/be/migrations/137_memory_retrieval_composite_index.sql +1 -0
  110. package/src/be/multi-runtime.ts +430 -0
  111. package/src/be/scripts/db.ts +43 -1
  112. package/src/be/scripts/extract-schema.ts +3 -1
  113. package/src/be/scripts/retention.ts +164 -0
  114. package/src/be/scripts/run-saved.ts +16 -1
  115. package/src/be/scripts/typecheck.ts +3 -2
  116. package/src/be/seed-skills/index.ts +7 -0
  117. package/src/be/steering.ts +1 -1
  118. package/src/be/swarm-config-guard.ts +18 -0
  119. package/src/commands/credential-wait.ts +54 -0
  120. package/src/commands/onboard/steps/core-credentials.tsx +1 -1
  121. package/src/commands/onboard/steps/custom-templates.tsx +1 -1
  122. package/src/commands/onboard/steps/harness-credentials.tsx +1 -1
  123. package/src/commands/onboard/steps/health-check.tsx +1 -1
  124. package/src/commands/onboard/steps/start.tsx +1 -1
  125. package/src/commands/profile-sync-audit.ts +56 -0
  126. package/src/commands/profile-sync.ts +287 -15
  127. package/src/commands/provider-credentials.ts +46 -19
  128. package/src/commands/runner.ts +196 -33
  129. package/src/commands/templates.ts +22 -0
  130. package/src/github/handlers.ts +55 -9
  131. package/src/heartbeat/heartbeat.ts +71 -12
  132. package/src/hooks/hook.ts +49 -33
  133. package/src/http/active-sessions.ts +11 -1
  134. package/src/http/agents.ts +261 -30
  135. package/src/http/all-routes.ts +1 -0
  136. package/src/http/config.ts +13 -2
  137. package/src/http/core.ts +102 -4
  138. package/src/http/db-query-bounded.ts +313 -0
  139. package/src/http/db-query-shared.ts +249 -0
  140. package/src/http/db-query.ts +54 -42
  141. package/src/http/events.ts +2 -0
  142. package/src/http/index.ts +27 -2
  143. package/src/http/mcp-bridge.ts +37 -3
  144. package/src/http/mcp.ts +12 -0
  145. package/src/http/memory.ts +13 -2
  146. package/src/http/openapi.ts +1 -0
  147. package/src/http/poll.ts +70 -27
  148. package/src/http/route-def.ts +43 -9
  149. package/src/http/schedules.ts +2 -2
  150. package/src/http/scripts.ts +31 -4
  151. package/src/http/session-data.ts +44 -0
  152. package/src/http/tasks.ts +2 -2
  153. package/src/http/users.ts +74 -52
  154. package/src/http/webhooks.ts +5 -2
  155. package/src/http/workflows.ts +1 -4
  156. package/src/http/x.ts +14 -0
  157. package/src/integrations/kapso/inbound.ts +1 -1
  158. package/src/jira/outbound.ts +39 -8
  159. package/src/jira/webhook-lifecycle.ts +13 -2
  160. package/src/linear/outbound.ts +43 -10
  161. package/src/oauth/keepalive.ts +13 -2
  162. package/src/prompts/base-prompt.ts +1 -1
  163. package/src/prompts/session-templates.ts +45 -7
  164. package/src/providers/claude-adapter.ts +6 -0
  165. package/src/providers/claude-managed-models.ts +34 -10
  166. package/src/providers/codex-adapter.ts +6 -0
  167. package/src/providers/opencode-adapter.ts +6 -0
  168. package/src/providers/pi-mono-adapter.ts +8 -0
  169. package/src/providers/pricing-sources.md +24 -0
  170. package/src/queue-stall-alarm.ts +216 -0
  171. package/src/scheduler/scheduler.ts +7 -0
  172. package/src/script-workflows/executor.ts +2 -1
  173. package/src/scripts-runtime/executors/native.ts +2 -1
  174. package/src/scripts-runtime/executors/types.ts +5 -0
  175. package/src/scripts-runtime/loader.ts +5 -0
  176. package/src/scripts-runtime/swarm-config.ts +8 -0
  177. package/src/scripts-runtime/swarm-sdk.ts +7 -0
  178. package/src/scripts-runtime/types/stdlib.d.ts +1 -0
  179. package/src/scripts-runtime/types/swarm-sdk.d.ts +1 -0
  180. package/src/tests/budget-claim-gate.test.ts +20 -0
  181. package/src/tests/claude-adapter.test.ts +32 -0
  182. package/src/tests/claude-managed-adapter.test.ts +38 -7
  183. package/src/tests/codex-adapter.test.ts +30 -0
  184. package/src/tests/create-task-validation.test.ts +128 -0
  185. package/src/tests/credential-wait.test.ts +67 -1
  186. package/src/tests/db-query.test.ts +711 -2
  187. package/src/tests/http-api-integration.test.ts +81 -0
  188. package/src/tests/http-users.test.ts +166 -1
  189. package/src/tests/identity-field-budget.test.ts +176 -0
  190. package/src/tests/mcp-tools-user.test.ts +34 -0
  191. package/src/tests/mcp-user-route.test.ts +17 -0
  192. package/src/tests/metrics-http.test.ts +44 -0
  193. package/src/tests/multi-runtime-registration.test.ts +2703 -0
  194. package/src/tests/openapi-response-contract.test.ts +24 -0
  195. package/src/tests/openapi-route-headers.test.ts +83 -0
  196. package/src/tests/opencode-adapter.test.ts +40 -0
  197. package/src/tests/outbound-listener-rejection.test.ts +138 -0
  198. package/src/tests/pi-mono-adapter.test.ts +98 -0
  199. package/src/tests/profile-sync-warning.test.ts +277 -0
  200. package/src/tests/profile-sync.test.ts +232 -6
  201. package/src/tests/prompt-template-session.test.ts +32 -3
  202. package/src/tests/queue-stall-alarm.test.ts +226 -0
  203. package/src/tests/requester-comms.test.ts +32 -0
  204. package/src/tests/runner-requester-profile.test.ts +38 -0
  205. package/src/tests/sandboxed-process.test.ts +45 -0
  206. package/src/tests/schedule-target-type.test.ts +38 -0
  207. package/src/tests/script-connections.test.ts +16 -3
  208. package/src/tests/scripts-external-api.test.ts +8 -3
  209. package/src/tests/scripts-http.test.ts +12 -0
  210. package/src/tests/scripts-retention.test.ts +384 -0
  211. package/src/tests/scripts-runtime-identity.test.ts +375 -0
  212. package/src/tests/scripts-runtime.test.ts +4 -3
  213. package/src/tests/sdk-allowlist.test.ts +47 -0
  214. package/src/tests/send-task-requested-by.test.ts +9 -0
  215. package/src/tests/session-costs.test.ts +506 -1
  216. package/src/tests/shutdown-error-scrubbing.test.ts +92 -0
  217. package/src/tests/steering-core.test.ts +28 -0
  218. package/src/tests/task-artifacts.test.ts +386 -0
  219. package/src/tests/task-attachments-schema.test.ts +17 -1
  220. package/src/tests/task-completion-idempotency.test.ts +57 -0
  221. package/src/tests/task-pull-request-backfill-migration.test.ts +321 -0
  222. package/src/tests/update-profile-api.test.ts +67 -39
  223. package/src/tests/update-profile-auth.test.ts +48 -4
  224. package/src/tests/user-attribution-migration.test.ts +54 -0
  225. package/src/tests/user-identity.test.ts +72 -0
  226. package/src/tests/workflow-async-v2.test.ts +39 -1
  227. package/src/tests/workflow-http-v2.test.ts +3 -2
  228. package/src/tests/workflow-mcp-trigger-schema.test.ts +52 -3
  229. package/src/tests/workflow-retry-v2.test.ts +45 -1
  230. package/src/tests/workflow-swarm-script.test.ts +14 -5
  231. package/src/tools/db-query.ts +18 -8
  232. package/src/tools/get-task-details.ts +24 -3
  233. package/src/tools/manage-user.ts +36 -3
  234. package/src/tools/poll-task.ts +93 -14
  235. package/src/tools/script-common.ts +5 -0
  236. package/src/tools/send-task.ts +1 -4
  237. package/src/tools/store-progress.ts +13 -2
  238. package/src/tools/swarm-config/delete-config.ts +9 -0
  239. package/src/tools/swarm-config/set-config.ts +3 -2
  240. package/src/tools/task-action.ts +30 -0
  241. package/src/tools/task-tool-ctx.ts +8 -1
  242. package/src/tools/update-profile.ts +16 -21
  243. package/src/tools/utils.ts +5 -0
  244. package/src/tools/workflows/trigger-workflow.ts +7 -1
  245. package/src/types.ts +165 -1
  246. package/src/utils/github-pull-request.ts +76 -0
  247. package/src/utils/identity-field-budget.ts +73 -0
  248. package/src/utils/multi-runtime.ts +20 -0
  249. package/src/utils/requester-comms.ts +24 -0
  250. package/src/utils/sandboxed-process.ts +40 -14
  251. package/src/workflows/engine.ts +22 -2
  252. package/src/workflows/executors/swarm-script.ts +24 -1
  253. package/src/workflows/resume.ts +19 -11
  254. package/src/workflows/retry-poller.ts +1 -0
  255. package/src/workflows/triggers.ts +4 -0
  256. package/templates/schedules/daily-compounding-reflection/content.md +12 -3
  257. package/templates/skills/db-query-guidance/config.json +14 -0
  258. package/templates/skills/db-query-guidance/content.md +57 -0
  259. package/dist/cli-3te4jdkm.js +0 -225
  260. package/dist/cli-bmze986d.js +0 -7
  261. package/dist/cli-kh3ba2zf.js +0 -607
  262. package/dist/index-hp1kdbjj.js +0 -36
  263. package/dist/mistral-conversations-81fwav0j.js +0 -30578
  264. package/dist/otel-nqa12wf3.js +0 -3149
  265. package/dist/{pi-messages-tqj8q6b9.js → pi-messages-sssy32x4.js} +3 -3
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createAdditiveBuffer,
3
3
  extractSlackMessageText
4
- } from "./cli-d3x3x1c9.js";
4
+ } from "./cli-xdb4mpnp.js";
5
5
  import {
6
6
  rewriteSlackMentions
7
- } from "./cli-78xwvkhj.js";
7
+ } from "./cli-avr0ns7z.js";
8
8
  import {
9
9
  createTaskWithSiblingAwareness
10
- } from "./cli-cdeg08wx.js";
10
+ } from "./cli-4k6233gc.js";
11
11
  import {
12
12
  buildBufferFlushBlocks,
13
13
  ensureSlackThreadTree,
@@ -16,7 +16,7 @@ import {
16
16
  getSlackApp,
17
17
  isSlackRenderV2Enabled,
18
18
  registerTreeMessage
19
- } from "./cli-cvgjwnh1.js";
19
+ } from "./cli-3c3tdgab.js";
20
20
  import {
21
21
  createLogEntry,
22
22
  getAgentById,
@@ -29,13 +29,13 @@ import {
29
29
  init_steering,
30
30
  requestSteering,
31
31
  slackContextKey
32
- } from "./cli-a4jzdpa3.js";
32
+ } from "./cli-zfbf3srj.js";
33
33
  import {
34
34
  init_registry,
35
35
  init_steering_enabled,
36
36
  isSteeringEnabled,
37
37
  registerTemplate
38
- } from "./cli-xpxde7rm.js";
38
+ } from "./cli-qes8ef67.js";
39
39
 
40
40
  // src/slack/event-dedup.ts
41
41
  var DEFAULT_TTL_MS = 300000;
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  createSwarmEventHandler
3
3
  } from "./cli-07er7wrs.js";
4
- import {
5
- readPkgVersion
6
- } from "./cli-d6n0thxw.js";
7
- import {
8
- checkToolLoop
9
- } from "./cli-yv9dttkh.js";
10
4
  import {
11
5
  CONTEXT_FORMULA,
12
6
  clampContextPercent,
13
7
  computeContextUsedUnified,
14
8
  getContextWindowSize
15
9
  } from "./cli-cw70hymf.js";
10
+ import {
11
+ readPkgVersion
12
+ } from "./cli-d6n0thxw.js";
13
+ import {
14
+ checkToolLoop
15
+ } from "./cli-yv9dttkh.js";
16
16
  import {
17
17
  Anthropic
18
18
  } from "./cli-gz9sbyk3.js";
@@ -45,10 +45,19 @@ var CLAUDE_MANAGED_MODEL_PRICING = {
45
45
  cacheWritePerMillion: 12.5
46
46
  },
47
47
  "claude-sonnet-5": {
48
- inputPerMillion: 3,
49
- outputPerMillion: 15,
50
- cacheReadPerMillion: 0.3,
51
- cacheWritePerMillion: 3.75
48
+ inputPerMillion: 2,
49
+ outputPerMillion: 10,
50
+ cacheReadPerMillion: 0.2,
51
+ cacheWritePerMillion: 2.5,
52
+ scheduledChange: {
53
+ effectiveAt: "2026-09-01T00:00:00.000Z",
54
+ pricing: {
55
+ inputPerMillion: 3,
56
+ outputPerMillion: 15,
57
+ cacheReadPerMillion: 0.3,
58
+ cacheWritePerMillion: 3.75
59
+ }
60
+ }
52
61
  },
53
62
  "claude-sonnet-4-6": {
54
63
  inputPerMillion: 3,
@@ -82,15 +91,16 @@ var CLAUDE_MANAGED_MODEL_PRICING = {
82
91
  }
83
92
  };
84
93
  var warnedUnknownModels = new Set;
85
- function computeClaudeManagedCostUsd(model, inputTokens, outputTokens, cacheReadTokens, cacheWriteTokens) {
86
- const pricing = CLAUDE_MANAGED_MODEL_PRICING[model];
87
- if (!pricing) {
94
+ function computeClaudeManagedCostUsd(model, inputTokens, outputTokens, cacheReadTokens, cacheWriteTokens, pricedAtMs = Date.now()) {
95
+ const configuredPricing = CLAUDE_MANAGED_MODEL_PRICING[model];
96
+ if (!configuredPricing) {
88
97
  if (!warnedUnknownModels.has(model)) {
89
98
  warnedUnknownModels.add(model);
90
99
  console.warn(`[claude-managed-models] Unknown model "${model}" — returning $0 cost. ` + `Add it to CLAUDE_MANAGED_MODEL_PRICING in src/providers/claude-managed-models.ts.`);
91
100
  }
92
101
  return 0;
93
102
  }
103
+ const pricing = configuredPricing.scheduledChange && pricedAtMs >= Date.parse(configuredPricing.scheduledChange.effectiveAt) ? configuredPricing.scheduledChange.pricing : configuredPricing;
94
104
  const inputCost = inputTokens / 1e6 * pricing.inputPerMillion;
95
105
  const outputCost = outputTokens / 1e6 * pricing.outputPerMillion;
96
106
  const cacheReadCost = cacheReadTokens / 1e6 * pricing.cacheReadPerMillion;
package/dist/cli.js CHANGED
@@ -13,19 +13,19 @@ import"./cli-ap1czx8f.js";
13
13
  import"./cli-v69vk5h0.js";
14
14
  import {
15
15
  bedrockProviderModule
16
- } from "./cli-9dr5qzc0.js";
17
- import"./cli-cwy5hqbq.js";
16
+ } from "./cli-ny122vh4.js";
17
+ import"./cli-jvv0g8bh.js";
18
18
  import {
19
19
  setBedrockProviderModule
20
20
  } from "./cli-darcwax3.js";
21
- import"./cli-jvv0g8bh.js";
22
21
  import"./cli-r6kqqbj0.js";
22
+ import"./cli-cwy5hqbq.js";
23
23
  import"./cli-6map995v.js";
24
24
  import"./cli-4wgngmwv.js";
25
- import"./cli-vapyk8sw.js";
26
25
  import"./cli-zyxs93y9.js";
27
- import"./cli-57khth04.js";
26
+ import"./cli-xmyqv00z.js";
28
27
  import"./cli-y2apkfe2.js";
28
+ import"./cli-vapyk8sw.js";
29
29
  import"./cli-akdvwc9v.js";
30
30
  import"./cli-8wrympd7.js";
31
31
  import"./cli-7sgrxg9a.js";
@@ -65,7 +65,7 @@ var import_react = __toESM(require_react(), 1);
65
65
  // package.json
66
66
  var package_default = {
67
67
  name: "@desplega.ai/agent-swarm",
68
- version: "1.131.0",
68
+ version: "1.133.1",
69
69
  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.",
70
70
  keywords: [
71
71
  "agent-swarm.dev",
@@ -234,14 +234,14 @@ var package_default = {
234
234
  "@aws-sdk/client-bedrock": "3.1048.0",
235
235
  "@desplega.ai/business-use": "^0.4.2",
236
236
  "@desplega.ai/localtunnel": "^2.2.0",
237
- "@earendil-works/pi-agent-core": "^0.84.1",
238
- "@earendil-works/pi-ai": "^0.84.1",
239
- "@earendil-works/pi-coding-agent": "^0.84.1",
237
+ "@earendil-works/pi-agent-core": "^0.84.2",
238
+ "@earendil-works/pi-ai": "^0.84.2",
239
+ "@earendil-works/pi-coding-agent": "^0.84.2",
240
240
  "@inkjs/ui": "^2.0.0",
241
241
  "@linear/sdk": "^77.0.0",
242
242
  "@modelcontextprotocol/sdk": "^1.25.1",
243
- "@openai/codex-sdk": "^0.147.0",
244
- "@opencode-ai/sdk": "^1.18.15",
243
+ "@openai/codex-sdk": "^0.148.0",
244
+ "@opencode-ai/sdk": "^1.18.18",
245
245
  "@openfort/openfort-node": "^0.9.1",
246
246
  "@opentelemetry/api": "^1.9.1",
247
247
  "@opentelemetry/exporter-metrics-otlp-http": "^0.218.0",
@@ -699,7 +699,7 @@ function McpServer({ port, apiKey, dbPath }) {
699
699
  if (dbPath) {
700
700
  process.env.DATABASE_PATH = dbPath;
701
701
  }
702
- import("./http-jewj0syk.js").then(() => {
702
+ import("./http-sja0n6kw.js").then(() => {
703
703
  setStatus("running");
704
704
  }).catch((err) => {
705
705
  setStatus("error");
@@ -785,7 +785,7 @@ function WorkerRunner({
785
785
  }) {
786
786
  const { exit } = use_app_default();
787
787
  import_react.useEffect(() => {
788
- import("./worker-msytr2cw.js").then(({ runWorker }) => runWorker({
788
+ import("./worker-9w1v0mbb.js").then(({ runWorker }) => runWorker({
789
789
  prompt: prompt || undefined,
790
790
  yolo,
791
791
  systemPrompt: systemPrompt || undefined,
@@ -802,7 +802,7 @@ function WorkerRunner({
802
802
  function LeadRunner({ prompt, yolo, systemPrompt, systemPromptFile, additionalArgs }) {
803
803
  const { exit } = use_app_default();
804
804
  import_react.useEffect(() => {
805
- import("./lead-1n8x30xe.js").then(({ runLead }) => runLead({
805
+ import("./lead-mefeewkf.js").then(({ runLead }) => runLead({
806
806
  prompt: prompt || undefined,
807
807
  yolo,
808
808
  systemPrompt: systemPrompt || undefined,
@@ -842,8 +842,8 @@ function LazyComponent({
842
842
  }
843
843
  return import_react.createElement(Component, props);
844
844
  }
845
- var loadOnboard = () => import("./onboard-pvm5b38w.js").then(({ Onboard }) => Onboard);
846
- var loadConnect = () => import("./setup-nytnmwwr.js").then(({ Setup }) => Setup);
845
+ var loadOnboard = () => import("./onboard-mt2tgyjg.js").then(({ Onboard }) => Onboard);
846
+ var loadConnect = () => import("./setup-tpr6c1kn.js").then(({ Setup }) => Setup);
847
847
  function UnknownCommand({ command }) {
848
848
  const { exit } = use_app_default();
849
849
  import_react.useEffect(() => {
@@ -956,14 +956,14 @@ ${binName} docs \u2014 v${package_default.version}
956
956
  }
957
957
  process.exit(0);
958
958
  } else if (args.command === "hook") {
959
- const { runHook } = await import("./hook-g019yehy.js");
959
+ const { runHook } = await import("./hook-zfqyyenw.js");
960
960
  await runHook();
961
961
  } else if (args.command === "codex-hook") {
962
- const { handleCodexHook } = await import("./codex-hook-hq54t9ft.js");
962
+ const { handleCodexHook } = await import("./codex-hook-e8dba65p.js");
963
963
  await handleCodexHook();
964
964
  process.exit(0);
965
965
  } else if (args.command === "session-summary-stdin") {
966
- const { runSessionSummaryFromStdin } = await import("./hook-77wpvnjc.js");
966
+ const { runSessionSummaryFromStdin } = await import("./hook-ze4cpf0v.js");
967
967
  await runSessionSummaryFromStdin();
968
968
  process.exit(process.exitCode ?? 0);
969
969
  } else if (args.command === "artifact") {
@@ -984,7 +984,7 @@ ${binName} docs \u2014 v${package_default.version}
984
984
  printHelp("scripts");
985
985
  process.exit(scriptsArgs[0] === "reembed" || args.showHelp ? 0 : 1);
986
986
  }
987
- const { runScriptsMaintenanceCommand } = await import("./maintenance-gvev11sa.js");
987
+ const { runScriptsMaintenanceCommand } = await import("./maintenance-8tbrbjfg.js");
988
988
  await runScriptsMaintenanceCommand(scriptsArgs);
989
989
  console.log("Scripts re-embedded.");
990
990
  } else if (args.command === "rbac") {
@@ -994,14 +994,14 @@ ${binName} docs \u2014 v${package_default.version}
994
994
  printHelp("rbac");
995
995
  process.exit(args.showHelp ? 0 : 1);
996
996
  }
997
- const { runRbacCliCommand } = await import("./rbac-roles-cr80g96t.js");
997
+ const { runRbacCliCommand } = await import("./rbac-roles-3ryfrfna.js");
998
998
  await runRbacCliCommand(rbacArgs);
999
999
  } else if (args.command === "codex-login") {
1000
1000
  const { runCodexLogin } = await import("./codex-login-z6yhbkmk.js");
1001
1001
  const codexLoginArgs = process.argv.slice(process.argv.indexOf("codex-login") + 1);
1002
1002
  await runCodexLogin(codexLoginArgs);
1003
1003
  } else if (args.command === "codex-session-runner") {
1004
- const { runCodexSessionRunner } = await import("./codex-session-runner-g50vcsex.js");
1004
+ const { runCodexSessionRunner } = await import("./codex-session-runner-5pkxys7x.js");
1005
1005
  await runCodexSessionRunner();
1006
1006
  } else if (args.command === "claude-managed-setup") {
1007
1007
  const { runClaudeManagedSetup } = await import("./claude-managed-setup-52z4mq9w.js");
@@ -6,25 +6,27 @@ import {
6
6
  createInProcessCodexSession,
7
7
  resolveCodexAuthMode,
8
8
  resolveCodexRunnerArgv
9
- } from "./cli-5kx36evn.js";
9
+ } from "./cli-ggmdxeqa.js";
10
10
  import"./cli-07er7wrs.js";
11
11
  import"./cli-r94z9p1z.js";
12
- import"./cli-d6n0thxw.js";
13
12
  import"./cli-psrqtw2m.js";
14
- import"./cli-0rcyq6d9.js";
15
- import"./cli-yv9dttkh.js";
16
13
  import"./cli-zm7njwzd.js";
17
14
  import"./cli-cw70hymf.js";
15
+ import"./cli-d6n0thxw.js";
16
+ import"./cli-5z2yhzvd.js";
17
+ import"./cli-yv9dttkh.js";
18
18
  import"./cli-v1mwc5v2.js";
19
- import"./cli-2wadx7p2.js";
19
+ import"./cli-f8dre4bz.js";
20
20
  import"./cli-e7d20cty.js";
21
21
  import"./cli-8whqavk2.js";
22
+ import"./cli-pzq5rjym.js";
22
23
  import"./cli-3dpj7atn.js";
23
24
  import"./cli-f14fvzag.js";
24
25
  import"./cli-7zd05xb4.js";
25
- import"./cli-zsspvvm2.js";
26
+ import"./cli-qys3rhhz.js";
27
+ import"./cli-w1mp9jy7.js";
26
28
  import"./cli-4j2mrzag.js";
27
- import"./cli-5dsbcjjw.js";
29
+ import"./cli-jqwnqx9m.js";
28
30
  import"./cli-darcwax3.js";
29
31
  import"./cli-4wgngmwv.js";
30
32
  import"./cli-zyxs93y9.js";
@@ -1,18 +1,19 @@
1
1
  #!/usr/bin/env bun
2
2
  import {
3
3
  renderSteeringDelivery
4
- } from "./cli-f1am9szv.js";
4
+ } from "./cli-xxv5pn4f.js";
5
5
  import {
6
6
  getApiKey
7
7
  } from "./cli-f14fvzag.js";
8
8
  import {
9
9
  init_steering_enabled,
10
10
  isSteeringEnabled
11
- } from "./cli-xpxde7rm.js";
11
+ } from "./cli-qes8ef67.js";
12
12
  import {
13
13
  getMcpBaseUrl,
14
14
  init_constants
15
15
  } from "./cli-x23me2mg.js";
16
+ import"./cli-qys3rhhz.js";
16
17
  import"./cli-p9swy5t3.js";
17
18
 
18
19
  // src/hooks/codex-hook.ts
@@ -1,24 +1,26 @@
1
1
  import {
2
2
  createInProcessCodexSession
3
- } from "./cli-5kx36evn.js";
3
+ } from "./cli-ggmdxeqa.js";
4
4
  import"./cli-07er7wrs.js";
5
5
  import"./cli-r94z9p1z.js";
6
- import"./cli-d6n0thxw.js";
7
6
  import"./cli-psrqtw2m.js";
8
- import"./cli-0rcyq6d9.js";
9
- import"./cli-yv9dttkh.js";
10
7
  import"./cli-zm7njwzd.js";
11
8
  import"./cli-cw70hymf.js";
9
+ import"./cli-d6n0thxw.js";
10
+ import"./cli-5z2yhzvd.js";
11
+ import"./cli-yv9dttkh.js";
12
12
  import"./cli-v1mwc5v2.js";
13
- import"./cli-2wadx7p2.js";
13
+ import"./cli-f8dre4bz.js";
14
14
  import"./cli-e7d20cty.js";
15
15
  import"./cli-8whqavk2.js";
16
+ import"./cli-pzq5rjym.js";
16
17
  import"./cli-3dpj7atn.js";
17
18
  import"./cli-f14fvzag.js";
18
19
  import"./cli-7zd05xb4.js";
19
- import"./cli-zsspvvm2.js";
20
+ import"./cli-qys3rhhz.js";
21
+ import"./cli-w1mp9jy7.js";
20
22
  import"./cli-4j2mrzag.js";
21
- import"./cli-5dsbcjjw.js";
23
+ import"./cli-jqwnqx9m.js";
22
24
  import"./cli-darcwax3.js";
23
25
  import"./cli-4wgngmwv.js";
24
26
  import"./cli-zyxs93y9.js";
@@ -2,17 +2,19 @@ import {
2
2
  getAllAgents,
3
3
  getAllTasks,
4
4
  init_db
5
- } from "./cli-a4jzdpa3.js";
5
+ } from "./cli-zfbf3srj.js";
6
+ import"./cli-hkwfe3qj.js";
7
+ import"./cli-qes8ef67.js";
8
+ import"./cli-x23me2mg.js";
9
+ import"./cli-z2zcxes1.js";
6
10
  import {
7
11
  init_env_flag,
8
12
  isEnvFlagEnabled
9
- } from "./cli-xpxde7rm.js";
10
- import"./cli-x23me2mg.js";
11
- import"./cli-z2zcxes1.js";
12
- import"./cli-zsspvvm2.js";
13
+ } from "./cli-qys3rhhz.js";
14
+ import"./cli-w1mp9jy7.js";
15
+ import"./cli-9nfc2es8.js";
13
16
  import"./cli-4j2mrzag.js";
14
- import"./cli-72q8m8gk.js";
15
- import"./cli-5dsbcjjw.js";
17
+ import"./cli-jqwnqx9m.js";
16
18
  import"./cli-p9swy5t3.js";
17
19
 
18
20
  // src/slack/commands.ts
@@ -3,6 +3,7 @@ import {
3
3
  MAX_EMPTY_POLLS,
4
4
  SKILL_FILE_LIMITS,
5
5
  UNATTRIBUTED_USER_ID,
6
+ __resetSqliteVecExtensionPathCacheForTests,
6
7
  acceptTask,
7
8
  agentQueries,
8
9
  assignUnassignedTaskPending,
@@ -136,6 +137,7 @@ import {
136
137
  getApprovalRequestByStepId,
137
138
  getAssetKeyMapping,
138
139
  getAssetKeyMappingByProvider,
140
+ getAttributionByPerson,
139
141
  getAvailableKeyIndices,
140
142
  getBudget,
141
143
  getBudgetRefusalNotification,
@@ -362,6 +364,7 @@ import {
362
364
  recordKeyRateLimitWindows,
363
365
  recordKeyUsage,
364
366
  recordSlackMessage,
367
+ recordTaskPullRequestAttachments,
365
368
  rejectTask,
366
369
  releaseMentionProcessing,
367
370
  releaseStaleMentionProcessing,
@@ -376,6 +379,7 @@ import {
376
379
  resetTasksNotified,
377
380
  resolveApprovalRequest,
378
381
  resolvePromptTemplate,
382
+ resolveSqliteVecExtensionPath,
379
383
  resolveWaitState,
380
384
  resumeTask,
381
385
  searchSkills,
@@ -398,6 +402,7 @@ import {
398
402
  updateActiveSessionProviderSessionId,
399
403
  updateAgentActivity,
400
404
  updateAgentCredStatus,
405
+ updateAgentCredentialMissing,
401
406
  updateAgentCredentialState,
402
407
  updateAgentMaxTasks,
403
408
  updateAgentName,
@@ -436,14 +441,16 @@ import {
436
441
  upsertSkillFiles,
437
442
  upsertSwarmConfig,
438
443
  withFavoriteFlags
439
- } from "./cli-a4jzdpa3.js";
440
- import"./cli-xpxde7rm.js";
444
+ } from "./cli-zfbf3srj.js";
445
+ import"./cli-hkwfe3qj.js";
446
+ import"./cli-qes8ef67.js";
441
447
  import"./cli-x23me2mg.js";
442
448
  import"./cli-z2zcxes1.js";
443
- import"./cli-zsspvvm2.js";
449
+ import"./cli-qys3rhhz.js";
450
+ import"./cli-w1mp9jy7.js";
451
+ import"./cli-9nfc2es8.js";
444
452
  import"./cli-4j2mrzag.js";
445
- import"./cli-72q8m8gk.js";
446
- import"./cli-5dsbcjjw.js";
453
+ import"./cli-jqwnqx9m.js";
447
454
  import"./cli-p9swy5t3.js";
448
455
  init_db();
449
456
 
@@ -486,6 +493,7 @@ export {
486
493
  updateAgentName,
487
494
  updateAgentMaxTasks,
488
495
  updateAgentCredentialState,
496
+ updateAgentCredentialMissing,
489
497
  updateAgentCredStatus,
490
498
  updateAgentActivity,
491
499
  updateActiveSessionProviderSessionId,
@@ -508,6 +516,7 @@ export {
508
516
  searchSkills,
509
517
  resumeTask,
510
518
  resolveWaitState,
519
+ resolveSqliteVecExtensionPath,
511
520
  resolvePromptTemplate,
512
521
  resolveApprovalRequest,
513
522
  resetTasksNotified,
@@ -522,6 +531,7 @@ export {
522
531
  releaseStaleMentionProcessing,
523
532
  releaseMentionProcessing,
524
533
  rejectTask,
534
+ recordTaskPullRequestAttachments,
525
535
  recordSlackMessage,
526
536
  recordKeyUsage,
527
537
  recordKeyRateLimitWindows,
@@ -747,6 +757,7 @@ export {
747
757
  getBudgetRefusalNotification,
748
758
  getBudget,
749
759
  getAvailableKeyIndices,
760
+ getAttributionByPerson,
750
761
  getAssetKeyMappingByProvider,
751
762
  getAssetKeyMapping,
752
763
  getApprovalRequestByStepId,
@@ -880,6 +891,7 @@ export {
880
891
  assignUnassignedTaskPending,
881
892
  agentQueries,
882
893
  acceptTask,
894
+ __resetSqliteVecExtensionPathCacheForTests,
883
895
  UNATTRIBUTED_USER_ID,
884
896
  SKILL_FILE_LIMITS,
885
897
  MAX_EMPTY_POLLS,
@@ -8,7 +8,7 @@ import {
8
8
  retainThoughtSignature,
9
9
  retryGoogleRequest,
10
10
  supportsGoogleStrictToolSampling
11
- } from "./cli-5n6e5yfn.js";
11
+ } from "./cli-s1k0wxhe.js";
12
12
  import"./cli-s8s499xy.js";
13
13
  import"./cli-4w4fmq9x.js";
14
14
  import"./cli-b0p7rfnd.js";
@@ -17,15 +17,15 @@ import {
17
17
  formatProviderError,
18
18
  normalizeProviderError
19
19
  } from "./cli-6map995v.js";
20
- import {
21
- providerHeadersToRecord
22
- } from "./cli-vapyk8sw.js";
23
20
  import {
24
21
  buildBaseOptions
25
- } from "./cli-57khth04.js";
22
+ } from "./cli-xmyqv00z.js";
26
23
  import {
27
24
  sanitizeSurrogates
28
25
  } from "./cli-y2apkfe2.js";
26
+ import {
27
+ providerHeadersToRecord
28
+ } from "./cli-vapyk8sw.js";
29
29
  import {
30
30
  calculateCost,
31
31
  clampThinkingLevel
@@ -175,7 +175,7 @@ var stream = (model, context, options) => {
175
175
  if (candidate?.finishReason) {
176
176
  output.rawStopReason = candidate.finishReason;
177
177
  output.stopReason = mapStopReason(candidate.finishReason);
178
- if (output.content.some((b) => b.type === "toolCall")) {
178
+ if (output.content.some((b) => b.type === "toolCall") && output.stopReason === "stop") {
179
179
  output.stopReason = "toolUse";
180
180
  }
181
181
  }
@@ -294,11 +294,14 @@ function buildParams(model, context, options = {}) {
294
294
  if (options.maxTokens !== undefined) {
295
295
  generationConfig.maxOutputTokens = options.maxTokens;
296
296
  }
297
- const functionCallingMode = context.tools?.length ? resolveGoogleFunctionCallingMode(context.tools, options.toolChoice, supportsGoogleStrictToolSampling(model.id)) : undefined;
297
+ const supportsStrictMode = supportsGoogleStrictToolSampling(model.id);
298
+ const functionCallingMode = context.tools?.length ? resolveGoogleFunctionCallingMode(context.tools, options.toolChoice, supportsStrictMode) : undefined;
298
299
  const config = {
299
300
  ...Object.keys(generationConfig).length > 0 && generationConfig,
300
301
  ...context.systemPrompt && { systemInstruction: sanitizeSurrogates(context.systemPrompt) },
301
- ...context.tools && context.tools.length > 0 && { tools: convertTools(context.tools) },
302
+ ...context.tools && context.tools.length > 0 && {
303
+ tools: convertTools(context.tools, false, supportsStrictMode)
304
+ },
302
305
  ...functionCallingMode !== undefined && {
303
306
  toolConfig: { functionCallingConfig: { mode: functionCallingMode } }
304
307
  }
@@ -10,7 +10,7 @@ import {
10
10
  retainThoughtSignature,
11
11
  retryGoogleRequest,
12
12
  supportsGoogleStrictToolSampling
13
- } from "./cli-5n6e5yfn.js";
13
+ } from "./cli-s1k0wxhe.js";
14
14
  import"./cli-s8s499xy.js";
15
15
  import"./cli-4w4fmq9x.js";
16
16
  import"./cli-b0p7rfnd.js";
@@ -22,15 +22,15 @@ import {
22
22
  import {
23
23
  getProviderEnvValue
24
24
  } from "./cli-4wgngmwv.js";
25
- import {
26
- providerHeadersToRecord
27
- } from "./cli-vapyk8sw.js";
28
25
  import {
29
26
  buildBaseOptions
30
- } from "./cli-57khth04.js";
27
+ } from "./cli-xmyqv00z.js";
31
28
  import {
32
29
  sanitizeSurrogates
33
30
  } from "./cli-y2apkfe2.js";
31
+ import {
32
+ providerHeadersToRecord
33
+ } from "./cli-vapyk8sw.js";
34
34
  import {
35
35
  calculateCost,
36
36
  clampThinkingLevel
@@ -186,7 +186,7 @@ var stream = (model, context, options) => {
186
186
  if (candidate?.finishReason) {
187
187
  output.rawStopReason = candidate.finishReason;
188
188
  output.stopReason = mapStopReason(candidate.finishReason);
189
- if (output.content.some((b) => b.type === "toolCall")) {
189
+ if (output.content.some((b) => b.type === "toolCall") && output.stopReason === "stop") {
190
190
  output.stopReason = "toolUse";
191
191
  }
192
192
  }
@@ -367,11 +367,14 @@ function buildParams(model, context, options = {}) {
367
367
  if (options.maxTokens !== undefined) {
368
368
  generationConfig.maxOutputTokens = options.maxTokens;
369
369
  }
370
- const functionCallingMode = context.tools?.length ? resolveGoogleFunctionCallingMode(context.tools, options.toolChoice, supportsGoogleStrictToolSampling(model.id)) : undefined;
370
+ const supportsStrictMode = supportsGoogleStrictToolSampling(model.id);
371
+ const functionCallingMode = context.tools?.length ? resolveGoogleFunctionCallingMode(context.tools, options.toolChoice, supportsStrictMode) : undefined;
371
372
  const config = {
372
373
  ...Object.keys(generationConfig).length > 0 && generationConfig,
373
374
  ...context.systemPrompt && { systemInstruction: sanitizeSurrogates(context.systemPrompt) },
374
- ...context.tools && context.tools.length > 0 && { tools: convertTools(context.tools) },
375
+ ...context.tools && context.tools.length > 0 && {
376
+ tools: convertTools(context.tools, false, supportsStrictMode)
377
+ },
375
378
  ...functionCallingMode !== undefined && {
376
379
  toolConfig: { functionCallingConfig: { mode: functionCallingMode } }
377
380
  }
@@ -5,29 +5,29 @@ import {
5
5
  instantFlush,
6
6
  requestSlackThreadSteering,
7
7
  wasEventSeen
8
- } from "./cli-a40rnf71.js";
8
+ } from "./cli-zmq89k34.js";
9
9
  import {
10
10
  extractSlackMessageText,
11
11
  extractTaskFromMessage,
12
12
  hasOtherUserMention,
13
13
  routeMessage
14
- } from "./cli-d3x3x1c9.js";
14
+ } from "./cli-xdb4mpnp.js";
15
15
  import {
16
16
  enrichSlackUserEmail,
17
17
  resolveSlackUserId,
18
18
  rewriteSlackMentions
19
- } from "./cli-78xwvkhj.js";
20
- import"./cli-psh3c4va.js";
19
+ } from "./cli-avr0ns7z.js";
20
+ import"./cli-sfd9v7sj.js";
21
21
  import {
22
22
  createTaskWithSiblingAwareness
23
- } from "./cli-cdeg08wx.js";
23
+ } from "./cli-4k6233gc.js";
24
24
  import {
25
25
  ackSlackMessage,
26
26
  buildTreeBlocks,
27
27
  ensureSlackThreadTree,
28
28
  isSlackRenderV2Enabled,
29
29
  registerTreeMessage
30
- } from "./cli-cvgjwnh1.js";
30
+ } from "./cli-3c3tdgab.js";
31
31
  import"./cli-k9qkf1hw.js";
32
32
  import"./cli-b0p7rfnd.js";
33
33
  import"./cli-t930g0xh.js";
@@ -40,19 +40,22 @@ import {
40
40
  init_context_key,
41
41
  init_db,
42
42
  slackContextKey
43
- } from "./cli-a4jzdpa3.js";
43
+ } from "./cli-zfbf3srj.js";
44
+ import"./cli-hkwfe3qj.js";
44
45
  import {
45
- init_env_flag,
46
46
  init_resolver,
47
- isEnvFlagEnabled,
48
47
  resolveTemplate
49
- } from "./cli-xpxde7rm.js";
48
+ } from "./cli-qes8ef67.js";
50
49
  import"./cli-x23me2mg.js";
51
50
  import"./cli-z2zcxes1.js";
52
- import"./cli-zsspvvm2.js";
51
+ import {
52
+ init_env_flag,
53
+ isEnvFlagEnabled
54
+ } from "./cli-qys3rhhz.js";
55
+ import"./cli-w1mp9jy7.js";
56
+ import"./cli-9nfc2es8.js";
53
57
  import"./cli-4j2mrzag.js";
54
- import"./cli-72q8m8gk.js";
55
- import"./cli-5dsbcjjw.js";
58
+ import"./cli-jqwnqx9m.js";
56
59
  import"./cli-e15jhafb.js";
57
60
  import {
58
61
  init_event_bus,