@mastra/mysql 0.12.1 → 0.12.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-mysql
3
3
  description: Documentation for @mastra/mysql. Use when working with @mastra/mysql APIs, configuration, or implementation.
4
4
  metadata:
5
5
  package: "@mastra/mysql"
6
- version: "0.12.1"
6
+ version: "0.12.2-alpha.0"
7
7
  ---
8
8
 
9
9
  ## When to use
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.12.1",
2
+ "version": "0.12.2-alpha.0",
3
3
  "package": "@mastra/mysql",
4
4
  "exports": {},
5
5
  "modules": {}
package/dist/index.cjs CHANGED
@@ -10982,7 +10982,7 @@ var WorkflowsMySQL = class WorkflowsMySQL extends _mastra_core_storage.Workflows
10982
10982
  }, error);
10983
10983
  }
10984
10984
  }
10985
- async updateWorkflowResults({ workflowName, runId, stepId, result, requestContext }) {
10985
+ async updateWorkflowResults({ workflowName, runId, stepId, result, requestContext, state }) {
10986
10986
  const connection = await this.pool.getConnection();
10987
10987
  try {
10988
10988
  await connection.beginTransaction();
@@ -11002,6 +11002,7 @@ var WorkflowsMySQL = class WorkflowsMySQL extends _mastra_core_storage.Workflows
11002
11002
  const currentSnapshot = parseSnapshot(rows[0].snapshot);
11003
11003
  const context = { ...currentSnapshot.context ?? {} };
11004
11004
  context[stepId] = result;
11005
+ if (state !== void 0) context.__state = state;
11005
11006
  const updatedSnapshot = {
11006
11007
  ...currentSnapshot,
11007
11008
  context,