@mastra/lance 0.1.2 → 0.1.3-alpha.1
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 +24 -0
- package/dist/_tsup-dts-rollup.d.cts +10 -0
- package/dist/_tsup-dts-rollup.d.ts +10 -0
- package/dist/index.cjs +790 -153
- package/dist/index.js +757 -120
- package/package.json +2 -2
- package/src/storage/index.test.ts +1 -1
- package/src/storage/index.ts +473 -61
- package/src/vector/index.test.ts +3 -3
- package/src/vector/index.ts +316 -75
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/lance@0.1.
|
|
2
|
+
> @mastra/lance@0.1.3-alpha.1 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 9945ms
|
|
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 12711ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
20
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
21
|
-
[32mESM[39m ⚡️ Build success in
|
|
22
|
-
[32mCJS[39m [1mdist/index.cjs [22m[
|
|
23
|
-
[32mCJS[39m ⚡️ Build success in
|
|
20
|
+
[32mESM[39m [1mdist/index.js [22m[32m70.32 KB[39m
|
|
21
|
+
[32mESM[39m ⚡️ Build success in 1611ms
|
|
22
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m71.85 KB[39m
|
|
23
|
+
[32mCJS[39m ⚡️ Build success in 1612ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @mastra/lance
|
|
2
2
|
|
|
3
|
+
## 0.1.3-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2097952: [MASTRA-4021] Fix PG getMessages and update messageLimit for all storage adapters
|
|
8
|
+
- 0e17048: Throw mastra errors in storage packages
|
|
9
|
+
- Updated dependencies [d1baedb]
|
|
10
|
+
- Updated dependencies [4d21bf2]
|
|
11
|
+
- Updated dependencies [2097952]
|
|
12
|
+
- Updated dependencies [4fb0cc2]
|
|
13
|
+
- Updated dependencies [d2a7a31]
|
|
14
|
+
- Updated dependencies [0e17048]
|
|
15
|
+
- @mastra/core@0.10.7-alpha.1
|
|
16
|
+
|
|
17
|
+
## 0.1.3-alpha.0
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 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.
|
|
22
|
+
- Updated dependencies [d8f2d19]
|
|
23
|
+
- Updated dependencies [9d52b17]
|
|
24
|
+
- Updated dependencies [8ba1b51]
|
|
25
|
+
- @mastra/core@0.10.7-alpha.0
|
|
26
|
+
|
|
3
27
|
## 0.1.2
|
|
4
28
|
|
|
5
29
|
### 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 }
|