@nicia-ai/typegraph 0.17.0 → 0.19.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.
Files changed (39) hide show
  1. package/dist/backend/postgres/index.cjs +27 -27
  2. package/dist/backend/postgres/index.js +2 -2
  3. package/dist/backend/sqlite/index.cjs +12 -12
  4. package/dist/backend/sqlite/index.js +2 -2
  5. package/dist/backend/sqlite/libsql.cjs +28 -0
  6. package/dist/backend/sqlite/libsql.cjs.map +1 -0
  7. package/dist/backend/sqlite/libsql.d.cts +86 -0
  8. package/dist/backend/sqlite/libsql.d.ts +86 -0
  9. package/dist/backend/sqlite/libsql.js +26 -0
  10. package/dist/backend/sqlite/libsql.js.map +1 -0
  11. package/dist/backend/sqlite/local.cjs +7 -12
  12. package/dist/backend/sqlite/local.cjs.map +1 -1
  13. package/dist/backend/sqlite/local.js +4 -9
  14. package/dist/backend/sqlite/local.js.map +1 -1
  15. package/dist/{chunk-5H74QKKF.cjs → chunk-HXJXTOXR.cjs} +23 -27
  16. package/dist/chunk-HXJXTOXR.cjs.map +1 -0
  17. package/dist/{chunk-2UTJRP4F.cjs → chunk-IYWWXOVK.cjs} +40 -28
  18. package/dist/chunk-IYWWXOVK.cjs.map +1 -0
  19. package/dist/{chunk-IRS2C6GN.js → chunk-LLHFS53Q.js} +10 -14
  20. package/dist/chunk-LLHFS53Q.js.map +1 -0
  21. package/dist/{chunk-7ZVPFJLQ.js → chunk-QFZQGEQ3.js} +40 -29
  22. package/dist/chunk-QFZQGEQ3.js.map +1 -0
  23. package/dist/index.cjs +48 -20
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.cts +2 -2
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.js +48 -20
  28. package/dist/index.js.map +1 -1
  29. package/dist/interchange/index.d.cts +1 -1
  30. package/dist/interchange/index.d.ts +1 -1
  31. package/dist/profiler/index.d.cts +1 -1
  32. package/dist/profiler/index.d.ts +1 -1
  33. package/dist/{store-B_JzzHwb.d.cts → store-BnUu4qo5.d.cts} +33 -16
  34. package/dist/{store-DkY1pDfu.d.ts → store-CCOwNft_.d.ts} +33 -16
  35. package/package.json +16 -1
  36. package/dist/chunk-2UTJRP4F.cjs.map +0 -1
  37. package/dist/chunk-5H74QKKF.cjs.map +0 -1
  38. package/dist/chunk-7ZVPFJLQ.js.map +0 -1
  39. package/dist/chunk-IRS2C6GN.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { G as GraphDef } from '../manager-Bj1UEnhE.cjs';
3
- import { Y as Store } from '../store-B_JzzHwb.cjs';
3
+ import { Y as Store } from '../store-BnUu4qo5.cjs';
4
4
  import '../types-DMzKq0d5.cjs';
5
5
  import '../types-B3mmOMJV.cjs';
6
6
  import 'drizzle-orm';
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
2
  import { G as GraphDef } from '../manager-Chhrq1vl.js';
3
- import { Y as Store } from '../store-DkY1pDfu.js';
3
+ import { Y as Store } from '../store-CCOwNft_.js';
4
4
  import '../types-DMzKq0d5.js';
5
5
  import '../types-ThB4cFLp.js';
6
6
  import 'drizzle-orm';
@@ -1,6 +1,6 @@
1
1
  import { G as GraphDef } from '../manager-Bj1UEnhE.cjs';
2
2
  import { Q as QueryAst } from '../ast-Bh2NDeaK.cjs';
3
- import { Y as Store } from '../store-B_JzzHwb.cjs';
3
+ import { Y as Store } from '../store-BnUu4qo5.cjs';
4
4
  import { P as ProfilerOptions, a as ProfileReport } from '../types-CVtGFpB9.cjs';
5
5
  export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-CVtGFpB9.cjs';
6
6
  import '../types-DMzKq0d5.cjs';
@@ -1,6 +1,6 @@
1
1
  import { G as GraphDef } from '../manager-Chhrq1vl.js';
