@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/index.js
CHANGED
|
@@ -10981,7 +10981,7 @@ var WorkflowsMySQL = class WorkflowsMySQL extends WorkflowsStorage {
|
|
|
10981
10981
|
}, error);
|
|
10982
10982
|
}
|
|
10983
10983
|
}
|
|
10984
|
-
async updateWorkflowResults({ workflowName, runId, stepId, result, requestContext }) {
|
|
10984
|
+
async updateWorkflowResults({ workflowName, runId, stepId, result, requestContext, state }) {
|
|
10985
10985
|
const connection = await this.pool.getConnection();
|
|
10986
10986
|
try {
|
|
10987
10987
|
await connection.beginTransaction();
|
|
@@ -11001,6 +11001,7 @@ var WorkflowsMySQL = class WorkflowsMySQL extends WorkflowsStorage {
|
|
|
11001
11001
|
const currentSnapshot = parseSnapshot(rows[0].snapshot);
|
|
11002
11002
|
const context = { ...currentSnapshot.context ?? {} };
|
|
11003
11003
|
context[stepId] = result;
|
|
11004
|
+
if (state !== void 0) context.__state = state;
|
|
11004
11005
|
const updatedSnapshot = {
|
|
11005
11006
|
...currentSnapshot,
|
|
11006
11007
|
context,
|