@mastra/lance 0.0.0-update-scorers-api-20250801170445 → 0.0.0-vector-extension-schema-20250922130418
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 +313 -3
- package/README.md +3 -3
- package/dist/index.cjs +133 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +133 -33
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/memory/index.d.ts +10 -1
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/operations/index.d.ts.map +1 -1
- package/dist/storage/domains/scores/index.d.ts +5 -2
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/domains/traces/index.d.ts +1 -1
- package/dist/storage/domains/utils.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +21 -2
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +34 -4
- package/dist/storage/index.d.ts.map +1 -1
- package/dist/vector/index.d.ts +3 -3
- package/dist/vector/index.d.ts.map +1 -1
- package/package.json +22 -8
- package/eslint.config.js +0 -6
- package/src/index.ts +0 -2
- package/src/storage/domains/legacy-evals/index.ts +0 -156
- package/src/storage/domains/memory/index.ts +0 -947
- package/src/storage/domains/operations/index.ts +0 -489
- package/src/storage/domains/scores/index.ts +0 -221
- package/src/storage/domains/traces/index.ts +0 -212
- package/src/storage/domains/utils.ts +0 -158
- package/src/storage/domains/workflows/index.ts +0 -207
- package/src/storage/index.test.ts +0 -10
- package/src/storage/index.ts +0 -442
- package/src/vector/filter.test.ts +0 -295
- package/src/vector/filter.ts +0 -443
- package/src/vector/index.test.ts +0 -1493
- package/src/vector/index.ts +0 -941
- package/src/vector/types.ts +0 -16
- package/tsconfig.build.json +0 -9
- package/tsconfig.json +0 -5
- package/tsup.config.ts +0 -22
- package/vitest.config.ts +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,321 @@
|
|
|
1
1
|
# @mastra/lance
|
|
2
2
|
|
|
3
|
-
## 0.0.0-
|
|
3
|
+
## 0.0.0-vector-extension-schema-20250922130418
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
7
|
+
- Update Peerdeps for packages based on core minor bump ([#8025](https://github.com/mastra-ai/mastra/pull/8025))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`cf34503`](https://github.com/mastra-ai/mastra/commit/cf345031de4e157f29087946449e60b965e9c8a9), [`6b4b1e4`](https://github.com/mastra-ai/mastra/commit/6b4b1e4235428d39e51cbda9832704c0ba70ab32), [`3469fca`](https://github.com/mastra-ai/mastra/commit/3469fca7bb7e5e19369ff9f7044716a5e4b02585), [`a61f23f`](https://github.com/mastra-ai/mastra/commit/a61f23fbbca4b88b763d94f1d784c47895ed72d7), [`d1dc606`](https://github.com/mastra-ai/mastra/commit/d1dc6067b0557a71190b68d56ee15b48c26d2411), [`c45298a`](https://github.com/mastra-ai/mastra/commit/c45298a0a0791db35cf79f1199d77004da0704cb), [`c4a8204`](https://github.com/mastra-ai/mastra/commit/c4a82046bfd241d6044e234bc5917d5a01fe6b55), [`d3bd4d4`](https://github.com/mastra-ai/mastra/commit/d3bd4d482a685bbb67bfa89be91c90dca3fa71ad)]:
|
|
10
|
+
- @mastra/core@0.0.0-vector-extension-schema-20250922130418
|
|
11
|
+
|
|
12
|
+
## 0.3.1
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- clean up console logs in monorepo ([#7926](https://github.com/mastra-ai/mastra/pull/7926))
|
|
17
|
+
|
|
18
|
+
- Update peerdep of @mastra/core ([#7619](https://github.com/mastra-ai/mastra/pull/7619))
|
|
19
|
+
|
|
20
|
+
- Add resource id to workflow run snapshots ([#7740](https://github.com/mastra-ai/mastra/pull/7740))
|
|
21
|
+
|
|
22
|
+
- Updated dependencies [[`197cbb2`](https://github.com/mastra-ai/mastra/commit/197cbb248fc8cb4bbf61bf70b770f1388b445df2), [`a1bb887`](https://github.com/mastra-ai/mastra/commit/a1bb887e8bfae44230f487648da72e96ef824561), [`6590763`](https://github.com/mastra-ai/mastra/commit/65907630ef4bf4127067cecd1cb21b56f55d5f1b), [`fb84c21`](https://github.com/mastra-ai/mastra/commit/fb84c21859d09bdc8f158bd5412bdc4b5835a61c), [`5802bf5`](https://github.com/mastra-ai/mastra/commit/5802bf57f6182e4b67c28d7d91abed349a8d14f3), [`5bda53a`](https://github.com/mastra-ai/mastra/commit/5bda53a9747bfa7d876d754fc92c83a06e503f62), [`c2eade3`](https://github.com/mastra-ai/mastra/commit/c2eade3508ef309662f065e5f340d7840295dd53), [`f26a8fd`](https://github.com/mastra-ai/mastra/commit/f26a8fd99fcb0497a5d86c28324430d7f6a5fb83), [`222965a`](https://github.com/mastra-ai/mastra/commit/222965a98ce8197b86673ec594244650b5960257), [`6047778`](https://github.com/mastra-ai/mastra/commit/6047778e501df460648f31decddf8e443f36e373), [`a0f5f1c`](https://github.com/mastra-ai/mastra/commit/a0f5f1ca39c3c5c6d26202e9fcab986b4fe14568), [`9d4fc09`](https://github.com/mastra-ai/mastra/commit/9d4fc09b2ad55caa7738c7ceb3a905e454f74cdd), [`05c7abf`](https://github.com/mastra-ai/mastra/commit/05c7abfe105a015b7760c9bf33ff4419727502a0), [`0324ceb`](https://github.com/mastra-ai/mastra/commit/0324ceb8af9d16c12a531f90e575f6aab797ac81), [`d75ccf0`](https://github.com/mastra-ai/mastra/commit/d75ccf06dfd2582b916aa12624e3cd61b279edf1), [`0f9d227`](https://github.com/mastra-ai/mastra/commit/0f9d227890a98db33865abbea39daf407cd55ef7), [`b356f5f`](https://github.com/mastra-ai/mastra/commit/b356f5f7566cb3edb755d91f00b72fc1420b2a37), [`de056a0`](https://github.com/mastra-ai/mastra/commit/de056a02cbb43f6aa0380ab2150ea404af9ec0dd), [`f5ce05f`](https://github.com/mastra-ai/mastra/commit/f5ce05f831d42c69559bf4c0fdb46ccb920fc3a3), [`60c9cec`](https://github.com/mastra-ai/mastra/commit/60c9cec7048a79a87440f7840c383875bd710d93), [`c93532a`](https://github.com/mastra-ai/mastra/commit/c93532a340b80e4dd946d4c138d9381de5f70399), [`6cb1fcb`](https://github.com/mastra-ai/mastra/commit/6cb1fcbc8d0378ffed0d17784c96e68f30cb0272), [`aee4f00`](https://github.com/mastra-ai/mastra/commit/aee4f00e61e1a42e81a6d74ff149dbe69e32695a), [`9f6f30f`](https://github.com/mastra-ai/mastra/commit/9f6f30f04ec6648bbca798ea8aad59317c40d8db), [`547c621`](https://github.com/mastra-ai/mastra/commit/547c62104af3f7a551b3754e9cbdf0a3fbba15e4), [`897995e`](https://github.com/mastra-ai/mastra/commit/897995e630d572fe2891e7ede817938cabb43251), [`0fed8f2`](https://github.com/mastra-ai/mastra/commit/0fed8f2aa84b167b3415ea6f8f70755775132c8d), [`4f9ea8c`](https://github.com/mastra-ai/mastra/commit/4f9ea8c95ea74ba9abbf3b2ab6106c7d7bc45689), [`1a1fbe6`](https://github.com/mastra-ai/mastra/commit/1a1fbe66efb7d94abc373ed0dd9676adb8122454), [`d706fad`](https://github.com/mastra-ai/mastra/commit/d706fad6e6e4b72357b18d229ba38e6c913c0e70), [`87fd07f`](https://github.com/mastra-ai/mastra/commit/87fd07ff35387a38728967163460231b5d33ae3b), [`5c3768f`](https://github.com/mastra-ai/mastra/commit/5c3768fa959454232ad76715c381f4aac00c6881), [`2685a78`](https://github.com/mastra-ai/mastra/commit/2685a78f224b8b04e20d4fab5ac1adb638190071), [`36f39c0`](https://github.com/mastra-ai/mastra/commit/36f39c00dc794952dc3c11aab91c2fa8bca74b11), [`239b5a4`](https://github.com/mastra-ai/mastra/commit/239b5a497aeae2e8b4d764f46217cfff2284788e), [`8a3f5e4`](https://github.com/mastra-ai/mastra/commit/8a3f5e4212ec36b302957deb4bd47005ab598382)]:
|
|
23
|
+
- @mastra/core@0.17.0
|
|
24
|
+
|
|
25
|
+
## 0.3.1-alpha.2
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- clean up console logs in monorepo ([#7926](https://github.com/mastra-ai/mastra/pull/7926))
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [[`197cbb2`](https://github.com/mastra-ai/mastra/commit/197cbb248fc8cb4bbf61bf70b770f1388b445df2), [`6590763`](https://github.com/mastra-ai/mastra/commit/65907630ef4bf4127067cecd1cb21b56f55d5f1b), [`c2eade3`](https://github.com/mastra-ai/mastra/commit/c2eade3508ef309662f065e5f340d7840295dd53), [`222965a`](https://github.com/mastra-ai/mastra/commit/222965a98ce8197b86673ec594244650b5960257), [`0324ceb`](https://github.com/mastra-ai/mastra/commit/0324ceb8af9d16c12a531f90e575f6aab797ac81), [`0f9d227`](https://github.com/mastra-ai/mastra/commit/0f9d227890a98db33865abbea39daf407cd55ef7), [`de056a0`](https://github.com/mastra-ai/mastra/commit/de056a02cbb43f6aa0380ab2150ea404af9ec0dd), [`c93532a`](https://github.com/mastra-ai/mastra/commit/c93532a340b80e4dd946d4c138d9381de5f70399), [`6cb1fcb`](https://github.com/mastra-ai/mastra/commit/6cb1fcbc8d0378ffed0d17784c96e68f30cb0272), [`2685a78`](https://github.com/mastra-ai/mastra/commit/2685a78f224b8b04e20d4fab5ac1adb638190071), [`239b5a4`](https://github.com/mastra-ai/mastra/commit/239b5a497aeae2e8b4d764f46217cfff2284788e)]:
|
|
32
|
+
- @mastra/core@0.17.0-alpha.6
|
|
33
|
+
|
|
34
|
+
## 0.3.1-alpha.1
|
|
35
|
+
|
|
36
|
+
### Patch Changes
|
|
37
|
+
|
|
38
|
+
- Update peerdep of @mastra/core ([#7619](https://github.com/mastra-ai/mastra/pull/7619))
|
|
39
|
+
|
|
40
|
+
- Updated dependencies [[`a1bb887`](https://github.com/mastra-ai/mastra/commit/a1bb887e8bfae44230f487648da72e96ef824561), [`a0f5f1c`](https://github.com/mastra-ai/mastra/commit/a0f5f1ca39c3c5c6d26202e9fcab986b4fe14568), [`b356f5f`](https://github.com/mastra-ai/mastra/commit/b356f5f7566cb3edb755d91f00b72fc1420b2a37), [`f5ce05f`](https://github.com/mastra-ai/mastra/commit/f5ce05f831d42c69559bf4c0fdb46ccb920fc3a3), [`9f6f30f`](https://github.com/mastra-ai/mastra/commit/9f6f30f04ec6648bbca798ea8aad59317c40d8db), [`d706fad`](https://github.com/mastra-ai/mastra/commit/d706fad6e6e4b72357b18d229ba38e6c913c0e70), [`5c3768f`](https://github.com/mastra-ai/mastra/commit/5c3768fa959454232ad76715c381f4aac00c6881), [`8a3f5e4`](https://github.com/mastra-ai/mastra/commit/8a3f5e4212ec36b302957deb4bd47005ab598382)]:
|
|
41
|
+
- @mastra/core@0.17.0-alpha.3
|
|
42
|
+
|
|
43
|
+
## 0.3.1-alpha.0
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- Add resource id to workflow run snapshots ([#7740](https://github.com/mastra-ai/mastra/pull/7740))
|
|
48
|
+
|
|
49
|
+
- Updated dependencies [[`547c621`](https://github.com/mastra-ai/mastra/commit/547c62104af3f7a551b3754e9cbdf0a3fbba15e4)]:
|
|
50
|
+
- @mastra/core@0.16.4-alpha.1
|
|
51
|
+
|
|
52
|
+
## 0.3.0
|
|
53
|
+
|
|
54
|
+
### Minor Changes
|
|
55
|
+
|
|
56
|
+
- 376913a: Update peerdeps of @mastra/core
|
|
57
|
+
|
|
58
|
+
### Patch Changes
|
|
59
|
+
|
|
60
|
+
- 6f5eb7a: Throw if an empty or whitespace-only threadId is passed when getting messages
|
|
61
|
+
- Updated dependencies [8fbf79e]
|
|
62
|
+
- Updated dependencies [fd83526]
|
|
63
|
+
- Updated dependencies [d0b90ab]
|
|
64
|
+
- Updated dependencies [6f5eb7a]
|
|
65
|
+
- Updated dependencies [a01cf14]
|
|
66
|
+
- Updated dependencies [a9e50ee]
|
|
67
|
+
- Updated dependencies [5397eb4]
|
|
68
|
+
- Updated dependencies [c9f4e4a]
|
|
69
|
+
- Updated dependencies [0acbc80]
|
|
70
|
+
- @mastra/core@0.16.0
|
|
71
|
+
|
|
72
|
+
## 0.3.0-alpha.1
|
|
73
|
+
|
|
74
|
+
### Minor Changes
|
|
75
|
+
|
|
76
|
+
- 376913a: Update peerdeps of @mastra/core
|
|
77
|
+
|
|
78
|
+
### Patch Changes
|
|
79
|
+
|
|
80
|
+
- Updated dependencies [8fbf79e]
|
|
81
|
+
- @mastra/core@0.16.0-alpha.1
|
|
82
|
+
|
|
83
|
+
## 0.2.12-alpha.0
|
|
84
|
+
|
|
85
|
+
### Patch Changes
|
|
86
|
+
|
|
87
|
+
- 6f5eb7a: Throw if an empty or whitespace-only threadId is passed when getting messages
|
|
88
|
+
- Updated dependencies [fd83526]
|
|
89
|
+
- Updated dependencies [d0b90ab]
|
|
90
|
+
- Updated dependencies [6f5eb7a]
|
|
91
|
+
- Updated dependencies [a01cf14]
|
|
92
|
+
- Updated dependencies [a9e50ee]
|
|
93
|
+
- Updated dependencies [5397eb4]
|
|
94
|
+
- Updated dependencies [c9f4e4a]
|
|
95
|
+
- Updated dependencies [0acbc80]
|
|
96
|
+
- @mastra/core@0.16.0-alpha.0
|
|
97
|
+
|
|
98
|
+
## 0.2.11
|
|
99
|
+
|
|
100
|
+
### Patch Changes
|
|
101
|
+
|
|
102
|
+
- de3cbc6: Update the `package.json` file to include additional fields like `repository`, `homepage` or `files`.
|
|
103
|
+
- f0dfcac: updated core peerdep
|
|
104
|
+
- Updated dependencies [ab48c97]
|
|
105
|
+
- Updated dependencies [85ef90b]
|
|
106
|
+
- Updated dependencies [aedbbfa]
|
|
107
|
+
- Updated dependencies [ff89505]
|
|
108
|
+
- Updated dependencies [637f323]
|
|
109
|
+
- Updated dependencies [de3cbc6]
|
|
110
|
+
- Updated dependencies [c19bcf7]
|
|
111
|
+
- Updated dependencies [4474d04]
|
|
112
|
+
- Updated dependencies [183dc95]
|
|
113
|
+
- Updated dependencies [a1111e2]
|
|
114
|
+
- Updated dependencies [b42a961]
|
|
115
|
+
- Updated dependencies [61debef]
|
|
116
|
+
- Updated dependencies [9beaeff]
|
|
117
|
+
- Updated dependencies [29de0e1]
|
|
118
|
+
- Updated dependencies [f643c65]
|
|
119
|
+
- Updated dependencies [00c74e7]
|
|
120
|
+
- Updated dependencies [fef7375]
|
|
121
|
+
- Updated dependencies [e3d8fea]
|
|
122
|
+
- Updated dependencies [45e4d39]
|
|
123
|
+
- Updated dependencies [9eee594]
|
|
124
|
+
- Updated dependencies [7149d8d]
|
|
125
|
+
- Updated dependencies [822c2e8]
|
|
126
|
+
- Updated dependencies [979912c]
|
|
127
|
+
- Updated dependencies [7dcf4c0]
|
|
128
|
+
- Updated dependencies [4106a58]
|
|
129
|
+
- Updated dependencies [ad78bfc]
|
|
130
|
+
- Updated dependencies [0302f50]
|
|
131
|
+
- Updated dependencies [6ac697e]
|
|
132
|
+
- Updated dependencies [74db265]
|
|
133
|
+
- Updated dependencies [0ce418a]
|
|
134
|
+
- Updated dependencies [af90672]
|
|
135
|
+
- Updated dependencies [8387952]
|
|
136
|
+
- Updated dependencies [7f3b8da]
|
|
137
|
+
- Updated dependencies [905352b]
|
|
138
|
+
- Updated dependencies [599d04c]
|
|
139
|
+
- Updated dependencies [56041d0]
|
|
140
|
+
- Updated dependencies [3412597]
|
|
141
|
+
- Updated dependencies [5eca5d2]
|
|
142
|
+
- Updated dependencies [f2cda47]
|
|
143
|
+
- Updated dependencies [5de1555]
|
|
144
|
+
- Updated dependencies [cfd377a]
|
|
145
|
+
- Updated dependencies [1ed5a3e]
|
|
146
|
+
- @mastra/core@0.15.3
|
|
147
|
+
|
|
148
|
+
## 0.2.11-alpha.1
|
|
149
|
+
|
|
150
|
+
### Patch Changes
|
|
151
|
+
|
|
152
|
+
- [#7394](https://github.com/mastra-ai/mastra/pull/7394) [`f0dfcac`](https://github.com/mastra-ai/mastra/commit/f0dfcac4458bdf789b975e2d63e984f5d1e7c4d3) Thanks [@NikAiyer](https://github.com/NikAiyer)! - updated core peerdep
|
|
153
|
+
|
|
154
|
+
- Updated dependencies [[`7149d8d`](https://github.com/mastra-ai/mastra/commit/7149d8d4bdc1edf0008e0ca9b7925eb0b8b60dbe)]:
|
|
155
|
+
- @mastra/core@0.15.3-alpha.7
|
|
156
|
+
|
|
157
|
+
## 0.2.11-alpha.0
|
|
158
|
+
|
|
159
|
+
### Patch Changes
|
|
160
|
+
|
|
161
|
+
- [#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`.
|
|
162
|
+
|
|
163
|
+
- Updated dependencies [[`85ef90b`](https://github.com/mastra-ai/mastra/commit/85ef90bb2cd4ae4df855c7ac175f7d392c55c1bf), [`de3cbc6`](https://github.com/mastra-ai/mastra/commit/de3cbc61079211431bd30487982ea3653517278e)]:
|
|
164
|
+
- @mastra/core@0.15.3-alpha.5
|
|
165
|
+
|
|
166
|
+
## 0.2.10
|
|
167
|
+
|
|
168
|
+
### Patch Changes
|
|
169
|
+
|
|
170
|
+
- [`c6113ed`](https://github.com/mastra-ai/mastra/commit/c6113ed7f9df297e130d94436ceee310273d6430) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdpes for @mastra/core
|
|
171
|
+
|
|
172
|
+
- Updated dependencies []:
|
|
173
|
+
- @mastra/core@0.15.2
|
|
174
|
+
|
|
175
|
+
## 0.2.9
|
|
176
|
+
|
|
177
|
+
### Patch Changes
|
|
178
|
+
|
|
179
|
+
- [`95b2aa9`](https://github.com/mastra-ai/mastra/commit/95b2aa908230919e67efcac0d69005a2d5745298) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdeps @mastra/core
|
|
180
|
+
|
|
181
|
+
- Updated dependencies []:
|
|
182
|
+
- @mastra/core@0.15.1
|
|
183
|
+
|
|
184
|
+
## 0.2.8
|
|
185
|
+
|
|
186
|
+
### Patch Changes
|
|
187
|
+
|
|
188
|
+
- [#6994](https://github.com/mastra-ai/mastra/pull/6994) [`0594a70`](https://github.com/mastra-ai/mastra/commit/0594a70ac948d306c7f38765b171c9535e6c78d4) Thanks [@wardpeet](https://github.com/wardpeet)! - Improve type resolving for storage adapters
|
|
189
|
+
|
|
190
|
+
- Updated dependencies [[`0778757`](https://github.com/mastra-ai/mastra/commit/07787570e4addbd501522037bd2542c3d9e26822), [`943a7f3`](https://github.com/mastra-ai/mastra/commit/943a7f3dbc6a8ab3f9b7bc7c8a1c5b319c3d7f56), [`bf504a8`](https://github.com/mastra-ai/mastra/commit/bf504a833051f6f321d832cc7d631f3cb86d657b), [`be49354`](https://github.com/mastra-ai/mastra/commit/be493546dca540101923ec700feb31f9a13939f2), [`d591ab3`](https://github.com/mastra-ai/mastra/commit/d591ab3ecc985c1870c0db347f8d7a20f7360536), [`ba82abe`](https://github.com/mastra-ai/mastra/commit/ba82abe76e869316bb5a9c95e8ea3946f3436fae), [`727f7e5`](https://github.com/mastra-ai/mastra/commit/727f7e5086e62e0dfe3356fb6dcd8bcb420af246), [`e6f5046`](https://github.com/mastra-ai/mastra/commit/e6f50467aff317e67e8bd74c485c3fbe2a5a6db1), [`82d9f64`](https://github.com/mastra-ai/mastra/commit/82d9f647fbe4f0177320e7c05073fce88599aa95), [`2e58325`](https://github.com/mastra-ai/mastra/commit/2e58325beb170f5b92f856e27d915cd26917e5e6), [`1191ce9`](https://github.com/mastra-ai/mastra/commit/1191ce946b40ed291e7877a349f8388e3cff7e5c), [`4189486`](https://github.com/mastra-ai/mastra/commit/4189486c6718fda78347bdf4ce4d3fc33b2236e1), [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01), [`9613558`](https://github.com/mastra-ai/mastra/commit/9613558e6475f4710e05d1be7553a32ee7bddc20)]:
|
|
191
|
+
- @mastra/core@0.15.0
|
|
192
|
+
|
|
193
|
+
## 0.2.8-alpha.0
|
|
194
|
+
|
|
195
|
+
### Patch Changes
|
|
196
|
+
|
|
197
|
+
- [#6994](https://github.com/mastra-ai/mastra/pull/6994) [`0594a70`](https://github.com/mastra-ai/mastra/commit/0594a70ac948d306c7f38765b171c9535e6c78d4) Thanks [@wardpeet](https://github.com/wardpeet)! - Improve type resolving for storage adapters
|
|
198
|
+
|
|
199
|
+
- Updated dependencies [[`943a7f3`](https://github.com/mastra-ai/mastra/commit/943a7f3dbc6a8ab3f9b7bc7c8a1c5b319c3d7f56), [`be49354`](https://github.com/mastra-ai/mastra/commit/be493546dca540101923ec700feb31f9a13939f2), [`d591ab3`](https://github.com/mastra-ai/mastra/commit/d591ab3ecc985c1870c0db347f8d7a20f7360536), [`ba82abe`](https://github.com/mastra-ai/mastra/commit/ba82abe76e869316bb5a9c95e8ea3946f3436fae), [`727f7e5`](https://github.com/mastra-ai/mastra/commit/727f7e5086e62e0dfe3356fb6dcd8bcb420af246), [`82d9f64`](https://github.com/mastra-ai/mastra/commit/82d9f647fbe4f0177320e7c05073fce88599aa95), [`4189486`](https://github.com/mastra-ai/mastra/commit/4189486c6718fda78347bdf4ce4d3fc33b2236e1), [`ca8ec2f`](https://github.com/mastra-ai/mastra/commit/ca8ec2f61884b9dfec5fc0d5f4f29d281ad13c01)]:
|
|
200
|
+
- @mastra/core@0.14.2-alpha.1
|
|
201
|
+
|
|
202
|
+
## 0.2.7
|
|
203
|
+
|
|
204
|
+
### Patch Changes
|
|
205
|
+
|
|
206
|
+
- [#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
|
|
207
|
+
|
|
208
|
+
- Updated dependencies [[`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27), [`0f00e17`](https://github.com/mastra-ai/mastra/commit/0f00e172953ccdccadb35ed3d70f5e4d89115869), [`217cd7a`](https://github.com/mastra-ai/mastra/commit/217cd7a4ce171e9a575c41bb8c83300f4db03236), [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02)]:
|
|
209
|
+
- @mastra/core@0.14.1
|
|
210
|
+
|
|
211
|
+
## 0.2.7-alpha.0
|
|
212
|
+
|
|
213
|
+
### Patch Changes
|
|
214
|
+
|
|
215
|
+
- [#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
|
|
216
|
+
|
|
217
|
+
- Updated dependencies [[`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27), [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02)]:
|
|
218
|
+
- @mastra/core@0.14.1-alpha.0
|
|
219
|
+
|
|
220
|
+
## 0.2.6
|
|
221
|
+
|
|
222
|
+
### Patch Changes
|
|
223
|
+
|
|
224
|
+
- 03997ae: Update peerdeps
|
|
225
|
+
- Updated dependencies [227c7e6]
|
|
226
|
+
- Updated dependencies [12cae67]
|
|
227
|
+
- Updated dependencies [fd3a3eb]
|
|
228
|
+
- Updated dependencies [6faaee5]
|
|
229
|
+
- Updated dependencies [4232b14]
|
|
230
|
+
- Updated dependencies [a89de7e]
|
|
231
|
+
- Updated dependencies [5a37d0c]
|
|
232
|
+
- Updated dependencies [4bde0cb]
|
|
233
|
+
- Updated dependencies [cf4f357]
|
|
234
|
+
- Updated dependencies [ad888a2]
|
|
235
|
+
- Updated dependencies [481751d]
|
|
236
|
+
- Updated dependencies [2454423]
|
|
237
|
+
- Updated dependencies [194e395]
|
|
238
|
+
- Updated dependencies [a722c0b]
|
|
239
|
+
- Updated dependencies [c30bca8]
|
|
240
|
+
- Updated dependencies [3b5fec7]
|
|
241
|
+
- Updated dependencies [a8f129d]
|
|
242
|
+
- @mastra/core@0.14.0
|
|
243
|
+
|
|
244
|
+
## 0.2.6-alpha.0
|
|
245
|
+
|
|
246
|
+
### Patch Changes
|
|
247
|
+
|
|
248
|
+
- 03997ae: Update peerdeps
|
|
249
|
+
- @mastra/core@0.14.0-alpha.7
|
|
250
|
+
|
|
251
|
+
## 0.2.5
|
|
252
|
+
|
|
253
|
+
### Patch Changes
|
|
254
|
+
|
|
255
|
+
- cc9035c: dependencies updates:
|
|
256
|
+
- Updated dependency [`@lancedb/lancedb@^0.21.2` ↗︎](https://www.npmjs.com/package/@lancedb/lancedb/v/0.21.2) (from `^0.18.2`, in `dependencies`)
|
|
257
|
+
- b32c50d: Filter scores by source
|
|
258
|
+
- Updated dependencies [d5330bf]
|
|
259
|
+
- Updated dependencies [2e74797]
|
|
260
|
+
- Updated dependencies [8388649]
|
|
261
|
+
- Updated dependencies [a239d41]
|
|
262
|
+
- Updated dependencies [dd94a26]
|
|
263
|
+
- Updated dependencies [3ba6772]
|
|
264
|
+
- Updated dependencies [b5cf2a3]
|
|
265
|
+
- Updated dependencies [2fff911]
|
|
266
|
+
- Updated dependencies [b32c50d]
|
|
267
|
+
- Updated dependencies [63449d0]
|
|
268
|
+
- Updated dependencies [121a3f8]
|
|
269
|
+
- Updated dependencies [ec510e7]
|
|
270
|
+
- @mastra/core@0.13.2
|
|
271
|
+
|
|
272
|
+
## 0.2.5-alpha.0
|
|
273
|
+
|
|
274
|
+
### Patch Changes
|
|
275
|
+
|
|
276
|
+
- cc9035c: dependencies updates:
|
|
277
|
+
- Updated dependency [`@lancedb/lancedb@^0.21.2` ↗︎](https://www.npmjs.com/package/@lancedb/lancedb/v/0.21.2) (from `^0.18.2`, in `dependencies`)
|
|
278
|
+
- b32c50d: Filter scores by source
|
|
279
|
+
- Updated dependencies [d5330bf]
|
|
280
|
+
- Updated dependencies [a239d41]
|
|
281
|
+
- Updated dependencies [b32c50d]
|
|
282
|
+
- Updated dependencies [121a3f8]
|
|
283
|
+
- Updated dependencies [ec510e7]
|
|
284
|
+
- @mastra/core@0.13.2-alpha.2
|
|
285
|
+
|
|
286
|
+
## 0.2.4
|
|
287
|
+
|
|
288
|
+
### Patch Changes
|
|
289
|
+
|
|
290
|
+
- 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
|
|
291
|
+
- Updated dependencies [cb36de0]
|
|
292
|
+
- Updated dependencies [d0496e6]
|
|
293
|
+
- Updated dependencies [a82b851]
|
|
294
|
+
- Updated dependencies [ea0c5f2]
|
|
295
|
+
- Updated dependencies [41a0a0e]
|
|
296
|
+
- Updated dependencies [2871020]
|
|
297
|
+
- Updated dependencies [94f4812]
|
|
298
|
+
- Updated dependencies [e202b82]
|
|
299
|
+
- Updated dependencies [e00f6a0]
|
|
300
|
+
- Updated dependencies [4a406ec]
|
|
301
|
+
- Updated dependencies [b0e43c1]
|
|
302
|
+
- Updated dependencies [5d377e5]
|
|
303
|
+
- Updated dependencies [1fb812e]
|
|
304
|
+
- Updated dependencies [35c5798]
|
|
305
|
+
- @mastra/core@0.13.0
|
|
306
|
+
|
|
307
|
+
## 0.2.4-alpha.0
|
|
308
|
+
|
|
309
|
+
### Patch Changes
|
|
310
|
+
|
|
311
|
+
- 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
|
|
312
|
+
- Updated dependencies [cb36de0]
|
|
313
|
+
- Updated dependencies [a82b851]
|
|
314
|
+
- Updated dependencies [41a0a0e]
|
|
315
|
+
- Updated dependencies [2871020]
|
|
316
|
+
- Updated dependencies [4a406ec]
|
|
317
|
+
- Updated dependencies [5d377e5]
|
|
318
|
+
- @mastra/core@0.13.0-alpha.2
|
|
9
319
|
|
|
10
320
|
## 0.2.3
|
|
11
321
|
|
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ const messages = await storage.getMessages({
|
|
|
124
124
|
### Creating Threads
|
|
125
125
|
|
|
126
126
|
```typescript
|
|
127
|
-
import type { StorageThreadType } from '@mastra/core';
|
|
127
|
+
import type { StorageThreadType } from '@mastra/core/storage';
|
|
128
128
|
|
|
129
129
|
// Create a new thread
|
|
130
130
|
const thread: StorageThreadType = {
|
|
@@ -142,7 +142,7 @@ const savedThread = await storage.saveThread({ thread });
|
|
|
142
142
|
### Working with Messages
|
|
143
143
|
|
|
144
144
|
```typescript
|
|
145
|
-
import type { MessageType } from '@mastra/core';
|
|
145
|
+
import type { MessageType } from '@mastra/core/memory';
|
|
146
146
|
|
|
147
147
|
// Create messages
|
|
148
148
|
const messages: MessageType[] = [
|
|
@@ -193,7 +193,7 @@ const retrievedMessages = await storage.getMessages({
|
|
|
193
193
|
Mastra's workflow system uses LanceDB to persist workflow state for continuity across runs:
|
|
194
194
|
|
|
195
195
|
```typescript
|
|
196
|
-
import type { WorkflowRunState } from '@mastra/core';
|
|
196
|
+
import type { WorkflowRunState } from '@mastra/core/storage';
|
|
197
197
|
|
|
198
198
|
// Persist a workflow snapshot
|
|
199
199
|
await storage.persistWorkflowSnapshot({
|
package/dist/index.cjs
CHANGED
|
@@ -189,7 +189,6 @@ function processResultWithTypeConversion(rawResult, tableSchema) {
|
|
|
189
189
|
} else if (fieldTypeStr.includes("float64") && ["createdAt", "updatedAt"].includes(key)) {
|
|
190
190
|
processedResult[key] = new Date(processedResult[key]);
|
|
191
191
|
}
|
|
192
|
-
console.log(key, "processedResult", processedResult);
|
|
193
192
|
}
|
|
194
193
|
return processedResult;
|
|
195
194
|
}
|
|
@@ -381,6 +380,20 @@ var StoreMemoryLance = class extends storage.MemoryStorage {
|
|
|
381
380
|
);
|
|
382
381
|
}
|
|
383
382
|
}
|
|
383
|
+
normalizeMessage(message) {
|
|
384
|
+
const { thread_id, ...rest } = message;
|
|
385
|
+
return {
|
|
386
|
+
...rest,
|
|
387
|
+
threadId: thread_id,
|
|
388
|
+
content: typeof message.content === "string" ? (() => {
|
|
389
|
+
try {
|
|
390
|
+
return JSON.parse(message.content);
|
|
391
|
+
} catch {
|
|
392
|
+
return message.content;
|
|
393
|
+
}
|
|
394
|
+
})() : message.content
|
|
395
|
+
};
|
|
396
|
+
}
|
|
384
397
|
async getMessages({
|
|
385
398
|
threadId,
|
|
386
399
|
resourceId,
|
|
@@ -389,6 +402,7 @@ var StoreMemoryLance = class extends storage.MemoryStorage {
|
|
|
389
402
|
threadConfig
|
|
390
403
|
}) {
|
|
391
404
|
try {
|
|
405
|
+
if (!threadId.trim()) throw new Error("threadId must be a non-empty string");
|
|
392
406
|
if (threadConfig) {
|
|
393
407
|
throw new Error("ThreadConfig is not supported by LanceDB storage");
|
|
394
408
|
}
|
|
@@ -421,21 +435,7 @@ var StoreMemoryLance = class extends storage.MemoryStorage {
|
|
|
421
435
|
allRecords,
|
|
422
436
|
await getTableSchema({ tableName: storage.TABLE_MESSAGES, client: this.client })
|
|
423
437
|
);
|
|
424
|
-
const
|
|
425
|
-
const { thread_id, ...rest } = msg;
|
|
426
|
-
return {
|
|
427
|
-
...rest,
|
|
428
|
-
threadId: thread_id,
|
|
429
|
-
content: typeof msg.content === "string" ? (() => {
|
|
430
|
-
try {
|
|
431
|
-
return JSON.parse(msg.content);
|
|
432
|
-
} catch {
|
|
433
|
-
return msg.content;
|
|
434
|
-
}
|
|
435
|
-
})() : msg.content
|
|
436
|
-
};
|
|
437
|
-
});
|
|
438
|
-
const list = new agent.MessageList({ threadId, resourceId }).add(normalized, "memory");
|
|
438
|
+
const list = new agent.MessageList({ threadId, resourceId }).add(messages.map(this.normalizeMessage), "memory");
|
|
439
439
|
if (format === "v2") return list.get.all.v2();
|
|
440
440
|
return list.get.all.v1();
|
|
441
441
|
} catch (error$1) {
|
|
@@ -443,7 +443,41 @@ var StoreMemoryLance = class extends storage.MemoryStorage {
|
|
|
443
443
|
{
|
|
444
444
|
id: "LANCE_STORE_GET_MESSAGES_FAILED",
|
|
445
445
|
domain: error.ErrorDomain.STORAGE,
|
|
446
|
-
category: error.ErrorCategory.THIRD_PARTY
|
|
446
|
+
category: error.ErrorCategory.THIRD_PARTY,
|
|
447
|
+
details: {
|
|
448
|
+
threadId,
|
|
449
|
+
resourceId: resourceId ?? ""
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
error$1
|
|
453
|
+
);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
async getMessagesById({
|
|
457
|
+
messageIds,
|
|
458
|
+
format
|
|
459
|
+
}) {
|
|
460
|
+
if (messageIds.length === 0) return [];
|
|
461
|
+
try {
|
|
462
|
+
const table = await this.client.openTable(storage.TABLE_MESSAGES);
|
|
463
|
+
const quotedIds = messageIds.map((id) => `'${id}'`).join(", ");
|
|
464
|
+
const allRecords = await table.query().where(`id IN (${quotedIds})`).toArray();
|
|
465
|
+
const messages = processResultWithTypeConversion(
|
|
466
|
+
allRecords,
|
|
467
|
+
await getTableSchema({ tableName: storage.TABLE_MESSAGES, client: this.client })
|
|
468
|
+
);
|
|
469
|
+
const list = new agent.MessageList().add(messages.map(this.normalizeMessage), "memory");
|
|
470
|
+
if (format === `v1`) return list.get.all.v1();
|
|
471
|
+
return list.get.all.v2();
|
|
472
|
+
} catch (error$1) {
|
|
473
|
+
throw new error.MastraError(
|
|
474
|
+
{
|
|
475
|
+
id: "LANCE_STORE_GET_MESSAGES_BY_ID_FAILED",
|
|
476
|
+
domain: error.ErrorDomain.STORAGE,
|
|
477
|
+
category: error.ErrorCategory.THIRD_PARTY,
|
|
478
|
+
details: {
|
|
479
|
+
messageIds: JSON.stringify(messageIds)
|
|
480
|
+
}
|
|
447
481
|
},
|
|
448
482
|
error$1
|
|
449
483
|
);
|
|
@@ -584,13 +618,11 @@ var StoreMemoryLance = class extends storage.MemoryStorage {
|
|
|
584
618
|
return Array.from(allIndices).sort((a, b) => a - b).map((index) => records[index]);
|
|
585
619
|
}
|
|
586
620
|
async getMessagesPaginated(args) {
|
|
621
|
+
const { threadId, resourceId, selectBy, format = "v1" } = args;
|
|
622
|
+
const page = selectBy?.pagination?.page ?? 0;
|
|
623
|
+
const perPage = selectBy?.pagination?.perPage ?? 10;
|
|
587
624
|
try {
|
|
588
|
-
|
|
589
|
-
if (!threadId) {
|
|
590
|
-
throw new Error("Thread ID is required for getMessagesPaginated");
|
|
591
|
-
}
|
|
592
|
-
const page = selectBy?.pagination?.page ?? 0;
|
|
593
|
-
const perPage = selectBy?.pagination?.perPage ?? 10;
|
|
625
|
+
if (!threadId.trim()) throw new Error("threadId must be a non-empty string");
|
|
594
626
|
const dateRange = selectBy?.pagination?.dateRange;
|
|
595
627
|
const fromDate = dateRange?.start;
|
|
596
628
|
const toDate = dateRange?.end;
|
|
@@ -692,14 +724,21 @@ var StoreMemoryLance = class extends storage.MemoryStorage {
|
|
|
692
724
|
hasMore: total > (page + 1) * perPage
|
|
693
725
|
};
|
|
694
726
|
} catch (error$1) {
|
|
695
|
-
|
|
727
|
+
const mastraError = new error.MastraError(
|
|
696
728
|
{
|
|
697
729
|
id: "LANCE_STORE_GET_MESSAGES_PAGINATED_FAILED",
|
|
698
730
|
domain: error.ErrorDomain.STORAGE,
|
|
699
|
-
category: error.ErrorCategory.THIRD_PARTY
|
|
731
|
+
category: error.ErrorCategory.THIRD_PARTY,
|
|
732
|
+
details: {
|
|
733
|
+
threadId,
|
|
734
|
+
resourceId: resourceId ?? ""
|
|
735
|
+
}
|
|
700
736
|
},
|
|
701
737
|
error$1
|
|
702
738
|
);
|
|
739
|
+
this.logger?.trackException?.(mastraError);
|
|
740
|
+
this.logger?.error?.(mastraError.toString());
|
|
741
|
+
return { messages: [], total: 0, page, perPage, hasMore: false };
|
|
703
742
|
}
|
|
704
743
|
}
|
|
705
744
|
/**
|
|
@@ -1226,7 +1265,7 @@ var StoreOperationsLance = class extends storage.StoreOperations {
|
|
|
1226
1265
|
processedRecord[key] = JSON.stringify(processedRecord[key]);
|
|
1227
1266
|
}
|
|
1228
1267
|
}
|
|
1229
|
-
console.
|
|
1268
|
+
console.info(await table.schema());
|
|
1230
1269
|
await table.mergeInsert(primaryId).whenMatchedUpdateAll().whenNotMatchedInsertAll().execute([processedRecord]);
|
|
1231
1270
|
} catch (error$1) {
|
|
1232
1271
|
throw new error.MastraError(
|
|
@@ -1276,7 +1315,6 @@ var StoreOperationsLance = class extends storage.StoreOperations {
|
|
|
1276
1315
|
}
|
|
1277
1316
|
return processedRecord;
|
|
1278
1317
|
});
|
|
1279
|
-
console.log(processedRecords);
|
|
1280
1318
|
await table.mergeInsert(primaryId).whenMatchedUpdateAll().whenNotMatchedInsertAll().execute(processedRecords);
|
|
1281
1319
|
} catch (error$1) {
|
|
1282
1320
|
throw new error.MastraError(
|
|
@@ -1361,6 +1399,7 @@ var StoreScoresLance = class extends storage.ScoresStorage {
|
|
|
1361
1399
|
}
|
|
1362
1400
|
async saveScore(score) {
|
|
1363
1401
|
try {
|
|
1402
|
+
const id = crypto.randomUUID();
|
|
1364
1403
|
const table = await this.client.openTable(storage.TABLE_SCORERS);
|
|
1365
1404
|
const schema = await getTableSchema({ tableName: storage.TABLE_SCORERS, client: this.client });
|
|
1366
1405
|
const allowedFields = new Set(schema.fields.map((f) => f.name));
|
|
@@ -1375,7 +1414,7 @@ var StoreScoresLance = class extends storage.ScoresStorage {
|
|
|
1375
1414
|
filteredScore[key] = JSON.stringify(filteredScore[key]);
|
|
1376
1415
|
}
|
|
1377
1416
|
}
|
|
1378
|
-
|
|
1417
|
+
filteredScore.id = id;
|
|
1379
1418
|
await table.add([filteredScore], { mode: "append" });
|
|
1380
1419
|
return { score };
|
|
1381
1420
|
} catch (error$1) {
|
|
@@ -1414,18 +1453,35 @@ var StoreScoresLance = class extends storage.ScoresStorage {
|
|
|
1414
1453
|
}
|
|
1415
1454
|
async getScoresByScorerId({
|
|
1416
1455
|
scorerId,
|
|
1417
|
-
pagination
|
|
1456
|
+
pagination,
|
|
1457
|
+
entityId,
|
|
1458
|
+
entityType,
|
|
1459
|
+
source
|
|
1418
1460
|
}) {
|
|
1419
1461
|
try {
|
|
1420
1462
|
const table = await this.client.openTable(storage.TABLE_SCORERS);
|
|
1421
1463
|
const { page = 0, perPage = 10 } = pagination || {};
|
|
1422
1464
|
const offset = page * perPage;
|
|
1423
|
-
|
|
1465
|
+
let query = table.query().where(`\`scorerId\` = '${scorerId}'`);
|
|
1466
|
+
if (source) {
|
|
1467
|
+
query = query.where(`\`source\` = '${source}'`);
|
|
1468
|
+
}
|
|
1469
|
+
if (entityId) {
|
|
1470
|
+
query = query.where(`\`entityId\` = '${entityId}'`);
|
|
1471
|
+
}
|
|
1472
|
+
if (entityType) {
|
|
1473
|
+
query = query.where(`\`entityType\` = '${entityType}'`);
|
|
1474
|
+
}
|
|
1475
|
+
query = query.limit(perPage);
|
|
1424
1476
|
if (offset > 0) query.offset(offset);
|
|
1425
1477
|
const records = await query.toArray();
|
|
1426
1478
|
const schema = await getTableSchema({ tableName: storage.TABLE_SCORERS, client: this.client });
|
|
1427
1479
|
const scores = processResultWithTypeConversion(records, schema);
|
|
1428
|
-
|
|
1480
|
+
let totalQuery = table.query().where(`\`scorerId\` = '${scorerId}'`);
|
|
1481
|
+
if (source) {
|
|
1482
|
+
totalQuery = totalQuery.where(`\`source\` = '${source}'`);
|
|
1483
|
+
}
|
|
1484
|
+
const allRecords = await totalQuery.toArray();
|
|
1429
1485
|
const total = allRecords.length;
|
|
1430
1486
|
return {
|
|
1431
1487
|
pagination: {
|
|
@@ -1741,9 +1797,26 @@ var StoreWorkflowsLance = class extends storage.WorkflowsStorage {
|
|
|
1741
1797
|
super();
|
|
1742
1798
|
this.client = client;
|
|
1743
1799
|
}
|
|
1800
|
+
updateWorkflowResults({
|
|
1801
|
+
// workflowName,
|
|
1802
|
+
// runId,
|
|
1803
|
+
// stepId,
|
|
1804
|
+
// result,
|
|
1805
|
+
// runtimeContext,
|
|
1806
|
+
}) {
|
|
1807
|
+
throw new Error("Method not implemented.");
|
|
1808
|
+
}
|
|
1809
|
+
updateWorkflowState({
|
|
1810
|
+
// workflowName,
|
|
1811
|
+
// runId,
|
|
1812
|
+
// opts,
|
|
1813
|
+
}) {
|
|
1814
|
+
throw new Error("Method not implemented.");
|
|
1815
|
+
}
|
|
1744
1816
|
async persistWorkflowSnapshot({
|
|
1745
1817
|
workflowName,
|
|
1746
1818
|
runId,
|
|
1819
|
+
resourceId,
|
|
1747
1820
|
snapshot
|
|
1748
1821
|
}) {
|
|
1749
1822
|
try {
|
|
@@ -1760,6 +1833,7 @@ var StoreWorkflowsLance = class extends storage.WorkflowsStorage {
|
|
|
1760
1833
|
const record = {
|
|
1761
1834
|
workflow_name: workflowName,
|
|
1762
1835
|
run_id: runId,
|
|
1836
|
+
resourceId,
|
|
1763
1837
|
snapshot: JSON.stringify(snapshot),
|
|
1764
1838
|
createdAt,
|
|
1765
1839
|
updatedAt: now
|
|
@@ -2071,6 +2145,12 @@ var LanceStorage = class _LanceStorage extends storage.MastraStorage {
|
|
|
2071
2145
|
}) {
|
|
2072
2146
|
return this.stores.memory.getMessages({ threadId, resourceId, selectBy, format, threadConfig });
|
|
2073
2147
|
}
|
|
2148
|
+
async getMessagesById({
|
|
2149
|
+
messageIds,
|
|
2150
|
+
format
|
|
2151
|
+
}) {
|
|
2152
|
+
return this.stores.memory.getMessagesById({ messageIds, format });
|
|
2153
|
+
}
|
|
2074
2154
|
async saveMessages(args) {
|
|
2075
2155
|
return this.stores.memory.saveMessages(args);
|
|
2076
2156
|
}
|
|
@@ -2104,12 +2184,29 @@ var LanceStorage = class _LanceStorage extends storage.MastraStorage {
|
|
|
2104
2184
|
async getWorkflowRunById(args) {
|
|
2105
2185
|
return this.stores.workflows.getWorkflowRunById(args);
|
|
2106
2186
|
}
|
|
2187
|
+
async updateWorkflowResults({
|
|
2188
|
+
workflowName,
|
|
2189
|
+
runId,
|
|
2190
|
+
stepId,
|
|
2191
|
+
result,
|
|
2192
|
+
runtimeContext
|
|
2193
|
+
}) {
|
|
2194
|
+
return this.stores.workflows.updateWorkflowResults({ workflowName, runId, stepId, result, runtimeContext });
|
|
2195
|
+
}
|
|
2196
|
+
async updateWorkflowState({
|
|
2197
|
+
workflowName,
|
|
2198
|
+
runId,
|
|
2199
|
+
opts
|
|
2200
|
+
}) {
|
|
2201
|
+
return this.stores.workflows.updateWorkflowState({ workflowName, runId, opts });
|
|
2202
|
+
}
|
|
2107
2203
|
async persistWorkflowSnapshot({
|
|
2108
2204
|
workflowName,
|
|
2109
2205
|
runId,
|
|
2206
|
+
resourceId,
|
|
2110
2207
|
snapshot
|
|
2111
2208
|
}) {
|
|
2112
|
-
return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, snapshot });
|
|
2209
|
+
return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot });
|
|
2113
2210
|
}
|
|
2114
2211
|
async loadWorkflowSnapshot({
|
|
2115
2212
|
workflowName,
|
|
@@ -2122,9 +2219,12 @@ var LanceStorage = class _LanceStorage extends storage.MastraStorage {
|
|
|
2122
2219
|
}
|
|
2123
2220
|
async getScoresByScorerId({
|
|
2124
2221
|
scorerId,
|
|
2222
|
+
source,
|
|
2223
|
+
entityId,
|
|
2224
|
+
entityType,
|
|
2125
2225
|
pagination
|
|
2126
2226
|
}) {
|
|
2127
|
-
return this.stores.scores.getScoresByScorerId({ scorerId, pagination });
|
|
2227
|
+
return this.stores.scores.getScoresByScorerId({ scorerId, source, pagination, entityId, entityType });
|
|
2128
2228
|
}
|
|
2129
2229
|
async saveScore(_score) {
|
|
2130
2230
|
return this.stores.scores.saveScore(_score);
|