2
2
  import { Q as QueryAst } from '../ast-COMyNeMn.js';
3
- import { Y as Store } from '../store-DkY1pDfu.js';
3
+ import { Y as Store } from '../store-CCOwNft_.js';
4
4
  import { P as ProfilerOptions, a as ProfileReport } from '../types-COPePE8_.js';
5
5
  export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-COPePE8_.js';
6
6
  import '../types-DMzKq0d5.js';
@@ -1497,13 +1497,26 @@ type SubgraphOptions<G extends GraphDef, EK extends EdgeKinds<G>, NK extends Nod
1497
1497
  */
1498
1498
  project?: P;
1499
1499
  }>;
1500
+ /**
1501
+ * Union of all node result types in a subgraph, respecting projection.
1502
+ */
1503
+ type SubgraphNodeResult<G extends GraphDef, NK extends NodeKinds<G> = NodeKinds<G>, P = undefined> = {
1504
+ [Kind in NK]: SubgraphNodeResultForKind<G, Kind, P>;
1505
+ }[NK];
1506
+ /**
1507
+ * Union of all edge result types in a subgraph, respecting projection.
1508
+ */
1509
+ type SubgraphEdgeResult<G extends GraphDef, EK extends EdgeKinds<G> = EdgeKinds<G>, P = undefined> = {
1510
+ [Kind in EK]: SubgraphEdgeResultForKind<G, Kind, P>;
1511
+ }[EK];
1500
1512
  type SubgraphResult<G extends GraphDef, NK extends NodeKinds<G> = NodeKinds<G>, EK extends EdgeKinds<G> = EdgeKinds<G>, P extends SubgraphProject<G, NK, EK> | undefined = undefined> = Readonly<{
1501
- nodes: readonly {
1502
- [Kind in NK]: SubgraphNodeResultForKind<G, Kind, P>;
1503
- }[NK][];
1504
- edges: readonly {
1505
- [Kind in EK]: SubgraphEdgeResultForKind<G, Kind, P>;
1506
- }[EK][];
1513
+ /** The root node, or undefined if the root was not found or excluded. */
1514
+ root: SubgraphNodeResult<G, NK, P> | undefined;
1515
+ nodes: ReadonlyMap<string, SubgraphNodeResult<G, NK, P>>;
1516
+ /** Forward adjacency: fromId → edgeKind → edges to targets. */
1517
+ adjacency: ReadonlyMap<string, ReadonlyMap<EK, readonly SubgraphEdgeResult<G, EK, P>[]>>;
1518
+ /** Reverse adjacency: toId → edgeKind → edges from sources. */
1519
+ reverseAdjacency: ReadonlyMap<string, ReadonlyMap<EK, readonly SubgraphEdgeResult<G, EK, P>[]>>;
1507
1520
  }>;
1508
1521
 
1509
1522
  /**
@@ -2216,22 +2229,26 @@ declare class Store<G extends GraphDef> {
2216
2229
  * Extracts a typed subgraph by traversing from a root node.
2217
2230
  *
2218
2231
  * Performs a BFS traversal from `rootId` following the specified edge kinds,
2219
- * then returns all reachable nodes and the edges connecting them.
2232
+ * returning an indexed result with adjacency maps for immediate traversal.
2220
2233
  *
2221
2234
  * @example
2222
2235
  * ```typescript
2223
- * const result = await store.subgraph(run.id, {
2236
+ * const sg = await store.subgraph(run.id, {
2224
2237
  * edges: ["has_task", "runs_agent", "uses_skill"],
2225
2238
  * maxDepth: 4,
2226
- * includeKinds: ["Run", "Task", "Agent", "Skill"],
2227
2239
  * });
2228
2240
  *
2229
- * for (const node of result.nodes) {
2230
- * switch (node.kind) {
2231
- * case "Task": console.log(node.name); break;
2232
- * case "Agent": console.log(node.model); break;
2233
- * }
2234
- * }
2241
+ * // Root node (the traversal starting point)
2242
+ * console.log(sg.root?.kind);
2243
+ *
2244
+ * // Lookup by ID
2245
+ * const task = sg.nodes.get(taskId);
2246
+ *
2247
+ * // Forward adjacency: edges of a kind from a node
2248
+ * const taskEdges = sg.adjacency.get(run.id)?.get("has_task") ?? [];
2249
+ *
2250
+ * // Reverse adjacency: edges of a kind pointing to a node
2251
+ * const parentEdges = sg.reverseAdjacency.get(taskId)?.get("has_task") ?? [];
2235
2252
  * ```
2236
2253
  */
