@mastra/core 1.86.0-alpha.7 → 1.86.0-alpha.8

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 (419) hide show
  1. package/dist/agent/agent.d.ts +60 -1
  2. package/dist/agent/agent.types.d.ts +30 -2
  3. package/dist/agent/durable/create-evented-agent.d.ts +6 -0
  4. package/dist/agent/durable/durable-agent.d.ts +1 -15
  5. package/dist/agent/durable/index.cjs +7 -14
  6. package/dist/agent/durable/index.js +7 -14
  7. package/dist/agent/index.cjs +2 -2
  8. package/dist/agent/index.js +2 -2
  9. package/dist/agent/types.d.ts +25 -0
  10. package/dist/agent-builder/ee/index.cjs +1 -1
  11. package/dist/agent-builder/ee/index.js +1 -1
  12. package/dist/agent-controller/index.cjs +1 -1
  13. package/dist/agent-controller/index.js +1 -1
  14. package/dist/{agent-controller-Cf3_IuY8.js → agent-controller-B7POPub5.js} +7 -7
  15. package/dist/{agent-controller-K5vHtqfO.cjs → agent-controller-DEPayioq.cjs} +7 -7
  16. package/dist/background-tasks/index.cjs +1 -1
  17. package/dist/background-tasks/index.js +1 -1
  18. package/dist/{background-tasks-DqnQMfuf.cjs → background-tasks-7iftnRK_.cjs} +1 -1
  19. package/dist/{background-tasks-BgpX1P_s.js → background-tasks-Cv1ecD6S.js} +1 -1
  20. package/dist/browser/index.cjs +2 -2
  21. package/dist/browser/index.js +2 -2
  22. package/dist/{builder-D8Osghdo.cjs → builder-DuJBbQDH.cjs} +2 -2
  23. package/dist/{builder-x295GDL6.js → builder-Gg-xnX_E.js} +2 -2
  24. package/dist/capabilities/302ai.json +194 -194
  25. package/dist/capabilities/abliteratedllm.json +32 -32
  26. package/dist/capabilities/abliteration-ai.json +11 -11
  27. package/dist/capabilities/above.json +12 -12
  28. package/dist/capabilities/adaption.json +13 -13
  29. package/dist/capabilities/adzuki.json +32 -32
  30. package/dist/capabilities/agentrouter.json +6 -6
  31. package/dist/capabilities/agnes.json +2 -2
  32. package/dist/capabilities/ai-router.json +5 -5
  33. package/dist/capabilities/aiand.json +23 -23
  34. package/dist/capabilities/aigrow.json +11 -11
  35. package/dist/capabilities/aimlapi.json +144 -144
  36. package/dist/capabilities/aixy.json +21 -21
  37. package/dist/capabilities/aki-io.json +15 -15
  38. package/dist/capabilities/alibaba-cn.json +79 -79
  39. package/dist/capabilities/alibaba-coding-plan-cn.json +2 -2
  40. package/dist/capabilities/alibaba-coding-plan.json +2 -2
  41. package/dist/capabilities/alibaba-token-plan-cn.json +52 -52
  42. package/dist/capabilities/alibaba-token-plan.json +53 -53
  43. package/dist/capabilities/alibaba.json +70 -70
  44. package/dist/capabilities/ambient.json +15 -15
  45. package/dist/capabilities/amd.json +9 -9
  46. package/dist/capabilities/anthropic.json +48 -48
  47. package/dist/capabilities/anyapi.json +12 -12
  48. package/dist/capabilities/apiko.json +4 -4
  49. package/dist/capabilities/arcee.json +10 -10
  50. package/dist/capabilities/augure.json +6 -6
  51. package/dist/capabilities/auriko.json +18 -18
  52. package/dist/capabilities/bailing.json +5 -5
  53. package/dist/capabilities/baseten.json +26 -26
  54. package/dist/capabilities/bee.json +4 -4
  55. package/dist/capabilities/berget.json +6 -6
  56. package/dist/capabilities/bothub.json +14 -14
  57. package/dist/capabilities/boundless.json +41 -41
  58. package/dist/capabilities/bumo.json +39 -39
  59. package/dist/capabilities/byteplus.json +34 -34
  60. package/dist/capabilities/cheapaimodel.json +7 -7
  61. package/dist/capabilities/cheapest-token.json +33 -33
  62. package/dist/capabilities/chutes.json +10 -10
  63. package/dist/capabilities/cline-pass.json +35 -35
  64. package/dist/capabilities/cloudcode.json +8 -8
  65. package/dist/capabilities/cloudferro-sherlock.json +4 -4
  66. package/dist/capabilities/cloudflare-workers-ai.json +31 -31
  67. package/dist/capabilities/commandcode.json +148 -148
  68. package/dist/capabilities/concentrate.json +277 -253
  69. package/dist/capabilities/cortecs.json +113 -113
  70. package/dist/capabilities/crossmodel.json +172 -172
  71. package/dist/capabilities/crusoe.json +9 -9
  72. package/dist/capabilities/daoxe.json +8 -8
  73. package/dist/capabilities/databricks.json +54 -54
  74. package/dist/capabilities/deepinfra.json +95 -86
  75. package/dist/capabilities/deepseek.json +3 -3
  76. package/dist/capabilities/digitalocean.json +117 -117
  77. package/dist/capabilities/dothoosh.json +35 -35
  78. package/dist/capabilities/doubleword.json +29 -29
  79. package/dist/capabilities/edenai.json +456 -456
  80. package/dist/capabilities/empiriolabs.json +174 -174
  81. package/dist/capabilities/engy.json +20 -20
  82. package/dist/capabilities/entrim.json +6 -6
  83. package/dist/capabilities/evroc.json +10 -10
  84. package/dist/capabilities/ezkielyna.json +10 -10
  85. package/dist/capabilities/fastrouter.json +77 -77
  86. package/dist/capabilities/fireworks-ai.json +60 -60
  87. package/dist/capabilities/freemodel.json +17 -17
  88. package/dist/capabilities/frogbot.json +93 -93
  89. package/dist/capabilities/gisoo.json +19 -19
  90. package/dist/capabilities/gmicloud.json +19 -19
  91. package/dist/capabilities/google.json +59 -59
  92. package/dist/capabilities/graphn.json +9 -9
  93. package/dist/capabilities/greenpt.json +34 -34
  94. package/dist/capabilities/groq.json +8 -8
  95. package/dist/capabilities/helicone.json +83 -83
  96. package/dist/capabilities/hopper.json +2 -2
  97. package/dist/capabilities/hostinger-router.json +9 -9
  98. package/dist/capabilities/hpc-ai.json +11 -11
  99. package/dist/capabilities/huawei-maas.json +13 -13
  100. package/dist/capabilities/hubris.json +33 -33
  101. package/dist/capabilities/huggingface.json +60 -51
  102. package/dist/capabilities/humain.json +2 -2
  103. package/dist/capabilities/hyper.json +27 -27
  104. package/dist/capabilities/impossibl.json +118 -118
  105. package/dist/capabilities/inception.json +3 -3
  106. package/dist/capabilities/inceptron.json +8 -8
  107. package/dist/capabilities/inco.json +4 -4
  108. package/dist/capabilities/infer.json +15 -15
  109. package/dist/capabilities/inferall.json +10 -10
  110. package/dist/capabilities/inference-coop.json +12 -12
  111. package/dist/capabilities/inferenceapis.json +20 -20
  112. package/dist/capabilities/inferris.json +4 -4
  113. package/dist/capabilities/infersia.json +8 -8
  114. package/dist/capabilities/inferx.json +3 -3
  115. package/dist/capabilities/infomaniak.json +4 -4
  116. package/dist/capabilities/io-net.json +4 -4
  117. package/dist/capabilities/iteracompute.json +63 -63
  118. package/dist/capabilities/jad-ai.json +3 -3
  119. package/dist/capabilities/jalapeno.json +11 -11
  120. package/dist/capabilities/jiekou.json +63 -63
  121. package/dist/capabilities/joingonka.json +4 -4
  122. package/dist/capabilities/jzstoken.json +52 -52
  123. package/dist/capabilities/keln.json +26 -26
  124. package/dist/capabilities/kenari.json +127 -127
  125. package/dist/capabilities/kilo.json +604 -628
  126. package/dist/capabilities/kimi-code-plan-cn.json +4 -4
  127. package/dist/capabilities/kimi-code-plan-global.json +4 -4
  128. package/dist/capabilities/kitani.json +6 -6
  129. package/dist/capabilities/klavo.json +26 -26
  130. package/dist/capabilities/korouter.json +34 -34
  131. package/dist/capabilities/kunavo.json +4 -4
  132. package/dist/capabilities/liquid.json +10 -10
  133. package/dist/capabilities/lithosai.json +2 -2
  134. package/dist/capabilities/llmgateway-providers.json +934 -907
  135. package/dist/capabilities/llmgateway.json +339 -339
  136. package/dist/capabilities/llmtr.json +27 -27
  137. package/dist/capabilities/longcat.json +2 -2
  138. package/dist/capabilities/lowrouter.json +53 -53
  139. package/dist/capabilities/lyceum.json +8 -8
  140. package/dist/capabilities/melious.json +13 -13
  141. package/dist/capabilities/merge-gateway.json +284 -284
  142. package/dist/capabilities/meta.json +11 -11
  143. package/dist/capabilities/minimax-cn-coding-plan.json +6 -6
  144. package/dist/capabilities/minimax-coding-plan.json +6 -6
  145. package/dist/capabilities/mistral.json +22 -22
  146. package/dist/capabilities/mixlayer.json +3 -3
  147. package/dist/capabilities/modal.json +13 -13
  148. package/dist/capabilities/model-oracle-ai.json +23 -23
  149. package/dist/capabilities/modelis.json +21 -21
  150. package/dist/capabilities/modelscope.json +2 -2
  151. package/dist/capabilities/modular.json +10 -10
  152. package/dist/capabilities/moneo.json +14 -14
  153. package/dist/capabilities/moonshotai-cn.json +7 -7
  154. package/dist/capabilities/moonshotai.json +7 -7
  155. package/dist/capabilities/morph.json +15 -15
  156. package/dist/capabilities/munito-eu.json +8 -8
  157. package/dist/capabilities/munito.json +10 -10
  158. package/dist/capabilities/nan.json +25 -25
  159. package/dist/capabilities/nano-gpt.json +570 -570
  160. package/dist/capabilities/nearai.json +87 -87
  161. package/dist/capabilities/nebius.json +41 -32
  162. package/dist/capabilities/neon.json +132 -132
  163. package/dist/capabilities/neuralwatt.json +38 -38
  164. package/dist/capabilities/novita-ai.json +153 -153
  165. package/dist/capabilities/nvidia.json +28 -28
  166. package/dist/capabilities/obscurify.json +33 -33
  167. package/dist/capabilities/oci.json +6 -6
  168. package/dist/capabilities/ofox.json +322 -322
  169. package/dist/capabilities/ollama-cloud.json +52 -52
  170. package/dist/capabilities/openai.json +47 -47
  171. package/dist/capabilities/opencode-go.json +79 -78
  172. package/dist/capabilities/openreason.json +5 -5
  173. package/dist/capabilities/openrouter.json +520 -530
  174. package/dist/capabilities/opper.json +30 -24
  175. package/dist/capabilities/orcarouter.json +227 -227
  176. package/dist/capabilities/outerlabs.json +28 -28
  177. package/dist/capabilities/ovhcloud.json +8 -8
  178. package/dist/capabilities/pareto.json +5 -5
  179. package/dist/capabilities/perplexity-agent.json +64 -64
  180. package/dist/capabilities/perplexity.json +2 -2
  181. package/dist/capabilities/phala.json +36 -36
  182. package/dist/capabilities/pioneer.json +30 -30
  183. package/dist/capabilities/poe.json +109 -109
  184. package/dist/capabilities/powerspring.json +10 -10
  185. package/dist/capabilities/primalabs.json +10 -10
  186. package/dist/capabilities/prime.json +116 -99
  187. package/dist/capabilities/privatemode-ai.json +10 -10
  188. package/dist/capabilities/proxystacks.json +7 -7
  189. package/dist/capabilities/qiniu-ai.json +12 -12
  190. package/dist/capabilities/refuseless.json +8 -8
  191. package/dist/capabilities/regolo-ai.json +8 -8
  192. package/dist/capabilities/requesty.json +172 -172
  193. package/dist/capabilities/ruapi.json +21 -21
  194. package/dist/capabilities/runcrate.json +15 -15
  195. package/dist/capabilities/runinfra.json +20 -20
  196. package/dist/capabilities/sakana.json +7 -7
  197. package/dist/capabilities/sambanova.json +4 -4
  198. package/dist/capabilities/sandbase.json +30 -30
  199. package/dist/capabilities/sarvam.json +5 -5
  200. package/dist/capabilities/scaleway.json +17 -17
  201. package/dist/capabilities/scnet-token-plan.json +8 -8
  202. package/dist/capabilities/scx-ai.json +26 -26
  203. package/dist/capabilities/sensenova.json +7 -7
  204. package/dist/capabilities/siliconflow-cn.json +45 -45
  205. package/dist/capabilities/siliconflow.json +59 -59
  206. package/dist/capabilities/snowflake-cortex.json +25 -25
  207. package/dist/capabilities/sokkan.json +9 -9
  208. package/dist/capabilities/sparrowcodes.json +23 -23
  209. package/dist/capabilities/standardcompute.json +103 -103
  210. package/dist/capabilities/steadyrouter.json +39 -39
  211. package/dist/capabilities/stepfun-ai-step-plan.json +6 -6
  212. package/dist/capabilities/stepfun-ai.json +6 -6
  213. package/dist/capabilities/stepfun-step-plan.json +6 -6
  214. package/dist/capabilities/stepfun.json +6 -6
  215. package/dist/capabilities/stepping-stone.json +13 -13
  216. package/dist/capabilities/subconscious.json +2 -2
  217. package/dist/capabilities/synthetic.json +11 -11
  218. package/dist/capabilities/synthorai.json +27 -27
  219. package/dist/capabilities/teamorouter.json +30 -30
  220. package/dist/capabilities/teapot-router.json +13 -13
  221. package/dist/capabilities/tencent-token-plan.json +24 -24
  222. package/dist/capabilities/tencent-tokenhub.json +9 -9
  223. package/dist/capabilities/tensorx.json +45 -45
  224. package/dist/capabilities/tenstorrent.json +6 -6
  225. package/dist/capabilities/the-grid-ai.json +24 -24
  226. package/dist/capabilities/thinkingmachines.json +59 -59
  227. package/dist/capabilities/tinfoil.json +14 -14
  228. package/dist/capabilities/toapis.json +2 -2
  229. package/dist/capabilities/togetherai.json +53 -53
  230. package/dist/capabilities/tokengo.json +25 -25
  231. package/dist/capabilities/tokenify.json +10 -10
  232. package/dist/capabilities/trustedrouter.json +7 -7
  233. package/dist/capabilities/trustedtokens.json +16 -16
  234. package/dist/capabilities/umans-ai-coding-plan.json +15 -15
  235. package/dist/capabilities/umans-ai.json +8 -8
  236. package/dist/capabilities/uncensuredai.json +4 -4
  237. package/dist/capabilities/unrestricted.json +4 -4
  238. package/dist/capabilities/uplinkswitch.json +20 -20
  239. package/dist/capabilities/upstage.json +6 -6
  240. package/dist/capabilities/vancine.json +22 -22
  241. package/dist/capabilities/vercel.json +569 -577
  242. package/dist/capabilities/vivgrid.json +80 -80
  243. package/dist/capabilities/volcengine-coding-plan.json +26 -26
  244. package/dist/capabilities/volcengine.json +30 -30
  245. package/dist/capabilities/vultr.json +25 -25
  246. package/dist/capabilities/wafer.ai.json +18 -18
  247. package/dist/capabilities/wallaby.json +5 -5
  248. package/dist/capabilities/wally.json +8 -8
  249. package/dist/capabilities/wandb.json +20 -20
  250. package/dist/capabilities/watt.json +20 -20
  251. package/dist/capabilities/xai.json +6 -6
  252. package/dist/capabilities/xiaomi.json +5 -5
  253. package/dist/capabilities/xpersona.json +12 -12
  254. package/dist/capabilities/xxapi.json +33 -33
  255. package/dist/capabilities/zai-coding-plan.json +9 -9
  256. package/dist/capabilities/zai.json +27 -27
  257. package/dist/capabilities/zenifra.json +23 -23
  258. package/dist/capabilities/zenmux.json +192 -192
  259. package/dist/capabilities/zerogpu.json +10 -10
  260. package/dist/capabilities/zhipuai-coding-plan.json +7 -7
  261. package/dist/capabilities/zhipuai.json +26 -26
  262. package/dist/capabilities/zro.json +6 -6
  263. package/dist/channels/index.cjs +2 -2
  264. package/dist/channels/index.js +2 -2
  265. package/dist/{channels-Dx4jiXeK.js → channels-BRVCOutx.js} +1 -1
  266. package/dist/{channels-q6qnuRNV.cjs → channels-MjTA9bFp.cjs} +1 -1
  267. package/dist/coding-agent/index.cjs +2 -2
  268. package/dist/coding-agent/index.js +2 -2
  269. package/dist/datasets/dataset.d.ts +13 -6
  270. package/dist/datasets/experiment/durable.d.ts +16 -0
  271. package/dist/datasets/experiment/index.d.ts +2 -1
  272. package/dist/datasets/experiment/item.d.ts +26 -4
  273. package/dist/datasets/experiment/retries.d.ts +18 -0
  274. package/dist/datasets/experiment/types.d.ts +18 -0
  275. package/dist/datasets/experiment/workflow-id.d.ts +7 -0
  276. package/dist/datasets/experiment/workflow.d.ts +74 -0
  277. package/dist/datasets/index.cjs +3 -2
  278. package/dist/datasets/index.d.ts +2 -1
  279. package/dist/datasets/index.js +3 -3
  280. package/dist/docs/SKILL.md +2 -2
  281. package/dist/docs/assets/SOURCE_MAP.json +790 -790
  282. package/dist/docs/references/docs-deployment-workers.md +1 -1
  283. package/dist/docs/references/docs-evals-experiments.md +29 -1
  284. package/dist/docs/references/docs-harness-durable-agents.md +9 -5
  285. package/dist/docs/references/docs-knowledge-agents-and-tools.md +1 -0
  286. package/dist/docs/references/docs-knowledge-load-your-content.md +1 -1
  287. package/dist/docs/references/docs-mastra-platform-observability-overview.md +1 -1
  288. package/dist/docs/references/docs-server-pubsub.md +51 -8
  289. package/dist/docs/references/docs-signals-running-across-processes.md +2 -0
  290. package/dist/docs/references/docs-workflows-overview.md +1 -1
  291. package/dist/docs/references/docs-workflows-scheduled-workflows.md +1 -1
  292. package/dist/docs/references/integrations-channels-slack.md +4 -2
  293. package/dist/docs/references/integrations.md +6 -0
  294. package/dist/docs/references/reference-agents-agent.md +2 -0
  295. package/dist/docs/references/reference-agents-channels.md +116 -27
  296. package/dist/docs/references/reference-agents-durable-agent.md +2 -0
  297. package/dist/docs/references/reference-datasets-runExperimentItem.md +13 -1
  298. package/dist/docs/references/reference-datasets-startExperimentAsync.md +3 -1
  299. package/dist/docs/references/reference-editor-mastra-editor.md +3 -1
  300. package/dist/docs/references/reference-knowledge-knowledge-class.md +2 -2
  301. package/dist/docs/references/reference-knowledge-knowledge-tools.md +43 -20
  302. package/dist/docs/references/reference-processors-moderation-processor.md +2 -2
  303. package/dist/docs/references/reference-pubsub-base.md +5 -1
  304. package/dist/docs/references/reference-pubsub-event-emitter.md +2 -0
  305. package/dist/docs/references/reference-pubsub-redis-streams.md +1 -1
  306. package/dist/docs/references/reference-pubsub-unix-socket-pubsub.md +2 -0
  307. package/dist/docs/references/reference-streaming-ChunkType.md +1 -1
  308. package/dist/docs/references/reference-workers-overview.md +1 -1
  309. package/dist/docs/references/reference-workflows-run-methods-start.md +23 -0
  310. package/dist/docs/references/reference-workflows-run-methods-timeTravel.md +4 -0
  311. package/dist/docs/references/reference-workflows-run.md +1 -1
  312. package/dist/evals/index.cjs +1 -1
  313. package/dist/evals/index.js +1 -1
  314. package/dist/evals/scoreTraces/index.cjs +1 -1
  315. package/dist/evals/scoreTraces/index.js +1 -1
  316. package/dist/events/caching-pubsub.d.ts +1 -0
  317. package/dist/events/event-emitter/index.d.ts +12 -5
  318. package/dist/events/index.cjs +15 -1
  319. package/dist/events/index.js +15 -1
  320. package/dist/events/pubsub.d.ts +29 -0
  321. package/dist/events/reach.d.ts +11 -0
  322. package/dist/events/unix-socket-pubsub.d.ts +14 -0
  323. package/dist/harness/index.cjs +1 -1
  324. package/dist/harness/index.js +1 -1
  325. package/dist/index.cjs +1 -1
  326. package/dist/index.js +1 -1
  327. package/dist/knowledge/index.cjs +1 -1
  328. package/dist/knowledge/index.js +1 -1
  329. package/dist/llm/index.cjs +3 -3
  330. package/dist/llm/index.js +3 -3
  331. package/dist/llm/model/provider-types.generated.d.ts +8092 -8089
  332. package/dist/llm/model/shared.types.d.ts +31 -0
  333. package/dist/{llm-DnXK3Pmw.js → llm-Djd8Qzi0.js} +2 -2
  334. package/dist/{llm-CsQuqKPc.cjs → llm-DmUucguC.cjs} +2 -2
  335. package/dist/loop/index.cjs +2 -2
  336. package/dist/loop/index.js +2 -2
  337. package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +2 -2
  338. package/dist/{manager-BsghM-UL.js → manager-CO_Xz2zR.js} +460 -94
  339. package/dist/{manager-DwFnIrI6.cjs → manager-D27PkIPo.cjs} +476 -92
  340. package/dist/mastra/index.cjs +1 -1
  341. package/dist/mastra/index.d.ts +13 -0
  342. package/dist/mastra/index.js +1 -1
  343. package/dist/{mastra-B8i1UDZs.js → mastra-Ch00nEAJ.js} +31 -16
  344. package/dist/{mastra-Cn5NC6Es.cjs → mastra-qsVWpOTi.cjs} +31 -16
  345. package/dist/memory/index.cjs +2 -2
  346. package/dist/memory/index.js +2 -2
  347. package/dist/{model-CsOcWMUt.js → model-CW-mfGYA.js} +1 -1
  348. package/dist/{model-CNPfry_X.cjs → model-Do6DTJoj.cjs} +1 -1
  349. package/dist/{netlify-C-83Fxus.cjs → netlify-DU32SDT6.cjs} +1 -1
  350. package/dist/{netlify-C-OpNSGp.js → netlify-DZSAbdve.js} +1 -1
  351. package/dist/notifications/index.cjs +1 -1
  352. package/dist/notifications/index.js +1 -1
  353. package/dist/{output-helpers-JL-HeCbT.cjs → output-helpers-1Zu4Vt9C.cjs} +68 -25
  354. package/dist/{output-helpers-D4II19No.js → output-helpers-CedRCE17.js} +69 -26
  355. package/dist/processor-provider/index.cjs +1 -1
  356. package/dist/processor-provider/index.js +1 -1
  357. package/dist/processors/index.cjs +2 -2
  358. package/dist/processors/index.js +2 -2
  359. package/dist/{provider-registry-RZ8EgSe8.js → provider-registry-deA0x-Gd.js} +22467 -22456
  360. package/dist/{provider-registry-9O-H9osy.cjs → provider-registry-zGezZVsL.cjs} +22467 -22456
  361. package/dist/provider-registry.json +22423 -22408
  362. package/dist/{registry-generator-DxCX-FiO.cjs → registry-generator-BkQ1AxZn.cjs} +1 -1
  363. package/dist/{registry-generator-e8sltJls.js → registry-generator-VvBfOKAD.js} +1 -1
  364. package/dist/{rehydrate-D3fPgJwp.js → rehydrate-BjLV643n.js} +2 -2
  365. package/dist/{rehydrate-B-wrAN7C.cjs → rehydrate-DDYFpQsV.cjs} +2 -2
  366. package/dist/relevance/index.cjs +2 -2
  367. package/dist/relevance/index.js +2 -2
  368. package/dist/{run-registry-5_LQBGn_.cjs → run-registry-5Suldxz3.cjs} +519 -71
  369. package/dist/{run-registry-DC03XLeZ.js → run-registry-CGRPldLH.js} +519 -71
  370. package/dist/storage/domains/knowledge/base.d.ts +5 -0
  371. package/dist/storage/domains/knowledge/inmemory.d.ts +1 -0
  372. package/dist/storage/domains/knowledge/pages.d.ts +24 -7
  373. package/dist/storage/index.cjs +2 -2
  374. package/dist/storage/index.js +2 -2
  375. package/dist/stream/base/output.d.ts +42 -15
  376. package/dist/stream/index.cjs +2 -2
  377. package/dist/stream/index.js +2 -2
  378. package/dist/stream/types.d.ts +19 -0
  379. package/dist/{stream-CJUm6EAH.js → stream-Dpwx0whf.js} +1 -1
  380. package/dist/{stream-4aNIw_TQ.cjs → stream-Dvy_0o14.cjs} +1 -1
  381. package/dist/test-utils/llm-mock.cjs +1 -1
  382. package/dist/test-utils/llm-mock.js +1 -1
  383. package/dist/tool-loop-agent/index.cjs +1 -1
  384. package/dist/tool-loop-agent/index.js +1 -1
  385. package/dist/{tool-loop-agent-FEEwHfmg.js → tool-loop-agent-PbWrEj1k.js} +3 -3
  386. package/dist/{tool-loop-agent-Dn0QCB9n.cjs → tool-loop-agent-UxOv3FoK.cjs} +3 -3
  387. package/dist/tools/types.d.ts +27 -1
  388. package/dist/{utils-DY01hxVd.cjs → utils-BbMTlyBO.cjs} +1 -1
  389. package/dist/{utils-Bd_y1_a-.js → utils-BnNi1BYM.js} +1 -1
  390. package/dist/utils.cjs +1 -1
  391. package/dist/utils.js +1 -1
  392. package/dist/{validate-CX0yQo_q.js → validate-HSBcm96b.js} +1 -1
  393. package/dist/{validate-CuB_1Zd3.cjs → validate-Skps-cM3.cjs} +1 -1
  394. package/dist/vector/index.cjs +1 -1
  395. package/dist/vector/index.js +1 -1
  396. package/dist/worker/index.cjs +1 -1
  397. package/dist/worker/index.js +1 -1
  398. package/dist/{worker-GsGIxPMa.cjs → worker-BE-0DyKL.cjs} +2 -2
  399. package/dist/{worker-DSEfMPmq.js → worker-BKrKHZzU.js} +2 -2
  400. package/dist/{worker-CbaSmip-.cjs → worker-BNS5A3qP.cjs} +2 -2
  401. package/dist/{worker-B80xkcKG.js → worker-DehaD4qD.js} +2 -2
  402. package/dist/{workflow-CnBPXTpv.cjs → workflow-BjUTwaK9.cjs} +4 -4
  403. package/dist/{workflow-CZHY_C85.js → workflow-Bvw6yDjc.js} +4 -4
  404. package/dist/workflows/builder/index.cjs +1 -1
  405. package/dist/workflows/builder/index.js +1 -1
  406. package/dist/workflows/evented/index.cjs +1 -1
  407. package/dist/workflows/evented/index.js +1 -1
  408. package/dist/workflows/evented/setup-warning.d.ts +18 -0
  409. package/dist/workflows/evented/workflow-event-processor/run-status.d.ts +37 -0
  410. package/dist/workflows/evented/workflow.d.ts +10 -0
  411. package/dist/workflows/index.cjs +4 -4
  412. package/dist/workflows/index.js +4 -4
  413. package/dist/workflows/workflow.d.ts +6 -1
  414. package/dist/workspace/index.cjs +1 -1
  415. package/dist/workspace/index.js +1 -1
  416. package/dist/{workspace-D7TIleIt.js → workspace-C05xDH60.js} +160 -7
  417. package/dist/{workspace-D2drutNg.cjs → workspace-D1OzzlLw.cjs} +160 -7
  418. package/package.json +6 -6
  419. package/src/llm/model/provider-types.generated.d.ts +8092 -8089
