@desplega.ai/agent-swarm 1.131.1 → 1.134.0

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 (360) hide show
  1. package/README.md +3 -3
  2. package/dist/{actions-jgcy477k.js → actions-7kast243.js} +20 -18
  3. package/dist/{anthropic-messages-rjmd2e7n.js → anthropic-messages-706yad38.js} +33 -17
  4. package/dist/app-0g84t8wf.js +28 -0
  5. package/dist/{artifact-jysj3wrg.js → artifact-dje5ke4h.js} +37 -131
  6. package/dist/{assistant-f2vkk1hj.js → assistant-ac4htcky.js} +25 -22
  7. package/dist/{azure-openai-responses-c0yjmbfd.js → azure-openai-responses-be59fbsz.js} +13 -13
  8. package/dist/{boot-reembed-q7mp8hcr.js → boot-reembed-b1rcqn85.js} +13 -11
  9. package/dist/{boot-reembed-xmw8wcx6.js → boot-reembed-kw2541c4.js} +14 -12
  10. package/dist/{boot-scrub-logs-dsqrv79n.js → boot-scrub-logs-ja29t92g.js} +11 -9
  11. package/dist/{claude-adapter-q6x7yspx.js → claude-adapter-5cg1fv8s.js} +33 -29
  12. package/dist/{claude-managed-adapter-wsg37bt8.js → claude-managed-adapter-9z9sdytx.js} +9 -9
  13. package/dist/{claude-managed-setup-52z4mq9w.js → claude-managed-setup-3zqp51cr.js} +5 -5
  14. package/dist/{claude-1ex232fc.js → claude-wqn3dtca.js} +1 -1
  15. package/dist/{cli-4wgngmwv.js → cli-00w4hbam.js} +1 -1
  16. package/dist/{cli-er3a4bb0.js → cli-15429qdw.js} +6 -1
  17. package/dist/{cli-e5dabkx0.js → cli-1cwhyvta.js} +4 -4
  18. package/dist/{cli-zsspvvm2.js → cli-1ybr6vw2.js} +237 -237
  19. package/dist/{cli-xpxde7rm.js → cli-2wv4kj0e.js} +60 -31
  20. package/dist/cli-34w2584r.js +530 -0
  21. package/dist/{cli-se2p6rkb.js → cli-38taxznr.js} +6 -6
  22. package/dist/{cli-9sbhdpvb.js → cli-3cgfyfzm.js} +14 -14
  23. package/dist/{cli-5n6e5yfn.js → cli-3zmdzfjf.js} +79 -74
  24. package/dist/{cli-3ty0t082.js → cli-43x36mty.js} +197 -8
  25. package/dist/{cli-ycrnynpw.js → cli-480nehnh.js} +29 -22
  26. package/dist/{cli-0258203w.js → cli-492e7ap5.js} +140 -20
  27. package/dist/{cli-3fj60etf.js → cli-497b685t.js} +3 -3
  28. package/dist/{cli-pxfxkx5m.js → cli-4bap00k0.js} +1 -1
  29. package/dist/{cli-w2wxd56v.js → cli-4bc8vmhm.js} +848 -770
  30. package/dist/{cli-aca5pz9f.js → cli-589599p9.js} +1 -1
  31. package/dist/{cli-t930g0xh.js → cli-5tnr64pm.js} +1 -1
  32. package/dist/{cli-jxg3s9ey.js → cli-65d93ves.js} +7 -7
  33. package/dist/{cli-6dpytdr2.js → cli-6x363v1z.js} +2 -2
  34. package/dist/{cli-dxak0fqd.js → cli-787ph852.js} +11 -11
  35. package/dist/{cli-793jvbsh.js → cli-7bv8nckk.js} +16 -11
  36. package/dist/{cli-zyxs93y9.js → cli-7jcc9y1r.js} +3 -3
  37. package/dist/{cli-f1am9szv.js → cli-87t2gstf.js} +1 -1
  38. package/dist/{cli-9aryf9tv.js → cli-95m51ztz.js} +1 -1
  39. package/dist/{cli-4w4fmq9x.js → cli-9w49enmh.js} +2 -2
  40. package/dist/{cli-v69vk5h0.js → cli-9y5b02vr.js} +13 -13
  41. package/dist/{cli-x23me2mg.js → cli-a1rrkrb4.js} +1 -1
  42. package/dist/{cli-psrqtw2m.js → cli-a3pkfpqs.js} +2 -2
  43. package/dist/{cli-h0rgxd24.js → cli-a4ajmfvp.js} +6 -6
  44. package/dist/{cli-ygrbmjja.js → cli-aw8bb6sf.js} +6 -6
  45. package/dist/{cli-g74vpjp2.js → cli-brm3et47.js} +55 -22
  46. package/dist/{cli-czkae1fp.js → cli-c5ddbdfj.js} +9 -9
  47. package/dist/{cli-114fvtmj.js → cli-c79a9zrc.js} +1 -1
  48. package/dist/{cli-49n9f49x.js → cli-dx3dz0ms.js} +3 -3
  49. package/dist/{cli-6dp3ydxa.js → cli-e07exmsb.js} +18 -14
  50. package/dist/cli-et1bbwqf.js +13 -0
  51. package/dist/{cli-yazx6hap.js → cli-f3s9dry0.js} +14 -14
  52. package/dist/{cli-t8d349cy.js → cli-f4wj0s3m.js} +3 -3
  53. package/dist/{cli-d6n0thxw.js → cli-f64gdfxc.js} +1 -1
  54. package/dist/{cli-pwfsqc2x.js → cli-fyd58xgb.js} +55 -55
  55. package/dist/{cli-7dm2zqy2.js → cli-g0j14czv.js} +2 -2
  56. package/dist/{cli-b0p7rfnd.js → cli-g2p9bd1z.js} +14 -14
  57. package/dist/{cli-z905tvmm.js → cli-g814jbst.js} +2 -2
  58. package/dist/{cli-5dsbcjjw.js → cli-ghexzd2d.js} +970 -970
  59. package/dist/{cli-jvv0g8bh.js → cli-gpt9kf01.js} +15 -15
  60. package/dist/{cli-rgrfzg8z.js → cli-grt6qv91.js} +380 -380
  61. package/dist/{cli-wz9115x0.js → cli-gtafvdy0.js} +8 -8
  62. package/dist/{cli-q5dzzak0.js → cli-gy07xk4s.js} +2 -2
  63. package/dist/{cli-sy7jk3tx.js → cli-h0djenzm.js} +2 -2
  64. package/dist/{cli-nrkkknat.js → cli-h37gbjbf.js} +2 -281
  65. package/dist/{cli-jevgrb4w.js → cli-h39xxnq6.js} +1200 -491
  66. package/dist/{cli-gz9sbyk3.js → cli-jepmgn7r.js} +1 -1
  67. package/dist/{cli-ccf9vy7q.js → cli-jmvk6et8.js} +7 -7
  68. package/dist/{cli-2rk0cx7s.js → cli-jxj92gkt.js} +51 -41
  69. package/dist/{cli-bqw0mt1n.js → cli-k46t4664.js} +18 -3
  70. package/dist/{cli-50vbt00w.js → cli-m07313tr.js} +1153 -696
  71. package/dist/{cli-4j2mrzag.js → cli-mkq1rk7b.js} +1 -1
  72. package/dist/{cli-1z7048dy.js → cli-mnm7w46e.js} +1 -1
  73. package/dist/{cli-kd1ck4rx.js → cli-mp9sg4cg.js} +14 -8
  74. package/dist/{cli-jbcva0xj.js → cli-mrammd8c.js} +60 -35
  75. package/dist/cli-nanaxrz6.js +27 -0
  76. package/dist/{cli-p9swy5t3.js → cli-pq2ee5ja.js} +8 -6
  77. package/dist/{cli-2wadx7p2.js → cli-pt43pdp1.js} +2 -2
  78. package/dist/{cli-7sgrxg9a.js → cli-q6d0vvey.js} +4 -4
  79. package/dist/{cli-k9qkf1hw.js → cli-qf9kpsve.js} +9 -9
  80. package/dist/cli-qh4sqfws.js +15 -0
  81. package/dist/{cli-e15jhafb.js → cli-qntkxysp.js} +14 -14
  82. package/dist/{cli-sajgpkqg.js → cli-qs9hhsvb.js} +1723 -325
  83. package/dist/{cli-z2zcxes1.js → cli-qt5bt3vk.js} +1 -1
  84. package/dist/{cli-wx82tw1k.js → cli-qtekrty1.js} +3 -3
  85. package/dist/{cli-g1re8r05.js → cli-rh6f3s9n.js} +3 -3
  86. package/dist/{cli-n0krnc6d.js → cli-rzhcrw2p.js} +2 -2
  87. package/dist/{cli-gecy3z2s.js → cli-snw62ze5.js} +4 -4
  88. package/dist/{cli-n6h8qt8n.js → cli-snz3p4yf.js} +15 -10
  89. package/dist/{cli-r6kqqbj0.js → cli-tkf8n6cw.js} +11 -11
  90. package/dist/{cli-4rkfg1wx.js → cli-tkrr24mz.js} +14 -9
  91. package/dist/{cli-9dr5qzc0.js → cli-tv9f1kyb.js} +54 -43
  92. package/dist/{cli-gm9cbhbq.js → cli-vtz6yj3v.js} +28 -9
  93. package/dist/{cli-2f07m0xr.js → cli-wf86d5t7.js} +1 -1
  94. package/dist/{cli-7zd05xb4.js → cli-whrvct19.js} +45 -45
  95. package/dist/{cli-ap1czx8f.js → cli-wrrea8xm.js} +3 -3
  96. package/dist/{cli-57khth04.js → cli-xmyqv00z.js} +120 -4
  97. package/dist/{cli-cwy5hqbq.js → cli-yjmk7tzc.js} +1 -1
  98. package/dist/{cli-6pcz9h15.js → cli-zykjrwcx.js} +180 -394
  99. package/dist/cli.js +45 -45
  100. package/dist/{codex-adapter-htjkn22b.js → codex-adapter-hsq6mz3m.js} +21 -19
  101. package/dist/{codex-hook-hq54t9ft.js → codex-hook-8c500gq8.js} +8 -7
  102. package/dist/{codex-login-z6yhbkmk.js → codex-login-x7603481.js} +3 -3
  103. package/dist/{codex-session-runner-wjfc7smz.js → codex-session-runner-c1x3x143.js} +15 -13
  104. package/dist/{commands-xhrfwqsk.js → commands-rwtddtst.js} +11 -9
  105. package/dist/{db-anvwb22f.js → db-j2b355vz.js} +458 -444
  106. package/dist/{devin-adapter-v1sarqtw.js → devin-adapter-8qmhqpy3.js} +3 -3
  107. package/dist/{devtools-2y1r7yqk.js → devtools-j2rnj8w7.js} +4 -4
  108. package/dist/{e2b-jdkwemv2.js → e2b-znpx78eg.js} +16 -16
  109. package/dist/{es5-vjgtkgp6.js → es5-fmqrjzy3.js} +2 -2
  110. package/dist/{event-bus-axn823e9.js → event-bus-n8sb35pw.js} +4 -4
  111. package/dist/{getMachineId-bsd-6tc9wxdj.js → getMachineId-bsd-wpzbhkm6.js} +4 -4
  112. package/dist/{getMachineId-darwin-sjt9sgnc.js → getMachineId-darwin-45zabjy0.js} +4 -4
  113. package/dist/{getMachineId-linux-v5n18y9p.js → getMachineId-linux-warnp5pd.js} +3 -3
  114. package/dist/{getMachineId-unsupported-yrjyqw3d.js → getMachineId-unsupported-5spent2a.js} +3 -3
  115. package/dist/{getMachineId-win-w3r8063c.js → getMachineId-win-v4bvcw7a.js} +4 -4
  116. package/dist/{google-generative-ai-hysrd8qx.js → google-generative-ai-b0wzss55.js} +17 -14
  117. package/dist/{google-vertex-p5arrga0.js → google-vertex-e8q4dpya.js} +18 -15
  118. package/dist/{handlers-b9kbc621.js → handlers-hchgrxkh.js} +32 -29
  119. package/dist/{hook-xkvn6c5h.js → hook-p49egqc0.js} +66 -52
  120. package/dist/hook-spb00w76.js +34 -0
  121. package/dist/{http-9xh6ta4r.js → http-nh14kkms.js} +663 -181
  122. package/dist/index-1qthq7vc.js +6 -0
  123. package/dist/{index-0g68f0p6.js → index-20xqmn3v.js} +3 -3
  124. package/dist/{index-vdkr5z2w.js → index-3e03k6e4.js} +114 -114
  125. package/dist/{index-ywds4812.js → index-4cbyhq2g.js} +43 -41
  126. package/dist/index-67pzqfrb.js +36 -0
  127. package/dist/{index-bccrkdkn.js → index-7m8yxkw5.js} +16 -16
  128. package/dist/{index-eaxyqcmj.js → index-dvsk64sm.js} +163 -83
  129. package/dist/{index-dqkpnmqm.js → index-e19s2m8k.js} +18 -18
  130. package/dist/{index-j30k5zxn.js → index-emvxcy98.js} +16 -16
  131. package/dist/{index-7ndw6ecy.js → index-gqnmr60d.js} +9 -9
  132. package/dist/{index-9znhar3x.js → index-j02xvjtd.js} +184 -185
  133. package/dist/{index-1s2442yw.js → index-ns5kksc1.js} +7 -7
  134. package/dist/{index-dpy2hth8.js → index-pdxc8kfh.js} +71 -71
  135. package/dist/{index-z1m7pw0v.js → index-ptcqm8bc.js} +107 -107
  136. package/dist/{index-070v4eyb.js → index-pyp7rexm.js} +5 -6
  137. package/dist/{index-86znjz1p.js → index-shne41sd.js} +13 -13
  138. package/dist/{index-2qn2qndv.js → index-t36q2v4t.js} +183 -183
  139. package/dist/index-tcnvv8w6.js +7 -0
  140. package/dist/index-w91qbfv1.js +7 -0
  141. package/dist/{index-fzc0mwvj.js → index-yqweff5n.js} +32 -32
  142. package/dist/index-yrfphye1.js +39 -0
  143. package/dist/{keepalive-vc7s2aa6.js → keepalive-9k51nqhc.js} +21 -15
  144. package/dist/lead-2xq3dxbz.js +88 -0
  145. package/dist/maintenance-0c0g6nym.js +28 -0
  146. package/dist/mistral-conversations-2njwdwhj.js +717 -0
  147. package/dist/{multipart-parser-qaktc7p8.js → multipart-parser-6gftesw0.js} +2 -2
  148. package/dist/{oauth-refresh-sweep-yecgjpk4.js → oauth-refresh-sweep-273a64r2.js} +14 -12
  149. package/dist/{onboard-xj0f73f9.js → onboard-tsv9wwhz.js} +12 -12
  150. package/dist/{openai-codex-responses-5g27pd6f.js → openai-codex-responses-kt84eq86.js} +26 -26
  151. package/dist/{openai-completions-3vkmfz2a.js → openai-completions-mrypq7qp.js} +17 -16
  152. package/dist/{openai-responses-dg4t7j7a.js → openai-responses-qhrk21ez.js} +20 -17
  153. package/dist/{opencode-adapter-1gm38aba.js → opencode-adapter-rar9676j.js} +13 -11
  154. package/dist/{openrouter-images-g3gm8931.js → openrouter-images-684fysx9.js} +5 -5
  155. package/dist/{otel-impl-nxg0n0b3.js → otel-impl-wp1mfzd2.js} +752 -537
  156. package/dist/{photon_rs-ky7dj5qw.js → photon_rs-8dwt2pzy.js} +581 -581
  157. package/dist/{pi-messages-tqj8q6b9.js → pi-messages-txp9f97r.js} +7 -7
  158. package/dist/{pi-mono-adapter-4g5kby31.js → pi-mono-adapter-yz47kk8e.js} +1910 -1180
  159. package/dist/pricing-refresh-jw1yw2fn.js +22 -0
  160. package/dist/rbac-roles-dg964c8p.js +32 -0
  161. package/dist/{rbac-roles-1hcxdtg7.js → rbac-roles-p53cg5cv.js} +19 -17
  162. package/dist/{registry-02cy9z5z.js → registry-mh12y17v.js} +4 -4
  163. package/dist/render-v2-56vn2rk9.js +36 -0
  164. package/dist/seed-pricing-52xx6z63.js +19 -0
  165. package/dist/{setup-46xtgq3c.js → setup-e8gp79sy.js} +7 -7
  166. package/dist/token-util-zy908s1a.js +6 -0
  167. package/dist/{token-fxkn2zf2.js → token-xg5711x5.js} +4 -4
  168. package/dist/worker-s17f1g46.js +88 -0
  169. package/dist/{x-6mg4kfpe.js → x-xkfh0w0v.js} +5 -5
  170. package/openapi.json +566 -22
  171. package/package.json +6 -6
  172. package/src/be/budget-refusal-notify.ts +14 -7
  173. package/src/be/db-queries/task-artifacts.ts +182 -0
  174. package/src/be/db.ts +834 -171
  175. package/src/be/events.ts +5 -0
  176. package/src/be/migrations/131_session_logs_created_at_index.sql +2 -0
  177. package/src/be/migrations/132_multi_runtime_instances.sql +44 -0
  178. package/src/be/migrations/133_workflow_run_trigger_type.sql +12 -0
  179. package/src/be/migrations/135_backfill_task_pull_request_attachments.sql +228 -0
  180. package/src/be/migrations/136_task_requester_provenance.sql +37 -0
  181. package/src/be/migrations/137_memory_retrieval_composite_index.sql +1 -0
  182. package/src/be/migrations/runner.ts +17 -11
  183. package/src/be/multi-runtime.ts +430 -0
  184. package/src/be/scripts/extract-schema.ts +3 -1
  185. package/src/be/scripts/typecheck.ts +6 -2
  186. package/src/be/seed-prompt-templates.ts +25 -2
  187. package/src/be/seed-skills/index.ts +7 -0
  188. package/src/be/steering.ts +1 -1
  189. package/src/be/swarm-config-guard.ts +18 -0
  190. package/src/commands/credential-wait.ts +54 -0
  191. package/src/commands/onboard/steps/core-credentials.tsx +1 -1
  192. package/src/commands/onboard/steps/custom-templates.tsx +1 -1
  193. package/src/commands/onboard/steps/harness-credentials.tsx +1 -1
  194. package/src/commands/onboard/steps/health-check.tsx +1 -1
  195. package/src/commands/onboard/steps/start.tsx +1 -1
  196. package/src/commands/profile-sync-audit.ts +56 -0
  197. package/src/commands/profile-sync.ts +287 -15
  198. package/src/commands/provider-credentials.ts +46 -19
  199. package/src/commands/runner.ts +199 -33
  200. package/src/commands/templates.ts +22 -0
  201. package/src/github/handlers.ts +55 -9
  202. package/src/heartbeat/heartbeat.ts +109 -17
  203. package/src/hooks/hook.ts +49 -33
  204. package/src/http/active-sessions.ts +11 -1
  205. package/src/http/agents.ts +261 -30
  206. package/src/http/all-routes.ts +1 -0
  207. package/src/http/config.ts +13 -2
  208. package/src/http/core.ts +102 -4
  209. package/src/http/db-query-bounded.ts +313 -0
  210. package/src/http/db-query-shared.ts +249 -0
  211. package/src/http/db-query.ts +54 -42
  212. package/src/http/events.ts +2 -0
  213. package/src/http/index.ts +23 -2
  214. package/src/http/mcp-bridge.ts +37 -3
  215. package/src/http/mcp.ts +12 -0
  216. package/src/http/memory.ts +13 -2
  217. package/src/http/openapi.ts +1 -0
  218. package/src/http/poll.ts +70 -27
  219. package/src/http/prompt-templates.ts +36 -13
  220. package/src/http/route-def.ts +43 -9
  221. package/src/http/schedules.ts +2 -2
  222. package/src/http/scripts.ts +10 -1
  223. package/src/http/session-data.ts +44 -0
  224. package/src/http/tasks.ts +2 -2
  225. package/src/http/users.ts +74 -52
  226. package/src/http/webhooks.ts +5 -2
  227. package/src/http/workflows.ts +1 -4
  228. package/src/integrations/kapso/inbound.ts +1 -1
  229. package/src/jira/outbound.ts +39 -8
  230. package/src/jira/webhook-lifecycle.ts +13 -2
  231. package/src/linear/outbound.ts +43 -10
  232. package/src/oauth/keepalive.ts +13 -2
  233. package/src/prompts/base-prompt.ts +1 -1
  234. package/src/prompts/default-drift.ts +21 -0
  235. package/src/prompts/session-templates.ts +56 -7
  236. package/src/providers/claude-adapter.ts +6 -0
  237. package/src/providers/codex-adapter.ts +6 -0
  238. package/src/providers/opencode-adapter.ts +6 -0
  239. package/src/providers/pi-mono-adapter.ts +8 -0
  240. package/src/providers/pricing-sources.md +24 -0
  241. package/src/queue-stall-alarm.ts +216 -0
  242. package/src/rbac/legacy-policy.ts +3 -0
  243. package/src/rbac/permissions.ts +12 -0
  244. package/src/scheduler/scheduler.ts +7 -0
  245. package/src/script-workflows/executor.ts +2 -1
  246. package/src/scripts-runtime/executors/native.ts +2 -1
  247. package/src/scripts-runtime/executors/types.ts +5 -0
  248. package/src/scripts-runtime/loader.ts +5 -0
  249. package/src/scripts-runtime/sdk-allowlist.ts +3 -0
  250. package/src/scripts-runtime/swarm-config.ts +8 -0
  251. package/src/scripts-runtime/swarm-sdk.ts +7 -0
  252. package/src/scripts-runtime/types/stdlib.d.ts +4 -0
  253. package/src/scripts-runtime/types/swarm-sdk.d.ts +4 -0
  254. package/src/server.ts +6 -0
  255. package/src/slack/channel-join.ts +22 -3
  256. package/src/slack/channel-lifecycle.ts +114 -0
  257. package/src/tests/budget-claim-gate.test.ts +20 -0
  258. package/src/tests/claude-adapter.test.ts +32 -0
  259. package/src/tests/codex-adapter.test.ts +30 -0
  260. package/src/tests/create-task-validation.test.ts +128 -0
  261. package/src/tests/credential-wait.test.ts +67 -1
  262. package/src/tests/db-query.test.ts +711 -2
  263. package/src/tests/heartbeat-checklist.test.ts +28 -0
  264. package/src/tests/http-api-integration.test.ts +81 -0
  265. package/src/tests/http-users.test.ts +166 -1
  266. package/src/tests/identity-field-budget.test.ts +176 -0
  267. package/src/tests/mcp-tools-user.test.ts +34 -0
  268. package/src/tests/mcp-user-route.test.ts +17 -0
  269. package/src/tests/metrics-http.test.ts +44 -0
  270. package/src/tests/migration-failure.test.ts +86 -0
  271. package/src/tests/multi-runtime-registration.test.ts +2810 -0
  272. package/src/tests/openapi-response-contract.test.ts +24 -0
  273. package/src/tests/openapi-route-headers.test.ts +83 -0
  274. package/src/tests/opencode-adapter.test.ts +40 -0
  275. package/src/tests/outbound-listener-rejection.test.ts +138 -0
  276. package/src/tests/pi-mono-adapter.test.ts +98 -0
  277. package/src/tests/preload.ts +2 -0
  278. package/src/tests/profile-sync-warning.test.ts +277 -0
  279. package/src/tests/profile-sync.test.ts +232 -6
  280. package/src/tests/prompt-template-resolver.test.ts +177 -6
  281. package/src/tests/prompt-template-session.test.ts +39 -3
  282. package/src/tests/queue-stall-alarm.test.ts +226 -0
  283. package/src/tests/rbac-charact-slack.test.ts +29 -0
  284. package/src/tests/rbac-engine.test.ts +3 -0
  285. package/src/tests/requester-comms.test.ts +32 -0
  286. package/src/tests/runner-requester-profile.test.ts +38 -0
  287. package/src/tests/schedule-target-type.test.ts +38 -0
  288. package/src/tests/script-connections.test.ts +13 -1
  289. package/src/tests/scripts-runtime-identity.test.ts +375 -0
  290. package/src/tests/scripts-runtime.test.ts +4 -3
  291. package/src/tests/sdk-allowlist.test.ts +47 -0
  292. package/src/tests/send-task-requested-by.test.ts +9 -0
  293. package/src/tests/session-costs.test.ts +506 -1
  294. package/src/tests/shutdown-error-scrubbing.test.ts +92 -0
  295. package/src/tests/slack-channel-lifecycle.test.ts +241 -0
  296. package/src/tests/slack-render-v2.test.ts +43 -0
  297. package/src/tests/steering-core.test.ts +28 -0
  298. package/src/tests/swarm-config-reserved-keys.test.ts +22 -0
  299. package/src/tests/task-artifacts.test.ts +386 -0
  300. package/src/tests/task-attachments-schema.test.ts +17 -1
  301. package/src/tests/task-completion-idempotency.test.ts +57 -0
  302. package/src/tests/task-pull-request-backfill-migration.test.ts +321 -0
  303. package/src/tests/tool-annotations.test.ts +4 -0
  304. package/src/tests/update-profile-api.test.ts +67 -39
  305. package/src/tests/update-profile-auth.test.ts +48 -4
  306. package/src/tests/user-attribution-migration.test.ts +54 -0
  307. package/src/tests/user-identity.test.ts +72 -0
  308. package/src/tests/workflow-async-v2.test.ts +39 -1
  309. package/src/tests/workflow-http-v2.test.ts +3 -2
  310. package/src/tests/workflow-mcp-trigger-schema.test.ts +52 -3
  311. package/src/tests/workflow-retry-v2.test.ts +45 -1
  312. package/src/tools/db-query.ts +18 -8
  313. package/src/tools/get-task-details.ts +24 -3
  314. package/src/tools/manage-user.ts +36 -3
  315. package/src/tools/poll-task.ts +93 -14
  316. package/src/tools/script-common.ts +5 -0
  317. package/src/tools/send-task.ts +1 -4
  318. package/src/tools/slack-archive-channel.ts +70 -0
  319. package/src/tools/slack-create-channel.ts +74 -0
  320. package/src/tools/slack-invite-to-channel.ts +78 -0
  321. package/src/tools/store-progress.ts +13 -2
  322. package/src/tools/swarm-config/delete-config.ts +9 -0
  323. package/src/tools/swarm-config/set-config.ts +3 -2
  324. package/src/tools/task-action.ts +30 -0
  325. package/src/tools/task-tool-ctx.ts +8 -1
  326. package/src/tools/tool-config.ts +4 -1
  327. package/src/tools/update-profile.ts +16 -21
  328. package/src/tools/utils.ts +5 -0
  329. package/src/tools/workflows/trigger-workflow.ts +7 -1
  330. package/src/types.ts +165 -1
  331. package/src/utils/github-pull-request.ts +76 -0
  332. package/src/utils/identity-field-budget.ts +73 -0
  333. package/src/utils/multi-runtime.ts +20 -0
  334. package/src/utils/requester-comms.ts +24 -0
  335. package/src/workflows/engine.ts +22 -2
  336. package/src/workflows/resume.ts +19 -11
  337. package/src/workflows/retry-poller.ts +1 -0
  338. package/src/workflows/triggers.ts +4 -0
  339. package/templates/skills/db-query-guidance/config.json +14 -0
  340. package/templates/skills/db-query-guidance/content.md +57 -0
  341. package/dist/app-5da78bd4.js +0 -26
  342. package/dist/cli-3te4jdkm.js +0 -225
  343. package/dist/cli-bmze986d.js +0 -7
  344. package/dist/cli-kh3ba2zf.js +0 -607
  345. package/dist/hook-cgk4wxmx.js +0 -31
  346. package/dist/index-25wjsdv2.js +0 -34
  347. package/dist/index-76at2ymp.js +0 -7
  348. package/dist/index-hase6zbe.js +0 -6
  349. package/dist/index-vg4snay4.js +0 -36
  350. package/dist/index-vy8edt27.js +0 -7
  351. package/dist/lead-r2yqfmx7.js +0 -85
  352. package/dist/maintenance-mw70k468.js +0 -26
  353. package/dist/mistral-conversations-81fwav0j.js +0 -30578
  354. package/dist/otel-nqa12wf3.js +0 -3149
  355. package/dist/pricing-refresh-2cn6effr.js +0 -20
  356. package/dist/rbac-roles-vynday5g.js +0 -30
  357. package/dist/render-v2-tc0bh8kk.js +0 -34
  358. package/dist/seed-pricing-8kceb43f.js +0 -17
  359. package/dist/token-util-pqyc8kng.js +0 -6
  360. package/dist/worker-qrbz6hmv.js +0 -85