2237
2254
  subgraph<const EK extends EdgeKinds<G>, const NK extends NodeKinds<G> = NodeKinds<G>, const P extends SubgraphProject<G, NK, EK> | undefined = undefined>(rootId: NodeId<AllNodeTypes<G>>, options: SubgraphOptions<G, EK, NK, P>): Promise<SubgraphResult<G, NK, EK, P>>;
@@ -2337,4 +2354,4 @@ declare function createStore<G extends GraphDef>(graph: G, backend: GraphBackend
2337
2354
  */
2338
2355
  declare function createStoreWithSchema<G extends GraphDef>(graph: G, backend: GraphBackend, options?: StoreOptions & SchemaManagerOptions): Promise<[Store<G>, SchemaValidationResult]>;
2339
2356
 
2340
- export { type StoreProjection as $, type AliasMap as A, type BatchResults as B, type CreateQueryBuilderOptions as C, type DynamicEdgeCollection as D, type EdgeAliasMap as E, type FieldAccessor as F, type GetOrCreateAction as G, type HookContext as H, type IfExistsMode as I, type PaginatedResult as J, type Predicate as K, PreparedQuery as L, type PropsAccessor as M, type Node as N, type OperationHookContext as O, type PaginateOptions as P, QueryBuilder as Q, type QueryHookContext as R, type QueryOptions as S, TraversalBuilder as T, type RecursiveTraversalOptions as U, type SelectContext as V, type SelectableEdge as W, type SelectableNode as X, Store as Y, type StoreHooks as Z, type StoreOptions as _, type AggregateResult as a, type StreamOptions as a0, type SubgraphOptions as a1, type SubgraphResult as a2, type SubsetEdge as a3, type SubsetNode as a4, type TransactionContext as a5, type TypedEdgeCollection as a6, UnionableQuery as a7, type UpdateEdgeInput as a8, type UpdateNodeInput as a9, createStore as aa, createStoreWithSchema as ab, defineSubgraphProject as ac, embedding as ad, exists as ae, fieldRef as af, getEmbeddingDimensions as ag, inSubquery as ah, isEmbeddingSchema as ai, isParameterRef as aj, notExists as ak, notInSubquery as al, param as am, type AnyEdge as b, type AnyNode as c, type BatchableQuery as d, type ConstraintNames as e, type CreateEdgeInput as f, type CreateNodeInput as g, type DynamicNodeCollection as h, type Edge as i, type EdgeAccessor as j, type EdgeCollection as k, type EdgeFindByEndpointsOptions as l, type EdgeGetOrCreateByEndpointsOptions as m, type EdgeGetOrCreateByEndpointsResult as n, type EmbeddingSchema as o, type EmbeddingValue as p, ExecutableAggregateQuery as q, ExecutableQuery as r, type GraphEdgeCollections as s, type GraphNodeCollections as t, type NodeAccessor as u, type NodeAlias as v, type NodeCollection as w, type NodeGetOrCreateByConstraintOptions as x, type NodeGetOrCreateByConstraintResult as y, type NodeRef as z };
2357
+ export { type StoreProjection as $, type AliasMap as A, type BatchResults as B, type CreateQueryBuilderOptions as C, type DynamicEdgeCollection as D, type EdgeAliasMap as E, type FieldAccessor as F, type GetOrCreateAction as G, type HookContext as H, type IfExistsMode as I, type PaginatedResult as J, type Predicate as K, PreparedQuery as L, type PropsAccessor as M, type Node as N, type OperationHookContext as O, type PaginateOptions as P, QueryBuilder as Q, type QueryHookContext as R, type QueryOptions as S, TraversalBuilder as T, type RecursiveTraversalOptions as U, type SelectContext as V, type SelectableEdge as W, type SelectableNode as X, Store as Y, type StoreHooks as Z, type StoreOptions as _, type AggregateResult as a, type StreamOptions as a0, type SubgraphEdgeResult as a1, type SubgraphNodeResult as a2, type SubgraphOptions as a3, type SubgraphResult as a4, type SubsetEdge as a5, type SubsetNode as a6, type TransactionContext as a7, type TypedEdgeCollection as a8, UnionableQuery as a9, type UpdateEdgeInput as aa, type UpdateNodeInput as ab, createStore as ac, createStoreWithSchema as ad, defineSubgraphProject as ae, embedding as af, exists as ag, fieldRef as ah, getEmbeddingDimensions as ai, inSubquery as aj, isEmbeddingSchema as ak, isParameterRef as al, notExists as am, notInSubquery as an, param as ao, type AnyEdge as b, type AnyNode as c, type BatchableQuery as d, type ConstraintNames as e, type CreateEdgeInput as f, type CreateNodeInput as g, type DynamicNodeCollection as h, type Edge as i, type EdgeAccessor as j, type EdgeCollection as k, type EdgeFindByEndpointsOptions as l, type EdgeGetOrCreateByEndpointsOptions as m, type EdgeGetOrCreateByEndpointsResult as n, type EmbeddingSchema as o, type EmbeddingValue as p, ExecutableAggregateQuery as q, ExecutableQuery as r, type GraphEdgeCollections as s, type GraphNodeCollections as t, type NodeAccessor as u, type NodeAlias as v, type NodeCollection as w, type NodeGetOrCreateByConstraintOptions as x, type NodeGetOrCreateByConstraintResult as y, type NodeRef as z };
@@ -1497,13 +1497,26 @@ type SubgraphOptions<G extends GraphDef, EK extends EdgeKinds<G>, NK extends Nod
1497
1497
  */
1498
1498
  project?: P;
1499
1499
  }>;
