@mastra/redis 1.4.8-alpha.0 → 1.4.9-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 +5 -5
package/dist/index.js
CHANGED
|
@@ -1211,7 +1211,7 @@ var WorkflowsRedis = class extends WorkflowsStorage {
|
|
|
1211
1211
|
async dangerouslyClearAll() {
|
|
1212
1212
|
await this.db.deleteData({ tableName: TABLE_WORKFLOW_SNAPSHOT });
|
|
1213
1213
|
}
|
|
1214
|
-
async updateWorkflowResults({ workflowName, runId, stepId, result, requestContext }) {
|
|
1214
|
+
async updateWorkflowResults({ workflowName, runId, stepId, result, requestContext, state }) {
|
|
1215
1215
|
try {
|
|
1216
1216
|
const existingRecord = await this.getSnapshotRecord("workflows", workflowName, runId);
|
|
1217
1217
|
let snapshot = existingRecord?.snapshot;
|
|
@@ -1230,6 +1230,7 @@ var WorkflowsRedis = class extends WorkflowsStorage {
|
|
|
1230
1230
|
requestContext: {}
|
|
1231
1231
|
};
|
|
1232
1232
|
snapshot.context[stepId] = result;
|
|
1233
|
+
if (state !== void 0) snapshot.context.__state = state;
|
|
1233
1234
|
snapshot.requestContext = {
|
|
1234
1235
|
...snapshot.requestContext,
|
|
1235
1236
|
...requestContext
|