@mastra/libsql 0.0.0-mcp-schema-serializer-20250430202337

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.
@@ -0,0 +1,6 @@
1
+ import { createConfig } from '@internal/lint/eslint';
2
+
3
+ const config = await createConfig();
4
+
5
+ /** @type {import("eslint").Linter.Config[]} */
6
+ export default [...config.map(conf => ({ ...conf, ignores: [...(conf.ignores || []), '**/vitest.perf.config.ts'] }))];
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@mastra/libsql",
3
+ "version": "0.0.0-mcp-schema-serializer-20250430202337",
4
+ "description": "Libsql provider for Mastra - includes both vector and db storage capabilities",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": {
11
+ "types": "./dist/index.d.ts",
12
+ "default": "./dist/index.js"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.cts",
16
+ "default": "./dist/index.cjs"
17
+ }
18
+ },
19
+ "./package.json": "./package.json"
20
+ },
21
+ "license": "MIT",
22
+ "dependencies": {
23
+ "@libsql/client": "^0.15.4",
24
+ "@mastra/core": "0.0.0-mcp-schema-serializer-20250430202337"
25
+ },
26
+ "devDependencies": {
27
+ "@microsoft/api-extractor": "^7.52.5",
28
+ "@types/node": "^20.17.32",
29
+ "eslint": "^9.25.1",
30
+ "tsup": "^8.4.0",
31
+ "typescript": "^5.8.3",
32
+ "vitest": "^3.1.2",
33
+ "@internal/lint": "0.0.2",
34
+ "@internal/storage-test-utils": "0.0.0-mcp-schema-serializer-20250430202337"
35
+ },
36
+ "scripts": {
37
+ "build": "tsup src/index.ts --format esm,cjs --experimental-dts --clean --treeshake=smallest --splitting",
38
+ "build:watch": "pnpm build --watch",
39
+ "test": "vitest run",
40
+ "lint": "eslint ."
41
+ }
42
+ }
package/src/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from './vector';
2
+ export * from './storage';
3
+ export { LIBSQL_PROMPT } from './vector/prompt';
@@ -0,0 +1,15 @@
1
+ import { createTestSuite } from '@internal/storage-test-utils';
2
+ import { Mastra } from '@mastra/core/mastra';
3
+
4
+ import { LibSQLStore } from './index';
5
+
6
+ // Test database configuration
7
+ const TEST_DB_URL = 'file::memory:?cache=shared'; // Use in-memory SQLite for tests
8
+
9
+ const mastra = new Mastra({
10
+ storage: new LibSQLStore({
11
+ url: TEST_DB_URL,
12
+ }),
13
+ });
14
+
15
+ createTestSuite(mastra.getStorage()!);