@mastra/server 0.0.0-dynamic-model-router-20251010193247 → 0.0.0-elated-armadillo-be37a1-20251219210627

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 (380) hide show
  1. package/CHANGELOG.md +1542 -3
  2. package/README.md +2 -2
  3. package/dist/chunk-3BXS37TQ.js +1105 -0
  4. package/dist/chunk-3BXS37TQ.js.map +1 -0
  5. package/dist/chunk-3OAAPDGI.js +27529 -0
  6. package/dist/chunk-3OAAPDGI.js.map +1 -0
  7. package/dist/chunk-3SFLFUKY.js +116 -0
  8. package/dist/chunk-3SFLFUKY.js.map +1 -0
  9. package/dist/{chunk-VY4ENABS.cjs → chunk-3XI22UQR.cjs} +21 -8
  10. package/dist/chunk-3XI22UQR.cjs.map +1 -0
  11. package/dist/chunk-5W4RPVTK.cjs +49 -0
  12. package/dist/chunk-5W4RPVTK.cjs.map +1 -0
  13. package/dist/{chunk-7NADHFD2.cjs → chunk-64ITUOXI.cjs} +2 -2
  14. package/dist/chunk-64ITUOXI.cjs.map +1 -0
  15. package/dist/{chunk-MMROOK5J.js → chunk-6QWQZI4Q.js} +2 -2
  16. package/dist/{chunk-7NADHFD2.cjs.map → chunk-6QWQZI4Q.js.map} +1 -1
  17. package/dist/chunk-6V57U52D.js +196 -0
  18. package/dist/chunk-6V57U52D.js.map +1 -0
  19. package/dist/chunk-7KOS32XA.cjs +928 -0
  20. package/dist/chunk-7KOS32XA.cjs.map +1 -0
  21. package/dist/chunk-AZIH2QEC.js +83 -0
  22. package/dist/chunk-AZIH2QEC.js.map +1 -0
  23. package/dist/{chunk-LPM6BBAX.cjs → chunk-BMLUV4BH.cjs} +2 -53
  24. package/dist/chunk-BMLUV4BH.cjs.map +1 -0
  25. package/dist/chunk-BMYZ4DO6.cjs +269 -0
  26. package/dist/chunk-BMYZ4DO6.cjs.map +1 -0
  27. package/dist/chunk-BNGT3NIC.cjs +211 -0
  28. package/dist/chunk-BNGT3NIC.cjs.map +1 -0
  29. package/dist/chunk-C3UIIRAT.cjs +920 -0
  30. package/dist/chunk-C3UIIRAT.cjs.map +1 -0
  31. package/dist/chunk-DRUNNM4C.js +328 -0
  32. package/dist/chunk-DRUNNM4C.js.map +1 -0
  33. package/dist/{chunk-KQZPT7AO.js → chunk-DVSCJECS.js} +13 -17
  34. package/dist/chunk-DVSCJECS.js.map +1 -0
  35. package/dist/chunk-DW3WE4M4.js +250 -0
  36. package/dist/chunk-DW3WE4M4.js.map +1 -0
  37. package/dist/{chunk-RQK4FQUD.js → chunk-E646Y4FQ.js} +3 -45
  38. package/dist/chunk-E646Y4FQ.js.map +1 -0
  39. package/dist/chunk-EUBTCHQC.js +83 -0
  40. package/dist/chunk-EUBTCHQC.js.map +1 -0
  41. package/dist/chunk-FWSKVWS7.cjs +88 -0
  42. package/dist/chunk-FWSKVWS7.cjs.map +1 -0
  43. package/dist/chunk-FYY54HZC.js +310 -0
  44. package/dist/chunk-FYY54HZC.js.map +1 -0
  45. package/dist/chunk-GFF2I6UD.js +354 -0
  46. package/dist/chunk-GFF2I6UD.js.map +1 -0
  47. package/dist/chunk-H2RMXG2Q.cjs +167 -0
  48. package/dist/chunk-H2RMXG2Q.cjs.map +1 -0
  49. package/dist/chunk-HAJOEDNB.js +274 -0
  50. package/dist/chunk-HAJOEDNB.js.map +1 -0
  51. package/dist/chunk-HT4LP3BO.js +75 -0
  52. package/dist/chunk-HT4LP3BO.js.map +1 -0
  53. package/dist/chunk-I6LR6CPC.cjs +125 -0
  54. package/dist/chunk-I6LR6CPC.cjs.map +1 -0
  55. package/dist/chunk-IEYXQTUW.cjs +284 -0
  56. package/dist/chunk-IEYXQTUW.cjs.map +1 -0
  57. package/dist/{chunk-TOP25AIO.cjs → chunk-JUYWLFVT.cjs} +239 -35
  58. package/dist/chunk-JUYWLFVT.cjs.map +1 -0
  59. package/dist/{chunk-2PLXW4ZX.cjs → chunk-K73YS7YB.cjs} +74 -74
  60. package/dist/{chunk-2PLXW4ZX.cjs.map → chunk-K73YS7YB.cjs.map} +1 -1
  61. package/dist/chunk-KPSSRYGH.js +234 -0
  62. package/dist/chunk-KPSSRYGH.js.map +1 -0
  63. package/dist/{chunk-3LGGSMCC.cjs → chunk-LKTCAPBD.cjs} +17 -21
  64. package/dist/chunk-LKTCAPBD.cjs.map +1 -0
  65. package/dist/chunk-LQSZ4FJJ.cjs +205 -0
  66. package/dist/chunk-LQSZ4FJJ.cjs.map +1 -0
  67. package/dist/chunk-LXXDQQSW.cjs +27571 -0
  68. package/dist/chunk-LXXDQQSW.cjs.map +1 -0
  69. package/dist/chunk-MCYD5LW7.cjs +90 -0
  70. package/dist/chunk-MCYD5LW7.cjs.map +1 -0
  71. package/dist/chunk-MQLS6Z7A.js +891 -0
  72. package/dist/chunk-MQLS6Z7A.js.map +1 -0
  73. package/dist/chunk-P3H4AZKI.cjs +252 -0
  74. package/dist/chunk-P3H4AZKI.cjs.map +1 -0
  75. package/dist/chunk-P6S2HIVE.cjs +1149 -0
  76. package/dist/chunk-P6S2HIVE.cjs.map +1 -0
  77. package/dist/chunk-PUFCKXFW.cjs +312 -0
  78. package/dist/chunk-PUFCKXFW.cjs.map +1 -0
  79. package/dist/chunk-Q7NPRJRV.cjs +88 -0
  80. package/dist/chunk-Q7NPRJRV.cjs.map +1 -0
  81. package/dist/chunk-S3TIWWQL.cjs +322 -0
  82. package/dist/chunk-S3TIWWQL.cjs.map +1 -0
  83. package/dist/{chunk-HPXAM2PG.js → chunk-S5XBFHJL.js} +233 -35
  84. package/dist/chunk-S5XBFHJL.js.map +1 -0
  85. package/dist/chunk-SRQY5IWD.js +204 -0
  86. package/dist/chunk-SRQY5IWD.js.map +1 -0
  87. package/dist/{chunk-ZULZ2752.js → chunk-SV4AUWGY.js} +3 -3
  88. package/dist/{chunk-ZULZ2752.js.map → chunk-SV4AUWGY.js.map} +1 -1
  89. package/dist/chunk-SXVANU23.js +164 -0
  90. package/dist/chunk-SXVANU23.js.map +1 -0
  91. package/dist/chunk-TYZ6ZISQ.cjs +368 -0
  92. package/dist/chunk-TYZ6ZISQ.cjs.map +1 -0
  93. package/dist/chunk-UWRAKVAJ.js +903 -0
  94. package/dist/chunk-UWRAKVAJ.js.map +1 -0
  95. package/dist/{chunk-CY4TP3FK.js → chunk-UXGQZUYZ.js} +3 -3
  96. package/dist/{chunk-CY4TP3FK.js.map → chunk-UXGQZUYZ.js.map} +1 -1
  97. package/dist/{chunk-RE4RPXT2.cjs → chunk-V5WWQN7P.cjs} +4 -4
  98. package/dist/{chunk-RE4RPXT2.cjs.map → chunk-V5WWQN7P.cjs.map} +1 -1
  99. package/dist/{chunk-YWOK4F5A.js → chunk-WBLT2HL3.js} +21 -8
  100. package/dist/chunk-WBLT2HL3.js.map +1 -0
  101. package/dist/chunk-X43DWDXB.cjs +346 -0
  102. package/dist/chunk-X43DWDXB.cjs.map +1 -0
  103. package/dist/chunk-XW2HXQDO.js +302 -0
  104. package/dist/chunk-XW2HXQDO.js.map +1 -0
  105. package/dist/chunk-XWGAT2DA.js +44 -0
  106. package/dist/chunk-XWGAT2DA.js.map +1 -0
  107. package/dist/dist-2J26LQO2.cjs +16 -0
  108. package/dist/{dist-P4MXBQ3U.cjs.map → dist-2J26LQO2.cjs.map} +1 -1
  109. package/dist/{dist-X7XR3M3Z.js → dist-4CMHRWC4.js} +3 -3
  110. package/dist/{dist-X7XR3M3Z.js.map → dist-4CMHRWC4.js.map} +1 -1
  111. package/dist/{dist-PQZUVLPC.js → dist-AEJONJSS.js} +3 -3
  112. package/dist/{dist-PQZUVLPC.js.map → dist-AEJONJSS.js.map} +1 -1
  113. package/dist/{dist-G2BYZJOC.cjs → dist-AF7EUPXA.cjs} +28 -28
  114. package/dist/{dist-G2BYZJOC.cjs.map → dist-AF7EUPXA.cjs.map} +1 -1
  115. package/dist/dist-MEN73GGI.js +3 -0
  116. package/dist/{dist-YREX2TJT.js.map → dist-MEN73GGI.js.map} +1 -1
  117. package/dist/{dist-FZYCV3VB.cjs → dist-NVXXJWBO.cjs} +26 -26
  118. package/dist/{dist-FZYCV3VB.cjs.map → dist-NVXXJWBO.cjs.map} +1 -1
  119. package/dist/{dist-RFMYFILX.cjs → dist-Q2ST4SUQ.cjs} +30 -30
  120. package/dist/{dist-RFMYFILX.cjs.map → dist-Q2ST4SUQ.cjs.map} +1 -1
  121. package/dist/{dist-XVBSOGFK.js → dist-TE7XRSWH.js} +3 -3
  122. package/dist/{dist-XVBSOGFK.js.map → dist-TE7XRSWH.js.map} +1 -1
  123. package/dist/{dist-R7WYX6LC.js → dist-VPYZNWNG.js} +3 -3
  124. package/dist/{dist-R7WYX6LC.js.map → dist-VPYZNWNG.js.map} +1 -1
  125. package/dist/{dist-4MVGNSRL.cjs → dist-Y5SYUVLY.cjs} +20 -20
  126. package/dist/{dist-4MVGNSRL.cjs.map → dist-Y5SYUVLY.cjs.map} +1 -1
  127. package/dist/server/auth/defaults.d.ts +3 -0
  128. package/dist/server/auth/defaults.d.ts.map +1 -0
  129. package/dist/server/auth/helpers.d.ts +14 -0
  130. package/dist/server/auth/helpers.d.ts.map +1 -0
  131. package/dist/server/auth/index.cjs +137 -0
  132. package/dist/server/auth/index.cjs.map +1 -0
  133. package/dist/server/auth/index.d.ts +3 -0
  134. package/dist/server/auth/index.d.ts.map +1 -0
  135. package/dist/server/auth/index.js +127 -0
  136. package/dist/server/auth/index.js.map +1 -0
  137. package/dist/server/handlers/a2a.cjs +15 -7
  138. package/dist/server/handlers/a2a.d.ts +492 -10
  139. package/dist/server/handlers/a2a.d.ts.map +1 -1
  140. package/dist/server/handlers/a2a.js +1 -1
  141. package/dist/server/handlers/agent-builder.cjs +43 -31
  142. package/dist/server/handlers/agent-builder.d.ts +632 -84
  143. package/dist/server/handlers/agent-builder.d.ts.map +1 -1
  144. package/dist/server/handlers/agent-builder.js +1 -1
  145. package/dist/server/handlers/agents.cjs +57 -37
  146. package/dist/server/handlers/agents.d.ts +3305 -150
  147. package/dist/server/handlers/agents.d.ts.map +1 -1
  148. package/dist/server/handlers/agents.js +1 -1
  149. package/dist/server/handlers/error.cjs +2 -2
  150. package/dist/server/handlers/error.js +1 -1
  151. package/dist/server/handlers/logs.cjs +7 -7
  152. package/dist/server/handlers/logs.d.ts +135 -27
  153. package/dist/server/handlers/logs.d.ts.map +1 -1
  154. package/dist/server/handlers/logs.js +1 -1
  155. package/dist/server/handlers/mcp.cjs +40 -0
  156. package/dist/server/handlers/mcp.cjs.map +1 -0
  157. package/dist/server/handlers/mcp.d.ts +110 -0
  158. package/dist/server/handlers/mcp.d.ts.map +1 -0
  159. package/dist/server/handlers/mcp.js +3 -0
  160. package/dist/server/handlers/mcp.js.map +1 -0
  161. package/dist/server/handlers/memory.cjs +63 -31
  162. package/dist/server/handlers/memory.d.ts +934 -103
  163. package/dist/server/handlers/memory.d.ts.map +1 -1
  164. package/dist/server/handlers/memory.js +1 -1
  165. package/dist/server/handlers/observability.cjs +24 -8
  166. package/dist/server/handlers/observability.d.ts +128 -21
  167. package/dist/server/handlers/observability.d.ts.map +1 -1
  168. package/dist/server/handlers/observability.js +1 -1
  169. package/dist/server/handlers/scores.cjs +13 -13
  170. package/dist/server/handlers/scores.d.ts +110 -240
  171. package/dist/server/handlers/scores.d.ts.map +1 -1
  172. package/dist/server/handlers/scores.js +1 -1
  173. package/dist/server/handlers/stored-agents.cjs +28 -0
  174. package/dist/server/handlers/stored-agents.cjs.map +1 -0
  175. package/dist/server/handlers/stored-agents.d.ts +289 -0
  176. package/dist/server/handlers/stored-agents.d.ts.map +1 -0
  177. package/dist/server/handlers/stored-agents.js +3 -0
  178. package/dist/server/handlers/stored-agents.js.map +1 -0
  179. package/dist/server/handlers/test-utils.cjs +15 -0
  180. package/dist/server/handlers/test-utils.cjs.map +1 -0
  181. package/dist/server/handlers/test-utils.d.ts +6 -0
  182. package/dist/server/handlers/test-utils.d.ts.map +1 -0
  183. package/dist/server/handlers/test-utils.js +13 -0
  184. package/dist/server/handlers/test-utils.js.map +1 -0
  185. package/dist/server/handlers/tools.cjs +11 -11
  186. package/dist/server/handlers/tools.d.ts +69 -23
  187. package/dist/server/handlers/tools.d.ts.map +1 -1
  188. package/dist/server/handlers/tools.js +1 -1
  189. package/dist/server/handlers/utils.cjs +11 -3
  190. package/dist/server/handlers/utils.d.ts +5 -0
  191. package/dist/server/handlers/utils.d.ts.map +1 -1
  192. package/dist/server/handlers/utils.js +1 -1
  193. package/dist/server/handlers/vector.cjs +31 -7
  194. package/dist/server/handlers/vector.d.ts +93 -9
  195. package/dist/server/handlers/vector.d.ts.map +1 -1
  196. package/dist/server/handlers/vector.js +1 -1
  197. package/dist/server/handlers/voice.cjs +21 -9
  198. package/dist/server/handlers/voice.d.ts +81 -40
  199. package/dist/server/handlers/voice.d.ts.map +1 -1
  200. package/dist/server/handlers/voice.js +1 -1
  201. package/dist/server/handlers/workflows.cjs +69 -37
  202. package/dist/server/handlers/workflows.d.ts +998 -81
  203. package/dist/server/handlers/workflows.d.ts.map +1 -1
  204. package/dist/server/handlers/workflows.js +1 -1
  205. package/dist/server/handlers.cjs +30 -35
  206. package/dist/server/handlers.d.ts +1 -2
  207. package/dist/server/handlers.d.ts.map +1 -1
  208. package/dist/server/handlers.js +12 -13
  209. package/dist/server/http-exception.d.ts +0 -5
  210. package/dist/server/http-exception.d.ts.map +1 -1
  211. package/dist/server/schemas/a2a.d.ts +786 -0
  212. package/dist/server/schemas/a2a.d.ts.map +1 -0
  213. package/dist/server/schemas/agent-builder.d.ts +213 -0
  214. package/dist/server/schemas/agent-builder.d.ts.map +1 -0
  215. package/dist/server/schemas/agents.d.ts +1401 -0
  216. package/dist/server/schemas/agents.d.ts.map +1 -0
  217. package/dist/server/schemas/common.d.ts +179 -0
  218. package/dist/server/schemas/common.d.ts.map +1 -0
  219. package/dist/server/schemas/logs.d.ts +124 -0
  220. package/dist/server/schemas/logs.d.ts.map +1 -0
  221. package/dist/server/schemas/mcp.d.ts +299 -0
  222. package/dist/server/schemas/mcp.d.ts.map +1 -0
  223. package/dist/server/schemas/memory.d.ts +998 -0
  224. package/dist/server/schemas/memory.d.ts.map +1 -0
  225. package/dist/server/schemas/observability.d.ts +402 -0
  226. package/dist/server/schemas/observability.d.ts.map +1 -0
  227. package/dist/server/schemas/scores.d.ts +259 -0
  228. package/dist/server/schemas/scores.d.ts.map +1 -0
  229. package/dist/server/schemas/stored-agents.d.ts +792 -0
  230. package/dist/server/schemas/stored-agents.d.ts.map +1 -0
  231. package/dist/server/schemas/vectors.d.ts +107 -0
  232. package/dist/server/schemas/vectors.d.ts.map +1 -0
  233. package/dist/server/schemas/workflows.d.ts +668 -0
  234. package/dist/server/schemas/workflows.d.ts.map +1 -0
  235. package/dist/server/server-adapter/index.cjs +485 -0
  236. package/dist/server/server-adapter/index.cjs.map +1 -0
  237. package/dist/server/server-adapter/index.d.ts +91 -0
  238. package/dist/server/server-adapter/index.d.ts.map +1 -0
  239. package/dist/server/server-adapter/index.js +470 -0
  240. package/dist/server/server-adapter/index.js.map +1 -0
  241. package/dist/server/server-adapter/openapi-utils.d.ts +59 -0
  242. package/dist/server/server-adapter/openapi-utils.d.ts.map +1 -0
  243. package/dist/server/server-adapter/redact.d.ts +26 -0
  244. package/dist/server/server-adapter/redact.d.ts.map +1 -0
  245. package/dist/server/server-adapter/routes/a2a.d.ts +3 -0
  246. package/dist/server/server-adapter/routes/a2a.d.ts.map +1 -0
  247. package/dist/server/server-adapter/routes/agent-builder.d.ts +3 -0
  248. package/dist/server/server-adapter/routes/agent-builder.d.ts.map +1 -0
  249. package/dist/server/server-adapter/routes/agents.d.ts +3 -0
  250. package/dist/server/server-adapter/routes/agents.d.ts.map +1 -0
  251. package/dist/server/server-adapter/routes/index.d.ts +50 -0
  252. package/dist/server/server-adapter/routes/index.d.ts.map +1 -0
  253. package/dist/server/server-adapter/routes/legacy.d.ts +7 -0
  254. package/dist/server/server-adapter/routes/legacy.d.ts.map +1 -0
  255. package/dist/server/server-adapter/routes/logs.d.ts +3 -0
  256. package/dist/server/server-adapter/routes/logs.d.ts.map +1 -0
  257. package/dist/server/server-adapter/routes/mcp.d.ts +9 -0
  258. package/dist/server/server-adapter/routes/mcp.d.ts.map +1 -0
  259. package/dist/server/server-adapter/routes/memory.d.ts +3 -0
  260. package/dist/server/server-adapter/routes/memory.d.ts.map +1 -0
  261. package/dist/server/server-adapter/routes/observability.d.ts +3 -0
  262. package/dist/server/server-adapter/routes/observability.d.ts.map +1 -0
  263. package/dist/server/server-adapter/routes/route-builder.d.ts +52 -0
  264. package/dist/server/server-adapter/routes/route-builder.d.ts.map +1 -0
  265. package/dist/server/server-adapter/routes/scorers.d.ts +3 -0
  266. package/dist/server/server-adapter/routes/scorers.d.ts.map +1 -0
  267. package/dist/server/server-adapter/routes/stored-agents.d.ts +8 -0
  268. package/dist/server/server-adapter/routes/stored-agents.d.ts.map +1 -0
  269. package/dist/server/server-adapter/routes/stream-types.d.ts +10 -0
  270. package/dist/server/server-adapter/routes/stream-types.d.ts.map +1 -0
  271. package/dist/server/server-adapter/routes/tools.d.ts +3 -0
  272. package/dist/server/server-adapter/routes/tools.d.ts.map +1 -0
  273. package/dist/server/server-adapter/routes/vectors.d.ts +3 -0
  274. package/dist/server/server-adapter/routes/vectors.d.ts.map +1 -0
  275. package/dist/server/server-adapter/routes/workflows.d.ts +3 -0
  276. package/dist/server/server-adapter/routes/workflows.d.ts.map +1 -0
  277. package/dist/server/utils.d.ts +4 -3
  278. package/dist/server/utils.d.ts.map +1 -1
  279. package/dist/{token-JT637FZG.cjs → token-6GSAFR2W-KVDFAJ2M-EPLMGMHT.cjs} +11 -12
  280. package/dist/token-6GSAFR2W-KVDFAJ2M-EPLMGMHT.cjs.map +1 -0
  281. package/dist/{token-352SFL4N.js → token-6GSAFR2W-KVDFAJ2M-LNX5VF3I.js} +8 -9
  282. package/dist/token-6GSAFR2W-KVDFAJ2M-LNX5VF3I.js.map +1 -0
  283. package/dist/token-6GSAFR2W-KVDFAJ2M-SDYXODLX.cjs +63 -0
  284. package/dist/token-6GSAFR2W-KVDFAJ2M-SDYXODLX.cjs.map +1 -0
  285. package/dist/token-6GSAFR2W-KVDFAJ2M-VW443KIA.js +61 -0
  286. package/dist/token-6GSAFR2W-KVDFAJ2M-VW443KIA.js.map +1 -0
  287. package/dist/token-util-NEHG7TUY-DJYRKLRD-6TH3ODCN.cjs +10 -0
  288. package/dist/token-util-NEHG7TUY-DJYRKLRD-6TH3ODCN.cjs.map +1 -0
  289. package/dist/token-util-NEHG7TUY-DJYRKLRD-BSQMRUEW.js +8 -0
  290. package/dist/token-util-NEHG7TUY-DJYRKLRD-BSQMRUEW.js.map +1 -0
  291. package/dist/token-util-NEHG7TUY-DJYRKLRD-EACKYD4V.js +8 -0
  292. package/dist/token-util-NEHG7TUY-DJYRKLRD-EACKYD4V.js.map +1 -0
  293. package/dist/token-util-NEHG7TUY-DJYRKLRD-MFJRDVVF.cjs +10 -0
  294. package/dist/token-util-NEHG7TUY-DJYRKLRD-MFJRDVVF.cjs.map +1 -0
  295. package/package.json +38 -11
  296. package/dist/chunk-2S4IMB6E.cjs +0 -130
  297. package/dist/chunk-2S4IMB6E.cjs.map +0 -1
  298. package/dist/chunk-3LGGSMCC.cjs.map +0 -1
  299. package/dist/chunk-3LTO44EP.cjs +0 -570
  300. package/dist/chunk-3LTO44EP.cjs.map +0 -1
  301. package/dist/chunk-3SNGNFUJ.cjs +0 -128
  302. package/dist/chunk-3SNGNFUJ.cjs.map +0 -1
  303. package/dist/chunk-4QCXUEAT.js +0 -25
  304. package/dist/chunk-4QCXUEAT.js.map +0 -1
  305. package/dist/chunk-5BNQIYQN.js +0 -189
  306. package/dist/chunk-5BNQIYQN.js.map +0 -1
  307. package/dist/chunk-67GYDFSB.js +0 -160
  308. package/dist/chunk-67GYDFSB.js.map +0 -1
  309. package/dist/chunk-6BMOC6SA.cjs +0 -48
  310. package/dist/chunk-6BMOC6SA.cjs.map +0 -1
  311. package/dist/chunk-6ZR275MD.cjs +0 -165
  312. package/dist/chunk-6ZR275MD.cjs.map +0 -1
  313. package/dist/chunk-ABRFV4XP.js +0 -83
  314. package/dist/chunk-ABRFV4XP.js.map +0 -1
  315. package/dist/chunk-AHB4JCIQ.js +0 -160
  316. package/dist/chunk-AHB4JCIQ.js.map +0 -1
  317. package/dist/chunk-BATEJLED.js +0 -124
  318. package/dist/chunk-BATEJLED.js.map +0 -1
  319. package/dist/chunk-BZLZFHAT.cjs +0 -682
  320. package/dist/chunk-BZLZFHAT.cjs.map +0 -1
  321. package/dist/chunk-DB63UMTV.js +0 -660
  322. package/dist/chunk-DB63UMTV.js.map +0 -1
  323. package/dist/chunk-DTBJ3D22.js +0 -19480
  324. package/dist/chunk-DTBJ3D22.js.map +0 -1
  325. package/dist/chunk-EP3JQDPD.cjs +0 -131
  326. package/dist/chunk-EP3JQDPD.cjs.map +0 -1
  327. package/dist/chunk-G4PUALCE.cjs +0 -28
  328. package/dist/chunk-G4PUALCE.cjs.map +0 -1
  329. package/dist/chunk-H2CO44WB.js +0 -46
  330. package/dist/chunk-H2CO44WB.js.map +0 -1
  331. package/dist/chunk-HPXAM2PG.js.map +0 -1
  332. package/dist/chunk-I3C4ODGV.cjs +0 -335
  333. package/dist/chunk-I3C4ODGV.cjs.map +0 -1
  334. package/dist/chunk-JSLAYFEW.js +0 -662
  335. package/dist/chunk-JSLAYFEW.js.map +0 -1
  336. package/dist/chunk-KQZPT7AO.js.map +0 -1
  337. package/dist/chunk-LLUOPR3J.js +0 -323
  338. package/dist/chunk-LLUOPR3J.js.map +0 -1
  339. package/dist/chunk-LNT5N7XW.cjs +0 -197
  340. package/dist/chunk-LNT5N7XW.cjs.map +0 -1
  341. package/dist/chunk-LPM6BBAX.cjs.map +0 -1
  342. package/dist/chunk-MMROOK5J.js.map +0 -1
  343. package/dist/chunk-MQDBNHBT.cjs +0 -680
  344. package/dist/chunk-MQDBNHBT.cjs.map +0 -1
  345. package/dist/chunk-MYR4PVGN.js +0 -123
  346. package/dist/chunk-MYR4PVGN.js.map +0 -1
  347. package/dist/chunk-OEOGYAQC.js +0 -553
  348. package/dist/chunk-OEOGYAQC.js.map +0 -1
  349. package/dist/chunk-QQXMIP6C.js +0 -122
  350. package/dist/chunk-QQXMIP6C.js.map +0 -1
  351. package/dist/chunk-RQK4FQUD.js.map +0 -1
  352. package/dist/chunk-SBWOUCO3.cjs +0 -19516
  353. package/dist/chunk-SBWOUCO3.cjs.map +0 -1
  354. package/dist/chunk-TOP25AIO.cjs.map +0 -1
  355. package/dist/chunk-TRGAMKHX.cjs +0 -167
  356. package/dist/chunk-TRGAMKHX.cjs.map +0 -1
  357. package/dist/chunk-VY4ENABS.cjs.map +0 -1
  358. package/dist/chunk-XN74I6VW.cjs +0 -88
  359. package/dist/chunk-XN74I6VW.cjs.map +0 -1
  360. package/dist/chunk-YWOK4F5A.js.map +0 -1
  361. package/dist/dist-P4MXBQ3U.cjs +0 -16
  362. package/dist/dist-YREX2TJT.js +0 -3
  363. package/dist/server/handlers/legacyWorkflows.cjs +0 -48
  364. package/dist/server/handlers/legacyWorkflows.cjs.map +0 -1
  365. package/dist/server/handlers/legacyWorkflows.d.ts +0 -59
  366. package/dist/server/handlers/legacyWorkflows.d.ts.map +0 -1
  367. package/dist/server/handlers/legacyWorkflows.js +0 -3
  368. package/dist/server/handlers/legacyWorkflows.js.map +0 -1
  369. package/dist/server/handlers/telemetry.cjs +0 -20
  370. package/dist/server/handlers/telemetry.cjs.map +0 -1
  371. package/dist/server/handlers/telemetry.d.ts +0 -33
  372. package/dist/server/handlers/telemetry.d.ts.map +0 -1
  373. package/dist/server/handlers/telemetry.js +0 -3
  374. package/dist/server/handlers/telemetry.js.map +0 -1
  375. package/dist/token-352SFL4N.js.map +0 -1
  376. package/dist/token-JT637FZG.cjs.map +0 -1
  377. package/dist/token-util-75OQWZ4W.js +0 -7
  378. package/dist/token-util-75OQWZ4W.js.map +0 -1
  379. package/dist/token-util-WGALAXWM.cjs +0 -9
  380. package/dist/token-util-WGALAXWM.cjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,1513 @@
