@mastra/mssql 1.10.1 → 1.10.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-mssql
3
3
  description: Documentation for @mastra/mssql. Use when working with @mastra/mssql APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/mssql"
6
- version: "1.10.1"
6
+ version: "1.10.2-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.10.1",
2
+ "version": "1.10.2-alpha.0",
3
3
  "package": "@mastra/mssql",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -4529,7 +4529,7 @@ var WorkflowsMSSQL = class WorkflowsMSSQL extends _mastra_core_storage.Workflows
4529
4529
  resourceId: row.resourceId
4530
4530
  };
4531
4531
  }
4532
- async updateWorkflowResults({ workflowName, runId, stepId, result, requestContext }) {
4532
+ async updateWorkflowResults({ workflowName, runId, stepId, result, requestContext, state }) {
4533
4533
  const table = getTableName({
4534
4534
  indexName: _mastra_core_storage.TABLE_WORKFLOW_SNAPSHOT,
4535
4535
  schemaName: getSchemaName(this.schema)
@@ -4561,6 +4561,7 @@ var WorkflowsMSSQL = class WorkflowsMSSQL extends _mastra_core_storage.Workflows
4561
4561
  snapshot = typeof existingSnapshot === "string" ? JSON.parse(existingSnapshot) : existingSnapshot;
4562
4562
  }
4563
4563
  snapshot.context[stepId] = result;
4564
+ if (state !== void 0) snapshot.context.__state = state;
4564
4565
  snapshot.requestContext = {
4565
4566
  ...snapshot.requestContext,
4566
4567
  ...requestContext