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