@desplega.ai/agent-swarm 1.129.0 → 1.131.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 (226) hide show
  1. package/README.md +2 -2
  2. package/dist/{actions-kfv2dawe.js → actions-w53mbns9.js} +11 -11
  3. package/dist/{anthropic-messages-3xgme8my.js → anthropic-messages-rjmd2e7n.js} +5 -5
  4. package/dist/{app-q8vjk6e8.js → app-m9gwqsqv.js} +8 -8
  5. package/dist/{artifact-hg4t1nx7.js → artifact-jysj3wrg.js} +2 -2
  6. package/dist/{assistant-g037r345.js → assistant-bp65m6f3.js} +13 -13
  7. package/dist/{azure-openai-responses-xa4sh9f6.js → azure-openai-responses-c0yjmbfd.js} +8 -5
  8. package/dist/{boot-reembed-18pzsrxa.js → boot-reembed-62p0at2k.js} +6 -6
  9. package/dist/{boot-reembed-wpks2cj8.js → boot-reembed-xmfp6wdh.js} +7 -7
  10. package/dist/{boot-scrub-logs-n7szd57r.js → boot-scrub-logs-rr8q2dms.js} +5 -5
  11. package/dist/{claude-adapter-qz4r0ajt.js → claude-adapter-2y47mrkd.js} +9 -9
  12. package/dist/{cli-mhjnbgb6.js → cli-0rcyq6d9.js} +450 -186
  13. package/dist/{cli-ttkmehy0.js → cli-2q72qz2s.js} +274 -25
  14. package/dist/{cli-gztgc3hz.js → cli-2wadx7p2.js} +2 -2
  15. package/dist/cli-3fj60etf.js +153 -0
  16. package/dist/{cli-7ecgm5v0.js → cli-3kf51j15.js} +1 -1
  17. package/dist/{cli-vgexpfsr.js → cli-57khth04.js} +6 -3
  18. package/dist/{cli-2mbe7vk0.js → cli-5dsbcjjw.js} +1 -1
  19. package/dist/{cli-etr62zy6.js → cli-5kx36evn.js} +2 -2
  20. package/dist/{cli-v2tr6amf.js → cli-5n6e5yfn.js} +30 -8
  21. package/dist/{cli-hx02s9zq.js → cli-5v4rw6yd.js} +2 -2
  22. package/dist/{cli-v37yr6mf.js → cli-5ze9rv97.js} +4 -4
  23. package/dist/{cli-ch7t5v7n.js → cli-6map995v.js} +9 -4
  24. package/dist/{cli-h0457a67.js → cli-70xqj0z3.js} +3 -3
  25. package/dist/{cli-kk4f9r17.js → cli-72q8m8gk.js} +8 -6
  26. package/dist/{cli-7padk69a.js → cli-78xwvkhj.js} +2 -2
  27. package/dist/{cli-dxtxacy7.js → cli-9dr5qzc0.js} +45 -8
  28. package/dist/{cli-17zxdgsq.js → cli-a40rnf71.js} +6 -6
  29. package/dist/{cli-t53vnnxz.js → cli-a4jzdpa3.js} +2514 -1055
  30. package/dist/{cli-w10fkrf1.js → cli-akdvwc9v.js} +354 -115
  31. package/dist/{cli-1qkk5er0.js → cli-bmze986d.js} +1 -1
  32. package/dist/{cli-ga12dc1d.js → cli-bqw0mt1n.js} +3 -3
  33. package/dist/{cli-0sf92efp.js → cli-cdeg08wx.js} +1 -1
  34. package/dist/{cli-a8ynhkyj.js → cli-cvgjwnh1.js} +17 -15
  35. package/dist/{cli-9fxg3v5m.js → cli-d2tfkcga.js} +4 -4
  36. package/dist/{cli-nhcd7x43.js → cli-d3x3x1c9.js} +2 -2
  37. package/dist/{cli-6nh2qxvh.js → cli-darcwax3.js} +1 -1
  38. package/dist/{cli-yjbgmysx.js → cli-e7ckcg4v.js} +12 -12
  39. package/dist/{cli-4n2gcjpd.js → cli-efxfnq6q.js} +4 -3
  40. package/dist/{cli-z9xqqhfk.js → cli-er3a4bb0.js} +1 -1
  41. package/dist/{cli-xg2eezyv.js → cli-f1am9szv.js} +1 -1
  42. package/dist/{cli-xy4cwsm9.js → cli-fywms69x.js} +1 -1
  43. package/dist/{cli-33jj76y8.js → cli-g6b8x1h8.js} +1 -1
  44. package/dist/{cli-epsvdckx.js → cli-gm9cbhbq.js} +20 -10
  45. package/dist/{cli-rkndnn90.js → cli-k9qkf1hw.js} +6 -4
  46. package/dist/{cli-zejvt395.js → cli-kh3ba2zf.js} +1 -1
  47. package/dist/{cli-gb25p1h2.js → cli-nm5gtp1x.js} +2 -2
  48. package/dist/{cli-akxnpx17.js → cli-pm6xbh84.js} +1829 -1629
  49. package/dist/{cli-2k0ztbfp.js → cli-psh3c4va.js} +1 -1
  50. package/dist/{cli-39vgrsep.js → cli-qv61hp37.js} +2 -2
  51. package/dist/{cli-hv2fndhm.js → cli-r6kqqbj0.js} +6 -4
  52. package/dist/{cli-1y1cm570.js → cli-rzbpmxdr.js} +1 -1
  53. package/dist/{cli-mmrk00vp.js → cli-t1xze5qh.js} +1 -1
  54. package/dist/{cli-g252a9ky.js → cli-t55yw3a1.js} +2 -2
  55. package/dist/{cli-7bz8dzqa.js → cli-t76vw5db.js} +1184 -1522
  56. package/dist/{cli-4n4mdv21.js → cli-xpxde7rm.js} +7 -3
  57. package/dist/{cli-fpaa5k2q.js → cli-yw8vghx2.js} +54 -18
  58. package/dist/cli-zsspvvm2.js +490 -0
  59. package/dist/cli.js +27 -25
  60. package/dist/{codex-adapter-7v6t7ff6.js → codex-adapter-d24q75wk.js} +7 -7
  61. package/dist/{codex-hook-amndawyb.js → codex-hook-hq54t9ft.js} +2 -2
  62. package/dist/{codex-session-runner-e7j4khe2.js → codex-session-runner-g50vcsex.js} +7 -7
  63. package/dist/{commands-ex0k5tbf.js → commands-c3nrc5hg.js} +5 -5
  64. package/dist/{db-df7jatfc.js → db-nt7fg3tw.js} +5 -5
  65. package/dist/{google-generative-ai-y42hnw9p.js → google-generative-ai-hysrd8qx.js} +7 -5
  66. package/dist/{google-vertex-4sg66gb6.js → google-vertex-p5arrga0.js} +7 -5
  67. package/dist/{handlers-1j2cfqt2.js → handlers-fkr6swat.js} +13 -13
  68. package/dist/{hook-nx9a0mj3.js → hook-77wpvnjc.js} +7 -7
  69. package/dist/{hook-w6yaf6sy.js → hook-g019yehy.js} +8 -8
  70. package/dist/{http-4tz5h8wg.js → http-jewj0syk.js} +2993 -716
  71. package/dist/{index-0bpkzb09.js → index-070v4eyb.js} +3 -3
  72. package/dist/{index-0s67qv7h.js → index-6gm5he8h.js} +11 -11
  73. package/dist/{index-35gtv6gj.js → index-7n2xpbd4.js} +310 -40
  74. package/dist/{index-ker3gccb.js → index-9znhar3x.js} +4 -4
  75. package/dist/{index-5n2c8yay.js → index-hase6zbe.js} +2 -2
  76. package/dist/{index-kcf3tm9h.js → index-hfvggd0z.js} +12 -12
  77. package/dist/{index-7c0jqna0.js → index-hp1kdbjj.js} +13 -13
  78. package/dist/{keepalive-3j4a9168.js → keepalive-j0fjvqfd.js} +7 -7
  79. package/dist/{lead-6kpevymb.js → lead-1n8x30xe.js} +33 -33
  80. package/dist/{maintenance-m1k82ean.js → maintenance-gvev11sa.js} +7 -7
  81. package/dist/{mistral-conversations-bjkdfb6z.js → mistral-conversations-81fwav0j.js} +6 -6
  82. package/dist/{oauth-refresh-sweep-881k8e4q.js → oauth-refresh-sweep-s9ecsvh0.js} +6 -6
  83. package/dist/{onboard-c0ykffjn.js → onboard-pvm5b38w.js} +2 -2
  84. package/dist/{openai-codex-responses-xetseqvt.js → openai-codex-responses-5g27pd6f.js} +43 -23
  85. package/dist/{openai-completions-5r2g5axa.js → openai-completions-3vkmfz2a.js} +55 -11
  86. package/dist/{openai-responses-ce67hd23.js → openai-responses-dg4t7j7a.js} +8 -5
  87. package/dist/{openrouter-images-pzfp22jb.js → openrouter-images-g3gm8931.js} +1 -1
  88. package/dist/{otel-impl-sqagjerv.js → otel-impl-p6jvgd9c.js} +6 -4
  89. package/dist/{otel-3mp81ppd.js → otel-nqa12wf3.js} +2 -2
  90. package/dist/{pi-mono-adapter-k584k16g.js → pi-mono-adapter-t091s27g.js} +17117 -7517
  91. package/dist/{pricing-refresh-y82whbf9.js → pricing-refresh-k49rcyed.js} +7 -7
  92. package/dist/{rbac-roles-nvkqmzyd.js → rbac-roles-30pspvy7.js} +7 -7
  93. package/dist/{rbac-roles-4ht8gegc.js → rbac-roles-cr80g96t.js} +6 -6
  94. package/dist/{render-v2-wvqdgvvp.js → render-v2-xm457ng1.js} +8 -8
  95. package/dist/{seed-pricing-fy3rxhde.js → seed-pricing-yhpv35fr.js} +6 -6
  96. package/dist/{setup-ak5cnc6f.js → setup-nytnmwwr.js} +2 -2
  97. package/dist/{worker-d8769q8a.js → worker-msytr2cw.js} +33 -33
  98. package/openapi.json +34039 -11036
  99. package/package.json +8 -6
  100. package/src/apps/definition.ts +368 -26
  101. package/src/apps/row-store.ts +66 -10
  102. package/src/apps/schema-migrate.ts +95 -1
  103. package/src/apps/store.ts +13 -4
  104. package/src/apps/sync-run-as.ts +18 -0
  105. package/src/apps/sync.ts +934 -0
  106. package/src/apps/version.ts +16 -2
  107. package/src/assets/key.ts +8 -1
  108. package/src/be/asset-key-audit.ts +3 -1
  109. package/src/be/db-queries/mcp-oauth.ts +297 -24
  110. package/src/be/db.ts +42 -1
  111. package/src/be/migrations/129_asset_keys_apps_scripts.sql +161 -0
  112. package/src/be/scripts/db.ts +5 -2
  113. package/src/be/scripts/typecheck.ts +1 -0
  114. package/src/be/seed-scripts/catalog/app-sync-run.ts +32 -0
  115. package/src/be/seed-scripts/catalog/github-issues-pull.ts +102 -0
  116. package/src/be/seed-scripts/index.ts +18 -0
  117. package/src/be/seed-skills/index.ts +7 -0
  118. package/src/http/active-sessions.ts +26 -18
  119. package/src/http/agents.ts +94 -27
  120. package/src/http/api-keys.ts +91 -17
  121. package/src/http/approval-requests.ts +87 -10
  122. package/src/http/apps.ts +361 -53
  123. package/src/http/assets.ts +165 -31
  124. package/src/http/budgets.ts +7 -5
  125. package/src/http/codex-oauth-keep-warm.ts +21 -3
  126. package/src/http/config.ts +46 -16
  127. package/src/http/context.ts +33 -6
  128. package/src/http/ecosystem.ts +20 -6
  129. package/src/http/events.ts +24 -9
  130. package/src/http/favorites.ts +20 -6
  131. package/src/http/fs.ts +60 -17
  132. package/src/http/heartbeat.ts +18 -4
  133. package/src/http/inbox-state.ts +12 -6
  134. package/src/http/integrations.ts +25 -5
  135. package/src/http/kv.ts +36 -15
  136. package/src/http/mcp-bridge.ts +5 -1
  137. package/src/http/mcp-oauth.ts +332 -17
  138. package/src/http/mcp-servers.ts +56 -18
  139. package/src/http/memory.ts +282 -29
  140. package/src/http/metrics.ts +80 -17
  141. package/src/http/oauth-callback.ts +10 -4
  142. package/src/http/oauth-generic.ts +5 -1
  143. package/src/http/oauth-locks.ts +6 -3
  144. package/src/http/openapi.ts +57 -9
  145. package/src/http/page-proxy.ts +25 -5
  146. package/src/http/pages-public.ts +37 -20
  147. package/src/http/pages.ts +93 -28
  148. package/src/http/poll.ts +89 -5
  149. package/src/http/pricing.ts +9 -6
  150. package/src/http/prompt-templates.ts +85 -21
  151. package/src/http/route-def.ts +67 -4
  152. package/src/http/schedules.ts +63 -14
  153. package/src/http/script-connection-proxy.ts +30 -4
  154. package/src/http/script-connections.ts +393 -43
  155. package/src/http/script-runs.ts +73 -19
  156. package/src/http/scripts.ts +257 -39
  157. package/src/http/session-data.ts +87 -14
  158. package/src/http/sessions.ts +80 -5
  159. package/src/http/skills.ts +115 -35
  160. package/src/http/stats.ts +94 -13
  161. package/src/http/task-templates.ts +6 -4
  162. package/src/http/tasks.ts +230 -61
  163. package/src/http/trackers/jira.ts +90 -30
  164. package/src/http/trackers/linear.ts +46 -12
  165. package/src/http/users.ts +162 -25
  166. package/src/http/utils.ts +12 -2
  167. package/src/http/webhooks.ts +30 -16
  168. package/src/http/workflow-events.ts +18 -5
  169. package/src/http/workflows.ts +128 -39
  170. package/src/http/x.ts +37 -6
  171. package/src/oauth/ensure-mcp-token.ts +16 -1
  172. package/src/oauth/mcp-wrapper.ts +281 -26
  173. package/src/providers/pi-mono-adapter.ts +1 -1
  174. package/src/scripts-runtime/credential-broker/README.md +1 -1
  175. package/src/scripts-runtime/credential-broker/fetch-patch.ts +12 -2
  176. package/src/scripts-runtime/sdk-allowlist.ts +1 -0
  177. package/src/scripts-runtime/stdlib/fetch.ts +6 -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/server.ts +2 -0
  181. package/src/tests/apps-rbac.test.ts +110 -0
  182. package/src/tests/apps-spike2.test.ts +4 -1
  183. package/src/tests/apps-sync-engine.test.ts +2540 -0
  184. package/src/tests/apps-sync.test.ts +1627 -0
  185. package/src/tests/asset-key-api.test.ts +48 -2
  186. package/src/tests/asset-key-invariants.test.ts +92 -0
  187. package/src/tests/asset-key-migration.test.ts +174 -8
  188. package/src/tests/asset-key-normalization.test.ts +2 -0
  189. package/src/tests/credential-broker.test.ts +27 -2
  190. package/src/tests/mcp-oauth-dcr-reuse.test.ts +743 -0
  191. package/src/tests/mcp-oauth-ensure-token.test.ts +45 -0
  192. package/src/tests/mcp-oauth-manual-client.test.ts +135 -2
  193. package/src/tests/mcp-oauth-queries.test.ts +153 -0
  194. package/src/tests/mcp-oauth-wrapper.test.ts +432 -0
  195. package/src/tests/memory-http-recall-gating.test.ts +2 -0
  196. package/src/tests/openapi-response-contract.test.ts +138 -0
  197. package/src/tests/rbac-admission-e2e.test.ts +68 -0
  198. package/src/tests/script-connections.test.ts +3 -0
  199. package/src/tests/scripts-runtime-fetch.test.ts +121 -0
  200. package/src/tests/scripts-runtime-secret-egress.test.ts +4 -2
  201. package/src/tests/seed-scripts.test.ts +2 -2
  202. package/src/tests/swarm-tool-result-gate.test.ts +32 -0
  203. package/src/tests/task-working-dir.test.ts +8 -4
  204. package/src/tests/whoami-route.test.ts +127 -0
  205. package/src/tests/workflow-engine-v2.test.ts +80 -7
  206. package/src/tests/workflow-swarm-script.test.ts +104 -0
  207. package/src/tools/app-get.ts +10 -2
  208. package/src/tools/app-rollback.ts +1 -0
  209. package/src/tools/app-sync.ts +112 -0
  210. package/src/tools/script-common.ts +20 -0
  211. package/src/tools/tool-config.ts +2 -1
  212. package/src/tools/utils.ts +11 -0
  213. package/src/tools/workflows/create-workflow.ts +4 -1
  214. package/src/types.ts +1394 -1206
  215. package/src/utils/template.ts +8 -1
  216. package/src/utils/zod-openapi.ts +11 -0
  217. package/src/workflows/engine.ts +27 -4
  218. package/src/workflows/executors/swarm-script.ts +28 -0
  219. package/src/workflows/retry-poller.ts +19 -2
  220. package/templates/skills/apps/content.md +94 -5
  221. package/templates/skills/asset-namespaces/content.md +2 -2
  222. package/templates/skills/scheduled-task-resilience/SKILL.md +102 -0
  223. package/templates/skills/scheduled-task-resilience/config.json +14 -0
  224. package/templates/skills/scheduled-task-resilience/content.md +97 -0
  225. package/dist/cli-7wmybrt5.js +0 -115
  226. package/dist/cli-d91pvmq1.js +0 -14