@@ -4,13 +4,13 @@
4
4
 
5
5
  # Knowledge tools
6
6
 
7
- Knowledge gives agents six tools. Which ones an agent gets depends on the Knowledge `tools` and `pinnedContext` options, or on the groups passed to [`createTools()`](https://mastra.ai/reference/knowledge/knowledge-class). See [Agents and tools](https://mastra.ai/docs/knowledge/agents-and-tools) for how agents use them.
7
+ Knowledge gives agents seven tools. Which ones an agent gets depends on the Knowledge `tools` and `pinnedContext` options, or on the groups passed to [`createTools()`](https://mastra.ai/reference/knowledge/knowledge-class). See [Agents and tools](https://mastra.ai/docs/knowledge/agents-and-tools) for how agents use them.
8
8
 
9
- | Group | Tools | Enabled by |
10
- | ----- | ------------------------------------------------------ | ----------------------------------------- |
11
- | Read | `knowledge_list`, `knowledge_search`, `knowledge_read` | `tools: true` or `tools: { read: true }` |
12
- | Write | `knowledge_page`, `knowledge_note` | `tools: true` or `tools: { write: true }` |
13
- | Pins | `knowledge_pin` | `pinnedContext` |
9
+ | Group | Tools | Enabled by |
10
+ | ----- | ---------------------------------------------------------------------------- | ----------------------------------------- |
11
+ | Read | `knowledge_list`, `knowledge_search`, `knowledge_read`, `knowledge_activity` | `tools: true` or `tools: { read: true }` |
12
+ | Write | `knowledge_page`, `knowledge_note` | `tools: true` or `tools: { write: true }` |
13
+ | Pins | `knowledge_pin` | `pinnedContext` |
14
14
 
15
15
  Every tool acts with the run's scopes and the roles Knowledge declarations give them. A run that holds no scopes fails with:
16
16
 
@@ -140,6 +140,29 @@ A `range` is `{ start: { line, col? }, end: { line, col? } }`. Lines start at 1.
140
140
  knowledge_read: read notes or mentionedIn on their own, without outline, section, match or from.
141
141
  ```
142
142
 
143
+ ## `knowledge_activity`
144
+
145
+ Lists what changed in Knowledge over a period, newest first, so an agent can answer questions like "what changed since Q3?". It covers page creates, edits, moves, merges and deletes, and notes added, restamped, removed or restored. It shows only changes to pages and notes the run can read now.
146
+
147
+ **since** (`string`): Changes at or after this time: a date such as 2026-07-01 (UTC midnight), or a date-time with a zone such as 2026-07-01T09:30:00Z or 2026-07-01T09:30:00+02:00. A date-time without a zone, or a date that does not exist, is refused. Give since, until or both.
148
+
149
+ **until** (`string`): Changes before this time, in the same formats.
150
+
151
+ **from** (`string`): Only changes to this page, or to pages in this scope: a page reference.
152
+
153
+ **limit** (`number`): Maximum changes, 1 to 100. (Default: `25`)
154
+
155
+ **cursor** (`string`): The previous result's cursor. Pass the same since, until and from; a cursor from other ones is refused.
156
+
157
+ Returns `{ from?, changes, more?, cursor? }`. Each change is `{ at, action, page, author, note? }`:
158
+
159
+ - `page` is `{ ref, name }` with the page's current name, plus `deleted: true` when it has since been deleted.
160
+ - `note`, on a note change, is `{ ref, text, current: true }` with the note's **current** text, not its text when the change happened. A note that has since been removed shows `{ ref, removed: true }` and no text.
161
+
162
+ A change to a page or note the run can no longer read is left out. A result stops at `limit` changes, at the read cap, or after scanning eight batches, whichever comes first. The read cap never excludes the first readable change in those batches. When it stops early, `more` is `true` and `cursor` continues after the last change it consumed, including changes left out because they became unreadable. A result can contain no changes and still have `more: true` when it reaches the scan cap. Continue with its cursor to read older changes. A single note too large for the read cap comes back cut short with `truncated: true`.
163
+
164
+ The tool needs a store that filters activity by date: the in-memory store, LibSQL and PostgreSQL. On other stores it refuses rather than return the whole history.
165
+
143
166
  ## `knowledge_page`
144
167
 
145
168
  Creates, edits, moves, merges and deletes pages. `scope` only names the destination: the home scope on create, the target scope on move. Edits and merges take no `scope`, and a delete ignores it. All three act on the page's own scope.
@@ -270,20 +293,20 @@ Pin audience "project:x" does not match a declared scope type.
270
293
 
271
294
  ## What each operation needs
272
295
 
273
- | Operation | Role | On |
274
- | ---------------------------- | ------------- | ------------------------------------------------------ |
275
- | Search, read, list | `viewer` | The page's scope |
276
- | Create a page | `contributor` | `scope` |
277
- | Edit a page | `editor` | The page's scope |
278
- | Move within a scope | `editor` | The page's scope |
279
- | Move to another scope | `owner` | Both scopes |
280
- | Merge | `owner` | The page that goes away |
281
- | | `editor` | The page that stays, in the same scope |
282
- | | `owner` | The page that stays, in another scope |
283
- | Delete a page | `owner` | The page's scope |
284
- | Add a note | `contributor` | The page's scope and each stamp |
285
- | Restamp, remove a note | `editor` | The page's scope (and `contributor` on each new stamp) |
286
- | Pin, unpin a page or listing | `editor` | The page's scope, plus authority over each audience |
296
+ | Operation | Role | On |
297
+ | ---------------------------- | ------------- | ------------------------------------------------------------ |
298
+ | Search, read, list, activity | `viewer` | The page's scope (and, for a note change, the note's stamps) |
299
+ | Create a page | `contributor` | `scope` |
300
+ | Edit a page | `editor` | The page's scope |
301
+ | Move within a scope | `editor` | The page's scope |
302
+ | Move to another scope | `owner` | Both scopes |
303
+ | Merge | `owner` | The page that goes away |
304
+ | | `editor` | The page that stays, in the same scope |
305
+ | | `owner` | The page that stays, in another scope |
306
+ | Delete a page | `owner` | The page's scope |
307
+ | Add a note | `contributor` | The page's scope and each stamp |
308
+ | Restamp, remove a note | `editor` | The page's scope (and `contributor` on each new stamp) |
309
+ | Pin, unpin a page or listing | `editor` | The page's scope, plus authority over each audience |
287
310
 
288
311
  A call that's in reach but needs a stronger role names the role it needs:
289
312
 
@@ -52,9 +52,9 @@ const processor = new ModerationProcessor({
52
52
 
53
53
  **name** (`string`): Processor display name, always 'Moderation'
54
54
 
55
- **processInput** (`(args: { messages: MastraDBMessage[]; abort: (reason?: string) => never; tracingContext?: TracingContext }) => Promise<MastraDBMessage[]>`): Processes input messages to moderate content before sending to LLM
55
+ **processInput** (`(args: { messages: MastraDBMessage[]; abort: (reason?: string) => never; requestContext?: RequestContext; tracingContext?: TracingContext }) => Promise<MastraDBMessage[]>`): Processes input messages to moderate content before sending to LLM. requestContext is passed to the moderation agent, including when it resolves a dynamic model.
56
56
 
57
- **processOutputStream** (`(args: { part: ChunkType; streamParts: ChunkType[]; state: Record<string, any>; abort: (reason?: string) => never; tracingContext?: TracingContext }) => Promise<ChunkType | null | undefined>`): Processes streaming output parts to moderate content during streaming
57
+ **processOutputStream** (`(args: { part: ChunkType; streamParts: ChunkType[]; state: Record<string, any>; abort: (reason?: string) => never; writer?: unknown; requestContext?: RequestContext; tracingContext?: TracingContext }) => Promise<ChunkType | null | undefined>`): Processes streaming output parts to moderate content during streaming. When bufferSize is greater than 0 and a writer is passed, text deltas are buffered and checked together. The method returns null while text is buffered and returns the flushed text once a sentence ends or the buffer fills. With strategy: "filter", it also returns null when flushed text is flagged, and that text is dropped. When a non-text part such as finish arrives, the method flushes the buffer. If the flush returns text, the method returns that text and holds the non-text part so the processor runner can reprocess it next. If the buffer is empty or the filter drops the flushed text, the non-text part is returned directly. The runner also flushes any text still buffered when the stream ends. Agents handle this for you. If you call the method directly, reprocess held parts the same way, or leave bufferSize at 0. Without a writer, each text delta is checked separately. requestContext is passed to the moderation agent.
58
58
 
59
59
  ## Extended usage example
60
60
 
@@ -10,6 +10,8 @@ Mastra uses pub/sub internally for workflow event processing, streaming, and cro
10
10
 
11
11
  For built-in implementations, see [`EventEmitterPubSub`](https://mastra.ai/reference/pubsub/event-emitter), [`UnixSocketPubSub`](https://mastra.ai/reference/pubsub/unix-socket-pubsub), [`CachingPubSub`](https://mastra.ai/reference/pubsub/caching-pubsub), [`RedisStreamsPubSub`](https://mastra.ai/reference/pubsub/redis-streams), and [`GoogleCloudPubSub`](https://mastra.ai/reference/pubsub/google-cloud-pubsub).
12
12
 
13
+ Mastra decides how to behave from an implementation's [properties](#properties), not from its class. Override the ones that describe your transport.
14
+
13
15
  ## Usage example
14
16
 
15
17
  Extend `PubSub` and implement the four abstract methods to add a custom backend.
@@ -172,7 +174,9 @@ await pubsub.subscribeFromOffset('my-topic', 42, event => {
172
174
 
173
175
  **supportsOffsets** (`boolean`): Whether subscribeFromOffset() honors numeric offsets. Defaults to false. A non-zero offset on an unsupported implementation falls back to replay subscription and emits a diagnostic warning when a logger is configured.
174
176
 
175
- **redeliversUnacked** (`boolean`): Whether an event delivered to a consumer that neither acks nor nacks it, for example because its process stopped, is delivered again to another consumer of the same group once the broker considers it abandoned. Defaults to false. Workflow recovery doesn't restart evented runs on a pubsub that returns true, so return true only when the broker does this, and only after 30 seconds or more.
177
+ **deliversAcrossProcesses** (`boolean`): Whether a published event can reach a subscriber in another process. Defaults to true, so Mastra coordinates runs with other processes unless the implementation says otherwise. Return false only when every subscriber lives in the publishing process, as EventEmitterPubSub does.
178
+
179
+ **redeliversUnacked** (`boolean`): Whether an event delivered to a consumer that neither acks nor nacks it, for example because its process stopped, is delivered again to another consumer of the same group once the broker considers it abandoned. Defaults to false. Workflow recovery doesn't restart evented runs on a pubsub that returns true, so return true only when the broker does this, and only after 30 seconds or more. Evented workflows and agents that run on several processes need true. See evented workflows and agents.
176
180
 
177
181
  ## Types
178
182
 
@@ -10,6 +10,8 @@ Use it for single-process applications. For delivery across processes on one hos
10
10
 
11
11
  Because it's in-process, events aren't persisted and aren't shared with other processes. Wrap it in [`CachingPubSub`](https://mastra.ai/reference/pubsub/caching-pubsub) when you need replay for resumable streams.
12
12
 
13
+ Evented workflows and agents run on `EventEmitterPubSub` in one process, which suits local development and tests. To run them on several instances, use a backend that redelivers unacknowledged events. See [evented workflows and agents](https://mastra.ai/docs/server/pubsub).
14
+
13
15
  ## Usage example
14
16
 
15
17
  `EventEmitterPubSub` is used automatically when you don't configure a `pubsub` option, so most applications never construct it directly. Create one explicitly only when you want to configure or share it.
@@ -234,7 +234,7 @@ Keep `reclaimIdleMs` above 30 seconds (the default is 60 seconds). A lower value
234
234
 
235
235
  Runs started on older versions can finish after upgrading, but don't have guaranteed crash recovery. An evented workflow run, including a nested workflow run, that was already running with `shouldPersistSnapshot` returning `false` has no stored record, so it fails at its next step after the upgrade. Let those runs finish before upgrading. Saved steps without occurrence identifiers keep their existing unguarded behavior. Other storage adapters keep distributed internal orchestration on the worker process. Worker takeover isn't verified with libSQL embedded replicas (`syncUrl`) shared by several workers.
236
236
 
237
- Worker takeover needs a pubsub that delivers each event to one worker of a consumer group, as Redis Streams does. Push-only transports such as [`UnixSocketPubSub`](https://mastra.ai/reference/pubsub/unix-socket-pubsub) deliver every event to every process, so evented agents aren't supported on them.
237
+ Worker takeover needs a pubsub that delivers each event to one worker of a consumer group and redelivers the events a stopped worker held, as Redis Streams does. See [evented workflows and agents](https://mastra.ai/docs/server/pubsub) for the backends and storage adapters that qualify.
238
238
 
239
239
  An interrupted step can execute again, so make external side effects idempotent. Completed step occurrences are protected against stale redeliveries, and a completed loop iteration reuses its saved result and loop decision. Guarded execution persists the records needed for recovery even when `shouldPersistSnapshot` returns `false`. Resume, time travel, restart races, and individual `foreach` items aren't covered by these occurrence guards. See [make tools safe to repeat](https://mastra.ai/docs/harness/durable-agents) for agent tools.
240
240
 
@@ -10,6 +10,8 @@ Use it when several local processes need to share a stream, such as coordinating
10
10
 
11
11
  `UnixSocketPubSub` is a push transport: events arrive without a read loop, so Mastra doesn't run a pull worker for it.
12
12
 
13
+ It doesn't redeliver the events a stopped process held, so it isn't a backend for evented workflows or agents that run on several processes. See [evented workflows and agents](https://mastra.ai/docs/server/pubsub).
14
+
13
15
  ## Usage example
14
16
 
15
17
  Pass a socket path that every participating process shares.
@@ -582,7 +582,7 @@ When consumed by [`Agent.streamUntilIdle()`](https://mastra.ai/reference/streami
582
582
 
583
583
  **payload.agentId** (`string`): ID of the agent that dispatched the task
584
584
 
585
- **payload.suspendData** (`unknown`): Whatever the tool passed to suspend(data)
585
+ **payload.suspendPayload** (`unknown`): Whatever the tool passed to suspend(data)
586
586
 
587
587
  ### background-task-resumed
588
588
 
@@ -66,7 +66,7 @@ Processes workflow events from the PubSub `workflows` topic. Requires a pull-cap
66
66
  Polls storage for due cron schedules and publishes a `workflow.start` event to the `workflows` topic for each fire. The orchestration worker runs default-engine workflows in-process and evented workflows step by step.
67
67
 
68
68
  - **Name**: `scheduler`
69
- - **Single instance only**: Run exactly one instance to avoid duplicate fires
69
+ - **Multiple instances**: Instances that share storage claim each fire atomically, so only one instance claims each fire. The scheduler makes up to three publish attempts per fire (two retries), so a retry after a lost broker response can publish the same fire again. A fire whose publish attempts all fail isn't replayed automatically.
70
70
 
71
71
  ### BackgroundTaskWorker
72
72
 
@@ -50,6 +50,8 @@ const result = await run.start({
50
50
 
51
51
  **outputOptions.includeState** (`boolean`): Whether to include the workflow run state in the result.
52
52
 
53
+ **perStep** (`boolean`): Run one step, then stop. The run reports status paused. See Run one step at a time to continue it.
54
+
53
55
  ## Returns
54
56
 
55
57
  **result** (`Promise<WorkflowResult<TState, TInput, TOutput, TSteps>>`): A promise that resolves to the workflow execution result containing step outputs and status
@@ -76,6 +78,27 @@ const result = await run.start({
76
78
  })
77
79
  ```
78
80
 
81
+ ## Run one step at a time
82
+
83
+ Pass `perStep: true` to run only the next step. The run then reports status `paused`, and `steps` holds the output of the step that ran.
84
+
85
+ A paused run isn't suspended, so `run.resume()` throws `This workflow run was not suspended`. Calling `run.start()` again reruns the workflow from its first step. To continue, call [`run.timeTravel()`](https://mastra.ai/reference/workflows/run-methods/timeTravel) on the same run with the ID of the next step. It reuses the stored results of the steps that already ran. If the previous step returned `null`, the next step receives `{}` instead, so return an object from steps that run before a `timeTravel()` continuation. The workflow needs configured [storage](https://mastra.ai/docs/storage), and the paused run's snapshot must still be in it. Otherwise, `timeTravel()` throws `Snapshot not found for run <runId>`:
86
+
87
+ ```typescript
88
+ const run = await workflow.createRun()
89
+
90
+ const first = await run.start({ inputData: { value: 1 }, perStep: true })
91
+ // first.status === 'paused'
92
+
93
+ // Run the next step only, then pause again
94
+ const second = await run.timeTravel({ step: 'step-2', perStep: true })
95
+ // second.status === 'paused'
96
+
97
+ // Run the remaining steps to completion
98
+ const final = await run.timeTravel({ step: 'step-3' })
99
+ // final.status === 'success'
100
+ ```
101
+
79
102
  ## Related
80
103
 
81
104
  - [Workflows overview](https://mastra.ai/docs/workflows/overview)
@@ -61,6 +61,8 @@ const result = await run.timeTravel({
61
61
 
62
62
  **outputOptions.includeResumeLabels** (`boolean`): Whether to include resume labels in the result.
63
63
 
64
+ **perStep** (`boolean`): Run only the target step, then stop with status paused. Use it to continue a run started with perStep: true one step at a time. See Run one step at a time.
65
+
64
66
  ## Returns
65
67
 
66
68
  **result** (`TOutput`): The workflow output. Present when status is 'success'.
@@ -181,6 +183,8 @@ Calling `timeTravel()` again after the previous call finished is still allowed a
181
183
  - Time travel requires storage to be configured since it relies on persisted workflow snapshots
182
184
  - When re-executing a workflow, the workflow loads the existing snapshot from storage (if available)
183
185
  - Step results before the target step are reconstructed from the snapshot or provided context
186
+ - When the target is the first step, any `inputData` other than `undefined` replaces the stored workflow input, including `null`, `false`, `0`, and `''`. If you omit `inputData`, the step reuses the stored workflow input, even when that input is `null` or `undefined`
187
+ - For a later target, the step receives the output of the step before it. An output for that step in `context` takes precedence, then a truthy `inputData`, then the stored output. A falsy `inputData` such as `null`, `false`, `0`, or `''` is ignored. If none of these is set, or the stored output is `null` or `undefined`, the step receives `{}` instead, which can fail its input schema. Return an object from the previous step, or pass an object as `inputData` without a `context` output for the previous step
184
188
  - Execution begins from the specified step with the provided or reconstructed input data
185
189
  - If a step that precedes the target in the current workflow definition has no recorded entry in the snapshot (for example, the step was renamed since the run was recorded, or the run never reached it), `timeTravel` rejects with a descriptive error before anything executes and the stored snapshot is left unchanged
186
190
  - The workflow continues to completion from that point forward
@@ -58,7 +58,7 @@ A workflow run's `status` indicates its current execution state. The possible va
58
58
 
59
59
  **suspended** (`string`): Workflow execution is paused waiting for resume, with suspended step information
60
60
 
61
- **paused** (`string`): Workflow execution stopped after a single step because the run uses per-step execution
61
+ **paused** (`string`): Workflow execution stopped after a single step because the run uses per-step execution. Continue it with run.timeTravel(), not run.resume(). See Run one step at a time
62
62
 
63
63
  **canceled** (`string`): Workflow execution was canceled via the cancel() method. Subsequent steps do not run, and running steps stop only if they respond to their abortSignal
64
64
 
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-5_LQBGn_.cjs");
2
+ const require_run_registry = require("../run-registry-5Suldxz3.cjs");
3
3
  const require_constants = require("../constants-B9ZDvXZ4.cjs");
4
4
  const require_collect_tool_mocks = require("../collect-tool-mocks-k9fM6oDl.cjs");
5
5
  exports.MastraScorer = require_run_registry.MastraScorer;
@@ -1,4 +1,4 @@
1
- import { C as MastraScorer, D as isNotScorable, E as filterRun, O as notScorable, S as createClassifierScorer, T as createScorer, _ as runEvals, bc as evaluateScoringPredicate, w as ScorerRunError, xc as validateScoringPredicate, yc as SCORING_PREDICATE_ROOTS } from "../run-registry-DC03XLeZ.js";
1
+ import { C as MastraScorer, D as isNotScorable, E as filterRun, O as notScorable, S as createClassifierScorer, T as createScorer, _ as runEvals, bc as evaluateScoringPredicate, w as ScorerRunError, xc as validateScoringPredicate, yc as SCORING_PREDICATE_ROOTS } from "../run-registry-CGRPldLH.js";
2
2
  import { Ar as scoringEntityTypeSchema, Cr as extractTrajectory, Dr as saveScorePayloadSchema, Er as listScoresResponseSchema, Fr as scoringInputWithExtractStepResultAndScoreAndReasonSchema, Ir as scoringInputWithExtractStepResultSchema, Lr as scoringPromptsSchema, Mr as scoringHookInputSchema, Nr as scoringInputSchema, Or as scoreResultSchema, Pr as scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, Rr as scoringSourceSchema, Tr as extractWorkflowTrajectory, jr as scoringExtractStepResultSchema, kr as scoreRowDataSchema, wr as extractTrajectoryFromTrace, zr as scoringValueSchema } from "../constants-BmdTvEYN.js";
3
3
  import { t as collectToolMocks } from "../collect-tool-mocks-3s2BN8o7.js";
4
4
  export { MastraScorer, SCORING_PREDICATE_ROOTS, ScorerRunError, collectToolMocks, createClassifierScorer, createScorer, evaluateScoringPredicate, extractTrajectory, extractTrajectoryFromTrace, extractWorkflowTrajectory, filterRun, isNotScorable, listScoresResponseSchema, notScorable, runEvals, saveScorePayloadSchema, scoreResultSchema, scoreRowDataSchema, scoringEntityTypeSchema, scoringExtractStepResultSchema, scoringHookInputSchema, scoringInputSchema, scoringInputWithExtractStepResultAndAnalyzeStepResultSchema, scoringInputWithExtractStepResultAndScoreAndReasonSchema, scoringInputWithExtractStepResultSchema, scoringPromptsSchema, scoringSourceSchema, scoringValueSchema, validateScoringPredicate };
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_error = require("../../error-D90lJ6M7.cjs");
3
3
  const require_utils = require("../../utils-D-eNsgDM.cjs");
4
- const require_run_registry = require("../../run-registry-5_LQBGn_.cjs");
4
+ const require_run_registry = require("../../run-registry-5Suldxz3.cjs");
5
5
  const require_constants = require("../../constants-B9ZDvXZ4.cjs");
6
6
  let zod_v4 = require("zod/v4");
7
7
  // src/evals/scoreTraces/scoreTraces.ts
@@ -1,6 +1,6 @@
1
1
  import { i as MastraError, n as ErrorDomain, t as ErrorCategory } from "../../error-oh2DLsP2.js";
2
2
  import { i as getEntityTypeForSpan } from "../../utils-DU_pU5SK.js";
3
- import { Ds as createStep, Os as createWorkflow } from "../../run-registry-DC03XLeZ.js";
3
+ import { Ds as createStep, Os as createWorkflow } from "../../run-registry-CGRPldLH.js";
4
4
  import { Dr as saveScorePayloadSchema } from "../../constants-BmdTvEYN.js";
5
5
  import { z } from "zod/v4";
6
6
  // src/evals/scoreTraces/scoreTraces.ts
@@ -147,6 +147,7 @@ export declare class CachingPubSub extends PubSub {
147
147
  __rawBus(): PubSub;
148
148
  get supportsNativeBatching(): boolean;
149
149
  get supportsOffsets(): boolean;
150
+ get deliversAcrossProcesses(): boolean;
150
151
  get redeliversUnacked(): boolean;
151
152
  /**
152
153
  * Topics `shouldCache` leaves out only reach the inner transport. With
@@ -12,12 +12,17 @@ export interface EventEmitterPubSubOptions {
12
12
  }
13
13
  /**
14
14
  * The default pubsub: delivers events inside the process that published them.
15
+ * It needs no external service, and nothing it holds outlives the process.
15
16
  *
16
- * Several Mastra instances that share one storage but each use their own
17
- * `EventEmitterPubSub` are not supported for evented workflows: every instance
18
- * treats the others' runs as its own to recover. A multi-instance evented
19
- * deployment needs a broker such as Redis Streams, Valkey Streams or Google
20
- * Cloud Pub/Sub.
17
+ * Evented workflows and evented agents run on it in one process: local
18
+ * development, tests, and a single server. It is not a transport for running
19
+ * them on several instances. Each instance has its own emitter, so an event
20
+ * never reaches another instance, and instances that share one storage each
21
+ * treat the others' runs as their own to recover. Use a pubsub that redelivers
22
+ * unacknowledged events for that.
23
+ *
24
+ * The leases, consumer groups and nack redelivery here coordinate subscribers
25
+ * of this one process. They give no guarantee across processes.
21
26
  */
22
27
  export declare class EventEmitterPubSub extends PubSub implements LeaseProvider {
23
28
  get supportedModes(): ReadonlyArray<PubSubDeliveryMode>;
@@ -28,6 +33,8 @@ export declare class EventEmitterPubSub extends PubSub implements LeaseProvider
28
33
  * needed.
29
34
  */
30
35
  get supportsNativeBatching(): boolean;
36
+ /** Every subscriber is a listener on this process's emitter. */
37
+ get deliversAcrossProcesses(): boolean;
31
38
  /**
32
39
  * Ack and nack are no-ops here: a message lives only in the process that
33
40
  * published it, so nothing redelivers it once that process stops.
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_rolldown_runtime = require("../rolldown-runtime-BrhgMLW6.cjs");
3
- const require_output_helpers = require("../output-helpers-JL-HeCbT.cjs");
3
+ const require_output_helpers = require("../output-helpers-1Zu4Vt9C.cjs");
4
4
  const require_file = require("../file-BEndQUN1.cjs");
5
5
  let crypto = require("crypto");
6
6
  let path = require("path");
@@ -465,6 +465,20 @@ function readFrames(socket, onFrame, maxFrameBytes) {
465
465
  }
466
466
  });
467
467
  }
468
+ /**
469
+ * Delivers events between processes on one host over a Unix domain socket. One
470
+ * process is elected broker and the others connect to it; when the broker
471
+ * exits, the rest elect a new one. Leases are files next to the socket.
472
+ *
473
+ * It carries streams, signals and thread leases between local processes, such
474
+ * as several Mastra Code sessions on one machine.
475
+ *
476
+ * It is not a transport for evented workflows or evented agents spread over
477
+ * several processes. The broker is one of those processes and keeps no list of
478
+ * the events each consumer holds, so the step a stopped process was running is
479
+ * never handed to another one. Use a pubsub that redelivers unacknowledged
480
+ * events for that.
481
+ */
468
482
  var UnixSocketPubSub = class extends require_output_helpers.PubSub {
469
483
  socketPath;
470
484
  #leaseDirectory;
@@ -1,4 +1,4 @@
1
- import { _ as NoopLeaseProvider, a as rehydrateError, c as RUN_LOG_TTL_MS, d as toCachedLogFrame, g as EventEmitterPubSub, h as withAck, i as withCaching, l as cachedLogTtlMs, n as PublisherQueueLimitError, o as serializeError, r as CachingPubSub, s as RUN_LOCAL_TOPIC_PREFIXES, t as DefaultStepResult, u as isRunLocalTopic, v as PubSub, y as isLeaseProvider } from "../output-helpers-D4II19No.js";
1
+ import { _ as PubSub, a as rehydrateError, c as RUN_LOG_TTL_MS, d as toCachedLogFrame, g as NoopLeaseProvider, h as EventEmitterPubSub, i as withCaching, l as cachedLogTtlMs, n as PublisherQueueLimitError, o as serializeError, r as CachingPubSub, s as RUN_LOCAL_TOPIC_PREFIXES, t as DefaultStepResult, u as isRunLocalTopic, v as isLeaseProvider, y as withAck } from "../output-helpers-CedRCE17.js";
2
2
  import { n as DefaultGeneratedFileWithType, t as DefaultGeneratedFile } from "../file-DGZrR5f7.js";
3
3
  import { createHash } from "crypto";
4
4
  import { basename, dirname, join, sep } from "path";
@@ -462,6 +462,20 @@ function readFrames(socket, onFrame, maxFrameBytes) {
462
462
  }
463
463
  });
464
464
  }
465
+ /**
466
+ * Delivers events between processes on one host over a Unix domain socket. One
467
+ * process is elected broker and the others connect to it; when the broker
468
+ * exits, the rest elect a new one. Leases are files next to the socket.
469
+ *
470
+ * It carries streams, signals and thread leases between local processes, such
471
+ * as several Mastra Code sessions on one machine.
472
+ *
473
+ * It is not a transport for evented workflows or evented agents spread over
474
+ * several processes. The broker is one of those processes and keeps no list of
475
+ * the events each consumer holds, so the step a stopped process was running is
476
+ * never handed to another one. Use a pubsub that redelivers unacknowledged
477
+ * events for that.
478
+ */
465
479
  var UnixSocketPubSub = class extends PubSub {
466
480
  socketPath;
467
481
  #leaseDirectory;
@@ -14,6 +14,21 @@ import type { Event, EventCallback, SubscribeOptions } from './types.js';
14
14
  * broker push delivered over HTTP.
15
15
  */
16
16
  export type PubSubDeliveryMode = 'pull' | 'push';
17
+ /**
18
+ * The event bus behind workflow execution, streams, signals, background tasks
19
+ * and schedules.
20
+ *
21
+ * Mastra decides how to behave from the capability getters below
22
+ * (`deliversAcrossProcesses`, `redeliversUnacked`, `supportedModes`, ...), never
23
+ * from which transport class the instance is. An implementation states what its
24
+ * transport does by overriding them.
25
+ *
26
+ * Evented workflows and evented agents can run on any implementation inside one
27
+ * process. Running them on several processes needs a pubsub that redelivers
28
+ * unacknowledged events and a workflows store with step guards.
29
+ *
30
+ * @see https://mastra.ai/docs/server/pubsub#evented-workflows-and-agents
31
+ */
17
32
  export declare abstract class PubSub {
18
33
  abstract publish(topic: string, event: Omit<Event, 'id' | 'createdAt'>, options?: {
19
34
  localOnly?: boolean;
@@ -97,6 +112,17 @@ export declare abstract class PubSub {
97
112
  * Defaults to `false`.
98
113
  */
99
114
  get supportsOffsets(): boolean;
115
+ /**
116
+ * Whether an event published here can reach a subscriber in another process.
117
+ * Defaults to `true`, so an implementation is treated as a shared transport
118
+ * unless it says otherwise: runs are fenced against other processes, and
119
+ * shutdown detaches from the evented runs other processes may still execute
120
+ * instead of stopping them.
121
+ *
122
+ * Return `false` only when every subscriber lives in the publishing process.
123
+ * Mastra then skips that cross-process coordination.
124
+ */
125
+ get deliversAcrossProcesses(): boolean;
100
126
  /**
101
127
  * Whether a message delivered to a consumer that neither acks nor nacks it
102
128
  * (for example because its process died) is delivered again to a consumer of
@@ -107,6 +133,9 @@ export declare abstract class PubSub {
107
133
  * pass restarts the run. The broker's abandonment threshold must be at least
108
134
  * 30 s, the evented step fence a dead worker leaves behind; a redelivery that
109
135
  * arrives before the fence expires is dropped as a duplicate.
136
+ *
137
+ * Evented workflows and agents that run on several processes need `true`
138
+ * here. Without it, no other worker picks up the step a stopped worker held.
110
139
  */
111
140
  get redeliversUnacked(): boolean;
112
141
  /**
@@ -0,0 +1,11 @@
1
+ import type { PubSub } from './pubsub.js';
2
+ /**
3
+ * Whether events published on `pubsub` can reach a subscriber in another
4
+ * process, read from the transport under any decorator.
5
+ *
6
+ * Only an explicit `false` counts as no. A pubsub built against a copy of
7
+ * `@mastra/core` that predates `deliversAcrossProcesses` has no such getter, and
8
+ * must keep being treated as a shared transport.
9
+ */
10
+ export declare function reachesOtherProcesses(pubsub: PubSub): boolean;
11
+ //# sourceMappingURL=reach.d.ts.map
@@ -42,6 +42,20 @@ type UnixSocketPubSubOptions = {
42
42
  * in sync as the consumer budget changes.
43
43
  */
44
44
  export declare const MAX_LOCAL_REDELIVERIES = 6;
45
+ /**
46
+ * Delivers events between processes on one host over a Unix domain socket. One
47
+ * process is elected broker and the others connect to it; when the broker
48
+ * exits, the rest elect a new one. Leases are files next to the socket.
49
+ *
50
+ * It carries streams, signals and thread leases between local processes, such
51
+ * as several Mastra Code sessions on one machine.
52
+ *
53
+ * It is not a transport for evented workflows or evented agents spread over
54
+ * several processes. The broker is one of those processes and keeps no list of
55
+ * the events each consumer holds, so the step a stopped process was running is
56
+ * never handed to another one. Use a pubsub that redelivers unacknowledged
57
+ * events for that.
58
+ */
45
59
  export declare class UnixSocketPubSub extends PubSub implements LeaseProvider {
46
60
  #private;
47
61
  readonly socketPath: string;
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_state_processor = require("../state-processor-kRNZ38Nf.cjs");
3
3
  const require_tools = require("../tools-CGF5Ik6j.cjs");
4
- const require_agent_controller = require("../agent-controller-K5vHtqfO.cjs");
4
+ const require_agent_controller = require("../agent-controller-DEPayioq.cjs");
5
5
  // src/harness/index.ts
6
6
  /**
7
7
  * @deprecated Backwards-compatibility entrypoint.
@@ -1,6 +1,6 @@
1
1
  import { f as taskCheckTool, h as taskWriteTool, m as taskUpdateTool, o as assignTaskIds, p as taskCompleteTool } from "../state-processor-B9kxpM53.js";
2
2
  import { s as askUserTool, t as submitPlanTool } from "../tools-CDfyMpzN.js";
3
- import { a as Session, c as defaultDisplayState, l as defaultOMProgressState, n as parseSubagentMeta, t as AgentController } from "../agent-controller-Cf3_IuY8.js";
3
+ import { a as Session, c as defaultDisplayState, l as defaultOMProgressState, n as parseSubagentMeta, t as AgentController } from "../agent-controller-B7POPub5.js";
4
4
  // src/harness/index.ts
5
5
  /**
6
6
  * @deprecated Backwards-compatibility entrypoint.
package/dist/index.cjs CHANGED
@@ -1,3 +1,3 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_mastra = require("./mastra-Cn5NC6Es.cjs");
2
+ const require_mastra = require("./mastra-qsVWpOTi.cjs");
3
3
  exports.Mastra = require_mastra.Mastra;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Mastra } from "./mastra-B8i1UDZs.js";
1
+ export { t as Mastra } from "./mastra-Ch00nEAJ.js";
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_base = require("../base-BIzR1D3_.cjs");
3
- const require_run_registry = require("../run-registry-5_LQBGn_.cjs");
3
+ const require_run_registry = require("../run-registry-5Suldxz3.cjs");
4
4
  let crypto = require("crypto");
5
5
  // src/knowledge/changes.ts
6
6
  const page = (op) => (result) => {
@@ -1,5 +1,5 @@
1
1
  import { t as MastraBase } from "../base-CKLWBhDo.js";
2
- import { $n as assertKnowledgeCeilingRaised, $r as KnowledgeMoveTooLargeError, $t as knowledgeDeliveredPins, Ai as inspectKnowledgeSchema, Ci as KnowledgeConflictError, Cn as decodeKnowledgeScopeId, Di as KnowledgeUnsupportedCapabilityError, Ei as KnowledgeStorage, Oi as assertKnowledgeSchemaCompatible, Oo as augmentWithInit, Qn as MAX_KNOWLEDGE_SCOPE_TAGS, Qr as InMemoryKnowledgeStorage, Qt as PINNED_READ_MEMO_KEY, Si as KNOWLEDGE_STORAGE_SCHEMA_VERSION, Sn as strongerKnowledgeRole, Ti as KnowledgeSchemaResetRequiredError, Tn as buildKnowledgeInstructions, Xn as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, Zn as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, _i as knowledgePinDepth, _n as KnowledgeDeclarationError, ai as MAX_KNOWLEDGE_PAGE_BODY_LINKS, an as removeKnowledgeNote, ar as expandKnowledgeScope, bi as parseKnowledgePageRef, bn as knowledgeRunScopes, ci as MAX_KNOWLEDGE_PAGE_LINKS, cn as upsertKnowledgePage, cr as knowledgeSemanticDocumentId, di as MAX_KNOWLEDGE_PIN_LIST_DEPTH, dn as refreshKnowledgeLinksTo, dr as parseKnowledgeNodeCursor, ei as KnowledgePageDepthError, en as buildKnowledgePageTools, er as assertKnowledgeDescriptionWithinBound, fi as assertKnowledgeNoteTextWithinBound, fn as reindexKnowledgeLinks, gi as knowledgePagePath, gn as knowledgeRoleOn, hi as knowledgeLinkRefKey, hn as knowledgeReadScopeFor, ii as MAX_KNOWLEDGE_NOTE_TOKENS, in as moveKnowledgePage, ir as createKnowledgeNodeCursor, ji as parseKnowledgeWikilinks, ki as createKnowledgeUlid, ko as getStorageSource, li as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, ln as KnowledgeSemanticIndex, lr as knowledgeSemanticIdempotencyKey, mi as canonicalKnowledgeName, mn as knowledgeAccessGrants, ni as KnowledgePageKeyConflictError, nn as knowledgeRunPrincipals, nr as assertKnowledgeScopeWithinCeiling, oi as MAX_KNOWLEDGE_PAGE_DEPTH, on as removeKnowledgePage, or as isKnowledgeScopeVisible, pi as assertKnowledgePageDescriptionWithinBound, pn as updateKnowledgeLinks, ri as MAX_KNOWLEDGE_MOVE_PAGES, rn as addKnowledgeNote, rr as canonicalizeKnowledgeScope, si as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, sn as updateKnowledgeNote, sr as knowledgeScopeKey, ti as KnowledgePageHasChildrenError, tn as KnowledgeRun, tr as assertKnowledgeRecordTextWithinBound, ui as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, ur as knowledgeVisibleScopeKeys, vi as knowledgePositionBetween, vn as compileKnowledgeScopes, wi as KnowledgeNotFoundError, wn as encodeKnowledgeScopeId, xi as KNOWLEDGE_STORAGE_CONTRACT_VERSION, xn as knowledgeScopeAddress, yi as knowledgeScopeReadable, yn as knowledgeMemoryScopes } from "../run-registry-DC03XLeZ.js";
2
+ import { $n as assertKnowledgeCeilingRaised, $r as KnowledgeMoveTooLargeError, $t as knowledgeDeliveredPins, Ai as inspectKnowledgeSchema, Ci as KnowledgeConflictError, Cn as decodeKnowledgeScopeId, Di as KnowledgeUnsupportedCapabilityError, Ei as KnowledgeStorage, Oi as assertKnowledgeSchemaCompatible, Oo as augmentWithInit, Qn as MAX_KNOWLEDGE_SCOPE_TAGS, Qr as InMemoryKnowledgeStorage, Qt as PINNED_READ_MEMO_KEY, Si as KNOWLEDGE_STORAGE_SCHEMA_VERSION, Sn as strongerKnowledgeRole, Ti as KnowledgeSchemaResetRequiredError, Tn as buildKnowledgeInstructions, Xn as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, Zn as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, _i as knowledgePinDepth, _n as KnowledgeDeclarationError, ai as MAX_KNOWLEDGE_PAGE_BODY_LINKS, an as removeKnowledgeNote, ar as expandKnowledgeScope, bi as parseKnowledgePageRef, bn as knowledgeRunScopes, ci as MAX_KNOWLEDGE_PAGE_LINKS, cn as upsertKnowledgePage, cr as knowledgeSemanticDocumentId, di as MAX_KNOWLEDGE_PIN_LIST_DEPTH, dn as refreshKnowledgeLinksTo, dr as parseKnowledgeNodeCursor, ei as KnowledgePageDepthError, en as buildKnowledgePageTools, er as assertKnowledgeDescriptionWithinBound, fi as assertKnowledgeNoteTextWithinBound, fn as reindexKnowledgeLinks, gi as knowledgePagePath, gn as knowledgeRoleOn, hi as knowledgeLinkRefKey, hn as knowledgeReadScopeFor, ii as MAX_KNOWLEDGE_NOTE_TOKENS, in as moveKnowledgePage, ir as createKnowledgeNodeCursor, ji as parseKnowledgeWikilinks, ki as createKnowledgeUlid, ko as getStorageSource, li as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, ln as KnowledgeSemanticIndex, lr as knowledgeSemanticIdempotencyKey, mi as canonicalKnowledgeName, mn as knowledgeAccessGrants, ni as KnowledgePageKeyConflictError, nn as knowledgeRunPrincipals, nr as assertKnowledgeScopeWithinCeiling, oi as MAX_KNOWLEDGE_PAGE_DEPTH, on as removeKnowledgePage, or as isKnowledgeScopeVisible, pi as assertKnowledgePageDescriptionWithinBound, pn as updateKnowledgeLinks, ri as MAX_KNOWLEDGE_MOVE_PAGES, rn as addKnowledgeNote, rr as canonicalizeKnowledgeScope, si as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, sn as updateKnowledgeNote, sr as knowledgeScopeKey, ti as KnowledgePageHasChildrenError, tn as KnowledgeRun, tr as assertKnowledgeRecordTextWithinBound, ui as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, ur as knowledgeVisibleScopeKeys, vi as knowledgePositionBetween, vn as compileKnowledgeScopes, wi as KnowledgeNotFoundError, wn as encodeKnowledgeScopeId, xi as KNOWLEDGE_STORAGE_CONTRACT_VERSION, xn as knowledgeScopeAddress, yi as knowledgeScopeReadable, yn as knowledgeMemoryScopes } from "../run-registry-CGRPldLH.js";
3
3
  import { randomUUID } from "crypto";
4
4
  // src/knowledge/changes.ts
5
5
  const page = (op) => (result) => {
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_llm = require("../llm-CsQuqKPc.cjs");
3
- const require_netlify = require("../netlify-C-83Fxus.cjs");
4
- const require_provider_registry = require("../provider-registry-9O-H9osy.cjs");
2
+ const require_llm = require("../llm-DmUucguC.cjs");
3
+ const require_netlify = require("../netlify-DU32SDT6.cjs");
4
+ const require_provider_registry = require("../provider-registry-zGezZVsL.cjs");
5
5
  exports.AzureOpenAIGateway = require_llm.AzureOpenAIGateway;
6
6
  exports.EMBEDDING_MODELS = require_llm.EMBEDDING_MODELS;
7
7
  exports.GATEWAY_AUTH_HEADER = require_netlify.GATEWAY_AUTH_HEADER;
package/dist/llm/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as ModelRouterLanguageModel, c as AzureOpenAIGateway, i as resolveModelConfig, l as defaultGateways, n as ModelRouterEmbeddingModel, r as resolveModelAuth, t as EMBEDDING_MODELS } from "../llm-DnXK3Pmw.js";
2
- import { c as GATEWAY_AUTH_HEADER, f as findGatewayForModel, p as getGatewayId, r as ModelsDevGateway, t as NetlifyGateway, v as MastraModelGateway } from "../netlify-C-OpNSGp.js";
3
- import { c as modelSupportsStructuredOutput, f as MastraGateway, i as getProviderConfig, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, r as getModelReasoningOptions, s as modelSupportsAttachments, t as GatewayRegistry, u as parseModelString } from "../provider-registry-RZ8EgSe8.js";
1
+ import { a as ModelRouterLanguageModel, c as AzureOpenAIGateway, i as resolveModelConfig, l as defaultGateways, n as ModelRouterEmbeddingModel, r as resolveModelAuth, t as EMBEDDING_MODELS } from "../llm-Djd8Qzi0.js";
2
+ import { c as GATEWAY_AUTH_HEADER, f as findGatewayForModel, p as getGatewayId, r as ModelsDevGateway, t as NetlifyGateway, v as MastraModelGateway } from "../netlify-DZSAbdve.js";
3
+ import { c as modelSupportsStructuredOutput, f as MastraGateway, i as getProviderConfig, l as modelSupportsTemperature, n as PROVIDER_REGISTRY, r as getModelReasoningOptions, s as modelSupportsAttachments, t as GatewayRegistry, u as parseModelString } from "../provider-registry-deA0x-Gd.js";
4
4
  export { AzureOpenAIGateway, EMBEDDING_MODELS, GATEWAY_AUTH_HEADER, GatewayRegistry, MastraGateway, MastraModelGateway, ModelRouterEmbeddingModel, ModelRouterLanguageModel, ModelsDevGateway, NetlifyGateway, PROVIDER_REGISTRY, defaultGateways, findGatewayForModel, getGatewayId, getModelReasoningOptions, getProviderConfig, modelSupportsAttachments, modelSupportsStructuredOutput, modelSupportsTemperature, parseModelString, resolveModelAuth, resolveModelConfig };