@mastra/core 1.86.0-alpha.9 → 1.87.0-alpha.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 (726) hide show
  1. package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/aisdk/speech.d.ts +1 -1
  2. package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/aisdk/transcription.d.ts +1 -1
  3. package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/composite-voice.d.ts +1 -1
  4. package/dist/agent/agent-legacy.d.ts +1 -1
  5. package/dist/agent/agent.d.ts +3 -3
  6. package/dist/agent/agent.types.d.ts +1 -1
  7. package/dist/agent/durable/constants.d.ts +2 -0
  8. package/dist/agent/durable/durable-agent.d.ts +3 -3
  9. package/dist/agent/durable/evented-execution.d.ts +7 -0
  10. package/dist/agent/durable/execution-engine.d.ts +1 -0
  11. package/dist/agent/durable/execution-fence.d.ts +2 -0
  12. package/dist/agent/durable/index.cjs +3 -1
  13. package/dist/agent/durable/index.d.ts +1 -1
  14. package/dist/agent/durable/index.js +2 -2
  15. package/dist/agent/durable/run-registry.d.ts +2 -0
  16. package/dist/agent/durable/segment-spans.d.ts +54 -1
  17. package/dist/agent/durable/stream-adapter.d.ts +1 -1
  18. package/dist/agent/durable/types.d.ts +12 -2
  19. package/dist/agent/durable/workflows/durable-loop-builder.d.ts +57 -2
  20. package/dist/agent/durable/workflows/finalize-run.d.ts +2 -0
  21. package/dist/agent/durable/workflows/shared/index.d.ts +1 -1
  22. package/dist/agent/durable/workflows/shared/reported-cost.d.ts +7 -0
  23. package/dist/agent/durable/workflows/shared/schemas.d.ts +16 -1
  24. package/dist/agent/durable/workflows/shared/tool-call-concurrency.d.ts +6 -0
  25. package/dist/agent/durable/workflows/steps/llm-execution.d.ts +5 -0
  26. package/dist/agent/durable/workflows/steps/llm-mapping.d.ts +6 -0
  27. package/dist/agent/durable/workflows/steps/tool-call.d.ts +20 -0
  28. package/dist/agent/index.cjs +2 -2
  29. package/dist/agent/index.js +2 -2
  30. package/dist/agent/message-list/adapters/AIV4Adapter.d.ts +1 -1
  31. package/dist/agent/message-list/adapters/types.d.ts +1 -1
  32. package/dist/agent/message-list/cache/CacheKeyGenerator.d.ts +1 -1
  33. package/dist/agent/message-list/conversion/output-converter.d.ts +1 -1
  34. package/dist/agent/message-list/conversion/to-prompt.d.ts +1 -1
  35. package/dist/agent/message-list/conversion/utils.d.ts +1 -1
  36. package/dist/agent/message-list/detection/TypeDetector.d.ts +1 -1
  37. package/dist/agent/message-list/message-list.d.ts +2 -2
  38. package/dist/agent/message-list/prompt/attachments-to-parts.d.ts +1 -1
  39. package/dist/agent/message-list/prompt/convert-file.d.ts +1 -1
  40. package/dist/agent/message-list/prompt/data-content.d.ts +1 -1
  41. package/dist/agent/message-list/state/MessageStateManager.d.ts +1 -1
  42. package/dist/agent/message-list/state/types.d.ts +2 -2
  43. package/dist/agent/message-list/types.d.ts +9 -9
  44. package/dist/agent/message-list/utils/convert-messages.d.ts +3 -3
  45. package/dist/agent/message-list/utils/provider-compat.d.ts +1 -1
  46. package/dist/agent/request-context-snapshot.d.ts +3 -2
  47. package/dist/agent/signals.d.ts +1 -1
  48. package/dist/agent/streams/run-records.d.ts +9 -1
  49. package/dist/agent/types.d.ts +3 -3
  50. package/dist/agent/workflows/prepare-stream/run-scope-keys.d.ts +1 -1
  51. package/dist/agent-builder/ee/index.cjs +1 -1
  52. package/dist/agent-builder/ee/index.js +1 -1
  53. package/dist/agent-controller/index.cjs +1 -1
  54. package/dist/agent-controller/index.js +1 -1
  55. package/dist/agent-controller/session-run-engine.d.ts +5 -2
  56. package/dist/agent-controller/session.d.ts +2 -0
  57. package/dist/agent-controller/types.d.ts +23 -0
  58. package/dist/{agent-controller-SSlKzE6A.js → agent-controller-B8LoFdtu.js} +43 -13
  59. package/dist/{agent-controller-CrQ9OF80.cjs → agent-controller-DSnFynpa.cjs} +43 -13
  60. package/dist/auth/defaults/index.d.ts +2 -2
  61. package/dist/auth/defaults/session/cookie.d.ts +2 -2
  62. package/dist/auth/defaults/session/index.d.ts +2 -2
  63. package/dist/auth/defaults/session/memory.d.ts +2 -2
  64. package/dist/auth/ee/capabilities.d.ts +1 -1
  65. package/dist/auth/ee/defaults/index.d.ts +1 -1
  66. package/dist/auth/ee/defaults/rbac/index.d.ts +1 -1
  67. package/dist/auth/ee/defaults/rbac/static.d.ts +1 -1
  68. package/dist/auth/ee/defaults/roles.d.ts +1 -1
  69. package/dist/auth/ee/fga-check.d.ts +1 -1
  70. package/dist/auth/ee/index.d.ts +1 -1
  71. package/dist/auth/ee/interfaces/acl.d.ts +1 -1
  72. package/dist/auth/ee/interfaces/fga.d.ts +1 -1
  73. package/dist/auth/ee/interfaces/index.d.ts +1 -1
  74. package/dist/auth/ee/interfaces/permissions.generated.d.ts +1 -1
  75. package/dist/auth/ee/interfaces/rbac.d.ts +1 -1
  76. package/dist/auth/ee/interfaces/user.d.ts +1 -1
  77. package/dist/auth/ee/license.d.ts +1 -1
  78. package/dist/auth/index.d.ts +2 -2
  79. package/dist/auth/interfaces/credentials.d.ts +1 -1
  80. package/dist/auth/interfaces/index.d.ts +2 -2
  81. package/dist/auth/interfaces/session.d.ts +1 -1
  82. package/dist/auth/interfaces/sso.d.ts +1 -1
  83. package/dist/auth/interfaces/user.d.ts +1 -1
  84. package/dist/background-tasks/index.cjs +1 -1
  85. package/dist/background-tasks/index.js +1 -1
  86. package/dist/background-tasks/manager.d.ts +4 -1
  87. package/dist/{background-tasks-BDrYBis-.cjs → background-tasks-Ci5h0dhj.cjs} +139 -51
  88. package/dist/{background-tasks-BnJfNLFo.js → background-tasks-IW7M4iD2.js} +139 -51
  89. package/dist/browser/index.cjs +1 -1
  90. package/dist/browser/index.js +1 -1
  91. package/dist/{builder-Cw8u3pPl.cjs → builder-14Uptu8y.cjs} +2 -2
  92. package/dist/{builder-Cl-0BWkh.js → builder-DI2c2xjy.js} +2 -2
  93. package/dist/bundler/index.d.ts +2 -2
  94. package/dist/cache/base.d.ts +40 -10
  95. package/dist/cache/index.cjs +1 -1
  96. package/dist/cache/index.js +1 -1
  97. package/dist/capabilities/302ai.json +196 -196
  98. package/dist/capabilities/abliteratedllm.json +36 -36
  99. package/dist/capabilities/abliteration-ai.json +11 -11
  100. package/dist/capabilities/above.json +22 -22
  101. package/dist/capabilities/adaption.json +13 -13
  102. package/dist/capabilities/adzuki.json +28 -28
  103. package/dist/capabilities/agentrouter.json +9 -9
  104. package/dist/capabilities/agnes.json +4 -4
  105. package/dist/capabilities/ai-router.json +5 -5
  106. package/dist/capabilities/aiand.json +16 -16
  107. package/dist/capabilities/aigrow.json +14 -14
  108. package/dist/capabilities/aimlapi.json +146 -150
  109. package/dist/capabilities/aipg.json +2 -2
  110. package/dist/capabilities/aixy.json +9 -9
  111. package/dist/capabilities/aki-io.json +10 -10
  112. package/dist/capabilities/alibaba-cn.json +97 -97
  113. package/dist/capabilities/alibaba-coding-plan-cn.json +5 -5
  114. package/dist/capabilities/alibaba-coding-plan.json +5 -5
  115. package/dist/capabilities/alibaba-token-plan-cn.json +51 -51
  116. package/dist/capabilities/alibaba-token-plan.json +52 -52
  117. package/dist/capabilities/alibaba.json +69 -69
  118. package/dist/capabilities/ambient.json +15 -15
  119. package/dist/capabilities/amd.json +8 -8
  120. package/dist/capabilities/anthropic.json +49 -49
  121. package/dist/capabilities/anyapi.json +19 -19
  122. package/dist/capabilities/arcee.json +9 -9
  123. package/dist/capabilities/augure.json +4 -4
  124. package/dist/capabilities/auriko.json +21 -21
  125. package/dist/capabilities/bailing.json +4 -4
  126. package/dist/capabilities/baseten.json +28 -28
  127. package/dist/capabilities/bee.json +5 -5
  128. package/dist/capabilities/berget.json +4 -4
  129. package/dist/capabilities/bothub.json +14 -14
  130. package/dist/capabilities/boundless.json +39 -39
  131. package/dist/capabilities/bumo.json +42 -42
  132. package/dist/capabilities/byteplus.json +24 -24
  133. package/dist/capabilities/cheapaimodel.json +10 -10
  134. package/dist/capabilities/cheapest-token.json +29 -29
  135. package/dist/capabilities/chutes.json +10 -13
  136. package/dist/capabilities/cline-pass.json +37 -37
  137. package/dist/capabilities/cloudcode.json +10 -10
  138. package/dist/capabilities/cloudflare-workers-ai.json +12 -73
  139. package/dist/capabilities/commandcode.json +131 -131
  140. package/dist/capabilities/concentrate.json +272 -263
  141. package/dist/capabilities/cortecs.json +113 -113
  142. package/dist/capabilities/crossmodel.json +169 -169
  143. package/dist/capabilities/crusoe.json +10 -10
  144. package/dist/capabilities/daoxe.json +9 -9
  145. package/dist/capabilities/databricks.json +128 -128
  146. package/dist/capabilities/deepinfra.json +130 -67
  147. package/dist/capabilities/deepseek.json +4 -4
  148. package/dist/capabilities/digitalocean.json +112 -112
  149. package/dist/capabilities/dothoosh.json +29 -29
  150. package/dist/capabilities/doubleword.json +29 -29
  151. package/dist/capabilities/edenai.json +446 -453
  152. package/dist/capabilities/empiriolabs.json +164 -166
  153. package/dist/capabilities/engy.json +22 -22
  154. package/dist/capabilities/entrim.json +4 -4
  155. package/dist/capabilities/evroc.json +14 -14
  156. package/dist/capabilities/ezkielyna.json +10 -10
  157. package/dist/capabilities/fastrouter.json +79 -79
  158. package/dist/capabilities/fireworks-ai.json +92 -71
  159. package/dist/capabilities/freemodel.json +21 -21
  160. package/dist/capabilities/friendli.json +10 -10
  161. package/dist/capabilities/frogbot.json +87 -87
  162. package/dist/capabilities/gisoo.json +19 -19
  163. package/dist/capabilities/gmicloud.json +21 -21
  164. package/dist/capabilities/google.json +52 -52
  165. package/dist/capabilities/graphn.json +11 -11
  166. package/dist/capabilities/greenpt.json +35 -35
  167. package/dist/capabilities/groq.json +3 -3
  168. package/dist/capabilities/helicone.json +78 -78
  169. package/dist/capabilities/hostinger-router.json +13 -13
  170. package/dist/capabilities/hpc-ai.json +10 -10
  171. package/dist/capabilities/huawei-maas.json +17 -17
  172. package/dist/capabilities/hubris.json +25 -25
  173. package/dist/capabilities/huggingface.json +94 -84
  174. package/dist/capabilities/hyper.json +29 -29
  175. package/dist/capabilities/impossibl.json +148 -148
  176. package/dist/capabilities/inception.json +3 -3
  177. package/dist/capabilities/inceptron.json +6 -6
  178. package/dist/capabilities/inco.json +4 -4
  179. package/dist/capabilities/infer.json +10 -10
  180. package/dist/capabilities/inferall.json +5 -5
  181. package/dist/capabilities/inference-coop.json +15 -15
  182. package/dist/capabilities/inferenceapis.json +17 -17
  183. package/dist/capabilities/inferris.json +4 -4
  184. package/dist/capabilities/infersia.json +12 -12
  185. package/dist/capabilities/infomaniak.json +2 -2
  186. package/dist/capabilities/io-net.json +2 -2
  187. package/dist/capabilities/isoquant.json +4 -4
  188. package/dist/capabilities/iteracompute.json +58 -58
  189. package/dist/capabilities/jad-ai.json +2 -2
  190. package/dist/capabilities/jalapeno.json +11 -11
  191. package/dist/capabilities/jiekou.json +62 -62
  192. package/dist/capabilities/jzstoken.json +47 -47
  193. package/dist/capabilities/keln.json +21 -21
  194. package/dist/capabilities/kenari.json +123 -123
  195. package/dist/capabilities/kilo.json +631 -621
  196. package/dist/capabilities/kimi-code-plan-cn.json +6 -6
  197. package/dist/capabilities/kimi-code-plan-global.json +6 -6
  198. package/dist/capabilities/kitani.json +4 -4
  199. package/dist/capabilities/klavo.json +21 -21
  200. package/dist/capabilities/korouter.json +33 -33
  201. package/dist/capabilities/kunavo.json +5 -5
  202. package/dist/capabilities/liquid.json +12 -12
  203. package/dist/capabilities/lithosai.json +2 -2
  204. package/dist/capabilities/llmgateway-providers.json +903 -894
  205. package/dist/capabilities/llmgateway.json +344 -336
  206. package/dist/capabilities/llmtr.json +23 -23
  207. package/dist/capabilities/logits.json +2 -2
  208. package/dist/capabilities/longcat.json +2 -2
  209. package/dist/capabilities/lowrouter.json +46 -46
  210. package/dist/capabilities/lyceum.json +14 -14
  211. package/dist/capabilities/melious.json +15 -15
  212. package/dist/capabilities/merge-gateway.json +292 -292
  213. package/dist/capabilities/meta.json +11 -11
  214. package/dist/capabilities/minimax-cn-coding-plan.json +2 -2
  215. package/dist/capabilities/minimax-cn.json +5 -5
  216. package/dist/capabilities/minimax-coding-plan.json +2 -2
  217. package/dist/capabilities/minimax.json +5 -5
  218. package/dist/capabilities/mistral.json +21 -21
  219. package/dist/capabilities/mixlayer.json +4 -4
  220. package/dist/capabilities/modal.json +14 -14
  221. package/dist/capabilities/model-oracle-ai.json +23 -23
  222. package/dist/capabilities/modelis.json +22 -22
  223. package/dist/capabilities/modelscope.json +2 -2
  224. package/dist/capabilities/modular.json +7 -7
  225. package/dist/capabilities/moneo.json +11 -11
  226. package/dist/capabilities/moonshotai-cn.json +6 -6
  227. package/dist/capabilities/moonshotai.json +6 -6
  228. package/dist/capabilities/morph.json +13 -13
  229. package/dist/capabilities/munito.json +2 -2
  230. package/dist/capabilities/nan.json +28 -28
  231. package/dist/capabilities/nano-gpt.json +599 -564
  232. package/dist/capabilities/nearai.json +96 -96
  233. package/dist/capabilities/nebius.json +32 -32
  234. package/dist/capabilities/neon.json +120 -120
  235. package/dist/capabilities/neuralwatt.json +37 -37
  236. package/dist/capabilities/nokeep.json +4 -4
  237. package/dist/capabilities/novita-ai.json +154 -154
  238. package/dist/capabilities/nvidia.json +28 -60
  239. package/dist/capabilities/oathbreaker.json +2 -2
  240. package/dist/capabilities/obscurify.json +20 -20
  241. package/dist/capabilities/oci.json +17 -8
  242. package/dist/capabilities/ofox.json +317 -317
  243. package/dist/capabilities/ollama-cloud.json +56 -56
  244. package/dist/capabilities/openai.json +78 -46
  245. package/dist/capabilities/opencode-go.json +86 -86
  246. package/dist/capabilities/openreason.json +5 -5
  247. package/dist/capabilities/openrouter.json +535 -519
  248. package/dist/capabilities/opper.json +27 -27
  249. package/dist/capabilities/orcarouter.json +217 -217
  250. package/dist/capabilities/outerlabs.json +31 -31
  251. package/dist/capabilities/ovhcloud.json +58 -4
  252. package/dist/capabilities/pareto.json +5 -5
  253. package/dist/capabilities/pendra.json +4 -4
  254. package/dist/capabilities/perplexity-agent.json +62 -62
  255. package/dist/capabilities/phala.json +36 -36
  256. package/dist/capabilities/pioneer.json +27 -27
  257. package/dist/capabilities/poe.json +110 -110
  258. package/dist/capabilities/poolside.json +3 -3
  259. package/dist/capabilities/powerspring.json +11 -11
  260. package/dist/capabilities/primalabs.json +10 -10
  261. package/dist/capabilities/prime.json +127 -111
  262. package/dist/capabilities/privatemode-ai.json +11 -11
  263. package/dist/capabilities/proxystacks.json +7 -7
  264. package/dist/capabilities/qiniu-ai.json +15 -15
  265. package/dist/capabilities/refuseless.json +9 -9
  266. package/dist/capabilities/regolo-ai.json +6 -6
  267. package/dist/capabilities/requesty.json +170 -170
  268. package/dist/capabilities/ruapi.json +20 -20
  269. package/dist/capabilities/runcrate.json +10 -10
  270. package/dist/capabilities/runinfra.json +16 -16
  271. package/dist/capabilities/sakana.json +6 -6
  272. package/dist/capabilities/sambanova.json +6 -6
  273. package/dist/capabilities/sandbase.json +11 -11
  274. package/dist/capabilities/sarvam.json +10 -10
  275. package/dist/capabilities/scaleway.json +14 -14
  276. package/dist/capabilities/scnet-token-plan.json +14 -14
  277. package/dist/capabilities/scx-ai.json +26 -26
  278. package/dist/capabilities/sensenova.json +12 -12
  279. package/dist/capabilities/siliconflow-cn.json +50 -50
  280. package/dist/capabilities/siliconflow.json +55 -55
  281. package/dist/capabilities/snowflake-cortex.json +19 -19
  282. package/dist/capabilities/sokkan.json +7 -7
  283. package/dist/capabilities/sparrowcodes.json +17 -17
  284. package/dist/capabilities/standardcompute.json +98 -98
  285. package/dist/capabilities/steadyrouter.json +38 -38
  286. package/dist/capabilities/stepfun-ai-step-plan.json +6 -6
  287. package/dist/capabilities/stepfun-ai.json +5 -5
  288. package/dist/capabilities/stepfun-step-plan.json +5 -5
  289. package/dist/capabilities/stepfun.json +5 -5
  290. package/dist/capabilities/stepping-stone.json +17 -17
  291. package/dist/capabilities/subconscious.json +2 -2
  292. package/dist/capabilities/superbot-gg.json +4 -4
  293. package/dist/capabilities/synthetic.json +12 -12
  294. package/dist/capabilities/synthorai.json +22 -22
  295. package/dist/capabilities/teamorouter.json +24 -24
  296. package/dist/capabilities/teapot-router.json +12 -12
  297. package/dist/capabilities/tencent-token-plan.json +59 -35
  298. package/dist/capabilities/tencent-tokenhub.json +46 -46
  299. package/dist/capabilities/tensorx.json +47 -47
  300. package/dist/capabilities/tenstorrent.json +8 -8
  301. package/dist/capabilities/the-grid-ai.json +29 -29
  302. package/dist/capabilities/thinkingmachines.json +61 -61
  303. package/dist/capabilities/tinfoil.json +12 -12
  304. package/dist/capabilities/togetherai.json +62 -52
  305. package/dist/capabilities/tokengo.json +14 -14
  306. package/dist/capabilities/tokenify.json +9 -9
  307. package/dist/capabilities/trustedrouter.json +7 -7
  308. package/dist/capabilities/trustedtokens.json +15 -15
  309. package/dist/capabilities/umans-ai-coding-plan.json +16 -16
  310. package/dist/capabilities/umans-ai.json +13 -13
  311. package/dist/capabilities/uncensuredai.json +4 -4
  312. package/dist/capabilities/unrestricted.json +8 -8
  313. package/dist/capabilities/uplinkswitch.json +21 -21
  314. package/dist/capabilities/upstage.json +4 -4
  315. package/dist/capabilities/vancine.json +24 -24
  316. package/dist/capabilities/vercel.json +582 -582
  317. package/dist/capabilities/vivgrid.json +86 -86
  318. package/dist/capabilities/volcengine-coding-plan.json +23 -23
  319. package/dist/capabilities/volcengine.json +24 -24
  320. package/dist/capabilities/vultr.json +26 -26
  321. package/dist/capabilities/wafer.ai.json +16 -16
  322. package/dist/capabilities/wallaby.json +4 -4
  323. package/dist/capabilities/wally.json +11 -11
  324. package/dist/capabilities/wandb.json +21 -21
  325. package/dist/capabilities/watt.json +24 -24
  326. package/dist/capabilities/xai.json +6 -6
  327. package/dist/capabilities/xiaomi.json +2 -2
  328. package/dist/capabilities/xpersona.json +13 -13
  329. package/dist/capabilities/xxapi.json +28 -28
  330. package/dist/capabilities/zai-coding-plan.json +19 -19
  331. package/dist/capabilities/zai.json +26 -24
  332. package/dist/capabilities/zenifra.json +27 -27
  333. package/dist/capabilities/zenmux.json +172 -172
  334. package/dist/capabilities/zerogpu.json +8 -8
  335. package/dist/capabilities/zhipuai-coding-plan.json +7 -7
  336. package/dist/capabilities/zhipuai.json +23 -23
  337. package/dist/capabilities/zro.json +7 -7
  338. package/dist/channels/agent-channels.d.ts +2 -1
  339. package/dist/channels/formatting.d.ts +8 -0
  340. package/dist/channels/index.cjs +4 -2
  341. package/dist/channels/index.d.ts +1 -1
  342. package/dist/channels/index.js +3 -3
  343. package/dist/channels/types.d.ts +5 -3
  344. package/dist/{channels-Cz1y3W6u.js → channels-Wh32drgu.js} +1 -1
  345. package/dist/{channels-DQg4v_gm.cjs → channels-tVV_de9Q.cjs} +1 -1
  346. package/dist/coding-agent/index.cjs +1 -1
  347. package/dist/coding-agent/index.js +1 -1
  348. package/dist/datasets/index.cjs +2 -2
  349. package/dist/datasets/index.js +2 -2
  350. package/dist/deployer/index.d.ts +2 -2
  351. package/dist/docs/SKILL.md +1 -1
  352. package/dist/docs/assets/SOURCE_MAP.json +798 -798
  353. package/dist/docs/references/docs-agents-resumable-streams.md +15 -6
  354. package/dist/docs/references/docs-deployment-workers.md +3 -1
  355. package/dist/docs/references/docs-harness-background-tasks.md +4 -4
  356. package/dist/docs/references/docs-harness-durable-agents.md +39 -48
  357. package/dist/docs/references/docs-knowledge-importers.md +1 -1
  358. package/dist/docs/references/docs-mastra-platform-observability-overview.md +1 -1
  359. package/dist/docs/references/docs-sandbox-overview.md +1 -0
  360. package/dist/docs/references/docs-server-pubsub.md +1 -1
  361. package/dist/docs/references/docs-workflows-overview.md +67 -3
  362. package/dist/docs/references/integrations-agentic-ui-assistant-ui.md +2 -0
  363. package/dist/docs/references/integrations-frameworks-angular.md +39 -0
  364. package/dist/docs/references/integrations-frameworks-astro.md +5 -2
  365. package/dist/docs/references/integrations-frameworks-electron.md +40 -0
  366. package/dist/docs/references/integrations-frameworks-next-js.md +5 -2
  367. package/dist/docs/references/integrations-frameworks-nuxt.md +5 -2
  368. package/dist/docs/references/integrations-frameworks-sveltekit.md +5 -2
  369. package/dist/docs/references/integrations-frameworks-vite-react.md +40 -0
  370. package/dist/docs/references/integrations.md +3 -0
  371. package/dist/docs/references/reference-agent-controller-agent-controller-class.md +6 -0
  372. package/dist/docs/references/reference-agents-channels.md +1 -1
  373. package/dist/docs/references/reference-agents-durable-agent.md +3 -3
  374. package/dist/docs/references/reference-agents-generate.md +2 -0
  375. package/dist/docs/references/reference-configuration.md +1 -1
  376. package/dist/docs/references/reference-core-mastra-class.md +2 -0
  377. package/dist/docs/references/reference-knowledge-knowledge-class.md +1 -1
  378. package/dist/docs/references/reference-knowledge-knowledge-tools.md +11 -5
  379. package/dist/docs/references/reference-pubsub-caching-pubsub.md +2 -2
  380. package/dist/docs/references/reference-pubsub-redis-streams.md +2 -2
  381. package/dist/docs/references/reference-pubsub-valkey-streams.md +2 -2
  382. package/dist/docs/references/reference-workers-overview.md +2 -0
  383. package/dist/docs/references/reference-workflows-workflow-methods-create-run.md +2 -0
  384. package/dist/docs/references/reference-workflows-workflow.md +2 -0
  385. package/dist/docs/references/reference.md +1 -0
  386. package/dist/error/index.cjs +2 -1
  387. package/dist/error/index.d.ts +1 -1
  388. package/dist/error/index.js +2 -2
  389. package/dist/error/provider-error.d.ts +2 -1
  390. package/dist/{error-BLwEXqOK.js → error-BC9Au-22.js} +13 -1
  391. package/dist/{error-BdEvO8za.cjs → error-L1V4uUbd.cjs} +18 -0
  392. package/dist/evals/index.cjs +1 -1
  393. package/dist/evals/index.js +1 -1
  394. package/dist/evals/run/index.d.ts +1 -1
  395. package/dist/evals/scoreTraces/index.cjs +1 -1
  396. package/dist/evals/scoreTraces/index.js +1 -1
  397. package/dist/evals/types.d.ts +1 -1
  398. package/dist/events/caching-pubsub.d.ts +28 -0
  399. package/dist/events/index.cjs +4 -1
  400. package/dist/events/index.js +2 -2
  401. package/dist/events/topics.d.ts +55 -9
  402. package/dist/harness/index.cjs +1 -1
  403. package/dist/harness/index.js +1 -1
  404. package/dist/index.cjs +1 -1
  405. package/dist/index.js +1 -1
  406. package/dist/{inmemory-BDD0w8gx.js → inmemory-BK3zLwvM.js} +42 -12
  407. package/dist/{inmemory-fgR8sq-U.cjs → inmemory-Dc86VWGB.cjs} +42 -12
  408. package/dist/knowledge/changes.d.ts +17 -5
  409. package/dist/knowledge/importers/runner.d.ts +6 -0
  410. package/dist/knowledge/index.cjs +78 -16
  411. package/dist/knowledge/index.d.ts +2 -2
  412. package/dist/knowledge/index.js +78 -16
  413. package/dist/knowledge/search-snippet.d.ts +30 -0
  414. package/dist/llm/index.cjs +3 -3
  415. package/dist/llm/index.d.ts +2 -2
  416. package/dist/llm/index.js +3 -3
  417. package/dist/llm/model/aisdk/v4/model.d.ts +9 -9
  418. package/dist/llm/model/base.types.d.ts +2 -2
  419. package/dist/llm/model/embedding-router.d.ts +1 -1
  420. package/dist/llm/model/model-settings.d.ts +1 -1
  421. package/dist/llm/model/model.d.ts +1 -1
  422. package/dist/llm/model/model.loop.d.ts +1 -1
  423. package/dist/llm/model/model.loop.types.d.ts +1 -1
  424. package/dist/llm/model/provider-types.generated.d.ts +8011 -7996
  425. package/dist/llm/model/shared.types.d.ts +1 -1
  426. package/dist/{llm-B5A5cwJr.js → llm-B1zaFLYZ.js} +3 -3
  427. package/dist/{llm-8Av3mSjD.cjs → llm-BAiOsNAP.cjs} +3 -3
  428. package/dist/loop/index.cjs +2 -2
  429. package/dist/loop/index.js +2 -2
  430. package/dist/loop/loop-builder.d.ts +1 -1
  431. package/dist/loop/loop.d.ts +1 -1
  432. package/dist/loop/run-scope-keys.d.ts +1 -1
  433. package/dist/loop/shared/transcript-step.d.ts +1 -1
  434. package/dist/loop/types.d.ts +2 -2
  435. package/dist/loop/workflows/agentic-execution/background-task-check-step.d.ts +1 -1
  436. package/dist/loop/workflows/agentic-execution/build-messages-from-chunks.d.ts +1 -1
  437. package/dist/loop/workflows/agentic-execution/goal-step.d.ts +1 -1
  438. package/dist/loop/workflows/agentic-execution/index.d.ts +1 -1
  439. package/dist/loop/workflows/agentic-execution/is-task-complete-step.d.ts +1 -1
  440. package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +1 -1
  441. package/dist/loop/workflows/agentic-execution/llm-mapping-step.d.ts +1 -1
  442. package/dist/loop/workflows/agentic-execution/tool-call-concurrency.d.ts +1 -1
  443. package/dist/loop/workflows/agentic-execution/tool-call-step.d.ts +1 -1
  444. package/dist/loop/workflows/agentic-loop/index.d.ts +1 -1
  445. package/dist/loop/workflows/schema.d.ts +2 -2
  446. package/dist/loop/workflows/stream.d.ts +1 -1
  447. package/dist/{manager-sv35JY-z.cjs → manager-BVX9nVrM.cjs} +2 -2
  448. package/dist/{manager-DfWQCJUK.js → manager-ChK9GdGz.js} +2 -2
  449. package/dist/mastra/index.cjs +1 -1
  450. package/dist/mastra/index.js +1 -1
  451. package/dist/{mastra-CigBrT7X.js → mastra-CUGfgEpZ.js} +28 -18
  452. package/dist/{mastra-D4hvfuxX.cjs → mastra-HSmofHEJ.cjs} +28 -18
  453. package/dist/memory/index.cjs +2 -2
  454. package/dist/memory/index.js +2 -2
  455. package/dist/memory/memory.d.ts +1 -1
  456. package/dist/memory/types.d.ts +2 -2
  457. package/dist/{model-CYtXw861.js → model-C47BJRtR.js} +1 -1
  458. package/dist/{model-BK93CMtl.cjs → model-WahorgzJ.cjs} +1 -1
  459. package/dist/{netlify-CuI1ZrwR.js → netlify-CfDXkuLf.js} +2 -2
  460. package/dist/{netlify-BAnn3ouY.cjs → netlify-D99AnEhW.cjs} +2 -2
  461. package/dist/notifications/index.cjs +1 -1
  462. package/dist/notifications/index.js +1 -1
  463. package/dist/observability/index.cjs +1 -0
  464. package/dist/observability/index.d.ts +1 -1
  465. package/dist/observability/index.js +2 -2
  466. package/dist/{output-helpers-CedRCE17.js → output-helpers-CVzhy1Y0.js} +126 -56
  467. package/dist/{output-helpers-1Zu4Vt9C.cjs → output-helpers-DgsH4aTb.cjs} +143 -55
  468. package/dist/processor-provider/index.cjs +1 -1
  469. package/dist/processor-provider/index.js +1 -1
  470. package/dist/processors/index.cjs +2 -2
  471. package/dist/processors/index.d.ts +2 -2
  472. package/dist/processors/index.js +2 -2
  473. package/dist/processors/runner.d.ts +3 -1
  474. package/dist/processors/step-schema.d.ts +1 -1
  475. package/dist/{provider-registry-BwuI_IpT.cjs → provider-registry-CO1NVbO5.cjs} +22070 -22050
  476. package/dist/{provider-registry-CmQLzLF_.js → provider-registry-CR385GJ4.js} +22070 -22050
  477. package/dist/provider-registry.json +22239 -22226
  478. package/dist/{registry-generator-C17V4WfG.js → registry-generator-B3erRqYS.js} +1 -1
  479. package/dist/{registry-generator-C_0ae7Ce.cjs → registry-generator-Cvp34qcB.cjs} +1 -1
  480. package/dist/{rehydrate-PnaVawGX.js → rehydrate-CJBLrZxs.js} +2 -2
  481. package/dist/{rehydrate-CDQ4dOYj.cjs → rehydrate-Da4hNuaK.cjs} +2 -2
  482. package/dist/relevance/index.cjs +2 -2
  483. package/dist/relevance/index.js +2 -2
  484. package/dist/{run-registry-BwEcwYlU.js → run-registry-DdeEBsVW.js} +1639 -568
  485. package/dist/{run-registry-BmckDVBk.cjs → run-registry-TOOfO3hT.cjs} +1668 -567
  486. package/dist/server/auth.d.ts +3 -3
  487. package/dist/server/composite-auth.d.ts +1 -1
  488. package/dist/server/simple-auth.d.ts +1 -1
  489. package/dist/server/types.d.ts +1 -1
  490. package/dist/storage/domains/inmemory-db.d.ts +1 -0
  491. package/dist/storage/domains/knowledge/base.d.ts +5 -0
  492. package/dist/storage/domains/knowledge/inmemory.d.ts +1 -0
  493. package/dist/storage/domains/knowledge/pages-inmemory.d.ts +10 -2
  494. package/dist/storage/domains/knowledge/pages.d.ts +30 -0
  495. package/dist/storage/index.cjs +2 -2
  496. package/dist/storage/index.js +2 -2
  497. package/dist/storage/run-fencing.d.ts +5 -0
  498. package/dist/stream/RunOutput.d.ts +1 -1
  499. package/dist/stream/aisdk/v4/input.d.ts +1 -1
  500. package/dist/stream/aisdk/v5/compat/content.d.ts +1 -1
  501. package/dist/stream/aisdk/v5/compat/prepare-tools.d.ts +1 -1
  502. package/dist/stream/aisdk/v5/compat/ui-message.d.ts +1 -1
  503. package/dist/stream/aisdk/v5/compat/validation.d.ts +1 -1
  504. package/dist/stream/aisdk/v5/execute.d.ts +1 -1
  505. package/dist/stream/aisdk/v5/input.d.ts +1 -1
  506. package/dist/stream/aisdk/v5/output-helpers.d.ts +7 -7
  507. package/dist/stream/aisdk/v5/transform.d.ts +1 -1
  508. package/dist/stream/base/output.d.ts +4 -4
  509. package/dist/stream/base/schema.d.ts +1 -1
  510. package/dist/stream/index.cjs +2 -2
  511. package/dist/stream/index.js +2 -2
  512. package/dist/stream/types.d.ts +2 -2
  513. package/dist/{stream-D1y9GzoD.js → stream-C5PagEDs.js} +3 -3
  514. package/dist/{stream-0kdqBOOn.cjs → stream-DH7Qgz8l.cjs} +3 -3
  515. package/dist/test-utils/llm-mock.cjs +1 -1
  516. package/dist/test-utils/llm-mock.d.ts +3 -3
  517. package/dist/test-utils/llm-mock.js +1 -1
  518. package/dist/tool-loop-agent/index.cjs +1 -1
  519. package/dist/tool-loop-agent/index.js +1 -1
  520. package/dist/tool-loop-agent/utils.d.ts +1 -1
  521. package/dist/{tool-loop-agent-kWaZAT6Q.cjs → tool-loop-agent-CJTs4T8b.cjs} +3 -3
  522. package/dist/{tool-loop-agent-BdjWGVIb.js → tool-loop-agent-DVYJXlQJ.js} +3 -3
  523. package/dist/tools/builtin/web-search.d.ts +1 -1
  524. package/dist/tools/provider-tool-utils.d.ts +1 -1
  525. package/dist/tools/tool-builder/builder.d.ts +1 -1
  526. package/dist/tools/tool-title.d.ts +1 -1
  527. package/dist/tools/types.d.ts +1 -1
  528. package/dist/types/user.d.ts +1 -1
  529. package/dist/{utils-GHY3hmLx.js → utils-D8upuTwy.js} +1 -1
  530. package/dist/{utils-BKUCaZ12.cjs → utils-xJi_N6Tx.cjs} +1 -1
  531. package/dist/utils.cjs +1 -1
  532. package/dist/utils.d.ts +1 -1
  533. package/dist/utils.js +1 -1
  534. package/dist/{validate-De92squ7.cjs → validate-6eZ8Wssn.cjs} +1 -1
  535. package/dist/{validate-CB-q-R2F.js → validate-DTkW3Vlp.js} +1 -1
  536. package/dist/vector/embed.d.ts +4 -4
  537. package/dist/vector/index.cjs +1 -1
  538. package/dist/vector/index.js +1 -1
  539. package/dist/vector/vector.d.ts +4 -4
  540. package/dist/voice/aisdk/index.d.ts +1 -1
  541. package/dist/voice/aisdk/speech.d.ts +1 -1
  542. package/dist/voice/aisdk/transcription.d.ts +1 -1
  543. package/dist/voice/composite-voice.d.ts +1 -1
  544. package/dist/voice/default-voice.d.ts +1 -1
  545. package/dist/voice/index.d.ts +2 -2
  546. package/dist/voice/voice.d.ts +1 -1
  547. package/dist/worker/index.cjs +1 -1
  548. package/dist/worker/index.js +1 -1
  549. package/dist/{worker-CAKvQj9_.cjs → worker-24ORi-wV.cjs} +2 -2
  550. package/dist/{worker-BbWPQuPR.cjs → worker-BO3u_WjZ.cjs} +2 -2
  551. package/dist/{worker-C3u_xzY2.js → worker-DbcFkKJO.js} +2 -2
  552. package/dist/{worker-Kwm8EKcj.js → worker-Dqubrnf8.js} +2 -2
  553. package/dist/{workflow-CSjXeNcR.cjs → workflow-D5Fc5ieC.cjs} +4 -4
  554. package/dist/{workflow-CVmI1Sw-.js → workflow-wXOf72fO.js} +4 -4
  555. package/dist/workflows/builder/index.cjs +1 -1
  556. package/dist/workflows/builder/index.js +1 -1
  557. package/dist/workflows/evented/index.cjs +1 -1
  558. package/dist/workflows/evented/index.js +1 -1
  559. package/dist/workflows/index.cjs +4 -4
  560. package/dist/workflows/index.js +4 -4
  561. package/dist/workflows/run-ownership.d.ts +74 -8
  562. package/dist/workflows/types.d.ts +17 -1
  563. package/dist/workflows/workflow.d.ts +4 -0
  564. package/package.json +14 -14
  565. package/src/llm/model/provider-types.generated.d.ts +8011 -7996
  566. /package/dist/_types/{@internal_ai-sdk-v4@0.0.98 → @internal_ai-sdk-v4@0.0.99}/dist/index.d.ts +0 -0
  567. /package/dist/_types/{@internal_ai-sdk-v4@0.0.98 → @internal_ai-sdk-v4@0.0.99}/dist/test.d.ts +0 -0
  568. /package/dist/_types/{@internal_ai-sdk-v4@0.0.98 → @internal_ai-sdk-v4@0.0.99}/package.json +0 -0
  569. /package/dist/_types/{@internal_ai-sdk-v5@0.0.98 → @internal_ai-sdk-v5@0.0.99}/dist/index.d.ts +0 -0
  570. /package/dist/_types/{@internal_ai-sdk-v5@0.0.98 → @internal_ai-sdk-v5@0.0.99}/dist/test.d.ts +0 -0
  571. /package/dist/_types/{@internal_ai-sdk-v5@0.0.98 → @internal_ai-sdk-v5@0.0.99}/package.json +0 -0
  572. /package/dist/_types/{@internal_ai-v6@0.0.98 → @internal_ai-v6@0.0.99}/dist/index.d.ts +0 -0
  573. /package/dist/_types/{@internal_ai-v6@0.0.98 → @internal_ai-v6@0.0.99}/package.json +0 -0
  574. /package/dist/_types/{@internal_ai-v7@0.0.98 → @internal_ai-v7@0.0.99}/dist/index.d.ts +0 -0
  575. /package/dist/_types/{@internal_ai-v7@0.0.98 → @internal_ai-v7@0.0.99}/package.json +0 -0
  576. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/_types/@internal_core@0.1.4/dist/base/index.d.ts +0 -0
  577. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/_types/@internal_core@0.1.4/dist/index-Diz1p9N7.d.ts +0 -0
  578. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/capabilities.d.ts +0 -0
  579. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/defaults/index.d.ts +0 -0
  580. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/defaults/rbac/index.d.ts +0 -0
  581. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/defaults/rbac/static.d.ts +0 -0
  582. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/defaults/roles.d.ts +0 -0
  583. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/fga-check.d.ts +0 -0
  584. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/index.d.ts +0 -0
  585. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/acl.d.ts +0 -0
  586. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/fga.d.ts +0 -0
  587. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/index.d.ts +0 -0
  588. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/permissions.generated.d.ts +0 -0
  589. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/rbac.d.ts +0 -0
  590. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/interfaces/user.d.ts +0 -0
  591. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/ee/license.d.ts +0 -0
  592. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/index.d.ts +0 -0
  593. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/provider/index.d.ts +0 -0
  594. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/session/cookie.d.ts +0 -0
  595. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/session/index.d.ts +0 -0
  596. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/session/memory.d.ts +0 -0
  597. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/dist/types/index.d.ts +0 -0
  598. /package/dist/_types/{@internal_auth@0.0.39 → @internal_auth@0.0.40}/package.json +0 -0
  599. /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/dist/_types/@internal_core@0.1.4/dist/index-Diz1p9N7.d.ts +0 -0
  600. /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/dist/_types/@internal_core@0.1.4/dist/logger/index.d.ts +0 -0
  601. /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/dist/bundler.d.ts +0 -0
  602. /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/dist/deployer.d.ts +0 -0
  603. /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/dist/index.d.ts +0 -0
  604. /package/dist/_types/{@internal_deployer@0.0.4 → @internal_deployer@0.0.5}/package.json +0 -0
  605. /package/dist/_types/{@internal_external-types@0.0.101 → @internal_external-types@0.0.102}/dist/index.d.ts +0 -0
  606. /package/dist/_types/{@internal_external-types@0.0.101 → @internal_external-types@0.0.102}/package.json +0 -0
  607. /package/dist/_types/{@internal_voice@0.0.47/dist/_types/@internal_ai-sdk-v5@0.0.98 → @internal_voice@0.0.48/dist/_types/@internal_ai-sdk-v5@0.0.99}/dist/index.d.ts +0 -0
  608. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/@internal_core@0.1.4/dist/base/index.d.ts +0 -0
  609. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/@internal_core@0.1.4/dist/index-Diz1p9N7.d.ts +0 -0
  610. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/@internal_core@0.1.4/dist/request-context/index.d.ts +0 -0
  611. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/@internal_core@0.1.4/dist/types/index.d.ts +0 -0
  612. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/ZodError.d.ts +0 -0
  613. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/errors.d.ts +0 -0
  614. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/external.d.ts +0 -0
  615. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/enumUtil.d.ts +0 -0
  616. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/errorUtil.d.ts +0 -0
  617. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/parseUtil.d.ts +0 -0
  618. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/partialUtil.d.ts +0 -0
  619. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/typeAliases.d.ts +0 -0
  620. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/helpers/util.d.ts +0 -0
  621. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/index.d.ts +0 -0
  622. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/locales/en.d.ts +0 -0
  623. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/standard-schema.d.ts +0 -0
  624. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v3/types.d.ts +0 -0
  625. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/checks.d.ts +0 -0
  626. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/coerce.d.ts +0 -0
  627. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/compat.d.ts +0 -0
  628. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/deep-partial.d.ts +0 -0
  629. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/errors.d.ts +0 -0
  630. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/external.d.ts +0 -0
  631. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/from-json-schema.d.ts +0 -0
  632. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/in-out.d.ts +0 -0
  633. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/index.d.ts +0 -0
  634. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/iso.d.ts +0 -0
  635. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/parse.d.ts +0 -0
  636. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/classic/schemas.d.ts +0 -0
  637. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/api.d.ts +0 -0
  638. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/checks.d.ts +0 -0
  639. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/compile.d.ts +0 -0
  640. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/core.d.ts +0 -0
  641. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/doc.d.ts +0 -0
  642. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/errors.d.ts +0 -0
  643. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/index.d.ts +0 -0
  644. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/json-schema-generator.d.ts +0 -0
  645. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/json-schema-processors.d.ts +0 -0
  646. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/json-schema.d.ts +0 -0
  647. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/memoizer.d.ts +0 -0
  648. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/parse.d.ts +0 -0
  649. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/regexes.d.ts +0 -0
  650. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/registries.d.ts +0 -0
  651. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/schemas.d.ts +0 -0
  652. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/standard-schema.d.ts +0 -0
  653. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/to-json-schema.d.ts +0 -0
  654. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/util.d.ts +0 -0
  655. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/core/versions.d.ts +0 -0
  656. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/index.d.cts +0 -0
  657. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ar.d.ts +0 -0
  658. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/az.d.ts +0 -0
  659. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/be.d.ts +0 -0
  660. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/bg.d.ts +0 -0
  661. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/bn.d.ts +0 -0
  662. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ca.d.ts +0 -0
  663. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ckb.d.ts +0 -0
  664. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/cs.d.ts +0 -0
  665. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/da.d.ts +0 -0
  666. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/de.d.ts +0 -0
  667. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/el.d.ts +0 -0
  668. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/en.d.ts +0 -0
  669. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/eo.d.ts +0 -0
  670. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/es.d.ts +0 -0
  671. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/fa.d.ts +0 -0
  672. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/fi.d.ts +0 -0
  673. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/fr-CA.d.ts +0 -0
  674. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/fr.d.ts +0 -0
  675. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/gu.d.ts +0 -0
  676. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/he.d.ts +0 -0
  677. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/hi.d.ts +0 -0
  678. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/hr.d.ts +0 -0
  679. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/hu.d.ts +0 -0
  680. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/hy.d.ts +0 -0
  681. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/id.d.ts +0 -0
  682. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/index.d.ts +0 -0
  683. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/is.d.ts +0 -0
  684. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/it.d.ts +0 -0
  685. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ja.d.ts +0 -0
  686. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ka.d.ts +0 -0
  687. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/kh.d.ts +0 -0
  688. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/km.d.ts +0 -0
  689. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/kn.d.ts +0 -0
  690. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ko.d.ts +0 -0
  691. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/lt.d.ts +0 -0
  692. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/mk.d.ts +0 -0
  693. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ms.d.ts +0 -0
  694. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ne.d.ts +0 -0
  695. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/nl.d.ts +0 -0
  696. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/nn.d.ts +0 -0
  697. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/no.d.ts +0 -0
  698. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ota.d.ts +0 -0
  699. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/pl.d.ts +0 -0
  700. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ps.d.ts +0 -0
  701. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/pt-BR.d.ts +0 -0
  702. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/pt.d.ts +0 -0
  703. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ro.d.ts +0 -0
  704. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ru.d.ts +0 -0
  705. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/sk.d.ts +0 -0
  706. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/sl.d.ts +0 -0
  707. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/sv.d.ts +0 -0
  708. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ta.d.ts +0 -0
  709. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/tg.d.ts +0 -0
  710. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/th.d.ts +0 -0
  711. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/tk.d.ts +0 -0
  712. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/tr.d.ts +0 -0
  713. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ua.d.ts +0 -0
  714. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/uk.d.ts +0 -0
  715. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/ur.d.ts +0 -0
  716. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/uz.d.ts +0 -0
  717. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/vi.d.ts +0 -0
  718. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/yo.d.ts +0 -0
  719. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/zh-CN.d.ts +0 -0
  720. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/_types/zod@4.6.7/v4/locales/zh-TW.d.ts +0 -0
  721. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/index.d.ts +0 -0
  722. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/aisdk/index.d.ts +0 -0
  723. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/default-voice.d.ts +0 -0
  724. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/index.d.ts +0 -0
  725. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/dist/voice/voice.d.ts +0 -0
  726. /package/dist/_types/{@internal_voice@0.0.47 → @internal_voice@0.0.48}/package.json +0 -0
