@mastra/lance 0.1.2-alpha.0 → 0.1.3-alpha.0
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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +33 -0
- package/dist/_tsup-dts-rollup.d.cts +10 -0
- package/dist/_tsup-dts-rollup.d.ts +10 -0
- package/dist/index.cjs +4 -0
- package/dist/index.js +4 -0
- package/package.json +4 -4
- package/src/storage/index.ts +12 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/lance@0.1.
|
|
2
|
+
> @mastra/lance@0.1.3-alpha.0 build /home/runner/work/mastra/mastra/stores/lance
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.5.0
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 10460ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/stores/lance/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
14
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
15
15
|
[36mWriting package typings: /home/runner/work/mastra/mastra/stores/lance/dist/_tsup-dts-rollup.d.cts[39m
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 12006ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
20
|
+
[32mESM[39m [1mdist/index.js [22m[32m53.13 KB[39m
|
|
21
|
+
[32mESM[39m ⚡️ Build success in 1424ms
|
|
22
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m53.42 KB[39m
|
|
23
|
+
[32mCJS[39m ⚡️ Build success in 1424ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# @mastra/lance
|
|
2
2
|
|
|
3
|
+
## 0.1.3-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d8f2d19: Add updateMessages API to storage classes (only support for PG and LibSQL for now) and to memory class. Additionally allow for metadata to be saved in the content field of a message.
|
|
8
|
+
- Updated dependencies [d8f2d19]
|
|
9
|
+
- Updated dependencies [9d52b17]
|
|
10
|
+
- Updated dependencies [8ba1b51]
|
|
11
|
+
- @mastra/core@0.10.7-alpha.0
|
|
12
|
+
|
|
13
|
+
## 0.1.2
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- 63f6b7d: dependencies updates:
|
|
18
|
+
- Updated dependency [`@lancedb/lancedb@^0.18.2` ↗︎](https://www.npmjs.com/package/@lancedb/lancedb/v/0.18.2) (from `^0.18.1`, in `dependencies`)
|
|
19
|
+
- Updated dependencies [63f6b7d]
|
|
20
|
+
- Updated dependencies [12a95fc]
|
|
21
|
+
- Updated dependencies [4b0f8a6]
|
|
22
|
+
- Updated dependencies [51264a5]
|
|
23
|
+
- Updated dependencies [8e6f677]
|
|
24
|
+
- Updated dependencies [d70c420]
|
|
25
|
+
- Updated dependencies [ee9af57]
|
|
26
|
+
- Updated dependencies [36f1c36]
|
|
27
|
+
- Updated dependencies [2a16996]
|
|
28
|
+
- Updated dependencies [10d352e]
|
|
29
|
+
- Updated dependencies [9589624]
|
|
30
|
+
- Updated dependencies [53d3c37]
|
|
31
|
+
- Updated dependencies [751c894]
|
|
32
|
+
- Updated dependencies [577ce3a]
|
|
33
|
+
- Updated dependencies [9260b3a]
|
|
34
|
+
- @mastra/core@0.10.6
|
|
35
|
+
|
|
3
36
|
## 0.1.2-alpha.0
|
|
4
37
|
|
|
5
38
|
### Patch Changes
|
|
@@ -10,6 +10,7 @@ import type { DescribeIndexParams } from '@mastra/core';
|
|
|
10
10
|
import type { EvalRow } from '@mastra/core/storage';
|
|
11
11
|
import type { IndexStats } from '@mastra/core';
|
|
12
12
|
import { LogicalOperator } from '@mastra/core/vector/filter';
|
|
13
|
+
import type { MastraMessageContentV2 } from '@mastra/core/agent';
|
|
13
14
|
import type { MastraMessageV1 } from '@mastra/core/memory';
|
|
14
15
|
import type { MastraMessageV2 } from '@mastra/core/memory';
|
|
15
16
|
import { MastraStorage } from '@mastra/core/storage';
|
|
@@ -309,6 +310,15 @@ declare class LanceStorage extends MastraStorage {
|
|
|
309
310
|
getMessagesPaginated(_args: StorageGetMessagesArg): Promise<PaginationInfo & {
|
|
310
311
|
messages: MastraMessageV1[] | MastraMessageV2[];
|
|
311
312
|
}>;
|
|
313
|
+
updateMessages(_args: {
|
|
314
|
+
messages: Partial<Omit<MastraMessageV2, 'createdAt'>> & {
|
|
315
|
+
id: string;
|
|
316
|
+
content?: {
|
|
317
|
+
metadata?: MastraMessageContentV2['metadata'];
|
|
318
|
+
content?: MastraMessageContentV2['content'];
|
|
319
|
+
};
|
|
320
|
+
}[];
|
|
321
|
+
}): Promise<MastraMessageV2[]>;
|
|
312
322
|
}
|
|
313
323
|
export { LanceStorage }
|
|
314
324
|
export { LanceStorage as LanceStorage_alias_1 }
|
|
@@ -10,6 +10,7 @@ import type { DescribeIndexParams } from '@mastra/core';
|
|
|
10
10
|
import type { EvalRow } from '@mastra/core/storage';
|
|
11
11
|
import type { IndexStats } from '@mastra/core';
|
|
12
12
|
import { LogicalOperator } from '@mastra/core/vector/filter';
|
|
13
|
+
import type { MastraMessageContentV2 } from '@mastra/core/agent';
|
|
13
14
|
import type { MastraMessageV1 } from '@mastra/core/memory';
|
|
14
15
|
import type { MastraMessageV2 } from '@mastra/core/memory';
|
|
15
16
|
import { MastraStorage } from '@mastra/core/storage';
|
|
@@ -309,6 +310,15 @@ declare class LanceStorage extends MastraStorage {
|
|
|
309
310
|
getMessagesPaginated(_args: StorageGetMessagesArg): Promise<PaginationInfo & {
|
|
310
311
|
messages: MastraMessageV1[] | MastraMessageV2[];
|
|
311
312
|
}>;
|
|
313
|
+
updateMessages(_args: {
|
|
314
|
+
messages: Partial<Omit<MastraMessageV2, 'createdAt'>> & {
|
|
315
|
+
id: string;
|
|
316
|
+
content?: {
|
|
317
|
+
metadata?: MastraMessageContentV2['metadata'];
|
|
318
|
+
content?: MastraMessageContentV2['content'];
|
|
319
|
+
};
|
|
320
|
+
}[];
|
|
321
|
+
}): Promise<MastraMessageV2[]>;
|
|
312
322
|
}
|
|
313
323
|
export { LanceStorage }
|
|
314
324
|
export { LanceStorage as LanceStorage_alias_1 }
|
package/dist/index.cjs
CHANGED
|
@@ -753,6 +753,10 @@ var LanceStorage = class _LanceStorage extends storage.MastraStorage {
|
|
|
753
753
|
async getMessagesPaginated(_args) {
|
|
754
754
|
throw new Error("Method not implemented.");
|
|
755
755
|
}
|
|
756
|
+
async updateMessages(_args) {
|
|
757
|
+
this.logger.error("updateMessages is not yet implemented in LanceStore");
|
|
758
|
+
throw new Error("Method not implemented");
|
|
759
|
+
}
|
|
756
760
|
};
|
|
757
761
|
var LanceFilterTranslator = class extends filter.BaseFilterTranslator {
|
|
758
762
|
translate(filter) {
|
package/dist/index.js
CHANGED
|
@@ -751,6 +751,10 @@ var LanceStorage = class _LanceStorage extends MastraStorage {
|
|
|
751
751
|
async getMessagesPaginated(_args) {
|
|
752
752
|
throw new Error("Method not implemented.");
|
|
753
753
|
}
|
|
754
|
+
async updateMessages(_args) {
|
|
755
|
+
this.logger.error("updateMessages is not yet implemented in LanceStore");
|
|
756
|
+
throw new Error("Method not implemented");
|
|
757
|
+
}
|
|
754
758
|
};
|
|
755
759
|
var LanceFilterTranslator = class extends BaseFilterTranslator {
|
|
756
760
|
translate(filter) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/lance",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3-alpha.0",
|
|
4
4
|
"description": "Lance provider for Mastra - includes both vector and db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"tsup": "^8.5.0",
|
|
30
30
|
"typescript": "^5.8.3",
|
|
31
31
|
"vitest": "^3.2.3",
|
|
32
|
-
"@internal/storage-test-utils": "0.0.
|
|
33
|
-
"@mastra/core": "^0.10.
|
|
34
|
-
"@internal/lint": "0.0.
|
|
32
|
+
"@internal/storage-test-utils": "0.0.9",
|
|
33
|
+
"@mastra/core": "^0.10.7-alpha.0",
|
|
34
|
+
"@internal/lint": "0.0.13"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@mastra/core": ">=0.10.4-0 <0.11.0"
|
package/src/storage/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { connect } from '@lancedb/lancedb';
|
|
2
2
|
import type { Connection, ConnectionOptions, SchemaLike, FieldLike } from '@lancedb/lancedb';
|
|
3
|
+
import type { MastraMessageContentV2 } from '@mastra/core/agent';
|
|
3
4
|
import { MessageList } from '@mastra/core/agent';
|
|
4
5
|
import type { MastraMessageV1, MastraMessageV2, StorageThreadType, TraceType } from '@mastra/core/memory';
|
|
5
6
|
import {
|
|
@@ -1014,4 +1015,15 @@ export class LanceStorage extends MastraStorage {
|
|
|
1014
1015
|
): Promise<PaginationInfo & { messages: MastraMessageV1[] | MastraMessageV2[] }> {
|
|
1015
1016
|
throw new Error('Method not implemented.');
|
|
1016
1017
|
}
|
|
1018
|
+
|
|
1019
|
+
async updateMessages(_args: {
|
|
1020
|
+
messages: Partial<Omit<MastraMessageV2, 'createdAt'>> &
|
|
1021
|
+
{
|
|
1022
|
+
id: string;
|
|
1023
|
+
content?: { metadata?: MastraMessageContentV2['metadata']; content?: MastraMessageContentV2['content'] };
|
|
1024
|
+
}[];
|
|
1025
|
+
}): Promise<MastraMessageV2[]> {
|
|
1026
|
+
this.logger.error('updateMessages is not yet implemented in LanceStore');
|
|
1027
|
+
throw new Error('Method not implemented');
|
|
1028
|
+
}
|
|
1017
1029
|
}
|