@mastra/cloudflare 0.12.0 → 0.12.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
@@ -1956,13 +1956,14 @@ var WorkflowsStorageCloudflare = class extends WorkflowsStorage {
1956
1956
  }
1957
1957
  async persistWorkflowSnapshot(params) {
1958
1958
  try {
1959
- const { workflowName, runId, snapshot } = params;
1959
+ const { workflowName, runId, resourceId, snapshot } = params;
1960
1960
  await this.operations.putKV({
1961
1961
  tableName: TABLE_WORKFLOW_SNAPSHOT,
1962
1962
  key: this.operations.getKey(TABLE_WORKFLOW_SNAPSHOT, { workflow_name: workflowName, run_id: runId }),
1963
1963
  value: {
1964
1964
  workflow_name: workflowName,
1965
1965
  run_id: runId,
1966
+ resourceId,
1966
1967
  snapshot: typeof snapshot === "string" ? snapshot : JSON.stringify(snapshot),
1967
1968
  createdAt: /* @__PURE__ */ new Date(),
1968
1969
  updatedAt: /* @__PURE__ */ new Date()