@mastra/longmemeval 0.0.0-bundle-recursion-20251030002519 → 0.0.0-bundle-studio-cloud-20251222034739

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.
package/CHANGELOG.md CHANGED
@@ -1,19 +1,365 @@
1
1
  # @mastra/longmemeval
2
2
 
3
- ## 0.0.0-bundle-recursion-20251030002519
3
+ ## 0.0.0-bundle-studio-cloud-20251222034739
4
4
 
5
5
  ### Major Changes
6
6
 
7
+ - Remove `getMessagesPaginated()` and add `perPage: false` support ([#9670](https://github.com/mastra-ai/mastra/pull/9670))
8
+
9
+ Removes deprecated `getMessagesPaginated()` method. The `listMessages()` API and score handlers now support `perPage: false` to fetch all records without pagination limits.
10
+
11
+ **Storage changes:**
12
+ - `StoragePagination.perPage` type changed from `number` to `number | false`
13
+ - All storage implementations support `perPage: false`:
14
+ - Memory: `listMessages()`
15
+ - Scores: `listScoresBySpan()`, `listScoresByRunId()`, `listScoresByExecutionId()`
16
+ - HTTP query parser accepts `"false"` string (e.g., `?perPage=false`)
17
+
18
+ **Memory changes:**
19
+ - `memory.query()` parameter type changed from `StorageGetMessagesArg` to `StorageListMessagesInput`
20
+ - Uses flat parameters (`page`, `perPage`, `include`, `filter`, `vectorSearchString`) instead of `selectBy` object
21
+
22
+ **Stricter validation:**
23
+ - `listMessages()` requires non-empty, non-whitespace `threadId` (throws error instead of returning empty results)
24
+
25
+ **Migration:**
26
+
27
+ ```typescript
28
+ // Storage/Memory: Replace getMessagesPaginated with listMessages
29
+ - storage.getMessagesPaginated({ threadId, selectBy: { pagination: { page: 0, perPage: 20 } } })
30
+ + storage.listMessages({ threadId, page: 0, perPage: 20 })
31
+ + storage.listMessages({ threadId, page: 0, perPage: false }) // Fetch all
32
+
33
+ // Memory: Replace selectBy with flat parameters
34
+ - memory.query({ threadId, selectBy: { last: 20, include: [...] } })
35
+ + memory.query({ threadId, perPage: 20, include: [...] })
36
+
37
+ // Client SDK
38
+ - thread.getMessagesPaginated({ selectBy: { pagination: { page: 0 } } })
39
+ + thread.listMessages({ page: 0, perPage: 20 })
40
+ ```
41
+
42
+ - **Removed `storage.getMessages()`** ([#9695](https://github.com/mastra-ai/mastra/pull/9695))
43
+
44
+ The `getMessages()` method has been removed from all storage implementations. Use `listMessages()` instead, which provides pagination support.
45
+
46
+ **Migration:**
47
+
48
+ ```typescript
49
+ // Before
50
+ const messages = await storage.getMessages({ threadId: 'thread-1' });
51
+
52
+ // After
53
+ const result = await storage.listMessages({
54
+ threadId: 'thread-1',
55
+ page: 0,
56
+ perPage: 50,
57
+ });
58
+ const messages = result.messages; // Access messages array
59
+ console.log(result.total); // Total count
60
+ console.log(result.hasMore); // Whether more pages exist
61
+ ```
62
+
63
+ **Message ordering default**
64
+
65
+ `listMessages()` defaults to ASC (oldest first) ordering by `createdAt`, matching the previous `getMessages()` behavior.
66
+
67
+ **To use DESC ordering (newest first):**
68
+
69
+ ```typescript
70
+ const result = await storage.listMessages({
71
+ threadId: 'thread-1',
72
+ orderBy: { field: 'createdAt', direction: 'DESC' },
73
+ });
74
+ ```
75
+
76
+ **Renamed `client.getThreadMessages()` → `client.listThreadMessages()`**
77
+
78
+ **Migration:**
79
+
80
+ ```typescript
81
+ // Before
82
+ const response = await client.getThreadMessages(threadId, { agentId });
83
+
84
+ // After
85
+ const response = await client.listThreadMessages(threadId, { agentId });
86
+ ```
87
+
88
+ The response format remains the same.
89
+
90
+ **Removed `StorageGetMessagesArg` type**
91
+
92
+ Use `StorageListMessagesInput` instead:
93
+
94
+ ```typescript
95
+ // Before
96
+ import type { StorageGetMessagesArg } from '@mastra/core';
97
+
98
+ // After
99
+ import type { StorageListMessagesInput } from '@mastra/core';
100
+ ```
101
+
102
+ - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
103
+
104
+ - Remove `getThreadsByResourceId` and `getThreadsByResourceIdPaginated` methods from storage interfaces in favor of `listThreadsByResourceId`. The new method uses `offset`/`limit` pagination and a nested `orderBy` object structure (`{ field, direction }`). ([#9536](https://github.com/mastra-ai/mastra/pull/9536))
105
+
106
+ - Removed old tracing code based on OpenTelemetry ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
107
+
108
+ - Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
109
+
110
+ - Remove legacy evals from Mastra ([#9491](https://github.com/mastra-ai/mastra/pull/9491))
111
+
112
+ ### Patch Changes
113
+
114
+ - Updated dependencies [[`ac0d2f4`](https://github.com/mastra-ai/mastra/commit/ac0d2f4ff8831f72c1c66c2be809706d17f65789), [`2319326`](https://github.com/mastra-ai/mastra/commit/2319326f8c64e503a09bbcf14be2dd65405445e0), [`dbd649b`](https://github.com/mastra-ai/mastra/commit/dbd649b2f9cff28fe5440a032bfb1fc977dc2e87), [`72df8ae`](https://github.com/mastra-ai/mastra/commit/72df8ae595584cdd7747d5c39ffaca45e4507227), [`39c9743`](https://github.com/mastra-ai/mastra/commit/39c97432d084294f8ba85fbf3ef28098ff21459e), [`fd6f38d`](https://github.com/mastra-ai/mastra/commit/fd6f38d604aba4206ff36e19a599672c3e1e1251), [`3076c67`](https://github.com/mastra-ai/mastra/commit/3076c6778b18988ae7d5c4c5c466366974b2d63f), [`497d80c`](https://github.com/mastra-ai/mastra/commit/497d80cd8e3164faaa7533794832bc783846cc6e), [`9198899`](https://github.com/mastra-ai/mastra/commit/91988995c427b185c33714b7f3be955367911324), [`35c5c85`](https://github.com/mastra-ai/mastra/commit/35c5c85cc0e1e609c5e386eeb6d1fae4b55d755a), [`f743dbb`](https://github.com/mastra-ai/mastra/commit/f743dbb8b40d1627b5c10c0e6fc154f4ebb6e394), [`21a15de`](https://github.com/mastra-ai/mastra/commit/21a15de369fe82aac26bb642ed7be73505475e8b), [`fb5a834`](https://github.com/mastra-ai/mastra/commit/fb5a834f8bd01e66384ac3e2a719641b14d40760), [`fec5129`](https://github.com/mastra-ai/mastra/commit/fec5129de7fc64423ea03661a56cef31dc747a0d), [`1a0d3fc`](https://github.com/mastra-ai/mastra/commit/1a0d3fc811482c9c376cdf79ee615c23bae9b2d6), [`85d7ee1`](https://github.com/mastra-ai/mastra/commit/85d7ee18ff4e14d625a8a30ec6656bb49804989b), [`c6c1092`](https://github.com/mastra-ai/mastra/commit/c6c1092f8fbf76109303f69e000e96fd1960c4ce), [`0491e7c`](https://github.com/mastra-ai/mastra/commit/0491e7c9b714cb0ba22187ee062147ec2dd7c712), [`f6f4903`](https://github.com/mastra-ai/mastra/commit/f6f4903397314f73362061dc5a3e8e7c61ea34aa), [`d5ed981`](https://github.com/mastra-ai/mastra/commit/d5ed981c8701c1b8a27a5f35a9a2f7d9244e695f), [`85a628b`](https://github.com/mastra-ai/mastra/commit/85a628b1224a8f64cd82ea7f033774bf22df7a7e), [`0e8ed46`](https://github.com/mastra-ai/mastra/commit/0e8ed467c54d6901a6a365f270ec15d6faadb36c), [`735d8c1`](https://github.com/mastra-ai/mastra/commit/735d8c1c0d19fbc09e6f8b66cf41bc7655993838), [`9650cce`](https://github.com/mastra-ai/mastra/commit/9650cce52a1d917ff9114653398e2a0f5c3ba808), [`6c049d9`](https://github.com/mastra-ai/mastra/commit/6c049d94063fdcbd5b81c4912a2bf82a92c9cc0b), [`910db9e`](https://github.com/mastra-ai/mastra/commit/910db9e0312888495eb5617b567f247d03303814), [`2f897df`](https://github.com/mastra-ai/mastra/commit/2f897df208508f46f51b7625e5dd20c37f93e0e3), [`d629361`](https://github.com/mastra-ai/mastra/commit/d629361a60f6565b5bfb11976fdaf7308af858e2), [`4f94ed8`](https://github.com/mastra-ai/mastra/commit/4f94ed8177abfde3ec536e3574883e075423350c), [`feb7ee4`](https://github.com/mastra-ai/mastra/commit/feb7ee4d09a75edb46c6669a3beaceec78811747), [`c237233`](https://github.com/mastra-ai/mastra/commit/c23723399ccedf7f5744b3f40997b79246bfbe64), [`38380b6`](https://github.com/mastra-ai/mastra/commit/38380b60fca905824bdf6b43df307a58efb1aa15), [`932d63d`](https://github.com/mastra-ai/mastra/commit/932d63dd51be9c8bf1e00e3671fe65606c6fb9cd), [`08c31c1`](https://github.com/mastra-ai/mastra/commit/08c31c188ebccd598acaf55e888b6397d01f7eae), [`919a22b`](https://github.com/mastra-ai/mastra/commit/919a22b25876f9ed5891efe5facbe682c30ff497), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`15f9e21`](https://github.com/mastra-ai/mastra/commit/15f9e216177201ea6e3f6d0bfb063fcc0953444f), [`3443770`](https://github.com/mastra-ai/mastra/commit/3443770662df8eb24c9df3589b2792d78cfcb811), [`b0e2ea5`](https://github.com/mastra-ai/mastra/commit/b0e2ea5b52c40fae438b9e2f7baee6f0f89c5442), [`f0a07e0`](https://github.com/mastra-ai/mastra/commit/f0a07e0111b3307c5fabfa4094c5c2cfb734fbe6), [`ff94dea`](https://github.com/mastra-ai/mastra/commit/ff94dea935f4e34545c63bcb6c29804732698809), [`0d41fe2`](https://github.com/mastra-ai/mastra/commit/0d41fe245355dfc66d61a0d9c85d9400aac351ff), [`b760b73`](https://github.com/mastra-ai/mastra/commit/b760b731aca7c8a3f041f61d57a7f125ae9cb215), [`aaa40e7`](https://github.com/mastra-ai/mastra/commit/aaa40e788628b319baa8e889407d11ad626547fa), [`1521d71`](https://github.com/mastra-ai/mastra/commit/1521d716e5daedc74690c983fbd961123c56756b), [`695a621`](https://github.com/mastra-ai/mastra/commit/695a621528bdabeb87f83c2277cf2bb084c7f2b4), [`9e1911d`](https://github.com/mastra-ai/mastra/commit/9e1911db2b4db85e0e768c3f15e0d61e319869f6), [`ac3cc23`](https://github.com/mastra-ai/mastra/commit/ac3cc2397d1966bc0fc2736a223abc449d3c7719), [`c456e01`](https://github.com/mastra-ai/mastra/commit/c456e0149e3c176afcefdbd9bb1d2c5917723725), [`ebac155`](https://github.com/mastra-ai/mastra/commit/ebac15564a590117db7078233f927a7e28a85106), [`a86f4df`](https://github.com/mastra-ai/mastra/commit/a86f4df0407311e0d2ea49b9a541f0938810d6a9), [`dd1c38d`](https://github.com/mastra-ai/mastra/commit/dd1c38d1b75f1b695c27b40d8d9d6ed00d5e0f6f), [`5948e6a`](https://github.com/mastra-ai/mastra/commit/5948e6a5146c83666ba3f294b2be576c82a513fb), [`5b2ff46`](https://github.com/mastra-ai/mastra/commit/5b2ff4651df70c146523a7fca773f8eb0a2272f8), [`edb07e4`](https://github.com/mastra-ai/mastra/commit/edb07e49283e0c28bd094a60e03439bf6ecf0221), [`db41688`](https://github.com/mastra-ai/mastra/commit/db4168806d007417e2e60b4f68656dca4e5f40c9), [`2b459f4`](https://github.com/mastra-ai/mastra/commit/2b459f466fd91688eeb2a44801dc23f7f8a887ab), [`798d0c7`](https://github.com/mastra-ai/mastra/commit/798d0c740232653b1d754870e6b43a55c364ffe2), [`8940859`](https://github.com/mastra-ai/mastra/commit/89408593658199b4ad67f7b65e888f344e64a442), [`486352b`](https://github.com/mastra-ai/mastra/commit/486352b66c746602b68a95839f830de14c7fb8c0), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`ab035c2`](https://github.com/mastra-ai/mastra/commit/ab035c2ef6d8cc7bb25f06f1a38508bd9e6f126b), [`e629310`](https://github.com/mastra-ai/mastra/commit/e629310f1a73fa236d49ec7a1d1cceb6229dc7cc), [`844ea5d`](https://github.com/mastra-ai/mastra/commit/844ea5dc0c248961e7bf73629ae7dcff503e853c), [`5ca599d`](https://github.com/mastra-ai/mastra/commit/5ca599d0bb59a1595f19f58473fcd67cc71cef58), [`09e4bae`](https://github.com/mastra-ai/mastra/commit/09e4bae18dd5357d2ae078a4a95a2af32168ab08), [`4c6b492`](https://github.com/mastra-ai/mastra/commit/4c6b492c4dd591c6a592520c1f6855d6e936d71f), [`bff1145`](https://github.com/mastra-ai/mastra/commit/bff114556b3cbadad9b2768488708f8ad0e91475), [`dff01d8`](https://github.com/mastra-ai/mastra/commit/dff01d81ce1f4e4087cfac20fa868e6db138dd14), [`ffe84d5`](https://github.com/mastra-ai/mastra/commit/ffe84d54f3b0f85167fe977efd027dba027eb998), [`5c8ca24`](https://github.com/mastra-ai/mastra/commit/5c8ca247094e0cc2cdbd7137822fb47241f86e77), [`9d819d5`](https://github.com/mastra-ai/mastra/commit/9d819d54b61481639f4008e4694791bddf187edd), [`a51cc81`](https://github.com/mastra-ai/mastra/commit/a51cc813e98fe115ef59df7de394fdbb9ffa7f9c), [`24b76d8`](https://github.com/mastra-ai/mastra/commit/24b76d8e17656269c8ed09a0c038adb9cc2ae95a), [`e191844`](https://github.com/mastra-ai/mastra/commit/e1918444ca3f80e82feef1dad506cd4ec6e2875f), [`243a823`](https://github.com/mastra-ai/mastra/commit/243a8239c5906f5c94e4f78b54676793f7510ae3), [`22553f1`](https://github.com/mastra-ai/mastra/commit/22553f11c63ee5e966a9c034a349822249584691), [`81dc110`](https://github.com/mastra-ai/mastra/commit/81dc11008d147cf5bdc8996ead1aa61dbdebb6fc), [`029540c`](https://github.com/mastra-ai/mastra/commit/029540ca1e582fc2dd8d288ecd4a9b0f31a954ef), [`7237163`](https://github.com/mastra-ai/mastra/commit/72371635dbf96a87df4b073cc48fc655afbdce3d), [`2500740`](https://github.com/mastra-ai/mastra/commit/2500740ea23da067d6e50ec71c625ab3ce275e64), [`653e65a`](https://github.com/mastra-ai/mastra/commit/653e65ae1f9502c2958a32f47a5a2df11e612a92), [`873ecbb`](https://github.com/mastra-ai/mastra/commit/873ecbb517586aa17d2f1e99283755b3ebb2863f), [`6986fb0`](https://github.com/mastra-ai/mastra/commit/6986fb064f5db6ecc24aa655e1d26529087b43b3), [`197d4aa`](https://github.com/mastra-ai/mastra/commit/197d4aacc35543ad545496b9a63567e81ed1e040), [`97fee86`](https://github.com/mastra-ai/mastra/commit/97fee863b3dcca8b998faa016741e57ddff0acc9), [`4f9bbe5`](https://github.com/mastra-ai/mastra/commit/4f9bbe5968f42c86f4930b8193de3c3c17e5bd36), [`fd3d338`](https://github.com/mastra-ai/mastra/commit/fd3d338a2c362174ed5b383f1f011ad9fb0302aa), [`02e51fe`](https://github.com/mastra-ai/mastra/commit/02e51feddb3d4155cfbcc42624fd0d0970d032c0), [`71c8d6c`](https://github.com/mastra-ai/mastra/commit/71c8d6c161253207b2b9588bdadb7eed604f7253), [`7aedb74`](https://github.com/mastra-ai/mastra/commit/7aedb74883adf66af38e270e4068fd42e7a37036), [`c6fd6fe`](https://github.com/mastra-ai/mastra/commit/c6fd6fedd09e9cf8004b03a80925f5e94826ad7e), [`8f02d80`](https://github.com/mastra-ai/mastra/commit/8f02d800777397e4b45d7f1ad041988a8b0c6630), [`6179a9b`](https://github.com/mastra-ai/mastra/commit/6179a9ba36ffac326de3cc3c43cdc8028d37c251), [`8f3fa3a`](https://github.com/mastra-ai/mastra/commit/8f3fa3a652bb77da092f913ec51ae46e3a7e27dc), [`11f93c2`](https://github.com/mastra-ai/mastra/commit/11f93c26fcec9470eb3b8e183384723445ddf0b1), [`c30400a`](https://github.com/mastra-ai/mastra/commit/c30400a49b994b1b97256fe785eb6c906fc2b232), [`486352b`](https://github.com/mastra-ai/mastra/commit/486352b66c746602b68a95839f830de14c7fb8c0), [`00f4921`](https://github.com/mastra-ai/mastra/commit/00f4921dd2c91a1e5446799599ef7116a8214a1a), [`1a46a56`](https://github.com/mastra-ai/mastra/commit/1a46a566f45a3fcbadc1cf36bf86d351f264bfa3), [`ca8041c`](https://github.com/mastra-ai/mastra/commit/ca8041cce0379fda22ed293a565bcb5b6ddca68a), [`7051bf3`](https://github.com/mastra-ai/mastra/commit/7051bf38b3b122a069008f861f7bfc004a6d9f6e), [`a8f1494`](https://github.com/mastra-ai/mastra/commit/a8f1494f4bbdc2770bcf327d4c7d869e332183f1), [`d7aad50`](https://github.com/mastra-ai/mastra/commit/d7aad501ce61646b76b4b511e558ac4eea9884d0), [`c61fac3`](https://github.com/mastra-ai/mastra/commit/c61fac3add96f0dcce0208c07415279e2537eb62), [`6f14f70`](https://github.com/mastra-ai/mastra/commit/6f14f706ccaaf81b69544b6c1b75ab66a41e5317), [`b88dd9d`](https://github.com/mastra-ai/mastra/commit/b88dd9dfd04a5f1a35d54f48eda944eac29923c2), [`69e0a87`](https://github.com/mastra-ai/mastra/commit/69e0a878896a2da9494945d86e056a5f8f05b851), [`cd29ad2`](https://github.com/mastra-ai/mastra/commit/cd29ad23a255534e8191f249593849ed29160886), [`bdf4d8c`](https://github.com/mastra-ai/mastra/commit/bdf4d8cdc656d8a2c21d81834bfa3bfa70f56c16), [`854e3da`](https://github.com/mastra-ai/mastra/commit/854e3dad5daac17a91a20986399d3a51f54bf68b), [`ce18d38`](https://github.com/mastra-ai/mastra/commit/ce18d38678c65870350d123955014a8432075fd9), [`3cf540b`](https://github.com/mastra-ai/mastra/commit/3cf540b9fbfea8f4fc8d3a2319a4e6c0b0cbfd52), [`9f2c5b1`](https://github.com/mastra-ai/mastra/commit/9f2c5b163e959b0cd08e2f399fb0ff927a3dba91), [`352a5d6`](https://github.com/mastra-ai/mastra/commit/352a5d625cfe09849b21e8f52a24c9f0366759d5), [`1c6ce51`](https://github.com/mastra-ai/mastra/commit/1c6ce51f875915ab57fd36873623013699a2a65d), [`898a972`](https://github.com/mastra-ai/mastra/commit/898a9727d286c2510d6b702dfd367e6aaf5c6b0f), [`0793497`](https://github.com/mastra-ai/mastra/commit/079349753620c40246ffd673e3f9d7d9820beff3), [`09e4bae`](https://github.com/mastra-ai/mastra/commit/09e4bae18dd5357d2ae078a4a95a2af32168ab08), [`2c212e7`](https://github.com/mastra-ai/mastra/commit/2c212e704c90e2db83d4109e62c03f0f6ebd2667), [`a97003a`](https://github.com/mastra-ai/mastra/commit/a97003aa1cf2f4022a41912324a1e77263b326b8), [`66741d1`](https://github.com/mastra-ai/mastra/commit/66741d1a99c4f42cf23a16109939e8348ac6852e), [`ccc141e`](https://github.com/mastra-ai/mastra/commit/ccc141ed27da0abc3a3fc28e9e5128152e8e37f4), [`27c0009`](https://github.com/mastra-ai/mastra/commit/27c0009777a6073d7631b0eb7b481d94e165b5ca), [`01f8878`](https://github.com/mastra-ai/mastra/commit/01f88783de25e4de048c1c8aace43e26373c6ea5), [`0d7618b`](https://github.com/mastra-ai/mastra/commit/0d7618bc650bf2800934b243eca5648f4aeed9c2), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`b7e17d3`](https://github.com/mastra-ai/mastra/commit/b7e17d3f5390bb5a71efc112204413656fcdc18d), [`4c77209`](https://github.com/mastra-ai/mastra/commit/4c77209e6c11678808b365d545845918c40045c8), [`a854ede`](https://github.com/mastra-ai/mastra/commit/a854ede62bf5ac0945a624ac48913dd69c73aabf), [`fe3b897`](https://github.com/mastra-ai/mastra/commit/fe3b897c2ccbcd2b10e81b099438c7337feddf89), [`c576fc0`](https://github.com/mastra-ai/mastra/commit/c576fc0b100b2085afded91a37c97a0ea0ec09c7), [`3defc80`](https://github.com/mastra-ai/mastra/commit/3defc80cf2b88a1b7fc1cc4ddcb91e982a614609), [`00123ba`](https://github.com/mastra-ai/mastra/commit/00123ba96dc9e5cd0b110420ebdba56d8f237b25), [`16153fe`](https://github.com/mastra-ai/mastra/commit/16153fe7eb13c99401f48e6ca32707c965ee28b9), [`9f4a683`](https://github.com/mastra-ai/mastra/commit/9f4a6833e88b52574665c028fd5508ad5c2f6004), [`bc94344`](https://github.com/mastra-ai/mastra/commit/bc943444a1342d8a662151b7bce1df7dae32f59c), [`4ca4306`](https://github.com/mastra-ai/mastra/commit/4ca430614daa5fa04730205a302a43bf4accfe9f), [`cccf9c8`](https://github.com/mastra-ai/mastra/commit/cccf9c8b2d2dfc1a5e63919395b83d78c89682a0), [`29c4309`](https://github.com/mastra-ai/mastra/commit/29c4309f818b24304c041bcb4a8f19b5f13f6b62), [`16785ce`](https://github.com/mastra-ai/mastra/commit/16785ced928f6f22638f4488cf8a125d99211799), [`57d157f`](https://github.com/mastra-ai/mastra/commit/57d157f0b163a95c3e6c9eae31bdb11d1bfc64f9), [`61a5705`](https://github.com/mastra-ai/mastra/commit/61a570551278b6743e64243b3ce7d73de915ca8a), [`903f67d`](https://github.com/mastra-ai/mastra/commit/903f67d184504a273893818c02b961f5423a79ad), [`d827d08`](https://github.com/mastra-ai/mastra/commit/d827d0808ffe1f3553a84e975806cc989b9735dd), [`4524734`](https://github.com/mastra-ai/mastra/commit/45247343e384717a7c8404296275c56201d6470f), [`2a90c55`](https://github.com/mastra-ai/mastra/commit/2a90c55a86a9210697d5adaab5ee94584b079adc), [`2a53598`](https://github.com/mastra-ai/mastra/commit/2a53598c6d8cfeb904a7fc74e57e526d751c8fa6), [`4c6b492`](https://github.com/mastra-ai/mastra/commit/4c6b492c4dd591c6a592520c1f6855d6e936d71f), [`db70a48`](https://github.com/mastra-ai/mastra/commit/db70a48aeeeeb8e5f92007e8ede52c364ce15287), [`261473a`](https://github.com/mastra-ai/mastra/commit/261473ac637e633064a22076671e2e02b002214d), [`eb09742`](https://github.com/mastra-ai/mastra/commit/eb09742197f66c4c38154c3beec78313e69760b2), [`de8239b`](https://github.com/mastra-ai/mastra/commit/de8239bdcb1d8c0cfa06da21f1569912a66bbc8a), [`ebac155`](https://github.com/mastra-ai/mastra/commit/ebac15564a590117db7078233f927a7e28a85106), [`23c10a1`](https://github.com/mastra-ai/mastra/commit/23c10a1efdd9a693c405511ab2dc8a1236603162), [`b5e6cd7`](https://github.com/mastra-ai/mastra/commit/b5e6cd77fc8c8e64e0494c1d06cee3d84e795d1e), [`f0fdc14`](https://github.com/mastra-ai/mastra/commit/f0fdc14ee233d619266b3d2bbdeea7d25cfc6d13), [`c7cd3c7`](https://github.com/mastra-ai/mastra/commit/c7cd3c7a187d7aaf79e2ca139de328bf609a14b4), [`db18bc9`](https://github.com/mastra-ai/mastra/commit/db18bc9c3825e2c1a0ad9a183cc9935f6691bfa1), [`96d35f6`](https://github.com/mastra-ai/mastra/commit/96d35f61376bc2b1bf148648a2c1985bd51bef55), [`9b37b56`](https://github.com/mastra-ai/mastra/commit/9b37b565e1f2a76c24f728945cc740c2b09be9da), [`01b20fe`](https://github.com/mastra-ai/mastra/commit/01b20fefb7c67c2b7d79417598ef4e60256d1225), [`0dbf199`](https://github.com/mastra-ai/mastra/commit/0dbf199110f22192ce5c95b1c8148d4872b4d119), [`5cbe88a`](https://github.com/mastra-ai/mastra/commit/5cbe88aefbd9f933bca669fd371ea36bf939ac6d), [`41a23c3`](https://github.com/mastra-ai/mastra/commit/41a23c32f9877d71810f37e24930515df2ff7a0f), [`a1bd7b8`](https://github.com/mastra-ai/mastra/commit/a1bd7b8571db16b94eb01588f451a74758c96d65), [`d78b38d`](https://github.com/mastra-ai/mastra/commit/d78b38d898fce285260d3bbb4befade54331617f), [`a0a5b4b`](https://github.com/mastra-ai/mastra/commit/a0a5b4bbebe6c701ebbadf744873aa0d5ca01371), [`ce0a73a`](https://github.com/mastra-ai/mastra/commit/ce0a73abeaa75b10ca38f9e40a255a645d50ebfb), [`5d171ad`](https://github.com/mastra-ai/mastra/commit/5d171ad9ef340387276b77c2bb3e83e83332d729), [`0633100`](https://github.com/mastra-ai/mastra/commit/0633100a911ad22f5256471bdf753da21c104742), [`3759cb0`](https://github.com/mastra-ai/mastra/commit/3759cb064935b5f74c65ac2f52a1145f7352899d), [`c710c16`](https://github.com/mastra-ai/mastra/commit/c710c1652dccfdc4111c8412bca7a6bb1d48b441), [`354ad0b`](https://github.com/mastra-ai/mastra/commit/354ad0b7b1b8183ac567f236a884fc7ede6d7138), [`cfae733`](https://github.com/mastra-ai/mastra/commit/cfae73394f4920635e6c919c8e95ff9a0788e2e5), [`e3dfda7`](https://github.com/mastra-ai/mastra/commit/e3dfda7b11bf3b8c4bb55637028befb5f387fc74), [`69ea758`](https://github.com/mastra-ai/mastra/commit/69ea758358edd7117f191c2e69c8bb5fc79e7a1a), [`651e772`](https://github.com/mastra-ai/mastra/commit/651e772eb1475fb13e126d3fcc01751297a88214), [`a02e542`](https://github.com/mastra-ai/mastra/commit/a02e542d23179bad250b044b17ff023caa61739f), [`f03ae60`](https://github.com/mastra-ai/mastra/commit/f03ae60500fe350c9d828621006cdafe1975fdd8), [`6b3ba91`](https://github.com/mastra-ai/mastra/commit/6b3ba91494cc10394df96782f349a4f7b1e152cc), [`a372c64`](https://github.com/mastra-ai/mastra/commit/a372c640ad1fd12e8f0613cebdc682fc156b4d95), [`993ad98`](https://github.com/mastra-ai/mastra/commit/993ad98d7ad3bebda9ecef5fec5c94349a0d04bc), [`676ccc7`](https://github.com/mastra-ai/mastra/commit/676ccc7fe92468d2d45d39c31a87825c89fd1ea0), [`3ff2c17`](https://github.com/mastra-ai/mastra/commit/3ff2c17a58e312fad5ea37377262c12d92ca0908), [`d1e74a0`](https://github.com/mastra-ai/mastra/commit/d1e74a0a293866dece31022047f5dbab65a304d0), [`844ea5d`](https://github.com/mastra-ai/mastra/commit/844ea5dc0c248961e7bf73629ae7dcff503e853c), [`398fde3`](https://github.com/mastra-ai/mastra/commit/398fde3f39e707cda79372cdae8f9870e3b57c8d), [`c10398d`](https://github.com/mastra-ai/mastra/commit/c10398d5b88f1d4af556f4267ff06f1d11e89179), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`b61b93f`](https://github.com/mastra-ai/mastra/commit/b61b93f9e058b11dd2eec169853175d31dbdd567), [`bae33d9`](https://github.com/mastra-ai/mastra/commit/bae33d91a63fbb64d1e80519e1fc1acaed1e9013), [`39e7869`](https://github.com/mastra-ai/mastra/commit/39e7869bc7d0ee391077ce291474d8a84eedccff), [`0d7618b`](https://github.com/mastra-ai/mastra/commit/0d7618bc650bf2800934b243eca5648f4aeed9c2), [`7b763e5`](https://github.com/mastra-ai/mastra/commit/7b763e52fc3eaf699c2a99f2adf418dd46e4e9a5), [`d36cfbb`](https://github.com/mastra-ai/mastra/commit/d36cfbbb6565ba5f827883cc9bb648eb14befdc1), [`8846867`](https://github.com/mastra-ai/mastra/commit/8846867ffa9a3746767618e314bebac08eb77d87), [`c0b731f`](https://github.com/mastra-ai/mastra/commit/c0b731fb27d712dc8582e846df5c0332a6a0c5ba), [`5761926`](https://github.com/mastra-ai/mastra/commit/57619260c4a2cdd598763abbacd90de594c6bc76), [`3697853`](https://github.com/mastra-ai/mastra/commit/3697853deeb72017d90e0f38a93c1e29221aeca0), [`c900fdd`](https://github.com/mastra-ai/mastra/commit/c900fdd504c41348efdffb205cfe80d48c38fa33), [`b2e45ec`](https://github.com/mastra-ai/mastra/commit/b2e45eca727a8db01a81ba93f1a5219c7183c839), [`5d7000f`](https://github.com/mastra-ai/mastra/commit/5d7000f757cd65ea9dc5b05e662fd83dfd44e932), [`43ca8f2`](https://github.com/mastra-ai/mastra/commit/43ca8f2c7334851cc7b4d3d2f037d8784bfbdd5f), [`d6d49f7`](https://github.com/mastra-ai/mastra/commit/d6d49f7b8714fa19a52ff9c7cf7fb7e73751901e), [`00c2387`](https://github.com/mastra-ai/mastra/commit/00c2387f5f04a365316f851e58666ac43f8c4edf), [`a534e95`](https://github.com/mastra-ai/mastra/commit/a534e9591f83b3cc1ebff99c67edf4cda7bf81d3), [`9d0e7fe`](https://github.com/mastra-ai/mastra/commit/9d0e7feca8ed98de959f53476ee1456073673348), [`53d927c`](https://github.com/mastra-ai/mastra/commit/53d927cc6f03bff33655b7e2b788da445a08731d), [`ad6250d`](https://github.com/mastra-ai/mastra/commit/ad6250dbdaad927e29f74a27b83f6c468b50a705), [`604a79f`](https://github.com/mastra-ai/mastra/commit/604a79fecf276e26a54a3fe01bb94e65315d2e0e), [`42a42cf`](https://github.com/mastra-ai/mastra/commit/42a42cf3132b9786feecbb8c13c583dce5b0e198), [`3f2faf2`](https://github.com/mastra-ai/mastra/commit/3f2faf2e2d685d6c053cc5af1bf9fedf267b2ce5), [`22f64bc`](https://github.com/mastra-ai/mastra/commit/22f64bc1d37149480b58bf2fefe35b79a1e3e7d5), [`847c212`](https://github.com/mastra-ai/mastra/commit/847c212caba7df0d6f2fc756b494ac3c75c3720d), [`3a73998`](https://github.com/mastra-ai/mastra/commit/3a73998fa4ebeb7f3dc9301afe78095fc63e7999), [`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc), [`dff01d8`](https://github.com/mastra-ai/mastra/commit/dff01d81ce1f4e4087cfac20fa868e6db138dd14), [`ae08bf0`](https://github.com/mastra-ai/mastra/commit/ae08bf0ebc6a4e4da992b711c4a389c32ba84cf4), [`0bed332`](https://github.com/mastra-ai/mastra/commit/0bed332843f627202c6520eaf671771313cd20f3), [`887f0b4`](https://github.com/mastra-ai/mastra/commit/887f0b4746cdbd7cb7d6b17ac9f82aeb58037ea5), [`2562143`](https://github.com/mastra-ai/mastra/commit/256214336b4faa78646c9c1776612393790d8784), [`b7959e6`](https://github.com/mastra-ai/mastra/commit/b7959e6e25a46b480f9ea2217c4c6c588c423791), [`a7ce182`](https://github.com/mastra-ai/mastra/commit/a7ce1822a8785ce45d62dd5c911af465e144f7d7), [`bda6370`](https://github.com/mastra-ai/mastra/commit/bda637009360649aaf579919e7873e33553c273e), [`245820c`](https://github.com/mastra-ai/mastra/commit/245820cdea463218fd1c4e62eb2a349d6520fe71), [`d7acd8e`](https://github.com/mastra-ai/mastra/commit/d7acd8e987b5d7eff4fd98b0906c17c06a2e83d5), [`c7f1f7d`](https://github.com/mastra-ai/mastra/commit/c7f1f7d24f61f247f018cc2d1f33bf63212959a7), [`0bddc6d`](https://github.com/mastra-ai/mastra/commit/0bddc6d8dbd6f6008c0cba2e4960a2da75a55af1), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141), [`735d8c1`](https://github.com/mastra-ai/mastra/commit/735d8c1c0d19fbc09e6f8b66cf41bc7655993838), [`7907fd1`](https://github.com/mastra-ai/mastra/commit/7907fd1c5059813b7b870b81ca71041dc807331b), [`acf322e`](https://github.com/mastra-ai/mastra/commit/acf322e0f1fd0189684cf529d91c694bea918a45), [`2ca67cc`](https://github.com/mastra-ai/mastra/commit/2ca67cc3bb1f6a617353fdcab197d9efebe60d6f), [`e16d553`](https://github.com/mastra-ai/mastra/commit/e16d55338403c7553531cc568125c63d53653dff), [`6f941c4`](https://github.com/mastra-ai/mastra/commit/6f941c438ca5f578619788acc7608fc2e23bd176), [`c942802`](https://github.com/mastra-ai/mastra/commit/c942802a477a925b01859a7b8688d4355715caaa), [`4f0331a`](https://github.com/mastra-ai/mastra/commit/4f0331a79bf6eb5ee598a5086e55de4b5a0ada03), [`a0c8c1b`](https://github.com/mastra-ai/mastra/commit/a0c8c1b87d4fee252aebda73e8637fbe01d761c9), [`1d877b8`](https://github.com/mastra-ai/mastra/commit/1d877b8d7b536a251c1a7a18db7ddcf4f68d6f8b), [`cc34739`](https://github.com/mastra-ai/mastra/commit/cc34739c34b6266a91bea561119240a7acf47887), [`c218bd3`](https://github.com/mastra-ai/mastra/commit/c218bd3759e32423735b04843a09404572631014), [`9e67002`](https://github.com/mastra-ai/mastra/commit/9e67002b52c9be19936c420a489dbee9c5fd6a78), [`2c4438b`](https://github.com/mastra-ai/mastra/commit/2c4438b87817ab7eed818c7990fef010475af1a3), [`35edc49`](https://github.com/mastra-ai/mastra/commit/35edc49ac0556db609189641d6341e76771b81fc), [`4d59f58`](https://github.com/mastra-ai/mastra/commit/4d59f58de2d90d6e2810a19d4518e38ddddb9038), [`ef11a61`](https://github.com/mastra-ai/mastra/commit/ef11a61920fa0ed08a5b7ceedd192875af119749), [`2b8893c`](https://github.com/mastra-ai/mastra/commit/2b8893cb108ef9acb72ee7835cd625610d2c1a4a), [`c218bd3`](https://github.com/mastra-ai/mastra/commit/c218bd3759e32423735b04843a09404572631014), [`8e5c75b`](https://github.com/mastra-ai/mastra/commit/8e5c75bdb1d08a42d45309a4c72def4b6890230f), [`c918300`](https://github.com/mastra-ai/mastra/commit/c91830039939ac1ff1bc45669931d3a81d8b118f), [`e1bb9c9`](https://github.com/mastra-ai/mastra/commit/e1bb9c94b4eb68b019ae275981be3feb769b5365), [`351a11f`](https://github.com/mastra-ai/mastra/commit/351a11fcaf2ed1008977fa9b9a489fc422e51cd4), [`e59e0d3`](https://github.com/mastra-ai/mastra/commit/e59e0d32afb5fcf2c9f3c00c8f81f6c21d3a63fa), [`465ac05`](https://github.com/mastra-ai/mastra/commit/465ac0526a91d175542091c675181f1a96c98c46), [`fa8409b`](https://github.com/mastra-ai/mastra/commit/fa8409bc39cfd8ba6643b9db5269b90b22e2a2f7), [`8a000da`](https://github.com/mastra-ai/mastra/commit/8a000da0c09c679a2312f6b3aa05b2ca78ca7393), [`e7266a2`](https://github.com/mastra-ai/mastra/commit/e7266a278db02035c97a5e9cd9d1669a6b7a535d), [`173c535`](https://github.com/mastra-ai/mastra/commit/173c535c0645b0da404fe09f003778f0b0d4e019), [`ce32589`](https://github.com/mastra-ai/mastra/commit/ce325896358daa1088715ea13aac9eca596a4871), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db)]:
115
+ - @mastra/core@0.0.0-bundle-studio-cloud-20251222034739
116
+ - @mastra/rag@0.0.0-bundle-studio-cloud-20251222034739
117
+ - @mastra/libsql@0.0.0-bundle-studio-cloud-20251222034739
118
+ - @mastra/memory@0.0.0-bundle-studio-cloud-20251222034739
119
+ - @mastra/fastembed@0.0.0-bundle-studio-cloud-20251222034739
120
+
121
+ ## 1.0.0-beta.14
122
+
123
+ ### Patch Changes
124
+
125
+ - Updated dependencies [[`fb5a834`](https://github.com/mastra-ai/mastra/commit/fb5a834f8bd01e66384ac3e2a719641b14d40760), [`4f94ed8`](https://github.com/mastra-ai/mastra/commit/4f94ed8177abfde3ec536e3574883e075423350c), [`ac3cc23`](https://github.com/mastra-ai/mastra/commit/ac3cc2397d1966bc0fc2736a223abc449d3c7719), [`a86f4df`](https://github.com/mastra-ai/mastra/commit/a86f4df0407311e0d2ea49b9a541f0938810d6a9), [`029540c`](https://github.com/mastra-ai/mastra/commit/029540ca1e582fc2dd8d288ecd4a9b0f31a954ef), [`66741d1`](https://github.com/mastra-ai/mastra/commit/66741d1a99c4f42cf23a16109939e8348ac6852e), [`01b20fe`](https://github.com/mastra-ai/mastra/commit/01b20fefb7c67c2b7d79417598ef4e60256d1225), [`0dbf199`](https://github.com/mastra-ai/mastra/commit/0dbf199110f22192ce5c95b1c8148d4872b4d119), [`a7ce182`](https://github.com/mastra-ai/mastra/commit/a7ce1822a8785ce45d62dd5c911af465e144f7d7)]:
126
+ - @mastra/memory@1.0.0-beta.6
127
+ - @mastra/core@1.0.0-beta.14
128
+ - @mastra/rag@2.0.0-beta.4
129
+
130
+ ## 1.0.0-beta.13
131
+
132
+ ### Patch Changes
133
+
134
+ - Updated dependencies [[`919a22b`](https://github.com/mastra-ai/mastra/commit/919a22b25876f9ed5891efe5facbe682c30ff497)]:
135
+ - @mastra/core@1.0.0-beta.13
136
+
137
+ ## 1.0.0-beta.12
138
+
139
+ ### Patch Changes
140
+
141
+ - Updated dependencies [[`d5ed981`](https://github.com/mastra-ai/mastra/commit/d5ed981c8701c1b8a27a5f35a9a2f7d9244e695f), [`9650cce`](https://github.com/mastra-ai/mastra/commit/9650cce52a1d917ff9114653398e2a0f5c3ba808), [`932d63d`](https://github.com/mastra-ai/mastra/commit/932d63dd51be9c8bf1e00e3671fe65606c6fb9cd), [`b760b73`](https://github.com/mastra-ai/mastra/commit/b760b731aca7c8a3f041f61d57a7f125ae9cb215), [`695a621`](https://github.com/mastra-ai/mastra/commit/695a621528bdabeb87f83c2277cf2bb084c7f2b4), [`2b459f4`](https://github.com/mastra-ai/mastra/commit/2b459f466fd91688eeb2a44801dc23f7f8a887ab), [`486352b`](https://github.com/mastra-ai/mastra/commit/486352b66c746602b68a95839f830de14c7fb8c0), [`09e4bae`](https://github.com/mastra-ai/mastra/commit/09e4bae18dd5357d2ae078a4a95a2af32168ab08), [`24b76d8`](https://github.com/mastra-ai/mastra/commit/24b76d8e17656269c8ed09a0c038adb9cc2ae95a), [`243a823`](https://github.com/mastra-ai/mastra/commit/243a8239c5906f5c94e4f78b54676793f7510ae3), [`11f93c2`](https://github.com/mastra-ai/mastra/commit/11f93c26fcec9470eb3b8e183384723445ddf0b1), [`486352b`](https://github.com/mastra-ai/mastra/commit/486352b66c746602b68a95839f830de14c7fb8c0), [`c61fac3`](https://github.com/mastra-ai/mastra/commit/c61fac3add96f0dcce0208c07415279e2537eb62), [`6f14f70`](https://github.com/mastra-ai/mastra/commit/6f14f706ccaaf81b69544b6c1b75ab66a41e5317), [`09e4bae`](https://github.com/mastra-ai/mastra/commit/09e4bae18dd5357d2ae078a4a95a2af32168ab08), [`4524734`](https://github.com/mastra-ai/mastra/commit/45247343e384717a7c8404296275c56201d6470f), [`2a53598`](https://github.com/mastra-ai/mastra/commit/2a53598c6d8cfeb904a7fc74e57e526d751c8fa6), [`c7cd3c7`](https://github.com/mastra-ai/mastra/commit/c7cd3c7a187d7aaf79e2ca139de328bf609a14b4), [`847c212`](https://github.com/mastra-ai/mastra/commit/847c212caba7df0d6f2fc756b494ac3c75c3720d), [`6f941c4`](https://github.com/mastra-ai/mastra/commit/6f941c438ca5f578619788acc7608fc2e23bd176)]:
142
+ - @mastra/core@1.0.0-beta.12
143
+ - @mastra/fastembed@1.0.0-beta.1
144
+ - @mastra/memory@1.0.0-beta.5
145
+ - @mastra/libsql@1.0.0-beta.8
146
+
147
+ ## 1.0.0-beta.11
148
+
149
+ ### Patch Changes
150
+
151
+ - Updated dependencies [[`38380b6`](https://github.com/mastra-ai/mastra/commit/38380b60fca905824bdf6b43df307a58efb1aa15), [`798d0c7`](https://github.com/mastra-ai/mastra/commit/798d0c740232653b1d754870e6b43a55c364ffe2), [`ffe84d5`](https://github.com/mastra-ai/mastra/commit/ffe84d54f3b0f85167fe977efd027dba027eb998), [`2c212e7`](https://github.com/mastra-ai/mastra/commit/2c212e704c90e2db83d4109e62c03f0f6ebd2667), [`4ca4306`](https://github.com/mastra-ai/mastra/commit/4ca430614daa5fa04730205a302a43bf4accfe9f), [`3bf6c5f`](https://github.com/mastra-ai/mastra/commit/3bf6c5f104c25226cd84e0c77f9dec15f2cac2db)]:
152
+ - @mastra/core@1.0.0-beta.11
153
+
154
+ ## 1.0.0-beta.10
155
+
156
+ ### Patch Changes
157
+
158
+ - Updated dependencies [[`edb07e4`](https://github.com/mastra-ai/mastra/commit/edb07e49283e0c28bd094a60e03439bf6ecf0221), [`b7e17d3`](https://github.com/mastra-ai/mastra/commit/b7e17d3f5390bb5a71efc112204413656fcdc18d), [`261473a`](https://github.com/mastra-ai/mastra/commit/261473ac637e633064a22076671e2e02b002214d), [`5d7000f`](https://github.com/mastra-ai/mastra/commit/5d7000f757cd65ea9dc5b05e662fd83dfd44e932), [`4f0331a`](https://github.com/mastra-ai/mastra/commit/4f0331a79bf6eb5ee598a5086e55de4b5a0ada03), [`8a000da`](https://github.com/mastra-ai/mastra/commit/8a000da0c09c679a2312f6b3aa05b2ca78ca7393)]:
159
+ - @mastra/core@1.0.0-beta.10
160
+ - @mastra/libsql@1.0.0-beta.7
161
+
162
+ ## 1.0.0-beta.9
163
+
164
+ ### Patch Changes
165
+
166
+ - Updated dependencies [[`72df8ae`](https://github.com/mastra-ai/mastra/commit/72df8ae595584cdd7747d5c39ffaca45e4507227), [`9198899`](https://github.com/mastra-ai/mastra/commit/91988995c427b185c33714b7f3be955367911324), [`653e65a`](https://github.com/mastra-ai/mastra/commit/653e65ae1f9502c2958a32f47a5a2df11e612a92), [`c6fd6fe`](https://github.com/mastra-ai/mastra/commit/c6fd6fedd09e9cf8004b03a80925f5e94826ad7e), [`0bed332`](https://github.com/mastra-ai/mastra/commit/0bed332843f627202c6520eaf671771313cd20f3)]:
167
+ - @mastra/core@1.0.0-beta.9
168
+ - @mastra/libsql@1.0.0-beta.6
169
+
170
+ ## 1.0.0-beta.8
171
+
172
+ ### Patch Changes
173
+
174
+ - Updated dependencies [[`0d41fe2`](https://github.com/mastra-ai/mastra/commit/0d41fe245355dfc66d61a0d9c85d9400aac351ff), [`9f2c5b1`](https://github.com/mastra-ai/mastra/commit/9f2c5b163e959b0cd08e2f399fb0ff927a3dba91), [`6b3ba91`](https://github.com/mastra-ai/mastra/commit/6b3ba91494cc10394df96782f349a4f7b1e152cc), [`7907fd1`](https://github.com/mastra-ai/mastra/commit/7907fd1c5059813b7b870b81ca71041dc807331b)]:
175
+ - @mastra/core@1.0.0-beta.8
176
+ - @mastra/libsql@1.0.0-beta.5
177
+ - @mastra/memory@1.0.0-beta.4
178
+
179
+ ## 1.0.0-beta.7
180
+
181
+ ### Patch Changes
182
+
183
+ - Updated dependencies [[`3076c67`](https://github.com/mastra-ai/mastra/commit/3076c6778b18988ae7d5c4c5c466366974b2d63f), [`85d7ee1`](https://github.com/mastra-ai/mastra/commit/85d7ee18ff4e14d625a8a30ec6656bb49804989b), [`c6c1092`](https://github.com/mastra-ai/mastra/commit/c6c1092f8fbf76109303f69e000e96fd1960c4ce), [`81dc110`](https://github.com/mastra-ai/mastra/commit/81dc11008d147cf5bdc8996ead1aa61dbdebb6fc), [`7aedb74`](https://github.com/mastra-ai/mastra/commit/7aedb74883adf66af38e270e4068fd42e7a37036), [`8f02d80`](https://github.com/mastra-ai/mastra/commit/8f02d800777397e4b45d7f1ad041988a8b0c6630), [`d7aad50`](https://github.com/mastra-ai/mastra/commit/d7aad501ce61646b76b4b511e558ac4eea9884d0), [`ce0a73a`](https://github.com/mastra-ai/mastra/commit/ce0a73abeaa75b10ca38f9e40a255a645d50ebfb), [`a02e542`](https://github.com/mastra-ai/mastra/commit/a02e542d23179bad250b044b17ff023caa61739f), [`a372c64`](https://github.com/mastra-ai/mastra/commit/a372c640ad1fd12e8f0613cebdc682fc156b4d95), [`8846867`](https://github.com/mastra-ai/mastra/commit/8846867ffa9a3746767618e314bebac08eb77d87), [`42a42cf`](https://github.com/mastra-ai/mastra/commit/42a42cf3132b9786feecbb8c13c583dce5b0e198), [`ae08bf0`](https://github.com/mastra-ai/mastra/commit/ae08bf0ebc6a4e4da992b711c4a389c32ba84cf4), [`21735a7`](https://github.com/mastra-ai/mastra/commit/21735a7ef306963554a69a89b44f06c3bcd85141), [`1d877b8`](https://github.com/mastra-ai/mastra/commit/1d877b8d7b536a251c1a7a18db7ddcf4f68d6f8b)]:
184
+ - @mastra/core@1.0.0-beta.7
185
+ - @mastra/libsql@1.0.0-beta.4
186
+
187
+ ## 1.0.0-beta.6
188
+
189
+ ### Patch Changes
190
+
191
+ - Updated dependencies [[`ac0d2f4`](https://github.com/mastra-ai/mastra/commit/ac0d2f4ff8831f72c1c66c2be809706d17f65789), [`fd6f38d`](https://github.com/mastra-ai/mastra/commit/fd6f38d604aba4206ff36e19a599672c3e1e1251), [`1a0d3fc`](https://github.com/mastra-ai/mastra/commit/1a0d3fc811482c9c376cdf79ee615c23bae9b2d6), [`85a628b`](https://github.com/mastra-ai/mastra/commit/85a628b1224a8f64cd82ea7f033774bf22df7a7e), [`c237233`](https://github.com/mastra-ai/mastra/commit/c23723399ccedf7f5744b3f40997b79246bfbe64), [`15f9e21`](https://github.com/mastra-ai/mastra/commit/15f9e216177201ea6e3f6d0bfb063fcc0953444f), [`ff94dea`](https://github.com/mastra-ai/mastra/commit/ff94dea935f4e34545c63bcb6c29804732698809), [`5b2ff46`](https://github.com/mastra-ai/mastra/commit/5b2ff4651df70c146523a7fca773f8eb0a2272f8), [`db41688`](https://github.com/mastra-ai/mastra/commit/db4168806d007417e2e60b4f68656dca4e5f40c9), [`5ca599d`](https://github.com/mastra-ai/mastra/commit/5ca599d0bb59a1595f19f58473fcd67cc71cef58), [`bff1145`](https://github.com/mastra-ai/mastra/commit/bff114556b3cbadad9b2768488708f8ad0e91475), [`5c8ca24`](https://github.com/mastra-ai/mastra/commit/5c8ca247094e0cc2cdbd7137822fb47241f86e77), [`e191844`](https://github.com/mastra-ai/mastra/commit/e1918444ca3f80e82feef1dad506cd4ec6e2875f), [`22553f1`](https://github.com/mastra-ai/mastra/commit/22553f11c63ee5e966a9c034a349822249584691), [`7237163`](https://github.com/mastra-ai/mastra/commit/72371635dbf96a87df4b073cc48fc655afbdce3d), [`2500740`](https://github.com/mastra-ai/mastra/commit/2500740ea23da067d6e50ec71c625ab3ce275e64), [`873ecbb`](https://github.com/mastra-ai/mastra/commit/873ecbb517586aa17d2f1e99283755b3ebb2863f), [`97fee86`](https://github.com/mastra-ai/mastra/commit/97fee863b3dcca8b998faa016741e57ddff0acc9), [`4f9bbe5`](https://github.com/mastra-ai/mastra/commit/4f9bbe5968f42c86f4930b8193de3c3c17e5bd36), [`02e51fe`](https://github.com/mastra-ai/mastra/commit/02e51feddb3d4155cfbcc42624fd0d0970d032c0), [`8f3fa3a`](https://github.com/mastra-ai/mastra/commit/8f3fa3a652bb77da092f913ec51ae46e3a7e27dc), [`cd29ad2`](https://github.com/mastra-ai/mastra/commit/cd29ad23a255534e8191f249593849ed29160886), [`bdf4d8c`](https://github.com/mastra-ai/mastra/commit/bdf4d8cdc656d8a2c21d81834bfa3bfa70f56c16), [`854e3da`](https://github.com/mastra-ai/mastra/commit/854e3dad5daac17a91a20986399d3a51f54bf68b), [`ce18d38`](https://github.com/mastra-ai/mastra/commit/ce18d38678c65870350d123955014a8432075fd9), [`cccf9c8`](https://github.com/mastra-ai/mastra/commit/cccf9c8b2d2dfc1a5e63919395b83d78c89682a0), [`61a5705`](https://github.com/mastra-ai/mastra/commit/61a570551278b6743e64243b3ce7d73de915ca8a), [`db70a48`](https://github.com/mastra-ai/mastra/commit/db70a48aeeeeb8e5f92007e8ede52c364ce15287), [`f0fdc14`](https://github.com/mastra-ai/mastra/commit/f0fdc14ee233d619266b3d2bbdeea7d25cfc6d13), [`db18bc9`](https://github.com/mastra-ai/mastra/commit/db18bc9c3825e2c1a0ad9a183cc9935f6691bfa1), [`9b37b56`](https://github.com/mastra-ai/mastra/commit/9b37b565e1f2a76c24f728945cc740c2b09be9da), [`41a23c3`](https://github.com/mastra-ai/mastra/commit/41a23c32f9877d71810f37e24930515df2ff7a0f), [`5d171ad`](https://github.com/mastra-ai/mastra/commit/5d171ad9ef340387276b77c2bb3e83e83332d729), [`f03ae60`](https://github.com/mastra-ai/mastra/commit/f03ae60500fe350c9d828621006cdafe1975fdd8), [`d1e74a0`](https://github.com/mastra-ai/mastra/commit/d1e74a0a293866dece31022047f5dbab65a304d0), [`39e7869`](https://github.com/mastra-ai/mastra/commit/39e7869bc7d0ee391077ce291474d8a84eedccff), [`5761926`](https://github.com/mastra-ai/mastra/commit/57619260c4a2cdd598763abbacd90de594c6bc76), [`c900fdd`](https://github.com/mastra-ai/mastra/commit/c900fdd504c41348efdffb205cfe80d48c38fa33), [`604a79f`](https://github.com/mastra-ai/mastra/commit/604a79fecf276e26a54a3fe01bb94e65315d2e0e), [`887f0b4`](https://github.com/mastra-ai/mastra/commit/887f0b4746cdbd7cb7d6b17ac9f82aeb58037ea5), [`2562143`](https://github.com/mastra-ai/mastra/commit/256214336b4faa78646c9c1776612393790d8784), [`ef11a61`](https://github.com/mastra-ai/mastra/commit/ef11a61920fa0ed08a5b7ceedd192875af119749), [`ce32589`](https://github.com/mastra-ai/mastra/commit/ce325896358daa1088715ea13aac9eca596a4871)]:
192
+ - @mastra/core@1.0.0-beta.6
193
+ - @mastra/rag@2.0.0-beta.3
194
+ - @mastra/memory@1.0.0-beta.3
195
+ - @mastra/libsql@1.0.0-beta.3
196
+
197
+ ## 1.0.0-beta.5
198
+
199
+ ### Patch Changes
200
+
201
+ - Updated dependencies [[`497d80c`](https://github.com/mastra-ai/mastra/commit/497d80cd8e3164faaa7533794832bc783846cc6e), [`35c5c85`](https://github.com/mastra-ai/mastra/commit/35c5c85cc0e1e609c5e386eeb6d1fae4b55d755a), [`21a15de`](https://github.com/mastra-ai/mastra/commit/21a15de369fe82aac26bb642ed7be73505475e8b), [`feb7ee4`](https://github.com/mastra-ai/mastra/commit/feb7ee4d09a75edb46c6669a3beaceec78811747), [`b0e2ea5`](https://github.com/mastra-ai/mastra/commit/b0e2ea5b52c40fae438b9e2f7baee6f0f89c5442), [`c456e01`](https://github.com/mastra-ai/mastra/commit/c456e0149e3c176afcefdbd9bb1d2c5917723725), [`ab035c2`](https://github.com/mastra-ai/mastra/commit/ab035c2ef6d8cc7bb25f06f1a38508bd9e6f126b), [`1a46a56`](https://github.com/mastra-ai/mastra/commit/1a46a566f45a3fcbadc1cf36bf86d351f264bfa3), [`3cf540b`](https://github.com/mastra-ai/mastra/commit/3cf540b9fbfea8f4fc8d3a2319a4e6c0b0cbfd52), [`1c6ce51`](https://github.com/mastra-ai/mastra/commit/1c6ce51f875915ab57fd36873623013699a2a65d), [`898a972`](https://github.com/mastra-ai/mastra/commit/898a9727d286c2510d6b702dfd367e6aaf5c6b0f), [`a97003a`](https://github.com/mastra-ai/mastra/commit/a97003aa1cf2f4022a41912324a1e77263b326b8), [`ccc141e`](https://github.com/mastra-ai/mastra/commit/ccc141ed27da0abc3a3fc28e9e5128152e8e37f4), [`fe3b897`](https://github.com/mastra-ai/mastra/commit/fe3b897c2ccbcd2b10e81b099438c7337feddf89), [`00123ba`](https://github.com/mastra-ai/mastra/commit/00123ba96dc9e5cd0b110420ebdba56d8f237b25), [`29c4309`](https://github.com/mastra-ai/mastra/commit/29c4309f818b24304c041bcb4a8f19b5f13f6b62), [`16785ce`](https://github.com/mastra-ai/mastra/commit/16785ced928f6f22638f4488cf8a125d99211799), [`de8239b`](https://github.com/mastra-ai/mastra/commit/de8239bdcb1d8c0cfa06da21f1569912a66bbc8a), [`b5e6cd7`](https://github.com/mastra-ai/mastra/commit/b5e6cd77fc8c8e64e0494c1d06cee3d84e795d1e), [`3759cb0`](https://github.com/mastra-ai/mastra/commit/3759cb064935b5f74c65ac2f52a1145f7352899d), [`651e772`](https://github.com/mastra-ai/mastra/commit/651e772eb1475fb13e126d3fcc01751297a88214), [`b61b93f`](https://github.com/mastra-ai/mastra/commit/b61b93f9e058b11dd2eec169853175d31dbdd567), [`bae33d9`](https://github.com/mastra-ai/mastra/commit/bae33d91a63fbb64d1e80519e1fc1acaed1e9013), [`c0b731f`](https://github.com/mastra-ai/mastra/commit/c0b731fb27d712dc8582e846df5c0332a6a0c5ba), [`43ca8f2`](https://github.com/mastra-ai/mastra/commit/43ca8f2c7334851cc7b4d3d2f037d8784bfbdd5f), [`2ca67cc`](https://github.com/mastra-ai/mastra/commit/2ca67cc3bb1f6a617353fdcab197d9efebe60d6f), [`9e67002`](https://github.com/mastra-ai/mastra/commit/9e67002b52c9be19936c420a489dbee9c5fd6a78), [`35edc49`](https://github.com/mastra-ai/mastra/commit/35edc49ac0556db609189641d6341e76771b81fc)]:
202
+ - @mastra/rag@2.0.0-beta.2
203
+ - @mastra/core@1.0.0-beta.5
204
+ - @mastra/memory@1.0.0-beta.2
205
+ - @mastra/libsql@1.0.0-beta.2
206
+
207
+ ## 1.0.0-beta.4
208
+
209
+ ### Patch Changes
210
+
211
+ - Updated dependencies [[`352a5d6`](https://github.com/mastra-ai/mastra/commit/352a5d625cfe09849b21e8f52a24c9f0366759d5), [`a0a5b4b`](https://github.com/mastra-ai/mastra/commit/a0a5b4bbebe6c701ebbadf744873aa0d5ca01371), [`69ea758`](https://github.com/mastra-ai/mastra/commit/69ea758358edd7117f191c2e69c8bb5fc79e7a1a), [`993ad98`](https://github.com/mastra-ai/mastra/commit/993ad98d7ad3bebda9ecef5fec5c94349a0d04bc), [`3ff2c17`](https://github.com/mastra-ai/mastra/commit/3ff2c17a58e312fad5ea37377262c12d92ca0908)]:
212
+ - @mastra/core@1.0.0-beta.4
213
+
214
+ ## 1.0.0-beta.3
215
+
216
+ ### Patch Changes
217
+
218
+ - Updated dependencies [[`2319326`](https://github.com/mastra-ai/mastra/commit/2319326f8c64e503a09bbcf14be2dd65405445e0), [`dbd649b`](https://github.com/mastra-ai/mastra/commit/dbd649b2f9cff28fe5440a032bfb1fc977dc2e87), [`d629361`](https://github.com/mastra-ai/mastra/commit/d629361a60f6565b5bfb11976fdaf7308af858e2), [`08c31c1`](https://github.com/mastra-ai/mastra/commit/08c31c188ebccd598acaf55e888b6397d01f7eae), [`fd3d338`](https://github.com/mastra-ai/mastra/commit/fd3d338a2c362174ed5b383f1f011ad9fb0302aa), [`c30400a`](https://github.com/mastra-ai/mastra/commit/c30400a49b994b1b97256fe785eb6c906fc2b232), [`69e0a87`](https://github.com/mastra-ai/mastra/commit/69e0a878896a2da9494945d86e056a5f8f05b851), [`01f8878`](https://github.com/mastra-ai/mastra/commit/01f88783de25e4de048c1c8aace43e26373c6ea5), [`4c77209`](https://github.com/mastra-ai/mastra/commit/4c77209e6c11678808b365d545845918c40045c8), [`d827d08`](https://github.com/mastra-ai/mastra/commit/d827d0808ffe1f3553a84e975806cc989b9735dd), [`23c10a1`](https://github.com/mastra-ai/mastra/commit/23c10a1efdd9a693c405511ab2dc8a1236603162), [`676ccc7`](https://github.com/mastra-ai/mastra/commit/676ccc7fe92468d2d45d39c31a87825c89fd1ea0), [`c10398d`](https://github.com/mastra-ai/mastra/commit/c10398d5b88f1d4af556f4267ff06f1d11e89179), [`00c2387`](https://github.com/mastra-ai/mastra/commit/00c2387f5f04a365316f851e58666ac43f8c4edf), [`ad6250d`](https://github.com/mastra-ai/mastra/commit/ad6250dbdaad927e29f74a27b83f6c468b50a705), [`3a73998`](https://github.com/mastra-ai/mastra/commit/3a73998fa4ebeb7f3dc9301afe78095fc63e7999), [`e16d553`](https://github.com/mastra-ai/mastra/commit/e16d55338403c7553531cc568125c63d53653dff), [`4d59f58`](https://github.com/mastra-ai/mastra/commit/4d59f58de2d90d6e2810a19d4518e38ddddb9038), [`e1bb9c9`](https://github.com/mastra-ai/mastra/commit/e1bb9c94b4eb68b019ae275981be3feb769b5365), [`351a11f`](https://github.com/mastra-ai/mastra/commit/351a11fcaf2ed1008977fa9b9a489fc422e51cd4)]:
219
+ - @mastra/core@1.0.0-beta.3
220
+ - @mastra/rag@2.0.0-beta.1
221
+ - @mastra/libsql@1.0.0-beta.1
222
+ - @mastra/memory@1.0.0-beta.1
223
+
224
+ ## 1.0.0-beta.2
225
+
226
+ ### Patch Changes
227
+
228
+ - Updated dependencies [[`465ac05`](https://github.com/mastra-ai/mastra/commit/465ac0526a91d175542091c675181f1a96c98c46)]:
229
+ - @mastra/core@1.0.0-beta.2
230
+
231
+ ## 1.0.0-beta.1
232
+
233
+ ### Patch Changes
234
+
235
+ - Updated dependencies [[`910db9e`](https://github.com/mastra-ai/mastra/commit/910db9e0312888495eb5617b567f247d03303814), [`e7266a2`](https://github.com/mastra-ai/mastra/commit/e7266a278db02035c97a5e9cd9d1669a6b7a535d)]:
236
+ - @mastra/core@1.0.0-beta.1
237
+
238
+ ## 1.0.0-beta.0
239
+
240
+ ### Major Changes
241
+
242
+ - **BREAKING:** Remove `getMessagesPaginated()` and add `perPage: false` support ([#9670](https://github.com/mastra-ai/mastra/pull/9670))
243
+
244
+ Removes deprecated `getMessagesPaginated()` method. The `listMessages()` API and score handlers now support `perPage: false` to fetch all records without pagination limits.
245
+
246
+ **Storage changes:**
247
+ - `StoragePagination.perPage` type changed from `number` to `number | false`
248
+ - All storage implementations support `perPage: false`:
249
+ - Memory: `listMessages()`
250
+ - Scores: `listScoresBySpan()`, `listScoresByRunId()`, `listScoresByExecutionId()`
251
+ - HTTP query parser accepts `"false"` string (e.g., `?perPage=false`)
252
+
253
+ **Memory changes:**
254
+ - `memory.query()` parameter type changed from `StorageGetMessagesArg` to `StorageListMessagesInput`
255
+ - Uses flat parameters (`page`, `perPage`, `include`, `filter`, `vectorSearchString`) instead of `selectBy` object
256
+
257
+ **Stricter validation:**
258
+ - `listMessages()` requires non-empty, non-whitespace `threadId` (throws error instead of returning empty results)
259
+
260
+ **Migration:**
261
+
262
+ ```typescript
263
+ // Storage/Memory: Replace getMessagesPaginated with listMessages
264
+ - storage.getMessagesPaginated({ threadId, selectBy: { pagination: { page: 0, perPage: 20 } } })
265
+ + storage.listMessages({ threadId, page: 0, perPage: 20 })
266
+ + storage.listMessages({ threadId, page: 0, perPage: false }) // Fetch all
267
+
268
+ // Memory: Replace selectBy with flat parameters
269
+ - memory.query({ threadId, selectBy: { last: 20, include: [...] } })
270
+ + memory.query({ threadId, perPage: 20, include: [...] })
271
+
272
+ // Client SDK
273
+ - thread.getMessagesPaginated({ selectBy: { pagination: { page: 0 } } })
274
+ + thread.listMessages({ page: 0, perPage: 20 })
275
+ ```
276
+
277
+ - # Major Changes ([#9695](https://github.com/mastra-ai/mastra/pull/9695))
278
+
279
+ ## Storage Layer
280
+
281
+ ### BREAKING: Removed `storage.getMessages()`
282
+
283
+ The `getMessages()` method has been removed from all storage implementations. Use `listMessages()` instead, which provides pagination support.
284
+
285
+ **Migration:**
286
+
287
+ ```typescript
288
+ // Before
289
+ const messages = await storage.getMessages({ threadId: 'thread-1' });
290
+
291
+ // After
292
+ const result = await storage.listMessages({
293
+ threadId: 'thread-1',
294
+ page: 0,
295
+ perPage: 50,
296
+ });
297
+ const messages = result.messages; // Access messages array
298
+ console.log(result.total); // Total count
299
+ console.log(result.hasMore); // Whether more pages exist
300
+ ```
301
+
302
+ ### Message ordering default
303
+
304
+ `listMessages()` defaults to ASC (oldest first) ordering by `createdAt`, matching the previous `getMessages()` behavior.
305
+
306
+ **To use DESC ordering (newest first):**
307
+
308
+ ```typescript
309
+ const result = await storage.listMessages({
310
+ threadId: 'thread-1',
311
+ orderBy: { field: 'createdAt', direction: 'DESC' },
312
+ });
313
+ ```
314
+
315
+ ## Client SDK
316
+
317
+ ### BREAKING: Renamed `client.getThreadMessages()` → `client.listThreadMessages()`
318
+
319
+ **Migration:**
320
+
321
+ ```typescript
322
+ // Before
323
+ const response = await client.getThreadMessages(threadId, { agentId });
324
+
325
+ // After
326
+ const response = await client.listThreadMessages(threadId, { agentId });
327
+ ```
328
+
329
+ The response format remains the same.
330
+
331
+ ## Type Changes
332
+
333
+ ### BREAKING: Removed `StorageGetMessagesArg` type
334
+
335
+ Use `StorageListMessagesInput` instead:
336
+
337
+ ```typescript
338
+ // Before
339
+ import type { StorageGetMessagesArg } from '@mastra/core';
340
+
341
+ // After
342
+ import type { StorageListMessagesInput } from '@mastra/core';
343
+ ```
344
+
345
+ - Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
346
+
347
+ - Remove `getThreadsByResourceId` and `getThreadsByResourceIdPaginated` methods from storage interfaces in favor of `listThreadsByResourceId`. The new method uses `offset`/`limit` pagination and a nested `orderBy` object structure (`{ field, direction }`). ([#9536](https://github.com/mastra-ai/mastra/pull/9536))
348
+
7
349
  - Removed old tracing code based on OpenTelemetry ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
8
350
 
351
+ - Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
352
+
353
+ - Remove legacy evals from Mastra ([#9491](https://github.com/mastra-ai/mastra/pull/9491))
354
+
9
355
  ### Patch Changes
10
356
 
11
- - Updated dependencies [[`f743dbb`](https://github.com/mastra-ai/mastra/commit/f743dbb8b40d1627b5c10c0e6fc154f4ebb6e394), [`0e8ed46`](https://github.com/mastra-ai/mastra/commit/0e8ed467c54d6901a6a365f270ec15d6faadb36c), [`6c049d9`](https://github.com/mastra-ai/mastra/commit/6c049d94063fdcbd5b81c4912a2bf82a92c9cc0b), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`9e1911d`](https://github.com/mastra-ai/mastra/commit/9e1911db2b4db85e0e768c3f15e0d61e319869f6), [`ebac155`](https://github.com/mastra-ai/mastra/commit/ebac15564a590117db7078233f927a7e28a85106), [`8940859`](https://github.com/mastra-ai/mastra/commit/89408593658199b4ad67f7b65e888f344e64a442), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`e629310`](https://github.com/mastra-ai/mastra/commit/e629310f1a73fa236d49ec7a1d1cceb6229dc7cc), [`9d819d5`](https://github.com/mastra-ai/mastra/commit/9d819d54b61481639f4008e4694791bddf187edd), [`a51cc81`](https://github.com/mastra-ai/mastra/commit/a51cc813e98fe115ef59df7de394fdbb9ffa7f9c), [`71c8d6c`](https://github.com/mastra-ai/mastra/commit/71c8d6c161253207b2b9588bdadb7eed604f7253), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`c576fc0`](https://github.com/mastra-ai/mastra/commit/c576fc0b100b2085afded91a37c97a0ea0ec09c7), [`57d157f`](https://github.com/mastra-ai/mastra/commit/57d157f0b163a95c3e6c9eae31bdb11d1bfc64f9), [`2a90c55`](https://github.com/mastra-ai/mastra/commit/2a90c55a86a9210697d5adaab5ee94584b079adc), [`ebac155`](https://github.com/mastra-ai/mastra/commit/ebac15564a590117db7078233f927a7e28a85106), [`d78b38d`](https://github.com/mastra-ai/mastra/commit/d78b38d898fce285260d3bbb4befade54331617f), [`c710c16`](https://github.com/mastra-ai/mastra/commit/c710c1652dccfdc4111c8412bca7a6bb1d48b441), [`cfae733`](https://github.com/mastra-ai/mastra/commit/cfae73394f4920635e6c919c8e95ff9a0788e2e5), [`e3dfda7`](https://github.com/mastra-ai/mastra/commit/e3dfda7b11bf3b8c4bb55637028befb5f387fc74), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`7b763e5`](https://github.com/mastra-ai/mastra/commit/7b763e52fc3eaf699c2a99f2adf418dd46e4e9a5), [`d36cfbb`](https://github.com/mastra-ai/mastra/commit/d36cfbbb6565ba5f827883cc9bb648eb14befdc1), [`3697853`](https://github.com/mastra-ai/mastra/commit/3697853deeb72017d90e0f38a93c1e29221aeca0), [`a534e95`](https://github.com/mastra-ai/mastra/commit/a534e9591f83b3cc1ebff99c67edf4cda7bf81d3), [`9d0e7fe`](https://github.com/mastra-ai/mastra/commit/9d0e7feca8ed98de959f53476ee1456073673348), [`53d927c`](https://github.com/mastra-ai/mastra/commit/53d927cc6f03bff33655b7e2b788da445a08731d), [`22f64bc`](https://github.com/mastra-ai/mastra/commit/22f64bc1d37149480b58bf2fefe35b79a1e3e7d5), [`bda6370`](https://github.com/mastra-ai/mastra/commit/bda637009360649aaf579919e7873e33553c273e), [`245820c`](https://github.com/mastra-ai/mastra/commit/245820cdea463218fd1c4e62eb2a349d6520fe71), [`c7f1f7d`](https://github.com/mastra-ai/mastra/commit/c7f1f7d24f61f247f018cc2d1f33bf63212959a7), [`2c4438b`](https://github.com/mastra-ai/mastra/commit/2c4438b87817ab7eed818c7990fef010475af1a3), [`2b8893c`](https://github.com/mastra-ai/mastra/commit/2b8893cb108ef9acb72ee7835cd625610d2c1a4a), [`8e5c75b`](https://github.com/mastra-ai/mastra/commit/8e5c75bdb1d08a42d45309a4c72def4b6890230f), [`fa8409b`](https://github.com/mastra-ai/mastra/commit/fa8409bc39cfd8ba6643b9db5269b90b22e2a2f7), [`173c535`](https://github.com/mastra-ai/mastra/commit/173c535c0645b0da404fe09f003778f0b0d4e019)]:
12
- - @mastra/core@0.0.0-bundle-recursion-20251030002519
13
- - @mastra/libsql@0.0.0-bundle-recursion-20251030002519
14
- - @mastra/memory@0.0.0-bundle-recursion-20251030002519
15
- - @mastra/rag@0.0.0-bundle-recursion-20251030002519
16
- - @mastra/fastembed@0.0.0-bundle-recursion-20251030002519
357
+ - Updated dependencies [[`39c9743`](https://github.com/mastra-ai/mastra/commit/39c97432d084294f8ba85fbf3ef28098ff21459e), [`f743dbb`](https://github.com/mastra-ai/mastra/commit/f743dbb8b40d1627b5c10c0e6fc154f4ebb6e394), [`fec5129`](https://github.com/mastra-ai/mastra/commit/fec5129de7fc64423ea03661a56cef31dc747a0d), [`0491e7c`](https://github.com/mastra-ai/mastra/commit/0491e7c9b714cb0ba22187ee062147ec2dd7c712), [`f6f4903`](https://github.com/mastra-ai/mastra/commit/f6f4903397314f73362061dc5a3e8e7c61ea34aa), [`0e8ed46`](https://github.com/mastra-ai/mastra/commit/0e8ed467c54d6901a6a365f270ec15d6faadb36c), [`735d8c1`](https://github.com/mastra-ai/mastra/commit/735d8c1c0d19fbc09e6f8b66cf41bc7655993838), [`6c049d9`](https://github.com/mastra-ai/mastra/commit/6c049d94063fdcbd5b81c4912a2bf82a92c9cc0b), [`2f897df`](https://github.com/mastra-ai/mastra/commit/2f897df208508f46f51b7625e5dd20c37f93e0e3), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`3443770`](https://github.com/mastra-ai/mastra/commit/3443770662df8eb24c9df3589b2792d78cfcb811), [`f0a07e0`](https://github.com/mastra-ai/mastra/commit/f0a07e0111b3307c5fabfa4094c5c2cfb734fbe6), [`aaa40e7`](https://github.com/mastra-ai/mastra/commit/aaa40e788628b319baa8e889407d11ad626547fa), [`1521d71`](https://github.com/mastra-ai/mastra/commit/1521d716e5daedc74690c983fbd961123c56756b), [`9e1911d`](https://github.com/mastra-ai/mastra/commit/9e1911db2b4db85e0e768c3f15e0d61e319869f6), [`ebac155`](https://github.com/mastra-ai/mastra/commit/ebac15564a590117db7078233f927a7e28a85106), [`dd1c38d`](https://github.com/mastra-ai/mastra/commit/dd1c38d1b75f1b695c27b40d8d9d6ed00d5e0f6f), [`5948e6a`](https://github.com/mastra-ai/mastra/commit/5948e6a5146c83666ba3f294b2be576c82a513fb), [`8940859`](https://github.com/mastra-ai/mastra/commit/89408593658199b4ad67f7b65e888f344e64a442), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`e629310`](https://github.com/mastra-ai/mastra/commit/e629310f1a73fa236d49ec7a1d1cceb6229dc7cc), [`844ea5d`](https://github.com/mastra-ai/mastra/commit/844ea5dc0c248961e7bf73629ae7dcff503e853c), [`4c6b492`](https://github.com/mastra-ai/mastra/commit/4c6b492c4dd591c6a592520c1f6855d6e936d71f), [`dff01d8`](https://github.com/mastra-ai/mastra/commit/dff01d81ce1f4e4087cfac20fa868e6db138dd14), [`9d819d5`](https://github.com/mastra-ai/mastra/commit/9d819d54b61481639f4008e4694791bddf187edd), [`a51cc81`](https://github.com/mastra-ai/mastra/commit/a51cc813e98fe115ef59df7de394fdbb9ffa7f9c), [`71c8d6c`](https://github.com/mastra-ai/mastra/commit/71c8d6c161253207b2b9588bdadb7eed604f7253), [`6179a9b`](https://github.com/mastra-ai/mastra/commit/6179a9ba36ffac326de3cc3c43cdc8028d37c251), [`00f4921`](https://github.com/mastra-ai/mastra/commit/00f4921dd2c91a1e5446799599ef7116a8214a1a), [`ca8041c`](https://github.com/mastra-ai/mastra/commit/ca8041cce0379fda22ed293a565bcb5b6ddca68a), [`7051bf3`](https://github.com/mastra-ai/mastra/commit/7051bf38b3b122a069008f861f7bfc004a6d9f6e), [`a8f1494`](https://github.com/mastra-ai/mastra/commit/a8f1494f4bbdc2770bcf327d4c7d869e332183f1), [`b88dd9d`](https://github.com/mastra-ai/mastra/commit/b88dd9dfd04a5f1a35d54f48eda944eac29923c2), [`0793497`](https://github.com/mastra-ai/mastra/commit/079349753620c40246ffd673e3f9d7d9820beff3), [`0d7618b`](https://github.com/mastra-ai/mastra/commit/0d7618bc650bf2800934b243eca5648f4aeed9c2), [`5df9cce`](https://github.com/mastra-ai/mastra/commit/5df9cce1a753438413f64c11eeef8f845745c2a8), [`a854ede`](https://github.com/mastra-ai/mastra/commit/a854ede62bf5ac0945a624ac48913dd69c73aabf), [`c576fc0`](https://github.com/mastra-ai/mastra/commit/c576fc0b100b2085afded91a37c97a0ea0ec09c7), [`3defc80`](https://github.com/mastra-ai/mastra/commit/3defc80cf2b88a1b7fc1cc4ddcb91e982a614609), [`16153fe`](https://github.com/mastra-ai/mastra/commit/16153fe7eb13c99401f48e6ca32707c965ee28b9), [`9f4a683`](https://github.com/mastra-ai/mastra/commit/9f4a6833e88b52574665c028fd5508ad5c2f6004), [`bc94344`](https://github.com/mastra-ai/mastra/commit/bc943444a1342d8a662151b7bce1df7dae32f59c), [`57d157f`](https://github.com/mastra-ai/mastra/commit/57d157f0b163a95c3e6c9eae31bdb11d1bfc64f9), [`903f67d`](https://github.com/mastra-ai/mastra/commit/903f67d184504a273893818c02b961f5423a79ad), [`2a90c55`](https://github.com/mastra-ai/mastra/commit/2a90c55a86a9210697d5adaab5ee94584b079adc), [`4c6b492`](https://github.com/mastra-ai/mastra/commit/4c6b492c4dd591c6a592520c1f6855d6e936d71f), [`eb09742`](https://github.com/mastra-ai/mastra/commit/eb09742197f66c4c38154c3beec78313e69760b2), [`ebac155`](https://github.com/mastra-ai/mastra/commit/ebac15564a590117db7078233f927a7e28a85106), [`96d35f6`](https://github.com/mastra-ai/mastra/commit/96d35f61376bc2b1bf148648a2c1985bd51bef55), [`5cbe88a`](https://github.com/mastra-ai/mastra/commit/5cbe88aefbd9f933bca669fd371ea36bf939ac6d), [`a1bd7b8`](https://github.com/mastra-ai/mastra/commit/a1bd7b8571db16b94eb01588f451a74758c96d65), [`d78b38d`](https://github.com/mastra-ai/mastra/commit/d78b38d898fce285260d3bbb4befade54331617f), [`0633100`](https://github.com/mastra-ai/mastra/commit/0633100a911ad22f5256471bdf753da21c104742), [`c710c16`](https://github.com/mastra-ai/mastra/commit/c710c1652dccfdc4111c8412bca7a6bb1d48b441), [`354ad0b`](https://github.com/mastra-ai/mastra/commit/354ad0b7b1b8183ac567f236a884fc7ede6d7138), [`cfae733`](https://github.com/mastra-ai/mastra/commit/cfae73394f4920635e6c919c8e95ff9a0788e2e5), [`e3dfda7`](https://github.com/mastra-ai/mastra/commit/e3dfda7b11bf3b8c4bb55637028befb5f387fc74), [`844ea5d`](https://github.com/mastra-ai/mastra/commit/844ea5dc0c248961e7bf73629ae7dcff503e853c), [`398fde3`](https://github.com/mastra-ai/mastra/commit/398fde3f39e707cda79372cdae8f9870e3b57c8d), [`f0f8f12`](https://github.com/mastra-ai/mastra/commit/f0f8f125c308f2d0fd36942ef652fd852df7522f), [`0d7618b`](https://github.com/mastra-ai/mastra/commit/0d7618bc650bf2800934b243eca5648f4aeed9c2), [`7b763e5`](https://github.com/mastra-ai/mastra/commit/7b763e52fc3eaf699c2a99f2adf418dd46e4e9a5), [`d36cfbb`](https://github.com/mastra-ai/mastra/commit/d36cfbbb6565ba5f827883cc9bb648eb14befdc1), [`3697853`](https://github.com/mastra-ai/mastra/commit/3697853deeb72017d90e0f38a93c1e29221aeca0), [`b2e45ec`](https://github.com/mastra-ai/mastra/commit/b2e45eca727a8db01a81ba93f1a5219c7183c839), [`d6d49f7`](https://github.com/mastra-ai/mastra/commit/d6d49f7b8714fa19a52ff9c7cf7fb7e73751901e), [`a534e95`](https://github.com/mastra-ai/mastra/commit/a534e9591f83b3cc1ebff99c67edf4cda7bf81d3), [`9d0e7fe`](https://github.com/mastra-ai/mastra/commit/9d0e7feca8ed98de959f53476ee1456073673348), [`53d927c`](https://github.com/mastra-ai/mastra/commit/53d927cc6f03bff33655b7e2b788da445a08731d), [`3f2faf2`](https://github.com/mastra-ai/mastra/commit/3f2faf2e2d685d6c053cc5af1bf9fedf267b2ce5), [`22f64bc`](https://github.com/mastra-ai/mastra/commit/22f64bc1d37149480b58bf2fefe35b79a1e3e7d5), [`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc), [`dff01d8`](https://github.com/mastra-ai/mastra/commit/dff01d81ce1f4e4087cfac20fa868e6db138dd14), [`b7959e6`](https://github.com/mastra-ai/mastra/commit/b7959e6e25a46b480f9ea2217c4c6c588c423791), [`bda6370`](https://github.com/mastra-ai/mastra/commit/bda637009360649aaf579919e7873e33553c273e), [`245820c`](https://github.com/mastra-ai/mastra/commit/245820cdea463218fd1c4e62eb2a349d6520fe71), [`d7acd8e`](https://github.com/mastra-ai/mastra/commit/d7acd8e987b5d7eff4fd98b0906c17c06a2e83d5), [`c7f1f7d`](https://github.com/mastra-ai/mastra/commit/c7f1f7d24f61f247f018cc2d1f33bf63212959a7), [`0bddc6d`](https://github.com/mastra-ai/mastra/commit/0bddc6d8dbd6f6008c0cba2e4960a2da75a55af1), [`735d8c1`](https://github.com/mastra-ai/mastra/commit/735d8c1c0d19fbc09e6f8b66cf41bc7655993838), [`acf322e`](https://github.com/mastra-ai/mastra/commit/acf322e0f1fd0189684cf529d91c694bea918a45), [`c942802`](https://github.com/mastra-ai/mastra/commit/c942802a477a925b01859a7b8688d4355715caaa), [`a0c8c1b`](https://github.com/mastra-ai/mastra/commit/a0c8c1b87d4fee252aebda73e8637fbe01d761c9), [`cc34739`](https://github.com/mastra-ai/mastra/commit/cc34739c34b6266a91bea561119240a7acf47887), [`c218bd3`](https://github.com/mastra-ai/mastra/commit/c218bd3759e32423735b04843a09404572631014), [`2c4438b`](https://github.com/mastra-ai/mastra/commit/2c4438b87817ab7eed818c7990fef010475af1a3), [`2b8893c`](https://github.com/mastra-ai/mastra/commit/2b8893cb108ef9acb72ee7835cd625610d2c1a4a), [`c218bd3`](https://github.com/mastra-ai/mastra/commit/c218bd3759e32423735b04843a09404572631014), [`8e5c75b`](https://github.com/mastra-ai/mastra/commit/8e5c75bdb1d08a42d45309a4c72def4b6890230f), [`e59e0d3`](https://github.com/mastra-ai/mastra/commit/e59e0d32afb5fcf2c9f3c00c8f81f6c21d3a63fa), [`fa8409b`](https://github.com/mastra-ai/mastra/commit/fa8409bc39cfd8ba6643b9db5269b90b22e2a2f7), [`173c535`](https://github.com/mastra-ai/mastra/commit/173c535c0645b0da404fe09f003778f0b0d4e019)]:
358
+ - @mastra/core@1.0.0-beta.0
359
+ - @mastra/libsql@1.0.0-beta.0
360
+ - @mastra/memory@1.0.0-beta.0
361
+ - @mastra/fastembed@1.0.0-beta.0
362
+ - @mastra/rag@2.0.0-beta.0
17
363
 
18
364
  ## 0.1.31
19
365
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/longmemeval",
3
- "version": "0.0.0-bundle-recursion-20251030002519",
3
+ "version": "0.0.0-bundle-studio-cloud-20251222034739",
4
4
  "description": "LongMemEval benchmark implementation for Mastra Memory",
5
5
  "dependencies": {
6
6
  "@ai-sdk/openai": "^1.3.23",
@@ -16,21 +16,23 @@
16
16
  "openai": "^4.73.1",
17
17
  "ora": "^8.1.1",
18
18
  "zod": "^3.23.8",
19
- "@mastra/core": "0.0.0-bundle-recursion-20251030002519",
20
- "@mastra/libsql": "0.0.0-bundle-recursion-20251030002519",
21
- "@mastra/memory": "0.0.0-bundle-recursion-20251030002519",
22
- "@mastra/rag": "1.3.3",
23
- "@mastra/fastembed": "0.0.0-bundle-recursion-20251030002519"
19
+ "@mastra/fastembed": "0.0.0-bundle-studio-cloud-20251222034739",
20
+ "@mastra/libsql": "0.0.0-bundle-studio-cloud-20251222034739",
21
+ "@mastra/memory": "0.0.0-bundle-studio-cloud-20251222034739",
22
+ "@mastra/rag": "0.0.0-bundle-studio-cloud-20251222034739",
23
+ "@mastra/core": "0.0.0-bundle-studio-cloud-20251222034739"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@ai-sdk/google": "^1.2.19",
27
- "@types/node": "^22.10.2",
27
+ "@types/node": "22.13.17",
28
+ "@vitest/coverage-v8": "4.0.12",
29
+ "@vitest/ui": "4.0.12",
28
30
  "tsx": "^4.19.2",
29
31
  "typescript": "^5.7.2",
30
- "vitest": "^2.1.8"
32
+ "vitest": "4.0.12"
31
33
  },
32
34
  "engines": {
33
- "node": ">=20"
35
+ "node": ">=22.13.0"
34
36
  },
35
37
  "homepage": "https://mastra.ai",
36
38
  "repository": {
@@ -24,7 +24,8 @@ interface TemplateDatabase {
24
24
  async function generateTemplate(question: LongMemEvalQuestion): Promise<string> {
25
25
  // Create a simple agent for template generation
26
26
  const agent = new Agent({
27
- name: 'template-generator',
27
+ id: 'template-generator',
28
+ name: 'Template Generator',
28
29
  instructions: `You are an expert at designing working memory templates for AI assistants.
29
30
 
30
31
  Given a question and answer from a conversation history benchmark, generate a working memory instruction that would help an AI assistant extract and save the specific information needed to answer the question correctly.
@@ -15,9 +15,10 @@ vi.mock('@ai-sdk/openai', () => ({
15
15
  }));
16
16
 
17
17
  // Mock the DatasetLoader
18
- vi.mock('../../data/loader', () => ({
19
- DatasetLoader: vi.fn().mockImplementation(() => ({
20
- loadDataset: vi.fn().mockResolvedValue([
18
+ vi.mock('../../data/loader', () => {
19
+ // Use a class for constructor (Vitest v4 requirement)
20
+ class MockDatasetLoader {
21
+ loadDataset = vi.fn().mockResolvedValue([
21
22
  {
22
23
  question_id: 'test-q1',
23
24
  question_type: 'single-session-user',
@@ -54,9 +55,13 @@ vi.mock('../../data/loader', () => ({
54
55
  ],
55
56
  answer_session_ids: ['session-3'],
56
57
  },
57
- ] as LongMemEvalQuestion[]),
58
- })),
59
- }));
58
+ ] as LongMemEvalQuestion[]);
59
+ }
60
+
61
+ return {
62
+ DatasetLoader: MockDatasetLoader,
63
+ };
64
+ });
60
65
 
61
66
  // Mock chalk and ora to avoid console output in tests
62
67
  vi.mock('chalk', () => ({
@@ -28,11 +28,16 @@ vi.mock('@ai-sdk/openai', () => ({
28
28
  }));
29
29
 
30
30
  // Mock the LongMemEvalMetric
31
- vi.mock('../../evaluation/longmemeval-metric', () => ({
32
- LongMemEvalMetric: vi.fn().mockImplementation(() => ({
33
- measure: vi.fn().mockResolvedValue({ score: 1 }), // Always returns correct
34
- })),
35
- }));
31
+ vi.mock('../../evaluation/longmemeval-metric', () => {
32
+ // Use a class for constructor (Vitest v4 requirement)
33
+ class MockLongMemEvalMetric {
34
+ measure = vi.fn().mockResolvedValue({ score: 1 }); // Always returns correct
35
+ }
36
+
37
+ return {
38
+ LongMemEvalMetric: MockLongMemEvalMetric,
39
+ };
40
+ });
36
41
 
37
42
  // Mock chalk and ora
38
43
  vi.mock('chalk', () => ({
@@ -148,7 +153,6 @@ describe('RunCommand', () => {
148
153
  ],
149
154
  mastra_resources: [],
150
155
  mastra_workflow_snapshot: [],
151
- mastra_evals: [],
152
156
  mastra_traces: [],
153
157
  }),
154
158
  );
@@ -225,7 +229,6 @@ describe('RunCommand', () => {
225
229
  ],
226
230
  mastra_resources: [],
227
231
  mastra_workflow_snapshot: [],
228
- mastra_evals: [],
229
232
  mastra_traces: [],
230
233
  }),
231
234
  );
@@ -322,7 +325,6 @@ describe('RunCommand', () => {
322
325
  ],
323
326
  mastra_resources: [],
324
327
  mastra_workflow_snapshot: [],
325
- mastra_evals: [],
326
328
  mastra_traces: [],
327
329
  }),
328
330
  );
@@ -475,7 +475,8 @@ export class PrepareCommand {
475
475
 
476
476
  // Create agent with appropriate model
477
477
  const agent = new Agent({
478
- name: 'prep-agent',
478
+ id: 'prep-agent',
479
+ name: 'Prep Agent',
479
480
  instructions:
480
481
  "You are a helpful assistant. Process and store conversation history. Only store working memory information if it's in the template. Other information is not relevant",
481
482
  model: model,
@@ -335,7 +335,8 @@ For example, if the user previously mentioned they prefer a specific software, t
335
335
  Be specific rather than generic when the user has expressed clear preferences in past conversations. If there is a clear preference, focus in on that, and do not add additional irrelevant information.`;
336
336
 
337
337
  const agent = new Agent({
338
- name: 'longmemeval-agent',
338
+ id: 'longmemeval-agent',
339
+ name: 'LongMemEval Agent',
339
340
  model: modelProvider,
340
341
  instructions: agentInstructions,
341
342
  memory,
@@ -354,7 +355,8 @@ Be specific rather than generic when the user has expressed clear preferences in
354
355
  });
355
356
 
356
357
  const evalAgent = new Agent({
357
- name: 'longmemeval-metric-agent',
358
+ id: 'longmemeval-metric-agent',
359
+ name: 'LongMemEval Metric Agent',
358
360
  model: retry4o.model,
359
361
  instructions: 'You are an evaluation assistant. Answer questions precisely and concisely.',
360
362
  });
@@ -117,9 +117,9 @@ describe('BenchmarkStore', () => {
117
117
  expect(restoredThread).toBeTruthy();
118
118
  expect(restoredThread?.title).toBe('Test Thread');
119
119
 
120
- const restoredMessages = await store2.getMessages({ threadId: 'test-thread-1' });
121
- expect(restoredMessages).toHaveLength(1);
122
- expect(restoredMessages[0].content).toBe('Hello');
120
+ const result = await store2.listMessages({ threadId: 'test-thread-1' });
121
+ expect(result.messages).toHaveLength(1);
122
+ expect(result.messages[0].content).toMatchObject({ text: 'Hello' });
123
123
  });
124
124
 
125
125
  it('should throw error if file does not exist', async () => {
@@ -184,24 +184,22 @@ describe('BenchmarkStore', () => {
184
184
  ],
185
185
  });
186
186
 
187
- // Query using selectBy.include to get messages from different threads
188
- const messages = await store.getMessages({
187
+ // Query using include to get messages from different threads
188
+ const result = await store.listMessages({
189
189
  threadId: 'thread-1',
190
- selectBy: {
191
- include: [
192
- {
193
- id: 'msg-2',
194
- threadId: 'thread-2', // Different thread!
195
- withPreviousMessages: 0,
196
- withNextMessages: 1,
197
- },
198
- ],
199
- },
190
+ include: [
191
+ {
192
+ id: 'msg-2',
193
+ threadId: 'thread-2', // Different thread!
194
+ withPreviousMessages: 0,
195
+ withNextMessages: 1,
196
+ },
197
+ ],
200
198
  });
201
199
 
202
- expect(messages).toHaveLength(2);
203
- expect(messages[0].content).toBe('Message in thread 2');
204
- expect(messages[1].content).toBe('Response in thread 2');
200
+ expect(result.messages).toHaveLength(2);
201
+ expect(result.messages[0].content).toMatchObject({ text: 'Message in thread 2' });
202
+ expect(result.messages[1].content).toMatchObject({ text: 'Response in thread 2' });
205
203
  });
206
204
  });
207
205
 
@@ -260,19 +258,11 @@ describe('BenchmarkStore', () => {
260
258
 
261
259
  describe('getting messages', () => {
262
260
  it('should throw when threadId is an empty string or whitespace only', async () => {
263
- await expect(() => store.getMessages({ threadId: '' })).rejects.toThrowError(
264
- 'threadId must be a non-empty string',
265
- );
266
-
267
- await expect(() => store.getMessagesPaginated({ threadId: '' })).rejects.toThrowError(
268
- 'threadId must be a non-empty string',
269
- );
270
-
271
- await expect(() => store.getMessages({ threadId: ' ' })).rejects.toThrowError(
261
+ await expect(() => store.listMessages({ threadId: '' })).rejects.toThrowError(
272
262
  'threadId must be a non-empty string',
273
263
  );
274
264
 
275
- await expect(() => store.getMessagesPaginated({ threadId: ' ' })).rejects.toThrowError(
265
+ await expect(() => store.listMessages({ threadId: ' ' })).rejects.toThrowError(
276
266
  'threadId must be a non-empty string',
277
267
  );
278
268
  });
@@ -1,16 +1,17 @@
1
1
  import { MastraStorage } from '@mastra/core/storage';
2
2
  import { MessageList } from '@mastra/core/agent';
3
- import type { MastraMessageV2 } from '@mastra/core/agent';
4
- import type { MastraMessageV1, StorageThreadType } from '@mastra/core/memory';
3
+ import type { MastraMessageV1, MastraDBMessage, StorageThreadType } from '@mastra/core/memory';
5
4
  import type {
6
5
  TABLE_NAMES,
7
6
  StorageColumn,
8
- StorageGetMessagesArg,
9
7
  StorageResourceType,
10
- EvalRow,
11
8
  WorkflowRun,
12
9
  WorkflowRuns,
13
- PaginationInfo,
10
+ StorageListWorkflowRunsInput,
11
+ StorageListThreadsByResourceIdInput,
12
+ StorageListThreadsByResourceIdOutput,
13
+ StorageListMessagesInput,
14
+ StorageListMessagesOutput,
14
15
  } from '@mastra/core/storage';
15
16
  import { writeFile, readFile } from 'fs/promises';
16
17
  import { existsSync } from 'fs';
@@ -20,7 +21,6 @@ type DBMode = 'read' | 'read-write';
20
21
  export class BenchmarkStore extends MastraStorage {
21
22
  private data: Record<TABLE_NAMES, Map<string, any>> = {
22
23
  mastra_workflow_snapshot: new Map(),
23
- mastra_evals: new Map(),
24
24
  mastra_messages: new Map(),
25
25
  mastra_threads: new Map(),
26
26
  mastra_traces: new Map(),
@@ -78,16 +78,6 @@ export class BenchmarkStore extends MastraStorage {
78
78
  return thread || null;
79
79
  }
80
80
 
81
- async getThreadsByResourceId({ resourceId }: { resourceId: string }): Promise<StorageThreadType[]> {
82
- const threads: StorageThreadType[] = [];
83
- for (const thread of this.data.mastra_threads.values()) {
84
- if (thread.resourceId === resourceId) {
85
- threads.push(thread);
86
- }
87
- }
88
- return threads;
89
- }
90
-
91
81
  async saveThread({ thread }: { thread: StorageThreadType }): Promise<StorageThreadType> {
92
82
  this.data.mastra_threads.set(thread.id, thread);
93
83
  return thread;
@@ -176,76 +166,11 @@ export class BenchmarkStore extends MastraStorage {
176
166
  return resource;
177
167
  }
178
168
 
179
- async getMessages(args: StorageGetMessagesArg & { format?: 'v1' }): Promise<MastraMessageV1[]>;
180
- async getMessages(args: StorageGetMessagesArg & { format: 'v2' }): Promise<MastraMessageV2[]>;
181
- async getMessages(
182
- args: StorageGetMessagesArg & { format?: 'v1' | 'v2' },
183
- ): Promise<MastraMessageV1[] | MastraMessageV2[]> {
184
- const { threadId, resourceId, selectBy, format = 'v1' } = args;
185
- if (!threadId.trim()) throw new Error('threadId must be a non-empty string');
186
-
187
- let messages: any[] = [];
188
- const includedMessageIds = new Set<string>();
189
-
190
- // First, handle selectBy.include for cross-thread queries (resource scope support)
191
- if (selectBy?.include?.length) {
192
- for (const inc of selectBy.include) {
193
- // Use the included threadId if provided (resource scope), otherwise use main threadId
194
- const queryThreadId = inc.threadId || threadId;
195
-
196
- // Get the target message and surrounding context
197
- const threadMessages = Array.from(this.data.mastra_messages.values())
198
- .filter((msg: any) => msg.threadId === queryThreadId)
199
- .sort((a: any, b: any) => new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime());
200
-
201
- const targetIndex = threadMessages.findIndex((msg: any) => msg.id === inc.id);
202
-
203
- if (targetIndex >= 0) {
204
- const startIdx = Math.max(0, targetIndex - (inc.withPreviousMessages || 0));
205
- const endIdx = Math.min(threadMessages.length, targetIndex + (inc.withNextMessages || 0) + 1);
206
-
207
- for (let i = startIdx; i < endIdx; i++) {
208
- includedMessageIds.add(threadMessages[i].id);
209
- }
210
- }
211
- }
212
- }
213
-
214
- // Get base messages for the thread
215
- let baseMessages: any[] = [];
216
- if (threadId || resourceId) {
217
- baseMessages = Array.from(this.data.mastra_messages.values()).filter((msg: any) => {
218
- if (threadId && msg.threadId !== threadId) return false;
219
- if (resourceId && msg.resourceId !== resourceId) return false;
220
- return true;
221
- });
222
-
223
- // Apply selectBy.last to base messages only
224
- if (selectBy?.last) {
225
- // Sort first to ensure we get the actual last messages
226
- baseMessages.sort((a: any, b: any) => new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime());
227
- baseMessages = baseMessages.slice(-selectBy.last);
228
- }
229
- }
230
-
231
- // Combine base messages with included messages
232
- const baseMessageIds = new Set(baseMessages.map((m: any) => m.id));
233
- const allMessageIds = new Set([...baseMessageIds, ...includedMessageIds]);
234
-
235
- // Get all unique messages
236
- messages = Array.from(this.data.mastra_messages.values()).filter((msg: any) => allMessageIds.has(msg.id));
237
- // Sort by createdAt
238
- messages.sort((a: any, b: any) => new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime());
239
-
240
- const list = new MessageList().add(messages, 'memory');
241
- return format === 'v2' ? list.get.all.v2() : list.get.all.v1();
242
- }
243
-
244
169
  async saveMessages(args: { messages: MastraMessageV1[]; format?: undefined | 'v1' }): Promise<MastraMessageV1[]>;
245
- async saveMessages(args: { messages: MastraMessageV2[]; format: 'v2' }): Promise<MastraMessageV2[]>;
170
+ async saveMessages(args: { messages: MastraDBMessage[]; format: 'v2' }): Promise<MastraDBMessage[]>;
246
171
  async saveMessages(
247
- args: { messages: MastraMessageV1[]; format?: undefined | 'v1' } | { messages: MastraMessageV2[]; format: 'v2' },
248
- ): Promise<MastraMessageV2[] | MastraMessageV1[]> {
172
+ args: { messages: MastraMessageV1[]; format?: undefined | 'v1' } | { messages: MastraDBMessage[]; format: 'v2' },
173
+ ): Promise<MastraDBMessage[] | MastraMessageV1[]> {
249
174
  if (this.mode === `read`) return [];
250
175
 
251
176
  const { messages, format = 'v1' } = args;
@@ -255,11 +180,11 @@ export class BenchmarkStore extends MastraStorage {
255
180
  }
256
181
 
257
182
  const list = new MessageList().add(messages, 'memory');
258
- return format === 'v2' ? list.get.all.v2() : list.get.all.v1();
183
+ return format === 'v2' ? list.get.all.db() : list.get.all.v1();
259
184
  }
260
185
 
261
- async updateMessages(args: { messages: Partial<MastraMessageV2> & { id: string }[] }): Promise<MastraMessageV2[]> {
262
- const updatedMessages: MastraMessageV2[] = [];
186
+ async updateMessages(args: { messages: Partial<MastraDBMessage> & { id: string }[] }): Promise<MastraDBMessage[]> {
187
+ const updatedMessages: MastraDBMessage[] = [];
263
188
 
264
189
  if (this.mode === `read`) return [];
265
190
 
@@ -331,21 +256,14 @@ export class BenchmarkStore extends MastraStorage {
331
256
  return evals as EvalRow[];
332
257
  }
333
258
 
334
- async getWorkflowRuns({
259
+ async listWorkflowRuns({
335
260
  workflowName,
336
261
  fromDate,
337
262
  toDate,
338
263
  limit,
339
264
  offset,
340
265
  resourceId,
341
- }: {
342
- workflowName?: string;
343
- fromDate?: Date;
344
- toDate?: Date;
345
- limit?: number;
346
- offset?: number;
347
- resourceId?: string;
348
- } = {}): Promise<WorkflowRuns> {
266
+ }: StorageListWorkflowRunsInput = {}): Promise<WorkflowRuns> {
349
267
  let runs = Array.from(this.data.mastra_workflow_snapshot.values());
350
268
 
351
269
  if (workflowName) runs = runs.filter((run: any) => run.workflow_name === workflowName);
@@ -402,49 +320,107 @@ export class BenchmarkStore extends MastraStorage {
402
320
  return parsedRun as WorkflowRun;
403
321
  }
404
322
 
405
- async getThreadsByResourceIdPaginated(args: {
406
- resourceId: string;
407
- page: number;
408
- perPage: number;
409
- }): Promise<PaginationInfo & { threads: StorageThreadType[] }> {
410
- const allThreads = await this.getThreadsByResourceId({ resourceId: args.resourceId });
411
- const start = args.page * args.perPage;
412
- const threads = allThreads.slice(start, start + args.perPage);
323
+ async listThreadsByResourceId(
324
+ args: StorageListThreadsByResourceIdInput,
325
+ ): Promise<StorageListThreadsByResourceIdOutput> {
326
+ const allThreads: StorageThreadType[] = [];
327
+ for (const thread of this.data.mastra_threads.values()) {
328
+ if (thread.resourceId === args.resourceId) {
329
+ allThreads.push(thread);
330
+ }
331
+ }
332
+ const start = args.offset * args.limit;
333
+ const threads = allThreads.slice(start, start + args.limit);
413
334
 
414
335
  return {
415
336
  threads,
416
337
  total: allThreads.length,
417
- page: args.page,
418
- perPage: args.perPage,
419
- hasMore: allThreads.length > (args.page + 1) * args.perPage,
338
+ page: args.offset,
339
+ perPage: args.limit,
340
+ hasMore: allThreads.length > (args.offset + 1) * args.limit,
420
341
  };
421
342
  }
422
343
 
423
- async getMessagesPaginated(
424
- args: StorageGetMessagesArg & { format?: 'v1' | 'v2' },
425
- ): Promise<PaginationInfo & { messages: MastraMessageV1[] | MastraMessageV2[] }> {
426
- const { threadId, selectBy, format = 'v1' } = args;
344
+ async listMessages(args: StorageListMessagesInput): Promise<StorageListMessagesOutput> {
345
+ const { threadId, page = 0, perPage = 40, resourceId, filter, include, orderBy } = args;
427
346
  if (!threadId.trim()) throw new Error('threadId must be a non-empty string');
428
347
 
429
- const { page = 0, perPage = 40 } = selectBy?.pagination || {};
348
+ let messages: any[] = [];
349
+ const includedMessageIds = new Set<string>();
430
350
 
431
- // Get all messages
432
- const allMessages = await this.getMessages({
433
- threadId,
434
- selectBy: { ...selectBy, pagination: undefined },
435
- format: format as any,
436
- } as any);
351
+ // Handle include for cross-thread queries (resource scope support)
352
+ if (include?.length) {
353
+ for (const inc of include) {
354
+ // Use the included threadId if provided (resource scope), otherwise use main threadId
355
+ const queryThreadId = inc.threadId || threadId;
356
+
357
+ // Get the target message and surrounding context
358
+ const threadMessages = Array.from(this.data.mastra_messages.values())
359
+ .filter((msg: any) => msg.threadId === queryThreadId)
360
+ .sort((a: any, b: any) => new Date(a.createdAt).getTime() - new Date(b.createdAt).getTime());
361
+
362
+ const targetIndex = threadMessages.findIndex((msg: any) => msg.id === inc.id);
363
+
364
+ if (targetIndex >= 0) {
365
+ const startIdx = Math.max(0, targetIndex - (inc.withPreviousMessages || 0));
366
+ const endIdx = Math.min(threadMessages.length, targetIndex + (inc.withNextMessages || 0) + 1);
367
+
368
+ for (let i = startIdx; i < endIdx; i++) {
369
+ includedMessageIds.add(threadMessages[i].id);
370
+ }
371
+ }
372
+ }
373
+ }
374
+
375
+ // Get base messages for the thread
376
+ const baseMessages = Array.from(this.data.mastra_messages.values()).filter((msg: any) => {
377
+ if (msg.threadId !== threadId) return false;
378
+ if (resourceId && msg.resourceId !== resourceId) return false;
379
+ return true;
380
+ });
381
+
382
+ // Combine base messages with included messages
383
+ const baseMessageIds = new Set(baseMessages.map((m: any) => m.id));
384
+ const allMessageIds = new Set([...baseMessageIds, ...includedMessageIds]);
385
+
386
+ // Get all unique messages and convert to v2 format
387
+ const allMessages = Array.from(this.data.mastra_messages.values()).filter((msg: any) => allMessageIds.has(msg.id));
388
+ const list = new MessageList().add(allMessages, 'memory');
389
+ let filteredMessages = list.get.all.db();
390
+
391
+ // Apply date filters
392
+ if (filter?.dateRange?.start) {
393
+ filteredMessages = filteredMessages.filter((m: any) => new Date(m.createdAt) >= filter.dateRange!.start!);
394
+ }
395
+ if (filter?.dateRange?.end) {
396
+ filteredMessages = filteredMessages.filter((m: any) => new Date(m.createdAt) <= filter.dateRange!.end!);
397
+ }
398
+
399
+ // Apply ordering - default to ASC by createdAt
400
+ const sortField = orderBy?.field || 'createdAt';
401
+ const sortDirection = orderBy?.direction || 'ASC';
402
+ const direction = sortDirection === 'ASC' ? 1 : -1;
403
+
404
+ filteredMessages.sort((a: any, b: any) => {
405
+ const aVal = a[sortField];
406
+ const bVal = b[sortField];
407
+ if (aVal instanceof Date && bVal instanceof Date) {
408
+ return direction * (aVal.getTime() - bVal.getTime());
409
+ }
410
+ return direction * (aVal < bVal ? -1 : aVal > bVal ? 1 : 0);
411
+ });
437
412
 
438
413
  // Apply pagination
439
- const start = page * perPage;
440
- const messages = allMessages.slice(start, start + perPage);
414
+ const normalizedPerPage = perPage === false ? filteredMessages.length : perPage;
415
+ const start = perPage === false ? 0 : page * normalizedPerPage;
416
+ messages = filteredMessages.slice(start, start + normalizedPerPage);
441
417
 
442
418
  return {
443
- messages,
444
- total: allMessages.length,
419
+ messages: messages as MastraDBMessage[],
420
+ total: filteredMessages.length,
445
421
  page,
446
- perPage,
447
- hasMore: allMessages.length > (page + 1) * perPage,
422
+ perPage: perPage === false ? false : normalizedPerPage,
423
+ hasMore: perPage === false ? false : filteredMessages.length > (page + 1) * normalizedPerPage,
448
424
  };
449
425
  }
450
426