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

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 (509) hide show
  1. package/dist/_types/@internal_core@0.1.4/dist/knowledge-compat/index.d.ts +363 -0
  2. package/dist/a2a/index.cjs +1 -1
  3. package/dist/a2a/index.js +1 -1
  4. package/dist/agent/agent.d.ts +72 -1
  5. package/dist/agent/agent.types.d.ts +30 -2
  6. package/dist/agent/durable/create-evented-agent.d.ts +6 -0
  7. package/dist/agent/durable/durable-agent.d.ts +1 -15
  8. package/dist/agent/durable/index.cjs +7 -26
  9. package/dist/agent/durable/index.js +7 -26
  10. package/dist/agent/durable/preparation.d.ts +2 -0
  11. package/dist/agent/durable/utils/resolve-runtime.d.ts +9 -0
  12. package/dist/agent/durable/workflows/durable-loop-builder.d.ts +4 -0
  13. package/dist/agent/durable/workflows/finalize-run.d.ts +3 -1
  14. package/dist/agent/durable/workflows/steps/llm-execution.d.ts +1 -0
  15. package/dist/agent/index.cjs +3 -3
  16. package/dist/agent/index.js +3 -3
  17. package/dist/agent/message-list/index.cjs +1 -1
  18. package/dist/agent/message-list/index.js +1 -1
  19. package/dist/agent/message-list/message-list.d.ts +11 -0
  20. package/dist/agent/message-list/utils/provider-compat.d.ts +1 -0
  21. package/dist/agent/request-context-snapshot.d.ts +1 -1
  22. package/dist/agent/streams/types.d.ts +10 -0
  23. package/dist/agent/thread-stream-runtime.d.ts +5 -0
  24. package/dist/agent/types.d.ts +25 -0
  25. package/dist/agent-builder/ee/index.cjs +1 -1
  26. package/dist/agent-builder/ee/index.js +1 -1
  27. package/dist/agent-controller/index.cjs +1 -1
  28. package/dist/agent-controller/index.js +1 -1
  29. package/dist/{agent-controller-K5vHtqfO.cjs → agent-controller-CrQ9OF80.cjs} +8 -8
  30. package/dist/{agent-controller-Cf3_IuY8.js → agent-controller-SSlKzE6A.js} +8 -8
  31. package/dist/background-tasks/index.cjs +1 -1
  32. package/dist/background-tasks/index.js +1 -1
  33. package/dist/{background-tasks-DqnQMfuf.cjs → background-tasks-BDrYBis-.cjs} +5 -3
  34. package/dist/{background-tasks-BgpX1P_s.js → background-tasks-BnJfNLFo.js} +5 -3
  35. package/dist/browser/index.cjs +2 -2
  36. package/dist/browser/index.js +2 -2
  37. package/dist/{builder-x295GDL6.js → builder-Cl-0BWkh.js} +2 -2
  38. package/dist/{builder-D8Osghdo.cjs → builder-Cw8u3pPl.cjs} +2 -2
  39. package/dist/capabilities/302ai.json +192 -192
  40. package/dist/capabilities/abliteratedllm.json +34 -34
  41. package/dist/capabilities/abliteration-ai.json +11 -11
  42. package/dist/capabilities/above.json +17 -17
  43. package/dist/capabilities/adaption.json +12 -12
  44. package/dist/capabilities/adzuki.json +30 -30
  45. package/dist/capabilities/agentrouter.json +10 -10
  46. package/dist/capabilities/agnes.json +4 -4
  47. package/dist/capabilities/ai-router.json +9 -9
  48. package/dist/capabilities/aiand.json +19 -11
  49. package/dist/capabilities/aigrow.json +11 -11
  50. package/dist/capabilities/aimlapi.json +146 -149
  51. package/dist/capabilities/aipg.json +2 -2
  52. package/dist/capabilities/aixy.json +14 -14
  53. package/dist/capabilities/aki-io.json +11 -11
  54. package/dist/capabilities/alibaba-cn.json +128 -109
  55. package/dist/capabilities/alibaba-coding-plan-cn.json +7 -19
  56. package/dist/capabilities/alibaba-coding-plan.json +7 -19
  57. package/dist/capabilities/alibaba-token-plan-cn.json +49 -67
  58. package/dist/capabilities/alibaba-token-plan.json +51 -69
  59. package/dist/capabilities/alibaba.json +71 -118
  60. package/dist/capabilities/ambient.json +14 -14
  61. package/dist/capabilities/amd.json +11 -11
  62. package/dist/capabilities/anthropic.json +48 -48
  63. package/dist/capabilities/anyapi.json +18 -18
  64. package/dist/capabilities/apiko.json +2 -2
  65. package/dist/capabilities/arcee.json +10 -10
  66. package/dist/capabilities/augure.json +6 -6
  67. package/dist/capabilities/auriko.json +20 -20
  68. package/dist/capabilities/bailing.json +5 -5
  69. package/dist/capabilities/baseten.json +46 -16
  70. package/dist/capabilities/bee.json +5 -5
  71. package/dist/capabilities/berget.json +4 -4
  72. package/dist/capabilities/bothub.json +16 -16
  73. package/dist/capabilities/boundless.json +36 -36
  74. package/dist/capabilities/bumo.json +40 -40
  75. package/dist/capabilities/byteplus.json +32 -32
  76. package/dist/capabilities/cerebras.json +4 -4
  77. package/dist/capabilities/cheapaimodel.json +5 -5
  78. package/dist/capabilities/cheapest-token.json +24 -24
  79. package/dist/capabilities/chutes.json +9 -9
  80. package/dist/capabilities/cline-pass.json +37 -37
  81. package/dist/capabilities/cloudcode.json +4 -4
  82. package/dist/capabilities/cloudflare-workers-ai.json +24 -24
  83. package/dist/capabilities/commandcode.json +152 -152
  84. package/dist/capabilities/concentrate.json +290 -266
  85. package/dist/capabilities/cortecs.json +105 -105
  86. package/dist/capabilities/crossmodel.json +160 -160
  87. package/dist/capabilities/crusoe.json +10 -10
  88. package/dist/capabilities/daoxe.json +7 -7
  89. package/dist/capabilities/databricks.json +318 -62
  90. package/dist/capabilities/deepinfra.json +73 -129
  91. package/dist/capabilities/deepseek.json +2 -2
  92. package/dist/capabilities/digitalocean.json +114 -114
  93. package/dist/capabilities/dothoosh.json +28 -28
  94. package/dist/capabilities/doubleword.json +24 -24
  95. package/dist/capabilities/edenai.json +458 -458
  96. package/dist/capabilities/empiriolabs.json +166 -166
  97. package/dist/capabilities/engy.json +20 -20
  98. package/dist/capabilities/evroc.json +8 -8
  99. package/dist/capabilities/ezkielyna.json +8 -8
  100. package/dist/capabilities/fastrouter.json +85 -85
  101. package/dist/capabilities/fireworks-ai.json +107 -44
  102. package/dist/capabilities/freemodel.json +23 -23
  103. package/dist/capabilities/friendli.json +9 -9
  104. package/dist/capabilities/frogbot.json +94 -94
  105. package/dist/capabilities/gisoo.json +16 -16
  106. package/dist/capabilities/gmicloud.json +17 -17
  107. package/dist/capabilities/google.json +57 -57
  108. package/dist/capabilities/graphn.json +10 -10
  109. package/dist/capabilities/greenpt.json +36 -36
  110. package/dist/capabilities/groq.json +2 -2
  111. package/dist/capabilities/helicone.json +68 -68
  112. package/dist/capabilities/hopper.json +2 -2
  113. package/dist/capabilities/hostinger-router.json +12 -12
  114. package/dist/capabilities/hpc-ai.json +13 -13
  115. package/dist/capabilities/huawei-maas.json +17 -17
  116. package/dist/capabilities/hubris.json +30 -30
  117. package/dist/capabilities/huggingface.json +193 -37
  118. package/dist/capabilities/hyper.json +23 -23
  119. package/dist/capabilities/impossibl.json +140 -140
  120. package/dist/capabilities/inception.json +2 -2
  121. package/dist/capabilities/inceptron.json +4 -4
  122. package/dist/capabilities/inco.json +3 -3
  123. package/dist/capabilities/infer.json +15 -15
  124. package/dist/capabilities/inferall.json +10 -10
  125. package/dist/capabilities/inference-coop.json +9 -9
  126. package/dist/capabilities/inferenceapis.json +9 -9
  127. package/dist/capabilities/inferris.json +3 -3
  128. package/dist/capabilities/infersia.json +2 -2
  129. package/dist/capabilities/inferx.json +3 -3
  130. package/dist/capabilities/infomaniak.json +4 -4
  131. package/dist/capabilities/io-net.json +2 -2
  132. package/dist/capabilities/isoquant.json +4 -4
  133. package/dist/capabilities/iteracompute.json +60 -60
  134. package/dist/capabilities/jad-ai.json +3 -3
  135. package/dist/capabilities/jalapeno.json +12 -12
  136. package/dist/capabilities/jiekou.json +63 -63
  137. package/dist/capabilities/jzstoken.json +50 -50
  138. package/dist/capabilities/keln.json +14 -21
  139. package/dist/capabilities/kenari.json +123 -120
  140. package/dist/capabilities/kilo.json +622 -647
  141. package/dist/capabilities/kimi-code-plan-cn.json +5 -5
  142. package/dist/capabilities/kimi-code-plan-global.json +5 -5
  143. package/dist/capabilities/kitani.json +6 -6
  144. package/dist/capabilities/klavo.json +18 -18
  145. package/dist/capabilities/korouter.json +29 -29
  146. package/dist/capabilities/kunavo.json +10 -10
  147. package/dist/capabilities/liquid.json +11 -11
  148. package/dist/capabilities/lithosai.json +2 -2
  149. package/dist/capabilities/llmgateway-providers.json +932 -905
  150. package/dist/capabilities/llmgateway.json +336 -336
  151. package/dist/capabilities/llmtr.json +22 -22
  152. package/dist/capabilities/logits.json +2 -2
  153. package/dist/capabilities/longcat.json +2 -7
  154. package/dist/capabilities/lowrouter.json +54 -54
  155. package/dist/capabilities/lyceum.json +12 -12
  156. package/dist/capabilities/melious.json +13 -13
  157. package/dist/capabilities/merge-gateway.json +260 -260
  158. package/dist/capabilities/meta.json +7 -7
  159. package/dist/capabilities/mistral.json +20 -20
  160. package/dist/capabilities/mixlayer.json +4 -4
  161. package/dist/capabilities/modal.json +10 -10
  162. package/dist/capabilities/model-oracle-ai.json +25 -25
  163. package/dist/capabilities/modelis.json +20 -20
  164. package/dist/capabilities/modular.json +6 -6
  165. package/dist/capabilities/moneo.json +16 -16
  166. package/dist/capabilities/moonshotai-cn.json +7 -7
  167. package/dist/capabilities/moonshotai.json +7 -7
  168. package/dist/capabilities/morph.json +11 -11
  169. package/dist/capabilities/munito-eu.json +6 -6
  170. package/dist/capabilities/munito.json +6 -6
  171. package/dist/capabilities/nan.json +27 -27
  172. package/dist/capabilities/nano-gpt.json +578 -578
  173. package/dist/capabilities/nearai.json +84 -84
  174. package/dist/capabilities/nebius.json +37 -28
  175. package/dist/capabilities/neon.json +126 -126
  176. package/dist/capabilities/neuralwatt.json +41 -41
  177. package/dist/capabilities/nokeep.json +4 -4
  178. package/dist/capabilities/novita-ai.json +154 -154
  179. package/dist/capabilities/nvidia.json +35 -35
  180. package/dist/capabilities/oathbreaker.json +2 -2
  181. package/dist/capabilities/obscurify.json +32 -32
  182. package/dist/capabilities/oci.json +7 -7
  183. package/dist/capabilities/ofox.json +357 -357
  184. package/dist/capabilities/ollama-cloud.json +56 -56
  185. package/dist/capabilities/openai.json +51 -51
  186. package/dist/capabilities/opencode-go.json +85 -84
  187. package/dist/capabilities/openrouter.json +542 -567
  188. package/dist/capabilities/opper.json +30 -24
  189. package/dist/capabilities/orcarouter.json +236 -236
  190. package/dist/capabilities/outerlabs.json +32 -32
  191. package/dist/capabilities/ovhcloud.json +7 -7
  192. package/dist/capabilities/pareto.json +6 -6
  193. package/dist/capabilities/pendra.json +4 -4
  194. package/dist/capabilities/perplexity-agent.json +61 -61
  195. package/dist/capabilities/phala.json +34 -34
  196. package/dist/capabilities/pioneer.json +30 -30
  197. package/dist/capabilities/poe.json +136 -136
  198. package/dist/capabilities/powerspring.json +13 -13
  199. package/dist/capabilities/primalabs.json +10 -10
  200. package/dist/capabilities/prime.json +124 -107
  201. package/dist/capabilities/privatemode-ai.json +14 -14
  202. package/dist/capabilities/proxystacks.json +6 -6
  203. package/dist/capabilities/qiniu-ai.json +16 -16
  204. package/dist/capabilities/refuseless.json +6 -6
  205. package/dist/capabilities/regolo-ai.json +6 -6
  206. package/dist/capabilities/requesty.json +172 -172
  207. package/dist/capabilities/ruapi.json +17 -17
  208. package/dist/capabilities/runcrate.json +5 -5
  209. package/dist/capabilities/runinfra.json +13 -13
  210. package/dist/capabilities/sakana.json +6 -6
  211. package/dist/capabilities/sambanova.json +9 -9
  212. package/dist/capabilities/sandbase.json +27 -27
  213. package/dist/capabilities/sarvam.json +12 -12
  214. package/dist/capabilities/scaleway.json +14 -14
  215. package/dist/capabilities/scnet-token-plan.json +9 -9
  216. package/dist/capabilities/scx-ai.json +26 -26
  217. package/dist/capabilities/sensenova.json +12 -12
  218. package/dist/capabilities/siliconflow-cn.json +49 -49
  219. package/dist/capabilities/siliconflow.json +46 -46
  220. package/dist/capabilities/snowflake-cortex.json +20 -20
  221. package/dist/capabilities/sokkan.json +7 -7
  222. package/dist/capabilities/sparrowcodes.json +25 -25
  223. package/dist/capabilities/standardcompute.json +102 -102
  224. package/dist/capabilities/steadyrouter.json +40 -40
  225. package/dist/capabilities/stepfun-ai-step-plan.json +6 -6
  226. package/dist/capabilities/stepfun-ai.json +15 -8
  227. package/dist/capabilities/stepfun-step-plan.json +15 -8
  228. package/dist/capabilities/stepfun.json +15 -8
  229. package/dist/capabilities/stepping-stone.json +16 -16
  230. package/dist/capabilities/synthetic.json +13 -13
  231. package/dist/capabilities/synthorai.json +19 -19
  232. package/dist/capabilities/teamorouter.json +24 -24
  233. package/dist/capabilities/teapot-router.json +13 -13
  234. package/dist/capabilities/tencent-coding-plan.json +1 -23
  235. package/dist/capabilities/tencent-token-plan.json +60 -23
  236. package/dist/capabilities/tencent-tokenhub.json +182 -7
  237. package/dist/capabilities/tensorx.json +50 -50
  238. package/dist/capabilities/tenstorrent.json +6 -6
  239. package/dist/capabilities/the-grid-ai.json +28 -28
  240. package/dist/capabilities/thinkingmachines.json +72 -55
  241. package/dist/capabilities/tinfoil.json +13 -13
  242. package/dist/capabilities/toapis.json +2 -2
  243. package/dist/capabilities/togetherai.json +54 -83
  244. package/dist/capabilities/tokengo.json +25 -25
  245. package/dist/capabilities/tokenify.json +9 -9
  246. package/dist/capabilities/trustedrouter.json +4 -4
  247. package/dist/capabilities/trustedtokens.json +17 -17
  248. package/dist/capabilities/umans-ai-coding-plan.json +13 -13
  249. package/dist/capabilities/umans-ai.json +10 -10
  250. package/dist/capabilities/unrestricted.json +6 -6
  251. package/dist/capabilities/uplinkswitch.json +21 -21
  252. package/dist/capabilities/upstage.json +4 -4
  253. package/dist/capabilities/vancine.json +23 -23
  254. package/dist/capabilities/vercel.json +540 -527
  255. package/dist/capabilities/vivgrid.json +80 -80
  256. package/dist/capabilities/volcengine-coding-plan.json +24 -54
  257. package/dist/capabilities/volcengine.json +55 -60
  258. package/dist/capabilities/vultr.json +24 -24
  259. package/dist/capabilities/wafer.ai.json +19 -19
  260. package/dist/capabilities/wallaby.json +5 -5
  261. package/dist/capabilities/wally.json +11 -11
  262. package/dist/capabilities/wandb.json +21 -21
  263. package/dist/capabilities/watt.json +24 -24
  264. package/dist/capabilities/xai.json +7 -7
  265. package/dist/capabilities/xiaomi-token-plan-ams.json +2 -12
  266. package/dist/capabilities/xiaomi-token-plan-cn.json +2 -12
  267. package/dist/capabilities/xiaomi-token-plan-sgp.json +2 -12
  268. package/dist/capabilities/xiaomi.json +3 -25
  269. package/dist/capabilities/xpersona.json +13 -13
  270. package/dist/capabilities/xxapi.json +31 -31
  271. package/dist/capabilities/zai-coding-plan.json +18 -18
  272. package/dist/capabilities/zai.json +49 -26
  273. package/dist/capabilities/zenifra.json +26 -26
  274. package/dist/capabilities/zenmux.json +205 -205
  275. package/dist/capabilities/zerogpu.json +11 -11
  276. package/dist/capabilities/zhipuai-coding-plan.json +6 -6
  277. package/dist/capabilities/zhipuai.json +39 -24
  278. package/dist/capabilities/zro.json +6 -6
  279. package/dist/channels/index.cjs +2 -2
  280. package/dist/channels/index.js +2 -2
  281. package/dist/{channels-Dx4jiXeK.js → channels-Cz1y3W6u.js} +1 -1
  282. package/dist/{channels-q6qnuRNV.cjs → channels-DQg4v_gm.cjs} +1 -1
  283. package/dist/coding-agent/index.cjs +2 -2
  284. package/dist/coding-agent/index.js +2 -2
  285. package/dist/datasets/dataset.d.ts +13 -6
  286. package/dist/datasets/experiment/durable.d.ts +16 -0
  287. package/dist/datasets/experiment/index.d.ts +2 -1
  288. package/dist/datasets/experiment/item.d.ts +26 -4
  289. package/dist/datasets/experiment/retries.d.ts +18 -0
  290. package/dist/datasets/experiment/types.d.ts +18 -0
  291. package/dist/datasets/experiment/workflow-id.d.ts +7 -0
  292. package/dist/datasets/experiment/workflow.d.ts +74 -0
  293. package/dist/datasets/index.cjs +3 -2
  294. package/dist/datasets/index.d.ts +2 -1
  295. package/dist/datasets/index.js +3 -3
  296. package/dist/docs/SKILL.md +4 -3
  297. package/dist/docs/assets/SOURCE_MAP.json +928 -903
  298. package/dist/docs/references/docs-deployment-workers.md +1 -1
  299. package/dist/docs/references/docs-evals-experiments.md +29 -1
  300. package/dist/docs/references/docs-harness-background-tasks.md +4 -1
  301. package/dist/docs/references/docs-harness-durable-agents.md +9 -5
  302. package/dist/docs/references/docs-knowledge-agents-and-tools.md +1 -0
  303. package/dist/docs/references/docs-knowledge-importers.md +195 -0
  304. package/dist/docs/references/docs-knowledge-load-your-content.md +2 -2
  305. package/dist/docs/references/docs-knowledge-overview.md +1 -1
  306. package/dist/docs/references/docs-mastra-platform-observability-overview.md +1 -1
  307. package/dist/docs/references/docs-sandbox-filesystem.md +1 -1
  308. package/dist/docs/references/docs-server-pubsub.md +51 -8
  309. package/dist/docs/references/docs-signals-running-across-processes.md +2 -0
  310. package/dist/docs/references/docs-signals-thread-streams.md +1 -1
  311. package/dist/docs/references/docs-studio-auth.md +54 -7
  312. package/dist/docs/references/docs-workflows-overview.md +1 -1
  313. package/dist/docs/references/docs-workflows-scheduled-workflows.md +1 -1
  314. package/dist/docs/references/integrations-auth-clerk.md +48 -4
  315. package/dist/docs/references/integrations-channels-slack.md +4 -2
  316. package/dist/docs/references/integrations.md +6 -0
  317. package/dist/docs/references/reference-agents-agent.md +3 -1
  318. package/dist/docs/references/reference-agents-channels.md +116 -27
  319. package/dist/docs/references/reference-agents-durable-agent.md +12 -4
  320. package/dist/docs/references/reference-auth-clerk.md +21 -1
  321. package/dist/docs/references/reference-datasets-runExperimentItem.md +13 -1
  322. package/dist/docs/references/reference-datasets-startExperimentAsync.md +3 -1
  323. package/dist/docs/references/reference-editor-mastra-editor.md +3 -1
  324. package/dist/docs/references/reference-knowledge-knowledge-class.md +13 -6
  325. package/dist/docs/references/reference-knowledge-knowledge-tools.md +43 -20
  326. package/dist/docs/references/reference-memory-observational-memory.md +2 -2
  327. package/dist/docs/references/reference-processors-moderation-processor.md +2 -2
  328. package/dist/docs/references/reference-pubsub-base.md +5 -1
  329. package/dist/docs/references/reference-pubsub-event-emitter.md +2 -0
  330. package/dist/docs/references/reference-pubsub-redis-streams.md +1 -1
  331. package/dist/docs/references/reference-pubsub-unix-socket-pubsub.md +2 -0
  332. package/dist/docs/references/reference-streaming-ChunkType.md +3 -3
  333. package/dist/docs/references/reference-workers-overview.md +1 -1
  334. package/dist/docs/references/reference-workflows-run-methods-start.md +23 -0
  335. package/dist/docs/references/reference-workflows-run-methods-timeTravel.md +4 -0
  336. package/dist/docs/references/reference-workflows-run.md +1 -1
  337. package/dist/docs/references/reference-workspace-local-sandbox.md +2 -0
  338. package/dist/error/index.cjs +1 -1
  339. package/dist/error/index.js +1 -1
  340. package/dist/{error-C9d_24w-.js → error-BLwEXqOK.js} +2 -2
  341. package/dist/{error-BRQf2ku0.cjs → error-BdEvO8za.cjs} +2 -2
  342. package/dist/evals/index.cjs +1 -1
  343. package/dist/evals/index.js +1 -1
  344. package/dist/evals/scoreTraces/index.cjs +1 -1
  345. package/dist/evals/scoreTraces/index.js +1 -1
  346. package/dist/events/caching-pubsub.d.ts +1 -0
  347. package/dist/events/event-emitter/index.d.ts +12 -5
  348. package/dist/events/index.cjs +15 -1
  349. package/dist/events/index.js +15 -1
  350. package/dist/events/pubsub.d.ts +29 -0
  351. package/dist/events/reach.d.ts +11 -0
  352. package/dist/events/unix-socket-pubsub.d.ts +14 -0
  353. package/dist/features/index.cjs +1 -0
  354. package/dist/features/index.js +1 -0
  355. package/dist/{filesystem-B5X-5G0x.js → filesystem-B8ad6kAW.js} +1 -1
  356. package/dist/{filesystem-BDSpwBke.cjs → filesystem-BB5YWXH-.cjs} +1 -1
  357. package/dist/{filesystem-DzM9pcQ8.js → filesystem-BDHUxbHn.js} +1 -1
  358. package/dist/{filesystem-B0AZrbj8.cjs → filesystem-BP5yz5LG.cjs} +1 -1
  359. package/dist/{filesystem-BsdkC311.js → filesystem-B_afSgYk.js} +1 -1
  360. package/dist/{filesystem-C-cyJfi1.cjs → filesystem-BaOJOc-V.cjs} +1 -1
  361. package/dist/{filesystem-B3s0WRud.js → filesystem-BhYgU8qg.js} +1 -1
  362. package/dist/{filesystem-DzfqVTO_.js → filesystem-CLBVmR5j.js} +1 -1
  363. package/dist/{filesystem-CEbD_77-.cjs → filesystem-Cgxc2a_-.cjs} +1 -1
  364. package/dist/{filesystem-Cv79mHRk.js → filesystem-ClBOBoDc.js} +1 -1
  365. package/dist/{filesystem-DsCQiBl2.cjs → filesystem-DVVecqZt.cjs} +1 -1
  366. package/dist/{filesystem-CUAgLugE.cjs → filesystem-Fpsu7e24.cjs} +1 -1
  367. package/dist/{filesystem-versioned-Bijb_p9l.js → filesystem-versioned-BL1ojJLo.js} +1 -1
  368. package/dist/{filesystem-versioned-DZGyPbNC.cjs → filesystem-versioned-BavRtYWJ.cjs} +1 -1
  369. package/dist/harness/index.cjs +1 -1
  370. package/dist/harness/index.js +1 -1
  371. package/dist/index.cjs +1 -1
  372. package/dist/index.js +1 -1
  373. package/dist/knowledge/config.d.ts +10 -0
  374. package/dist/knowledge/host-writes.d.ts +10 -0
  375. package/dist/knowledge/importers/conformance.d.ts +25 -0
  376. package/dist/knowledge/importers/define.d.ts +204 -0
  377. package/dist/knowledge/importers/host.d.ts +143 -0
  378. package/dist/knowledge/importers/index.d.ts +12 -0
  379. package/dist/knowledge/importers/local-host.d.ts +106 -0
  380. package/dist/knowledge/importers/manifest.d.ts +25 -0
  381. package/dist/knowledge/importers/runner.d.ts +61 -0
  382. package/dist/knowledge/importers/sink.d.ts +105 -0
  383. package/dist/knowledge/importers/types.d.ts +144 -0
  384. package/dist/knowledge/index.cjs +2715 -8
  385. package/dist/knowledge/index.d.ts +54 -4
  386. package/dist/knowledge/index.js +2692 -9
  387. package/dist/knowledge/instructions.d.ts +1 -1
  388. package/dist/knowledge/links.d.ts +8 -0
  389. package/dist/knowledge/pinned-state-processor.d.ts +5 -0
  390. package/dist/knowledge/pinned.d.ts +4 -1
  391. package/dist/knowledge/scope-runtime.d.ts +10 -0
  392. package/dist/llm/index.cjs +3 -3
  393. package/dist/llm/index.js +3 -3
  394. package/dist/llm/model/provider-types.generated.d.ts +7812 -7831
  395. package/dist/llm/model/shared.types.d.ts +31 -0
  396. package/dist/{llm-CsQuqKPc.cjs → llm-8Av3mSjD.cjs} +2 -2
  397. package/dist/{llm-DnXK3Pmw.js → llm-B5A5cwJr.js} +2 -2
  398. package/dist/loop/index.cjs +2 -2
  399. package/dist/loop/index.js +2 -2
  400. package/dist/loop/workflows/agentic-execution/llm-execution-step.d.ts +2 -2
  401. package/dist/{manager-BsghM-UL.js → manager-DfWQCJUK.js} +460 -94
  402. package/dist/{manager-DwFnIrI6.cjs → manager-sv35JY-z.cjs} +476 -92
  403. package/dist/mastra/index.cjs +1 -1
  404. package/dist/mastra/index.d.ts +13 -0
  405. package/dist/mastra/index.js +1 -1
  406. package/dist/mastra/resolve-agent.d.ts +3 -1
  407. package/dist/{mastra-B8i1UDZs.js → mastra-CigBrT7X.js} +32 -23
  408. package/dist/{mastra-Cn5NC6Es.cjs → mastra-D4hvfuxX.cjs} +34 -25
  409. package/dist/memory/index.cjs +3 -3
  410. package/dist/memory/index.js +3 -3
  411. package/dist/{message-list-DPXPXvin.cjs → message-list-Cj0Sq_JP.cjs} +63 -8
  412. package/dist/{message-list-DEuRl82K.js → message-list-KRbg-TnI.js} +63 -8
  413. package/dist/{model-CNPfry_X.cjs → model-BK93CMtl.cjs} +1 -1
  414. package/dist/{model-CsOcWMUt.js → model-CYtXw861.js} +1 -1
  415. package/dist/{netlify-C-83Fxus.cjs → netlify-BAnn3ouY.cjs} +1 -1
  416. package/dist/{netlify-C-OpNSGp.js → netlify-CuI1ZrwR.js} +1 -1
  417. package/dist/notifications/index.cjs +1 -1
  418. package/dist/notifications/index.js +1 -1
  419. package/dist/{output-helpers-JL-HeCbT.cjs → output-helpers-1Zu4Vt9C.cjs} +68 -25
  420. package/dist/{output-helpers-D4II19No.js → output-helpers-CedRCE17.js} +69 -26
  421. package/dist/processor-provider/index.cjs +1 -1
  422. package/dist/processor-provider/index.js +1 -1
  423. package/dist/processors/abort-signal-scope.d.ts +6 -0
  424. package/dist/processors/index.cjs +2 -2
  425. package/dist/processors/index.js +2 -2
  426. package/dist/{provider-registry-9O-H9osy.cjs → provider-registry-BwuI_IpT.cjs} +21690 -21811
  427. package/dist/{provider-registry-RZ8EgSe8.js → provider-registry-CmQLzLF_.js} +21690 -21811
  428. package/dist/provider-registry.json +22113 -22215
  429. package/dist/{registry-generator-e8sltJls.js → registry-generator-C17V4WfG.js} +1 -1
  430. package/dist/{registry-generator-DxCX-FiO.cjs → registry-generator-C_0ae7Ce.cjs} +1 -1
  431. package/dist/{rehydrate-B-wrAN7C.cjs → rehydrate-CDQ4dOYj.cjs} +2 -2
  432. package/dist/{rehydrate-D3fPgJwp.js → rehydrate-PnaVawGX.js} +2 -2
  433. package/dist/relevance/index.cjs +2 -2
  434. package/dist/relevance/index.js +2 -2
  435. package/dist/{run-registry-5_LQBGn_.cjs → run-registry-BmckDVBk.cjs} +1698 -497
  436. package/dist/{run-registry-DC03XLeZ.js → run-registry-BwEcwYlU.js} +1614 -467
  437. package/dist/{source-DDwx-87N.cjs → source-BVOi8Xhp.cjs} +1 -1
  438. package/dist/{source-Did_2XQc.js → source-fNa6u1kH.js} +1 -1
  439. package/dist/storage/domains/agents/index.cjs +1 -1
  440. package/dist/storage/domains/agents/index.js +1 -1
  441. package/dist/storage/domains/knowledge/base.d.ts +72 -0
  442. package/dist/storage/domains/knowledge/importers-inmemory.d.ts +146 -0
  443. package/dist/storage/domains/knowledge/importers.d.ts +287 -0
  444. package/dist/storage/domains/knowledge/index.d.ts +1 -0
  445. package/dist/storage/domains/knowledge/inmemory.d.ts +12 -0
  446. package/dist/storage/domains/knowledge/pages-inmemory.d.ts +12 -1
  447. package/dist/storage/domains/knowledge/pages.d.ts +25 -7
  448. package/dist/storage/domains/mcp-clients/index.cjs +1 -1
  449. package/dist/storage/domains/mcp-clients/index.js +1 -1
  450. package/dist/storage/domains/mcp-servers/index.cjs +1 -1
  451. package/dist/storage/domains/mcp-servers/index.js +1 -1
  452. package/dist/storage/domains/prompt-blocks/index.cjs +1 -1
  453. package/dist/storage/domains/prompt-blocks/index.js +1 -1
  454. package/dist/storage/domains/scorer-definitions/index.cjs +1 -1
  455. package/dist/storage/domains/scorer-definitions/index.js +1 -1
  456. package/dist/storage/domains/skills/index.cjs +1 -1
  457. package/dist/storage/domains/skills/index.js +1 -1
  458. package/dist/storage/domains/workspaces/index.cjs +1 -1
  459. package/dist/storage/domains/workspaces/index.js +1 -1
  460. package/dist/storage/index.cjs +15 -10
  461. package/dist/storage/index.js +11 -11
  462. package/dist/stream/base/output.d.ts +59 -15
  463. package/dist/stream/index.cjs +2 -2
  464. package/dist/stream/index.js +2 -2
  465. package/dist/stream/types.d.ts +24 -2
  466. package/dist/{stream-4aNIw_TQ.cjs → stream-0kdqBOOn.cjs} +64 -9
  467. package/dist/{stream-CJUm6EAH.js → stream-D1y9GzoD.js} +29 -10
  468. package/dist/test-utils/llm-mock.cjs +1 -1
  469. package/dist/test-utils/llm-mock.js +1 -1
  470. package/dist/tool-loop-agent/index.cjs +1 -1
  471. package/dist/tool-loop-agent/index.js +1 -1
  472. package/dist/{tool-loop-agent-FEEwHfmg.js → tool-loop-agent-BdjWGVIb.js} +4 -4
  473. package/dist/{tool-loop-agent-Dn0QCB9n.cjs → tool-loop-agent-kWaZAT6Q.cjs} +4 -4
  474. package/dist/tools/types.d.ts +27 -1
  475. package/dist/{utils-DY01hxVd.cjs → utils-BKUCaZ12.cjs} +1 -1
  476. package/dist/{utils-Bd_y1_a-.js → utils-GHY3hmLx.js} +1 -1
  477. package/dist/utils.cjs +1 -1
  478. package/dist/utils.js +1 -1
  479. package/dist/{validate-CX0yQo_q.js → validate-CB-q-R2F.js} +1 -1
  480. package/dist/{validate-CuB_1Zd3.cjs → validate-De92squ7.cjs} +1 -1
  481. package/dist/vector/index.cjs +2 -2
  482. package/dist/vector/index.js +2 -2
  483. package/dist/worker/index.cjs +1 -1
  484. package/dist/worker/index.js +1 -1
  485. package/dist/{worker-CbaSmip-.cjs → worker-BbWPQuPR.cjs} +2 -2
  486. package/dist/{worker-B80xkcKG.js → worker-C3u_xzY2.js} +2 -2
  487. package/dist/{worker-GsGIxPMa.cjs → worker-CAKvQj9_.cjs} +2 -2
  488. package/dist/{worker-DSEfMPmq.js → worker-Kwm8EKcj.js} +2 -2
  489. package/dist/{workflow-CnBPXTpv.cjs → workflow-CSjXeNcR.cjs} +4 -4
  490. package/dist/{workflow-CZHY_C85.js → workflow-CVmI1Sw-.js} +4 -4
  491. package/dist/workflows/builder/index.cjs +1 -1
  492. package/dist/workflows/builder/index.js +1 -1
  493. package/dist/workflows/evented/index.cjs +1 -1
  494. package/dist/workflows/evented/index.js +1 -1
  495. package/dist/workflows/evented/setup-warning.d.ts +18 -0
  496. package/dist/workflows/evented/workflow-event-processor/run-status.d.ts +37 -0
  497. package/dist/workflows/evented/workflow.d.ts +10 -0
  498. package/dist/workflows/index.cjs +4 -4
  499. package/dist/workflows/index.js +4 -4
  500. package/dist/workflows/workflow.d.ts +6 -1
  501. package/dist/workspace/filesystem/filesystem.d.ts +5 -0
  502. package/dist/workspace/index.cjs +1 -1
  503. package/dist/workspace/index.js +1 -1
  504. package/dist/workspace/sandbox/local-sandbox.d.ts +16 -7
  505. package/dist/workspace/sandbox/native-sandbox/types.d.ts +11 -1
  506. package/dist/{workspace-D7TIleIt.js → workspace-DY2Nxiyi.js} +235 -34
  507. package/dist/{workspace-D2drutNg.cjs → workspace-X2RHJZU9.cjs} +235 -34
  508. package/package.json +7 -7
  509. package/src/llm/model/provider-types.generated.d.ts +7812 -7831
