@mastra/mongodb 0.14.0 → 0.14.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/mongodb
2
2
 
3
+ ## 0.14.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.14.0
4
13
 
5
14
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -1999,6 +1999,7 @@ var WorkflowsStorageMongoDB = class extends storage.WorkflowsStorage {
1999
1999
  async persistWorkflowSnapshot({
2000
2000
  workflowName,
2001
2001
  runId,
2002
+ resourceId,
2002
2003
  snapshot
2003
2004
  }) {
2004
2005
  try {
@@ -2009,6 +2010,7 @@ var WorkflowsStorageMongoDB = class extends storage.WorkflowsStorage {
2009
2010
  $set: {
2010
2011
  workflow_name: workflowName,
2011
2012
  run_id: runId,
2013
+ resourceId,
2012
2014
  snapshot,
2013
2015
  createdAt: /* @__PURE__ */ new Date(),
2014
2016
  updatedAt: /* @__PURE__ */ new Date()
@@ -2330,9 +2332,10 @@ var MongoDBStore = class extends storage.MastraStorage {
2330
2332
  async persistWorkflowSnapshot({
2331
2333
  workflowName,
2332
2334
  runId,
2335
+ resourceId,
2333
2336
  snapshot
2334
2337
  }) {
2335
- return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, snapshot });
2338
+ return this.stores.workflows.persistWorkflowSnapshot({ workflowName, runId, resourceId, snapshot });
2336
2339
  }
2337
2340
  async loadWorkflowSnapshot({
2338
2341
  workflowName,