@mastra/libsql 0.13.0-alpha.0 → 0.13.0-alpha.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 +1 -1
- package/CHANGELOG.md +14 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/memory/index.d.ts +1 -1
- package/dist/storage/domains/scores/index.d.ts +1 -1
- package/dist/storage/domains/traces/index.d.ts +1 -1
- package/dist/storage/domains/workflows/index.d.ts +1 -1
- package/dist/vector/index.d.ts +1 -1
- package/dist/vector/sql-builder.d.ts +1 -1
- package/package.json +6 -5
- package/src/storage/domains/traces/index.ts +5 -5
- package/tsup.config.ts +2 -7
|
@@ -3,7 +3,7 @@ import type { MastraMessageContentV2 } from '@mastra/core/agent';
|
|
|
3
3
|
import type { MastraMessageV1, MastraMessageV2, StorageThreadType } from '@mastra/core/memory';
|
|
4
4
|
import type { PaginationInfo, StorageGetMessagesArg, StorageResourceType, ThreadSortOptions } from '@mastra/core/storage';
|
|
5
5
|
import { MemoryStorage } from '@mastra/core/storage';
|
|
6
|
-
import type { StoreOperationsLibSQL } from '../operations';
|
|
6
|
+
import type { StoreOperationsLibSQL } from '../operations/index.js';
|
|
7
7
|
export declare class MemoryLibSQL extends MemoryStorage {
|
|
8
8
|
private client;
|
|
9
9
|
private operations;
|
|
@@ -2,7 +2,7 @@ import type { Client } from '@libsql/client';
|
|
|
2
2
|
import type { ScoreRowData } from '@mastra/core/scores';
|
|
3
3
|
import { ScoresStorage } from '@mastra/core/storage';
|
|
4
4
|
import type { PaginationInfo, StoragePagination } from '@mastra/core/storage';
|
|
5
|
-
import type { StoreOperationsLibSQL } from '../operations';
|
|
5
|
+
import type { StoreOperationsLibSQL } from '../operations/index.js';
|
|
6
6
|
export declare class ScoresLibSQL extends ScoresStorage {
|
|
7
7
|
private operations;
|
|
8
8
|
private client;
|
|
@@ -2,7 +2,7 @@ import type { Client } from '@libsql/client';
|
|
|
2
2
|
import { TracesStorage } from '@mastra/core/storage';
|
|
3
3
|
import type { StorageGetTracesArg, StorageGetTracesPaginatedArg, PaginationInfo } from '@mastra/core/storage';
|
|
4
4
|
import type { Trace } from '@mastra/core/telemetry';
|
|
5
|
-
import type { StoreOperationsLibSQL } from '../operations';
|
|
5
|
+
import type { StoreOperationsLibSQL } from '../operations/index.js';
|
|
6
6
|
export declare class TracesLibSQL extends TracesStorage {
|
|
7
7
|
private client;
|
|
8
8
|
private operations;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Client } from '@libsql/client';
|
|
2
2
|
import type { WorkflowRun, WorkflowRuns, WorkflowRunState } from '@mastra/core';
|
|
3
3
|
import { WorkflowsStorage } from '@mastra/core/storage';
|
|
4
|
-
import type { StoreOperationsLibSQL } from '../operations';
|
|
4
|
+
import type { StoreOperationsLibSQL } from '../operations/index.js';
|
|
5
5
|
export declare class WorkflowsLibSQL extends WorkflowsStorage {
|
|
6
6
|
operations: StoreOperationsLibSQL;
|
|
7
7
|
client: Client;
|
package/dist/vector/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MastraVector } from '@mastra/core/vector';
|
|
2
2
|
import type { IndexStats, QueryResult, QueryVectorParams, CreateIndexParams, UpsertVectorParams, DescribeIndexParams, DeleteIndexParams, DeleteVectorParams, UpdateVectorParams } from '@mastra/core/vector';
|
|
3
|
-
import type { LibSQLVectorFilter } from './filter';
|
|
3
|
+
import type { LibSQLVectorFilter } from './filter.js';
|
|
4
4
|
interface LibSQLQueryVectorParams extends QueryVectorParams<LibSQLVectorFilter> {
|
|
5
5
|
minScore?: number;
|
|
6
6
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/libsql",
|
|
3
|
-
"version": "0.13.0-alpha.
|
|
3
|
+
"version": "0.13.0-alpha.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",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"default": "./dist/index.js"
|
|
13
13
|
},
|
|
14
14
|
"require": {
|
|
15
|
-
"types": "./dist/index.d.
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
16
|
"default": "./dist/index.cjs"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
@@ -29,12 +29,13 @@
|
|
|
29
29
|
"tsup": "^8.5.0",
|
|
30
30
|
"typescript": "^5.8.3",
|
|
31
31
|
"vitest": "^3.2.4",
|
|
32
|
+
"@internal/lint": "0.0.26",
|
|
32
33
|
"@internal/storage-test-utils": "0.0.22",
|
|
33
|
-
"@mastra/core": "0.13.0-alpha.
|
|
34
|
-
"@internal/
|
|
34
|
+
"@mastra/core": "0.13.0-alpha.2",
|
|
35
|
+
"@internal/types-builder": "0.0.1"
|
|
35
36
|
},
|
|
36
37
|
"peerDependencies": {
|
|
37
|
-
"@mastra/core": ">=0.
|
|
38
|
+
"@mastra/core": ">=0.13.0-0 <0.14.0-0"
|
|
38
39
|
},
|
|
39
40
|
"scripts": {
|
|
40
41
|
"build": "tsup --silent --config tsup.config.ts",
|
|
@@ -110,13 +110,13 @@ export class TracesLibSQL extends TracesStorage {
|
|
|
110
110
|
name: row.name,
|
|
111
111
|
scope: row.scope,
|
|
112
112
|
kind: row.kind,
|
|
113
|
-
status: safelyParseJSON(row.status
|
|
114
|
-
events: safelyParseJSON(row.events
|
|
115
|
-
links: safelyParseJSON(row.links
|
|
116
|
-
attributes: safelyParseJSON(row.attributes
|
|
113
|
+
status: safelyParseJSON(row.status),
|
|
114
|
+
events: safelyParseJSON(row.events),
|
|
115
|
+
links: safelyParseJSON(row.links),
|
|
116
|
+
attributes: safelyParseJSON(row.attributes),
|
|
117
117
|
startTime: row.startTime,
|
|
118
118
|
endTime: row.endTime,
|
|
119
|
-
other: safelyParseJSON(row.other
|
|
119
|
+
other: safelyParseJSON(row.other),
|
|
120
120
|
createdAt: row.createdAt,
|
|
121
121
|
}) as Trace,
|
|
122
122
|
) ?? [];
|
package/tsup.config.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { promisify } from 'util';
|
|
1
|
+
import { generateTypes } from '@internal/types-builder';
|
|
3
2
|
import { defineConfig } from 'tsup';
|
|
4
3
|
|
|
5
|
-
const exec = promisify(spawn);
|
|
6
|
-
|
|
7
4
|
export default defineConfig({
|
|
8
5
|
entry: ['src/index.ts'],
|
|
9
6
|
format: ['esm', 'cjs'],
|
|
@@ -15,8 +12,6 @@ export default defineConfig({
|
|
|
15
12
|
},
|
|
16
13
|
sourcemap: true,
|
|
17
14
|
onSuccess: async () => {
|
|
18
|
-
await
|
|
19
|
-
stdio: 'inherit',
|
|
20
|
-
});
|
|
15
|
+
await generateTypes(process.cwd());
|
|
21
16
|
},
|
|
22
17
|
});
|