@@ -23,6 +23,12 @@
23
23
  "qwen3.6-35b-a3b"
24
24
  ],
25
25
  "reasoning": {
26
+ "glm-5.3-flash": [
27
+ {
28
+ "type": "effort",
29
+ "values": ["low", "high", "max"]
30
+ }
31
+ ],
26
32
  "deepseek-v4.1-flash": [
27
33
  {
28
34
  "type": "toggle"
@@ -38,16 +44,9 @@
38
44
  "values": ["none", "low", "medium", "high", "xhigh"]
39
45
  }
40
46
  ],
41
- "glm-5.3-flash": [
42
- {
43
- "type": "effort",
44
- "values": ["low", "high", "max"]
45
- }
46
- ],
47
- "gpt-5.6-luna": [
47
+ "qwen3-30b-a3b-fp8": [
48
48
  {
49
- "type": "effort",
50
- "values": ["none", "low", "medium", "high", "xhigh", "max"]
49
+ "type": "toggle"
51
50
  }
52
51
  ],
53
52
  "qwen3.6-35b-a3b": [
@@ -55,9 +54,10 @@
55
54
  "type": "toggle"
56
55
  }
57
56
  ],
58
- "qwen3-30b-a3b-fp8": [
57
+ "gpt-5.6-luna": [
59
58
  {
60
- "type": "toggle"
59
+ "type": "effort",
60
+ "values": ["none", "low", "medium", "high", "xhigh", "max"]
61
61
  }
62
62
  ]
63
63
  }
@@ -15,12 +15,6 @@
15
15
  "values": ["low", "high", "max"]
16
16
  }