@@ -1,607 +0,0 @@
1
- import {
2
- $ZodError,
3
- NEVER,
4
- any,
5
- array,
6
- boolean,
7
- init_core,
8
- int,
9
- literal,
10
- nullable,
11
- object,
12
- prettifyError,
13
- record,
14
- string,
15
- union,
16
- unknown
17
- } from "./cli-5dsbcjjw.js";
18
-
19
- // node_modules/@mistralai/mistralai/esm/lib/primitives.js
20
- function remap(inp, mappings) {
21
- let out = {};
22
- if (!Object.keys(mappings).length) {
23
- out = inp;
24
- return out;
25
- }
26
- for (const [k, v] of Object.entries(inp)) {
27
- const j = mappings[k];
28
- if (j === null) {
29
- continue;
30
- }
31
- out[j ?? k] = v;
32
- }
33
- return out;
34
- }
35
- function compactMap(values) {
36
- const out = {};
37
- for (const [k, v] of Object.entries(values)) {
38
- if (typeof v !== "undefined") {
39
- out[k] = v;
40
- }
41
- }
42
- return out;
43
- }
44
-
45
- // node_modules/@mistralai/mistralai/esm/models/errors/sdkvalidationerror.js
46
- init_core();
47
-
48
- class SDKValidationError extends Error {
49
- rawValue;
50
- rawMessage;
51
- static [Symbol.hasInstance](instance) {
52
- if (!(instance instanceof Error))
53
- return false;
54
- if (!("rawValue" in instance))
55
- return false;
56
- if (!("rawMessage" in instance))
57
- return false;
58
- if (!("pretty" in instance))
59
- return false;
60
- if (typeof instance.pretty !== "function")
61
- return false;
62
- return true;
63
- }
64
- constructor(message, cause, rawValue) {
65
- super(`${message}: ${cause}`);
66
- this.name = "SDKValidationError";
67
- this.cause = cause;
68
- this.rawValue = rawValue;
69
- this.rawMessage = message;
70
- }
71
- pretty() {
72
- if (this.cause instanceof $ZodError) {
73
- return `${this.rawMessage}
74
- ${formatZodError(this.cause)}`;
75
- } else {
76
- return this.toString();
77
- }
78
- }
79
- }
80
- function formatZodError(err) {
81
- return prettifyError(err);
82
- }
83
-
84
- // node_modules/@mistralai/mistralai/esm/types/fp.js
85
- function OK(value) {
86
- return { ok: true, value };
87
- }
88
- function ERR(error) {
89
- return { ok: false, error };
90
- }
91
- async function unwrapAsync(pr) {
92
- const r = await pr;
93
- if (!r.ok) {
94
- throw r.error;
95
- }
96
- return r.value;
97
- }
98
-
99
- // node_modules/@mistralai/mistralai/esm/lib/schemas.js
100
- function safeParse(rawValue, fn, errorMessage) {
101
- try {
102
- return OK(fn(rawValue));
103
- } catch (err) {
104
- return ERR(new SDKValidationError(errorMessage, err, rawValue));
105
- }
106
- }
107
-
108
- // node_modules/@mistralai/mistralai/esm/models/components/usageinfo.js
109
- var UsageInfo$inboundSchema = object({
110
- prompt_tokens: int().default(0),
111
- completion_tokens: int().default(0),
112
- total_tokens: int().default(0),
113
- prompt_audio_seconds: nullable(int()).optional()
114
- }).catchall(any()).transform((v) => {
115
- return remap(v, {
116
- prompt_tokens: "promptTokens",
117
- completion_tokens: "completionTokens",
118
- total_tokens: "totalTokens",
119
- prompt_audio_seconds: "promptAudioSeconds"
120
- });
121
- });
122
- var UsageInfo$outboundSchema = object({
123
- promptTokens: int().default(0),
124
- completionTokens: int().default(0),
125
- totalTokens: int().default(0),
126
- promptAudioSeconds: nullable(int()).optional()
127
- }).catchall(any()).transform((v) => {
128
- return {
129
- ...remap(v, {
130
- promptTokens: "prompt_tokens",
131
- completionTokens: "completion_tokens",
132
- totalTokens: "total_tokens",
133
- promptAudioSeconds: "prompt_audio_seconds"
134
- })
135
- };
136
- });
137
-
138
- // node_modules/@mistralai/mistralai/esm/types/unrecognized.js
139
- function unrecognized(value) {
140
- globalCount++;
141
- return value;
142
- }
143
- var globalCount = 0;
144
- var refCount = 0;
145
- function startCountingUnrecognized() {
146
- refCount++;
147
- const start = globalCount;
148
- return {
149
- end: (delta) => {
150
- const count = globalCount - start;
151
- globalCount = start + (delta ?? count);
152
- if (--refCount === 0)
153
- globalCount = 0;
154
- return count;
155
- }
156
- };
157
- }
158
-
159
- // node_modules/@mistralai/mistralai/esm/types/enums.js
160
- function inboundSchema(enumObj) {
161
- const options = Object.values(enumObj);
162
- return union([
163
- ...options.map((x) => literal(x)),
164
- string().transform((x) => unrecognized(x))
165
- ]);
166
- }
167
- function inboundSchemaInt(enumObj) {
168
- const options = Object.values(enumObj).filter((v) => typeof v === "number");
169
- return union([
170
- ...options.map((x) => literal(x)),
171
- int().transform((x) => unrecognized(x))
172
- ]);
173
- }
174
- function outboundSchema(_) {
175
- return string();
176
- }
177
- function outboundSchemaInt(_) {
178
- return int();
179
- }
180
-
181
- // node_modules/@mistralai/mistralai/esm/types/discriminatedUnion.js
182
- var UNKNOWN = Symbol("UNKNOWN");
183
- function isUnknown(value) {
184
- return typeof value === "object" && value !== null && UNKNOWN in value;
185
- }
186
- function discriminatedUnion(inputPropertyName, options, opts = {}) {
187
- const { unknownValue = "UNKNOWN", outputPropertyName } = opts;
188
- return unknown().transform((input) => {
189
- const fallback = Object.defineProperties({
190
- raw: input,
191
- [outputPropertyName ?? inputPropertyName]: unknownValue,
192
- isUnknown: true
193
- }, { [UNKNOWN]: { value: true, enumerable: false, configurable: false } });
194
- const isObject = typeof input === "object" && input !== null;
195
- if (!isObject)
196
- return fallback;
197
- const discriminator = input[inputPropertyName];
198
- if (typeof discriminator !== "string")
199
- return fallback;
200
- if (!(discriminator in options))
201
- return fallback;
202
- const schema = options[discriminator];
203
- if (!schema)
204
- return fallback;
205
- const unrecognizedCtr = startCountingUnrecognized();
206
- const result = schema.safeParse(input);
207
- if (!result.success) {
208
- unrecognizedCtr.end(0);
209
- return fallback;
210
- }
211
- unrecognizedCtr.end();
212
- if (outputPropertyName) {
213
- result.data[outputPropertyName] = discriminator;
214
- }
215
- return result.data;
216
- });
217
- }
218
-
219
- // node_modules/@mistralai/mistralai/esm/types/rfcdate.js
220
- var dateRE = /^\d{4}-\d{2}-\d{2}$/;
221
-
222
- class RFCDate {
223
- serialized;
224
- static today() {
225
- return new RFCDate(new Date);
226
- }
227
- constructor(date) {
228
- if (typeof date === "string" && !dateRE.test(date)) {
229
- throw new RangeError("RFCDate: date strings must be in the format YYYY-MM-DD: " + date);
230
- }
231
- const value = new Date(date);
232
- if (isNaN(+value)) {
233
- throw new RangeError("RFCDate: invalid date provided: " + date);
234
- }
235
- this.serialized = value.toISOString().slice(0, "YYYY-MM-DD".length);
236
- if (!dateRE.test(this.serialized)) {
237
- throw new TypeError(`RFCDate: failed to build valid date with given value: ${date} serialized to ${this.serialized}`);
238
- }
239
- }
240
- toJSON() {
241
- return this.toString();
242
- }
243
- toString() {
244
- return this.serialized;
245
- }
246
- }
247
-
248
- // node_modules/@mistralai/mistralai/esm/types/smartUnion.js
249
- function smartUnion(options) {
250
- return unknown().transform((input, ctx) => {
251
- const candidates = [];
252
- const errors = options.map(() => []);
253
- const parentUnrecognizedCtr = startCountingUnrecognized();
254
- for (const [i, option] of options.entries()) {
255
- const unrecognizedCtr = startCountingUnrecognized();
256
- const result = option.safeParse(input);
257
- const inexactCount = unrecognizedCtr.end();
258
- const zeroDefaultCount = 0;
259
- if (result.success) {
260
- candidates.push({
261
- data: result.data,
262
- inexactCount,
263
- zeroDefaultCount,
264
- fieldCount: -1
265
- });
266
- continue;
267
- }
268
- errors[i].push(...result.error.issues);
269
- }
270
- if (candidates.length === 0) {
271
- parentUnrecognizedCtr.end(0);
272
- ctx.addIssue({ input, code: "invalid_union", errors });
273
- return NEVER;
274
- }
275
- let best = candidates[0];
276
- for (const candidate of candidates) {
277
- if (candidates.length > 1) {
278
- candidate.fieldCount = countFieldsRecursive(candidate.data);
279
- }
280
- best = better(candidate, best);
281
- }
282
- parentUnrecognizedCtr.end(best.inexactCount);
283
- return best.data;
284
- });
285
- }
286
- function better(a, b) {
287
- const aIsExact = a.inexactCount === 0;
288
- const bIsExact = b.inexactCount === 0;
289
- if (aIsExact !== bIsExact) {
290
- return aIsExact ? a : b;
291
- }
292
- const actualFieldCountA = a.fieldCount - a.zeroDefaultCount;
293
- const actualFieldCountB = b.fieldCount - b.zeroDefaultCount;
294
- if (actualFieldCountA !== actualFieldCountB) {
295
- return actualFieldCountA > actualFieldCountB ? a : b;
296
- }
297
- return a.inexactCount < b.inexactCount ? a : b;
298
- }
299
- function countFieldsRecursive(parsed) {
300
- let fieldCount = 0;
301
- const queue = [parsed];
302
- let index = 0;
303
- while (index < queue.length) {
304
- const value = queue[index++];
305
- if (value === undefined || isUnknown(value)) {
306
- continue;
307
- }
308
- const type = typeof value;
309
- if (value === null || type === "number" || type === "string" || type === "boolean" || type === "bigint" || value instanceof Date || value instanceof RFCDate) {
310
- fieldCount++;
311
- continue;
312
- }
313
- if (Array.isArray(value)) {
314
- queue.push(...value);
315
- continue;
316
- }
317
- if (type === "object") {
318
- queue.push(...Object.values(value));
319
- }
320
- }
321
- return fieldCount;
322
- }
323
-
324
- // node_modules/@mistralai/mistralai/esm/models/components/audiochunk.js
325
- var AudioChunk$inboundSchema = object({
326
- type: literal("input_audio"),
327
- input_audio: string()
328
- }).transform((v) => {
329
- return remap(v, {
330
- input_audio: "inputAudio"
331
- });
332
- });
333
- var AudioChunk$outboundSchema = object({
334
- type: literal("input_audio"),
335
- inputAudio: string()
336
- }).transform((v) => {
337
- return remap(v, {
338
- inputAudio: "input_audio"
339
- });
340
- });
341
-
342
- // node_modules/@mistralai/mistralai/esm/models/components/documenturlchunk.js
343
- var DocumentURLChunk$inboundSchema = object({
344
- type: literal("document_url").default("document_url"),
345
- document_url: string(),
346
- document_name: nullable(string()).optional()
347
- }).transform((v) => {
348
- return remap(v, {
349
- document_url: "documentUrl",
350
- document_name: "documentName"
351
- });
352
- });
353
- var DocumentURLChunk$outboundSchema = object({
354
- type: literal("document_url").default("document_url"),
355
- documentUrl: string(),
356
- documentName: nullable(string()).optional()
357
- }).transform((v) => {
358
- return remap(v, {
359
- documentUrl: "document_url",
360
- documentName: "document_name"
361
- });
362
- });
363
-
364
- // node_modules/@mistralai/mistralai/esm/models/components/filechunk.js
365
- var FileChunk$inboundSchema = object({
366
- type: literal("file").default("file"),
367
- file_id: string()
368
- }).transform((v) => {
369
- return remap(v, {
370
- file_id: "fileId"
371
- });
372
- });
373
- var FileChunk$outboundSchema = object({
374
- type: literal("file").default("file"),
375
- fileId: string()
376
- }).transform((v) => {
377
- return remap(v, {
378
- fileId: "file_id"
379
- });
380
- });
381
-
382
- // node_modules/@mistralai/mistralai/esm/models/components/imagedetail.js
383
- var ImageDetail = {
384
- Low: "low",
385
- Auto: "auto",
386
- High: "high"
387
- };
388
- var ImageDetail$inboundSchema = inboundSchema(ImageDetail);
389
- var ImageDetail$outboundSchema = outboundSchema(ImageDetail);
390
-
391
- // node_modules/@mistralai/mistralai/esm/models/components/imageurl.js
392
- var ImageURL$inboundSchema = object({
393
- url: string(),
394
- detail: nullable(ImageDetail$inboundSchema).optional()
395
- });
396
- var ImageURL$outboundSchema = object({
397
- url: string(),
398
- detail: nullable(ImageDetail$outboundSchema).optional()
399
- });
400
-
401
- // node_modules/@mistralai/mistralai/esm/models/components/imageurlchunk.js
402
- var ImageUrlUnion$inboundSchema = smartUnion([ImageURL$inboundSchema, string()]);
403
- var ImageUrlUnion$outboundSchema = smartUnion([ImageURL$outboundSchema, string()]);
404
- var ImageURLChunk$inboundSchema = object({
405
- type: literal("image_url").default("image_url"),
406
- image_url: smartUnion([ImageURL$inboundSchema, string()])
407
- }).transform((v) => {
408
- return remap(v, {
409
- image_url: "imageUrl"
410
- });
411
- });
412
- var ImageURLChunk$outboundSchema = object({
413
- type: literal("image_url").default("image_url"),
414
- imageUrl: smartUnion([ImageURL$outboundSchema, string()])
415
- }).transform((v) => {
416
- return remap(v, {
417
- imageUrl: "image_url"
418
- });
419
- });
420
-
421
- // node_modules/@mistralai/mistralai/esm/models/components/referencechunk.js
422
- var ReferenceId$inboundSchema = smartUnion([int(), string()]);
423
- var ReferenceId$outboundSchema = smartUnion([int(), string()]);
424
- var ReferenceChunk$inboundSchema = object({
425
- type: literal("reference").default("reference"),
426
- reference_ids: array(smartUnion([int(), string()]))
427
- }).transform((v) => {
428
- return remap(v, {
429
- reference_ids: "referenceIds"
430
- });
431
- });
432
- var ReferenceChunk$outboundSchema = object({
433
- type: literal("reference").default("reference"),
434
- referenceIds: array(smartUnion([int(), string()]))
435
- }).transform((v) => {
436
- return remap(v, {
437
- referenceIds: "reference_ids"
438
- });
439
- });
440
-
441
- // node_modules/@mistralai/mistralai/esm/models/components/textchunk.js
442
- var TextChunk$inboundSchema = object({
443
- type: literal("text").default("text"),
444
- text: string()
445
- });
446
- var TextChunk$outboundSchema = object({
447
- type: literal("text").default("text"),
448
- text: string()
449
- });
450
-
451
- // node_modules/@mistralai/mistralai/esm/models/components/builtinconnectors.js
452
- var BuiltInConnectors = {
453
- WebSearch: "web_search",
454
- WebSearchPremium: "web_search_premium",
455
- CodeInterpreter: "code_interpreter",
456
- ImageGeneration: "image_generation",
457
- DocumentLibrary: "document_library"
458
- };
459
- var BuiltInConnectors$inboundSchema = inboundSchema(BuiltInConnectors);
460
- var BuiltInConnectors$outboundSchema = outboundSchema(BuiltInConnectors);
461
-
462
- // node_modules/@mistralai/mistralai/esm/models/components/toolreferencechunk.js
463
- var ToolReferenceChunkTool$inboundSchema = smartUnion([BuiltInConnectors$inboundSchema, string()]);
464
- var ToolReferenceChunkTool$outboundSchema = smartUnion([BuiltInConnectors$outboundSchema, string()]);
465
- var ToolReferenceChunk$inboundSchema = object({
466
- type: literal("tool_reference").default("tool_reference"),
467
- tool: smartUnion([BuiltInConnectors$inboundSchema, string()]),
468
- title: string(),
469
- url: nullable(string()).optional(),
470
- favicon: nullable(string()).optional(),
471
- description: nullable(string()).optional()
472
- });
473
- var ToolReferenceChunk$outboundSchema = object({
474
- type: literal("tool_reference").default("tool_reference"),
475
- tool: smartUnion([BuiltInConnectors$outboundSchema, string()]),
476
- title: string(),
477
- url: nullable(string()).optional(),
478
- favicon: nullable(string()).optional(),
479
- description: nullable(string()).optional()
480
- });
481
-
482
- // node_modules/@mistralai/mistralai/esm/models/components/thinkchunk.js
483
- var Thinking$inboundSchema = smartUnion([
484
- ToolReferenceChunk$inboundSchema,
485
- TextChunk$inboundSchema,
486
- ReferenceChunk$inboundSchema
487
- ]);
488
- var Thinking$outboundSchema = smartUnion([
489
- ToolReferenceChunk$outboundSchema,
490
- TextChunk$outboundSchema,
491
- ReferenceChunk$outboundSchema
492
- ]);
493
- var ThinkChunk$inboundSchema = object({
494
- type: literal("thinking").default("thinking"),
495
- thinking: array(smartUnion([
496
- ToolReferenceChunk$inboundSchema,
497
- TextChunk$inboundSchema,
498
- ReferenceChunk$inboundSchema
499
- ])),
500
- signature: nullable(string()).optional(),
501
- closed: boolean().optional()
502
- });
503
- var ThinkChunk$outboundSchema = object({
504
- type: literal("thinking").default("thinking"),
505
- thinking: array(smartUnion([
506
- ToolReferenceChunk$outboundSchema,
507
- TextChunk$outboundSchema,
508
- ReferenceChunk$outboundSchema
509
- ])),
510
- signature: nullable(string()).optional(),
511
- closed: boolean().optional()
512
- });
513
-
514
- // node_modules/@mistralai/mistralai/esm/models/components/contentchunk.js
515
- var ContentChunk$inboundSchema = discriminatedUnion("type", {
516
- image_url: ImageURLChunk$inboundSchema.and(object({ type: literal("image_url") })),
517
- document_url: DocumentURLChunk$inboundSchema.and(object({ type: literal("document_url") })),
518
- text: TextChunk$inboundSchema.and(object({ type: literal("text") })),
519
- reference: ReferenceChunk$inboundSchema.and(object({ type: literal("reference") })),
520
- file: FileChunk$inboundSchema.and(object({ type: literal("file") })),
521
- thinking: ThinkChunk$inboundSchema.and(object({ type: literal("thinking") })),
522
- input_audio: AudioChunk$inboundSchema
523
- });
524
- var ContentChunk$outboundSchema = union([
525
- ImageURLChunk$outboundSchema.and(object({ type: literal("image_url") })),
526
- DocumentURLChunk$outboundSchema.and(object({ type: literal("document_url") })),
527
- TextChunk$outboundSchema.and(object({ type: literal("text") })),
528
- ReferenceChunk$outboundSchema.and(object({ type: literal("reference") })),
529
- FileChunk$outboundSchema.and(object({ type: literal("file") })),
530
- ThinkChunk$outboundSchema.and(object({ type: literal("thinking") })),
531
- AudioChunk$outboundSchema
532
- ]);
533
-
534
- // node_modules/@mistralai/mistralai/esm/models/components/functioncall.js
535
- var Arguments$inboundSchema = smartUnion([record(string(), any()), string()]);
536
- var Arguments$outboundSchema = smartUnion([record(string(), any()), string()]);
537
- var FunctionCall$inboundSchema = object({
538
- name: string(),
539
- arguments: smartUnion([record(string(), any()), string()])
540
- });
541
- var FunctionCall$outboundSchema = object({
542
- name: string(),
543
- arguments: smartUnion([record(string(), any()), string()])
544
- });
545
-
546
- // node_modules/@mistralai/mistralai/esm/models/components/toolcall.js
547
- var ToolCall$inboundSchema = object({
548
- id: string().default("null"),
549
- type: string().optional(),
550
- function: FunctionCall$inboundSchema,
551
- index: int().default(0)
552
- });
553
- var ToolCall$outboundSchema = object({
554
- id: string().default("null"),
555
- type: string().optional(),
556
- function: FunctionCall$outboundSchema,
557
- index: int().default(0)
558
- });
559
-
560
- // node_modules/@mistralai/mistralai/esm/models/components/deltamessage.js
561
- var DeltaMessageContent$inboundSchema = smartUnion([string(), array(ContentChunk$inboundSchema)]);
562
- var DeltaMessage$inboundSchema = object({
563
- role: nullable(string()).optional(),
564
- content: nullable(smartUnion([string(), array(ContentChunk$inboundSchema)])).optional(),
565
- tool_calls: nullable(array(ToolCall$inboundSchema)).optional(),
566
- tool_call_id: nullable(string()).optional(),
567
- index: nullable(int()).optional(),
568
- metadata: nullable(record(string(), any())).optional()
569
- }).transform((v) => {
570
- return remap(v, {
571
- tool_calls: "toolCalls",
572
- tool_call_id: "toolCallId"
573
- });
574
- });
575
-
576
- // node_modules/@mistralai/mistralai/esm/models/components/completionresponsestreamchoice.js
577
- var CompletionResponseStreamChoiceFinishReason = {
578
- Stop: "stop",
579
- Length: "length",
580
- Error: "error",
581
- ToolCalls: "tool_calls"
582
- };
583
- var CompletionResponseStreamChoiceFinishReason$inboundSchema = inboundSchema(CompletionResponseStreamChoiceFinishReason);
584
- var CompletionResponseStreamChoice$inboundSchema = object({
585
- index: int(),
586
- delta: DeltaMessage$inboundSchema,
587
- finish_reason: nullable(CompletionResponseStreamChoiceFinishReason$inboundSchema)
588
- }).transform((v) => {
589
- return remap(v, {
590
- finish_reason: "finishReason"
591
- });
592
- });
593
-
594
- // node_modules/@mistralai/mistralai/esm/models/components/completionchunk.js
595
- var CompletionChunk$inboundSchema = object({
596
- id: string(),
597
- object: string().optional(),
598
- created: int().optional(),
599
- model: string(),
600
- usage: UsageInfo$inboundSchema.optional(),
601
- choices: array(CompletionResponseStreamChoice$inboundSchema)
602
- });
603
- function completionChunkFromJSON(jsonString) {
604
- return safeParse(jsonString, (x) => CompletionChunk$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CompletionChunk' from JSON`);
605
- }
606
-
607
- export { formatZodError, OK, ERR, unwrapAsync, safeParse, remap, compactMap, inboundSchema, inboundSchemaInt, outboundSchema, outboundSchemaInt, discriminatedUnion, smartUnion, DocumentURLChunk$inboundSchema, DocumentURLChunk$outboundSchema, FileChunk$outboundSchema, ImageURLChunk$inboundSchema, ImageURLChunk$outboundSchema, TextChunk$inboundSchema, TextChunk$outboundSchema, BuiltInConnectors$inboundSchema, BuiltInConnectors$outboundSchema, ToolReferenceChunk$inboundSchema, ToolReferenceChunk$outboundSchema, ThinkChunk$inboundSchema, ThinkChunk$outboundSchema, ContentChunk$inboundSchema, ContentChunk$outboundSchema, ToolCall$inboundSchema, ToolCall$outboundSchema, DeltaMessage$inboundSchema, UsageInfo$inboundSchema, UsageInfo$outboundSchema, CompletionChunk$inboundSchema, completionChunkFromJSON };
@@ -1,31 +0,0 @@
1
- import {
2
- handleHook
3
- } from "./cli-2rk0cx7s.js";
4
- import"./cli-w2wxd56v.js";
5
- import"./cli-yv9dttkh.js";
6
- import"./cli-v1mwc5v2.js";
7
- import"./cli-2wadx7p2.js";
8
- import"./cli-e7d20cty.js";
9
- import"./cli-3dpj7atn.js";
10
- import"./cli-f14fvzag.js";
11
- import"./cli-0258203w.js";
12
- import"./cli-x23me2mg.js";
13
- import"./cli-zsspvvm2.js";
14
- import"./cli-4j2mrzag.js";
15
- import"./cli-ccf9vy7q.js";
16
- import"./cli-5dsbcjjw.js";
17
- import"./cli-darcwax3.js";
18
- import"./cli-4wgngmwv.js";
19
- import"./cli-zyxs93y9.js";
20
- import"./cli-akdvwc9v.js";
21
- import"./cli-8wrympd7.js";
22
- import"./cli-p9swy5t3.js";
23
-
24
- // src/commands/hook.ts
25
- async function runHook() {
26
- await handleHook();
27
- process.exit(0);
28
- }
29
- export {
30
- runHook
31
- };
@@ -1,34 +0,0 @@
1
- import {
2
- calculateNextRun,
3
- dispatchScheduleTarget,
4
- runScheduleNow,
5
- startScheduler,
6
- stopScheduler
7
- } from "./cli-ycrnynpw.js";
8
- import"./cli-jbcva0xj.js";
9
- import"./cli-3dpj7atn.js";
10
- import"./cli-6dp3ydxa.js";
11
- import"./cli-epan13p1.js";
12
- import"./cli-f14fvzag.js";
13
- import"./cli-g1re8r05.js";
14
- import"./cli-se2p6rkb.js";
15
- import"./cli-0258203w.js";
16
- import"./cli-nrkkknat.js";
17
- import"./cli-2f07m0xr.js";
18
- import"./cli-50vbt00w.js";
19
- import"./cli-xpxde7rm.js";
20
- import"./cli-x23me2mg.js";
21
- import"./cli-z2zcxes1.js";
22
- import"./cli-zsspvvm2.js";
23
- import"./cli-4j2mrzag.js";
24
- import"./cli-ccf9vy7q.js";
25
- import"./cli-5dsbcjjw.js";
26
- import"./cli-9aryf9tv.js";
27
- import"./cli-p9swy5t3.js";
28
- export {
29
- stopScheduler,
30
- startScheduler,
31
- runScheduleNow,
32
- dispatchScheduleTarget,
33
- calculateNextRun
34
- };
@@ -1,7 +0,0 @@
1
- import {
2
- require_event_streams
3
- } from "./cli-9sbhdpvb.js";
4
- import"./cli-z905tvmm.js";
5
- import"./cli-czkae1fp.js";
6
- import"./cli-p9swy5t3.js";
7
- export default require_event_streams();
@@ -1,6 +0,0 @@
1
- import {
2
- require_dist1 as require_dist
3
- } from "./cli-r6kqqbj0.js";
4
- import"./cli-3fj60etf.js";
5
- import"./cli-p9swy5t3.js";
6
- export default require_dist();