1500
+ /**
1501
+ * Union of all node result types in a subgraph, respecting projection.
1502
+ */
1503
+ type SubgraphNodeResult<G extends GraphDef, NK extends NodeKinds<G> = NodeKinds<G>, P = undefined> = {
1504
+ [Kind in NK]: SubgraphNodeResultForKind<G, Kind, P>;
1505
+ }[NK];
1506
+ /**
1507
+ * Union of all edge result types in a subgraph, respecting projection.
1508
+ */
1509
+ type SubgraphEdgeResult<G extends GraphDef, EK extends EdgeKinds<G> = EdgeKinds<G>, P = undefined> = {
1510
+ [Kind in EK]: SubgraphEdgeResultForKind<G, Kind, P>;
1511
+ }[EK];
1500
1512
  type SubgraphResult<G extends GraphDef, NK extends NodeKinds<G> = NodeKinds<G>, EK extends EdgeKinds<G> = EdgeKinds<G>, P extends SubgraphProject<G, NK, EK> | undefined = undefined> = Readonly<{
1501
- nodes: readonly {
1502
- [Kind in NK]: SubgraphNodeResultForKind<G, Kind, P>;
1503
- }[NK][];
1504
- edges: readonly {
1505
- [Kind in EK]: SubgraphEdgeResultForKind<G, Kind, P>;
1506
- }[EK][];
1513
+ /** The root node, or undefined if the root was not found or excluded. */
1514
+ root: SubgraphNodeResult<G, NK, P> | undefined;
1515
+ nodes: ReadonlyMap<string, SubgraphNodeResult<G, NK, P>>;
1516
+ /** Forward adjacency: fromId → edgeKind → edges to targets. */
1517
+ adjacency: ReadonlyMap<string, ReadonlyMap<EK, readonly SubgraphEdgeResult<G, EK, P>[]>>;
1518
+ /** Reverse adjacency: toId → edgeKind → edges from sources. */
1519
+ reverseAdjacency: ReadonlyMap<string, ReadonlyMap<EK, readonly SubgraphEdgeResult<G, EK, P>[]>>;
1507
1520
  }>;
1508
1521
 
