@mastra/mongodb 0.12.4 → 0.13.0-alpha.2
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +34 -0
- package/dist/index.cjs +9 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +9 -7
- package/dist/index.js.map +1 -1
- package/dist/storage/MongoDBConnector.d.ts +2 -2
- package/dist/storage/connectors/MongoDBConnector.d.ts +2 -2
- package/dist/storage/domains/legacy-evals/index.d.ts +1 -1
- package/dist/storage/domains/memory/index.d.ts +1 -1
- package/dist/storage/domains/operations/index.d.ts +1 -1
- package/dist/storage/domains/scores/index.d.ts +1 -1
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/domains/traces/index.d.ts +1 -1
- package/dist/storage/domains/workflows/index.d.ts +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/types.d.ts +1 -1
- package/dist/vector/index.d.ts +1 -1
- package/package.json +7 -6
- package/src/storage/domains/scores/index.ts +15 -11
- package/src/storage/domains/traces/index.ts +5 -5
- package/src/vector/index.test.ts +31 -0
- package/tsup.config.ts +2 -7
package/.turbo/turbo-build.log
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @mastra/mongodb
|
|
2
2
|
|
|
3
|
+
## 0.13.0-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2871020: update safelyParseJSON to check for value of param when handling parse
|
|
8
|
+
- 4a406ec: fixes TypeScript declaration file imports to ensure proper ESM compatibility
|
|
9
|
+
- Updated dependencies [cb36de0]
|
|
10
|
+
- Updated dependencies [a82b851]
|
|
11
|
+
- Updated dependencies [41a0a0e]
|
|
12
|
+
- Updated dependencies [2871020]
|
|
13
|
+
- Updated dependencies [4a406ec]
|
|
14
|
+
- Updated dependencies [5d377e5]
|
|
15
|
+
- @mastra/core@0.13.0-alpha.2
|
|
16
|
+
|
|
17
|
+
## 0.13.0-alpha.1
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 494ceac: fix: trace mongo safeparse
|
|
22
|
+
|
|
23
|
+
## 0.13.0-alpha.0
|
|
24
|
+
|
|
25
|
+
### Minor Changes
|
|
26
|
+
|
|
27
|
+
- ea0c5f2: Add store support to new score api
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Updated dependencies [ea0c5f2]
|
|
32
|
+
- Updated dependencies [b0e43c1]
|
|
33
|
+
- Updated dependencies [1fb812e]
|
|
34
|
+
- Updated dependencies [35c5798]
|
|
35
|
+
- @mastra/core@0.13.0-alpha.1
|
|
36
|
+
|
|
3
37
|
## 0.12.4
|
|
4
38
|
|
|
5
39
|
### 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
|
|
1496
|
-
if (row.
|
|
1495
|
+
let preprocessStepResultValue = null;
|
|
1496
|
+
if (row.preprocessStepResult) {
|
|
1497
1497
|
try {
|
|
1498
|
-
|
|
1498
|
+
preprocessStepResultValue = typeof row.preprocessStepResult === "string" ? storage.safelyParseJSON(row.preprocessStepResult) : row.preprocessStepResult;
|
|
1499
1499
|
} catch (e) {
|
|
1500
|
-
console.warn("Failed to parse
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|