@@ -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-BDrYBis-.cjs");
4
+ const require_background_tasks = require("./background-tasks-Ci5h0dhj.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-BKUCaZ12.cjs");
7
+ const require_utils = require("./utils-xJi_N6Tx.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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { CoreMessage } from './_types/@internal_ai-sdk-v4@0.0.98/dist/index.js';
1
+ import type { CoreMessage } from './_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
2
2
  import { z } from 'zod/v4';
3
3
  import type { MastraPrimitives } from './action/index.js';
4
4
  import type { ToolsInput } from './agent/index.js';
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-GHY3hmLx.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-D8upuTwy.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,4 +1,4 @@
1
- const require_stream = require("./stream-0kdqBOOn.cjs");
1
+ const require_stream = require("./stream-DH7Qgz8l.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,5 +1,5 @@
1
1
  import { standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
2
- import { Et as validateTemplate, St as collectTemplateStepIds } from "./stream-D1y9GzoD.js";
2
+ import { Et as validateTemplate, St as collectTemplateStepIds } from "./stream-C5PagEDs.js";
3
3
  import { z } from "zod";
4
4
  // src/workflows/dynamic/graph.ts
5
5
  /**
@@ -1,5 +1,5 @@
1
- export { embed as embedV1 } from '../_types/@internal_ai-sdk-v4@0.0.98/dist/index.js';
2
- export { embed as embedV2 } from '../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
3
- export { embed as embedV3 } from '../_types/@internal_ai-v6@0.0.98/dist/index.js';
4
- export { embed as embedV4 } from '../_types/@internal_ai-v7@0.0.98/dist/index.js';
1
+ export { embed as embedV1 } from '../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
2
+ export { embed as embedV2 } from '../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
3
+ export { embed as embedV3 } from '../_types/@internal_ai-v6@0.0.99/dist/index.js';
4
+ export { embed as embedV4 } from '../_types/@internal_ai-v7@0.0.99/dist/index.js';
5
5
  //# sourceMappingURL=embed.d.ts.map
@@ -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-BmckDVBk.cjs");
4
+ const require_run_registry = require("../run-registry-TOOfO3hT.cjs");
5
5
  const require_message_list = require("../message-list-Cj0Sq_JP.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 { fa as createVectorErrorId, un as embed$3 } from "../run-registry-BwEcwYlU.js";
3
+ import { fn as embed$3, ga as createVectorErrorId } from "../run-registry-DdeEBsVW.js";
4
4
  import { P as embed$2 } from "../message-list-KRbg-TnI.js";
5
5
  import { r as embed$1 } from "../dist-TPVqg8oV.js";
6
6
  import { n as embed } from "../dist-D3cKCUe-.js";
@@ -1,8 +1,8 @@
1
- import type { EmbeddingModel as EmbeddingModelV1, ProviderOptions as ProviderOptionsV1, TelemetrySettings as TelemetrySettingsV1 } from '../_types/@internal_ai-sdk-v4@0.0.98/dist/index.js';
2
- import type { EmbeddingModel, TelemetrySettings as TelemetrySettingsV5, ProviderOptions as ProviderOptionsV5 } from '../_types/@internal_ai-sdk-v5@0.0.98/dist/index.js';
1
+ import type { EmbeddingModel as EmbeddingModelV1, ProviderOptions as ProviderOptionsV1, TelemetrySettings as TelemetrySettingsV1 } from '../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
2
+ import type { EmbeddingModel, TelemetrySettings as TelemetrySettingsV5, ProviderOptions as ProviderOptionsV5 } from '../_types/@internal_ai-sdk-v5@0.0.99/dist/index.js';
3
3
  type EmbeddingModelV2<T> = Exclude<EmbeddingModel<T>, string>;
4
- import type { EmbeddingModelV3, TelemetrySettings as TelemetrySettingsV6, ProviderOptions as ProviderOptionsV6 } from '../_types/@internal_ai-v6@0.0.98/dist/index.js';
5
- import type { EmbeddingModel as EmbeddingModelV7, TelemetryOptions as TelemetryOptionsV7, ProviderOptions as ProviderOptionsV7 } from '../_types/@internal_ai-v7@0.0.98/dist/index.js';
4
+ import type { EmbeddingModelV3, TelemetrySettings as TelemetrySettingsV6, ProviderOptions as ProviderOptionsV6 } from '../_types/@internal_ai-v6@0.0.99/dist/index.js';
5
+ import type { EmbeddingModel as EmbeddingModelV7, TelemetryOptions as TelemetryOptionsV7, ProviderOptions as ProviderOptionsV7 } from '../_types/@internal_ai-v7@0.0.99/dist/index.js';
6
6
  import { MastraBase } from '../base.js';
7
7
  import type { VectorFilter } from './filter/index.js';
8
8
  import type { CreateIndexParams, UpsertVectorParams, QueryVectorParams, IndexStats, QueryResult, UpdateVectorParams, DeleteVectorParams, DeleteVectorsParams, DescribeIndexParams, DeleteIndexParams } from './types.js';
@@ -1,2 +1,2 @@
1
- export { AISDKSpeech, AISDKTranscription } from '../../_types/@internal_voice@0.0.47/dist/index.js';
1
+ export { AISDKSpeech, AISDKTranscription } from '../../_types/@internal_voice@0.0.48/dist/index.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export { AISDKSpeech } from '../../_types/@internal_voice@0.0.47/dist/index.js';
1
+ export { AISDKSpeech } from '../../_types/@internal_voice@0.0.48/dist/index.js';
2
2
  //# sourceMappingURL=speech.d.ts.map
@@ -1,2 +1,2 @@
1
- export { AISDKTranscription } from '../../_types/@internal_voice@0.0.47/dist/index.js';
1
+ export { AISDKTranscription } from '../../_types/@internal_voice@0.0.48/dist/index.js';
2
2
  //# sourceMappingURL=transcription.d.ts.map
@@ -1,2 +1,2 @@
1
- export { CompositeVoice } from '../_types/@internal_voice@0.0.47/dist/index.js';
1
+ export { CompositeVoice } from '../_types/@internal_voice@0.0.48/dist/index.js';
2
2
  //# sourceMappingURL=composite-voice.d.ts.map
@@ -1,2 +1,2 @@
1
- export { DefaultVoice } from '../_types/@internal_voice@0.0.47/dist/index.js';
1
+ export { DefaultVoice } from '../_types/@internal_voice@0.0.48/dist/index.js';
2
2
  //# sourceMappingURL=default-voice.d.ts.map
@@ -1,3 +1,3 @@
1
- export { AISDKSpeech, AISDKTranscription, CompositeVoice, DefaultVoice, MastraVoice } from '../_types/@internal_voice@0.0.47/dist/index.js';
2
- export type { IMastraVoice, RequestContext, ToolsInput, VoiceConfig, VoiceEventMap, VoiceEventType, } from '../_types/@internal_voice@0.0.47/dist/index.js';
1
+ export { AISDKSpeech, AISDKTranscription, CompositeVoice, DefaultVoice, MastraVoice } from '../_types/@internal_voice@0.0.48/dist/index.js';
2
+ export type { IMastraVoice, RequestContext, ToolsInput, VoiceConfig, VoiceEventMap, VoiceEventType, } from '../_types/@internal_voice@0.0.48/dist/index.js';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export * from '../_types/@internal_voice@0.0.47/dist/index.js';
1
+ export * from '../_types/@internal_voice@0.0.48/dist/index.js';
2
2
  //# sourceMappingURL=voice.d.ts.map
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_worker = require("../worker-CAKvQj9_.cjs");
2
+ const require_worker = require("../worker-24ORi-wV.cjs");
3
3
  exports.BackgroundTaskWorker = require_worker.BackgroundTaskWorker;
4
4
  exports.HttpRemoteStrategy = require_worker.HttpRemoteStrategy;
5
5
  exports.InProcessStrategy = require_worker.InProcessStrategy;
@@ -1 +1 @@
1
- export { n as BackgroundTaskWorker, o as HttpRemoteStrategy, t as InProcessStrategy, c as MastraWorker, i as OrchestrationWorker, a as PullTransport, r as SchedulerWorker, s as StepExecutionError } from "../worker-C3u_xzY2.js";
1
+ export { n as BackgroundTaskWorker, o as HttpRemoteStrategy, t as InProcessStrategy, c as MastraWorker, i as OrchestrationWorker, a as PullTransport, r as SchedulerWorker, s as StepExecutionError } from "../worker-DbcFkKJO.js";
@@ -1,6 +1,6 @@
1
- const require_run_registry = require("./run-registry-BmckDVBk.cjs");
1
+ const require_run_registry = require("./run-registry-TOOfO3hT.cjs");
2
2
  const require_scheduler = require("./scheduler-D00X03jQ.cjs");
3
- const require_background_tasks = require("./background-tasks-BDrYBis-.cjs");
3
+ const require_background_tasks = require("./background-tasks-Ci5h0dhj.cjs");
4
4
  const require_request_context = require("./request-context-D9RXYCy8.cjs");
5
5
  // src/worker/worker.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- const require_run_registry = require("./run-registry-BmckDVBk.cjs");
1
+ const require_run_registry = require("./run-registry-TOOfO3hT.cjs");
2
2
  const require_request_context = require("./request-context-D9RXYCy8.cjs");
3
- const require_worker = require("./worker-CAKvQj9_.cjs");
3
+ const require_worker = require("./worker-24ORi-wV.cjs");
4
4
  const require_schedules = require("./schedules-BZS8McF7.cjs");
5
5
  // src/schedules/worker.ts
6
6
  /** PubSub topic on which the scheduler publishes `agent-schedule.fire` events. */
@@ -1,6 +1,6 @@
1
- import { Ls as WorkflowEventProcessor, Rs as StepExecutor, cc as getNestedWorkflow, gl as waitMs, hl as assertDrainTimeout, lc as getStepEntry, vt as resolveAgentById, zs as computeScheduleDefinitionHash } from "./run-registry-BwEcwYlU.js";
1
+ import { Hs as StepExecutor, Us as computeScheduleDefinitionHash, Vs as WorkflowEventProcessor, _l as assertDrainTimeout, lc as getNestedWorkflow, uc as getStepEntry, vl as waitMs, vt as resolveAgentById } from "./run-registry-DdeEBsVW.js";
2
2
  import { t as Scheduler } from "./scheduler-B-VZUvv_.js";
3
- import { s as BackgroundTaskManager } from "./background-tasks-BnJfNLFo.js";
3
+ import { s as BackgroundTaskManager } from "./background-tasks-IW7M4iD2.js";
4
4
  import { u as RequestContext } from "./request-context-COnZHt2-.js";
5
5
  // src/worker/worker.ts
6
6
  /**
@@ -1,6 +1,6 @@
1
- import { vt as resolveAgentById } from "./run-registry-BwEcwYlU.js";
1
+ import { vt as resolveAgentById } from "./run-registry-DdeEBsVW.js";
2
2
  import { u as RequestContext } from "./request-context-COnZHt2-.js";
3
- import { a as PullTransport, c as MastraWorker } from "./worker-C3u_xzY2.js";
3
+ import { a as PullTransport, c as MastraWorker } from "./worker-DbcFkKJO.js";
4
4
  import { l as parseFsAgentScheduleRowId } from "./schedules-DZfSx-7P.js";
5
5
  // src/schedules/worker.ts
6
6
  /** PubSub topic on which the scheduler publishes `agent-schedule.fire` events. */
@@ -1,8 +1,8 @@
1
- const require_stream = require("./stream-0kdqBOOn.cjs");
1
+ const require_stream = require("./stream-DH7Qgz8l.cjs");
2
2
  require("./utils-D-eNsgDM.cjs");
3
- const require_output_helpers = require("./output-helpers-1Zu4Vt9C.cjs");
4
- const require_run_registry = require("./run-registry-BmckDVBk.cjs");
5
- const require_background_tasks = require("./background-tasks-BDrYBis-.cjs");
3
+ const require_output_helpers = require("./output-helpers-DgsH4aTb.cjs");
4
+ const require_run_registry = require("./run-registry-TOOfO3hT.cjs");
5
+ const require_background_tasks = require("./background-tasks-Ci5h0dhj.cjs");
6
6
  let zod = require("zod");
7
7
  // src/background-tasks/workflow.ts
8
8
  const inputSchema = zod.z.object({ taskId: zod.z.string() });
@@ -1,8 +1,8 @@
1
- import { un as resolveSuspendedToolRunId } from "./stream-D1y9GzoD.js";
1
+ import { un as resolveSuspendedToolRunId } from "./stream-C5PagEDs.js";
2
2
  import "./utils-DU_pU5SK.js";
3
- import { p as slimProgressChunk } from "./output-helpers-CedRCE17.js";
4
- import { As as createWorkflow, pc as createStep } from "./run-registry-BwEcwYlU.js";
5
- import { c as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-BnJfNLFo.js";
3
+ import { m as slimProgressChunk } from "./output-helpers-CVzhy1Y0.js";
4
+ import { Ps as createWorkflow, mc as createStep } from "./run-registry-DdeEBsVW.js";
5
+ import { c as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-IW7M4iD2.js";
6
6
  import { z } from "zod";
7
7
  // src/background-tasks/workflow.ts
8
8
  const inputSchema = z.object({ taskId: z.string() });
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_builder = require("../../builder-Cw8u3pPl.cjs");
2
+ const require_builder = require("../../builder-14Uptu8y.cjs");
3
3
  exports.WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS = require_builder.WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS;
4
4
  exports.WORKFLOW_BUILDER_AUTHORING_PLAYBOOK = require_builder.WORKFLOW_BUILDER_AUTHORING_PLAYBOOK;
5
5
  exports.WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION = require_builder.WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION;
@@ -1 +1 @@
1
- export { U as WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS, W as WORKFLOW_BUILDER_AUTHORING_PLAYBOOK, i as WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION, t as WORKFLOW_BUILDER_SUPPORTED_STEP_TYPES, B as compareWorkflowBuilderSchemas, r as createWorkflowBuilderAgent, a as deleteStoredWorkflowResponseSchema, V as inspectWorkflowBuilderSchemas, o as listStoredWorkflowsResponseSchema, n as normalizeWorkflowBuilderDefinition, H as preflightWorkflowDefinition, s as storedWorkflowDefinitionSchema, c as upsertStoredWorkflowResponseSchema, l as workflowBuilderAgentEntryInputSchema, u as workflowBuilderAgentEntrySchema, d as workflowBuilderClassifierEntryInputSchema, f as workflowBuilderClassifierEntrySchema, p as workflowBuilderConditionalEntryInputSchema, m as workflowBuilderConditionalEntrySchema, h as workflowBuilderDefinitionInputSchema, g as workflowBuilderDefinitionSchema, _ as workflowBuilderForeachEntryInputSchema, v as workflowBuilderForeachEntrySchema, y as workflowBuilderGraphEntryInputSchema, b as workflowBuilderGraphEntrySchema, x as workflowBuilderLoopEntryInputSchema, S as workflowBuilderLoopEntrySchema, C as workflowBuilderMappingConfigSchema, w as workflowBuilderMappingDescriptorSchema, T as workflowBuilderMappingEntryInputSchema, E as workflowBuilderMappingEntrySchema, D as workflowBuilderNestedWorkflowEntryInputSchema, O as workflowBuilderNestedWorkflowEntrySchema, k as workflowBuilderParallelEntryInputSchema, A as workflowBuilderParallelEntrySchema, j as workflowBuilderPredicateSchema, M as workflowBuilderScheduleConfigSchema, N as workflowBuilderScheduleSchema, P as workflowBuilderSleepEntryInputSchema, F as workflowBuilderSleepEntrySchema, I as workflowBuilderSleepUntilEntryInputSchema, L as workflowBuilderSleepUntilEntrySchema, R as workflowBuilderToolEntryInputSchema, z as workflowBuilderToolEntrySchema } from "../../builder-Cl-0BWkh.js";
1
+ export { U as WORKFLOW_BUILDER_AUTHORING_CONSTRAINTS, W as WORKFLOW_BUILDER_AUTHORING_PLAYBOOK, i as WORKFLOW_BUILDER_MAPPING_CONFIG_DESCRIPTION, t as WORKFLOW_BUILDER_SUPPORTED_STEP_TYPES, B as compareWorkflowBuilderSchemas, r as createWorkflowBuilderAgent, a as deleteStoredWorkflowResponseSchema, V as inspectWorkflowBuilderSchemas, o as listStoredWorkflowsResponseSchema, n as normalizeWorkflowBuilderDefinition, H as preflightWorkflowDefinition, s as storedWorkflowDefinitionSchema, c as upsertStoredWorkflowResponseSchema, l as workflowBuilderAgentEntryInputSchema, u as workflowBuilderAgentEntrySchema, d as workflowBuilderClassifierEntryInputSchema, f as workflowBuilderClassifierEntrySchema, p as workflowBuilderConditionalEntryInputSchema, m as workflowBuilderConditionalEntrySchema, h as workflowBuilderDefinitionInputSchema, g as workflowBuilderDefinitionSchema, _ as workflowBuilderForeachEntryInputSchema, v as workflowBuilderForeachEntrySchema, y as workflowBuilderGraphEntryInputSchema, b as workflowBuilderGraphEntrySchema, x as workflowBuilderLoopEntryInputSchema, S as workflowBuilderLoopEntrySchema, C as workflowBuilderMappingConfigSchema, w as workflowBuilderMappingDescriptorSchema, T as workflowBuilderMappingEntryInputSchema, E as workflowBuilderMappingEntrySchema, D as workflowBuilderNestedWorkflowEntryInputSchema, O as workflowBuilderNestedWorkflowEntrySchema, k as workflowBuilderParallelEntryInputSchema, A as workflowBuilderParallelEntrySchema, j as workflowBuilderPredicateSchema, M as workflowBuilderScheduleConfigSchema, N as workflowBuilderScheduleSchema, P as workflowBuilderSleepEntryInputSchema, F as workflowBuilderSleepEntrySchema, I as workflowBuilderSleepUntilEntryInputSchema, L as workflowBuilderSleepUntilEntrySchema, R as workflowBuilderToolEntryInputSchema, z as workflowBuilderToolEntrySchema } from "../../builder-DI2c2xjy.js";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../../run-registry-BmckDVBk.cjs");
2
+ const require_run_registry = require("../../run-registry-TOOfO3hT.cjs");
3
3
  exports.EventedExecutionEngine = require_run_registry.EventedExecutionEngine;
4
4
  exports.EventedRun = require_run_registry.EventedRun;
5
5
  exports.EventedWorkflow = require_run_registry.EventedWorkflow;
@@ -1 +1 @@
1
- export { sc as EventedExecutionEngine, js as EventedRun, Ms as EventedWorkflow, Rs as StepExecutor, Ls as WorkflowEventProcessor, Ns as cloneStep, Ps as cloneWorkflow, Fs as createStep, Is as createWorkflow } from "../../run-registry-BwEcwYlU.js";
1
+ export { cc as EventedExecutionEngine, Fs as EventedRun, Is as EventedWorkflow, Hs as StepExecutor, Vs as WorkflowEventProcessor, Ls as cloneStep, Rs as cloneWorkflow, zs as createStep, Bs as createWorkflow } from "../../run-registry-DdeEBsVW.js";
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-BmckDVBk.cjs");
3
- const require_stream = require("../stream-0kdqBOOn.cjs");
2
+ const require_run_registry = require("../run-registry-TOOfO3hT.cjs");
3
+ const require_stream = require("../stream-DH7Qgz8l.cjs");
4
4
  const require_predicate_index = require("../predicate/index.cjs");
5
5
  const require_schedules = require("../schedules-BZS8McF7.cjs");
6
6
  const require_scheduler = require("../scheduler-D00X03jQ.cjs");
7
- const require_validate = require("../validate-De92squ7.cjs");
8
- const require_rehydrate = require("../rehydrate-CDQ4dOYj.cjs");
7
+ const require_validate = require("../validate-6eZ8Wssn.cjs");
8
+ const require_rehydrate = require("../rehydrate-Da4hNuaK.cjs");
9
9
  // src/workflows/state-reader.ts
10
10
  const getStep = (state, stepId) => state.steps?.[stepId];
11
11
  const getFirstStepResult = (step) => {
@@ -1,10 +1,10 @@
1
- import { $c as hydrateSerializedStepErrors, Ac as ExecutionEngine, As as createWorkflow, Bc as abortableSleep, Ec as DefaultExecutionEngine, Fc as createStepFromAgent, Gc as createRestartExecutionParams, Hc as assertTimeTravelGraphMatchesSnapshot, Ic as createStepFromClassifier, Jc as defineStateAccessors, Kc as createTimeTravelExecutionParams, Lc as createStepFromTool, Os as cloneWorkflow, Pc as createMappingStep, Qc as getStepIds, Rc as RESUME_SNAPSHOT_POLL_INTERVAL_MS, Uc as cleanStepResult, Vc as applyStateDelta, Wc as createDeprecationProxy, Xc as getResumeLabelsByStepId, Yc as getRestartStartIndex, Zc as getSingleStepEntryId, _c as evaluatePredicate, _l as workflowTermination, al as runCountDeprecationMessage, cl as validateStepRequestContext, dc as Workflow, dl as validateStepSuspendData, el as isEntryFinished, fc as cloneStep, fl as waitForSuspendedSnapshot, gc as predicateToCondition, hc as mapVariable, il as resolveForeachConcurrency, ks as createEventedWorkflow, ll as validateStepResumeData, mc as isProcessor, ml as getEntryWorkflow, nl as omitPriorCompletionFields, ol as setLongTimeout, pc as createStep, pl as getEntryId, qc as defineLazyWriter, rl as omitPriorSuspensionFields, sl as validateStepInput, tl as isSingleStepEntry, uc as Run, ul as validateStepStateData, zc as RESUME_SNAPSHOT_WAIT_STATUSES, zs as computeScheduleDefinitionHash } from "../run-registry-BwEcwYlU.js";
2
- import { Dt as getStepResult, Ot as getStepResultAsync } from "../stream-D1y9GzoD.js";
1
+ import { $c as getSingleStepEntryId, Bc as RESUME_SNAPSHOT_POLL_INTERVAL_MS, Gc as cleanStepResult, Hc as abortableSleep, Ic as createMappingStep, Jc as createTimeTravelExecutionParams, Kc as createDeprecationProxy, Lc as createStepFromAgent, Mc as ExecutionEngine, Ms as cloneWorkflow, Ns as createEventedWorkflow, Ps as createWorkflow, Qc as getResumeLabelsByStepId, Rc as createStepFromClassifier, Uc as applyStateDelta, Us as computeScheduleDefinitionHash, Vc as RESUME_SNAPSHOT_WAIT_STATUSES, Wc as assertTimeTravelGraphMatchesSnapshot, Xc as defineStateAccessors, Yc as defineLazyWriter, Zc as getRestartStartIndex, _c as predicateToCondition, al as omitPriorSuspensionFields, cl as setLongTimeout, dc as Run, dl as validateStepResumeData, el as getStepIds, fc as Workflow, fl as validateStepStateData, gc as mapVariable, gl as getEntryWorkflow, hc as isProcessor, hl as getEntryId, il as omitPriorCompletionFields, ll as validateStepInput, mc as createStep, ml as waitForSuspendedSnapshot, nl as isEntryFinished, ol as resolveForeachConcurrency, pc as cloneStep, pl as validateStepSuspendData, qc as createRestartExecutionParams, rl as isSingleStepEntry, sl as runCountDeprecationMessage, tl as hydrateSerializedStepErrors, ul as validateStepRequestContext, vc as evaluatePredicate, wc as DefaultExecutionEngine, yl as workflowTermination, zc as createStepFromTool } from "../run-registry-DdeEBsVW.js";
2
+ import { Dt as getStepResult, Ot as getStepResultAsync } from "../stream-C5PagEDs.js";
3
3
  import { derivePredicateLabel, predicateSchema } from "../predicate/index.js";
4
4
  import { _ as validateCron, h as computeNextFireAt } from "../schedules-DZfSx-7P.js";
5
5
  import { n as WorkflowScheduler, t as Scheduler } from "../scheduler-B-VZUvv_.js";
6
- import { a as jsonSchemaToZod, c as analyzeMapConfig, d as toJsonSchemaOrUndefined, f as validateWorkflowRefs, h as forEachSingleStepEntryWithPath, i as validateWorkflowSchemas, l as parseMapConfig, m as forEachSingleStepEntry, n as validateDynamicWorkflow, o as validateStorableJsonSchema, p as collectNestedWorkflowIds, r as validateWorkflowStructure, s as inferGraphSchemas, t as assertValidDynamicWorkflow, u as schemaCompatibility } from "../validate-CB-q-R2F.js";
7
- import { n as entryOptionFields, r as toStorableGraph, t as rehydrateWorkflow } from "../rehydrate-PnaVawGX.js";
6
+ import { a as jsonSchemaToZod, c as analyzeMapConfig, d as toJsonSchemaOrUndefined, f as validateWorkflowRefs, h as forEachSingleStepEntryWithPath, i as validateWorkflowSchemas, l as parseMapConfig, m as forEachSingleStepEntry, n as validateDynamicWorkflow, o as validateStorableJsonSchema, p as collectNestedWorkflowIds, r as validateWorkflowStructure, s as inferGraphSchemas, t as assertValidDynamicWorkflow, u as schemaCompatibility } from "../validate-DTkW3Vlp.js";
7
+ import { n as entryOptionFields, r as toStorableGraph, t as rehydrateWorkflow } from "../rehydrate-CJBLrZxs.js";
8
8
  // src/workflows/state-reader.ts
9
9
  const getStep = (state, stepId) => state.steps?.[stepId];
10
10
  const getFirstStepResult = (step) => {
@@ -3,9 +3,48 @@ import type { WorkflowsStorage } from '../storage/domains/workflows/base.js';
3
3
  import type { RunFence, RunOwnershipRecord } from '../storage/run-fencing.js';
4
4
  export declare const WORKFLOW_RUN_LEASE_TTL_MS: number;
5
5
  export declare const WORKFLOW_RUN_LEASE_RENEW_INTERVAL_MS: number;
6
+ /**
7
+ * How many times a run's lease can double past its base length, one doubling per restart over a
8
+ * lease that lapsed. Caps how much later a worker that really died is recovered.
9
+ */
10
+ export declare const WORKFLOW_RUN_LEASE_MAX_DOUBLINGS = 3;
11
+ /** The longest `leaseTtlMs`, so that even after every doubling the lease stays within {@link MAX_LEASE_MS}. */
12
+ export declare const MAX_WORKFLOW_RUN_LEASE_TTL_MS: number;
13
+ /**
14
+ * The shortest `leaseTtlMs`. A run renews every third of its lease with one storage write, and
15
+ * `createRun()` options can come from a request body, so a tiny value must not set that rate.
16
+ */
17
+ export declare const MIN_WORKFLOW_RUN_LEASE_TTL_MS = 1000;
18
+ /**
19
+ * `leaseTtlMs` as configured, rounded up to whole milliseconds and kept between
20
+ * {@link MIN_WORKFLOW_RUN_LEASE_TTL_MS} and {@link MAX_WORKFLOW_RUN_LEASE_TTL_MS}, or `fallback`
21
+ * when it is not a positive finite number. `fallback` is used as is, so the default lease from
22
+ * `MASTRA_AGENT_THREAD_LEASE_TTL_MS` can be shorter than the minimum.
23
+ */
24
+ export declare function normalizeLeaseTtlMs(leaseTtlMs: unknown, fallback: number): number;
25
+ /**
26
+ * The lease a restart claims a run with. After a lease that lapsed without being released, its
27
+ * last owner stopped renewing (it crashed, or blocked its event loop past the lease), so the
28
+ * restart doubles that lease to give a step that blocks the same way room to finish. The previous
29
+ * length is the owners row's `leaseExpiresAt - updatedAt`, which stores write in one statement.
30
+ * Stores that read their clock twice there can come out a few milliseconds short; the result
31
+ * never drops below `baseMs` or the previous length, so that only trims the doubling.
32
+ */
33
+ export declare function leaseAfterTakeover(baseMs: number, previous: RunOwnershipRecord | null): {
34
+ leaseMs: number;
35
+ previousLeaseMs?: number;
36
+ };
6
37
  export interface WorkflowRunOwnership {
7
38
  release(): Promise<void>;
39
+ /**
40
+ * Runs `fn` with every workflows save it makes to `runId` (the claimed run, or a nested run the
41
+ * claim covers from then on) carrying this claim, so storage refuses it once another execution
42
+ * claimed the run.
43
+ */
44
+ run<T>(runId: string, fn: () => T): T;
8
45
  }
46
+ /** The handle of a run that holds no claim: saves stay unfenced and nothing is released. */
47
+ export declare const UNCLAIMED_WORKFLOW_RUN: WorkflowRunOwnership;
9
48
  /**
10
49
  * Runs `tick` `intervalMs` after it starts, then again `intervalMs` after
11
50
  * each run of it settles, until the returned function is called. A tick that
@@ -21,33 +60,60 @@ export declare function repeatAfterSettled(tick: () => Promise<void>, intervalMs
21
60
  immediately?: boolean;
22
61
  }): () => void;
23
62
  /**
24
- * Renews the lease `fence` holds every {@link WORKFLOW_RUN_LEASE_RENEW_INTERVAL_MS}
25
- * until the returned function is called, counting each interval from the end
26
- * of the previous renewal. Stops by itself after the first renewal that finds
27
- * the claim superseded, reporting it through `onLost`.
63
+ * Renews the lease `fence` holds, `leaseMs` long, every third of it (every
64
+ * {@link WORKFLOW_RUN_LEASE_RENEW_INTERVAL_MS} for the default lease) until
65
+ * the returned function is called, counting each interval from the end of the
66
+ * previous renewal. Stops by itself after the first renewal that finds the
67
+ * claim superseded, reporting it through `onLost`.
68
+ *
69
+ * When a renewal, or the returned function, finds that a lease length passed
70
+ * since the last renewal (or the claim, sent at `since`) that succeeded, the
71
+ * lease may have lapsed meanwhile: that is reported through `onStall`, once
72
+ * per stall in this process. Gaps after a failed renewal are left to `onError`.
28
73
  */
29
- export declare function renewWorkflowLease({ store, fence, onLost, onError, }: {
74
+ export declare function renewWorkflowLease({ store, fence, leaseMs, since, onLost, onError, onStall, }: {
30
75
  store: WorkflowsStorage;
31
76
  fence: RunFence;
77
+ leaseMs?: number;
78
+ since?: number;
32
79
  onLost: (owner: RunOwnershipRecord | null) => void;
33
80
  onError: (error: unknown) => void;
81
+ onStall?: (sinceRenewalMs: number) => void;
34
82
  }): () => void;
35
83
  /**
36
84
  * Marks this process as the live driver of a workflow run through the storage
37
85
  * run-ownership lease (the one durable agents use), renewing it while the run
38
- * executes. Writes stay unfenced: the lease only tells the boot-time recovery
39
- * sweep on other replicas that the run is not orphaned.
86
+ * executes. The lease tells the recovery sweep on other replicas that the run
87
+ * is not orphaned, and saves made inside {@link WorkflowRunOwnership.run} carry
88
+ * it, so a process that lost the run can't overwrite the new owner's saves.
40
89
  *
41
90
  * Returns the current owner record instead of a handle when `force` is off and
42
91
  * another execution holds a live lease. Stores without run fencing get a no-op
43
92
  * handle, keeping their previous behaviour.
93
+ *
94
+ * The lease is `leaseMs` long. With `backOff`, a claim over a lease that lapsed
95
+ * takes a longer one (see {@link leaseAfterTakeover}).
44
96
  */
45
- export declare function claimWorkflowRunOwnership({ store, runId, force, logger, }: {
97
+ export declare function claimWorkflowRunOwnership({ store, runId, force, logger, leaseMs: baseLeaseMs, backOff, }: {
46
98
  store: WorkflowsStorage | undefined;
47
99
  runId: string;
48
100
  force: boolean;
49
101
  logger?: IMastraLogger;
102
+ leaseMs?: number;
103
+ backOff?: boolean;
50
104
  }): Promise<WorkflowRunOwnership | {
51
105
  owner: RunOwnershipRecord | null;
52
106
  }>;
107
+ /** The fence of the `RunFenceConflictError` in `error` or its cause chain, if there is one. */
108
+ export declare function runFenceConflictOf(error: unknown): RunFence | undefined;
109
+ /**
110
+ * Whether storage refused `error`'s save because the claim the current fence scope holds was
111
+ * replaced, so this execution lost its run. A conflict on another run (one a step started) is not.
112
+ */
113
+ export declare function isOwnRunFenceConflict(error: unknown): boolean;
114
+ /**
115
+ * Makes the saves of `nestedRunId` carry the claim of the workflow run execution this runs in, when
116
+ * that claim covers `parentRunId`. Unlike `coverNestedRun`, it leaves a durable agent's fence alone.
117
+ */
118
+ export declare function coverNestedWorkflowRun(parentRunId: string, nestedRunId: string): void;
53
119
  //# sourceMappingURL=run-ownership.d.ts.map
@@ -1,5 +1,5 @@
1
1
  import type { WritableStream } from 'node:stream/web';
2
- import type { TextStreamPart } from '../_types/@internal_ai-sdk-v4@0.0.98/dist/index.js';
2
+ import type { TextStreamPart } from '../_types/@internal_ai-sdk-v4@0.0.99/dist/index.js';
3
3
  import type { z } from 'zod/v4';
4
4
  import type { ActorSignal } from '../auth/ee/index.js';
5
5
  import type { SerializedError } from '../error/index.js';
@@ -476,8 +476,24 @@ export interface WorkflowOptions<TStorageVersion extends 1 | 2 = 1> {
476
476
  * whose side effects must not be re-driven by a blanket restart — durable
477
477
  * agent workflows set this to false because their recovery is owned by the
478
478
  * dedicated opt-in path (`recovery.durableAgents: 'auto'`).
479
+ *
480
+ * It also decides whether a default-engine run holds a storage run lease while
481
+ * it executes. On storage with run fencing, a leased run's saves carry that
482
+ * lease, so once another process takes the run over, storage refuses this
483
+ * process's saves and its call rejects with `STORAGE_RUN_FENCE_CONFLICT`.
479
484
  */
480
485
  autoRestartActiveRuns?: boolean;
486
+ /**
487
+ * How long, in milliseconds, the storage run lease of this workflow's runs lasts
488
+ * without a renewal. Only runs that take a lease use it (see
489
+ * `autoRestartActiveRuns`). The lease is renewed every third of it, so a step
490
+ * that blocks the event loop for longer than this lets another process take
491
+ * the run over. A restart over a lease that lapsed doubles it, up to 8 times
492
+ * this value. Defaults to `MASTRA_AGENT_THREAD_LEASE_TTL_MS` (15000).
493
+ * Values under 1000 are raised to 1000.
494
+ * `createRun({ leaseTtlMs })` overrides it for one run.
495
+ */
496
+ leaseTtlMs?: number;
481
497
  shouldPersistSnapshot?: ShouldPersistSnapshotFn;
482
498
  /**
483
499
  * Evaluates `shouldPersistSnapshot` before entering the durable operation so a
@@ -505,6 +505,8 @@ export declare class Workflow<TEngineType = DefaultEngineType, TSteps extends St
505
505
  shouldPersistSnapshot?: WorkflowOptions['shouldPersistSnapshot'];
506
506
  /** Overrides the workflow-wide tracing policy for this run only. */
507
507
  tracingPolicy?: TracingPolicy;
508
+ /** Overrides the workflow's `leaseTtlMs` option for this run only. */
509
+ leaseTtlMs?: number;
508
510
  parentWorkflow?: NestedWorkflowParent;
509
511
  }): Promise<Run<TEngineType, TSteps, TState, TInput, TOutput, TRequestContext, TStorageVersion>>;
510
512
  listScorers({ requestContext, }?: {
@@ -702,6 +704,8 @@ export declare class Run<TEngineType = DefaultEngineType, TSteps extends Step<st
702
704
  storageVersion?: 1 | 2;
703
705
  /** Whether the boot-time recovery sweep may restart this run, so it must hold an ownership lease while it executes. */
704
706
  recoverable?: boolean;
707
+ /** The length of that lease, before any backoff. */
708
+ leaseTtlMs?: number;
705
709
  });
706
710
  get abortController(): AbortController;
707
711
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/core",
3
- "version": "1.86.0-alpha.9",
3
+ "version": "1.87.0-alpha.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -904,7 +904,7 @@
904
904
  "ws": "^8.23.0",
905
905
  "xxhash-wasm": "^1.1.0",
906
906
  "yaml": "^2.9.1",
907
- "@mastra/schema-compat": "1.4.1-alpha.0"
907
+ "@mastra/schema-compat": "1.4.1"
908
908
  },
909
909
  "peerDependencies": {
910
910
  "@json-render/chat": "^0.22.0",
@@ -966,19 +966,19 @@
966
966
  "vscode-languageserver-protocol": "^3.18.5",
967
967
  "zod": "^4.6.7",
968
968
  "zod-v3": "npm:zod@3.25.76",
969
- "@internal/ai-sdk-v4": "0.0.98",
970
- "@internal/ai-sdk-v5": "0.0.98",
971
- "@internal/ai-v6": "0.0.98",
972
- "@internal/ai-v7": "0.0.98",
973
- "@internal/auth": "0.0.39",
969
+ "@internal/ai-sdk-v4": "0.0.99",
970
+ "@internal/ai-v6": "0.0.99",
971
+ "@internal/ai-v7": "0.0.99",
972
+ "@internal/ai-sdk-v5": "0.0.99",
973
+ "@internal/auth": "0.0.40",
974
974
  "@internal/core": "0.1.4",
975
- "@internal/external-types": "0.0.101",
976
- "@internal/deployer": "0.0.4",
977
- "@internal/lint": "0.0.151",
978
- "@internal/llm-recorder": "0.0.87",
979
- "@internal/test-utils": "0.0.87",
980
- "@internal/types-builder": "0.0.126",
981
- "@internal/voice": "0.0.47"
975
+ "@internal/deployer": "0.0.5",
976
+ "@internal/external-types": "0.0.102",
977
+ "@internal/llm-recorder": "0.0.88",
978
+ "@internal/lint": "0.0.152",
979
+ "@internal/types-builder": "0.0.127",
980
+ "@internal/test-utils": "0.0.88",
981
+ "@internal/voice": "0.0.48"
982
982
  },
983
983
  "engines": {
984
984
  "node": ">=22.13.0"