@mastra/convex 1.0.11 → 1.1.0-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/CHANGELOG.md +69 -0
- package/README.md +76 -4
- package/dist/cache/client.d.ts +21 -0
- package/dist/cache/client.d.ts.map +1 -0
- package/dist/cache/index.d.ts +35 -0
- package/dist/cache/index.d.ts.map +1 -0
- package/dist/cache/types.d.ts +46 -0
- package/dist/cache/types.d.ts.map +1 -0
- package/dist/{chunk-FTVDAP6U.cjs → chunk-CV23JOCS.cjs} +44 -2
- package/dist/chunk-CV23JOCS.cjs.map +1 -0
- package/dist/chunk-EEELVBWO.cjs +893 -0
- package/dist/chunk-EEELVBWO.cjs.map +1 -0
- package/dist/chunk-FZDLZ4S3.js +887 -0
- package/dist/chunk-FZDLZ4S3.js.map +1 -0
- package/dist/{chunk-G5FLGAPE.js → chunk-JPWDG4L3.js} +42 -3
- package/dist/chunk-JPWDG4L3.js.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +44 -15
- package/dist/docs/references/reference-storage-convex.md +74 -12
- package/dist/docs/references/reference-vectors-convex.md +129 -7
- package/dist/index.cjs +515 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +471 -23
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs +29 -17
- package/dist/schema.d.ts +76 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +1 -1
- package/dist/server/cache.d.ts +5 -0
- package/dist/server/cache.d.ts.map +1 -0
- package/dist/server/index.cjs +44 -16
- package/dist/server/index.d.ts +3 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/native-vector.d.ts +17 -0
- package/dist/server/native-vector.d.ts.map +1 -0
- package/dist/storage/client.d.ts +5 -0
- package/dist/storage/client.d.ts.map +1 -1
- package/dist/vector/native.d.ts +111 -0
- package/dist/vector/native.d.ts.map +1 -0
- package/package.json +5 -5
- package/dist/chunk-C6QDNSBM.cjs +0 -425
- package/dist/chunk-C6QDNSBM.cjs.map +0 -1
- package/dist/chunk-FTVDAP6U.cjs.map +0 -1
- package/dist/chunk-G5FLGAPE.js.map +0 -1
- package/dist/chunk-NXNW2MK5.js +0 -423
- package/dist/chunk-NXNW2MK5.js.map +0 -1
package/dist/schema.cjs
CHANGED
|
@@ -1,72 +1,84 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkCV23JOCS_cjs = require('./chunk-CV23JOCS.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "TABLE_DOCUMENTS", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkCV23JOCS_cjs.TABLE_DOCUMENTS; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "TABLE_MESSAGES", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkCV23JOCS_cjs.TABLE_MESSAGES; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "TABLE_RESOURCES", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkCV23JOCS_cjs.TABLE_RESOURCES; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "TABLE_SCORERS", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkCV23JOCS_cjs.TABLE_SCORERS; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "TABLE_THREADS", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkCV23JOCS_cjs.TABLE_THREADS; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "TABLE_VECTORS", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkCV23JOCS_cjs.TABLE_VECTORS; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "TABLE_VECTOR_INDEXES", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkCV23JOCS_cjs.TABLE_VECTOR_INDEXES; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "TABLE_WORKFLOW_SNAPSHOT", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkCV23JOCS_cjs.TABLE_WORKFLOW_SNAPSHOT; }
|
|
38
|
+
});
|
|
39
|
+
Object.defineProperty(exports, "defineMastraNativeVectorTable", {
|
|
40
|
+
enumerable: true,
|
|
41
|
+
get: function () { return chunkCV23JOCS_cjs.defineMastraNativeVectorTable; }
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "mastraCacheListItemsTable", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function () { return chunkCV23JOCS_cjs.mastraCacheListItemsTable; }
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "mastraCacheTable", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function () { return chunkCV23JOCS_cjs.mastraCacheTable; }
|
|
38
50
|
});
|
|
39
51
|
Object.defineProperty(exports, "mastraDocumentsTable", {
|
|
40
52
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkCV23JOCS_cjs.mastraDocumentsTable; }
|
|
42
54
|
});
|
|
43
55
|
Object.defineProperty(exports, "mastraMessagesTable", {
|
|
44
56
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkCV23JOCS_cjs.mastraMessagesTable; }
|
|
46
58
|
});
|
|
47
59
|
Object.defineProperty(exports, "mastraResourcesTable", {
|
|
48
60
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkCV23JOCS_cjs.mastraResourcesTable; }
|
|
50
62
|
});
|
|
51
63
|
Object.defineProperty(exports, "mastraScoresTable", {
|
|
52
64
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkCV23JOCS_cjs.mastraScoresTable; }
|
|
54
66
|
});
|
|
55
67
|
Object.defineProperty(exports, "mastraThreadsTable", {
|
|
56
68
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkCV23JOCS_cjs.mastraThreadsTable; }
|
|
58
70
|
});
|
|
59
71
|
Object.defineProperty(exports, "mastraVectorIndexesTable", {
|
|
60
72
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkCV23JOCS_cjs.mastraVectorIndexesTable; }
|
|
62
74
|
});
|
|
63
75
|
Object.defineProperty(exports, "mastraVectorsTable", {
|
|
64
76
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkCV23JOCS_cjs.mastraVectorsTable; }
|
|
66
78
|
});
|
|
67
79
|
Object.defineProperty(exports, "mastraWorkflowSnapshotsTable", {
|
|
68
80
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkCV23JOCS_cjs.mastraWorkflowSnapshotsTable; }
|
|
70
82
|
});
|
|
71
83
|
//# sourceMappingURL=schema.cjs.map
|
|
72
84
|
//# sourceMappingURL=schema.cjs.map
|
package/dist/schema.d.ts
CHANGED
|
@@ -128,6 +128,82 @@ export declare const mastraVectorsTable: import("convex/server").TableDefinition
|
|
|
128
128
|
by_index_id: ["indexName", "id", "_creationTime"];
|
|
129
129
|
by_index: ["indexName", "_creationTime"];
|
|
130
130
|
}, {}, {}>;
|
|
131
|
+
export type MastraNativeVectorTableConfig = {
|
|
132
|
+
/**
|
|
133
|
+
* Vector dimensions for the deployed Convex vector index.
|
|
134
|
+
*/
|
|
135
|
+
dimensions: number;
|
|
136
|
+
/**
|
|
137
|
+
* Convex vector index name.
|
|
138
|
+
*
|
|
139
|
+
* @default 'by_embedding'
|
|
140
|
+
*/
|
|
141
|
+
vectorIndexName?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Stage the vector index for a later backfill.
|
|
144
|
+
*
|
|
145
|
+
* @default false
|
|
146
|
+
*/
|
|
147
|
+
staged?: boolean;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Defines a dedicated Convex table for native vector search with the default
|
|
151
|
+
* `ConvexNativeVector` field names.
|
|
152
|
+
*
|
|
153
|
+
* Use a custom `defineTable()` when you need native vector `filterFields`,
|
|
154
|
+
* because filter fields must also be declared in the table schema.
|
|
155
|
+
*/
|
|
156
|
+
export declare function defineMastraNativeVectorTable({ dimensions, vectorIndexName, staged, }: MastraNativeVectorTableConfig): import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
157
|
+
metadata?: any;
|
|
158
|
+
id: string;
|
|
159
|
+
embedding: number[];
|
|
160
|
+
}, {
|
|
161
|
+
id: import("convex/values").VString<string, "required">;
|
|
162
|
+
embedding: import("convex/values").VArray<number[], import("convex/values").VFloat64<number, "required">, "required">;
|
|
163
|
+
metadata: import("convex/values").VAny<any, "optional", string>;
|
|
164
|
+
}, "required", "id" | "metadata" | "embedding" | `metadata.${string}`>, {
|
|
165
|
+
by_record_id: ["id", "_creationTime"];
|
|
166
|
+
}, {}, {}>;
|
|
167
|
+
/**
|
|
168
|
+
* Cache metadata table - stores scalar cache values, list counters, and numeric
|
|
169
|
+
* counters used by ConvexServerCache.
|
|
170
|
+
*/
|
|
171
|
+
export declare const mastraCacheTable: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
172
|
+
value?: string | undefined;
|
|
173
|
+
counter?: number | undefined;
|
|
174
|
+
key: string;
|
|
175
|
+
kind: "value" | "list" | "counter" | "deleted";
|
|
176
|
+
keyPrefix: string;
|
|
177
|
+
expiresAt: number | null;
|
|
178
|
+
}, {
|
|
179
|
+
key: import("convex/values").VString<string, "required">;
|
|
180
|
+
keyPrefix: import("convex/values").VString<string, "required">;
|
|
181
|
+
kind: import("convex/values").VUnion<"value" | "list" | "counter" | "deleted", [import("convex/values").VLiteral<"value", "required">, import("convex/values").VLiteral<"list", "required">, import("convex/values").VLiteral<"counter", "required">, import("convex/values").VLiteral<"deleted", "required">], "required", never>;
|
|
182
|
+
value: import("convex/values").VString<string | undefined, "optional">;
|
|
183
|
+
counter: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
184
|
+
expiresAt: import("convex/values").VUnion<number | null, [import("convex/values").VFloat64<number, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
185
|
+
}, "required", "key" | "value" | "counter" | "kind" | "keyPrefix" | "expiresAt">, {
|
|
186
|
+
by_key: ["key", "_creationTime"];
|
|
187
|
+
by_key_prefix: ["keyPrefix", "_creationTime"];
|
|
188
|
+
}, {}, {}>;
|
|
189
|
+
/**
|
|
190
|
+
* Cache list item table - stores each list entry as its own row so replay
|
|
191
|
+
* history does not grow into a single large Convex document.
|
|
192
|
+
*/
|
|
193
|
+
export declare const mastraCacheListItemsTable: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
194
|
+
key: string;
|
|
195
|
+
value: string;
|
|
196
|
+
index: number;
|
|
197
|
+
keyPrefix: string;
|
|
198
|
+
}, {
|
|
199
|
+
key: import("convex/values").VString<string, "required">;
|
|
200
|
+
keyPrefix: import("convex/values").VString<string, "required">;
|
|
201
|
+
index: import("convex/values").VFloat64<number, "required">;
|
|
202
|
+
value: import("convex/values").VString<string, "required">;
|
|
203
|
+
}, "required", "key" | "value" | "index" | "keyPrefix">, {
|
|
204
|
+
by_key_prefix: ["keyPrefix", "_creationTime"];
|
|
205
|
+
by_key_index: ["key", "index", "_creationTime"];
|
|
206
|
+
}, {}, {}>;
|
|
131
207
|
/**
|
|
132
208
|
* Generic documents table - fallback for unknown table types
|
|
133
209
|
*/
|
package/dist/schema.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAEL,uBAAuB,EACvB,cAAc,EACd,aAAa,EACb,eAAe,EACf,aAAa,EACd,MAAM,gCAAgC,CAAC;AAoDxC;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;UAIM,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;UAIO,CAAC;AAExC;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;UAEI,CAAC;AAEtC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;UAaJ,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;UAKO,CAAC;AAMtC;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;UAQH,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;UAOI,CAAC;
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../src/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAEL,uBAAuB,EACvB,cAAc,EACd,aAAa,EACb,eAAe,EACf,aAAa,EACd,MAAM,gCAAgC,CAAC;AAoDxC;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;UAIM,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;;;;UAIO,CAAC;AAExC;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;UAEI,CAAC;AAEtC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;UAaJ,CAAC;AAEtC;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;UAKO,CAAC;AAMtC;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;UAQH,CAAC;AAEnC;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;UAOI,CAAC;AAEpC,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,6BAA6B,CAAC,EAC5C,UAAU,EACV,eAAgC,EAChC,MAAc,GACf,EAAE,6BAA6B;;;;;;;;;;WAuB/B;AAMD;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;UASW,CAAC;AAEzC;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;UAOI,CAAC;AAM3C;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;UAMoB,CAAC;AAMtD,OAAO,EAAE,uBAAuB,EAAE,cAAc,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC;AAGlG,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAC5D,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,eAAe,qBAAqB,CAAC"}
|
package/dist/schema.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { TABLE_DOCUMENTS, TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCORERS, TABLE_THREADS, TABLE_VECTORS, TABLE_VECTOR_INDEXES, TABLE_WORKFLOW_SNAPSHOT, mastraDocumentsTable, mastraMessagesTable, mastraResourcesTable, mastraScoresTable, mastraThreadsTable, mastraVectorIndexesTable, mastraVectorsTable, mastraWorkflowSnapshotsTable } from './chunk-
|
|
1
|
+
export { TABLE_DOCUMENTS, TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCORERS, TABLE_THREADS, TABLE_VECTORS, TABLE_VECTOR_INDEXES, TABLE_WORKFLOW_SNAPSHOT, defineMastraNativeVectorTable, mastraCacheListItemsTable, mastraCacheTable, mastraDocumentsTable, mastraMessagesTable, mastraResourcesTable, mastraScoresTable, mastraThreadsTable, mastraVectorIndexesTable, mastraVectorsTable, mastraWorkflowSnapshotsTable } from './chunk-JPWDG4L3.js';
|
|
2
2
|
//# sourceMappingURL=schema.js.map
|
|
3
3
|
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { GenericMutationCtx as MutationCtx } from 'convex/server';
|
|
2
|
+
import type { CacheRequest, CacheResponse } from '../cache/types.js';
|
|
3
|
+
export declare function handleCacheOperation(ctx: MutationCtx<any>, request: CacheRequest): Promise<CacheResponse>;
|
|
4
|
+
export declare const mastraCache: import("convex/server").RegisteredMutation<"public", CacheRequest, Promise<CacheResponse>>;
|
|
5
|
+
//# sourceMappingURL=cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/server/cache.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AAIvE,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAsJlE,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC,CAgI/G;AAED,eAAO,MAAM,WAAW,4FAEvB,CAAC"}
|
package/dist/server/index.cjs
CHANGED
|
@@ -1,65 +1,93 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkEEELVBWO_cjs = require('../chunk-EEELVBWO.cjs');
|
|
4
|
+
var chunkCV23JOCS_cjs = require('../chunk-CV23JOCS.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
Object.defineProperty(exports, "mastraCache", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkEEELVBWO_cjs.mastraCache; }
|
|
11
|
+
});
|
|
12
|
+
Object.defineProperty(exports, "mastraNativeVectorAction", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () { return chunkEEELVBWO_cjs.mastraNativeVectorAction; }
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(exports, "mastraNativeVectorMutation", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () { return chunkEEELVBWO_cjs.mastraNativeVectorMutation; }
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(exports, "mastraNativeVectorQuery", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () { return chunkEEELVBWO_cjs.mastraNativeVectorQuery; }
|
|
23
|
+
});
|
|
8
24
|
Object.defineProperty(exports, "mastraStorage", {
|
|
9
25
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkEEELVBWO_cjs.mastraStorage; }
|
|
11
27
|
});
|
|
12
28
|
Object.defineProperty(exports, "TABLE_MESSAGES", {
|
|
13
29
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkCV23JOCS_cjs.TABLE_MESSAGES; }
|
|
15
31
|
});
|
|
16
32
|
Object.defineProperty(exports, "TABLE_RESOURCES", {
|
|
17
33
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkCV23JOCS_cjs.TABLE_RESOURCES; }
|
|
19
35
|
});
|
|
20
36
|
Object.defineProperty(exports, "TABLE_SCORERS", {
|
|
21
37
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkCV23JOCS_cjs.TABLE_SCORERS; }
|
|
23
39
|
});
|
|
24
40
|
Object.defineProperty(exports, "TABLE_THREADS", {
|
|
25
41
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkCV23JOCS_cjs.TABLE_THREADS; }
|
|
27
43
|
});
|
|
28
44
|
Object.defineProperty(exports, "TABLE_WORKFLOW_SNAPSHOT", {
|
|
29
45
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkCV23JOCS_cjs.TABLE_WORKFLOW_SNAPSHOT; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "defineMastraNativeVectorTable", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return chunkCV23JOCS_cjs.defineMastraNativeVectorTable; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "mastraCacheListItemsTable", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return chunkCV23JOCS_cjs.mastraCacheListItemsTable; }
|
|
55
|
+
});
|
|
56
|
+
Object.defineProperty(exports, "mastraCacheTable", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function () { return chunkCV23JOCS_cjs.mastraCacheTable; }
|
|
31
59
|
});
|
|
32
60
|
Object.defineProperty(exports, "mastraDocumentsTable", {
|
|
33
61
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkCV23JOCS_cjs.mastraDocumentsTable; }
|
|
35
63
|
});
|
|
36
64
|
Object.defineProperty(exports, "mastraMessagesTable", {
|
|
37
65
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkCV23JOCS_cjs.mastraMessagesTable; }
|
|
39
67
|
});
|
|
40
68
|
Object.defineProperty(exports, "mastraResourcesTable", {
|
|
41
69
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkCV23JOCS_cjs.mastraResourcesTable; }
|
|
43
71
|
});
|
|
44
72
|
Object.defineProperty(exports, "mastraScoresTable", {
|
|
45
73
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkCV23JOCS_cjs.mastraScoresTable; }
|
|
47
75
|
});
|
|
48
76
|
Object.defineProperty(exports, "mastraThreadsTable", {
|
|
49
77
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkCV23JOCS_cjs.mastraThreadsTable; }
|
|
51
79
|
});
|
|
52
80
|
Object.defineProperty(exports, "mastraVectorIndexesTable", {
|
|
53
81
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkCV23JOCS_cjs.mastraVectorIndexesTable; }
|
|
55
83
|
});
|
|
56
84
|
Object.defineProperty(exports, "mastraVectorsTable", {
|
|
57
85
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkCV23JOCS_cjs.mastraVectorsTable; }
|
|
59
87
|
});
|
|
60
88
|
Object.defineProperty(exports, "mastraWorkflowSnapshotsTable", {
|
|
61
89
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkCV23JOCS_cjs.mastraWorkflowSnapshotsTable; }
|
|
63
91
|
});
|
|
64
92
|
//# sourceMappingURL=index.cjs.map
|
|
65
93
|
//# sourceMappingURL=index.cjs.map
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { mastraCache } from './cache.js';
|
|
1
2
|
export { mastraStorage } from './storage.js';
|
|
2
|
-
export {
|
|
3
|
+
export { mastraNativeVectorAction, mastraNativeVectorMutation, mastraNativeVectorQuery } from './native-vector.js';
|
|
4
|
+
export { mastraThreadsTable, mastraMessagesTable, mastraResourcesTable, mastraWorkflowSnapshotsTable, mastraScoresTable, mastraVectorIndexesTable, mastraVectorsTable, defineMastraNativeVectorTable, type MastraNativeVectorTableConfig, mastraCacheTable, mastraCacheListItemsTable, mastraDocumentsTable, TABLE_WORKFLOW_SNAPSHOT, TABLE_MESSAGES, TABLE_THREADS, TABLE_RESOURCES, TABLE_SCORERS, } from '../schema.js';
|
|
3
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAIhH,OAAO,EAEL,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,4BAA4B,EAC5B,iBAAiB,EACjB,wBAAwB,EACxB,kBAAkB,EAClB,6BAA6B,EAC7B,KAAK,6BAA6B,EAClC,gBAAgB,EAChB,yBAAyB,EACzB,oBAAoB,EAEpB,uBAAuB,EACvB,cAAc,EACd,aAAa,EACb,eAAe,EACf,aAAa,GACd,MAAM,WAAW,CAAC"}
|
package/dist/server/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { mastraStorage } from '../chunk-
|
|
2
|
-
export { TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCORERS, TABLE_THREADS, TABLE_WORKFLOW_SNAPSHOT, mastraDocumentsTable, mastraMessagesTable, mastraResourcesTable, mastraScoresTable, mastraThreadsTable, mastraVectorIndexesTable, mastraVectorsTable, mastraWorkflowSnapshotsTable } from '../chunk-
|
|
1
|
+
export { mastraCache, mastraNativeVectorAction, mastraNativeVectorMutation, mastraNativeVectorQuery, mastraStorage } from '../chunk-FZDLZ4S3.js';
|
|
2
|
+
export { TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCORERS, TABLE_THREADS, TABLE_WORKFLOW_SNAPSHOT, defineMastraNativeVectorTable, mastraCacheListItemsTable, mastraCacheTable, mastraDocumentsTable, mastraMessagesTable, mastraResourcesTable, mastraScoresTable, mastraThreadsTable, mastraVectorIndexesTable, mastraVectorsTable, mastraWorkflowSnapshotsTable } from '../chunk-JPWDG4L3.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { GenericId } from 'convex/values';
|
|
2
|
+
type NativeVectorDocument = Record<string, any> & {
|
|
3
|
+
_id?: GenericId<string>;
|
|
4
|
+
};
|
|
5
|
+
export declare const mastraNativeVectorAction: import("convex/server").RegisteredAction<"public", any, Promise<{
|
|
6
|
+
id: string;
|
|
7
|
+
score: number;
|
|
8
|
+
}[]>>;
|
|
9
|
+
export declare const mastraNativeVectorQuery: import("convex/server").RegisteredQuery<"public", any, Promise<(NativeVectorDocument | null)[] | {
|
|
10
|
+
count: number;
|
|
11
|
+
countIsLimited: boolean;
|
|
12
|
+
}>>;
|
|
13
|
+
export declare const mastraNativeVectorMutation: import("convex/server").RegisteredMutation<"public", any, Promise<{
|
|
14
|
+
ok: boolean;
|
|
15
|
+
}>>;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=native-vector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native-vector.d.ts","sourceRoot":"","sources":["../../src/server/native-vector.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAoB/C,KAAK,oBAAoB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG;IAChD,GAAG,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;CACzB,CAAC;AAyKF,eAAO,MAAM,wBAAwB;;;KA2BnC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;GA6ClC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;GA6FrC,CAAC"}
|
package/dist/storage/client.d.ts
CHANGED
|
@@ -20,5 +20,10 @@ export declare class ConvexAdminClient {
|
|
|
20
20
|
*/
|
|
21
21
|
callStorageRaw<T = any>(request: StorageRequest): Promise<RawStorageResult<T>>;
|
|
22
22
|
callStorage<T = any>(request: StorageRequest): Promise<T>;
|
|
23
|
+
callAction<T = any>(path: string, args: Record<string, any>): Promise<T>;
|
|
24
|
+
callMutation<T = any>(path: string, args: Record<string, any>): Promise<T>;
|
|
25
|
+
callQuery<T = any>(path: string, args: Record<string, any>): Promise<T>;
|
|
26
|
+
private callFunction;
|
|
27
|
+
private callConvexFunction;
|
|
23
28
|
}
|
|
24
29
|
//# sourceMappingURL=client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/storage/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAmB,MAAM,SAAS,CAAC;AAE/D,MAAM,MAAM,uBAAuB,GAAG;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,4DAA4D;AAC5D,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG,GAAG,IAAI;IACtC,MAAM,EAAE,CAAC,CAAC;IACV,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/storage/client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAmB,MAAM,SAAS,CAAC;AAE/D,MAAM,MAAM,uBAAuB,GAAG;IACpC,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,4DAA4D;AAC5D,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG,GAAG,IAAI;IACtC,MAAM,EAAE,CAAC,CAAC;IACV,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAyBF,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAS;IACvC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAS;IACxC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAS;gBAE7B,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,EAAE,uBAAuB;IAcvF;;;OAGG;IACG,cAAc,CAAC,CAAC,GAAG,GAAG,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;IAkB9E,WAAW,CAAC,CAAC,GAAG,GAAG,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,CAAC,CAAC;IAKzD,UAAU,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAIxE,YAAY,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAI1E,SAAS,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;YAI/D,YAAY;YAKZ,kBAAkB;CA2CjC"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { MastraVector } from '@mastra/core/vector';
|
|
2
|
+
import type { CreateIndexParams, DeleteIndexParams, DeleteVectorParams, DeleteVectorsParams, DescribeIndexParams, IndexStats, QueryResult, QueryVectorParams, UpdateVectorParams, UpsertVectorParams } from '@mastra/core/vector';
|
|
3
|
+
import type { ConvexAdminClientConfig } from '../storage/client.js';
|
|
4
|
+
type NativeFilterValue = string | number | boolean | null;
|
|
5
|
+
type NativeFieldFilter = Record<string, NativeFilterValue | {
|
|
6
|
+
$eq: NativeFilterValue;
|
|
7
|
+
}>;
|
|
8
|
+
export type ConvexNativeVectorFilter = NativeFieldFilter | {
|
|
9
|
+
metadata: NativeFieldFilter;
|
|
10
|
+
} | {
|
|
11
|
+
$or: NativeFieldFilter[];
|
|
12
|
+
};
|
|
13
|
+
export type ConvexNativeVectorIndexConfig = {
|
|
14
|
+
/**
|
|
15
|
+
* Convex table that stores this Mastra vector index.
|
|
16
|
+
*/
|
|
17
|
+
tableName: string;
|
|
18
|
+
/**
|
|
19
|
+
* Convex vector index name on `tableName`.
|
|
20
|
+
*/
|
|
21
|
+
vectorIndexName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Number of dimensions configured in the Convex vector index.
|
|
24
|
+
*/
|
|
25
|
+
dimension: number;
|
|
26
|
+
/**
|
|
27
|
+
* Mastra vector ID field in the Convex table.
|
|
28
|
+
*
|
|
29
|
+
* @default 'id'
|
|
30
|
+
*/
|
|
31
|
+
idField?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Convex database index used for lookup by `idField`.
|
|
34
|
+
*
|
|
35
|
+
* @default 'by_record_id'
|
|
36
|
+
*/
|
|
37
|
+
idIndexName?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Vector field in the Convex table.
|
|
40
|
+
*
|
|
41
|
+
* @default 'embedding'
|
|
42
|
+
*/
|
|
43
|
+
vectorField?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Metadata field in the Convex table.
|
|
46
|
+
*
|
|
47
|
+
* @default 'metadata'
|
|
48
|
+
*/
|
|
49
|
+
metadataField?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Top-level fields copied from metadata on writes and available to Convex
|
|
52
|
+
* native vector filters.
|
|
53
|
+
*/
|
|
54
|
+
filterFields?: string[];
|
|
55
|
+
};
|
|
56
|
+
export type ConvexNativeVectorConfig = ConvexAdminClientConfig & {
|
|
57
|
+
id: string;
|
|
58
|
+
/**
|
|
59
|
+
* Maps Mastra `indexName` values to deployed Convex table/index definitions.
|
|
60
|
+
*/
|
|
61
|
+
indexes: Record<string, ConvexNativeVectorIndexConfig>;
|
|
62
|
+
/**
|
|
63
|
+
* Path to the deployed native vector action.
|
|
64
|
+
*
|
|
65
|
+
* @default 'mastra/nativeVector:query'
|
|
66
|
+
*/
|
|
67
|
+
nativeVectorAction?: string;
|
|
68
|
+
/**
|
|
69
|
+
* Path to the deployed native vector query.
|
|
70
|
+
*
|
|
71
|
+
* @default 'mastra/nativeVector:read'
|
|
72
|
+
*/
|
|
73
|
+
nativeVectorQuery?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Path to the deployed native vector mutation.
|
|
76
|
+
*
|
|
77
|
+
* @default 'mastra/nativeVector:write'
|
|
78
|
+
*/
|
|
79
|
+
nativeVectorMutation?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Maximum number of documents read when estimating `describeIndex().count`.
|
|
82
|
+
*
|
|
83
|
+
* @default 10000
|
|
84
|
+
*/
|
|
85
|
+
describeCountLimit?: number;
|
|
86
|
+
};
|
|
87
|
+
export declare class ConvexNativeVector extends MastraVector<ConvexNativeVectorFilter> {
|
|
88
|
+
private readonly client;
|
|
89
|
+
private readonly indexes;
|
|
90
|
+
private readonly nativeVectorAction;
|
|
91
|
+
private readonly nativeVectorQuery;
|
|
92
|
+
private readonly nativeVectorMutation;
|
|
93
|
+
private readonly describeCountLimit;
|
|
94
|
+
constructor(config: ConvexNativeVectorConfig);
|
|
95
|
+
createIndex({ indexName, dimension, metric }: CreateIndexParams): Promise<void>;
|
|
96
|
+
listIndexes(): Promise<string[]>;
|
|
97
|
+
describeIndex({ indexName }: DescribeIndexParams): Promise<IndexStats>;
|
|
98
|
+
upsert({ indexName, vectors, ids, metadata, deleteFilter }: UpsertVectorParams<ConvexNativeVectorFilter>): Promise<string[]>;
|
|
99
|
+
query({ indexName, queryVector, topK, includeVector, filter, }: QueryVectorParams<ConvexNativeVectorFilter>): Promise<QueryResult[]>;
|
|
100
|
+
updateVector(params: UpdateVectorParams<ConvexNativeVectorFilter>): Promise<void>;
|
|
101
|
+
deleteVector({ indexName, id }: DeleteVectorParams): Promise<void>;
|
|
102
|
+
deleteVectors(params: DeleteVectorsParams<ConvexNativeVectorFilter>): Promise<void>;
|
|
103
|
+
deleteIndex({ indexName }: DeleteIndexParams): Promise<void>;
|
|
104
|
+
private getIndex;
|
|
105
|
+
private toNativeFilter;
|
|
106
|
+
private toSingleClause;
|
|
107
|
+
private isOrFilter;
|
|
108
|
+
private isMetadataFilter;
|
|
109
|
+
}
|
|
110
|
+
export {};
|
|
111
|
+
//# sourceMappingURL=native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"native.d.ts","sourceRoot":"","sources":["../../src/vector/native.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/convex",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.1.0-alpha.0",
|
|
4
4
|
"description": "Convex provider for Mastra - includes both storage and vector adapters plus Convex server helpers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"tsup": "^8.5.1",
|
|
52
52
|
"typescript": "^6.0.3",
|
|
53
53
|
"vitest": "4.1.5",
|
|
54
|
-
"@internal/
|
|
55
|
-
"@
|
|
56
|
-
"@internal/types-builder": "0.0.
|
|
57
|
-
"@
|
|
54
|
+
"@internal/lint": "0.0.96",
|
|
55
|
+
"@mastra/core": "1.36.0-alpha.3",
|
|
56
|
+
"@internal/types-builder": "0.0.71",
|
|
57
|
+
"@internal/storage-test-utils": "0.0.92"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@mastra/core": ">=1.0.0-0 <2.0.0-0"
|