package/README.md CHANGED
@@ -130,13 +130,13 @@ Check [our templates](https://templates.agent-swarm.dev) for a quick start.
130
130
  - **Scheduled & recurring tasks** — cron-based automation for standing work, with schedules that can target agent tasks, workflows, or catalog scripts. [Scheduling →](https://docs.agent-swarm.dev/docs/concepts/scheduling)
131
131
  - **Mid-run task steering** — add context at the next turn boundary, request an immediate interrupt where the harness supports it, or degrade safely to a follow-up task. [Task steering →](https://docs.agent-swarm.dev/docs/guides/task-steering)
132
132
  - **Operator configuration UI** — tune non-secret feature flags, limits, integration toggles, and runtime defaults from Settings → Configuration, with source and restart-required indicators. [Configuration →](https://docs.agent-swarm.dev/docs/ui/configuration)
133
- - **Asset namespaces** — group tasks, workflows, schedules, pages, and mapped files under canonical shared or personal keys, with inheritance, subtree filtering, audited moves, and cross-entity discovery. [Asset namespaces →](https://docs.agent-swarm.dev/docs/guides/asset-namespaces)
133
+ - **Asset namespaces** — group tasks, workflows, schedules, pages, apps, scripts, and mapped files under canonical shared or personal keys, with inheritance, subtree filtering, audited moves, and cross-entity discovery. [Asset namespaces →](https://docs.agent-swarm.dev/docs/guides/asset-namespaces)
134
134
  - **Persistent shared files via agent-fs** — co-deploy agent-fs for shared task attachments, previews, and search; late provisioning or config reloads activate the provider without an API restart, and tenant-authenticated control planes can invite shared-org members without receiving the bootstrap key. [Co-deployment guide →](https://docs.agent-swarm.dev/docs/guides/agent-fs-co-deployment)
135
135
  - **Durable script workflows** — launch background script runs, inspect their journals, and track them from the dashboard when a one-shot `script-run` is too small. [Guide →](https://docs.agent-swarm.dev/docs/guides/script-workflow-runs)
136
136
  - **Scripts-only MCP mode (code-mode)** — reduce the external MCP surface to eight script tools while retaining the full swarm SDK through `script-run`, cutting tool-schema context for capable coordinator models. [Guide →](https://docs.agent-swarm.dev/docs/guides/scripts-only-mode)
137
137
  - **Scripts as external APIs** — expose a saved script as a public `POST /api/x/script/<id>` endpoint with optional bearer auth, typed input validation, and per-endpoint usage tracking. [Guide →](https://docs.agent-swarm.dev/docs/guides/scripts-external-apis)
138
138
  - **Typed script API connections** — lead-managed OpenAPI, GraphQL, and MCP connections generate `ctx.api.*` / `ctx.mcp.*` clients for scripts, with credential bindings and OAuth-backed auth kept server-side. [Guide →](https://docs.agent-swarm.dev/docs/guides/script-connections)
139
- - **Swarm Apps** — agents build versioned, schema-backed dashboard apps with reusable UI elements, named queries and actions, per-user settings, RBAC, history, and safe rollback. App definitions also generate typed script APIs. [Apps API →](https://docs.agent-swarm.dev/docs/api-reference/apps)
139
+ - **Swarm Apps** — agents build versioned, schema-backed dashboard apps with reusable UI elements, named queries and actions, per-user settings, RBAC, history, and safe rollback. Models can also sync source-backed rows through owner-scoped script connections. [Apps API →](https://docs.agent-swarm.dev/docs/api-reference/apps)
140
140
  - **E2B-backed eval harness** — run a scenario × harness-config matrix against real swarm stacks, capture transcripts/artifacts, and grade outcomes with deterministic checks plus LLM or agentic judges. [Guide →](https://docs.agent-swarm.dev/docs/guides/evals-harness)
141
141
  - **Harness & LLM agnostic** — run with Claude Code, Claude Bridge, OpenAI Codex, pi-mono (Anthropic, OpenRouter, or Amazon Bedrock), Devin, Claude Managed Agents, raw LLMs, or opencode. The dashboard model picker follows a live models.dev catalog (with a bundled snapshot fallback), so newly released provider models appear without a redeploy. Route every OpenRouter-backed harness, workflow, and summarizer through an OpenAI-compatible gateway with `OPENROUTER_BASE_URL`. Tasks, schedules, and workflow agent-task nodes can use portable `modelTier` intent (`smol`, `regular`, `smart`, `ultra`), and operators can set per-agent reasoning effort (`off` → `max`, where supported) without changing task payloads. [Harness config →](https://docs.agent-swarm.dev/docs/guides/harness-configuration) · [Add a new provider →](https://docs.agent-swarm.dev/docs/guides/harness-providers)
142
142
  - **Published release artifacts** — every release publishes multi-architecture API, full-worker, and slim-worker images alongside versioned E2B templates, the npm CLI package, and the Helm chart. [Artifact inventory →](https://docs.agent-swarm.dev/docs/guides/published-artifacts)
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  resolveSlackUserId
3
- } from "./cli-7padk69a.js";
4
- import"./cli-2k0ztbfp.js";
3
+ } from "./cli-78xwvkhj.js";
4
+ import"./cli-psh3c4va.js";
5
5
  import {
6
6
  createTaskWithSiblingAwareness
7
- } from "./cli-0sf92efp.js";
7
+ } from "./cli-cdeg08wx.js";
8
8
  import {
9
9
  buildCancelledBlocks,
10
10
  ensureSlackThreadTree,
@@ -12,8 +12,8 @@ import {
12
12
  getAgentEmoji,
13
13
  getTaskLink,
14
14
  isSlackRenderV2Enabled
15
- } from "./cli-a8ynhkyj.js";
16
- import"./cli-rkndnn90.js";
15
+ } from "./cli-cvgjwnh1.js";
16
+ import"./cli-k9qkf1hw.js";
17
17
  import"./cli-b0p7rfnd.js";
18
18
  import"./cli-t930g0xh.js";
19
19
  import {
@@ -24,16 +24,16 @@ import {
24
24
  init_context_key,
25
25
  init_db,
26
26
  slackContextKey
27
- } from "./cli-t53vnnxz.js";
28
- import"./cli-4n4mdv21.js";
27
+ } from "./cli-a4jzdpa3.js";
28
+ import"./cli-xpxde7rm.js";
29
29
  import"./cli-x23me2mg.js";
30
30
  import"./cli-z2zcxes1.js";
31
- import"./cli-d91pvmq1.js";
31
+ import"./cli-zsspvvm2.js";
32
32
  import"./cli-4j2mrzag.js";
33
- import"./cli-kk4f9r17.js";
34
- import"./cli-2mbe7vk0.js";
33
+ import"./cli-72q8m8gk.js";
34
+ import"./cli-5dsbcjjw.js";
35
35
  import"./cli-e15jhafb.js";
36
- import"./cli-7wmybrt5.js";
36
+ import"./cli-3fj60etf.js";
37
37
  import"./cli-p9swy5t3.js";
38
38
 
39
39
  // src/slack/actions.ts
@@ -24,13 +24,13 @@ import {
24
24
  clampMaxTokensToContext,
25
25
  resolveJsonSchemaStrictSampling,
26
26
  transformMessages
27
- } from "./cli-vgexpfsr.js";
27
+ } from "./cli-57khth04.js";
28
28
  import {
29
29
  sanitizeSurrogates
30
30
  } from "./cli-y2apkfe2.js";
31
31
  import {
32
32
  calculateCost
33
- } from "./cli-w10fkrf1.js";
33
+ } from "./cli-akdvwc9v.js";
34
34
  import {
35
35
  AssistantMessageEventStream
36
36
  } from "./cli-8wrympd7.js";
@@ -5189,7 +5189,7 @@ var stream = (model, context, options) => {
5189
5189
  if (event.content_block.type === "text") {
5190
5190
  const block = {
5191
5191
  type: "text",
5192
- text: "",
5192
+ text: event.content_block.text ?? "",
5193
5193
  index: event.index
5194
5194
  };
5195
5195
  output.content.push(block);
@@ -5197,8 +5197,8 @@ var stream = (model, context, options) => {
5197
5197
  } else if (event.content_block.type === "thinking") {
5198
5198
  const block = {
5199
5199
  type: "thinking",
5200
- thinking: "",
5201
- thinkingSignature: "",
5200
+ thinking: event.content_block.thinking ?? "",
5201
+ thinkingSignature: event.content_block.signature ?? "",
5202
5202
  index: event.index
5203
5203
  };
5204
5204
  output.content.push(block);
@@ -3,20 +3,20 @@ import {
3
3
  initSlackApp,
4
4
  startSlackApp,
5
5
  stopSlackApp
6
- } from "./cli-a8ynhkyj.js";
7
- import"./cli-rkndnn90.js";
6
+ } from "./cli-cvgjwnh1.js";
7
+ import"./cli-k9qkf1hw.js";
8
8
  import"./cli-b0p7rfnd.js";
9
9
  import"./cli-t930g0xh.js";
10
- import"./cli-t53vnnxz.js";
11
- import"./cli-4n4mdv21.js";
10
+ import"./cli-a4jzdpa3.js";
11
+ import"./cli-xpxde7rm.js";
12
12
  import"./cli-x23me2mg.js";
13
13
  import"./cli-z2zcxes1.js";
14
- import"./cli-d91pvmq1.js";
14
+ import"./cli-zsspvvm2.js";
15
15
  import"./cli-4j2mrzag.js";
16
- import"./cli-kk4f9r17.js";
17
- import"./cli-2mbe7vk0.js";
16
+ import"./cli-72q8m8gk.js";
17
+ import"./cli-5dsbcjjw.js";
18
18
  import"./cli-e15jhafb.js";
19
- import"./cli-7wmybrt5.js";
19
+ import"./cli-3fj60etf.js";
20
20
  import"./cli-p9swy5t3.js";
21
21
  export {
22
22
  stopSlackApp,
@@ -7,12 +7,12 @@ import {
7
7
  import {
8
8
  require_follow_redirects,
9
9
  require_src
10
- } from "./cli-rkndnn90.js";
10
+ } from "./cli-k9qkf1hw.js";
11
11
  import {
12
12
  getMcpBaseUrl,
13
13
  init_constants
14
14
  } from "./cli-x23me2mg.js";
15
- import"./cli-7wmybrt5.js";
15
+ import"./cli-3fj60etf.js";
16
16
  import {
17
17
  __commonJS,
18
18
  __require,
@@ -2,25 +2,25 @@ import {
2
2
  bufferThreadMessage,
3
3
  getBufferMessageCount,
4
4
  wasEventSeen
5
- } from "./cli-17zxdgsq.js";
5
+ } from "./cli-a40rnf71.js";
6
6
  import {
7
7
  hasOtherUserMention
8
- } from "./cli-nhcd7x43.js";
8
+ } from "./cli-d3x3x1c9.js";
9
9
  import {
10
10
  resolveSlackUserId,
11
11
  rewriteSlackMentions
12
- } from "./cli-7padk69a.js";
13
- import"./cli-2k0ztbfp.js";
12
+ } from "./cli-78xwvkhj.js";
13
+ import"./cli-psh3c4va.js";
14
14
  import {
15
15
  createTaskWithSiblingAwareness
16
- } from "./cli-0sf92efp.js";
16
+ } from "./cli-cdeg08wx.js";
17
17
  import {
18
18
  ackSlackMessage,
19
19
  ensureSlackThreadTree,
20
20
  isSlackRenderV2Enabled,
21
21
  require_dist
22
- } from "./cli-a8ynhkyj.js";
23
- import"./cli-rkndnn90.js";
22
+ } from "./cli-cvgjwnh1.js";
23
+ import"./cli-k9qkf1hw.js";
24
24
  import"./cli-b0p7rfnd.js";
25
25
  import"./cli-t930g0xh.js";
26
26
  import {
@@ -30,21 +30,21 @@ import {
30
30
  init_context_key,
31
31
  init_db,
32
32
  slackContextKey
33
- } from "./cli-t53vnnxz.js";
33
+ } from "./cli-a4jzdpa3.js";
34
34
  import {
35
35
  init_env_flag,
36
36
  init_resolver,
37
37
  isEnvFlagEnabled,
38
38
  resolveTemplate
39
- } from "./cli-4n4mdv21.js";
39
+ } from "./cli-xpxde7rm.js";
40
40
  import"./cli-x23me2mg.js";
41
41
  import"./cli-z2zcxes1.js";
42
- import"./cli-d91pvmq1.js";
42
+ import"./cli-zsspvvm2.js";
43
43
  import"./cli-4j2mrzag.js";
44
- import"./cli-kk4f9r17.js";
45
- import"./cli-2mbe7vk0.js";
44
+ import"./cli-72q8m8gk.js";
45
+ import"./cli-5dsbcjjw.js";
46
46
  import"./cli-e15jhafb.js";
47
- import"./cli-7wmybrt5.js";
47
+ import"./cli-3fj60etf.js";
48
48
  import {
49
49
  __toESM
50
50
  } from "./cli-p9swy5t3.js";
@@ -2,7 +2,7 @@ import {
2
2
  convertResponsesMessages,
3
3
  convertResponsesTools,
4
4
  processResponsesStream
5
- } from "./cli-epsvdckx.js";
5
+ } from "./cli-gm9cbhbq.js";
6
6
  import {
7
7
  clampOpenAIPromptCacheKey
8
8
  } from "./cli-mrptpp86.js";
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  formatProviderError,
18
18
  normalizeProviderError
19
- } from "./cli-ch7t5v7n.js";
19
+ } from "./cli-6map995v.js";
20
20
  import {
21
21
  getProviderEnvValue
22
22
  } from "./cli-4wgngmwv.js";
@@ -27,11 +27,11 @@ import"./cli-zyxs93y9.js";
27
27
  import {
28
28
  buildBaseOptions,
29
29
  createGrammarToolInputProperties
30
- } from "./cli-vgexpfsr.js";
30
+ } from "./cli-57khth04.js";
31
31
  import"./cli-y2apkfe2.js";
32
32
  import {
33
33
  clampThinkingLevel
34
- } from "./cli-w10fkrf1.js";
34
+ } from "./cli-akdvwc9v.js";
35
35
  import {
36
36
  AssistantMessageEventStream
37
37
  } from "./cli-8wrympd7.js";
@@ -119,7 +119,7 @@ var stream = (model, context, options) => {
119
119
  throw new Error("Azure OpenAI Responses stream ended without a stop reason");
120
120
  }
121
121
  if (output.stopReason === "aborted" || output.stopReason === "error") {
122
- throw new Error("An unknown error occurred");
122
+ throw new Error(output.errorMessage || "An unknown error occurred");
123
123
  }
124
124
  stream2.push({ type: "done", reason: output.stopReason, message: output });
125
125
  stream2.end();
@@ -240,6 +240,9 @@ function buildParams(model, context, options, deploymentName, grammarToolInputPr
240
240
  };
241
241
  }
242
242
  }
243
+ if (options?.samplingParams) {
244
+ Object.assign(params, options.samplingParams);
245
+ }
243
246
  return params;
244
247
  }
245
248
  export {
@@ -3,19 +3,19 @@ import {
3
3
  getEmbeddingProvider,
4
4
  getMemoryStore,
5
5
  init_constants
6
- } from "./cli-1y1cm570.js";
6
+ } from "./cli-rzbpmxdr.js";
7
7
  import"./cli-0258203w.js";
8
8
  import {
9
9
  getDb,
10
10
  init_db
11
- } from "./cli-t53vnnxz.js";
12
- import"./cli-4n4mdv21.js";
11
+ } from "./cli-a4jzdpa3.js";
12
+ import"./cli-xpxde7rm.js";
13
13
  import"./cli-x23me2mg.js";
