@mastra/mssql 1.10.1 → 1.10.2

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/index.js CHANGED
@@ -4505,7 +4505,7 @@ var WorkflowsMSSQL = class WorkflowsMSSQL extends WorkflowsStorage {
4505
4505
  resourceId: row.resourceId
4506
4506
  };
4507
4507
  }
4508
- async updateWorkflowResults({ workflowName, runId, stepId, result, requestContext }) {
4508
+ async updateWorkflowResults({ workflowName, runId, stepId, result, requestContext, state }) {
4509
4509
  const table = getTableName({
4510
4510
  indexName: TABLE_WORKFLOW_SNAPSHOT,
4511
4511
  schemaName: getSchemaName(this.schema)
@@ -4537,6 +4537,7 @@ var WorkflowsMSSQL = class WorkflowsMSSQL extends WorkflowsStorage {
4537
4537
  snapshot = typeof existingSnapshot === "string" ? JSON.parse(existingSnapshot) : existingSnapshot;
4538
4538
  }
4539
4539
  snapshot.context[stepId] = result;
4540
+ if (state !== void 0) snapshot.context.__state = state;
4540
4541
  snapshot.requestContext = {
4541
4542
  ...snapshot.requestContext,
4542
4543
  ...requestContext