@mastra/core 1.87.0-alpha.15 → 1.87.0-alpha.17

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 (354) hide show
  1. package/dist/agent/durable/index.cjs +1 -1
  2. package/dist/agent/durable/index.js +1 -1
  3. package/dist/agent/index.cjs +2 -2
  4. package/dist/agent/index.js +2 -2
  5. package/dist/agent-builder/ee/index.cjs +1 -1
  6. package/dist/agent-builder/ee/index.js +1 -1
  7. package/dist/agent-controller/index.cjs +1 -1
  8. package/dist/agent-controller/index.js +1 -1
  9. package/dist/agent-controller/session.d.ts +11 -0
  10. package/dist/{agent-controller-DihwxeVJ.js → agent-controller-ChZ3qcXE.js} +53 -11
  11. package/dist/{agent-controller-DhDQXNoI.cjs → agent-controller-cqcUP-xy.cjs} +53 -11
  12. package/dist/background-tasks/index.cjs +1 -1
  13. package/dist/background-tasks/index.js +1 -1
  14. package/dist/{background-tasks-udYDvnlw.cjs → background-tasks-BIk1TRPw.cjs} +1 -1
  15. package/dist/{background-tasks-BoUX5G90.js → background-tasks-CH_gzJwc.js} +1 -1
  16. package/dist/browser/index.cjs +1 -1
  17. package/dist/browser/index.js +1 -1
  18. package/dist/{builder-B2n-bUbl.cjs → builder-ZAUhFqtD.cjs} +2 -2
  19. package/dist/{builder-Cn1lOWio.js → builder-v01k8_0x.js} +2 -2
  20. package/dist/capabilities/302ai.json +204 -204
  21. package/dist/capabilities/abliteratedllm.json +31 -31
  22. package/dist/capabilities/abliteration-ai.json +7 -7
  23. package/dist/capabilities/above.json +13 -13
  24. package/dist/capabilities/adaption.json +12 -12
  25. package/dist/capabilities/adzuki.json +24 -24
  26. package/dist/capabilities/agentrouter.json +12 -12
  27. package/dist/capabilities/agnes.json +2 -2
  28. package/dist/capabilities/ai-router.json +5 -5
  29. package/dist/capabilities/aiand.json +17 -17
  30. package/dist/capabilities/aigrow.json +14 -14
  31. package/dist/capabilities/aimlapi.json +155 -155
  32. package/dist/capabilities/aipg.json +2 -2
  33. package/dist/capabilities/aixy.json +21 -21
  34. package/dist/capabilities/aki-io.json +16 -16
  35. package/dist/capabilities/alibaba-cn.json +102 -102
  36. package/dist/capabilities/alibaba-coding-plan-cn.json +4 -4
  37. package/dist/capabilities/alibaba-coding-plan.json +4 -4
  38. package/dist/capabilities/alibaba-token-plan-cn.json +51 -51
  39. package/dist/capabilities/alibaba-token-plan.json +50 -50
  40. package/dist/capabilities/alibaba.json +82 -82
  41. package/dist/capabilities/ambient.json +13 -13
  42. package/dist/capabilities/amd.json +9 -9
  43. package/dist/capabilities/anthropic.json +49 -49
  44. package/dist/capabilities/anyapi.json +47 -47
  45. package/dist/capabilities/arcee.json +11 -11
  46. package/dist/capabilities/augure.json +6 -6
  47. package/dist/capabilities/auriko.json +18 -18
  48. package/dist/capabilities/bailing.json +3 -3
  49. package/dist/capabilities/baseten.json +32 -32
  50. package/dist/capabilities/bee.json +5 -5
  51. package/dist/capabilities/berget.json +6 -6
  52. package/dist/capabilities/bothub.json +11 -11
  53. package/dist/capabilities/boundless.json +36 -36
  54. package/dist/capabilities/bumo.json +39 -39
  55. package/dist/capabilities/byteplus.json +29 -29
  56. package/dist/capabilities/cerebras.json +4 -4
  57. package/dist/capabilities/cheapaimodel.json +7 -7
  58. package/dist/capabilities/cheapest-token.json +31 -31
  59. package/dist/capabilities/chutes.json +25 -25
  60. package/dist/capabilities/cline-pass.json +38 -38
  61. package/dist/capabilities/cloudcode.json +6 -6
  62. package/dist/capabilities/cloudflare-workers-ai.json +16 -16
  63. package/dist/capabilities/commandcode.json +145 -145
  64. package/dist/capabilities/concentrate.json +279 -279
  65. package/dist/capabilities/cortecs.json +112 -112
  66. package/dist/capabilities/crossmodel.json +197 -197
  67. package/dist/capabilities/crusoe.json +15 -15
  68. package/dist/capabilities/daoxe.json +6 -6
  69. package/dist/capabilities/databricks.json +126 -126
  70. package/dist/capabilities/deepinfra.json +88 -88
  71. package/dist/capabilities/deepseek.json +2 -2
  72. package/dist/capabilities/digitalocean.json +118 -118
  73. package/dist/capabilities/dothoosh.json +33 -33
  74. package/dist/capabilities/doubleword.json +24 -24
  75. package/dist/capabilities/edenai.json +279 -279
  76. package/dist/capabilities/empiriolabs.json +162 -162
  77. package/dist/capabilities/engy.json +18 -18
  78. package/dist/capabilities/evroc.json +18 -18
  79. package/dist/capabilities/fastrouter.json +79 -79
  80. package/dist/capabilities/fireworks-ai.json +98 -98
  81. package/dist/capabilities/freemodel.json +14 -14
  82. package/dist/capabilities/friendli.json +6 -6
  83. package/dist/capabilities/frogbot.json +87 -87
  84. package/dist/capabilities/gisoo.json +20 -20
  85. package/dist/capabilities/gmicloud.json +23 -23
  86. package/dist/capabilities/google.json +46 -46
  87. package/dist/capabilities/graphn.json +8 -8
  88. package/dist/capabilities/greenpt.json +36 -36
  89. package/dist/capabilities/groq.json +8 -8
  90. package/dist/capabilities/helicone.json +65 -65
  91. package/dist/capabilities/hopper.json +2 -2
  92. package/dist/capabilities/hostinger-router.json +11 -11
  93. package/dist/capabilities/hpc-ai.json +13 -13
  94. package/dist/capabilities/huawei-maas.json +12 -12
  95. package/dist/capabilities/hubris.json +32 -32
  96. package/dist/capabilities/huggingface.json +83 -83
  97. package/dist/capabilities/hyper.json +23 -23
  98. package/dist/capabilities/impossibl.json +159 -159
  99. package/dist/capabilities/inception.json +2 -2
  100. package/dist/capabilities/inco.json +5 -5
  101. package/dist/capabilities/infer.json +14 -14
  102. package/dist/capabilities/inferall.json +6 -6
  103. package/dist/capabilities/inference-coop.json +5 -5
  104. package/dist/capabilities/inferenceapis.json +15 -15
  105. package/dist/capabilities/inferris.json +4 -4
  106. package/dist/capabilities/infersia.json +11 -11
  107. package/dist/capabilities/inferx.json +3 -3
  108. package/dist/capabilities/io-net.json +2 -2
  109. package/dist/capabilities/iteracompute.json +60 -60
  110. package/dist/capabilities/jalapeno.json +12 -12
  111. package/dist/capabilities/jiekou.json +66 -66
  112. package/dist/capabilities/jzstoken.json +48 -48
  113. package/dist/capabilities/keln.json +22 -22
  114. package/dist/capabilities/kenari.json +129 -129
  115. package/dist/capabilities/kilo.json +624 -624
  116. package/dist/capabilities/kimi-code-plan-cn.json +6 -6
  117. package/dist/capabilities/kimi-code-plan-global.json +6 -6
  118. package/dist/capabilities/kitani.json +6 -6
  119. package/dist/capabilities/klavo.json +20 -20
  120. package/dist/capabilities/korouter.json +33 -33
  121. package/dist/capabilities/kunavo.json +10 -10
  122. package/dist/capabilities/liquid.json +7 -7
  123. package/dist/capabilities/lithosai.json +3 -3
  124. package/dist/capabilities/llmgateway-providers.json +915 -951
  125. package/dist/capabilities/llmgateway.json +346 -346
  126. package/dist/capabilities/llmtr.json +31 -31
  127. package/dist/capabilities/lowrouter.json +62 -62
  128. package/dist/capabilities/lyceum.json +16 -16
  129. package/dist/capabilities/melious.json +12 -12
  130. package/dist/capabilities/merge-gateway.json +295 -295
  131. package/dist/capabilities/meta.json +7 -7
  132. package/dist/capabilities/minimax-cn-coding-plan.json +6 -6
  133. package/dist/capabilities/minimax-coding-plan.json +6 -6
  134. package/dist/capabilities/mistral.json +21 -21
  135. package/dist/capabilities/mixlayer.json +3 -3
  136. package/dist/capabilities/modal.json +11 -11
  137. package/dist/capabilities/model-oracle-ai.json +26 -26
  138. package/dist/capabilities/modelis.json +11 -11
  139. package/dist/capabilities/modelscope.json +2 -2
  140. package/dist/capabilities/modular.json +12 -12
  141. package/dist/capabilities/moneo.json +18 -18
  142. package/dist/capabilities/moonshotai-cn.json +7 -7
  143. package/dist/capabilities/moonshotai.json +7 -7
  144. package/dist/capabilities/morph.json +15 -15
  145. package/dist/capabilities/munito-eu.json +4 -4
  146. package/dist/capabilities/munito.json +6 -6
  147. package/dist/capabilities/nan.json +17 -17
  148. package/dist/capabilities/nano-gpt.json +584 -570
  149. package/dist/capabilities/nearai.json +111 -111
  150. package/dist/capabilities/nebius.json +32 -32
  151. package/dist/capabilities/neon.json +127 -127
  152. package/dist/capabilities/neuralwatt.json +40 -40
  153. package/dist/capabilities/novita-ai.json +159 -159
  154. package/dist/capabilities/nvidia.json +36 -36
  155. package/dist/capabilities/oathbreaker.json +4 -4
  156. package/dist/capabilities/obscurify.json +29 -29
  157. package/dist/capabilities/oci.json +9 -9
  158. package/dist/capabilities/ofox.json +279 -279
  159. package/dist/capabilities/ollama-cloud.json +56 -56
  160. package/dist/capabilities/openai.json +53 -53
  161. package/dist/capabilities/opencode-go.json +91 -91
  162. package/dist/capabilities/openrouter.json +547 -547
  163. package/dist/capabilities/opper.json +27 -27
  164. package/dist/capabilities/orcarouter.json +338 -337
  165. package/dist/capabilities/outerlabs.json +32 -32
  166. package/dist/capabilities/ovhcloud.json +15 -15
  167. package/dist/capabilities/pareto.json +4 -4
  168. package/dist/capabilities/pendra.json +4 -4
  169. package/dist/capabilities/perplexity-agent.json +61 -61
  170. package/dist/capabilities/phala.json +34 -34
  171. package/dist/capabilities/pioneer.json +28 -28
  172. package/dist/capabilities/poe.json +123 -123
  173. package/dist/capabilities/poolside.json +2 -2
  174. package/dist/capabilities/powerspring.json +14 -14
  175. package/dist/capabilities/primalabs.json +8 -8
  176. package/dist/capabilities/prime.json +113 -113
  177. package/dist/capabilities/privatemode-ai.json +14 -14
  178. package/dist/capabilities/proxystacks.json +2 -2
  179. package/dist/capabilities/qiniu-ai.json +15 -15
  180. package/dist/capabilities/refuseless.json +6 -6
  181. package/dist/capabilities/regolo-ai.json +8 -8
  182. package/dist/capabilities/requesty.json +198 -216
  183. package/dist/capabilities/ruapi.json +23 -23
  184. package/dist/capabilities/runcrate.json +9 -9
  185. package/dist/capabilities/runinfra.json +14 -14
  186. package/dist/capabilities/sakana.json +5 -5
  187. package/dist/capabilities/sambanova.json +6 -6
  188. package/dist/capabilities/sandbase.json +22 -22
  189. package/dist/capabilities/sarvam.json +12 -12
  190. package/dist/capabilities/scaleway.json +11 -11
  191. package/dist/capabilities/scnet-token-plan.json +6 -6
  192. package/dist/capabilities/scx-ai.json +26 -26
  193. package/dist/capabilities/sensenova.json +9 -9
  194. package/dist/capabilities/siliconflow-cn.json +47 -47
  195. package/dist/capabilities/siliconflow.json +55 -55
  196. package/dist/capabilities/snowflake-cortex.json +20 -20
  197. package/dist/capabilities/sokkan.json +12 -12
  198. package/dist/capabilities/sparrowcodes.json +20 -20
  199. package/dist/capabilities/standardcompute.json +87 -87
  200. package/dist/capabilities/steadyrouter.json +40 -40
  201. package/dist/capabilities/stepfun-ai-step-plan.json +9 -9
  202. package/dist/capabilities/stepfun-ai.json +9 -9
  203. package/dist/capabilities/stepfun-step-plan.json +9 -9
  204. package/dist/capabilities/stepfun.json +9 -9
  205. package/dist/capabilities/stepping-stone.json +16 -16
  206. package/dist/capabilities/subconscious.json +2 -2
  207. package/dist/capabilities/superbot-gg.json +4 -4
  208. package/dist/capabilities/synthetic.json +10 -10
  209. package/dist/capabilities/synthorai.json +23 -23
  210. package/dist/capabilities/teamorouter.json +21 -21
  211. package/dist/capabilities/teapot-router.json +13 -13
  212. package/dist/capabilities/tencent-token-plan-intl.json +24 -24
  213. package/dist/capabilities/tencent-token-plan.json +44 -44
  214. package/dist/capabilities/tencent-tokenhub.json +51 -51
  215. package/dist/capabilities/tensorx.json +41 -41
  216. package/dist/capabilities/tenstorrent.json +6 -6
  217. package/dist/capabilities/the-grid-ai.json +26 -26
  218. package/dist/capabilities/thinkingmachines.json +76 -76
  219. package/dist/capabilities/tinfoil.json +12 -12
  220. package/dist/capabilities/toapis.json +2 -2
  221. package/dist/capabilities/togetherai.json +45 -45
  222. package/dist/capabilities/tokengo.json +26 -26
  223. package/dist/capabilities/tokenify.json +10 -10
  224. package/dist/capabilities/trustedrouter.json +4 -4
  225. package/dist/capabilities/trustedtokens.json +18 -18
  226. package/dist/capabilities/umans-ai-coding-plan.json +18 -18
  227. package/dist/capabilities/umans-ai.json +13 -13
  228. package/dist/capabilities/unrestricted.json +6 -6
  229. package/dist/capabilities/uplinkswitch.json +21 -21
  230. package/dist/capabilities/upstage.json +4 -4
  231. package/dist/capabilities/vancine.json +14 -14
  232. package/dist/capabilities/vercel.json +577 -562
  233. package/dist/capabilities/vivgrid.json +83 -83
  234. package/dist/capabilities/volcengine-coding-plan.json +28 -28
  235. package/dist/capabilities/volcengine.json +27 -27
  236. package/dist/capabilities/vultr.json +29 -29
  237. package/dist/capabilities/wafer.ai.json +17 -17
  238. package/dist/capabilities/wallaby.json +2 -2
  239. package/dist/capabilities/wally.json +13 -13
  240. package/dist/capabilities/wandb.json +21 -21
  241. package/dist/capabilities/watt.json +24 -24
  242. package/dist/capabilities/xai.json +5 -5
  243. package/dist/capabilities/xiaomi-token-plan-ams.json +2 -2
  244. package/dist/capabilities/xiaomi-token-plan-cn.json +2 -2
  245. package/dist/capabilities/xiaomi-token-plan-sgp.json +2 -2
  246. package/dist/capabilities/xiaomi.json +2 -2
  247. package/dist/capabilities/xpersona.json +11 -11
  248. package/dist/capabilities/xxapi.json +25 -25
  249. package/dist/capabilities/zai-coding-plan.json +13 -13
  250. package/dist/capabilities/zai.json +29 -29
  251. package/dist/capabilities/zenifra.json +24 -24
  252. package/dist/capabilities/zenmux.json +191 -191
  253. package/dist/capabilities/zerogpu.json +11 -11
  254. package/dist/capabilities/zhipuai-coding-plan.json +7 -7
  255. package/dist/capabilities/zhipuai.json +24 -24
  256. package/dist/capabilities/zro.json +5 -5
  257. package/dist/channels/index.cjs +2 -2
  258. package/dist/channels/index.js +2 -2
  259. package/dist/channels/reply-tool.d.ts +5 -1
  260. package/dist/{channels-DA3oMfhF.js → channels-B7lf5BnT.js} +1 -1
  261. package/dist/{channels-HRrlHnwF.cjs → channels-CAA8MkDQ.cjs} +1 -1
  262. package/dist/coding-agent/index.cjs +1 -1
  263. package/dist/coding-agent/index.js +1 -1
  264. package/dist/datasets/index.cjs +2 -2
  265. package/dist/datasets/index.js +2 -2
  266. package/dist/docs/SKILL.md +1 -1
  267. package/dist/docs/assets/SOURCE_MAP.json +484 -484
  268. package/dist/docs/references/reference-agent-controller-session.md +1 -1
  269. package/dist/evals/index.cjs +1 -1
  270. package/dist/evals/index.js +1 -1
  271. package/dist/evals/scoreTraces/index.cjs +1 -1
  272. package/dist/evals/scoreTraces/index.js +1 -1
  273. package/dist/harness/index.cjs +1 -1
  274. package/dist/harness/index.js +1 -1
  275. package/dist/index.cjs +1 -1
  276. package/dist/index.js +1 -1
  277. package/dist/knowledge/index.cjs +1 -1
  278. package/dist/knowledge/index.js +1 -1
  279. package/dist/llm/index.cjs +3 -3
  280. package/dist/llm/index.js +3 -3
  281. package/dist/llm/model/provider-types.generated.d.ts +7964 -7983
  282. package/dist/{llm-CxHzqEEI.js → llm-B5OxUmL4.js} +2 -2
  283. package/dist/{llm-Bljw7LII.cjs → llm-CGl_FZsb.cjs} +2 -2
  284. package/dist/loop/index.cjs +2 -2
  285. package/dist/loop/index.js +2 -2
  286. package/dist/{manager-DVYVB-3O.cjs → manager-BuPZ97U6.cjs} +2 -2
  287. package/dist/{manager-BimN8ZdV.js → manager-R_QVoiy9.js} +2 -2
  288. package/dist/mastra/index.cjs +1 -1
  289. package/dist/mastra/index.js +1 -1
  290. package/dist/{mastra-k8L1lFip.cjs → mastra-CHYi4Woq.cjs} +16 -16
  291. package/dist/{mastra-BpMvri3z.js → mastra-Cl5EC-jR.js} +16 -16
  292. package/dist/memory/index.cjs +2 -2
  293. package/dist/memory/index.js +2 -2
  294. package/dist/{model-sUJDcX2v.js → model-BNIR9RSw.js} +1 -1
  295. package/dist/{model-CrDuEDRq.cjs → model-WmKuSHa8.cjs} +1 -1
  296. package/dist/{netlify-Td-JUUkt.cjs → netlify-C_6KLad8.cjs} +1 -1
  297. package/dist/{netlify-BEJ96z-w.js → netlify-D4orVt-5.js} +1 -1
  298. package/dist/notifications/index.cjs +1 -1
  299. package/dist/notifications/index.js +1 -1
  300. package/dist/processor-provider/index.cjs +1 -1
  301. package/dist/processor-provider/index.js +1 -1
  302. package/dist/processors/index.cjs +2 -2
  303. package/dist/processors/index.js +2 -2
  304. package/dist/{provider-registry-DBG4hlGl.js → provider-registry-CkHZ7heH.js} +22432 -22512
  305. package/dist/{provider-registry-CCYXykIZ.cjs → provider-registry-DH7XbpHT.cjs} +22432 -22512
  306. package/dist/provider-registry.json +22889 -22967
  307. package/dist/{registry-generator-D2lO3JJJ.js → registry-generator-CAXpGkmM.js} +1 -1
  308. package/dist/{registry-generator-BxiC9XcX.cjs → registry-generator-Dn8HU1Jz.cjs} +1 -1
  309. package/dist/{rehydrate-PRFAu8yl.js → rehydrate-Cy7-QPU-.js} +2 -2
  310. package/dist/{rehydrate-BD0zOfc8.cjs → rehydrate-DZyZNbaq.cjs} +2 -2
  311. package/dist/relevance/index.cjs +2 -2
  312. package/dist/relevance/index.js +2 -2
  313. package/dist/{run-registry-BvMXuIb_.cjs → run-registry-BaVTwGKh.cjs} +59 -11
  314. package/dist/{run-registry-Cqp-VFdv.js → run-registry-bm6b6mwQ.js} +59 -11
  315. package/dist/storage/index.cjs +2 -2
  316. package/dist/storage/index.js +2 -2
  317. package/dist/stream/index.cjs +2 -2
  318. package/dist/stream/index.js +2 -2
  319. package/dist/{stream-D607FmAx.js → stream-B9dswdIM.js} +1 -1
  320. package/dist/{stream-BIbVD8V8.cjs → stream-CbG7k93m.cjs} +1 -1
  321. package/dist/test-utils/llm-mock.cjs +1 -1
  322. package/dist/test-utils/llm-mock.js +1 -1
  323. package/dist/tool-loop-agent/index.cjs +1 -1
  324. package/dist/tool-loop-agent/index.js +1 -1
  325. package/dist/{tool-loop-agent-eyoY_TEX.js → tool-loop-agent-BmlzhMxc.js} +3 -3
  326. package/dist/{tool-loop-agent-Cnf7vONA.cjs → tool-loop-agent-BnlPROel.cjs} +3 -3
  327. package/dist/{utils-CQkzZUcK.js → utils-BU8lpEZ4.js} +1 -1
  328. package/dist/{utils-O1TXaFUl.cjs → utils-N_OPw-9g.cjs} +1 -1
  329. package/dist/utils.cjs +1 -1
  330. package/dist/utils.js +1 -1
  331. package/dist/{validate-CTWjOlWp.js → validate-BANPY3pi.js} +1 -1
  332. package/dist/{validate-CEgWy7P0.cjs → validate-BvxwUPNa.cjs} +1 -1
  333. package/dist/vector/index.cjs +1 -1
  334. package/dist/vector/index.js +1 -1
  335. package/dist/worker/index.cjs +1 -1
  336. package/dist/worker/index.js +1 -1
  337. package/dist/{worker-CI1joT3R.cjs → worker-B3s2DjXP.cjs} +2 -2
  338. package/dist/{worker-CCNb2aJe.js → worker-BpVWGM6Q.js} +2 -2
  339. package/dist/{worker-D52cos24.js → worker-CZ_07SOb.js} +2 -2
  340. package/dist/{worker-CCDvbK3P.cjs → worker-E2MdhICW.cjs} +2 -2
  341. package/dist/{workflow-DsmyWwxG.js → workflow-BrcVks0j.js} +3 -3
  342. package/dist/{workflow-BJL0qlPN.cjs → workflow-BuPW86ke.cjs} +3 -3
  343. package/dist/workflows/builder/index.cjs +1 -1
  344. package/dist/workflows/builder/index.js +1 -1
  345. package/dist/workflows/evented/index.cjs +1 -1
  346. package/dist/workflows/evented/index.js +1 -1
  347. package/dist/workflows/index.cjs +4 -4
  348. package/dist/workflows/index.js +4 -4
  349. package/package.json +6 -6
  350. package/src/llm/model/provider-types.generated.d.ts +7964 -7983
  351. package/dist/capabilities/ai21.json +0 -4
  352. package/dist/capabilities/clarifai.json +0 -42
  353. package/dist/capabilities/jad-ai.json +0 -20
  354. package/dist/capabilities/llmtech.json +0 -16
