@mastra/libsql 0.10.1-alpha.2 → 0.10.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.
- package/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +34 -0
- package/dist/index.cjs +5 -0
- package/dist/index.js +5 -0
- package/package.json +5 -5
- package/src/storage/index.ts +6 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
|
|
2
|
-
> @mastra/libsql@0.10.1-alpha.
|
|
2
|
+
> @mastra/libsql@0.10.1-alpha.3 build /home/runner/work/mastra/mastra/stores/libsql
|
|
3
3
|
> tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
6
6
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
7
|
[34mCLI[39m tsup v8.4.0
|
|
8
8
|
[34mTSC[39m Build start
|
|
9
|
-
[32mTSC[39m ⚡️ Build success in
|
|
9
|
+
[32mTSC[39m ⚡️ Build success in 8458ms
|
|
10
10
|
[34mDTS[39m Build start
|
|
11
11
|
[34mCLI[39m Target: es2022
|
|
12
12
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
13
13
|
[36mWriting package typings: /home/runner/work/mastra/mastra/stores/libsql/dist/_tsup-dts-rollup.d.ts[39m
|
|
14
14
|
Analysis will use the bundled TypeScript version 5.8.3
|
|
15
15
|
[36mWriting package typings: /home/runner/work/mastra/mastra/stores/libsql/dist/_tsup-dts-rollup.d.cts[39m
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 7881ms
|
|
17
17
|
[34mCLI[39m Cleaning output folder
|
|
18
18
|
[34mESM[39m Build start
|
|
19
19
|
[34mCJS[39m Build start
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
[
|
|
23
|
-
[
|
|
20
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m49.10 KB[39m
|
|
21
|
+
[32mCJS[39m ⚡️ Build success in 1036ms
|
|
22
|
+
[32mESM[39m [1mdist/index.js [22m[32m48.89 KB[39m
|
|
23
|
+
[32mESM[39m ⚡️ Build success in 1036ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# @mastra/libsql
|
|
2
2
|
|
|
3
|
+
## 0.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e5dc18d: Added a backwards compatible layer to begin storing/retrieving UIMessages in storage instead of CoreMessages
|
|
8
|
+
- a3f1b39: feat(libsql): update thread timestamp when saving messages
|
|
9
|
+
- 9e37877: Fixes SQLITE_BUSY error often seen when working locally on the playground
|
|
10
|
+
- c5bf1ce: Add backwards compat code for new MessageList in storage
|
|
11
|
+
- f0d559f: Fix peerdeps for alpha channel
|
|
12
|
+
- Updated dependencies [ee77e78]
|
|
13
|
+
- Updated dependencies [592a2db]
|
|
14
|
+
- Updated dependencies [e5dc18d]
|
|
15
|
+
- Updated dependencies [ab5adbe]
|
|
16
|
+
- Updated dependencies [1e8bb40]
|
|
17
|
+
- Updated dependencies [1b5fc55]
|
|
18
|
+
- Updated dependencies [195c428]
|
|
19
|
+
- Updated dependencies [f73e11b]
|
|
20
|
+
- Updated dependencies [37643b8]
|
|
21
|
+
- Updated dependencies [99fd6cf]
|
|
22
|
+
- Updated dependencies [c5bf1ce]
|
|
23
|
+
- Updated dependencies [add596e]
|
|
24
|
+
- Updated dependencies [8dc94d8]
|
|
25
|
+
- Updated dependencies [ecebbeb]
|
|
26
|
+
- Updated dependencies [79d5145]
|
|
27
|
+
- Updated dependencies [12b7002]
|
|
28
|
+
- Updated dependencies [2901125]
|
|
29
|
+
- @mastra/core@0.10.2
|
|
30
|
+
|
|
31
|
+
## 0.10.1-alpha.3
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- a3f1b39: feat(libsql): update thread timestamp when saving messages
|
|
36
|
+
|
|
3
37
|
## 0.10.1-alpha.2
|
|
4
38
|
|
|
5
39
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1136,6 +1136,11 @@ var LibSQLStore = class extends storage.MastraStorage {
|
|
|
1136
1136
|
]
|
|
1137
1137
|
};
|
|
1138
1138
|
});
|
|
1139
|
+
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
1140
|
+
batchStatements.push({
|
|
1141
|
+
sql: `UPDATE ${storage.TABLE_THREADS} SET updatedAt = ? WHERE id = ?`,
|
|
1142
|
+
args: [now, threadId]
|
|
1143
|
+
});
|
|
1139
1144
|
await this.client.batch(batchStatements, "write");
|
|
1140
1145
|
const list = new agent.MessageList().add(messages, "memory");
|
|
1141
1146
|
if (format === `v2`) return list.get.all.v2();
|
package/dist/index.js
CHANGED
|
@@ -1134,6 +1134,11 @@ var LibSQLStore = class extends MastraStorage {
|
|
|
1134
1134
|
]
|
|
1135
1135
|
};
|
|
1136
1136
|
});
|
|
1137
|
+
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
1138
|
+
batchStatements.push({
|
|
1139
|
+
sql: `UPDATE ${TABLE_THREADS} SET updatedAt = ? WHERE id = ?`,
|
|
1140
|
+
args: [now, threadId]
|
|
1141
|
+
});
|
|
1137
1142
|
await this.client.batch(batchStatements, "write");
|
|
1138
1143
|
const list = new MessageList().add(messages, "memory");
|
|
1139
1144
|
if (format === `v2`) return list.get.all.v2();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/libsql",
|
|
3
|
-
"version": "0.10.1
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Libsql provider for Mastra - includes both vector and db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"tsup": "^8.4.0",
|
|
30
30
|
"typescript": "^5.8.3",
|
|
31
31
|
"vitest": "^3.1.2",
|
|
32
|
-
"@internal/lint": "0.0.
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
32
|
+
"@internal/lint": "0.0.8",
|
|
33
|
+
"@mastra/core": "0.10.2",
|
|
34
|
+
"@internal/storage-test-utils": "0.0.4"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
|
-
"@mastra/core": "^0.10.
|
|
37
|
+
"@mastra/core": "^0.10.2-alpha.0"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
|
package/src/storage/index.ts
CHANGED
|
@@ -486,6 +486,12 @@ export class LibSQLStore extends MastraStorage {
|
|
|
486
486
|
};
|
|
487
487
|
});
|
|
488
488
|
|
|
489
|
+
const now = new Date().toISOString();
|
|
490
|
+
batchStatements.push({
|
|
491
|
+
sql: `UPDATE ${TABLE_THREADS} SET updatedAt = ? WHERE id = ?`,
|
|
492
|
+
args: [now, threadId],
|
|
493
|
+
});
|
|
494
|
+
|
|
489
495
|
// Execute all inserts in a single batch
|
|
490
496
|
await this.client.batch(batchStatements, 'write');
|
|
491
497
|
|