@mastra/mcp-docs-server 0.0.0-bundle-recursion-20251030002519 → 0.0.0-bundle-version-20260121091645

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 (672) hide show
  1. package/.docs/organized/changelogs/%40internal%2Fchangeset-cli.md +1 -15
  2. package/.docs/organized/changelogs/%40internal%2Fexternal-types.md +1 -7
  3. package/.docs/organized/changelogs/%40internal%2Fplayground.md +60 -0
  4. package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +201 -1
  5. package/.docs/organized/changelogs/%40internal%2Ftypes-builder.md +1 -55
  6. package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +368 -168
  7. package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +362 -162
  8. package/.docs/organized/changelogs/%40mastra%2Fastra.md +201 -1
  9. package/.docs/organized/changelogs/%40mastra%2Fauth.md +52 -0
  10. package/.docs/organized/changelogs/%40mastra%2Fchroma.md +201 -1
  11. package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +701 -191
  12. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +400 -200
  13. package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +596 -191
  14. package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +629 -190
  15. package/.docs/organized/changelogs/%40mastra%2Fcodemod.md +235 -0
  16. package/.docs/organized/changelogs/%40mastra%2Fconvex.md +502 -0
  17. package/.docs/organized/changelogs/%40mastra%2Fcore.md +376 -176
  18. package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +201 -1
  19. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +360 -160
  20. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +201 -1
  21. package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +201 -1
  22. package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +201 -1
  23. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +377 -177
  24. package/.docs/organized/changelogs/%40mastra%2Fduckdb.md +112 -0
  25. package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +575 -197
  26. package/.docs/organized/changelogs/%40mastra%2Felasticsearch.md +133 -0
  27. package/.docs/organized/changelogs/%40mastra%2Fevals.md +211 -11
  28. package/.docs/organized/changelogs/%40mastra%2Ffastembed.md +64 -0
  29. package/.docs/organized/changelogs/%40mastra%2Flance.md +621 -191
  30. package/.docs/organized/changelogs/%40mastra%2Flibsql.md +788 -192
  31. package/.docs/organized/changelogs/%40mastra%2Floggers.md +201 -1
  32. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +336 -136
  33. package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +201 -1
  34. package/.docs/organized/changelogs/%40mastra%2Fmcp.md +384 -184
  35. package/.docs/organized/changelogs/%40mastra%2Fmemory.md +576 -178
  36. package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +729 -196
  37. package/.docs/organized/changelogs/%40mastra%2Fmssql.md +670 -191
  38. package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +231 -31
  39. package/.docs/organized/changelogs/%40mastra%2Fpg.md +913 -167
  40. package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +248 -48
  41. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +376 -176
  42. package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +204 -4
  43. package/.docs/organized/changelogs/%40mastra%2Frag.md +414 -214
  44. package/.docs/organized/changelogs/%40mastra%2Freact.md +358 -158
  45. package/.docs/organized/changelogs/%40mastra%2Fs3vectors.md +101 -0
  46. package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +220 -0
  47. package/.docs/organized/changelogs/%40mastra%2Fserver.md +363 -163
  48. package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +201 -1
  49. package/.docs/organized/changelogs/%40mastra%2Fupstash.md +640 -193
  50. package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +201 -1
  51. package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +201 -1
  52. package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +201 -1
  53. package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +201 -1
  54. package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +201 -1
  55. package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +107 -1
  56. package/.docs/organized/changelogs/%40mastra%2Fvoice-google-gemini-live.md +183 -0
  57. package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +201 -1
  58. package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +201 -1
  59. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +201 -1
  60. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +201 -1
  61. package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +201 -1
  62. package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +201 -1
  63. package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +201 -1
  64. package/.docs/organized/changelogs/create-mastra.md +291 -91
  65. package/.docs/organized/changelogs/mastra.md +365 -165
  66. package/.docs/organized/code-examples/a2a.md +6 -4
  67. package/.docs/organized/code-examples/agent-v6.md +221 -0
  68. package/.docs/organized/code-examples/agui.md +16 -12
  69. package/.docs/organized/code-examples/ai-elements.md +4 -4
  70. package/.docs/organized/code-examples/ai-sdk-useChat.md +16 -22
  71. package/.docs/organized/code-examples/ai-sdk-v5.md +9 -6
  72. package/.docs/organized/code-examples/assistant-ui.md +7 -7
  73. package/.docs/organized/code-examples/bird-checker-with-express.md +7 -6
  74. package/.docs/organized/code-examples/bird-checker-with-nextjs-and-eval.md +8 -7
  75. package/.docs/organized/code-examples/bird-checker-with-nextjs.md +8 -7
  76. package/.docs/organized/code-examples/client-side-tools.md +6 -5
  77. package/.docs/organized/code-examples/crypto-chatbot.md +7 -7
  78. package/.docs/organized/code-examples/experimental-auth-weather-agent.md +9 -178
  79. package/.docs/organized/code-examples/fireworks-r1.md +5 -5
  80. package/.docs/organized/code-examples/heads-up-game.md +8 -5
  81. package/.docs/organized/code-examples/inngest.md +1075 -0
  82. package/.docs/organized/code-examples/mcp-configuration.md +6 -7
  83. package/.docs/organized/code-examples/mcp-registry-registry.md +3 -2
  84. package/.docs/organized/code-examples/mcp-server-adapters.md +720 -0
  85. package/.docs/organized/code-examples/memory-per-resource-example.md +7 -5
  86. package/.docs/organized/code-examples/memory-todo-agent.md +2 -1
  87. package/.docs/organized/code-examples/memory-with-context.md +3 -2
  88. package/.docs/organized/code-examples/memory-with-libsql.md +4 -2
  89. package/.docs/organized/code-examples/memory-with-mongodb.md +4 -2
  90. package/.docs/organized/code-examples/memory-with-pg.md +4 -2
  91. package/.docs/organized/code-examples/memory-with-processors.md +15 -10
  92. package/.docs/organized/code-examples/memory-with-upstash.md +5 -3
  93. package/.docs/organized/code-examples/openapi-spec-writer.md +36 -35
  94. package/.docs/organized/code-examples/processors-with-ai-sdk.md +14 -0
  95. package/.docs/organized/code-examples/quick-start.md +8 -39
  96. package/.docs/organized/code-examples/server-app-access.md +342 -0
  97. package/.docs/organized/code-examples/server-express-adapter.md +87 -0
  98. package/.docs/organized/code-examples/server-fastify-adapter.md +83 -0
  99. package/.docs/organized/code-examples/server-hono-adapter.md +85 -0
  100. package/.docs/organized/code-examples/server-koa-adapter.md +94 -0
  101. package/.docs/organized/code-examples/stock-price-tool.md +27 -27
  102. package/.docs/organized/code-examples/weather-agent.md +21 -16
  103. package/.docs/organized/code-examples/workflow-ai-recruiter.md +5 -4
  104. package/.docs/organized/code-examples/workflow-with-inline-steps.md +11 -14
  105. package/.docs/organized/code-examples/workflow-with-memory.md +18 -17
  106. package/.docs/organized/code-examples/workflow-with-separate-steps.md +4 -4
  107. package/.docs/organized/code-examples/workflow-with-suspend-resume.md +5 -4
  108. package/.docs/raw/agents/adding-voice.mdx +92 -23
  109. package/.docs/raw/agents/agent-approval.mdx +386 -0
  110. package/.docs/raw/agents/agent-memory.mdx +53 -41
  111. package/.docs/raw/agents/guardrails.mdx +141 -68
  112. package/.docs/raw/agents/network-approval.mdx +281 -0
  113. package/.docs/raw/agents/networks.mdx +79 -19
  114. package/.docs/raw/agents/overview.mdx +69 -194
  115. package/.docs/raw/agents/processors.mdx +496 -0
  116. package/.docs/raw/agents/structured-output.mdx +294 -0
  117. package/.docs/raw/agents/using-tools.mdx +86 -22
  118. package/.docs/raw/community/contributing-templates.mdx +1 -1
  119. package/.docs/raw/community/discord.mdx +2 -2
  120. package/.docs/raw/community/licensing.mdx +1 -1
  121. package/.docs/raw/course/01-first-agent/04-project-structure.md +2 -0
  122. package/.docs/raw/course/01-first-agent/05-running-playground.md +5 -5
  123. package/.docs/raw/course/01-first-agent/07-creating-your-agent.md +1 -2
  124. package/.docs/raw/course/01-first-agent/08-exporting-your-agent.md +2 -1
  125. package/.docs/raw/course/01-first-agent/09-testing-your-agent.md +3 -3
  126. package/.docs/raw/course/01-first-agent/12-connecting-tool-to-agent.md +1 -1
  127. package/.docs/raw/course/01-first-agent/13-testing-your-tool.md +3 -3
  128. package/.docs/raw/course/01-first-agent/15-installing-memory.md +1 -1
  129. package/.docs/raw/course/01-first-agent/16-adding-memory-to-agent.md +3 -3
  130. package/.docs/raw/course/01-first-agent/17-testing-memory.md +2 -2
  131. package/.docs/raw/course/02-agent-tools-mcp/04-initializing-mcp-tools.md +2 -2
  132. package/.docs/raw/course/02-agent-tools-mcp/05-updating-your-agent.md +1 -1
  133. package/.docs/raw/course/02-agent-tools-mcp/10-updating-agent-instructions-zapier.md +1 -1
  134. package/.docs/raw/course/02-agent-tools-mcp/16-updating-agent-instructions-github.md +1 -1
  135. package/.docs/raw/course/02-agent-tools-mcp/21-updating-agent-instructions-hackernews.md +1 -1
  136. package/.docs/raw/course/02-agent-tools-mcp/27-updating-agent-instructions-filesystem.md +1 -1
  137. package/.docs/raw/course/02-agent-tools-mcp/31-enhancing-memory-configuration.md +5 -3
  138. package/.docs/raw/course/02-agent-tools-mcp/32-conclusion.md +1 -1
  139. package/.docs/raw/course/03-agent-memory/03-installing-memory.md +1 -1
  140. package/.docs/raw/course/03-agent-memory/04-creating-basic-memory-agent.md +2 -2
  141. package/.docs/raw/course/03-agent-memory/07-understanding-memory-threads.md +35 -0
  142. package/.docs/raw/course/03-agent-memory/08-configuring-conversation-history.md +1 -2
  143. package/.docs/raw/course/03-agent-memory/10-storage-configuration.md +2 -3
  144. package/.docs/raw/course/03-agent-memory/13-vector-store-configuration.md +3 -1
  145. package/.docs/raw/course/03-agent-memory/16-configuring-semantic-recall.md +6 -5
  146. package/.docs/raw/course/03-agent-memory/18-advanced-configuration-semantic-recall.md +2 -1
  147. package/.docs/raw/course/03-agent-memory/21-configuring-working-memory.md +5 -4
  148. package/.docs/raw/course/03-agent-memory/22-custom-working-memory-templates.md +4 -4
  149. package/.docs/raw/course/03-agent-memory/25-combining-memory-features.md +4 -4
  150. package/.docs/raw/course/03-agent-memory/27-creating-learning-assistant.md +4 -4
  151. package/.docs/raw/course/04-workflows/07-using-playground.md +1 -1
  152. package/.docs/raw/course/04-workflows/08-running-workflows-programmatically.md +2 -2
  153. package/.docs/raw/course/04-workflows/11-creating-an-ai-agent.md +2 -3
  154. package/.docs/raw/deployment/cloud-providers.mdx +22 -0
  155. package/.docs/raw/deployment/mastra-server.mdx +140 -0
  156. package/.docs/raw/deployment/monorepo.mdx +106 -42
  157. package/.docs/raw/deployment/overview.mdx +37 -50
  158. package/.docs/raw/deployment/web-framework.mdx +18 -20
  159. package/.docs/raw/deployment/workflow-runners.mdx +16 -0
  160. package/.docs/raw/evals/built-in-scorers.mdx +54 -0
  161. package/.docs/raw/{scorers → evals}/custom-scorers.mdx +68 -22
  162. package/.docs/raw/{scorers → evals}/overview.mdx +19 -20
  163. package/.docs/raw/evals/running-in-ci.mdx +113 -0
  164. package/.docs/raw/getting-started/{installation.mdx → manual-install.mdx} +30 -103
  165. package/.docs/raw/getting-started/mcp-docs-server.mdx +57 -32
  166. package/.docs/raw/getting-started/project-structure.mdx +4 -4
  167. package/.docs/raw/getting-started/start.mdx +88 -0
  168. package/.docs/raw/getting-started/studio.mdx +39 -56
  169. package/.docs/raw/guides/agent-frameworks/ai-sdk.mdx +151 -0
  170. package/.docs/raw/guides/build-your-ui/ai-sdk-ui.mdx +1581 -0
  171. package/.docs/raw/{frameworks/agentic-uis → guides/build-your-ui}/assistant-ui.mdx +75 -23
  172. package/.docs/raw/guides/build-your-ui/copilotkit.mdx +227 -0
  173. package/.docs/raw/{deployment/cloud-providers → guides/deployment}/amazon-ec2.mdx +13 -13
  174. package/.docs/raw/{deployment/cloud-providers → guides/deployment}/aws-lambda.mdx +18 -19
  175. package/.docs/raw/{deployment/cloud-providers → guides/deployment}/azure-app-services.mdx +7 -9
  176. package/.docs/raw/{deployment/serverless-platforms → guides/deployment}/cloudflare-deployer.mdx +10 -7
  177. package/.docs/raw/{deployment/cloud-providers → guides/deployment}/digital-ocean.mdx +22 -27
  178. package/.docs/raw/guides/deployment/index.mdx +32 -0
  179. package/.docs/raw/guides/deployment/inngest.mdx +673 -0
  180. package/.docs/raw/{deployment/serverless-platforms → guides/deployment}/netlify-deployer.mdx +52 -17
  181. package/.docs/raw/{deployment/serverless-platforms → guides/deployment}/vercel-deployer.mdx +10 -7
  182. package/.docs/raw/guides/getting-started/astro.mdx +441 -0
  183. package/.docs/raw/guides/getting-started/express.mdx +128 -0
  184. package/.docs/raw/guides/getting-started/hono.mdx +227 -0
  185. package/.docs/raw/guides/getting-started/next-js.mdx +388 -0
  186. package/.docs/raw/guides/getting-started/nuxt.mdx +505 -0
  187. package/.docs/raw/guides/getting-started/quickstart.mdx +97 -0
  188. package/.docs/raw/guides/getting-started/sveltekit.mdx +329 -0
  189. package/.docs/raw/guides/getting-started/vite-react.mdx +425 -0
  190. package/.docs/raw/guides/guide/ai-recruiter.mdx +263 -0
  191. package/.docs/raw/guides/guide/chef-michel.mdx +268 -0
  192. package/.docs/raw/guides/guide/notes-mcp-server.mdx +450 -0
  193. package/.docs/raw/guides/guide/research-assistant.mdx +379 -0
  194. package/.docs/raw/guides/guide/stock-agent.mdx +183 -0
  195. package/.docs/raw/guides/guide/web-search.mdx +293 -0
  196. package/.docs/raw/guides/guide/whatsapp-chat-bot.mdx +421 -0
  197. package/.docs/raw/guides/index.mdx +10 -0
  198. package/.docs/raw/guides/migrations/agentnetwork.mdx +114 -0
  199. package/.docs/raw/guides/migrations/ai-sdk-v4-to-v5.mdx +119 -0
  200. package/.docs/raw/guides/migrations/upgrade-to-v1/_template.mdx +50 -0
  201. package/.docs/raw/guides/migrations/upgrade-to-v1/agent.mdx +416 -0
  202. package/.docs/raw/guides/migrations/upgrade-to-v1/cli.mdx +62 -0
  203. package/.docs/raw/guides/migrations/upgrade-to-v1/client.mdx +363 -0
  204. package/.docs/raw/guides/migrations/upgrade-to-v1/deployment.mdx +42 -0
  205. package/.docs/raw/guides/migrations/upgrade-to-v1/evals.mdx +260 -0
  206. package/.docs/raw/guides/migrations/upgrade-to-v1/mastra.mdx +160 -0
  207. package/.docs/raw/guides/migrations/upgrade-to-v1/mcp.mdx +114 -0
  208. package/.docs/raw/guides/migrations/upgrade-to-v1/memory.mdx +306 -0
  209. package/.docs/raw/guides/migrations/upgrade-to-v1/overview.mdx +120 -0
  210. package/.docs/raw/guides/migrations/upgrade-to-v1/processors.mdx +73 -0
  211. package/.docs/raw/guides/migrations/upgrade-to-v1/rag.mdx +47 -0
  212. package/.docs/raw/guides/migrations/upgrade-to-v1/storage.mdx +596 -0
  213. package/.docs/raw/guides/migrations/upgrade-to-v1/tools.mdx +180 -0
  214. package/.docs/raw/guides/migrations/upgrade-to-v1/tracing.mdx +335 -0
  215. package/.docs/raw/guides/migrations/upgrade-to-v1/vectors.mdx +92 -0
  216. package/.docs/raw/guides/migrations/upgrade-to-v1/voice.mdx +39 -0
  217. package/.docs/raw/guides/migrations/upgrade-to-v1/workflows.mdx +353 -0
  218. package/.docs/raw/guides/migrations/vnext-to-standard-apis.mdx +365 -0
  219. package/.docs/raw/index.mdx +9 -9
  220. package/.docs/raw/mastra-cloud/deployment.mdx +86 -0
  221. package/.docs/raw/mastra-cloud/observability.mdx +17 -25
  222. package/.docs/raw/mastra-cloud/overview.mdx +15 -49
  223. package/.docs/raw/mastra-cloud/setup.mdx +64 -0
  224. package/.docs/raw/mastra-cloud/studio.mdx +35 -0
  225. package/.docs/raw/mcp/overview.mdx +393 -0
  226. package/.docs/raw/mcp/publishing-mcp-server.mdx +142 -0
  227. package/.docs/raw/memory/memory-processors.mdx +273 -82
  228. package/.docs/raw/memory/message-history.mdx +72 -0
  229. package/.docs/raw/memory/overview.mdx +42 -76
  230. package/.docs/raw/memory/semantic-recall.mdx +77 -59
  231. package/.docs/raw/memory/storage.mdx +248 -0
  232. package/.docs/raw/memory/working-memory.mdx +41 -21
  233. package/.docs/raw/observability/logging.mdx +21 -20
  234. package/.docs/raw/observability/overview.mdx +37 -35
  235. package/.docs/raw/observability/tracing/bridges/otel.mdx +203 -0
  236. package/.docs/raw/observability/{ai-tracing → tracing}/exporters/arize.mdx +89 -24
  237. package/.docs/raw/observability/{ai-tracing → tracing}/exporters/braintrust.mdx +40 -20
  238. package/.docs/raw/observability/{ai-tracing → tracing}/exporters/cloud.mdx +34 -21
  239. package/.docs/raw/observability/tracing/exporters/datadog.mdx +175 -0
  240. package/.docs/raw/observability/{ai-tracing → tracing}/exporters/default.mdx +45 -28
  241. package/.docs/raw/observability/tracing/exporters/laminar.mdx +89 -0
  242. package/.docs/raw/observability/tracing/exporters/langfuse.mdx +205 -0
  243. package/.docs/raw/observability/tracing/exporters/langsmith.mdx +121 -0
  244. package/.docs/raw/observability/tracing/exporters/otel.mdx +457 -0
  245. package/.docs/raw/observability/tracing/exporters/posthog.mdx +137 -0
  246. package/.docs/raw/observability/tracing/exporters/sentry.mdx +198 -0
  247. package/.docs/raw/observability/tracing/overview.mdx +1128 -0
  248. package/.docs/raw/observability/{ai-tracing → tracing}/processors/sensitive-data-filter.mdx +40 -20
  249. package/.docs/raw/rag/chunking-and-embedding.mdx +37 -49
  250. package/.docs/raw/rag/graph-rag.mdx +223 -0
  251. package/.docs/raw/rag/overview.mdx +11 -17
  252. package/.docs/raw/rag/retrieval.mdx +110 -97
  253. package/.docs/raw/rag/vector-databases.mdx +150 -29
  254. package/.docs/raw/reference/agents/agent.mdx +54 -50
  255. package/.docs/raw/reference/agents/generate.mdx +410 -146
  256. package/.docs/raw/reference/agents/generateLegacy.mdx +13 -11
  257. package/.docs/raw/reference/agents/getDefaultGenerateOptions.mdx +24 -16
  258. package/.docs/raw/reference/agents/getDefaultOptions.mdx +71 -0
  259. package/.docs/raw/reference/agents/getDefaultStreamOptions.mdx +25 -17
  260. package/.docs/raw/reference/agents/getDescription.mdx +4 -2
  261. package/.docs/raw/reference/agents/getInstructions.mdx +12 -10
  262. package/.docs/raw/reference/agents/getLLM.mdx +14 -12
  263. package/.docs/raw/reference/agents/getMemory.mdx +13 -11
  264. package/.docs/raw/reference/agents/getModel.mdx +14 -12
  265. package/.docs/raw/reference/agents/getTools.mdx +11 -9
  266. package/.docs/raw/reference/agents/getVoice.mdx +12 -10
  267. package/.docs/raw/reference/agents/listAgents.mdx +13 -11
  268. package/.docs/raw/reference/agents/listScorers.mdx +71 -0
  269. package/.docs/raw/reference/agents/listTools.mdx +71 -0
  270. package/.docs/raw/reference/agents/listWorkflows.mdx +71 -0
  271. package/.docs/raw/reference/agents/network.mdx +134 -60
  272. package/.docs/raw/reference/ai-sdk/chat-route.mdx +130 -0
  273. package/.docs/raw/reference/ai-sdk/handle-chat-stream.mdx +119 -0
  274. package/.docs/raw/reference/ai-sdk/handle-network-stream.mdx +66 -0
  275. package/.docs/raw/reference/ai-sdk/handle-workflow-stream.mdx +118 -0
  276. package/.docs/raw/reference/ai-sdk/network-route.mdx +102 -0
  277. package/.docs/raw/reference/ai-sdk/to-ai-sdk-stream.mdx +293 -0
  278. package/.docs/raw/reference/ai-sdk/to-ai-sdk-v4-messages.mdx +130 -0
  279. package/.docs/raw/reference/ai-sdk/to-ai-sdk-v5-messages.mdx +110 -0
  280. package/.docs/raw/reference/ai-sdk/with-mastra.mdx +122 -0
  281. package/.docs/raw/reference/ai-sdk/workflow-route.mdx +113 -0
  282. package/.docs/raw/reference/auth/auth0.mdx +9 -7
  283. package/.docs/raw/reference/auth/clerk.mdx +9 -7
  284. package/.docs/raw/reference/auth/firebase.mdx +12 -11
  285. package/.docs/raw/reference/auth/jwt.mdx +9 -7
  286. package/.docs/raw/reference/auth/supabase.mdx +9 -7
  287. package/.docs/raw/reference/auth/workos.mdx +9 -7
  288. package/.docs/raw/reference/cli/create-mastra.mdx +13 -11
  289. package/.docs/raw/reference/cli/mastra.mdx +72 -23
  290. package/.docs/raw/reference/client-js/agents.mdx +316 -86
  291. package/.docs/raw/reference/client-js/error-handling.mdx +4 -4
  292. package/.docs/raw/reference/client-js/logs.mdx +4 -2
  293. package/.docs/raw/reference/client-js/mastra-client.mdx +20 -18
  294. package/.docs/raw/reference/client-js/memory.mdx +116 -20
  295. package/.docs/raw/reference/client-js/observability.mdx +14 -12
  296. package/.docs/raw/reference/client-js/telemetry.mdx +3 -1
  297. package/.docs/raw/reference/client-js/tools.mdx +4 -2
  298. package/.docs/raw/reference/client-js/vectors.mdx +3 -1
  299. package/.docs/raw/reference/client-js/workflows.mdx +132 -87
  300. package/.docs/raw/reference/configuration.mdx +761 -0
  301. package/.docs/raw/reference/core/addGateway.mdx +61 -0
  302. package/.docs/raw/reference/core/getAgent.mdx +4 -2
  303. package/.docs/raw/reference/core/getAgentById.mdx +4 -2
  304. package/.docs/raw/reference/core/getDeployer.mdx +4 -2
  305. package/.docs/raw/reference/core/getGateway.mdx +61 -0
  306. package/.docs/raw/reference/core/getGatewayById.mdx +64 -0
  307. package/.docs/raw/reference/core/getLogger.mdx +5 -3
  308. package/.docs/raw/reference/core/getMCPServer.mdx +34 -16
  309. package/.docs/raw/reference/core/getMCPServerById.mdx +83 -0
  310. package/.docs/raw/reference/core/getMemory.mdx +50 -9
  311. package/.docs/raw/reference/core/getScorer.mdx +6 -4
  312. package/.docs/raw/reference/core/getScorerById.mdx +81 -0
  313. package/.docs/raw/reference/core/getServer.mdx +7 -5
  314. package/.docs/raw/reference/core/getStorage.mdx +6 -4
  315. package/.docs/raw/reference/core/getStoredAgentById.mdx +185 -0
  316. package/.docs/raw/reference/core/getTelemetry.mdx +6 -4
  317. package/.docs/raw/reference/core/getVector.mdx +4 -2
  318. package/.docs/raw/reference/core/getWorkflow.mdx +4 -2
  319. package/.docs/raw/reference/core/{getAgents.mdx → listAgents.mdx} +8 -6
  320. package/.docs/raw/reference/core/listGateways.mdx +55 -0
  321. package/.docs/raw/reference/core/{getLogs.mdx → listLogs.mdx} +9 -7
  322. package/.docs/raw/reference/core/{getLogsByRunId.mdx → listLogsByRunId.mdx} +9 -7
  323. package/.docs/raw/reference/core/listMCPServers.mdx +67 -0
  324. package/.docs/raw/reference/core/listMemory.mdx +74 -0
  325. package/.docs/raw/reference/core/listScorers.mdx +45 -0
  326. package/.docs/raw/reference/core/listStoredAgents.mdx +153 -0
  327. package/.docs/raw/reference/core/{getVectors.mdx → listVectors.mdx} +8 -6
  328. package/.docs/raw/reference/core/{getWorkflows.mdx → listWorkflows.mdx} +8 -6
  329. package/.docs/raw/reference/core/mastra-class.mdx +47 -23
  330. package/.docs/raw/reference/core/mastra-model-gateway.mdx +229 -0
  331. package/.docs/raw/reference/core/setLogger.mdx +5 -3
  332. package/.docs/raw/reference/core/setStorage.mdx +8 -5
  333. package/.docs/raw/reference/deployer/cloudflare.mdx +24 -55
  334. package/.docs/raw/reference/deployer/deployer.mdx +3 -8
  335. package/.docs/raw/reference/deployer/netlify.mdx +6 -4
  336. package/.docs/raw/reference/deployer/vercel.mdx +8 -7
  337. package/.docs/raw/reference/evals/answer-relevancy.mdx +99 -128
  338. package/.docs/raw/reference/evals/answer-similarity.mdx +196 -0
  339. package/.docs/raw/reference/evals/bias.mdx +91 -112
  340. package/.docs/raw/reference/evals/completeness.mdx +93 -118
  341. package/.docs/raw/reference/evals/content-similarity.mdx +73 -117
  342. package/.docs/raw/reference/evals/context-precision.mdx +195 -137
  343. package/.docs/raw/reference/{scorers → evals}/context-relevance.mdx +19 -17
  344. package/.docs/raw/reference/{scorers → evals}/create-scorer.mdx +80 -63
  345. package/.docs/raw/reference/evals/faithfulness.mdx +94 -122
  346. package/.docs/raw/reference/evals/hallucination.mdx +89 -134
  347. package/.docs/raw/reference/evals/keyword-coverage.mdx +94 -126
  348. package/.docs/raw/reference/{scorers → evals}/mastra-scorer.mdx +9 -5
  349. package/.docs/raw/reference/{scorers → evals}/noise-sensitivity.mdx +22 -20
  350. package/.docs/raw/reference/evals/prompt-alignment.mdx +606 -182
  351. package/.docs/raw/reference/{scorers/run-experiment.mdx → evals/run-evals.mdx} +21 -20
  352. package/.docs/raw/reference/evals/scorer-utils.mdx +365 -0
  353. package/.docs/raw/reference/evals/textual-difference.mdx +80 -118
  354. package/.docs/raw/reference/evals/tone-consistency.mdx +80 -126
  355. package/.docs/raw/reference/{scorers → evals}/tool-call-accuracy.mdx +37 -33
  356. package/.docs/raw/reference/evals/toxicity.mdx +93 -97
  357. package/.docs/raw/reference/index.mdx +2 -0
  358. package/.docs/raw/reference/{observability/logging → logging}/pino-logger.mdx +12 -10
  359. package/.docs/raw/reference/memory/clone-utilities.mdx +345 -0
  360. package/.docs/raw/reference/memory/cloneThread.mdx +237 -0
  361. package/.docs/raw/reference/memory/createThread.mdx +7 -5
  362. package/.docs/raw/reference/memory/deleteMessages.mdx +10 -8
  363. package/.docs/raw/reference/memory/getThreadById.mdx +4 -2
  364. package/.docs/raw/reference/memory/listThreads.mdx +187 -0
  365. package/.docs/raw/reference/memory/memory-class.mdx +38 -29
  366. package/.docs/raw/reference/memory/{query.mdx → recall.mdx} +60 -61
  367. package/.docs/raw/reference/observability/tracing/bridges/otel.mdx +181 -0
  368. package/.docs/raw/reference/observability/tracing/configuration.mdx +292 -0
  369. package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/arize.mdx +66 -18
  370. package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/braintrust.mdx +35 -11
  371. package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/cloud-exporter.mdx +32 -20
  372. package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/console-exporter.mdx +53 -18
  373. package/.docs/raw/reference/observability/tracing/exporters/datadog.mdx +172 -0
  374. package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/default-exporter.mdx +53 -42
  375. package/.docs/raw/reference/observability/tracing/exporters/laminar.mdx +139 -0
  376. package/.docs/raw/reference/observability/tracing/exporters/langfuse.mdx +184 -0
  377. package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/langsmith.mdx +38 -9
  378. package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/otel.mdx +87 -80
  379. package/.docs/raw/reference/observability/tracing/exporters/posthog.mdx +153 -0
  380. package/.docs/raw/reference/observability/tracing/exporters/sentry.mdx +224 -0
  381. package/.docs/raw/reference/observability/tracing/instances.mdx +166 -0
  382. package/.docs/raw/reference/observability/{ai-tracing → tracing}/interfaces.mdx +165 -94
  383. package/.docs/raw/reference/observability/{ai-tracing → tracing}/processors/sensitive-data-filter.mdx +6 -4
  384. package/.docs/raw/reference/observability/{ai-tracing/span.mdx → tracing/spans.mdx} +60 -44
  385. package/.docs/raw/reference/processors/batch-parts-processor.mdx +22 -18
  386. package/.docs/raw/reference/processors/language-detector.mdx +41 -37
  387. package/.docs/raw/reference/processors/message-history-processor.mdx +134 -0
  388. package/.docs/raw/reference/processors/moderation-processor.mdx +66 -35
  389. package/.docs/raw/reference/processors/pii-detector.mdx +67 -37
  390. package/.docs/raw/reference/processors/processor-interface.mdx +805 -0
  391. package/.docs/raw/reference/processors/prompt-injection-detector.mdx +40 -35
  392. package/.docs/raw/reference/processors/semantic-recall-processor.mdx +202 -0
  393. package/.docs/raw/reference/processors/system-prompt-scrubber.mdx +38 -36
  394. package/.docs/raw/reference/processors/token-limiter-processor.mdx +80 -40
  395. package/.docs/raw/reference/processors/tool-call-filter.mdx +127 -0
  396. package/.docs/raw/reference/processors/unicode-normalizer.mdx +26 -19
  397. package/.docs/raw/reference/processors/working-memory-processor.mdx +224 -0
  398. package/.docs/raw/reference/rag/chunk.mdx +7 -13
  399. package/.docs/raw/reference/rag/database-config.mdx +12 -10
  400. package/.docs/raw/reference/rag/document.mdx +3 -1
  401. package/.docs/raw/reference/rag/embeddings.mdx +8 -6
  402. package/.docs/raw/reference/rag/extract-params.mdx +58 -4
  403. package/.docs/raw/reference/rag/graph-rag.mdx +3 -1
  404. package/.docs/raw/reference/rag/metadata-filters.mdx +32 -9
  405. package/.docs/raw/reference/rag/rerank.mdx +4 -3
  406. package/.docs/raw/reference/rag/rerankWithScorer.mdx +3 -2
  407. package/.docs/raw/reference/server/create-route.mdx +330 -0
  408. package/.docs/raw/reference/server/express-adapter.mdx +221 -0
  409. package/.docs/raw/reference/server/fastify-adapter.mdx +130 -0
  410. package/.docs/raw/reference/server/hono-adapter.mdx +204 -0
  411. package/.docs/raw/reference/server/koa-adapter.mdx +129 -0
  412. package/.docs/raw/reference/server/mastra-server.mdx +334 -0
  413. package/.docs/raw/reference/server/routes.mdx +313 -0
  414. package/.docs/raw/reference/storage/cloudflare-d1.mdx +44 -2
  415. package/.docs/raw/reference/storage/cloudflare.mdx +13 -3
  416. package/.docs/raw/reference/storage/composite.mdx +245 -0
  417. package/.docs/raw/reference/storage/convex.mdx +166 -0
  418. package/.docs/raw/reference/storage/dynamodb.mdx +135 -13
  419. package/.docs/raw/reference/storage/lance.mdx +40 -3
  420. package/.docs/raw/reference/storage/libsql.mdx +92 -31
  421. package/.docs/raw/reference/storage/mongodb.mdx +149 -11
  422. package/.docs/raw/reference/storage/mssql.mdx +53 -6
  423. package/.docs/raw/{server-db/storage.mdx → reference/storage/overview.mdx} +15 -90
  424. package/.docs/raw/reference/storage/postgresql.mdx +268 -80
  425. package/.docs/raw/reference/storage/upstash.mdx +80 -3
  426. package/.docs/raw/reference/streaming/ChunkType.mdx +33 -5
  427. package/.docs/raw/reference/streaming/agents/MastraModelOutput.mdx +68 -7
  428. package/.docs/raw/reference/streaming/agents/stream.mdx +126 -156
  429. package/.docs/raw/reference/streaming/agents/streamLegacy.mdx +11 -9
  430. package/.docs/raw/reference/streaming/workflows/observeStream.mdx +13 -13
  431. package/.docs/raw/reference/streaming/workflows/{resumeStreamVNext.mdx → resumeStream.mdx} +60 -18
  432. package/.docs/raw/reference/streaming/workflows/stream.mdx +112 -38
  433. package/.docs/raw/reference/streaming/workflows/timeTravelStream.mdx +172 -0
  434. package/.docs/raw/reference/templates/overview.mdx +6 -8
  435. package/.docs/raw/reference/tools/client.mdx +5 -3
  436. package/.docs/raw/reference/tools/create-tool.mdx +306 -36
  437. package/.docs/raw/reference/tools/document-chunker-tool.mdx +3 -1
  438. package/.docs/raw/reference/tools/graph-rag-tool.mdx +59 -22
  439. package/.docs/raw/reference/tools/mcp-client.mdx +248 -31
  440. package/.docs/raw/reference/tools/mcp-server.mdx +442 -56
  441. package/.docs/raw/reference/tools/vector-query-tool.mdx +106 -42
  442. package/.docs/raw/reference/vectors/astra.mdx +6 -4
  443. package/.docs/raw/reference/vectors/chroma.mdx +87 -5
  444. package/.docs/raw/reference/vectors/convex.mdx +431 -0
  445. package/.docs/raw/reference/vectors/couchbase.mdx +39 -24
  446. package/.docs/raw/reference/vectors/duckdb.mdx +464 -0
  447. package/.docs/raw/reference/vectors/elasticsearch.mdx +318 -0
  448. package/.docs/raw/reference/vectors/lance.mdx +45 -27
  449. package/.docs/raw/reference/vectors/libsql.mdx +102 -15
  450. package/.docs/raw/reference/vectors/mongodb.mdx +133 -14
  451. package/.docs/raw/reference/vectors/opensearch.mdx +68 -20
  452. package/.docs/raw/reference/vectors/pg.mdx +105 -43
  453. package/.docs/raw/reference/vectors/pinecone.mdx +90 -8
  454. package/.docs/raw/reference/vectors/qdrant.mdx +185 -6
  455. package/.docs/raw/reference/vectors/s3vectors.mdx +10 -8
  456. package/.docs/raw/reference/vectors/turbopuffer.mdx +81 -5
  457. package/.docs/raw/reference/vectors/upstash.mdx +62 -7
  458. package/.docs/raw/reference/vectors/vectorize.mdx +6 -4
  459. package/.docs/raw/reference/voice/azure.mdx +98 -81
  460. package/.docs/raw/reference/voice/cloudflare.mdx +3 -1
  461. package/.docs/raw/reference/voice/composite-voice.mdx +76 -29
  462. package/.docs/raw/reference/voice/deepgram.mdx +3 -1
  463. package/.docs/raw/reference/voice/elevenlabs.mdx +3 -1
  464. package/.docs/raw/reference/voice/google-gemini-live.mdx +6 -3
  465. package/.docs/raw/reference/voice/google.mdx +162 -21
  466. package/.docs/raw/reference/voice/mastra-voice.mdx +3 -1
  467. package/.docs/raw/reference/voice/murf.mdx +3 -1
  468. package/.docs/raw/reference/voice/openai-realtime.mdx +6 -3
  469. package/.docs/raw/reference/voice/openai.mdx +3 -1
  470. package/.docs/raw/reference/voice/playai.mdx +3 -1
  471. package/.docs/raw/reference/voice/sarvam.mdx +3 -1
  472. package/.docs/raw/reference/voice/speechify.mdx +3 -1
  473. package/.docs/raw/reference/voice/voice.addInstructions.mdx +6 -4
  474. package/.docs/raw/reference/voice/voice.addTools.mdx +8 -5
  475. package/.docs/raw/reference/voice/voice.answer.mdx +6 -2
  476. package/.docs/raw/reference/voice/voice.close.mdx +5 -2
  477. package/.docs/raw/reference/voice/voice.connect.mdx +7 -3
  478. package/.docs/raw/reference/voice/voice.events.mdx +3 -1
  479. package/.docs/raw/reference/voice/voice.getSpeakers.mdx +4 -1
  480. package/.docs/raw/reference/voice/voice.listen.mdx +93 -53
  481. package/.docs/raw/reference/voice/voice.off.mdx +4 -2
  482. package/.docs/raw/reference/voice/voice.on.mdx +7 -3
  483. package/.docs/raw/reference/voice/voice.send.mdx +6 -2
  484. package/.docs/raw/reference/voice/voice.speak.mdx +82 -41
  485. package/.docs/raw/reference/voice/voice.updateConfig.mdx +4 -2
  486. package/.docs/raw/reference/workflows/run-methods/cancel.mdx +59 -9
  487. package/.docs/raw/reference/workflows/run-methods/restart.mdx +142 -0
  488. package/.docs/raw/reference/workflows/run-methods/resume.mdx +63 -17
  489. package/.docs/raw/reference/workflows/run-methods/start.mdx +68 -22
  490. package/.docs/raw/reference/workflows/run-methods/startAsync.mdx +145 -0
  491. package/.docs/raw/reference/workflows/run-methods/timeTravel.mdx +312 -0
  492. package/.docs/raw/reference/workflows/run.mdx +38 -15
  493. package/.docs/raw/reference/workflows/step.mdx +73 -7
  494. package/.docs/raw/reference/workflows/workflow-methods/branch.mdx +5 -3
  495. package/.docs/raw/reference/workflows/workflow-methods/commit.mdx +4 -2
  496. package/.docs/raw/reference/workflows/workflow-methods/create-run.mdx +45 -14
  497. package/.docs/raw/reference/workflows/workflow-methods/dountil.mdx +4 -2
  498. package/.docs/raw/reference/workflows/workflow-methods/dowhile.mdx +4 -2
  499. package/.docs/raw/reference/workflows/workflow-methods/foreach.mdx +72 -5
  500. package/.docs/raw/reference/workflows/workflow-methods/map.mdx +80 -3
  501. package/.docs/raw/reference/workflows/workflow-methods/parallel.mdx +4 -2
  502. package/.docs/raw/reference/workflows/workflow-methods/sleep.mdx +5 -7
  503. package/.docs/raw/reference/workflows/workflow-methods/sleepUntil.mdx +5 -7
  504. package/.docs/raw/reference/workflows/workflow-methods/then.mdx +4 -2
  505. package/.docs/raw/reference/workflows/workflow.mdx +207 -11
  506. package/.docs/raw/{auth → server/auth}/auth0.mdx +47 -28
  507. package/.docs/raw/{auth → server/auth}/clerk.mdx +42 -21
  508. package/.docs/raw/{auth → server/auth}/firebase.mdx +54 -32
  509. package/.docs/raw/{auth → server/auth}/index.mdx +9 -7
  510. package/.docs/raw/{auth → server/auth}/jwt.mdx +29 -17
  511. package/.docs/raw/{auth → server/auth}/supabase.mdx +52 -32
  512. package/.docs/raw/{auth → server/auth}/workos.mdx +48 -29
  513. package/.docs/raw/server/custom-adapters.mdx +396 -0
  514. package/.docs/raw/{server-db → server}/custom-api-routes.mdx +11 -11
  515. package/.docs/raw/{server-db → server}/mastra-client.mdx +41 -44
  516. package/.docs/raw/server/mastra-server.mdx +86 -0
  517. package/.docs/raw/{server-db → server}/middleware.mdx +43 -41
  518. package/.docs/raw/server/request-context.mdx +235 -0
  519. package/.docs/raw/server/server-adapters.mdx +410 -0
  520. package/.docs/raw/streaming/events.mdx +18 -9
  521. package/.docs/raw/streaming/overview.mdx +52 -28
  522. package/.docs/raw/streaming/tool-streaming.mdx +75 -33
  523. package/.docs/raw/streaming/workflow-streaming.mdx +15 -21
  524. package/.docs/raw/tools-mcp/advanced-usage.mdx +11 -9
  525. package/.docs/raw/tools-mcp/mcp-overview.mdx +72 -27
  526. package/.docs/raw/tools-mcp/overview.mdx +21 -20
  527. package/.docs/raw/voice/overview.mdx +124 -42
  528. package/.docs/raw/voice/speech-to-speech.mdx +14 -7
  529. package/.docs/raw/voice/speech-to-text.mdx +8 -4
  530. package/.docs/raw/voice/text-to-speech.mdx +7 -4
  531. package/.docs/raw/workflows/agents-and-tools.mdx +73 -26
  532. package/.docs/raw/workflows/control-flow.mdx +697 -134
  533. package/.docs/raw/workflows/error-handling.mdx +198 -42
  534. package/.docs/raw/workflows/human-in-the-loop.mdx +161 -210
  535. package/.docs/raw/workflows/input-data-mapping.mdx +11 -9
  536. package/.docs/raw/workflows/overview.mdx +202 -83
  537. package/.docs/raw/workflows/snapshots.mdx +28 -50
  538. package/.docs/raw/workflows/suspend-and-resume.mdx +125 -208
  539. package/.docs/raw/workflows/time-travel.mdx +317 -0
  540. package/.docs/raw/workflows/workflow-state.mdx +189 -0
  541. package/CHANGELOG.md +419 -4
  542. package/README.md +47 -2
  543. package/dist/{chunk-TUAHUTTB.js → chunk-4CM2BQNP.js} +27 -4
  544. package/dist/index.d.ts.map +1 -1
  545. package/dist/logger.d.ts +3 -0
  546. package/dist/logger.d.ts.map +1 -1
  547. package/dist/prepare-docs/copy-raw.d.ts.map +1 -1
  548. package/dist/prepare-docs/package-changes.d.ts.map +1 -1
  549. package/dist/prepare-docs/prepare.js +1 -1
  550. package/dist/prompts/migration.d.ts +6 -0
  551. package/dist/prompts/migration.d.ts.map +1 -0
  552. package/dist/stdio.js +1107 -40
  553. package/dist/tools/course.d.ts.map +1 -1
  554. package/dist/tools/embedded-docs.d.ts +276 -0
  555. package/dist/tools/embedded-docs.d.ts.map +1 -0
  556. package/dist/tools/migration.d.ts +40 -0
  557. package/dist/tools/migration.d.ts.map +1 -0
  558. package/package.json +17 -17
  559. package/.docs/raw/deployment/cloud-providers/index.mdx +0 -55
  560. package/.docs/raw/deployment/server-deployment.mdx +0 -81
  561. package/.docs/raw/deployment/serverless-platforms/index.mdx +0 -55
  562. package/.docs/raw/frameworks/agentic-uis/ai-sdk.mdx +0 -671
  563. package/.docs/raw/frameworks/agentic-uis/cedar-os.mdx +0 -123
  564. package/.docs/raw/frameworks/agentic-uis/copilotkit.mdx +0 -382
  565. package/.docs/raw/frameworks/agentic-uis/openrouter.mdx +0 -176
  566. package/.docs/raw/frameworks/servers/express.mdx +0 -209
  567. package/.docs/raw/frameworks/web-frameworks/astro.mdx +0 -602
  568. package/.docs/raw/frameworks/web-frameworks/next-js.mdx +0 -379
  569. package/.docs/raw/frameworks/web-frameworks/sveltekit.mdx +0 -486
  570. package/.docs/raw/frameworks/web-frameworks/vite-react.mdx +0 -255
  571. package/.docs/raw/getting-started/templates.mdx +0 -65
  572. package/.docs/raw/mastra-cloud/dashboard.mdx +0 -100
  573. package/.docs/raw/mastra-cloud/setting-up.mdx +0 -105
  574. package/.docs/raw/memory/conversation-history.mdx +0 -23
  575. package/.docs/raw/memory/storage/memory-with-libsql.mdx +0 -140
  576. package/.docs/raw/memory/storage/memory-with-pg.mdx +0 -138
  577. package/.docs/raw/memory/storage/memory-with-upstash.mdx +0 -146
  578. package/.docs/raw/memory/threads-and-resources.mdx +0 -95
  579. package/.docs/raw/observability/ai-tracing/exporters/langfuse.mdx +0 -122
  580. package/.docs/raw/observability/ai-tracing/exporters/langsmith.mdx +0 -88
  581. package/.docs/raw/observability/ai-tracing/exporters/otel.mdx +0 -263
  582. package/.docs/raw/observability/ai-tracing/overview.mdx +0 -812
  583. package/.docs/raw/observability/nextjs-tracing.mdx +0 -109
  584. package/.docs/raw/observability/otel-tracing.mdx +0 -189
  585. package/.docs/raw/reference/agents/getScorers.mdx +0 -69
  586. package/.docs/raw/reference/agents/getWorkflows.mdx +0 -69
  587. package/.docs/raw/reference/client-js/workflows-legacy.mdx +0 -143
  588. package/.docs/raw/reference/core/getMCPServers.mdx +0 -36
  589. package/.docs/raw/reference/core/getScorerByName.mdx +0 -78
  590. package/.docs/raw/reference/core/getScorers.mdx +0 -43
  591. package/.docs/raw/reference/core/setTelemetry.mdx +0 -36
  592. package/.docs/raw/reference/evals/context-position.mdx +0 -197
  593. package/.docs/raw/reference/evals/context-relevancy.mdx +0 -196
  594. package/.docs/raw/reference/evals/contextual-recall.mdx +0 -196
  595. package/.docs/raw/reference/evals/summarization.mdx +0 -212
  596. package/.docs/raw/reference/legacyWorkflows/after.mdx +0 -89
  597. package/.docs/raw/reference/legacyWorkflows/afterEvent.mdx +0 -79
  598. package/.docs/raw/reference/legacyWorkflows/commit.mdx +0 -33
  599. package/.docs/raw/reference/legacyWorkflows/createRun.mdx +0 -76
  600. package/.docs/raw/reference/legacyWorkflows/else.mdx +0 -68
  601. package/.docs/raw/reference/legacyWorkflows/events.mdx +0 -305
  602. package/.docs/raw/reference/legacyWorkflows/execute.mdx +0 -110
  603. package/.docs/raw/reference/legacyWorkflows/if.mdx +0 -108
  604. package/.docs/raw/reference/legacyWorkflows/resume.mdx +0 -158
  605. package/.docs/raw/reference/legacyWorkflows/resumeWithEvent.mdx +0 -133
  606. package/.docs/raw/reference/legacyWorkflows/snapshots.mdx +0 -207
  607. package/.docs/raw/reference/legacyWorkflows/start.mdx +0 -87
  608. package/.docs/raw/reference/legacyWorkflows/step-class.mdx +0 -100
  609. package/.docs/raw/reference/legacyWorkflows/step-condition.mdx +0 -137
  610. package/.docs/raw/reference/legacyWorkflows/step-function.mdx +0 -93
  611. package/.docs/raw/reference/legacyWorkflows/step-options.mdx +0 -69
  612. package/.docs/raw/reference/legacyWorkflows/step-retries.mdx +0 -196
  613. package/.docs/raw/reference/legacyWorkflows/suspend.mdx +0 -70
  614. package/.docs/raw/reference/legacyWorkflows/then.mdx +0 -72
  615. package/.docs/raw/reference/legacyWorkflows/until.mdx +0 -168
  616. package/.docs/raw/reference/legacyWorkflows/watch.mdx +0 -124
  617. package/.docs/raw/reference/legacyWorkflows/while.mdx +0 -168
  618. package/.docs/raw/reference/legacyWorkflows/workflow.mdx +0 -234
  619. package/.docs/raw/reference/memory/getThreadsByResourceId.mdx +0 -79
  620. package/.docs/raw/reference/memory/getThreadsByResourceIdPaginated.mdx +0 -110
  621. package/.docs/raw/reference/observability/ai-tracing/ai-tracing.mdx +0 -186
  622. package/.docs/raw/reference/observability/ai-tracing/configuration.mdx +0 -238
  623. package/.docs/raw/reference/observability/ai-tracing/exporters/langfuse.mdx +0 -116
  624. package/.docs/raw/reference/observability/otel-tracing/otel-config.mdx +0 -117
  625. package/.docs/raw/reference/observability/otel-tracing/providers/arize-ax.mdx +0 -81
  626. package/.docs/raw/reference/observability/otel-tracing/providers/arize-phoenix.mdx +0 -121
  627. package/.docs/raw/reference/observability/otel-tracing/providers/braintrust.mdx +0 -40
  628. package/.docs/raw/reference/observability/otel-tracing/providers/dash0.mdx +0 -40
  629. package/.docs/raw/reference/observability/otel-tracing/providers/index.mdx +0 -20
  630. package/.docs/raw/reference/observability/otel-tracing/providers/keywordsai.mdx +0 -73
  631. package/.docs/raw/reference/observability/otel-tracing/providers/laminar.mdx +0 -41
  632. package/.docs/raw/reference/observability/otel-tracing/providers/langfuse.mdx +0 -84
  633. package/.docs/raw/reference/observability/otel-tracing/providers/langsmith.mdx +0 -48
  634. package/.docs/raw/reference/observability/otel-tracing/providers/langwatch.mdx +0 -43
  635. package/.docs/raw/reference/observability/otel-tracing/providers/new-relic.mdx +0 -40
  636. package/.docs/raw/reference/observability/otel-tracing/providers/signoz.mdx +0 -40
  637. package/.docs/raw/reference/observability/otel-tracing/providers/traceloop.mdx +0 -40
  638. package/.docs/raw/reference/scorers/answer-relevancy.mdx +0 -227
  639. package/.docs/raw/reference/scorers/answer-similarity.mdx +0 -439
  640. package/.docs/raw/reference/scorers/bias.mdx +0 -228
  641. package/.docs/raw/reference/scorers/completeness.mdx +0 -214
  642. package/.docs/raw/reference/scorers/content-similarity.mdx +0 -197
  643. package/.docs/raw/reference/scorers/context-precision.mdx +0 -352
  644. package/.docs/raw/reference/scorers/faithfulness.mdx +0 -241
  645. package/.docs/raw/reference/scorers/hallucination.mdx +0 -252
  646. package/.docs/raw/reference/scorers/keyword-coverage.mdx +0 -229
  647. package/.docs/raw/reference/scorers/prompt-alignment.mdx +0 -668
  648. package/.docs/raw/reference/scorers/textual-difference.mdx +0 -203
  649. package/.docs/raw/reference/scorers/tone-consistency.mdx +0 -211
  650. package/.docs/raw/reference/scorers/toxicity.mdx +0 -228
  651. package/.docs/raw/reference/streaming/workflows/observeStreamVNext.mdx +0 -47
  652. package/.docs/raw/reference/streaming/workflows/streamVNext.mdx +0 -153
  653. package/.docs/raw/reference/workflows/run-methods/watch.mdx +0 -73
  654. package/.docs/raw/reference/workflows/workflow-methods/sendEvent.mdx +0 -70
  655. package/.docs/raw/reference/workflows/workflow-methods/waitForEvent.mdx +0 -66
  656. package/.docs/raw/scorers/evals-old-api/custom-eval.mdx +0 -24
  657. package/.docs/raw/scorers/evals-old-api/overview.mdx +0 -106
  658. package/.docs/raw/scorers/evals-old-api/running-in-ci.mdx +0 -85
  659. package/.docs/raw/scorers/evals-old-api/textual-evals.mdx +0 -58
  660. package/.docs/raw/scorers/off-the-shelf-scorers.mdx +0 -50
  661. package/.docs/raw/server-db/production-server.mdx +0 -89
  662. package/.docs/raw/server-db/runtime-context.mdx +0 -193
  663. package/.docs/raw/workflows/inngest-workflow.mdx +0 -363
  664. package/.docs/raw/workflows-legacy/control-flow.mdx +0 -774
  665. package/.docs/raw/workflows-legacy/dynamic-workflows.mdx +0 -239
  666. package/.docs/raw/workflows-legacy/error-handling.mdx +0 -187
  667. package/.docs/raw/workflows-legacy/nested-workflows.mdx +0 -360
  668. package/.docs/raw/workflows-legacy/overview.mdx +0 -182
  669. package/.docs/raw/workflows-legacy/runtime-variables.mdx +0 -156
  670. package/.docs/raw/workflows-legacy/steps.mdx +0 -115
  671. package/.docs/raw/workflows-legacy/suspend-and-resume.mdx +0 -406
  672. package/.docs/raw/workflows-legacy/variables.mdx +0 -318
