@mastra/oracledb 0.5.0 → 0.5.1-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/index.js CHANGED
@@ -7975,7 +7975,7 @@ var WorkflowsOracle = class WorkflowsOracle extends WorkflowsStorage {
7975
7975
  async dangerouslyClearAll() {
7976
7976
  await this.db.clearTable(TABLE_WORKFLOW_SNAPSHOT);
7977
7977
  }
7978
- async updateWorkflowResults({ workflowName, runId, stepId, result, requestContext }) {
7978
+ async updateWorkflowResults({ workflowName, runId, stepId, result, requestContext, state }) {
7979
7979
  try {
7980
7980
  return await this.db.tx(async (client) => {
7981
7981
  await this.ensureWorkflowRunRow(client, workflowName, runId);
@@ -7985,6 +7985,7 @@ var WorkflowsOracle = class WorkflowsOracle extends WorkflowsStorage {
7985
7985
  });
7986
7986
  const snapshot = parseSnapshot(existing.snapshot);
7987
7987
  snapshot.context[stepId] = result;
7988
+ if (state !== void 0) snapshot.context.__state = state;
7988
7989
  snapshot.requestContext = {
7989
7990
  ...snapshot.requestContext ?? {},
7990
7991
  ...requestContext