@mastra/convex 1.7.5-alpha.0 → 1.7.5
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/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +73 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +13 -11
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs +60 -10
- package/dist/schema.cjs.map +1 -1
- package/dist/server/index.cjs +61 -11
- package/dist/server/index.js +1 -1
- package/dist/server/workflow-snapshot.d.ts.map +1 -1
- package/dist/{server-uHLma0g7.cjs → server-BxQKtmhb.cjs} +9 -2
- package/dist/server-BxQKtmhb.cjs.map +1 -0
- package/dist/{server-DCzSpppl.js → server-CedrKoHl.js} +9 -2
- package/dist/server-CedrKoHl.js.map +1 -0
- package/dist/storage/domains/memory/index.d.ts +1 -1
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/package.json +8 -9
- package/dist/server-DCzSpppl.js.map +0 -1
- package/dist/server-uHLma0g7.cjs.map +0 -1
package/dist/docs/SKILL.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_server = require("./server-
|
|
2
|
+
const require_server = require("./server-BxQKtmhb.cjs");
|
|
3
3
|
const require_schema = require("./schema.cjs");
|
|
4
4
|
let _mastra_core_cache = require("@mastra/core/cache");
|
|
5
5
|
let _mastra_core_storage = require("@mastra/core/storage");
|
|
@@ -1230,13 +1230,14 @@ var MemoryConvex = class MemoryConvex extends _mastra_core_storage.MemoryStorage
|
|
|
1230
1230
|
}
|
|
1231
1231
|
async init() {}
|
|
1232
1232
|
async prune(policies, options) {
|
|
1233
|
+
const targets = (0, _mastra_core_storage.resolveRetentionTargets)({
|
|
1234
|
+
policies,
|
|
1235
|
+
descriptor: MemoryConvex.retentionTables,
|
|
1236
|
+
order: ["runFences"]
|
|
1237
|
+
});
|
|
1233
1238
|
return (0, _mastra_core_storage.executeRetentionPrune)({
|
|
1234
1239
|
domain: "memory",
|
|
1235
|
-
targets
|
|
1236
|
-
policies,
|
|
1237
|
-
descriptor: MemoryConvex.retentionTables,
|
|
1238
|
-
order: ["runFences"]
|
|
1239
|
-
}),
|
|
1240
|
+
targets,
|
|
1240
1241
|
options,
|
|
1241
1242
|
cutoffFor: (target, now) => (0, _mastra_core_storage.retentionCutoffMs)(target.policy, now),
|
|
1242
1243
|
deleteBatch: (_target, cutoff, limit) => pruneRunClaims(this.#client, _mastra_core_storage.TABLE_MEMORY_RUN_FENCES, "retiredAt", Number(cutoff), limit)
|
|
@@ -2334,13 +2335,14 @@ var WorkflowsConvex = class WorkflowsConvex extends _mastra_core_storage.Workflo
|
|
|
2334
2335
|
}
|
|
2335
2336
|
async init() {}
|
|
2336
2337
|
async prune(policies, options) {
|
|
2338
|
+
const targets = (0, _mastra_core_storage.resolveRetentionTargets)({
|
|
2339
|
+
policies,
|
|
2340
|
+
descriptor: WorkflowsConvex.retentionTables,
|
|
2341
|
+
order: ["runOwnership"]
|
|
2342
|
+
});
|
|
2337
2343
|
return (0, _mastra_core_storage.executeRetentionPrune)({
|
|
2338
2344
|
domain: "workflows",
|
|
2339
|
-
targets
|
|
2340
|
-
policies,
|
|
2341
|
-
descriptor: WorkflowsConvex.retentionTables,
|
|
2342
|
-
order: ["runOwnership"]
|
|
2343
|
-
}),
|
|
2345
|
+
targets,
|
|
2344
2346
|
options,
|
|
2345
2347
|
cutoffFor: (target, now) => (0, _mastra_core_storage.retentionCutoffMs)(target.policy, now),
|
|
2346
2348
|
deleteBatch: (_target, cutoff, limit) => pruneRunClaims(this.#client, _mastra_core_storage.TABLE_WORKFLOW_RUN_OWNERS, "updatedAt", Number(cutoff), limit)
|
|
@@ -3007,17 +3009,67 @@ exports.ConvexNativeVector = ConvexNativeVector;
|
|
|
3007
3009
|
exports.ConvexServerCache = ConvexServerCache;
|
|
3008
3010
|
exports.ConvexStore = ConvexStore;
|
|
3009
3011
|
exports.ConvexVector = ConvexVector;
|
|
3010
|
-
exports
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3012
|
+
Object.defineProperty(exports, "TABLE_BACKGROUND_TASKS", {
|
|
3013
|
+
enumerable: true,
|
|
3014
|
+
get: function() {
|
|
3015
|
+
return _mastra_core_storage_constants.TABLE_BACKGROUND_TASKS;
|
|
3016
|
+
}
|
|
3017
|
+
});
|
|
3018
|
+
Object.defineProperty(exports, "TABLE_CHANNEL_CONFIG", {
|
|
3019
|
+
enumerable: true,
|
|
3020
|
+
get: function() {
|
|
3021
|
+
return _mastra_core_storage_constants.TABLE_CHANNEL_CONFIG;
|
|
3022
|
+
}
|
|
3023
|
+
});
|
|
3024
|
+
Object.defineProperty(exports, "TABLE_CHANNEL_INSTALLATIONS", {
|
|
3025
|
+
enumerable: true,
|
|
3026
|
+
get: function() {
|
|
3027
|
+
return _mastra_core_storage_constants.TABLE_CHANNEL_INSTALLATIONS;
|
|
3028
|
+
}
|
|
3029
|
+
});
|
|
3030
|
+
Object.defineProperty(exports, "TABLE_MESSAGES", {
|
|
3031
|
+
enumerable: true,
|
|
3032
|
+
get: function() {
|
|
3033
|
+
return _mastra_core_storage_constants.TABLE_MESSAGES;
|
|
3034
|
+
}
|
|
3035
|
+
});
|
|
3014
3036
|
exports.TABLE_OBSERVATIONAL_MEMORY = require_schema.TABLE_OBSERVATIONAL_MEMORY;
|
|
3015
|
-
exports
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3037
|
+
Object.defineProperty(exports, "TABLE_RESOURCES", {
|
|
3038
|
+
enumerable: true,
|
|
3039
|
+
get: function() {
|
|
3040
|
+
return _mastra_core_storage_constants.TABLE_RESOURCES;
|
|
3041
|
+
}
|
|
3042
|
+
});
|
|
3043
|
+
Object.defineProperty(exports, "TABLE_SCHEDULES", {
|
|
3044
|
+
enumerable: true,
|
|
3045
|
+
get: function() {
|
|
3046
|
+
return _mastra_core_storage_constants.TABLE_SCHEDULES;
|
|
3047
|
+
}
|
|
3048
|
+
});
|
|
3049
|
+
Object.defineProperty(exports, "TABLE_SCHEDULE_TRIGGERS", {
|
|
3050
|
+
enumerable: true,
|
|
3051
|
+
get: function() {
|
|
3052
|
+
return _mastra_core_storage_constants.TABLE_SCHEDULE_TRIGGERS;
|
|
3053
|
+
}
|
|
3054
|
+
});
|
|
3055
|
+
Object.defineProperty(exports, "TABLE_SCORERS", {
|
|
3056
|
+
enumerable: true,
|
|
3057
|
+
get: function() {
|
|
3058
|
+
return _mastra_core_storage_constants.TABLE_SCORERS;
|
|
3059
|
+
}
|
|
3060
|
+
});
|
|
3061
|
+
Object.defineProperty(exports, "TABLE_THREADS", {
|
|
3062
|
+
enumerable: true,
|
|
3063
|
+
get: function() {
|
|
3064
|
+
return _mastra_core_storage_constants.TABLE_THREADS;
|
|
3065
|
+
}
|
|
3066
|
+
});
|
|
3067
|
+
Object.defineProperty(exports, "TABLE_WORKFLOW_SNAPSHOT", {
|
|
3068
|
+
enumerable: true,
|
|
3069
|
+
get: function() {
|
|
3070
|
+
return _mastra_core_storage_constants.TABLE_WORKFLOW_SNAPSHOT;
|
|
3071
|
+
}
|
|
3072
|
+
});
|
|
3021
3073
|
exports.defineMastraNativeVectorTable = require_schema.defineMastraNativeVectorTable;
|
|
3022
3074
|
exports.mastraBackgroundTasksTable = require_schema.mastraBackgroundTasksTable;
|
|
3023
3075
|
exports.mastraCache = require_server.mastraCache;
|