1
1
  # @mastra/server
2
2
 
3
- ## 0.0.0-dynamic-model-router-20251010193247
3
+ ## 0.0.0-elated-armadillo-be37a1-20251219210627
4
+
5
+ ### Major Changes
6
+
7
+ - Moving scorers under the eval domain, api method consistency, prebuilt evals, scorers require ids. ([#9589](https://github.com/mastra-ai/mastra/pull/9589))
8
+
9
+ - 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))
10
+
11
+ Primitives that are added to other primitives are also automatically added to the Mastra instance
12
+
13
+ - 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))
14
+
15
+ - Remove `getMessagesPaginated()` and add `perPage: false` support ([#9670](https://github.com/mastra-ai/mastra/pull/9670))
16
+
17
+ Removes deprecated `getMessagesPaginated()` method. The `listMessages()` API and score handlers now support `perPage: false` to fetch all records without pagination limits.
18
+
19
+ **Storage changes:**
20
+ - `StoragePagination.perPage` type changed from `number` to `number | false`
21
+ - All storage implementations support `perPage: false`:
22
+ - Memory: `listMessages()`
23
+ - Scores: `listScoresBySpan()`, `listScoresByRunId()`, `listScoresByExecutionId()`
24
+ - HTTP query parser accepts `"false"` string (e.g., `?perPage=false`)
25
+
26
+ **Memory changes:**
27
+ - `memory.query()` parameter type changed from `StorageGetMessagesArg` to `StorageListMessagesInput`
28
+ - Uses flat parameters (`page`, `perPage`, `include`, `filter`, `vectorSearchString`) instead of `selectBy` object
29
+
30
+ **Stricter validation:**
31
+ - `listMessages()` requires non-empty, non-whitespace `threadId` (throws error instead of returning empty results)
32
+
33
+ **Migration:**
34
+
35
+ ```typescript
36
+ // Storage/Memory: Replace getMessagesPaginated with listMessages
37
+ - storage.getMessagesPaginated({ threadId, selectBy: { pagination: { page: 0, perPage: 20 } } })
38
+ + storage.listMessages({ threadId, page: 0, perPage: 20 })
39
+ + storage.listMessages({ threadId, page: 0, perPage: false }) // Fetch all
40
+
41
+ // Memory: Replace selectBy with flat parameters
42
+ - memory.query({ threadId, selectBy: { last: 20, include: [...] } })
43
+ + memory.query({ threadId, perPage: 20, include: [...] })
44
+
45
+ // Client SDK
46
+ - thread.getMessagesPaginated({ selectBy: { pagination: { page: 0 } } })
47
+ + thread.listMessages({ page: 0, perPage: 20 })
48
+ ```
49
+
50
+ - **Removed `storage.getMessages()`** ([#9695](https://github.com/mastra-ai/mastra/pull/9695))
51
+
52
+ The `getMessages()` method has been removed from all storage implementations. Use `listMessages()` instead, which provides pagination support.
53
+
54
+ **Migration:**
55
+
56
+ ```typescript
57
+ // Before
58
+ const messages = await storage.getMessages({ threadId: 'thread-1' });
59
+
60
+ // After
61
+ const result = await storage.listMessages({
62
+ threadId: 'thread-1',
63
+ page: 0,
64
+ perPage: 50,
65
+ });
66
+ const messages = result.messages; // Access messages array
67
+ console.log(result.total); // Total count
68
+ console.log(result.hasMore); // Whether more pages exist
69
+ ```
70
+
71
+ **Message ordering default**
72
+
73
+ `listMessages()` defaults to ASC (oldest first) ordering by `createdAt`, matching the previous `getMessages()` behavior.
74
+
75
+ **To use DESC ordering (newest first):**
76
+
77
+ ```typescript
78
+ const result = await storage.listMessages({
79
+ threadId: 'thread-1',
80
+ orderBy: { field: 'createdAt', direction: 'DESC' },
81
+ });
82
+ ```
83
+
84
+ **Renamed `client.getThreadMessages()` → `client.listThreadMessages()`**
85
+
86
+ **Migration:**
87
+
88
+ ```typescript
89
+ // Before
90
+ const response = await client.getThreadMessages(threadId, { agentId });
91
+
92
+ // After
93
+ const response = await client.listThreadMessages(threadId, { agentId });
94
+ ```
95
+
96
+ The response format remains the same.
97
+
98
+ **Removed `StorageGetMessagesArg` type**
99
+
100
+ Use `StorageListMessagesInput` instead:
101
+
102
+ ```typescript
103
+ // Before
104
+ import type { StorageGetMessagesArg } from '@mastra/core';
105
+
106
+ // After
107
+ import type { StorageListMessagesInput } from '@mastra/core';
108
+ ```
109
+
110
+ - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
111
+
112
+ - 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))
113
+
114
+ - This simplifies the Memory API by removing the confusing rememberMessages method and renaming query to recall for better clarity. ([#9701](https://github.com/mastra-ai/mastra/pull/9701))
115
+
116
+ The rememberMessages method name implied it might persist data when it was actually just retrieving messages, same as query. Having two methods that did essentially the same thing was unnecessary.
117
+
118
+ Before:
119
+
120
+ ```typescript
121
+ // Two methods that did the same thing
122
+ memory.rememberMessages({ threadId, resourceId, config, vectorMessageSearch });
123
+ memory.query({ threadId, resourceId, perPage, vectorSearchString });
124
+ ```
125
+
126
+ After:
127
+
128
+ ```typescript
129
+ // Single unified method with clear purpose
130
+ memory.recall({ threadId, resourceId, perPage, vectorMessageSearch, threadConfig });
131
+ ```
132
+
133
+ All usages have been updated across the codebase including tests. The agent now calls recall directly with the appropriate parameters.
134
+
135
+ - Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
136
+
137
+ - Rename `defaultVNextStreamOptions` to `defaultOptions`. Add "Legacy" suffix to v1 option properties and methods (`defaultGenerateOptions` → `defaultGenerateOptionsLegacy`, `defaultStreamOptions` → `defaultStreamOptionsLegacy`). ([#9535](https://github.com/mastra-ai/mastra/pull/9535))
138
+
139
+ - 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))
140
+
141
+ - Renamed a bunch of observability/tracing-related things to drop the AI prefix. ([#9744](https://github.com/mastra-ai/mastra/pull/9744))
142
+
143
+ - **Breaking Change**: Remove legacy v1 watch events and consolidate on v2 implementation. ([#9252](https://github.com/mastra-ai/mastra/pull/9252))
144
+
145
+ This change simplifies the workflow watching API by removing the legacy v1 event system and promoting v2 as the standard (renamed to just `watch`).
146
+
147
+ **What's Changed**
148
+ - Removed legacy v1 watch event handlers and types
149
+ - Renamed `watch-v2` to `watch` throughout the codebase
150
+ - Removed `.watch()` method from client-js SDK (`Workflow` and `AgentBuilder` classes)
151
+ - Removed `/watch` HTTP endpoints from server and deployer
152
+ - Removed `WorkflowWatchResult` and v1 `WatchEvent` types
153
+
154
+ - Pagination APIs now use `page`/`perPage` instead of `offset`/`limit` ([#9592](https://github.com/mastra-ai/mastra/pull/9592))
155
+
156
+ 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.
157
+
158
+ **Affected APIs:**
159
+ - `Memory.listThreadsByResourceId()`
160
+ - `Memory.listMessages()`
161
+ - `Storage.listWorkflowRuns()`
162
+
163
+ **Migration:**
164
+
165
+ ```typescript
166
+ // Before
167
+ await memory.listThreadsByResourceId({
168
+ resourceId: 'user-123',
169
+ offset: 20,
170
+ limit: 10,
171
+ });
172
+
173
+ // After
174
+ await memory.listThreadsByResourceId({
175
+ resourceId: 'user-123',
176
+ page: 2, // page = Math.floor(offset / limit)
177
+ perPage: 10,
178
+ });
179
+
180
+ // Before
181
+ await memory.listMessages({
182
+ threadId: 'thread-456',
183
+ offset: 20,
184
+ limit: 10,
185
+ });
186
+
187
+ // After
188
+ await memory.listMessages({
189
+ threadId: 'thread-456',
190
+ page: 2,
191
+ perPage: 10,
192
+ });
193
+
194
+ // Before
195
+ await storage.listWorkflowRuns({
196
+ workflowName: 'my-workflow',
197
+ offset: 20,
198
+ limit: 10,
199
+ });
200
+
201
+ // After
202
+ await storage.listWorkflowRuns({
203
+ workflowName: 'my-workflow',
204
+ page: 2,
205
+ perPage: 10,
206
+ });
207
+ ```
208
+
209
+ **Additional improvements:**
210
+ - Added validation for negative `page` values in all storage implementations
211
+ - Improved `perPage` validation to handle edge cases (negative values, `0`, `false`)
212
+ - Added reusable query parser utilities for consistent validation in handlers
213
+
214
+ - Changing getAgents -> listAgents, getTools -> listTools, getWorkflows -> listWorkflows ([#9495](https://github.com/mastra-ai/mastra/pull/9495))
215
+
216
+ - Removed old tracing code based on OpenTelemetry ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
217
+
218
+ - Remove deprecated vector prompts and cohere provider from code ([#9596](https://github.com/mastra-ai/mastra/pull/9596))
219
+
220
+ - Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
221
+
222
+ - Enforcing id required on Processor primitive ([#9591](https://github.com/mastra-ai/mastra/pull/9591))
223
+
224
+ - Renamed `MastraMessageV2` to `MastraDBMessage` ([#9255](https://github.com/mastra-ai/mastra/pull/9255))
225
+ Made the return format of all methods that return db messages consistent. It's always `{ messages: MastraDBMessage[] }` now, and messages can be converted after that using `@mastra/ai-sdk/ui`'s `toAISdkV4/5Messages()` function
226
+
227
+ - moved ai-tracing code into @mastra/observability ([#9661](https://github.com/mastra-ai/mastra/pull/9661))
228
+
229
+ - Remove legacy evals from Mastra ([#9491](https://github.com/mastra-ai/mastra/pull/9491))
230
+
231
+ ### Minor Changes
232
+
233
+ - Add stored agents support ([#10953](https://github.com/mastra-ai/mastra/pull/10953))
234
+
235
+ Agents can now be stored in the database and loaded at runtime. This lets you persist agent configurations and dynamically create executable Agent instances from storage.
236
+
237
+ ```typescript
238
+ import { Mastra } from '@mastra/core';
239
+ import { LibSQLStore } from '@mastra/libsql';
240
+
241
+ const mastra = new Mastra({
242
+ storage: new LibSQLStore({ url: ':memory:' }),
243
+ tools: { myTool },
244
+ scorers: { myScorer },
245
+ });
246
+
247
+ // Create agent in storage via API or directly
248
+ await mastra.getStorage().createAgent({
249
+ agent: {
250
+ id: 'my-agent',
251
+ name: 'My Agent',
252
+ instructions: 'You are helpful',
253
+ model: { provider: 'openai', name: 'gpt-4' },
254
+ tools: { myTool: {} },
255
+ scorers: { myScorer: { sampling: { type: 'ratio', rate: 0.5 } } },
256
+ },
257
+ });
258
+
259
+ // Load and use the agent
260
+ const agent = await mastra.getStoredAgentById('my-agent');
261
+ const response = await agent.generate({ messages: 'Hello!' });
262
+
263
+ // List all stored agents with pagination
264
+ const { agents, total, hasMore } = await mastra.listStoredAgents({
265
+ page: 0,
266
+ perPage: 10,
267
+ });
268
+ ```
269
+
270
+ Also adds a memory registry to Mastra so stored agents can reference memory instances by key.
271
+
272
+ - Update peer dependencies to match core package version bump (1.0.0) ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
273
+
274
+ - Memory scope defaults changed from 'thread' to 'resource' ([#8983](https://github.com/mastra-ai/mastra/pull/8983))
275
+
276
+ Both `workingMemory.scope` and `semanticRecall.scope` now default to `'resource'` instead of `'thread'`. This means:
277
+ - Working memory persists across all conversations for the same user/resource
278
+ - Semantic recall searches across all threads for the same user/resource
279
+
280
+ **Migration**: To maintain the previous thread-scoped behavior, explicitly set `scope: 'thread'`:
281
+
282
+ ```typescript
283
+ memory: new Memory({
284
+ storage,
285
+ workingMemory: {
286
+ enabled: true,
287
+ scope: 'thread', // Explicitly set for thread-scoped behavior
288
+ },
289
+ semanticRecall: {
290
+ scope: 'thread', // Explicitly set for thread-scoped behavior
291
+ },
292
+ }),
293
+ ```
294
+
295
+ Also fixed issues where playground semantic recall search could show missing or incorrect results in certain cases.
296
+
297
+ - Update peer dependencies to match core package version bump (1.0.0) ([#9495](https://github.com/mastra-ai/mastra/pull/9495))
298
+
299
+ - Update peer dependencies to match core package version bump (0.22.1) ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
300
+
301
+ - Add observeStream support for agent-builder template installation ([#9372](https://github.com/mastra-ai/mastra/pull/9372))
302
+ - Add observeStream, observeStreamVNext, observeStreamLegacy, and resumeStream methods to agent-builder client SDK
303
+ - Add corresponding server handlers and deployer routes for observe streaming
304
+ - Add tracingOptions parameter to existing agent-builder handlers for parity with workflows
305
+ - Update template installation processor to support both legacy and VNext streaming event formats
306
+
307
+ - Update peer dependencies to match core package version bump (0.22.0) ([#8983](https://github.com/mastra-ai/mastra/pull/8983))
308
+
309
+ - Update peer dependencies to match core package version bump (1.0.0) ([#9491](https://github.com/mastra-ai/mastra/pull/9491))
310
+
311
+ ### Patch Changes
312
+
313
+ - Make step optional in all resume APIs ([#9454](https://github.com/mastra-ai/mastra/pull/9454))
314
+
315
+ - Fix semantic search endpoint to return results in the correct format. Also fix the delete messages endpoint to properly normalize ids in the expected format. ([#10032](https://github.com/mastra-ai/mastra/pull/10032))
316
+
317
+ - Extract routing from @deployer/server into server adapter packages. ([#10263](https://github.com/mastra-ai/mastra/pull/10263))
318
+ New packages:
319
+ - @mastra/express
320
+ - @mastra/hono
321
+
322
+ These packages support mastra server routes on express and hono respectively.
323
+ 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.
324
+
325
+ - Fix type safety for message ordering - restrict `orderBy` to only accept `'createdAt'` field ([#11069](https://github.com/mastra-ai/mastra/pull/11069))
326
+
327
+ Messages don't have an `updatedAt` field, but the previous type allowed ordering by it, which would return empty results. This change adds compile-time type safety by making `StorageOrderBy` generic and restricting `StorageListMessagesInput.orderBy` to only accept `'createdAt'`. The API validation schemas have also been updated to reject invalid orderBy values at runtime.
328
+
329
+ - Add resourceId to workflow routes ([#11166](https://github.com/mastra-ai/mastra/pull/11166))
330
+
331
+ - Add agent id to the list agent ([#9770](https://github.com/mastra-ai/mastra/pull/9770))
332
+
333
+ - Update tool execution signature ([#9587](https://github.com/mastra-ai/mastra/pull/9587))
334
+
335
+ Consolidated the 3 different execution contexts to one
336
+
337
+ ```typescript
338
+ // before depending on the context the tool was executed in
339
+ tool.execute({ context: data });
340
+ tool.execute({ context: { inputData: data } });
341
+ tool.execute(data);
342
+
343
+ // now, for all contexts
344
+ tool.execute(data, context);
345
+ ```
346
+
347
+ **Before:**
348
+
349
+ ```typescript
350
+ inputSchema: z.object({ something: z.string() }),
351
+ execute: async ({ context, tracingContext, runId, ... }) => {
352
+ return doSomething(context.string);
353
+ }
354
+ ```
355
+
356
+ **After:**
357
+
358
+ ```typescript
359
+ inputSchema: z.object({ something: z.string() }),
360
+ execute: async (inputData, context) => {
361
+ const { agent, mcp, workflow, ...sharedContext } = context
362
+
363
+ // context that only an agent would get like toolCallId, messages, suspend, resume, etc
364
+ if (agent) {
365
+ doSomething(inputData.something, agent)
366
+ // context that only a workflow would get like runId, state, suspend, resume, etc
367
+ } else if (workflow) {
368
+ doSomething(inputData.something, workflow)
369
+ // context that only a workflow would get like "extra", "elicitation"
370
+ } else if (mcp) {
371
+ doSomething(inputData.something, mcp)
372
+ } else {
373
+ // Running a tool in no execution context
374
+ return doSomething(inputData.something);
375
+ }
376
+ }
377
+ ```
378
+
379
+ - Add the description field to listAgents ([#9672](https://github.com/mastra-ai/mastra/pull/9672))
380
+
381
+ - Add execution metadata to A2A message/send responses. The A2A protocol now returns detailed execution information including tool calls, tool results, token usage, and finish reason in the task metadata. This allows clients to inspect which tools were invoked during agent execution and access execution statistics without additional queries. ([#11241](https://github.com/mastra-ai/mastra/pull/11241))
382
+
383
+ - Fix the link issue in observability ([#9764](https://github.com/mastra-ai/mastra/pull/9764))
384
+
385
+ - Fixes issue #11185 where `MastraServer.tools` was rejecting tools created with `createTool({ inputSchema })`. Changed the tools property type from `Record<string, Tool>` to `ToolsInput` to accept tools with any schema types (input, output, or none), as well as Vercel AI SDK tools and provider-defined tools. ([`5118f38`](https://github.com/mastra-ai/mastra/commit/5118f384a70b1166012fde3b901f3227870b1009))
386
+
387
+ Tools created with `createTool({ inputSchema: z.object(...) })` now work without TypeScript errors.
388
+
389
+ - Add timeTravel APIs and add timeTravel feature to studio ([#10361](https://github.com/mastra-ai/mastra/pull/10361))
390
+
391
+ - feat: Add field filtering and nested workflow control to workflow execution result endpoint ([#11246](https://github.com/mastra-ai/mastra/pull/11246))
392
+
393
+ Adds two optional query parameters to `/api/workflows/:workflowId/runs/:runId/execution-result` endpoint:
394
+ - `fields`: Request only specific fields (e.g., `status`, `result`, `error`)
395
+ - `withNestedWorkflows`: Control whether to fetch nested workflow data
396
+
397
+ This significantly reduces response payload size and improves response times for large workflows.
398
+
399
+ ## Server Endpoint Usage
400
+
401
+ ```http
402
+ # Get only status (minimal payload - fastest)
403
+ GET /api/workflows/:workflowId/runs/:runId/execution-result?fields=status
404
+
405
+ # Get status and result
406
+ GET /api/workflows/:workflowId/runs/:runId/execution-result?fields=status,result
407
+
408
+ # Get all fields but without nested workflow data (faster)
409
+ GET /api/workflows/:workflowId/runs/:runId/execution-result?withNestedWorkflows=false
410
+
411
+ # Get only specific fields without nested workflow data
412
+ GET /api/workflows/:workflowId/runs/:runId/execution-result?fields=status,steps&withNestedWorkflows=false
413
+
414
+ # Get full data (default behavior)
415
+ GET /api/workflows/:workflowId/runs/:runId/execution-result
416
+ ```
417
+
418
+ ## Client SDK Usage
419
+
420
+ ```typescript
421
+ import { MastraClient } from '@mastra/client-js';
422
+
423
+ const client = new MastraClient({ baseUrl: 'http://localhost:4111' });
424
+ const workflow = client.getWorkflow('myWorkflow');
425
+
426
+ // Get only status (minimal payload - fastest)
427
+ const statusOnly = await workflow.runExecutionResult(runId, {
428
+ fields: ['status'],
429
+ });
430
+ console.log(statusOnly.status); // 'success' | 'failed' | 'running' | etc.
431
+
432
+ // Get status and result
433
+ const statusAndResult = await workflow.runExecutionResult(runId, {
434
+ fields: ['status', 'result'],
435
+ });
436
+
437
+ // Get all fields but without nested workflow data (faster)
438
+ const resultWithoutNested = await workflow.runExecutionResult(runId, {
439
+ withNestedWorkflows: false,
440
+ });
441
+
442
+ // Get specific fields without nested workflow data
443
+ const optimized = await workflow.runExecutionResult(runId, {
444
+ fields: ['status', 'steps'],
445
+ withNestedWorkflows: false,
446
+ });
447
+
448
+ // Get full execution result (default behavior)
449
+ const fullResult = await workflow.runExecutionResult(runId);
450
+ ```
451
+
452
+ ## Core API Changes
453
+
454
+ The `Workflow.getWorkflowRunExecutionResult` method now accepts an options object:
455
+
456
+ ```typescript
457
+ await workflow.getWorkflowRunExecutionResult(runId, {
458
+ withNestedWorkflows: false, // default: true, set to false to skip nested workflow data
459
+ fields: ['status', 'result'], // optional field filtering
460
+ });
461
+ ```
462
+
463
+ ## Inngest Compatibility
464
+
465
+ The `@mastra/inngest` package has been updated to use the new options object API. This is a non-breaking internal change - no action required from inngest workflow users.
466
+
467
+ ## Performance Impact
468
+
469
+ For workflows with large step outputs:
470
+ - Requesting only `status`: ~99% reduction in payload size
471
+ - Requesting `status,result,error`: ~95% reduction in payload size
472
+ - Using `withNestedWorkflows=false`: Avoids expensive nested workflow data fetching
473
+ - Combining both: Maximum performance optimization
474
+
475
+ - Add tool call approval ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
476
+
477
+ - Fix scorers listing filtring ([#9801](https://github.com/mastra-ai/mastra/pull/9801))
478
+
479
+ - **Breaking Changes** ([#11028](https://github.com/mastra-ai/mastra/pull/11028))
480
+ - Renamed `RuntimeContext` type to `ServerContext` to avoid confusion with the user-facing `RequestContext` (previously called `RuntimeContext`)
481
+ - Removed `playground` and `isDev` options from server adapter constructors - these only set context variables without any actual functionality
482
+
483
+ **Changes**
484
+
485
+ **@mastra/server**
486
+ - Renamed `RuntimeContext` type to `ServerContext` in route handler types
487
+ - Renamed `createTestRuntimeContext` to `createTestServerContext` in test utilities
488
+ - Renamed `isPlayground` parameter to `isStudio` in `formatAgent` function
489
+
490
+ **@mastra/hono**
491
+ - Removed `playground` and `isDev` from `HonoVariables` type
492
+ - Removed setting of `playground` and `isDev` context variables in middleware
493
+
494
+ **@mastra/express**
495
+ - Removed `playground` and `isDev` from `Express.Locals` interface
496
+ - Removed setting of `playground` and `isDev` in response locals
497
+
498
+ - 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))
499
+
500
+ - Unified MastraServer API with MCP transport routes ([#10644](https://github.com/mastra-ai/mastra/pull/10644))
501
+
502
+ **Breaking Changes:**
503
+ - Renamed `HonoServerAdapter` to `MastraServer` in `@mastra/hono`
504
+ - Renamed `ExpressServerAdapter` to `MastraServer` in `@mastra/express`
505
+ - Configuration now passed to constructor instead of separate method calls
506
+ - Renamed base class from `ServerAdapter` to `MastraServerBase` in `@mastra/server`
507
+
508
+ **New Features:**
509
+ - Added MCP transport routes (HTTP and SSE) to server adapters
510
+ - MCP endpoints available at `/api/mcp/:serverId/mcp` (HTTP) and `/api/mcp/:serverId/sse` (SSE)
511
+ - Added `express.json()` middleware compatibility for MCP routes
512
+ - Moved authentication helpers from deployer to `@mastra/server/auth`
513
+
514
+ **Testing:**
515
+ - Added shared MCP route and transport test suites in `@internal/server-adapter-test-utils`
516
+ - Added comprehensive MCP endpoint tests for both Hono and Express adapters
517
+ - Added GitHub Actions workflow for server adapter CI testing
518
+
519
+ - Remove deprecated playground-only prompt generation handler (functionality moved to @mastra/server) ([#11074](https://github.com/mastra-ai/mastra/pull/11074))
520
+
521
+ 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
522
+
523
+ Add missing `/api/agents/:agentId/instructions/enhance` endpoint that was referenced by `@mastra/client-js` and `@mastra/playground-ui`
524
+
525
+ - Update peer dependencies to match core package version bump (1.0.0) ([#9489](https://github.com/mastra-ai/mastra/pull/9489))
526
+
527
+ - Add delete workflow run API ([#10991](https://github.com/mastra-ai/mastra/pull/10991))
528
+
529
+ ```typescript
530
+ await workflow.deleteWorkflowRunById(runId);
531
+ ```
532
+
533
+ - Allow direct access to server app handle directly from Mastra instance. ([#10598](https://github.com/mastra-ai/mastra/pull/10598))
534
+
535
+ ```ts
536
+ // Before: HTTP request to localhost
537
+ const response = await fetch(`http://localhost:5000/api/tools`);
538
+
539
+ // After: Direct call via app.fetch()
540
+ const app = mastra.getServerApp<Hono>();
541
+ const response = await app.fetch(new Request('http://internal/api/tools'));
542
+ ```
543
+
544
+ - Added `mastra.getServerApp<T>()` to access the underlying Hono/Express app
545
+ - Added `mastra.getMastraServer()` and `mastra.setMastraServer()` for adapter access
546
+ - Added `MastraServerBase` class in `@mastra/core/server` for adapter implementations
547
+ - Server adapters now auto-register with Mastra in their constructor
548
+
549
+ - Standardize pagination params to page/perPage with backwards compatibility for limit/offset ([#10790](https://github.com/mastra-ai/mastra/pull/10790))
550
+ - Server now accepts both `page`/`perPage` and legacy `limit`/`offset` params for workflow runs and MCP server listing endpoints
551
+ - Client SDK sends both param formats to support older server versions
552
+ - Added `createCombinedPaginationSchema` helper for endpoints needing backwards compatibility
553
+ - Marked `limit` and `offset` as deprecated in client types
554
+
555
+ - Fixed server handler bugs: filter parsing now handles colons in values (timestamps, URLs), dateRange validation now converts JSON strings to Date objects, deleteMessages schema accepts object forms, and added missing responseSchema for legacy stream route ([#10362](https://github.com/mastra-ai/mastra/pull/10362))
556
+
557
+ - **Client (`@mastra/client-js`):** ([#10653](https://github.com/mastra-ai/mastra/pull/10653))
558
+ - Fixed `sendStreamingMessage` to properly return a streaming response instead of attempting to parse it as JSON
559
+
560
+ **Server (`@mastra/server`):**
561
+ - Fixed A2A message handler to pass `contextId` as `threadId` for memory persistence across conversations
562
+ - Added support for user-provided `resourceId` via `params.metadata.resourceId` or `message.metadata.resourceId`, falling back to `agentId`
563
+
564
+ - Fix undefined runtimeContext using memory from playground ([#9328](https://github.com/mastra-ai/mastra/pull/9328))
565
+
566
+ - Make step optional in resumeStreamVNext API ([#9453](https://github.com/mastra-ai/mastra/pull/9453))
567
+
568
+ - The `stream` API endpoint now automatically redacts `request` data from stream chunks (`step-start`, `step-finish`, `finish`) which could contain system prompts, tool definitions, and API keys. Redaction is enabled by default and can be disabled for debugging/internal services via `streamOptions.redact`. ([#10705](https://github.com/mastra-ai/mastra/pull/10705))
569
+
570
+ - Remove `waitForEvent` from workflows. `waitForEvent` is now removed, please use suspend & resume flow instead. See https://mastra.ai/en/docs/workflows/suspend-and-resume for more details on suspend & resume flow. ([#9214](https://github.com/mastra-ai/mastra/pull/9214))
571
+
572
+ - Add optional `partial` query parameter to `/api/agents` and `/api/workflows` endpoints to return minimal data without schemas, reducing payload size for list views: ([#10886](https://github.com/mastra-ai/mastra/pull/10886))
573
+ - When `partial=true`: tool schemas (inputSchema, outputSchema) are omitted
574
+ - When `partial=true`: workflow steps are replaced with stepCount integer
575
+ - When `partial=true`: workflow root schemas (inputSchema, outputSchema) are omitted
576
+ - Maintains backward compatibility when partial parameter is not provided
577
+
578
+ **Server Endpoint Usage**
579
+
580
+ ```bash
581
+ # Get partial agent data (no tool schemas)
582
+ GET /api/agents?partial=true
583
+
584
+ # Get full agent data (default behavior)
585
+ GET /api/agents
586
+
587
+ # Get partial workflow data (stepCount instead of steps, no schemas)
588
+ GET /api/workflows?partial=true
589
+
590
+ # Get full workflow data (default behavior)
591
+ GET /api/workflows
592
+ ```
593
+
594
+ **Client SDK Usage**
595
+
596
+ ```typescript
597
+ import { MastraClient } from '@mastra/client-js';
598
+
599
+ const client = new MastraClient({ baseUrl: 'http://localhost:4111' });
600
+
601
+ // Get partial agent list (smaller payload)
602
+ const partialAgents = await client.listAgents({ partial: true });
603
+
604
+ // Get full agent list with tool schemas
605
+ const fullAgents = await client.listAgents();
606
+
607
+ // Get partial workflow list (smaller payload)
608
+ const partialWorkflows = await client.listWorkflows({ partial: true });
609
+
610
+ // Get full workflow list with steps and schemas
611
+ const fullWorkflows = await client.listWorkflows();
612
+ ```
613
+
614
+ - Use memory mock in server tests ([#9486](https://github.com/mastra-ai/mastra/pull/9486))
615
+
616
+ - Support new Workflow tripwire run status. Tripwires that are thrown from within a workflow will now bubble up and return a graceful state with information about tripwires. ([#10947](https://github.com/mastra-ai/mastra/pull/10947))
617
+
618
+ When a workflow contains an agent step that triggers a tripwire, the workflow returns with `status: 'tripwire'` and includes tripwire details:
619
+
620
+ ```typescript
621
+ const run = await workflow.createRun();
622
+ const result = await run.start({ inputData: { message: 'Hello' } });
623
+
624
+ if (result.status === 'tripwire') {
625
+ console.log('Workflow terminated by tripwire:', result.tripwire?.reason);
626
+ console.log('Processor ID:', result.tripwire?.processorId);
627
+ console.log('Retry requested:', result.tripwire?.retry);
628
+ }
629
+ ```
630
+
631
+ Adds new UI state for tripwire in agent chat and workflow UI.
632
+
633
+ This is distinct from `status: 'failed'` which indicates an unexpected error. A tripwire status means a processor intentionally stopped execution (e.g., for content moderation).
634
+
635
+ - Network handler now accesses thread and resource parameters from the nested memory object instead of directly from request body. ([#10294](https://github.com/mastra-ai/mastra/pull/10294))
636
+
637
+ - Remove format from stream/generate ([#9577](https://github.com/mastra-ai/mastra/pull/9577))
638
+
639
+ - Updated dependencies [[`ac0d2f4`](https://github.com/mastra-ai/mastra/commit/ac0d2f4ff8831f72c1c66c2be809706d17f65789), [`2319326`](https://github.com/mastra-ai/mastra/commit/2319326f8c64e503a09bbcf14be2dd65405445e0), [`72df8ae`](https://github.com/mastra-ai/mastra/commit/72df8ae595584cdd7747d5c39ffaca45e4507227), [`39c9743`](https://github.com/mastra-ai/mastra/commit/39c97432d084294f8ba85fbf3ef28098ff21459e), [`3076c67`](https://github.com/mastra-ai/mastra/commit/3076c6778b18988ae7d5c4c5c466366974b2d63f), [`9198899`](https://github.com/mastra-ai/mastra/commit/91988995c427b185c33714b7f3be955367911324), [`f743dbb`](https://github.com/mastra-ai/mastra/commit/f743dbb8b40d1627b5c10c0e6fc154f4ebb6e394), [`21a15de`](https://github.com/mastra-ai/mastra/commit/21a15de369fe82aac26bb642ed7be73505475e8b), [`fec5129`](https://github.com/mastra-ai/mastra/commit/fec5129de7fc64423ea03661a56cef31dc747a0d), [`1a0d3fc`](https://github.com/mastra-ai/mastra/commit/1a0d3fc811482c9c376cdf79ee615c23bae9b2d6), [`85d7ee1`](https://github.com/mastra-ai/mastra/commit/85d7ee18ff4e14d625a8a30ec6656bb49804989b), [`c6c1092`](https://github.com/mastra-ai/mastra/commit/c6c1092f8fbf76109303f69e000e96fd1960c4ce), [`0491e7c`](https://github.com/mastra-ai/mastra/commit/0491e7c9b714cb0ba22187ee062147ec2dd7c712), [`f6f4903`](https://github.com/mastra-ai/mastra/commit/f6f4903397314f73362061dc5a3e8e7c61ea34aa), [`d5ed981`](https://github.com/mastra-ai/mastra/commit/d5ed981c8701c1b8a27a5f35a9a2f7d9244e695f), [`85a628b`](https://github.com/mastra-ai/mastra/commit/85a628b1224a8f64cd82ea7f033774bf22df7a7e), [`0e8ed46`](https://github.com/mastra-ai/mastra/commit/0e8ed467c54d6901a6a365f270ec15d6faadb36c), [`9650cce`](https://github.com/mastra-ai/mastra/commit/9650cce52a1d917ff9114653398e2a0f5c3ba808), [`6c049d9`](https://github.com/mastra-ai/mastra/commit/6c049d94063fdcbd5b81c4912a2bf82a92c9cc0b), [`910db9e`](https://github.com/mastra-ai/mastra/commit/910db9e0312888495eb5617b567f247d03303814), [`2f897df`](https://github.com/mastra-ai/mastra/commit/2f897df208508f46f51b7625e5dd20c37f93e0e3), [`d629361`](https://github.com/mastra-ai/mastra/commit/d629361a60f6565b5bfb11976fdaf7308af858e2), [`4f94ed8`](https://github.com/mastra-ai/mastra/commit/4f94ed8177abfde3ec536e3574883e075423350c), [`feb7ee4`](https://github.com/mastra-ai/mastra/commit/feb7ee4d09a75edb46c6669a3beaceec78811747), [`c237233`](https://github.com/mastra-ai/mastra/commit/c23723399ccedf7f5744b3f40997b79246bfbe64), [`38380b6`](https://github.com/mastra-ai/mastra/commit/38380b60fca905824bdf6b43df307a58efb1aa15), [`932d63d`](https://github.com/mastra-ai/mastra/commit/932d63dd51be9c8bf1e00e3671fe65606c6fb9cd), [`08c31c1`](https://github.com/mastra-ai/mastra/commit/08c31c188ebccd598acaf55e888b6397d01f7eae), [`919a22b`](https://github.com/mastra-ai/mastra/commit/919a22b25876f9ed5891efe5facbe682c30ff497), [`15f9e21`](https://github.com/mastra-ai/mastra/commit/15f9e216177201ea6e3f6d0bfb063fcc0953444f), [`3443770`](https://github.com/mastra-ai/mastra/commit/3443770662df8eb24c9df3589b2792d78cfcb811), [`b0e2ea5`](https://github.com/mastra-ai/mastra/commit/b0e2ea5b52c40fae438b9e2f7baee6f0f89c5442), [`f0a07e0`](https://github.com/mastra-ai/mastra/commit/f0a07e0111b3307c5fabfa4094c5c2cfb734fbe6), [`ff94dea`](https://github.com/mastra-ai/mastra/commit/ff94dea935f4e34545c63bcb6c29804732698809), [`0d41fe2`](https://github.com/mastra-ai/mastra/commit/0d41fe245355dfc66d61a0d9c85d9400aac351ff), [`b760b73`](https://github.com/mastra-ai/mastra/commit/b760b731aca7c8a3f041f61d57a7f125ae9cb215), [`aaa40e7`](https://github.com/mastra-ai/mastra/commit/aaa40e788628b319baa8e889407d11ad626547fa), [`1521d71`](https://github.com/mastra-ai/mastra/commit/1521d716e5daedc74690c983fbd961123c56756b), [`695a621`](https://github.com/mastra-ai/mastra/commit/695a621528bdabeb87f83c2277cf2bb084c7f2b4), [`9e1911d`](https://github.com/mastra-ai/mastra/commit/9e1911db2b4db85e0e768c3f15e0d61e319869f6), [`ac3cc23`](https://github.com/mastra-ai/mastra/commit/ac3cc2397d1966bc0fc2736a223abc449d3c7719), [`c456e01`](https://github.com/mastra-ai/mastra/commit/c456e0149e3c176afcefdbd9bb1d2c5917723725), [`ebac155`](https://github.com/mastra-ai/mastra/commit/ebac15564a590117db7078233f927a7e28a85106), [`a86f4df`](https://github.com/mastra-ai/mastra/commit/a86f4df0407311e0d2ea49b9a541f0938810d6a9), [`dd1c38d`](https://github.com/mastra-ai/mastra/commit/dd1c38d1b75f1b695c27b40d8d9d6ed00d5e0f6f), [`5948e6a`](https://github.com/mastra-ai/mastra/commit/5948e6a5146c83666ba3f294b2be576c82a513fb), [`5b2ff46`](https://github.com/mastra-ai/mastra/commit/5b2ff4651df70c146523a7fca773f8eb0a2272f8), [`edb07e4`](https://github.com/mastra-ai/mastra/commit/edb07e49283e0c28bd094a60e03439bf6ecf0221), [`db41688`](https://github.com/mastra-ai/mastra/commit/db4168806d007417e2e60b4f68656dca4e5f40c9), [`2b459f4`](https://github.com/mastra-ai/mastra/commit/2b459f466fd91688eeb2a44801dc23f7f8a887ab), [`798d0c7`](https://github.com/mastra-ai/mastra/commit/798d0c740232653b1d754870e6b43a55c364ffe2), [`8940859`](https://github.com/mastra-ai/mastra/commit/89408593658199b4ad67f7b65e888f344e64a442), [`486352b`](https://github.com/mastra-ai/mastra/commit/486352b66c746602b68a95839f830de14c7fb8c0), [`ab035c2`](https://github.com/mastra-ai/mastra/commit/ab035c2ef6d8cc7bb25f06f1a38508bd9e6f126b), [`e629310`](https://github.com/mastra-ai/mastra/commit/e629310f1a73fa236d49ec7a1d1cceb6229dc7cc), [`5ca599d`](https://github.com/mastra-ai/mastra/commit/5ca599d0bb59a1595f19f58473fcd67cc71cef58), [`09e4bae`](https://github.com/mastra-ai/mastra/commit/09e4bae18dd5357d2ae078a4a95a2af32168ab08), [`4c6b492`](https://github.com/mastra-ai/mastra/commit/4c6b492c4dd591c6a592520c1f6855d6e936d71f), [`bff1145`](https://github.com/mastra-ai/mastra/commit/bff114556b3cbadad9b2768488708f8ad0e91475), [`dff01d8`](https://github.com/mastra-ai/mastra/commit/dff01d81ce1f4e4087cfac20fa868e6db138dd14), [`ffe84d5`](https://github.com/mastra-ai/mastra/commit/ffe84d54f3b0f85167fe977efd027dba027eb998), [`5c8ca24`](https://github.com/mastra-ai/mastra/commit/5c8ca247094e0cc2cdbd7137822fb47241f86e77), [`9d819d5`](https://github.com/mastra-ai/mastra/commit/9d819d54b61481639f4008e4694791bddf187edd), [`24b76d8`](https://github.com/mastra-ai/mastra/commit/24b76d8e17656269c8ed09a0c038adb9cc2ae95a), [`e191844`](https://github.com/mastra-ai/mastra/commit/e1918444ca3f80e82feef1dad506cd4ec6e2875f), [`243a823`](https://github.com/mastra-ai/mastra/commit/243a8239c5906f5c94e4f78b54676793f7510ae3), [`22553f1`](https://github.com/mastra-ai/mastra/commit/22553f11c63ee5e966a9c034a349822249584691), [`81dc110`](https://github.com/mastra-ai/mastra/commit/81dc11008d147cf5bdc8996ead1aa61dbdebb6fc), [`029540c`](https://github.com/mastra-ai/mastra/commit/029540ca1e582fc2dd8d288ecd4a9b0f31a954ef), [`7237163`](https://github.com/mastra-ai/mastra/commit/72371635dbf96a87df4b073cc48fc655afbdce3d), [`2500740`](https://github.com/mastra-ai/mastra/commit/2500740ea23da067d6e50ec71c625ab3ce275e64), [`653e65a`](https://github.com/mastra-ai/mastra/commit/653e65ae1f9502c2958a32f47a5a2df11e612a92), [`873ecbb`](https://github.com/mastra-ai/mastra/commit/873ecbb517586aa17d2f1e99283755b3ebb2863f), [`6986fb0`](https://github.com/mastra-ai/mastra/commit/6986fb064f5db6ecc24aa655e1d26529087b43b3), [`4f9bbe5`](https://github.com/mastra-ai/mastra/commit/4f9bbe5968f42c86f4930b8193de3c3c17e5bd36), [`fd3d338`](https://github.com/mastra-ai/mastra/commit/fd3d338a2c362174ed5b383f1f011ad9fb0302aa), [`02e51fe`](https://github.com/mastra-ai/mastra/commit/02e51feddb3d4155cfbcc42624fd0d0970d032c0), [`71c8d6c`](https://github.com/mastra-ai/mastra/commit/71c8d6c161253207b2b9588bdadb7eed604f7253), [`7aedb74`](https://github.com/mastra-ai/mastra/commit/7aedb74883adf66af38e270e4068fd42e7a37036), [`c6fd6fe`](https://github.com/mastra-ai/mastra/commit/c6fd6fedd09e9cf8004b03a80925f5e94826ad7e), [`8f02d80`](https://github.com/mastra-ai/mastra/commit/8f02d800777397e4b45d7f1ad041988a8b0c6630), [`6179a9b`](https://github.com/mastra-ai/mastra/commit/6179a9ba36ffac326de3cc3c43cdc8028d37c251), [`8f3fa3a`](https://github.com/mastra-ai/mastra/commit/8f3fa3a652bb77da092f913ec51ae46e3a7e27dc), [`c30400a`](https://github.com/mastra-ai/mastra/commit/c30400a49b994b1b97256fe785eb6c906fc2b232), [`486352b`](https://github.com/mastra-ai/mastra/commit/486352b66c746602b68a95839f830de14c7fb8c0), [`00f4921`](https://github.com/mastra-ai/mastra/commit/00f4921dd2c91a1e5446799599ef7116a8214a1a), [`1a46a56`](https://github.com/mastra-ai/mastra/commit/1a46a566f45a3fcbadc1cf36bf86d351f264bfa3), [`ca8041c`](https://github.com/mastra-ai/mastra/commit/ca8041cce0379fda22ed293a565bcb5b6ddca68a), [`7051bf3`](https://github.com/mastra-ai/mastra/commit/7051bf38b3b122a069008f861f7bfc004a6d9f6e), [`a8f1494`](https://github.com/mastra-ai/mastra/commit/a8f1494f4bbdc2770bcf327d4c7d869e332183f1), [`d7aad50`](https://github.com/mastra-ai/mastra/commit/d7aad501ce61646b76b4b511e558ac4eea9884d0), [`c61fac3`](https://github.com/mastra-ai/mastra/commit/c61fac3add96f0dcce0208c07415279e2537eb62), [`6f14f70`](https://github.com/mastra-ai/mastra/commit/6f14f706ccaaf81b69544b6c1b75ab66a41e5317), [`69e0a87`](https://github.com/mastra-ai/mastra/commit/69e0a878896a2da9494945d86e056a5f8f05b851), [`cd29ad2`](https://github.com/mastra-ai/mastra/commit/cd29ad23a255534e8191f249593849ed29160886), [`bdf4d8c`](https://github.com/mastra-ai/mastra/commit/bdf4d8cdc656d8a2c21d81834bfa3bfa70f56c16), [`854e3da`](https://github.com/mastra-ai/mastra/commit/854e3dad5daac17a91a20986399d3a51f54bf68b), [`ce18d38`](https://github.com/mastra-ai/mastra/commit/ce18d38678c65870350d123955014a8432075fd9), [`3cf540b`](https://github.com/mastra-ai/mastra/commit/3cf540b9fbfea8f4fc8d3a2319a4e6c0b0cbfd52), [`352a5d6`](https://github.com/mastra-ai/mastra/commit/352a5d625cfe09849b21e8f52a24c9f0366759d5), [`1c6ce51`](https://github.com/mastra-ai/mastra/commit/1c6ce51f875915ab57fd36873623013699a2a65d), [`898a972`](https://github.com/mastra-ai/mastra/commit/898a9727d286c2510d6b702dfd367e6aaf5c6b0f), [`0793497`](https://github.com/mastra-ai/mastra/commit/079349753620c40246ffd673e3f9d7d9820beff3), [`09e4bae`](https://github.com/mastra-ai/mastra/commit/09e4bae18dd5357d2ae078a4a95a2af32168ab08), [`2c212e7`](https://github.com/mastra-ai/mastra/commit/2c212e704c90e2db83d4109e62c03f0f6ebd2667), [`a97003a`](https://github.com/mastra-ai/mastra/commit/a97003aa1cf2f4022a41912324a1e77263b326b8), [`66741d1`](https://github.com/mastra-ai/mastra/commit/66741d1a99c4f42cf23a16109939e8348ac6852e), [`ccc141e`](https://github.com/mastra-ai/mastra/commit/ccc141ed27da0abc3a3fc28e9e5128152e8e37f4), [`27c0009`](https://github.com/mastra-ai/mastra/commit/27c0009777a6073d7631b0eb7b481d94e165b5ca), [`01f8878`](https://github.com/mastra-ai/mastra/commit/01f88783de25e4de048c1c8aace43e26373c6ea5), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`b7e17d3`](https://github.com/mastra-ai/mastra/commit/b7e17d3f5390bb5a71efc112204413656fcdc18d), [`4c77209`](https://github.com/mastra-ai/mastra/commit/4c77209e6c11678808b365d545845918c40045c8), [`a854ede`](https://github.com/mastra-ai/mastra/commit/a854ede62bf5ac0945a624ac48913dd69c73aabf), [`fe3b897`](https://github.com/mastra-ai/mastra/commit/fe3b897c2ccbcd2b10e81b099438c7337feddf89), [`c576fc0`](https://github.com/mastra-ai/mastra/commit/c576fc0b100b2085afded91a37c97a0ea0ec09c7), [`3defc80`](https://github.com/mastra-ai/mastra/commit/3defc80cf2b88a1b7fc1cc4ddcb91e982a614609), [`00123ba`](https://github.com/mastra-ai/mastra/commit/00123ba96dc9e5cd0b110420ebdba56d8f237b25), [`16153fe`](https://github.com/mastra-ai/mastra/commit/16153fe7eb13c99401f48e6ca32707c965ee28b9), [`9f4a683`](https://github.com/mastra-ai/mastra/commit/9f4a6833e88b52574665c028fd5508ad5c2f6004), [`bc94344`](https://github.com/mastra-ai/mastra/commit/bc943444a1342d8a662151b7bce1df7dae32f59c), [`4ca4306`](https://github.com/mastra-ai/mastra/commit/4ca430614daa5fa04730205a302a43bf4accfe9f), [`cccf9c8`](https://github.com/mastra-ai/mastra/commit/cccf9c8b2d2dfc1a5e63919395b83d78c89682a0), [`29c4309`](https://github.com/mastra-ai/mastra/commit/29c4309f818b24304c041bcb4a8f19b5f13f6b62), [`16785ce`](https://github.com/mastra-ai/mastra/commit/16785ced928f6f22638f4488cf8a125d99211799), [`57d157f`](https://github.com/mastra-ai/mastra/commit/57d157f0b163a95c3e6c9eae31bdb11d1bfc64f9), [`61a5705`](https://github.com/mastra-ai/mastra/commit/61a570551278b6743e64243b3ce7d73de915ca8a), [`903f67d`](https://github.com/mastra-ai/mastra/commit/903f67d184504a273893818c02b961f5423a79ad), [`d827d08`](https://github.com/mastra-ai/mastra/commit/d827d0808ffe1f3553a84e975806cc989b9735dd), [`4524734`](https://github.com/mastra-ai/mastra/commit/45247343e384717a7c8404296275c56201d6470f), [`2a90c55`](https://github.com/mastra-ai/mastra/commit/2a90c55a86a9210697d5adaab5ee94584b079adc), [`2a53598`](https://github.com/mastra-ai/mastra/commit/2a53598c6d8cfeb904a7fc74e57e526d751c8fa6), [`db70a48`](https://github.com/mastra-ai/mastra/commit/db70a48aeeeeb8e5f92007e8ede52c364ce15287), [`261473a`](https://github.com/mastra-ai/mastra/commit/261473ac637e633064a22076671e2e02b002214d), [`eb09742`](https://github.com/mastra-ai/mastra/commit/eb09742197f66c4c38154c3beec78313e69760b2), [`de8239b`](https://github.com/mastra-ai/mastra/commit/de8239bdcb1d8c0cfa06da21f1569912a66bbc8a), [`23c10a1`](https://github.com/mastra-ai/mastra/commit/23c10a1efdd9a693c405511ab2dc8a1236603162), [`b5e6cd7`](https://github.com/mastra-ai/mastra/commit/b5e6cd77fc8c8e64e0494c1d06cee3d84e795d1e), [`f0fdc14`](https://github.com/mastra-ai/mastra/commit/f0fdc14ee233d619266b3d2bbdeea7d25cfc6d13), [`c7cd3c7`](https://github.com/mastra-ai/mastra/commit/c7cd3c7a187d7aaf79e2ca139de328bf609a14b4), [`db18bc9`](https://github.com/mastra-ai/mastra/commit/db18bc9c3825e2c1a0ad9a183cc9935f6691bfa1), [`96d35f6`](https://github.com/mastra-ai/mastra/commit/96d35f61376bc2b1bf148648a2c1985bd51bef55), [`9b37b56`](https://github.com/mastra-ai/mastra/commit/9b37b565e1f2a76c24f728945cc740c2b09be9da), [`01b20fe`](https://github.com/mastra-ai/mastra/commit/01b20fefb7c67c2b7d79417598ef4e60256d1225), [`0dbf199`](https://github.com/mastra-ai/mastra/commit/0dbf199110f22192ce5c95b1c8148d4872b4d119), [`5cbe88a`](https://github.com/mastra-ai/mastra/commit/5cbe88aefbd9f933bca669fd371ea36bf939ac6d), [`41a23c3`](https://github.com/mastra-ai/mastra/commit/41a23c32f9877d71810f37e24930515df2ff7a0f), [`a1bd7b8`](https://github.com/mastra-ai/mastra/commit/a1bd7b8571db16b94eb01588f451a74758c96d65), [`d78b38d`](https://github.com/mastra-ai/mastra/commit/d78b38d898fce285260d3bbb4befade54331617f), [`a0a5b4b`](https://github.com/mastra-ai/mastra/commit/a0a5b4bbebe6c701ebbadf744873aa0d5ca01371), [`ce0a73a`](https://github.com/mastra-ai/mastra/commit/ce0a73abeaa75b10ca38f9e40a255a645d50ebfb), [`5d171ad`](https://github.com/mastra-ai/mastra/commit/5d171ad9ef340387276b77c2bb3e83e83332d729), [`0633100`](https://github.com/mastra-ai/mastra/commit/0633100a911ad22f5256471bdf753da21c104742), [`3759cb0`](https://github.com/mastra-ai/mastra/commit/3759cb064935b5f74c65ac2f52a1145f7352899d), [`c710c16`](https://github.com/mastra-ai/mastra/commit/c710c1652dccfdc4111c8412bca7a6bb1d48b441), [`354ad0b`](https://github.com/mastra-ai/mastra/commit/354ad0b7b1b8183ac567f236a884fc7ede6d7138), [`cfae733`](https://github.com/mastra-ai/mastra/commit/cfae73394f4920635e6c919c8e95ff9a0788e2e5), [`e3dfda7`](https://github.com/mastra-ai/mastra/commit/e3dfda7b11bf3b8c4bb55637028befb5f387fc74), [`69ea758`](https://github.com/mastra-ai/mastra/commit/69ea758358edd7117f191c2e69c8bb5fc79e7a1a), [`651e772`](https://github.com/mastra-ai/mastra/commit/651e772eb1475fb13e126d3fcc01751297a88214), [`a02e542`](https://github.com/mastra-ai/mastra/commit/a02e542d23179bad250b044b17ff023caa61739f), [`f03ae60`](https://github.com/mastra-ai/mastra/commit/f03ae60500fe350c9d828621006cdafe1975fdd8), [`6b3ba91`](https://github.com/mastra-ai/mastra/commit/6b3ba91494cc10394df96782f349a4f7b1e152cc), [`a372c64`](https://github.com/mastra-ai/mastra/commit/a372c640ad1fd12e8f0613cebdc682fc156b4d95), [`993ad98`](https://github.com/mastra-ai/mastra/commit/993ad98d7ad3bebda9ecef5fec5c94349a0d04bc), [`676ccc7`](https://github.com/mastra-ai/mastra/commit/676ccc7fe92468d2d45d39c31a87825c89fd1ea0), [`3ff2c17`](https://github.com/mastra-ai/mastra/commit/3ff2c17a58e312fad5ea37377262c12d92ca0908), [`d1e74a0`](https://github.com/mastra-ai/mastra/commit/d1e74a0a293866dece31022047f5dbab65a304d0), [`844ea5d`](https://github.com/mastra-ai/mastra/commit/844ea5dc0c248961e7bf73629ae7dcff503e853c), [`398fde3`](https://github.com/mastra-ai/mastra/commit/398fde3f39e707cda79372cdae8f9870e3b57c8d), [`c10398d`](https://github.com/mastra-ai/mastra/commit/c10398d5b88f1d4af556f4267ff06f1d11e89179), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`b61b93f`](https://github.com/mastra-ai/mastra/commit/b61b93f9e058b11dd2eec169853175d31dbdd567), [`bae33d9`](https://github.com/mastra-ai/mastra/commit/bae33d91a63fbb64d1e80519e1fc1acaed1e9013), [`39e7869`](https://github.com/mastra-ai/mastra/commit/39e7869bc7d0ee391077ce291474d8a84eedccff), [`0d7618b`](https://github.com/mastra-ai/mastra/commit/0d7618bc650bf2800934b243eca5648f4aeed9c2), [`7b763e5`](https://github.com/mastra-ai/mastra/commit/7b763e52fc3eaf699c2a99f2adf418dd46e4e9a5), [`d36cfbb`](https://github.com/mastra-ai/mastra/commit/d36cfbbb6565ba5f827883cc9bb648eb14befdc1), [`8846867`](https://github.com/mastra-ai/mastra/commit/8846867ffa9a3746767618e314bebac08eb77d87), [`c0b731f`](https://github.com/mastra-ai/mastra/commit/c0b731fb27d712dc8582e846df5c0332a6a0c5ba), [`5761926`](https://github.com/mastra-ai/mastra/commit/57619260c4a2cdd598763abbacd90de594c6bc76), [`3697853`](https://github.com/mastra-ai/mastra/commit/3697853deeb72017d90e0f38a93c1e29221aeca0), [`c900fdd`](https://github.com/mastra-ai/mastra/commit/c900fdd504c41348efdffb205cfe80d48c38fa33), [`b2e45ec`](https://github.com/mastra-ai/mastra/commit/b2e45eca727a8db01a81ba93f1a5219c7183c839), [`5d7000f`](https://github.com/mastra-ai/mastra/commit/5d7000f757cd65ea9dc5b05e662fd83dfd44e932), [`43ca8f2`](https://github.com/mastra-ai/mastra/commit/43ca8f2c7334851cc7b4d3d2f037d8784bfbdd5f), [`d6d49f7`](https://github.com/mastra-ai/mastra/commit/d6d49f7b8714fa19a52ff9c7cf7fb7e73751901e), [`00c2387`](https://github.com/mastra-ai/mastra/commit/00c2387f5f04a365316f851e58666ac43f8c4edf), [`a534e95`](https://github.com/mastra-ai/mastra/commit/a534e9591f83b3cc1ebff99c67edf4cda7bf81d3), [`9d0e7fe`](https://github.com/mastra-ai/mastra/commit/9d0e7feca8ed98de959f53476ee1456073673348), [`53d927c`](https://github.com/mastra-ai/mastra/commit/53d927cc6f03bff33655b7e2b788da445a08731d), [`ad6250d`](https://github.com/mastra-ai/mastra/commit/ad6250dbdaad927e29f74a27b83f6c468b50a705), [`604a79f`](https://github.com/mastra-ai/mastra/commit/604a79fecf276e26a54a3fe01bb94e65315d2e0e), [`42a42cf`](https://github.com/mastra-ai/mastra/commit/42a42cf3132b9786feecbb8c13c583dce5b0e198), [`3f2faf2`](https://github.com/mastra-ai/mastra/commit/3f2faf2e2d685d6c053cc5af1bf9fedf267b2ce5), [`22f64bc`](https://github.com/mastra-ai/mastra/commit/22f64bc1d37149480b58bf2fefe35b79a1e3e7d5), [`847c212`](https://github.com/mastra-ai/mastra/commit/847c212caba7df0d6f2fc756b494ac3c75c3720d), [`3a73998`](https://github.com/mastra-ai/mastra/commit/3a73998fa4ebeb7f3dc9301afe78095fc63e7999), [`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc), [`ae08bf0`](https://github.com/mastra-ai/mastra/commit/ae08bf0ebc6a4e4da992b711c4a389c32ba84cf4), [`0bed332`](https://github.com/mastra-ai/mastra/commit/0bed332843f627202c6520eaf671771313cd20f3), [`887f0b4`](https://github.com/mastra-ai/mastra/commit/887f0b4746cdbd7cb7d6b17ac9f82aeb58037ea5), [`2562143`](https://github.com/mastra-ai/mastra/commit/256214336b4faa78646c9c1776612393790d8784), [`b7959e6`](https://github.com/mastra-ai/mastra/commit/b7959e6e25a46b480f9ea2217c4c6c588c423791), [`a7ce182`](https://github.com/mastra-ai/mastra/commit/a7ce1822a8785ce45d62dd5c911af465e144f7d7), [`bda6370`](https://github.com/mastra-ai/mastra/commit/bda637009360649aaf579919e7873e33553c273e), [`d7acd8e`](https://github.com/mastra-ai/mastra/commit/d7acd8e987b5d7eff4fd98b0906c17c06a2e83d5), [`c7f1f7d`](https://github.com/mastra-ai/mastra/commit/c7f1f7d24f61f247f018cc2d1f33bf63212959a7), [`0bddc6d`](https://github.com/mastra-ai/mastra/commit/0bddc6d8dbd6f6008c0cba2e4960a2da75a55af1), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141), [`735d8c1`](https://github.com/mastra-ai/mastra/commit/735d8c1c0d19fbc09e6f8b66cf41bc7655993838), [`7907fd1`](https://github.com/mastra-ai/mastra/commit/7907fd1c5059813b7b870b81ca71041dc807331b), [`acf322e`](https://github.com/mastra-ai/mastra/commit/acf322e0f1fd0189684cf529d91c694bea918a45), [`2ca67cc`](https://github.com/mastra-ai/mastra/commit/2ca67cc3bb1f6a617353fdcab197d9efebe60d6f), [`e16d553`](https://github.com/mastra-ai/mastra/commit/e16d55338403c7553531cc568125c63d53653dff), [`6f941c4`](https://github.com/mastra-ai/mastra/commit/6f941c438ca5f578619788acc7608fc2e23bd176), [`c942802`](https://github.com/mastra-ai/mastra/commit/c942802a477a925b01859a7b8688d4355715caaa), [`4f0331a`](https://github.com/mastra-ai/mastra/commit/4f0331a79bf6eb5ee598a5086e55de4b5a0ada03), [`a0c8c1b`](https://github.com/mastra-ai/mastra/commit/a0c8c1b87d4fee252aebda73e8637fbe01d761c9), [`1d877b8`](https://github.com/mastra-ai/mastra/commit/1d877b8d7b536a251c1a7a18db7ddcf4f68d6f8b), [`cc34739`](https://github.com/mastra-ai/mastra/commit/cc34739c34b6266a91bea561119240a7acf47887), [`c218bd3`](https://github.com/mastra-ai/mastra/commit/c218bd3759e32423735b04843a09404572631014), [`9e67002`](https://github.com/mastra-ai/mastra/commit/9e67002b52c9be19936c420a489dbee9c5fd6a78), [`2c4438b`](https://github.com/mastra-ai/mastra/commit/2c4438b87817ab7eed818c7990fef010475af1a3), [`35edc49`](https://github.com/mastra-ai/mastra/commit/35edc49ac0556db609189641d6341e76771b81fc), [`4d59f58`](https://github.com/mastra-ai/mastra/commit/4d59f58de2d90d6e2810a19d4518e38ddddb9038), [`ef11a61`](https://github.com/mastra-ai/mastra/commit/ef11a61920fa0ed08a5b7ceedd192875af119749), [`2b8893c`](https://github.com/mastra-ai/mastra/commit/2b8893cb108ef9acb72ee7835cd625610d2c1a4a), [`8e5c75b`](https://github.com/mastra-ai/mastra/commit/8e5c75bdb1d08a42d45309a4c72def4b6890230f), [`e1bb9c9`](https://github.com/mastra-ai/mastra/commit/e1bb9c94b4eb68b019ae275981be3feb769b5365), [`351a11f`](https://github.com/mastra-ai/mastra/commit/351a11fcaf2ed1008977fa9b9a489fc422e51cd4), [`e59e0d3`](https://github.com/mastra-ai/mastra/commit/e59e0d32afb5fcf2c9f3c00c8f81f6c21d3a63fa), [`465ac05`](https://github.com/mastra-ai/mastra/commit/465ac0526a91d175542091c675181f1a96c98c46), [`fa8409b`](https://github.com/mastra-ai/mastra/commit/fa8409bc39cfd8ba6643b9db5269b90b22e2a2f7), [`8a000da`](https://github.com/mastra-ai/mastra/commit/8a000da0c09c679a2312f6b3aa05b2ca78ca7393), [`e7266a2`](https://github.com/mastra-ai/mastra/commit/e7266a278db02035c97a5e9cd9d1669a6b7a535d), [`173c535`](https://github.com/mastra-ai/mastra/commit/173c535c0645b0da404fe09f003778f0b0d4e019), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db)]:
640
+ - @mastra/core@0.0.0-elated-armadillo-be37a1-20251219210627
641
+
642
+ ## 1.0.0-beta.14
643
+
644
+ ### Patch Changes
645
+
646
+ - Add execution metadata to A2A message/send responses. The A2A protocol now returns detailed execution information including tool calls, tool results, token usage, and finish reason in the task metadata. This allows clients to inspect which tools were invoked during agent execution and access execution statistics without additional queries. ([#11241](https://github.com/mastra-ai/mastra/pull/11241))
647
+
648
+ - feat: Add field filtering and nested workflow control to workflow execution result endpoint ([#11246](https://github.com/mastra-ai/mastra/pull/11246))
649
+
650
+ Adds two optional query parameters to `/api/workflows/:workflowId/runs/:runId/execution-result` endpoint:
651
+ - `fields`: Request only specific fields (e.g., `status`, `result`, `error`)
652
+ - `withNestedWorkflows`: Control whether to fetch nested workflow data
653
+
654
+ This significantly reduces response payload size and improves response times for large workflows.
655
+
656
+ ## Server Endpoint Usage
657
+
658
+ ```http
659
+ # Get only status (minimal payload - fastest)
660
+ GET /api/workflows/:workflowId/runs/:runId/execution-result?fields=status
661
+
662
+ # Get status and result
663
+ GET /api/workflows/:workflowId/runs/:runId/execution-result?fields=status,result
664
+
665
+ # Get all fields but without nested workflow data (faster)
666
+ GET /api/workflows/:workflowId/runs/:runId/execution-result?withNestedWorkflows=false
667
+
668
+ # Get only specific fields without nested workflow data
669
+ GET /api/workflows/:workflowId/runs/:runId/execution-result?fields=status,steps&withNestedWorkflows=false
670
+
671
+ # Get full data (default behavior)
672
+ GET /api/workflows/:workflowId/runs/:runId/execution-result
673
+ ```
674
+
675
+ ## Client SDK Usage
676
+
677
+ ```typescript
678
+ import { MastraClient } from '@mastra/client-js';
679
+
680
+ const client = new MastraClient({ baseUrl: 'http://localhost:4111' });
681
+ const workflow = client.getWorkflow('myWorkflow');
682
+
683
+ // Get only status (minimal payload - fastest)
684
+ const statusOnly = await workflow.runExecutionResult(runId, {
685
+ fields: ['status'],
686
+ });
687
+ console.log(statusOnly.status); // 'success' | 'failed' | 'running' | etc.
688
+
689
+ // Get status and result
690
+ const statusAndResult = await workflow.runExecutionResult(runId, {
691
+ fields: ['status', 'result'],
692
+ });
693
+
694
+ // Get all fields but without nested workflow data (faster)
695
+ const resultWithoutNested = await workflow.runExecutionResult(runId, {
696
+ withNestedWorkflows: false,
697
+ });
698
+
699
+ // Get specific fields without nested workflow data
700
+ const optimized = await workflow.runExecutionResult(runId, {
701
+ fields: ['status', 'steps'],
702
+ withNestedWorkflows: false,
703
+ });
704
+
705
+ // Get full execution result (default behavior)
706
+ const fullResult = await workflow.runExecutionResult(runId);
707
+ ```
708
+
709
+ ## Core API Changes
710
+
711
+ The `Workflow.getWorkflowRunExecutionResult` method now accepts an options object:
712
+
713
+ ```typescript
714
+ await workflow.getWorkflowRunExecutionResult(runId, {
715
+ withNestedWorkflows: false, // default: true, set to false to skip nested workflow data
716
+ fields: ['status', 'result'], // optional field filtering
717
+ });
718
+ ```
719
+
720
+ ## Inngest Compatibility
721
+
722
+ The `@mastra/inngest` package has been updated to use the new options object API. This is a non-breaking internal change - no action required from inngest workflow users.
723
+
724
+ ## Performance Impact
725
+
726
+ For workflows with large step outputs:
727
+ - Requesting only `status`: ~99% reduction in payload size
728
+ - Requesting `status,result,error`: ~95% reduction in payload size
729
+ - Using `withNestedWorkflows=false`: Avoids expensive nested workflow data fetching
730
+ - Combining both: Maximum performance optimization
731
+
732
+ - Updated dependencies [[`4f94ed8`](https://github.com/mastra-ai/mastra/commit/4f94ed8177abfde3ec536e3574883e075423350c), [`ac3cc23`](https://github.com/mastra-ai/mastra/commit/ac3cc2397d1966bc0fc2736a223abc449d3c7719), [`a86f4df`](https://github.com/mastra-ai/mastra/commit/a86f4df0407311e0d2ea49b9a541f0938810d6a9), [`029540c`](https://github.com/mastra-ai/mastra/commit/029540ca1e582fc2dd8d288ecd4a9b0f31a954ef), [`66741d1`](https://github.com/mastra-ai/mastra/commit/66741d1a99c4f42cf23a16109939e8348ac6852e), [`01b20fe`](https://github.com/mastra-ai/mastra/commit/01b20fefb7c67c2b7d79417598ef4e60256d1225), [`0dbf199`](https://github.com/mastra-ai/mastra/commit/0dbf199110f22192ce5c95b1c8148d4872b4d119), [`a7ce182`](https://github.com/mastra-ai/mastra/commit/a7ce1822a8785ce45d62dd5c911af465e144f7d7)]:
733
+ - @mastra/core@1.0.0-beta.14
734
+
735
+ ## 1.0.0-beta.13
736
+
737
+ ### Patch Changes
738
+
739
+ - Updated dependencies [[`919a22b`](https://github.com/mastra-ai/mastra/commit/919a22b25876f9ed5891efe5facbe682c30ff497)]:
740
+ - @mastra/core@1.0.0-beta.13
741
+
742
+ ## 1.0.0-beta.12
743
+
744
+ ### Patch Changes
745
+
746
+ - Add resourceId to workflow routes ([#11166](https://github.com/mastra-ai/mastra/pull/11166))
747
+
748
+ - Fix MastraServer.tools typing to accept tools with input schemas ([`5118f38`](https://github.com/mastra-ai/mastra/commit/5118f384a70b1166012fde3b901f3227870b1009))
749
+
750
+ Fixes issue #11185 where `MastraServer.tools` was rejecting tools created with `createTool({ inputSchema })`. Changed the tools property type from `Record<string, Tool>` to `ToolsInput` to accept tools with any schema types (input, output, or none), as well as Vercel AI SDK tools and provider-defined tools.
751
+
752
+ Tools created with `createTool({ inputSchema: z.object(...) })` now work without TypeScript errors.
753
+
754
+ - Remove deprecated playground-only prompt generation handler (functionality moved to @mastra/server) ([#11074](https://github.com/mastra-ai/mastra/pull/11074))
755
+
756
+ 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
757
+
758
+ Add missing `/api/agents/:agentId/instructions/enhance` endpoint that was referenced by `@mastra/client-js` and `@mastra/playground-ui`
759
+
760
+ - Updated dependencies [[`d5ed981`](https://github.com/mastra-ai/mastra/commit/d5ed981c8701c1b8a27a5f35a9a2f7d9244e695f), [`9650cce`](https://github.com/mastra-ai/mastra/commit/9650cce52a1d917ff9114653398e2a0f5c3ba808), [`932d63d`](https://github.com/mastra-ai/mastra/commit/932d63dd51be9c8bf1e00e3671fe65606c6fb9cd), [`b760b73`](https://github.com/mastra-ai/mastra/commit/b760b731aca7c8a3f041f61d57a7f125ae9cb215), [`695a621`](https://github.com/mastra-ai/mastra/commit/695a621528bdabeb87f83c2277cf2bb084c7f2b4), [`2b459f4`](https://github.com/mastra-ai/mastra/commit/2b459f466fd91688eeb2a44801dc23f7f8a887ab), [`486352b`](https://github.com/mastra-ai/mastra/commit/486352b66c746602b68a95839f830de14c7fb8c0), [`09e4bae`](https://github.com/mastra-ai/mastra/commit/09e4bae18dd5357d2ae078a4a95a2af32168ab08), [`24b76d8`](https://github.com/mastra-ai/mastra/commit/24b76d8e17656269c8ed09a0c038adb9cc2ae95a), [`243a823`](https://github.com/mastra-ai/mastra/commit/243a8239c5906f5c94e4f78b54676793f7510ae3), [`486352b`](https://github.com/mastra-ai/mastra/commit/486352b66c746602b68a95839f830de14c7fb8c0), [`c61fac3`](https://github.com/mastra-ai/mastra/commit/c61fac3add96f0dcce0208c07415279e2537eb62), [`6f14f70`](https://github.com/mastra-ai/mastra/commit/6f14f706ccaaf81b69544b6c1b75ab66a41e5317), [`09e4bae`](https://github.com/mastra-ai/mastra/commit/09e4bae18dd5357d2ae078a4a95a2af32168ab08), [`4524734`](https://github.com/mastra-ai/mastra/commit/45247343e384717a7c8404296275c56201d6470f), [`2a53598`](https://github.com/mastra-ai/mastra/commit/2a53598c6d8cfeb904a7fc74e57e526d751c8fa6), [`c7cd3c7`](https://github.com/mastra-ai/mastra/commit/c7cd3c7a187d7aaf79e2ca139de328bf609a14b4), [`847c212`](https://github.com/mastra-ai/mastra/commit/847c212caba7df0d6f2fc756b494ac3c75c3720d), [`6f941c4`](https://github.com/mastra-ai/mastra/commit/6f941c438ca5f578619788acc7608fc2e23bd176)]:
761
+ - @mastra/core@1.0.0-beta.12
762
+
763
+ ## 1.0.0-beta.11
764
+
765
+ ### Patch Changes
766
+
767
+ - Fix type safety for message ordering - restrict `orderBy` to only accept `'createdAt'` field ([#11069](https://github.com/mastra-ai/mastra/pull/11069))
768
+
769
+ Messages don't have an `updatedAt` field, but the previous type allowed ordering by it, which would return empty results. This change adds compile-time type safety by making `StorageOrderBy` generic and restricting `StorageListMessagesInput.orderBy` to only accept `'createdAt'`. The API validation schemas have also been updated to reject invalid orderBy values at runtime.
770
+
771
+ - Support new Workflow tripwire run status. Tripwires that are thrown from within a workflow will now bubble up and return a graceful state with information about tripwires. ([#10947](https://github.com/mastra-ai/mastra/pull/10947))
772
+
773
+ When a workflow contains an agent step that triggers a tripwire, the workflow returns with `status: 'tripwire'` and includes tripwire details:
774
+
775
+ ```typescript showLineNumbers copy
776
+ const run = await workflow.createRun();
777
+ const result = await run.start({ inputData: { message: 'Hello' } });
778
+
779
+ if (result.status === 'tripwire') {
780
+ console.log('Workflow terminated by tripwire:', result.tripwire?.reason);
781
+ console.log('Processor ID:', result.tripwire?.processorId);
782
+ console.log('Retry requested:', result.tripwire?.retry);
783
+ }
784
+ ```
785
+
786
+ Adds new UI state for tripwire in agent chat and workflow UI.
787
+
788
+ This is distinct from `status: 'failed'` which indicates an unexpected error. A tripwire status means a processor intentionally stopped execution (e.g., for content moderation).
789
+
790
+ - Updated dependencies [[`38380b6`](https://github.com/mastra-ai/mastra/commit/38380b60fca905824bdf6b43df307a58efb1aa15), [`798d0c7`](https://github.com/mastra-ai/mastra/commit/798d0c740232653b1d754870e6b43a55c364ffe2), [`ffe84d5`](https://github.com/mastra-ai/mastra/commit/ffe84d54f3b0f85167fe977efd027dba027eb998), [`2c212e7`](https://github.com/mastra-ai/mastra/commit/2c212e704c90e2db83d4109e62c03f0f6ebd2667), [`4ca4306`](https://github.com/mastra-ai/mastra/commit/4ca430614daa5fa04730205a302a43bf4accfe9f), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db)]:
791
+ - @mastra/core@1.0.0-beta.11
792
+
793
+ ## 1.0.0-beta.10
794
+
795
+ ### Patch Changes
796
+
797
+ - ### Breaking Changes ([#11028](https://github.com/mastra-ai/mastra/pull/11028))
798
+ - Renamed `RuntimeContext` type to `ServerContext` to avoid confusion with the user-facing `RequestContext` (previously called `RuntimeContext`)
799
+ - Removed `playground` and `isDev` options from server adapter constructors - these only set context variables without any actual functionality
800
+
801
+ ### Changes
802
+
803
+ **@mastra/server**
804
+ - Renamed `RuntimeContext` type to `ServerContext` in route handler types
805
+ - Renamed `createTestRuntimeContext` to `createTestServerContext` in test utilities
806
+ - Renamed `isPlayground` parameter to `isStudio` in `formatAgent` function
807
+
808
+ **@mastra/hono**
809
+ - Removed `playground` and `isDev` from `HonoVariables` type
810
+ - Removed setting of `playground` and `isDev` context variables in middleware
811
+
812
+ **@mastra/express**
813
+ - Removed `playground` and `isDev` from `Express.Locals` interface
814
+ - Removed setting of `playground` and `isDev` in response locals
815
+
816
+ - Add delete workflow run API ([#10991](https://github.com/mastra-ai/mastra/pull/10991))
817
+
818
+ ```typescript
819
+ await workflow.deleteWorkflowRunById(runId);
820
+ ```
821
+
822
+ - Updated dependencies [[`edb07e4`](https://github.com/mastra-ai/mastra/commit/edb07e49283e0c28bd094a60e03439bf6ecf0221), [`b7e17d3`](https://github.com/mastra-ai/mastra/commit/b7e17d3f5390bb5a71efc112204413656fcdc18d), [`261473a`](https://github.com/mastra-ai/mastra/commit/261473ac637e633064a22076671e2e02b002214d), [`5d7000f`](https://github.com/mastra-ai/mastra/commit/5d7000f757cd65ea9dc5b05e662fd83dfd44e932), [`4f0331a`](https://github.com/mastra-ai/mastra/commit/4f0331a79bf6eb5ee598a5086e55de4b5a0ada03), [`8a000da`](https://github.com/mastra-ai/mastra/commit/8a000da0c09c679a2312f6b3aa05b2ca78ca7393)]:
823
+ - @mastra/core@1.0.0-beta.10
824
+
825
+ ## 1.0.0-beta.9
826
+
827
+ ### Minor Changes
828
+
829
+ - Add stored agents support ([#10953](https://github.com/mastra-ai/mastra/pull/10953))
830
+
831
+ Agents can now be stored in the database and loaded at runtime. This lets you persist agent configurations and dynamically create executable Agent instances from storage.
832
+
833
+ ```typescript
834
+ import { Mastra } from '@mastra/core';
835
+ import { LibSQLStore } from '@mastra/libsql';
836
+
837
+ const mastra = new Mastra({
838
+ storage: new LibSQLStore({ url: ':memory:' }),
839
+ tools: { myTool },
840
+ scorers: { myScorer },
841
+ });
842
+
843
+ // Create agent in storage via API or directly
844
+ await mastra.getStorage().createAgent({
845
+ agent: {
846
+ id: 'my-agent',
847
+ name: 'My Agent',
848
+ instructions: 'You are helpful',
849
+ model: { provider: 'openai', name: 'gpt-4' },
850
+ tools: { myTool: {} },
851
+ scorers: { myScorer: { sampling: { type: 'ratio', rate: 0.5 } } },
852
+ },
853
+ });
854
+
855
+ // Load and use the agent
856
+ const agent = await mastra.getStoredAgentById('my-agent');
857
+ const response = await agent.generate({ messages: 'Hello!' });
858
+
859
+ // List all stored agents with pagination
860
+ const { agents, total, hasMore } = await mastra.listStoredAgents({
861
+ page: 0,
862
+ perPage: 10,
863
+ });
864
+ ```
865
+
866
+ Also adds a memory registry to Mastra so stored agents can reference memory instances by key.
867
+
868
+ ### Patch Changes
869
+
870
+ - Updated dependencies [[`72df8ae`](https://github.com/mastra-ai/mastra/commit/72df8ae595584cdd7747d5c39ffaca45e4507227), [`9198899`](https://github.com/mastra-ai/mastra/commit/91988995c427b185c33714b7f3be955367911324), [`653e65a`](https://github.com/mastra-ai/mastra/commit/653e65ae1f9502c2958a32f47a5a2df11e612a92), [`c6fd6fe`](https://github.com/mastra-ai/mastra/commit/c6fd6fedd09e9cf8004b03a80925f5e94826ad7e), [`0bed332`](https://github.com/mastra-ai/mastra/commit/0bed332843f627202c6520eaf671771313cd20f3)]:
871
+ - @mastra/core@1.0.0-beta.9
872
+
873
+ ## 1.0.0-beta.8
874
+
875
+ ### Patch Changes
876
+
877
+ - Updated dependencies [[`0d41fe2`](https://github.com/mastra-ai/mastra/commit/0d41fe245355dfc66d61a0d9c85d9400aac351ff), [`6b3ba91`](https://github.com/mastra-ai/mastra/commit/6b3ba91494cc10394df96782f349a4f7b1e152cc), [`7907fd1`](https://github.com/mastra-ai/mastra/commit/7907fd1c5059813b7b870b81ca71041dc807331b)]:
878
+ - @mastra/core@1.0.0-beta.8
879
+
880
+ ## 1.0.0-beta.7
881
+
882
+ ### Patch Changes
883
+
884
+ - fix: standardize pagination params to page/perPage with backwards compatibility for limit/offset ([#10790](https://github.com/mastra-ai/mastra/pull/10790))
885
+ - Server now accepts both `page`/`perPage` and legacy `limit`/`offset` params for workflow runs and MCP server listing endpoints
886
+ - Client SDK sends both param formats to support older server versions
887
+ - Added `createCombinedPaginationSchema` helper for endpoints needing backwards compatibility
888
+ - Marked `limit` and `offset` as deprecated in client types
889
+
890
+ - feat: Add partial response support for agent and workflow list endpoints ([#10886](https://github.com/mastra-ai/mastra/pull/10886))
891
+
892
+ Add optional `partial` query parameter to `/api/agents` and `/api/workflows` endpoints to return minimal data without schemas, reducing payload size for list views:
893
+ - When `partial=true`: tool schemas (inputSchema, outputSchema) are omitted
894
+ - When `partial=true`: workflow steps are replaced with stepCount integer
895
+ - When `partial=true`: workflow root schemas (inputSchema, outputSchema) are omitted
896
+ - Maintains backward compatibility when partial parameter is not provided
897
+
898
+ ## Server Endpoint Usage
899
+
900
+ ```http
901
+ # Get partial agent data (no tool schemas)
902
+ GET /api/agents?partial=true
903
+
904
+ # Get full agent data (default behavior)
905
+ GET /api/agents
906
+
907
+ # Get partial workflow data (stepCount instead of steps, no schemas)
908
+ GET /api/workflows?partial=true
909
+
910
+ # Get full workflow data (default behavior)
911
+ GET /api/workflows
912
+ ```
913
+
914
+ ## Client SDK Usage
915
+
916
+ ```typescript
917
+ import { MastraClient } from '@mastra/client-js';
918
+
919
+ const client = new MastraClient({ baseUrl: 'http://localhost:4111' });
920
+
921
+ // Get partial agent list (smaller payload)
922
+ const partialAgents = await client.listAgents({ partial: true });
923
+
924
+ // Get full agent list with tool schemas
925
+ const fullAgents = await client.listAgents();
926
+
927
+ // Get partial workflow list (smaller payload)
928
+ const partialWorkflows = await client.listWorkflows({ partial: true });
929
+
930
+ // Get full workflow list with steps and schemas
931
+ const fullWorkflows = await client.listWorkflows();
932
+ ```
933
+
934
+ - Updated dependencies [[`3076c67`](https://github.com/mastra-ai/mastra/commit/3076c6778b18988ae7d5c4c5c466366974b2d63f), [`85d7ee1`](https://github.com/mastra-ai/mastra/commit/85d7ee18ff4e14d625a8a30ec6656bb49804989b), [`c6c1092`](https://github.com/mastra-ai/mastra/commit/c6c1092f8fbf76109303f69e000e96fd1960c4ce), [`81dc110`](https://github.com/mastra-ai/mastra/commit/81dc11008d147cf5bdc8996ead1aa61dbdebb6fc), [`7aedb74`](https://github.com/mastra-ai/mastra/commit/7aedb74883adf66af38e270e4068fd42e7a37036), [`8f02d80`](https://github.com/mastra-ai/mastra/commit/8f02d800777397e4b45d7f1ad041988a8b0c6630), [`d7aad50`](https://github.com/mastra-ai/mastra/commit/d7aad501ce61646b76b4b511e558ac4eea9884d0), [`ce0a73a`](https://github.com/mastra-ai/mastra/commit/ce0a73abeaa75b10ca38f9e40a255a645d50ebfb), [`a02e542`](https://github.com/mastra-ai/mastra/commit/a02e542d23179bad250b044b17ff023caa61739f), [`a372c64`](https://github.com/mastra-ai/mastra/commit/a372c640ad1fd12e8f0613cebdc682fc156b4d95), [`8846867`](https://github.com/mastra-ai/mastra/commit/8846867ffa9a3746767618e314bebac08eb77d87), [`42a42cf`](https://github.com/mastra-ai/mastra/commit/42a42cf3132b9786feecbb8c13c583dce5b0e198), [`ae08bf0`](https://github.com/mastra-ai/mastra/commit/ae08bf0ebc6a4e4da992b711c4a389c32ba84cf4), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141), [`1d877b8`](https://github.com/mastra-ai/mastra/commit/1d877b8d7b536a251c1a7a18db7ddcf4f68d6f8b)]:
935
+ - @mastra/core@1.0.0-beta.7
936
+
937
+ ## 1.0.0-beta.6
938
+
939
+ ### Patch Changes
940
+
941
+ - Unified MastraServer API with MCP transport routes ([#10644](https://github.com/mastra-ai/mastra/pull/10644))
942
+
943
+ **Breaking Changes:**
944
+ - Renamed `HonoServerAdapter` to `MastraServer` in `@mastra/hono`
945
+ - Renamed `ExpressServerAdapter` to `MastraServer` in `@mastra/express`
946
+ - Configuration now passed to constructor instead of separate method calls
947
+ - Renamed base class from `ServerAdapter` to `MastraServerBase` in `@mastra/server`
948
+
949
+ **New Features:**
950
+ - Added MCP transport routes (HTTP and SSE) to server adapters
951
+ - MCP endpoints available at `/api/mcp/:serverId/mcp` (HTTP) and `/api/mcp/:serverId/sse` (SSE)
952
+ - Added `express.json()` middleware compatibility for MCP routes
953
+ - Moved authentication helpers from deployer to `@mastra/server/auth`
954
+
955
+ **Testing:**
956
+ - Added shared MCP route and transport test suites in `@internal/server-adapter-test-utils`
957
+ - Added comprehensive MCP endpoint tests for both Hono and Express adapters
958
+ - Added GitHub Actions workflow for server adapter CI testing
959
+
960
+ - Allow direct access to server app handle directly from Mastra instance. ([#10598](https://github.com/mastra-ai/mastra/pull/10598))
961
+
962
+ ```ts
963
+ // Before: HTTP request to localhost
964
+ const response = await fetch(`http://localhost:5000/api/tools`);
965
+
966
+ // After: Direct call via app.fetch()
967
+ const app = mastra.getServerApp<Hono>();
968
+ const response = await app.fetch(new Request('http://internal/api/tools'));
969
+ ```
970
+
971
+ - Added `mastra.getServerApp<T>()` to access the underlying Hono/Express app
972
+ - Added `mastra.getMastraServer()` and `mastra.setMastraServer()` for adapter access
973
+ - Added `MastraServerBase` class in `@mastra/core/server` for adapter implementations
974
+ - Server adapters now auto-register with Mastra in their constructor
975
+
976
+ - fix(a2a): fix streaming and memory support for A2A protocol ([#10653](https://github.com/mastra-ai/mastra/pull/10653))
977
+
978
+ **Client (`@mastra/client-js`):**
979
+ - Fixed `sendStreamingMessage` to properly return a streaming response instead of attempting to parse it as JSON
980
+
981
+ **Server (`@mastra/server`):**
982
+ - Fixed A2A message handler to pass `contextId` as `threadId` for memory persistence across conversations
983
+ - Added support for user-provided `resourceId` via `params.metadata.resourceId` or `message.metadata.resourceId`, falling back to `agentId`
984
+
985
+ - Add stream data redaction to prevent sensitive information leaks in agent stream API responses. ([#10705](https://github.com/mastra-ai/mastra/pull/10705))
986
+
987
+ The `stream` API endpoint now automatically redacts `request` data from stream chunks (`step-start`, `step-finish`, `finish`) which could contain system prompts, tool definitions, and API keys. Redaction is enabled by default and can be disabled for debugging/internal services via `streamOptions.redact`.
988
+
989
+ - Updated dependencies [[`ac0d2f4`](https://github.com/mastra-ai/mastra/commit/ac0d2f4ff8831f72c1c66c2be809706d17f65789), [`1a0d3fc`](https://github.com/mastra-ai/mastra/commit/1a0d3fc811482c9c376cdf79ee615c23bae9b2d6), [`85a628b`](https://github.com/mastra-ai/mastra/commit/85a628b1224a8f64cd82ea7f033774bf22df7a7e), [`c237233`](https://github.com/mastra-ai/mastra/commit/c23723399ccedf7f5744b3f40997b79246bfbe64), [`15f9e21`](https://github.com/mastra-ai/mastra/commit/15f9e216177201ea6e3f6d0bfb063fcc0953444f), [`ff94dea`](https://github.com/mastra-ai/mastra/commit/ff94dea935f4e34545c63bcb6c29804732698809), [`5b2ff46`](https://github.com/mastra-ai/mastra/commit/5b2ff4651df70c146523a7fca773f8eb0a2272f8), [`db41688`](https://github.com/mastra-ai/mastra/commit/db4168806d007417e2e60b4f68656dca4e5f40c9), [`5ca599d`](https://github.com/mastra-ai/mastra/commit/5ca599d0bb59a1595f19f58473fcd67cc71cef58), [`bff1145`](https://github.com/mastra-ai/mastra/commit/bff114556b3cbadad9b2768488708f8ad0e91475), [`5c8ca24`](https://github.com/mastra-ai/mastra/commit/5c8ca247094e0cc2cdbd7137822fb47241f86e77), [`e191844`](https://github.com/mastra-ai/mastra/commit/e1918444ca3f80e82feef1dad506cd4ec6e2875f), [`22553f1`](https://github.com/mastra-ai/mastra/commit/22553f11c63ee5e966a9c034a349822249584691), [`7237163`](https://github.com/mastra-ai/mastra/commit/72371635dbf96a87df4b073cc48fc655afbdce3d), [`2500740`](https://github.com/mastra-ai/mastra/commit/2500740ea23da067d6e50ec71c625ab3ce275e64), [`873ecbb`](https://github.com/mastra-ai/mastra/commit/873ecbb517586aa17d2f1e99283755b3ebb2863f), [`4f9bbe5`](https://github.com/mastra-ai/mastra/commit/4f9bbe5968f42c86f4930b8193de3c3c17e5bd36), [`02e51fe`](https://github.com/mastra-ai/mastra/commit/02e51feddb3d4155cfbcc42624fd0d0970d032c0), [`8f3fa3a`](https://github.com/mastra-ai/mastra/commit/8f3fa3a652bb77da092f913ec51ae46e3a7e27dc), [`cd29ad2`](https://github.com/mastra-ai/mastra/commit/cd29ad23a255534e8191f249593849ed29160886), [`bdf4d8c`](https://github.com/mastra-ai/mastra/commit/bdf4d8cdc656d8a2c21d81834bfa3bfa70f56c16), [`854e3da`](https://github.com/mastra-ai/mastra/commit/854e3dad5daac17a91a20986399d3a51f54bf68b), [`ce18d38`](https://github.com/mastra-ai/mastra/commit/ce18d38678c65870350d123955014a8432075fd9), [`cccf9c8`](https://github.com/mastra-ai/mastra/commit/cccf9c8b2d2dfc1a5e63919395b83d78c89682a0), [`61a5705`](https://github.com/mastra-ai/mastra/commit/61a570551278b6743e64243b3ce7d73de915ca8a), [`db70a48`](https://github.com/mastra-ai/mastra/commit/db70a48aeeeeb8e5f92007e8ede52c364ce15287), [`f0fdc14`](https://github.com/mastra-ai/mastra/commit/f0fdc14ee233d619266b3d2bbdeea7d25cfc6d13), [`db18bc9`](https://github.com/mastra-ai/mastra/commit/db18bc9c3825e2c1a0ad9a183cc9935f6691bfa1), [`9b37b56`](https://github.com/mastra-ai/mastra/commit/9b37b565e1f2a76c24f728945cc740c2b09be9da), [`41a23c3`](https://github.com/mastra-ai/mastra/commit/41a23c32f9877d71810f37e24930515df2ff7a0f), [`5d171ad`](https://github.com/mastra-ai/mastra/commit/5d171ad9ef340387276b77c2bb3e83e83332d729), [`f03ae60`](https://github.com/mastra-ai/mastra/commit/f03ae60500fe350c9d828621006cdafe1975fdd8), [`d1e74a0`](https://github.com/mastra-ai/mastra/commit/d1e74a0a293866dece31022047f5dbab65a304d0), [`39e7869`](https://github.com/mastra-ai/mastra/commit/39e7869bc7d0ee391077ce291474d8a84eedccff), [`5761926`](https://github.com/mastra-ai/mastra/commit/57619260c4a2cdd598763abbacd90de594c6bc76), [`c900fdd`](https://github.com/mastra-ai/mastra/commit/c900fdd504c41348efdffb205cfe80d48c38fa33), [`604a79f`](https://github.com/mastra-ai/mastra/commit/604a79fecf276e26a54a3fe01bb94e65315d2e0e), [`887f0b4`](https://github.com/mastra-ai/mastra/commit/887f0b4746cdbd7cb7d6b17ac9f82aeb58037ea5), [`2562143`](https://github.com/mastra-ai/mastra/commit/256214336b4faa78646c9c1776612393790d8784), [`ef11a61`](https://github.com/mastra-ai/mastra/commit/ef11a61920fa0ed08a5b7ceedd192875af119749)]:
990
+ - @mastra/core@1.0.0-beta.6
991
+
992
+ ## 1.0.0-beta.5
993
+
994
+ ### Patch Changes
995
+
996
+ - Extract routing from @deployer/server into server adapter packages. ([#10263](https://github.com/mastra-ai/mastra/pull/10263))
997
+ New packages:
998
+ - @mastra/express
999
+ - @mastra/hono
1000
+
1001
+ These packages support mastra server routes on express and hono respectively.
1002
+ 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.
1003
+
1004
+ - Add timeTravel APIs and add timeTravel feature to studio ([#10361](https://github.com/mastra-ai/mastra/pull/10361))
1005
+
1006
+ - Fixed server handler bugs: filter parsing now handles colons in values (timestamps, URLs), dateRange validation now converts JSON strings to Date objects, deleteMessages schema accepts object forms, and added missing responseSchema for legacy stream route ([#10362](https://github.com/mastra-ai/mastra/pull/10362))
1007
+
1008
+ - Updated dependencies [[`21a15de`](https://github.com/mastra-ai/mastra/commit/21a15de369fe82aac26bb642ed7be73505475e8b), [`feb7ee4`](https://github.com/mastra-ai/mastra/commit/feb7ee4d09a75edb46c6669a3beaceec78811747), [`b0e2ea5`](https://github.com/mastra-ai/mastra/commit/b0e2ea5b52c40fae438b9e2f7baee6f0f89c5442), [`c456e01`](https://github.com/mastra-ai/mastra/commit/c456e0149e3c176afcefdbd9bb1d2c5917723725), [`ab035c2`](https://github.com/mastra-ai/mastra/commit/ab035c2ef6d8cc7bb25f06f1a38508bd9e6f126b), [`1a46a56`](https://github.com/mastra-ai/mastra/commit/1a46a566f45a3fcbadc1cf36bf86d351f264bfa3), [`3cf540b`](https://github.com/mastra-ai/mastra/commit/3cf540b9fbfea8f4fc8d3a2319a4e6c0b0cbfd52), [`1c6ce51`](https://github.com/mastra-ai/mastra/commit/1c6ce51f875915ab57fd36873623013699a2a65d), [`898a972`](https://github.com/mastra-ai/mastra/commit/898a9727d286c2510d6b702dfd367e6aaf5c6b0f), [`a97003a`](https://github.com/mastra-ai/mastra/commit/a97003aa1cf2f4022a41912324a1e77263b326b8), [`ccc141e`](https://github.com/mastra-ai/mastra/commit/ccc141ed27da0abc3a3fc28e9e5128152e8e37f4), [`fe3b897`](https://github.com/mastra-ai/mastra/commit/fe3b897c2ccbcd2b10e81b099438c7337feddf89), [`00123ba`](https://github.com/mastra-ai/mastra/commit/00123ba96dc9e5cd0b110420ebdba56d8f237b25), [`29c4309`](https://github.com/mastra-ai/mastra/commit/29c4309f818b24304c041bcb4a8f19b5f13f6b62), [`16785ce`](https://github.com/mastra-ai/mastra/commit/16785ced928f6f22638f4488cf8a125d99211799), [`de8239b`](https://github.com/mastra-ai/mastra/commit/de8239bdcb1d8c0cfa06da21f1569912a66bbc8a), [`b5e6cd7`](https://github.com/mastra-ai/mastra/commit/b5e6cd77fc8c8e64e0494c1d06cee3d84e795d1e), [`3759cb0`](https://github.com/mastra-ai/mastra/commit/3759cb064935b5f74c65ac2f52a1145f7352899d), [`651e772`](https://github.com/mastra-ai/mastra/commit/651e772eb1475fb13e126d3fcc01751297a88214), [`b61b93f`](https://github.com/mastra-ai/mastra/commit/b61b93f9e058b11dd2eec169853175d31dbdd567), [`bae33d9`](https://github.com/mastra-ai/mastra/commit/bae33d91a63fbb64d1e80519e1fc1acaed1e9013), [`c0b731f`](https://github.com/mastra-ai/mastra/commit/c0b731fb27d712dc8582e846df5c0332a6a0c5ba), [`43ca8f2`](https://github.com/mastra-ai/mastra/commit/43ca8f2c7334851cc7b4d3d2f037d8784bfbdd5f), [`2ca67cc`](https://github.com/mastra-ai/mastra/commit/2ca67cc3bb1f6a617353fdcab197d9efebe60d6f), [`9e67002`](https://github.com/mastra-ai/mastra/commit/9e67002b52c9be19936c420a489dbee9c5fd6a78), [`35edc49`](https://github.com/mastra-ai/mastra/commit/35edc49ac0556db609189641d6341e76771b81fc)]:
1009
+ - @mastra/core@1.0.0-beta.5
1010
+
1011
+ ## 1.0.0-beta.4
1012
+
1013
+ ### Patch Changes
1014
+
1015
+ - Network handler now accesses thread and resource parameters from the nested memory object instead of directly from request body. ([#10294](https://github.com/mastra-ai/mastra/pull/10294))
1016
+
1017
+ - Updated dependencies [[`352a5d6`](https://github.com/mastra-ai/mastra/commit/352a5d625cfe09849b21e8f52a24c9f0366759d5), [`a0a5b4b`](https://github.com/mastra-ai/mastra/commit/a0a5b4bbebe6c701ebbadf744873aa0d5ca01371), [`69ea758`](https://github.com/mastra-ai/mastra/commit/69ea758358edd7117f191c2e69c8bb5fc79e7a1a), [`993ad98`](https://github.com/mastra-ai/mastra/commit/993ad98d7ad3bebda9ecef5fec5c94349a0d04bc), [`3ff2c17`](https://github.com/mastra-ai/mastra/commit/3ff2c17a58e312fad5ea37377262c12d92ca0908)]:
1018
+ - @mastra/core@1.0.0-beta.4
1019
+
1020
+ ## 1.0.0-beta.3
1021
+
1022
+ ### Patch Changes
1023
+
1024
+ - Fix semantic search endpoint to return results in the correct format. Also fix the delete messages endpoint to properly normalize ids in the expected format. ([#10032](https://github.com/mastra-ai/mastra/pull/10032))
1025
+
1026
+ - Updated dependencies [[`2319326`](https://github.com/mastra-ai/mastra/commit/2319326f8c64e503a09bbcf14be2dd65405445e0), [`d629361`](https://github.com/mastra-ai/mastra/commit/d629361a60f6565b5bfb11976fdaf7308af858e2), [`08c31c1`](https://github.com/mastra-ai/mastra/commit/08c31c188ebccd598acaf55e888b6397d01f7eae), [`fd3d338`](https://github.com/mastra-ai/mastra/commit/fd3d338a2c362174ed5b383f1f011ad9fb0302aa), [`c30400a`](https://github.com/mastra-ai/mastra/commit/c30400a49b994b1b97256fe785eb6c906fc2b232), [`69e0a87`](https://github.com/mastra-ai/mastra/commit/69e0a878896a2da9494945d86e056a5f8f05b851), [`01f8878`](https://github.com/mastra-ai/mastra/commit/01f88783de25e4de048c1c8aace43e26373c6ea5), [`4c77209`](https://github.com/mastra-ai/mastra/commit/4c77209e6c11678808b365d545845918c40045c8), [`d827d08`](https://github.com/mastra-ai/mastra/commit/d827d0808ffe1f3553a84e975806cc989b9735dd), [`23c10a1`](https://github.com/mastra-ai/mastra/commit/23c10a1efdd9a693c405511ab2dc8a1236603162), [`676ccc7`](https://github.com/mastra-ai/mastra/commit/676ccc7fe92468d2d45d39c31a87825c89fd1ea0), [`c10398d`](https://github.com/mastra-ai/mastra/commit/c10398d5b88f1d4af556f4267ff06f1d11e89179), [`00c2387`](https://github.com/mastra-ai/mastra/commit/00c2387f5f04a365316f851e58666ac43f8c4edf), [`ad6250d`](https://github.com/mastra-ai/mastra/commit/ad6250dbdaad927e29f74a27b83f6c468b50a705), [`3a73998`](https://github.com/mastra-ai/mastra/commit/3a73998fa4ebeb7f3dc9301afe78095fc63e7999), [`e16d553`](https://github.com/mastra-ai/mastra/commit/e16d55338403c7553531cc568125c63d53653dff), [`4d59f58`](https://github.com/mastra-ai/mastra/commit/4d59f58de2d90d6e2810a19d4518e38ddddb9038), [`e1bb9c9`](https://github.com/mastra-ai/mastra/commit/e1bb9c94b4eb68b019ae275981be3feb769b5365), [`351a11f`](https://github.com/mastra-ai/mastra/commit/351a11fcaf2ed1008977fa9b9a489fc422e51cd4)]:
1027
+ - @mastra/core@1.0.0-beta.3
1028
+
1029
+ ## 1.0.0-beta.2
1030
+
1031
+ ### Patch Changes
1032
+
1033
+ - Updated dependencies [[`465ac05`](https://github.com/mastra-ai/mastra/commit/465ac0526a91d175542091c675181f1a96c98c46)]:
1034
+ - @mastra/core@1.0.0-beta.2
1035
+
1036
+ ## 1.0.0-beta.1
1037
+
1038
+ ### Patch Changes
1039
+
1040
+ - Updated dependencies [[`910db9e`](https://github.com/mastra-ai/mastra/commit/910db9e0312888495eb5617b567f247d03303814), [`e7266a2`](https://github.com/mastra-ai/mastra/commit/e7266a278db02035c97a5e9cd9d1669a6b7a535d)]:
1041
+ - @mastra/core@1.0.0-beta.1
1042
+
1043
+ ## 1.0.0-beta.0
1044
+
1045
+ ### Major Changes
1046
+
1047
+ - Moving scorers under the eval domain, api method consistency, prebuilt evals, scorers require ids. ([#9589](https://github.com/mastra-ai/mastra/pull/9589))
1048
+
1049
+ - 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))
1050
+
1051
+ Primitives that are added to other primitives are also automatically added to the Mastra instance
1052
+
1053
+ - 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))
1054
+
1055
+ - **BREAKING:** Remove `getMessagesPaginated()` and add `perPage: false` support ([#9670](https://github.com/mastra-ai/mastra/pull/9670))
1056
+
1057
+ Removes deprecated `getMessagesPaginated()` method. The `listMessages()` API and score handlers now support `perPage: false` to fetch all records without pagination limits.
1058
+
1059
+ **Storage changes:**
1060
+ - `StoragePagination.perPage` type changed from `number` to `number | false`
1061
+ - All storage implementations support `perPage: false`:
1062
+ - Memory: `listMessages()`
1063
+ - Scores: `listScoresBySpan()`, `listScoresByRunId()`, `listScoresByExecutionId()`
1064
+ - HTTP query parser accepts `"false"` string (e.g., `?perPage=false`)
1065
+
1066
+ **Memory changes:**
1067
+ - `memory.query()` parameter type changed from `StorageGetMessagesArg` to `StorageListMessagesInput`
1068
+ - Uses flat parameters (`page`, `perPage`, `include`, `filter`, `vectorSearchString`) instead of `selectBy` object
1069
+
1070
+ **Stricter validation:**
1071
+ - `listMessages()` requires non-empty, non-whitespace `threadId` (throws error instead of returning empty results)
1072
+
1073
+ **Migration:**
1074
+
1075
+ ```typescript
1076
+ // Storage/Memory: Replace getMessagesPaginated with listMessages
1077
+ - storage.getMessagesPaginated({ threadId, selectBy: { pagination: { page: 0, perPage: 20 } } })
1078
+ + storage.listMessages({ threadId, page: 0, perPage: 20 })
1079
+ + storage.listMessages({ threadId, page: 0, perPage: false }) // Fetch all
1080
+
1081
+ // Memory: Replace selectBy with flat parameters
1082
+ - memory.query({ threadId, selectBy: { last: 20, include: [...] } })
1083
+ + memory.query({ threadId, perPage: 20, include: [...] })
1084
+
1085
+ // Client SDK
1086
+ - thread.getMessagesPaginated({ selectBy: { pagination: { page: 0 } } })
1087
+ + thread.listMessages({ page: 0, perPage: 20 })
1088
+ ```
1089
+
1090
+ - # Major Changes ([#9695](https://github.com/mastra-ai/mastra/pull/9695))
1091
+
1092
+ ## Storage Layer
1093
+
1094
+ ### BREAKING: Removed `storage.getMessages()`
1095
+
1096
+ The `getMessages()` method has been removed from all storage implementations. Use `listMessages()` instead, which provides pagination support.
1097
+
1098
+ **Migration:**
1099
+
1100
+ ```typescript
1101
+ // Before
1102
+ const messages = await storage.getMessages({ threadId: 'thread-1' });
1103
+
1104
+ // After
1105
+ const result = await storage.listMessages({
1106
+ threadId: 'thread-1',
1107
+ page: 0,
1108
+ perPage: 50,
1109
+ });
1110
+ const messages = result.messages; // Access messages array
1111
+ console.log(result.total); // Total count
1112
+ console.log(result.hasMore); // Whether more pages exist
1113
+ ```
1114
+
1115
+ ### Message ordering default
1116
+
1117
+ `listMessages()` defaults to ASC (oldest first) ordering by `createdAt`, matching the previous `getMessages()` behavior.
1118
+
1119
+ **To use DESC ordering (newest first):**
1120
+
1121
+ ```typescript
1122
+ const result = await storage.listMessages({
1123
+ threadId: 'thread-1',
1124
+ orderBy: { field: 'createdAt', direction: 'DESC' },
1125
+ });
1126
+ ```
1127
+
1128
+ ## Client SDK
1129
+
1130
+ ### BREAKING: Renamed `client.getThreadMessages()` → `client.listThreadMessages()`
1131
+
1132
+ **Migration:**
1133
+
1134
+ ```typescript
1135
+ // Before
1136
+ const response = await client.getThreadMessages(threadId, { agentId });
1137
+
1138
+ // After
1139
+ const response = await client.listThreadMessages(threadId, { agentId });
1140
+ ```
1141
+
1142
+ The response format remains the same.
1143
+
1144
+ ## Type Changes
1145
+
1146
+ ### BREAKING: Removed `StorageGetMessagesArg` type
1147
+
1148
+ Use `StorageListMessagesInput` instead:
1149
+
1150
+ ```typescript
1151
+ // Before
1152
+ import type { StorageGetMessagesArg } from '@mastra/core';
1153
+
1154
+ // After
1155
+ import type { StorageListMessagesInput } from '@mastra/core';
1156
+ ```
1157
+
1158
+ - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
1159
+
1160
+ - 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))
1161
+
1162
+ - This simplifies the Memory API by removing the confusing rememberMessages method and renaming query to recall for better clarity. ([#9701](https://github.com/mastra-ai/mastra/pull/9701))
1163
+
1164
+ The rememberMessages method name implied it might persist data when it was actually just retrieving messages, same as query. Having two methods that did essentially the same thing was unnecessary.
1165
+
1166
+ Before:
1167
+
1168
+ ```typescript
1169
+ // Two methods that did the same thing
1170
+ memory.rememberMessages({ threadId, resourceId, config, vectorMessageSearch });
1171
+ memory.query({ threadId, resourceId, perPage, vectorSearchString });
1172
+ ```
1173
+
1174
+ After:
1175
+
1176
+ ```typescript
1177
+ // Single unified method with clear purpose
1178
+ memory.recall({ threadId, resourceId, perPage, vectorMessageSearch, threadConfig });
1179
+ ```
1180
+
1181
+ All usages have been updated across the codebase including tests. The agent now calls recall directly with the appropriate parameters.
1182
+
1183
+ - Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
1184
+
1185
+ - Rename `defaultVNextStreamOptions` to `defaultOptions`. Add "Legacy" suffix to v1 option properties and methods (`defaultGenerateOptions` → `defaultGenerateOptionsLegacy`, `defaultStreamOptions` → `defaultStreamOptionsLegacy`). ([#9535](https://github.com/mastra-ai/mastra/pull/9535))
1186
+
1187
+ - 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))
1188
+
1189
+ - Renamed a bunch of observability/tracing-related things to drop the AI prefix. ([#9744](https://github.com/mastra-ai/mastra/pull/9744))
1190
+
1191
+ - **Breaking Change**: Remove legacy v1 watch events and consolidate on v2 implementation. ([#9252](https://github.com/mastra-ai/mastra/pull/9252))
1192
+
1193
+ This change simplifies the workflow watching API by removing the legacy v1 event system and promoting v2 as the standard (renamed to just `watch`).
1194
+
1195
+ ### What's Changed
1196
+ - Removed legacy v1 watch event handlers and types
1197
+ - Renamed `watch-v2` to `watch` throughout the codebase
1198
+ - Removed `.watch()` method from client-js SDK (`Workflow` and `AgentBuilder` classes)
1199
+ - Removed `/watch` HTTP endpoints from server and deployer
1200
+ - Removed `WorkflowWatchResult` and v1 `WatchEvent` types
1201
+
1202
+ - **BREAKING CHANGE**: Pagination APIs now use `page`/`perPage` instead of `offset`/`limit` ([#9592](https://github.com/mastra-ai/mastra/pull/9592))
1203
+
1204
+ 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.
1205
+
1206
+ **Affected APIs:**
1207
+ - `Memory.listThreadsByResourceId()`
1208
+ - `Memory.listMessages()`
1209
+ - `Storage.listWorkflowRuns()`
1210
+
1211
+ **Migration:**
1212
+
1213
+ ```typescript
1214
+ // Before
1215
+ await memory.listThreadsByResourceId({
1216
+ resourceId: 'user-123',
1217
+ offset: 20,
1218
+ limit: 10,
1219
+ });
1220
+
1221
+ // After
1222
+ await memory.listThreadsByResourceId({
1223
+ resourceId: 'user-123',
1224
+ page: 2, // page = Math.floor(offset / limit)
1225
+ perPage: 10,
1226
+ });
1227
+
1228
+ // Before
1229
+ await memory.listMessages({
1230
+ threadId: 'thread-456',
1231
+ offset: 20,
1232
+ limit: 10,
1233
+ });
1234
+
1235
+ // After
1236
+ await memory.listMessages({
1237
+ threadId: 'thread-456',
1238
+ page: 2,
1239
+ perPage: 10,
1240
+ });
1241
+
1242
+ // Before
1243
+ await storage.listWorkflowRuns({
1244
+ workflowName: 'my-workflow',
1245
+ offset: 20,
1246
+ limit: 10,
1247
+ });
1248
+
1249
+ // After
1250
+ await storage.listWorkflowRuns({
1251
+ workflowName: 'my-workflow',
1252
+ page: 2,
1253
+ perPage: 10,
1254
+ });
1255
+ ```
1256
+
1257
+ **Additional improvements:**
1258
+ - Added validation for negative `page` values in all storage implementations
1259
+ - Improved `perPage` validation to handle edge cases (negative values, `0`, `false`)
1260
+ - Added reusable query parser utilities for consistent validation in handlers
1261
+
1262
+ - Changing getAgents -> listAgents, getTools -> listTools, getWorkflows -> listWorkflows ([#9495](https://github.com/mastra-ai/mastra/pull/9495))
1263
+
1264
+ - Removed old tracing code based on OpenTelemetry ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
1265
+
1266
+ - Remove deprecated vector prompts and cohere provider from code ([#9596](https://github.com/mastra-ai/mastra/pull/9596))
1267
+
1268
+ - Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
1269
+
1270
+ - Enforcing id required on Processor primitive ([#9591](https://github.com/mastra-ai/mastra/pull/9591))
1271
+
1272
+ - Renamed `MastraMessageV2` to `MastraDBMessage` ([#9255](https://github.com/mastra-ai/mastra/pull/9255))
1273
+ Made the return format of all methods that return db messages consistent. It's always `{ messages: MastraDBMessage[] }` now, and messages can be converted after that using `@mastra/ai-sdk/ui`'s `toAISdkV4/5Messages()` function
1274
+
1275
+ - moved ai-tracing code into @mastra/observability ([#9661](https://github.com/mastra-ai/mastra/pull/9661))
1276
+
1277
+ - Remove legacy evals from Mastra ([#9491](https://github.com/mastra-ai/mastra/pull/9491))
1278
+
1279
+ ### Minor Changes
1280
+
1281
+ - Update peer dependencies to match core package version bump (1.0.0) ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
1282
+
1283
+ - **BREAKING CHANGE**: Memory scope defaults changed from 'thread' to 'resource' ([#8983](https://github.com/mastra-ai/mastra/pull/8983))
1284
+
1285
+ Both `workingMemory.scope` and `semanticRecall.scope` now default to `'resource'` instead of `'thread'`. This means:
1286
+ - Working memory persists across all conversations for the same user/resource
1287
+ - Semantic recall searches across all threads for the same user/resource
1288
+
1289
+ **Migration**: To maintain the previous thread-scoped behavior, explicitly set `scope: 'thread'`:
1290
+
1291
+ ```typescript
1292
+ memory: new Memory({
1293
+ storage,
1294
+ workingMemory: {
1295
+ enabled: true,
1296
+ scope: 'thread', // Explicitly set for thread-scoped behavior
1297
+ },
1298
+ semanticRecall: {
1299
+ scope: 'thread', // Explicitly set for thread-scoped behavior
1300
+ },
1301
+ }),
1302
+ ```
1303
+
1304
+ See the [migration guide](https://mastra.ai/docs/guides/migrations/memory-scope-defaults) for more details.
1305
+
1306
+ Also fixed issues where playground semantic recall search could show missing or incorrect results in certain cases.
1307
+
1308
+ - Update peer dependencies to match core package version bump (1.0.0) ([#9495](https://github.com/mastra-ai/mastra/pull/9495))
1309
+
1310
+ - Update peer dependencies to match core package version bump (0.22.1) ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
1311
+
1312
+ - Add observeStream support for agent-builder template installation ([#9372](https://github.com/mastra-ai/mastra/pull/9372))
1313
+ - Add observeStream, observeStreamVNext, observeStreamLegacy, and resumeStream methods to agent-builder client SDK
1314
+ - Add corresponding server handlers and deployer routes for observe streaming
1315
+ - Add tracingOptions parameter to existing agent-builder handlers for parity with workflows
1316
+ - Update template installation processor to support both legacy and VNext streaming event formats
1317
+
1318
+ - Update peer dependencies to match core package version bump (0.22.0) ([#8983](https://github.com/mastra-ai/mastra/pull/8983))
1319
+
1320
+ - Update peer dependencies to match core package version bump (1.0.0) ([#9491](https://github.com/mastra-ai/mastra/pull/9491))
1321
+
1322
+ ### Patch Changes
1323
+
1324
+ - Make step optional in all resume APIs ([#9454](https://github.com/mastra-ai/mastra/pull/9454))
1325
+
1326
+ - Add agent id to the list agent ([#9770](https://github.com/mastra-ai/mastra/pull/9770))
1327
+
1328
+ - Update tool execution signature ([#9587](https://github.com/mastra-ai/mastra/pull/9587))
1329
+
1330
+ Consolidated the 3 different execution contexts to one
1331
+
1332
+ ```typescript
1333
+ // before depending on the context the tool was executed in
1334
+ tool.execute({ context: data });
1335
+ tool.execute({ context: { inputData: data } });
1336
+ tool.execute(data);
1337
+
1338
+ // now, for all contexts
1339
+ tool.execute(data, context);
1340
+ ```
1341
+
1342
+ **Before:**
1343
+
1344
+ ```typescript
1345
+ inputSchema: z.object({ something: z.string() }),
1346
+ execute: async ({ context, tracingContext, runId, ... }) => {
1347
+ return doSomething(context.string);
1348
+ }
1349
+ ```
1350
+
1351
+ **After:**
1352
+
1353
+ ```typescript
1354
+ inputSchema: z.object({ something: z.string() }),
1355
+ execute: async (inputData, context) => {
1356
+ const { agent, mcp, workflow, ...sharedContext } = context
1357
+
1358
+ // context that only an agent would get like toolCallId, messages, suspend, resume, etc
1359
+ if (agent) {
1360
+ doSomething(inputData.something, agent)
1361
+ // context that only a workflow would get like runId, state, suspend, resume, etc
1362
+ } else if (workflow) {
1363
+ doSomething(inputData.something, workflow)
1364
+ // context that only a workflow would get like "extra", "elicitation"
1365
+ } else if (mcp) {
1366
+ doSomething(inputData.something, mcp)
1367
+ } else {
1368
+ // Running a tool in no execution context
1369
+ return doSomething(inputData.something);
1370
+ }
1371
+ }
1372
+ ```
1373
+
1374
+ - Add the description field to listAgents ([#9672](https://github.com/mastra-ai/mastra/pull/9672))
1375
+
1376
+ - Fix the link issue in observability ([#9764](https://github.com/mastra-ai/mastra/pull/9764))
1377
+
1378
+ - Add tool call approval ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
1379
+
1380
+ - Fix scorers listing filtring ([#9801](https://github.com/mastra-ai/mastra/pull/9801))
1381
+
1382
+ - 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))
1383
+
1384
+ - Update peer dependencies to match core package version bump (1.0.0) ([#9489](https://github.com/mastra-ai/mastra/pull/9489))
1385
+
1386
+ - Fix undefined runtimeContext using memory from playground ([#9328](https://github.com/mastra-ai/mastra/pull/9328))
1387
+
1388
+ - Make step optional in resumeStreamVNext API ([#9453](https://github.com/mastra-ai/mastra/pull/9453))
1389
+
1390
+ - Remove `waitForEvent` from workflows. `waitForEvent` is now removed, please use suspend & resume flow instead. See https://mastra.ai/en/docs/workflows/suspend-and-resume for more details on suspend & resume flow. ([#9214](https://github.com/mastra-ai/mastra/pull/9214))
1391
+
1392
+ - Use memory mock in server tests ([#9486](https://github.com/mastra-ai/mastra/pull/9486))
1393
+
1394
+ - Remove format from stream/generate ([#9577](https://github.com/mastra-ai/mastra/pull/9577))
1395
+
1396
+ - Updated dependencies [[`39c9743`](https://github.com/mastra-ai/mastra/commit/39c97432d084294f8ba85fbf3ef28098ff21459e), [`f743dbb`](https://github.com/mastra-ai/mastra/commit/f743dbb8b40d1627b5c10c0e6fc154f4ebb6e394), [`fec5129`](https://github.com/mastra-ai/mastra/commit/fec5129de7fc64423ea03661a56cef31dc747a0d), [`0491e7c`](https://github.com/mastra-ai/mastra/commit/0491e7c9b714cb0ba22187ee062147ec2dd7c712), [`f6f4903`](https://github.com/mastra-ai/mastra/commit/f6f4903397314f73362061dc5a3e8e7c61ea34aa), [`0e8ed46`](https://github.com/mastra-ai/mastra/commit/0e8ed467c54d6901a6a365f270ec15d6faadb36c), [`6c049d9`](https://github.com/mastra-ai/mastra/commit/6c049d94063fdcbd5b81c4912a2bf82a92c9cc0b), [`2f897df`](https://github.com/mastra-ai/mastra/commit/2f897df208508f46f51b7625e5dd20c37f93e0e3), [`3443770`](https://github.com/mastra-ai/mastra/commit/3443770662df8eb24c9df3589b2792d78cfcb811), [`f0a07e0`](https://github.com/mastra-ai/mastra/commit/f0a07e0111b3307c5fabfa4094c5c2cfb734fbe6), [`aaa40e7`](https://github.com/mastra-ai/mastra/commit/aaa40e788628b319baa8e889407d11ad626547fa), [`1521d71`](https://github.com/mastra-ai/mastra/commit/1521d716e5daedc74690c983fbd961123c56756b), [`9e1911d`](https://github.com/mastra-ai/mastra/commit/9e1911db2b4db85e0e768c3f15e0d61e319869f6), [`ebac155`](https://github.com/mastra-ai/mastra/commit/ebac15564a590117db7078233f927a7e28a85106), [`dd1c38d`](https://github.com/mastra-ai/mastra/commit/dd1c38d1b75f1b695c27b40d8d9d6ed00d5e0f6f), [`5948e6a`](https://github.com/mastra-ai/mastra/commit/5948e6a5146c83666ba3f294b2be576c82a513fb), [`8940859`](https://github.com/mastra-ai/mastra/commit/89408593658199b4ad67f7b65e888f344e64a442), [`e629310`](https://github.com/mastra-ai/mastra/commit/e629310f1a73fa236d49ec7a1d1cceb6229dc7cc), [`4c6b492`](https://github.com/mastra-ai/mastra/commit/4c6b492c4dd591c6a592520c1f6855d6e936d71f), [`dff01d8`](https://github.com/mastra-ai/mastra/commit/dff01d81ce1f4e4087cfac20fa868e6db138dd14), [`9d819d5`](https://github.com/mastra-ai/mastra/commit/9d819d54b61481639f4008e4694791bddf187edd), [`71c8d6c`](https://github.com/mastra-ai/mastra/commit/71c8d6c161253207b2b9588bdadb7eed604f7253), [`6179a9b`](https://github.com/mastra-ai/mastra/commit/6179a9ba36ffac326de3cc3c43cdc8028d37c251), [`00f4921`](https://github.com/mastra-ai/mastra/commit/00f4921dd2c91a1e5446799599ef7116a8214a1a), [`ca8041c`](https://github.com/mastra-ai/mastra/commit/ca8041cce0379fda22ed293a565bcb5b6ddca68a), [`7051bf3`](https://github.com/mastra-ai/mastra/commit/7051bf38b3b122a069008f861f7bfc004a6d9f6e), [`a8f1494`](https://github.com/mastra-ai/mastra/commit/a8f1494f4bbdc2770bcf327d4c7d869e332183f1), [`0793497`](https://github.com/mastra-ai/mastra/commit/079349753620c40246ffd673e3f9d7d9820beff3), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`a854ede`](https://github.com/mastra-ai/mastra/commit/a854ede62bf5ac0945a624ac48913dd69c73aabf), [`c576fc0`](https://github.com/mastra-ai/mastra/commit/c576fc0b100b2085afded91a37c97a0ea0ec09c7), [`3defc80`](https://github.com/mastra-ai/mastra/commit/3defc80cf2b88a1b7fc1cc4ddcb91e982a614609), [`16153fe`](https://github.com/mastra-ai/mastra/commit/16153fe7eb13c99401f48e6ca32707c965ee28b9), [`9f4a683`](https://github.com/mastra-ai/mastra/commit/9f4a6833e88b52574665c028fd5508ad5c2f6004), [`bc94344`](https://github.com/mastra-ai/mastra/commit/bc943444a1342d8a662151b7bce1df7dae32f59c), [`57d157f`](https://github.com/mastra-ai/mastra/commit/57d157f0b163a95c3e6c9eae31bdb11d1bfc64f9), [`903f67d`](https://github.com/mastra-ai/mastra/commit/903f67d184504a273893818c02b961f5423a79ad), [`2a90c55`](https://github.com/mastra-ai/mastra/commit/2a90c55a86a9210697d5adaab5ee94584b079adc), [`eb09742`](https://github.com/mastra-ai/mastra/commit/eb09742197f66c4c38154c3beec78313e69760b2), [`96d35f6`](https://github.com/mastra-ai/mastra/commit/96d35f61376bc2b1bf148648a2c1985bd51bef55), [`5cbe88a`](https://github.com/mastra-ai/mastra/commit/5cbe88aefbd9f933bca669fd371ea36bf939ac6d), [`a1bd7b8`](https://github.com/mastra-ai/mastra/commit/a1bd7b8571db16b94eb01588f451a74758c96d65), [`d78b38d`](https://github.com/mastra-ai/mastra/commit/d78b38d898fce285260d3bbb4befade54331617f), [`0633100`](https://github.com/mastra-ai/mastra/commit/0633100a911ad22f5256471bdf753da21c104742), [`c710c16`](https://github.com/mastra-ai/mastra/commit/c710c1652dccfdc4111c8412bca7a6bb1d48b441), [`354ad0b`](https://github.com/mastra-ai/mastra/commit/354ad0b7b1b8183ac567f236a884fc7ede6d7138), [`cfae733`](https://github.com/mastra-ai/mastra/commit/cfae73394f4920635e6c919c8e95ff9a0788e2e5), [`e3dfda7`](https://github.com/mastra-ai/mastra/commit/e3dfda7b11bf3b8c4bb55637028befb5f387fc74), [`844ea5d`](https://github.com/mastra-ai/mastra/commit/844ea5dc0c248961e7bf73629ae7dcff503e853c), [`398fde3`](https://github.com/mastra-ai/mastra/commit/398fde3f39e707cda79372cdae8f9870e3b57c8d), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`0d7618b`](https://github.com/mastra-ai/mastra/commit/0d7618bc650bf2800934b243eca5648f4aeed9c2), [`7b763e5`](https://github.com/mastra-ai/mastra/commit/7b763e52fc3eaf699c2a99f2adf418dd46e4e9a5), [`d36cfbb`](https://github.com/mastra-ai/mastra/commit/d36cfbbb6565ba5f827883cc9bb648eb14befdc1), [`3697853`](https://github.com/mastra-ai/mastra/commit/3697853deeb72017d90e0f38a93c1e29221aeca0), [`b2e45ec`](https://github.com/mastra-ai/mastra/commit/b2e45eca727a8db01a81ba93f1a5219c7183c839), [`d6d49f7`](https://github.com/mastra-ai/mastra/commit/d6d49f7b8714fa19a52ff9c7cf7fb7e73751901e), [`a534e95`](https://github.com/mastra-ai/mastra/commit/a534e9591f83b3cc1ebff99c67edf4cda7bf81d3), [`9d0e7fe`](https://github.com/mastra-ai/mastra/commit/9d0e7feca8ed98de959f53476ee1456073673348), [`53d927c`](https://github.com/mastra-ai/mastra/commit/53d927cc6f03bff33655b7e2b788da445a08731d), [`3f2faf2`](https://github.com/mastra-ai/mastra/commit/3f2faf2e2d685d6c053cc5af1bf9fedf267b2ce5), [`22f64bc`](https://github.com/mastra-ai/mastra/commit/22f64bc1d37149480b58bf2fefe35b79a1e3e7d5), [`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc), [`b7959e6`](https://github.com/mastra-ai/mastra/commit/b7959e6e25a46b480f9ea2217c4c6c588c423791), [`bda6370`](https://github.com/mastra-ai/mastra/commit/bda637009360649aaf579919e7873e33553c273e), [`d7acd8e`](https://github.com/mastra-ai/mastra/commit/d7acd8e987b5d7eff4fd98b0906c17c06a2e83d5), [`c7f1f7d`](https://github.com/mastra-ai/mastra/commit/c7f1f7d24f61f247f018cc2d1f33bf63212959a7), [`0bddc6d`](https://github.com/mastra-ai/mastra/commit/0bddc6d8dbd6f6008c0cba2e4960a2da75a55af1), [`735d8c1`](https://github.com/mastra-ai/mastra/commit/735d8c1c0d19fbc09e6f8b66cf41bc7655993838), [`acf322e`](https://github.com/mastra-ai/mastra/commit/acf322e0f1fd0189684cf529d91c694bea918a45), [`c942802`](https://github.com/mastra-ai/mastra/commit/c942802a477a925b01859a7b8688d4355715caaa), [`a0c8c1b`](https://github.com/mastra-ai/mastra/commit/a0c8c1b87d4fee252aebda73e8637fbe01d761c9), [`cc34739`](https://github.com/mastra-ai/mastra/commit/cc34739c34b6266a91bea561119240a7acf47887), [`c218bd3`](https://github.com/mastra-ai/mastra/commit/c218bd3759e32423735b04843a09404572631014), [`2c4438b`](https://github.com/mastra-ai/mastra/commit/2c4438b87817ab7eed818c7990fef010475af1a3), [`2b8893c`](https://github.com/mastra-ai/mastra/commit/2b8893cb108ef9acb72ee7835cd625610d2c1a4a), [`8e5c75b`](https://github.com/mastra-ai/mastra/commit/8e5c75bdb1d08a42d45309a4c72def4b6890230f), [`e59e0d3`](https://github.com/mastra-ai/mastra/commit/e59e0d32afb5fcf2c9f3c00c8f81f6c21d3a63fa), [`fa8409b`](https://github.com/mastra-ai/mastra/commit/fa8409bc39cfd8ba6643b9db5269b90b22e2a2f7), [`173c535`](https://github.com/mastra-ai/mastra/commit/173c535c0645b0da404fe09f003778f0b0d4e019)]:
1397
+ - @mastra/core@1.0.0-beta.0
1398
+
1399
+ ## 0.22.2
1400
+
1401
+ ### Patch Changes
1402
+
1403
+ - Updated dependencies [[`2b031e2`](https://github.com/mastra-ai/mastra/commit/2b031e25ca10cd3e4d63e6a27f909cba26d91405)]:
1404
+ - @mastra/core@0.22.2
1405
+
1406
+ ## 0.22.2-alpha.0
1407
+
1408
+ ### Patch Changes
1409
+
1410
+ - Updated dependencies [[`2b031e2`](https://github.com/mastra-ai/mastra/commit/2b031e25ca10cd3e4d63e6a27f909cba26d91405)]:
1411
+ - @mastra/core@0.22.2-alpha.0
1412
+
1413
+ ## 0.22.1
1414
+
1415
+ ### Patch Changes
1416
+
1417
+ - Get agent registered on a parent agent via API ([#9106](https://github.com/mastra-ai/mastra/pull/9106))
1418
+
1419
+ - Updated dependencies []:
1420
+ - @mastra/core@0.22.1
1421
+
1422
+ ## 0.22.1-alpha.0
1423
+
1424
+ ### Patch Changes
1425
+
1426
+ - Get agent registered on a parent agent via API ([#9106](https://github.com/mastra-ai/mastra/pull/9106))
1427
+
1428
+ - Updated dependencies []:
1429
+ - @mastra/core@0.22.1-alpha.0
1430
+
1431
+ ## 0.22.0
1432
+
1433
+ ### Minor Changes
1434
+
1435
+ - Consolidate streamVNext logic into stream, move old stream function into streamLegacy ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
1436
+
1437
+ - Update peer dependencies to match core package version bump (0.21.2) ([#9038](https://github.com/mastra-ai/mastra/pull/9038))
1438
+
1439
+ - Update peer dependencies to match core package version bump (0.22.0) ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
1440
+
1441
+ - Update peer dependencies to match core package version bump (0.21.2) ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
1442
+
1443
+ ### Patch Changes
1444
+
1445
+ - Updated `watch` and `watchAsync` methods to use proper function overloads instead of generic conditional types, ensuring compatibility with the base Run class signatures. ([#9048](https://github.com/mastra-ai/mastra/pull/9048))
1446
+
1447
+ - Generate a title for Agent.network() threads ([#8853](https://github.com/mastra-ai/mastra/pull/8853))
1448
+
1449
+ - Fix custom metadata preservation in UIMessages when loading threads. The `getMessagesHandler` now converts `messagesV2` (V2 format with metadata) instead of `messages` (V1 format without metadata) to AIV5.UI format. Also updates the abstract `MastraMemory.query()` return type to include `messagesV2` for proper type safety. ([#9029](https://github.com/mastra-ai/mastra/pull/9029))
1450
+
1451
+ - Fix provider tools for popular providers and add support for anthropic/claude skills. ([#9038](https://github.com/mastra-ai/mastra/pull/9038))
1452
+
1453
+ - Show agent tool output better in playground ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
1454
+
1455
+ - Update peerdeps to 0.23.0-0 ([#9043](https://github.com/mastra-ai/mastra/pull/9043))
1456
+
1457
+ - Updated dependencies [[`c67ca32`](https://github.com/mastra-ai/mastra/commit/c67ca32e3c2cf69bfc146580770c720220ca44ac), [`efb5ed9`](https://github.com/mastra-ai/mastra/commit/efb5ed946ae7f410bc68c9430beb4b010afd25ec), [`dbc9e12`](https://github.com/mastra-ai/mastra/commit/dbc9e1216ba575ba59ead4afb727a01215f7de4f), [`99e41b9`](https://github.com/mastra-ai/mastra/commit/99e41b94957cdd25137d3ac12e94e8b21aa01b68), [`c28833c`](https://github.com/mastra-ai/mastra/commit/c28833c5b6d8e10eeffd7f7d39129d53b8bca240), [`8ea07b4`](https://github.com/mastra-ai/mastra/commit/8ea07b4bdc73e4218437dbb6dcb0f4b23e745a44), [`ba201b8`](https://github.com/mastra-ai/mastra/commit/ba201b8f8feac4c72350f2dbd52c13c7297ba7b0), [`f053e89`](https://github.com/mastra-ai/mastra/commit/f053e89160dbd0bd3333fc3492f68231b5c7c349), [`4fc4136`](https://github.com/mastra-ai/mastra/commit/4fc413652866a8d2240694fddb2562e9edbb70df), [`b78e04d`](https://github.com/mastra-ai/mastra/commit/b78e04d935a16ecb1e59c5c96e564903527edddd), [`d10baf5`](https://github.com/mastra-ai/mastra/commit/d10baf5a3c924f2a6654e23a3e318ed03f189b76), [`038c55a`](https://github.com/mastra-ai/mastra/commit/038c55a7090fc1b1513a966386d3072617f836ac), [`182f045`](https://github.com/mastra-ai/mastra/commit/182f0458f25bd70aa774e64fd923c8a483eddbf1), [`9a1a485`](https://github.com/mastra-ai/mastra/commit/9a1a4859b855e37239f652bf14b1ecd1029b8c4e), [`9257233`](https://github.com/mastra-ai/mastra/commit/9257233c4ffce09b2bedc2a9adbd70d7a83fa8e2), [`7620d2b`](https://github.com/mastra-ai/mastra/commit/7620d2bddeb4fae4c3c0a0b4e672969795fca11a), [`b2365f0`](https://github.com/mastra-ai/mastra/commit/b2365f038dd4c5f06400428b224af963f399ad50), [`0f1a4c9`](https://github.com/mastra-ai/mastra/commit/0f1a4c984fb4b104b2f0b63ba18c9fa77f567700), [`9029ba3`](https://github.com/mastra-ai/mastra/commit/9029ba34459c8859fed4c6b73efd8e2d0021e7ba), [`426cc56`](https://github.com/mastra-ai/mastra/commit/426cc561c85ae76a112ded2385532a91f9f9f074), [`00931fb`](https://github.com/mastra-ai/mastra/commit/00931fb1a21aa42c4fbc20c2c40dd62466b8fc8f), [`e473bfe`](https://github.com/mastra-ai/mastra/commit/e473bfe416c0b8e876973c2b6a6f13c394b7a93f), [`b78e04d`](https://github.com/mastra-ai/mastra/commit/b78e04d935a16ecb1e59c5c96e564903527edddd), [`2db6160`](https://github.com/mastra-ai/mastra/commit/2db6160e2022ff8827c15d30157e684683b934b5), [`8aeea37`](https://github.com/mastra-ai/mastra/commit/8aeea37efdde347c635a67fed56794943b7f74ec), [`02fe153`](https://github.com/mastra-ai/mastra/commit/02fe15351d6021d214da48ec982a0e9e4150bcee), [`648e2ca`](https://github.com/mastra-ai/mastra/commit/648e2ca42da54838c6ccbdaadc6fadd808fa6b86), [`74567b3`](https://github.com/mastra-ai/mastra/commit/74567b3d237ae3915cd0bca3cf55fa0a64e4e4a4), [`b65c5e0`](https://github.com/mastra-ai/mastra/commit/b65c5e0fe6f3c390a9a8bbcf69304d972c3a4afb), [`15a1733`](https://github.com/mastra-ai/mastra/commit/15a1733074cee8bd37370e1af34cd818e89fa7ac), [`fc2a774`](https://github.com/mastra-ai/mastra/commit/fc2a77468981aaddc3e77f83f0c4ad4a4af140da), [`4e08933`](https://github.com/mastra-ai/mastra/commit/4e08933625464dfde178347af5b6278fcf34188e)]:
1458
+ - @mastra/core@0.22.0
1459
+
1460
+ ## 0.22.0-alpha.1
1461
+
1462
+ ### Minor Changes
1463
+
1464
+ - Consolidate streamVNext logic into stream, move old stream function into streamLegacy ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
1465
+
1466
+ - Update peer dependencies to match core package version bump (0.21.2) ([#9038](https://github.com/mastra-ai/mastra/pull/9038))
1467
+
1468
+ - Update peer dependencies to match core package version bump (0.22.0) ([#9092](https://github.com/mastra-ai/mastra/pull/9092))
1469
+
1470
+ - Update peer dependencies to match core package version bump (0.21.2) ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
1471
+
1472
+ ### Patch Changes
1473
+
1474
+ - Updated `watch` and `watchAsync` methods to use proper function overloads instead of generic conditional types, ensuring compatibility with the base Run class signatures. ([#9048](https://github.com/mastra-ai/mastra/pull/9048))
1475
+
1476
+ - Fix custom metadata preservation in UIMessages when loading threads. The `getMessagesHandler` now converts `messagesV2` (V2 format with metadata) instead of `messages` (V1 format without metadata) to AIV5.UI format. Also updates the abstract `MastraMemory.query()` return type to include `messagesV2` for proper type safety. ([#9029](https://github.com/mastra-ai/mastra/pull/9029))
1477
+
1478
+ - Fix provider tools for popular providers and add support for anthropic/claude skills. ([#9038](https://github.com/mastra-ai/mastra/pull/9038))
1479
+
1480
+ - Show agent tool output better in playground ([#9021](https://github.com/mastra-ai/mastra/pull/9021))
1481
+
1482
+ - Update peerdeps to 0.23.0-0 ([#9043](https://github.com/mastra-ai/mastra/pull/9043))
1483
+
1484
+ - Updated dependencies [[`efb5ed9`](https://github.com/mastra-ai/mastra/commit/efb5ed946ae7f410bc68c9430beb4b010afd25ec), [`8ea07b4`](https://github.com/mastra-ai/mastra/commit/8ea07b4bdc73e4218437dbb6dcb0f4b23e745a44), [`ba201b8`](https://github.com/mastra-ai/mastra/commit/ba201b8f8feac4c72350f2dbd52c13c7297ba7b0), [`4fc4136`](https://github.com/mastra-ai/mastra/commit/4fc413652866a8d2240694fddb2562e9edbb70df), [`b78e04d`](https://github.com/mastra-ai/mastra/commit/b78e04d935a16ecb1e59c5c96e564903527edddd), [`d10baf5`](https://github.com/mastra-ai/mastra/commit/d10baf5a3c924f2a6654e23a3e318ed03f189b76), [`038c55a`](https://github.com/mastra-ai/mastra/commit/038c55a7090fc1b1513a966386d3072617f836ac), [`182f045`](https://github.com/mastra-ai/mastra/commit/182f0458f25bd70aa774e64fd923c8a483eddbf1), [`7620d2b`](https://github.com/mastra-ai/mastra/commit/7620d2bddeb4fae4c3c0a0b4e672969795fca11a), [`b2365f0`](https://github.com/mastra-ai/mastra/commit/b2365f038dd4c5f06400428b224af963f399ad50), [`9029ba3`](https://github.com/mastra-ai/mastra/commit/9029ba34459c8859fed4c6b73efd8e2d0021e7ba), [`426cc56`](https://github.com/mastra-ai/mastra/commit/426cc561c85ae76a112ded2385532a91f9f9f074), [`00931fb`](https://github.com/mastra-ai/mastra/commit/00931fb1a21aa42c4fbc20c2c40dd62466b8fc8f), [`e473bfe`](https://github.com/mastra-ai/mastra/commit/e473bfe416c0b8e876973c2b6a6f13c394b7a93f), [`b78e04d`](https://github.com/mastra-ai/mastra/commit/b78e04d935a16ecb1e59c5c96e564903527edddd), [`648e2ca`](https://github.com/mastra-ai/mastra/commit/648e2ca42da54838c6ccbdaadc6fadd808fa6b86), [`b65c5e0`](https://github.com/mastra-ai/mastra/commit/b65c5e0fe6f3c390a9a8bbcf69304d972c3a4afb)]:
1485
+ - @mastra/core@0.22.0-alpha.1
1486
+
1487
+ ## 0.21.2-alpha.0
1488
+
1489
+ ### Patch Changes
1490
+
1491
+ - Generate a title for Agent.network() threads ([#8853](https://github.com/mastra-ai/mastra/pull/8853))
1492
+
1493
+ - Updated dependencies [[`c67ca32`](https://github.com/mastra-ai/mastra/commit/c67ca32e3c2cf69bfc146580770c720220ca44ac), [`dbc9e12`](https://github.com/mastra-ai/mastra/commit/dbc9e1216ba575ba59ead4afb727a01215f7de4f), [`99e41b9`](https://github.com/mastra-ai/mastra/commit/99e41b94957cdd25137d3ac12e94e8b21aa01b68), [`c28833c`](https://github.com/mastra-ai/mastra/commit/c28833c5b6d8e10eeffd7f7d39129d53b8bca240), [`f053e89`](https://github.com/mastra-ai/mastra/commit/f053e89160dbd0bd3333fc3492f68231b5c7c349), [`9a1a485`](https://github.com/mastra-ai/mastra/commit/9a1a4859b855e37239f652bf14b1ecd1029b8c4e), [`9257233`](https://github.com/mastra-ai/mastra/commit/9257233c4ffce09b2bedc2a9adbd70d7a83fa8e2), [`0f1a4c9`](https://github.com/mastra-ai/mastra/commit/0f1a4c984fb4b104b2f0b63ba18c9fa77f567700), [`2db6160`](https://github.com/mastra-ai/mastra/commit/2db6160e2022ff8827c15d30157e684683b934b5), [`8aeea37`](https://github.com/mastra-ai/mastra/commit/8aeea37efdde347c635a67fed56794943b7f74ec), [`02fe153`](https://github.com/mastra-ai/mastra/commit/02fe15351d6021d214da48ec982a0e9e4150bcee), [`74567b3`](https://github.com/mastra-ai/mastra/commit/74567b3d237ae3915cd0bca3cf55fa0a64e4e4a4), [`15a1733`](https://github.com/mastra-ai/mastra/commit/15a1733074cee8bd37370e1af34cd818e89fa7ac), [`fc2a774`](https://github.com/mastra-ai/mastra/commit/fc2a77468981aaddc3e77f83f0c4ad4a4af140da), [`4e08933`](https://github.com/mastra-ai/mastra/commit/4e08933625464dfde178347af5b6278fcf34188e)]:
1494
+ - @mastra/core@0.21.2-alpha.0
1495
+
1496
+ ## 0.21.1
1497
+
1498
+ ### Patch Changes
1499
+
1500
+ - 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)]:
1501
+ - @mastra/core@0.21.1
1502
+
1503
+ ## 0.21.1-alpha.0
1504
+
1505
+ ### Patch Changes
1506
+
1507
+ - 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)]:
1508
+ - @mastra/core@0.21.1-alpha.0
1509
+
1510
+ ## 0.21.0
4
1511
 
5
1512
  ### Minor Changes
6
1513
 
@@ -13,12 +1520,44 @@
13
1520
 
14
1521
  - Update peer dependencies to match core package version bump (0.21.0) ([#8619](https://github.com/mastra-ai/mastra/pull/8619))
15
1522
 
1523
+ - Include span id and trace id when running live scorers ([#8842](https://github.com/mastra-ai/mastra/pull/8842))
1524
+
16
1525
  - Update peer dependencies to match core package version bump (0.21.0) ([#8626](https://github.com/mastra-ai/mastra/pull/8626))
17
1526
 
18
1527
  - Update peer dependencies to match core package version bump (0.21.0) ([#8686](https://github.com/mastra-ai/mastra/pull/8686))
19
1528
 
20
- - Updated dependencies [[`1ed9670`](https://github.com/mastra-ai/mastra/commit/1ed9670d3ca50cb60dc2e517738c5eef3968ed27), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`ee68e82`](https://github.com/mastra-ai/mastra/commit/ee68e8289ea4408d29849e899bc6e78b3bd4e843), [`228228b`](https://github.com/mastra-ai/mastra/commit/228228b0b1de9291cb8887587f5cea1a8757ebad), [`ea33930`](https://github.com/mastra-ai/mastra/commit/ea339301e82d6318257720d811b043014ee44064), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`135d6f2`](https://github.com/mastra-ai/mastra/commit/135d6f22a326ed1dffff858700669dff09d2c9eb), [`59d036d`](https://github.com/mastra-ai/mastra/commit/59d036d4c2706b430b0e3f1f1e0ee853ce16ca04)]:
21
- - @mastra/core@0.0.0-dynamic-model-router-20251010193247
1529
+ - Updated dependencies [[`1ed9670`](https://github.com/mastra-ai/mastra/commit/1ed9670d3ca50cb60dc2e517738c5eef3968ed27), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`f59fc1e`](https://github.com/mastra-ai/mastra/commit/f59fc1e406b8912e692f6bff6cfd4754cc8d165c), [`158381d`](https://github.com/mastra-ai/mastra/commit/158381d39335be934b81ef8a1947bccace492c25), [`a1799bc`](https://github.com/mastra-ai/mastra/commit/a1799bcc1b5a1cdc188f2ac0165f17a1c4ac6f7b), [`6ff6094`](https://github.com/mastra-ai/mastra/commit/6ff60946f4ecfebdeef6e21d2b230c2204f2c9b8), [`fb703b9`](https://github.com/mastra-ai/mastra/commit/fb703b9634eeaff1a6eb2b5531ce0f9e8fb04727), [`37a2314`](https://github.com/mastra-ai/mastra/commit/37a23148e0e5a3b40d4f9f098b194671a8a49faf), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`05a9dee`](https://github.com/mastra-ai/mastra/commit/05a9dee3d355694d28847bfffb6289657fcf7dfa), [`e3c1077`](https://github.com/mastra-ai/mastra/commit/e3c107763aedd1643d3def5df450c235da9ff76c), [`1908ca0`](https://github.com/mastra-ai/mastra/commit/1908ca0521f90e43779cc29ab590173ca560443c), [`1bccdb3`](https://github.com/mastra-ai/mastra/commit/1bccdb33eb90cbeba2dc5ece1c2561fb774b26b6), [`5ef944a`](https://github.com/mastra-ai/mastra/commit/5ef944a3721d93105675cac2b2311432ff8cc393), [`d6b186f`](https://github.com/mastra-ai/mastra/commit/d6b186fb08f1caf1b86f73d3a5ee88fb999ca3be), [`ee68e82`](https://github.com/mastra-ai/mastra/commit/ee68e8289ea4408d29849e899bc6e78b3bd4e843), [`228228b`](https://github.com/mastra-ai/mastra/commit/228228b0b1de9291cb8887587f5cea1a8757ebad), [`ea33930`](https://github.com/mastra-ai/mastra/commit/ea339301e82d6318257720d811b043014ee44064), [`65493b3`](https://github.com/mastra-ai/mastra/commit/65493b31c36f6fdb78f9679f7e1ecf0c250aa5ee), [`a998b8f`](https://github.com/mastra-ai/mastra/commit/a998b8f858091c2ec47683e60766cf12d03001e4), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`8a37bdd`](https://github.com/mastra-ai/mastra/commit/8a37bddb6d8614a32c5b70303d583d80c620ea61), [`135d6f2`](https://github.com/mastra-ai/mastra/commit/135d6f22a326ed1dffff858700669dff09d2c9eb)]:
1530
+ - @mastra/core@0.21.0
1531
+
1532
+ ## 0.21.0-alpha.4
1533
+
1534
+ ### Patch Changes
1535
+
1536
+ - Include span id and trace id when running live scorers ([#8842](https://github.com/mastra-ai/mastra/pull/8842))
1537
+
1538
+ - Updated dependencies [[`1908ca0`](https://github.com/mastra-ai/mastra/commit/1908ca0521f90e43779cc29ab590173ca560443c)]:
1539
+ - @mastra/core@0.21.0-alpha.4
1540
+
1541
+ ## 0.21.0-alpha.3
1542
+
1543
+ ### Patch Changes
1544
+
1545
+ - Updated dependencies [[`a1799bc`](https://github.com/mastra-ai/mastra/commit/a1799bcc1b5a1cdc188f2ac0165f17a1c4ac6f7b), [`6ff6094`](https://github.com/mastra-ai/mastra/commit/6ff60946f4ecfebdeef6e21d2b230c2204f2c9b8)]:
1546
+ - @mastra/core@0.21.0-alpha.3
1547
+
1548
+ ## 0.21.0-alpha.2
1549
+
1550
+ ### Patch Changes
1551
+
1552
+ - Updated dependencies [[`f59fc1e`](https://github.com/mastra-ai/mastra/commit/f59fc1e406b8912e692f6bff6cfd4754cc8d165c)]:
1553
+ - @mastra/core@0.21.0-alpha.2
1554
+
1555
+ ## 0.21.0-alpha.1
1556
+
1557
+ ### Patch Changes
1558
+
1559
+ - 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)]:
1560
+ - @mastra/core@0.21.0-alpha.1
22
1561
 
23
1562
  ## 0.21.0-alpha.0
24
1563