@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.
@@ -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;
@@ -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
  }
@@ -1,5 +1,5 @@
1
1
  import type { InValue } from '@libsql/client';
2
- import type { LibSQLVectorFilter } from './filter';
2
+ import type { LibSQLVectorFilter } from './filter.js';
3
3
  interface FilterResult {
4
4
  sql: string;
5
5
  values: InValue[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/libsql",
3
- "version": "0.13.0-alpha.0",
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.cts",
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.1",
34
- "@internal/lint": "0.0.26"
34
+ "@mastra/core": "0.13.0-alpha.2",
35
+ "@internal/types-builder": "0.0.1"
35
36
  },
36
37
  "peerDependencies": {
37
- "@mastra/core": ">=0.12.0-0 <0.13.0-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 as string),
114
- events: safelyParseJSON(row.events as string),
115
- links: safelyParseJSON(row.links as string),
116
- attributes: safelyParseJSON(row.attributes as string),
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 as string),
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 { spawn } from 'child_process';
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 exec('pnpm', ['tsc', '-p', 'tsconfig.build.json'], {
19
- stdio: 'inherit',
20
- });
15
+ await generateTypes(process.cwd());
21
16
  },
22
17
  });