@mastra/lance 0.0.0-tsconfig-compile-20250703214351 → 0.0.0-workflow-deno-20250616130925

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 CHANGED
@@ -1,116 +1,20 @@
1
1
  # @mastra/lance
2
2
 
3
- ## 0.0.0-tsconfig-compile-20250703214351
4
-
5
- ### Patch Changes
6
-
7
- - Updated dependencies [b790fd1]
8
- - Updated dependencies [f36e4f1]
9
- - @mastra/core@0.0.0-tsconfig-compile-20250703214351
10
-
11
- ## 0.2.0
12
-
13
- ### Minor Changes
14
-
15
- - 8a3bfd2: Update peerdeps to latest core
16
-
17
- ### Patch Changes
18
-
19
- - 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.
20
- - 0fb9d64: [MASTRA-4018] Update saveMessages in storage adapters to upsert messages
21
- - 2097952: [MASTRA-4021] Fix PG getMessages and update messageLimit for all storage adapters
22
- - 144eb0b: [MASTRA-3669] Metadata Filter Types
23
- - 0e17048: Throw mastra errors in storage packages
24
- - Updated dependencies [15e9d26]
25
- - Updated dependencies [d1baedb]
26
- - Updated dependencies [d8f2d19]
27
- - Updated dependencies [4d21bf2]
28
- - Updated dependencies [07d6d88]
29
- - Updated dependencies [9d52b17]
30
- - Updated dependencies [2097952]
31
- - Updated dependencies [792c4c0]
32
- - Updated dependencies [5d74aab]
33
- - Updated dependencies [a8b194f]
34
- - Updated dependencies [4fb0cc2]
35
- - Updated dependencies [d2a7a31]
36
- - Updated dependencies [502fe05]
37
- - Updated dependencies [144eb0b]
38
- - Updated dependencies [8ba1b51]
39
- - Updated dependencies [4efcfa0]
40
- - Updated dependencies [0e17048]
41
- - @mastra/core@0.10.7
42
-
43
- ## 0.2.0-alpha.3
44
-
45
- ### Minor Changes
46
-
47
- - 8a3bfd2: Update peerdeps to latest core
48
-
49
- ### Patch Changes
50
-
51
- - Updated dependencies [792c4c0]
52
- - Updated dependencies [502fe05]
53
- - Updated dependencies [4efcfa0]
54
- - @mastra/core@0.10.7-alpha.3
55
-
56
- ## 0.1.3-alpha.2
57
-
58
- ### Patch Changes
59
-
60
- - 0fb9d64: [MASTRA-4018] Update saveMessages in storage adapters to upsert messages
61
- - 144eb0b: [MASTRA-3669] Metadata Filter Types
62
- - Updated dependencies [15e9d26]
63
- - Updated dependencies [07d6d88]
64
- - Updated dependencies [5d74aab]
65
- - Updated dependencies [144eb0b]
66
- - @mastra/core@0.10.7-alpha.2
67
-
68
- ## 0.1.3-alpha.1
69
-
70
- ### Patch Changes
71
-
72
- - 2097952: [MASTRA-4021] Fix PG getMessages and update messageLimit for all storage adapters
73
- - 0e17048: Throw mastra errors in storage packages
74
- - Updated dependencies [d1baedb]
75
- - Updated dependencies [4d21bf2]
76
- - Updated dependencies [2097952]
77
- - Updated dependencies [4fb0cc2]
78
- - Updated dependencies [d2a7a31]
79
- - Updated dependencies [0e17048]
80
- - @mastra/core@0.10.7-alpha.1
81
-
82
- ## 0.1.3-alpha.0
83
-
84
- ### Patch Changes
85
-
86
- - 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.
87
- - Updated dependencies [d8f2d19]
88
- - Updated dependencies [9d52b17]
89
- - Updated dependencies [8ba1b51]
90
- - @mastra/core@0.10.7-alpha.0
91
-
92
- ## 0.1.2
3
+ ## 0.0.0-workflow-deno-20250616130925
93
4
 
94
5
  ### Patch Changes
95
6
 
96
7
  - 63f6b7d: dependencies updates:
