@mastra/core 1.87.0-alpha.5 → 1.87.0-alpha.6

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 (361) 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-DEB1G03O.cjs → agent-controller-BL-0CKSF.cjs} +5 -5
  10. package/dist/{agent-controller-CDwoELRq.js → agent-controller-BkG0M35j.js} +5 -5
  11. package/dist/background-tasks/index.cjs +2 -1
  12. package/dist/background-tasks/index.d.ts +1 -1
  13. package/dist/background-tasks/index.js +1 -1
  14. package/dist/background-tasks/resolve-config.d.ts +30 -1
  15. package/dist/background-tasks/system-prompt.d.ts +8 -2
  16. package/dist/background-tasks/types.d.ts +47 -1
  17. package/dist/{background-tasks-CBp2178j.js → background-tasks-CQ1M8SHw.js} +156 -33
  18. package/dist/{background-tasks-B40g_Guf.cjs → background-tasks-DL-ATSvp.cjs} +167 -32
  19. package/dist/browser/index.cjs +1 -1
  20. package/dist/browser/index.js +1 -1
  21. package/dist/{builder-tuHJooMG.cjs → builder-CVEDotdf.cjs} +2 -2
  22. package/dist/{builder-DTEXPju5.js → builder-DnbKjNuO.js} +2 -2
  23. package/dist/capabilities/302ai.json +206 -206
  24. package/dist/capabilities/abliteratedllm.json +29 -29
  25. package/dist/capabilities/abliteration-ai.json +10 -10
  26. package/dist/capabilities/above.json +20 -20
  27. package/dist/capabilities/adaption.json +13 -13
  28. package/dist/capabilities/adzuki.json +29 -29
  29. package/dist/capabilities/agentrouter.json +12 -12
  30. package/dist/capabilities/agnes.json +2 -2
  31. package/dist/capabilities/ai-router.json +5 -5
  32. package/dist/capabilities/aiand.json +22 -22
  33. package/dist/capabilities/aigrow.json +12 -12
  34. package/dist/capabilities/aimlapi.json +145 -145
  35. package/dist/capabilities/aipg.json +2 -2
  36. package/dist/capabilities/aixy.json +28 -28
  37. package/dist/capabilities/aki-io.json +14 -14
  38. package/dist/capabilities/alibaba-cn.json +103 -103
  39. package/dist/capabilities/alibaba-coding-plan-cn.json +6 -6
  40. package/dist/capabilities/alibaba-coding-plan.json +6 -6
  41. package/dist/capabilities/alibaba-token-plan-cn.json +53 -53
  42. package/dist/capabilities/alibaba-token-plan.json +53 -53
  43. package/dist/capabilities/alibaba.json +73 -73
  44. package/dist/capabilities/ambient.json +18 -18
  45. package/dist/capabilities/amd.json +7 -7
  46. package/dist/capabilities/anthropic.json +53 -53
  47. package/dist/capabilities/anyapi.json +46 -46
  48. package/dist/capabilities/arcee.json +7 -7
  49. package/dist/capabilities/augure.json +4 -4
  50. package/dist/capabilities/auriko.json +15 -15
  51. package/dist/capabilities/bailing.json +5 -5
  52. package/dist/capabilities/baseten.json +36 -36
  53. package/dist/capabilities/bee.json +4 -4
  54. package/dist/capabilities/berget.json +4 -4
  55. package/dist/capabilities/bothub.json +16 -16
  56. package/dist/capabilities/boundless.json +39 -39
  57. package/dist/capabilities/bumo.json +38 -38
  58. package/dist/capabilities/byteplus.json +30 -30
  59. package/dist/capabilities/cheapaimodel.json +9 -9
  60. package/dist/capabilities/cheapest-token.json +31 -31
  61. package/dist/capabilities/chutes.json +8 -8
  62. package/dist/capabilities/cline-pass.json +40 -40
  63. package/dist/capabilities/cloudcode.json +9 -9
  64. package/dist/capabilities/cloudflare-workers-ai.json +16 -16
  65. package/dist/capabilities/commandcode.json +140 -140
  66. package/dist/capabilities/concentrate.json +274 -274
  67. package/dist/capabilities/cortecs.json +104 -104
  68. package/dist/capabilities/crossmodel.json +200 -200
  69. package/dist/capabilities/crusoe.json +9 -9
  70. package/dist/capabilities/daoxe.json +8 -8
  71. package/dist/capabilities/databricks.json +128 -128
  72. package/dist/capabilities/deepinfra.json +99 -99
  73. package/dist/capabilities/deepseek.json +3 -3
  74. package/dist/capabilities/digitalocean.json +108 -108
  75. package/dist/capabilities/dothoosh.json +31 -31
  76. package/dist/capabilities/doubleword.json +19 -19
  77. package/dist/capabilities/edenai.json +279 -286
  78. package/dist/capabilities/empiriolabs.json +167 -167
  79. package/dist/capabilities/engy.json +14 -14
  80. package/dist/capabilities/entrim.json +8 -8
  81. package/dist/capabilities/evroc.json +19 -19
  82. package/dist/capabilities/ezkielyna.json +11 -11
  83. package/dist/capabilities/fastrouter.json +88 -88
  84. package/dist/capabilities/fireworks-ai.json +97 -97
  85. package/dist/capabilities/freemodel.json +18 -18
  86. package/dist/capabilities/friendli.json +7 -7
  87. package/dist/capabilities/frogbot.json +89 -89
  88. package/dist/capabilities/gisoo.json +18 -18
  89. package/dist/capabilities/gmicloud.json +24 -24
  90. package/dist/capabilities/google.json +51 -51
  91. package/dist/capabilities/graphn.json +11 -11
  92. package/dist/capabilities/greenpt.json +33 -33
  93. package/dist/capabilities/groq.json +9 -9
  94. package/dist/capabilities/helicone.json +82 -82
  95. package/dist/capabilities/hostinger-router.json +14 -14
  96. package/dist/capabilities/hpc-ai.json +12 -12
  97. package/dist/capabilities/huawei-maas.json +14 -14
  98. package/dist/capabilities/hubris.json +32 -32
  99. package/dist/capabilities/huggingface.json +106 -106
  100. package/dist/capabilities/humain.json +2 -2
  101. package/dist/capabilities/hyper.json +19 -19
  102. package/dist/capabilities/impossibl.json +145 -145
  103. package/dist/capabilities/inception.json +3 -3
  104. package/dist/capabilities/inceptron.json +8 -8
  105. package/dist/capabilities/inco.json +2 -2
  106. package/dist/capabilities/infer.json +13 -13
  107. package/dist/capabilities/inferall.json +6 -6
  108. package/dist/capabilities/inference-coop.json +9 -9
  109. package/dist/capabilities/inferenceapis.json +25 -25
  110. package/dist/capabilities/inferris.json +4 -4
  111. package/dist/capabilities/infersia.json +14 -14
  112. package/dist/capabilities/io-net.json +2 -2
  113. package/dist/capabilities/iteracompute.json +52 -52
  114. package/dist/capabilities/jad-ai.json +3 -3
  115. package/dist/capabilities/jalapeno.json +10 -10
  116. package/dist/capabilities/jiekou.json +59 -59
  117. package/dist/capabilities/joingonka.json +4 -4
  118. package/dist/capabilities/jzstoken.json +54 -54
  119. package/dist/capabilities/keln.json +25 -25
  120. package/dist/capabilities/kenari.json +124 -124
  121. package/dist/capabilities/kilo.json +653 -644
  122. package/dist/capabilities/kimi-code-plan-cn.json +9 -9
  123. package/dist/capabilities/kimi-code-plan-global.json +9 -9
  124. package/dist/capabilities/kitani.json +6 -6
  125. package/dist/capabilities/klavo.json +22 -22
  126. package/dist/capabilities/korouter.json +29 -29
  127. package/dist/capabilities/kunavo.json +10 -10
  128. package/dist/capabilities/liquid.json +5 -5
  129. package/dist/capabilities/lithosai.json +2 -2
  130. package/dist/capabilities/llmgateway-providers.json +926 -929
  131. package/dist/capabilities/llmgateway.json +341 -342
  132. package/dist/capabilities/llmtr.json +37 -37
  133. package/dist/capabilities/lowrouter.json +66 -66
  134. package/dist/capabilities/lyceum.json +8 -8
  135. package/dist/capabilities/melious.json +11 -11
  136. package/dist/capabilities/merge-gateway.json +293 -293
  137. package/dist/capabilities/meta.json +7 -7
  138. package/dist/capabilities/minimax-cn-coding-plan.json +2 -2
  139. package/dist/capabilities/minimax-coding-plan.json +2 -2
  140. package/dist/capabilities/mistral.json +19 -19
  141. package/dist/capabilities/mixlayer.json +4 -4
  142. package/dist/capabilities/modal.json +9 -9
  143. package/dist/capabilities/model-oracle-ai.json +27 -27
  144. package/dist/capabilities/modelis.json +14 -14
  145. package/dist/capabilities/modelscope.json +2 -2
  146. package/dist/capabilities/modular.json +6 -6
  147. package/dist/capabilities/moneo.json +14 -14
  148. package/dist/capabilities/moonshotai-cn.json +7 -7
  149. package/dist/capabilities/moonshotai.json +7 -7
  150. package/dist/capabilities/morph.json +12 -12
  151. package/dist/capabilities/munito-eu.json +8 -8
  152. package/dist/capabilities/munito.json +8 -8
  153. package/dist/capabilities/nan.json +26 -26
  154. package/dist/capabilities/nano-gpt.json +589 -589
  155. package/dist/capabilities/nearai.json +96 -96
  156. package/dist/capabilities/nebius.json +30 -30
  157. package/dist/capabilities/neon.json +138 -138
  158. package/dist/capabilities/neuralwatt.json +39 -39
  159. package/dist/capabilities/nokeep.json +4 -4
  160. package/dist/capabilities/novita-ai.json +157 -157
  161. package/dist/capabilities/nvidia.json +18 -18
  162. package/dist/capabilities/oathbreaker.json +2 -2
  163. package/dist/capabilities/obscurify.json +32 -32
  164. package/dist/capabilities/oci.json +9 -9
  165. package/dist/capabilities/ofox.json +414 -414
  166. package/dist/capabilities/ollama-cloud.json +52 -52
  167. package/dist/capabilities/openai.json +58 -58
  168. package/dist/capabilities/opencode-go.json +94 -94
  169. package/dist/capabilities/openreason.json +6 -6
  170. package/dist/capabilities/openrouter.json +561 -561
  171. package/dist/capabilities/opper.json +28 -28
  172. package/dist/capabilities/orcarouter.json +255 -255
  173. package/dist/capabilities/outerlabs.json +28 -28
  174. package/dist/capabilities/ovhcloud.json +17 -17
  175. package/dist/capabilities/pareto.json +5 -5
  176. package/dist/capabilities/pendra.json +4 -4
  177. package/dist/capabilities/perplexity-agent.json +64 -64
  178. package/dist/capabilities/perplexity.json +2 -2
  179. package/dist/capabilities/phala.json +32 -32
  180. package/dist/capabilities/pioneer.json +29 -29
  181. package/dist/capabilities/poe.json +133 -133
  182. package/dist/capabilities/poolside.json +3 -3
  183. package/dist/capabilities/powerspring.json +12 -12
  184. package/dist/capabilities/primalabs.json +12 -12
  185. package/dist/capabilities/prime.json +119 -119
  186. package/dist/capabilities/privatemode-ai.json +11 -11
  187. package/dist/capabilities/proxystacks.json +6 -6
  188. package/dist/capabilities/qiniu-ai.json +13 -13
  189. package/dist/capabilities/refuseless.json +6 -6
  190. package/dist/capabilities/regolo-ai.json +9 -9
  191. package/dist/capabilities/requesty.json +200 -166
  192. package/dist/capabilities/ruapi.json +22 -22
  193. package/dist/capabilities/runcrate.json +13 -13
  194. package/dist/capabilities/runinfra.json +18 -18
  195. package/dist/capabilities/sakana.json +7 -7
  196. package/dist/capabilities/sambanova.json +6 -6
  197. package/dist/capabilities/sandbase.json +25 -25
  198. package/dist/capabilities/sarvam.json +9 -9
  199. package/dist/capabilities/scaleway.json +13 -13
  200. package/dist/capabilities/scnet-token-plan.json +9 -9
  201. package/dist/capabilities/scx-ai.json +23 -23
  202. package/dist/capabilities/sensenova.json +6 -6
  203. package/dist/capabilities/siliconflow-cn.json +61 -61
  204. package/dist/capabilities/siliconflow.json +56 -56
  205. package/dist/capabilities/snowflake-cortex.json +23 -23
  206. package/dist/capabilities/sokkan.json +9 -9
  207. package/dist/capabilities/sparrowcodes.json +21 -21
  208. package/dist/capabilities/standardcompute.json +97 -97
  209. package/dist/capabilities/steadyrouter.json +37 -37
  210. package/dist/capabilities/stepfun-ai-step-plan.json +6 -6
  211. package/dist/capabilities/stepfun-ai.json +6 -6
  212. package/dist/capabilities/stepfun-step-plan.json +6 -6
  213. package/dist/capabilities/stepfun.json +6 -6
  214. package/dist/capabilities/stepping-stone.json +22 -22
  215. package/dist/capabilities/synthetic.json +12 -12
  216. package/dist/capabilities/synthorai.json +21 -21
  217. package/dist/capabilities/teamorouter.json +19 -19
  218. package/dist/capabilities/teapot-router.json +16 -16
  219. package/dist/capabilities/tencent-token-plan-intl.json +19 -19
  220. package/dist/capabilities/tencent-token-plan.json +36 -36
  221. package/dist/capabilities/tencent-tokenhub.json +47 -47
  222. package/dist/capabilities/tensorx.json +46 -46
  223. package/dist/capabilities/tenstorrent.json +6 -6
  224. package/dist/capabilities/the-grid-ai.json +37 -37
  225. package/dist/capabilities/thinkingmachines.json +35 -35
  226. package/dist/capabilities/tinfoil.json +11 -11
  227. package/dist/capabilities/toapis.json +2 -2
  228. package/dist/capabilities/togetherai.json +50 -50
  229. package/dist/capabilities/tokengo.json +24 -24
  230. package/dist/capabilities/tokenify.json +9 -9
  231. package/dist/capabilities/trustedrouter.json +7 -7
  232. package/dist/capabilities/trustedtokens.json +19 -19
  233. package/dist/capabilities/umans-ai-coding-plan.json +18 -18
  234. package/dist/capabilities/umans-ai.json +15 -15
  235. package/dist/capabilities/uncensuredai.json +5 -5
  236. package/dist/capabilities/unrestricted.json +8 -8
  237. package/dist/capabilities/uplinkswitch.json +22 -22
  238. package/dist/capabilities/upstage.json +5 -5
  239. package/dist/capabilities/vancine.json +20 -20
  240. package/dist/capabilities/vercel.json +588 -586
  241. package/dist/capabilities/vivgrid.json +78 -78
  242. package/dist/capabilities/volcengine-coding-plan.json +22 -22
  243. package/dist/capabilities/volcengine.json +27 -27
  244. package/dist/capabilities/vultr.json +27 -27
  245. package/dist/capabilities/wafer.ai.json +16 -16
  246. package/dist/capabilities/wallaby.json +2 -2
  247. package/dist/capabilities/wally.json +10 -10
  248. package/dist/capabilities/wandb.json +21 -21
  249. package/dist/capabilities/watt.json +26 -26
  250. package/dist/capabilities/xai.json +6 -6
  251. package/dist/capabilities/xiaomi.json +2 -2
  252. package/dist/capabilities/xpersona.json +12 -12
  253. package/dist/capabilities/xxapi.json +32 -32
  254. package/dist/capabilities/zai-coding-plan.json +15 -15
  255. package/dist/capabilities/zai.json +29 -29
  256. package/dist/capabilities/zenifra.json +30 -30
  257. package/dist/capabilities/zenmux.json +202 -202
  258. package/dist/capabilities/zerogpu.json +12 -12
  259. package/dist/capabilities/zhipuai-coding-plan.json +7 -7
  260. package/dist/capabilities/zhipuai.json +28 -28
  261. package/dist/capabilities/zro.json +7 -7
  262. package/dist/channels/index.cjs +2 -2
  263. package/dist/channels/index.js +2 -2
  264. package/dist/{channels-Drxs9g13.cjs → channels-DCd_dDOB.cjs} +1 -1
  265. package/dist/{channels-CC2Z4adP.js → channels-DwAd1RtQ.js} +1 -1
  266. package/dist/coding-agent/index.cjs +1 -1
  267. package/dist/coding-agent/index.js +1 -1
  268. package/dist/datasets/index.cjs +2 -2
  269. package/dist/datasets/index.js +2 -2
  270. package/dist/docs/SKILL.md +1 -1
  271. package/dist/docs/assets/SOURCE_MAP.json +476 -476
  272. package/dist/docs/references/docs-agents-code-mode.md +16 -0
  273. package/dist/docs/references/docs-harness-background-tasks.md +38 -0
  274. package/dist/evals/index.cjs +1 -1
  275. package/dist/evals/index.js +1 -1
  276. package/dist/evals/scoreTraces/index.cjs +1 -1
  277. package/dist/evals/scoreTraces/index.js +1 -1
  278. package/dist/events/index.cjs +1 -1
  279. package/dist/events/index.js +1 -1
  280. package/dist/harness/index.cjs +1 -1
  281. package/dist/harness/index.js +1 -1
  282. package/dist/index.cjs +1 -1
  283. package/dist/index.js +1 -1
  284. package/dist/knowledge/index.cjs +14 -4
  285. package/dist/knowledge/index.d.ts +6 -2
  286. package/dist/knowledge/index.js +14 -4
  287. package/dist/knowledge/pinned-state-processor.d.ts +2 -2
  288. package/dist/knowledge/run.d.ts +4 -0
  289. package/dist/llm/index.cjs +3 -3
  290. package/dist/llm/index.js +3 -3
  291. package/dist/llm/model/provider-types.generated.d.ts +7902 -7904
  292. package/dist/{llm-D3y8qOKL.js → llm-BdHdjrHp.js} +2 -2
  293. package/dist/{llm-CbpBEabY.cjs → llm-DQTGexjo.cjs} +2 -2
  294. package/dist/loop/index.cjs +2 -2
  295. package/dist/loop/index.js +2 -2
  296. package/dist/{manager-elIuArZa.js → manager-BxE49QHe.js} +2 -2
  297. package/dist/{manager-BOn6RJwA.cjs → manager-CjT4ivOl.cjs} +2 -2
  298. package/dist/mastra/index.cjs +1 -1
  299. package/dist/mastra/index.js +1 -1
  300. package/dist/{mastra-CDQJWY6v.cjs → mastra-CraMHXhw.cjs} +17 -17
  301. package/dist/{mastra-DQjco6Bt.js → mastra-DKjpNZ-1.js} +17 -17
  302. package/dist/memory/index.cjs +2 -2
  303. package/dist/memory/index.js +2 -2
  304. package/dist/{model-C4aI7k-i.cjs → model-BEFQWHnG.cjs} +1 -1
  305. package/dist/{model-BjyU1L4I.js → model-X2gWHlAy.js} +1 -1
  306. package/dist/{netlify-BjuUEMrL.cjs → netlify-BFgeBsaW.cjs} +1 -1
  307. package/dist/{netlify-BpB7PtZV.js → netlify-kxJSdqCW.js} +1 -1
  308. package/dist/notifications/index.cjs +1 -1
  309. package/dist/notifications/index.js +1 -1
  310. package/dist/processor-provider/index.cjs +1 -1
  311. package/dist/processor-provider/index.js +1 -1
  312. package/dist/processors/index.cjs +2 -2
  313. package/dist/processors/index.js +2 -2
  314. package/dist/{provider-registry-bkFdaY45.cjs → provider-registry-BXDosXMN.cjs} +22028 -22031
  315. package/dist/{provider-registry-BjdxtGZZ.js → provider-registry-DgezoItQ.js} +22028 -22031
  316. package/dist/provider-registry.json +22701 -22704
  317. package/dist/{registry-generator-CPF318Kc.js → registry-generator-B50FrVGs.js} +1 -1
  318. package/dist/{registry-generator-BORKO0_T.cjs → registry-generator-BMXgTdbx.cjs} +1 -1
  319. package/dist/{rehydrate-Cps4MTph.cjs → rehydrate-CBcjKKGA.cjs} +2 -2
  320. package/dist/{rehydrate-Cw2Id-Uz.js → rehydrate-Dp8f_1MN.js} +2 -2
  321. package/dist/relevance/index.cjs +2 -2
  322. package/dist/relevance/index.js +2 -2
  323. package/dist/{run-registry-BTFPEkXT.cjs → run-registry-BRO8xz9z.cjs} +35 -14
  324. package/dist/{run-registry-D5z2YVqJ.js → run-registry-H2qdwHni.js} +30 -15
  325. package/dist/storage/index.cjs +2 -2
  326. package/dist/storage/index.js +2 -2
  327. package/dist/stream/index.cjs +2 -2
  328. package/dist/stream/index.js +2 -2
  329. package/dist/{stream-DB5efioT.js → stream-DcYRY4r3.js} +1 -1
  330. package/dist/{stream-D1OnBHDi.cjs → stream-nABk9CJK.cjs} +1 -1
  331. package/dist/test-utils/llm-mock.cjs +1 -1
  332. package/dist/test-utils/llm-mock.js +1 -1
  333. package/dist/tool-loop-agent/index.cjs +1 -1
  334. package/dist/tool-loop-agent/index.js +1 -1
  335. package/dist/{tool-loop-agent-Ote8gJMn.cjs → tool-loop-agent-D1Rufbcz.cjs} +3 -3
  336. package/dist/{tool-loop-agent-DkhFVx0h.js → tool-loop-agent-DO-GkLD_.js} +3 -3
  337. package/dist/{utils-Dl_UFejV.cjs → utils-DY0lTRKE.cjs} +7 -6
  338. package/dist/{utils-BTKpGHA6.js → utils-DlsFs_sO.js} +7 -6
  339. package/dist/utils.cjs +1 -1
  340. package/dist/utils.js +1 -1
  341. package/dist/{validate-D6fUqYGz.js → validate-D4nqo7Ri.js} +1 -1
  342. package/dist/{validate-DdDuQRoZ.cjs → validate-DP9DxgFq.cjs} +1 -1
  343. package/dist/vector/index.cjs +1 -1
  344. package/dist/vector/index.js +1 -1
  345. package/dist/worker/index.cjs +1 -1
  346. package/dist/worker/index.js +1 -1
  347. package/dist/worker/workers/orchestration-worker.d.ts +1 -0
  348. package/dist/{worker-DC269pGx.js → worker-8MNVG9Ja.js} +2 -2
  349. package/dist/{worker-Bo_hTQJC.js → worker-Ckryk6RZ.js} +5 -5
  350. package/dist/{worker-B27B9RlK.cjs → worker-CqEMDlAQ.cjs} +2 -2
  351. package/dist/{worker-mq-oiLa5.cjs → worker-LryffZas.cjs} +10 -4
  352. package/dist/{workflow-D97r3h2-.js → workflow-B0mhMnuQ.js} +3 -3
  353. package/dist/{workflow-D61dV4AC.cjs → workflow-BN6YiI09.cjs} +3 -3
  354. package/dist/workflows/builder/index.cjs +1 -1
  355. package/dist/workflows/builder/index.js +1 -1
  356. package/dist/workflows/evented/index.cjs +1 -1
  357. package/dist/workflows/evented/index.js +1 -1
  358. package/dist/workflows/index.cjs +4 -4
  359. package/dist/workflows/index.js +4 -4
  360. package/package.json +5 -5
  361. package/src/llm/model/provider-types.generated.d.ts +7902 -7904
