@mastra/core 0.15.3-alpha.3 → 0.15.3-alpha.5

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 (173) hide show
  1. package/CHANGELOG.md +3188 -0
  2. package/dist/agent/agent.types.d.ts +9 -4
  3. package/dist/agent/agent.types.d.ts.map +1 -1
  4. package/dist/agent/index.cjs +11 -11
  5. package/dist/agent/index.d.ts +33 -5
  6. package/dist/agent/index.d.ts.map +1 -1
  7. package/dist/agent/index.js +2 -2
  8. package/dist/agent/input-processor/index.cjs +6 -6
  9. package/dist/agent/input-processor/index.js +1 -1
  10. package/dist/agent/types.d.ts +11 -6
  11. package/dist/agent/types.d.ts.map +1 -1
  12. package/dist/ai-tracing/context.d.ts.map +1 -1
  13. package/dist/ai-tracing/default.d.ts.map +1 -1
  14. package/dist/ai-tracing/index.cjs +43 -31
  15. package/dist/ai-tracing/index.js +1 -1
  16. package/dist/ai-tracing/no-op.d.ts +0 -1
  17. package/dist/ai-tracing/no-op.d.ts.map +1 -1
  18. package/dist/ai-tracing/types.d.ts +0 -2
  19. package/dist/ai-tracing/types.d.ts.map +1 -1
  20. package/dist/ai-tracing/utils.d.ts +44 -8
  21. package/dist/ai-tracing/utils.d.ts.map +1 -1
  22. package/dist/{chunk-BGOXFBFK.js → chunk-23NO6AMW.js} +458 -223
  23. package/dist/chunk-23NO6AMW.js.map +1 -0
  24. package/dist/{chunk-MEROMP3Z.js → chunk-2L6PFHHU.js} +3 -3
  25. package/dist/{chunk-MEROMP3Z.js.map → chunk-2L6PFHHU.js.map} +1 -1
  26. package/dist/{chunk-TWNFR6MQ.cjs → chunk-5CJDO3UO.cjs} +8 -8
  27. package/dist/{chunk-TWNFR6MQ.cjs.map → chunk-5CJDO3UO.cjs.map} +1 -1
  28. package/dist/{chunk-APVV75XG.js → chunk-A5NC3XK2.js} +62 -16
  29. package/dist/chunk-A5NC3XK2.js.map +1 -0
  30. package/dist/{chunk-ZAJTIZZF.cjs → chunk-ABRPHTOG.cjs} +2 -2
  31. package/dist/{chunk-ZAJTIZZF.cjs.map → chunk-ABRPHTOG.cjs.map} +1 -1
  32. package/dist/{chunk-GOG77M6R.js → chunk-BJGHUKKM.js} +2 -2
  33. package/dist/{chunk-GOG77M6R.js.map → chunk-BJGHUKKM.js.map} +1 -1
  34. package/dist/{chunk-5TFCIXWE.js → chunk-CKM2ESZF.js} +44 -21
  35. package/dist/chunk-CKM2ESZF.js.map +1 -0
  36. package/dist/{chunk-AYFN43FB.cjs → chunk-E264YNL3.cjs} +68 -22
  37. package/dist/chunk-E264YNL3.cjs.map +1 -0
  38. package/dist/{chunk-QHEB6ZLO.cjs → chunk-F2CAC2R2.cjs} +47 -24
  39. package/dist/chunk-F2CAC2R2.cjs.map +1 -0
  40. package/dist/{chunk-O7IQL4DX.js → chunk-F4SQXAXR.js} +7 -7
  41. package/dist/{chunk-O7IQL4DX.js.map → chunk-F4SQXAXR.js.map} +1 -1
  42. package/dist/{chunk-HXEHQLBD.cjs → chunk-F6XWBVVG.cjs} +4 -4
  43. package/dist/{chunk-HXEHQLBD.cjs.map → chunk-F6XWBVVG.cjs.map} +1 -1
  44. package/dist/{chunk-4DKPMUAC.cjs → chunk-I7OAONIW.cjs} +259 -177
  45. package/dist/chunk-I7OAONIW.cjs.map +1 -0
  46. package/dist/{chunk-EMAAAVRA.js → chunk-IODUKRQP.js} +3 -3
  47. package/dist/{chunk-EMAAAVRA.js.map → chunk-IODUKRQP.js.map} +1 -1
  48. package/dist/{chunk-DJKIK6ZB.cjs → chunk-JQKPRJCJ.cjs} +489 -254
  49. package/dist/chunk-JQKPRJCJ.cjs.map +1 -0
  50. package/dist/{chunk-WOTBMZCN.js → chunk-LOYT3WUA.js} +255 -176
  51. package/dist/chunk-LOYT3WUA.js.map +1 -0
  52. package/dist/{chunk-24TFSB6Z.cjs → chunk-LVGGMWSE.cjs} +8 -8
  53. package/dist/chunk-LVGGMWSE.cjs.map +1 -0
  54. package/dist/{chunk-D2GH2HAK.cjs → chunk-MVEPSGWQ.cjs} +10 -10
  55. package/dist/chunk-MVEPSGWQ.cjs.map +1 -0
  56. package/dist/{chunk-UGN2UU3K.cjs → chunk-OBKBA6CO.cjs} +4 -4
  57. package/dist/{chunk-UGN2UU3K.cjs.map → chunk-OBKBA6CO.cjs.map} +1 -1
  58. package/dist/{chunk-TQRLZH64.js → chunk-PQ3VP6NG.js} +5 -5
  59. package/dist/chunk-PQ3VP6NG.js.map +1 -0
  60. package/dist/{chunk-YTVX52NU.cjs → chunk-VVTB47UG.cjs} +6 -6
  61. package/dist/{chunk-YTVX52NU.cjs.map → chunk-VVTB47UG.cjs.map} +1 -1
  62. package/dist/{chunk-ZC64CG7J.js → chunk-WWQ3QRPF.js} +4 -4
  63. package/dist/chunk-WWQ3QRPF.js.map +1 -0
  64. package/dist/{chunk-WUQSFK7W.js → chunk-XPFWOBV4.js} +4 -4
  65. package/dist/{chunk-WUQSFK7W.js.map → chunk-XPFWOBV4.js.map} +1 -1
  66. package/dist/index.cjs +44 -44
  67. package/dist/index.js +10 -10
  68. package/dist/integration/index.cjs +3 -3
  69. package/dist/integration/index.js +1 -1
  70. package/dist/llm/index.d.ts +2 -2
  71. package/dist/llm/index.d.ts.map +1 -1
  72. package/dist/llm/model/base.types.d.ts +2 -2
  73. package/dist/llm/model/base.types.d.ts.map +1 -1
  74. package/dist/llm/model/model.d.ts +4 -4
  75. package/dist/llm/model/model.d.ts.map +1 -1
  76. package/dist/llm/model/model.loop.d.ts +1 -1
  77. package/dist/llm/model/model.loop.d.ts.map +1 -1
  78. package/dist/llm/model/model.loop.types.d.ts +2 -0
  79. package/dist/llm/model/model.loop.types.d.ts.map +1 -1
  80. package/dist/loop/index.cjs +2 -2
  81. package/dist/loop/index.js +1 -1
  82. package/dist/loop/loop.d.ts +1 -1
  83. package/dist/loop/loop.d.ts.map +1 -1
  84. package/dist/loop/types.d.ts +2 -0
  85. package/dist/loop/types.d.ts.map +1 -1
  86. package/dist/loop/workflow/stream.d.ts +1 -1
  87. package/dist/loop/workflow/stream.d.ts.map +1 -1
  88. package/dist/mastra/hooks.d.ts.map +1 -1
  89. package/dist/mastra/index.cjs +2 -2
  90. package/dist/mastra/index.d.ts +8 -3
  91. package/dist/mastra/index.d.ts.map +1 -1
  92. package/dist/mastra/index.js +1 -1
  93. package/dist/memory/index.cjs +4 -4
  94. package/dist/memory/index.js +1 -1
  95. package/dist/network/index.cjs +4 -4
  96. package/dist/network/index.js +2 -2
  97. package/dist/network/vNext/index.cjs +14 -14
  98. package/dist/network/vNext/index.js +2 -2
  99. package/dist/processors/index.cjs +13 -11
  100. package/dist/processors/index.cjs.map +1 -1
  101. package/dist/processors/index.d.ts +4 -0
  102. package/dist/processors/index.d.ts.map +1 -1
  103. package/dist/processors/index.js +7 -5
  104. package/dist/processors/index.js.map +1 -1
  105. package/dist/processors/processors/moderation.d.ts +4 -0
  106. package/dist/processors/processors/moderation.d.ts.map +1 -1
  107. package/dist/processors/processors/pii-detector.d.ts +3 -0
  108. package/dist/processors/processors/pii-detector.d.ts.map +1 -1
  109. package/dist/processors/processors/prompt-injection-detector.d.ts +2 -0
  110. package/dist/processors/processors/prompt-injection-detector.d.ts.map +1 -1
  111. package/dist/processors/processors/system-prompt-scrubber.d.ts +2 -0
  112. package/dist/processors/processors/system-prompt-scrubber.d.ts.map +1 -1
  113. package/dist/processors/runner.d.ts +5 -4
  114. package/dist/processors/runner.d.ts.map +1 -1
  115. package/dist/relevance/index.cjs +4 -4
  116. package/dist/relevance/index.js +1 -1
  117. package/dist/scores/base.d.ts +2 -0
  118. package/dist/scores/base.d.ts.map +1 -1
  119. package/dist/scores/hooks.d.ts +3 -1
  120. package/dist/scores/hooks.d.ts.map +1 -1
  121. package/dist/scores/index.cjs +27 -18
  122. package/dist/scores/index.cjs.map +1 -1
  123. package/dist/scores/index.js +23 -14
  124. package/dist/scores/index.js.map +1 -1
  125. package/dist/scores/run-experiment/index.d.ts +2 -0
  126. package/dist/scores/run-experiment/index.d.ts.map +1 -1
  127. package/dist/scores/types.d.ts +3 -0
  128. package/dist/scores/types.d.ts.map +1 -1
  129. package/dist/storage/domains/workflows/inmemory.d.ts +1 -1
  130. package/dist/storage/domains/workflows/inmemory.d.ts.map +1 -1
  131. package/dist/storage/index.cjs +13 -14
  132. package/dist/storage/index.cjs.map +1 -1
  133. package/dist/storage/index.js +11 -12
  134. package/dist/storage/index.js.map +1 -1
  135. package/dist/stream/index.cjs +3 -3
  136. package/dist/stream/index.js +1 -1
  137. package/dist/test-utils/llm-mock.cjs +2 -2
  138. package/dist/test-utils/llm-mock.js +1 -1
  139. package/dist/tools/index.cjs +4 -4
  140. package/dist/tools/index.js +1 -1
  141. package/dist/tools/is-vercel-tool.cjs +2 -2
  142. package/dist/tools/is-vercel-tool.js +1 -1
  143. package/dist/tools/tool.d.ts +3 -1
  144. package/dist/tools/tool.d.ts.map +1 -1
  145. package/dist/utils.cjs +17 -17
  146. package/dist/utils.d.ts +3 -3
  147. package/dist/utils.d.ts.map +1 -1
  148. package/dist/utils.js +1 -1
  149. package/dist/workflows/default.d.ts +13 -3
  150. package/dist/workflows/default.d.ts.map +1 -1
  151. package/dist/workflows/evented/index.cjs +10 -10
  152. package/dist/workflows/evented/index.js +1 -1
  153. package/dist/workflows/execution-engine.d.ts +2 -2
  154. package/dist/workflows/execution-engine.d.ts.map +1 -1
  155. package/dist/workflows/index.cjs +10 -10
  156. package/dist/workflows/index.js +1 -1
  157. package/dist/workflows/legacy/index.cjs +22 -22
  158. package/dist/workflows/legacy/index.js +1 -1
  159. package/dist/workflows/workflow.d.ts +15 -10
  160. package/dist/workflows/workflow.d.ts.map +1 -1
  161. package/package.json +18 -8
  162. package/dist/chunk-24TFSB6Z.cjs.map +0 -1
  163. package/dist/chunk-4DKPMUAC.cjs.map +0 -1
  164. package/dist/chunk-5TFCIXWE.js.map +0 -1
  165. package/dist/chunk-APVV75XG.js.map +0 -1
  166. package/dist/chunk-AYFN43FB.cjs.map +0 -1
  167. package/dist/chunk-BGOXFBFK.js.map +0 -1
  168. package/dist/chunk-D2GH2HAK.cjs.map +0 -1
  169. package/dist/chunk-DJKIK6ZB.cjs.map +0 -1
  170. package/dist/chunk-QHEB6ZLO.cjs.map +0 -1
  171. package/dist/chunk-TQRLZH64.js.map +0 -1
  172. package/dist/chunk-WOTBMZCN.js.map +0 -1
  173. package/dist/chunk-ZC64CG7J.js.map +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,3188 @@