17
17
  ],
18
- "glm-5.3-highspeed": [
19
- {
20
- "type": "effort",
21
- "values": ["low", "high", "max"]
22
- }
23
- ],
24
18
  "glm-5.3-flash": [
25
19
  {
26
20
  "type": "effort",
@@ -31,6 +25,12 @@
31
25
  {
32
26
  "type": "toggle"
33
27
  }
28
+ ],
29
+ "glm-5.3-highspeed": [
30
+ {
31
+ "type": "effort",
32
+ "values": ["low", "high", "max"]
33
+ }
34
34
  ]
35
35
  }
36
36
  }
@@ -1,5 +1,13 @@
1
1
  {
2
- "attachment": ["glm-4.5v", "glm-4.6v", "glm-4.6v-flash", "glm-5.3-flash", "glm-5.3-flashx", "glm-5v-turbo"],
2
+ "attachment": [
3
+ "glm-4.5v",
4
+ "glm-4.6v",
5
+ "glm-4.6v-flash",
6
+ "glm-5.3-flash",
7
+ "glm-5.3-flashx",
8
+ "glm-5.3-flashx-legal",
9
+ "glm-5v-turbo"
10
+ ],
3
11
  "temperature": [
4
12
  "glm-4.5",
5
13
  "glm-4.5-air",
@@ -17,27 +25,22 @@
17
25
  "glm-5.3",
18
26
  "glm-5.3-flash",
19
27
  "glm-5.3-flashx",
28
+ "glm-5.3-flashx-legal",
20
29
  "glm-5v-turbo"
21
30
  ],
22
- "structuredOutput": ["glm-5.1", "glm-5.2", "glm-5.3", "glm-5.3-flash", "glm-5.3-flashx"],
31
+ "structuredOutput": ["glm-5.1", "glm-5.2", "glm-5.3", "glm-5.3-flash", "glm-5.3-flashx", "glm-5.3-flashx-legal"],
23
32
  "reasoning": {
24
- "glm-5.3": [
25
- {
26
- "type": "effort",
27
- "values": ["low", "high", "max"]
28
- }
29
- ],
30
- "glm-4.5-flash": [
33
+ "glm-4.6v-flash": [
31
34
  {
32
35
  "type": "toggle"
33
36
  }
34
37
  ],
35
- "glm-4.6v-flash": [
38
+ "glm-5": [
36
39
  {
37
40
  "type": "toggle"
38
41
  }
39
42
  ],
40
- "glm-4.6": [
43
+ "glm-4.5-flash": [
41
44
  {
42
45
  "type": "toggle"
43
46
  }
@@ -47,42 +50,53 @@
47
50
  "type": "toggle"
48
51
  }
49
52
  ],
50
- "glm-5.2": [
53
+ "glm-4.5": [
51
54
  {
52
55
  "type": "toggle"
53
- },
56
+ }
57
+ ],
58
+ "glm-5.3": [
54
59
  {
55
60
  "type": "effort",
56
- "values": ["high", "max"]
61
+ "values": ["low", "high", "max"]
57
62
  }
58
63
  ],
59
- "glm-5.3-flashx": [
64
+ "glm-5.1": [
65
+ {
66
+ "type": "toggle"
67
+ }
68
+ ],
69
+ "glm-5.3-flash": [
60
70
  {
61
71
  "type": "effort",
62
72
  "values": ["low", "high", "max"]
63
73
  }
64
74
  ],
65
- "glm-4.5-air": [
75
+ "glm-5.2": [
66
76
  {
67
77
  "type": "toggle"
78
+ },
79
+ {
80
+ "type": "effort",
81
+ "values": ["high", "max"]
68
82
  }
69
83
  ],
70
- "glm-4.5v": [
84
+ "glm-4.6": [
71
85
  {
72
86
  "type": "toggle"
73
87
  }
74
88
  ],
75
- "glm-4.7": [
89
+ "glm-4.5-air": [
76
90
  {
77
91
  "type": "toggle"
78
92
  }
79
93
  ],
80
- "glm-5.1": [
94
+ "glm-4.6v": [
81
95
  {
82
96
  "type": "toggle"
83
97
  }
84
98
  ],
85
- "glm-5.3-flash": [
99
+ "glm-5.3-flashx-legal": [
86
100
  {
87
101
  "type": "effort",
88
102
  "values": ["low", "high", "max"]
@@ -98,17 +112,18 @@
98
112
  "type": "toggle"
99
113
  }
100
114
  ],
101
- "glm-5": [
115
+ "glm-5.3-flashx": [
102
116
  {
103
- "type": "toggle"
117
+ "type": "effort",
118
+ "values": ["low", "high", "max"]
104
119
  }
105
120
  ],
106
- "glm-4.5": [
121
+ "glm-4.5v": [
107
122
  {
108
123
  "type": "toggle"
109
124
  }
110
125
  ],
111
- "glm-4.6v": [
126
+ "glm-4.7": [
112
127
  {
113
128
  "type": "toggle"
114
129
  }
@@ -9,25 +9,25 @@
9
9
  "values": ["low", "high", "max"]
10
10
  }
11
11
  ],
12
- "deepseek-v4.1-flash": [
12
+ "glm-5.3-flash": [
13
13
  {
14
14
  "type": "effort",
15
- "values": ["none", "low", "high", "max"]
15
+ "values": ["low", "high", "max"]
16
16
  }
17
17
  ],
18
- "glm-5.3-flash": [
18
+ "deepseek-v4.1-flash": [
19
19
  {
20
20
  "type": "effort",
21
- "values": ["low", "high", "max"]
21
+ "values": ["none", "low", "high", "max"]
22
22
  }
23
23
  ],
24
- "dolly2-security": [
24
+ "dolly1-security": [
25
25
  {
26
26
  "type": "effort",
27
27
  "values": ["low", "high", "max"]
28
28
  }
29
29
  ],
30
- "dolly1-security": [
30
+ "dolly2-security": [
31
31
  {
32
32
  "type": "effort",
33
33
  "values": ["low", "high", "max"]
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-5_LQBGn_.cjs");
3
- const require_channels = require("../channels-q6qnuRNV.cjs");
2
+ const require_run_registry = require("../run-registry-BmckDVBk.cjs");
3
+ const require_channels = require("../channels-DQg4v_gm.cjs");
4
4
  exports.AgentChannels = require_run_registry.AgentChannels;
5
5
  exports.AgentControllerChannels = require_channels.AgentControllerChannels;
6
6
  exports.CHAT_CHANNEL_RENDER_CONTEXT_KEY = require_run_registry.CHAT_CHANNEL_RENDER_CONTEXT_KEY;
@@ -1,3 +1,3 @@
1
- import { An as ChatChannelProcessor, Bn as toChatLogger, Dn as resolveWaitUntil, En as AgentChannels, Fn as DEFAULT_CHANNEL_TOOLS_SETTINGS, In as channelToolScopeResolver, Ln as createChannelToolScope, Mn as renderBuiltInToolEvent, Nn as formatToolApproval, On as defaultTypingStatus, Pn as ChannelSessionRejectedError, Rn as createChannelTools, jn as CHAT_CHANNEL_RENDER_CONTEXT_KEY, kn as MastraStateAdapter, zn as resolveChannelToolsSettings } from "../run-registry-DC03XLeZ.js";
2
- import { t as AgentControllerChannels } from "../channels-Dx4jiXeK.js";
1
+ import { An as resolveWaitUntil, Bn as createChannelToolScope, Fn as renderBuiltInToolEvent, Hn as resolveChannelToolsSettings, In as formatToolApproval, Ln as ChannelSessionRejectedError, Mn as MastraStateAdapter, Nn as ChatChannelProcessor, Pn as CHAT_CHANNEL_RENDER_CONTEXT_KEY, Rn as DEFAULT_CHANNEL_TOOLS_SETTINGS, Un as toChatLogger, Vn as createChannelTools, jn as defaultTypingStatus, kn as AgentChannels, zn as channelToolScopeResolver } from "../run-registry-BwEcwYlU.js";
2
+ import { t as AgentControllerChannels } from "../channels-Cz1y3W6u.js";
3
3
  export { AgentChannels, AgentControllerChannels, CHAT_CHANNEL_RENDER_CONTEXT_KEY, ChannelSessionRejectedError, ChatChannelProcessor, DEFAULT_CHANNEL_TOOLS_SETTINGS, MastraStateAdapter, channelToolScopeResolver, createChannelToolScope, createChannelTools, defaultTypingStatus, formatToolApproval, renderBuiltInToolEvent, resolveChannelToolsSettings, resolveWaitUntil, toChatLogger };
@@ -1,4 +1,4 @@
1
- import { En as AgentChannels, Pn as ChannelSessionRejectedError } from "./run-registry-DC03XLeZ.js";
1
+ import { Ln as ChannelSessionRejectedError, kn as AgentChannels } from "./run-registry-BwEcwYlU.js";
2
2
  import { i as MastraFGAPermissions } from "./ee-iTj2bRDt-By_B9ngH.js";
3
3
  // src/channels/agent-controller-channels.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- const require_run_registry = require("./run-registry-5_LQBGn_.cjs");
1
+ const require_run_registry = require("./run-registry-BmckDVBk.cjs");
2
2
  const require_ee_iTj2bRDt = require("./ee-iTj2bRDt-D3-QLGDF.cjs");
3
3
  // src/channels/agent-controller-channels.ts
4
4
  /**
@@ -1,8 +1,8 @@
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-BmckDVBk.cjs");
3
3
  require("../state-processor-kRNZ38Nf.cjs");
4
4
  const require_signals = require("../signals-B1JSj-Ew.cjs");
5
- const require_workspace = require("../workspace-D2drutNg.cjs");
5
+ const require_workspace = require("../workspace-X2RHJZU9.cjs");
6
6
  // src/coding-agent/prompt.ts
7
7
  function buildBasePrompt(ctx) {
8
8
  const commonBinaries = formatCommonBinaries(ctx.commonBinaries);
@@ -1,7 +1,7 @@
1
- import { P as Agent, jo as CyberRefusalHandler, us as defaultStabilityErrorProcessors } from "../run-registry-DC03XLeZ.js";
1
+ import { N as Agent, vs as defaultStabilityErrorProcessors, zo as CyberRefusalHandler } from "../run-registry-BwEcwYlU.js";
2
2
  import "../state-processor-B9kxpM53.js";
3
3
  import { t as TaskSignalProvider } from "../signals-De9VnwL2.js";
4
- import { N as LocalSandbox, at as LocalFilesystem, o as Workspace } from "../workspace-D7TIleIt.js";
4
+ import { N as LocalSandbox, at as LocalFilesystem, o as Workspace } from "../workspace-DY2Nxiyi.js";
5
5
  // src/coding-agent/prompt.ts
6
6
  function buildBasePrompt(ctx) {
7
7
  const commonBinaries = formatCommonBinaries(ctx.commonBinaries);
@@ -1,7 +1,8 @@
1
1
  import type { Mastra } from '../mastra/index.js';
2
2
  import type { DatasetRecord, DatasetItem, DatasetItemPayload, DatasetItemRow, DatasetTenancyFilters, DatasetVersion, Experiment, ExperimentProvenance, ExperimentResult, ExperimentResultStatus, ExperimentStatus, ExperimentTenancyFilters, ListDatasetItemsInput, ListDatasetItemsOutput, ListExperimentResultsOutput, ListExperimentsInput, ListExperimentsOutput, ListExperimentResultsInput, TargetType, UpdateDatasetInput, UpdateDatasetItemInput, UpdateExperimentResultInput } from '../storage/types.js';
3
3
  import { executeExperimentItem } from './experiment/index.js';
4
- import type { StartExperimentConfig, ExperimentSummary } from './experiment/types.js';
4
+ import type { ExperimentItemRunOptions } from './experiment/item.js';
5
+ import type { StartExperimentAsyncConfig, StartExperimentConfig, ExperimentSummary } from './experiment/types.js';
5
6
  /**
6
7
  * Public API for interacting with a single dataset.
7
8
  *
@@ -127,8 +128,11 @@ export declare class Dataset {
127
128
  /**
128
129
  * Start an experiment asynchronously (fire-and-forget).
129
130
  * Returns immediately with the experiment ID and pending status.
131
+ *
132
+ * With `durable: true` the experiment runs as an evented workflow whose run
133
+ * id is the experiment id; see {@link StartExperimentAsyncConfig.durable}.
130
134
  */
131
- startExperimentAsync<I = unknown, O = unknown, E = unknown>(config: StartExperimentConfig<I, O, E>): Promise<{
135
+ startExperimentAsync<I = unknown, O = unknown, E = unknown>(asyncConfig: StartExperimentAsyncConfig<I, O, E>): Promise<{
132
136
  experimentId: string;
133
137
  status: 'pending';
134
138
  totalItems: number;
@@ -258,14 +262,17 @@ export declare class Dataset {
258
262
  * keyed by `(experimentId, itemId, attempt)`.
259
263
  *
260
264
  * Built for caller-driven loops (mode 2): a durable orchestrator (e.g. a
261
- * Temporal workflow) fans out one call per item and owns retries/timeouts —
262
- * a retried call converges on the same row. Requires an experiment created
263
- * with a target via {@link Dataset.createExperiment}.
265
+ * Temporal workflow) fans out one call per item — a retried call converges
266
+ * on the same row. Requires an experiment created with a target via
267
+ * {@link Dataset.createExperiment}. The run options (`agentModel`,
268
+ * `unmockedToolPolicy`, `itemTimeout`, `maxRetries`, `versions`) behave as
269
+ * they do in {@link Dataset.startExperiment}; the experiment record doesn't
270
+ * store them, so pass them on every call.
264
271
  *
265
272
  * Scorer precedence: experiment `scorers` → item `scorerIds` → dataset
266
273
  * `scorerIds` → none.
267
274
  */
268
- runExperimentItem(args: {
275
+ runExperimentItem(args: ExperimentItemRunOptions & {
269
276
  experimentId: string;
270
277
  itemId: string;
271
278
  /** Zero-based repetition index for repeated trials. Defaults to `0`. */
@@ -0,0 +1,16 @@
1
+ import type { StartExperimentConfig } from './types.js';
2
+ import type { ExperimentWorkflowInput } from './workflow.js';
3
+ /** Error id thrown when `durable: true` is combined with an option a durable run can't carry. */
4
+ export declare const EXPERIMENT_NOT_DURABLE = "EXPERIMENT_NOT_DURABLE";
5
+ export type DurableRunOptions = Omit<ExperimentWorkflowInput, 'datasetId' | 'experimentId' | 'organizationId' | 'projectId'>;
6
+ /**
7
+ * Check a `durable: true` config and return the run options the experiment
8
+ * workflow carries, plus the scorer ids to pin on the experiment. A durable run may continue in another process, so every
9
+ * option has to be JSON: functions, signals, model objects and scorer objects
10
+ * are rejected before anything is created.
11
+ */
12
+ export declare function durableRunOptions<I, O, E>(config: StartExperimentConfig<I, O, E>): {
13
+ runOptions: DurableRunOptions;
14
+ scorerIds: string[] | undefined;
15
+ };
16
+ //# sourceMappingURL=durable.d.ts.map
@@ -2,7 +2,8 @@ import type { Mastra } from '../../mastra/index.js';
2
2
  import type { ExperimentConfig, ExperimentSummary } from './types.js';
3
3
  /** Error code recorded on an item whose `beforeEach` hook threw. */
4
4
  export declare const EXPERIMENT_ITEM_BEFORE_EACH_FAILED = "EXPERIMENT_ITEM_BEFORE_EACH_FAILED";
5
- export type { AgentExperimentOutput, DataItem, ExperimentConfig, ExperimentResultOutput, ScorerExperimentOutput, ExperimentHookArgs, ExperimentHookItem, ExperimentItemHookArgs, ExperimentItemResultHookArgs, ExperimentRunResultHookArgs, ExperimentSummary, ItemWithScores, ItemResult, ScorerResult, StartExperimentConfig, } from './types.js';
5
+ export type { AgentExperimentOutput, DataItem, ExperimentConfig, ExperimentResultOutput, ScorerExperimentOutput, ExperimentHookArgs, ExperimentHookItem, ExperimentItemHookArgs, ExperimentItemResultHookArgs, ExperimentRunResultHookArgs, ExperimentSummary, ItemWithScores, ItemResult, ScorerResult, StartExperimentAsyncConfig, StartExperimentConfig, } from './types.js';
6
+ export { EXPERIMENT_NOT_DURABLE } from './durable.js';
6
7
  export type { ExperimentEvent, ExperimentEventObserver, ExperimentItemCompletedEvent, ExperimentJsonValue, ExperimentRunFinishedEvent, ExperimentRunStartedEvent, } from './events.js';
7
8
  export { executeTarget, type Target, type ExecutionResult } from './executor.js';
8
9
  export { EXPERIMENT_ITEM_SCORER_NOT_FOUND, resolveScorers, runScorersForItem } from './scorer.js';
@@ -1,6 +1,9 @@
1
1
  import type { TrajectoryExpectation } from '../../evals/types.js';
2
+ import type { MastraModelConfig } from '../../llm/model/shared.types.js';
2
3
  import type { Mastra } from '../../mastra/index.js';
4
+ import type { VersionOverrides } from '../../mastra/types.js';
3
5
  import type { Experiment, ExperimentResult } from '../../storage/types.js';
6
+ import type { ItemToolMock, UnmockedToolPolicy } from './tool-mocks.js';
4
7
  import type { ScorerResult } from './types.js';
5
8
  /** Item shape consumed by {@link executeExperimentItem}. */
6
9
  export interface ExperimentItemInput {
@@ -14,8 +17,27 @@ export interface ExperimentItemInput {
14
17
  metadata?: Record<string, unknown>;
15
18
  /** Item-level scorer IDs. An empty array explicitly disables scoring. */
16
19
  scorerIds?: string[];
20
+ /** Item-level static tool mocks (agent targets only). */
21
+ toolMocks?: ItemToolMock[];
22
+ /** Item-level override for undeclared agent tool calls. */
23
+ unmockedToolPolicy?: UnmockedToolPolicy;
17
24
  }
18
- export interface ExecuteExperimentItemArgs {
25
+ /**
26
+ * Per-item run options. They match the `runExperiment` options of the same name, so an item behaves the same whichever loop runs it.
27
+ */
28
+ export interface ExperimentItemRunOptions {
29
+ /** Model override for agent targets, passed per call to `agent.generate()`. */
30
+ agentModel?: MastraModelConfig;
31
+ /** Default handling for agent tool calls not declared in the item's `toolMocks` (default: `allow`). */
32
+ unmockedToolPolicy?: UnmockedToolPolicy;
33
+ /** Item execution timeout in milliseconds, covering all retries. */
34
+ itemTimeout?: number;
35
+ /** Retries on failure (default: 0). Abort/timeout and tool-mock errors are never retried. */
36
+ maxRetries?: number;
37
+ /** Version overrides for sub-agent delegation. */
38
+ versions?: VersionOverrides;
39
+ }
40
+ export interface ExecuteExperimentItemArgs extends ExperimentItemRunOptions {
19
41
  mastra: Mastra;
20
42
  /** The experiment record. Must carry a non-null target. */
21
43
  experiment: Experiment;
@@ -46,9 +68,9 @@ export interface ExecuteExperimentItemOutput {
46
68
  * ({@link EXPERIMENT_ITEM_SCORER_NOT_FOUND}): the target is not executed and
47
69
  * the error is recorded on the row.
48
70
  *
49
- * Deliberately excludes the runner's loop-level concerns: hooks, event
50
- * dispatch, tool mocks, and internal retries — retries/timeouts belong to the
51
- * caller's orchestrator.
71
+ * Applies the same per-item run options as the in-process runner (model
72
+ * override, tool mocks, timeout, retries) but excludes its loop-level concerns:
73
+ * hooks, event dispatch, and step scorers.
52
74
  */
53
75
  export declare function executeExperimentItem(args: ExecuteExperimentItemArgs): Promise<ExecuteExperimentItemOutput>;
54
76
  //# sourceMappingURL=item.d.ts.map
@@ -0,0 +1,18 @@
1
+ import type { ExecutionResult } from './executor.js';
2
+ /**
3
+ * Run one item, retrying a failed execution up to `maxRetries` times with
4
+ * exponential backoff (1s doubling, capped at 30s, plus up to 20% jitter).
5
+ * Abort/timeout errors and tool-mock failures are never retried. Throws an
6
+ * `AbortError` when `cancelSignal` is aborted between attempts. When
7
+ * `timeoutSignal` (the item timeout) fires during the backoff, the wait ends
8
+ * and the item fails with the timeout error instead of retrying.
9
+ */
10
+ export declare function executeWithRetries(execute: () => Promise<ExecutionResult>, options: {
11
+ maxRetries: number;
12
+ cancelSignal?: AbortSignal;
13
+ timeoutSignal?: AbortSignal;
14
+ }): Promise<{
15
+ execResult: ExecutionResult;
16
+ retryCount: number;
17
+ }>;
18
+ //# sourceMappingURL=retries.d.ts.map
@@ -269,6 +269,24 @@ export interface ExperimentConfig<I = unknown, O = unknown, E = unknown> {
269
269
  * The dataset is always the data source — no datasetId/data needed.
270
270
  */
271
271
  export type StartExperimentConfig<I = unknown, O = unknown, E = unknown> = Omit<ExperimentConfig<I, O, E>, 'datasetId' | 'data' | 'experimentId' | 'filters'>;
272
+ /**
273
+ * Configuration for {@link Dataset.startExperimentAsync}.
274
+ */
275
+ export type StartExperimentAsyncConfig<I = unknown, O = unknown, E = unknown> = StartExperimentConfig<I, O, E> & {
276
+ /**
277
+ * Run the experiment as an evented workflow, one step per item, instead of a
278
+ * promise in the starting process. Each item is redelivered if its process
279
+ * dies, so the experiment still finishes. Needs a pubsub that redelivers
280
+ * (e.g. Redis Streams) and workers or a push handler to be durable; on the
281
+ * default in-memory pubsub it runs in process.
282
+ *
283
+ * Every option must be JSON: a registered target, scorer ids, and a
284
+ * `provider/model` string for `agentModel`. Inline `task`, hooks, `onEvent`,
285
+ * `signal`, scorer objects and `persistence: 'none'` throw
286
+ * `EXPERIMENT_NOT_DURABLE`.
287
+ */
288
+ durable?: boolean;
289
+ };
272
290
  /**
273
291
  * Persisted output of an agent target. Fields whose shape depends on the agent
274
292
  * (structured output, tool payloads, provider usage) are kept loose.
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Id of the internal evented workflow that runs durable experiments. Lives in
3
+ * its own file so `mastra/index.ts` can check for it without statically
4
+ * importing `./workflow` (and through it the evented engine).
5
+ */
6
+ export declare const EXPERIMENT_WORKFLOW_ID = "__mastra-experiment";
7
+ //# sourceMappingURL=workflow-id.d.ts.map
@@ -0,0 +1,74 @@
1
+ import { z } from 'zod';
2
+ export { EXPERIMENT_WORKFLOW_ID } from './workflow-id.js';
3
+ /**
4
+ * Input of a durable experiment run. Everything here is JSON so the run can be
5
+ * picked up by any process sharing the storage and pubsub.
6
+ */
7
+ export declare const experimentWorkflowInputSchema: z.ZodObject<{
8
+ datasetId: z.ZodString;
9
+ experimentId: z.ZodString;
10
+ organizationId: z.ZodOptional<z.ZodString>;
11
+ projectId: z.ZodOptional<z.ZodString>;
12
+ maxConcurrency: z.ZodOptional<z.ZodNumber>;
13
+ itemTimeout: z.ZodOptional<z.ZodNumber>;
14
+ maxRetries: z.ZodOptional<z.ZodNumber>;
15
+ agentModel: z.ZodOptional<z.ZodString>;
16
+ unmockedToolPolicy: z.ZodOptional<z.ZodEnum<{
17
+ allow: "allow";
18
+ deny: "deny";
19
+ }>>;
20
+ requestContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
21
+ versions: z.ZodOptional<z.ZodObject<{
22
+ agents: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
23
+ versionId: z.ZodString;
24
+ }, z.core.$strip>, z.ZodObject<{
25
+ status: z.ZodEnum<{
26
+ draft: "draft";
27
+ published: "published";
28
+ }>;
29
+ }, z.core.$strip>]>>>;
30
+ defaultStatus: z.ZodOptional<z.ZodEnum<{
31
+ draft: "draft";
32
+ published: "published";
33
+ }>>;
34
+ }, z.core.$strip>>;
35
+ }, z.core.$strip>;
36
+ export type ExperimentWorkflowInput = z.infer<typeof experimentWorkflowInputSchema>;
37
+ /**
38
+ * Runs a stored experiment on the evented engine: `prepare` lists the items,
39
+ * each item runs as its own step via `runExperimentItem` (one result row per
40
+ * item, so a redelivered step converges), and `finalize` counts the rows.
41
+ */
42
+ export declare function buildExperimentWorkflow(): import("../../workflows/workflow.js").Workflow<import("../../workflows/evented").EventedEngineType, import("../../workflows/step.js").Step<string, any, any, any, any, any, import("../../workflows/evented").EventedEngineType, unknown>[], "__mastra-experiment", unknown, {
43
+ datasetId: string;
44
+ experimentId: string;
45
+ organizationId?: string | undefined;
46
+ projectId?: string | undefined;
47
+ maxConcurrency?: number | undefined;
48
+ itemTimeout?: number | undefined;
49
+ maxRetries?: number | undefined;
50
+ agentModel?: string | undefined;
51
+ unmockedToolPolicy?: "allow" | "deny" | undefined;
52
+ requestContext?: Record<string, unknown> | undefined;
53
+ versions?: {
54
+ agents?: Record<string, {
55
+ versionId: string;
56
+ } | {
57
+ status: "draft" | "published";
58
+ }> | undefined;
59
+ defaultStatus?: "draft" | "published" | undefined;
60
+ } | undefined;
61
+ }, {
62
+ experimentId: string;
63
+ status: string;
64
+ succeededCount: number;
65
+ failedCount: number;
66
+ skippedCount: number;
67
+ }, {
68
+ experimentId: string;
69
+ status: string;
70
+ succeededCount: number;
71
+ failedCount: number;
72
+ skippedCount: number;
73
+ }, unknown, 1>;
74
+ //# sourceMappingURL=workflow.d.ts.map
@@ -1,6 +1,6 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_run_registry = require("../run-registry-5_LQBGn_.cjs");
3
- const require_manager = require("../manager-DwFnIrI6.cjs");
2
+ const require_run_registry = require("../run-registry-BmckDVBk.cjs");
3
+ const require_manager = require("../manager-sv35JY-z.cjs");
4
4
  let zod_v4 = require("zod/v4");
5
5
  let crypto = require("crypto");
6
6
  // src/datasets/snapshot.ts
@@ -225,6 +225,7 @@ exports.Dataset = require_manager.Dataset;
225
225
  exports.DatasetsManager = require_manager.DatasetsManager;
226
226
  exports.EXPERIMENT_ITEM_BEFORE_EACH_FAILED = require_manager.EXPERIMENT_ITEM_BEFORE_EACH_FAILED;
227
227
  exports.EXPERIMENT_ITEM_SCORER_NOT_FOUND = require_manager.EXPERIMENT_ITEM_SCORER_NOT_FOUND;
228
+ exports.EXPERIMENT_NOT_DURABLE = require_manager.EXPERIMENT_NOT_DURABLE;
228
229
  exports.SchemaUpdateValidationError = require_run_registry.SchemaUpdateValidationError;
229
230
  exports.SchemaValidationError = require_run_registry.SchemaValidationError;
230
231
  exports.SchemaValidator = require_run_registry.SchemaValidator;
@@ -4,5 +4,6 @@ export { createDatasetSnapshot, parseDatasetSnapshot, datasetSnapshotContentSche
4
4
  export type { DatasetSnapshot, DatasetSnapshotContent, DatasetSnapshotOptions } from './snapshot.js';
5
5
  export { Dataset } from './dataset.js';
6
6
  export { DatasetsManager } from './manager.js';
7
- export type { StartExperimentConfig } from './experiment/types.js';
7
+ export type { StartExperimentAsyncConfig, StartExperimentConfig } from './experiment/types.js';
8
+ export { EXPERIMENT_NOT_DURABLE } from './experiment/durable.js';
8
9
  //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
- import { Bi as assertSupportedPatterns, Gi as SchemaValidationError, Hi as getSchemaValidator, Ui as UnsupportedSchemaPatternError, Vi as createValidator, Wi as SchemaUpdateValidationError, zi as SchemaValidator } from "../run-registry-DC03XLeZ.js";
2
- import { _ as TOOL_MOCK_NOT_DECLARED, a as executeExperimentItem, c as computeScorerStats, d as resolveScorers, f as runScorersForItem, g as TOOL_MOCK_MISMATCH, h as TOOL_MOCK_EXHAUSTED, i as runExperiment, l as isRegression, m as executeTarget, n as Dataset, o as compareExperiments, p as resolveTarget, r as EXPERIMENT_ITEM_BEFORE_EACH_FAILED, s as computeMean, t as DatasetsManager, u as EXPERIMENT_ITEM_SCORER_NOT_FOUND, v as ToolMockMatcher } from "../manager-BsghM-UL.js";
1
+ import { $i as SchemaValidationError, Ji as assertSupportedPatterns, Qi as SchemaUpdateValidationError, Xi as getSchemaValidator, Yi as createValidator, Zi as UnsupportedSchemaPatternError, qi as SchemaValidator } from "../run-registry-BwEcwYlU.js";
2
+ import { _ as ToolMockMatcher, a as executeExperimentItem, b as resolveTarget, c as computeScorerStats, d as resolveScorers, f as runScorersForItem, g as TOOL_MOCK_NOT_DECLARED, h as TOOL_MOCK_MISMATCH, i as runExperiment, l as isRegression, m as TOOL_MOCK_EXHAUSTED, n as Dataset, o as compareExperiments, p as executeTarget, r as EXPERIMENT_ITEM_BEFORE_EACH_FAILED, s as computeMean, t as DatasetsManager, u as EXPERIMENT_ITEM_SCORER_NOT_FOUND, v as EXPERIMENT_NOT_DURABLE } from "../manager-DfWQCJUK.js";
3
3
  import { z } from "zod/v4";
4
4
  import { createHash } from "crypto";
5
5
  // src/datasets/snapshot.ts
@@ -218,4 +218,4 @@ const snapshotTextSchema = z.string().transform((text, ctx) => {
218
218
  function parseDatasetSnapshot(text, options = {}) {
219
219
  return snapshotSizeSchema(options).pipe(snapshotTextSchema).parse(text);
220
220
  }
221
- export { DATASET_SNAPSHOT_DEFAULT_MAX_BYTES, DATASET_SNAPSHOT_MAX_DEPTH, Dataset, DatasetsManager, EXPERIMENT_ITEM_BEFORE_EACH_FAILED, EXPERIMENT_ITEM_SCORER_NOT_FOUND, SchemaUpdateValidationError, SchemaValidationError, SchemaValidator, TOOL_MOCK_EXHAUSTED, TOOL_MOCK_MISMATCH, TOOL_MOCK_NOT_DECLARED, ToolMockMatcher, UnsupportedSchemaPatternError, assertSupportedPatterns, compareExperiments, computeMean, computeScorerStats, createDatasetSnapshot, createValidator, datasetSnapshotContentSchema, datasetSnapshotSchema, executeExperimentItem, executeTarget, getSchemaValidator, isRegression, parseDatasetSnapshot, resolveScorers, resolveTarget, runExperiment, runScorersForItem };
221
+ export { DATASET_SNAPSHOT_DEFAULT_MAX_BYTES, DATASET_SNAPSHOT_MAX_DEPTH, Dataset, DatasetsManager, EXPERIMENT_ITEM_BEFORE_EACH_FAILED, EXPERIMENT_ITEM_SCORER_NOT_FOUND, EXPERIMENT_NOT_DURABLE, SchemaUpdateValidationError, SchemaValidationError, SchemaValidator, TOOL_MOCK_EXHAUSTED, TOOL_MOCK_MISMATCH, TOOL_MOCK_NOT_DECLARED, ToolMockMatcher, UnsupportedSchemaPatternError, assertSupportedPatterns, compareExperiments, computeMean, computeScorerStats, createDatasetSnapshot, createValidator, datasetSnapshotContentSchema, datasetSnapshotSchema, executeExperimentItem, executeTarget, getSchemaValidator, isRegression, parseDatasetSnapshot, resolveScorers, resolveTarget, runExperiment, runScorersForItem };
@@ -3,7 +3,7 @@ name: mastra-core
3
3
  description: Documentation for @mastra/core. Use when working with @mastra/core APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/core"
6
- version: "1.86.0-alpha.7"
6
+ version: "1.86.0-alpha.9"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -63,6 +63,7 @@ Read the individual reference documents for detailed explanations and code examp
63
63
  - [Harness](references/docs-harness-overview.md) - Use the Mastra harness to start, continue, update, and preserve agent work beyond one request with durable execution, goals, schedules, and signals.
64
64
  - [Schedules](references/docs-harness-schedules.md) - Schedule Mastra agents with cron expressions, recurring prompts, optional thread delivery, lifecycle hooks, and APIs for managing scheduled runs.
65
65
  - [Agents and tools](references/docs-knowledge-agents-and-tools.md) - Turn on the Knowledge tools for an agent, and what agents can do with them.
66
+ - [Importers](references/docs-knowledge-importers.md) - Write a Knowledge importer that keeps pages in sync with another system, and run it from your app.
66
67
  - [Load your content](references/docs-knowledge-load-your-content.md) - Load your own content, such as product docs or policies, into Knowledge so agents can search and read it.
67
68
  - [Knowledge](references/docs-knowledge-overview.md) - Give agents shared pages and notes they search, read and write, with access decided by your configuration rather than by the model.
68
69
  - [What you can build with Knowledge](references/docs-knowledge-patterns.md) - What you can build with Knowledge: a docs agent, one agent for many customers, pinned policies, coding conventions, organizing pages, runbooks, department scopes, personal notes and agent hand-offs.
@@ -127,7 +128,7 @@ Read the individual reference documents for detailed explanations and code examp
127
128
  - [CopilotKit](references/integrations-agentic-ui-copilotkit.md) - Connect CopilotKit to Mastra through AG-UI for generative UI, shared application state, frontend tools, human approval, and messaging channels.
128
129
  - [OpenUI](references/integrations-agentic-ui-openui.md) - Stream Mastra agent output into OpenUI through AG-UI, render generative interfaces with built-in components, and customize the component library.
129
130
  - [Auth0](references/integrations-auth-auth0.md) - Authenticate Mastra servers with Auth0 JWTs, configure credentials and authorization, and connect client applications with authenticated requests.
130
- - [Clerk](references/integrations-auth-clerk.md) - Give Mastra agents Clerk tools through Mastra Connect, and authenticate Mastra server requests with the @mastra/auth-clerk provider and MastraClient.
131
+ - [Clerk](references/integrations-auth-clerk.md) - Give Mastra agents Clerk tools through Mastra Connect, and authenticate Mastra APIs and Studio with the @mastra/auth-clerk provider, OAuth single sign-on, and MastraClient.
131
132
  - [Firebase](references/integrations-auth-firebase.md) - Authenticate Mastra applications with Firebase ID tokens, configure service credentials and authorization, and send secured client requests.
132
133
  - [Neon](references/integrations-auth-neon.md) - Authenticate Mastra server requests and Studio users with Neon Auth, map Neon Auth organization roles to Mastra permissions, and connect MastraClient with a Neon Auth JWT.
133
134
  - [Supabase](references/integrations-auth-supabase.md) - Give Mastra agents Supabase tools through Mastra Connect, and authenticate Mastra server requests with Supabase Auth and MastraClient.
@@ -305,7 +306,7 @@ Read the individual reference documents for detailed explanations and code examp
305
306
  - [Workspace](references/reference-file-based-agents-workspace.md) - A workspace assembles capabilities such as filesystem access and command execution. The configured backends determine which tools are available.
306
307
  - [Reference: Knowledge class](references/reference-knowledge-knowledge-class.md) - Constructor options and methods of the Knowledge class.
307
308
  - [Reference: knowledgeMemoryScopes()](references/reference-knowledge-knowledge-memory-scopes.md) - Declarations for Memory thread and resource scopes and a tenant scope, for the Knowledge scopes option.
308
- - [Reference: Knowledge tools](references/reference-knowledge-knowledge-tools.md) - Arguments, operations, required roles and errors of the six Knowledge tools.
309
+ - [Reference: Knowledge tools](references/reference-knowledge-knowledge-tools.md) - Arguments, operations, required roles and errors of the seven Knowledge tools.
309
310
  - [Reference: Limits](references/reference-knowledge-limits.md) - Size limits for notes, pages, searches and pinned context in Knowledge.
310
311
  - [Reference: Scope declarations](references/reference-knowledge-scope-declarations.md) - The Knowledge scopes option: patterns and params, access rules, belongsTo, child scopes, template pages, labels, renaming, and the errors each raises.
311
312
  - [Reference: Tool instructions](references/reference-knowledge-tool-instructions.md) - The usage instructions Knowledge adds to agents with its tools, and how to change or turn them off.