@@ -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 { i as isToolBackgroundEligible, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-CBp2178j.js";
4
+ import { a as isToolBackgroundEligible, i as isModelBackgroundOverrideAllowed, n as backgroundOverrideJsonSchema, r as backgroundOverrideZodSchema } from "./background-tasks-CQ1M8SHw.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";
@@ -664,20 +664,21 @@ var CoreToolBuilder = class extends MastraBase {
664
664
  this.originalTool = input.originalTool;
665
665
  this.options = input.options;
666
666
  this.logType = input.logType;
667
- const isBackgroundEligible = !!input.backgroundTaskEnabled && isToolBackgroundEligible({
667
+ const backgroundConfigInput = {
668
668
  toolName: this.options.name,
669
669
  toolConfig: this.options.backgroundConfig,
670
670
  agentConfig: this.options.agentBackgroundConfig
671
- });
671
+ };
672
+ const injectBackgroundOverride = !!input.backgroundTaskEnabled && isToolBackgroundEligible(backgroundConfigInput) && isModelBackgroundOverrideAllowed(backgroundConfigInput);
672
673
  this.isResumableTool = Boolean(input.autoResumeSuspendedTools || this.originalTool.id?.startsWith("agent-") || this.originalTool.id?.startsWith("workflow-"));
673
674
  if (!isVercelTool(this.originalTool) && !isProviderDefinedTool(this.originalTool)) {
674
- if (isBackgroundEligible || this.isResumableTool) {
675
+ if (injectBackgroundOverride || this.isResumableTool) {
675
676
  let schema = this.originalTool.inputSchema;
676
677
  if (typeof schema === "function" && !isStandardSchemaWithJSON(schema)) schema = schema();
677
678
  if (!schema) schema = z.object({});
678
679
  if (isZodObject(schema) && isZodV4Schema(schema)) {
679
680
  let nextSchema = schema;
680
- if (isBackgroundEligible) nextSchema = safeExtendZodObject(nextSchema, { _background: backgroundOverrideZodSchema });
681
+ if (injectBackgroundOverride) nextSchema = safeExtendZodObject(nextSchema, { _background: backgroundOverrideZodSchema });
681
682
  if (this.isResumableTool) nextSchema = safeExtendZodObject(nextSchema, resumeFieldsZodShape);
682
683
  this.injectedInputSchema = toStandardSchema(nextSchema);
683
684
  } else {
@@ -686,7 +687,7 @@ var CoreToolBuilder = class extends MastraBase {
686
687
  if (jsonSchema && typeof jsonSchema === "object" && jsonSchema.type === "object") {
687
688
  const properties = { ...jsonSchema.properties ?? {} };
688
689
  const injectedKeys = [];
689
- if (isBackgroundEligible) {
690
+ if (injectBackgroundOverride) {
690
691
  properties._background = backgroundOverrideJsonSchema;
691
692
  injectedKeys.push("_background");
692
693
  }
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-Dl_UFejV.cjs");
7
+ const require_utils = require("./utils-DY0lTRKE.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-BTKpGHA6.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-DlsFs_sO.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 { Et as validateTemplate, St as collectTemplateStepIds } from "./stream-DB5efioT.js";
2
+ import { Et as validateTemplate, St as collectTemplateStepIds } from "./stream-DcYRY4r3.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-D1OnBHDi.cjs");
1
+ const require_stream = require("./stream-nABk9CJK.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-BTFPEkXT.cjs");
4
+ const require_run_registry = require("../run-registry-BRO8xz9z.cjs");
5
5
  const require_message_list = require("../message-list-vR3uLAHL.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 { un as embed$3, ya as createVectorErrorId } from "../run-registry-D5z2YVqJ.js";
3
+ import { ba as createVectorErrorId, dn as embed$3 } from "../run-registry-H2qdwHni.js";
4
4
  import { P as embed$2 } from "../message-list-BGm1DCiG.js";
5
5
  import { r as embed$1 } from "../dist-TPVqg8oV.js";
6
6
  import { n as embed } from "../dist-D3cKCUe-.js";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_worker = require("../worker-mq-oiLa5.cjs");
2
+ const require_worker = require("../worker-LryffZas.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-Bo_hTQJC.js";
1
+ export { n as BackgroundTaskWorker, s as HttpRemoteStrategy, t as InProcessStrategy, l as MastraWorker, a as OrchestrationWorker, o as PullTransport, r as SchedulerWorker, c as StepExecutionError } from "../worker-Ckryk6RZ.js";
@@ -1,5 +1,6 @@
1
1
  import { MastraWorker } from '../worker.js';
2
2
  import type { WorkerDeps, WorkerStopOptions } from '../worker.js';
3
+ export declare const ORCHESTRATION_GROUP = "mastra-orchestration";
3
4
  export interface OrchestrationWorkerConfig {
4
5
  group?: string;
5
6
  /**
@@ -1,6 +1,6 @@
1
- import { yt as resolveAgentById } from "./run-registry-D5z2YVqJ.js";
1
+ import { yt as resolveAgentById } from "./run-registry-H2qdwHni.js";
2
2
  import { u as RequestContext } from "./request-context-COnZHt2-.js";
3
- import { a as PullTransport, c as MastraWorker } from "./worker-Bo_hTQJC.js";
3
+ import { l as MastraWorker, o as PullTransport } from "./worker-Ckryk6RZ.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,6 +1,6 @@
1
- import { El as waitMs, Gs as StepExecutor, Ks as computeScheduleDefinitionHash, Tl as assertDrainTimeout, Ws as WorkflowEventProcessor, _c as getNestedWorkflow, vc as getStepEntry, yt as resolveAgentById } from "./run-registry-D5z2YVqJ.js";
1
+ import { Dl as waitMs, El as assertDrainTimeout, Gs as WorkflowEventProcessor, Ks as StepExecutor, qs as computeScheduleDefinitionHash, vc as getNestedWorkflow, yc as getStepEntry, yt as resolveAgentById } from "./run-registry-H2qdwHni.js";
2
2
  import { t as Scheduler } from "./scheduler-B-VZUvv_.js";
3
- import { s as BackgroundTaskManager } from "./background-tasks-CBp2178j.js";
3
+ import { l as BackgroundTaskManager } from "./background-tasks-CQ1M8SHw.js";
4
4
  import { u as RequestContext } from "./request-context-COnZHt2-.js";
5
5
  // src/worker/worker.ts
6
6
  /**
@@ -193,7 +193,7 @@ var PullTransport = class {
193
193
  }
194
194
  };
195
195
  // src/worker/workers/orchestration-worker.ts
196
- const DEFAULT_GROUP = "mastra-orchestration";
196
+ const ORCHESTRATION_GROUP = "mastra-orchestration";
197
197
  const DEFAULT_LEASE_RENEW_INTERVAL_MS = 1e4;
198
198
  /**
199
199
  * Processes workflow events (step.run, step.end, start, cancel, etc.)
@@ -233,7 +233,7 @@ var OrchestrationWorker = class extends MastraWorker {
233
233
  async start() {
234
234
  if (this.#running) return;
235
235
  if (!this.deps) throw new Error("OrchestrationWorker: call init() before start()");
236
- const group = this.#config.group ?? DEFAULT_GROUP;
236
+ const group = this.#config.group ?? "mastra-orchestration";
237
237
  this.#transport = new PullTransport({
238
238
  pubsub: this.deps.pubsub,
239
239
  group,
@@ -546,4 +546,4 @@ function resolveNestedWorkflow(mastra, workflowId, parentWorkflow) {
546
546
  const workflow = getNestedWorkflow(mastra, parentWorkflow);
547
547
  return workflow?.id === workflowId ? workflow : null;
548
548
  }
549
- export { PullTransport as a, MastraWorker as c, OrchestrationWorker as i, BackgroundTaskWorker as n, HttpRemoteStrategy as o, SchedulerWorker as r, StepExecutionError as s, InProcessStrategy as t };
549
+ export { OrchestrationWorker as a, StepExecutionError as c, ORCHESTRATION_GROUP as i, MastraWorker as l, BackgroundTaskWorker as n, PullTransport as o, SchedulerWorker as r, HttpRemoteStrategy as s, InProcessStrategy as t };
@@ -1,6 +1,6 @@
1
- const require_run_registry = require("./run-registry-BTFPEkXT.cjs");
1
+ const require_run_registry = require("./run-registry-BRO8xz9z.cjs");
2
2
  const require_request_context = require("./request-context-D9RXYCy8.cjs");
3
- const require_worker = require("./worker-mq-oiLa5.cjs");
3
+ const require_worker = require("./worker-LryffZas.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
- const require_run_registry = require("./run-registry-BTFPEkXT.cjs");
1
+ const require_run_registry = require("./run-registry-BRO8xz9z.cjs");
2
2
  const require_scheduler = require("./scheduler-D00X03jQ.cjs");
3
- const require_background_tasks = require("./background-tasks-B40g_Guf.cjs");
3
+ const require_background_tasks = require("./background-tasks-DL-ATSvp.cjs");
4
4
  const require_request_context = require("./request-context-D9RXYCy8.cjs");
5
5
  // src/worker/worker.ts
6
6
  /**
@@ -193,7 +193,7 @@ var PullTransport = class {
193
193
  }
194
194
  };
195
195
  // src/worker/workers/orchestration-worker.ts
196
- const DEFAULT_GROUP = "mastra-orchestration";
196
+ const ORCHESTRATION_GROUP = "mastra-orchestration";
197
197
  const DEFAULT_LEASE_RENEW_INTERVAL_MS = 1e4;
198
198
  /**
199
199
  * Processes workflow events (step.run, step.end, start, cancel, etc.)
@@ -233,7 +233,7 @@ var OrchestrationWorker = class extends MastraWorker {
233
233
  async start() {
234
234
  if (this.#running) return;
235
235
  if (!this.deps) throw new Error("OrchestrationWorker: call init() before start()");
236
- const group = this.#config.group ?? DEFAULT_GROUP;
236
+ const group = this.#config.group ?? "mastra-orchestration";
237
237
  this.#transport = new PullTransport({
238
238
  pubsub: this.deps.pubsub,
239
239
  group,
@@ -570,6 +570,12 @@ Object.defineProperty(exports, "MastraWorker", {
570
570
  return MastraWorker;
571
571
  }
572
572
  });
573
+ Object.defineProperty(exports, "ORCHESTRATION_GROUP", {
574
+ enumerable: true,
575
+ get: function() {
576
+ return ORCHESTRATION_GROUP;
577
+ }
578
+ });
573
579
  Object.defineProperty(exports, "OrchestrationWorker", {
574
580
  enumerable: true,
575
581
  get: function() {
@@ -1,8 +1,8 @@
1
- import { un as resolveSuspendedToolRunId } from "./stream-DB5efioT.js";
1
+ import { un as resolveSuspendedToolRunId } from "./stream-DcYRY4r3.js";
2
2
  import "./utils-DU_pU5SK.js";
3
3
  import { m as slimProgressChunk } from "./output-helpers-CVzhy1Y0.js";
4
- import { Ls as createWorkflow, Sc as createStep } from "./run-registry-D5z2YVqJ.js";
5
- import { c as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-CBp2178j.js";
4
+ import { Cc as createStep, Rs as createWorkflow } from "./run-registry-H2qdwHni.js";
5
+ import { u as BACKGROUND_TASK_WORKFLOW_ID } from "./background-tasks-CQ1M8SHw.js";
6
6
  import { z } from "zod";
7
7
  // src/background-tasks/workflow.ts
8
8
  const inputSchema = z.object({ taskId: z.string() });
@@ -1,8 +1,8 @@
1
- const require_stream = require("./stream-D1OnBHDi.cjs");
1
+ const require_stream = require("./stream-nABk9CJK.cjs");
2
2
  require("./utils-D-eNsgDM.cjs");
3
3
  const require_output_helpers = require("./output-helpers-DgsH4aTb.cjs");
4
- const require_run_registry = require("./run-registry-BTFPEkXT.cjs");
5
- const require_background_tasks = require("./background-tasks-B40g_Guf.cjs");
4
+ const require_run_registry = require("./run-registry-BRO8xz9z.cjs");
5
+ const require_background_tasks = require("./background-tasks-DL-ATSvp.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,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_builder = require("../../builder-tuHJooMG.cjs");
2
+ const require_builder = require("../../builder-CVEDotdf.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-DTEXPju5.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-DnbKjNuO.js";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../../run-registry-BTFPEkXT.cjs");
2
+ const require_run_registry = require("../../run-registry-BRO8xz9z.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 { gc as EventedExecutionEngine, Rs as EventedRun, zs as EventedWorkflow, Gs as StepExecutor, Ws as WorkflowEventProcessor, Bs as cloneStep, Vs as cloneWorkflow, Hs as createStep, Us as createWorkflow } from "../../run-registry-D5z2YVqJ.js";
1
+ export { _c as EventedExecutionEngine, zs as EventedRun, Bs as EventedWorkflow, Ks as StepExecutor, Gs as WorkflowEventProcessor, Vs as cloneStep, Hs as cloneWorkflow, Us as createStep, Ws as createWorkflow } from "../../run-registry-H2qdwHni.js";
@@ -1,11 +1,11 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-BTFPEkXT.cjs");
3
- const require_stream = require("../stream-D1OnBHDi.cjs");
2
+ const require_run_registry = require("../run-registry-BRO8xz9z.cjs");
3
+ const require_stream = require("../stream-nABk9CJK.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-DdDuQRoZ.cjs");
8
- const require_rehydrate = require("../rehydrate-Cps4MTph.cjs");
7
+ const require_validate = require("../validate-DP9DxgFq.cjs");
8
+ const require_rehydrate = require("../rehydrate-CBcjKKGA.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 cleanStepResult, Bc as ExecutionEngine, Cc as isProcessor, Cl as getEntryId, Dl as workflowTermination, Ec as evaluatePredicate, Fs as cloneWorkflow, Gc as createStepFromAgent, Is as createEventedWorkflow, Jc as RESUME_SNAPSHOT_POLL_INTERVAL_MS, Kc as createStepFromClassifier, Ks as computeScheduleDefinitionHash, Ls as createWorkflow, Mc as DefaultExecutionEngine, Qc as assertTimeTravelGraphMatchesSnapshot, Sc as createStep, Sl as waitForSuspendedSnapshot, Tc as predicateToCondition, Wc as createMappingStep, Xc as abortableSleep, Yc as RESUME_SNAPSHOT_WAIT_STATUSES, Zc as applyStateDelta, _l as validateStepInput, al as getRestartStartIndex, bc as Workflow, bl as validateStepStateData, cl as getStepIds, dl as isSingleStepEntry, el as createDeprecationProxy, fl as omitPriorCompletionFields, gl as setLongTimeout, hl as runCountDeprecationMessage, il as defineStateAccessors, ll as hydrateSerializedStepErrors, ml as resolveForeachConcurrency, nl as createTimeTravelExecutionParams, ol as getResumeLabelsByStepId, pl as omitPriorSuspensionFields, qc as createStepFromTool, rl as defineLazyWriter, sl as getSingleStepEntryId, tl as createRestartExecutionParams, ul as isEntryFinished, vl as validateStepRequestContext, wc as mapVariable, wl as getEntryWorkflow, xc as cloneStep, xl as validateStepSuspendData, yc as Run, yl as validateStepResumeData } from "../run-registry-D5z2YVqJ.js";
2
- import { Dt as getStepResult, Ot as getStepResultAsync } from "../stream-DB5efioT.js";
1
+ import { $c as assertTimeTravelGraphMatchesSnapshot, Cc as createStep, Cl as waitForSuspendedSnapshot, Dc as evaluatePredicate, Ec as predicateToCondition, Gc as createMappingStep, Is as cloneWorkflow, Jc as createStepFromTool, Kc as createStepFromAgent, Ls as createEventedWorkflow, Nc as DefaultExecutionEngine, Ol as workflowTermination, Qc as applyStateDelta, Rs as createWorkflow, Sc as cloneStep, Sl as validateStepSuspendData, Tc as mapVariable, Tl as getEntryWorkflow, Vc as ExecutionEngine, Xc as RESUME_SNAPSHOT_WAIT_STATUSES, Yc as RESUME_SNAPSHOT_POLL_INTERVAL_MS, Zc as abortableSleep, _l as setLongTimeout, al as defineStateAccessors, bc as Run, bl as validateStepResumeData, cl as getSingleStepEntryId, dl as isEntryFinished, el as cleanStepResult, fl as isSingleStepEntry, gl as runCountDeprecationMessage, hl as resolveForeachConcurrency, il as defineLazyWriter, ll as getStepIds, ml as omitPriorSuspensionFields, nl as createRestartExecutionParams, ol as getRestartStartIndex, pl as omitPriorCompletionFields, qc as createStepFromClassifier, qs as computeScheduleDefinitionHash, rl as createTimeTravelExecutionParams, sl as getResumeLabelsByStepId, tl as createDeprecationProxy, ul as hydrateSerializedStepErrors, vl as validateStepInput, wc as isProcessor, wl as getEntryId, xc as Workflow, xl as validateStepStateData, yl as validateStepRequestContext } from "../run-registry-H2qdwHni.js";
2
+ import { Dt as getStepResult, Ot as getStepResultAsync } from "../stream-DcYRY4r3.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-D6fUqYGz.js";
7
- import { n as entryOptionFields, r as toStorableGraph, t as rehydrateWorkflow } from "../rehydrate-Cw2Id-Uz.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-D4nqo7Ri.js";
7
+ import { n as entryOptionFields, r as toStorableGraph, t as rehydrateWorkflow } from "../rehydrate-Dp8f_1MN.js";
8
8
  // src/workflows/state-reader.ts
9
9
  const getStep = (state, stepId) => state.steps?.[stepId];
10
10
  const getFirstStepResult = (step) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/core",
3
- "version": "1.87.0-alpha.5",
3
+ "version": "1.87.0-alpha.6",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -968,16 +968,16 @@
968
968
  "zod-v3": "npm:zod@3.25.76",
969
969
  "@internal/ai-sdk-v4": "0.0.99",
970
970
  "@internal/ai-sdk-v5": "0.0.99",
971
+ "@internal/ai-v7": "0.0.99",
972
+ "@internal/ai-v6": "0.0.99",
971
973
  "@internal/auth": "0.0.40",
972
974
  "@internal/core": "0.1.4",
973
- "@internal/ai-v6": "0.0.99",
975
+ "@internal/deployer": "0.0.5",
974
976
  "@internal/lint": "0.0.152",
975
977
  "@internal/external-types": "0.0.102",
976
978
  "@internal/llm-recorder": "0.0.88",
977
- "@internal/deployer": "0.0.5",
978
- "@internal/types-builder": "0.0.127",
979
979
  "@internal/test-utils": "0.0.88",
980
- "@internal/ai-v7": "0.0.99",
980
+ "@internal/types-builder": "0.0.127",
981
981
  "@internal/voice": "0.0.48"
982
982
  },
983
983
  "engines": {