1
+ # @mastra/core
2
+
3
+ ## 0.15.3-alpha.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [#7272](https://github.com/mastra-ai/mastra/pull/7272) [`85ef90b`](https://github.com/mastra-ai/mastra/commit/85ef90bb2cd4ae4df855c7ac175f7d392c55c1bf) Thanks [@taofeeq-deru](https://github.com/taofeeq-deru)! - Return nested workflow steps information in getWorkflowRunExecutionResult
8
+
9
+ - [#7343](https://github.com/mastra-ai/mastra/pull/7343) [`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e) Thanks [@LekoArts](https://github.com/LekoArts)! - Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
10
+
11
+ - Updated dependencies [[`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e)]:
12
+ - @mastra/schema-compat@0.11.2-alpha.2
13
+
14
+ ## 0.15.3-alpha.4
15
+
16
+ ### Patch Changes
17
+
18
+ - [#5816](https://github.com/mastra-ai/mastra/pull/5816) [`ab48c97`](https://github.com/mastra-ai/mastra/commit/ab48c979098ea571faf998a55d3a00e7acd7a715) Thanks [@dane-ai-mastra](https://github.com/apps/dane-ai-mastra)! - dependencies updates:
19
+ - Updated dependency [`zod-to-json-schema@^3.24.6` ↗︎](https://www.npmjs.com/package/zod-to-json-schema/v/3.24.6) (from `^3.24.5`, in `dependencies`)
20
+
21
+ - [#7269](https://github.com/mastra-ai/mastra/pull/7269) [`ff89505`](https://github.com/mastra-ai/mastra/commit/ff895057c8c7e91a5535faef46c5e5391085ddfa) Thanks [@wardpeet](https://github.com/wardpeet)! - Add deprecation warnings and add legacy routes
22
+
23
+ - [#7317](https://github.com/mastra-ai/mastra/pull/7317) [`183dc95`](https://github.com/mastra-ai/mastra/commit/183dc95596f391b977bd1a2c050b8498dac74891) Thanks [@TylerBarnes](https://github.com/TylerBarnes)! - Added a fix to prevent filtering out injected initial default user messages. Related to issue 7231
24
+
25
+ - [#7327](https://github.com/mastra-ai/mastra/pull/7327) [`a1111e2`](https://github.com/mastra-ai/mastra/commit/a1111e24e705488adfe5e0a6f20c53bddf26cb22) Thanks [@TylerBarnes](https://github.com/TylerBarnes)! - Fixes #7254 where the onFinish callback wasn't returning assistant messages when using format: 'aisdk' in streamVNext. The messageList was being updated with response messages but these weren't being passed to the user's onFinish callback.
26
+
27
+ - [#7267](https://github.com/mastra-ai/mastra/pull/7267) [`61debef`](https://github.com/mastra-ai/mastra/commit/61debefd80ad3a7ed5737e19df6a23d40091689a) Thanks [@TheIsrael1](https://github.com/TheIsrael1)! - Fix - add missing tool options to createTool
28
+
29
+ - [#7263](https://github.com/mastra-ai/mastra/pull/7263) [`9beaeff`](https://github.com/mastra-ai/mastra/commit/9beaeffa4a97b1d5fd01a7f8af8708b16067f67c) Thanks [@wardpeet](https://github.com/wardpeet)! - Create new `@mastra/ai-sdk` package to better support `useChat()`
30
+
31
+ - [#7323](https://github.com/mastra-ai/mastra/pull/7323) [`9eee594`](https://github.com/mastra-ai/mastra/commit/9eee594e35e0ca2a650fcc33fa82009a142b9ed0) Thanks [@DanielSLew](https://github.com/DanielSLew)! - Fix passing providerOptions through in streamVNext, enabling reasoning-delta chunks to be receiving.
32
+
33
+ - [#7266](https://github.com/mastra-ai/mastra/pull/7266) [`979912c`](https://github.com/mastra-ai/mastra/commit/979912cfd180aad53287cda08af771df26454e2c) Thanks [@epinzur](https://github.com/epinzur)! - "Updated langfuse exporter to handle Event spans"
34
+
35
+ - [#6966](https://github.com/mastra-ai/mastra/pull/6966) [`7dcf4c0`](https://github.com/mastra-ai/mastra/commit/7dcf4c04f44d9345b1f8bc5d41eae3f11ac61611) Thanks [@kaorukobo](https://github.com/kaorukobo)! - Ensure original stacktrace is preserved during workflow runs
36
+
37
+ - [#7274](https://github.com/mastra-ai/mastra/pull/7274) [`ad78bfc`](https://github.com/mastra-ai/mastra/commit/ad78bfc4ea6a1fff140432bf4f638e01af7af668) Thanks [@epinzur](https://github.com/epinzur)! - "pipes tracingContext through all ai items: agents, workflows, tools, processors, scorers, etc.."
38
+
39
+ - [#7219](https://github.com/mastra-ai/mastra/pull/7219) [`0ce418a`](https://github.com/mastra-ai/mastra/commit/0ce418a1ccaa5e125d4483a9651b635046152569) Thanks [@NikAiyer](https://github.com/NikAiyer)! - upgrade ai v5 versions to latest for core and memory
40
+
41
+ - [#7039](https://github.com/mastra-ai/mastra/pull/7039) [`8387952`](https://github.com/mastra-ai/mastra/commit/838795227b4edf758c84a2adf6f7fba206c27719) Thanks [@YujohnNattrass](https://github.com/YujohnNattrass)! - Register scorers on mastra instance to override per agent generate call
42
+
43
+ - [#7246](https://github.com/mastra-ai/mastra/pull/7246) [`5eca5d2`](https://github.com/mastra-ai/mastra/commit/5eca5d2655788863ea0442a46c9ef5d3c6dbe0a8) Thanks [@epinzur](https://github.com/epinzur)! - Fixed wrapped mastra class inside workflow steps.
44
+
45
+ - Updated dependencies [[`ab48c97`](https://github.com/mastra-ai/mastra/commit/ab48c979098ea571faf998a55d3a00e7acd7a715)]:
46
+ - @mastra/schema-compat@0.11.2-alpha.1
47
+
48
+ ## 0.15.3-alpha.3
49
+
50
+ ### Patch Changes
51
+
52
+ - [#7203](https://github.com/mastra-ai/mastra/pull/7203) [`aedbbfa`](https://github.com/mastra-ai/mastra/commit/aedbbfa064124ddde039111f12629daebfea7e48) Thanks [@epinzur](https://github.com/epinzur)! - Fixed wrapping of models with AI Tracing when used with structured output.
53
+
54
+ - [#7127](https://github.com/mastra-ai/mastra/pull/7127) [`f643c65`](https://github.com/mastra-ai/mastra/commit/f643c651bdaf57c2343cf9dbfc499010495701fb) Thanks [@abhiaiyer91](https://github.com/abhiaiyer91)! - Support file download
55
+
56
+ - [#7216](https://github.com/mastra-ai/mastra/pull/7216) [`fef7375`](https://github.com/mastra-ai/mastra/commit/fef737534574f41b432a7361a285f776c3bac42b) Thanks [@DanielSLew](https://github.com/DanielSLew)! - Fix tool validation when schema uses context or inputData reserved keys
57
+
58
+ - [#7090](https://github.com/mastra-ai/mastra/pull/7090) [`e3d8fea`](https://github.com/mastra-ai/mastra/commit/e3d8feaacfb8b5c5c03c13604cc06ea2873d45fe) Thanks [@K-Mistele](https://github.com/K-Mistele)! - Support Inngest flow control features for Mastra Inngest workflows
59
+
60
+ - [#7217](https://github.com/mastra-ai/mastra/pull/7217) [`3412597`](https://github.com/mastra-ai/mastra/commit/3412597a6644c0b6bf3236d6e319ed1450c5bae8) Thanks [@abhiaiyer91](https://github.com/abhiaiyer91)! - Pass provider options
61
+
62
+ ## 0.15.3-alpha.2
63
+
64
+ ### Patch Changes
65
+
66
+ - [#7129](https://github.com/mastra-ai/mastra/pull/7129) [`822c2e8`](https://github.com/mastra-ai/mastra/commit/822c2e88a3ecbffb7c680e6227976006ccefe6a8) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix custom output (tool-output) in ai-sdk stream output
67
+
68
+ ## 0.15.3-alpha.1
69
+
70
+ ### Patch Changes
71
+
72
+ - [#7121](https://github.com/mastra-ai/mastra/pull/7121) [`637f323`](https://github.com/mastra-ai/mastra/commit/637f32371d79a8f78c52c0d53411af0915fcec67) Thanks [@DanielSLew](https://github.com/DanielSLew)! - Fix issue with some compilers and calling zod v4's toJSONSchema function
73
+
74
+ - [#7124](https://github.com/mastra-ai/mastra/pull/7124) [`29de0e1`](https://github.com/mastra-ai/mastra/commit/29de0e1b0a7173317ae7d1ab0c0993167c659f2b) Thanks [@abhiaiyer91](https://github.com/abhiaiyer91)! - MastraEmbeddingModel and ts hack
75
+
76
+ - [#7125](https://github.com/mastra-ai/mastra/pull/7125) [`6ac697e`](https://github.com/mastra-ai/mastra/commit/6ac697edcc2435482c247cba615277ec4765dcc4) Thanks [@abhiaiyer91](https://github.com/abhiaiyer91)! - improveEmbeddingModelStuff
77
+
78
+ - Updated dependencies [[`637f323`](https://github.com/mastra-ai/mastra/commit/637f32371d79a8f78c52c0d53411af0915fcec67)]:
79
+ - @mastra/schema-compat@0.11.2-alpha.0
80
+
81
+ ## 0.15.3-alpha.0
82
+
83
+ ### Patch Changes
84
+
85
+ - [#7085](https://github.com/mastra-ai/mastra/pull/7085) [`00c74e7`](https://github.com/mastra-ai/mastra/commit/00c74e73b1926be0d475693bb886fb67a22ff352) Thanks [@epinzur](https://github.com/epinzur)! - Added a DefaultExporter for AI Tracing.
86
+
87
+ - [#7030](https://github.com/mastra-ai/mastra/pull/7030) [`af90672`](https://github.com/mastra-ai/mastra/commit/af906722d8da28688882193b1e531026f9e2e81e) Thanks [@abhiaiyer91](https://github.com/abhiaiyer91)! - Add maxSteps
88
+
89
+ - [#7116](https://github.com/mastra-ai/mastra/pull/7116) [`56041d0`](https://github.com/mastra-ai/mastra/commit/56041d018863a3da6b98c512e47348647c075fb3) Thanks [@DanielSLew](https://github.com/DanielSLew)! - Don't set supportsStructuredOutputs for every v2 model
90
+
91
+ - [#7109](https://github.com/mastra-ai/mastra/pull/7109) [`5de1555`](https://github.com/mastra-ai/mastra/commit/5de15554d3d6695211945a36928f6657e76cddc9) Thanks [@epinzur](https://github.com/epinzur)! - Fixed tracingContext on tool executions in AI tracing
92
+
93
+ - [#7025](https://github.com/mastra-ai/mastra/pull/7025) [`1ed5a3e`](https://github.com/mastra-ai/mastra/commit/1ed5a3e19330374c4347a4237cd2f4b9ffb60376) Thanks [@YujohnNattrass](https://github.com/YujohnNattrass)! - Support workflows for run experiments
94
+
95
+ ## 0.15.2
96
+
97
+ ### Patch Changes
98
+
99
+ - Updated dependencies [[`c6113ed`](https://github.com/mastra-ai/mastra/commit/c6113ed7f9df297e130d94436ceee310273d6430)]:
100
+ - @mastra/schema-compat@0.11.1
101
+
102
+ ## 0.15.0
103
+
104
+ ### Minor Changes
105
+
106
+ - [#7032](https://github.com/mastra-ai/mastra/pull/7032) [`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c) Thanks [@wardpeet](https://github.com/wardpeet)! - Bump zod peerdep to 3.25.0 to support both v3/v4
107
+
108
+ ### Patch Changes
109
+
110
+ - [#6938](https://github.com/mastra-ai/mastra/pull/6938) [`0778757`](https://github.com/mastra-ai/mastra/commit/07787570e4addbd501522037bd2542c3d9e26822) Thanks [@dane-ai-mastra](https://github.com/apps/dane-ai-mastra)! - dependencies updates:
111
+ - Updated dependency [`@opentelemetry/auto-instrumentations-node@^0.62.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/auto-instrumentations-node/v/0.62.1) (from `^0.62.0`, in `dependencies`)
112
+
113
+ - [#6997](https://github.com/mastra-ai/mastra/pull/6997) [`943a7f3`](https://github.com/mastra-ai/mastra/commit/943a7f3dbc6a8ab3f9b7bc7c8a1c5b319c3d7f56) Thanks [@wardpeet](https://github.com/wardpeet)! - Bundle/mastra speed improvements
114
+
115
+ - [#6933](https://github.com/mastra-ai/mastra/pull/6933) [`bf504a8`](https://github.com/mastra-ai/mastra/commit/bf504a833051f6f321d832cc7d631f3cb86d657b) Thanks [@NikAiyer](https://github.com/NikAiyer)! - Add util functions for workflow server handlers and made processor process function async
116
+
117
+ - [#6954](https://github.com/mastra-ai/mastra/pull/6954) [`be49354`](https://github.com/mastra-ai/mastra/commit/be493546dca540101923ec700feb31f9a13939f2) Thanks [@YujohnNattrass](https://github.com/YujohnNattrass)! - Add db schema and base storage apis for AI Tracing
118
+
119
+ - [#6957](https://github.com/mastra-ai/mastra/pull/6957) [`d591ab3`](https://github.com/mastra-ai/mastra/commit/d591ab3ecc985c1870c0db347f8d7a20f7360536) Thanks [@YujohnNattrass](https://github.com/YujohnNattrass)! - Implement Tracing API for inmemory(mock) storage
120
+
121
+ - [#6923](https://github.com/mastra-ai/mastra/pull/6923) [`ba82abe`](https://github.com/mastra-ai/mastra/commit/ba82abe76e869316bb5a9c95e8ea3946f3436fae) Thanks [@rase-](https://github.com/rase-)! - Event based execution engine
122
+
123
+ - [#6971](https://github.com/mastra-ai/mastra/pull/6971) [`727f7e5`](https://github.com/mastra-ai/mastra/commit/727f7e5086e62e0dfe3356fb6dcd8bcb420af246) Thanks [@epinzur](https://github.com/epinzur)! - "updated ai tracing in workflows"
124
+
125
+ - [#6949](https://github.com/mastra-ai/mastra/pull/6949) [`e6f5046`](https://github.com/mastra-ai/mastra/commit/e6f50467aff317e67e8bd74c485c3fbe2a5a6db1) Thanks [@CalebBarnes](https://github.com/CalebBarnes)! - stream/generate vnext: simplify internal output schema handling, improve types and typescript generics, and add jsdoc comments
126
+
127
+ - [#6993](https://github.com/mastra-ai/mastra/pull/6993) [`82d9f64`](https://github.com/mastra-ai/mastra/commit/82d9f647fbe4f0177320e7c05073fce88599aa95) Thanks [@wardpeet](https://github.com/wardpeet)! - Improve types and fix linting issues
128
+
129
+ - [#7020](https://github.com/mastra-ai/mastra/pull/7020) [`2e58325`](https://github.com/mastra-ai/mastra/commit/2e58325beb170f5b92f856e27d915cd26917e5e6) Thanks [@YujohnNattrass](https://github.com/YujohnNattrass)! - Add column to ai spans table to tell if it's an event
130
+
131
+ - [#7011](https://github.com/mastra-ai/mastra/pull/7011) [`4189486`](https://github.com/mastra-ai/mastra/commit/4189486c6718fda78347bdf4ce4d3fc33b2236e1) Thanks [@epinzur](https://github.com/epinzur)! - Wrapped mastra objects in workflow steps to automatically pass on tracing context
132
+
133
+ - [#6942](https://github.com/mastra-ai/mastra/pull/6942) [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01) Thanks [@wardpeet](https://github.com/wardpeet)! - Add zod as peerdeps for all packages
134
+
135
+ - [#6943](https://github.com/mastra-ai/mastra/pull/6943) [`9613558`](https://github.com/mastra-ai/mastra/commit/9613558e6475f4710e05d1be7553a32ee7bddc20) Thanks [@taofeeq-deru](https://github.com/taofeeq-deru)! - Persist to snapshot when step starts
136
+
137
+ - Updated dependencies [[`da58ccc`](https://github.com/mastra-ai/mastra/commit/da58ccc1f2ac33da0cb97b00443fc6208b45bdec), [`94e9f54`](https://github.com/mastra-ai/mastra/commit/94e9f547d66ef7cd01d9075ab53b5ca9a1cae100), [`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c), [`a93f3ba`](https://github.com/mastra-ai/mastra/commit/a93f3ba05eef4cf17f876d61d29cf0841a9e70b7)]:
138
+ - @mastra/schema-compat@0.11.0
139
+
140
+ ## 0.15.0-alpha.4
141
+
142
+ ### Minor Changes
143
+
144
+ - [#7032](https://github.com/mastra-ai/mastra/pull/7032) [`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c) Thanks [@wardpeet](https://github.com/wardpeet)! - Bump zod peerdep to 3.25.0 to support both v3/v4
145
+
146
+ ### Patch Changes
147
+
148
+ - Updated dependencies [[`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c)]:
149
+ - @mastra/schema-compat@0.11.0-alpha.2
150
+
151
+ ## 0.15.0-alpha.3
152
+
153
+ ### Patch Changes
154
+
155
+ - Updated dependencies [[`da58ccc`](https://github.com/mastra-ai/mastra/commit/da58ccc1f2ac33da0cb97b00443fc6208b45bdec)]:
156
+ - @mastra/schema-compat@0.10.6-alpha.1
157
+
158
+ ## 0.14.2-alpha.2
159
+
160
+ ### Patch Changes
161
+
162
+ - [#7020](https://github.com/mastra-ai/mastra/pull/7020) [`2e58325`](https://github.com/mastra-ai/mastra/commit/2e58325beb170f5b92f856e27d915cd26917e5e6) Thanks [@YujohnNattrass](https://github.com/YujohnNattrass)! - Add column to ai spans table to tell if it's an event
163
+
164
+ ## 0.14.2-alpha.1
165
+
166
+ ### Patch Changes
167
+
168
+ - [#6997](https://github.com/mastra-ai/mastra/pull/6997) [`943a7f3`](https://github.com/mastra-ai/mastra/commit/943a7f3dbc6a8ab3f9b7bc7c8a1c5b319c3d7f56) Thanks [@wardpeet](https://github.com/wardpeet)! - Bundle/mastra speed improvements
169
+
170
+ - [#6954](https://github.com/mastra-ai/mastra/pull/6954) [`be49354`](https://github.com/mastra-ai/mastra/commit/be493546dca540101923ec700feb31f9a13939f2) Thanks [@YujohnNattrass](https://github.com/YujohnNattrass)! - Add db schema and base storage apis for AI Tracing
171
+
172
+ - [#6957](https://github.com/mastra-ai/mastra/pull/6957) [`d591ab3`](https://github.com/mastra-ai/mastra/commit/d591ab3ecc985c1870c0db347f8d7a20f7360536) Thanks [@YujohnNattrass](https://github.com/YujohnNattrass)! - Implement Tracing API for inmemory(mock) storage
173
+
174
+ - [#6923](https://github.com/mastra-ai/mastra/pull/6923) [`ba82abe`](https://github.com/mastra-ai/mastra/commit/ba82abe76e869316bb5a9c95e8ea3946f3436fae) Thanks [@rase-](https://github.com/rase-)! - Event based execution engine
175
+
176
+ - [#6971](https://github.com/mastra-ai/mastra/pull/6971) [`727f7e5`](https://github.com/mastra-ai/mastra/commit/727f7e5086e62e0dfe3356fb6dcd8bcb420af246) Thanks [@epinzur](https://github.com/epinzur)! - "updated ai tracing in workflows"
177
+
178
+ - [#6993](https://github.com/mastra-ai/mastra/pull/6993) [`82d9f64`](https://github.com/mastra-ai/mastra/commit/82d9f647fbe4f0177320e7c05073fce88599aa95) Thanks [@wardpeet](https://github.com/wardpeet)! - Improve types and fix linting issues
179
+
180
+ - [#7011](https://github.com/mastra-ai/mastra/pull/7011) [`4189486`](https://github.com/mastra-ai/mastra/commit/4189486c6718fda78347bdf4ce4d3fc33b2236e1) Thanks [@epinzur](https://github.com/epinzur)! - Wrapped mastra objects in workflow steps to automatically pass on tracing context
181
+
182
+ - [#6942](https://github.com/mastra-ai/mastra/pull/6942) [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01) Thanks [@wardpeet](https://github.com/wardpeet)! - Add zod as peerdeps for all packages
183
+
184
+ - Updated dependencies [[`94e9f54`](https://github.com/mastra-ai/mastra/commit/94e9f547d66ef7cd01d9075ab53b5ca9a1cae100), [`a93f3ba`](https://github.com/mastra-ai/mastra/commit/a93f3ba05eef4cf17f876d61d29cf0841a9e70b7)]:
185
+ - @mastra/schema-compat@0.10.6-alpha.0
186
+
187
+ ## 0.14.2-alpha.0
188
+
189
+ ### Patch Changes
190
+
191
+ - [#6938](https://github.com/mastra-ai/mastra/pull/6938) [`0778757`](https://github.com/mastra-ai/mastra/commit/07787570e4addbd501522037bd2542c3d9e26822) Thanks [@dane-ai-mastra](https://github.com/apps/dane-ai-mastra)! - dependencies updates:
192
+ - Updated dependency [`@opentelemetry/auto-instrumentations-node@^0.62.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/auto-instrumentations-node/v/0.62.1) (from `^0.62.0`, in `dependencies`)
193
+
194
+ - [#6933](https://github.com/mastra-ai/mastra/pull/6933) [`bf504a8`](https://github.com/mastra-ai/mastra/commit/bf504a833051f6f321d832cc7d631f3cb86d657b) Thanks [@NikAiyer](https://github.com/NikAiyer)! - Add util functions for workflow server handlers and made processor process function async
195
+
196
+ - [#6949](https://github.com/mastra-ai/mastra/pull/6949) [`e6f5046`](https://github.com/mastra-ai/mastra/commit/e6f50467aff317e67e8bd74c485c3fbe2a5a6db1) Thanks [@CalebBarnes](https://github.com/CalebBarnes)! - stream/generate vnext: simplify internal output schema handling, improve types and typescript generics, and add jsdoc comments
197
+
198
+ - [#6943](https://github.com/mastra-ai/mastra/pull/6943) [`9613558`](https://github.com/mastra-ai/mastra/commit/9613558e6475f4710e05d1be7553a32ee7bddc20) Thanks [@taofeeq-deru](https://github.com/taofeeq-deru)! - Persist to snapshot when step starts
199
+
200
+ ## 0.14.1
201
+
202
+ ### Patch Changes
203
+
204
+ - [#6919](https://github.com/mastra-ai/mastra/pull/6919) [`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27) Thanks [@dane-ai-mastra](https://github.com/apps/dane-ai-mastra)! - dependencies updates:
205
+ - Updated dependency [`@ai-sdk/provider-utils-v5@npm:@ai-sdk/provider-utils@3.0.3` ↗︎](https://www.npmjs.com/package/@ai-sdk/provider-utils-v5/v/3.0.3) (from `npm:@ai-sdk/provider-utils@3.0.0`, in `dependencies`)
206
+ - Updated dependency [`ai@^4.3.19` ↗︎](https://www.npmjs.com/package/ai/v/4.3.19) (from `^4.3.16`, in `dependencies`)
207
+ - Updated dependency [`ai-v5@npm:ai@5.0.15` ↗︎](https://www.npmjs.com/package/ai-v5/v/5.0.15) (from `npm:ai@5.0.0`, in `dependencies`)
208
+
209
+ - [#6864](https://github.com/mastra-ai/mastra/pull/6864) [`0f00e17`](https://github.com/mastra-ai/mastra/commit/0f00e172953ccdccadb35ed3d70f5e4d89115869) Thanks [@TylerBarnes](https://github.com/TylerBarnes)! - Added a convertMessages(from).to("Mastra.V2" | "AIV\*") util for operating on DB messages directly
210
+
211
+ - [#6927](https://github.com/mastra-ai/mastra/pull/6927) [`217cd7a`](https://github.com/mastra-ai/mastra/commit/217cd7a4ce171e9a575c41bb8c83300f4db03236) Thanks [@DanielSLew](https://github.com/DanielSLew)! - Fix output processors to match new stream types.
212
+
213
+ - [#6700](https://github.com/mastra-ai/mastra/pull/6700) [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02) Thanks [@gpanakkal](https://github.com/gpanakkal)! - Add `getMessagesById` method to `MastraStorage` adapters
214
+
215
+ ## 0.14.1-alpha.1
216
+
217
+ ### Patch Changes
218
+
219
+ - [#6864](https://github.com/mastra-ai/mastra/pull/6864) [`0f00e17`](https://github.com/mastra-ai/mastra/commit/0f00e172953ccdccadb35ed3d70f5e4d89115869) Thanks [@TylerBarnes](https://github.com/TylerBarnes)! - Added a convertMessages(from).to("Mastra.V2" | "AIV\*") util for operating on DB messages directly
220
+
221
+ - [#6927](https://github.com/mastra-ai/mastra/pull/6927) [`217cd7a`](https://github.com/mastra-ai/mastra/commit/217cd7a4ce171e9a575c41bb8c83300f4db03236) Thanks [@DanielSLew](https://github.com/DanielSLew)! - Fix output processors to match new stream types.
222
+
223
+ ## 0.14.1-alpha.0
224
+
225
+ ### Patch Changes
226
+
227
+ - [#6919](https://github.com/mastra-ai/mastra/pull/6919) [`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27) Thanks [@dane-ai-mastra](https://github.com/apps/dane-ai-mastra)! - dependencies updates:
228
+ - Updated dependency [`@ai-sdk/provider-utils-v5@npm:@ai-sdk/provider-utils@3.0.3` ↗︎](https://www.npmjs.com/package/@ai-sdk/provider-utils-v5/v/3.0.3) (from `npm:@ai-sdk/provider-utils@3.0.0`, in `dependencies`)
229
+ - Updated dependency [`ai@^4.3.19` ↗︎](https://www.npmjs.com/package/ai/v/4.3.19) (from `^4.3.16`, in `dependencies`)
230
+ - Updated dependency [`ai-v5@npm:ai@5.0.15` ↗︎](https://www.npmjs.com/package/ai-v5/v/5.0.15) (from `npm:ai@5.0.0`, in `dependencies`)
231
+
232
+ - [#6700](https://github.com/mastra-ai/mastra/pull/6700) [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02) Thanks [@gpanakkal](https://github.com/gpanakkal)! - Add `getMessagesById` method to `MastraStorage` adapters
233
+
234
+ ## 0.14.0
235
+
236
+ ### Minor Changes
237
+
238
+ - 3b5fec7: Added AIV5 support to internal MessageList, precursor to full AIV5 support in latest Mastra
239
+
240
+ ### Patch Changes
241
+
242
+ - 227c7e6: replace console.log with logger.debug in inmemory operations
243
+ - 12cae67: fix: add threadId and resourceId to scorers
244
+ - fd3a3eb: Add runExperments to run scorers in a test suite or in CI
245
+ - 6faaee5: Reworks agent Processor API to include output processors. Adds structuredOutput property in agent.streamVNext and agent.generate to replace experimental_output. Move imports for processors to @mastra/core/processors. Adds 6 new output processors, BatchParts, StructuredOutputProcessor, TokenLimiter, SystemPromptScrubber, ModerationProcessor, PiiDetectorProcessor.
246
+ - 4232b14: Fix provider metadata preservation during V5 message conversions
247
+
248
+ Provider metadata (providerMetadata and callProviderMetadata) is now properly preserved when converting messages between AI SDK V5 and internal V2 formats. This ensures provider-specific information isn't lost during message transformations.
249
+
250
+ - a89de7e: Adding a new agentic loop and streaming workflow system while working towards AI SDK v5 support.
251
+ - 5a37d0c: Fix dev server bug related to p-map imports
252
+ - 4bde0cb: Allow renaming .map functions in workflows
253
+ - cf4f357: When using the Cloudflare deployer you might see a `[duplicate-case]` warning. The internal cause for this was fixed.
254
+ - ad888a2: Stream vnext agent-network
255
+ - 481751d: Tests `mitt.off` event handler removal
256
+ - 2454423: Agentic loop and streaming workflow: generateVNext and streamVNext
257
+ - 194e395: exclude \_wrapToolsWithAITracing from agent trace
258
+ - a722c0b: Added a patch to filter out system messages that were stored in the db via an old memory bug that was patched long ago (see issue 6689). Users upgrading from the old version that still had the bug would see errors when the memory messages were retrieved from the db
259
+ - c30bca8: Fix do while resume-suspend in simple workflow losing data
260
+ - a8f129d: initial addition of experimental ai observability tracing features.
261
+
262
+ ## 0.14.0-alpha.7
263
+
264
+ ## 0.14.0-alpha.6
265
+
266
+ ### Patch Changes
267
+
268
+ - ad888a2: Stream vnext agent-network
269
+ - 481751d: Tests `mitt.off` event handler removal
270
+ - 194e395: exclude \_wrapToolsWithAITracing from agent trace
271
+
272
+ ## 0.14.0-alpha.5
273
+
274
+ ## 0.14.0-alpha.4
275
+
276
+ ### Patch Changes
277
+
278
+ - 0a7f675: Client JS vnext methods
279
+ - 12cae67: fix: add threadId and resourceId to scorers
280
+ - 5a37d0c: Fix dev server bug related to p-map imports
281
+ - 4bde0cb: Allow renaming .map functions in workflows
282
+ - 1a80071: loop code and tests
283
+ - 36a3be8: Agent processors tests
284
+ - 361757b: Execute method
285
+ - 2bb9955: Model loop changes
286
+ - 2454423: generateVNext and streamVNext
287
+ - a44d91e: Message list changes
288
+ - dfb91e9: Server handlers
289
+ - a741dde: generateVNext plumbing
290
+ - 7cb3fc0: Fix loop test
291
+ - 195eabb: Process Mastra Stream
292
+ - b78b95b: Support generateVNext in playground
293
+
294
+ ## 0.14.0-alpha.3
295
+
296
+ ### Patch Changes
297
+
298
+ - 227c7e6: replace console.log with logger.debug in inmemory operations
299
+ - fd3a3eb: Add runExperments to run scorers in a test suite or in CI
300
+ - a8f129d: "initial addition of experimental ai observability tracing features."
301
+
302
+ ## 0.14.0-alpha.2
303
+
304
+ ## 0.14.0-alpha.1
305
+
306
+ ### Minor Changes
307
+
308
+ - 3b5fec7: Added AIV5 support to internal MessageList, precursor to full AIV5 support in latest Mastra
309
+
310
+ ### Patch Changes
311
+
312
+ - 6faaee5: Reworks agent Processor API to include output processors. Adds structuredOutput property in agent.streamVNext and agent.generate to replace experimental_output. Move imports for processors to @mastra/core/processors. Adds 6 new output processors, BatchParts, StructuredOutputProcessor, TokenLimiter, SystemPromptScrubber, ModerationProcessor, PiiDetectorProcessor.
313
+ - 4232b14: Fix provider metadata preservation during V5 message conversions
314
+
315
+ Provider metadata (providerMetadata and callProviderMetadata) is now properly preserved when converting messages between AI SDK V5 and internal V2 formats. This ensures provider-specific information isn't lost during message transformations.
316
+
317
+ - a89de7e: Adding a new agentic loop and streaming workflow system while working towards AI SDK v5 support.
318
+ - cf4f357: When using the Cloudflare deployer you might see a `[duplicate-case]` warning. The internal cause for this was fixed.
319
+ - a722c0b: Added a patch to filter out system messages that were stored in the db via an old memory bug that was patched long ago (see issue 6689). Users upgrading from the old version that still had the bug would see errors when the memory messages were retrieved from the db
320
+
321
+ ## 0.13.3-alpha.0
322
+
323
+ ### Patch Changes
324
+
325
+ - c30bca8: Fix do while resume-suspend in simple workflow losing data
326
+
327
+ ## 0.13.2
328
+
329
+ ### Patch Changes
330
+
331
+ - d5330bf: Allow agent model to be updated after the agent is created
332
+ - 2e74797: Fix tool arguments being lost when tool-result messages arrive separately from tool-call messages or when messages are restored from database. Tool invocations now correctly preserve their arguments in all scenarios.
333
+ - 8388649: Allow array of messages in vnext agent network
334
+ - a239d41: Updated A2A syntax to v0.3.0
335
+ - dd94a26: Dont rely on the full language model for schema compat
336
+ - 3ba6772: MastraModelInput
337
+ - b5cf2a3: make system message always available during agent calls
338
+ - 2fff911: Fix vnext working memory tool schema when model is incompatible with schema
339
+ - b32c50d: Filter scores by source
340
+ - 63449d0: Change the function signatures of `bundle`, `lint`, and internally `getToolsInputOptions` to expand the `toolsPaths` TypeScript type from `string[]` to `(string | string[])[]`.
341
+ - 121a3f8: Fixed an issue where telemetry logs were displaying promise statuses when `agent.stream` is called
342
+ - ec510e7: Tool input validation now returns errors as tool results instead of throwing, allowing agents to understand validation failures and retry with corrected parameters.
343
+ - Updated dependencies [dd94a26]
344
+ - Updated dependencies [2fff911]
345
+ - Updated dependencies [ae2eb63]
346
+ - @mastra/schema-compat@0.10.7
347
+
348
+ ## 0.13.2-alpha.3
349
+
350
+ ### Patch Changes
351
+
352
+ - b5cf2a3: make system message always available during agent calls
353
+
354
+ ## 0.13.2-alpha.2
355
+
356
+ ### Patch Changes
357
+
358
+ - d5330bf: Allow agent model to be updated after the agent is created
359
+ - a239d41: Updated A2A syntax to v0.3.0
360
+ - b32c50d: Filter scores by source
361
+ - 121a3f8: Fixed an issue where telemetry logs were displaying promise statuses when `agent.stream` is called
362
+ - ec510e7: Tool input validation now returns errors as tool results instead of throwing, allowing agents to understand validation failures and retry with corrected parameters.
363
+ - Updated dependencies [ae2eb63]
364
+ - @mastra/schema-compat@0.10.7-alpha.1
365
+
366
+ ## 0.13.2-alpha.1
367
+
368
+ ### Patch Changes
369
+
370
+ - 2e74797: Fix tool arguments being lost when tool-result messages arrive separately from tool-call messages or when messages are restored from database. Tool invocations now correctly preserve their arguments in all scenarios.
371
+ - 63449d0: Change the function signatures of `bundle`, `lint`, and internally `getToolsInputOptions` to expand the `toolsPaths` TypeScript type from `string[]` to `(string | string[])[]`.
372
+
373
+ ## 0.13.2-alpha.0
374
+
375
+ ### Patch Changes
376
+
377
+ - 8388649: Allow array of messages in vnext agent network
378
+ - dd94a26: Dont rely on the full language model for schema compat
379
+ - 3ba6772: MastraModelInput
380
+ - 2fff911: Fix vnext working memory tool schema when model is incompatible with schema
381
+ - Updated dependencies [dd94a26]
382
+ - Updated dependencies [2fff911]
383
+ - @mastra/schema-compat@0.10.7-alpha.0
384
+
385
+ ## 0.13.1
386
+
387
+ ### Patch Changes
388
+
389
+ - cd0042e: Fix tool call history not being accessible in agent conversations
390
+
391
+ When converting v2 messages (with combined tool calls and text) to v1 format for memory storage, split messages were all keeping the same ID. This caused later messages to replace earlier ones when added back to MessageList, losing tool history.
392
+
393
+ The fix adds ID deduplication by appending `__split-N` suffixes to split messages and prevents double-suffixing when messages are re-converted between formats.
394
+
395
+ ## 0.13.1-alpha.0
396
+
397
+ ### Patch Changes
398
+
399
+ - cd0042e: Fix tool call history not being accessible in agent conversations
400
+
401
+ When converting v2 messages (with combined tool calls and text) to v1 format for memory storage, split messages were all keeping the same ID. This caused later messages to replace earlier ones when added back to MessageList, losing tool history.
402
+
403
+ The fix adds ID deduplication by appending `__split-N` suffixes to split messages and prevents double-suffixing when messages are re-converted between formats.
404
+
405
+ ## 0.13.0
406
+
407
+ ### Minor Changes
408
+
409
+ - ea0c5f2: Update scorer api
410
+
411
+ ### Patch Changes
412
+
413
+ - cb36de0: dependencies updates:
414
+ - Updated dependency [`hono@^4.8.11` ↗︎](https://www.npmjs.com/package/hono/v/4.8.11) (from `^4.8.9`, in `dependencies`)
415
+ - d0496e6: dependencies updates:
416
+ - Updated dependency [`hono@^4.8.12` ↗︎](https://www.npmjs.com/package/hono/v/4.8.12) (from `^4.8.11`, in `dependencies`)
417
+ - a82b851: Exclude getVoice, getScorers from agent trace
418
+ - 41a0a0e: fixed a minor bug where ID generator wasn't being properly bound to instances of MessageList
419
+ - 2871020: update safelyParseJSON to check for value of param when handling parse
420
+ - 94f4812: lazy initialize Run's `AbortController`
421
+ - e202b82: Add getThreadsByResourceIdPaginated to the Memory Class
422
+ - e00f6a0: Fixed an issue where converting from v2->v1 messages would not properly split text and tool call parts into multiple messages
423
+ - 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
424
+ - b0e43c1: Fixed an issue where branching workflow steps maintained "suspended" status even after they've been successfully resumed and executed.
425
+ - 5d377e5: Fix tracing of runtimeContext values"
426
+ - 1fb812e: Fixed a bug in parallel workflow execution where resuming only one of multiple suspended parallel steps incorrectly completed the entire parallel block. The fix ensures proper execution and state management when resuming from suspension in parallel workflows.
427
+ - 35c5798: Add support for transpilePackages option
428
+ - Updated dependencies [4a406ec]
429
+ - @mastra/schema-compat@0.10.6
430
+
431
+ ## 0.13.0-alpha.3
432
+
433
+ ### Patch Changes
434
+
435
+ - d0496e6: dependencies updates:
436
+ - Updated dependency [`hono@^4.8.12` ↗︎](https://www.npmjs.com/package/hono/v/4.8.12) (from `^4.8.11`, in `dependencies`)
437
+
438
+ ## 0.13.0-alpha.2
439
+
440
+ ### Patch Changes
441
+
442
+ - cb36de0: dependencies updates:
443
+ - Updated dependency [`hono@^4.8.11` ↗︎](https://www.npmjs.com/package/hono/v/4.8.11) (from `^4.8.9`, in `dependencies`)
444
+ - a82b851: Exclude getVoice, getScorers from agent trace
445
+ - 41a0a0e: fixed a minor bug where ID generator wasn't being properly bound to instances of MessageList
446
+ - 2871020: update safelyParseJSON to check for value of param when handling parse
447
+ - 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
448
+ - 5d377e5: Fix tracing of runtimeContext values"
449
+ - Updated dependencies [4a406ec]
450
+ - @mastra/schema-compat@0.10.6-alpha.0
451
+
452
+ ## 0.13.0-alpha.1
453
+
454
+ ### Minor Changes
455
+
456
+ - ea0c5f2: Update scorer api
457
+
458
+ ### Patch Changes
459
+
460
+ - b0e43c1: Fixed an issue where branching workflow steps maintained "suspended" status even after they've been successfully resumed and executed.
461
+ - 1fb812e: Fixed a bug in parallel workflow execution where resuming only one of multiple suspended parallel steps incorrectly completed the entire parallel block. The fix ensures proper execution and state management when resuming from suspension in parallel workflows.
462
+ - 35c5798: Add support for transpilePackages option
463
+
464
+ ## 0.12.2-alpha.0
465
+
466
+ ### Patch Changes
467
+
468
+ - 94f4812: lazy initialize Run's `AbortController`
469
+ - e202b82: Add getThreadsByResourceIdPaginated to the Memory Class
470
+ - e00f6a0: Fixed an issue where converting from v2->v1 messages would not properly split text and tool call parts into multiple messages
471
+
472
+ ## 0.12.1
473
+
474
+ ### Patch Changes
475
+
476
+ - 33dcb07: dependencies updates:
477
+ - Updated dependency [`@opentelemetry/auto-instrumentations-node@^0.62.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/auto-instrumentations-node/v/0.62.0) (from `^0.59.0`, in `dependencies`)
478
+ - Updated dependency [`@opentelemetry/exporter-trace-otlp-grpc@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-grpc/v/0.203.0) (from `^0.201.1`, in `dependencies`)
479
+ - Updated dependency [`@opentelemetry/exporter-trace-otlp-http@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-http/v/0.203.0) (from `^0.201.1`, in `dependencies`)
480
+ - Updated dependency [`@opentelemetry/otlp-exporter-base@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/otlp-exporter-base/v/0.203.0) (from `^0.201.1`, in `dependencies`)
481
+ - Updated dependency [`@opentelemetry/otlp-transformer@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/otlp-transformer/v/0.203.0) (from `^0.201.1`, in `dependencies`)
482
+ - Updated dependency [`@opentelemetry/sdk-node@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-node/v/0.203.0) (from `^0.201.1`, in `dependencies`)
483
+ - Updated dependency [`@opentelemetry/semantic-conventions@^1.36.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/semantic-conventions/v/1.36.0) (from `^1.34.0`, in `dependencies`)
484
+ - d0d9500: Fixed an issue where AWS Bedrock is expecting a user message at the beginning of the message list
485
+ - d30b1a0: Remove js-tiktoken as it's unused
486
+ - bff87f7: fix issue where v1 messages from db wouldn't properly show tool calls in llm context window from historry
487
+ - b4a8df0: Fixed an issue where memory instances were not being registered with Mastra and custom ID generators weren't being used
488
+
489
+ ## 0.12.1-alpha.1
490
+
491
+ ### Patch Changes
492
+
493
+ - d0d9500: Fixed an issue where AWS Bedrock is expecting a user message at the beginning of the message list
494
+
495
+ ## 0.12.1-alpha.0
496
+
497
+ ### Patch Changes
498
+
499
+ - 33dcb07: dependencies updates:
500
+ - Updated dependency [`@opentelemetry/auto-instrumentations-node@^0.62.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/auto-instrumentations-node/v/0.62.0) (from `^0.59.0`, in `dependencies`)
501
+ - Updated dependency [`@opentelemetry/exporter-trace-otlp-grpc@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-grpc/v/0.203.0) (from `^0.201.1`, in `dependencies`)
502
+ - Updated dependency [`@opentelemetry/exporter-trace-otlp-http@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-http/v/0.203.0) (from `^0.201.1`, in `dependencies`)
503
+ - Updated dependency [`@opentelemetry/otlp-exporter-base@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/otlp-exporter-base/v/0.203.0) (from `^0.201.1`, in `dependencies`)
504
+ - Updated dependency [`@opentelemetry/otlp-transformer@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/otlp-transformer/v/0.203.0) (from `^0.201.1`, in `dependencies`)
505
+ - Updated dependency [`@opentelemetry/sdk-node@^0.203.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-node/v/0.203.0) (from `^0.201.1`, in `dependencies`)
506
+ - Updated dependency [`@opentelemetry/semantic-conventions@^1.36.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/semantic-conventions/v/1.36.0) (from `^1.34.0`, in `dependencies`)
507
+ - d30b1a0: Remove js-tiktoken as it's unused
508
+ - bff87f7: fix issue where v1 messages from db wouldn't properly show tool calls in llm context window from historry
509
+ - b4a8df0: Fixed an issue where memory instances were not being registered with Mastra and custom ID generators weren't being used
510
+
511
+ ## 0.12.0
512
+
513
+ ### Minor Changes
514
+
515
+ - 2ecf658: Added the option to provide a custom ID generator when creating an instance of Mastra. If the generator is not provided, a fallback of using UUID is used to generate IDs instead.
516
+
517
+ ### Patch Changes
518
+
519
+ - 510e2c8: dependencies updates:
520
+ - Updated dependency [`radash@^12.1.1` ↗︎](https://www.npmjs.com/package/radash/v/12.1.1) (from `^12.1.0`, in `dependencies`)
521
+ - 2f72fb2: dependencies updates:
522
+ - Updated dependency [`xstate@^5.20.1` ↗︎](https://www.npmjs.com/package/xstate/v/5.20.1) (from `^5.19.4`, in `dependencies`)
523
+ - 27cc97a: dependencies updates:
524
+ - Updated dependency [`hono@^4.8.9` ↗︎](https://www.npmjs.com/package/hono/v/4.8.9) (from `^4.8.4`, in `dependencies`)
525
+ - 3f89307: improve registerApiRoute validation
526
+ - 9eda7d4: Move createMockModel to test scope. This prevents test dependencies from leaking into production code.
527
+ - 9d49408: Fix conditional branch execution after nested workflow resume. Now conditional branches properly re-evaluate their conditions during resume, ensuring only the correct branches execute.
528
+ - 41daa63: Threads are no longer created until message generation is complete to avoid leaving orphaned empty threads in storage on failure
529
+ - ad0a58b: Enhancements for premade input processors
530
+ - 254a36b: Expose mastra instance on dynamic agent arguments
531
+ - 7a7754f: Fast follow scorers fixing input types, improve llm scorer reliability, fix ui to display scores that are 0
532
+ - fc92d80: fix: GenerateReturn type
533
+ - e0f73c6: Make input optional for scorer run
534
+ - 0b89602: Fix workflow feedback loop crashes by preventing resume data reuse
535
+
536
+ Fixes an issue where workflows with loops (dountil/dowhile) containing suspended steps would incorrectly reuse resume data across iterations. This caused human-in-the-loop workflows to crash or skip suspend points after resuming.
537
+
538
+ The fix ensures resume data is cleared after a step completes (non-suspended status), allowing subsequent loop iterations to properly suspend for new input.
539
+
540
+ Fixes #6014
541
+
542
+ - 4d37822: Fix workflow input property preservation after resume from snapshot
543
+
544
+ Ensure that when resuming a workflow from a snapshot, the input property is correctly set from the snapshot's context input rather than from resume data. This prevents the loss of original workflow input data during suspend/resume cycles.
545
+
546
+ - 23a6a7c: improve error message for missing memory ids
547
+ - cda801d: Added the ability to pass in metadata for UIMessage and MastraMessageV2 in client-js and agent.stream/generate
548
+ - a77c823: include PATCH method in default CORS configuration
549
+ - ff9c125: enhance thread retrieval with sorting options in libsql and pg
550
+ - 09bca64: Log warning when telemetry is enabled but not loaded
551
+ - b8efbb9: feat: add flexible deleteMessages method to memory API
552
+ - Added `memory.deleteMessages(input)` method that accepts multiple input types:
553
+ - Single message ID as string: `deleteMessages('msg-123')`
554
+ - Array of message IDs: `deleteMessages(['msg-1', 'msg-2'])`
555
+ - Message object with id property: `deleteMessages({ id: 'msg-123' })`
556
+ - Array of message objects: `deleteMessages([{ id: 'msg-1' }, { id: 'msg-2' }])`
557
+ - Implemented in all storage adapters (LibSQL, PostgreSQL, Upstash, InMemory)
558
+ - Added REST API endpoint: `POST /api/memory/messages/delete`
559
+ - Updated client SDK: `thread.deleteMessages()` accepts all input types
560
+ - Updates thread timestamps when messages are deleted
561
+ - Added comprehensive test coverage and documentation
562
+
563
+ - 71466e7: Adds traceId and resourceId to telemetry spans for agent invocations
564
+ - 0c99fbe: [Feature] Add ability to include input processors to Agent primitive in order to add guardrails to incoming messages.
565
+
566
+ ## 0.12.0-alpha.5
567
+
568
+ ## 0.12.0-alpha.4
569
+
570
+ ### Patch Changes
571
+
572
+ - ad0a58b: Enhancements for premade input processors
573
+
574
+ ## 0.12.0-alpha.3
575
+
576
+ ## 0.12.0-alpha.2
577
+
578
+ ### Patch Changes
579
+
580
+ - 27cc97a: dependencies updates:
581
+ - Updated dependency [`hono@^4.8.9` ↗︎](https://www.npmjs.com/package/hono/v/4.8.9) (from `^4.8.4`, in `dependencies`)
582
+ - 41daa63: Threads are no longer created until message generation is complete to avoid leaving orphaned empty threads in storage on failure
583
+ - 254a36b: Expose mastra instance on dynamic agent arguments
584
+ - 0b89602: Fix workflow feedback loop crashes by preventing resume data reuse
585
+
586
+ Fixes an issue where workflows with loops (dountil/dowhile) containing suspended steps would incorrectly reuse resume data across iterations. This caused human-in-the-loop workflows to crash or skip suspend points after resuming.
587
+
588
+ The fix ensures resume data is cleared after a step completes (non-suspended status), allowing subsequent loop iterations to properly suspend for new input.
589
+
590
+ Fixes #6014
591
+
592
+ - 4d37822: Fix workflow input property preservation after resume from snapshot
593
+
594
+ Ensure that when resuming a workflow from a snapshot, the input property is correctly set from the snapshot's context input rather than from resume data. This prevents the loss of original workflow input data during suspend/resume cycles.
595
+
596
+ - ff9c125: enhance thread retrieval with sorting options in libsql and pg
597
+ - b8efbb9: feat: add flexible deleteMessages method to memory API
598
+ - Added `memory.deleteMessages(input)` method that accepts multiple input types:
599
+ - Single message ID as string: `deleteMessages('msg-123')`
600
+ - Array of message IDs: `deleteMessages(['msg-1', 'msg-2'])`
601
+ - Message object with id property: `deleteMessages({ id: 'msg-123' })`
602
+ - Array of message objects: `deleteMessages([{ id: 'msg-1' }, { id: 'msg-2' }])`
603
+ - Implemented in all storage adapters (LibSQL, PostgreSQL, Upstash, InMemory)
604
+ - Added REST API endpoint: `POST /api/memory/messages/delete`
605
+ - Updated client SDK: `thread.deleteMessages()` accepts all input types
606
+ - Updates thread timestamps when messages are deleted
607
+ - Added comprehensive test coverage and documentation
608
+
609
+ - 71466e7: Adds traceId and resourceId to telemetry spans for agent invocations
610
+ - 0c99fbe: [Feature] Add ability to include input processors to Agent primitive in order to add guardrails to incoming messages.
611
+
612
+ ## 0.12.0-alpha.1
613
+
614
+ ### Patch Changes
615
+
616
+ - e0f73c6: Make input optional for scorer run
617
+ - cda801d: Added the ability to pass in metadata for UIMessage and MastraMessageV2 in client-js and agent.stream/generate
618
+ - a77c823: include PATCH method in default CORS configuration
619
+
620
+ ## 0.12.0-alpha.0
621
+
622
+ ### Minor Changes
623
+
624
+ - 2ecf658: Added the option to provide a custom ID generator when creating an instance of Mastra. If the generator is not provided, a fallback of using UUID is used to generate IDs instead.
625
+
626
+ ### Patch Changes
627
+
628
+ - 510e2c8: dependencies updates:
629
+ - Updated dependency [`radash@^12.1.1` ↗︎](https://www.npmjs.com/package/radash/v/12.1.1) (from `^12.1.0`, in `dependencies`)
630
+ - 2f72fb2: dependencies updates:
631
+ - Updated dependency [`xstate@^5.20.1` ↗︎](https://www.npmjs.com/package/xstate/v/5.20.1) (from `^5.19.4`, in `dependencies`)
632
+ - 3f89307: improve registerApiRoute validation
633
+ - 9eda7d4: Move createMockModel to test scope. This prevents test dependencies from leaking into production code.
634
+ - 9d49408: Fix conditional branch execution after nested workflow resume. Now conditional branches properly re-evaluate their conditions during resume, ensuring only the correct branches execute.
635
+ - 7a7754f: Fast follow scorers fixing input types, improve llm scorer reliability, fix ui to display scores that are 0
636
+ - fc92d80: fix: GenerateReturn type
637
+ - 23a6a7c: improve error message for missing memory ids
638
+ - 09bca64: Log warning when telemetry is enabled but not loaded
639
+
640
+ ## 0.11.1
641
+
642
+ ### Patch Changes
643
+
644
+ - f248d53: Adding `getMessagesPaginated` to the serve, deployer, and client-js
645
+ - 2affc57: Fix output type of network loop
646
+ - 66e13e3: Add methods to fetch workflow/agent by its true id
647
+ - edd9482: Fix "workflow run was not suspended" error when attempting to resume a workflow with consecutive nested workflows.
648
+ - 18344d7: Code and llm scorers
649
+ - 9d372c2: Fix streamVNext error handling
650
+ - 40c2525: Fix agent.generate error with experimental_output and clientTool
651
+ - e473f27: Implement off the shelf Scorers
652
+ - 032cb66: ClientJS
653
+ - 703ac71: scores schema
654
+ - a723d69: Pass workflowId through
655
+ - 7827943: Handle streaming large data
656
+ - 5889a31: Export storage domain types
657
+ - bf1e7e7: Configure agent memory using runtimeContext
658
+ - 65e3395: Add Scores playground-ui and add scorer hooks
659
+ - 4933192: Update Message List to ensure correct order of message parts
660
+ - d1c77a4: Scorer interface
661
+ - bea9dd1: Refactor Agent class to consolidate LLM generate and stream methods and improve type safety. This includes
662
+ extracting common logic into prepareLLMOptions(), enhancing type definitions, and fixing test annotations.
663
+
664
+ This changeset entry follows the established format in your project:
665
+ - Targets the @mastra/core package with a patch version bump
666
+ - Provides a concise description of the refactoring and type safety improvements
667
+ - Mentions the key changes without being too verbose
668
+
669
+ - dcd4802: scores mastra server
670
+ - cbddd18: Remove erroneous reassignment of `Mastra.prototype.#vectors`
671
+ - 7ba91fa: Add scorer abstract methods for base storage
672
+
673
+ ## 0.11.0-alpha.2
674
+
675
+ ### Patch Changes
676
+
677
+ - f248d53: Adding `getMessagesPaginated` to the serve, deployer, and client-js
678
+ - 2affc57: Fix output type of network loop
679
+ - 66e13e3: Add methods to fetch workflow/agent by its true id
680
+ - edd9482: Fix "workflow run was not suspended" error when attempting to resume a workflow with consecutive nested workflows.
681
+ - 18344d7: Code and llm scorers
682
+ - 9d372c2: Fix streamVNext error handling
683
+ - 40c2525: Fix agent.generate error with experimental_output and clientTool
684
+ - e473f27: Implement off the shelf Scorers
685
+ - 032cb66: ClientJS
686
+ - 703ac71: scores schema
687
+ - a723d69: Pass workflowId through
688
+ - 5889a31: Export storage domain types
689
+ - 65e3395: Add Scores playground-ui and add scorer hooks
690
+ - 4933192: Update Message List to ensure correct order of message parts
691
+ - d1c77a4: Scorer interface
692
+ - bea9dd1: Refactor Agent class to consolidate LLM generate and stream methods and improve type safety. This includes
693
+ extracting common logic into prepareLLMOptions(), enhancing type definitions, and fixing test annotations.
694
+
695
+ This changeset entry follows the established format in your project:
696
+ - Targets the @mastra/core package with a patch version bump
697
+ - Provides a concise description of the refactoring and type safety improvements
698
+ - Mentions the key changes without being too verbose
699
+
700
+ - dcd4802: scores mastra server
701
+ - 7ba91fa: Add scorer abstract methods for base storage
702
+
703
+ ## 0.11.0-alpha.1
704
+
705
+ ## 0.11.0-alpha.0
706
+
707
+ ### Patch Changes
708
+
709
+ - 7827943: Handle streaming large data
710
+ - bf1e7e7: Configure agent memory using runtimeContext
711
+ - cbddd18: Remove erroneous reassignment of `Mastra.prototype.#vectors`
712
+
713
+ ## 0.10.15
714
+
715
+ ### Patch Changes
716
+
717
+ - 0b56518: Ensure removed runtimeContext values are not saved in snapshot
718
+ - db5cc15: Create thread if it does not exist yet in agent network stream, generate and loopStream
719
+ - 2ba5b76: Allow passing jsonSchema into workingMemory schema
720
+ - 5237998: Fix foreach output
721
+ - c3a30de: added new experimental vnext working memory
722
+ - 37c1acd: Format semantic recall messages grouped by dates and labeled by if they're from a different thread or not, to improve longmemeval scores
723
+ - 1aa60b1: Pipe runtimeContext to vNext network agent stream and generate steps, wire up runtimeContext for vNext Networks in cliet SDK & playground
724
+ - 89ec9d4: remove cohere-ai client dependency and just make a fetch call
725
+ - cf3a184: Add warning log when memory is not configured but threadId/resourceId are passed to agent
726
+ - d6bfd60: Simplify Message-List Merge Logic and Updates
727
+ - 626b0f4: [Cloud-126] Working Memory Playground - Added working memory to playground to allow users to view/edit working memory
728
+ - c22a91f: Fix nested workflow resume in loop workflow breaking
729
+ - f7403ab: Only change workflow status to success after all steps are successful
730
+ - 6c89d7f: Save runtimeContext in snapshot
731
+ - Updated dependencies [4da943f]
732
+ - @mastra/schema-compat@0.10.5
733
+
734
+ ## 0.10.15-alpha.1
735
+
736
+ ### Patch Changes
737
+
738
+ - 0b56518: Ensure removed runtimeContext values are not saved in snapshot
739
+ - 2ba5b76: Allow passing jsonSchema into workingMemory schema
740
+ - c3a30de: added new experimental vnext working memory
741
+ - cf3a184: Add warning log when memory is not configured but threadId/resourceId are passed to agent
742
+ - d6bfd60: Simplify Message-List Merge Logic and Updates
743
+ - Updated dependencies [4da943f]
744
+ - @mastra/schema-compat@0.10.5-alpha.0
745
+
746
+ ## 0.10.15-alpha.0
747
+
748
+ ### Patch Changes
749
+
750
+ - db5cc15: Create thread if it does not exist yet in agent network stream, generate and loopStream
751
+ - 5237998: Fix foreach output
752
+ - 37c1acd: Format semantic recall messages grouped by dates and labeled by if they're from a different thread or not, to improve longmemeval scores
753
+ - 1aa60b1: Pipe runtimeContext to vNext network agent stream and generate steps, wire up runtimeContext for vNext Networks in cliet SDK & playground
754
+ - 89ec9d4: remove cohere-ai client dependency and just make a fetch call
755
+ - 626b0f4: [Cloud-126] Working Memory Playground - Added working memory to playground to allow users to view/edit working memory
756
+ - c22a91f: Fix nested workflow resume in loop workflow breaking
757
+ - f7403ab: Only change workflow status to success after all steps are successful
758
+ - 6c89d7f: Save runtimeContext in snapshot
759
+
760
+ ## 0.10.14
761
+
762
+ ### Patch Changes
763
+
764
+ - Update @mastra/deployer
765
+
766
+ ## 0.10.12
767
+
768
+ ### Patch Changes
769
+
770
+ - b4a9811: Remove async-await of stream inside llm base class
771
+ - 4d5583d: [Cloud-195] added retrieved memory messages to agent traces
772
+
773
+ ## 0.10.12-alpha.1
774
+
775
+ ### Patch Changes
776
+
777
+ - 4d5583d: [Cloud-195] added retrieved memory messages to agent traces
778
+
779
+ ## 0.10.12-alpha.0
780
+
781
+ ### Patch Changes
782
+
783
+ - b4a9811: Remove async-await of stream inside llm base class
784
+
785
+ ## 0.10.11
786
+
787
+ ### Patch Changes
788
+
789
+ - 2873c7f: dependencies updates:
790
+ - Updated dependency [`dotenv@^16.6.1` ↗︎](https://www.npmjs.com/package/dotenv/v/16.6.1) (from `^16.5.0`, in `dependencies`)
791
+ - 1c1c6a1: dependencies updates:
792
+ - Updated dependency [`hono@^4.8.4` ↗︎](https://www.npmjs.com/package/hono/v/4.8.4) (from `^4.8.3`, in `dependencies`)
793
+ - f8ce2cc: Add stepId to workflow executeStep error log
794
+ - 8c846b6: Fixed a problem where per-resource working memory wasn't being queried properly
795
+ - c7bbf1e: Implement workflow retry delay
796
+ - 8722d53: Fix multi modal remaining steps
797
+ - 565cc0c: fix redirection when clicking on the playground breadcrumbs
798
+ - b790fd1: Ability to pass a function to .sleep()/.sleepUntil()
799
+ - 132027f: Check if workflow and step is suspended before resuming
800
+ - 0c85311: Fix Google models ZodNull tool schema handling
801
+ - d7ed04d: make workflow execute use createRunAsync
802
+ - cb16baf: Fix MCP tool output schema type and return value
803
+ - f36e4f1: Allow passing custom instructions to generateTitle to override default instructions.
804
+ - 7f6e403: [MASTRA-3765] Save Message parts - Add ability for user to save messages on step finish for stream and agent
805
+ - Updated dependencies [0c85311]
806
+ - @mastra/schema-compat@0.10.4
807
+
808
+ ## 0.10.11-alpha.4
809
+
810
+ ## 0.10.11-alpha.3
811
+
812
+ ### Patch Changes
813
+
814
+ - c7bbf1e: Implement workflow retry delay
815
+ - 8722d53: Fix multi modal remaining steps
816
+ - 132027f: Check if workflow and step is suspended before resuming
817
+ - 0c85311: Fix Google models ZodNull tool schema handling
818
+ - cb16baf: Fix MCP tool output schema type and return value
819
+ - Updated dependencies [0c85311]
820
+ - @mastra/schema-compat@0.10.4-alpha.0
821
+
822
+ ## 0.10.11-alpha.2
823
+
824
+ ### Patch Changes
825
+
826
+ - 2873c7f: dependencies updates:
827
+ - Updated dependency [`dotenv@^16.6.1` ↗︎](https://www.npmjs.com/package/dotenv/v/16.6.1) (from `^16.5.0`, in `dependencies`)
828
+ - 1c1c6a1: dependencies updates:
829
+ - Updated dependency [`hono@^4.8.4` ↗︎](https://www.npmjs.com/package/hono/v/4.8.4) (from `^4.8.3`, in `dependencies`)
830
+ - 565cc0c: fix redirection when clicking on the playground breadcrumbs
831
+
832
+ ## 0.10.11-alpha.1
833
+
834
+ ### Patch Changes
835
+
836
+ - 7f6e403: [MASTRA-3765] Save Message parts - Add ability for user to save messages on step finish for stream and agent
837
+
838
+ ## 0.10.11-alpha.0
839
+
840
+ ### Patch Changes
841
+
842
+ - f8ce2cc: Add stepId to workflow executeStep error log
843
+ - 8c846b6: Fixed a problem where per-resource working memory wasn't being queried properly
844
+ - b790fd1: Ability to pass a function to .sleep()/.sleepUntil()
845
+ - d7ed04d: make workflow execute use createRunAsync
846
+ - f36e4f1: Allow passing custom instructions to generateTitle to override default instructions.
847
+
848
+ ## 0.10.10
849
+
850
+ ### Patch Changes
851
+
852
+ - 4d3fbdf: Return tool error message rather than throw when a tool error happens for agent and tool playground page.
853
+
854
+ ## 0.10.10-alpha.1
855
+
856
+ ## 0.10.10-alpha.0
857
+
858
+ ### Patch Changes
859
+
860
+ - 4d3fbdf: Return tool error message rather than throw when a tool error happens for agent and tool playground page.
861
+
862
+ ## 0.10.9
863
+
864
+ ### Patch Changes
865
+
866
+ - 9dda1ac: dependencies updates:
867
+ - Updated dependency [`hono@^4.8.3` ↗︎](https://www.npmjs.com/package/hono/v/4.8.3) (from `^4.7.11`, in `dependencies`)
868
+ - c984582: Improve error messages for invalid message content in MessageList
869
+ - 7e801dd: [MASTRA-4118] fixes issue with agent network loopStream where subsequent messages aren't present in playground on refresh
870
+ - a606c75: show right suspend schema for nested workflow on playground
871
+ - 7aa70a4: Use the right step id for nested workflow steps in watch-v2
872
+ - 764f86a: Introduces the runCount property in the execution parameters for the steps execute function
873
+ - 1760a1c: Use workflow stream in playground instead of watch
874
+ - 038e5ae: Add cancel workflow run
875
+ - 7dda16a: Agent Network: Prompting improvements for better decisions
876
+ - 5ebfcdd: Fix MessageList toUIMessage to filter out tool invocations with state="call" or "partial-call"
877
+ - b2d0c91: Made title generation a blocking operation to prevent issues where the process might close before the title is generated
878
+ - 4e809ad: Visualizations for .sleep()/.sleepUntil()/.waitForEvent()
879
+ - 57929df: [MASTRA-4143[ change message-list and agent network display
880
+ - b7852ed: [MASTRA-4139] make private functions protected in memory
881
+ - 6320a61: Allow passing model to generateTitle to override default model selection.
882
+
883
+ ## 0.10.9-alpha.0
884
+
885
+ ### Patch Changes
886
+
887
+ - 9dda1ac: dependencies updates:
888
+ - Updated dependency [`hono@^4.8.3` ↗︎](https://www.npmjs.com/package/hono/v/4.8.3) (from `^4.7.11`, in `dependencies`)
889
+ - c984582: Improve error messages for invalid message content in MessageList
890
+ - 7e801dd: [MASTRA-4118] fixes issue with agent network loopStream where subsequent messages aren't present in playground on refresh
891
+ - a606c75: show right suspend schema for nested workflow on playground
892
+ - 7aa70a4: Use the right step id for nested workflow steps in watch-v2
893
+ - 764f86a: Introduces the runCount property in the execution parameters for the steps execute function
894
+ - 1760a1c: Use workflow stream in playground instead of watch
895
+ - 038e5ae: Add cancel workflow run
896
+ - 7dda16a: Agent Network: Prompting improvements for better decisions
897
+ - 5ebfcdd: Fix MessageList toUIMessage to filter out tool invocations with state="call" or "partial-call"
898
+ - b2d0c91: Made title generation a blocking operation to prevent issues where the process might close before the title is generated
899
+ - 4e809ad: Visualizations for .sleep()/.sleepUntil()/.waitForEvent()
900
+ - 57929df: [MASTRA-4143[ change message-list and agent network display
901
+ - b7852ed: [MASTRA-4139] make private functions protected in memory
902
+ - 6320a61: Allow passing model to generateTitle to override default model selection.
903
+
904
+ ## 0.10.8
905
+
906
+ ### Patch Changes
907
+
908
+ - b8f16b2: Fixes generateTitle overwriting working memory when both get used in the same LLM response cycle.
909
+ - 3e04487: Fix provider tools to check for output schema before attaching to tool
910
+ - a344ac7: Fix tool streaming in agent network
911
+ - dc4ca0a: Fixed a regression where intentionally serialized JSON message content was being parsed back into an object by MessageList
912
+
913
+ ## 0.10.8-alpha.1
914
+
915
+ ### Patch Changes
916
+
917
+ - b8f16b2: Fixes generateTitle overwriting working memory when both get used in the same LLM response cycle.
918
+ - 3e04487: Fix provider tools to check for output schema before attaching to tool
919
+ - dc4ca0a: Fixed a regression where intentionally serialized JSON message content was being parsed back into an object by MessageList
920
+
921
+ ## 0.10.8-alpha.0
922
+
923
+ ### Patch Changes
924
+
925
+ - a344ac7: Fix tool streaming in agent network
926
+
927
+ ## 0.10.7
928
+
929
+ ### Patch Changes
930
+
931
+ - 15e9d26: Added per-resource working memory for LibSQL, Upstash, and PG
932
+ - d1baedb: fix bad merge with mastra error
933
+ - d8f2d19: Add updateMessages API to storage classes (only support for PG and LibSQL for now) and to memory class. Additionally allow for metadata to be saved in the content field of a message.
934
+ - 4d21bf2: throw mastra errors for MCP
935
+ - 07d6d88: Bump MCP SDK version and add tool output schema support to MCPServer and MCPClient
936
+ - 9d52b17: Fix inngest workflows streaming and add step metadata
937
+ - 2097952: [MASTRA-4021] Fix PG getMessages and update messageLimit for all storage adapters
938
+ - 792c4c0: feat: pass runId to onFinish
939
+ - 5d74aab: Return isComplete of true in routing step when no resource is selected
940
+ - a8b194f: Fix double tool call for working memory
941
+ - 4fb0cc2: Type safe variable mapping
942
+ - d2a7a31: Fix memory message context for when LLM providers throw an error if the first message is a tool call.
943
+ - 502fe05: createRun() -> createRunAsync()
944
+ - 144eb0b: [MASTRA-3669] Metadata Filter Types
945
+ - 8ba1b51: Add custom routes by default to jsonapi
946
+ - 4efcfa0: Added bail() method and more ergonomic suspend function return value
947
+ - 0e17048: Throw mastra errors in storage packages
948
+ - Updated dependencies [98bbe5a]
949
+ - Updated dependencies [a853c43]
950
+ - @mastra/schema-compat@0.10.3
951
+
952
+ ## 0.10.7-alpha.5
953
+
954
+ ### Patch Changes
955
+
956
+ - Updated dependencies [a853c43]
957
+ - @mastra/schema-compat@0.10.3-alpha.1
958
+
959
+ ## 0.10.7-alpha.4
960
+
961
+ ### Patch Changes
962
+
963
+ - a8b194f: Fix double tool call for working memory
964
+
965
+ ## 0.10.7-alpha.3
966
+
967
+ ### Patch Changes
968
+
969
+ - 792c4c0: feat: pass runId to onFinish
970
+ - 502fe05: createRun() -> createRunAsync()
971
+ - 4efcfa0: Added bail() method and more ergonomic suspend function return value
972
+
973
+ ## 0.10.7-alpha.2
974
+
975
+ ### Patch Changes
976
+
977
+ - 15e9d26: Added per-resource working memory for LibSQL, Upstash, and PG
978
+ - 07d6d88: Bump MCP SDK version and add tool output schema support to MCPServer and MCPClient
979
+ - 5d74aab: Return isComplete of true in routing step when no resource is selected
980
+ - 144eb0b: [MASTRA-3669] Metadata Filter Types
981
+ - Updated dependencies [98bbe5a]
982
+ - @mastra/schema-compat@0.10.3-alpha.0
983
+
984
+ ## 0.10.7-alpha.1
985
+
986
+ ### Patch Changes
987
+
988
+ - d1baedb: fix bad merge with mastra error
989
+ - 4d21bf2: throw mastra errors for MCP
990
+ - 2097952: [MASTRA-4021] Fix PG getMessages and update messageLimit for all storage adapters
991
+ - 4fb0cc2: Type safe variable mapping
992
+ - d2a7a31: Fix memory message context for when LLM providers throw an error if the first message is a tool call.
993
+ - 0e17048: Throw mastra errors in storage packages
994
+
995
+ ## 0.10.7-alpha.0
996
+
997
+ ### Patch Changes
998
+
999
+ - d8f2d19: Add updateMessages API to storage classes (only support for PG and LibSQL for now) and to memory class. Additionally allow for metadata to be saved in the content field of a message.
1000
+ - 9d52b17: Fix inngest workflows streaming and add step metadata
1001
+ - 8ba1b51: Add custom routes by default to jsonapi
1002
+
1003
+ ## 0.10.6
1004
+
1005
+ ### Patch Changes
1006
+
1007
+ - 63f6b7d: dependencies updates:
1008
+ - Updated dependency [`@opentelemetry/exporter-trace-otlp-grpc@^0.201.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-grpc/v/0.201.1) (from `^0.201.0`, in `dependencies`)
1009
+ - Updated dependency [`@opentelemetry/exporter-trace-otlp-http@^0.201.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-http/v/0.201.1) (from `^0.201.0`, in `dependencies`)
1010
+ - Updated dependency [`@opentelemetry/otlp-exporter-base@^0.201.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/otlp-exporter-base/v/0.201.1) (from `^0.201.0`, in `dependencies`)
1011
+ - Updated dependency [`@opentelemetry/otlp-transformer@^0.201.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/otlp-transformer/v/0.201.1) (from `^0.201.0`, in `dependencies`)
1012
+ - Updated dependency [`@opentelemetry/sdk-node@^0.201.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-node/v/0.201.1) (from `^0.201.0`, in `dependencies`)
1013
+ - Updated dependency [`@opentelemetry/semantic-conventions@^1.34.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/semantic-conventions/v/1.34.0) (from `^1.33.0`, in `dependencies`)
1014
+ - Updated dependency [`ai@^4.3.16` ↗︎](https://www.npmjs.com/package/ai/v/4.3.16) (from `^4.2.2`, in `dependencies`)
1015
+ - Updated dependency [`cohere-ai@^7.17.1` ↗︎](https://www.npmjs.com/package/cohere-ai/v/7.17.1) (from `^7.16.0`, in `dependencies`)
1016
+ - Updated dependency [`hono@^4.7.11` ↗︎](https://www.npmjs.com/package/hono/v/4.7.11) (from `^4.5.1`, in `dependencies`)
1017
+ - Updated dependency [`hono-openapi@^0.4.8` ↗︎](https://www.npmjs.com/package/hono-openapi/v/0.4.8) (from `^0.4.6`, in `dependencies`)
1018
+ - Updated dependency [`json-schema-to-zod@^2.6.1` ↗︎](https://www.npmjs.com/package/json-schema-to-zod/v/2.6.1) (from `^2.6.0`, in `dependencies`)
1019
+ - Updated dependency [`pino@^9.7.0` ↗︎](https://www.npmjs.com/package/pino/v/9.7.0) (from `^9.6.0`, in `dependencies`)
1020
+ - Updated dependency [`xstate@^5.19.4` ↗︎](https://www.npmjs.com/package/xstate/v/5.19.4) (from `^5.19.2`, in `dependencies`)
1021
+ - 12a95fc: Allow passing thread metadata to agent.generate and agent.stream. This will update or create the thread with the metadata passed in. Also simplifies the arguments for those two functions into a new memory property.
1022
+ - 4b0f8a6: Allow passing a string, ui message, core message, or mastra message to agent.genTitle and agent.generateTitleFromUserMessage to restore previously changed public behaviour
1023
+ - 51264a5: Fix fetchMemory return type and value
1024
+ - 8e6f677: Dynamic default llm options
1025
+ - d70c420: fix(core, memory): fix fetchMemory regression
1026
+ - ee9af57: Add api for polling run execution result and get run by id
1027
+ - 36f1c36: MCP Client and Server streamable http fixes
1028
+ - 2a16996: Working Memory Schema and Template
1029
+ - 10d352e: fix: bug in `workflow.parallel` return types causing type errors on c…
1030
+ - 9589624: Throw Mastra Errors when building and bundling mastra application
1031
+ - 53d3c37: Get workflows from an agent if not found from Mastra instance #5083
1032
+ - 751c894: pass resourceId
1033
+ - 577ce3a: deno support - use globalThis
1034
+ - 9260b3a: changeset
1035
+
1036
+ ## 0.10.6-alpha.5
1037
+
1038
+ ### Patch Changes
1039
+
1040
+ - 12a95fc: Allow passing thread metadata to agent.generate and agent.stream. This will update or create the thread with the metadata passed in. Also simplifies the arguments for those two functions into a new memory property.
1041
+ - 51264a5: Fix fetchMemory return type and value
1042
+ - 8e6f677: Dynamic default llm options
1043
+
1044
+ ## 0.10.6-alpha.4
1045
+
1046
+ ### Patch Changes
1047
+
1048
+ - 9589624: Throw Mastra Errors when building and bundling mastra application
1049
+
1050
+ ## 0.10.6-alpha.3
1051
+
1052
+ ### Patch Changes
1053
+
1054
+ - d70c420: fix(core, memory): fix fetchMemory regression
1055
+ - 2a16996: Working Memory Schema and Template
1056
+
1057
+ ## 0.10.6-alpha.2
1058
+
1059
+ ### Patch Changes
1060
+
1061
+ - 4b0f8a6: Allow passing a string, ui message, core message, or mastra message to agent.genTitle and agent.generateTitleFromUserMessage to restore previously changed public behaviour
1062
+
1063
+ ## 0.10.6-alpha.1
1064
+
1065
+ ### Patch Changes
1066
+
1067
+ - ee9af57: Add api for polling run execution result and get run by id
1068
+ - 751c894: pass resourceId
1069
+ - 577ce3a: deno support - use globalThis
1070
+ - 9260b3a: changeset
1071
+
1072
+ ## 0.10.6-alpha.0
1073
+
1074
+ ### Patch Changes
1075
+
1076
+ - 63f6b7d: dependencies updates:
1077
+ - Updated dependency [`@opentelemetry/exporter-trace-otlp-grpc@^0.201.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-grpc/v/0.201.1) (from `^0.201.0`, in `dependencies`)
1078
+ - Updated dependency [`@opentelemetry/exporter-trace-otlp-http@^0.201.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/exporter-trace-otlp-http/v/0.201.1) (from `^0.201.0`, in `dependencies`)
1079
+ - Updated dependency [`@opentelemetry/otlp-exporter-base@^0.201.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/otlp-exporter-base/v/0.201.1) (from `^0.201.0`, in `dependencies`)
1080
+ - Updated dependency [`@opentelemetry/otlp-transformer@^0.201.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/otlp-transformer/v/0.201.1) (from `^0.201.0`, in `dependencies`)
1081
+ - Updated dependency [`@opentelemetry/sdk-node@^0.201.1` ↗︎](https://www.npmjs.com/package/@opentelemetry/sdk-node/v/0.201.1) (from `^0.201.0`, in `dependencies`)
1082
+ - Updated dependency [`@opentelemetry/semantic-conventions@^1.34.0` ↗︎](https://www.npmjs.com/package/@opentelemetry/semantic-conventions/v/1.34.0) (from `^1.33.0`, in `dependencies`)
1083
+ - Updated dependency [`ai@^4.3.16` ↗︎](https://www.npmjs.com/package/ai/v/4.3.16) (from `^4.2.2`, in `dependencies`)
1084
+ - Updated dependency [`cohere-ai@^7.17.1` ↗︎](https://www.npmjs.com/package/cohere-ai/v/7.17.1) (from `^7.16.0`, in `dependencies`)
1085
+ - Updated dependency [`hono@^4.7.11` ↗︎](https://www.npmjs.com/package/hono/v/4.7.11) (from `^4.5.1`, in `dependencies`)
1086
+ - Updated dependency [`hono-openapi@^0.4.8` ↗︎](https://www.npmjs.com/package/hono-openapi/v/0.4.8) (from `^0.4.6`, in `dependencies`)
1087
+ - Updated dependency [`json-schema-to-zod@^2.6.1` ↗︎](https://www.npmjs.com/package/json-schema-to-zod/v/2.6.1) (from `^2.6.0`, in `dependencies`)
1088
+ - Updated dependency [`pino@^9.7.0` ↗︎](https://www.npmjs.com/package/pino/v/9.7.0) (from `^9.6.0`, in `dependencies`)
1089
+ - Updated dependency [`xstate@^5.19.4` ↗︎](https://www.npmjs.com/package/xstate/v/5.19.4) (from `^5.19.2`, in `dependencies`)
1090
+ - 36f1c36: MCP Client and Server streamable http fixes
1091
+ - 10d352e: fix: bug in `workflow.parallel` return types causing type errors on c…
1092
+ - 53d3c37: Get workflows from an agent if not found from Mastra instance #5083
1093
+
1094
+ ## 0.10.5
1095
+
1096
+ ### Patch Changes
1097
+
1098
+ - 13c97f9: Save run status, result and error in storage snapshot
1099
+
1100
+ ## 0.10.4
1101
+
1102
+ ### Patch Changes
1103
+
1104
+ - d1ed912: dependencies updates:
1105
+ - Updated dependency [`dotenv@^16.5.0` ↗︎](https://www.npmjs.com/package/dotenv/v/16.5.0) (from `^16.4.7`, in `dependencies`)
1106
+ - f6fd25f: Updates @mastra/schema-compat to allow all zod schemas. Uses @mastra/schema-compat to apply schema transformations to agent output schema.
1107
+ - dffb67b: updated stores to add alter table and change tests
1108
+ - f1f1f1b: Add basic filtering capabilities to logs
1109
+ - 925ab94: added paginated functions to base class and added boilerplate and updated imports
1110
+ - f9816ae: Create @mastra/schema-compat package to extract the schema compatibility layer to be used outside of mastra
1111
+ - 82090c1: Add pagination to logs
1112
+ - 1b443fd: - add trackException to loggers to allow mastra cloud to track exceptions at runtime
1113
+ - Added generic MastraBaseError<D, C> in packages/core/src/error/index.ts to improve type safety and flexibility of error handling
1114
+ - ce97900: Add paginated APIs to cloudflare-d1 storage class
1115
+ - f1309d3: Now that UIMessages are stored, we added a check to make sure large text files or source urls are not sent to the LLM for thread title generation.
1116
+ - 14a2566: Add pagination to libsql storage APIs
1117
+ - f7f8293: Added LanceDB implementations for MastraVector and MastraStorage
1118
+ - 48eddb9: update filter logic in Memory class to support semantic recall search scope
1119
+ - Updated dependencies [f6fd25f]
1120
+ - Updated dependencies [f9816ae]
1121
+ - @mastra/schema-compat@0.10.2
1122
+
1123
+ ## 0.10.4-alpha.3
1124
+
1125
+ ### Patch Changes
1126
+
1127
+ - 925ab94: added paginated functions to base class and added boilerplate and updated imports
1128
+
1129
+ ## 0.10.4-alpha.2
1130
+
1131
+ ### Patch Changes
1132
+
1133
+ - 48eddb9: update filter logic in Memory class to support semantic recall search scope
1134
+
1135
+ ## 0.10.4-alpha.1
1136
+
1137
+ ### Patch Changes
1138
+
1139
+ - f6fd25f: Updates @mastra/schema-compat to allow all zod schemas. Uses @mastra/schema-compat to apply schema transformations to agent output schema.
1140
+ - dffb67b: updated stores to add alter table and change tests
1141
+ - f1309d3: Now that UIMessages are stored, we added a check to make sure large text files or source urls are not sent to the LLM for thread title generation.
1142
+ - f7f8293: Added LanceDB implementations for MastraVector and MastraStorage
1143
+ - Updated dependencies [f6fd25f]
1144
+ - @mastra/schema-compat@0.10.2-alpha.3
1145
+
1146
+ ## 0.10.4-alpha.0
1147
+
1148
+ ### Patch Changes
1149
+
1150
+ - d1ed912: dependencies updates:
1151
+ - Updated dependency [`dotenv@^16.5.0` ↗︎](https://www.npmjs.com/package/dotenv/v/16.5.0) (from `^16.4.7`, in `dependencies`)
1152
+ - f1f1f1b: Add basic filtering capabilities to logs
1153
+ - f9816ae: Create @mastra/schema-compat package to extract the schema compatibility layer to be used outside of mastra
1154
+ - 82090c1: Add pagination to logs
1155
+ - 1b443fd: - add trackException to loggers to allow mastra cloud to track exceptions at runtime
1156
+ - Added generic MastraBaseError<D, C> in packages/core/src/error/index.ts to improve type safety and flexibility of error handling
1157
+ - ce97900: Add paginated APIs to cloudflare-d1 storage class
1158
+ - 14a2566: Add pagination to libsql storage APIs
1159
+ - Updated dependencies [f9816ae]
1160
+ - @mastra/schema-compat@0.10.2-alpha.2
1161
+
1162
+ ## 0.10.3
1163
+
1164
+ ### Patch Changes
1165
+
1166
+ - 2b0fc7e: Ensure context messages aren't saved to the storage db
1167
+
1168
+ ## 0.10.3-alpha.0
1169
+
1170
+ ### Patch Changes
1171
+
1172
+ - 2b0fc7e: Ensure context messages aren't saved to the storage db
1173
+
1174
+ ## 0.10.2
1175
+
1176
+ ### Patch Changes
1177
+
1178
+ - ee77e78: Type fixes for dynamodb and MessageList
1179
+ - 592a2db: Added different icons for agents and workflows in mcp tools list
1180
+ - e5dc18d: Added a backwards compatible layer to begin storing/retrieving UIMessages in storage instead of CoreMessages
1181
+ - ab5adbe: Add support for runtimeContext to generateTitle
1182
+ - 1e8bb40: Add runtimeContext to tools and agents in a workflow step.
1183
+
1184
+ Also updated start/resume docs for runtime context.
1185
+
1186
+ - 1b5fc55: Fixed an issue where the playground wouldn't display images saved in memory. Fixed memory to always store images as strings. Removed duplicate storage of reasoning and file/image parts in storage dbs
1187
+ - 195c428: Add runId to step execute fn
1188
+ - f73e11b: fix telemetry disabled not working on playground
1189
+ - 37643b8: Fix tool access
1190
+ - 99fd6cf: Fix workflow stream chunk type
1191
+ - c5bf1ce: Add backwards compat code for new MessageList in storage
1192
+ - add596e: Mastra protected auth
1193
+ - 8dc94d8: Enhance workflow DI runtimeContext get method type safety
1194
+ - ecebbeb: Mastra core auth abstract definition
1195
+ - 79d5145: Fixes passing telemetry configuration when Agent.stream is used with experimental_output
1196
+ - 12b7002: Add serializedStepGraph to workflow run snapshot in storage
1197
+ - 2901125: feat: set mastra server middleware after Mastra has been initialized
1198
+
1199
+ ## 0.10.2-alpha.8
1200
+
1201
+ ### Patch Changes
1202
+
1203
+ - 37643b8: Fix tool access
1204
+ - 79d5145: Fixes passing telemetry configuration when Agent.stream is used with experimental_output
1205
+
1206
+ ## 0.10.2-alpha.7
1207
+
1208
+ ## 0.10.2-alpha.6
1209
+
1210
+ ### Patch Changes
1211
+
1212
+ - 99fd6cf: Fix workflow stream chunk type
1213
+ - 8dc94d8: Enhance workflow DI runtimeContext get method type safety
1214
+
1215
+ ## 0.10.2-alpha.5
1216
+
1217
+ ### Patch Changes
1218
+
1219
+ - 1b5fc55: Fixed an issue where the playground wouldn't display images saved in memory. Fixed memory to always store images as strings. Removed duplicate storage of reasoning and file/image parts in storage dbs
1220
+ - add596e: Mastra protected auth
1221
+ - ecebbeb: Mastra core auth abstract definition
1222
+
1223
+ ## 0.10.2-alpha.4
1224
+
1225
+ ### Patch Changes
1226
+
1227
+ - c5bf1ce: Add backwards compat code for new MessageList in storage
1228
+ - 12b7002: Add serializedStepGraph to workflow run snapshot in storage
1229
+
1230
+ ## 0.10.2-alpha.3
1231
+
1232
+ ### Patch Changes
1233
+
1234
+ - ab5adbe: Add support for runtimeContext to generateTitle
1235
+ - 195c428: Add runId to step execute fn
1236
+ - f73e11b: fix telemetry disabled not working on playground
1237
+
1238
+ ## 0.10.2-alpha.2
1239
+
1240
+ ### Patch Changes
1241
+
1242
+ - 1e8bb40: Add runtimeContext to tools and agents in a workflow step.
1243
+
1244
+ Also updated start/resume docs for runtime context.
1245
+
1246
+ ## 0.10.2-alpha.1
1247
+
1248
+ ### Patch Changes
1249
+
1250
+ - ee77e78: Type fixes for dynamodb and MessageList
1251
+ - 2901125: feat: set mastra server middleware after Mastra has been initialized
1252
+
1253
+ ## 0.10.2-alpha.0
1254
+
1255
+ ### Patch Changes
1256
+
1257
+ - 592a2db: Added different icons for agents and workflows in mcp tools list
1258
+ - e5dc18d: Added a backwards compatible layer to begin storing/retrieving UIMessages in storage instead of CoreMessages
1259
+
1260
+ ## 0.10.1
1261
+
1262
+ ### Patch Changes
1263
+
1264
+ - d70b807: Improve storage.init
1265
+ - 6d16390: Support custom bundle externals on mastra Instance
1266
+ - 1e4a421: Fix duplication of items in array results in workflow
1267
+ - 200d0da: Return payload data, start time, end time, resume time and suspend time for each step in workflow state
1268
+ Return error stack for failed workflow runs
1269
+ - bf5f17b: Adds ability to pass workflows into MCPServer to generate tools from the workflows. Each workflow will become a tool that can start the workflow run.
1270
+ - 5343f93: Move emitter to symbol to make private
1271
+ - 38aee50: Adds ability to pass an agents into an MCPServer instance to automatically generate tools from them.
1272
+ - 5c41100: Added binding support for cloudflare deployers, added cloudflare kv namespace changes, and removed randomUUID from buildExecutionGraph
1273
+ - d6a759b: Update workflows code in core readme'
1274
+ - 6015bdf: Leverage defaultAgentStreamOption, defaultAgentGenerateOption in playground
1275
+
1276
+ ## 0.10.1-alpha.3
1277
+
1278
+ ### Patch Changes
1279
+
1280
+ - d70b807: Improve storage.init
1281
+
1282
+ ## 0.10.1-alpha.2
1283
+
1284
+ ### Patch Changes
1285
+
1286
+ - 6015bdf: Leverage defaultAgentStreamOption, defaultAgentGenerateOption in playground
1287
+
1288
+ ## 0.10.1-alpha.1
1289
+
1290
+ ### Patch Changes
1291
+
1292
+ - 200d0da: Return payload data, start time, end time, resume time and suspend time for each step in workflow state
1293
+ Return error stack for failed workflow runs
1294
+ - bf5f17b: Adds ability to pass workflows into MCPServer to generate tools from the workflows. Each workflow will become a tool that can start the workflow run.
1295
+ - 5343f93: Move emitter to symbol to make private
1296
+ - 38aee50: Adds ability to pass an agents into an MCPServer instance to automatically generate tools from them.
1297
+ - 5c41100: Added binding support for cloudflare deployers, added cloudflare kv namespace changes, and removed randomUUID from buildExecutionGraph
1298
+ - d6a759b: Update workflows code in core readme'
1299
+
1300
+ ## 0.10.1-alpha.0
1301
+
1302
+ ### Patch Changes
1303
+
1304
+ - 6d16390: Support custom bundle externals on mastra Instance
1305
+ - 1e4a421: Fix duplication of items in array results in workflow
1306
+
1307
+ ## 0.10.0
1308
+
1309
+ ### Minor Changes
1310
+
1311
+ - 5eb5a99: Remove pino from @mastra/core into @mastra/loggers
1312
+ - 7e632c5: Removed default LibSQLStore and LibSQLVector from @mastra/core. These now live in a separate package @mastra/libsql
1313
+ - b2ae5aa: Added support for experimental authentication and authorization
1314
+ - 0dcb9f0: Memory breaking changes: storage, vector, and embedder are now required. Working memory text streaming has been removed, only tool calling is supported for working memory updates now. Default settings have changed (lastMessages: 40->10, semanticRecall: true->false, threads.generateTitle: true->false)
1315
+
1316
+ ### Patch Changes
1317
+
1318
+ - b3a3d63: BREAKING: Make vnext workflow the default worklow, and old workflow legacy_workflow
1319
+ - 344f453: Await onFinish & onStepFinish to ensure the stream doesn't close early
1320
+ - 0a3ae6d: Fixed a bug where tool input schema properties that were optional became required
1321
+ - 95911be: Fixed an issue where if @mastra/core was not released at the same time as create-mastra, create-mastra would match the alpha tag instead of latest tag when running npm create mastra@latest
1322
+ - f53a6ac: Add VNextWorkflowRuns type
1323
+ - 1e9fbfa: Upgrade to OpenTelemetry JS SDK 2.x
1324
+ - eabdcd9: [MASTRA-3451] SQL Injection Protection
1325
+ - 90be034: Pass zod schema directly to getInitData
1326
+ - 99f050a: Bumped a workspace package zod version to attempt to prevent duplicate dep installs of @mastra/core
1327
+ - d0ee3c6: Change all public functions and constructors in vector stores to use named args and prepare to phase out positional args
1328
+ - 23f258c: Add new list and get routes for mcp servers. Changed route make-up for more consistency with existing API routes. Lastly, added in a lot of extra detail that can be optionally passed to the mcp server per the mcp spec.
1329
+ - a7292b0: BREAKING(@mastra/core, all vector stores): Vector store breaking changes (remove deprecated functions and positional arguments)
1330
+ - 2672a05: Add MCP servers and tool call execution to playground
1331
+
1332
+ ## 0.10.0-alpha.1
1333
+
1334
+ ### Minor Changes
1335
+
1336
+ - 5eb5a99: Remove pino from @mastra/core into @mastra/loggers
1337
+ - 7e632c5: Removed default LibSQLStore and LibSQLVector from @mastra/core. These now live in a separate package @mastra/libsql
1338
+ - b2ae5aa: Added support for experimental authentication and authorization
1339
+ - 0dcb9f0: Memory breaking changes: storage, vector, and embedder are now required. Working memory text streaming has been removed, only tool calling is supported for working memory updates now. Default settings have changed (lastMessages: 40->10, semanticRecall: true->false, threads.generateTitle: true->false)
1340
+
1341
+ ### Patch Changes
1342
+
1343
+ - b3a3d63: BREAKING: Make vnext workflow the default worklow, and old workflow legacy_workflow
1344
+ - 344f453: Await onFinish & onStepFinish to ensure the stream doesn't close early
1345
+ - 0a3ae6d: Fixed a bug where tool input schema properties that were optional became required
1346
+ - 95911be: Fixed an issue where if @mastra/core was not released at the same time as create-mastra, create-mastra would match the alpha tag instead of latest tag when running npm create mastra@latest
1347
+ - 1e9fbfa: Upgrade to OpenTelemetry JS SDK 2.x
1348
+ - a7292b0: BREAKING(@mastra/core, all vector stores): Vector store breaking changes (remove deprecated functions and positional arguments)
1349
+
1350
+ ## 0.9.5-alpha.0
1351
+
1352
+ ### Patch Changes
1353
+
1354
+ - f53a6ac: Add VNextWorkflowRuns type
1355
+ - eabdcd9: [MASTRA-3451] SQL Injection Protection
1356
+ - 90be034: Pass zod schema directly to getInitData
1357
+ - 99f050a: Bumped a workspace package zod version to attempt to prevent duplicate dep installs of @mastra/core
1358
+ - d0ee3c6: Change all public functions and constructors in vector stores to use named args and prepare to phase out positional args
1359
+ - 23f258c: Add new list and get routes for mcp servers. Changed route make-up for more consistency with existing API routes. Lastly, added in a lot of extra detail that can be optionally passed to the mcp server per the mcp spec.
1360
+ - 2672a05: Add MCP servers and tool call execution to playground
1361
+
1362
+ ## 0.9.4
1363
+
1364
+ ### Patch Changes
1365
+
1366
+ - 396be50: updated mcp server routes for MCP SSE for use with hono server
1367
+ - ab80e7e: Fix resume workflow throwing workflow run not found error
1368
+ - c3bd795: [MASTRA-3358] Deprecate updateIndexById and deleteIndexById
1369
+ - da082f8: Switch from serializing json schema string as a function to a library that creates a zod object in memory from the json schema. This reduces the errors we were seeing from zod schema code that could not be serialized.
1370
+ - a5810ce: Add support for experimental_generateMessageId and remove it from client-js types since it's not serializable
1371
+ - 3e9c131: Typo resoolve.
1372
+ - 3171b5b: Fix jsonSchema on vercel tools
1373
+ - 973e5ac: Add workflows to agents properly
1374
+ - daf942f: [MASTRA-3367] updated createthread when using generatetitle to perserve thread metadata
1375
+ - 0b8b868: Added A2A support + streaming
1376
+ - 9e1eff5: Fix tool compatibility schema handling by ensuring zodSchema.shape is safely accessed, preventing potential runtime errors.
1377
+ - 6fa1ad1: Fixes and issue when a tool provides no inputSchema and when a tool uses a non-zod schema.
1378
+ - c28d7a0: Fix watch workflow not streaming response back in legacy workflow
1379
+ - edf1e88: allows ability to pass McpServer into the mastra class and creates an endpoint /api/servers/:serverId/mcp to POST messages to an MCP server
1380
+
1381
+ ## 0.9.4-alpha.4
1382
+
1383
+ ### Patch Changes
1384
+
1385
+ - 3e9c131: Typo resoolve.
1386
+
1387
+ ## 0.9.4-alpha.3
1388
+
1389
+ ### Patch Changes
1390
+
1391
+ - 396be50: updated mcp server routes for MCP SSE for use with hono server
1392
+ - c3bd795: [MASTRA-3358] Deprecate updateIndexById and deleteIndexById
1393
+ - da082f8: Switch from serializing json schema string as a function to a library that creates a zod object in memory from the json schema. This reduces the errors we were seeing from zod schema code that could not be serialized.
1394
+ - a5810ce: Add support for experimental_generateMessageId and remove it from client-js types since it's not serializable
1395
+
1396
+ ## 0.9.4-alpha.2
1397
+
1398
+ ### Patch Changes
1399
+
1400
+ - 3171b5b: Fix jsonSchema on vercel tools
1401
+ - 973e5ac: Add workflows to agents properly
1402
+ - 9e1eff5: Fix tool compatibility schema handling by ensuring zodSchema.shape is safely accessed, preventing potential runtime errors.
1403
+
1404
+ ## 0.9.4-alpha.1
1405
+
1406
+ ### Patch Changes
1407
+
1408
+ - ab80e7e: Fix resume workflow throwing workflow run not found error
1409
+ - 6fa1ad1: Fixes and issue when a tool provides no inputSchema and when a tool uses a non-zod schema.
1410
+ - c28d7a0: Fix watch workflow not streaming response back in legacy workflow
1411
+ - edf1e88: allows ability to pass McpServer into the mastra class and creates an endpoint /api/servers/:serverId/mcp to POST messages to an MCP server
1412
+
1413
+ ## 0.9.4-alpha.0
1414
+
1415
+ ### Patch Changes
1416
+
1417
+ - daf942f: [MASTRA-3367] updated createthread when using generatetitle to perserve thread metadata
1418
+ - 0b8b868: Added A2A support + streaming
1419
+
1420
+ ## 0.9.3
1421
+
1422
+ ### Patch Changes
1423
+
1424
+ - e450778: vnext: Inngest playground fixes
1425
+ - 8902157: added an optional `bodySizeLimit` to server config so that users can pass custom bodylimit size in mb. If not, it defaults to 4.5 mb
1426
+ - ca0dc88: fix: filter out excessive logs when getting LLM for agents
1427
+ - 526c570: expose agent runtimeContext from clientSDK
1428
+ - d7a6a33: Allow more user messages to be saved to memory, and fix message saving when using output flag
1429
+ - 9cd1a46: [MASTRA-3338] update naming scheme for embedding index based on vector store rules and added duplicate index checks
1430
+ - b5d2de0: In vNext workflow serializedStepGraph, return only serializedStepFlow for steps created from a workflow
1431
+ allow viewing inner nested workflows in a multi-layered nested vnext workflow on the playground
1432
+ - 644f8ad: Adds a tool compatibility layer to ensure models from various providers work the same way. Models may not be able to support all json schema properties (such as some openai reasoning models), as well as other models support the property but seem to ignore it. The feature allows for a compatibility class for a provider that can be customized to fit the models and make sure they're using the tool schemas properly.
1433
+ - 70dbf51: [MASTRA-2452] updated setBaggage for tracing
1434
+
1435
+ ## 0.9.3-alpha.1
1436
+
1437
+ ### Patch Changes
1438
+
1439
+ - e450778: vnext: Inngest playground fixes
1440
+ - 8902157: added an optional `bodySizeLimit` to server config so that users can pass custom bodylimit size in mb. If not, it defaults to 4.5 mb
1441
+ - ca0dc88: fix: filter out excessive logs when getting LLM for agents
1442
+ - 9cd1a46: [MASTRA-3338] update naming scheme for embedding index based on vector store rules and added duplicate index checks
1443
+ - 70dbf51: [MASTRA-2452] updated setBaggage for tracing
1444
+
1445
+ ## 0.9.3-alpha.0
1446
+
1447
+ ### Patch Changes
1448
+
1449
+ - 526c570: expose agent runtimeContext from clientSDK
1450
+ - b5d2de0: In vNext workflow serializedStepGraph, return only serializedStepFlow for steps created from a workflow
1451
+ allow viewing inner nested workflows in a multi-layered nested vnext workflow on the playground
1452
+ - 644f8ad: Adds a tool compatibility layer to ensure models from various providers work the same way. Models may not be able to support all json schema properties (such as some openai reasoning models), as well as other models support the property but seem to ignore it. The feature allows for a compatibility class for a provider that can be customized to fit the models and make sure they're using the tool schemas properly.
1453
+
1454
+ ## 0.9.2
1455
+
1456
+ ### Patch Changes
1457
+
1458
+ - 6052aa6: Add getWorkflowRunById to vNext workflow core and server handler
1459
+ - 967b41c: fix: removes new agent getter methods from telemetry
1460
+ - 3d2fb5c: Fix commonjs import for vnext workflows
1461
+ - 26738f4: Switched from a custom MCP tools schema deserializer to json-schema-to-zod - fixes an issue where MCP tool schemas didn't deserialize properly in Mastra playground. Also added support for testing tools with no input arguments in playground
1462
+ - 4155f47: Add parameters to filter workflow runs
1463
+ Add fromDate and toDate to telemetry parameters
1464
+ - 7eeb2bc: Add Memory default storage breaking change warning
1465
+ - b804723: Fix #3831: keep conversations in tact by keeping empty assistant messages
1466
+ - 8607972: Introduce Mastra lint cli command
1467
+ - ccef9f9: Fixed a type error when converting tools
1468
+ - 0097d50: Add serializedStepGraph to vNext workflow
1469
+ Return serializedStepGraph from vNext workflow
1470
+ Use serializedStepGraph in vNext workflow graph
1471
+ - 7eeb2bc: Added explicit storage to memory in create-mastra so new projects don't see breaking change warnings
1472
+ - 17826a9: Added a breaking change warning about deprecated working memory "use: 'text-stream'" which is being fully replaced by "use: 'tool-call'"
1473
+ - 7d8b7c7: In vnext getworkflowRunById, pick run from this.#runs if it does not exist in storage
1474
+ - fba031f: Show traces for vNext workflow
1475
+ - 3a5f1e1: Created a new @mastra/fastembed package based on the default embedder in @mastra/core as the default embedder will be removed in a breaking change (May 20th)
1476
+ Added a warning to use the new @mastra/fastembed package instead of the default embedder
1477
+ - 51e6923: fix ts errors on default proxy storage
1478
+ - 8398d89: vNext: dynamic input mappings
1479
+
1480
+ ## 0.9.2-alpha.6
1481
+
1482
+ ### Patch Changes
1483
+
1484
+ - 6052aa6: Add getWorkflowRunById to vNext workflow core and server handler
1485
+ - 7d8b7c7: In vnext getworkflowRunById, pick run from this.#runs if it does not exist in storage
1486
+ - 3a5f1e1: Created a new @mastra/fastembed package based on the default embedder in @mastra/core as the default embedder will be removed in a breaking change (May 20th)
1487
+ Added a warning to use the new @mastra/fastembed package instead of the default embedder
1488
+ - 8398d89: vNext: dynamic input mappings
1489
+
1490
+ ## 0.9.2-alpha.5
1491
+
1492
+ ### Patch Changes
1493
+
1494
+ - 3d2fb5c: Fix commonjs import for vnext workflows
1495
+ - 7eeb2bc: Add Memory default storage breaking change warning
1496
+ - 8607972: Introduce Mastra lint cli command
1497
+ - 7eeb2bc: Added explicit storage to memory in create-mastra so new projects don't see breaking change warnings
1498
+ - fba031f: Show traces for vNext workflow
1499
+
1500
+ ## 0.9.2-alpha.4
1501
+
1502
+ ### Patch Changes
1503
+
1504
+ - ccef9f9: Fixed a type error when converting tools
1505
+ - 51e6923: fix ts errors on default proxy storage
1506
+
1507
+ ## 0.9.2-alpha.3
1508
+
1509
+ ### Patch Changes
1510
+
1511
+ - 967b41c: fix: removes new agent getter methods from telemetry
1512
+ - 4155f47: Add parameters to filter workflow runs
1513
+ Add fromDate and toDate to telemetry parameters
1514
+ - 17826a9: Added a breaking change warning about deprecated working memory "use: 'text-stream'" which is being fully replaced by "use: 'tool-call'"
1515
+
1516
+ ## 0.9.2-alpha.2
1517
+
1518
+ ### Patch Changes
1519
+
1520
+ - 26738f4: Switched from a custom MCP tools schema deserializer to json-schema-to-zod - fixes an issue where MCP tool schemas didn't deserialize properly in Mastra playground. Also added support for testing tools with no input arguments in playground
1521
+
1522
+ ## 0.9.2-alpha.1
1523
+
1524
+ ### Patch Changes
1525
+
1526
+ - b804723: Fix #3831: keep conversations in tact by keeping empty assistant messages
1527
+
1528
+ ## 0.9.2-alpha.0
1529
+
1530
+ ### Patch Changes
1531
+
1532
+ - 0097d50: Add serializedStepGraph to vNext workflow
1533
+ Return serializedStepGraph from vNext workflow
1534
+ Use serializedStepGraph in vNext workflow graph
1535
+
1536
+ ## 0.9.1
1537
+
1538
+ ### Patch Changes
1539
+
1540
+ - 405b63d: add ability to clone workflows with different id
1541
+ - 81fb7f6: Workflows v2
1542
+ - 20275d4: Adding warnings for current implicit Memory default options as they will be changing soon in a breaking change. Also added memory to create-mastra w/ new defaults so new projects don't see these warnings
1543
+ - 7d1892c: Return error object directly in vNext workflows
1544
+ - a90a082: Rename container to runtimeContext in vNext workflow
1545
+ Add steps accessor for stepFlow in vnext workflow
1546
+ Add getWorkflowRun to vnext workflow
1547
+ Add vnext_getWorkflows() to mastra core
1548
+ - 2d17c73: Fix checking for presence of constant value mappings
1549
+ - 61e92f5: vNext fix workflow watch cleanup
1550
+ - 35955b0: Rename import to runtime-contxt
1551
+ - 6262bd5: Mastra server custom host config
1552
+ - c1409ef: Add vNextWorkflow handlers and APIs
1553
+ Add stepGraph and steps to vNextWorkflow
1554
+ - 3e7b69d: Dynamic agent props
1555
+ - e4943b8: Default arrays to string type when transformation JSON schema to zod as per the JSON schema spec.
1556
+ - 11d4485: Show VNext workflows on the playground
1557
+ Show running status for step in vNext workflowState
1558
+ - 479f490: [MASTRA-3131] Add getWorkflowRunByID and add resourceId as filter for getWorkflowRuns
1559
+ - c23a81c: added deprecation warnings for pg and individual args
1560
+ - 2d4001d: Add new @msstra/libsql package and use it in create-mastra
1561
+ - c71013a: vNeuxt: unset currentStep for workflow status change event
1562
+ - 1d3b1cd: Rebump
1563
+
1564
+ ## 0.9.1-alpha.8
1565
+
1566
+ ### Patch Changes
1567
+
1568
+ - 2d17c73: Fix checking for presence of constant value mappings
1569
+
1570
+ ## 0.9.1-alpha.7
1571
+
1572
+ ### Patch Changes
1573
+
1574
+ - 1d3b1cd: Rebump
1575
+
1576
+ ## 0.9.1-alpha.6
1577
+
1578
+ ### Patch Changes
1579
+
1580
+ - c23a81c: added deprecation warnings for pg and individual args
1581
+
1582
+ ## 0.9.1-alpha.5
1583
+
1584
+ ### Patch Changes
1585
+
1586
+ - 3e7b69d: Dynamic agent props
1587
+
1588
+ ## 0.9.1-alpha.4
1589
+
1590
+ ### Patch Changes
1591
+
1592
+ - e4943b8: Default arrays to string type when transformation JSON schema to zod as per the JSON schema spec.
1593
+ - 479f490: [MASTRA-3131] Add getWorkflowRunByID and add resourceId as filter for getWorkflowRuns
1594
+
1595
+ ## 0.9.1-alpha.3
1596
+
1597
+ ### Patch Changes
1598
+
1599
+ - 6262bd5: Mastra server custom host config
1600
+
1601
+ ## 0.9.1-alpha.2
1602
+
1603
+ ### Patch Changes
1604
+
1605
+ - 405b63d: add ability to clone workflows with different id
1606
+ - 61e92f5: vNext fix workflow watch cleanup
1607
+ - c71013a: vNeuxt: unset currentStep for workflow status change event
1608
+
1609
+ ## 0.9.1-alpha.1
1610
+
1611
+ ### Patch Changes
1612
+
1613
+ - 20275d4: Adding warnings for current implicit Memory default options as they will be changing soon in a breaking change. Also added memory to create-mastra w/ new defaults so new projects don't see these warnings
1614
+ - 7d1892c: Return error object directly in vNext workflows
1615
+ - a90a082: Rename container to runtimeContext in vNext workflow
1616
+ Add steps accessor for stepFlow in vnext workflow
1617
+ Add getWorkflowRun to vnext workflow
1618
+ Add vnext_getWorkflows() to mastra core
1619
+ - 35955b0: Rename import to runtime-contxt
1620
+ - c1409ef: Add vNextWorkflow handlers and APIs
1621
+ Add stepGraph and steps to vNextWorkflow
1622
+ - 11d4485: Show VNext workflows on the playground
1623
+ Show running status for step in vNext workflowState
1624
+ - 2d4001d: Add new @msstra/libsql package and use it in create-mastra
1625
+
1626
+ ## 0.9.1-alpha.0
1627
+
1628
+ ### Patch Changes
1629
+
1630
+ - 81fb7f6: Workflows v2
1631
+
1632
+ ## 0.9.0
1633
+
1634
+ ### Minor Changes
1635
+
1636
+ - fe3ae4d: Remove \_\_ functions in storage and move to storage proxy to make sure init is called
1637
+
1638
+ ### Patch Changes
1639
+
1640
+ - 000a6d4: Fixed an issue where the TokenLimiter message processor was adding new messages into the remembered messages array
1641
+ - 08bb78e: Added an extra safety for Memory message ordering
1642
+ - ed2f549: Fix exlude methods for batchTraceInsert
1643
+ - 7e92011: Include tools with deployment builds
1644
+ - 9ee4293: Improve commonjs support
1645
+
1646
+ Add types files in the root directory to make sure typescript can resolve it without an exportsmap
1647
+
1648
+ - 03f3cd0: Propagate context to passed in tools
1649
+ - c0f22b4: [MASTRA-3130] Metadata Filter Update for PG and Libsql
1650
+ - 71d9444: updated savemessage to not use mutation when hiding working memory
1651
+ - 157c741: Fix message dupes using processors
1652
+ - 8a8a73b: fix container to network sub agent
1653
+ - 0a033fa: Adds MCPServer component
1654
+ - 9c26508: Fixed an issue where "mastra dev" wouldn't always print out localhost:4111 logs due to new NODE_ENV fixes
1655
+ - 0f4eae3: Rename Container into RuntimeContext
1656
+ - 16a8648: Disable swaggerUI, playground for production builds, mastra instance server build config to enable swaggerUI, apiReqLogs, openAPI documentation for prod builds
1657
+ - 6f92295: Fixed an issue where some user messages and llm messages would have the exact same createdAt date, leading to incorrect message ordering. Added a fix for new messages as well as any that were saved before the fix in the wrong order
1658
+
1659
+ ## 0.9.0-alpha.8
1660
+
1661
+ ### Patch Changes
1662
+
1663
+ - 000a6d4: Fixed an issue where the TokenLimiter message processor was adding new messages into the remembered messages array
1664
+ - ed2f549: Fix exlude methods for batchTraceInsert
1665
+ - c0f22b4: [MASTRA-3130] Metadata Filter Update for PG and Libsql
1666
+ - 0a033fa: Adds MCPServer component
1667
+ - 9c26508: Fixed an issue where "mastra dev" wouldn't always print out localhost:4111 logs due to new NODE_ENV fixes
1668
+ - 0f4eae3: Rename Container into RuntimeContext
1669
+ - 16a8648: Disable swaggerUI, playground for production builds, mastra instance server build config to enable swaggerUI, apiReqLogs, openAPI documentation for prod builds
1670
+
1671
+ ## 0.9.0-alpha.7
1672
+
1673
+ ### Patch Changes
1674
+
1675
+ - 71d9444: updated savemessage to not use mutation when hiding working memory
1676
+
1677
+ ## 0.9.0-alpha.6
1678
+
1679
+ ### Patch Changes
1680
+
1681
+ - 157c741: Fix message dupes using processors
1682
+
1683
+ ## 0.9.0-alpha.5
1684
+
1685
+ ### Patch Changes
1686
+
1687
+ - 08bb78e: Added an extra safety for Memory message ordering
1688
+
1689
+ ## 0.9.0-alpha.4
1690
+
1691
+ ### Patch Changes
1692
+
1693
+ - 7e92011: Include tools with deployment builds
1694
+
1695
+ ## 0.9.0-alpha.3
1696
+
1697
+ ### Minor Changes
1698
+
1699
+ - fe3ae4d: Remove \_\_ functions in storage and move to storage proxy to make sure init is called
1700
+
1701
+ ## 0.8.4-alpha.2
1702
+
1703
+ ### Patch Changes
1704
+
1705
+ - 9ee4293: Improve commonjs support
1706
+
1707
+ Add types files in the root directory to make sure typescript can resolve it without an exportsmap
1708
+
1709
+ ## 0.8.4-alpha.1
1710
+
1711
+ ### Patch Changes
1712
+
1713
+ - 8a8a73b: fix container to network sub agent
1714
+ - 6f92295: Fixed an issue where some user messages and llm messages would have the exact same createdAt date, leading to incorrect message ordering. Added a fix for new messages as well as any that were saved before the fix in the wrong order
1715
+
1716
+ ## 0.8.4-alpha.0
1717
+
1718
+ ### Patch Changes
1719
+
1720
+ - 03f3cd0: Propagate context to passed in tools
1721
+
1722
+ ## 0.8.3
1723
+
1724
+ ### Patch Changes
1725
+
1726
+ - d72318f: Refactored the evals table to use the DS tables
1727
+ - 0bcc862: Fixed an issue where we were sanitizing response message content and filter on a value that may not always be an array
1728
+ - 10a8caf: Removed an extra console log that made it into core
1729
+ - 359b089: Allowed explicitly disabling vector/embedder in Memory by passing vector: false or options.semanticRecall: false
1730
+ - 32e7b71: Add support for dependency injection
1731
+ - 37bb612: Add Elastic-2.0 licensing for packages
1732
+ - 7f1b291: Client Side tool call passing
1733
+
1734
+ ## 0.8.3-alpha.5
1735
+
1736
+ ### Patch Changes
1737
+
1738
+ - d72318f: Refactored the evals table to use the DS tables
1739
+
1740
+ ## 0.8.3-alpha.4
1741
+
1742
+ ### Patch Changes
1743
+
1744
+ - 7f1b291: Client Side tool call passing
1745
+
1746
+ ## 0.8.3-alpha.3
1747
+
1748
+ ### Patch Changes
1749
+
1750
+ - 10a8caf: Removed an extra console log that made it into core
1751
+
1752
+ ## 0.8.3-alpha.2
1753
+
1754
+ ### Patch Changes
1755
+
1756
+ - 0bcc862: Fixed an issue where we were sanitizing response message content and filter on a value that may not always be an array
1757
+
1758
+ ## 0.8.3-alpha.1
1759
+
1760
+ ### Patch Changes
1761
+
1762
+ - 32e7b71: Add support for dependency injection
1763
+ - 37bb612: Add Elastic-2.0 licensing for packages
1764
+
1765
+ ## 0.8.3-alpha.0
1766
+
1767
+ ### Patch Changes
1768
+
1769
+ - 359b089: Allowed explicitly disabling vector/embedder in Memory by passing vector: false or options.semanticRecall: false
1770
+
1771
+ ## 0.8.2
1772
+
1773
+ ### Patch Changes
1774
+
1775
+ - a06aadc: Upgrade fastembed to fix bug where fastembe cannot be imported
1776
+
1777
+ ## 0.8.2-alpha.0
1778
+
1779
+ ### Patch Changes
1780
+
1781
+ - a06aadc: Upgrade fastembed to fix bug where fastembe cannot be imported
1782
+
1783
+ ## 0.8.1
1784
+
1785
+ ### Patch Changes
1786
+
1787
+ - 99e2998: Set default max steps to 5
1788
+ - 8fdb414: Custom mastra server cors config
1789
+
1790
+ ## 0.8.1-alpha.0
1791
+
1792
+ ### Patch Changes
1793
+
1794
+ - 99e2998: Set default max steps to 5
1795
+ - 8fdb414: Custom mastra server cors config
1796
+
1797
+ ## 0.8.0
1798
+
1799
+ ### Minor Changes
1800
+
1801
+ - 619c39d: Added support for agents as steps
1802
+
1803
+ ### Patch Changes
1804
+
1805
+ - 56c31b7: Batch insert messages for libsql adapter
1806
+ - 5ae0180: Removed prefixed doc references
1807
+ - fe56be0: exclude \_\_primitive, getMemory, hasOwnMemory from traces since they create noisy traces
1808
+ - 93875ed: Improved the performance of Memory semantic recall by 2 to 3 times when using pg by making tweaks to @mastra/memory @mastra/core and @mastra/pg
1809
+ - 107bcfe: Fixed JSON parsing in memory component to prevent crashes when encountering strings that start with '[' or '{' but are not valid JSON
1810
+ - 9bfa12b: Accept ID on step config
1811
+ - 515ebfb: Fix compound subscriber bug
1812
+ - 5b4e19f: fix hanging and excessive workflow execution
1813
+ - dbbbf80: Added clickhouse storage
1814
+ - a0967a0: Added new "Memory Processor" feature to @mastra/core and @mastra/memory, allowing devs to modify Mastra Memory before it's sent to the LLM
1815
+ - fca3b21: fix server in mastra not to be mandatory
1816
+ - 88fa727: Added getWorkflowRuns for libsql, pg, clickhouse and upstash as well as added route getWorkflowRunsHandler
1817
+ - f37f535: Added variables to while and until loops
1818
+ - a3f0e90: Update storage initialization to ensure tables are present
1819
+ - 4d67826: Fix eval writes, remove id column
1820
+ - 6330967: Enable route timeout using server options
1821
+ - 8393832: Handle nested workflow view on workflow graph
1822
+ - 6330967: Add support for configuration of server port using Mastra instance
1823
+ - 99d43b9: Updated evaluate to include agent output
1824
+ - d7e08e8: createdAt needs to be nullable
1825
+ - febc8a6: Added dual tracing and fixed local tracing recursion
1826
+ - 7599d77: fix(deps): update ai sdk to ^4.2.2
1827
+ - 0118361: Add resourceId to memory metadata
1828
+ - 619c39d: AgentStep -> Agent as a workflow step (WIP)
1829
+ - cafae83: Changed error messages for vector mismatch with index
1830
+ - 8076ecf: Unify workflow watch/start response
1831
+ - 8df4a77: Fix if-else execution order
1832
+ - 304397c: Add support for custom api routes in mastra
1833
+
1834
+ ## 0.8.0-alpha.8
1835
+
1836
+ ### Patch Changes
1837
+
1838
+ - 8df4a77: Fix if-else execution order
1839
+
1840
+ ## 0.8.0-alpha.7
1841
+
1842
+ ### Patch Changes
1843
+
1844
+ - febc8a6: Added dual tracing and fixed local tracing recursion
1845
+
1846
+ ## 0.8.0-alpha.6
1847
+
1848
+ ### Patch Changes
1849
+
1850
+ - a3f0e90: Update storage initialization to ensure tables are present
1851
+
1852
+ ## 0.8.0-alpha.5
1853
+
1854
+ ### Patch Changes
1855
+
1856
+ - 93875ed: Improved the performance of Memory semantic recall by 2 to 3 times when using pg by making tweaks to @mastra/memory @mastra/core and @mastra/pg
1857
+
1858
+ ## 0.8.0-alpha.4
1859
+
1860
+ ### Patch Changes
1861
+
1862
+ - d7e08e8: createdAt needs to be nullable
1863
+
1864
+ ## 0.8.0-alpha.3
1865
+
1866
+ ### Patch Changes
1867
+
1868
+ - 5ae0180: Removed prefixed doc references
1869
+ - 9bfa12b: Accept ID on step config
1870
+ - 515ebfb: Fix compound subscriber bug
1871
+ - 88fa727: Added getWorkflowRuns for libsql, pg, clickhouse and upstash as well as added route getWorkflowRunsHandler
1872
+ - f37f535: Added variables to while and until loops
1873
+ - 4d67826: Fix eval writes, remove id column
1874
+ - 6330967: Enable route timeout using server options
1875
+ - 8393832: Handle nested workflow view on workflow graph
1876
+ - 6330967: Add support for configuration of server port using Mastra instance
1877
+
1878
+ ## 0.8.0-alpha.2
1879
+
1880
+ ### Patch Changes
1881
+
1882
+ - 56c31b7: Batch insert messages for libsql adapter
1883
+ - dbbbf80: Added clickhouse storage
1884
+ - 99d43b9: Updated evaluate to include agent output
1885
+
1886
+ ## 0.8.0-alpha.1
1887
+
1888
+ ### Minor Changes
1889
+
1890
+ - 619c39d: Added support for agents as steps
1891
+
1892
+ ### Patch Changes
1893
+
1894
+ - fe56be0: exclude \_\_primitive, getMemory, hasOwnMemory from traces since they create noisy traces
1895
+ - a0967a0: Added new "Memory Processor" feature to @mastra/core and @mastra/memory, allowing devs to modify Mastra Memory before it's sent to the LLM
1896
+ - fca3b21: fix server in mastra not to be mandatory
1897
+ - 0118361: Add resourceId to memory metadata
1898
+ - 619c39d: AgentStep -> Agent as a workflow step (WIP)
1899
+
1900
+ ## 0.7.1-alpha.0
1901
+
1902
+ ### Patch Changes
1903
+
1904
+ - 107bcfe: Fixed JSON parsing in memory component to prevent crashes when encountering strings that start with '[' or '{' but are not valid JSON
1905
+ - 5b4e19f: fix hanging and excessive workflow execution
1906
+ - 7599d77: fix(deps): update ai sdk to ^4.2.2
1907
+ - cafae83: Changed error messages for vector mismatch with index
1908
+ - 8076ecf: Unify workflow watch/start response
1909
+ - 304397c: Add support for custom api routes in mastra
1910
+
1911
+ ## 0.7.0
1912
+
1913
+ ### Minor Changes
1914
+
1915
+ - 1af25d5: Added nested workflows API
1916
+
1917
+ ### Patch Changes
1918
+
1919
+ - b4fbc59: Fixed an issue where sending CoreMessages to AI SDK would result in "Unsupported role: tool" errors
1920
+ - a838fde: Update memory.ts
1921
+ - a8bd4cf: Fixed JSON Schema generation for null types to prevent duplicate null entries in type arrays
1922
+ - 7a3eeb0: Fixed a memory issue when using useChat where new messages were formatted as ui messages, were mixed with stored core messages in memory, and a mixed list was sent to AI SDK, causing it to error
1923
+ - 0b54522: AgentNetwork logs
1924
+ - b3b34f5: Fix agent generate,stream returnType with experimental_output
1925
+ - a4686e8: Realtime event queue
1926
+ - 6530ad1: Correct agent onFinish interface
1927
+ - 27439ad: Updated the jsonSchemaPropertiesToTSTypes function to properly handle JSON Schema definitions where type can be an array of strings. Previously, the function only handled single string types, but according to the JSON Schema specification, type can be an array of possible types.
1928
+
1929
+ ## 0.7.0-alpha.3
1930
+
1931
+ ### Patch Changes
1932
+
1933
+ - b3b34f5: Fix agent generate,stream returnType with experimental_output
1934
+ - a4686e8: Realtime event queue
1935
+
1936
+ ## 0.7.0-alpha.2
1937
+
1938
+ ### Patch Changes
1939
+
1940
+ - a838fde: Update memory.ts
1941
+ - a8bd4cf: Fixed JSON Schema generation for null types to prevent duplicate null entries in type arrays
1942
+ - 7a3eeb0: Fixed a memory issue when using useChat where new messages were formatted as ui messages, were mixed with stored core messages in memory, and a mixed list was sent to AI SDK, causing it to error
1943
+ - 6530ad1: Correct agent onFinish interface
1944
+
1945
+ ## 0.7.0-alpha.1
1946
+
1947
+ ### Minor Changes
1948
+
1949
+ - 1af25d5: Added nested workflows API
1950
+
1951
+ ### Patch Changes
1952
+
1953
+ - 0b54522: AgentNetwork logs
1954
+ - 27439ad: Updated the jsonSchemaPropertiesToTSTypes function to properly handle JSON Schema definitions where type can be an array of strings. Previously, the function only handled single string types, but according to the JSON Schema specification, type can be an array of possible types.
1955
+
1956
+ ## 0.6.5-alpha.0
1957
+
1958
+ ### Patch Changes
1959
+
1960
+ - b4fbc59: Fixed an issue where sending CoreMessages to AI SDK would result in "Unsupported role: tool" errors
1961
+
1962
+ ## 0.6.4
1963
+
1964
+ ### Patch Changes
1965
+
1966
+ - 6794797: Check for eval values before inserting into storage
1967
+ - fb68a80: Inject mastra instance into llm class
1968
+ - b56a681: Update README and some tests for vector stores
1969
+ - 248cb07: Allow ai-sdk Message type for messages in agent generate and stream
1970
+ Fix sidebar horizontal overflow in playground
1971
+
1972
+ ## 0.6.4-alpha.1
1973
+
1974
+ ### Patch Changes
1975
+
1976
+ - 6794797: Check for eval values before inserting into storage
1977
+
1978
+ ## 0.6.4-alpha.0
1979
+
1980
+ ### Patch Changes
1981
+
1982
+ - fb68a80: Inject mastra instance into llm class
1983
+ - b56a681: Update README and some tests for vector stores
1984
+ - 248cb07: Allow ai-sdk Message type for messages in agent generate and stream
1985
+ Fix sidebar horizontal overflow in playground
1986
+
1987
+ ## 0.6.3
1988
+
1989
+ ### Patch Changes
1990
+
1991
+ - 404640e: AgentNetwork changeset
1992
+ - 3bce733: fix: agent.generate only get thread if there is threadID
1993
+
1994
+ ## 0.6.3-alpha.1
1995
+
1996
+ ### Patch Changes
1997
+
1998
+ - 3bce733: fix: agent.generate only get thread if there is threadID
1999
+
2000
+ ## 0.6.3-alpha.0
2001
+
2002
+ ### Patch Changes
2003
+
2004
+ - 404640e: AgentNetwork changeset
2005
+
2006
+ ## 0.6.2
2007
+
2008
+ ### Patch Changes
2009
+
2010
+ - beaf1c2: createTool type fixes
2011
+ - 3084e13: More parallel memory operations
2012
+
2013
+ ## 0.6.2-alpha.0
2014
+
2015
+ ### Patch Changes
2016
+
2017
+ - beaf1c2: createTool type fixes
2018
+ - 3084e13: More parallel memory operations
2019
+
2020
+ ## 0.6.1
2021
+
2022
+ ### Patch Changes
2023
+
2024
+ - fc2f89c: Insert static payload into inputData
2025
+ - dfbb131: Fix after method on multiple passes
2026
+ - f4854ee: Fix else branch execution when if-branch has loops
2027
+ - afaf73f: Add fix for vercel tools and optional instructions
2028
+ - 0850b4c: Watch and resume per run
2029
+ - 7bcfaee: Remove node_modules-path dir which calls \_\_dirname at the top level and breaks some esm runtimes
2030
+ - 44631b1: Fix after usage with skipped conditions on the awaited steps
2031
+ - 9116d70: Handle the different workflow methods in workflow graph
2032
+ - 6e559a0: Update Voice for realtime providers
2033
+ - 5f43505: feat: OpenAI realtime voice provider for speech to speech communication
2034
+ Update voice speaking event type
2035
+
2036
+ ## 0.6.1-alpha.2
2037
+
2038
+ ### Patch Changes
2039
+
2040
+ - fc2f89c: Insert static payload into inputData
2041
+ - dfbb131: Fix after method on multiple passes
2042
+ - 0850b4c: Watch and resume per run
2043
+ - 9116d70: Handle the different workflow methods in workflow graph
2044
+
2045
+ ## 0.6.1-alpha.1
2046
+
2047
+ ### Patch Changes
2048
+
2049
+ - f4854ee: Fix else branch execution when if-branch has loops
2050
+ - afaf73f: Add fix for vercel tools and optional instructions
2051
+ - 44631b1: Fix after usage with skipped conditions on the awaited steps
2052
+ - 6e559a0: Update Voice for realtime providers
2053
+ - 5f43505: feat: OpenAI realtime voice provider for speech to speech communication
2054
+ Update voice speaking event type
2055
+
2056
+ ## 0.6.1-alpha.0
2057
+
2058
+ ### Patch Changes
2059
+
2060
+ - 7bcfaee: Remove node_modules-path dir which calls \_\_dirname at the top level and breaks some esm runtimes
2061
+
2062
+ ## 0.6.0
2063
+
2064
+ ### Minor Changes
2065
+
2066
+ - 1c8cda4: Experimental .afterEvent() support. Fixed suspend/resume in first workflow or .after() branch step. Changed suspend metadata to be in context.resumeData instead of resumed step output.
2067
+ - 95b4144: Added server middleware to apply custom functionality in API endpoints like auth
2068
+
2069
+ ### Patch Changes
2070
+
2071
+ - 16b98d9: Reduce default step retry attempts
2072
+ - 3729dbd: Fixed a bug where useChat with client side tool calling and Memory would not work. Added docs for using Memory with useChat()
2073
+ - c2144f4: Enable dynamic import of default-storage to reduce runtime/bundle size when not using default storage
2074
+
2075
+ ## 0.6.0-alpha.1
2076
+
2077
+ ### Minor Changes
2078
+
2079
+ - 1c8cda4: Experimental .afterEvent() support. Fixed suspend/resume in first workflow or .after() branch step. Changed suspend metadata to be in context.resumeData instead of resumed step output.
2080
+ - 95b4144: Added server middleware to apply custom functionality in API endpoints like auth
2081
+
2082
+ ### Patch Changes
2083
+
2084
+ - 16b98d9: Reduce default step retry attempts
2085
+ - c2144f4: Enable dynamic import of default-storage to reduce runtime/bundle size when not using default storage
2086
+
2087
+ ## 0.5.1-alpha.0
2088
+
2089
+ ### Patch Changes
2090
+
2091
+ - 3729dbd: Fixed a bug where useChat with client side tool calling and Memory would not work. Added docs for using Memory with useChat()
2092
+
2093
+ ## 0.5.0
2094
+
2095
+ ### Minor Changes
2096
+
2097
+ - 59df7b6: Added a new option to use tool-calls for saving working memory: new Memory({ workingMemory: { enabled: true, use: "tool-call" } }). This is to support response methods like toDataStream where masking working memory chunks would be more resource intensive and complex.
2098
+ To support this `memory` is now passed into tool execute args.
2099
+ - dfbe4e9: Added new looping constructs with while/until and optional enum-based cyclical condition execution
2100
+ - 3764e71: Workflow trigger data should only accept object types
2101
+ - 02ffb7b: Added updateIndexById and deleteIndexById methods in the MastraVector inteface
2102
+ - 358f069: Experimental if-else branching in between steps
2103
+
2104
+ ### Patch Changes
2105
+
2106
+ - a910463: Improve typinges for getStepResult and workflow results
2107
+ - 22643eb: Replace MastraPrimitives with direct Mastra instance
2108
+ - 6feb23f: Fix for else condition with ref/query syntax
2109
+ - f2d6727: Support for compound `.after` syntax
2110
+ - 7a7a547: Fix telemetry getter in hono server
2111
+ - 29f3a82: Improve agent generate,stream returnTypes
2112
+ - 3d0e290: Fixed an issue where messages that were numbers weren't being stored as strings. Fixed incorrect array access when retrieving memory messages
2113
+ - e9fbac5: Update Vercel tools to have id and update deployer
2114
+ - 301e4ee: Fix log level showing number in core logger
2115
+ - ee667a2: Fixed a serialization bug for thread IDs and dates in memory
2116
+ - dab255b: Fixed bug where using an in memory libsql db (config.url = ":memory:) for memory would throw errors about missing tables
2117
+ - 1e8bcbc: Fix suspend types
2118
+ - f6678e4: Fixed an issue where we were using a non-windows-friendly absolute path check for libsql file urls
2119
+ - 9e81f35: Fix query filter for vector search and rerank
2120
+ - c93798b: Added MastraLanguageModel which extends LanguageModelV1
2121
+ - a85ab24: make execute optional for create tool
2122
+ - dbd9f2d: Handle different condition types on workflow graph
2123
+ - 59df7b6: Keep default memory db in .mastra/mastra.db, not .mastra/output/memory.db for consistency
2124
+ - caefaa2: Added optional chaining to a memory function call that may not exist
2125
+ - c151ae6: Fixed an issue where models that don't support structured output would error when generating a thread title. Added an option to disable thread title llm generation `new Memory({ threads: { generateTitle: false }})`
2126
+ - 52e0418: Split up action types between tools and workflows
2127
+ - d79aedf: Fix import/require paths in these package.json
2128
+ - 03236ec: Added GRPC Exporter for Laminar and updated dodcs for Observability Providers
2129
+ - df982db: Updated Agent tool input to accept vercel tool format
2130
+ - a171b37: Better retry mechanisms
2131
+ - 506f1d5: Properly serialize any date object when inserting into libsql
2132
+ - 0461849: Fixed a bug where mastra.db file location was inconsistently created when running mastra dev vs running a file directly (tsx src/index.ts for ex)
2133
+ - 2259379: Add documentation for workflow looping APIs
2134
+ - aeb5e36: Adds default schema for tool when not provided
2135
+ - f2301de: Added the ability to ensure the accessed thread in memory.query() is for the right resource id. ex memory.query({ threadId, resourceId }). If the resourceId doesn't own the thread it will throw an error.
2136
+ - fd4a1d7: Update cjs bundling to make sure files are split
2137
+ - c139344: When converting JSON schemas to Zod schemas, we were sometimes marking optional fields as nullable instead, making them required with a null value, even if the schema didn't mark them as required
2138
+
2139
+ ## 0.5.0-alpha.12
2140
+
2141
+ ### Patch Changes
2142
+
2143
+ - a85ab24: make execute optional for create tool
2144
+
2145
+ ## 0.5.0-alpha.11
2146
+
2147
+ ### Patch Changes
2148
+
2149
+ - 7a7a547: Fix telemetry getter in hono server
2150
+ - c93798b: Added MastraLanguageModel which extends LanguageModelV1
2151
+ - dbd9f2d: Handle different condition types on workflow graph
2152
+ - a171b37: Better retry mechanisms
2153
+ - fd4a1d7: Update cjs bundling to make sure files are split
2154
+
2155
+ ## 0.5.0-alpha.10
2156
+
2157
+ ### Patch Changes
2158
+
2159
+ - a910463: Improve typinges for getStepResult and workflow results
2160
+
2161
+ ## 0.5.0-alpha.9
2162
+
2163
+ ### Patch Changes
2164
+
2165
+ - e9fbac5: Update Vercel tools to have id and update deployer
2166
+ - 1e8bcbc: Fix suspend types
2167
+ - aeb5e36: Adds default schema for tool when not provided
2168
+ - f2301de: Added the ability to ensure the accessed thread in memory.query() is for the right resource id. ex memory.query({ threadId, resourceId }). If the resourceId doesn't own the thread it will throw an error.
2169
+
2170
+ ## 0.5.0-alpha.8
2171
+
2172
+ ### Patch Changes
2173
+
2174
+ - 506f1d5: Properly serialize any date object when inserting into libsql
2175
+
2176
+ ## 0.5.0-alpha.7
2177
+
2178
+ ### Patch Changes
2179
+
2180
+ - ee667a2: Fixed a serialization bug for thread IDs and dates in memory
2181
+
2182
+ ## 0.5.0-alpha.6
2183
+
2184
+ ### Patch Changes
2185
+
2186
+ - f6678e4: Fixed an issue where we were using a non-windows-friendly absolute path check for libsql file urls
2187
+
2188
+ ## 0.5.0-alpha.5
2189
+
2190
+ ### Minor Changes
2191
+
2192
+ - dfbe4e9: Added new looping constructs with while/until and optional enum-based cyclical condition execution
2193
+ - 3764e71: Workflow trigger data should only accept object types
2194
+ - 358f069: Experimental if-else branching in between steps
2195
+
2196
+ ### Patch Changes
2197
+
2198
+ - 22643eb: Replace MastraPrimitives with direct Mastra instance
2199
+ - 6feb23f: Fix for else condition with ref/query syntax
2200
+ - f2d6727: Support for compound `.after` syntax
2201
+ - 301e4ee: Fix log level showing number in core logger
2202
+ - 9e81f35: Fix query filter for vector search and rerank
2203
+ - caefaa2: Added optional chaining to a memory function call that may not exist
2204
+ - c151ae6: Fixed an issue where models that don't support structured output would error when generating a thread title. Added an option to disable thread title llm generation `new Memory({ threads: { generateTitle: false }})`
2205
+ - 52e0418: Split up action types between tools and workflows
2206
+ - 03236ec: Added GRPC Exporter for Laminar and updated dodcs for Observability Providers
2207
+ - df982db: Updated Agent tool input to accept vercel tool format
2208
+ - 0461849: Fixed a bug where mastra.db file location was inconsistently created when running mastra dev vs running a file directly (tsx src/index.ts for ex)
2209
+ - 2259379: Add documentation for workflow looping APIs
2210
+
2211
+ ## 0.5.0-alpha.4
2212
+
2213
+ ### Patch Changes
2214
+
2215
+ - d79aedf: Fix import/require paths in these package.json
2216
+
2217
+ ## 0.5.0-alpha.3
2218
+
2219
+ ### Patch Changes
2220
+
2221
+ - 3d0e290: Fixed an issue where messages that were numbers weren't being stored as strings. Fixed incorrect array access when retrieving memory messages
2222
+
2223
+ ## 0.5.0-alpha.2
2224
+
2225
+ ### Minor Changes
2226
+
2227
+ - 02ffb7b: Added updateIndexById and deleteIndexById methods in the MastraVector inteface
2228
+
2229
+ ## 0.5.0-alpha.1
2230
+
2231
+ ### Patch Changes
2232
+
2233
+ - dab255b: Fixed bug where using an in memory libsql db (config.url = ":memory:) for memory would throw errors about missing tables
2234
+
2235
+ ## 0.5.0-alpha.0
2236
+
2237
+ ### Minor Changes
2238
+
2239
+ - 59df7b6: Added a new option to use tool-calls for saving working memory: new Memory({ workingMemory: { enabled: true, use: "tool-call" } }). This is to support response methods like toDataStream where masking working memory chunks would be more resource intensive and complex.
2240
+ To support this `memory` is now passed into tool execute args.
2241
+
2242
+ ### Patch Changes
2243
+
2244
+ - 29f3a82: Improve agent generate,stream returnTypes
2245
+ - 59df7b6: Keep default memory db in .mastra/mastra.db, not .mastra/output/memory.db for consistency
2246
+ - c139344: When converting JSON schemas to Zod schemas, we were sometimes marking optional fields as nullable instead, making them required with a null value, even if the schema didn't mark them as required
2247
+
2248
+ ## 0.4.4
2249
+
2250
+ ### Patch Changes
2251
+
2252
+ - 1da20e7: Update typechecks for positional args
2253
+
2254
+ ## 0.4.4-alpha.0
2255
+
2256
+ ### Patch Changes
2257
+
2258
+ - 1da20e7: Update typechecks for positional args
2259
+
2260
+ ## 0.4.3
2261
+
2262
+ ### Patch Changes
2263
+
2264
+ - 0d185b1: Ensure proper message sort order for tool calls and results when using Memory semanticRecall feature
2265
+ - ed55f1d: Fixes to watch payload in workloads with nested branching
2266
+ - 06aa827: add option for specifying telemetry settings at generation time
2267
+ - 0fd78ac: Update vector store functions to use object params
2268
+ - 2512a93: Support all aisdk options for agent stream,generate
2269
+ - e62de74: Fix optional tool llm
2270
+ execute
2271
+ - 0d25b75: Add all agent stream,generate option to cliend-js sdk
2272
+ - fd14a3f: Updating filter location from @mastra/core/filter to @mastra/core/vector/filter
2273
+ - 8d13b14: Fixes early exits in workflows with branching
2274
+ - 3f369a2: A better async/await based interface for suspend/resume tracking
2275
+ - 3ee4831: Fixed agent.generate() so it properly infers the return type based on output: schema | string and experimental_output: schema
2276
+ - 4d4e1e1: Updated vector tests and pinecone
2277
+ - bb4f447: Add support for commonjs
2278
+ - 108793c: Throw error when resourceId is not provided but Memory is configured and a threadId was passed
2279
+ - 5f28f44: Updated Chroma Vector to allow for document storage
2280
+ - dabecf4: Pass threadId and resourceId into tool execute functions so that tools are able to query memory
2281
+
2282
+ ## 0.4.3-alpha.4
2283
+
2284
+ ### Patch Changes
2285
+
2286
+ - dabecf4: Pass threadId and resourceId into tool execute functions so that tools are able to query memory
2287
+
2288
+ ## 0.4.3-alpha.3
2289
+
2290
+ ### Patch Changes
2291
+
2292
+ - 0fd78ac: Update vector store functions to use object params
2293
+ - 0d25b75: Add all agent stream,generate option to cliend-js sdk
2294
+ - fd14a3f: Updating filter location from @mastra/core/filter to @mastra/core/vector/filter
2295
+ - 3f369a2: A better async/await based interface for suspend/resume tracking
2296
+ - 4d4e1e1: Updated vector tests and pinecone
2297
+ - bb4f447: Add support for commonjs
2298
+
2299
+ ## 0.4.3-alpha.2
2300
+
2301
+ ### Patch Changes
2302
+
2303
+ - 2512a93: Support all aisdk options for agent stream,generate
2304
+ - e62de74: Fix optional tool llm
2305
+ execute
2306
+
2307
+ ## 0.4.3-alpha.1
2308
+
2309
+ ### Patch Changes
2310
+
2311
+ - 0d185b1: Ensure proper message sort order for tool calls and results when using Memory semanticRecall feature
2312
+ - ed55f1d: Fixes to watch payload in workloads with nested branching
2313
+ - 8d13b14: Fixes early exits in workflows with branching
2314
+ - 3ee4831: Fixed agent.generate() so it properly infers the return type based on output: schema | string and experimental_output: schema
2315
+ - 108793c: Throw error when resourceId is not provided but Memory is configured and a threadId was passed
2316
+ - 5f28f44: Updated Chroma Vector to allow for document storage
2317
+
2318
+ ## 0.4.3-alpha.0
2319
+
2320
+ ### Patch Changes
2321
+
2322
+ - 06aa827: add option for specifying telemetry settings at generation time
2323
+
2324
+ ## 0.4.2
2325
+
2326
+ ### Patch Changes
2327
+
2328
+ - 7fceae1: Removed system prompt with todays date since it can interfere with input token caching. Also removed a memory system prompt that refered to date ranges - we no longer use date ranges for memory so this was removed
2329
+ - 8d94c3e: Optional tool execute
2330
+ - 99dcdb5: Inject primitives into condition function, and renames getStepPayload to getStepResult.
2331
+ - 6cb63e0: Experimental output support
2332
+ - f626fbb: add stt and tts capabilities on agent
2333
+ - e752340: Move storage/vector libSQL to own files so they do not get imported when not using bundlers.
2334
+ - eb91535: Correct typo in LanguageModel-related
2335
+
2336
+ ## 0.4.2-alpha.2
2337
+
2338
+ ### Patch Changes
2339
+
2340
+ - 8d94c3e: Optional tool execute
2341
+ - 99dcdb5: Inject primitives into condition function, and renames getStepPayload to getStepResult.
2342
+ - e752340: Move storage/vector libSQL to own files so they do not get imported when not using bundlers.
2343
+ - eb91535: Correct typo in LanguageModel-related
2344
+
2345
+ ## 0.4.2-alpha.1
2346
+
2347
+ ### Patch Changes
2348
+
2349
+ - 6cb63e0: Experimental output support
2350
+
2351
+ ## 0.4.2-alpha.0
2352
+
2353
+ ### Patch Changes
2354
+
2355
+ - 7fceae1: Removed system prompt with todays date since it can interfere with input token caching. Also removed a memory system prompt that refered to date ranges - we no longer use date ranges for memory so this was removed
2356
+ - f626fbb: add stt and tts capabilities on agent
2357
+
2358
+ ## 0.4.1
2359
+
2360
+ ### Patch Changes
2361
+
2362
+ - ce44b9b: Fixed a bug where embeddings were being created for memory even when semanticRecall was turned off
2363
+ - 967da43: Logger, transport fixes
2364
+ - b405f08: add stt and tts capabilities on agent
2365
+
2366
+ ## 0.4.0
2367
+
2368
+ ### Minor Changes
2369
+
2370
+ - 2fc618f: Add MastraVoice class
2371
+
2372
+ ### Patch Changes
2373
+
2374
+ - fe0fd01: Fixed a bug where masked tags don't work when a chunk includes other text (ex "o <start_tag" or "tag> w") in the maskStreamTags() util
2375
+
2376
+ ## 0.4.0-alpha.1
2377
+
2378
+ ### Patch Changes
2379
+
2380
+ - fe0fd01: Fixed a bug where masked tags don't work when a chunk includes other text (ex "o <start_tag" or "tag> w") in the maskStreamTags() util
2381
+
2382
+ ## 0.4.0-alpha.0
2383
+
2384
+ ### Minor Changes
2385
+
2386
+ - 2fc618f: Add MastraVoice class
2387
+
2388
+ ## 0.3.0
2389
+
2390
+ ### Minor Changes
2391
+
2392
+ - f205ede: Memory can no longer be added to new Mastra(), only to new Agent() - this is for simplicity as each agent will typically need its own memory settings
2393
+
2394
+ ## 0.2.1
2395
+
2396
+ ### Patch Changes
2397
+
2398
+ - d59f1a8: Added example docs for evals and export metricJudge
2399
+ - 91ef439: Add eslint and ran autofix
2400
+ - 4a25be4: Fixed race condition when multiple storage methods attempt to initialize the db at the same time
2401
+ - bf2e88f: Fix treeshake bug
2402
+ - 2f0d707: Fix wrong usage of peerdep of AI pkg
2403
+ - aac1667: Improve treeshaking of core and output
2404
+
2405
+ ## 0.2.1-alpha.0
2406
+
2407
+ ### Patch Changes
2408
+
2409
+ - d59f1a8: Added example docs for evals and export metricJudge
2410
+ - 91ef439: Add eslint and ran autofix
2411
+ - 4a25be4: Fixed race condition when multiple storage methods attempt to initialize the db at the same time
2412
+ - bf2e88f: Fix treeshake bug
2413
+ - 2f0d707: Fix wrong usage of peerdep of AI pkg
2414
+ - aac1667: Improve treeshaking of core and output
2415
+
2416
+ ## 0.2.0
2417
+
2418
+ ### Minor Changes
2419
+
2420
+ - 4d4f6b6: Update deployer
2421
+ - 30322ce: Added new Memory API for managed agent memory via MastraStorage and MastraVector classes
2422
+ - d7d465a: Breaking change for Memory: embeddings: {} has been replaced with embedder: new OpenAIEmbedder() (or whichever embedder you want - check the docs)
2423
+ - 5285356: Renamed MastraLibSQLStorage and MastraLibSQLVector to DefaultStorage and DefaultVectorDB. I left the old export names so that it wont break anyones projects but all docs now show the new names
2424
+ - 74b3078: Reduce verbosity in workflows API
2425
+ - 8b416d9: Breaking changes
2426
+ - 16e5b04: Moved @mastra/vector-libsql into @mastra/core/vector/libsql
2427
+ - 8769a62: Split core into seperate entry fils
2428
+
2429
+ ### Patch Changes
2430
+
2431
+ - f537e33: feat: add default logger
2432
+ - 6f2c0f5: Prevent telemetry proxy from converting sync methods to async
2433
+ - e4d4ede: Better setLogger()
2434
+ - 0be7181: Fix forward version
2435
+ - dd6d87f: Update Agent and LLM config to accept temperature setting
2436
+ - 9029796: add more logs to agent for debugging
2437
+ - 6fa4bd2: New LLM primitive, OpenAI, AmazonBedrock
2438
+ - f031a1f: expose embed from rag, and refactor embed
2439
+ - 8151f44: Added \_\_registerPrimitives to model.ts
2440
+ - d7d465a: Embedding api
2441
+ - 73d112c: Core and deployer fixes
2442
+ - 592e3cf: Add custom rag tools, add vector retrieval, and update docs
2443
+ - 9d1796d: Fix storage and eval serialization on api
2444
+ - e897f1c: Eval change
2445
+ - 4a54c82: Fix dane labelling functionality
2446
+ - 3967e69: Added GraphRAG implementation and updated docs
2447
+ - 8ae2bbc: Dane publishing
2448
+ - e9d1b47: Rename Memory options historySearch to semanticRecall, rename embeddingOptions to embedding
2449
+ - 016493a: Deprecate metrics in favor of evals
2450
+ - bc40916: Pass mastra instance directly into actions allowing access to all registered primitives
2451
+ - 93a3719: Mastra prompt template engine
2452
+ - 7d83b92: Create default storage and move evals towards it
2453
+ - 9fb3039: Storage
2454
+ - d5e12de: optional mastra config object
2455
+ - e1dd94a: update the api for embeddings
2456
+ - 07c069d: Add dotenv as dependency
2457
+ - 5cdfb88: add getWorkflows method to core, add runId to workflow logs, update workflow starter file, add workflows page with table and workflow page with info, endpoints and logs
2458
+ - 837a288: MAJOR Revamp of tools, workflows, syncs.
2459
+ - 685108a: Remove syncs and excess rag
2460
+ - c8ff2f5: Fixed passing CoreMessages to stream/generate where the role is not user. Previously all messages would be rewritten to have role: "user"
2461
+ - 5fdc87c: Update evals storage in attachListeners
2462
+ - ae7bf94: Fix loggers messing up deploys
2463
+ - 8e7814f: Add payload getter on machine context
2464
+ - 66a03ec: Removed an extra llm call that was needed for the old Memory API but is no longer needed
2465
+ - 7d87a15: generate command in agent, and support array of message strings
2466
+ - b97ca96: Tracing into default storage
2467
+ - 23dcb23: Redeploy core
2468
+ - 033eda6: More fixes for refactor
2469
+ - 8105fae: Split embed into embed and embedMany to handle different return types
2470
+ - e097800: TTS in core
2471
+ - 1944807: Unified logger and major step in better logs
2472
+ - 1874f40: Added re ranking tool to RAG
2473
+ - 685108a: Removing mastra syncs
2474
+ - f7d1131: Improved types when missing inputSchema
2475
+ - 79acad0: Better type safety on trigger step
2476
+ - 7a19083: Updates to the LLM class
2477
+ - 382f4dc: move telemetry init to instrumentation.mjs file in build directory
2478
+ - 1ebd071: Add more embedding models
2479
+ - 0b74006: Workflow updates
2480
+ - 2f17a5f: Added filter translator and tests for Qdrant
2481
+ - f368477: Added evals package and added evals in core
2482
+ - 7892533: Updated test evals to use Mastra Storage
2483
+ - 9c10484: update all packages
2484
+ - b726bf5: Fix agent memory int.
2485
+ - 70dabd9: Fix broken publish
2486
+ - 21fe536: add keyword tags for packages and update readmes
2487
+ - 176bc42: Added runId and proper parent spans to workflow tracing
2488
+ - 401a4d9: Add simple conditions test
2489
+ - 2e099d2: Allow trigger passed in to `then` step
2490
+ - 0b826f6: Allow agents to use ZodSchemas in structuredOutput
2491
+ - d68b532: Updated debug logs
2492
+ - 75bf3f0: remove context bug in agent tool execution, update style for mastra dev rendered pages
2493
+ - e6d8055: Added Mastra Storage to add and query live evals
2494
+ - e2e76de: Anthropic model added to new primitive structure
2495
+ - ccbc581: Updated operator validation and handling for all vector stores
2496
+ - 5950de5: Added update instructions API
2497
+ - fe3dcb0: Add fastembed import error handling
2498
+ - 78eec7c: Started implementation on Unified Filter API for several vector stores.
2499
+ - a8a459a: Updated Evals table UI
2500
+ - 0be7181: Add perplexity models
2501
+ - 7b87567: Propagate setLogger calls to more places
2502
+ - b524c22: Package upgrades
2503
+ - df843d3: Fixed libsql db relative file paths so they're always outside the .mastra directory. If they're inside .mastra they will be deleted when code is re-bundled
2504
+ - 4534e77: Fix fastembed imports in mastra cloud for default embedder
2505
+ - d6d8159: Workflow graph diagram
2506
+ - 0bd142c: Fixes learned from docs
2507
+ - 9625602: Use mastra core splitted bundles in other packages
2508
+ - 72d1990: Updated evals table schema
2509
+ - f6ba259: simplify generate api
2510
+ - 2712098: add getAgents method to core and route to cli dev, add homepage interface to cli
2511
+ - eedb829: Better types, and correct payload resolution
2512
+ - cb290ee: Reworked the Memory public API to have more intuitive and simple property names
2513
+ - b4d7416: Added the ability to pass a configured Memory class instance directly to new Agent instances instead of passing memory to Mastra
2514
+ - e608d8c: Export CoreMessage Types from ai sdk
2515
+ - 06b2c0a: Update summarization prompt and fix eval input
2516
+ - 002d6d8: add memory to playground agent
2517
+ - e448a26: Correctly pass down runId to called tools
2518
+ - fd494a3: TTS module
2519
+ - dc90663: Fix issues in packages
2520
+ - c872875: update createMultiLogger to combineLogger
2521
+ - 3c4488b: Fix context not passed in agent tool execution
2522
+ - a7b016d: Added export for MockMastraEngine from @mastra/core
2523
+ - fd75f3c: Added storage, vector, embedder setters to the base MastraMemory class
2524
+ - 7f24c29: Add Chroma Filter translator and updated vector store tests
2525
+ - 2017553: Added fallback title when calling createThread() with no title - this is needed as storage db schemas mark title as non-null
2526
+ - a10b7a3: Implemented new filtering for vectorQueryTool and updated docs
2527
+ - cf6d825: Fixed a bug where 0 values in memory configs were falling back to default val. Removed a noisy log. Removed a deprecated option
2528
+ - 963c15a: Add new toolset primitive and implementation for composio
2529
+ - 7365b6c: More models
2530
+ - 5ee67d3: make trace name configurable for telemetry exporter
2531
+ - d38f7a6: clean up old methods in agent
2532
+ - 38b7f66: Update deployer logic
2533
+ - 2fa7f53: add more logs to workflow, only log failed workflow if all steps fail, animate workflow diagram edges
2534
+ - 1420ae2: Fix storage logger
2535
+ - f6da688: update agents/:agentId page in dev to show agent details and endpoints, add getTools to agent
2536
+ - 3700be1: Added helpful error when using vector with Memory class - error now contains embedding option example
2537
+ - 9ade36e: Changed measure for evals, added endpoints, attached metrics to agent, added ui for evals in playground, and updated docs
2538
+ - 10870bc: Added a default vector db (libsql) and embedder (fastembed) so that new Memory() can be initialized with zero config
2539
+ - 2b01511: Update CONSOLE logger to store logs and return logs, add logs to dev agent page
2540
+ - a870123: Added local embedder class that uses fastembed-js, a Typescript/NodeJS implementation of @Qdrant/fastembed
2541
+ - ccf115c: Fixed incomplete tool call errors when including memory message history in context
2542
+ - 04434b6: Create separate logger file
2543
+ - 5811de6: Updates spec-writer example to use new workflows constructs. Small improvements to workflow internals. Switch transformer tokenizer for js compatible one.
2544
+ - 9f3ab05: pass custom telemetry exporter
2545
+ - 66a5392: batchInsert needs init. Use private version for internal calls
2546
+ - 4b1ce2c: Update Google model support in documentation and type definitions to include new Gemini versions
2547
+ - 14064f2: Deployer abstract class
2548
+ - f5dfa20: only add logger if there is a logger
2549
+ - 327ece7: Updates for ts versions
2550
+ - da2e8d3: Export EmbedManyResult and EmbedResult from ai sdk and update docs
2551
+ - 95a4697: Fixed trace method for telemetry
2552
+ - d5fccfb: expose model function
2553
+ - 3427b95: Updated docs to include intermediate rag examples (metadata filtering, query filters, etc)
2554
+ - 538a136: Added Simple Condition for workflows, updated /api/workflows/{workflowId}/execute endpoint and docs
2555
+ - e66643a: Add o1 models
2556
+ - b5393f1: New example: Dane and many fixes to make it work
2557
+ - d2cd535: configure dotenv in core
2558
+ - c2dd6b5: This set of changes introduces a new .step API for subscribing to step executions for running other step chains. It also improves step types, and enables the ability to create a cyclic step chain.
2559
+ - 67637ba: Fixed storage bugs related to the new Memory API
2560
+ - 836f4e3: Fixed some issues with memory, added Upstash as a memory provider. Silenced dev logs in core
2561
+ - 5ee2e78: Update core for Alpha3 release
2562
+ - cd02c56: Implement a new and improved API for workflows.
2563
+ - 01502b0: fix thread title containing unnecessary text and removed unnecessary logs in memory
2564
+ - d9c8dd0: Logger changes for default transports
2565
+ - 9fb59d6: changeset
2566
+ - a9345f9: Fixed tsc build for core types
2567
+ - 99f1847: Clean up logs
2568
+ - 04f3171: More providers
2569
+ - d5ec619: Remove promptTemplate from core
2570
+ - 27275c9: Added new short term "working" memory for agents. Also added a "maskStreamTags" helper to assist in hiding working memory xml blocks in streamed responses
2571
+ - ae7bf94: Changeset
2572
+ - 4f1d1a1: Enforce types ann cleanup package.json
2573
+ - ee4de15: Dane fixes
2574
+ - 202d404: Added instructions when generating evals
2575
+ - a221426: Simplify workflows watch API
2576
+
2577
+ ## 0.2.0-alpha.110
2578
+
2579
+ ### Patch Changes
2580
+
2581
+ - 016493a: Deprecate metrics in favor of evals
2582
+ - 382f4dc: move telemetry init to instrumentation.mjs file in build directory
2583
+ - 176bc42: Added runId and proper parent spans to workflow tracing
2584
+ - d68b532: Updated debug logs
2585
+ - fe3dcb0: Add fastembed import error handling
2586
+ - e448a26: Correctly pass down runId to called tools
2587
+ - fd75f3c: Added storage, vector, embedder setters to the base MastraMemory class
2588
+ - ccf115c: Fixed incomplete tool call errors when including memory message history in context
2589
+ - a221426: Simplify workflows watch API
2590
+
2591
+ ## 0.2.0-alpha.109
2592
+
2593
+ ### Patch Changes
2594
+
2595
+ - d5fccfb: expose model function
2596
+
2597
+ ## 0.2.0-alpha.108
2598
+
2599
+ ### Patch Changes
2600
+
2601
+ - 5ee67d3: make trace name configurable for telemetry exporter
2602
+ - 95a4697: Fixed trace method for telemetry
2603
+
2604
+ ## 0.2.0-alpha.107
2605
+
2606
+ ### Patch Changes
2607
+
2608
+ - 66a5392: batchInsert needs init. Use private version for internal calls
2609
+
2610
+ ## 0.2.0-alpha.106
2611
+
2612
+ ### Patch Changes
2613
+
2614
+ - 6f2c0f5: Prevent telemetry proxy from converting sync methods to async
2615
+ - a8a459a: Updated Evals table UI
2616
+
2617
+ ## 0.2.0-alpha.105
2618
+
2619
+ ### Patch Changes
2620
+
2621
+ - 1420ae2: Fix storage logger
2622
+ - 99f1847: Clean up logs
2623
+
2624
+ ## 0.2.0-alpha.104
2625
+
2626
+ ### Patch Changes
2627
+
2628
+ - 5fdc87c: Update evals storage in attachListeners
2629
+ - b97ca96: Tracing into default storage
2630
+ - 72d1990: Updated evals table schema
2631
+ - cf6d825: Fixed a bug where 0 values in memory configs were falling back to default val. Removed a noisy log. Removed a deprecated option
2632
+ - 10870bc: Added a default vector db (libsql) and embedder (fastembed) so that new Memory() can be initialized with zero config
2633
+
2634
+ ## 0.2.0-alpha.103
2635
+
2636
+ ### Patch Changes
2637
+
2638
+ - 4534e77: Fix fastembed imports in mastra cloud for default embedder
2639
+
2640
+ ## 0.2.0-alpha.102
2641
+
2642
+ ### Patch Changes
2643
+
2644
+ - a9345f9: Fixed tsc build for core types
2645
+
2646
+ ## 0.2.0-alpha.101
2647
+
2648
+ ### Patch Changes
2649
+
2650
+ - 66a03ec: Removed an extra llm call that was needed for the old Memory API but is no longer needed
2651
+ - 4f1d1a1: Enforce types ann cleanup package.json
2652
+
2653
+ ## 0.2.0-alpha.100
2654
+
2655
+ ### Patch Changes
2656
+
2657
+ - 9d1796d: Fix storage and eval serialization on api
2658
+
2659
+ ## 0.2.0-alpha.99
2660
+
2661
+ ### Patch Changes
2662
+
2663
+ - 7d83b92: Create default storage and move evals towards it
2664
+
2665
+ ## 0.2.0-alpha.98
2666
+
2667
+ ### Patch Changes
2668
+
2669
+ - 70dabd9: Fix broken publish
2670
+ - 202d404: Added instructions when generating evals
2671
+
2672
+ ## 0.2.0-alpha.97
2673
+
2674
+ ### Patch Changes
2675
+
2676
+ - 07c069d: Add dotenv as dependency
2677
+ - 7892533: Updated test evals to use Mastra Storage
2678
+ - e6d8055: Added Mastra Storage to add and query live evals
2679
+ - 5950de5: Added update instructions API
2680
+ - df843d3: Fixed libsql db relative file paths so they're always outside the .mastra directory. If they're inside .mastra they will be deleted when code is re-bundled
2681
+ - a870123: Added local embedder class that uses fastembed-js, a Typescript/NodeJS implementation of @Qdrant/fastembed
2682
+
2683
+ ## 0.2.0-alpha.96
2684
+
2685
+ ### Minor Changes
2686
+
2687
+ - 74b3078: Reduce verbosity in workflows API
2688
+
2689
+ ## 0.2.0-alpha.95
2690
+
2691
+ ### Patch Changes
2692
+
2693
+ - 9fb59d6: changeset
2694
+
2695
+ ## 0.2.0-alpha.94
2696
+
2697
+ ### Minor Changes
2698
+
2699
+ - 8b416d9: Breaking changes
2700
+
2701
+ ### Patch Changes
2702
+
2703
+ - 9c10484: update all packages
2704
+
2705
+ ## 0.2.0-alpha.93
2706
+
2707
+ ### Minor Changes
2708
+
2709
+ - 5285356: Renamed MastraLibSQLStorage and MastraLibSQLVector to DefaultStorage and DefaultVectorDB. I left the old export names so that it wont break anyones projects but all docs now show the new names
2710
+
2711
+ ## 0.2.0-alpha.92
2712
+
2713
+ ### Minor Changes
2714
+
2715
+ - 4d4f6b6: Update deployer
2716
+
2717
+ ## 0.2.0-alpha.91
2718
+
2719
+ ### Minor Changes
2720
+
2721
+ - d7d465a: Breaking change for Memory: embeddings: {} has been replaced with embedder: new OpenAIEmbedder() (or whichever embedder you want - check the docs)
2722
+ - 16e5b04: Moved @mastra/vector-libsql into @mastra/core/vector/libsql
2723
+
2724
+ ### Patch Changes
2725
+
2726
+ - d7d465a: Embedding api
2727
+ - 2017553: Added fallback title when calling createThread() with no title - this is needed as storage db schemas mark title as non-null
2728
+ - a10b7a3: Implemented new filtering for vectorQueryTool and updated docs
2729
+
2730
+ ## 0.2.0-alpha.90
2731
+
2732
+ ### Patch Changes
2733
+
2734
+ - 8151f44: Added \_\_registerPrimitives to model.ts
2735
+ - e897f1c: Eval change
2736
+ - 3700be1: Added helpful error when using vector with Memory class - error now contains embedding option example
2737
+
2738
+ ## 0.2.0-alpha.89
2739
+
2740
+ ### Patch Changes
2741
+
2742
+ - 27275c9: Added new short term "working" memory for agents. Also added a "maskStreamTags" helper to assist in hiding working memory xml blocks in streamed responses
2743
+
2744
+ ## 0.2.0-alpha.88
2745
+
2746
+ ### Patch Changes
2747
+
2748
+ - ccbc581: Updated operator validation and handling for all vector stores
2749
+
2750
+ ## 0.2.0-alpha.87
2751
+
2752
+ ### Patch Changes
2753
+
2754
+ - 7365b6c: More models
2755
+
2756
+ ## 0.2.0-alpha.86
2757
+
2758
+ ### Patch Changes
2759
+
2760
+ - 6fa4bd2: New LLM primitive, OpenAI, AmazonBedrock
2761
+ - e2e76de: Anthropic model added to new primitive structure
2762
+ - 7f24c29: Add Chroma Filter translator and updated vector store tests
2763
+ - 67637ba: Fixed storage bugs related to the new Memory API
2764
+ - 04f3171: More providers
2765
+
2766
+ ## 0.2.0-alpha.85
2767
+
2768
+ ### Patch Changes
2769
+
2770
+ - e9d1b47: Rename Memory options historySearch to semanticRecall, rename embeddingOptions to embedding
2771
+
2772
+ ## 0.2.0-alpha.84
2773
+
2774
+ ### Patch Changes
2775
+
2776
+ - 2f17a5f: Added filter translator and tests for Qdrant
2777
+ - cb290ee: Reworked the Memory public API to have more intuitive and simple property names
2778
+ - b4d7416: Added the ability to pass a configured Memory class instance directly to new Agent instances instead of passing memory to Mastra
2779
+ - 38b7f66: Update deployer logic
2780
+
2781
+ ## 0.2.0-alpha.83
2782
+
2783
+ ### Minor Changes
2784
+
2785
+ - 30322ce: Added new Memory API for managed agent memory via MastraStorage and MastraVector classes
2786
+ - 8769a62: Split core into seperate entry fils
2787
+
2788
+ ### Patch Changes
2789
+
2790
+ - 78eec7c: Started implementation on Unified Filter API for several vector stores.
2791
+ - 9625602: Use mastra core splitted bundles in other packages
2792
+
2793
+ ## 0.1.27-alpha.82
2794
+
2795
+ ### Patch Changes
2796
+
2797
+ - 73d112c: Core and deployer fixes
2798
+
2799
+ ## 0.1.27-alpha.81
2800
+
2801
+ ### Patch Changes
2802
+
2803
+ - 9fb3039: Storage
2804
+
2805
+ ## 0.1.27-alpha.80
2806
+
2807
+ ### Patch Changes
2808
+
2809
+ - 327ece7: Updates for ts versions
2810
+
2811
+ ## 0.1.27-alpha.79
2812
+
2813
+ ### Patch Changes
2814
+
2815
+ - 21fe536: add keyword tags for packages and update readmes
2816
+
2817
+ ## 0.1.27-alpha.78
2818
+
2819
+ ### Patch Changes
2820
+
2821
+ - 685108a: Remove syncs and excess rag
2822
+ - 685108a: Removing mastra syncs
2823
+
2824
+ ## 0.1.27-alpha.77
2825
+
2826
+ ### Patch Changes
2827
+
2828
+ - 8105fae: Split embed into embed and embedMany to handle different return types
2829
+
2830
+ ## 0.1.27-alpha.76
2831
+
2832
+ ### Patch Changes
2833
+
2834
+ - ae7bf94: Fix loggers messing up deploys
2835
+ - ae7bf94: Changeset
2836
+
2837
+ ## 0.1.27-alpha.75
2838
+
2839
+ ### Patch Changes
2840
+
2841
+ - 23dcb23: Redeploy core
2842
+
2843
+ ## 0.1.27-alpha.74
2844
+
2845
+ ### Patch Changes
2846
+
2847
+ - 7b87567: Propagate setLogger calls to more places
2848
+
2849
+ ## 0.1.27-alpha.73
2850
+
2851
+ ### Patch Changes
2852
+
2853
+ - 3427b95: Updated docs to include intermediate rag examples (metadata filtering, query filters, etc)
2854
+
2855
+ ## 0.1.27-alpha.72
2856
+
2857
+ ### Patch Changes
2858
+
2859
+ - e4d4ede: Better setLogger()
2860
+ - 06b2c0a: Update summarization prompt and fix eval input
2861
+
2862
+ ## 0.1.27-alpha.71
2863
+
2864
+ ### Patch Changes
2865
+
2866
+ - d9c8dd0: Logger changes for default transports
2867
+
2868
+ ## 0.1.27-alpha.70
2869
+
2870
+ ### Patch Changes
2871
+
2872
+ - dd6d87f: Update Agent and LLM config to accept temperature setting
2873
+ - 04434b6: Create separate logger file
2874
+
2875
+ ## 0.1.27-alpha.69
2876
+
2877
+ ### Patch Changes
2878
+
2879
+ - 1944807: Unified logger and major step in better logs
2880
+ - 9ade36e: Changed measure for evals, added endpoints, attached metrics to agent, added ui for evals in playground, and updated docs
2881
+
2882
+ ## 0.1.27-alpha.68
2883
+
2884
+ ### Patch Changes
2885
+
2886
+ - 0be7181: Fix forward version
2887
+ - 0be7181: Add perplexity models
2888
+
2889
+ ## 0.1.27-alpha.67
2890
+
2891
+ ### Patch Changes
2892
+
2893
+ - c8ff2f5: Fixed passing CoreMessages to stream/generate where the role is not user. Previously all messages would be rewritten to have role: "user"
2894
+
2895
+ ## 0.1.27-alpha.66
2896
+
2897
+ ### Patch Changes
2898
+
2899
+ - 14064f2: Deployer abstract class
2900
+
2901
+ ## 0.1.27-alpha.65
2902
+
2903
+ ### Patch Changes
2904
+
2905
+ - e66643a: Add o1 models
2906
+
2907
+ ## 0.1.27-alpha.64
2908
+
2909
+ ### Patch Changes
2910
+
2911
+ - f368477: Added evals package and added evals in core
2912
+ - d5ec619: Remove promptTemplate from core
2913
+
2914
+ ## 0.1.27-alpha.63
2915
+
2916
+ ### Patch Changes
2917
+
2918
+ - e097800: TTS in core
2919
+
2920
+ ## 0.1.27-alpha.62
2921
+
2922
+ ### Patch Changes
2923
+
2924
+ - 93a3719: Mastra prompt template engine
2925
+
2926
+ ## 0.1.27-alpha.61
2927
+
2928
+ ### Patch Changes
2929
+
2930
+ - dc90663: Fix issues in packages
2931
+
2932
+ ## 0.1.27-alpha.60
2933
+
2934
+ ### Patch Changes
2935
+
2936
+ - 3967e69: Added GraphRAG implementation and updated docs
2937
+
2938
+ ## 0.1.27-alpha.59
2939
+
2940
+ ### Patch Changes
2941
+
2942
+ - b524c22: Package upgrades
2943
+
2944
+ ## 0.1.27-alpha.58
2945
+
2946
+ ### Patch Changes
2947
+
2948
+ - 1874f40: Added re ranking tool to RAG
2949
+ - 4b1ce2c: Update Google model support in documentation and type definitions to include new Gemini versions
2950
+
2951
+ ## 0.1.27-alpha.57
2952
+
2953
+ ### Patch Changes
2954
+
2955
+ - fd494a3: TTS module
2956
+
2957
+ ## 0.1.27-alpha.56
2958
+
2959
+ ### Patch Changes
2960
+
2961
+ - 9f3ab05: pass custom telemetry exporter
2962
+
2963
+ ## 0.1.27-alpha.55
2964
+
2965
+ ### Patch Changes
2966
+
2967
+ - 592e3cf: Add custom rag tools, add vector retrieval, and update docs
2968
+ - 837a288: MAJOR Revamp of tools, workflows, syncs.
2969
+ - 0b74006: Workflow updates
2970
+
2971
+ ## 0.1.27-alpha.54
2972
+
2973
+ ### Patch Changes
2974
+
2975
+ - d2cd535: configure dotenv in core
2976
+
2977
+ ## 0.1.27-alpha.53
2978
+
2979
+ ### Patch Changes
2980
+
2981
+ - 8e7814f: Add payload getter on machine context
2982
+
2983
+ ## 0.1.27-alpha.52
2984
+
2985
+ ### Patch Changes
2986
+
2987
+ - eedb829: Better types, and correct payload resolution
2988
+
2989
+ ## 0.1.27-alpha.51
2990
+
2991
+ ### Patch Changes
2992
+
2993
+ - a7b016d: Added export for MockMastraEngine from @mastra/core
2994
+ - da2e8d3: Export EmbedManyResult and EmbedResult from ai sdk and update docs
2995
+ - 538a136: Added Simple Condition for workflows, updated /api/workflows/{workflowId}/execute endpoint and docs
2996
+
2997
+ ## 0.1.27-alpha.50
2998
+
2999
+ ### Patch Changes
3000
+
3001
+ - 401a4d9: Add simple conditions test
3002
+
3003
+ ## 0.1.27-alpha.49
3004
+
3005
+ ### Patch Changes
3006
+
3007
+ - 79acad0: Better type safety on trigger step
3008
+ - f5dfa20: only add logger if there is a logger
3009
+
3010
+ ## 0.1.27-alpha.48
3011
+
3012
+ ### Patch Changes
3013
+
3014
+ - b726bf5: Fix agent memory int.
3015
+
3016
+ ## 0.1.27-alpha.47
3017
+
3018
+ ### Patch Changes
3019
+
3020
+ - f6ba259: simplify generate api
3021
+
3022
+ ## 0.1.27-alpha.46
3023
+
3024
+ ### Patch Changes
3025
+
3026
+ - 8ae2bbc: Dane publishing
3027
+ - 0bd142c: Fixes learned from docs
3028
+ - ee4de15: Dane fixes
3029
+
3030
+ ## 0.1.27-alpha.45
3031
+
3032
+ ### Patch Changes
3033
+
3034
+ - e608d8c: Export CoreMessage Types from ai sdk
3035
+ - 002d6d8: add memory to playground agent
3036
+
3037
+ ## 0.1.27-alpha.44
3038
+
3039
+ ### Patch Changes
3040
+
3041
+ - 2fa7f53: add more logs to workflow, only log failed workflow if all steps fail, animate workflow diagram edges
3042
+
3043
+ ## 0.1.27-alpha.43
3044
+
3045
+ ### Patch Changes
3046
+
3047
+ - 2e099d2: Allow trigger passed in to `then` step
3048
+ - d6d8159: Workflow graph diagram
3049
+
3050
+ ## 0.1.27-alpha.42
3051
+
3052
+ ### Patch Changes
3053
+
3054
+ - 4a54c82: Fix dane labelling functionality
3055
+
3056
+ ## 0.1.27-alpha.41
3057
+
3058
+ ### Patch Changes
3059
+
3060
+ - 5cdfb88: add getWorkflows method to core, add runId to workflow logs, update workflow starter file, add workflows page with table and workflow page with info, endpoints and logs
3061
+
3062
+ ## 0.1.27-alpha.40
3063
+
3064
+ ### Patch Changes
3065
+
3066
+ - 9029796: add more logs to agent for debugging
3067
+
3068
+ ## 0.1.27-alpha.39
3069
+
3070
+ ### Patch Changes
3071
+
3072
+ - 2b01511: Update CONSOLE logger to store logs and return logs, add logs to dev agent page
3073
+
3074
+ ## 0.1.27-alpha.38
3075
+
3076
+ ### Patch Changes
3077
+
3078
+ - f031a1f: expose embed from rag, and refactor embed
3079
+
3080
+ ## 0.1.27-alpha.37
3081
+
3082
+ ### Patch Changes
3083
+
3084
+ - c872875: update createMultiLogger to combineLogger
3085
+ - f6da688: update agents/:agentId page in dev to show agent details and endpoints, add getTools to agent
3086
+ - b5393f1: New example: Dane and many fixes to make it work
3087
+
3088
+ ## 0.1.27-alpha.36
3089
+
3090
+ ### Patch Changes
3091
+
3092
+ - f537e33: feat: add default logger
3093
+ - bc40916: Pass mastra instance directly into actions allowing access to all registered primitives
3094
+ - f7d1131: Improved types when missing inputSchema
3095
+ - 75bf3f0: remove context bug in agent tool execution, update style for mastra dev rendered pages
3096
+ - 3c4488b: Fix context not passed in agent tool execution
3097
+ - d38f7a6: clean up old methods in agent
3098
+
3099
+ ## 0.1.27-alpha.35
3100
+
3101
+ ### Patch Changes
3102
+
3103
+ - 033eda6: More fixes for refactor
3104
+
3105
+ ## 0.1.27-alpha.34
3106
+
3107
+ ### Patch Changes
3108
+
3109
+ - 837a288: MAJOR Revamp of tools, workflows, syncs.
3110
+ - 5811de6: Updates spec-writer example to use new workflows constructs. Small improvements to workflow internals. Switch transformer tokenizer for js compatible one.
3111
+
3112
+ ## 0.1.27-alpha.33
3113
+
3114
+ ### Patch Changes
3115
+
3116
+ - e1dd94a: update the api for embeddings
3117
+
3118
+ ## 0.1.27-alpha.32
3119
+
3120
+ ### Patch Changes
3121
+
3122
+ - 2712098: add getAgents method to core and route to cli dev, add homepage interface to cli
3123
+
3124
+ ## 0.1.27-alpha.31
3125
+
3126
+ ### Patch Changes
3127
+
3128
+ - c2dd6b5: This set of changes introduces a new .step API for subscribing to step executions for running other step chains. It also improves step types, and enables the ability to create a cyclic step chain.
3129
+
3130
+ ## 0.1.27-alpha.30
3131
+
3132
+ ### Patch Changes
3133
+
3134
+ - 963c15a: Add new toolset primitive and implementation for composio
3135
+
3136
+ ## 0.1.27-alpha.29
3137
+
3138
+ ### Patch Changes
3139
+
3140
+ - 7d87a15: generate command in agent, and support array of message strings
3141
+
3142
+ ## 0.1.27-alpha.28
3143
+
3144
+ ### Patch Changes
3145
+
3146
+ - 1ebd071: Add more embedding models
3147
+
3148
+ ## 0.1.27-alpha.27
3149
+
3150
+ ### Patch Changes
3151
+
3152
+ - cd02c56: Implement a new and improved API for workflows.
3153
+
3154
+ ## 0.1.27-alpha.26
3155
+
3156
+ ### Patch Changes
3157
+
3158
+ - d5e12de: optional mastra config object
3159
+
3160
+ ## 0.1.27-alpha.25
3161
+
3162
+ ### Patch Changes
3163
+
3164
+ - 01502b0: fix thread title containing unnecessary text and removed unnecessary logs in memory
3165
+
3166
+ ## 0.1.27-alpha.24
3167
+
3168
+ ### Patch Changes
3169
+
3170
+ - 836f4e3: Fixed some issues with memory, added Upstash as a memory provider. Silenced dev logs in core
3171
+
3172
+ ## 0.1.27-alpha.23
3173
+
3174
+ ### Patch Changes
3175
+
3176
+ - 0b826f6: Allow agents to use ZodSchemas in structuredOutput
3177
+
3178
+ ## 0.1.27-alpha.22
3179
+
3180
+ ### Patch Changes
3181
+
3182
+ - 7a19083: Updates to the LLM class
3183
+
3184
+ ## 0.1.27-alpha.21
3185
+
3186
+ ### Patch Changes
3187
+
3188
+ - 5ee2e78: Update core for Alpha3 release