@mastra/dynamodb 0.15.1 → 0.15.2-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 +9 -0
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- 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/dist/storage/index.d.ts +2 -1
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @mastra/dynamodb
|
|
2
2
|
|
|
3
|
+
## 0.15.2-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.15.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -2628,11 +2628,11 @@ var WorkflowStorageDynamoDB = class extends storage.WorkflowsStorage {
|
|
|
2628
2628
|
async persistWorkflowSnapshot({
|
|
2629
2629
|
workflowName,
|
|
2630
2630
|
runId,
|
|
2631
|
+
resourceId,
|
|
2631
2632
|
snapshot
|
|
2632
2633
|
}) {
|
|
2633
2634
|
this.logger.debug("Persisting workflow snapshot", { workflowName, runId });
|
|
2634
2635
|
try {
|
|
2635
|
-
const resourceId = "resourceId" in snapshot ? snapshot.resourceId : void 0;
|
|
2636
2636
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
2637
2637
|
const data = {
|
|
2638
2638
|
entity: "workflow_snapshot",
|
|
@@ -3041,9 +3041,10 @@ var DynamoDBStore = class extends storage.MastraStorage {
|
|
|
3041
3041
|
async persistWorkflowSnapshot({
|
|
3042
3042
|
workflowName,
|
|
3043
3043
|
runId,
|
|
3044
|
+
resourceId,
|
|
3044
3045
|
snapshot
|
|
3045
3046
|
}) {
|
|
3046
|
-
return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, snapshot });
|
|
3047
|
+
return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot });
|
|
3047
3048
|
}
|
|
3048
3049
|
async loadWorkflowSnapshot({
|
|
3049
3050
|
workflowName,
|