@mastra/lance 0.0.0-update-stores-peerDeps-20250723031338 → 0.0.0-vector-query-tool-provider-options-20250828222356

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +201 -2
  2. package/README.md +3 -3
  3. package/dist/index.cjs +113 -21
  4. package/dist/index.cjs.map +1 -0
  5. package/dist/index.d.ts +3 -2
  6. package/dist/index.d.ts.map +1 -0
  7. package/dist/index.js +113 -21
  8. package/dist/index.js.map +1 -0
  9. package/dist/storage/domains/legacy-evals/index.d.ts +25 -0
  10. package/dist/storage/domains/legacy-evals/index.d.ts.map +1 -0
  11. package/dist/storage/domains/memory/index.d.ts +103 -0
  12. package/dist/storage/domains/memory/index.d.ts.map +1 -0
  13. package/dist/storage/domains/operations/index.d.ts +40 -0
  14. package/dist/storage/domains/operations/index.d.ts.map +1 -0
  15. package/dist/storage/domains/scores/index.d.ts +42 -0
  16. package/dist/storage/domains/scores/index.d.ts.map +1 -0
  17. package/dist/storage/domains/traces/index.d.ts +34 -0
  18. package/dist/storage/domains/traces/index.d.ts.map +1 -0
  19. package/dist/storage/domains/utils.d.ts +10 -0
  20. package/dist/storage/domains/utils.d.ts.map +1 -0
  21. package/dist/storage/domains/workflows/index.d.ts +56 -0
  22. package/dist/storage/domains/workflows/index.d.ts.map +1 -0
  23. package/dist/storage/index.d.ts +262 -0
  24. package/dist/storage/index.d.ts.map +1 -0
  25. package/dist/vector/filter.d.ts +41 -0
  26. package/dist/vector/filter.d.ts.map +1 -0
  27. package/dist/vector/index.d.ts +85 -0
  28. package/dist/vector/index.d.ts.map +1 -0
  29. package/dist/vector/types.d.ts +15 -0
  30. package/dist/vector/types.d.ts.map +1 -0
  31. package/package.json +10 -9
  32. package/src/storage/domains/memory/index.ts +71 -18
  33. package/src/storage/domains/scores/index.ts +29 -7
  34. package/src/storage/domains/workflows/index.ts +39 -1
  35. package/src/storage/index.ts +56 -3
  36. package/src/vector/index.ts +2 -2
  37. package/tsconfig.build.json +9 -0
  38. package/tsconfig.json +1 -1
  39. package/tsup.config.ts +17 -0
  40. package/dist/_tsup-dts-rollup.d.cts +0 -680
  41. package/dist/_tsup-dts-rollup.d.ts +0 -680
  42. package/dist/index.d.cts +0 -2
package/CHANGELOG.md CHANGED
@@ -1,10 +1,209 @@
1
1
  # @mastra/lance
2
2
 