97
8
  - Updated dependency [`@lancedb/lancedb@^0.18.2` ↗︎](https://www.npmjs.com/package/@lancedb/lancedb/v/0.18.2) (from `^0.18.1`, in `dependencies`)
98
9
  - Updated dependencies [63f6b7d]
99
- - Updated dependencies [12a95fc]
100
- - Updated dependencies [4b0f8a6]
101
- - Updated dependencies [51264a5]
102
- - Updated dependencies [8e6f677]
103
- - Updated dependencies [d70c420]
104
10
  - Updated dependencies [ee9af57]
105
11
  - Updated dependencies [36f1c36]
106
- - Updated dependencies [2a16996]
107
12
  - Updated dependencies [10d352e]
108
- - Updated dependencies [9589624]
13
+ - Updated dependencies [3ca9a67]
109
14
  - Updated dependencies [53d3c37]
110
- - Updated dependencies [751c894]
111
15
  - Updated dependencies [577ce3a]
112
16
  - Updated dependencies [9260b3a]
113
- - @mastra/core@0.10.6
17
+ - @mastra/core@0.0.0-workflow-deno-20250616130925
114
18
 
115
19
  ## 0.1.2-alpha.0
116
20
 
@@ -1,7 +1,6 @@
1
1
  import { ArrayOperator } from '@mastra/core/vector/filter';
2
2
  import { BaseFilterTranslator } from '@mastra/core/vector/filter';
3
3
  import { BasicOperator } from '@mastra/core/vector/filter';
4
- import type { BlacklistedRootOperators } from '@mastra/core/vector/filter';
5
4
  import type { ConnectionOptions } from '@lancedb/lancedb';
6
5
  import type { CreateIndexParams } from '@mastra/core';
7
6
  import type { CreateTableOptions } from '@lancedb/lancedb';
@@ -11,14 +10,11 @@ import type { DescribeIndexParams } from '@mastra/core';
11
10
  import type { EvalRow } from '@mastra/core/storage';
12
11
  import type { IndexStats } from '@mastra/core';
13
12
  import { LogicalOperator } from '@mastra/core/vector/filter';
14
- import type { LogicalOperatorValueMap } from '@mastra/core/vector/filter';
15
- import type { MastraMessageContentV2 } from '@mastra/core/agent';
16
13
  import type { MastraMessageV1 } from '@mastra/core/memory';
17
14
  import type { MastraMessageV2 } from '@mastra/core/memory';
18
15
  import { MastraStorage } from '@mastra/core/storage';
19
16
  import { MastraVector } from '@mastra/core/vector';
20
17
  import { NumericOperator } from '@mastra/core/vector/filter';
21
- import type { OperatorValueMap } from '@mastra/core/vector/filter';
22
18
  import type { PaginationInfo } from '@mastra/core/storage';
23
19
  import type { QueryResult } from '@mastra/core';
24
20
  import type { QueryVectorParams } from '@mastra/core';
@@ -56,15 +52,13 @@ declare interface IVFConfig {
56
52
  lists?: number;
57
53
  }
58
54
 
59
- declare type LanceBlacklisted = BlacklistedRootOperators | '$like' | '$notLike' | '$contains';
60
-
61
55
  declare interface LanceCreateIndexParams extends CreateIndexParams {
62
56
  indexConfig?: LanceIndexConfig;
63
57
  tableName?: string;
64
58
  }
65
59
 
66
- export declare class LanceFilterTranslator extends BaseFilterTranslator<LanceVectorFilter, string> {
67
- translate(filter: LanceVectorFilter): string;
60
+ export declare class LanceFilterTranslator extends BaseFilterTranslator {
61
+ translate(filter: VectorFilter): string;
68
62
  private processFilter;
69
63
  private processLogicalOperator;
70
64
  private processNestedObject;
@@ -99,13 +93,7 @@ declare interface LanceIndexConfig extends IndexConfig {
99
93
  numSubVectors?: number;
100
94
  }
101
95
 
102
- declare type LanceOperatorValueMap = OperatorValueMap & {
103
- $like: string;
104
- $notLike: string;
105
- $contains: string;
106
- };
107
-
108
- declare interface LanceQueryVectorParams extends QueryVectorParams<LanceVectorFilter> {
96
+ declare interface LanceQueryVectorParams extends QueryVectorParams {
109
97
  tableName: string;
110
98
  columns?: string[];
111
99
  includeAllColumns?: boolean;
@@ -136,7 +124,6 @@ declare class LanceStorage extends MastraStorage {
136
124
  * ```
137
125
  */
138
126
  static create(name: string, uri: string, options?: ConnectionOptions): Promise<LanceStorage>;
139
- private getPrimaryKeys;
140
127
  /**
141
128
  * @internal
142
129
  * Private constructor to enforce using the create factory method
@@ -322,15 +309,6 @@ declare class LanceStorage extends MastraStorage {
322
309
  getMessagesPaginated(_args: StorageGetMessagesArg): Promise<PaginationInfo & {
323
310
  messages: MastraMessageV1[] | MastraMessageV2[];
324
311
  }>;
325
- updateMessages(_args: {
326
- messages: Partial<Omit<MastraMessageV2, 'createdAt'>> & {
327
- id: string;
328
- content?: {
329
- metadata?: MastraMessageContentV2['metadata'];
330
- content?: MastraMessageContentV2['content'];
331
- };
332
- }[];
333
- }): Promise<MastraMessageV2[]>;
334
312
  }
335
313
  export { LanceStorage }
336
314
  export { LanceStorage as LanceStorage_alias_1 }
@@ -339,9 +317,7 @@ declare interface LanceUpsertVectorParams extends UpsertVectorParams {
339
317
  tableName: string;
340
318
  }
341
319
 
342
- export declare type LanceVectorFilter = VectorFilter<keyof LanceOperatorValueMap, LanceOperatorValueMap, LogicalOperatorValueMap, LanceBlacklisted>;
343
-
344
- declare class LanceVectorStore extends MastraVector<LanceVectorFilter> {
320
+ declare class LanceVectorStore extends MastraVector {
345
321
  private lanceClient;
346
322
  /**
347
323
  * Creates a new instance of LanceVectorStore
@@ -1,7 +1,6 @@
1
1
  import { ArrayOperator } from '@mastra/core/vector/filter';
2
2
  import { BaseFilterTranslator } from '@mastra/core/vector/filter';
3
3
  import { BasicOperator } from '@mastra/core/vector/filter';
4
- import type { BlacklistedRootOperators } from '@mastra/core/vector/filter';
5
4
  import type { ConnectionOptions } from '@lancedb/lancedb';
6
5
  import type { CreateIndexParams } from '@mastra/core';
7
6
  import type { CreateTableOptions } from '@lancedb/lancedb';
@@ -11,14 +10,11 @@ import type { DescribeIndexParams } from '@mastra/core';
11
10
  import type { EvalRow } from '@mastra/core/storage';
12
11
  import type { IndexStats } from '@mastra/core';
13
12
  import { LogicalOperator } from '@mastra/core/vector/filter';
14
- import type { LogicalOperatorValueMap } from '@mastra/core/vector/filter';
15
- import type { MastraMessageContentV2 } from '@mastra/core/agent';
16
13
  import type { MastraMessageV1 } from '@mastra/core/memory';
17
14
  import type { MastraMessageV2 } from '@mastra/core/memory';
18
15
  import { MastraStorage } from '@mastra/core/storage';
19
16
  import { MastraVector } from '@mastra/core/vector';
20
17
  import { NumericOperator } from '@mastra/core/vector/filter';
21
- import type { OperatorValueMap } from '@mastra/core/vector/filter';
22
18
  import type { PaginationInfo } from '@mastra/core/storage';
23
19
  import type { QueryResult } from '@mastra/core';
24
20
  import type { QueryVectorParams } from '@mastra/core';
@@ -56,15 +52,13 @@ declare interface IVFConfig {
56
52
  lists?: number;
57
53
  }
58
54
 
59
- declare type LanceBlacklisted = BlacklistedRootOperators | '$like' | '$notLike' | '$contains';
60
-
61
55
  declare interface LanceCreateIndexParams extends CreateIndexParams {
62
56
  indexConfig?: LanceIndexConfig;
63
57
  tableName?: string;
64
58
  }
65
59
 
66
- export declare class LanceFilterTranslator extends BaseFilterTranslator<LanceVectorFilter, string> {
67
- translate(filter: LanceVectorFilter): string;
60
+ export declare class LanceFilterTranslator extends BaseFilterTranslator {
61
+ translate(filter: VectorFilter): string;
68
62
  private processFilter;
69
63
  private processLogicalOperator;
70
64
  private processNestedObject;
@@ -99,13 +93,7 @@ declare interface LanceIndexConfig extends IndexConfig {
99
93
  numSubVectors?: number;
100
94
  }
101
95
 
102
- declare type LanceOperatorValueMap = OperatorValueMap & {
103
- $like: string;
104
- $notLike: string;
105
- $contains: string;
106
- };
107
-
108
- declare interface LanceQueryVectorParams extends QueryVectorParams<LanceVectorFilter> {
96
+ declare interface LanceQueryVectorParams extends QueryVectorParams {
109
97
  tableName: string;
110
98
  columns?: string[];
111
99
  includeAllColumns?: boolean;
@@ -136,7 +124,6 @@ declare class LanceStorage extends MastraStorage {
136
124
  * ```
137
125
  */
138
126
  static create(name: string, uri: string, options?: ConnectionOptions): Promise<LanceStorage>;
139
- private getPrimaryKeys;
140
127
  /**
141
128
  * @internal
142
129
  * Private constructor to enforce using the create factory method
@@ -322,15 +309,6 @@ declare class LanceStorage extends MastraStorage {
322
309
  getMessagesPaginated(_args: StorageGetMessagesArg): Promise<PaginationInfo & {
323
310
  messages: MastraMessageV1[] | MastraMessageV2[];
324
311
  }>;
325
- updateMessages(_args: {
326
- messages: Partial<Omit<MastraMessageV2, 'createdAt'>> & {
327
- id: string;
328
- content?: {
329
- metadata?: MastraMessageContentV2['metadata'];
330
- content?: MastraMessageContentV2['content'];
331
- };
332
- }[];
333
- }): Promise<MastraMessageV2[]>;
334
312
  }
335
313
  export { LanceStorage }
336
314
  export { LanceStorage as LanceStorage_alias_1 }
@@ -339,9 +317,7 @@ declare interface LanceUpsertVectorParams extends UpsertVectorParams {
339
317
  tableName: string;
340
318
  }
341
319
 
342
- export declare type LanceVectorFilter = VectorFilter<keyof LanceOperatorValueMap, LanceOperatorValueMap, LogicalOperatorValueMap, LanceBlacklisted>;
343
-
344
- declare class LanceVectorStore extends MastraVector<LanceVectorFilter> {
320
+ declare class LanceVectorStore extends MastraVector {
345
321
  private lanceClient;
346
322
  /**
347
323
  * Creates a new instance of LanceVectorStore