@mastra/convex 1.6.1 → 1.7.1-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.
@@ -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.6.1"
6
+ version: "1.7.1-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.6.1",
2
+ "version": "1.7.1-alpha.0",
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-D5fx5hYY.cjs");
2
+ const require_server = require("./server-Beo8LSQH.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");
@@ -436,7 +436,7 @@ var ConvexDB = class extends _mastra_core_base.MastraBase {
436
436
  limit
437
437
  });
438
438
  }
439
- async updateScheduleNextFire({ id, expectedNextFireAt, newNextFireAt, lastFireAt, lastRunId }) {
439
+ async updateScheduleNextFire({ id, expectedNextFireAt, newNextFireAt, lastFireAt, lastRunId, newStatus }) {
440
440
  return this.client.callStorage({
441
441
  op: "updateScheduleNextFire",
442
442
  tableName: _mastra_core_storage.TABLE_SCHEDULES,
@@ -444,7 +444,8 @@ var ConvexDB = class extends _mastra_core_base.MastraBase {
444
444
  expectedNextFireAt,
445
445
  newNextFireAt,
446
446
  lastFireAt,
447
- lastRunId
447
+ lastRunId,
448
+ newStatus
448
449
  });
449
450
  }
450
451
  async updateSchedule({ id, patch }) {
@@ -981,6 +982,7 @@ function parseStoredOMRecord(doc) {
981
982
  var MemoryConvex = class extends _mastra_core_storage.MemoryStorage {
982
983
  supportsPartialThreadUpdate = true;
983
984
  supportsObservationalMemory = true;
985
+ supportsObservationalMemoryHistorySearch = true;
984
986
  #db;
985
987
  constructor(config) {
986
988
  super();
@@ -1453,7 +1455,12 @@ var MemoryConvex = class extends _mastra_core_storage.MemoryStorage {
1453
1455
  limit,
1454
1456
  from: options?.from ? options.from.toISOString() : void 0,
1455
1457
  to: options?.to ? options.to.toISOString() : void 0,
1456
- offset: options?.offset ?? void 0
1458
+ offset: options?.offset ?? void 0,
1459
+ groupId: options?.groupId,
1460
+ recordId: options?.recordId,
1461
+ beforeGeneration: options?.beforeGeneration,
1462
+ afterGeneration: options?.afterGeneration,
1463
+ sortDirection: options?.sortDirection
1457
1464
  })).map((doc) => parseStoredOMRecord(doc));
1458
1465
  }
1459
1466
  async initializeObservationalMemory(input) {
@@ -1959,13 +1966,14 @@ var SchedulesConvex = class extends _mastra_core_storage.SchedulesStorage {
1959
1966
  patch: updates
1960
1967
  }));
1961
1968
  }
1962
- async updateScheduleNextFire(id, expectedNextFireAt, newNextFireAt, lastFireAt, lastRunId) {
1969
+ async updateScheduleNextFire(id, expectedNextFireAt, newNextFireAt, lastFireAt, lastRunId, newStatus) {
1963
1970
  return this.#db.updateScheduleNextFire({
1964
1971
  id,
1965
1972
  expectedNextFireAt,
1966
1973
  newNextFireAt,
1967
1974
  lastFireAt,
1968
- lastRunId
1975
+ lastRunId,
1976
+ newStatus
1969
1977
  });
1970
1978
  }
1971
1979
  async deleteSchedule(id) {