@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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/reference-storage-retention.md +21 -18
- 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 +5 -5
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
|