@mastra/mongodb 0.12.4 → 0.13.0-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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @mastra/mongodb@0.12.4-alpha.0 build /home/runner/work/mastra/mastra/stores/mongodb
2
+ > @mastra/mongodb@0.13.0-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,19 @@
1
1
  # @mastra/mongodb
2
2
 
3
+ ## 0.13.0-alpha.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ea0c5f2: Add store support to new score api
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [ea0c5f2]
12
+ - Updated dependencies [b0e43c1]
13
+ - Updated dependencies [1fb812e]
14
+ - Updated dependencies [35c5798]
15
+ - @mastra/core@0.13.0-alpha.1
16
+
3
17
  ## 0.12.4
4
18
 
5
19
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1492,12 +1492,12 @@ function transformScoreRow(row) {
1492
1492
  console.warn("Failed to parse scorer:", e);
1493
1493
  }
1494
1494
  }
1495
- let extractStepResultValue = null;
1496
- if (row.extractStepResult) {
1495
+ let preprocessStepResultValue = null;
1496
+ if (row.preprocessStepResult) {
1497
1497
  try {
1498
- extractStepResultValue = typeof row.extractStepResult === "string" ? storage.safelyParseJSON(row.extractStepResult) : row.extractStepResult;
1498
+ preprocessStepResultValue = typeof row.preprocessStepResult === "string" ? storage.safelyParseJSON(row.preprocessStepResult) : row.preprocessStepResult;
1499
1499
  } catch (e) {
1500
- console.warn("Failed to parse extractStepResult:", e);
1500
+ console.warn("Failed to parse preprocessStepResult:", e);
1501
1501
  }
1502
1502
  }
1503
1503
  let analyzeStepResultValue = null;
@@ -1548,7 +1548,7 @@ function transformScoreRow(row) {
1548
1548
  traceId: row.traceId,
1549
1549
  runId: row.runId,
1550
1550
  scorer: scorerValue,
1551
- extractStepResult: extractStepResultValue,
1551
+ preprocessStepResult: preprocessStepResultValue,
1552
1552
  analyzeStepResult: analyzeStepResultValue,
1553
1553
  score: row.score,
1554
1554
  reason: row.reason,
@@ -1605,11 +1605,13 @@ var ScoresStorageMongoDB = class extends storage.ScoresStorage {
1605
1605
  traceId: score.traceId || "",
1606
1606
  runId: score.runId,
1607
1607
  scorer: typeof score.scorer === "string" ? storage.safelyParseJSON(score.scorer) : score.scorer,
1608
- extractStepResult: typeof score.extractStepResult === "string" ? storage.safelyParseJSON(score.extractStepResult) : score.extractStepResult,
1608
+ preprocessStepResult: typeof score.preprocessStepResult === "string" ? storage.safelyParseJSON(score.preprocessStepResult) : score.preprocessStepResult,
1609
1609
  analyzeStepResult: typeof score.analyzeStepResult === "string" ? storage.safelyParseJSON(score.analyzeStepResult) : score.analyzeStepResult,
1610
1610
  score: score.score,
1611
1611
  reason: score.reason,
1612
- extractPrompt: score.extractPrompt,
1612
+ preprocessPrompt: score.preprocessPrompt,
1613
+ generateScorePrompt: score.generateScorePrompt,
1614
+ generateReasonPrompt: score.generateReasonPrompt,
1613
1615
  analyzePrompt: score.analyzePrompt,
1614
1616
  reasonPrompt: score.reasonPrompt,
1615
1617
  input: typeof score.input === "string" ? storage.safelyParseJSON(score.input) : score.input,