@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.
@@ -3,7 +3,7 @@ name: mastra-convex
3
3
  description: Documentation for @mastra/convex. Use when working with @mastra/convex APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/convex"
6
- version: "1.7.5-alpha.0"
6
+ version: "1.7.5"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.5-alpha.0",
2
+ "version": "1.7.5",
3
3
  "package": "@mastra/convex",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_server = require("./server-uHLma0g7.cjs");
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: (0, _mastra_core_storage.resolveRetentionTargets)({
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: (0, _mastra_core_storage.resolveRetentionTargets)({
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.TABLE_BACKGROUND_TASKS = _mastra_core_storage_constants.TABLE_BACKGROUND_TASKS;
3011
- exports.TABLE_CHANNEL_CONFIG = _mastra_core_storage_constants.TABLE_CHANNEL_CONFIG;
3012
- exports.TABLE_CHANNEL_INSTALLATIONS = _mastra_core_storage_constants.TABLE_CHANNEL_INSTALLATIONS;
3013
- exports.TABLE_MESSAGES = _mastra_core_storage_constants.TABLE_MESSAGES;
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.TABLE_RESOURCES = _mastra_core_storage_constants.TABLE_RESOURCES;
3016
- exports.TABLE_SCHEDULES = _mastra_core_storage_constants.TABLE_SCHEDULES;
3017
- exports.TABLE_SCHEDULE_TRIGGERS = _mastra_core_storage_constants.TABLE_SCHEDULE_TRIGGERS;
3018
- exports.TABLE_SCORERS = _mastra_core_storage_constants.TABLE_SCORERS;
3019
- exports.TABLE_THREADS = _mastra_core_storage_constants.TABLE_THREADS;
3020
- exports.TABLE_WORKFLOW_SNAPSHOT = _mastra_core_storage_constants.TABLE_WORKFLOW_SNAPSHOT;
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;