1509
1522
  /**
@@ -2216,22 +2229,26 @@ declare class Store<G extends GraphDef> {
2216
2229
  * Extracts a typed subgraph by traversing from a root node.
2217
2230
  *
2218
2231
  * Performs a BFS traversal from `rootId` following the specified edge kinds,
2219
- * then returns all reachable nodes and the edges connecting them.
2232
+ * returning an indexed result with adjacency maps for immediate traversal.
2220
2233
  *
2221
2234
  * @example
2222
2235
  * ```typescript
2223
- * const result = await store.subgraph(run.id, {
2236
+ * const sg = await store.subgraph(run.id, {
2224
2237
  * edges: ["has_task", "runs_agent", "uses_skill"],
2225
2238
  * maxDepth: 4,
2226
- * includeKinds: ["Run", "Task", "Agent", "Skill"],
2227
2239
  * });
2228
2240
  *
2229
- * for (const node of result.nodes) {
2230
- * switch (node.kind) {
2231
- * case "Task": console.log(node.name); break;
2232
- * case "Agent": console.log(node.model); break;
2233
- * }
2234
- * }
2241
+ * // Root node (the traversal starting point)
2242
+ * console.log(sg.root?.kind);
2243
+ *
2244
+ * // Lookup by ID
2245
+ * const task = sg.nodes.get(taskId);
2246
+ *
2247
+ * // Forward adjacency: edges of a kind from a node
2248
+ * const taskEdges = sg.adjacency.get(run.id)?.get("has_task") ?? [];
2249
+ *
2250
+ * // Reverse adjacency: edges of a kind pointing to a node
2251
+ * const parentEdges = sg.reverseAdjacency.get(taskId)?.get("has_task") ?? [];
2235
2252
  * ```
2236
2253
  */
2237
2254
  subgraph<const EK extends EdgeKinds<G>, const NK extends NodeKinds<G> = NodeKinds<G>, const P extends SubgraphProject<G, NK, EK> | undefined = undefined>(rootId: NodeId<AllNodeTypes<G>>, options: SubgraphOptions<G, EK, NK, P>): Promise<SubgraphResult<G, NK, EK, P>>;
