@mastra/core 1.87.0-alpha.20 → 1.87.0-alpha.22

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 (372) hide show
  1. package/dist/_types/@internal_ai-sdk-v4@0.0.99/dist/index.d.ts +1 -1
  2. package/dist/_types/@internal_ai-sdk-v5@0.0.99/dist/index.d.ts +1 -1
  3. package/dist/_types/@internal_ai-v6@0.0.99/dist/index.d.ts +1 -1
  4. package/dist/_types/@internal_ai-v7@0.0.99/dist/index.d.ts +1 -1
  5. package/dist/_types/@internal_voice@0.0.48/dist/_types/@internal_ai-sdk-v5@0.0.99/dist/index.d.ts +1 -1
  6. package/dist/agent/durable/index.cjs +1 -1
  7. package/dist/agent/durable/index.js +1 -1
  8. package/dist/agent/index.cjs +2 -2
  9. package/dist/agent/index.js +2 -2
  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 +2 -2
  13. package/dist/agent-controller/index.js +2 -2
  14. package/dist/{agent-controller-D2d_qiJr.js → agent-controller-WGML_NKp.js} +6 -6
  15. package/dist/{agent-controller-WTjY0HJM.cjs → agent-controller-mS3CgzwJ.cjs} +6 -6
  16. package/dist/background-tasks/index.cjs +1 -1
  17. package/dist/background-tasks/index.js +1 -1
  18. package/dist/{background-tasks-CgspqU_S.js → background-tasks-CbBbS-g3.js} +1 -1
  19. package/dist/{background-tasks-DJ6x1bn-.cjs → background-tasks-DEBc9BBP.cjs} +1 -1
  20. package/dist/browser/index.cjs +1 -1
  21. package/dist/browser/index.js +1 -1
  22. package/dist/{builder-MymUxyDK.js → builder-BOIUFJTC.js} +2 -2
  23. package/dist/{builder-B2P49nT9.cjs → builder-DBori4UC.cjs} +2 -2
  24. package/dist/capabilities/302ai.json +196 -196
  25. package/dist/capabilities/abliteratedllm.json +31 -31
  26. package/dist/capabilities/abliteration-ai.json +6 -6
  27. package/dist/capabilities/above.json +18 -18
  28. package/dist/capabilities/adaption.json +12 -12
  29. package/dist/capabilities/adzuki.json +35 -35
  30. package/dist/capabilities/agentrouter.json +6 -6
  31. package/dist/capabilities/agnes.json +2 -2
  32. package/dist/capabilities/ai-router.json +9 -9
  33. package/dist/capabilities/aiand.json +13 -13
  34. package/dist/capabilities/aigrow.json +14 -14
  35. package/dist/capabilities/aimlapi.json +141 -141
  36. package/dist/capabilities/aipg.json +2 -2
  37. package/dist/capabilities/aixy.json +13 -13
  38. package/dist/capabilities/aki-io.json +12 -12
  39. package/dist/capabilities/alibaba-cn.json +101 -101
  40. package/dist/capabilities/alibaba-coding-plan-cn.json +4 -4
  41. package/dist/capabilities/alibaba-coding-plan.json +4 -4
  42. package/dist/capabilities/alibaba-token-plan-cn.json +51 -51
  43. package/dist/capabilities/alibaba-token-plan.json +48 -48
  44. package/dist/capabilities/alibaba.json +68 -68
  45. package/dist/capabilities/ambient.json +17 -17
  46. package/dist/capabilities/amd-tokenlab.json +5 -5
  47. package/dist/capabilities/amd.json +9 -9
  48. package/dist/capabilities/anthropic.json +45 -45
  49. package/dist/capabilities/anyapi.json +20 -20
  50. package/dist/capabilities/apiko.json +4 -4
  51. package/dist/capabilities/arcee.json +11 -11
  52. package/dist/capabilities/augure.json +6 -6
  53. package/dist/capabilities/auriko.json +17 -17
  54. package/dist/capabilities/bailing.json +5 -5
  55. package/dist/capabilities/baseten.json +27 -27
  56. package/dist/capabilities/bothub.json +12 -12
  57. package/dist/capabilities/boundless.json +37 -37
  58. package/dist/capabilities/bumo.json +39 -39
  59. package/dist/capabilities/byteplus.json +26 -26
  60. package/dist/capabilities/cheapaimodel.json +6 -6
  61. package/dist/capabilities/cheapest-token.json +29 -29
  62. package/dist/capabilities/chutes.json +29 -29
  63. package/dist/capabilities/cline-pass.json +34 -34
  64. package/dist/capabilities/cloudcode.json +6 -6
  65. package/dist/capabilities/cloudflare-workers-ai.json +15 -15
  66. package/dist/capabilities/commandcode.json +133 -133
  67. package/dist/capabilities/concentrate.json +276 -276
  68. package/dist/capabilities/cortecs.json +103 -103
  69. package/dist/capabilities/crossmodel.json +168 -168
  70. package/dist/capabilities/crusoe.json +14 -14
  71. package/dist/capabilities/daoxe.json +9 -9
  72. package/dist/capabilities/databricks.json +131 -131
  73. package/dist/capabilities/deepinfra.json +87 -87
  74. package/dist/capabilities/deepseek.json +4 -4
  75. package/dist/capabilities/digitalocean.json +115 -115
  76. package/dist/capabilities/dothoosh.json +30 -30
  77. package/dist/capabilities/doubleword.json +26 -26
  78. package/dist/capabilities/edenai.json +290 -281
  79. package/dist/capabilities/empiriolabs.json +174 -179
  80. package/dist/capabilities/engy.json +19 -19
  81. package/dist/capabilities/entrim.json +2 -2
  82. package/dist/capabilities/evroc.json +13 -13
  83. package/dist/capabilities/ezkielyna.json +13 -13
  84. package/dist/capabilities/fastrouter.json +81 -81
  85. package/dist/capabilities/fireworks-ai.json +103 -103
  86. package/dist/capabilities/fortytwo.json +4 -4
  87. package/dist/capabilities/freemodel.json +6 -6
  88. package/dist/capabilities/friendli.json +8 -8
  89. package/dist/capabilities/frogbot.json +97 -97
  90. package/dist/capabilities/gisoo.json +19 -19
  91. package/dist/capabilities/gmicloud.json +17 -17
  92. package/dist/capabilities/google.json +49 -49
  93. package/dist/capabilities/graphn.json +8 -8
  94. package/dist/capabilities/greenpt.json +35 -35
  95. package/dist/capabilities/groq.json +2 -2
  96. package/dist/capabilities/helicone.json +73 -73
  97. package/dist/capabilities/hetzner.json +2 -2
  98. package/dist/capabilities/hopper.json +2 -2
  99. package/dist/capabilities/hostinger-router.json +10 -10
  100. package/dist/capabilities/hpc-ai.json +4 -4
  101. package/dist/capabilities/huawei-maas.json +15 -15
  102. package/dist/capabilities/hubris.json +34 -34
  103. package/dist/capabilities/huggingface.json +79 -72
  104. package/dist/capabilities/humain.json +2 -2
  105. package/dist/capabilities/hyper.json +23 -23
  106. package/dist/capabilities/impossibl.json +129 -129
  107. package/dist/capabilities/inception.json +3 -3
  108. package/dist/capabilities/inceptron.json +2 -2
  109. package/dist/capabilities/inco.json +2 -2
  110. package/dist/capabilities/infer.json +14 -14
  111. package/dist/capabilities/inferall.json +5 -5
  112. package/dist/capabilities/inference-coop.json +12 -12
  113. package/dist/capabilities/inferenceapis.json +18 -18
  114. package/dist/capabilities/inferris.json +4 -4
  115. package/dist/capabilities/infersia.json +12 -12
  116. package/dist/capabilities/inferx.json +3 -3
  117. package/dist/capabilities/infomaniak.json +2 -2
  118. package/dist/capabilities/isoquant.json +4 -4
  119. package/dist/capabilities/iteracompute.json +38 -38
  120. package/dist/capabilities/jalapeno.json +11 -11
  121. package/dist/capabilities/jiekou.json +33 -33
  122. package/dist/capabilities/jzstoken.json +51 -51
  123. package/dist/capabilities/keln.json +16 -16
  124. package/dist/capabilities/kenari.json +131 -131
  125. package/dist/capabilities/kilo.json +615 -624
  126. package/dist/capabilities/kimchi.json +90 -0
  127. package/dist/capabilities/kimi-code-plan-cn.json +7 -7
  128. package/dist/capabilities/kimi-code-plan-global.json +7 -7
  129. package/dist/capabilities/klavo.json +21 -21
  130. package/dist/capabilities/korouter.json +32 -32
  131. package/dist/capabilities/kunavo.json +10 -10
  132. package/dist/capabilities/liquid.json +7 -7
  133. package/dist/capabilities/llmgateway-providers.json +924 -917
  134. package/dist/capabilities/llmgateway.json +347 -341
  135. package/dist/capabilities/llmtr.json +22 -22
  136. package/dist/capabilities/logits.json +2 -2
  137. package/dist/capabilities/longcat.json +2 -2
  138. package/dist/capabilities/lowrouter.json +49 -49
  139. package/dist/capabilities/lyceum.json +14 -14
  140. package/dist/capabilities/melious.json +12 -12
  141. package/dist/capabilities/merge-gateway.json +274 -266
  142. package/dist/capabilities/meta.json +6 -6
  143. package/dist/capabilities/minimax-cn-coding-plan.json +5 -5
  144. package/dist/capabilities/minimax-cn.json +5 -5
  145. package/dist/capabilities/minimax-coding-plan.json +5 -5
  146. package/dist/capabilities/minimax.json +5 -5
  147. package/dist/capabilities/mistral.json +15 -15
  148. package/dist/capabilities/mixlayer.json +5 -5
  149. package/dist/capabilities/modal.json +8 -8
  150. package/dist/capabilities/model-oracle-ai.json +25 -25
  151. package/dist/capabilities/modelis.json +18 -18
  152. package/dist/capabilities/modular.json +10 -10
  153. package/dist/capabilities/moneo.json +5 -5
  154. package/dist/capabilities/moonshotai-cn.json +6 -6
  155. package/dist/capabilities/moonshotai.json +6 -6
  156. package/dist/capabilities/morph.json +22 -14
  157. package/dist/capabilities/munito-eu.json +8 -8
  158. package/dist/capabilities/munito.json +8 -8
  159. package/dist/capabilities/nan.json +27 -27
  160. package/dist/capabilities/nano-gpt.json +568 -568
  161. package/dist/capabilities/nearai.json +85 -85
  162. package/dist/capabilities/nebius.json +28 -28
  163. package/dist/capabilities/neon.json +132 -132
  164. package/dist/capabilities/neuralwatt.json +40 -40
  165. package/dist/capabilities/nokeep.json +2 -2
  166. package/dist/capabilities/novita-ai.json +135 -135
  167. package/dist/capabilities/nvidia.json +13 -13
  168. package/dist/capabilities/oathbreaker.json +5 -5
  169. package/dist/capabilities/obscurify.json +19 -19
  170. package/dist/capabilities/oci.json +7 -7
  171. package/dist/capabilities/ofox.json +209 -209
  172. package/dist/capabilities/ollama-cloud.json +55 -55
  173. package/dist/capabilities/openai.json +60 -60
  174. package/dist/capabilities/opencode-go.json +91 -91
  175. package/dist/capabilities/openreason.json +4 -4
  176. package/dist/capabilities/openrouter.json +502 -511
  177. package/dist/capabilities/opper.json +25 -25
  178. package/dist/capabilities/orcarouter.json +266 -266
  179. package/dist/capabilities/outerlabs.json +27 -27
  180. package/dist/capabilities/ovhcloud.json +20 -20
  181. package/dist/capabilities/perplexity-agent.json +132 -42
  182. package/dist/capabilities/perplexity.json +2 -2
  183. package/dist/capabilities/phala.json +35 -35
  184. package/dist/capabilities/poe.json +108 -108
  185. package/dist/capabilities/poolside.json +2 -2
  186. package/dist/capabilities/powerspring.json +11 -11
  187. package/dist/capabilities/primalabs.json +14 -14
  188. package/dist/capabilities/prime.json +121 -121
  189. package/dist/capabilities/privatemode-ai.json +7 -7
  190. package/dist/capabilities/proxystacks.json +6 -6
  191. package/dist/capabilities/qiniu-ai.json +12 -12
  192. package/dist/capabilities/refuseless.json +6 -6
  193. package/dist/capabilities/regolo-ai.json +9 -9
  194. package/dist/capabilities/requesty.json +202 -202
  195. package/dist/capabilities/ruapi.json +23 -23
  196. package/dist/capabilities/runcrate.json +4 -4
  197. package/dist/capabilities/runinfra.json +13 -13
  198. package/dist/capabilities/sakana.json +5 -5
  199. package/dist/capabilities/sambanova.json +9 -9
  200. package/dist/capabilities/sandbase.json +4 -4
  201. package/dist/capabilities/sarvam.json +9 -9
  202. package/dist/capabilities/scaleway.json +15 -15
  203. package/dist/capabilities/scnet-token-plan.json +12 -12
  204. package/dist/capabilities/scx-ai.json +26 -26
  205. package/dist/capabilities/sensenova.json +14 -14
  206. package/dist/capabilities/siliconflow-cn.json +45 -45
  207. package/dist/capabilities/siliconflow.json +50 -50
  208. package/dist/capabilities/snowflake-cortex.json +24 -24
  209. package/dist/capabilities/sokkan.json +2 -2
  210. package/dist/capabilities/sparrowcodes.json +20 -20
  211. package/dist/capabilities/standardcompute.json +80 -80
  212. package/dist/capabilities/steadyrouter.json +43 -43
  213. package/dist/capabilities/stepfun-ai-step-plan.json +9 -9
  214. package/dist/capabilities/stepfun-ai.json +9 -9
  215. package/dist/capabilities/stepfun-step-plan.json +9 -9
  216. package/dist/capabilities/stepfun.json +9 -9
  217. package/dist/capabilities/stepping-stone.json +18 -18
  218. package/dist/capabilities/superbot-gg.json +4 -4
  219. package/dist/capabilities/synthetic.json +10 -10
  220. package/dist/capabilities/synthorai.json +20 -20
  221. package/dist/capabilities/teamorouter.json +25 -25
  222. package/dist/capabilities/teapot-router.json +14 -14
  223. package/dist/capabilities/tencent-token-plan-intl.json +22 -22
  224. package/dist/capabilities/tencent-token-plan.json +40 -40
  225. package/dist/capabilities/tencent-tokenhub.json +47 -47
  226. package/dist/capabilities/tensorx.json +48 -48
  227. package/dist/capabilities/tenstorrent.json +6 -6
  228. package/dist/capabilities/the-grid-ai.json +24 -24
  229. package/dist/capabilities/thinkingmachines.json +72 -72
  230. package/dist/capabilities/tinfoil.json +8 -8
  231. package/dist/capabilities/toapis.json +2 -2
  232. package/dist/capabilities/togetherai.json +48 -48
  233. package/dist/capabilities/tokengo.json +15 -15
  234. package/dist/capabilities/tokenharbor.json +738 -0
  235. package/dist/capabilities/tokenify.json +8 -8
  236. package/dist/capabilities/trustedrouter.json +6 -6
  237. package/dist/capabilities/trustedtokens.json +17 -17
  238. package/dist/capabilities/umans-ai-coding-plan.json +13 -13
  239. package/dist/capabilities/umans-ai.json +10 -10
  240. package/dist/capabilities/uncensuredai.json +5 -5
  241. package/dist/capabilities/unrestricted.json +6 -6
  242. package/dist/capabilities/uplinkswitch.json +22 -22
  243. package/dist/capabilities/upstage.json +2 -2
  244. package/dist/capabilities/vancine.json +24 -24
  245. package/dist/capabilities/vercel.json +576 -577
  246. package/dist/capabilities/verda.json +4 -4
  247. package/dist/capabilities/vivgrid.json +56 -56
  248. package/dist/capabilities/volcengine-coding-plan.json +26 -26
  249. package/dist/capabilities/volcengine.json +26 -26
  250. package/dist/capabilities/vultr.json +19 -19
  251. package/dist/capabilities/wafer.ai.json +19 -19
  252. package/dist/capabilities/wallaby.json +4 -4
  253. package/dist/capabilities/wally.json +13 -13
  254. package/dist/capabilities/wandb.json +19 -19
  255. package/dist/capabilities/watt.json +24 -24
  256. package/dist/capabilities/xai.json +6 -6
  257. package/dist/capabilities/xiaomi-token-plan-ams.json +2 -2
  258. package/dist/capabilities/xiaomi-token-plan-cn.json +2 -2
  259. package/dist/capabilities/xiaomi-token-plan-sgp.json +2 -2
  260. package/dist/capabilities/xiaomi.json +2 -2
  261. package/dist/capabilities/xpersona.json +12 -12
  262. package/dist/capabilities/xxapi.json +31 -31
  263. package/dist/capabilities/zai-coding-plan.json +17 -17
  264. package/dist/capabilities/zai.json +36 -27
  265. package/dist/capabilities/zenifra.json +26 -26
  266. package/dist/capabilities/zenmux.json +165 -165
  267. package/dist/capabilities/zerogpu.json +9 -9
  268. package/dist/capabilities/zhipuai-coding-plan.json +2 -2
  269. package/dist/capabilities/zhipuai.json +43 -27
  270. package/dist/capabilities/zro.json +6 -6
  271. package/dist/channels/index.cjs +2 -2
  272. package/dist/channels/index.js +2 -2
  273. package/dist/{channels-nnBeh58G.js → channels-BwOQwN3M.js} +1 -1
  274. package/dist/{channels-CKRPQRmF.cjs → channels-DrLMv8qW.cjs} +1 -1
  275. package/dist/coding-agent/index.cjs +1 -1
  276. package/dist/coding-agent/index.js +1 -1
  277. package/dist/datasets/index.cjs +2 -2
  278. package/dist/datasets/index.js +2 -2
  279. package/dist/docs/SKILL.md +1 -1
  280. package/dist/docs/assets/SOURCE_MAP.json +511 -511
  281. package/dist/docs/references/docs-agents-tools.md +2 -2
  282. package/dist/docs/references/docs-memory-message-history.md +2 -0
  283. package/dist/evals/index.cjs +1 -1
  284. package/dist/evals/index.js +1 -1
  285. package/dist/evals/scoreTraces/index.cjs +1 -1
  286. package/dist/evals/scoreTraces/index.js +1 -1
  287. package/dist/{execution-fence-CKFtgb2u.cjs → execution-fence-C-wa17Wr.cjs} +11 -11
  288. package/dist/{execution-fence-DTrAehtv.js → execution-fence-DvN3Fwm3.js} +11 -11
  289. package/dist/harness/index.cjs +2 -2
  290. package/dist/harness/index.js +2 -2
  291. package/dist/index.cjs +1 -1
  292. package/dist/index.js +1 -1
  293. package/dist/knowledge/index.cjs +1 -1
  294. package/dist/knowledge/index.js +1 -1
  295. package/dist/llm/index.cjs +3 -3
  296. package/dist/llm/index.js +3 -3
  297. package/dist/llm/model/mastra-gateway-provider-tools.d.ts +7 -0
  298. package/dist/llm/model/provider-types.generated.d.ts +7042 -6917
  299. package/dist/{llm-P6sWWNc6.cjs → llm-dX0y0atH.cjs} +4 -2
  300. package/dist/{llm-B6EYEbYf.js → llm-hWZGKDUy.js} +4 -2
  301. package/dist/loop/index.cjs +2 -2
  302. package/dist/loop/index.js +2 -2
  303. package/dist/{manager-BvnXZAFj.js → manager-9pUbVmmS.js} +2 -2
  304. package/dist/{manager-tQrH4_MZ.cjs → manager-CUoAGxcN.cjs} +2 -2
  305. package/dist/mastra/index.cjs +1 -1
  306. package/dist/mastra/index.js +1 -1
  307. package/dist/{mastra-CtL0diD6.cjs → mastra-B6Fw2ZIW.cjs} +16 -16
  308. package/dist/{mastra-BhPympcg.js → mastra-CliUSn4-.js} +16 -16
  309. package/dist/mastra-gateway-provider-tools-C-AjGZis.js +58 -0
  310. package/dist/mastra-gateway-provider-tools-WpH3Tmu4.cjs +81 -0
  311. package/dist/memory/index.cjs +2 -2
  312. package/dist/memory/index.js +2 -2
  313. package/dist/{model-D2XwLRQi.js → model-CAp-mgCd.js} +1 -1
  314. package/dist/{model-Cy0Z_3FQ.cjs → model-DEnu3A8A.cjs} +1 -1
  315. package/dist/{netlify-DgHrsLpJ.cjs → netlify-BMhDN9E8.cjs} +1 -1
  316. package/dist/{netlify-d2fyniAS.js → netlify-xMA06xL8.js} +1 -1
  317. package/dist/notifications/index.cjs +1 -1
  318. package/dist/notifications/index.js +1 -1
  319. package/dist/processor-provider/index.cjs +1 -1
  320. package/dist/processor-provider/index.js +1 -1
  321. package/dist/processors/index.cjs +2 -2
  322. package/dist/processors/index.js +2 -2
  323. package/dist/{provider-registry-Brcz84P1.cjs → provider-registry-CcMAUHdH.cjs} +21341 -21112
  324. package/dist/{provider-registry-B9UP28b4.js → provider-registry-DsK3rXeU.js} +21340 -21111
  325. package/dist/provider-registry.json +20759 -20491
  326. package/dist/{registry-generator-BDZrKvMb.js → registry-generator-CXDt3yuY.js} +1 -1
  327. package/dist/{registry-generator-DSvbAYar.cjs → registry-generator-DRFJTQ2Q.cjs} +1 -1
  328. package/dist/{rehydrate-Cme19iOk.js → rehydrate-C_fSTYcV.js} +2 -2
  329. package/dist/{rehydrate-vAlkgCKL.cjs → rehydrate-DNf3nk5t.cjs} +2 -2
  330. package/dist/relevance/index.cjs +2 -2
  331. package/dist/relevance/index.js +2 -2
  332. package/dist/storage/index.cjs +2 -2
  333. package/dist/storage/index.js +2 -2
  334. package/dist/stream/index.cjs +2 -2
  335. package/dist/stream/index.js +2 -2
  336. package/dist/{stream-B9y9VYqr.cjs → stream-BKEfY3-X.cjs} +1 -1
  337. package/dist/{stream-DSVk0bct.js → stream-CyaGm-DI.js} +1 -1
  338. package/dist/test-utils/llm-mock.cjs +1 -1
  339. package/dist/test-utils/llm-mock.js +1 -1
  340. package/dist/tool-loop-agent/index.cjs +1 -1
  341. package/dist/tool-loop-agent/index.js +1 -1
  342. package/dist/{tool-loop-agent-e2Bi-mrf.js → tool-loop-agent-BYrNEcU_.js} +3 -3
  343. package/dist/{tool-loop-agent-C3wj9NhP.cjs → tool-loop-agent-Du3Vm65W.cjs} +3 -3
  344. package/dist/tools/builtin/web-search.d.ts +8 -0
  345. package/dist/tools/index.cjs +1 -1
  346. package/dist/tools/index.js +1 -1
  347. package/dist/{tools-C2q0ougI.cjs → tools-DZoVfKPl.cjs} +42 -17
  348. package/dist/{tools-ybbz1YKg.js → tools-FwJyNoyg.js} +41 -10
  349. package/dist/{utils-B87rm4F-.cjs → utils-Ag63fN_T.cjs} +1 -1
  350. package/dist/{utils-DCDsj1CG.js → utils-Dl5BqcZO.js} +1 -1
  351. package/dist/utils.cjs +1 -1
  352. package/dist/utils.js +1 -1
  353. package/dist/{validate-_e8OoEh5.js → validate-CYqPJX3z.js} +1 -1
  354. package/dist/{validate-XPZLQRoc.cjs → validate-bRsKfPrD.cjs} +1 -1
  355. package/dist/vector/index.cjs +1 -1
  356. package/dist/vector/index.js +1 -1
  357. package/dist/worker/index.cjs +1 -1
  358. package/dist/worker/index.js +1 -1
  359. package/dist/{worker-DzMDk--h.cjs → worker-DPjo5pv_.cjs} +2 -2
  360. package/dist/{worker-CGWclXz3.cjs → worker-Dvt_y5ra.cjs} +2 -2
  361. package/dist/{worker-DvI9J9Qw.js → worker-RbY0GNay.js} +2 -2
  362. package/dist/{worker-BAstsOqw.js → worker-oSqtPcV6.js} +2 -2
  363. package/dist/{workflow-BFF2mNDa.cjs → workflow-B6Xdy2Ck.cjs} +3 -3
  364. package/dist/{workflow-DcpI9eNC.js → workflow-X6iwBizX.js} +3 -3
  365. package/dist/workflows/builder/index.cjs +1 -1
  366. package/dist/workflows/builder/index.js +1 -1
  367. package/dist/workflows/evented/index.cjs +1 -1
  368. package/dist/workflows/evented/index.js +1 -1
  369. package/dist/workflows/index.cjs +4 -4
  370. package/dist/workflows/index.js +4 -4
  371. package/package.json +3 -3
  372. package/src/llm/model/provider-types.generated.d.ts +7042 -6917