14
14
  import"./cli-z2zcxes1.js";
15
- import"./cli-d91pvmq1.js";
15
+ import"./cli-zsspvvm2.js";
16
16
  import"./cli-4j2mrzag.js";
17
- import"./cli-kk4f9r17.js";
18
- import"./cli-2mbe7vk0.js";
17
+ import"./cli-72q8m8gk.js";
18
+ import"./cli-5dsbcjjw.js";
19
19
  import"./cli-p9swy5t3.js";
20
20
 
21
21
  // src/be/memory/boot-reembed.ts
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  embedScript,
3
3
  embeddingProvider
4
- } from "./cli-39vgrsep.js";
5
- import"./cli-1y1cm570.js";
4
+ } from "./cli-qv61hp37.js";
5
+ import"./cli-rzbpmxdr.js";
6
6
  import"./cli-0258203w.js";
7
7
  import {
8
8
  getDb,
9
9
  init_db
10
- } from "./cli-t53vnnxz.js";
11
- import"./cli-4n4mdv21.js";
10
+ } from "./cli-a4jzdpa3.js";
11
+ import"./cli-xpxde7rm.js";
12
12
  import"./cli-x23me2mg.js";
13
13
  import"./cli-z2zcxes1.js";
14
- import"./cli-d91pvmq1.js";
14
+ import"./cli-zsspvvm2.js";
15
15
  import"./cli-4j2mrzag.js";