@@ -1,302 +1,502 @@
1
1
  # @mastra/server
2
2
 
3
- ## 0.22.2
3
+ ## 1.0.4
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [[`2b031e2`](https://github.com/mastra-ai/mastra/commit/2b031e25ca10cd3e4d63e6a27f909cba26d91405)]:
8
- - @mastra/core@0.22.2
7
+ - Release stable ([#12102](https://github.com/mastra-ai/mastra/pull/12102))
9
8
 
10
- ## 0.22.2-alpha.0
9
+ - Updated dependencies:
10
+ - @mastra/core@1.0.4
11
+
12
+ ## 1.0.4-alpha.0
11
13
 
12
14
  ### Patch Changes
13
15
 
14
- - Updated dependencies [[`2b031e2`](https://github.com/mastra-ai/mastra/commit/2b031e25ca10cd3e4d63e6a27f909cba26d91405)]:
15
- - @mastra/core@0.22.2-alpha.0
16
+ - Release stable ([#12102](https://github.com/mastra-ai/mastra/pull/12102))
16
17
 
17
- ## 0.22.1
18
+ - Updated dependencies:
19
+ - @mastra/core@1.0.4-alpha.0
18
20
 
19
- ### Patch Changes
21
+ ## 1.0.0
20
22
 
21
- - Get agent registered on a parent agent via API ([#9106](https://github.com/mastra-ai/mastra/pull/9106))
23
+ ### Major Changes
22
24
 
23
- - Updated dependencies []:
24
- - @mastra/core@0.22.1
25
+ - Moving scorers under the eval domain, api method consistency, prebuilt evals, scorers require ids. ([#9589](https://github.com/mastra-ai/mastra/pull/9589))
25
26
 
26
- ## 0.22.1-alpha.0
27
+ - Every Mastra primitive (agent, MCPServer, workflow, tool, processor, scorer, and vector) now has a get, list, and add method associated with it. Each primitive also now requires an id to be set. ([#9675](https://github.com/mastra-ai/mastra/pull/9675))
27
28
 
28
- ### Patch Changes
29
+ Primitives that are added to other primitives are also automatically added to the Mastra instance
29
30
 
30
- - Get agent registered on a parent agent via API ([#9106](https://github.com/mastra-ai/mastra/pull/9106))
31
+ - Update handlers to use `listWorkflowRuns` instead of `getWorkflowRuns`. Fix type names from `StoragelistThreadsByResourceIdInput/Output` to `StorageListThreadsByResourceIdInput/Output`. ([#9507](https://github.com/mastra-ai/mastra/pull/9507))
31
32
 
32
- - Updated dependencies []:
33
- - @mastra/core@0.22.1-alpha.0
33
+ - Remove `getMessagesPaginated()` and add `perPage: false` support ([#9670](https://github.com/mastra-ai/mastra/pull/9670))
34
34
 
35
- ## 0.22.0
35
+ Removes deprecated `getMessagesPaginated()` method. The `listMessages()` API and score handlers now support `perPage: false` to fetch all records without pagination limits.
36
36
 
37
- ### Minor Changes
37
+ **Storage changes:**
38
+ - `StoragePagination.perPage` type changed from `number` to `number | false`
39
+ - All storage implementations support `perPage: false`:
40
+ - Memory: `listMessages()`
41
+ - Scores: `listScoresBySpan()`, `listScoresByRunId()`, `listScoresByExecutionId()`
42
+ - HTTP query parser accepts `"false"` string (e.g., `?perPage=false`)
38
43
 
39
- - Consolidate streamVNext logic into stream, move old stream function into streamLegacy ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
44
+ **Memory changes:**
45
+ - `memory.query()` parameter type changed from `StorageGetMessagesArg` to `StorageListMessagesInput`
46
+ - Uses flat parameters (`page`, `perPage`, `include`, `filter`, `vectorSearchString`) instead of `selectBy` object
40
47
 
41
- - Update peer dependencies to match core package version bump (0.21.2) ([#9038](https://github.com/mastra-ai/mastra/pull/9038))
48
+ **Stricter validation:**
49
+ - `listMessages()` requires non-empty, non-whitespace `threadId` (throws error instead of returning empty results)
42
50
 
43
- - Update peer dependencies to match core package version bump (0.22.0) ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
51
+ **Migration:**
44
52
 
45
- - Update peer dependencies to match core package version bump (0.21.2) ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
53
+ ```typescript
54
+ // Storage/Memory: Replace getMessagesPaginated with listMessages
55
+ - storage.getMessagesPaginated({ threadId, selectBy: { pagination: { page: 0, perPage: 20 } } })
56
+ + storage.listMessages({ threadId, page: 0, perPage: 20 })
57
+ + storage.listMessages({ threadId, page: 0, perPage: false }) // Fetch all
46
58
 
47
- ### Patch Changes
59
+ // Memory: Replace selectBy with flat parameters
60
+ - memory.query({ threadId, selectBy: { last: 20, include: [...] } })
61
+ + memory.query({ threadId, perPage: 20, include: [...] })
48
62
 
49
- - Updated `watch` and `watchAsync` methods to use proper function overloads instead of generic conditional types, ensuring compatibility with the base Run class signatures. ([#9048](https://github.com/mastra-ai/mastra/pull/9048))
63
+ // Client SDK
64
+ - thread.getMessagesPaginated({ selectBy: { pagination: { page: 0 } } })
65
+ + thread.listMessages({ page: 0, perPage: 20 })
66
+ ```
50
67
 
51
- - Generate a title for Agent.network() threads ([#8853](https://github.com/mastra-ai/mastra/pull/8853))
68
+ - **Removed `storage.getMessages()`** ([#9695](https://github.com/mastra-ai/mastra/pull/9695))
52
69
 
53
- - Fix custom metadata preservation in UIMessages when loading threads. The `getMessagesHandler` now converts `messagesV2` (V2 format with metadata) instead of `messages` (V1 format without metadata) to AIV5.UI format. Also updates the abstract `MastraMemory.query()` return type to include `messagesV2` for proper type safety. ([#9029](https://github.com/mastra-ai/mastra/pull/9029))
70
+ The `getMessages()` method has been removed from all storage implementations. Use `listMessages()` instead, which provides pagination support.
54
71
 
55
- - Fix provider tools for popular providers and add support for anthropic/claude skills. ([#9038](https://github.com/mastra-ai/mastra/pull/9038))
72
+ **Migration:**
56
73
 
57
- - Show agent tool output better in playground ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
74
+ ```typescript
75
+ // Before
76
+ const messages = await storage.getMessages({ threadId: 'thread-1' });
58
77
 
59
- - Update peerdeps to 0.23.0-0 ([#9043](https://github.com/mastra-ai/mastra/pull/9043))
78
+ // After
79
+ const result = await storage.listMessages({
80
+ threadId: 'thread-1',
81
+ page: 0,
82
+ perPage: 50,
83
+ });
84
+ const messages = result.messages; // Access messages array
85
+ console.log(result.total); // Total count
86
+ console.log(result.hasMore); // Whether more pages exist
87
+ ```
60
88
 
61
- - Updated dependencies [[`c67ca32`](https://github.com/mastra-ai/mastra/commit/c67ca32e3c2cf69bfc146580770c720220ca44ac), [`efb5ed9`](https://github.com/mastra-ai/mastra/commit/efb5ed946ae7f410bc68c9430beb4b010afd25ec), [`dbc9e12`](https://github.com/mastra-ai/mastra/commit/dbc9e1216ba575ba59ead4afb727a01215f7de4f), [`99e41b9`](https://github.com/mastra-ai/mastra/commit/99e41b94957cdd25137d3ac12e94e8b21aa01b68), [`c28833c`](https://github.com/mastra-ai/mastra/commit/c28833c5b6d8e10eeffd7f7d39129d53b8bca240), [`8ea07b4`](https://github.com/mastra-ai/mastra/commit/8ea07b4bdc73e4218437dbb6dcb0f4b23e745a44), [`ba201b8`](https://github.com/mastra-ai/mastra/commit/ba201b8f8feac4c72350f2dbd52c13c7297ba7b0), [`f053e89`](https://github.com/mastra-ai/mastra/commit/f053e89160dbd0bd3333fc3492f68231b5c7c349), [`4fc4136`](https://github.com/mastra-ai/mastra/commit/4fc413652866a8d2240694fddb2562e9edbb70df), [`b78e04d`](https://github.com/mastra-ai/mastra/commit/b78e04d935a16ecb1e59c5c96e564903527edddd), [`d10baf5`](https://github.com/mastra-ai/mastra/commit/d10baf5a3c924f2a6654e23a3e318ed03f189b76), [`038c55a`](https://github.com/mastra-ai/mastra/commit/038c55a7090fc1b1513a966386d3072617f836ac), [`182f045`](https://github.com/mastra-ai/mastra/commit/182f0458f25bd70aa774e64fd923c8a483eddbf1), [`9a1a485`](https://github.com/mastra-ai/mastra/commit/9a1a4859b855e37239f652bf14b1ecd1029b8c4e), [`9257233`](https://github.com/mastra-ai/mastra/commit/9257233c4ffce09b2bedc2a9adbd70d7a83fa8e2), [`7620d2b`](https://github.com/mastra-ai/mastra/commit/7620d2bddeb4fae4c3c0a0b4e672969795fca11a), [`b2365f0`](https://github.com/mastra-ai/mastra/commit/b2365f038dd4c5f06400428b224af963f399ad50), [`0f1a4c9`](https://github.com/mastra-ai/mastra/commit/0f1a4c984fb4b104b2f0b63ba18c9fa77f567700), [`9029ba3`](https://github.com/mastra-ai/mastra/commit/9029ba34459c8859fed4c6b73efd8e2d0021e7ba), [`426cc56`](https://github.com/mastra-ai/mastra/commit/426cc561c85ae76a112ded2385532a91f9f9f074), [`00931fb`](https://github.com/mastra-ai/mastra/commit/00931fb1a21aa42c4fbc20c2c40dd62466b8fc8f), [`e473bfe`](https://github.com/mastra-ai/mastra/commit/e473bfe416c0b8e876973c2b6a6f13c394b7a93f), [`b78e04d`](https://github.com/mastra-ai/mastra/commit/b78e04d935a16ecb1e59c5c96e564903527edddd), [`2db6160`](https://github.com/mastra-ai/mastra/commit/2db6160e2022ff8827c15d30157e684683b934b5), [`8aeea37`](https://github.com/mastra-ai/mastra/commit/8aeea37efdde347c635a67fed56794943b7f74ec), [`02fe153`](https://github.com/mastra-ai/mastra/commit/02fe15351d6021d214da48ec982a0e9e4150bcee), [`648e2ca`](https://github.com/mastra-ai/mastra/commit/648e2ca42da54838c6ccbdaadc6fadd808fa6b86), [`74567b3`](https://github.com/mastra-ai/mastra/commit/74567b3d237ae3915cd0bca3cf55fa0a64e4e4a4), [`b65c5e0`](https://github.com/mastra-ai/mastra/commit/b65c5e0fe6f3c390a9a8bbcf69304d972c3a4afb), [`15a1733`](https://github.com/mastra-ai/mastra/commit/15a1733074cee8bd37370e1af34cd818e89fa7ac), [`fc2a774`](https://github.com/mastra-ai/mastra/commit/fc2a77468981aaddc3e77f83f0c4ad4a4af140da), [`4e08933`](https://github.com/mastra-ai/mastra/commit/4e08933625464dfde178347af5b6278fcf34188e)]:
62
- - @mastra/core@0.22.0
89
+ **Message ordering default**
63
90
 
64
- ## 0.22.0-alpha.1
91
+ `listMessages()` defaults to ASC (oldest first) ordering by `createdAt`, matching the previous `getMessages()` behavior.
65
92
 
66
- ### Minor Changes
93
+ **To use DESC ordering (newest first):**
67
94
 
68
- - Consolidate streamVNext logic into stream, move old stream function into streamLegacy ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
95
+ ```typescript
96
+ const result = await storage.listMessages({
97
+ threadId: 'thread-1',
98
+ orderBy: { field: 'createdAt', direction: 'DESC' },
99
+ });
100
+ ```
69
101
 
70
- - Update peer dependencies to match core package version bump (0.21.2) ([#9038](https://github.com/mastra-ai/mastra/pull/9038))
102
+ **Renamed `client.getThreadMessages()` → `client.listThreadMessages()`**
71
103
 
72
- - Update peer dependencies to match core package version bump (0.22.0) ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
104
+ **Migration:**
73
105
 
74
- - Update peer dependencies to match core package version bump (0.21.2) ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
106
+ ```typescript
107
+ // Before
108
+ const response = await client.getThreadMessages(threadId, { agentId });
75
109
 
76
- ### Patch Changes
110
+ // After
111
+ const response = await client.listThreadMessages(threadId, { agentId });
112
+ ```
77
113
 
78
- - Updated `watch` and `watchAsync` methods to use proper function overloads instead of generic conditional types, ensuring compatibility with the base Run class signatures. ([#9048](https://github.com/mastra-ai/mastra/pull/9048))
114
+ The response format remains the same.
79
115
 
80
- - Fix custom metadata preservation in UIMessages when loading threads. The `getMessagesHandler` now converts `messagesV2` (V2 format with metadata) instead of `messages` (V1 format without metadata) to AIV5.UI format. Also updates the abstract `MastraMemory.query()` return type to include `messagesV2` for proper type safety. ([#9029](https://github.com/mastra-ai/mastra/pull/9029))
116
+ **Removed `StorageGetMessagesArg` type**
81
117
 
82
- - Fix provider tools for popular providers and add support for anthropic/claude skills. ([#9038](https://github.com/mastra-ai/mastra/pull/9038))
118
+ Use `StorageListMessagesInput` instead:
83
119
 
84
- - Show agent tool output better in playground ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
120
+ ```typescript
121
+ // Before
122
+ import type { StorageGetMessagesArg } from '@mastra/core';
85
123
 
86
- - Update peerdeps to 0.23.0-0 ([#9043](https://github.com/mastra-ai/mastra/pull/9043))
124
+ // After
125
+ import type { StorageListMessagesInput } from '@mastra/core';
126
+ ```
87
127
 
88
- - Updated dependencies [[`efb5ed9`](https://github.com/mastra-ai/mastra/commit/efb5ed946ae7f410bc68c9430beb4b010afd25ec), [`8ea07b4`](https://github.com/mastra-ai/mastra/commit/8ea07b4bdc73e4218437dbb6dcb0f4b23e745a44), [`ba201b8`](https://github.com/mastra-ai/mastra/commit/ba201b8f8feac4c72350f2dbd52c13c7297ba7b0), [`4fc4136`](https://github.com/mastra-ai/mastra/commit/4fc413652866a8d2240694fddb2562e9edbb70df), [`b78e04d`](https://github.com/mastra-ai/mastra/commit/b78e04d935a16ecb1e59c5c96e564903527edddd), [`d10baf5`](https://github.com/mastra-ai/mastra/commit/d10baf5a3c924f2a6654e23a3e318ed03f189b76), [`038c55a`](https://github.com/mastra-ai/mastra/commit/038c55a7090fc1b1513a966386d3072617f836ac), [`182f045`](https://github.com/mastra-ai/mastra/commit/182f0458f25bd70aa774e64fd923c8a483eddbf1), [`7620d2b`](https://github.com/mastra-ai/mastra/commit/7620d2bddeb4fae4c3c0a0b4e672969795fca11a), [`b2365f0`](https://github.com/mastra-ai/mastra/commit/b2365f038dd4c5f06400428b224af963f399ad50), [`9029ba3`](https://github.com/mastra-ai/mastra/commit/9029ba34459c8859fed4c6b73efd8e2d0021e7ba), [`426cc56`](https://github.com/mastra-ai/mastra/commit/426cc561c85ae76a112ded2385532a91f9f9f074), [`00931fb`](https://github.com/mastra-ai/mastra/commit/00931fb1a21aa42c4fbc20c2c40dd62466b8fc8f), [`e473bfe`](https://github.com/mastra-ai/mastra/commit/e473bfe416c0b8e876973c2b6a6f13c394b7a93f), [`b78e04d`](https://github.com/mastra-ai/mastra/commit/b78e04d935a16ecb1e59c5c96e564903527edddd), [`648e2ca`](https://github.com/mastra-ai/mastra/commit/648e2ca42da54838c6ccbdaadc6fadd808fa6b86), [`b65c5e0`](https://github.com/mastra-ai/mastra/commit/b65c5e0fe6f3c390a9a8bbcf69304d972c3a4afb)]:
89
- - @mastra/core@0.22.0-alpha.1
128
+ - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
90
129
 
91
- ## 0.21.2-alpha.0
130
+ - Replace `getThreadsByResourceIdPaginated` with `listThreadsByResourceId` across memory handlers. Update client SDK to use `listThreads()` with `offset`/`limit` parameters instead of deprecated `getMemoryThreads()`. Consolidate `/api/memory/threads` routes to single paginated endpoint. ([#9508](https://github.com/mastra-ai/mastra/pull/9508))
92
131
 
93
- ### Patch Changes
132
+ - This simplifies the Memory API by removing the confusing rememberMessages method and renaming query to recall for better clarity. ([#9701](https://github.com/mastra-ai/mastra/pull/9701))
94
133
 
95
- - Generate a title for Agent.network() threads ([#8853](https://github.com/mastra-ai/mastra/pull/8853))
134
+ The rememberMessages method name implied it might persist data when it was actually just retrieving messages, same as query. Having two methods that did essentially the same thing was unnecessary.
96
135
 
97
- - Updated dependencies [[`c67ca32`](https://github.com/mastra-ai/mastra/commit/c67ca32e3c2cf69bfc146580770c720220ca44ac), [`dbc9e12`](https://github.com/mastra-ai/mastra/commit/dbc9e1216ba575ba59ead4afb727a01215f7de4f), [`99e41b9`](https://github.com/mastra-ai/mastra/commit/99e41b94957cdd25137d3ac12e94e8b21aa01b68), [`c28833c`](https://github.com/mastra-ai/mastra/commit/c28833c5b6d8e10eeffd7f7d39129d53b8bca240), [`f053e89`](https://github.com/mastra-ai/mastra/commit/f053e89160dbd0bd3333fc3492f68231b5c7c349), [`9a1a485`](https://github.com/mastra-ai/mastra/commit/9a1a4859b855e37239f652bf14b1ecd1029b8c4e), [`9257233`](https://github.com/mastra-ai/mastra/commit/9257233c4ffce09b2bedc2a9adbd70d7a83fa8e2), [`0f1a4c9`](https://github.com/mastra-ai/mastra/commit/0f1a4c984fb4b104b2f0b63ba18c9fa77f567700), [`2db6160`](https://github.com/mastra-ai/mastra/commit/2db6160e2022ff8827c15d30157e684683b934b5), [`8aeea37`](https://github.com/mastra-ai/mastra/commit/8aeea37efdde347c635a67fed56794943b7f74ec), [`02fe153`](https://github.com/mastra-ai/mastra/commit/02fe15351d6021d214da48ec982a0e9e4150bcee), [`74567b3`](https://github.com/mastra-ai/mastra/commit/74567b3d237ae3915cd0bca3cf55fa0a64e4e4a4), [`15a1733`](https://github.com/mastra-ai/mastra/commit/15a1733074cee8bd37370e1af34cd818e89fa7ac), [`fc2a774`](https://github.com/mastra-ai/mastra/commit/fc2a77468981aaddc3e77f83f0c4ad4a4af140da), [`4e08933`](https://github.com/mastra-ai/mastra/commit/4e08933625464dfde178347af5b6278fcf34188e)]:
98
- - @mastra/core@0.21.2-alpha.0
136
+ Before:
99
137
 
100
- ## 0.21.1
138
+ ```typescript
139
+ // Two methods that did the same thing
140
+ memory.rememberMessages({ threadId, resourceId, config, vectorMessageSearch });
141
+ memory.query({ threadId, resourceId, perPage, vectorSearchString });
142
+ ```
101
143
 
102
- ### Patch Changes
144
+ After:
103
145
 
104
- - Updated dependencies [[`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
105
- - @mastra/core@0.21.1
146
+ ```typescript
147
+ // Single unified method with clear purpose
148
+ memory.recall({ threadId, resourceId, perPage, vectorMessageSearch, threadConfig });
149
+ ```
106
150
 
107
- ## 0.21.1-alpha.0
151
+ All usages have been updated across the codebase including tests. The agent now calls recall directly with the appropriate parameters.
108
152
 
109
- ### Patch Changes
153
+ - Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
110
154
 
111
- - Updated dependencies [[`ca85c93`](https://github.com/mastra-ai/mastra/commit/ca85c932b232e6ad820c811ec176d98e68c59b0a), [`a1d40f8`](https://github.com/mastra-ai/mastra/commit/a1d40f88d4ce42c4508774ad22e38ac582157af2), [`01c4a25`](https://github.com/mastra-ai/mastra/commit/01c4a2506c514d5e861c004d3d2fb3791c6391f3), [`cce8aad`](https://github.com/mastra-ai/mastra/commit/cce8aad878a0dd98e5647680f3765caba0b1701c)]:
112
- - @mastra/core@0.21.1-alpha.0
155
+ - Rename `defaultVNextStreamOptions` to `defaultOptions`. Add "Legacy" suffix to v1 option properties and methods (`defaultGenerateOptions` → `defaultGenerateOptionsLegacy`, `defaultStreamOptions` → `defaultStreamOptionsLegacy`). ([#9535](https://github.com/mastra-ai/mastra/pull/9535))
113
156
 
114
- ## 0.21.0
157
+ - **Breaking Change**: Convert OUTPUT generic from `OutputSchema` constraint to plain generic ([#11741](https://github.com/mastra-ai/mastra/pull/11741))
115
158
 
116
- ### Minor Changes
159
+ This change removes the direct dependency on Zod typings in the public API by converting all `OUTPUT extends OutputSchema` generic constraints to plain `OUTPUT` generics throughout the codebase. This is preparation for moving to a standard schema approach.
160
+ - All generic type parameters previously constrained to `OutputSchema` (e.g., `<OUTPUT extends OutputSchema = undefined>`) are now plain generics with defaults (e.g., `<OUTPUT = undefined>`)
161
+ - Affects all public APIs including `Agent`, `MastraModelOutput`, `AgentExecutionOptions`, and stream/generate methods
162
+ - `InferSchemaOutput<OUTPUT>` replaced with `OUTPUT` throughout
163
+ - `PartialSchemaOutput<OUTPUT>` replaced with `Partial<OUTPUT>`
164
+ - Schema fields now use `NonNullable<OutputSchema<OUTPUT>>` instead of `OUTPUT` directly
165
+ - Added `FullOutput<OUTPUT>` type representing complete output with all fields
166
+ - Added `AgentExecutionOptionsBase<OUTPUT>` type
167
+ - `getFullOutput()` method now returns `Promise<FullOutput<OUTPUT>>`
168
+ - `Agent` class now generic: `Agent<TAgentId, TTools, TOutput>`
169
+ - `agent.generate()` and `agent.stream()` methods have updated signatures
170
+ - `MastraModelOutput<OUTPUT>` no longer requires `OutputSchema` constraint
171
+ - Network route and streaming APIs updated to use plain OUTPUT generic
117
172
 
118
- - Update structuredOutput to use response format by default with an opt in to json prompt injection. ([#8557](https://github.com/mastra-ai/mastra/pull/8557))
119
- Replaced internal usage of output with structuredOutput.
173
+ **Before:**
120
174
 
121
- - Update peer dependencies to match core package version bump (0.21.0) ([#8557](https://github.com/mastra-ai/mastra/pull/8557))
175
+ ```typescript
176
+ const output = await agent.generate<z.ZodType>([...], {
177
+ structuredOutput: { schema: mySchema }
178
+ });
122
179
 
123
- ### Patch Changes
180
+ **After:**
181
+ const output = await agent.generate<z.infer<typeof mySchema>>([...], {
182
+ structuredOutput: { schema: mySchema }
183
+ });
184
+ // Or rely on type inference:
185
+ const output = await agent.generate([...], {
186
+ structuredOutput: { schema: mySchema }
187
+ });
124
188
 
125
- - Update peer dependencies to match core package version bump (0.21.0) ([#8619](https://github.com/mastra-ai/mastra/pull/8619))
189
+ ```
126
190
 
127
- - Include span id and trace id when running live scorers ([#8842](https://github.com/mastra-ai/mastra/pull/8842))
191
+ - Remove `getThreadsByResourceId` and `getThreadsByResourceIdPaginated` methods from storage interfaces in favor of `listThreadsByResourceId`. The new method uses `offset`/`limit` pagination and a nested `orderBy` object structure (`{ field, direction }`). ([#9536](https://github.com/mastra-ai/mastra/pull/9536))
128
192
 
129
- - Update peer dependencies to match core package version bump (0.21.0) ([#8626](https://github.com/mastra-ai/mastra/pull/8626))
193
+ - Renamed a bunch of observability/tracing-related things to drop the AI prefix. ([#9744](https://github.com/mastra-ai/mastra/pull/9744))
130
194
 
131
- - Update peer dependencies to match core package version bump (0.21.0) ([#8686](https://github.com/mastra-ai/mastra/pull/8686))
195
+ - **Breaking Change**: Remove legacy v1 watch events and consolidate on v2 implementation. ([#9252](https://github.com/mastra-ai/mastra/pull/9252))
132
196
 
133
- - Updated dependencies [[`1ed9670`](https://github.com/mastra-ai/mastra/commit/1ed9670d3ca50cb60dc2e517738c5eef3968ed27), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`f59fc1e`](https://github.com/mastra-ai/mastra/commit/f59fc1e406b8912e692f6bff6cfd4754cc8d165c), [`158381d`](https://github.com/mastra-ai/mastra/commit/158381d39335be934b81ef8a1947bccace492c25), [`a1799bc`](https://github.com/mastra-ai/mastra/commit/a1799bcc1b5a1cdc188f2ac0165f17a1c4ac6f7b), [`6ff6094`](https://github.com/mastra-ai/mastra/commit/6ff60946f4ecfebdeef6e21d2b230c2204f2c9b8), [`fb703b9`](https://github.com/mastra-ai/mastra/commit/fb703b9634eeaff1a6eb2b5531ce0f9e8fb04727), [`37a2314`](https://github.com/mastra-ai/mastra/commit/37a23148e0e5a3b40d4f9f098b194671a8a49faf), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`05a9dee`](https://github.com/mastra-ai/mastra/commit/05a9dee3d355694d28847bfffb6289657fcf7dfa), [`e3c1077`](https://github.com/mastra-ai/mastra/commit/e3c107763aedd1643d3def5df450c235da9ff76c), [`1908ca0`](https://github.com/mastra-ai/mastra/commit/1908ca0521f90e43779cc29ab590173ca560443c), [`1bccdb3`](https://github.com/mastra-ai/mastra/commit/1bccdb33eb90cbeba2dc5ece1c2561fb774b26b6), [`5ef944a`](https://github.com/mastra-ai/mastra/commit/5ef944a3721d93105675cac2b2311432ff8cc393), [`d6b186f`](https://github.com/mastra-ai/mastra/commit/d6b186fb08f1caf1b86f73d3a5ee88fb999ca3be), [`ee68e82`](https://github.com/mastra-ai/mastra/commit/ee68e8289ea4408d29849e899bc6e78b3bd4e843), [`228228b`](https://github.com/mastra-ai/mastra/commit/228228b0b1de9291cb8887587f5cea1a8757ebad), [`ea33930`](https://github.com/mastra-ai/mastra/commit/ea339301e82d6318257720d811b043014ee44064), [`65493b3`](https://github.com/mastra-ai/mastra/commit/65493b31c36f6fdb78f9679f7e1ecf0c250aa5ee), [`a998b8f`](https://github.com/mastra-ai/mastra/commit/a998b8f858091c2ec47683e60766cf12d03001e4), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`8a37bdd`](https://github.com/mastra-ai/mastra/commit/8a37bddb6d8614a32c5b70303d583d80c620ea61), [`135d6f2`](https://github.com/mastra-ai/mastra/commit/135d6f22a326ed1dffff858700669dff09d2c9eb)]:
134
- - @mastra/core@0.21.0
197
+ This change simplifies the workflow watching API by removing the legacy v1 event system and promoting v2 as the standard (renamed to just `watch`).
135
198
 
136
- ## 0.21.0-alpha.4
199
+ **What's Changed**
200
+ - Removed legacy v1 watch event handlers and types
201
+ - Renamed `watch-v2` to `watch` throughout the codebase
202
+ - Removed `.watch()` method from client-js SDK (`Workflow` and `AgentBuilder` classes)
203
+ - Removed `/watch` HTTP endpoints from server and deployer
204
+ - Removed `WorkflowWatchResult` and v1 `WatchEvent` types
137
205
 
138
- ### Patch Changes
206
+ - Pagination APIs now use `page`/`perPage` instead of `offset`/`limit` ([#9592](https://github.com/mastra-ai/mastra/pull/9592))
139
207
 
140
- - Include span id and trace id when running live scorers ([#8842](https://github.com/mastra-ai/mastra/pull/8842))
208
+ All storage and memory pagination APIs have been updated to use `page` (0-indexed) and `perPage` instead of `offset` and `limit`, aligning with standard REST API patterns.
141
209
 
142
- - Updated dependencies [[`1908ca0`](https://github.com/mastra-ai/mastra/commit/1908ca0521f90e43779cc29ab590173ca560443c)]:
143
- - @mastra/core@0.21.0-alpha.4
210
+ **Affected APIs:**
211
+ - `Memory.listThreadsByResourceId()`
212
+ - `Memory.listMessages()`
213
+ - `Storage.listWorkflowRuns()`
144
214
 
145
- ## 0.21.0-alpha.3
215
+ **Migration:**
146
216
 
147
- ### Patch Changes
217
+ ```typescript
218
+ // Before
219
+ await memory.listThreadsByResourceId({
220
+ resourceId: 'user-123',
221
+ offset: 20,
222
+ limit: 10,
223
+ });
148
224
 
149
- - Updated dependencies [[`a1799bc`](https://github.com/mastra-ai/mastra/commit/a1799bcc1b5a1cdc188f2ac0165f17a1c4ac6f7b), [`6ff6094`](https://github.com/mastra-ai/mastra/commit/6ff60946f4ecfebdeef6e21d2b230c2204f2c9b8)]:
150
- - @mastra/core@0.21.0-alpha.3
225
+ // After
226
+ await memory.listThreadsByResourceId({
227
+ resourceId: 'user-123',
228
+ page: 2, // page = Math.floor(offset / limit)
229
+ perPage: 10,
230
+ });
151
231
 
152
- ## 0.21.0-alpha.2
232
+ // Before
233
+ await memory.listMessages({
234
+ threadId: 'thread-456',
235
+ offset: 20,
236
+ limit: 10,
237
+ });
153
238
 
154
- ### Patch Changes
239
+ // After
240
+ await memory.listMessages({
241
+ threadId: 'thread-456',
242
+ page: 2,
243
+ perPage: 10,
244
+ });
155
245
 
156
- - Updated dependencies [[`f59fc1e`](https://github.com/mastra-ai/mastra/commit/f59fc1e406b8912e692f6bff6cfd4754cc8d165c)]:
157
- - @mastra/core@0.21.0-alpha.2
246
+ // Before
247
+ await storage.listWorkflowRuns({
248
+ workflowName: 'my-workflow',
249
+ offset: 20,
250
+ limit: 10,
251
+ });
158
252
 
159
- ## 0.21.0-alpha.1
253
+ // After
254
+ await storage.listWorkflowRuns({
255
+ workflowName: 'my-workflow',
256
+ page: 2,
257
+ perPage: 10,
258
+ });
259
+ ```
260
+
261
+ **Additional improvements:**
262
+ - Added validation for negative `page` values in all storage implementations
263
+ - Improved `perPage` validation to handle edge cases (negative values, `0`, `false`)
264
+ - Added reusable query parser utilities for consistent validation in handlers
160
265
 
161
- ### Patch Changes
266
+ - Changing getAgents -> listAgents, getTools -> listTools, getWorkflows -> listWorkflows ([#9495](https://github.com/mastra-ai/mastra/pull/9495))
162
267
 
163
- - Updated dependencies [[`1ed9670`](https://github.com/mastra-ai/mastra/commit/1ed9670d3ca50cb60dc2e517738c5eef3968ed27), [`158381d`](https://github.com/mastra-ai/mastra/commit/158381d39335be934b81ef8a1947bccace492c25), [`fb703b9`](https://github.com/mastra-ai/mastra/commit/fb703b9634eeaff1a6eb2b5531ce0f9e8fb04727), [`37a2314`](https://github.com/mastra-ai/mastra/commit/37a23148e0e5a3b40d4f9f098b194671a8a49faf), [`05a9dee`](https://github.com/mastra-ai/mastra/commit/05a9dee3d355694d28847bfffb6289657fcf7dfa), [`e3c1077`](https://github.com/mastra-ai/mastra/commit/e3c107763aedd1643d3def5df450c235da9ff76c), [`1bccdb3`](https://github.com/mastra-ai/mastra/commit/1bccdb33eb90cbeba2dc5ece1c2561fb774b26b6), [`5ef944a`](https://github.com/mastra-ai/mastra/commit/5ef944a3721d93105675cac2b2311432ff8cc393), [`d6b186f`](https://github.com/mastra-ai/mastra/commit/d6b186fb08f1caf1b86f73d3a5ee88fb999ca3be), [`65493b3`](https://github.com/mastra-ai/mastra/commit/65493b31c36f6fdb78f9679f7e1ecf0c250aa5ee), [`a998b8f`](https://github.com/mastra-ai/mastra/commit/a998b8f858091c2ec47683e60766cf12d03001e4), [`8a37bdd`](https://github.com/mastra-ai/mastra/commit/8a37bddb6d8614a32c5b70303d583d80c620ea61)]:
164
- - @mastra/core@0.21.0-alpha.1
268
+ - Removed old tracing code based on OpenTelemetry ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
165
269
 
166
- ## 0.21.0-alpha.0
270
+ - Remove deprecated vector prompts and cohere provider from code ([#9596](https://github.com/mastra-ai/mastra/pull/9596))
167
271
 
168
- ### Minor Changes
272
+ - Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
169
273
 
170
- - Update structuredOutput to use response format by default with an opt in to json prompt injection. ([#8557](https://github.com/mastra-ai/mastra/pull/8557))
171
- Replaced internal usage of output with structuredOutput.
274
+ - Enforcing id required on Processor primitive ([#9591](https://github.com/mastra-ai/mastra/pull/9591))
172
275
 
173
- - Update peer dependencies to match core package version bump (0.21.0) ([#8557](https://github.com/mastra-ai/mastra/pull/8557))
276
+ - Renamed `MastraMessageV2` to `MastraDBMessage` ([#9255](https://github.com/mastra-ai/mastra/pull/9255))
277
+ Made the return format of all methods that return db messages consistent. It's always `{ messages: MastraDBMessage[] }` now, and messages can be converted after that using `@mastra/ai-sdk/ui`'s `toAISdkV4/5Messages()` function
174
278
 
175
- ### Patch Changes
176
-
177
- - Update peer dependencies to match core package version bump (0.21.0) ([#8619](https://github.com/mastra-ai/mastra/pull/8619))
279
+ - moved ai-tracing code into @mastra/observability ([#9661](https://github.com/mastra-ai/mastra/pull/9661))
178
280
 
179
- - Update peer dependencies to match core package version bump (0.21.0) ([#8626](https://github.com/mastra-ai/mastra/pull/8626))
281
+ - Remove legacy evals from Mastra ([#9491](https://github.com/mastra-ai/mastra/pull/9491))
180
282
 
181
- - Update peer dependencies to match core package version bump (0.21.0) ([#8686](https://github.com/mastra-ai/mastra/pull/8686))
283
+ ### Minor Changes
182
284
 
183
- - Updated dependencies [[`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`ee68e82`](https://github.com/mastra-ai/mastra/commit/ee68e8289ea4408d29849e899bc6e78b3bd4e843), [`228228b`](https://github.com/mastra-ai/mastra/commit/228228b0b1de9291cb8887587f5cea1a8757ebad), [`ea33930`](https://github.com/mastra-ai/mastra/commit/ea339301e82d6318257720d811b043014ee44064), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`135d6f2`](https://github.com/mastra-ai/mastra/commit/135d6f22a326ed1dffff858700669dff09d2c9eb), [`59d036d`](https://github.com/mastra-ai/mastra/commit/59d036d4c2706b430b0e3f1f1e0ee853ce16ca04)]:
184
- - @mastra/core@0.21.0-alpha.0
285
+ - Add stored agents support ([#10953](https://github.com/mastra-ai/mastra/pull/10953))
185
286
 
186
- ## 0.20.2
287
+ Agents can now be stored in the database and loaded at runtime. This lets you persist agent configurations and dynamically create executable Agent instances from storage.
187
288
 
188
- ### Patch Changes
289
+ ```typescript
290
+ import { Mastra } from '@mastra/core';
291
+ import { LibSQLStore } from '@mastra/libsql';
292
+
293
+ const mastra = new Mastra({
294
+ storage: new LibSQLStore({ url: ':memory:' }),
295
+ tools: { myTool },
296
+ scorers: { myScorer },
297
+ });
189
298
 
190
- - Pass through input/output processors to the server agent endpoints ([#8546](https://github.com/mastra-ai/mastra/pull/8546))
299
+ // Create agent in storage via API or directly
300
+ await mastra.getStorage().createAgent({
301
+ agent: {
302
+ id: 'my-agent',
303
+ name: 'My Agent',
304
+ instructions: 'You are helpful',
305
+ model: { provider: 'openai', name: 'gpt-4' },
306
+ tools: { myTool: {} },
307
+ scorers: { myScorer: { sampling: { type: 'ratio', rate: 0.5 } } },
308
+ },
309
+ });
191
310
 
192
- - Updated dependencies [[`07eaf25`](https://github.com/mastra-ai/mastra/commit/07eaf25aada9e42235dbf905854de53da4d8121b), [`0d71771`](https://github.com/mastra-ai/mastra/commit/0d71771f5711164c79f8e80919bc84d6bffeb6bc), [`0d6e55e`](https://github.com/mastra-ai/mastra/commit/0d6e55ecc5a2e689cd4fc9c86525e0eb54d82372), [`68b1111`](https://github.com/mastra-ai/mastra/commit/68b11118a1303f93e9c0c157850c0751309304c5)]:
193
- - @mastra/core@0.20.2
311
+ // Load and use the agent
312
+ const agent = await mastra.getStoredAgentById('my-agent');
313
+ const response = await agent.generate('Hello!');
194
314
 
195
- ## 0.20.2-alpha.1
315
+ // List all stored agents with pagination
316
+ const { agents, total, hasMore } = await mastra.listStoredAgents({
317
+ page: 0,
318
+ perPage: 10,
319
+ });
320
+ ```
196
321
 
197
- ### Patch Changes
322
+ Also adds a memory registry to Mastra so stored agents can reference memory instances by key.
198
323
 
199
- - Pass through input/output processors to the server agent endpoints ([#8546](https://github.com/mastra-ai/mastra/pull/8546))
324
+ - Added human-in-the-loop (HITL) tool approval support for `generate()` method. ([#12056](https://github.com/mastra-ai/mastra/pull/12056))
200
325
 
201
- - Updated dependencies [[`07eaf25`](https://github.com/mastra-ai/mastra/commit/07eaf25aada9e42235dbf905854de53da4d8121b), [`68b1111`](https://github.com/mastra-ai/mastra/commit/68b11118a1303f93e9c0c157850c0751309304c5)]:
202
- - @mastra/core@0.20.2-alpha.1
326
+ **Why:** This provides parity between `stream()` and `generate()` for tool approval flows, allowing non-streaming use cases to leverage `requireToolApproval` without needing to switch to streaming.
203
327
 
204
- ## 0.20.2-alpha.0
328
+ Previously, tool approval with `requireToolApproval` only worked with `stream()`. Now you can use the same approval flow with `generate()` for non-streaming use cases.
205
329
 
206
- ### Patch Changes
330
+ **Using tool approval with generate()**
207
331
 
208
- - Updated dependencies [[`0d71771`](https://github.com/mastra-ai/mastra/commit/0d71771f5711164c79f8e80919bc84d6bffeb6bc), [`0d6e55e`](https://github.com/mastra-ai/mastra/commit/0d6e55ecc5a2e689cd4fc9c86525e0eb54d82372)]:
209
- - @mastra/core@0.20.2-alpha.0
332
+ ```typescript
333
+ const output = await agent.generate('Find user John', {
334
+ requireToolApproval: true,
335
+ });
210
336
 
211
- ## 0.20.1
337
+ // Check if a tool is waiting for approval
338
+ if (output.finishReason === 'suspended') {
339
+ console.log('Tool requires approval:', output.suspendPayload.toolName);
212
340
 
213
- ### Patch Changes
341
+ // Approve the tool call
342
+ const result = await agent.approveToolCallGenerate({
343
+ runId: output.runId,
344
+ toolCallId: output.suspendPayload.toolCallId,
345
+ });
214
346
 
215
- - Mutable shared workflow run state ([#8545](https://github.com/mastra-ai/mastra/pull/8545))
347
+ console.log(result.text);
348
+ }
349
+ ```
216
350
 
217
- - Fix TypeScript errors with provider-defined tools by updating ai-v5 and openai-v5 to matching provider-utils versions. This ensures npm deduplicates to a single provider-utils instance, resolving type incompatibility issues when passing provider tools to Agent. ([#8584](https://github.com/mastra-ai/mastra/pull/8584))
351
+ **Declining a tool call**
218
352
 
219
- Also adds deprecation warning to Agent import from root path to encourage using the recommended subpath import.
353
+ ```typescript
354
+ if (output.finishReason === 'suspended') {
355
+ const result = await agent.declineToolCallGenerate({
356
+ runId: output.runId,
357
+ toolCallId: output.suspendPayload.toolCallId,
358
+ });
359
+ }
360
+ ```
220
361
 
221
- - Updated dependencies [[`c621613`](https://github.com/mastra-ai/mastra/commit/c621613069173c69eb2c3ef19a5308894c6549f0), [`12b1189`](https://github.com/mastra-ai/mastra/commit/12b118942445e4de0dd916c593e33ec78dc3bc73), [`4783b30`](https://github.com/mastra-ai/mastra/commit/4783b3063efea887825514b783ba27f67912c26d), [`076b092`](https://github.com/mastra-ai/mastra/commit/076b0924902ff0f49d5712d2df24c4cca683713f), [`2aee9e7`](https://github.com/mastra-ai/mastra/commit/2aee9e7d188b8b256a4ddc203ccefb366b4867fa), [`c582906`](https://github.com/mastra-ai/mastra/commit/c5829065a346260f96c4beb8af131b94804ae3ad), [`fa2eb96`](https://github.com/mastra-ai/mastra/commit/fa2eb96af16c7d433891a73932764960d3235c1d), [`ee9108f`](https://github.com/mastra-ai/mastra/commit/ee9108fa29bb8368fc23df158c9f0645b2d7b65c), [`4783b30`](https://github.com/mastra-ai/mastra/commit/4783b3063efea887825514b783ba27f67912c26d), [`a739d0c`](https://github.com/mastra-ai/mastra/commit/a739d0c8b37cd89569e04a6ca0827083c6167e19), [`603e927`](https://github.com/mastra-ai/mastra/commit/603e9279db8bf8a46caf83881c6b7389ccffff7e), [`cd45982`](https://github.com/mastra-ai/mastra/commit/cd4598291cda128a88738734ae6cbef076ebdebd), [`874f74d`](https://github.com/mastra-ai/mastra/commit/874f74da4b1acf6517f18132d035612c3ecc394a), [`b728a45`](https://github.com/mastra-ai/mastra/commit/b728a45ab3dba59da0f5ee36b81fe246659f305d), [`0baf2ba`](https://github.com/mastra-ai/mastra/commit/0baf2bab8420277072ef1f95df5ea7b0a2f61fe7), [`10e633a`](https://github.com/mastra-ai/mastra/commit/10e633a07d333466d9734c97acfc3dbf757ad2d0), [`a6d69c5`](https://github.com/mastra-ai/mastra/commit/a6d69c5fb50c0875b46275811fece5862f03c6a0), [`84199af`](https://github.com/mastra-ai/mastra/commit/84199af8673f6f9cb59286ffb5477a41932775de), [`7f431af`](https://github.com/mastra-ai/mastra/commit/7f431afd586b7d3265075e73106eb73167edbb86), [`26e968d`](https://github.com/mastra-ai/mastra/commit/26e968db2171ded9e4d47aa1b4f19e1e771158d0), [`cbd3fb6`](https://github.com/mastra-ai/mastra/commit/cbd3fb65adb03a7c0df193cb998aed5ac56675ee)]:
222
- - @mastra/core@0.20.1
362
+ **New methods added:**
363
+ - `agent.approveToolCallGenerate({ runId, toolCallId })` - Approves a pending tool call and returns the complete result
364
+ - `agent.declineToolCallGenerate({ runId, toolCallId })` - Declines a pending tool call and returns the complete result
223
365
 
224
- ## 0.20.1-alpha.4
366
+ **Server routes added:**
367
+ - `POST /api/agents/:agentId/approve-tool-call-generate`
368
+ - `POST /api/agents/:agentId/decline-tool-call-generate`
225
369
 
226
- ### Patch Changes
370
+ The playground UI now also supports tool approval when using generate mode.
227
371
 
228
- - Updated dependencies [[`b728a45`](https://github.com/mastra-ai/mastra/commit/b728a45ab3dba59da0f5ee36b81fe246659f305d)]:
229
- - @mastra/core@0.20.1-alpha.4
372
+ - Update peer dependencies to match core package version bump (1.0.0) ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
230
373
 
231
- ## 0.20.1-alpha.3
374
+ - Memory scope defaults changed from 'thread' to 'resource' ([#8983](https://github.com/mastra-ai/mastra/pull/8983))
232
375
 
233
- ### Patch Changes
376
+ Both `workingMemory.scope` and `semanticRecall.scope` now default to `'resource'` instead of `'thread'`. This means:
377
+ - Working memory persists across all conversations for the same user/resource
378
+ - Semantic recall searches across all threads for the same user/resource
234
379
 
235
- - Fix TypeScript errors with provider-defined tools by updating ai-v5 and openai-v5 to matching provider-utils versions. This ensures npm deduplicates to a single provider-utils instance, resolving type incompatibility issues when passing provider tools to Agent. ([#8584](https://github.com/mastra-ai/mastra/pull/8584))
380
+ **Migration**: To maintain the previous thread-scoped behavior, explicitly set `scope: 'thread'`:
236
381
 
237
- Also adds deprecation warning to Agent import from root path to encourage using the recommended subpath import.
382
+ ```typescript
383
+ memory: new Memory({
384
+ storage,
385
+ workingMemory: {
386
+ enabled: true,
387
+ scope: 'thread', // Explicitly set for thread-scoped behavior
388
+ },
389
+ semanticRecall: {
390
+ scope: 'thread', // Explicitly set for thread-scoped behavior
391
+ },
392
+ }),
393
+ ```
238
394
 
239
- - Updated dependencies [[`a6d69c5`](https://github.com/mastra-ai/mastra/commit/a6d69c5fb50c0875b46275811fece5862f03c6a0), [`84199af`](https://github.com/mastra-ai/mastra/commit/84199af8673f6f9cb59286ffb5477a41932775de), [`7f431af`](https://github.com/mastra-ai/mastra/commit/7f431afd586b7d3265075e73106eb73167edbb86)]:
240
- - @mastra/core@0.20.1-alpha.3
395
+ Also fixed issues where playground semantic recall search could show missing or incorrect results in certain cases.
241
396
 
242
- ## 0.20.1-alpha.2
397
+ - Update peer dependencies to match core package version bump (1.0.0) ([#9495](https://github.com/mastra-ai/mastra/pull/9495))
243
398
 
244
- ### Patch Changes
399
+ - Update peer dependencies to match core package version bump (0.22.1) ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
245
400
 
246
- - Updated dependencies [[`ee9108f`](https://github.com/mastra-ai/mastra/commit/ee9108fa29bb8368fc23df158c9f0645b2d7b65c)]:
247
- - @mastra/core@0.20.1-alpha.2
401
+ - Add observeStream support for agent-builder template installation ([#9372](https://github.com/mastra-ai/mastra/pull/9372))
402
+ - Add observeStream, observeStreamVNext, observeStreamLegacy, and resumeStream methods to agent-builder client SDK
403
+ - Add corresponding server handlers and deployer routes for observe streaming
404
+ - Add tracingOptions parameter to existing agent-builder handlers for parity with workflows
405
+ - Update template installation processor to support both legacy and VNext streaming event formats
248
406
 
249
- ## 0.20.1-alpha.1
407
+ - Update peer dependencies to match core package version bump (0.22.0) ([#8983](https://github.com/mastra-ai/mastra/pull/8983))
250
408
 
251
- ### Patch Changes
409
+ - Unified observability schema with entity-based span identification ([#11132](https://github.com/mastra-ai/mastra/pull/11132))
252
410
 
253
- - Mutable shared workflow run state ([#8545](https://github.com/mastra-ai/mastra/pull/8545))
411
+ ## What changed
254
412
 
255
- - Updated dependencies [[`c621613`](https://github.com/mastra-ai/mastra/commit/c621613069173c69eb2c3ef19a5308894c6549f0), [`12b1189`](https://github.com/mastra-ai/mastra/commit/12b118942445e4de0dd916c593e33ec78dc3bc73), [`4783b30`](https://github.com/mastra-ai/mastra/commit/4783b3063efea887825514b783ba27f67912c26d), [`076b092`](https://github.com/mastra-ai/mastra/commit/076b0924902ff0f49d5712d2df24c4cca683713f), [`2aee9e7`](https://github.com/mastra-ai/mastra/commit/2aee9e7d188b8b256a4ddc203ccefb366b4867fa), [`c582906`](https://github.com/mastra-ai/mastra/commit/c5829065a346260f96c4beb8af131b94804ae3ad), [`fa2eb96`](https://github.com/mastra-ai/mastra/commit/fa2eb96af16c7d433891a73932764960d3235c1d), [`4783b30`](https://github.com/mastra-ai/mastra/commit/4783b3063efea887825514b783ba27f67912c26d), [`a739d0c`](https://github.com/mastra-ai/mastra/commit/a739d0c8b37cd89569e04a6ca0827083c6167e19), [`603e927`](https://github.com/mastra-ai/mastra/commit/603e9279db8bf8a46caf83881c6b7389ccffff7e), [`cd45982`](https://github.com/mastra-ai/mastra/commit/cd4598291cda128a88738734ae6cbef076ebdebd), [`874f74d`](https://github.com/mastra-ai/mastra/commit/874f74da4b1acf6517f18132d035612c3ecc394a), [`0baf2ba`](https://github.com/mastra-ai/mastra/commit/0baf2bab8420277072ef1f95df5ea7b0a2f61fe7), [`26e968d`](https://github.com/mastra-ai/mastra/commit/26e968db2171ded9e4d47aa1b4f19e1e771158d0), [`cbd3fb6`](https://github.com/mastra-ai/mastra/commit/cbd3fb65adb03a7c0df193cb998aed5ac56675ee)]:
256
- - @mastra/core@0.20.1-alpha.1
413
+ Spans now use a unified identification model with `entityId`, `entityType`, and `entityName` instead of separate `agentId`, `toolId`, `workflowId` fields.
257
414
 
258
- ## 0.20.1-alpha.0
415
+ **Before:**
259
416
 
260
- ### Patch Changes
417
+ ```typescript
418
+ // Old span structure
419
+ span.agentId; // 'my-agent'
420
+ span.toolId; // undefined
421
+ span.workflowId; // undefined
422
+ ```
261
423
 
262
- - Updated dependencies [[`10e633a`](https://github.com/mastra-ai/mastra/commit/10e633a07d333466d9734c97acfc3dbf757ad2d0)]:
263
- - @mastra/core@0.20.1-alpha.0
424
+ **After:**
264
425
 
265
- ## 0.20.0
426
+ ```typescript
427
+ // New span structure
428
+ span.entityType; // EntityType.AGENT
429
+ span.entityId; // 'my-agent'
430
+ span.entityName; // 'My Agent'
431
+ ```
266
432
 
267
- ### Minor Changes
433
+ ## New `listTraces()` API
268
434
 
269
- - Breaking change to move the agent.streamVNext/generateVNext implementation to the default stream/generate. The old stream/generate have now been moved to streamLegacy and generateLegacy ([#8097](https://github.com/mastra-ai/mastra/pull/8097))
435
+ Query traces with filtering, pagination, and sorting:
270
436
 
271
- ### Patch Changes
437
+ ```typescript
438
+ const { spans, pagination } = await storage.listTraces({
439
+ filters: {
440
+ entityType: EntityType.AGENT,
441
+ entityId: 'my-agent',
442
+ userId: 'user-123',
443
+ environment: 'production',
444
+ status: TraceStatus.SUCCESS,
445
+ startedAt: { start: new Date('2024-01-01'), end: new Date('2024-01-31') },
446
+ },
447
+ pagination: { page: 0, perPage: 50 },
448
+ orderBy: { field: 'startedAt', direction: 'DESC' },
449
+ });
450
+ ```
272
451
 
273
- - Add approve and decline tool calls to mastra server pkg ([#8360](https://github.com/mastra-ai/mastra/pull/8360))
452
+ **Available filters:** date ranges (`startedAt`, `endedAt`), entity (`entityType`, `entityId`, `entityName`), identity (`userId`, `organizationId`), correlation IDs (`runId`, `sessionId`, `threadId`), deployment (`environment`, `source`, `serviceName`), `tags`, `metadata`, and `status`.
274
453
 
275
- - Fix/8219 preserve resourceid on resume ([#8359](https://github.com/mastra-ai/mastra/pull/8359))
454
+ ## New retrieval methods
455
+ - `getSpan({ traceId, spanId })` - Get a single span
456
+ - `getRootSpan({ traceId })` - Get the root span of a trace
457
+ - `getTrace({ traceId })` - Get all spans for a trace
276
458
 
277
- - Add observe strean to get streans after workflow has been interrupted ([#8318](https://github.com/mastra-ai/mastra/pull/8318))
459
+ ## Backward compatibility
278
460
 
279
- - Updated dependencies [[`00cb6bd`](https://github.com/mastra-ai/mastra/commit/00cb6bdf78737c0fac14a5a0c7b532a11e38558a), [`869ba22`](https://github.com/mastra-ai/mastra/commit/869ba222e1d6b58fc1b65e7c9fd55ca4e01b8c2f), [`1b73665`](https://github.com/mastra-ai/mastra/commit/1b73665e8e23f5c09d49fcf3e7d709c75259259e), [`f7d7475`](https://github.com/mastra-ai/mastra/commit/f7d747507341aef60ed39e4b49318db1f86034a6), [`084b77b`](https://github.com/mastra-ai/mastra/commit/084b77b2955960e0190af8db3f77138aa83ed65c), [`a93ff84`](https://github.com/mastra-ai/mastra/commit/a93ff84b5e1af07ee236ac8873dac9b49aa5d501), [`bc5aacb`](https://github.com/mastra-ai/mastra/commit/bc5aacb646d468d325327e36117129f28cd13bf6), [`6b5af12`](https://github.com/mastra-ai/mastra/commit/6b5af12ce9e09066e0c32e821c203a6954498bea), [`bf60e4a`](https://github.com/mastra-ai/mastra/commit/bf60e4a89c515afd9570b7b79f33b95e7d07c397), [`d41aee5`](https://github.com/mastra-ai/mastra/commit/d41aee526d124e35f42720a08e64043229193679), [`e8fe13c`](https://github.com/mastra-ai/mastra/commit/e8fe13c4b4c255a42520127797ec394310f7c919), [`3ca833d`](https://github.com/mastra-ai/mastra/commit/3ca833dc994c38e3c9b4f9b4478a61cd8e07b32a), [`1edb8d1`](https://github.com/mastra-ai/mastra/commit/1edb8d1cfb963e72a12412990fb9170936c9904c), [`fbf6e32`](https://github.com/mastra-ai/mastra/commit/fbf6e324946332d0f5ed8930bf9d4d4479cefd7a), [`4753027`](https://github.com/mastra-ai/mastra/commit/4753027ee889288775c6958bdfeda03ff909af67)]:
280
- - @mastra/core@0.20.0
461
+ The legacy `getTraces()` method continues to work. When you pass `name: "agent run: my-agent"`, it automatically transforms to `entityId: "my-agent", entityType: AGENT`.
281
462
 
282
- ## 0.20.0-alpha.0
463
+ ## Migration
283
464
 
284
- ### Minor Changes
465
+ **Automatic:** SQL-based stores (PostgreSQL, LibSQL, MSSQL) automatically add new columns to existing `spans` tables on initialization. Existing data is preserved with new columns set to `NULL`.
285
466
 
286
- - Breaking change to move the agent.streamVNext/generateVNext implementation to the default stream/generate. The old stream/generate have now been moved to streamLegacy and generateLegacy ([#8097](https://github.com/mastra-ai/mastra/pull/8097))
467
+ **No action required:** Your existing code continues to work. Adopt the new fields and `listTraces()` API at your convenience.
287
468
 
288
- ### Patch Changes
469
+ - Added new `listThreads` method for flexible thread filtering across all storage adapters. ([#11832](https://github.com/mastra-ai/mastra/pull/11832))
289
470
 
290
- - Add approve and decline tool calls to mastra server pkg ([#8360](https://github.com/mastra-ai/mastra/pull/8360))
471
+ **New Features**
472
+ - Filter threads by `resourceId`, `metadata`, or both (with AND logic for metadata key-value pairs)
473
+ - All filter parameters are optional, allowing you to list all threads or filter as needed
474
+ - Full pagination and sorting support
291
475
 
292
- - Fix/8219 preserve resourceid on resume ([#8359](https://github.com/mastra-ai/mastra/pull/8359))
476
+ **Example Usage**
293
477
 
294
- - Add observe strean to get streans after workflow has been interrupted ([#8318](https://github.com/mastra-ai/mastra/pull/8318))
478
+ ```typescript
479
+ // List all threads
480
+ const allThreads = await memory.listThreads({});
295
481
 
296
- - Updated dependencies [[`00cb6bd`](https://github.com/mastra-ai/mastra/commit/00cb6bdf78737c0fac14a5a0c7b532a11e38558a), [`869ba22`](https://github.com/mastra-ai/mastra/commit/869ba222e1d6b58fc1b65e7c9fd55ca4e01b8c2f), [`1b73665`](https://github.com/mastra-ai/mastra/commit/1b73665e8e23f5c09d49fcf3e7d709c75259259e), [`f7d7475`](https://github.com/mastra-ai/mastra/commit/f7d747507341aef60ed39e4b49318db1f86034a6), [`084b77b`](https://github.com/mastra-ai/mastra/commit/084b77b2955960e0190af8db3f77138aa83ed65c), [`a93ff84`](https://github.com/mastra-ai/mastra/commit/a93ff84b5e1af07ee236ac8873dac9b49aa5d501), [`bc5aacb`](https://github.com/mastra-ai/mastra/commit/bc5aacb646d468d325327e36117129f28cd13bf6), [`6b5af12`](https://github.com/mastra-ai/mastra/commit/6b5af12ce9e09066e0c32e821c203a6954498bea), [`bf60e4a`](https://github.com/mastra-ai/mastra/commit/bf60e4a89c515afd9570b7b79f33b95e7d07c397), [`d41aee5`](https://github.com/mastra-ai/mastra/commit/d41aee526d124e35f42720a08e64043229193679), [`e8fe13c`](https://github.com/mastra-ai/mastra/commit/e8fe13c4b4c255a42520127797ec394310f7c919), [`3ca833d`](https://github.com/mastra-ai/mastra/commit/3ca833dc994c38e3c9b4f9b4478a61cd8e07b32a), [`1edb8d1`](https://github.com/mastra-ai/mastra/commit/1edb8d1cfb963e72a12412990fb9170936c9904c), [`fbf6e32`](https://github.com/mastra-ai/mastra/commit/fbf6e324946332d0f5ed8930bf9d4d4479cefd7a), [`4753027`](https://github.com/mastra-ai/mastra/commit/4753027ee889288775c6958bdfeda03ff909af67)]:
297
- - @mastra/core@0.20.0-alpha.0
482
+ // Filter by resourceId only
483
+ const userThreads = await memory.listThreads({
484
+ filter: { resourceId: 'user-123' },
485
+ });
298
486
 
299
- ## 0.19.1
487
+ // Filter by metadata only
488
+ const supportThreads = await memory.listThreads({
489
+ filter: { metadata: { category: 'support' } },
490
+ });
300
491
 
492
+ // Filter by both with pagination
493
+ const filteredThreads = await memory.listThreads({
494
+ filter: {
495
+ resourceId: 'user-123',
496
+ metadata: { priority: 'high', status: 'open' },
497
+ },
498
+ orderBy: { field: 'updatedAt', direction: 'DESC' },
499
+ page: 0,
500
+ perPage: 20,
301
501
 
302
- ... 3853 more lines hidden. See full changelog in package directory.
502
+ ... 6097 more lines hidden. See full changelog in package directory.