@mastra/convex 1.7.1 → 1.7.2-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.7.1"
6
+ version: "1.7.2-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.7.1",
2
+ "version": "1.7.2-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-Beo8LSQH.cjs");
2
+ const require_server = require("./server-D_scBUwi.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");
@@ -381,7 +381,7 @@ var ConvexDB = class extends _mastra_core_base.MastraBase {
381
381
  ids
382
382
  });
383
383
  }
384
- async mergeWorkflowStepResult({ workflowName, runId, stepId, result, requestContext }) {
384
+ async mergeWorkflowStepResult({ workflowName, runId, stepId, result, requestContext, state }) {
385
385
  const context = await this.client.callStorage({
386
386
  op: "mergeWorkflowStepResult",
387
387
  tableName: _mastra_core_storage.TABLE_WORKFLOW_SNAPSHOT,
@@ -389,7 +389,8 @@ var ConvexDB = class extends _mastra_core_base.MastraBase {
389
389
  runId,
390
390
  stepId,
391
391
  result: JSON.stringify(result),
392
- requestContext: JSON.stringify(requestContext)
392
+ requestContext: JSON.stringify(requestContext),
393
+ ...state === void 0 ? {} : { state: JSON.stringify(state) }
393
394
  });
394
395
  if (!context) throw new Error(`Convex workflow step merge returned no context for runId ${runId}`);
395
396
  return JSON.parse(context);