16
- import"./cli-kk4f9r17.js";
17
- import"./cli-2mbe7vk0.js";
16
+ import"./cli-72q8m8gk.js";
17
+ import"./cli-5dsbcjjw.js";
18
18
  import"./cli-p9swy5t3.js";
19
19
 
20
20
  // src/be/scripts/boot-reembed.ts
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  getDb,
3
3
  init_db
4
- } from "./cli-t53vnnxz.js";
5
- import"./cli-4n4mdv21.js";
4
+ } from "./cli-a4jzdpa3.js";
5
+ import"./cli-xpxde7rm.js";
6
6
  import"./cli-x23me2mg.js";
7
7
  import"./cli-z2zcxes1.js";
8
- import"./cli-d91pvmq1.js";
8
+ import"./cli-zsspvvm2.js";
9
9
  import {
10
10
  init_secret_scrubber,
11
11
  scrubSecrets
12
12
  } from "./cli-4j2mrzag.js";
13
- import"./cli-kk4f9r17.js";
14
- import"./cli-2mbe7vk0.js";
13
+ import"./cli-72q8m8gk.js";
14
+ import"./cli-5dsbcjjw.js";
15
15
  import"./cli-p9swy5t3.js";
16
16
 
17
17
  // src/be/boot-scrub-logs.ts
