@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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @mastra/cloudflare
2
2
 
3
+ ## 0.12.1-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Add resource id to workflow run snapshots ([#7740](https://github.com/mastra-ai/mastra/pull/7740))
8
+
9
+ - Updated dependencies [[`547c621`](https://github.com/mastra-ai/mastra/commit/547c62104af3f7a551b3754e9cbdf0a3fbba15e4)]:
10
+ - @mastra/core@0.16.4-alpha.1
11
+
3
12
  ## 0.12.0
4
13
 
5
14
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -1962,13 +1962,14 @@ var WorkflowsStorageCloudflare = class extends storage.WorkflowsStorage {
1962
1962
  }
1963
1963
  async persistWorkflowSnapshot(params) {
1964
1964
  try {
1965
- const { workflowName, runId, snapshot } = params;
1965
+ const { workflowName, runId, resourceId, snapshot } = params;
1966
1966
  await this.operations.putKV({
1967
1967
  tableName: storage.TABLE_WORKFLOW_SNAPSHOT,
1968
1968
  key: this.operations.getKey(storage.TABLE_WORKFLOW_SNAPSHOT, { workflow_name: workflowName, run_id: runId }),
1969
1969
  value: {
1970
1970
  workflow_name: workflowName,
1971
1971
  run_id: runId,
1972
+ resourceId,
1972
1973
  snapshot: typeof snapshot === "string" ? snapshot : JSON.stringify(snapshot),
1973
1974
  createdAt: /* @__PURE__ */ new Date(),
1974
1975
  updatedAt: /* @__PURE__ */ new Date()