@mastra/mongodb 0.13.0 → 0.13.1

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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @mastra/mongodb@0.13.0-alpha.3 build /home/runner/work/mastra/mastra/stores/mongodb
2
+ > @mastra/mongodb@0.13.1-alpha.0 build /home/runner/work/mastra/mastra/stores/mongodb
3
3
  > tsup --silent --config tsup.config.ts
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # @mastra/mongodb
2
2
 
3
+ ## 0.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - b32c50d: Filter scores by source
8
+ - Updated dependencies [d5330bf]
9
+ - Updated dependencies [2e74797]
10
+ - Updated dependencies [8388649]
11
+ - Updated dependencies [a239d41]
12
+ - Updated dependencies [dd94a26]
13
+ - Updated dependencies [3ba6772]
14
+ - Updated dependencies [b5cf2a3]
15
+ - Updated dependencies [2fff911]
16
+ - Updated dependencies [b32c50d]
17
+ - Updated dependencies [63449d0]
18
+ - Updated dependencies [121a3f8]
19
+ - Updated dependencies [ec510e7]
20
+ - @mastra/core@0.13.2
21
+
22
+ ## 0.13.1-alpha.0
23
+
24
+ ### Patch Changes
25
+
26
+ - b32c50d: Filter scores by source
27
+ - Updated dependencies [d5330bf]
28
+ - Updated dependencies [a239d41]
29
+ - Updated dependencies [b32c50d]
30
+ - Updated dependencies [121a3f8]
31
+ - Updated dependencies [ec510e7]
32
+ - @mastra/core@0.13.2-alpha.2
33
+
3
34
  ## 0.13.0
4
35
 
5
36
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -1692,7 +1692,8 @@ var ScoresStorageMongoDB = class extends storage.ScoresStorage {
1692
1692
  scorerId,
1693
1693
  pagination,
1694
1694
  entityId,
1695
- entityType
1695
+ entityType,
1696
+ source
1696
1697
  }) {
1697
1698
  try {
1698
1699
  const query = { scorerId };
@@ -1702,6 +1703,9 @@ var ScoresStorageMongoDB = class extends storage.ScoresStorage {
1702
1703
  if (entityType) {
1703
1704
  query.entityType = entityType;
1704
1705
  }
1706
+ if (source) {
1707
+ query.source = source;
1708
+ }
1705
1709
  const collection = await this.operations.getCollection(storage.TABLE_SCORERS);
1706
1710
  const total = await collection.countDocuments(query);
1707
1711
  const currentOffset = pagination.page * pagination.perPage;
@@ -2317,9 +2321,10 @@ var MongoDBStore = class extends storage.MastraStorage {
2317
2321
  scorerId,
2318
2322
  pagination,
2319
2323
  entityId,
2320
- entityType
2324
+ entityType,
2325
+ source
2321
2326
  }) {
2322
- return this.stores.scores.getScoresByScorerId({ scorerId, pagination, entityId, entityType });
2327
+ return this.stores.scores.getScoresByScorerId({ scorerId, pagination, entityId, entityType, source });
2323
2328
  }
2324
2329
  /**
2325
2330
  * RESOURCES