@@ -600,11 +600,11 @@ export const researchAgent = new Agent({
600
600
  })
601
601
  ```
602
602
 
603
- `webSearchTool` supports OpenAI, Anthropic, Google Gemini, and xAI models. If Mastra can't infer one of those providers from the active model, the agent run fails with a `MastraError`.
603
+ When you call a provider directly, `webSearchTool` supports OpenAI, Anthropic, Google Gemini, and xAI models. If Mastra can't infer one of those providers from the active model, the agent run fails with a `MastraError`. Durable agents log that error as a warning instead and run the turn without any tools.
604
604
 
605
605
  The resolved tool ID comes from the provider: `openai.web_search`, `anthropic.web_search_20250305`, `google.google_search`, or `xai.web_search`.
606
606
 
607
- Models served through Mastra Gateway, such as `mastra/openai/gpt-5.6-sol`, use the gateway's own web search (`openrouter.web_search`) instead. Results from gateway web search arrive in the model's text response, without separate tool-call or source chunks. Other provider-native tools aren't available through the gateway, so passing one makes the agent run fail with a `MastraError`.
607
+ Models served through the Mastra Gateway chat endpoint, such as `mastra/openai/gpt-5.6-sol`, use the gateway's own web search (`openrouter.web_search`) instead. This works for every tool-calling model on that endpoint, including ones without a native web search tool such as DeepSeek. Anthropic models reached through a gateway OAuth connection call the Anthropic Messages API and keep the native Anthropic web search. Results from gateway web search arrive in the model's text response, without separate tool-call or source chunks. Other provider-native tools aren't available on the gateway chat endpoint, so passing one to a model on that endpoint makes the agent run fail with a `MastraError`.
608
608
 
609
609
  The `search` key is only the agent-local tool name. Use any key. The `webSearchTool` value tells Mastra to use provider web search.
610
610
 
@@ -207,6 +207,8 @@ export const supportAgent = new Agent({
207
207
 
208
208
  Title generation runs asynchronously after the agent responds and doesn't affect response time.
209
209
 
210
+ On serverless runtimes, the platform can stop a request as soon as the response is sent, which cancels background work. Mastra's server passes the platform's `waitUntil` to agent runs so title generation finishes: Cloudflare Workers, Netlify, and Vercel deployments handle this automatically. When you call an agent directly inside your own serverless handler, pass `serverless: { waitUntil }` in the execution options.
211
+
210
212
  ### Streaming the generated title
211
213
 
212
214
  By default title generation runs in the background and the run's stream doesn't wait for it, so HTTP clients only see the title on their next thread fetch. Set `emitEvent: true` to deliver the title on the run's stream instead: the stream waits for the title and emits a transient `data-thread-title` chunk before `finish`.
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_execution_fence = require("../execution-fence-CKFtgb2u.cjs");
2
+ const require_execution_fence = require("../execution-fence-C-wa17Wr.cjs");
3
3
  const require_constants = require("../constants-B2FVV_2e.cjs");
4
4
  const require_collect_tool_mocks = require("../collect-tool-mocks-k9fM6oDl.cjs");
5
5
  exports.MastraScorer = require_execution_fence.MastraScorer;
@@ -1,4 +1,4 @@
1
- import { Gc as SCORING_PREDICATE_ROOTS, Kc as evaluateScoringPredicate, _ as isNotScorable, c as runEvals, f as createClassifierScorer, g as filterRun, h as createScorer, m as ScorerRunError, p as MastraScorer, qc as validateScoringPredicate, v as notScorable } from "../execution-fence-DTrAehtv.js";
1
+ import { Gc as SCORING_PREDICATE_ROOTS, Kc as evaluateScoringPredicate, _ as isNotScorable, c as runEvals, f as createClassifierScorer, g as filterRun, h as createScorer, m as ScorerRunError, p as MastraScorer, qc as validateScoringPredicate, v as notScorable } from "../execution-fence-DvN3Fwm3.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-Dro9fuhk.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_execution_fence = require("../../execution-fence-CKFtgb2u.cjs");
4
+ const require_execution_fence = require("../../execution-fence-C-wa17Wr.cjs");
5
5
  const require_constants = require("../../constants-B2FVV_2e.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 { Ns as createStep, Ps as createWorkflow } from "../../execution-fence-DTrAehtv.js";
3
+ import { Ns as createStep, Ps as createWorkflow } from "../../execution-fence-DvN3Fwm3.js";
4
4
  import { Dr as saveScorePayloadSchema } from "../../constants-Dro9fuhk.js";
5
5
  import { z } from "zod/v4";
6
6
  // src/evals/scoreTraces/scoreTraces.ts
@@ -4,7 +4,7 @@ const require_base = require("./base-BIzR1D3_.cjs");
4
4
  const require_error = require("./error-D90lJ6M7.cjs");
5
5
  const require_error$1 = require("./error-L1V4uUbd.cjs");
6
6
  const require_output_helpers = require("./output-helpers-By5FbLpp.cjs");
7
- const require_stream = require("./stream-B9y9VYqr.cjs");
7
+ const require_stream = require("./stream-BKEfY3-X.cjs");
8
8
  const require_workflows_constants = require("./workflows/constants.cjs");
9
9
  const require_request_context = require("./request-context-D9RXYCy8.cjs");
10
10
  const require_observability = require("./observability-VaoaeadK.cjs");
@@ -12,9 +12,9 @@ const require_storage = require("./storage-CfG0I2aF.cjs");
12
12
  const require_utils = require("./utils-D-eNsgDM.cjs");
13
13
  const require_tool = require("./tool-Dn9WSDVn.cjs");
14
14
  const require_error_count = require("./error-count-DeDpeWU2.cjs");
15
- const require_utils$1 = require("./utils-B87rm4F-.cjs");
15
+ const require_utils$1 = require("./utils-Ag63fN_T.cjs");
16
16
  const require_ee_iTj2bRDt = require("./ee-iTj2bRDt-D3-QLGDF.cjs");
17
- const require_background_tasks = require("./background-tasks-DJ6x1bn-.cjs");
17
+ const require_background_tasks = require("./background-tasks-DEBc9BBP.cjs");
18
18
  const require_toolchecks = require("./toolchecks-DbBsQGHW.cjs");
19
19
  const require_stream$1 = require("./stream-BGbj9jAU.cjs");
20
20
  const require_fetchWithRetry = require("./fetchWithRetry-f5k4p7_1.cjs");
@@ -22,16 +22,16 @@ const require_utils_safe_stringify = require("./utils/safe-stringify.cjs");
22
22
  const require_deep_equal = require("./deep-equal-TMDmByBC.cjs");
23
23
  const require_dynamic_argument = require("./dynamic-argument-CUc1BBOS.cjs");
24
24
  const require_message_list = require("./message-list-C0F2sDNC.cjs");
25
- const require_llm = require("./llm-P6sWWNc6.cjs");
25
+ const require_llm = require("./llm-dX0y0atH.cjs");
26
26
  const require_payload_transform = require("./payload-transform-CWgnsO9w.cjs");
27
27
  const require_signals = require("./signals-CWxAMEmE.cjs");
28
28
  const require_to_prompt = require("./to-prompt-CG-LyaBY.cjs");
29
29
  const require_dist = require("./dist-P2rjrlmj.cjs");
30
30
  const require_dist$1 = require("./dist-CXeCeeW7.cjs");
31
31
  const require_model = require("./model-jBymoqGa.cjs");
32
- const require_provider_registry = require("./provider-registry-Brcz84P1.cjs");
32
+ const require_provider_registry = require("./provider-registry-CcMAUHdH.cjs");
33
33
  const require_inmemory = require("./inmemory-Dc86VWGB.cjs");
34
- const require_model$1 = require("./model-Cy0Z_3FQ.cjs");
34
+ const require_model$1 = require("./model-DEnu3A8A.cjs");
35
35
  const require_predicate_index = require("./predicate/index.cjs");
36
36
  const require_classifier_index = require("./classifier/index.cjs");
37
37
  const require_observability_context_storage = require("./observability/context-storage.cjs");
@@ -42,7 +42,7 @@ const require_constants = require("./constants-B2FVV_2e.cjs");
42
42
  const require_signal_provider = require("./signal-provider-D9gbevHN.cjs");
43
43
  const require_slugify = require("./slugify-B_WzG9IY.cjs");
44
44
  const require_workspace = require("./workspace-BQD4tcQi.cjs");
45
- const require_tools = require("./tools-C2q0ougI.cjs");
45
+ const require_tools = require("./tools-DZoVfKPl.cjs");
46
46
  const require_workspace_skills = require("./workspace-skills-BcquhPDn.cjs");
47
47
  const require_filesystem_versioned = require("./filesystem-versioned-BavRtYWJ.cjs");
48
48
  const require_features_index = require("./features/index.cjs");
@@ -85726,7 +85726,7 @@ async function prepareForDurableExecution(options) {
85726
85726
  });
85727
85727
  let tripwireData;
85728
85728
  if (inputProcessors.length > 0) try {
85729
- const { ProcessorRunner } = await Promise.resolve().then(() => require("./stream-B9y9VYqr.cjs")).then((n) => n.runner_exports);
85729
+ const { ProcessorRunner } = await Promise.resolve().then(() => require("./stream-BKEfY3-X.cjs")).then((n) => n.runner_exports);
85730
85730
  await new ProcessorRunner({
85731
85731
  inputProcessors,
85732
85732
  outputProcessors,
@@ -89686,7 +89686,7 @@ var Agent = class Agent extends require_base.MastraBase {
89686
89686
  const ensuredTools = require_utils$1.ensureToolProperties(tools);
89687
89687
  if (!resolveWebSearch || !Object.values(ensuredTools).some(require_tools.isWebSearchTool)) return ensuredTools;
89688
89688
  const model = await this.getModel({ requestContext });
89689
- return Object.fromEntries(Object.entries(ensuredTools).map(([key, tool]) => [key, require_tools.isWebSearchTool(tool) ? require_tools.createWebSearchProviderTool(require_tools.normalizeWebSearchProvider(model)) : tool]));
89689
+ return Object.fromEntries(Object.entries(ensuredTools).map(([key, tool]) => [key, require_tools.isWebSearchTool(tool) ? require_tools.resolveWebSearchProviderTool(model) : tool]));
89690
89690
  };
89691
89691
  if (typeof this.#tools !== "function") return resolveToolList(this.#tools);
89692
89692
  return resolveMaybePromise(require_dynamic_argument.resolveDynamicArgument(this.#tools, {
@@ -90819,7 +90819,7 @@ var Agent = class Agent extends require_base.MastraBase {
90819
90819
  const model = activeModel ?? (assignedToolEntries.length > 0 ? await getModel() : void 0);
90820
90820
  const assignedCoreToolEntries = await Promise.all(assignedToolEntries.map(async ([k, tool]) => {
90821
90821
  if (!tool) return;
90822
- const toolToConvert = require_tools.isWebSearchTool(tool) ? require_tools.createWebSearchProviderTool(require_tools.normalizeWebSearchProvider(model)) : tool;
90822
+ const toolToConvert = require_tools.isWebSearchTool(tool) ? require_tools.resolveWebSearchProviderTool(model) : tool;
90823
90823
  const options = {
90824
90824
  name: k,
90825
90825
  runId,
@@ -90912,7 +90912,7 @@ var Agent = class Agent extends require_base.MastraBase {
90912
90912
  for (const [toolName, tool] of clientToolsForInput) {
90913
90913
  const model = activeModel ?? await getModel();
90914
90914
  let toolToConvert;
90915
- if (require_tools.isWebSearchTool(tool)) toolToConvert = require_tools.createWebSearchProviderTool(require_tools.normalizeWebSearchProvider(model));
90915
+ if (require_tools.isWebSearchTool(tool)) toolToConvert = require_tools.resolveWebSearchProviderTool(model);
90916
90916
  else if (require_toolchecks.isProviderTool(tool)) toolToConvert = tool;
90917
90917
  else {
90918
90918
  const { execute, ...toolRest } = tool;
@@ -4,7 +4,7 @@ import { t as MastraBase } from "./base-CKLWBhDo.js";
4
4
  import { a as MastraNonRetryableError, i as MastraError, n as ErrorDomain, o as getErrorFromUnknown, t as ErrorCategory } from "./error-oh2DLsP2.js";
5
5
  import { a as classifyProviderError, l as describeProviderError, t as recordTerminalErrorMessage, u as readProviderErrorDetails } from "./error-BC9Au-22.js";
6
6
  import { S as isLeaseProvider, _ as PublisherQueueLimitError, b as NoopLeaseProvider, d as isRunLocalTopic, g as stripModelSnapshots, i as CachingPubSub, m as slimNestedAgentChunks, r as serializeError$1, t as DefaultStepResult, v as EventEmitterPubSub, y as withAck } from "./output-helpers-k2-48ssH.js";
7
- import { $ as summarizeToolChoiceForSpan, $t as commitToolResult, A as isSignalChunkExcluded, An as isMastraTimeoutError, At as getSnapshotMemoryInfo, B as removeTrailingAssistantGuardContinuations, Bt as stateColumnsWrite, C as stampChunkProducedAt, Cn as DEADLINE_SAVE_CLAIM_HOLD_MS, D as isStructuredOutputError, Dn as getAbortReason, Dt as validateTemplate, E as escapeUnescapedControlCharsInJsonStrings, En as createTimeoutAbortSignal, Et as traverseMappingPath, F as endOutputStreamSpanOutsideStep, Fn as safeClose, Ft as latestStepResults, G as FLUSH_HELD_PARTS_KEY, Gt as diffStateAsJson, Ht as unusedStateEntries, I as findOwnModelStepSpan, In as safeEnqueue, It as materializeState, J as withoutHeldContent, K as REPROCESS_PART_KEY, Kt as patchState, Ln as safeError, Lt as materializeWorkflowRun, M as ProcessorRunner, Mn as settledOrElapsed, N as ProcessorState, Nt as applyStateColumnsWrite, O as asJsonSchema, On as guardStreamUntilMatch, Ot as getStepResult, P as endOutputStreamSpanAtStepEnd, Pn as MastraModelInput, Pt as isStateCheckpointDue, Q as summarizeProcessorToolsForSpan, R as isTrailingAssistantGuardContinuation, Rn as createRunScope, Rt as pickStateKeys, S as getChunkProducedAt, Sn as takenQueueThreadId, St as stepRefId, T as createOutputHandler, Tn as MastraTimeoutError, Tt as templateReadsState, Ut as applyStatePatch, V as ProviderHistoryCompat, Vt as summarizeStepResult, X as summarizeProcessorModelForSpan, Y as summarizeActiveToolsForSpan, Yt as isObservationalMemoryEnabled$1, Z as summarizeProcessorResultForSpan, Zt as parseMemoryRequestContext, _ as persistProcessorDataChunk, _t as stubStepResult, a as convertFullStreamChunkToMastra, an as snapshotToolResult, at as PROCESSOR_ABORT_SIGNAL, b as resolveOutputMessageSkippingCompletionChecks, bn as pendingQueueThreadId, bt as predicateReadsState, c as WorkflowRunOutput, cn as validationErrorModelOutput, ct as getHydratedStepResult, d as MastraModelOutput, dn as resolveSuspendedToolRunId, dt as lazyStepResults, en as computeModelOutputProviderMetadata, et as resolveProcessorSpanAttributes, f as clearStepPartIndexes, fn as resolveThreadIdFromArgs, ft as loadStepResults, g as isFeedbackContinuation, gn as applyStateSignal, gt as storageV2StepResultAccessors, h as findStepPartBoundaries, hn as tryStreamWithJsonFallback, ht as residentStepResultsLoader, in as resolveModelOutputAfterToolResultProcessors, it as createProcessorSendSignal, j as OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX, jn as raceAgainstAbort, k as getResponseFormat, kn as guardStreamWithAbort, kt as getStepResultAsync, l as TripWire, ln as isProcessorWorkflow, lt as hydrateStepResults, m as findIterationOffsetInParts, mn as tryGenerateWithJsonFallback, mt as residentStepResults, nn as latestProcessedModelOutput, nt as toProcessorSpanPhase, on as withAgentWorkflowToolMarker, ot as RunJournal, p as createDestructurableOutput, pn as supportedLanguageModelSpecifications, pt as loadedStepResults, q as takeHeldParts, rn as readModelOutput, rt as PROCESSOR_LATE_SIGNAL_SINK, s as MastraAgentNetworkStream, sn as normalizeModelOutput, st as buildStepResultAccessors, tn as hasToolResultProcessor, tt as resolveProcessorSpanName, u as getModelOutputForTripwire, un as isSupportedLanguageModel, ut as isStepResultStub, v as reconcileBufferedStepTexts, vn as assertNotQueueThreadId, vt as collectMappingStepRefs, w as markChunkOutputProcessed, wn as DEADLINE_SAVE_WAIT_MS, wt as resolveTemplate, x as resolveProcessorWriterMessageId, xn as queuedQueueThreadId, xt as resolveStepOutputs, y as resolveMessageText, yn as isQueueThreadId, yt as collectPredicateStepRefs, z as needsTrailingAssistantGuard, zn as createRunScopeKey, zt as stateBaseOf } from "./stream-DSVk0bct.js";
7
+ import { $ as summarizeToolChoiceForSpan, $t as commitToolResult, A as isSignalChunkExcluded, An as isMastraTimeoutError, At as getSnapshotMemoryInfo, B as removeTrailingAssistantGuardContinuations, Bt as stateColumnsWrite, C as stampChunkProducedAt, Cn as DEADLINE_SAVE_CLAIM_HOLD_MS, D as isStructuredOutputError, Dn as getAbortReason, Dt as validateTemplate, E as escapeUnescapedControlCharsInJsonStrings, En as createTimeoutAbortSignal, Et as traverseMappingPath, F as endOutputStreamSpanOutsideStep, Fn as safeClose, Ft as latestStepResults, G as FLUSH_HELD_PARTS_KEY, Gt as diffStateAsJson, Ht as unusedStateEntries, I as findOwnModelStepSpan, In as safeEnqueue, It as materializeState, J as withoutHeldContent, K as REPROCESS_PART_KEY, Kt as patchState, Ln as safeError, Lt as materializeWorkflowRun, M as ProcessorRunner, Mn as settledOrElapsed, N as ProcessorState, Nt as applyStateColumnsWrite, O as asJsonSchema, On as guardStreamUntilMatch, Ot as getStepResult, P as endOutputStreamSpanAtStepEnd, Pn as MastraModelInput, Pt as isStateCheckpointDue, Q as summarizeProcessorToolsForSpan, R as isTrailingAssistantGuardContinuation, Rn as createRunScope, Rt as pickStateKeys, S as getChunkProducedAt, Sn as takenQueueThreadId, St as stepRefId, T as createOutputHandler, Tn as MastraTimeoutError, Tt as templateReadsState, Ut as applyStatePatch, V as ProviderHistoryCompat, Vt as summarizeStepResult, X as summarizeProcessorModelForSpan, Y as summarizeActiveToolsForSpan, Yt as isObservationalMemoryEnabled$1, Z as summarizeProcessorResultForSpan, Zt as parseMemoryRequestContext, _ as persistProcessorDataChunk, _t as stubStepResult, a as convertFullStreamChunkToMastra, an as snapshotToolResult, at as PROCESSOR_ABORT_SIGNAL, b as resolveOutputMessageSkippingCompletionChecks, bn as pendingQueueThreadId, bt as predicateReadsState, c as WorkflowRunOutput, cn as validationErrorModelOutput, ct as getHydratedStepResult, d as MastraModelOutput, dn as resolveSuspendedToolRunId, dt as lazyStepResults, en as computeModelOutputProviderMetadata, et as resolveProcessorSpanAttributes, f as clearStepPartIndexes, fn as resolveThreadIdFromArgs, ft as loadStepResults, g as isFeedbackContinuation, gn as applyStateSignal, gt as storageV2StepResultAccessors, h as findStepPartBoundaries, hn as tryStreamWithJsonFallback, ht as residentStepResultsLoader, in as resolveModelOutputAfterToolResultProcessors, it as createProcessorSendSignal, j as OUTPUT_STREAM_HOOK_DURATION_KEY_PREFIX, jn as raceAgainstAbort, k as getResponseFormat, kn as guardStreamWithAbort, kt as getStepResultAsync, l as TripWire, ln as isProcessorWorkflow, lt as hydrateStepResults, m as findIterationOffsetInParts, mn as tryGenerateWithJsonFallback, mt as residentStepResults, nn as latestProcessedModelOutput, nt as toProcessorSpanPhase, on as withAgentWorkflowToolMarker, ot as RunJournal, p as createDestructurableOutput, pn as supportedLanguageModelSpecifications, pt as loadedStepResults, q as takeHeldParts, rn as readModelOutput, rt as PROCESSOR_LATE_SIGNAL_SINK, s as MastraAgentNetworkStream, sn as normalizeModelOutput, st as buildStepResultAccessors, tn as hasToolResultProcessor, tt as resolveProcessorSpanName, u as getModelOutputForTripwire, un as isSupportedLanguageModel, ut as isStepResultStub, v as reconcileBufferedStepTexts, vn as assertNotQueueThreadId, vt as collectMappingStepRefs, w as markChunkOutputProcessed, wn as DEADLINE_SAVE_WAIT_MS, wt as resolveTemplate, x as resolveProcessorWriterMessageId, xn as queuedQueueThreadId, xt as resolveStepOutputs, y as resolveMessageText, yn as isQueueThreadId, yt as collectPredicateStepRefs, z as needsTrailingAssistantGuard, zn as createRunScopeKey, zt as stateBaseOf } from "./stream-CyaGm-DI.js";
8
8
  import { HAND_BACK_STATE_SYMBOL, PARENT_STATE_SYMBOL, PUBSUB_SYMBOL, STREAM_FORMAT_SYMBOL, WORKFLOW_CANCELLED_SYMBOL } from "./workflows/constants.js";
9
9
  import { c as MASTRA_THREAD_ID_KEY, d as isReservedRequestContextKey, f as mergeVersionOverrides$1, l as MASTRA_VERSIONS_KEY, n as MASTRA_AUTH_TOKEN_KEY, o as MASTRA_RESOURCE_ID_KEY, p as withoutLiveRequestKeys, r as MASTRA_INHERITED_MEMORY_KEY, s as MASTRA_SCOPES_KEY, t as MASTRA_CONTINUATION_TOOL_CALL_IDS_KEY, u as RequestContext } from "./request-context-COnZHt2-.js";
10
10
  import { _ as resolveObservabilityContext, a as agentLoopTermination, c as compactStopReasonContext, g as createObservabilityContext, h as wrapMastra, i as subtractReportedUsage, m as unwrapMastraTracingProxy, n as extractUsageMetrics, o as executionFailureTermination, r as isUsageIncomplete, s as tripwireTermination, t as calculateObservedUsage } from "./observability-DPDWibyH.js";
@@ -13,9 +13,9 @@ import { a as getOrCreateSpan, f as resolveCurrentSpan, l as getTimeToFirstChunk
13
13
  import { _ as getRequestContextInputValues, a as getModelFacingValidationError, d as validateToolOutput, g as getRequestContextInputSource, l as resolveToolOutputValidationSchema, r as createTool, u as validateToolInput } from "./tool-DIFduuTw.js";
14
14
  import { isStandardSchemaWithJSON, standardSchemaToJSONSchema, toStandardSchema } from "./schema/index.js";
15
15
  import { i as setSpanErrorOrigin, n as getSpanErrorOrigin } from "./error-count-BH-rJW7q.js";
16
- import { A as eagerToolCallDidNotExecute, D as EagerToolExecutionCoordinator, E as EAGER_TOOL_EXECUTION_MARKER, F as hasRunningRunStep, I as isRunStepActive, L as setRunLeaseFence, M as isEagerlyExecutableToolCall, N as TOOL_ABORT_NOTICE, O as EagerToolExecutionNotRun, P as clearRunLeaseFence, R as startRunStep, S as selectFields, T as EAGER_TOOL_BAILOUT, a as ensureToolProperties, b as removeUndefinedValues, d as makeCoreTool, i as delay$1, j as eagerToolCallSuspensionIntent, k as eagerToolCallAlreadyAnnouncedInput, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge$1, v as readPositiveIntEnv, w as EAGER_TOOL_ABORT_SIGNAL, y as rebindProcessorTools, z as whenRunStepsSettle } from "./utils-DCDsj1CG.js";
16
+ import { A as eagerToolCallDidNotExecute, D as EagerToolExecutionCoordinator, E as EAGER_TOOL_EXECUTION_MARKER, F as hasRunningRunStep, I as isRunStepActive, L as setRunLeaseFence, M as isEagerlyExecutableToolCall, N as TOOL_ABORT_NOTICE, O as EagerToolExecutionNotRun, P as clearRunLeaseFence, R as startRunStep, S as selectFields, T as EAGER_TOOL_BAILOUT, a as ensureToolProperties, b as removeUndefinedValues, d as makeCoreTool, i as delay$1, j as eagerToolCallSuspensionIntent, k as eagerToolCallAlreadyAnnouncedInput, n as createMastraProxy, o as generateEmptyFromSchema, p as makeProcessorCoreTool, r as deepMerge$1, v as readPositiveIntEnv, w as EAGER_TOOL_ABORT_SIGNAL, y as rebindProcessorTools, z as whenRunStepsSettle } from "./utils-Dl5BqcZO.js";
17
17
  import { h as getWorkflowFGAResourceId, i as MastraFGAPermissions, y as requireFGA } from "./ee-iTj2bRDt-By_B9ngH.js";
18
- import { c as createBackgroundTask, o as resolveBackgroundConfig, s as sanitizeToolArguments, t as generateBackgroundTaskSystemPrompt } from "./background-tasks-CgspqU_S.js";
18
+ import { c as createBackgroundTask, o as resolveBackgroundConfig, s as sanitizeToolArguments, t as generateBackgroundTaskSystemPrompt } from "./background-tasks-CbBbS-g3.js";
19
19
  import { a as isApprovalExempt, c as isProviderDefinedTool, d as markAgentWorkflowTool, f as markApprovalExempt, l as isProviderTool, n as getNeedsApprovalFn, o as isBuiltBeforeApproval, r as getProviderToolName, s as isMastraTool, t as getBeforeApprovalFn } from "./toolchecks-CRAfUe9H.js";
20
20
  import { t as ToolStream } from "./stream-D9JOykz7.js";
21
21
  import { a as waitDelay, i as getRetryAfterMs, n as DEFAULT_MAX_RETRY_AFTER_MS, r as clampDelayMs } from "./fetchWithRetry-DFSvpYDT.js";
@@ -23,16 +23,16 @@ import { boundedStringify, ensureSerializable, safeStringify } from "./utils/saf
23
23
  import { t as deepEqual$3 } from "./deep-equal-d1xU02ag.js";
24
24
  import { n as resolveDynamicArgument, t as getRequestUser } from "./dynamic-argument-BzPK3qPN.js";
25
25
  import { A as stableStringify$1, E as removeWorkingMemoryTags, P as embed$3, Z as preserveResponseItemIdsOnMerge, a as isTerminalToolInvocationState, c as withUnavailableAttachmentUrls, d as aiV5UIMessagesToAIV5ModelMessages, f as coreContentToString, i as isClientToolInvocationUpdate, l as isDownloadAssetsError, m as filterMessagesForPersistence, n as MessageList, ot as normalizeToolOutput, p as messagesAreEqual, r as advancesToolInvocationState, s as unavailableAttachmentPlaceholder, t as convertMessages, u as MessageMerger } from "./message-list-RgFlLrxG.js";
26
- import { a as ModelRouterLanguageModel, d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, n as ModelRouterEmbeddingModel, o as resolveApiProviderId, p as readModelStreamTransport } from "./llm-B6EYEbYf.js";
26
+ import { a as ModelRouterLanguageModel, d as attachModelStreamTransport, f as isDataChunk, i as resolveModelConfig, n as ModelRouterEmbeddingModel, o as resolveApiProviderId, p as readModelStreamTransport } from "./llm-hWZGKDUy.js";
27
27
  import { a as withToolPayloadTransformMetadata, i as transformToolPayloadForTargets, n as hasTransformedToolPayload, o as withToolPayloadTransformProviderMetadata, r as normalizeToolPayloadTransformPolicy, t as getTransformedToolPayload } from "./payload-transform-Dj3HUeD4.js";
28
28
  import { d as signalSpanAttributes, h as signalToXmlMarkup, l as mastraDBMessageToSignal, n as createSignal, o as isMastraSignalMessage, s as isTransientSignalMessage, u as resolveDeliveryAttributes } from "./signals-CqR_iWkg.js";
29
29
  import { h as resolveFilePartMediaTypeAndData, m as parseDataUri, o as categorizeFileData } from "./to-prompt-CMlVGYxC.js";
30
30
  import { c as parsePartialJson, h as tool$1, m as generateId$1, p as asSchema$1, r as embed$4, u as APICallError$1 } from "./dist-TPVqg8oV.js";
31
31
  import { n as embed$5 } from "./dist-D3cKCUe-.js";
32
32
  import { i as hasFreeFormObject } from "./model-DS-b2R-R.js";
33
- import { c as modelSupportsStructuredOutput, l as modelSupportsTemperature } from "./provider-registry-B9UP28b4.js";
33
+ import { c as modelSupportsStructuredOutput, l as modelSupportsTemperature } from "./provider-registry-DsK3rXeU.js";
34
34
  import { t as InMemoryServerCache } from "./inmemory-BK3zLwvM.js";
35
- import { t as MastraLLMV1 } from "./model-D2XwLRQi.js";
35
+ import { t as MastraLLMV1 } from "./model-CAp-mgCd.js";
36
36
  import { MISSING, collectInvalidPredicatePaths, createPredicateEvaluator, derivePredicateLabel, normalizePredicatePath, walk } from "./predicate/index.js";
37
37
  import { Classifier } from "./classifier/index.js";
38
38
  import { initContextStorage, withSpanErrorAttempt } from "./observability/context-storage.js";
@@ -43,7 +43,7 @@ import { An as computeTraceStatus, Cr as extractTrajectory, Dr as saveScorePaylo
43
43
  import { t as GoalSignalProvider } from "./signal-provider-B_mfW-J4.js";
44
44
  import { t as slugify } from "./slugify-BUNmb-Ga.js";
45
45
  import { F as LocalSandbox, at as evaluateReadRecord, c as Workspace, dt as WORKSPACE_TOOLS, g as resolveToolConfig, gt as shellQuote, h as createWorkspaceTools, ht as sliceByTokens, l as createSkillTools, lt as CompositeFilesystem, mt as estimateTokenCount, ot as normalizeReadTrackerPath, pt as sliceByTokensSafe, st as LocalFilesystem } from "./workspace-sqcfdZRR.js";
46
- import { i as normalizeWebSearchProvider, n as createWebSearchProviderTool, r as isWebSearchTool } from "./tools-ybbz1YKg.js";
46
+ import { n as isWebSearchTool, r as resolveWebSearchProviderTool } from "./tools-FwJyNoyg.js";
47
47
  import { D as BM25Index, O as tokenize } from "./workspace-skills-38OY32_b.js";
48
48
  import { f as calculatePagination, g as InMemoryThreadStateStorage, h as resolveListOrderBy, m as normalizePerPage, p as compareByField, s as StorageDomain, u as MastraCompositeStore } from "./filesystem-versioned-BL1ojJLo.js";
49
49
  import { coreFeatures } from "./features/index.js";
@@ -85720,7 +85720,7 @@ async function prepareForDurableExecution(options) {
85720
85720
  });
85721
85721
  let tripwireData;
85722
85722
  if (inputProcessors.length > 0) try {
85723
- const { ProcessorRunner } = await import("./stream-DSVk0bct.js").then((n) => n.L);
85723
+ const { ProcessorRunner } = await import("./stream-CyaGm-DI.js").then((n) => n.L);
85724
85724
  await new ProcessorRunner({
85725
85725
  inputProcessors,
85726
85726
  outputProcessors,
@@ -89680,7 +89680,7 @@ var Agent = class Agent extends MastraBase {
89680
89680
  const ensuredTools = ensureToolProperties(tools);
89681
89681
  if (!resolveWebSearch || !Object.values(ensuredTools).some(isWebSearchTool)) return ensuredTools;
89682
89682
  const model = await this.getModel({ requestContext });
89683
- return Object.fromEntries(Object.entries(ensuredTools).map(([key, tool]) => [key, isWebSearchTool(tool) ? createWebSearchProviderTool(normalizeWebSearchProvider(model)) : tool]));
89683
+ return Object.fromEntries(Object.entries(ensuredTools).map(([key, tool]) => [key, isWebSearchTool(tool) ? resolveWebSearchProviderTool(model) : tool]));
89684
89684
  };
89685
89685
  if (typeof this.#tools !== "function") return resolveToolList(this.#tools);
89686
89686
  return resolveMaybePromise(resolveDynamicArgument(this.#tools, {
@@ -90813,7 +90813,7 @@ var Agent = class Agent extends MastraBase {
90813
90813
  const model = activeModel ?? (assignedToolEntries.length > 0 ? await getModel() : void 0);
90814
90814
  const assignedCoreToolEntries = await Promise.all(assignedToolEntries.map(async ([k, tool]) => {
90815
90815
  if (!tool) return;
90816
- const toolToConvert = isWebSearchTool(tool) ? createWebSearchProviderTool(normalizeWebSearchProvider(model)) : tool;
90816
+ const toolToConvert = isWebSearchTool(tool) ? resolveWebSearchProviderTool(model) : tool;
90817
90817
  const options = {
90818
90818
  name: k,
90819
90819
  runId,
@@ -90906,7 +90906,7 @@ var Agent = class Agent extends MastraBase {
90906
90906
  for (const [toolName, tool] of clientToolsForInput) {
90907
90907
  const model = activeModel ?? await getModel();
90908
90908
  let toolToConvert;
90909
- if (isWebSearchTool(tool)) toolToConvert = createWebSearchProviderTool(normalizeWebSearchProvider(model));
90909
+ if (isWebSearchTool(tool)) toolToConvert = resolveWebSearchProviderTool(model);
90910
90910
  else if (isProviderTool(tool)) toolToConvert = tool;
90911
90911
  else {
90912
90912
  const { execute, ...toolRest } = tool;
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_state_processor = require("../state-processor-DaSmhVUX.cjs");
3
- const require_tools = require("../tools-C2q0ougI.cjs");
4
- const require_agent_controller = require("../agent-controller-WTjY0HJM.cjs");
3
+ const require_tools = require("../tools-DZoVfKPl.cjs");
4
+ const require_agent_controller = require("../agent-controller-mS3CgzwJ.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-B_KsS82m.js";
2
- import { s as askUserTool, t as submitPlanTool } from "../tools-ybbz1YKg.js";
3
- import { a as Session, c as defaultDisplayState, l as defaultOMProgressState, n as parseSubagentMeta, t as AgentController } from "../agent-controller-D2d_qiJr.js";
2
+ import { o as askUserTool, t as submitPlanTool } from "../tools-FwJyNoyg.js";
3
+ import { a as Session, c as defaultDisplayState, l as defaultOMProgressState, n as parseSubagentMeta, t as AgentController } from "../agent-controller-WGML_NKp.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-CtL0diD6.cjs");
2
+ const require_mastra = require("./mastra-B6Fw2ZIW.cjs");
3
3
  exports.Mastra = require_mastra.Mastra;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { t as Mastra } from "./mastra-BhPympcg.js";
1
+ export { t as Mastra } from "./mastra-CliUSn4-.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_execution_fence = require("../execution-fence-CKFtgb2u.cjs");
3
+ const require_execution_fence = require("../execution-fence-C-wa17Wr.cjs");
4
4
  const require_tool = require("../tool-Dn9WSDVn.cjs");
5
5
  const require_workspace = require("../workspace-BQD4tcQi.cjs");
6
6
  let crypto = require("crypto");
@@ -1,5 +1,5 @@
1
1
  import { t as MastraBase } from "../base-CKLWBhDo.js";
2
- import { $n as assertKnowledgeCeilingRaised, $r as KnowledgeImporterBindingConflictError, $t as KnowledgeLinkRepairUnsupportedError, Ai as knowledgeLinkRefKey, Bt as KnowledgeRunScopesError, Ci as MAX_KNOWLEDGE_PAGE_LINKS, Di as assertKnowledgeNoteTextWithinBound, Ei as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Fi as parseKnowledgePageRef, Fo as getStorageSource, Ft as PINNED_READ_MEMO_KEY, Gt as moveKnowledgePage, Ht as knowledgeAgentScopes, Ii as KnowledgeInvalidCursorError, It as knowledgeDeliveredPins, Jt as updateKnowledgeNote, Kt as removeKnowledgeNote, Li as knowledgePageKeyProblem, Lt as buildKnowledgePageTools, Mi as knowledgePinDepth, Ni as knowledgePositionBetween, Oi as assertKnowledgePageDescriptionWithinBound, Pi as knowledgeScopeReadable, Po as augmentWithInit, Qn as MAX_KNOWLEDGE_SCOPE_TAGS, Qr as InMemoryKnowledgeStorage, Qt as KnowledgeLinkRefreshIncompleteError, Rt as heldScopes, Si as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Ti as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Ut as knowledgePersonaScopes, Vt as knowledgeRunPrincipals, Wt as addKnowledgeNote, Xn as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, Xt as KnowledgeSemanticIndex, Yt as upsertKnowledgePage, Zn as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, _i as KnowledgePageKeyConflictError, _n as encodeKnowledgeScopeId, ai as KnowledgeNotFoundError, an as syncKnowledgePageBodyLinks, ar as expandKnowledgeScope, bi as MAX_KNOWLEDGE_PAGE_BODY_LINKS, ci as KnowledgeTransactionDeadlineError, cn as knowledgeReadScopeFor, cr as knowledgeSemanticDocumentId, di as createKnowledgeUlid, dn as compileKnowledgeScopes, dr as parseKnowledgeNodeCursor, ei as KnowledgeImporterRunStateError, en as canRepairKnowledgeLinksInBatch, er as assertKnowledgeDescriptionWithinBound, fi as inspectKnowledgeSchema, fn as knowledgeMemoryScopes, gi as KnowledgePageHasChildrenError, gn as decodeKnowledgeScopeId, hi as KnowledgePageDepthError, hn as strongerKnowledgeRole, ii as KnowledgeConflictError, in as repairKnowledgeLinks, ir as createKnowledgeNodeCursor, ji as knowledgePagePath, ki as canonicalKnowledgeName, li as KnowledgeUnsupportedCapabilityError, ln as knowledgeRoleOn, lr as knowledgeSemanticIdempotencyKey, mi as KnowledgeMoveTooLargeError, mn as knowledgeScopeAddress, ni as KNOWLEDGE_STORAGE_CONTRACT_VERSION, nn as refreshKnowledgeLinksTo, nr as assertKnowledgeScopeWithinCeiling, oi as KnowledgeSchemaResetRequiredError, on as updateKnowledgeLinks, or as isKnowledgeScopeVisible, pi as parseKnowledgeWikilinks, pn as knowledgeRunScopes, qt as removeKnowledgePage, ri as KNOWLEDGE_STORAGE_SCHEMA_VERSION, rn as reindexKnowledgeLinks, rr as canonicalizeKnowledgeScope, si as KnowledgeStorage, sn as knowledgeAccessGrants, sr as knowledgeScopeKey, ti as KnowledgeImportersStorage, tn as knowledgeSubtree, tr as assertKnowledgeRecordTextWithinBound, ui as assertKnowledgeSchemaCompatible, un as KnowledgeDeclarationError, ur as knowledgeVisibleScopeKeys, vi as MAX_KNOWLEDGE_MOVE_PAGES, vn as buildKnowledgeInstructions, wi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, xi as MAX_KNOWLEDGE_PAGE_DEPTH, yi as MAX_KNOWLEDGE_NOTE_TOKENS, zt as KnowledgeRun } from "../execution-fence-DTrAehtv.js";
2
+ import { $n as assertKnowledgeCeilingRaised, $r as KnowledgeImporterBindingConflictError, $t as KnowledgeLinkRepairUnsupportedError, Ai as knowledgeLinkRefKey, Bt as KnowledgeRunScopesError, Ci as MAX_KNOWLEDGE_PAGE_LINKS, Di as assertKnowledgeNoteTextWithinBound, Ei as MAX_KNOWLEDGE_PIN_LIST_DEPTH, Fi as parseKnowledgePageRef, Fo as getStorageSource, Ft as PINNED_READ_MEMO_KEY, Gt as moveKnowledgePage, Ht as knowledgeAgentScopes, Ii as KnowledgeInvalidCursorError, It as knowledgeDeliveredPins, Jt as updateKnowledgeNote, Kt as removeKnowledgeNote, Li as knowledgePageKeyProblem, Lt as buildKnowledgePageTools, Mi as knowledgePinDepth, Ni as knowledgePositionBetween, Oi as assertKnowledgePageDescriptionWithinBound, Pi as knowledgeScopeReadable, Po as augmentWithInit, Qn as MAX_KNOWLEDGE_SCOPE_TAGS, Qr as InMemoryKnowledgeStorage, Qt as KnowledgeLinkRefreshIncompleteError, Rt as heldScopes, Si as MAX_KNOWLEDGE_PAGE_DESCRIPTION_TOKENS, Ti as MAX_KNOWLEDGE_PAGE_LIST_LIMIT, Ut as knowledgePersonaScopes, Vt as knowledgeRunPrincipals, Wt as addKnowledgeNote, Xn as MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, Xt as KnowledgeSemanticIndex, Yt as upsertKnowledgePage, Zn as MAX_KNOWLEDGE_RECORD_TEXT_LENGTH, _i as KnowledgePageKeyConflictError, _n as encodeKnowledgeScopeId, ai as KnowledgeNotFoundError, an as syncKnowledgePageBodyLinks, ar as expandKnowledgeScope, bi as MAX_KNOWLEDGE_PAGE_BODY_LINKS, ci as KnowledgeTransactionDeadlineError, cn as knowledgeReadScopeFor, cr as knowledgeSemanticDocumentId, di as createKnowledgeUlid, dn as compileKnowledgeScopes, dr as parseKnowledgeNodeCursor, ei as KnowledgeImporterRunStateError, en as canRepairKnowledgeLinksInBatch, er as assertKnowledgeDescriptionWithinBound, fi as inspectKnowledgeSchema, fn as knowledgeMemoryScopes, gi as KnowledgePageHasChildrenError, gn as decodeKnowledgeScopeId, hi as KnowledgePageDepthError, hn as strongerKnowledgeRole, ii as KnowledgeConflictError, in as repairKnowledgeLinks, ir as createKnowledgeNodeCursor, ji as knowledgePagePath, ki as canonicalKnowledgeName, li as KnowledgeUnsupportedCapabilityError, ln as knowledgeRoleOn, lr as knowledgeSemanticIdempotencyKey, mi as KnowledgeMoveTooLargeError, mn as knowledgeScopeAddress, ni as KNOWLEDGE_STORAGE_CONTRACT_VERSION, nn as refreshKnowledgeLinksTo, nr as assertKnowledgeScopeWithinCeiling, oi as KnowledgeSchemaResetRequiredError, on as updateKnowledgeLinks, or as isKnowledgeScopeVisible, pi as parseKnowledgeWikilinks, pn as knowledgeRunScopes, qt as removeKnowledgePage, ri as KNOWLEDGE_STORAGE_SCHEMA_VERSION, rn as reindexKnowledgeLinks, rr as canonicalizeKnowledgeScope, si as KnowledgeStorage, sn as knowledgeAccessGrants, sr as knowledgeScopeKey, ti as KnowledgeImportersStorage, tn as knowledgeSubtree, tr as assertKnowledgeRecordTextWithinBound, ui as assertKnowledgeSchemaCompatible, un as KnowledgeDeclarationError, ur as knowledgeVisibleScopeKeys, vi as MAX_KNOWLEDGE_MOVE_PAGES, vn as buildKnowledgeInstructions, wi as MAX_KNOWLEDGE_PAGE_LINK_REF_LENGTH, xi as MAX_KNOWLEDGE_PAGE_DEPTH, yi as MAX_KNOWLEDGE_NOTE_TOKENS, zt as KnowledgeRun } from "../execution-fence-DvN3Fwm3.js";
3
3
  import { standardSchemaToJSONSchema, toStandardSchema } from "../schema/index.js";
4
4
  import { i as createStandardSchemaIssuesError } from "../tool-DIFduuTw.js";
5
5
  import { mt as estimateTokenCount } from "../workspace-sqcfdZRR.js";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_llm = require("../llm-P6sWWNc6.cjs");
3
- const require_netlify = require("../netlify-DgHrsLpJ.cjs");
4
- const require_provider_registry = require("../provider-registry-Brcz84P1.cjs");
2
+ const require_llm = require("../llm-dX0y0atH.cjs");
3
+ const require_netlify = require("../netlify-BMhDN9E8.cjs");
4
+ const require_provider_registry = require("../provider-registry-CcMAUHdH.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-B6EYEbYf.js";
2
- import { d as GATEWAY_AUTH_HEADER, g as getGatewayId, h as findGatewayForModel, r as ModelsDevGateway, t as NetlifyGateway, x as MastraModelGateway } from "../netlify-d2fyniAS.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-B9UP28b4.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-hWZGKDUy.js";
2
+ import { d as GATEWAY_AUTH_HEADER, g as getGatewayId, h as findGatewayForModel, r as ModelsDevGateway, t as NetlifyGateway, x as MastraModelGateway } from "../netlify-xMA06xL8.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-DsK3rXeU.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 };
@@ -1,3 +1,10 @@
1
+ export declare const OPENROUTER_WEB_SEARCH_TOOL_ID = "openrouter.web_search";
2
+ /**
3
+ * Marks a model whose requests go to the Mastra gateway's chat endpoint. Such a model reports
4
+ * `openrouter` as its provider, so the mark is how callers know its tools are gateway tools.
5
+ */
6
+ export declare function markMastraGatewayChatModel<T extends object>(model: T): T;
7
+ export declare function isMastraGatewayChatModel(model: unknown): boolean;
1
8
  type GatewayTool = {
2
9
  type: string;
3
10
  id?: string;