@@ -1,4 +1,4 @@
1
- import { _ as getCapabilityFileName, g as shouldEnableGateway, m as getGatewayId } from "./netlify-BEJ96z-w.js";
1
+ import { _ as getCapabilityFileName, g as shouldEnableGateway, m as getGatewayId } from "./netlify-D4orVt-5.js";
2
2
  import path from "path";
3
3
  import fs from "fs/promises";
4
4
  // src/llm/model/registry-generator.ts
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
2
- const require_netlify = require("./netlify-Td-JUUkt.cjs");
2
+ const require_netlify = require("./netlify-C_6KLad8.cjs");
3
3
  let path = require("path");
4
4
  path = require_rolldown_runtime.__toESM(path, 1);
5
5
  let fs_promises = require("fs/promises");
@@ -1,6 +1,6 @@
1
- import { Gs as createEventedWorkflow, Ks as createWorkflow, Nc as mapVariable, Pc as predicateToCondition, Ws as cloneWorkflow, el as createStepFromAgent, gl as getSingleStepEntryId, nl as createStepFromTool } from "./run-registry-Cqp-VFdv.js";
1
+ import { Gs as createEventedWorkflow, Ks as createWorkflow, Nc as mapVariable, Pc as predicateToCondition, Ws as cloneWorkflow, el as createStepFromAgent, gl as getSingleStepEntryId, nl as createStepFromTool } from "./run-registry-bm6b6mwQ.js";
2
2
  import { derivePredicateLabel } from "./predicate/index.js";
