@mastra/lance 0.0.0-vector-query-tool-provider-options-20250828222356 → 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 +159 -3
- package/dist/index.cjs +24 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +24 -13
- package/dist/index.js.map +1 -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/utils.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +2 -1
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +2 -1
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +20 -7
- 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 -1000
- package/src/storage/domains/operations/index.ts +0 -489
- package/src/storage/domains/scores/index.ts +0 -243
- 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 -245
- package/src/storage/index.test.ts +0 -10
- package/src/storage/index.ts +0 -494
- 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 -17
- package/vitest.config.ts +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,167 @@
|
|
|
1
1
|
# @mastra/lance
|
|
2
2
|
|
|
3
|
-
## 0.0.0-vector-
|
|
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
|
|
9
165
|
|
|
10
166
|
## 0.2.10
|
|
11
167
|
|
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
|
}
|
|
@@ -403,6 +402,7 @@ var StoreMemoryLance = class extends storage.MemoryStorage {
|
|
|
403
402
|
threadConfig
|
|
404
403
|
}) {
|
|
405
404
|
try {
|
|
405
|
+
if (!threadId.trim()) throw new Error("threadId must be a non-empty string");
|
|
406
406
|
if (threadConfig) {
|
|
407
407
|
throw new Error("ThreadConfig is not supported by LanceDB storage");
|
|
408
408
|
}
|
|
@@ -443,7 +443,11 @@ 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
|
+
}
|
|
447
451
|
},
|
|
448
452
|
error$1
|
|
449
453
|
);
|
|
@@ -614,13 +618,11 @@ var StoreMemoryLance = class extends storage.MemoryStorage {
|
|
|
614
618
|
return Array.from(allIndices).sort((a, b) => a - b).map((index) => records[index]);
|
|
615
619
|
}
|
|
616
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;
|
|
617
624
|
try {
|
|
618
|
-
|
|
619
|
-
if (!threadId) {
|
|
620
|
-
throw new Error("Thread ID is required for getMessagesPaginated");
|
|
621
|
-
}
|
|
622
|
-
const page = selectBy?.pagination?.page ?? 0;
|
|
623
|
-
const perPage = selectBy?.pagination?.perPage ?? 10;
|
|
625
|
+
if (!threadId.trim()) throw new Error("threadId must be a non-empty string");
|
|
624
626
|
const dateRange = selectBy?.pagination?.dateRange;
|
|
625
627
|
const fromDate = dateRange?.start;
|
|
626
628
|
const toDate = dateRange?.end;
|
|
@@ -722,14 +724,21 @@ var StoreMemoryLance = class extends storage.MemoryStorage {
|
|
|
722
724
|
hasMore: total > (page + 1) * perPage
|
|
723
725
|
};
|
|
724
726
|
} catch (error$1) {
|
|
725
|
-
|
|
727
|
+
const mastraError = new error.MastraError(
|
|
726
728
|
{
|
|
727
729
|
id: "LANCE_STORE_GET_MESSAGES_PAGINATED_FAILED",
|
|
728
730
|
domain: error.ErrorDomain.STORAGE,
|
|
729
|
-
category: error.ErrorCategory.THIRD_PARTY
|
|
731
|
+
category: error.ErrorCategory.THIRD_PARTY,
|
|
732
|
+
details: {
|
|
733
|
+
threadId,
|
|
734
|
+
resourceId: resourceId ?? ""
|
|
735
|
+
}
|
|
730
736
|
},
|
|
731
737
|
error$1
|
|
732
738
|
);
|
|
739
|
+
this.logger?.trackException?.(mastraError);
|
|
740
|
+
this.logger?.error?.(mastraError.toString());
|
|
741
|
+
return { messages: [], total: 0, page, perPage, hasMore: false };
|
|
733
742
|
}
|
|
734
743
|
}
|
|
735
744
|
/**
|
|
@@ -1256,7 +1265,7 @@ var StoreOperationsLance = class extends storage.StoreOperations {
|
|
|
1256
1265
|
processedRecord[key] = JSON.stringify(processedRecord[key]);
|
|
1257
1266
|
}
|
|
1258
1267
|
}
|
|
1259
|
-
console.
|
|
1268
|
+
console.info(await table.schema());
|
|
1260
1269
|
await table.mergeInsert(primaryId).whenMatchedUpdateAll().whenNotMatchedInsertAll().execute([processedRecord]);
|
|
1261
1270
|
} catch (error$1) {
|
|
1262
1271
|
throw new error.MastraError(
|
|
@@ -1306,7 +1315,6 @@ var StoreOperationsLance = class extends storage.StoreOperations {
|
|
|
1306
1315
|
}
|
|
1307
1316
|
return processedRecord;
|
|
1308
1317
|
});
|
|
1309
|
-
console.log(processedRecords);
|
|
1310
1318
|
await table.mergeInsert(primaryId).whenMatchedUpdateAll().whenNotMatchedInsertAll().execute(processedRecords);
|
|
1311
1319
|
} catch (error$1) {
|
|
1312
1320
|
throw new error.MastraError(
|
|
@@ -1808,6 +1816,7 @@ var StoreWorkflowsLance = class extends storage.WorkflowsStorage {
|
|
|
1808
1816
|
async persistWorkflowSnapshot({
|
|
1809
1817
|
workflowName,
|
|
1810
1818
|
runId,
|
|
1819
|
+
resourceId,
|
|
1811
1820
|
snapshot
|
|
1812
1821
|
}) {
|
|
1813
1822
|
try {
|
|
@@ -1824,6 +1833,7 @@ var StoreWorkflowsLance = class extends storage.WorkflowsStorage {
|
|
|
1824
1833
|
const record = {
|
|
1825
1834
|
workflow_name: workflowName,
|
|
1826
1835
|
run_id: runId,
|
|
1836
|
+
resourceId,
|
|
1827
1837
|
snapshot: JSON.stringify(snapshot),
|
|
1828
1838
|
createdAt,
|
|
1829
1839
|
updatedAt: now
|
|
@@ -2193,9 +2203,10 @@ var LanceStorage = class _LanceStorage extends storage.MastraStorage {
|
|
|
2193
2203
|
async persistWorkflowSnapshot({
|
|
2194
2204
|
workflowName,
|
|
2195
2205
|
runId,
|
|
2206
|
+
resourceId,
|
|
2196
2207
|
snapshot
|
|
2197
2208
|
}) {
|
|
2198
|
-
return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, snapshot });
|
|
2209
|
+
return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot });
|
|
2199
2210
|
}
|
|
2200
2211
|
async loadWorkflowSnapshot({
|
|
2201
2212
|
workflowName,
|