@mastra/libsql 1.26.1-alpha.1 → 1.26.2-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.
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-memory-overview.md +31 -0
- package/dist/index.cjs +18 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -2
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/notifications/index.d.ts +8 -0
- package/dist/storage/domains/notifications/index.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -7,6 +7,14 @@ export declare class NotificationsLibSQL extends NotificationsStorage {
|
|
|
7
7
|
static readonly retentionTables: RetentionTablesDescriptor;
|
|
8
8
|
constructor(config: LibSQLDomainConfig);
|
|
9
9
|
init(): Promise<void>;
|
|
10
|
+
/**
|
|
11
|
+
* Tables created before the composite primary key was declared have no key.
|
|
12
|
+
* SQLite cannot add a primary key in place, so enforce the same uniqueness with
|
|
13
|
+
* a unique index. Tables that already have the key are skipped, since SQLite
|
|
14
|
+
* would otherwise maintain a redundant second index. If duplicate rows exist
|
|
15
|
+
* the index cannot be built; warn instead of blocking init.
|
|
16
|
+
*/
|
|
17
|
+
private ensureUniqueKey;
|
|
10
18
|
dangerouslyClearAll(): Promise<void>;
|
|
11
19
|
/** Delete notifications older than the `notifications` policy's `maxAge`, batched. */
|
|
12
20
|
prune(policies: Record<string, TableRetentionPolicy>, options?: PruneOptions): Promise<PruneResult[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/notifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/storage/domains/notifications/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAqD,MAAM,sBAAsB,CA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GAAG,EAAE,MAAM,EAAE,CAAC;QACd,MAAM,EAAE,kBAAkB,CAAC;KAC5B,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAgChC;YAEa,eAAe;CA6B9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/libsql",
|
|
3
|
-
"version": "1.26.
|
|
3
|
+
"version": "1.26.2-alpha.0",
|
|
4
4
|
"description": "Libsql provider for Mastra - includes both vector and db storage capabilities",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -32,10 +32,10 @@
|
|
|
32
32
|
"typescript": "^7.0.2",
|
|
33
33
|
"vitest": "4.1.11",
|
|
34
34
|
"@internal/core": "0.1.2",
|
|
35
|
-
"@internal/lint": "0.0.
|
|
36
|
-
"@internal/storage-test-utils": "0.0.
|
|
37
|
-
"@
|
|
38
|
-
"@
|
|
35
|
+
"@internal/lint": "0.0.143",
|
|
36
|
+
"@internal/storage-test-utils": "0.0.139",
|
|
37
|
+
"@mastra/core": "1.78.0-alpha.1",
|
|
38
|
+
"@internal/types-builder": "0.0.118"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"@mastra/core": ">=1.76.0-0 <2.0.0-0"
|