3
- import { a as jsonSchemaToZod, l as parseMapConfig } from "./validate-CTWjOlWp.js";
3
+ import { a as jsonSchemaToZod, l as parseMapConfig } from "./validate-BANPY3pi.js";
4
4
  import { standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
5
5
  // src/workflows/dynamic/serialize.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- const require_run_registry = require("./run-registry-BvMXuIb_.cjs");
1
+ const require_run_registry = require("./run-registry-BaVTwGKh.cjs");
2
2
  const require_predicate_index = require("./predicate/index.cjs");
3
- const require_validate = require("./validate-CEgWy7P0.cjs");
3
+ const require_validate = require("./validate-BvxwUPNa.cjs");
4
4
  let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
5
5
  // src/workflows/dynamic/serialize.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-BvMXuIb_.cjs");
3
- const require_stream = require("../stream-BIbVD8V8.cjs");
2
+ const require_run_registry = require("../run-registry-BaVTwGKh.cjs");
3
+ const require_stream = require("../stream-CbG7k93m.cjs");
4
4
  // src/relevance/relevance-score-provider.ts
5
5
  function createSimilarityPrompt(query, text) {
6
6
  return `Rate the semantic similarity between the following the query and the text on a scale from 0 to 1 (decimals allowed), where 1 means exactly the same meaning and 0 means completely different:
@@ -1,5 +1,5 @@
1
- import { F as Agent } from "../run-registry-Cqp-VFdv.js";
2
- import { un as isSupportedLanguageModel } from "../stream-D607FmAx.js";
1
+ import { F as Agent } from "../run-registry-bm6b6mwQ.js";
2
+ import { un as isSupportedLanguageModel } from "../stream-B9dswdIM.js";
3
3
  // src/relevance/relevance-score-provider.ts
4
4
  function createSimilarityPrompt(query, text) {
5
5
  return `Rate the semantic similarity between the following the query and the text on a scale from 0 to 1 (decimals allowed), where 1 means exactly the same meaning and 0 means completely different:
@@ -4,14 +4,14 @@ const require_base = require("./base-BIzR1D3_.cjs");
4
4
  const require_observability = require("./observability-B0R_D1PZ.cjs");
5
5
  const require_error = require("./error-D90lJ6M7.cjs");
6
6
  const require_error$1 = require("./error-L1V4uUbd.cjs");
7
- const require_stream = require("./stream-BIbVD8V8.cjs");
7
+ const require_stream = require("./stream-CbG7k93m.cjs");
8
8
  const require_request_context = require("./request-context-D9RXYCy8.cjs");
9
9
  const require_output_helpers = require("./output-helpers-DgsH4aTb.cjs");
10
10
  const require_message_list = require("./message-list-C0F2sDNC.cjs");
11
11
  const require_storage = require("./storage-CfG0I2aF.cjs");
12
12
  const require_utils = require("./utils-D-eNsgDM.cjs");
13
13
  const require_error_count = require("./error-count-DeDpeWU2.cjs");
14
- const require_llm = require("./llm-Bljw7LII.cjs");
14
+ const require_llm = require("./llm-CGl_FZsb.cjs");
15
15
  const require_payload_transform = require("./payload-transform-CWgnsO9w.cjs");
16
16
  const require_utils_safe_stringify = require("./utils/safe-stringify.cjs");
17
17
  const require_signals = require("./signals-CWxAMEmE.cjs");
@@ -23,13 +23,13 @@ const require_tool = require("./tool-CYlT2UA-.cjs");
23
23
  const require_toolchecks = require("./toolchecks-MFU48cit.cjs");
24
24
  const require_fetchWithRetry = require("./fetchWithRetry-f5k4p7_1.cjs");
25
25
  const require_model = require("./model-jBymoqGa.cjs");
26
- const require_provider_registry = require("./provider-registry-CCYXykIZ.cjs");
26
+ const require_provider_registry = require("./provider-registry-DH7XbpHT.cjs");
27
27
  const require_inmemory = require("./inmemory-Dc86VWGB.cjs");
28
28
  const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
29
- const require_model$1 = require("./model-CrDuEDRq.cjs");
30
- const require_utils$1 = require("./utils-O1TXaFUl.cjs");
29
+ const require_model$1 = require("./model-WmKuSHa8.cjs");
30
+ const require_utils$1 = require("./utils-N_OPw-9g.cjs");
31
31
  const require_ee_iTj2bRDt = require("./ee-iTj2bRDt-D3-QLGDF.cjs");
32
- const require_background_tasks = require("./background-tasks-udYDvnlw.cjs");
32
+ const require_background_tasks = require("./background-tasks-BIk1TRPw.cjs");
33
33
  const require_stream$1 = require("./stream-BGbj9jAU.cjs");
34
34
  const require_predicate_index = require("./predicate/index.cjs");
35
35
  const require_classifier_index = require("./classifier/index.cjs");
@@ -50465,7 +50465,7 @@ function createChannelReplyTool(requestContext, options) {
50465
50465
  const { resolveRender } = options;
50466
50466
  return { [REPLY_TOOL_NAME]: require_tool.createTool({
50467
50467
  id: REPLY_TOOL_NAME,
50468
- description: "Post a message in this chat thread. Nothing you write outside this tool reaches the thread, so use it for anything the people there should see: a short note that you are starting a longer job, a question you need answered, and the outcome when you finish. Post when you have something new; do not repeat yourself or post that nothing changed. To stay quiet, do not call it.",
50468
+ description: "Post a message in this chat thread. Use it for anything the people there should see: a short note that you are starting a longer job, a question you need answered, and the outcome when you finish. Post when you have something new; do not repeat yourself or post that nothing changed. If a turn on this thread ends with plain text and no post, that text is posted for you. To stay quiet, do not call it and end your turn with an empty message.",
50469
50469
  inputSchema: replyInput,
50470
50470
  execute: async (input, context) => {
50471
50471
  const link = claimFirstReplyLink(requestContext, options.link);
@@ -50572,11 +50572,18 @@ function openReplyStream({ chatThread, logger }) {
50572
50572
  var ChannelReplyStreamProcessor = class {
50573
50573
  id = "channel-reply-stream";
50574
50574
  #resolveRender;
50575
- constructor(resolveRender) {
50575
+ #postsUnsentAnswer;
50576
+ /**
50577
+ * @param postsUnsentAnswer Whether a run that ends without replying gets its
50578
+ * final text posted: only runs that came in on a channel whose adapter uses `replyMode`.
50579
+ */
50580
+ constructor(resolveRender, postsUnsentAnswer = () => false) {
50576
50581
  this.#resolveRender = resolveRender;
50582
+ this.#postsUnsentAnswer = postsUnsentAnswer;
50577
50583
  }
50578
50584
  async processOutputStream({ part, state, requestContext }) {
50579
50585
  if (!requestContext) return part;
50586
+ await this.#postUnsentAnswer(part, state, requestContext);
50580
50587
  const args = state.args ??= {};
50581
50588
  if (part.type === "tool-call-input-streaming-start" && part.payload.toolName === "reply_in_thread") {
50582
50589
  const render = await this.#resolveRender(requestContext);
@@ -50595,7 +50602,45 @@ var ChannelReplyStreamProcessor = class {
50595
50602
  }
50596
50603
  return part;
50597
50604
  }
50605
+ /**
50606
+ * Models sometimes end a turn with a plain-text answer and never call
50607
+ * `reply_in_thread`, so the thread never hears back. When a run finishes
50608
+ * without having replied, post the text written after its last tool call.
50609
+ * A reply counts once it posts: a call that fails validation doesn't, unless
50610
+ * its streamed post already left text in the thread.
50611
+ */
50612
+ async #postUnsentAnswer(part, state, requestContext) {
50613
+ const answer = state.answer ??= {
50614
+ replied: false,
50615
+ held: false,
50616
+ tail: "",
50617
+ calls: /* @__PURE__ */ new Set()
50618
+ };
50619
+ if (part.type === "text-delta") answer.tail += part.payload.text;
50620
+ else if (part.type === "tool-call" || part.type === "tool-call-input-streaming-start") {
50621
+ answer.tail = "";
50622
+ if (part.payload.toolName === "reply_in_thread") answer.calls.add(part.payload.toolCallId);
50623
+ } else if (part.type === "tool-result" && answer.calls.has(part.payload.toolCallId)) answer.replied = true;
50624
+ else if (part.type === "tool-error" && answer.calls.has(part.payload.toolCallId)) {
50625
+ const stream = replyStreams(requestContext).get(part.payload.toolCallId);
50626
+ if (stream && await stream.close()) answer.replied = true;
50627
+ } else if (part.type === "tool-call-approval" || part.type === "tool-call-suspended") answer.held = true;
50628
+ else if (RUN_END.has(part.type)) {
50629
+ state.answer = void 0;
50630
+ const text = answer.tail.trim();
50631
+ if (part.type !== "finish" || answer.replied || answer.held || !text || text === EMPTY_MESSAGE) return;
50632
+ if (!this.#postsUnsentAnswer(requestContext)) return;
50633
+ const render = await this.#resolveRender(requestContext);
50634
+ if (render?.textDisplay !== "hidden") return;
50635
+ try {
50636
+ await render.chatThread.post({ markdown: text });
50637
+ } catch (error) {
50638
+ render.logger?.warn("[channels] could not post the unsent answer", { error });
50639
+ }
50640
+ }
50641
+ }
50598
50642
  };
50643
+ const EMPTY_MESSAGE = "<empty_message>";
50599
50644
  /** Chunks after which no `reply_in_thread` call of this run will still execute. */
50600
50645
  const RUN_END = /* @__PURE__ */ new Set([
50601
50646
  "finish",
@@ -50680,7 +50725,7 @@ var ChannelReplyGuidanceProcessor = class {
50680
50725
  if (!canReply) return void 0;
50681
50726
  content = [`Post to that thread with \`${REPLY_TOOL_NAME}\`. This request came from outside it, so don't post an opener or progress there; post the outcome when the people in the thread asked for this work or are waiting on it, or when you're asked to. Don't write a note about what you posted.`];
50682
50727
  } else if (canReply) content = [
50683
- `Only messages you send with \`${REPLY_TOOL_NAME}\` reach this thread; your other text stays out of it. Don't write a note about what you posted. After a reply, either keep working or end your turn with an empty message; any text you write after posting is wasted.`,
50728
+ `Send messages to this thread with \`${REPLY_TOOL_NAME}\`; text you write before or between tool calls stays out of it. Don't write a note about what you posted. After a reply, either keep working or end your turn with an empty message; any text you write after posting is wasted. If you end a turn with plain text and never posted, that text is posted to the thread for you, so to stay quiet end with an empty message.`,
50684
50729
  "When a request will take tools or more than a moment, post one short line first that says what you are about to do, then do the work and post the outcome when you finish \u2014 not a replay of the steps.",
50685
50730
  "Post again in between only when you need an answer or have news the people in the thread would want. When a message that doesn't mention you needs nothing from you, don't call it."
50686
50731
  ];
@@ -52316,7 +52361,10 @@ var AgentChannels = class {
52316
52361
  return platform ? threadLinkOptions(this.adapterConfigs[platform]?.threadLink) : void 0;
52317
52362
  }));
52318
52363
  if (!has("chat-channel-render")) processors.push(new ChatChannelOutputProcessor(this));
52319
- if (this.replyModeEnabled && !has(REPLY_STREAM_PROCESSOR_ID)) processors.push(new ChannelReplyStreamProcessor((requestContext) => this.resolveRunRender(requestContext)));
52364
+ if (this.replyModeEnabled && !has(REPLY_STREAM_PROCESSOR_ID)) processors.push(new ChannelReplyStreamProcessor((requestContext) => this.resolveRunRender(requestContext), (requestContext) => {
52365
+ const platform = requestContext.get("channel")?.platform;
52366
+ return !!platform && !!this.adapterConfigs[platform]?.replyMode;
52367
+ }));
52320
52368
  return processors;
52321
52369
  }
52322
52370
  /**
@@ -86353,7 +86401,7 @@ async function prepareForDurableExecution(options) {
86353
86401
  });
86354
86402
  let tripwireData;
86355
86403
  if (inputProcessors.length > 0) try {
86356
- const { ProcessorRunner } = await Promise.resolve().then(() => require("./stream-BIbVD8V8.cjs")).then((n) => n.runner_exports);
86404
+ const { ProcessorRunner } = await Promise.resolve().then(() => require("./stream-CbG7k93m.cjs")).then((n) => n.runner_exports);
86357
86405
  await new ProcessorRunner({
86358
86406
  inputProcessors,
86359
86407
  outputProcessors,
@@ -4,14 +4,14 @@ import { t as MastraBase } from "./base-CKLWBhDo.js";
4
4
  import { A as compactStopReasonContext, D as agentLoopTermination, O as executionFailureTermination, S as resolveObservabilityContext, b as wrapMastra, i as subtractReportedUsage, k as tripwireTermination, n as extractUsageMetrics, r as isUsageIncomplete, t as calculateObservedUsage, x as createObservabilityContext, y as unwrapMastraTracingProxy } from "./observability-D7RNOAPx.js";
5
5
  import { a as MastraNonRetryableError, i as MastraError, n as ErrorDomain, o as getErrorFromUnknown, t as ErrorCategory } from "./error-oh2DLsP2.js";
6
6
  import { a as classifyProviderError, l as describeProviderError, t as recordTerminalErrorMessage, u as readProviderErrorDetails } from "./error-BC9Au-22.js";
7
- import { $ as summarizeToolChoiceForSpan, $t as commitToolResult, A as isSignalChunkExcluded, An as raceAgainstAbort, At as getSnapshotMemoryInfo, B as removeTrailingAssistantGuardContinuations, Bt as stateColumnsWrite, C as stampChunkProducedAt, Cn as DEADLINE_SAVE_WAIT_MS, D as isStructuredOutputError, Dn as guardStreamUntilMatch, Dt as validateTemplate, E as escapeUnescapedControlCharsInJsonStrings, En as getAbortReason, Et as traverseMappingPath, F as endOutputStreamSpanOutsideStep, Fn as safeEnqueue, Ft as latestStepResults, G as FLUSH_HELD_PARTS_KEY, Gt as diffStateAsJson, Ht as unusedStateEntries, I as findOwnModelStepSpan, In as safeError, It as materializeState, J as withoutHeldContent, K as REPROCESS_PART_KEY, Kt as patchState, Ln as createRunScope, Lt as materializeWorkflowRun, M as ProcessorRunner, N as ProcessorState, Nn as MastraModelInput, Nt as applyStateColumnsWrite, O as asJsonSchema, On as guardStreamWithAbort, Ot as getStepResult, P as endOutputStreamSpanAtStepEnd, Pn as safeClose, Pt as isStateCheckpointDue, Q as summarizeProcessorToolsForSpan, R as isTrailingAssistantGuardContinuation, Rn as createRunScopeKey, Rt as pickStateKeys, S as getChunkProducedAt, Sn as DEADLINE_SAVE_CLAIM_HOLD_MS, St as stepRefId, T as createOutputHandler, Tn as createTimeoutAbortSignal, Tt as templateReadsState, Ut as applyStatePatch, V as ProviderHistoryCompat, Vt as summarizeStepResult, X as summarizeProcessorModelForSpan, Y as summarizeActiveToolsForSpan, Yt as isObservationalMemoryEnabled$1, Z as summarizeProcessorResultForSpan, Zt as parseMemoryRequestContext, _ as persistProcessorDataChunk, _t as stubStepResult, a as convertFullStreamChunkToMastra, an as snapshotToolResult, at as PROCESSOR_ABORT_SIGNAL, b as resolveOutputMessageSkippingCompletionChecks, bn as pendingQueueThreadId, bt as predicateReadsState, c as WorkflowRunOutput, cn as validationErrorModelOutput, ct as getHydratedStepResult, d as MastraModelOutput, dn as resolveSuspendedToolRunId, dt as lazyStepResults, en as computeModelOutputProviderMetadata, et as resolveProcessorSpanAttributes, f as clearStepPartIndexes, fn as resolveThreadIdFromArgs, ft as loadStepResults, g as isFeedbackContinuation, gn as applyStateSignal, gt as storageV2StepResultAccessors, h as findStepPartBoundaries, hn as tryStreamWithJsonFallback, ht as residentStepResultsLoader, in as resolveModelOutputAfterToolResultProcessors, it as createProcessorSendSignal, j as OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX, jn as settledOrElapsed, k as getResponseFormat, kn as isMastraTimeoutError, kt as getStepResultAsync, l as TripWire, ln as isProcessorWorkflow, lt as hydrateStepResults, m as findIterationOffsetInParts, mn as tryGenerateWithJsonFallback, mt as residentStepResults, nn as latestProcessedModelOutput, nt as toProcessorSpanPhase, on as withAgentWorkflowToolMarker, ot as RunJournal, p as createDestructurableOutput, pn as supportedLanguageModelSpecifications, pt as loadedStepResults, q as takeHeldParts, rn as readModelOutput, rt as PROCESSOR_LATE_SIGNAL_SINK, s as MastraAgentNetworkStream, sn as normalizeModelOutput, st as buildStepResultAccessors, tn as hasToolResultProcessor, tt as resolveProcessorSpanName, u as getModelOutputForTripwire, un as isSupportedLanguageModel, ut as isStepResultStub, v as reconcileBufferedStepTexts, vn as assertNotQueueThreadId, vt as collectMappingStepRefs, w as markChunkOutputProcessed, wn as MastraTimeoutError, wt as resolveTemplate, x as resolveProcessorWriterMessageId, xn as takenQueueThreadId, xt as resolveStepOutputs, y as resolveMessageText, yn as isQueueThreadId, yt as collectPredicateStepRefs, z as needsTrailingAssistantGuard, zt as stateBaseOf } from "./stream-D607FmAx.js";
7
+ import { $ as summarizeToolChoiceForSpan, $t as commitToolResult, A as isSignalChunkExcluded, An as raceAgainstAbort, At as getSnapshotMemoryInfo, B as removeTrailingAssistantGuardContinuations, Bt as stateColumnsWrite, C as stampChunkProducedAt, Cn as DEADLINE_SAVE_WAIT_MS, D as isStructuredOutputError, Dn as guardStreamUntilMatch, Dt as validateTemplate, E as escapeUnescapedControlCharsInJsonStrings, En as getAbortReason, Et as traverseMappingPath, F as endOutputStreamSpanOutsideStep, Fn as safeEnqueue, Ft as latestStepResults, G as FLUSH_HELD_PARTS_KEY, Gt as diffStateAsJson, Ht as unusedStateEntries, I as findOwnModelStepSpan, In as safeError, It as materializeState, J as withoutHeldContent, K as REPROCESS_PART_KEY, Kt as patchState, Ln as createRunScope, Lt as materializeWorkflowRun, M as ProcessorRunner, N as ProcessorState, Nn as MastraModelInput, Nt as applyStateColumnsWrite, O as asJsonSchema, On as guardStreamWithAbort, Ot as getStepResult, P as endOutputStreamSpanAtStepEnd, Pn as safeClose, Pt as isStateCheckpointDue, Q as summarizeProcessorToolsForSpan, R as isTrailingAssistantGuardContinuation, Rn as createRunScopeKey, Rt as pickStateKeys, S as getChunkProducedAt, Sn as DEADLINE_SAVE_CLAIM_HOLD_MS, St as stepRefId, T as createOutputHandler, Tn as createTimeoutAbortSignal, Tt as templateReadsState, Ut as applyStatePatch, V as ProviderHistoryCompat, Vt as summarizeStepResult, X as summarizeProcessorModelForSpan, Y as summarizeActiveToolsForSpan, Yt as isObservationalMemoryEnabled$1, Z as summarizeProcessorResultForSpan, Zt as parseMemoryRequestContext, _ as persistProcessorDataChunk, _t as stubStepResult, a as convertFullStreamChunkToMastra, an as snapshotToolResult, at as PROCESSOR_ABORT_SIGNAL, b as resolveOutputMessageSkippingCompletionChecks, bn as pendingQueueThreadId, bt as predicateReadsState, c as WorkflowRunOutput, cn as validationErrorModelOutput, ct as getHydratedStepResult, d as MastraModelOutput, dn as resolveSuspendedToolRunId, dt as lazyStepResults, en as computeModelOutputProviderMetadata, et as resolveProcessorSpanAttributes, f as clearStepPartIndexes, fn as resolveThreadIdFromArgs, ft as loadStepResults, g as isFeedbackContinuation, gn as applyStateSignal, gt as storageV2StepResultAccessors, h as findStepPartBoundaries, hn as tryStreamWithJsonFallback, ht as residentStepResultsLoader, in as resolveModelOutputAfterToolResultProcessors, it as createProcessorSendSignal, j as OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX, jn as settledOrElapsed, k as getResponseFormat, kn as isMastraTimeoutError, kt as getStepResultAsync, l as TripWire, ln as isProcessorWorkflow, lt as hydrateStepResults, m as findIterationOffsetInParts, mn as tryGenerateWithJsonFallback, mt as residentStepResults, nn as latestProcessedModelOutput, nt as toProcessorSpanPhase, on as withAgentWorkflowToolMarker, ot as RunJournal, p as createDestructurableOutput, pn as supportedLanguageModelSpecifications, pt as loadedStepResults, q as takeHeldParts, rn as readModelOutput, rt as PROCESSOR_LATE_SIGNAL_SINK, s as MastraAgentNetworkStream, sn as normalizeModelOutput, st as buildStepResultAccessors, tn as hasToolResultProcessor, tt as resolveProcessorSpanName, u as getModelOutputForTripwire, un as isSupportedLanguageModel, ut as isStepResultStub, v as reconcileBufferedStepTexts, vn as assertNotQueueThreadId, vt as collectMappingStepRefs, w as markChunkOutputProcessed, wn as MastraTimeoutError, wt as resolveTemplate, x as resolveProcessorWriterMessageId, xn as takenQueueThreadId, xt as resolveStepOutputs, y as resolveMessageText, yn as isQueueThreadId, yt as collectPredicateStepRefs, z as needsTrailingAssistantGuard, zt as stateBaseOf } from "./stream-B9dswdIM.js";
8
8
  import { c as MASTRA_THREAD_ID_KEY, d as isReservedRequestContextKey, f as mergeVersionOverrides$1, l as MASTRA_VERSIONS_KEY, n as MASTRA_AUTH_TOKEN_KEY, o as MASTRA_RESOURCE_ID_KEY, p as withoutLiveRequestKeys, r as MASTRA_INHERITED_MEMORY_KEY, s as MASTRA_SCOPES_KEY, t as MASTRA_CONTINUATION_TOOL_CALL_IDS_KEY, u as RequestContext } from "./request-context-COnZHt2-.js";
9
9
  import { S as withAck, _ as serializeError$1, h as stripModelSnapshots, n as PublisherQueueLimitError, p as slimNestedAgentChunks, r as CachingPubSub, t as DefaultStepResult, u as isRunLocalTopic, v as EventEmitterPubSub, x as isLeaseProvider, y as NoopLeaseProvider } from "./output-helpers-CVzhy1Y0.js";
10
10
  import { A as stableStringify$1, E as removeWorkingMemoryTags, P as embed$3, Z as preserveResponseItemIdsOnMerge, a as isTerminalToolInvocationState, c as withUnavailableAttachmentUrls, d as aiV5UIMessagesToAIV5ModelMessages, f as coreContentToString, i as isClientToolInvocationUpdate, l as isDownloadAssetsError, m as filterMessagesForPersistence, n as MessageList, ot as normalizeToolOutput, p as messagesAreEqual, r as advancesToolInvocationState, s as unavailableAttachmentPlaceholder, t as convertMessages, u as MessageMerger } from "./message-list-RgFlLrxG.js";
11
11
  import { Bt as listScoresArgsSchema, Ft as listLogsArgsSchema, Lt as listMetricsArgsSchema, Nt as listFeedbackArgsSchema, t as EntityType } from "./storage-Cc50aQAp.js";
12
12
  import { a as getOrCreateSpan, f as resolveCurrentSpan, l as getTimeToFirstChunkMs, n as executeWithContextSync, o as getResumeTracingContext, p as resolveExportedSpanId, s as getRootExportSpan, t as executeWithContext, u as getWorkflowResumeTracingContext } from "./utils-DU_pU5SK.js";
13
13
  import { i as setSpanErrorOrigin, n as getSpanErrorOrigin } from "./error-count-BH-rJW7q.js";
14
- import { a as ModelRouterLanguageModel, d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, n as ModelRouterEmbeddingModel, o as resolveApiProviderId, p as readModelStreamTransport } from "./llm-CxHzqEEI.js";
14
+ import { a as ModelRouterLanguageModel, d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, n as ModelRouterEmbeddingModel, o as resolveApiProviderId, p as readModelStreamTransport } from "./llm-B5OxUmL4.js";
15
15
  import { a as withToolPayloadTransformMetadata, i as transformToolPayloadForTargets, n as hasTransformedToolPayload, o as withToolPayloadTransformProviderMetadata, r as normalizeToolPayloadTransformPolicy, t as getTransformedToolPayload } from "./payload-transform-Dj3HUeD4.js";
16
16
  import { boundedStringify, ensureSerializable, safeStringify } from "./utils/safe-stringify.js";
17
17
  import { d as signalSpanAttributes, h as signalToXmlMarkup, l as mastraDBMessageToSignal, n as createSignal, o as isMastraSignalMessage, s as isTransientSignalMessage, u as resolveDeliveryAttributes } from "./signals-CqR_iWkg.js";
@@ -24,13 +24,13 @@ import { _ as getRequestContextInputValues, a as getModelFacingValidationError,
24
24
  import { a as isApprovalExempt, c as isProviderDefinedTool, d as markAgentWorkflowTool, f as markApprovalExempt, l as isProviderTool, n as getNeedsApprovalFn, o as isBuiltBeforeApproval, r as getProviderToolName, s as isMastraTool, t as getBeforeApprovalFn } from "./toolchecks-DrsZdc3S.js";
25
25
  import { a as waitDelay, i as getRetryAfterMs, n as DEFAULT_MAX_RETRY_AFTER_MS, r as clampDelayMs } from "./fetchWithRetry-DFSvpYDT.js";
26
26
  import { i as hasFreeFormObject } from "./model-DS-b2R-R.js";
27
- import { c as modelSupportsStructuredOutput, l as modelSupportsTemperature } from "./provider-registry-DBG4hlGl.js";
27
+ import { c as modelSupportsStructuredOutput, l as modelSupportsTemperature } from "./provider-registry-CkHZ7heH.js";
28
28
  import { t as InMemoryServerCache } from "./inmemory-BK3zLwvM.js";
29
29
  import { n as resolveDynamicArgument, t as getRequestUser } from "./dynamic-argument-BzPK3qPN.js";
30
- import { t as MastraLLMV1 } from "./model-sUJDcX2v.js";
31
- import { A as eagerToolCallDidNotExecute, D as EagerToolExecutionCoordinator, E as EAGER_TOOL_EXECUTION_MARKER, F as hasRunningRunStep, I as isRunStepActive, L as setRunLeaseFence, M as isEagerlyExecutableToolCall, N as TOOL_ABORT_NOTICE, O as EagerToolExecutionNotRun, P as clearRunLeaseFence, R as startRunStep, S as selectFields, T as EAGER_TOOL_BAILOUT, a as ensureToolProperties, b as removeUndefinedValues, d as makeCoreTool, i as delay$1, j as eagerToolCallSuspensionIntent, k as eagerToolCallAlreadyAnnouncedInput, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge$1, v as readPositiveIntEnv, w as EAGER_TOOL_ABORT_SIGNAL, y as rebindProcessorTools, z as whenRunStepsSettle } from "./utils-CQkzZUcK.js";
30
+ import { t as MastraLLMV1 } from "./model-BNIR9RSw.js";
31
+ import { A as eagerToolCallDidNotExecute, D as EagerToolExecutionCoordinator, E as EAGER_TOOL_EXECUTION_MARKER, F as hasRunningRunStep, I as isRunStepActive, L as setRunLeaseFence, M as isEagerlyExecutableToolCall, N as TOOL_ABORT_NOTICE, O as EagerToolExecutionNotRun, P as clearRunLeaseFence, R as startRunStep, S as selectFields, T as EAGER_TOOL_BAILOUT, a as ensureToolProperties, b as removeUndefinedValues, d as makeCoreTool, i as delay$1, j as eagerToolCallSuspensionIntent, k as eagerToolCallAlreadyAnnouncedInput, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge$1, v as readPositiveIntEnv, w as EAGER_TOOL_ABORT_SIGNAL, y as rebindProcessorTools, z as whenRunStepsSettle } from "./utils-BU8lpEZ4.js";
32
32
  import { h as getWorkflowFGAResourceId, i as MastraFGAPermissions, y as requireFGA } from "./ee-iTj2bRDt-By_B9ngH.js";
33
- import { c as createBackgroundTask, o as resolveBackgroundConfig, s as sanitizeToolArguments, t as generateBackgroundTaskSystemPrompt } from "./background-tasks-BoUX5G90.js";
33
+ import { c as createBackgroundTask, o as resolveBackgroundConfig, s as sanitizeToolArguments, t as generateBackgroundTaskSystemPrompt } from "./background-tasks-CH_gzJwc.js";
34
34
  import { t as ToolStream } from "./stream-D9JOykz7.js";
35
35
  import { MISSING, collectInvalidPredicatePaths, createPredicateEvaluator, derivePredicateLabel, normalizePredicatePath, walk } from "./predicate/index.js";
36
36
  import { Classifier } from "./classifier/index.js";
@@ -50459,7 +50459,7 @@ function createChannelReplyTool(requestContext, options) {
50459
50459
  const { resolveRender } = options;
50460
50460
  return { [REPLY_TOOL_NAME]: createTool({
50461
50461
  id: REPLY_TOOL_NAME,
50462
- description: "Post a message in this chat thread. Nothing you write outside this tool reaches the thread, so use it for anything the people there should see: a short note that you are starting a longer job, a question you need answered, and the outcome when you finish. Post when you have something new; do not repeat yourself or post that nothing changed. To stay quiet, do not call it.",
50462
+ description: "Post a message in this chat thread. Use it for anything the people there should see: a short note that you are starting a longer job, a question you need answered, and the outcome when you finish. Post when you have something new; do not repeat yourself or post that nothing changed. If a turn on this thread ends with plain text and no post, that text is posted for you. To stay quiet, do not call it and end your turn with an empty message.",
50463
50463
  inputSchema: replyInput,
50464
50464
  execute: async (input, context) => {
50465
50465
  const link = claimFirstReplyLink(requestContext, options.link);
@@ -50566,11 +50566,18 @@ function openReplyStream({ chatThread, logger }) {
50566
50566
  var ChannelReplyStreamProcessor = class {
50567
50567
  id = "channel-reply-stream";
50568
50568
  #resolveRender;
50569
- constructor(resolveRender) {
50569
+ #postsUnsentAnswer;
50570
+ /**
50571
+ * @param postsUnsentAnswer Whether a run that ends without replying gets its
50572
+ * final text posted: only runs that came in on a channel whose adapter uses `replyMode`.
50573
+ */
50574
+ constructor(resolveRender, postsUnsentAnswer = () => false) {
50570
50575
  this.#resolveRender = resolveRender;
50576
+ this.#postsUnsentAnswer = postsUnsentAnswer;
50571
50577
  }
50572
50578
  async processOutputStream({ part, state, requestContext }) {
50573
50579
  if (!requestContext) return part;
50580
+ await this.#postUnsentAnswer(part, state, requestContext);
50574
50581
  const args = state.args ??= {};
50575
50582
  if (part.type === "tool-call-input-streaming-start" && part.payload.toolName === "reply_in_thread") {
50576
50583
  const render = await this.#resolveRender(requestContext);
@@ -50589,7 +50596,45 @@ var ChannelReplyStreamProcessor = class {
50589
50596
  }
50590
50597
  return part;
50591
50598
  }
50599
+ /**
50600
+ * Models sometimes end a turn with a plain-text answer and never call
50601
+ * `reply_in_thread`, so the thread never hears back. When a run finishes
50602
+ * without having replied, post the text written after its last tool call.
50603
+ * A reply counts once it posts: a call that fails validation doesn't, unless
50604
+ * its streamed post already left text in the thread.
50605
+ */
50606
+ async #postUnsentAnswer(part, state, requestContext) {
50607
+ const answer = state.answer ??= {
50608
+ replied: false,
50609
+ held: false,
50610
+ tail: "",
50611
+ calls: /* @__PURE__ */ new Set()
50612
+ };
50613
+ if (part.type === "text-delta") answer.tail += part.payload.text;
50614
+ else if (part.type === "tool-call" || part.type === "tool-call-input-streaming-start") {
50615
+ answer.tail = "";
50616
+ if (part.payload.toolName === "reply_in_thread") answer.calls.add(part.payload.toolCallId);
50617
+ } else if (part.type === "tool-result" && answer.calls.has(part.payload.toolCallId)) answer.replied = true;
50618
+ else if (part.type === "tool-error" && answer.calls.has(part.payload.toolCallId)) {
50619
+ const stream = replyStreams(requestContext).get(part.payload.toolCallId);
50620
+ if (stream && await stream.close()) answer.replied = true;
50621
+ } else if (part.type === "tool-call-approval" || part.type === "tool-call-suspended") answer.held = true;
50622
+ else if (RUN_END.has(part.type)) {
50623
+ state.answer = void 0;
50624
+ const text = answer.tail.trim();
50625
+ if (part.type !== "finish" || answer.replied || answer.held || !text || text === EMPTY_MESSAGE) return;
50626
+ if (!this.#postsUnsentAnswer(requestContext)) return;
50627
+ const render = await this.#resolveRender(requestContext);
50628
+ if (render?.textDisplay !== "hidden") return;
50629
+ try {
50630
+ await render.chatThread.post({ markdown: text });
50631
+ } catch (error) {
50632
+ render.logger?.warn("[channels] could not post the unsent answer", { error });
50633
+ }
50634
+ }
50635
+ }
50592
50636
  };
50637
+ const EMPTY_MESSAGE = "<empty_message>";
50593
50638
  /** Chunks after which no `reply_in_thread` call of this run will still execute. */
50594
50639
  const RUN_END = /* @__PURE__ */ new Set([
50595
50640
  "finish",
@@ -50674,7 +50719,7 @@ var ChannelReplyGuidanceProcessor = class {
50674
50719
  if (!canReply) return void 0;
50675
50720
  content = [`Post to that thread with \`${REPLY_TOOL_NAME}\`. This request came from outside it, so don't post an opener or progress there; post the outcome when the people in the thread asked for this work or are waiting on it, or when you're asked to. Don't write a note about what you posted.`];
50676
50721
  } else if (canReply) content = [
50677
- `Only messages you send with \`${REPLY_TOOL_NAME}\` reach this thread; your other text stays out of it. Don't write a note about what you posted. After a reply, either keep working or end your turn with an empty message; any text you write after posting is wasted.`,
50722
+ `Send messages to this thread with \`${REPLY_TOOL_NAME}\`; text you write before or between tool calls stays out of it. Don't write a note about what you posted. After a reply, either keep working or end your turn with an empty message; any text you write after posting is wasted. If you end a turn with plain text and never posted, that text is posted to the thread for you, so to stay quiet end with an empty message.`,
50678
50723
  "When a request will take tools or more than a moment, post one short line first that says what you are about to do, then do the work and post the outcome when you finish \u2014 not a replay of the steps.",
50679
50724
  "Post again in between only when you need an answer or have news the people in the thread would want. When a message that doesn't mention you needs nothing from you, don't call it."
50680
50725
  ];
@@ -52310,7 +52355,10 @@ var AgentChannels = class {
52310
52355
  return platform ? threadLinkOptions(this.adapterConfigs[platform]?.threadLink) : void 0;
52311
52356
  }));
52312
52357
  if (!has("chat-channel-render")) processors.push(new ChatChannelOutputProcessor(this));
52313
- if (this.replyModeEnabled && !has(REPLY_STREAM_PROCESSOR_ID)) processors.push(new ChannelReplyStreamProcessor((requestContext) => this.resolveRunRender(requestContext)));
52358
+ if (this.replyModeEnabled && !has(REPLY_STREAM_PROCESSOR_ID)) processors.push(new ChannelReplyStreamProcessor((requestContext) => this.resolveRunRender(requestContext), (requestContext) => {
52359
+ const platform = requestContext.get("channel")?.platform;
52360
+ return !!platform && !!this.adapterConfigs[platform]?.replyMode;
52361
+ }));
52314
52362
  return processors;
52315
52363
  }
52316
52364
  /**
@@ -86347,7 +86395,7 @@ async function prepareForDurableExecution(options) {
86347
86395
  });
86348
86396
  let tripwireData;
86349
86397
  if (inputProcessors.length > 0) try {
86350
- const { ProcessorRunner } = await import("./stream-D607FmAx.js").then((n) => n.L);
86398
+ const { ProcessorRunner } = await import("./stream-B9dswdIM.js").then((n) => n.L);
86351
86399
  await new ProcessorRunner({
86352
86400
  inputProcessors,
86353
86401
  outputProcessors,
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-BvMXuIb_.cjs");
2
+ const require_run_registry = require("../run-registry-BaVTwGKh.cjs");
3
3
  const require_observability = require("../observability-B0R_D1PZ.cjs");
4
- const require_stream = require("../stream-BIbVD8V8.cjs");
4
+ const require_stream = require("../stream-CbG7k93m.cjs");
5
5
  const require_storage = require("../storage-CfG0I2aF.cjs");
6
6
  const require_constants = require("../constants-CFO8w780.cjs");
7
7
  const require_filesystem_versioned = require("../filesystem-versioned-BavRtYWJ.cjs");
@@ -1,6 +1,6 @@
1
- import { $a as threadQueryRequestSchema, $i as parseKnowledgePageRef, $r as InMemoryNotificationsStorage, Aa as filterByDateRange, Ai as inspectKnowledgeSchema, Ao as getObjectOrNull, Ar as StoreOperationsInMemory, Ba as transformScoreRow, Bi as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Br as WorkflowsStorage, Ca as resolveRetentionTargets, Ci as KnowledgeNotFoundError, Co as planTraceQuery, Cr as expandKnowledgeScope, Da as createStoreErrorId, Di as KnowledgeUnsupportedCapabilityError, Do as buildMetricRecord, Dr as knowledgeSemanticIdempotencyKey, Ea as createStorageErrorId, Ei as KnowledgeTransactionDeadlineError, Eo as buildLogRecord, Er as knowledgeSemanticDocumentId, Fa as parseDuration, Fi as KnowledgePageKeyConflictError, Fo as ObservabilityStorage, Fr as FilesystemDB, Ga as tracePageNodeSchema, Gi as assertKnowledgeNoteTextWithinBound, Gr as WorkflowDefinitionsStorage, Ha as TracePageError, Hi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, Hr as mergeStepResult, Ia as safelyParseJSON, Ii as MAX_KNOWLEDGE_MOVE_PAGES, Io as FactoryStorage, Ir as InMemoryStore, Ja as THREAD_QUERY_DEFAULT_LIMIT, Ji as knowledgeLinkRefKey, Jr as ScoresInMemory, Ka as tracePageRequestSchema, Ki as assertKnowledgePageDescriptionWithinBound, Kr as InMemoryToolProviderConnectionsStorage, La as serializeDate, Li as MAX_KNOWLEDGE_NOTE_TOKENS, Lo as FactoryStorageDomain, Lr as MockStore, Ma as getSqlType, Mi as KnowledgeMoveTooLargeError, Mo as serializeSpanAttributes, Mr as GitHubSourceControlProvider, Na as hasErrorCode, Ni as KnowledgePageDepthError, No as toEntityType, Nr as createGitHubSourceControlProviderFromEnv, Oa as createVectorErrorId, Oi as assertKnowledgeSchemaCompatible, Oo as buildScoreRecord, Or as knowledgeVisibleScopeKeys, Pa as jsonValueEquals, Pi as KnowledgePageHasChildrenError, Po as ObservabilityInMemory, Pr as FilesystemStore, Qa as threadQueryIdentitySchema, Qi as knowledgeScopeReadable, Qr as normalizeScheduleTarget, Ra as storageMessageMatchesMetadataFilter, Ri as MAX_KNOWLEDGE_PAGE_BODY_LINKS, Ro as UniqueViolationError, Rr as WorkflowsInMemory, Sa as executeRetentionPrune, Si as KnowledgeConflictError, So as planThreadQuery, Sr as createKnowledgeNodeCursor, Ta as runRetentionBatches, Ti as KnowledgeStorage, To as buildFeedbackRecord, Tr as knowledgeScopeKey, Ua as readTracePage, Ui as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Ur as mergeWorkflowStepResult, Va as validateStorageMetadataFilter, Vi as MAX_KNOWLEDGE_PAGE_LINKS, Vr as createEmptyWorkflowSnapshot, Wa as tracePageIdSchema, Wi as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Wr as InMemoryWorkflowDefinitionsStorage, Xa as encodeThreadQueryCursor, Xi as knowledgePinDepth, Xr as InMemorySchedulesStorage, Ya as THREAD_QUERY_MAX_LIMIT, Yi as knowledgePagePath, Yr as ScoresStorage, Za as planThreadRowsQuery, Zi as knowledgePositionBetween, Zr as SchedulesStorage, _a as ChannelsStorage, _i as KnowledgeImporterBindingConflictError, _o as spanQueryResponseSchema, _r as assertKnowledgeCeilingRaised, _u as runFencingNotSupportedError, aa as ExperimentsStorage, ao as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, ba as BackgroundTasksInMemory, bi as KNOWLEDGE_STORAGE_CONTRACT_VERSION, bo as encodeTraceQueryDeltaCursor, br as assertKnowledgeScopeWithinCeiling, ca as DatasetItemIdentityConflictError, co as createSpanQueryPreview, cu as isWorkflowStepConflictError, do as planSpanQuery, du as RunFenceConflictError, ea as KnowledgeInvalidCursorError, ei as NotificationsStorage, eo as threadQueryResponseSchema, fo as resolveSpanQueryCost, fu as coverNestedRun, ga as InMemoryChannelsStorage, gi as InMemoryKnowledgeStorage, go as spanQueryRequestSchema, gr as MAX_KNOWLEDGE_SCOPE_TAGS, gu as resolveRunFence, hi as MemoryStorage, ho as spanQueryIdentitySchema, hr as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, hu as matchesRunFence, ia as ExperimentsInMemory, io as SPAN_QUERY_MAX_LIMIT, ja as getDefaultValue, ji as parseKnowledgeWikilinks, jo as getStringOrNull, jr as StoreOperations, ka as ensureDate, ki as createKnowledgeUlid, ko as buildUpdateSpanRecord, kr as parseKnowledgeNodeCursor, lo as encodeSpanQueryCursor, lu as RUN_FENCE_CONFLICT_ERROR_ID, mi as InMemoryMemory, mo as spanQueryIdentityKey, mr as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, mu as isRunFenceConflictError, na as InMemoryHarness, no as SPAN_QUERY_MAX_COST_METRICS, oa as DatasetsInMemory, oo as SPAN_QUERY_ORDER_FIELDS, ou as WorkflowStepConflictError, po as spanQueryCostSchema, pu as currentRunGeneration, qa as tracePageResponseSchema, qi as canonicalKnowledgeName, qr as ToolProviderConnectionsStorage, ra as HarnessStorage, ro as SPAN_QUERY_MAX_CURSOR_BYTES, sa as DatasetsStorage, so as buildSpanQueryResponse, su as assertWorkflowStepGuard, ti as dispatchDueNotifications, to as threadQueryRowSchema, uo as parseSpanQueryRequest, uu as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, va as InMemoryBlobStore, vi as KnowledgeImporterRunStateError, vo as spanQueryRowSchema, vr as assertKnowledgeDescriptionWithinBound, vu as runOutsideRunFenceScope, wa as retentionCutoffMs, wi as KnowledgeSchemaResetRequiredError, wo as buildCreateSpanRecord, wr as isKnowledgeScopeVisible, xa as BackgroundTasksStorage, xi as KNOWLEDGE_STORAGE_SCHEMA_VERSION, xo as getTraceQueryDeltaWatermark, xr as canonicalizeKnowledgeScope, ya as BlobStore, yi as KnowledgeImportersStorage, yo as encodeTraceQueryCursor, yr as assertKnowledgeRecordTextWithinBound, yu as setRunFenceContext, za as transformRow, zi as MAX_KNOWLEDGE_PAGE_DEPTH, zr as cloneRunData } from "../run-registry-Cqp-VFdv.js";
1
+ import { $a as threadQueryRequestSchema, $i as parseKnowledgePageRef, $r as InMemoryNotificationsStorage, Aa as filterByDateRange, Ai as inspectKnowledgeSchema, Ao as getObjectOrNull, Ar as StoreOperationsInMemory, Ba as transformScoreRow, Bi as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Br as WorkflowsStorage, Ca as resolveRetentionTargets, Ci as KnowledgeNotFoundError, Co as planTraceQuery, Cr as expandKnowledgeScope, Da as createStoreErrorId, Di as KnowledgeUnsupportedCapabilityError, Do as buildMetricRecord, Dr as knowledgeSemanticIdempotencyKey, Ea as createStorageErrorId, Ei as KnowledgeTransactionDeadlineError, Eo as buildLogRecord, Er as knowledgeSemanticDocumentId, Fa as parseDuration, Fi as KnowledgePageKeyConflictError, Fo as ObservabilityStorage, Fr as FilesystemDB, Ga as tracePageNodeSchema, Gi as assertKnowledgeNoteTextWithinBound, Gr as WorkflowDefinitionsStorage, Ha as TracePageError, Hi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, Hr as mergeStepResult, Ia as safelyParseJSON, Ii as MAX_KNOWLEDGE_MOVE_PAGES, Io as FactoryStorage, Ir as InMemoryStore, Ja as THREAD_QUERY_DEFAULT_LIMIT, Ji as knowledgeLinkRefKey, Jr as ScoresInMemory, Ka as tracePageRequestSchema, Ki as assertKnowledgePageDescriptionWithinBound, Kr as InMemoryToolProviderConnectionsStorage, La as serializeDate, Li as MAX_KNOWLEDGE_NOTE_TOKENS, Lo as FactoryStorageDomain, Lr as MockStore, Ma as getSqlType, Mi as KnowledgeMoveTooLargeError, Mo as serializeSpanAttributes, Mr as GitHubSourceControlProvider, Na as hasErrorCode, Ni as KnowledgePageDepthError, No as toEntityType, Nr as createGitHubSourceControlProviderFromEnv, Oa as createVectorErrorId, Oi as assertKnowledgeSchemaCompatible, Oo as buildScoreRecord, Or as knowledgeVisibleScopeKeys, Pa as jsonValueEquals, Pi as KnowledgePageHasChildrenError, Po as ObservabilityInMemory, Pr as FilesystemStore, Qa as threadQueryIdentitySchema, Qi as knowledgeScopeReadable, Qr as normalizeScheduleTarget, Ra as storageMessageMatchesMetadataFilter, Ri as MAX_KNOWLEDGE_PAGE_BODY_LINKS, Ro as UniqueViolationError, Rr as WorkflowsInMemory, Sa as executeRetentionPrune, Si as KnowledgeConflictError, So as planThreadQuery, Sr as createKnowledgeNodeCursor, Ta as runRetentionBatches, Ti as KnowledgeStorage, To as buildFeedbackRecord, Tr as knowledgeScopeKey, Ua as readTracePage, Ui as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Ur as mergeWorkflowStepResult, Va as validateStorageMetadataFilter, Vi as MAX_KNOWLEDGE_PAGE_LINKS, Vr as createEmptyWorkflowSnapshot, Wa as tracePageIdSchema, Wi as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Wr as InMemoryWorkflowDefinitionsStorage, Xa as encodeThreadQueryCursor, Xi as knowledgePinDepth, Xr as InMemorySchedulesStorage, Ya as THREAD_QUERY_MAX_LIMIT, Yi as knowledgePagePath, Yr as ScoresStorage, Za as planThreadRowsQuery, Zi as knowledgePositionBetween, Zr as SchedulesStorage, _a as ChannelsStorage, _i as KnowledgeImporterBindingConflictError, _o as spanQueryResponseSchema, _r as assertKnowledgeCeilingRaised, _u as runFencingNotSupportedError, aa as ExperimentsStorage, ao as SPAN_QUERY_MAX_PREVIEW_CHARACTERS, ba as BackgroundTasksInMemory, bi as KNOWLEDGE_STORAGE_CONTRACT_VERSION, bo as encodeTraceQueryDeltaCursor, br as assertKnowledgeScopeWithinCeiling, ca as DatasetItemIdentityConflictError, co as createSpanQueryPreview, cu as isWorkflowStepConflictError, do as planSpanQuery, du as RunFenceConflictError, ea as KnowledgeInvalidCursorError, ei as NotificationsStorage, eo as threadQueryResponseSchema, fo as resolveSpanQueryCost, fu as coverNestedRun, ga as InMemoryChannelsStorage, gi as InMemoryKnowledgeStorage, go as spanQueryRequestSchema, gr as MAX_KNOWLEDGE_SCOPE_TAGS, gu as resolveRunFence, hi as MemoryStorage, ho as spanQueryIdentitySchema, hr as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, hu as matchesRunFence, ia as ExperimentsInMemory, io as SPAN_QUERY_MAX_LIMIT, ja as getDefaultValue, ji as parseKnowledgeWikilinks, jo as getStringOrNull, jr as StoreOperations, ka as ensureDate, ki as createKnowledgeUlid, ko as buildUpdateSpanRecord, kr as parseKnowledgeNodeCursor, lo as encodeSpanQueryCursor, lu as RUN_FENCE_CONFLICT_ERROR_ID, mi as InMemoryMemory, mo as spanQueryIdentityKey, mr as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, mu as isRunFenceConflictError, na as InMemoryHarness, no as SPAN_QUERY_MAX_COST_METRICS, oa as DatasetsInMemory, oo as SPAN_QUERY_ORDER_FIELDS, ou as WorkflowStepConflictError, po as spanQueryCostSchema, pu as currentRunGeneration, qa as tracePageResponseSchema, qi as canonicalKnowledgeName, qr as ToolProviderConnectionsStorage, ra as HarnessStorage, ro as SPAN_QUERY_MAX_CURSOR_BYTES, sa as DatasetsStorage, so as buildSpanQueryResponse, su as assertWorkflowStepGuard, ti as dispatchDueNotifications, to as threadQueryRowSchema, uo as parseSpanQueryRequest, uu as RUN_FENCING_NOT_SUPPORTED_ERROR_ID, va as InMemoryBlobStore, vi as KnowledgeImporterRunStateError, vo as spanQueryRowSchema, vr as assertKnowledgeDescriptionWithinBound, vu as runOutsideRunFenceScope, wa as retentionCutoffMs, wi as KnowledgeSchemaResetRequiredError, wo as buildCreateSpanRecord, wr as isKnowledgeScopeVisible, xa as BackgroundTasksStorage, xi as KNOWLEDGE_STORAGE_SCHEMA_VERSION, xo as getTraceQueryDeltaWatermark, xr as canonicalizeKnowledgeScope, ya as BlobStore, yi as KnowledgeImportersStorage, yo as encodeTraceQueryCursor, yr as assertKnowledgeRecordTextWithinBound, yu as setRunFenceContext, za as transformRow, zi as MAX_KNOWLEDGE_PAGE_DEPTH, zr as cloneRunData } from "../run-registry-bm6b6mwQ.js";
2
2
  import { a as PREVIEW_MAX_LENGTH } from "../observability-D7RNOAPx.js";
3
- import { At as getSnapshotMemoryInfo, Bt as stateColumnsWrite, Ft as latestStepResults, Ht as unusedStateEntries, It as materializeState, Lt as materializeWorkflowRun, Mt as STEP_RESULT_SUMMARY_FIELDS, Nt as applyStateColumnsWrite, Pt as isStateCheckpointDue, Rt as pickStateKeys, Ut as applyStatePatch, Vt as summarizeStepResult, Wt as diffState, _n as QUEUE_THREAD_PREFIX, bn as pendingQueueThreadId, jt as STATE_CHECKPOINT_PATCHES, vn as assertNotQueueThreadId, xn as takenQueueThreadId, yn as isQueueThreadId, zt as stateBaseOf } from "../stream-D607FmAx.js";
3
+ import { At as getSnapshotMemoryInfo, Bt as stateColumnsWrite, Ft as latestStepResults, Ht as unusedStateEntries, It as materializeState, Lt as materializeWorkflowRun, Mt as STEP_RESULT_SUMMARY_FIELDS, Nt as applyStateColumnsWrite, Pt as isStateCheckpointDue, Rt as pickStateKeys, Ut as applyStatePatch, Vt as summarizeStepResult, Wt as diffState, _n as QUEUE_THREAD_PREFIX, bn as pendingQueueThreadId, jt as STATE_CHECKPOINT_PATCHES, vn as assertNotQueueThreadId, xn as takenQueueThreadId, yn as isQueueThreadId, zt as stateBaseOf } from "../stream-B9dswdIM.js";
4
4
  import { $ as getFeedbackAggregateArgsSchema, $t as metricsFilterSchema, A as deleteScoresResponseSchema, An as tagsField, At as getServiceNamesResponseSchema, B as experimentIdField, Bt as listScoresArgsSchema, C as dateRangeSchema, Cn as scoresOrderBySchema, Ct as getScoreBreakdownArgsSchema, D as deleteFeedbackArgsSchema, Dn as sourceField, Dt as getScoreTimeSeriesArgsSchema, E as defaultPaginationArgs, En as sortDirectionSchema, Et as getScorePercentilesResponseSchema, F as entityIdField, Fn as userIdField, Ft as listLogsArgsSchema, G as feedbackRecordSchema, Gt as logsFilterSchema, H as feedbackInputSchema, Ht as logLevelSchema, I as entityNameField, It as listLogsResponseSchema, J as getEntityNamesResponseSchema, Jt as metadataField, K as feedbackReviewStatusSchema, Kt as logsOrderByFieldSchema, L as entityTypeField, Lt as listMetricsArgsSchema, M as deltaInfoSchema, Mn as traceIdField, Mt as getTagsResponseSchema, N as deltaLimitSchema, Nn as updateFeedbackReviewStatusArgsSchema, Nt as listFeedbackArgsSchema, O as deleteFeedbackResponseSchema, On as spanContextFields, Ot as getScoreTimeSeriesResponseSchema, P as distinctColumnSchema, Pn as updatedAtField, Pt as listFeedbackResponseSchema, Q as getEnvironmentsResponseSchema, Qt as metricsAggregationSchema, R as environmentField, Rt as listMetricsResponseSchema, S as createdAtField, Sn as scoresOrderByFieldSchema, St as getScoreAggregateResponseSchema, T as defaultDeltaLimit, Tn as sessionIdField, Tt as getScorePercentilesArgsSchema, U as feedbackOrderByFieldSchema, Ut as logRecordInputSchema, V as feedbackFilterSchema, Vt as listScoresResponseSchema, W as feedbackOrderBySchema, Wt as logRecordSchema, X as getEntityTypesResponseSchema, Xt as metricRecordSchema, Y as getEntityTypesArgsSchema, Yt as metricInputSchema, Z as getEnvironmentsArgsSchema, Zt as metricTypeSchema, _ as createMetricRecordSchema, _n as runIdField, _t as getMetricPercentilesArgsSchema, a as batchCreateFeedbackArgsSchema, an as paginationInfoSchema, at as getFeedbackTimeSeriesArgsSchema, b as createScoreRecordSchema, bn as scoreRecordSchema, bt as getMetricTimeSeriesResponseSchema, c as batchCreateScoresArgsSchema, cn as parentEntityTypeField, ct as getMetricAggregateResponseSchema, d as contextFields, dn as requestIdField, dt as getMetricLabelKeysArgsSchema, en as metricsOrderByFieldSchema, et as getFeedbackAggregateResponseSchema, f as createFeedbackArgsSchema, ft as getMetricLabelKeysResponseSchema, g as createLogRecordSchema, gn as rootEntityTypeField, gt as getMetricNamesResponseSchema, h as createFeedbackResponseSchema, hn as rootEntityNameField, ht as getMetricNamesArgsSchema, i as aggregationTypeSchema, in as paginationArgsSchema, it as getFeedbackPercentilesResponseSchema, j as deltaCursorSchema, jn as threadIdField, jt as getTagsArgsSchema, k as deleteScoresArgsSchema, kn as spanIdField, kt as getServiceNamesArgsSchema, l as commonFilterFields, ln as refineObservabilityListMode, lt as getMetricBreakdownArgsSchema, m as createFeedbackRecordSchema, mn as rootEntityIdField, mt as getMetricLabelValuesResponseSchema, n as METRIC_DISTINCT_COLUMNS, nn as normalizeObservabilityListArgs, nt as getFeedbackBreakdownResponseSchema, o as batchCreateLogsArgsSchema, on as parentEntityIdField, ot as getFeedbackTimeSeriesResponseSchema, p as createFeedbackBodySchema, pn as resourceIdField, pt as getMetricLabelValuesArgsSchema, q as getEntityNamesArgsSchema, qt as logsOrderBySchema, r as aggregationIntervalSchema, rn as organizationIdField, rt as getFeedbackPercentilesArgsSchema, s as batchCreateMetricsArgsSchema, sn as parentEntityNameField, st as getMetricAggregateArgsSchema, t as EntityType, tn as metricsOrderBySchema, tt as getFeedbackBreakdownArgsSchema, u as comparePeriodSchema, un as replaceFeedbackBodySchema, ut as getMetricBreakdownResponseSchema, v as createScoreArgsSchema, vn as scopeField, vt as getMetricPercentilesResponseSchema, w as dbTimestamps, wn as serviceNameField, wt as getScoreBreakdownResponseSchema, x as createScoreResponseSchema, xn as scoresFilterSchema, xt as getScoreAggregateArgsSchema, y as createScoreBodySchema, yn as scoreInputSchema, yt as getMetricTimeSeriesArgsSchema, z as executionSourceField, zt as listModeSchema } from "../storage-Cc50aQAp.js";
5
5
  import { $ as TABLE_CHANNEL_INSTALLATIONS, $n as listTracesLightResponseSchema, $t as TABLE_WORKSPACES, A as MCP_CLIENTS_SCHEMA, An as computeTraceStatus, At as TABLE_OBSERVATIONAL_MEMORY, B as PROMPT_BLOCK_VERSIONS_SCHEMA, Bn as getSpansArgsSchema, Bt as TABLE_SKILLS, C as KNOWLEDGE_SCOPE_GRANTS_SCHEMA, Cn as branchesFilterSchema, Ct as TABLE_MCP_CLIENTS, D as KNOWLEDGE_V2_MENTIONS_SCHEMA, Dn as buildPreview, Dt as TABLE_MEMORY_RUN_FENCES, E as KNOWLEDGE_V2_ACTIVITY_SCHEMA, En as buildInputPreview, Et as TABLE_MCP_SERVER_VERSIONS, F as NOTIFICATIONS_SCHEMA, Fn as getBranchResponseSchema, Ft as TABLE_SCHEDULE_TRIGGERS, G as SKILLS_SCHEMA, Gn as getTraceLightResponseSchema, Gt as TABLE_THREAD_STATE, H as SCORERS_SCHEMA, Hn as getStringAttribute, Ht as TABLE_SKILL_VERSIONS, I as OBSERVATIONAL_MEMORY_SCHEMA, In as getRootSpanArgsSchema, It as TABLE_SCHEMAS, J as SPAN_SCHEMA, Jn as lightSpanRecordSchema, Jt as TABLE_WORKFLOW_DEFINITIONS, K as SKILL_BLOBS_SCHEMA, Kn as getTraceResponseSchema, Kt as TABLE_TOOL_PROVIDER_CONNECTIONS, L as OBSERVATIONAL_MEMORY_TABLE_SCHEMA, Ln as getRootSpanResponseSchema, Lt as TABLE_SCORERS, M as MCP_SERVERS_SCHEMA, Mn as createSpanRecordSchema, Mt as TABLE_PROMPT_BLOCK_VERSIONS, N as MCP_SERVER_VERSIONS_SCHEMA, Nn as extractBranchSpans, Nt as TABLE_RESOURCES, O as KNOWLEDGE_V2_NODES_SCHEMA, On as buildPreviewFromJson, Ot as TABLE_MESSAGES, P as MEMORY_RUN_FENCES_SCHEMA, Pn as getBranchArgsSchema, Pt as TABLE_SCHEDULES, Q as TABLE_CHANNEL_CONFIG, Qn as listTracesArgsSchema, Qt as TABLE_WORKFLOW_SNAPSHOT, R as OLD_SPAN_SCHEMA, Rn as getSpanArgsSchema, Rt as TABLE_SCORER_DEFINITIONS, S as KNOWLEDGE_SCOPE_ADDRESSES_SCHEMA, Sn as batchUpdateSpansArgsSchema, St as TABLE_KNOWLEDGE_SEMANTIC_OUTBOX, T as KNOWLEDGE_TABLE_NAMES, Tn as branchesOrderBySchema, Tt as TABLE_MCP_SERVERS, U as SCORER_DEFINITIONS_SCHEMA, Un as getStructureResponseSchema, Ut as TABLE_SPANS, V as RUN_FENCING_TABLE_SCHEMAS, Vn as getSpansResponseSchema, Vt as TABLE_SKILL_BLOBS, W as SCORER_DEFINITION_VERSIONS_SCHEMA, Wn as getTraceArgsSchema, Wt as TABLE_THREADS, X as TABLE_AGENT_VERSIONS, Xn as listBranchesResponseSchema, Xt as TABLE_WORKFLOW_RUN_ENTRIES, Y as TABLE_AGENTS, Yn as listBranchesArgsSchema, Yt as TABLE_WORKFLOW_RUNS, Z as TABLE_BACKGROUND_TASKS, Zn as listScoresBySpanResponseSchema, Zt as TABLE_WORKFLOW_RUN_OWNERS, _ as KNOWLEDGE_NODE_ADDRESSES_SCHEMA, _n as INPUT_PREVIEW_MAX_LENGTH, _r as isAppendOnlySince, _t as TABLE_KNOWLEDGE_PROPOSALS, a as DATASET_VERSIONS_SCHEMA, an as WORKFLOW_RUN_ENTRIES_SCHEMA, ar as spanRecordSchema, at as TABLE_EXPERIMENT_RESULTS, b as KNOWLEDGE_RECORDS_SCHEMA, bn as batchDeleteTracesArgsSchema, br as maxObservationCursor, bt as TABLE_KNOWLEDGE_SCOPE_ADDRESSES, c as FAVORITES_SCHEMA, cn as WORKSPACES_SCHEMA, cr as toTraceSpans, ct as TABLE_KNOWLEDGE_ACCESS_STATE, d as KNOWLEDGE_ACTIVITY_SCHEMA, dn as STORAGE_VISIBILITY_VALUES, dr as tracesOrderByFieldSchema, dt as TABLE_KNOWLEDGE_IMPORT_RUNS, en as TABLE_WORKSPACE_VERSIONS, er as listTracesResponseSchema, et as TABLE_CONFIGS, f as KNOWLEDGE_CURSORS_SCHEMA, fn as buildStorageSchema, fr as tracesOrderBySchema, ft as TABLE_KNOWLEDGE_IMPORT_STATE, g as KNOWLEDGE_NODES_SCHEMA, gn as BRANCH_SPAN_TYPE_SET, gr as compareObservationalMemoryHeadOrder, gt as TABLE_KNOWLEDGE_NODE_SCOPES, h as KNOWLEDGE_MENTIONS_SCHEMA, hn as BRANCH_SPAN_TYPES, hr as assertActiveObservationsApplied, ht as TABLE_KNOWLEDGE_NODE_ADDRESSES, i as DATASET_ITEMS_SCHEMA, in as WORKFLOW_RUNS_SCHEMA, ir as spanIdsSchema, it as TABLE_EXPERIMENTS, j as MCP_CLIENT_VERSIONS_SCHEMA, jn as createSpanArgsSchema, jt as TABLE_PROMPT_BLOCKS, k as KNOWLEDGE_V2_RECORDS_SCHEMA, kn as buildStoredPreview, kt as TABLE_NOTIFICATIONS, l as HARNESS_SESSIONS_SCHEMA, ln as WORKSPACE_VERSIONS_SCHEMA, lr as traceSpanSchema, lt as TABLE_KNOWLEDGE_ACTIVITY, m as KNOWLEDGE_IMPORT_STATE_SCHEMA, mn as BATCH_DELETE_TRACES_MAX_IDS, mr as updateSpanRecordSchema, mt as TABLE_KNOWLEDGE_NODES, n as AGENT_VERSIONS_SCHEMA, nn as TOOL_PROVIDER_CONNECTIONS_SCHEMA, nr as scoreTracesResponseSchema, nt as TABLE_DATASET_ITEMS, o as EXPERIMENTS_SCHEMA, on as WORKFLOW_RUN_JOURNAL_TABLE_CONFIGS, or as toLightSpanRecord, ot as TABLE_FAVORITES, p as KNOWLEDGE_IMPORT_RUNS_SCHEMA, pn as matchesExpectedWorkflowStatus, pr as updateSpanArgsSchema, pt as TABLE_KNOWLEDGE_MENTIONS, q as SKILL_VERSIONS_SCHEMA, qn as isPreviewTruncated, qt as TABLE_TRACES, r as DATASETS_SCHEMA, rn as WORKFLOW_DEFINITIONS_SCHEMA, rr as spanIds, rt as TABLE_DATASET_VERSIONS, s as EXPERIMENT_RESULTS_SCHEMA, sn as WORKFLOW_RUN_OWNERS_SCHEMA, sr as toTraceSpan, st as TABLE_HARNESS_SESSIONS, t as AGENTS_SCHEMA, tn as THREAD_STATE_SCHEMA, tr as scoreTracesRequestSchema, tt as TABLE_DATASETS, u as KNOWLEDGE_ACCESS_STATE_SCHEMA, un as STORAGE_FAVORITE_ENTITY_TYPES, ur as tracesFilterSchema, ut as TABLE_KNOWLEDGE_CURSORS, v as KNOWLEDGE_NODE_SCOPES_SCHEMA, vn as TraceStatus, vr as isBufferedChunkCoveredByCursor, vt as TABLE_KNOWLEDGE_RECORDS, w as KNOWLEDGE_SEMANTIC_OUTBOX_SCHEMA, wn as branchesOrderByFieldSchema, wt as TABLE_MCP_CLIENT_VERSIONS, x as KNOWLEDGE_RECORD_SCOPES_SCHEMA, xn as batchDeleteTracesResponseSchema, xr as planReflectionGenerationText, xt as TABLE_KNOWLEDGE_SCOPE_GRANTS, y as KNOWLEDGE_PROPOSALS_SCHEMA, yn as batchCreateSpansArgsSchema, yr as isBufferedReflectionUnchangedSince, yt as TABLE_KNOWLEDGE_RECORD_SCOPES, z as PROMPT_BLOCKS_SCHEMA, zn as getSpanResponseSchema, zt as TABLE_SCORER_DEFINITION_VERSIONS } from "../constants-CUv0mU2y.js";
6
6
  import { _ as ThreadStateStorage, a as GitHistory, c as DOMAIN_KEYS, d as MastraStorage, f as calculatePagination, g as InMemoryThreadStateStorage, h as resolveListOrderBy, i as getSourceControlEntityFilePath, l as EDITOR_DOMAINS, m as normalizePerPage, n as SOURCE_CONTROL_AGENTS_DIR, o as VersionedStorageDomain, p as compareByField, r as getSourceAgentFilePath, s as StorageDomain, t as FilesystemVersionedHelpers, u as MastraCompositeStore } from "../filesystem-versioned-BL1ojJLo.js";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_stream = require("../stream-BIbVD8V8.cjs");
3
- const require_llm = require("../llm-Bljw7LII.cjs");
2
+ const require_stream = require("../stream-CbG7k93m.cjs");
3
+ const require_llm = require("../llm-CGl_FZsb.cjs");
4
4
  const require_file = require("../file-BEndQUN1.cjs");
5
5
  exports.ChunkFrom = require_llm.ChunkFrom;
6
6
  exports.DefaultGeneratedFile = require_file.DefaultGeneratedFile;
@@ -1,4 +1,4 @@
1
- import { Mn as convertFullStreamChunkToUIMessageStream, a as convertFullStreamChunkToMastra, c as WorkflowRunOutput, d as MastraModelOutput, i as withStreamCaching, n as createCachingTransformStream, o as convertMastraChunkToAISDKv5, r as createReplayStream, s as MastraAgentNetworkStream, t as smoothStream } from "../stream-D607FmAx.js";
2
- import { u as ChunkFrom } from "../llm-CxHzqEEI.js";
1
+ import { Mn as convertFullStreamChunkToUIMessageStream, a as convertFullStreamChunkToMastra, c as WorkflowRunOutput, d as MastraModelOutput, i as withStreamCaching, n as createCachingTransformStream, o as convertMastraChunkToAISDKv5, r as createReplayStream, s as MastraAgentNetworkStream, t as smoothStream } from "../stream-B9dswdIM.js";
2
+ import { u as ChunkFrom } from "../llm-B5OxUmL4.js";
3
3
  import { n as DefaultGeneratedFileWithType, t as DefaultGeneratedFile } from "../file-DGZrR5f7.js";
4
4
  export { ChunkFrom, DefaultGeneratedFile, DefaultGeneratedFileWithType, MastraAgentNetworkStream, MastraModelOutput, WorkflowRunOutput, convertFullStreamChunkToMastra, convertFullStreamChunkToUIMessageStream, convertMastraChunkToAISDKv5, createCachingTransformStream, createReplayStream, smoothStream, withStreamCaching };
@@ -1,5 +1,5 @@
1
1
  import { n as __exportAll } from "./rolldown-runtime-tIEjjQTE.js";
2
- import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-CxHzqEEI.js";
2
+ import { d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, p as readModelStreamTransport } from "./llm-B5OxUmL4.js";
3
3
  import { B as getResponseProviderItemIdFromPart, G as RESPONSE_ITEM_ID_PROVIDERS, K as RESPONSE_RESULT_ITEM_ID_KEY, f as coreContentToString, n as MessageList, p as messagesAreEqual, t as convertMessages } from "./message-list-RgFlLrxG.js";
4
4
  import { S as resolveObservabilityContext, x as createObservabilityContext } from "./observability-D7RNOAPx.js";
5
5
  import { t as MastraBase } from "./base-CKLWBhDo.js";
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require("./rolldown-runtime-BrhgMLW6.cjs");
2
- const require_llm = require("./llm-Bljw7LII.cjs");
2
+ const require_llm = require("./llm-CGl_FZsb.cjs");
3
3
  const require_message_list = require("./message-list-C0F2sDNC.cjs");
4
4
  const require_observability = require("./observability-B0R_D1PZ.cjs");
5
5
  const require_base = require("./base-BIzR1D3_.cjs");
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("../rolldown-runtime-BrhgMLW6.cjs");
3
3
  const require_dist = require("../dist-CXeCeeW7.cjs");
4
- const require_model = require("../model-CrDuEDRq.cjs");
4
+ const require_model = require("../model-WmKuSHa8.cjs");
5
5
  const require_model$1 = require("../model-jBymoqGa.cjs");
6
6
  let stream = require("stream");
7
7
  let module$1 = require("module");
@@ -1,5 +1,5 @@
1
1
  import { o as simulateReadableStream } from "../dist-D3cKCUe-.js";
2
- import { t as MastraLLMV1 } from "../model-sUJDcX2v.js";
2
+ import { t as MastraLLMV1 } from "../model-BNIR9RSw.js";
3
3
  import { t as AISDKV5LanguageModel } from "../model-DS-b2R-R.js";
4
4
  import { createRequire } from "module";
5
5
  import { Readable } from "stream";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_tool_loop_agent = require("../tool-loop-agent-Cnf7vONA.cjs");
2
+ const require_tool_loop_agent = require("../tool-loop-agent-BnlPROel.cjs");
3
3
  exports.getSettings = require_tool_loop_agent.getSettings;
4
4
  exports.isToolLoopAgentLike = require_tool_loop_agent.isToolLoopAgentLike;
5
5
  exports.toolLoopAgentToMastraAgent = require_tool_loop_agent.toolLoopAgentToMastraAgent;
@@ -1 +1 @@
1
- export { n as getSettings, r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "../tool-loop-agent-eyoY_TEX.js";
1
+ export { n as getSettings, r as isToolLoopAgentLike, t as toolLoopAgentToMastraAgent } from "../tool-loop-agent-BmlzhMxc.js";
@@ -1,7 +1,7 @@
1
1
  import { m as generateId } from "./dist-TPVqg8oV.js";
2
- import { F as Agent } from "./run-registry-Cqp-VFdv.js";
3
- import { un as isSupportedLanguageModel } from "./stream-D607FmAx.js";
4
- import { i as resolveModelConfig } from "./llm-CxHzqEEI.js";
2
+ import { F as Agent } from "./run-registry-bm6b6mwQ.js";
3
+ import { un as isSupportedLanguageModel } from "./stream-B9dswdIM.js";
4
+ import { i as resolveModelConfig } from "./llm-B5OxUmL4.js";
5
5
  import { N as ToolLoopAgent } from "./message-list-RgFlLrxG.js";
6
6
  // src/tool-loop-agent/utils.ts
7
7
  function isToolLoopAgentLike(obj) {
@@ -1,7 +1,7 @@
1
1
  const require_dist = require("./dist-P2rjrlmj.cjs");
2
- const require_run_registry = require("./run-registry-BvMXuIb_.cjs");
3
- const require_stream = require("./stream-BIbVD8V8.cjs");
4
- const require_llm = require("./llm-Bljw7LII.cjs");
2
+ const require_run_registry = require("./run-registry-BaVTwGKh.cjs");
3
+ const require_stream = require("./stream-CbG7k93m.cjs");
4
+ const require_llm = require("./llm-CGl_FZsb.cjs");
5
5
  const require_message_list = require("./message-list-C0F2sDNC.cjs");
6
6
  // src/tool-loop-agent/utils.ts
7
7
  function isToolLoopAgentLike(obj) {
@@ -1,7 +1,7 @@
1
1
  import { i as MastraError, n as ErrorDomain, o as getErrorFromUnknown, t as ErrorCategory } from "./error-oh2DLsP2.js";
2
2
  import { c as registerToolOutputValidationSchema, d as validateToolOutput, f as validateToolSuspendData, h as markBuilderValidatedInput, i as createStandardSchemaIssuesError, n as Tool, o as getValidationIssuePaths, p as createToolObserve, s as isValidationError, u as validateToolInput } from "./tool-Z3bykc1m.js";
3
3
  import { i as MastraFGAPermissions } from "./ee-iTj2bRDt-By_B9ngH.js";
4
- import { a as isToolBackgroundEligible, i as isModelBackgroundOverrideAllowed, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-BoUX5G90.js";
4
+ import { a as isToolBackgroundEligible, i as isModelBackgroundOverrideAllowed, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-CH_gzJwc.js";
5
5
  import { t as MastraBase } from "./base-CKLWBhDo.js";
6
6
  import { O as executionFailureTermination, b as wrapMastra, x as createObservabilityContext } from "./observability-D7RNOAPx.js";
7
7
  import { a as getOrCreateSpan, t as executeWithContext } from "./utils-DU_pU5SK.js";
@@ -1,7 +1,7 @@
1
1
  const require_error = require("./error-D90lJ6M7.cjs");
2
2
  const require_tool = require("./tool-CYlT2UA-.cjs");
3
3
  const require_ee_iTj2bRDt = require("./ee-iTj2bRDt-D3-QLGDF.cjs");
4
- const require_background_tasks = require("./background-tasks-udYDvnlw.cjs");
4
+ const require_background_tasks = require("./background-tasks-BIk1TRPw.cjs");
5
5
  const require_base = require("./base-BIzR1D3_.cjs");
6
6
  const require_observability = require("./observability-B0R_D1PZ.cjs");
7
7
  const require_utils = require("./utils-D-eNsgDM.cjs");
package/dist/utils.cjs CHANGED
@@ -4,7 +4,7 @@ const require_deep_equal = require("./deep-equal-TMDmByBC.cjs");
4
4
  const require_zod_utils = require("./zod-utils-Cl5jw5N_.cjs");
5
5
  const require_fetchWithRetry = require("./fetchWithRetry-f5k4p7_1.cjs");
6
6
  const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
7
- const require_utils = require("./utils-O1TXaFUl.cjs");
7
+ const require_utils = require("./utils-N_OPw-9g.cjs");
8
8
  exports.boundedStringify = require_utils_safe_stringify.boundedStringify;
9
9
  exports.checkEvalStorageFields = require_utils.checkEvalStorageFields;
10
10
  exports.createMastraProxy = require_utils.createMastraProxy;
package/dist/utils.js CHANGED
@@ -3,5 +3,5 @@ import { t as deepEqual } from "./deep-equal-d1xU02ag.js";
3
3
  import { a as isZodObject, i as isZodArray, r as getZodTypeName, t as getZodDef } from "./zod-utils-BDDS_mxU.js";
4
4
  import { t as fetchWithRetry } from "./fetchWithRetry-DFSvpYDT.js";
5
5
  import { n as resolveDynamicArgument, t as getRequestUser } from "./dynamic-argument-BzPK3qPN.js";
6
- import { C as setNestedValue, S as selectFields, _ as parseSqlIdentifier, a as ensureToolProperties, b as removeUndefinedValues, c as isCoreMessage, d as makeCoreTool, f as makeCoreToolV5, g as parseFieldKey, h as omitKeys, i as delay, l as isUiMessage, m as maskStreamTags, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge, s as getNestedValue, t as checkEvalStorageFields, u as isZodType, v as readPositiveIntEnv, x as resolveSerializedZodOutput, y as rebindProcessorTools } from "./utils-CQkzZUcK.js";
6
+ import { C as setNestedValue, S as selectFields, _ as parseSqlIdentifier, a as ensureToolProperties, b as removeUndefinedValues, c as isCoreMessage, d as makeCoreTool, f as makeCoreToolV5, g as parseFieldKey, h as omitKeys, i as delay, l as isUiMessage, m as maskStreamTags, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge, s as getNestedValue, t as checkEvalStorageFields, u as isZodType, v as readPositiveIntEnv, x as resolveSerializedZodOutput, y as rebindProcessorTools } from "./utils-BU8lpEZ4.js";
7
7
  export { boundedStringify, checkEvalStorageFields, createMastraProxy, deepEqual, deepMerge, delay, ensureSerializable, ensureToolProperties, fetchWithRetry, generateEmptyFromSchema, getNestedValue, getRequestUser, getZodDef, getZodTypeName, isBoundedSerializable, isCoreMessage, isUiMessage, isZodArray, isZodObject, isZodType, makeCoreTool, makeCoreToolV5, makeProcessorCoreTool, maskStreamTags, omitKeys, parseFieldKey, parseSqlIdentifier, readPositiveIntEnv, rebindProcessorTools, removeUndefinedValues, resolveDynamicArgument, resolveSerializedZodOutput, safeStringify, selectFields, setNestedValue };
@@ -1,5 +1,5 @@
1
1
  import { standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
2
- import { Ct as collectTemplateStepIds, Dt as validateTemplate } from "./stream-D607FmAx.js";
2
+ import { Ct as collectTemplateStepIds, Dt as validateTemplate } from "./stream-B9dswdIM.js";
3
3
  import { z } from "zod";
4
4
  // src/workflows/dynamic/graph.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- const require_stream = require("./stream-BIbVD8V8.cjs");
1
+ const require_stream = require("./stream-CbG7k93m.cjs");
2
2
  let zod = require("zod");
3
3
  let _mastra_schema_compat_schema = require("@mastra/schema-compat/schema");
4
4
  // src/workflows/dynamic/graph.ts
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_base = require("../base-BIzR1D3_.cjs");
3
3
  const require_error = require("../error-D90lJ6M7.cjs");
4
- const require_run_registry = require("../run-registry-BvMXuIb_.cjs");
4
+ const require_run_registry = require("../run-registry-BaVTwGKh.cjs");
5
5
  const require_message_list = require("../message-list-C0F2sDNC.cjs");
6
6
  const require_dist = require("../dist-P2rjrlmj.cjs");
7
7
  const require_dist$1 = require("../dist-CXeCeeW7.cjs");
@@ -1,6 +1,6 @@
1
1
  import { t as MastraBase } from "../base-CKLWBhDo.js";
2
2
  import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "../error-oh2DLsP2.js";
3
- import { Oa as createVectorErrorId, hn as embed$3 } from "../run-registry-Cqp-VFdv.js";
3
+ import { Oa as createVectorErrorId, hn as embed$3 } from "../run-registry-bm6b6mwQ.js";
4
4
  import { P as embed$2 } from "../message-list-RgFlLrxG.js";
5
5
  import { r as embed$1 } from "../dist-TPVqg8oV.js";
6
6
  import { n as embed } from "../dist-D3cKCUe-.js";