@mastra/libsql 0.0.0-add-libsql-changeset-20250910154739 → 0.0.0-add-save-score-validation-on-stores-20250911031242
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 +6 -4
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
# @mastra/libsql
|
|
2
2
|
|
|
3
|
-
## 0.0.0-add-
|
|
3
|
+
## 0.0.0-add-save-score-validation-on-stores-20250911031242
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- Add validation for saving score on stores ([`ecc528c`](https://github.com/mastra-ai/mastra/commit/ecc528cb2679f8a40ccebb02495de858934cf0bb))
|
|
8
8
|
|
|
9
|
-
-
|
|
10
|
-
|
|
9
|
+
- Fix AI Trace bug for libsql ([#7695](https://github.com/mastra-ai/mastra/pull/7695))
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`b4379f7`](https://github.com/mastra-ai/mastra/commit/b4379f703fd74474f253420e8c3a684f2c4b2f8e), [`dd9119b`](https://github.com/mastra-ai/mastra/commit/dd9119b175a8f389082f75c12750e51f96d65dca), [`d34aaa1`](https://github.com/mastra-ai/mastra/commit/d34aaa1da5d3c5f991740f59e2fe6d28d3e2dd91), [`ce1e580`](https://github.com/mastra-ai/mastra/commit/ce1e580f6391e94a0c6816a9c5db0a21566a262f), [`b2babfa`](https://github.com/mastra-ai/mastra/commit/b2babfa9e75b22f2759179e71d8473f6dc5421ed), [`d8c3ba5`](https://github.com/mastra-ai/mastra/commit/d8c3ba516f4173282d293f7e64769cfc8738d360), [`3863c52`](https://github.com/mastra-ai/mastra/commit/3863c52d44b4e5779968b802d977e87adf939d8e), [`6424c7e`](https://github.com/mastra-ai/mastra/commit/6424c7ec38b6921d66212431db1e0958f441b2a7), [`db94750`](https://github.com/mastra-ai/mastra/commit/db94750a41fd29b43eb1f7ce8e97ba8b9978c91b), [`a66a371`](https://github.com/mastra-ai/mastra/commit/a66a3716b00553d7f01842be9deb34f720b10fab), [`69fc3cd`](https://github.com/mastra-ai/mastra/commit/69fc3cd0fd814901785bdcf49bf536ab1e7fd975)]:
|
|
12
|
+
- @mastra/core@0.0.0-add-save-score-validation-on-stores-20250911031242
|
|
11
13
|
|
|
12
14
|
## 0.14.0
|
|
13
15
|
|
package/dist/index.cjs
CHANGED
|
@@ -7,6 +7,7 @@ var vector = require('@mastra/core/vector');
|
|
|
7
7
|
var filter = require('@mastra/core/vector/filter');
|
|
8
8
|
var storage = require('@mastra/core/storage');
|
|
9
9
|
var agent = require('@mastra/core/agent');
|
|
10
|
+
var scores = require('@mastra/core/scores');
|
|
10
11
|
|
|
11
12
|
// src/vector/index.ts
|
|
12
13
|
var LibSQLFilterTranslator = class extends filter.BaseFilterTranslator {
|
|
@@ -2706,6 +2707,7 @@ var ScoresLibSQL = class extends storage.ScoresStorage {
|
|
|
2706
2707
|
}
|
|
2707
2708
|
async saveScore(score) {
|
|
2708
2709
|
try {
|
|
2710
|
+
const scoreData = scores.saveScorePayloadSchema.parse(score);
|
|
2709
2711
|
const id = crypto.randomUUID();
|
|
2710
2712
|
await this.operations.insert({
|
|
2711
2713
|
tableName: storage.TABLE_SCORERS,
|
|
@@ -2713,7 +2715,7 @@ var ScoresLibSQL = class extends storage.ScoresStorage {
|
|
|
2713
2715
|
id,
|
|
2714
2716
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2715
2717
|
updatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2716
|
-
...
|
|
2718
|
+
...scoreData
|
|
2717
2719
|
}
|
|
2718
2720
|
});
|
|
2719
2721
|
const scoreFromDb = await this.getScoreById({ id });
|