@mastra/convex 1.3.2 → 1.4.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 +76 -0
- package/README.md +28 -17
- package/dist/{chunk-6P3LEDHY.cjs → chunk-2KILIA33.cjs} +315 -2
- package/dist/chunk-2KILIA33.cjs.map +1 -0
- package/dist/{chunk-77UWNT5X.js → chunk-MC2EQATP.js} +315 -2
- package/dist/chunk-MC2EQATP.js.map +1 -0
- package/dist/{chunk-MC75WADX.js → chunk-QWWFHN52.js} +41 -3
- package/dist/chunk-QWWFHN52.js.map +1 -0
- package/dist/{chunk-SFRHJGSM.cjs → chunk-ZCCKLZQH.cjs} +42 -2
- package/dist/chunk-ZCCKLZQH.cjs.map +1 -0
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +41 -33
- package/dist/docs/references/reference-storage-convex.md +18 -11
- package/dist/index.cjs +586 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +542 -4
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs +38 -30
- package/dist/schema.d.ts +95 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +1 -1
- package/dist/server/index-map.d.ts.map +1 -1
- package/dist/server/index.cjs +41 -33
- package/dist/server/index.d.ts +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/observational-memory.d.ts +52 -0
- package/dist/server/observational-memory.d.ts.map +1 -0
- package/dist/server/storage.d.ts.map +1 -1
- package/dist/storage/db/index.d.ts +65 -14
- package/dist/storage/db/index.d.ts.map +1 -1
- package/dist/storage/domains/memory/index.d.ts +23 -1
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/schedules/index.d.ts.map +1 -1
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/types.d.ts +133 -0
- package/dist/storage/types.d.ts.map +1 -1
- package/dist/vector/index.d.ts.map +1 -1
- package/dist/vector/native.d.ts.map +1 -1
- package/package.json +11 -11
- package/dist/chunk-6P3LEDHY.cjs.map +0 -1
- package/dist/chunk-77UWNT5X.js.map +0 -1
- package/dist/chunk-MC75WADX.js.map +0 -1
- package/dist/chunk-SFRHJGSM.cjs.map +0 -1
package/dist/schema.cjs
CHANGED
|
@@ -1,124 +1,132 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkZCCKLZQH_cjs = require('./chunk-ZCCKLZQH.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "TABLE_BACKGROUND_TASKS", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_BACKGROUND_TASKS; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "TABLE_CHANNEL_CONFIG", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_CHANNEL_CONFIG; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "TABLE_CHANNEL_INSTALLATIONS", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_CHANNEL_INSTALLATIONS; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "TABLE_DOCUMENTS", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_DOCUMENTS; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "TABLE_MESSAGES", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_MESSAGES; }
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(exports, "TABLE_OBSERVATIONAL_MEMORY", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_OBSERVATIONAL_MEMORY; }
|
|
26
30
|
});
|
|
27
31
|
Object.defineProperty(exports, "TABLE_RESOURCES", {
|
|
28
32
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_RESOURCES; }
|
|
30
34
|
});
|
|
31
35
|
Object.defineProperty(exports, "TABLE_SCHEDULES", {
|
|
32
36
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_SCHEDULES; }
|
|
34
38
|
});
|
|
35
39
|
Object.defineProperty(exports, "TABLE_SCHEDULE_TRIGGERS", {
|
|
36
40
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_SCHEDULE_TRIGGERS; }
|
|
38
42
|
});
|
|
39
43
|
Object.defineProperty(exports, "TABLE_SCORERS", {
|
|
40
44
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_SCORERS; }
|
|
42
46
|
});
|
|
43
47
|
Object.defineProperty(exports, "TABLE_THREADS", {
|
|
44
48
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_THREADS; }
|
|
46
50
|
});
|
|
47
51
|
Object.defineProperty(exports, "TABLE_VECTORS", {
|
|
48
52
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_VECTORS; }
|
|
50
54
|
});
|
|
51
55
|
Object.defineProperty(exports, "TABLE_VECTOR_INDEXES", {
|
|
52
56
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_VECTOR_INDEXES; }
|
|
54
58
|
});
|
|
55
59
|
Object.defineProperty(exports, "TABLE_WORKFLOW_SNAPSHOT", {
|
|
56
60
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_WORKFLOW_SNAPSHOT; }
|
|
58
62
|
});
|
|
59
63
|
Object.defineProperty(exports, "defineMastraNativeVectorTable", {
|
|
60
64
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkZCCKLZQH_cjs.defineMastraNativeVectorTable; }
|
|
62
66
|
});
|
|
63
67
|
Object.defineProperty(exports, "mastraBackgroundTasksTable", {
|
|
64
68
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraBackgroundTasksTable; }
|
|
66
70
|
});
|
|
67
71
|
Object.defineProperty(exports, "mastraCacheListItemsTable", {
|
|
68
72
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraCacheListItemsTable; }
|
|
70
74
|
});
|
|
71
75
|
Object.defineProperty(exports, "mastraCacheTable", {
|
|
72
76
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraCacheTable; }
|
|
74
78
|
});
|
|
75
79
|
Object.defineProperty(exports, "mastraChannelConfigTable", {
|
|
76
80
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraChannelConfigTable; }
|
|
78
82
|
});
|
|
79
83
|
Object.defineProperty(exports, "mastraChannelInstallationsTable", {
|
|
80
84
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraChannelInstallationsTable; }
|
|
82
86
|
});
|
|
83
87
|
Object.defineProperty(exports, "mastraDocumentsTable", {
|
|
84
88
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraDocumentsTable; }
|
|
86
90
|
});
|
|
87
91
|
Object.defineProperty(exports, "mastraMessagesTable", {
|
|
88
92
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraMessagesTable; }
|
|
94
|
+
});
|
|
95
|
+
Object.defineProperty(exports, "mastraObservationalMemoryTable", {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraObservationalMemoryTable; }
|
|
90
98
|
});
|
|
91
99
|
Object.defineProperty(exports, "mastraResourcesTable", {
|
|
92
100
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraResourcesTable; }
|
|
94
102
|
});
|
|
95
103
|
Object.defineProperty(exports, "mastraScheduleTriggersTable", {
|
|
96
104
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraScheduleTriggersTable; }
|
|
98
106
|
});
|
|
99
107
|
Object.defineProperty(exports, "mastraSchedulesTable", {
|
|
100
108
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraSchedulesTable; }
|
|
102
110
|
});
|
|
103
111
|
Object.defineProperty(exports, "mastraScoresTable", {
|
|
104
112
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraScoresTable; }
|
|
106
114
|
});
|
|
107
115
|
Object.defineProperty(exports, "mastraThreadsTable", {
|
|
108
116
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraThreadsTable; }
|
|
110
118
|
});
|
|
111
119
|
Object.defineProperty(exports, "mastraVectorIndexesTable", {
|
|
112
120
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraVectorIndexesTable; }
|
|
114
122
|
});
|
|
115
123
|
Object.defineProperty(exports, "mastraVectorsTable", {
|
|
116
124
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraVectorsTable; }
|
|
118
126
|
});
|
|
119
127
|
Object.defineProperty(exports, "mastraWorkflowSnapshotsTable", {
|
|
120
128
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraWorkflowSnapshotsTable; }
|
|
122
130
|
});
|
|
123
131
|
//# sourceMappingURL=schema.cjs.map
|
|
124
132
|
//# sourceMappingURL=schema.cjs.map
|
package/dist/schema.d.ts
CHANGED
|
@@ -281,6 +281,99 @@ export declare const mastraBackgroundTasksTable: import("convex/server").TableDe
|
|
|
281
281
|
by_tool: ["tool_name", "_creationTime"];
|
|
282
282
|
by_created: ["createdAt", "_creationTime"];
|
|
283
283
|
}, {}, {}>;
|
|
284
|
+
/**
|
|
285
|
+
* Observational memory table - stores observational memory generations.
|
|
286
|
+
*
|
|
287
|
+
* Fields mirror @mastra/core's OBSERVATIONAL_MEMORY_SCHEMA (storage/constants.ts).
|
|
288
|
+
* The schema is defined explicitly (not via buildTableFromSchema) because the
|
|
289
|
+
* core export is intentionally excluded from TABLE_SCHEMAS (OM is optional) and
|
|
290
|
+
* older cores in the peer range may not export it at all.
|
|
291
|
+
*
|
|
292
|
+
* Serialization conventions:
|
|
293
|
+
* - Timestamps are ISO strings.
|
|
294
|
+
* - `config`, `metadata`, and `bufferedObservationChunks` are JSON strings
|
|
295
|
+
* because user-influenced payloads can contain Convex-reserved field names
|
|
296
|
+
* such as `$schema` (same reasoning as mastraSchedulesTable).
|
|
297
|
+
* - Nullable fields accept explicit null so cleared state can travel over JSON.
|
|
298
|
+
*
|
|
299
|
+
* Records are keyed by `lookupKey` ('thread:{id}' or 'resource:{id}'); the
|
|
300
|
+
* latest generation is the highest `generationCount` per lookupKey, served by
|
|
301
|
+
* the by_lookup_key index in descending order.
|
|
302
|
+
*/
|
|
303
|
+
export declare const mastraObservationalMemoryTable: import("convex/server").TableDefinition<import("convex/values").VObject<{
|
|
304
|
+
metadata?: string | null | undefined;
|
|
305
|
+
resourceId?: string | null | undefined;
|
|
306
|
+
threadId?: string | null | undefined;
|
|
307
|
+
activeObservationsPendingUpdate?: string | null | undefined;
|
|
308
|
+
lastObservedAt?: string | null | undefined;
|
|
309
|
+
lastReflectionAt?: string | null | undefined;
|
|
310
|
+
lastBufferedAtTime?: string | null | undefined;
|
|
311
|
+
observedTimezone?: string | null | undefined;
|
|
312
|
+
observedMessageIds?: string[] | null | undefined;
|
|
313
|
+
bufferedObservationChunks?: string | null | undefined;
|
|
314
|
+
bufferedReflection?: string | null | undefined;
|
|
315
|
+
bufferedReflectionTokens?: number | null | undefined;
|
|
316
|
+
bufferedReflectionInputTokens?: number | null | undefined;
|
|
317
|
+
reflectedObservationLineCount?: number | null | undefined;
|
|
318
|
+
bufferedObservations?: string | null | undefined;
|
|
319
|
+
bufferedObservationTokens?: number | null | undefined;
|
|
320
|
+
bufferedMessageIds?: string[] | null | undefined;
|
|
321
|
+
id: string;
|
|
322
|
+
updatedAt: string;
|
|
323
|
+
createdAt: string;
|
|
324
|
+
scope: string;
|
|
325
|
+
originType: string;
|
|
326
|
+
lookupKey: string;
|
|
327
|
+
activeObservations: string;
|
|
328
|
+
config: string;
|
|
329
|
+
generationCount: number;
|
|
330
|
+
pendingMessageTokens: number;
|
|
331
|
+
totalTokensObserved: number;
|
|
332
|
+
observationTokenCount: number;
|
|
333
|
+
isObserving: boolean;
|
|
334
|
+
isReflecting: boolean;
|
|
335
|
+
isBufferingObservation: boolean;
|
|
336
|
+
isBufferingReflection: boolean;
|
|
337
|
+
lastBufferedAtTokens: number;
|
|
338
|
+
}, {
|
|
339
|
+
id: import("convex/values").VString<string, "required">;
|
|
340
|
+
lookupKey: import("convex/values").VString<string, "required">;
|
|
341
|
+
scope: import("convex/values").VString<string, "required">;
|
|
342
|
+
resourceId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
343
|
+
threadId: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
344
|
+
activeObservations: import("convex/values").VString<string, "required">;
|
|
345
|
+
activeObservationsPendingUpdate: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
346
|
+
originType: import("convex/values").VString<string, "required">;
|
|
347
|
+
config: import("convex/values").VString<string, "required">;
|
|
348
|
+
generationCount: import("convex/values").VFloat64<number, "required">;
|
|
349
|
+
lastObservedAt: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
350
|
+
lastReflectionAt: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
351
|
+
pendingMessageTokens: import("convex/values").VFloat64<number, "required">;
|
|
352
|
+
totalTokensObserved: import("convex/values").VFloat64<number, "required">;
|
|
353
|
+
observationTokenCount: import("convex/values").VFloat64<number, "required">;
|
|
354
|
+
isObserving: import("convex/values").VBoolean<boolean, "required">;
|
|
355
|
+
isReflecting: import("convex/values").VBoolean<boolean, "required">;
|
|
356
|
+
observedMessageIds: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
357
|
+
observedTimezone: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
358
|
+
bufferedObservations: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
359
|
+
bufferedObservationTokens: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VFloat64<number, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
360
|
+
bufferedMessageIds: import("convex/values").VUnion<string[] | null | undefined, [import("convex/values").VArray<string[], import("convex/values").VString<string, "required">, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
361
|
+
bufferedReflection: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
362
|
+
bufferedReflectionTokens: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VFloat64<number, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
363
|
+
bufferedReflectionInputTokens: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VFloat64<number, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
364
|
+
reflectedObservationLineCount: import("convex/values").VUnion<number | null | undefined, [import("convex/values").VFloat64<number, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
365
|
+
bufferedObservationChunks: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
366
|
+
isBufferingObservation: import("convex/values").VBoolean<boolean, "required">;
|
|
367
|
+
isBufferingReflection: import("convex/values").VBoolean<boolean, "required">;
|
|
368
|
+
lastBufferedAtTokens: import("convex/values").VFloat64<number, "required">;
|
|
369
|
+
lastBufferedAtTime: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
370
|
+
metadata: import("convex/values").VUnion<string | null | undefined, [import("convex/values").VString<string, "required">, import("convex/values").VNull<null, "required">], "optional", never>;
|
|
371
|
+
createdAt: import("convex/values").VString<string, "required">;
|
|
372
|
+
updatedAt: import("convex/values").VString<string, "required">;
|
|
373
|
+
}, "required", "id" | "metadata" | "updatedAt" | "createdAt" | "resourceId" | "threadId" | "scope" | "originType" | "lookupKey" | "activeObservations" | "activeObservationsPendingUpdate" | "config" | "generationCount" | "lastObservedAt" | "lastReflectionAt" | "pendingMessageTokens" | "totalTokensObserved" | "observationTokenCount" | "isObserving" | "isReflecting" | "isBufferingObservation" | "isBufferingReflection" | "lastBufferedAtTokens" | "lastBufferedAtTime" | "observedTimezone" | "observedMessageIds" | "bufferedObservationChunks" | "bufferedReflection" | "bufferedReflectionTokens" | "bufferedReflectionInputTokens" | "reflectedObservationLineCount" | "bufferedObservations" | "bufferedObservationTokens" | "bufferedMessageIds">, {
|
|
374
|
+
by_record_id: ["id", "_creationTime"];
|
|
375
|
+
by_lookup_key: ["lookupKey", "generationCount", "_creationTime"];
|
|
376
|
+
}, {}, {}>;
|
|
284
377
|
/**
|
|
285
378
|
* Vector indexes table - stores metadata about vector indexes
|
|
286
379
|
*/
|
|
@@ -372,7 +465,7 @@ export declare const mastraCacheTable: import("convex/server").TableDefinition<i
|
|
|
372
465
|
value: import("convex/values").VString<string | undefined, "optional">;
|
|
373
466
|
counter: import("convex/values").VFloat64<number | undefined, "optional">;
|
|
374
467
|
expiresAt: import("convex/values").VUnion<number | null, [import("convex/values").VFloat64<number, "required">, import("convex/values").VNull<null, "required">], "required", never>;
|
|
375
|
-
}, "required", "key" | "value" | "
|
|
468
|
+
}, "required", "key" | "value" | "kind" | "counter" | "keyPrefix" | "expiresAt">, {
|
|
376
469
|
by_key: ["key", "_creationTime"];
|
|
377
470
|
by_key_prefix: ["keyPrefix", "_creationTime"];
|
|
378
471
|
}, {}, {}>;
|
|
@@ -413,4 +506,5 @@ export { TABLE_WORKFLOW_SNAPSHOT, TABLE_MESSAGES, TABLE_THREADS, TABLE_RESOURCES
|
|
|
413
506
|
export declare const TABLE_VECTOR_INDEXES = "mastra_vector_indexes";
|
|
414
507
|
export declare const TABLE_VECTORS = "mastra_vectors";
|
|
415
508
|
export declare const TABLE_DOCUMENTS = "mastra_documents";
|
|
509
|
+
export declare const TABLE_OBSERVATIONAL_MEMORY = "mastra_observational_memory";
|
|
416
510
|
//# sourceMappingURL=schema.d.ts.map
|
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,EACb,eAAe,EACf,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,sBAAsB,EACvB,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;AAEtC;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAsBK,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;UAcY,CAAC;AAErD;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;UAeP,CAAC;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;UAOA,CAAC;AAEtC;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAqCF,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,EACb,eAAe,EACf,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,sBAAsB,EACvB,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;AAEtC;;;;;;GAMG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAsBK,CAAC;AAEvC;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;UAcY,CAAC;AAErD;;;;;GAKG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;UAeP,CAAC;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;UAOA,CAAC;AAEtC;;;;;;;;GAQG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAqCF,CAAC;AAEtC;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAsCgB,CAAC;AAM5D;;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,EACL,uBAAuB,EACvB,cAAc,EACd,aAAa,EACb,eAAe,EACf,aAAa,EACb,eAAe,EACf,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,sBAAsB,GACvB,CAAC;AAGF,eAAO,MAAM,oBAAoB,0BAA0B,CAAC;AAC5D,eAAO,MAAM,aAAa,mBAAmB,CAAC;AAC9C,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAKlD,eAAO,MAAM,0BAA0B,gCAAgC,CAAC"}
|
package/dist/schema.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { TABLE_BACKGROUND_TASKS, TABLE_CHANNEL_CONFIG, TABLE_CHANNEL_INSTALLATIONS, TABLE_DOCUMENTS, TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCHEDULES, TABLE_SCHEDULE_TRIGGERS, TABLE_SCORERS, TABLE_THREADS, TABLE_VECTORS, TABLE_VECTOR_INDEXES, TABLE_WORKFLOW_SNAPSHOT, defineMastraNativeVectorTable, mastraBackgroundTasksTable, mastraCacheListItemsTable, mastraCacheTable, mastraChannelConfigTable, mastraChannelInstallationsTable, mastraDocumentsTable, mastraMessagesTable, mastraResourcesTable, mastraScheduleTriggersTable, mastraSchedulesTable, mastraScoresTable, mastraThreadsTable, mastraVectorIndexesTable, mastraVectorsTable, mastraWorkflowSnapshotsTable } from './chunk-
|
|
1
|
+
export { TABLE_BACKGROUND_TASKS, TABLE_CHANNEL_CONFIG, TABLE_CHANNEL_INSTALLATIONS, TABLE_DOCUMENTS, TABLE_MESSAGES, TABLE_OBSERVATIONAL_MEMORY, TABLE_RESOURCES, TABLE_SCHEDULES, TABLE_SCHEDULE_TRIGGERS, TABLE_SCORERS, TABLE_THREADS, TABLE_VECTORS, TABLE_VECTOR_INDEXES, TABLE_WORKFLOW_SNAPSHOT, defineMastraNativeVectorTable, mastraBackgroundTasksTable, mastraCacheListItemsTable, mastraCacheTable, mastraChannelConfigTable, mastraChannelInstallationsTable, mastraDocumentsTable, mastraMessagesTable, mastraObservationalMemoryTable, mastraResourcesTable, mastraScheduleTriggersTable, mastraSchedulesTable, mastraScoresTable, mastraThreadsTable, mastraVectorIndexesTable, mastraVectorsTable, mastraWorkflowSnapshotsTable } from './chunk-QWWFHN52.js';
|
|
2
2
|
//# sourceMappingURL=schema.js.map
|
|
3
3
|
//# sourceMappingURL=schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-map.d.ts","sourceRoot":"","sources":["../../src/server/index-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"index-map.d.ts","sourceRoot":"","sources":["../../src/server/index-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEvD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CA0ErF,CAAC;AAEF;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAC3B,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,cAAc,EAAE,GACxB;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,cAAc,EAAE,cAAc,EAAE,CAAA;CAAE,GAAG,IAAI,CA+BhE"}
|
package/dist/server/index.cjs
CHANGED
|
@@ -1,133 +1,141 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunk2KILIA33_cjs = require('../chunk-2KILIA33.cjs');
|
|
4
|
+
var chunkZCCKLZQH_cjs = require('../chunk-ZCCKLZQH.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "mastraCache", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunk2KILIA33_cjs.mastraCache; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "mastraNativeVectorAction", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunk2KILIA33_cjs.mastraNativeVectorAction; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "mastraNativeVectorMutation", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk2KILIA33_cjs.mastraNativeVectorMutation; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "mastraNativeVectorQuery", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk2KILIA33_cjs.mastraNativeVectorQuery; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "mastraStorage", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk2KILIA33_cjs.mastraStorage; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "TABLE_BACKGROUND_TASKS", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_BACKGROUND_TASKS; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "TABLE_CHANNEL_CONFIG", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_CHANNEL_CONFIG; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "TABLE_CHANNEL_INSTALLATIONS", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_CHANNEL_INSTALLATIONS; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "TABLE_MESSAGES", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_MESSAGES; }
|
|
43
|
+
});
|
|
44
|
+
Object.defineProperty(exports, "TABLE_OBSERVATIONAL_MEMORY", {
|
|
45
|
+
enumerable: true,
|
|
46
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_OBSERVATIONAL_MEMORY; }
|
|
43
47
|
});
|
|
44
48
|
Object.defineProperty(exports, "TABLE_RESOURCES", {
|
|
45
49
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_RESOURCES; }
|
|
47
51
|
});
|
|
48
52
|
Object.defineProperty(exports, "TABLE_SCHEDULES", {
|
|
49
53
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_SCHEDULES; }
|
|
51
55
|
});
|
|
52
56
|
Object.defineProperty(exports, "TABLE_SCHEDULE_TRIGGERS", {
|
|
53
57
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_SCHEDULE_TRIGGERS; }
|
|
55
59
|
});
|
|
56
60
|
Object.defineProperty(exports, "TABLE_SCORERS", {
|
|
57
61
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_SCORERS; }
|
|
59
63
|
});
|
|
60
64
|
Object.defineProperty(exports, "TABLE_THREADS", {
|
|
61
65
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_THREADS; }
|
|
63
67
|
});
|
|
64
68
|
Object.defineProperty(exports, "TABLE_WORKFLOW_SNAPSHOT", {
|
|
65
69
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkZCCKLZQH_cjs.TABLE_WORKFLOW_SNAPSHOT; }
|
|
67
71
|
});
|
|
68
72
|
Object.defineProperty(exports, "defineMastraNativeVectorTable", {
|
|
69
73
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunkZCCKLZQH_cjs.defineMastraNativeVectorTable; }
|
|
71
75
|
});
|
|
72
76
|
Object.defineProperty(exports, "mastraBackgroundTasksTable", {
|
|
73
77
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraBackgroundTasksTable; }
|
|
75
79
|
});
|
|
76
80
|
Object.defineProperty(exports, "mastraCacheListItemsTable", {
|
|
77
81
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraCacheListItemsTable; }
|
|
79
83
|
});
|
|
80
84
|
Object.defineProperty(exports, "mastraCacheTable", {
|
|
81
85
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraCacheTable; }
|
|
83
87
|
});
|
|
84
88
|
Object.defineProperty(exports, "mastraChannelConfigTable", {
|
|
85
89
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraChannelConfigTable; }
|
|
87
91
|
});
|
|
88
92
|
Object.defineProperty(exports, "mastraChannelInstallationsTable", {
|
|
89
93
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraChannelInstallationsTable; }
|
|
91
95
|
});
|
|
92
96
|
Object.defineProperty(exports, "mastraDocumentsTable", {
|
|
93
97
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraDocumentsTable; }
|
|
95
99
|
});
|
|
96
100
|
Object.defineProperty(exports, "mastraMessagesTable", {
|
|
97
101
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraMessagesTable; }
|
|
103
|
+
});
|
|
104
|
+
Object.defineProperty(exports, "mastraObservationalMemoryTable", {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraObservationalMemoryTable; }
|
|
99
107
|
});
|
|
100
108
|
Object.defineProperty(exports, "mastraResourcesTable", {
|
|
101
109
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraResourcesTable; }
|
|
103
111
|
});
|
|
104
112
|
Object.defineProperty(exports, "mastraScheduleTriggersTable", {
|
|
105
113
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraScheduleTriggersTable; }
|
|
107
115
|
});
|
|
108
116
|
Object.defineProperty(exports, "mastraSchedulesTable", {
|
|
109
117
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraSchedulesTable; }
|
|
111
119
|
});
|
|
112
120
|
Object.defineProperty(exports, "mastraScoresTable", {
|
|
113
121
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraScoresTable; }
|
|
115
123
|
});
|
|
116
124
|
Object.defineProperty(exports, "mastraThreadsTable", {
|
|
117
125
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraThreadsTable; }
|
|
119
127
|
});
|
|
120
128
|
Object.defineProperty(exports, "mastraVectorIndexesTable", {
|
|
121
129
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraVectorIndexesTable; }
|
|
123
131
|
});
|
|
124
132
|
Object.defineProperty(exports, "mastraVectorsTable", {
|
|
125
133
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraVectorsTable; }
|
|
127
135
|
});
|
|
128
136
|
Object.defineProperty(exports, "mastraWorkflowSnapshotsTable", {
|
|
129
137
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunkZCCKLZQH_cjs.mastraWorkflowSnapshotsTable; }
|
|
131
139
|
});
|
|
132
140
|
//# sourceMappingURL=index.cjs.map
|
|
133
141
|
//# sourceMappingURL=index.cjs.map
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { mastraCache } from './cache.js';
|
|
2
2
|
export { mastraStorage } from './storage.js';
|
|
3
3
|
export { mastraNativeVectorAction, mastraNativeVectorMutation, mastraNativeVectorQuery } from './native-vector.js';
|
|
4
|
-
export { mastraThreadsTable, mastraMessagesTable, mastraResourcesTable, mastraWorkflowSnapshotsTable, mastraScoresTable, mastraSchedulesTable, mastraScheduleTriggersTable, mastraChannelInstallationsTable, mastraChannelConfigTable, mastraBackgroundTasksTable, mastraVectorIndexesTable, mastraVectorsTable, defineMastraNativeVectorTable, type MastraNativeVectorTableConfig, mastraCacheTable, mastraCacheListItemsTable, mastraDocumentsTable, TABLE_WORKFLOW_SNAPSHOT, TABLE_MESSAGES, TABLE_THREADS, TABLE_RESOURCES, TABLE_SCORERS, TABLE_SCHEDULES, TABLE_SCHEDULE_TRIGGERS, TABLE_CHANNEL_INSTALLATIONS, TABLE_CHANNEL_CONFIG, TABLE_BACKGROUND_TASKS, } from '../schema.js';
|
|
4
|
+
export { mastraThreadsTable, mastraMessagesTable, mastraResourcesTable, mastraWorkflowSnapshotsTable, mastraScoresTable, mastraSchedulesTable, mastraScheduleTriggersTable, mastraChannelInstallationsTable, mastraChannelConfigTable, mastraBackgroundTasksTable, mastraObservationalMemoryTable, mastraVectorIndexesTable, mastraVectorsTable, defineMastraNativeVectorTable, type MastraNativeVectorTableConfig, mastraCacheTable, mastraCacheListItemsTable, mastraDocumentsTable, TABLE_WORKFLOW_SNAPSHOT, TABLE_MESSAGES, TABLE_THREADS, TABLE_RESOURCES, TABLE_SCORERS, TABLE_SCHEDULES, TABLE_SCHEDULE_TRIGGERS, TABLE_CHANNEL_INSTALLATIONS, TABLE_CHANNEL_CONFIG, TABLE_BACKGROUND_TASKS, TABLE_OBSERVATIONAL_MEMORY, } from '../schema.js';
|
|
5
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,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,oBAAoB,EACpB,2BAA2B,EAC3B,+BAA+B,EAC/B,wBAAwB,EACxB,0BAA0B,EAC1B,wBAAwB,EACxB,kBAAkB,EAClB,6BAA6B,EAC7B,KAAK,6BAA6B,EAClC,gBAAgB,EAChB,yBAAyB,EACzB,oBAAoB,EAEpB,uBAAuB,EACvB,cAAc,EACd,aAAa,EACb,eAAe,EACf,aAAa,EACb,eAAe,EACf,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,sBAAsB,
|
|
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,oBAAoB,EACpB,2BAA2B,EAC3B,+BAA+B,EAC/B,wBAAwB,EACxB,0BAA0B,EAC1B,8BAA8B,EAC9B,wBAAwB,EACxB,kBAAkB,EAClB,6BAA6B,EAC7B,KAAK,6BAA6B,EAClC,gBAAgB,EAChB,yBAAyB,EACzB,oBAAoB,EAEpB,uBAAuB,EACvB,cAAc,EACd,aAAa,EACb,eAAe,EACf,aAAa,EACb,eAAe,EACf,uBAAuB,EACvB,2BAA2B,EAC3B,oBAAoB,EACpB,sBAAsB,EACtB,0BAA0B,GAC3B,MAAM,WAAW,CAAC"}
|
package/dist/server/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { mastraCache, mastraNativeVectorAction, mastraNativeVectorMutation, mastraNativeVectorQuery, mastraStorage } from '../chunk-
|
|
2
|
-
export { TABLE_BACKGROUND_TASKS, TABLE_CHANNEL_CONFIG, TABLE_CHANNEL_INSTALLATIONS, TABLE_MESSAGES, TABLE_RESOURCES, TABLE_SCHEDULES, TABLE_SCHEDULE_TRIGGERS, TABLE_SCORERS, TABLE_THREADS, TABLE_WORKFLOW_SNAPSHOT, defineMastraNativeVectorTable, mastraBackgroundTasksTable, mastraCacheListItemsTable, mastraCacheTable, mastraChannelConfigTable, mastraChannelInstallationsTable, mastraDocumentsTable, mastraMessagesTable, mastraResourcesTable, mastraScheduleTriggersTable, mastraSchedulesTable, mastraScoresTable, mastraThreadsTable, mastraVectorIndexesTable, mastraVectorsTable, mastraWorkflowSnapshotsTable } from '../chunk-
|
|
1
|
+
export { mastraCache, mastraNativeVectorAction, mastraNativeVectorMutation, mastraNativeVectorQuery, mastraStorage } from '../chunk-MC2EQATP.js';
|
|
2
|
+
export { TABLE_BACKGROUND_TASKS, TABLE_CHANNEL_CONFIG, TABLE_CHANNEL_INSTALLATIONS, TABLE_MESSAGES, TABLE_OBSERVATIONAL_MEMORY, TABLE_RESOURCES, TABLE_SCHEDULES, TABLE_SCHEDULE_TRIGGERS, TABLE_SCORERS, TABLE_THREADS, TABLE_WORKFLOW_SNAPSHOT, defineMastraNativeVectorTable, mastraBackgroundTasksTable, mastraCacheListItemsTable, mastraCacheTable, mastraChannelConfigTable, mastraChannelInstallationsTable, mastraDocumentsTable, mastraMessagesTable, mastraObservationalMemoryTable, mastraResourcesTable, mastraScheduleTriggersTable, mastraSchedulesTable, mastraScoresTable, mastraThreadsTable, mastraVectorIndexesTable, mastraVectorsTable, mastraWorkflowSnapshotsTable } from '../chunk-QWWFHN52.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Server-side observational memory operations for the generic Convex storage
|
|
3
|
+
* mutation. All read-modify-write logic lives here so each operation is atomic
|
|
4
|
+
* (Convex mutations are serializable transactions).
|
|
5
|
+
*
|
|
6
|
+
* Logic mirrors @mastra/core's in-memory reference implementation
|
|
7
|
+
* (packages/core/src/storage/domains/memory/inmemory.ts) and the MongoDB
|
|
8
|
+
* adapter. Pure helpers are exported for unit testing.
|
|
9
|
+
*
|
|
10
|
+
* This module is bundled into the user's Convex deployment: no Node.js APIs
|
|
11
|
+
* and no value imports from @mastra/core.
|
|
12
|
+
*/
|
|
13
|
+
import type { GenericMutationCtx as MutationCtx } from 'convex/server';
|
|
14
|
+
import type { SerializedOMChunk, StorageRequest, StorageResponse } from '../storage/types.js';
|
|
15
|
+
type OMRequest = Extract<StorageRequest, {
|
|
16
|
+
op: 'omGetLatest' | 'omGetHistory' | 'omUpdateActive' | 'omAppendBufferedChunk' | 'omSwapBuffered' | 'omUpdateBufferedReflection' | 'omSwapBufferedReflection' | 'omUpdateConfig';
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Parse the stored bufferedObservationChunks JSON string. Tolerates null,
|
|
20
|
+
* missing, and malformed values by returning an empty array.
|
|
21
|
+
*/
|
|
22
|
+
export declare function parseStoredChunks(value: unknown): SerializedOMChunk[];
|
|
23
|
+
/**
|
|
24
|
+
* Select how many buffered chunks to activate.
|
|
25
|
+
*
|
|
26
|
+
* Finds the chunk boundary closest to the activation target, biased over
|
|
27
|
+
* (prefer removing slightly more than the target so remaining context lands at
|
|
28
|
+
* or below the retention floor), with an overshoot safeguard that falls back
|
|
29
|
+
* to the best under boundary. Ported from the core in-memory reference.
|
|
30
|
+
*/
|
|
31
|
+
export declare function selectActivationBoundary(chunks: Array<{
|
|
32
|
+
messageTokens?: number;
|
|
33
|
+
}>, opts: {
|
|
34
|
+
activationRatio: number;
|
|
35
|
+
messageTokensThreshold: number;
|
|
36
|
+
currentPendingTokens: number;
|
|
37
|
+
forceMaxActivation?: boolean;
|
|
38
|
+
}): number;
|
|
39
|
+
/**
|
|
40
|
+
* Merge a buffered reflection with the observations added after the reflection
|
|
41
|
+
* started. Lines 0..reflectedLineCount of activeObservations were reflected on
|
|
42
|
+
* and are replaced by the reflection; later lines are appended as-is.
|
|
43
|
+
*/
|
|
44
|
+
export declare function mergeReflectionWithUnreflected(activeObservations: string, bufferedReflection: string, reflectedLineCount: number): string;
|
|
45
|
+
/**
|
|
46
|
+
* Deep-merge two plain config objects (source wins; undefined source values
|
|
47
|
+
* are skipped). Mirrors MemoryStorage.deepMergeConfig in @mastra/core.
|
|
48
|
+
*/
|
|
49
|
+
export declare function deepMergeOMConfig(target: Record<string, unknown>, source: Record<string, unknown>): Record<string, unknown>;
|
|
50
|
+
export declare function handleObservationalMemoryOperation(ctx: MutationCtx<any>, convexTable: string, request: OMRequest): Promise<StorageResponse>;
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=observational-memory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"observational-memory.d.ts","sourceRoot":"","sources":["../../src/server/observational-memory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,kBAAkB,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE3F,KAAK,SAAS,GAAG,OAAO,CACtB,cAAc,EACd;IACE,EAAE,EACE,aAAa,GACb,cAAc,GACd,gBAAgB,GAChB,uBAAuB,GACvB,gBAAgB,GAChB,4BAA4B,GAC5B,0BAA0B,GAC1B,gBAAgB,CAAC;CACtB,CACF,CAAC;AAIF;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,OAAO,GAAG,iBAAiB,EAAE,CAQrE;AAED;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,MAAM,EAAE,KAAK,CAAC;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,EACzC,IAAI,EAAE;IACJ,eAAe,EAAE,MAAM,CAAC;IACxB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,GACA,MAAM,CA6DR;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC5C,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,EAC1B,kBAAkB,EAAE,MAAM,GACzB,MAAM,CAKR;AAMD;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAYzB;AAmCD,wBAAsB,kCAAkC,CACtD,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,SAAS,GACjB,OAAO,CAAC,eAAe,CAAC,CA2O1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/server/storage.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,kBAAkB,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AAIvE,OAAO,KAAK,EAAkB,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../../src/server/storage.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,kBAAkB,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AAIvE,OAAO,KAAK,EAAkB,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AA0PxF;;;GAGG;AACH,eAAO,MAAM,aAAa,gGA+BxB,CAAC;AA8BH;;;;GAIG;AACH,wBAAsB,oBAAoB,CACxC,GAAG,EAAE,WAAW,CAAC,GAAG,CAAC,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,cAAc,GACtB,OAAO,CAAC,eAAe,CAAC,CAmgB1B"}
|