3
- ## 0.0.0-update-stores-peerDeps-20250723031338
3
+ ## 0.0.0-vector-query-tool-provider-options-20250828222356
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - d85b71d: Update mastra core peer dep version
7
+ - Updated dependencies [[`637f323`](https://github.com/mastra-ai/mastra/commit/637f32371d79a8f78c52c0d53411af0915fcec67), [`29de0e1`](https://github.com/mastra-ai/mastra/commit/29de0e1b0a7173317ae7d1ab0c0993167c659f2b), [`00c74e7`](https://github.com/mastra-ai/mastra/commit/00c74e73b1926be0d475693bb886fb67a22ff352), [`6ac697e`](https://github.com/mastra-ai/mastra/commit/6ac697edcc2435482c247cba615277ec4765dcc4), [`af90672`](https://github.com/mastra-ai/mastra/commit/af906722d8da28688882193b1e531026f9e2e81e), [`56041d0`](https://github.com/mastra-ai/mastra/commit/56041d018863a3da6b98c512e47348647c075fb3), [`5de1555`](https://github.com/mastra-ai/mastra/commit/5de15554d3d6695211945a36928f6657e76cddc9), [`1ed5a3e`](https://github.com/mastra-ai/mastra/commit/1ed5a3e19330374c4347a4237cd2f4b9ffb60376)]:
8
+ - @mastra/core@0.0.0-vector-query-tool-provider-options-20250828222356
9
+
10
+ ## 0.2.10
11
+
12
+ ### Patch Changes
13
+
14
+ - [`c6113ed`](https://github.com/mastra-ai/mastra/commit/c6113ed7f9df297e130d94436ceee310273d6430) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdpes for @mastra/core
15
+
16
+ - Updated dependencies []:
17
+ - @mastra/core@0.15.2
18
+
19
+ ## 0.2.9
20
+
21
+ ### Patch Changes
22
+
23
+ - [`95b2aa9`](https://github.com/mastra-ai/mastra/commit/95b2aa908230919e67efcac0d69005a2d5745298) Thanks [@wardpeet](https://github.com/wardpeet)! - Fix peerdeps @mastra/core
24
+
25
+ - Updated dependencies []:
26
+ - @mastra/core@0.15.1
27
+
28
+ ## 0.2.8
29
+
30
+ ### Patch Changes
31
+
32
+ - [#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
33
+
34
+ - 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)]:
35
+ - @mastra/core@0.15.0
36
+
37
+ ## 0.2.8-alpha.0
38
+
39
+ ### Patch Changes
40
+
41
+ - [#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
42
+
43
+ - 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)]:
44
+ - @mastra/core@0.14.2-alpha.1
45
+
46
+ ## 0.2.7
47
+
48
+ ### Patch Changes
49
+
50
+ - [#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
51
+
52
+ - 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)]:
53
+ - @mastra/core@0.14.1
54
+
55
+ ## 0.2.7-alpha.0
56
+
57
+ ### Patch Changes
58
+
59
+ - [#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
60
+
61
+ - Updated dependencies [[`6e7e120`](https://github.com/mastra-ai/mastra/commit/6e7e1207d6e8d8b838f9024f90bd10df1181ba27), [`a5a23d9`](https://github.com/mastra-ai/mastra/commit/a5a23d981920d458dc6078919992a5338931ef02)]:
62
+ - @mastra/core@0.14.1-alpha.0
63
+
64
+ ## 0.2.6
65
+
66
+ ### Patch Changes
67
+
68
+ - 03997ae: Update peerdeps
69
+ - Updated dependencies [227c7e6]
70
+ - Updated dependencies [12cae67]
71
+ - Updated dependencies [fd3a3eb]
72
+ - Updated dependencies [6faaee5]
73
+ - Updated dependencies [4232b14]
74
+ - Updated dependencies [a89de7e]
75
+ - Updated dependencies [5a37d0c]
76
+ - Updated dependencies [4bde0cb]
77
+ - Updated dependencies [cf4f357]
78
+ - Updated dependencies [ad888a2]
79
+ - Updated dependencies [481751d]
80
+ - Updated dependencies [2454423]
81
+ - Updated dependencies [194e395]
82
+ - Updated dependencies [a722c0b]
83
+ - Updated dependencies [c30bca8]
84
+ - Updated dependencies [3b5fec7]
85
+ - Updated dependencies [a8f129d]
86
+ - @mastra/core@0.14.0
87
+
88
+ ## 0.2.6-alpha.0
89
+
90
+ ### Patch Changes
91
+
92
+ - 03997ae: Update peerdeps
93
+ - @mastra/core@0.14.0-alpha.7
94
+
95
+ ## 0.2.5
96
+
97
+ ### Patch Changes
98
+
99
+ - cc9035c: dependencies updates:
100
+ - Updated dependency [`@lancedb/lancedb@^0.21.2` ↗︎](https://www.npmjs.com/package/@lancedb/lancedb/v/0.21.2) (from `^0.18.2`, in `dependencies`)
101
+ - b32c50d: Filter scores by source
102
+ - Updated dependencies [d5330bf]
103
+ - Updated dependencies [2e74797]
104
+ - Updated dependencies [8388649]
105
+ - Updated dependencies [a239d41]
106
+ - Updated dependencies [dd94a26]
107
+ - Updated dependencies [3ba6772]
108
+ - Updated dependencies [b5cf2a3]
109
+ - Updated dependencies [2fff911]
110
+ - Updated dependencies [b32c50d]
111
+ - Updated dependencies [63449d0]
112
+ - Updated dependencies [121a3f8]
113
+ - Updated dependencies [ec510e7]
114
+ - @mastra/core@0.13.2
115
+
116
+ ## 0.2.5-alpha.0
117
+
118
+ ### Patch Changes
119
+
120
+ - cc9035c: dependencies updates:
121
+ - Updated dependency [`@lancedb/lancedb@^0.21.2` ↗︎](https://www.npmjs.com/package/@lancedb/lancedb/v/0.21.2) (from `^0.18.2`, in `dependencies`)
122
+ - b32c50d: Filter scores by source
123
+ - Updated dependencies [d5330bf]
124
+ - Updated dependencies [a239d41]
125
+ - Updated dependencies [b32c50d]
126
+ - Updated dependencies [121a3f8]
127
+ - Updated dependencies [ec510e7]
128
+ - @mastra/core@0.13.2-alpha.2
129
+
130
+ ## 0.2.4
131
+
132
+ ### Patch Changes
133
+
134
+ - 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
135
+ - Updated dependencies [cb36de0]
136
+ - Updated dependencies [d0496e6]
137
+ - Updated dependencies [a82b851]
138
+ - Updated dependencies [ea0c5f2]
139
+ - Updated dependencies [41a0a0e]
140
+ - Updated dependencies [2871020]
141
+ - Updated dependencies [94f4812]
142
+ - Updated dependencies [e202b82]
143
+ - Updated dependencies [e00f6a0]
144
+ - Updated dependencies [4a406ec]
145
+ - Updated dependencies [b0e43c1]
146
+ - Updated dependencies [5d377e5]
147
+ - Updated dependencies [1fb812e]
148
+ - Updated dependencies [35c5798]
149
+ - @mastra/core@0.13.0
150
+
151
+ ## 0.2.4-alpha.0
152
+
153
+ ### Patch Changes
154
+
155
+ - 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
156
+ - Updated dependencies [cb36de0]
157
+ - Updated dependencies [a82b851]
158
+ - Updated dependencies [41a0a0e]
159
+ - Updated dependencies [2871020]
160
+ - Updated dependencies [4a406ec]
161
+ - Updated dependencies [5d377e5]
162
+ - @mastra/core@0.13.0-alpha.2
163
+
164
+ ## 0.2.3
165
+
166
+ ### Patch Changes
167
+
168
+ - f42c4c2: update peer deps for packages to latest core range
169
+ - Updated dependencies [510e2c8]
170
+ - Updated dependencies [2f72fb2]
171
+ - Updated dependencies [27cc97a]
172
+ - Updated dependencies [3f89307]
173
+ - Updated dependencies [9eda7d4]
174
+ - Updated dependencies [9d49408]
175
+ - Updated dependencies [41daa63]
176
+ - Updated dependencies [ad0a58b]
177
+ - Updated dependencies [254a36b]
178
+ - Updated dependencies [2ecf658]
179
+ - Updated dependencies [7a7754f]
180
+ - Updated dependencies [fc92d80]
181
+ - Updated dependencies [e0f73c6]
182
+ - Updated dependencies [0b89602]
183
+ - Updated dependencies [4d37822]
184
+ - Updated dependencies [23a6a7c]
185
+ - Updated dependencies [cda801d]
186
+ - Updated dependencies [a77c823]
187
+ - Updated dependencies [ff9c125]
188
+ - Updated dependencies [09bca64]
189
+ - Updated dependencies [b8efbb9]
190
+ - Updated dependencies [71466e7]
191
+ - Updated dependencies [0c99fbe]
192
+ - @mastra/core@0.12.0
193
+
194
+ ## 0.2.3-alpha.0
195
+
196
+ ### Patch Changes
197
+
198
+ - f42c4c2: update peer deps for packages to latest core range
199
+ - @mastra/core@0.12.0-alpha.5
200
+
201
+ ## 0.2.2
202
+
203
+ ### Patch Changes
204
+
205
+ - ce088f5: Update all peerdeps to latest core
206
+ - @mastra/core@0.11.1
8
207
 
9
208
  ## 0.2.1
10
209
 
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
@@ -381,6 +381,20 @@ var StoreMemoryLance = class extends storage.MemoryStorage {
381
381
  );
382
382
  }
383
383
  }
384
+ normalizeMessage(message) {
385
+ const { thread_id, ...rest } = message;
386
+ return {
387
+ ...rest,
388
+ threadId: thread_id,
389
+ content: typeof message.content === "string" ? (() => {
390
+ try {
391
+ return JSON.parse(message.content);
392
+ } catch {
393
+ return message.content;
394
+ }
395
+ })() : message.content
396
+ };
397
+ }
384
398
  async getMessages({
385
399
  threadId,
386
400
  resourceId,
@@ -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 normalized = messages.map((msg) => {
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) {
@@ -449,6 +449,36 @@ var StoreMemoryLance = class extends storage.MemoryStorage {
449
449
  );
450
450
  }
451
451
  }
452
+ async getMessagesById({
453
+ messageIds,
454
+ format
455
+ }) {
456
+ if (messageIds.length === 0) return [];
457
+ try {
458
+ const table = await this.client.openTable(storage.TABLE_MESSAGES);
459
+ const quotedIds = messageIds.map((id) => `'${id}'`).join(", ");
460
+ const allRecords = await table.query().where(`id IN (${quotedIds})`).toArray();
461
+ const messages = processResultWithTypeConversion(
462
+ allRecords,
463
+ await getTableSchema({ tableName: storage.TABLE_MESSAGES, client: this.client })
464
+ );
465
+ const list = new agent.MessageList().add(messages.map(this.normalizeMessage), "memory");
466
+ if (format === `v1`) return list.get.all.v1();
467
+ return list.get.all.v2();
468
+ } catch (error$1) {
469
+ throw new error.MastraError(
470
+ {
471
+ id: "LANCE_STORE_GET_MESSAGES_BY_ID_FAILED",
472
+ domain: error.ErrorDomain.STORAGE,
473
+ category: error.ErrorCategory.THIRD_PARTY,
474
+ details: {
475
+ messageIds: JSON.stringify(messageIds)
476
+ }
477
+ },
478
+ error$1
479
+ );
480
+ }
481
+ }
452
482
  async saveMessages(args) {
453
483
  try {
454
484
  const { messages, format = "v1" } = args;
@@ -1361,6 +1391,7 @@ var StoreScoresLance = class extends storage.ScoresStorage {
1361
1391
  }
1362
1392
  async saveScore(score) {
1363
1393
  try {
1394
+ const id = crypto.randomUUID();
1364
1395
  const table = await this.client.openTable(storage.TABLE_SCORERS);
1365
1396
  const schema = await getTableSchema({ tableName: storage.TABLE_SCORERS, client: this.client });
1366
1397
  const allowedFields = new Set(schema.fields.map((f) => f.name));
@@ -1375,7 +1406,7 @@ var StoreScoresLance = class extends storage.ScoresStorage {
1375
1406
  filteredScore[key] = JSON.stringify(filteredScore[key]);
1376
1407
  }
1377
1408
  }
1378
- console.log("Saving score to LanceStorage:", filteredScore);
1409
+ filteredScore.id = id;
1379
1410
  await table.add([filteredScore], { mode: "append" });
1380
1411
  return { score };
1381
1412
  } catch (error$1) {
@@ -1414,18 +1445,35 @@ var StoreScoresLance = class extends storage.ScoresStorage {
1414
1445
  }
1415
1446
  async getScoresByScorerId({
1416
1447
  scorerId,
1417
- pagination
1448
+ pagination,
1449
+ entityId,
1450
+ entityType,
1451
+ source
1418
1452
  }) {
1419
1453
  try {
1420
1454
  const table = await this.client.openTable(storage.TABLE_SCORERS);
1421
1455
  const { page = 0, perPage = 10 } = pagination || {};
1422
1456
  const offset = page * perPage;
1423
- const query = table.query().where(`\`scorerId\` = '${scorerId}'`).limit(perPage);
1457
+ let query = table.query().where(`\`scorerId\` = '${scorerId}'`);
1458
+ if (source) {
1459
+ query = query.where(`\`source\` = '${source}'`);
1460
+ }
1461
+ if (entityId) {
1462
+ query = query.where(`\`entityId\` = '${entityId}'`);
1463
+ }
1464
+ if (entityType) {
1465
+ query = query.where(`\`entityType\` = '${entityType}'`);
1466
+ }
1467
+ query = query.limit(perPage);
1424
1468
  if (offset > 0) query.offset(offset);
1425
1469
  const records = await query.toArray();
1426
1470
  const schema = await getTableSchema({ tableName: storage.TABLE_SCORERS, client: this.client });
1427
1471
  const scores = processResultWithTypeConversion(records, schema);
1428
- const allRecords = await table.query().where(`\`scorerId\` = '${scorerId}'`).toArray();
1472
+ let totalQuery = table.query().where(`\`scorerId\` = '${scorerId}'`);
1473
+ if (source) {
1474
+ totalQuery = totalQuery.where(`\`source\` = '${source}'`);
1475
+ }
1476
+ const allRecords = await totalQuery.toArray();
1429
1477
  const total = allRecords.length;
1430
1478
  return {
1431
1479
  pagination: {
@@ -1741,6 +1789,22 @@ var StoreWorkflowsLance = class extends storage.WorkflowsStorage {
1741
1789
  super();
1742
1790
  this.client = client;
1743
1791
  }
1792
+ updateWorkflowResults({
1793
+ // workflowName,
1794
+ // runId,
1795
+ // stepId,
1796
+ // result,
1797
+ // runtimeContext,
1798
+ }) {
1799
+ throw new Error("Method not implemented.");
1800
+ }
1801
+ updateWorkflowState({
1802
+ // workflowName,
1803
+ // runId,
1804
+ // opts,
1805
+ }) {
1806
+ throw new Error("Method not implemented.");
1807
+ }
1744
1808
  async persistWorkflowSnapshot({
1745
1809
  workflowName,
1746
1810
  runId,
@@ -1997,7 +2061,8 @@ var LanceStorage = class _LanceStorage extends storage.MastraStorage {
1997
2061
  selectByIncludeResourceScope: true,
1998
2062
  resourceWorkingMemory: true,
1999
2063
  hasColumn: true,
2000
- createTable: true
2064
+ createTable: true,
2065
+ deleteMessages: false
2001
2066
  };
2002
2067
  }
2003
2068
  async getResourceById({ resourceId }) {
@@ -2070,6 +2135,12 @@ var LanceStorage = class _LanceStorage extends storage.MastraStorage {
2070
2135
  }) {
2071
2136
  return this.stores.memory.getMessages({ threadId, resourceId, selectBy, format, threadConfig });
2072
2137
  }
2138
+ async getMessagesById({
2139
+ messageIds,
2140
+ format
2141
+ }) {
2142
+ return this.stores.memory.getMessagesById({ messageIds, format });
2143
+ }
2073
2144
  async saveMessages(args) {
2074
2145
  return this.stores.memory.saveMessages(args);
2075
2146
  }
@@ -2103,6 +2174,22 @@ var LanceStorage = class _LanceStorage extends storage.MastraStorage {
2103
2174
  async getWorkflowRunById(args) {
2104
2175
  return this.stores.workflows.getWorkflowRunById(args);
2105
2176
  }
2177
+ async updateWorkflowResults({
2178
+ workflowName,
2179
+ runId,
2180
+ stepId,
2181
+ result,
2182
+ runtimeContext
2183
+ }) {
2184
+ return this.stores.workflows.updateWorkflowResults({ workflowName, runId, stepId, result, runtimeContext });
2185
+ }
2186
+ async updateWorkflowState({
2187
+ workflowName,
2188
+ runId,
2189
+ opts
2190
+ }) {
2191
+ return this.stores.workflows.updateWorkflowState({ workflowName, runId, opts });
2192
+ }
2106
2193
  async persistWorkflowSnapshot({
2107
2194
  workflowName,
2108
2195
  runId,
@@ -2121,9 +2208,12 @@ var LanceStorage = class _LanceStorage extends storage.MastraStorage {
2121
2208
  }
2122
2209
  async getScoresByScorerId({
2123
2210
  scorerId,
2211
+ source,
2212
+ entityId,
2213
+ entityType,
2124
2214
  pagination
2125
2215
  }) {
2126
- return this.stores.scores.getScoresByScorerId({ scorerId, pagination });
2216
+ return this.stores.scores.getScoresByScorerId({ scorerId, source, pagination, entityId, entityType });
2127
2217
  }
2128
2218
  async saveScore(_score) {
2129
2219
  return this.stores.scores.saveScore(_score);
@@ -3199,3 +3289,5 @@ var LanceVectorStore = class _LanceVectorStore extends vector.MastraVector {
3199
3289
 
3200
3290
  exports.LanceStorage = LanceStorage;
3201
3291
  exports.LanceVectorStore = LanceVectorStore;
3292
+ //# sourceMappingURL=index.cjs.map
3293
+ //# sourceMappingURL=index.cjs.map