@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/deployer
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
9
- - @mastra/server@0.22.2
7
+ - Updated dependencies [[`4dc9a51`](https://github.com/mastra-ai/mastra/commit/4dc9a51be626fd9ed51da3ad7e78dedeaabade88)]:
8
+ - @mastra/server@1.0.4
9
+ - @mastra/core@1.0.4
10
10
 
11
- ## 0.22.2-alpha.0
11
+ ## 1.0.4-alpha.0
12
12
 
13
13
  ### Patch Changes
14
14
 
15
- - Updated dependencies [[`2b031e2`](https://github.com/mastra-ai/mastra/commit/2b031e25ca10cd3e4d63e6a27f909cba26d91405)]:
16
- - @mastra/core@0.22.2-alpha.0
17
- - @mastra/server@0.22.2-alpha.0
15
+ - Updated dependencies [[`4dc9a51`](https://github.com/mastra-ai/mastra/commit/4dc9a51be626fd9ed51da3ad7e78dedeaabade88)]:
16
+ - @mastra/server@1.0.4-alpha.0
17
+ - @mastra/core@1.0.4-alpha.0
18
18
 
19
- ## 0.22.1
19
+ ## 1.0.0
20
20
 
21
- ### Patch Changes
21
+ ### Major Changes
22
22
 
23
- - Get agent registered on a parent agent via API ([#9106](https://github.com/mastra-ai/mastra/pull/9106))
23
+ - Moving scorers under the eval domain, api method consistency, prebuilt evals, scorers require ids. ([#9589](https://github.com/mastra-ai/mastra/pull/9589))
24
24
 
25
- - Updated dependencies [[`69ff5d5`](https://github.com/mastra-ai/mastra/commit/69ff5d58e4bc4054ce76bbb25a8fa5d3177c49ea)]:
26
- - @mastra/server@0.22.1
27
- - @mastra/core@0.22.1
25
+ - 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))
28
26
 
29
- ## 0.22.1-alpha.0
27
+ Primitives that are added to other primitives are also automatically added to the Mastra instance
30
28
 
31
- ### Patch Changes
29
+ - 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))
32
30
 
33
- - Get agent registered on a parent agent via API ([#9106](https://github.com/mastra-ai/mastra/pull/9106))
31
+ - Remove `getMessagesPaginated()` and add `perPage: false` support ([#9670](https://github.com/mastra-ai/mastra/pull/9670))
34
32
 
35
- - Updated dependencies [[`69ff5d5`](https://github.com/mastra-ai/mastra/commit/69ff5d58e4bc4054ce76bbb25a8fa5d3177c49ea)]:
36
- - @mastra/server@0.22.1-alpha.0
37
- - @mastra/core@0.22.1-alpha.0
33
+ Removes deprecated `getMessagesPaginated()` method. The `listMessages()` API and score handlers now support `perPage: false` to fetch all records without pagination limits.
38
34
 
39
- ## 0.22.0
35
+ **Storage changes:**
36
+ - `StoragePagination.perPage` type changed from `number` to `number | false`
37
+ - All storage implementations support `perPage: false`:
38
+ - Memory: `listMessages()`
39
+ - Scores: `listScoresBySpan()`, `listScoresByRunId()`, `listScoresByExecutionId()`
40
+ - HTTP query parser accepts `"false"` string (e.g., `?perPage=false`)
40
41
 
41
- ### Minor Changes
42
+ **Memory changes:**
43
+ - `memory.query()` parameter type changed from `StorageGetMessagesArg` to `StorageListMessagesInput`
44
+ - Uses flat parameters (`page`, `perPage`, `include`, `filter`, `vectorSearchString`) instead of `selectBy` object
42
45
 
43
- - Consolidate streamVNext logic into stream, move old stream function into streamLegacy ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
46
+ **Stricter validation:**
47
+ - `listMessages()` requires non-empty, non-whitespace `threadId` (throws error instead of returning empty results)
44
48
 
45
- - Update peer dependencies to match core package version bump (0.22.0) ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
49
+ **Migration:**
46
50
 
47
- ### Patch Changes
51
+ ```typescript
52
+ // Storage/Memory: Replace getMessagesPaginated with listMessages
53
+ - storage.getMessagesPaginated({ threadId, selectBy: { pagination: { page: 0, perPage: 20 } } })
54
+ + storage.listMessages({ threadId, page: 0, perPage: 20 })
55
+ + storage.listMessages({ threadId, page: 0, perPage: false }) // Fetch all
48
56
 
49
- - use mastra logger in error handler ([#9037](https://github.com/mastra-ai/mastra/pull/9037))
57
+ // Memory: Replace selectBy with flat parameters
58
+ - memory.query({ threadId, selectBy: { last: 20, include: [...] } })
59
+ + memory.query({ threadId, perPage: 20, include: [...] })
50
60
 
51
- - Fix edge case bug around transitive dependencies in monorepos ([#8977](https://github.com/mastra-ai/mastra/pull/8977))
61
+ // Client SDK
62
+ - thread.getMessagesPaginated({ selectBy: { pagination: { page: 0 } } })
63
+ + thread.listMessages({ page: 0, perPage: 20 })
64
+ ```
52
65
 
53
- - Improve error related to finding possible binary dependencies ([#9056](https://github.com/mastra-ai/mastra/pull/9056))
66
+ - **Removed `storage.getMessages()`** ([#9695](https://github.com/mastra-ai/mastra/pull/9695))
54
67
 
55
- - Update peerdeps to 0.23.0-0 ([#9043](https://github.com/mastra-ai/mastra/pull/9043))
68
+ The `getMessages()` method has been removed from all storage implementations. Use `listMessages()` instead, which provides pagination support.
56
69
 
57
- - 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), [`e473bfe`](https://github.com/mastra-ai/mastra/commit/e473bfe416c0b8e876973c2b6a6f13c394b7a93f), [`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), [`4e08933`](https://github.com/mastra-ai/mastra/commit/4e08933625464dfde178347af5b6278fcf34188e), [`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), [`8ea07b4`](https://github.com/mastra-ai/mastra/commit/8ea07b4bdc73e4218437dbb6dcb0f4b23e745a44), [`b65c5e0`](https://github.com/mastra-ai/mastra/commit/b65c5e0fe6f3c390a9a8bbcf69304d972c3a4afb), [`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), [`10188d6`](https://github.com/mastra-ai/mastra/commit/10188d632a729010441f9c7e2a41eab60afccb23)]:
58
- - @mastra/core@0.22.0
59
- - @mastra/server@0.22.0
70
+ **Migration:**
60
71
 
61
- ## 0.22.0-alpha.1
72
+ ```typescript
73
+ // Before
74
+ const messages = await storage.getMessages({ threadId: 'thread-1' });
62
75
 
63
- ### Minor Changes
76
+ // After
77
+ const result = await storage.listMessages({
78
+ threadId: 'thread-1',
79
+ page: 0,
80
+ perPage: 50,
81
+ });
82
+ const messages = result.messages; // Access messages array
83
+ console.log(result.total); // Total count
84
+ console.log(result.hasMore); // Whether more pages exist
85
+ ```
64
86
 
65
- - Consolidate streamVNext logic into stream, move old stream function into streamLegacy ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
87
+ **Message ordering default**
66
88
 
67
- - Update peer dependencies to match core package version bump (0.22.0) ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
89
+ `listMessages()` defaults to ASC (oldest first) ordering by `createdAt`, matching the previous `getMessages()` behavior.
68
90
 
69
- ### Patch Changes
91
+ **To use DESC ordering (newest first):**
70
92
 
71
- - use mastra logger in error handler ([#9037](https://github.com/mastra-ai/mastra/pull/9037))
93
+ ```typescript
94
+ const result = await storage.listMessages({
95
+ threadId: 'thread-1',
96
+ orderBy: { field: 'createdAt', direction: 'DESC' },
97
+ });
98
+ ```
72
99
 
73
- - Improve error related to finding possible binary dependencies ([#9056](https://github.com/mastra-ai/mastra/pull/9056))
100
+ **Renamed `client.getThreadMessages()` → `client.listThreadMessages()`**
74
101
 
75
- - Update peerdeps to 0.23.0-0 ([#9043](https://github.com/mastra-ai/mastra/pull/9043))
102
+ **Migration:**
76
103
 
77
- - 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), [`e473bfe`](https://github.com/mastra-ai/mastra/commit/e473bfe416c0b8e876973c2b6a6f13c394b7a93f), [`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), [`8ea07b4`](https://github.com/mastra-ai/mastra/commit/8ea07b4bdc73e4218437dbb6dcb0f4b23e745a44), [`b65c5e0`](https://github.com/mastra-ai/mastra/commit/b65c5e0fe6f3c390a9a8bbcf69304d972c3a4afb), [`648e2ca`](https://github.com/mastra-ai/mastra/commit/648e2ca42da54838c6ccbdaadc6fadd808fa6b86), [`b65c5e0`](https://github.com/mastra-ai/mastra/commit/b65c5e0fe6f3c390a9a8bbcf69304d972c3a4afb), [`10188d6`](https://github.com/mastra-ai/mastra/commit/10188d632a729010441f9c7e2a41eab60afccb23)]:
78
- - @mastra/core@0.22.0-alpha.1
79
- - @mastra/server@0.22.0-alpha.1
104
+ ```typescript
105
+ // Before
106
+ const response = await client.getThreadMessages(threadId, { agentId });
80
107
 
81
- ## 0.21.2-alpha.0
108
+ // After
109
+ const response = await client.listThreadMessages(threadId, { agentId });
110
+ ```
82
111
 
83
- ### Patch Changes
112
+ The response format remains the same.
84
113
 
85
- - Fix edge case bug around transitive dependencies in monorepos ([#8977](https://github.com/mastra-ai/mastra/pull/8977))
114
+ **Removed `StorageGetMessagesArg` type**
86
115
 
87
- - 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), [`4e08933`](https://github.com/mastra-ai/mastra/commit/4e08933625464dfde178347af5b6278fcf34188e), [`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)]:
88
- - @mastra/core@0.21.2-alpha.0
89
- - @mastra/server@0.21.2-alpha.0
116
+ Use `StorageListMessagesInput` instead:
90
117
 
91
- ## 0.21.1
118
+ ```typescript
119
+ // Before
120
+ import type { StorageGetMessagesArg } from '@mastra/core';
92
121
 
93
- ### Patch Changes
122
+ // After
123
+ import type { StorageListMessagesInput } from '@mastra/core';
124
+ ```
94
125
 
95
- - Add undici to global external list ([#8877](https://github.com/mastra-ai/mastra/pull/8877))
126
+ - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
96
127
 
97
- - Small fix for adding ESM shims when e.g. `__dirname` is used ([#8898](https://github.com/mastra-ai/mastra/pull/8898))
128
+ - 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))
98
129
 
99
- - Pin `@rollup/*` dependencies to fixed versions (instead of using `^`) to: ([#8900](https://github.com/mastra-ai/mastra/pull/8900))
100
- - Hotfix a bug inside `@rollup/plugin-commonjs`
101
- - Have more control over the versions in the future to not have breakages over night
130
+ - Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
102
131
 
103
- - 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)]:
104
- - @mastra/core@0.21.1
105
- - @mastra/server@0.21.1
132
+ - 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))
106
133
 
107
- ## 0.21.1-alpha.0
134
+ - Experimental auth -> auth ([#9660](https://github.com/mastra-ai/mastra/pull/9660))
108
135
 
109
- ### Patch Changes
136
+ - Serve the Mastra Studio from `studio` folder (previously `playground`). ([#11751](https://github.com/mastra-ai/mastra/pull/11751))
137
+
138
+ The function signature for `createNodeServer()` changed, `playground` was renamed to `studio`:
139
+
140
+ ```ts
141
+ await createNodeServer(mastra, { studio: true, swaggerUI: false, tools: {} });
142
+ ```
143
+
144
+ - Renamed a bunch of observability/tracing-related things to drop the AI prefix. ([#9744](https://github.com/mastra-ai/mastra/pull/9744))
145
+
146
+ - **Breaking Change**: Remove legacy v1 watch events and consolidate on v2 implementation. ([#9252](https://github.com/mastra-ai/mastra/pull/9252))
147
+
148
+ This change simplifies the workflow watching API by removing the legacy v1 event system and promoting v2 as the standard (renamed to just `watch`).
149
+
150
+ **What's Changed**
151
+ - Removed legacy v1 watch event handlers and types
152
+ - Renamed `watch-v2` to `watch` throughout the codebase
153
+ - Removed `.watch()` method from client-js SDK (`Workflow` and `AgentBuilder` classes)
154
+ - Removed `/watch` HTTP endpoints from server and deployer
155
+ - Removed `WorkflowWatchResult` and v1 `WatchEvent` types
156
+
157
+ - Pagination APIs now use `page`/`perPage` instead of `offset`/`limit` ([#9592](https://github.com/mastra-ai/mastra/pull/9592))
110
158
 
111
- - Add undici to global external list ([#8877](https://github.com/mastra-ai/mastra/pull/8877))
159
+ 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.
112
160
 
113
- - Small fix for adding ESM shims when e.g. `__dirname` is used ([#8898](https://github.com/mastra-ai/mastra/pull/8898))
161
+ **Affected APIs:**
162
+ - `Memory.listThreadsByResourceId()`
163
+ - `Memory.listMessages()`
164
+ - `Storage.listWorkflowRuns()`
114
165
 
115
- - Pin `@rollup/*` dependencies to fixed versions (instead of using `^`) to: ([#8900](https://github.com/mastra-ai/mastra/pull/8900))
116
- - Hotfix a bug inside `@rollup/plugin-commonjs`
117
- - Have more control over the versions in the future to not have breakages over night
166
+ **Migration:**
118
167
 
119
- - 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)]:
120
- - @mastra/core@0.21.1-alpha.0
121
- - @mastra/server@0.21.1-alpha.0
168
+ ```typescript
169
+ // Before
170
+ await memory.listThreadsByResourceId({
171
+ resourceId: 'user-123',
172
+ offset: 20,
173
+ limit: 10,
174
+ });
122
175
 
123
- ## 0.21.0
176
+ // After
177
+ await memory.listThreadsByResourceId({
178
+ resourceId: 'user-123',
179
+ page: 2, // page = Math.floor(offset / limit)
180
+ perPage: 10,
181
+ });
182
+
183
+ // Before
184
+ await memory.listMessages({
185
+ threadId: 'thread-456',
186
+ offset: 20,
187
+ limit: 10,
188
+ });
189
+
190
+ // After
191
+ await memory.listMessages({
192
+ threadId: 'thread-456',
193
+ page: 2,
194
+ perPage: 10,
195
+ });
196
+
197
+ // Before
198
+ await storage.listWorkflowRuns({
199
+ workflowName: 'my-workflow',
200
+ offset: 20,
201
+ limit: 10,
202
+ });
203
+
204
+ // After
205
+ await storage.listWorkflowRuns({
206
+ workflowName: 'my-workflow',
207
+ page: 2,
208
+ perPage: 10,
209
+ });
210
+ ```
211
+
212
+ **Additional improvements:**
213
+ - Added validation for negative `page` values in all storage implementations
214
+ - Improved `perPage` validation to handle edge cases (negative values, `0`, `false`)
215
+ - Added reusable query parser utilities for consistent validation in handlers
216
+
217
+ - ```ts ([#9709](https://github.com/mastra-ai/mastra/pull/9709))
218
+ import { Mastra } from '@mastra/core';
219
+ import { Observability } from '@mastra/observability'; // Explicit import
220
+
221
+ const mastra = new Mastra({
222
+ ...other_config,
223
+ observability: new Observability({
224
+ default: { enabled: true },
225
+ }), // Instance
226
+ });
227
+ ```
228
+
229
+ Instead of:
230
+
231
+ ```ts
232
+ import { Mastra } from '@mastra/core';
233
+ import '@mastra/observability/init'; // Explicit import
234
+
235
+ const mastra = new Mastra({
236
+ ...other_config,
237
+ observability: {
238
+ default: { enabled: true },
239
+ },
240
+ });
241
+ ```
242
+
243
+ Also renamed a bunch of:
244
+ - `Tracing` things to `Observability` things.
245
+ - `AI-` things to just things.
246
+
247
+ - Changing getAgents -> listAgents, getTools -> listTools, getWorkflows -> listWorkflows ([#9495](https://github.com/mastra-ai/mastra/pull/9495))
248
+
249
+ - Removed old tracing code based on OpenTelemetry ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
250
+
251
+ - Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
252
+
253
+ - moved ai-tracing code into @mastra/observability ([#9661](https://github.com/mastra-ai/mastra/pull/9661))
254
+
255
+ - Remove legacy evals from Mastra ([#9491](https://github.com/mastra-ai/mastra/pull/9491))
124
256
 
125
257
  ### Minor Changes
126
258
 
127
- - Update peer dependencies to match core package version bump (0.21.0) ([#8686](https://github.com/mastra-ai/mastra/pull/8686))
259
+ - Add `onError` hook to server configuration for custom error handling. ([#11403](https://github.com/mastra-ai/mastra/pull/11403))
128
260
 
129
- - support model router in structured output and client-js ([#8686](https://github.com/mastra-ai/mastra/pull/8686))
261
+ You can now provide a custom error handler through the Mastra server config to catch errors, format responses, or send them to external services like Sentry:
130
262
 
131
- ### Patch Changes
263
+ ```typescript
264
+ import { Mastra } from '@mastra/core/mastra';
265
+
266
+ const mastra = new Mastra({
267
+ server: {
268
+ onError: (err, c) => {
269
+ // Send to Sentry
270
+ Sentry.captureException(err);
132
271
 
133
- - dependencies updates: ([#8599](https://github.com/mastra-ai/mastra/pull/8599))
134
- - Updated dependency [`@rollup/plugin-node-resolve@^16.0.2` ↗︎](https://www.npmjs.com/package/@rollup/plugin-node-resolve/v/16.0.2) (from `^16.0.1`, in `dependencies`)
272
+ // Return custom formatted response
273
+ return c.json(
274
+ {
275
+ error: err.message,
276
+ timestamp: new Date().toISOString(),
277
+ },
278
+ 500,
279
+ );
280
+ },
281
+ },
282
+ });
283
+ ```
135
284
 
136
- - Improve monorepo handling for `mastra build` & `mastra start` ([#8653](https://github.com/mastra-ai/mastra/pull/8653))
285
+ If no `onError` is provided, the default error handler is used.
137
286
 
138
- - Add typescript to global externals to reduce bundling OOM ([#8789](https://github.com/mastra-ai/mastra/pull/8789))
287
+ Fixes #9610
139
288
 
140
- - Update peer dependencies to match core package version bump (0.21.0) ([#8619](https://github.com/mastra-ai/mastra/pull/8619))
289
+ - Update peer dependencies to match core package version bump (1.0.0) ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
141
290
 
142
- - Improve error handling formatting in dev/build bundling. ([#8792](https://github.com/mastra-ai/mastra/pull/8792))
291
+ - Update peer dependencies to match core package version bump (0.22.1) ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
143
292
 
144
- - Update peer dependencies to match core package version bump (0.21.0) ([#8557](https://github.com/mastra-ai/mastra/pull/8557))
293
+ - Add observeStream support for agent-builder template installation ([#9372](https://github.com/mastra-ai/mastra/pull/9372))
294
+ - Add observeStream, observeStreamVNext, observeStreamLegacy, and resumeStream methods to agent-builder client SDK
295
+ - Add corresponding server handlers and deployer routes for observe streaming
296
+ - Add tracingOptions parameter to existing agent-builder handlers for parity with workflows
297
+ - Update template installation processor to support both legacy and VNext streaming event formats
145
298
 
146
- - Update peer dependencies to match core package version bump (0.21.0) ([#8626](https://github.com/mastra-ai/mastra/pull/8626))
299
+ - Set `externals: true` as the default for `mastra build` and cloud-deployer to reduce bundle issues with native dependencies. ([`0dbf199`](https://github.com/mastra-ai/mastra/commit/0dbf199110f22192ce5c95b1c8148d4872b4d119))
147
300
 
148
- - Remove validation step in bundling process ([#8778](https://github.com/mastra-ai/mastra/pull/8778))
149
- - Fixes transpilation of ts files with binary dependencies
150
- - Add logging to add packages to externals
151
- - 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), [`2ddb851`](https://github.com/mastra-ai/mastra/commit/2ddb8519c4b6f1d31be10ffd33b41d2b649a04ff), [`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), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`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), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`135d6f2`](https://github.com/mastra-ai/mastra/commit/135d6f22a326ed1dffff858700669dff09d2c9eb), [`228228b`](https://github.com/mastra-ai/mastra/commit/228228b0b1de9291cb8887587f5cea1a8757ebad)]:
152
- - @mastra/core@0.21.0
153
- - @mastra/server@0.21.0
301
+ **Note:** If you previously relied on the default bundling behavior (all dependencies bundled), you can explicitly set `externals: false` in your bundler configuration.
154
302
 
155
- ## 0.21.0-alpha.4
303
+ - Added /health endpoint for service monitoring ([#9142](https://github.com/mastra-ai/mastra/pull/9142))
304
+
305
+ - Update peer dependencies to match core package version bump (0.22.3) ([#9144](https://github.com/mastra-ai/mastra/pull/9144))
156
306
 
157
307
  ### Patch Changes
158
308
 
159
- - Updated dependencies [[`1908ca0`](https://github.com/mastra-ai/mastra/commit/1908ca0521f90e43779cc29ab590173ca560443c)]:
160
- - @mastra/server@0.21.0-alpha.4
161
- - @mastra/core@0.21.0-alpha.4
309
+ - dependencies updates: ([#10131](https://github.com/mastra-ai/mastra/pull/10131))
310
+ - Updated dependency [`hono@^4.10.5` ↗︎](https://www.npmjs.com/package/hono/v/4.10.5) (from `^4.9.7`, in `dependencies`)
162
311
 
163
- ## 0.21.0-alpha.3
312
+ - dependencies updates: ([#11642](https://github.com/mastra-ai/mastra/pull/11642))
313
+ - Updated dependency [`fs-extra@^11.3.3` ↗︎](https://www.npmjs.com/package/fs-extra/v/11.3.3) (from `^11.3.2`, in `dependencies`)
164
314
 
165
- ### Patch Changes
315
+ - dependencies updates: ([`77ff370`](https://github.com/mastra-ai/mastra/commit/77ff370186ba77955620c465fd2e95360e1947ea))
316
+ - Updated dependency [`@babel/core@^7.28.5` ↗︎](https://www.npmjs.com/package/@babel/core/v/7.28.5) (from `^7.28.4`, in `dependencies`)
166
317
 
167
- - Updated dependencies [[`a1799bc`](https://github.com/mastra-ai/mastra/commit/a1799bcc1b5a1cdc188f2ac0165f17a1c4ac6f7b), [`6ff6094`](https://github.com/mastra-ai/mastra/commit/6ff60946f4ecfebdeef6e21d2b230c2204f2c9b8)]:
168
- - @mastra/core@0.21.0-alpha.3
169
- - @mastra/server@0.21.0-alpha.3
318
+ - dependencies updates: ([#9779](https://github.com/mastra-ai/mastra/pull/9779))
319
+ - Updated dependency [`@rollup/plugin-alias@6.0.0` ↗︎](https://www.npmjs.com/package/@rollup/plugin-alias/v/6.0.0) (from `5.1.1`, in `dependencies`)
320
+ - Updated dependency [`@rollup/plugin-commonjs@29.0.6` ↗︎](https://www.npmjs.com/package/@rollup/plugin-commonjs/v/29.0.6) (from `29.0.0`, in `dependencies`)
170
321
 
171
- ## 0.21.0-alpha.2
322
+ - dependencies updates: ([#9780](https://github.com/mastra-ai/mastra/pull/9780))
323
+ - Updated dependency [`@rollup/plugin-commonjs@29.0.0` ↗︎](https://www.npmjs.com/package/@rollup/plugin-commonjs/v/29.0.0) (from `28.0.6`, in `dependencies`)
172
324
 
173
- ### Patch Changes
325
+ - dependencies updates: ([#9851](https://github.com/mastra-ai/mastra/pull/9851))
326
+ - Updated dependency [`@rollup/plugin-node-resolve@16.0.3` ↗︎](https://www.npmjs.com/package/@rollup/plugin-node-resolve/v/16.0.3) (from `16.0.2`, in `dependencies`)
174
327
 
175
- - Updated dependencies [[`f59fc1e`](https://github.com/mastra-ai/mastra/commit/f59fc1e406b8912e692f6bff6cfd4754cc8d165c)]:
176
- - @mastra/core@0.21.0-alpha.2
177
- - @mastra/server@0.21.0-alpha.2
328
+ - Add support for configuring a cloud API endpoint via `MASTRA_CLOUD_API_ENDPOINT` environment variable. This value is now injected into the playground frontend as `window.MASTRA_CLOUD_API_ENDPOINT`. ([#11887](https://github.com/mastra-ai/mastra/pull/11887))
178
329
 
179
- ## 0.21.0-alpha.1
330
+ - Add embedded documentation support for Mastra packages ([#11472](https://github.com/mastra-ai/mastra/pull/11472))
180
331
 
181
- ### Patch Changes
332
+ Mastra packages now include embedded documentation in the published npm package under `dist/docs/`. This enables coding agents and AI assistants to understand and use the framework by reading documentation directly from `node_modules`.
182
333
 
183
- - Add typescript to global externals to reduce bundling OOM ([#8789](https://github.com/mastra-ai/mastra/pull/8789))
334
+ Each package includes:
335
+ - **SKILL.md** - Entry point explaining the package's purpose and capabilities
336
+ - **SOURCE_MAP.json** - Machine-readable index mapping exports to types and implementation files
337
+ - **Topic folders** - Conceptual documentation organized by feature area
184
338
 
185
- - Improve error handling formatting in dev/build bundling. ([#8792](https://github.com/mastra-ai/mastra/pull/8792))
339
+ Documentation is driven by the `packages` frontmatter field in MDX files, which maps docs to their corresponding packages. CI validation ensures all docs include this field.
186
340
 
187
- - Remove validation step in bundling process ([#8778](https://github.com/mastra-ai/mastra/pull/8778))
188
- - Fixes transpilation of ts files with binary dependencies
189
- - Add logging to add packages to externals
190
- - 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)]:
191
- - @mastra/core@0.21.0-alpha.1
192
- - @mastra/server@0.21.0-alpha.1
341
+ - Add --studio flag to bundle playground UI with mastra build ([#11327](https://github.com/mastra-ai/mastra/pull/11327))
193
342
 
194
- ## 0.21.0-alpha.0
343
+ Enables bundling the studio/playground UI into the build output so it can be served from the deployed server.
195
344
 
196
- ### Minor Changes
345
+ ```bash
346
+ mastra build --studio
347
+ ```
197
348
 
198
- - Update peer dependencies to match core package version bump (0.21.0) ([#8686](https://github.com/mastra-ai/mastra/pull/8686))
349
+ - Make step optional in all resume APIs ([#9454](https://github.com/mastra-ai/mastra/pull/9454))
199
350
 
200
- - support model router in structured output and client-js ([#8686](https://github.com/mastra-ai/mastra/pull/8686))
351
+ - Fixed module resolution failing on Windows with `ERR_INVALID_URL_SCHEME` errors. Windows absolute paths (e.g., `C:\path\to\file`) are now correctly skipped during node_modules resolution instead of being treated as package names. ([#11639](https://github.com/mastra-ai/mastra/pull/11639))
201
352
 
202
- ### Patch Changes
353
+ - Improve analyze recursion in bundler when using monorepos ([#9490](https://github.com/mastra-ai/mastra/pull/9490))
203
354
 
204
- - dependencies updates: ([#8599](https://github.com/mastra-ai/mastra/pull/8599))
205
- - Updated dependency [`@rollup/plugin-node-resolve@^16.0.2` ↗︎](https://www.npmjs.com/package/@rollup/plugin-node-resolve/v/16.0.2) (from `^16.0.1`, in `dependencies`)
355
+ - Remove cast as any from MastraServer in deployer ([#10796](https://github.com/mastra-ai/mastra/pull/10796))
206
356
 
207
- - Improve monorepo handling for `mastra build` & `mastra start` ([#8653](https://github.com/mastra-ai/mastra/pull/8653))
357
+ - Extract routing from @deployer/server into server adapter packages. ([#10263](https://github.com/mastra-ai/mastra/pull/10263))
358
+ New packages:
359
+ - @mastra/express
360
+ - @mastra/hono
208
361
 
209
- - Update peer dependencies to match core package version bump (0.21.0) ([#8619](https://github.com/mastra-ai/mastra/pull/8619))
362
+ These packages support mastra server routes on express and hono respectively.
363
+ Better abstractions will be built on top of these packages in the near future, enabling users to easily attach mastra routes to any existing server framework.
210
364
 
211
- - Update peer dependencies to match core package version bump (0.21.0) ([#8557](https://github.com/mastra-ai/mastra/pull/8557))
365
+ - Improve nested ts-config paths resolution for NX users ([#6243](https://github.com/mastra-ai/mastra/pull/6243))
212
366
 
213
- - Update peer dependencies to match core package version bump (0.21.0) ([#8626](https://github.com/mastra-ai/mastra/pull/8626))
367
+ - Rename "Playground" to "Studio" ([#10443](https://github.com/mastra-ai/mastra/pull/10443))
214
368
 
215
- - Updated dependencies [[`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`2ddb851`](https://github.com/mastra-ai/mastra/commit/2ddb8519c4b6f1d31be10ffd33b41d2b649a04ff), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`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), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`135d6f2`](https://github.com/mastra-ai/mastra/commit/135d6f22a326ed1dffff858700669dff09d2c9eb), [`59d036d`](https://github.com/mastra-ai/mastra/commit/59d036d4c2706b430b0e3f1f1e0ee853ce16ca04), [`228228b`](https://github.com/mastra-ai/mastra/commit/228228b0b1de9291cb8887587f5cea1a8757ebad)]:
216
- - @mastra/core@0.21.0-alpha.0
217
- - @mastra/server@0.21.0-alpha.0
369
+ - Add exportConditions options to nodeResolve plugin to ensure proper handling of Node.js export condition resolution during production builds. ([#9394](https://github.com/mastra-ai/mastra/pull/9394))
218
370
 
219
- ## 0.20.2
371
+ - Fix dev playground auth to allow non-protected paths to bypass authentication when `MASTRA_DEV=true`, while still requiring the `x-mastra-dev-playground` header for protected endpoints ([#10722](https://github.com/mastra-ai/mastra/pull/10722))
220
372
 
221
- ### Patch Changes
373
+ - Fixed a bug where ESM shims were incorrectly injected even when the user had already declared `__filename` or `__dirname` ([#10809](https://github.com/mastra-ai/mastra/pull/10809))
222
374
 
223
- - 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)]:
224
- - @mastra/server@0.20.2
225
- - @mastra/core@0.20.2
375
+ - Fixes `mastra build` failing with `BABEL_TRANSFORM_ERROR` when using spread operator in Mastra config. The Babel plugins now correctly skip `SpreadElement` nodes when searching for config properties. ([#11309](https://github.com/mastra-ai/mastra/pull/11309))
226
376
 
227
- ## 0.20.2-alpha.1
377
+ Also fixes npm package aliases (like `"ai-v5": "npm:ai@5.0.93"`) not being resolved correctly when writing the output package.json - now uses the actual package name from the resolved package.json instead of the alias.
228
378
 
229
- ### Patch Changes
379
+ - Fixed Docker build failure with Bun due to invalid `file://` URLs ([#10960](https://github.com/mastra-ai/mastra/pull/10960))
230
380
 
231
- - Updated dependencies [[`07eaf25`](https://github.com/mastra-ai/mastra/commit/07eaf25aada9e42235dbf905854de53da4d8121b), [`68b1111`](https://github.com/mastra-ai/mastra/commit/68b11118a1303f93e9c0c157850c0751309304c5)]:
232
- - @mastra/server@0.20.2-alpha.1
233
- - @mastra/core@0.20.2-alpha.1
381
+ - Fix npm resolving wrong @mastra/server version ([#11467](https://github.com/mastra-ai/mastra/pull/11467))
234
382
 
235
- ## 0.20.2-alpha.0
383
+ Changed `@mastra/server` dependency from `workspace:^` to `workspace:*` to prevent npm from resolving to incompatible stable versions (e.g., 1.0.3) instead of the required beta versions.
236
384
 
237
- ### Patch Changes
385
+ - Fix path alias resolution for extended tsconfig files. Reference issue: #11770 ([#11788](https://github.com/mastra-ai/mastra/pull/11788))
238
386
 
239
- - Updated dependencies [[`0d71771`](https://github.com/mastra-ai/mastra/commit/0d71771f5711164c79f8e80919bc84d6bffeb6bc), [`0d6e55e`](https://github.com/mastra-ai/mastra/commit/0d6e55ecc5a2e689cd4fc9c86525e0eb54d82372)]:
240
- - @mastra/core@0.20.2-alpha.0
241
- - @mastra/server@0.20.2-alpha.0
387
+ - Fixed bundling issues for packages without an `exports` field in their package.json. ([#11310](https://github.com/mastra-ai/mastra/pull/11310))
242
388
 
243
- ## 0.20.1
389
+ Previously, the deployer could produce incorrect import paths for older npm packages that don't use the modern exports map (like lodash). This caused runtime errors when deploying to production environments.
244
390
 
245
- ### Patch Changes
391
+ The fix ensures these packages now resolve correctly, while packages with proper exports maps continue to work as expected.
246
392
 
247
- - fix: custom API routes now properly respect authentication requirements ([#8469](https://github.com/mastra-ai/mastra/pull/8469))
393
+ - The `hasPaths()` function now uses `strip-json-comments` to properly parse tsconfig.json files that contain comments. Previously, `JSON.parse()` would fail silently on JSONC comments, causing path aliases like `@src/*` to be incorrectly treated as npm scoped packages. ([#10952](https://github.com/mastra-ai/mastra/pull/10952))
248
394
 
249
- Fixed a critical bug where custom routes were bypassing authentication when they should have been protected by default. The issue was in the `isProtectedPath` function which only checked pattern-based protection but ignored custom route configurations.
250
- - Custom routes are now protected by default or when specified with `requiresAuth: true`
251
- - Custom routes properly inherit protection from parent patterns (like `/api/*`)
252
- - Routes with explicit `requiresAuth: false` continue to work as public endpoints
253
- - Enhanced `isProtectedPath` to consider both pattern matching and custom route auth config
395
+ - Remove extra console log statements in node-modules-extension-resolver ([#11470](https://github.com/mastra-ai/mastra/pull/11470))
254
396
 
255
- This fixes issue #8421 where custom routes were not being properly protected by the authentication system.
397
+ - Add tool call approval ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
256
398
 
257
- - Correctly handle errors in streams. Errors (e.g. rate limiting) before the stream begins are now returned with their code. Mid-stream errors are passed as a chunk (with `type: 'error'`) to the stream. ([#8567](https://github.com/mastra-ai/mastra/pull/8567))
399
+ - Fix error handling and serialization in agent streaming to ensure errors are consistently exposed and preserved. ([#9144](https://github.com/mastra-ai/mastra/pull/9144))
258
400
 
259
- - Mutable shared workflow run state ([#8545](https://github.com/mastra-ai/mastra/pull/8545))
401
+ - **Breaking Changes** ([#11028](https://github.com/mastra-ai/mastra/pull/11028))
402
+ - Renamed `RuntimeContext` type to `ServerContext` to avoid confusion with the user-facing `RequestContext` (previously called `RuntimeContext`)
403
+ - Removed `playground` and `isDev` options from server adapter constructors - these only set context variables without any actual functionality
260
404
 
261
- - Fix bug when lodash dependencies where used in subdependencies ([#8537](https://github.com/mastra-ai/mastra/pull/8537))
405
+ **Changes**
262
406
 
263
- - 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)]:
264
- - @mastra/core@0.20.1
265
- - @mastra/server@0.20.1
407
+ **@mastra/server**
408
+ - Renamed `RuntimeContext` type to `ServerContext` in route handler types
409
+ - Renamed `createTestRuntimeContext` to `createTestServerContext` in test utilities
410
+ - Renamed `isPlayground` parameter to `isStudio` in `formatAgent` function
266
411
 
267
- ## 0.20.1-alpha.4
412
+ **@mastra/hono**
413
+ - Removed `playground` and `isDev` from `HonoVariables` type
414
+ - Removed setting of `playground` and `isDev` context variables in middleware
268
415
 
269
- ### Patch Changes
416
+ **@mastra/express**
417
+ - Removed `playground` and `isDev` from `Express.Locals` interface
418
+ - Removed setting of `playground` and `isDev` in response locals
270
419
 
271
- - Updated dependencies [[`b728a45`](https://github.com/mastra-ai/mastra/commit/b728a45ab3dba59da0f5ee36b81fe246659f305d)]:
272
- - @mastra/core@0.20.1-alpha.4
273
- - @mastra/server@0.20.1-alpha.4
420
+ - Fixes issue where clicking the reset button in the model picker would fail to restore the original LanguageModelV2 (or any other types) object that was passed during agent construction. ([#9481](https://github.com/mastra-ai/mastra/pull/9481))
274
421
 
275
- ## 0.20.1-alpha.3
422
+ - Add Bun runtime detection for bundler platform selection ([#11548](https://github.com/mastra-ai/mastra/pull/11548))
276
423
 
277
- ### Patch Changes
424
+ When running under Bun, the bundler now uses `neutral` esbuild platform instead of `node` to preserve Bun-specific globals (like `Bun.s3`). This fixes compatibility issues where Bun APIs were being incorrectly transformed during the build process.
278
425
 
279
- - 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)]:
280
- - @mastra/core@0.20.1-alpha.3
281
- - @mastra/server@0.20.1-alpha.3
426
+ - Unified MastraServer API with MCP transport routes ([#10644](https://github.com/mastra-ai/mastra/pull/10644))
282
427
 
283
- ## 0.20.1-alpha.2
428
+ **Breaking Changes:**
429
+ - Renamed `HonoServerAdapter` to `MastraServer` in `@mastra/hono`
430
+ - Renamed `ExpressServerAdapter` to `MastraServer` in `@mastra/express`
431
+ - Configuration now passed to constructor instead of separate method calls
432
+ - Renamed base class from `ServerAdapter` to `MastraServerBase` in `@mastra/server`
284
433
 
285
- ### Patch Changes
434
+ **New Features:**
435
+ - Added MCP transport routes (HTTP and SSE) to server adapters
436
+ - MCP endpoints available at `/api/mcp/:serverId/mcp` (HTTP) and `/api/mcp/:serverId/sse` (SSE)
437
+ - Added `express.json()` middleware compatibility for MCP routes
438
+ - Moved authentication helpers from deployer to `@mastra/server/auth`
286
439
 
287
- - Correctly handle errors in streams. Errors (e.g. rate limiting) before the stream begins are now returned with their code. Mid-stream errors are passed as a chunk (with `type: 'error'`) to the stream. ([#8567](https://github.com/mastra-ai/mastra/pull/8567))
440
+ **Testing:**
441
+ - Added shared MCP route and transport test suites in `@internal/server-adapter-test-utils`
442
+ - Added comprehensive MCP endpoint tests for both Hono and Express adapters
443
+ - Added GitHub Actions workflow for server adapter CI testing
288
444
 
289
- - Updated dependencies [[`ee9108f`](https://github.com/mastra-ai/mastra/commit/ee9108fa29bb8368fc23df158c9f0645b2d7b65c)]:
290
- - @mastra/core@0.20.1-alpha.2
291
- - @mastra/server@0.20.1-alpha.2
445
+ - Make sure external deps are built with side-effects. Fixes an issue with reflect-metadata #7328 ([#9714](https://github.com/mastra-ai/mastra/pull/9714))
292
446
 
293
- ## 0.20.1-alpha.1
447
+ - Remove deprecated playground-only prompt generation handler (functionality moved to @mastra/server) ([#11074](https://github.com/mastra-ai/mastra/pull/11074))
294
448
 
295
- ### Patch Changes
449
+ Improve prompt enhancement UX: show toast errors when enhancement fails, disable button when no model has a configured API key, and prevent users from disabling all models in the model list
450
+
451
+ Add missing `/api/agents/:agentId/instructions/enhance` endpoint that was referenced by `@mastra/client-js` and `@mastra/playground-ui`
452
+
453
+ - Fixed module not found errors during production builds by skipping transitive dependency validation. Production builds now only bundle direct dependencies, which also results in faster deployment times. ([#10587](https://github.com/mastra-ai/mastra/pull/10587))
454
+
455
+ - Add simple virtual check for tsconfigpaths plugin, misbehaves on CI ([#10832](https://github.com/mastra-ai/mastra/pull/10832))
456
+
457
+ - Simplify mastra intro doc template ([#9794](https://github.com/mastra-ai/mastra/pull/9794))
458
+
459
+ - Allow direct access to server app handle directly from Mastra instance. ([#10598](https://github.com/mastra-ai/mastra/pull/10598))
460
+
461
+ ```ts
462
+ // Before: HTTP request to localhost
463
+ const response = await fetch(`http://localhost:5000/api/tools`);
464
+
465
+ // After: Direct call via app.fetch()
466
+ const app = mastra.getServerApp<Hono>();
467
+ const response = await app.fetch(new Request('http://internal/api/tools'));
468
+ ```
469
+
470
+ - Added `mastra.getServerApp<T>()` to access the underlying Hono/Express app
471
+ - Added `mastra.getMastraServer()` and `mastra.setMastraServer()` for adapter access
472
+ - Added `MastraServerBase` class in `@mastra/core/server` for adapter implementations
473
+ - Server adapters now auto-register with Mastra in their constructor
474
+
475
+ - Fixed a bug where imports that were not used in the main entry point were tree-shaken during analysis, causing bundling errors. Tree-shaking now only runs during the bundling step. ([#10470](https://github.com/mastra-ai/mastra/pull/10470))
476
+
477
+ - Add back `/api` route during `mastra dev` which was accidentally removed. ([#12055](https://github.com/mastra-ai/mastra/pull/12055))
478
+
479
+ - Use a shared `getAllToolPaths()` method from the bundler to discover tool paths. ([#9204](https://github.com/mastra-ai/mastra/pull/9204))
480
+
481
+ - Remove unused /model-providers API ([#9533](https://github.com/mastra-ai/mastra/pull/9533))
482
+
483
+ - Internal changes to enable a custom base path for Mastra Studio ([#10441](https://github.com/mastra-ai/mastra/pull/10441))
484
+
485
+ - Fix undefined runtimeContext using memory from playground ([#9328](https://github.com/mastra-ai/mastra/pull/9328))
486
+
487
+ - Add restart method to workflow run that allows restarting an active workflow run ([#9750](https://github.com/mastra-ai/mastra/pull/9750))
488
+ Add status filter to `listWorkflowRuns`
489
+ Add automatic restart to restart active workflow runs when server starts
490
+
491
+ - Allow for `bundler.externals: true` to be set. ([#10218](https://github.com/mastra-ai/mastra/pull/10218))
492
+
493
+ With this configuration during `mastra build` all dependencies (except workspace dependencies) will be treated as "external" and not bundled. Instead they will be added to the `.mastra/output/package.json` file.
494
+
495
+ - Improved file persistence in dev mode. Files created by `mastra dev` are now saved in the public directory, so you can commit them to version control or ignore them via `.gitignore`. ([#11234](https://github.com/mastra-ai/mastra/pull/11234))
496
+
497
+ - Make step optional in resumeStreamVNext API ([#9453](https://github.com/mastra-ai/mastra/pull/9453))
296
498
 
297
- - fix: custom API routes now properly respect authentication requirements ([#8469](https://github.com/mastra-ai/mastra/pull/8469))
499
+ - Add readable-streams to global externals, not compatible with CJS compilation ([#9735](https://github.com/mastra-ai/mastra/pull/9735))
298
500
 
299
- Fixed a critical bug where custom routes were bypassing authentication when they should have been protected by default. The issue was in the `isProtectedPath` function which only checked pattern-based protection but ignored custom route configurations.
300
- - Custom routes are now protected by default or when specified with `requiresAuth: true`
301
501
 
302
- ... 4833 more lines hidden. See full changelog in package directory.
502
+ ... 5922 more lines hidden. See full changelog in package directory.