@@ -2337,4 +2354,4 @@ declare function createStore<G extends GraphDef>(graph: G, backend: GraphBackend
2337
2354
  */
2338
2355
  declare function createStoreWithSchema<G extends GraphDef>(graph: G, backend: GraphBackend, options?: StoreOptions & SchemaManagerOptions): Promise<[Store<G>, SchemaValidationResult]>;
2339
2356
 
2340
- export { type StoreProjection as $, type AliasMap as A, type BatchResults as B, type CreateQueryBuilderOptions as C, type DynamicEdgeCollection as D, type EdgeAliasMap as E, type FieldAccessor as F, type GetOrCreateAction as G, type HookContext as H, type IfExistsMode as I, type PaginatedResult as J, type Predicate as K, PreparedQuery as L, type PropsAccessor as M, type Node as N, type OperationHookContext as O, type PaginateOptions as P, QueryBuilder as Q, type QueryHookContext as R, type QueryOptions as S, TraversalBuilder as T, type RecursiveTraversalOptions as U, type SelectContext as V, type SelectableEdge as W, type SelectableNode as X, Store as Y, type StoreHooks as Z, type StoreOptions as _, type AggregateResult as a, type StreamOptions as a0, type SubgraphOptions as a1, type SubgraphResult as a2, type SubsetEdge as a3, type SubsetNode as a4, type TransactionContext as a5, type TypedEdgeCollection as a6, UnionableQuery as a7, type UpdateEdgeInput as a8, type UpdateNodeInput as a9, createStore as aa, createStoreWithSchema as ab, defineSubgraphProject as ac, embedding as ad, exists as ae, fieldRef as af, getEmbeddingDimensions as ag, inSubquery as ah, isEmbeddingSchema as ai, isParameterRef as aj, notExists as ak, notInSubquery as al, param as am, type AnyEdge as b, type AnyNode as c, type BatchableQuery as d, type ConstraintNames as e, type CreateEdgeInput as f, type CreateNodeInput as g, type DynamicNodeCollection as h, type Edge as i, type EdgeAccessor as j, type EdgeCollection as k, type EdgeFindByEndpointsOptions as l, type EdgeGetOrCreateByEndpointsOptions as m, type EdgeGetOrCreateByEndpointsResult as n, type EmbeddingSchema as o, type EmbeddingValue as p, ExecutableAggregateQuery as q, ExecutableQuery as r, type GraphEdgeCollections as s, type GraphNodeCollections as t, type NodeAccessor as u, type NodeAlias as v, type NodeCollection as w, type NodeGetOrCreateByConstraintOptions as x, type NodeGetOrCreateByConstraintResult as y, type NodeRef as z };
2357
+ export { type StoreProjection as $, type AliasMap as A, type BatchResults as B, type CreateQueryBuilderOptions as C, type DynamicEdgeCollection as D, type EdgeAliasMap as E, type FieldAccessor as F, type GetOrCreateAction as G, type HookContext as H, type IfExistsMode as I, type PaginatedResult as J, type Predicate as K, PreparedQuery as L, type PropsAccessor as M, type Node as N, type OperationHookContext as O, type PaginateOptions as P, QueryBuilder as Q, type QueryHookContext as R, type QueryOptions as S, TraversalBuilder as T, type RecursiveTraversalOptions as U, type SelectContext as V, type SelectableEdge as W, type SelectableNode as X, Store as Y, type StoreHooks as Z, type StoreOptions as _, type AggregateResult as a, type StreamOptions as a0, type SubgraphEdgeResult as a1, type SubgraphNodeResult as a2, type SubgraphOptions as a3, type SubgraphResult as a4, type SubsetEdge as a5, type SubsetNode as a6, type TransactionContext as a7, type TypedEdgeCollection as a8, UnionableQuery as a9, type UpdateEdgeInput as aa, type UpdateNodeInput as ab, createStore as ac, createStoreWithSchema as ad, defineSubgraphProject as ae, embedding as af, exists as ag, fieldRef as ah, getEmbeddingDimensions as ai, inSubquery as aj, isEmbeddingSchema as ak, isParameterRef as al, notExists as am, notInSubquery as an, param as ao, type AnyEdge as b, type AnyNode as c, type BatchableQuery as d, type ConstraintNames as e, type CreateEdgeInput as f, type CreateNodeInput as g, type DynamicNodeCollection as h, type Edge as i, type EdgeAccessor as j, type EdgeCollection as k, type EdgeFindByEndpointsOptions as l, type EdgeGetOrCreateByEndpointsOptions as m, type EdgeGetOrCreateByEndpointsResult as n, type EmbeddingSchema as o, type EmbeddingValue as p, ExecutableAggregateQuery as q, ExecutableQuery as r, type GraphEdgeCollections as s, type GraphNodeCollections as t, type NodeAccessor as u, type NodeAlias as v, type NodeCollection as w, type NodeGetOrCreateByConstraintOptions as x, type NodeGetOrCreateByConstraintResult as y, type NodeRef as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nicia-ai/typegraph",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "description": "TypeScript-first embedded knowledge graph library with ontological reasoning",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -86,6 +86,16 @@
86
86
  "types": "./dist/backend/sqlite/local.d.cts",
87
87
  "default": "./dist/backend/sqlite/local.cjs"
88
88
  }
89
+ },
90
+ "./sqlite/libsql": {
91
+ "import": {
92
+ "types": "./dist/backend/sqlite/libsql.d.ts",
93
+ "default": "./dist/backend/sqlite/libsql.js"
94
+ },
95
+ "require": {
96
+ "types": "./dist/backend/sqlite/libsql.d.cts",
97
+ "default": "./dist/backend/sqlite/libsql.cjs"
98
+ }
89
99
  }
90
100
  },
91
101
  "files": [
@@ -122,11 +132,15 @@
122
132
  "node": ">=22"
123
133
  },
124
134
  "peerDependencies": {
135
+ "@libsql/client": ">=0.6.0",
125
136
  "better-sqlite3": ">=9.0.0 <13.0.0",
126
137
  "drizzle-orm": ">=0.35.0 <1.0.0",
127
138
  "zod": "^4.0.0"
128
139
  },
129
140
  "peerDependenciesMeta": {
141
+ "@libsql/client": {
142
+ "optional": true
143
+ },
130
144
  "better-sqlite3": {
131
145
  "optional": true
132
146
  }
@@ -135,6 +149,7 @@
135
149
  "nanoid": "^5.1.7"
136
150
  },
137
151
  "devDependencies": {
152
+ "@libsql/client": "^0.17.2",
138
153
  "@stryker-mutator/core": "^9.6.0",
139
154
  "@stryker-mutator/vitest-runner": "^9.6.0",
140
155
  "@types/better-sqlite3": "^7.6.13",