@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.
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +2 -1
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/docs/SKILL.md
CHANGED
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,
|