@mastra/redis 1.4.8-alpha.0 → 1.4.9-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-redis
3
3
  description: Documentation for @mastra/redis. Use when working with @mastra/redis APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/redis"
6
- version: "1.4.8-alpha.0"
6
+ version: "1.4.9-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.4.8-alpha.0",
2
+ "version": "1.4.9-alpha.0",
3
3
  "package": "@mastra/redis",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -1212,7 +1212,7 @@ var WorkflowsRedis = class extends _mastra_core_storage.WorkflowsStorage {
1212
1212
  async dangerouslyClearAll() {
1213
1213
  await this.db.deleteData({ tableName: _mastra_core_storage.TABLE_WORKFLOW_SNAPSHOT });
1214
1214
  }
1215
- async updateWorkflowResults({ workflowName, runId, stepId, result, requestContext }) {
1215
+ async updateWorkflowResults({ workflowName, runId, stepId, result, requestContext, state }) {
1216
1216
  try {
1217
1217
  const existingRecord = await this.getSnapshotRecord("workflows", workflowName, runId);
1218
1218
  let snapshot = existingRecord?.snapshot;
@@ -1231,6 +1231,7 @@ var WorkflowsRedis = class extends _mastra_core_storage.WorkflowsStorage {
1231
1231
  requestContext: {}
1232
1232
  };
1233
1233
  snapshot.context[stepId] = result;
1234
+ if (state !== void 0) snapshot.context.__state = state;
1234
1235
  snapshot.requestContext = {
1235
1236
  ...snapshot.requestContext,
1236
1237
  ...requestContext