@@ -12,16 +12,16 @@ import {
12
12
  resolveClaudeBinary,
13
13
  resolveClaudeBinaryArgv,
14
14
  resolveClaudeBridgeEnabled
15
- } from "./cli-7ecgm5v0.js";
16
- import"./cli-h0457a67.js";
15
+ } from "./cli-3kf51j15.js";
16
+ import"./cli-70xqj0z3.js";
17
17
  import"./cli-psrqtw2m.js";
18
- import"./cli-mhjnbgb6.js";
18
+ import"./cli-0rcyq6d9.js";
19
19
  import"./cli-yv9dttkh.js";
20
20
  import"./cli-tng3131n.js";
21
21
  import"./cli-zm7njwzd.js";
22
22
  import"./cli-cw70hymf.js";
23
23
  import"./cli-v1mwc5v2.js";
24
- import"./cli-gztgc3hz.js";
24
+ import"./cli-2wadx7p2.js";
25
25
  import"./cli-e7d20cty.js";
26
26
  import"./cli-8whqavk2.js";
27
27
  import"./cli-3dpj7atn.js";
@@ -30,14 +30,14 @@ import"./cli-0258203w.js";
30
30
  import"./cli-7zd05xb4.js";
31
31
  import"./cli-x23me2mg.js";
32
32
  import"./cli-z2zcxes1.js";
33
- import"./cli-d91pvmq1.js";
33
+ import"./cli-zsspvvm2.js";
34
34
  import"./cli-4j2mrzag.js";
35
- import"./cli-kk4f9r17.js";
36
- import"./cli-2mbe7vk0.js";
37
- import"./cli-6nh2qxvh.js";
35
+ import"./cli-72q8m8gk.js";
36
+ import"./cli-5dsbcjjw.js";
37
+ import"./cli-darcwax3.js";
38
38
  import"./cli-4wgngmwv.js";
39
39
  import"./cli-zyxs93y9.js";
40
- import"./cli-w10fkrf1.js";
40
+ import"./cli-akdvwc9v.js";
41
41
  import"./cli-8wrympd7.js";
42
42
  import"./cli-p9swy5t3.js";
43
43
  export {