@nicia-ai/typegraph 0.26.0 → 0.28.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 (71) hide show
  1. package/dist/backend/postgres/index.cjs +99 -57
  2. package/dist/backend/postgres/index.cjs.map +1 -1
  3. package/dist/backend/postgres/index.d.cts +4 -4
  4. package/dist/backend/postgres/index.d.ts +4 -4
  5. package/dist/backend/postgres/index.js +47 -5
  6. package/dist/backend/postgres/index.js.map +1 -1
  7. package/dist/backend/sqlite/index.cjs +13 -13
  8. package/dist/backend/sqlite/index.d.cts +5 -5
  9. package/dist/backend/sqlite/index.d.ts +5 -5
  10. package/dist/backend/sqlite/index.js +3 -3
  11. package/dist/backend/sqlite/libsql.cjs +6 -6
  12. package/dist/backend/sqlite/libsql.d.cts +2 -2
  13. package/dist/backend/sqlite/libsql.d.ts +2 -2
  14. package/dist/backend/sqlite/libsql.js +3 -3
  15. package/dist/backend/sqlite/local.cjs +7 -7
  16. package/dist/backend/sqlite/local.d.cts +2 -2
  17. package/dist/backend/sqlite/local.d.ts +2 -2
  18. package/dist/backend/sqlite/local.js +3 -3
  19. package/dist/{chunk-TVUARC7S.cjs → chunk-2E4VTD2E.cjs} +50 -22
  20. package/dist/chunk-2E4VTD2E.cjs.map +1 -0
  21. package/dist/{chunk-RVT2N4RF.cjs → chunk-33K3ZYFG.cjs} +46 -46
  22. package/dist/{chunk-RVT2N4RF.cjs.map → chunk-33K3ZYFG.cjs.map} +1 -1
  23. package/dist/{chunk-RF5EUQWS.js → chunk-DFHLG75V.js} +50 -22
  24. package/dist/chunk-DFHLG75V.js.map +1 -0
  25. package/dist/{chunk-DN4RUDF3.cjs → chunk-LYRUNG6E.cjs} +2 -2
  26. package/dist/chunk-LYRUNG6E.cjs.map +1 -0
  27. package/dist/{chunk-ENXJLDRK.js → chunk-PCHTTG42.js} +2 -2
  28. package/dist/chunk-PCHTTG42.js.map +1 -0
  29. package/dist/{chunk-DDVA4QBA.js → chunk-UKG7XHZ3.js} +4 -4
  30. package/dist/{chunk-DDVA4QBA.js.map → chunk-UKG7XHZ3.js.map} +1 -1
  31. package/dist/{chunk-3W6AIFT2.js → chunk-X53YKGHR.js} +74 -8
  32. package/dist/chunk-X53YKGHR.js.map +1 -0
  33. package/dist/{chunk-4TJI44WP.cjs → chunk-ZGEMI7MJ.cjs} +75 -7
  34. package/dist/chunk-ZGEMI7MJ.cjs.map +1 -0
  35. package/dist/{ddl-9kw8UADK.d.ts → ddl-0Ooc2dpL.d.ts} +2 -2
  36. package/dist/{ddl-Cw82BPM4.d.cts → ddl-Dza3kDrI.d.cts} +2 -2
  37. package/dist/index.cjs +100 -66
  38. package/dist/index.cjs.map +1 -1
  39. package/dist/index.d.cts +7 -7
  40. package/dist/index.d.ts +7 -7
  41. package/dist/index.js +40 -7
  42. package/dist/index.js.map +1 -1
  43. package/dist/indexes/index.d.cts +4 -4
  44. package/dist/indexes/index.d.ts +4 -4
  45. package/dist/interchange/index.d.cts +3 -3
  46. package/dist/interchange/index.d.ts +3 -3
  47. package/dist/{manager-Aqzmztkb.d.cts → manager-c1MGaVVR.d.cts} +35 -11
  48. package/dist/{manager-C3LxzPcX.d.ts → manager-ehLTTNq0.d.ts} +35 -11
  49. package/dist/profiler/index.d.cts +5 -5
  50. package/dist/profiler/index.d.ts +5 -5
  51. package/dist/schema/index.cjs +28 -24
  52. package/dist/schema/index.d.cts +4 -4
  53. package/dist/schema/index.d.ts +4 -4
  54. package/dist/schema/index.js +2 -2
  55. package/dist/{sqlite-GKvcDPVn.d.ts → sqlite-BxZUPbyD.d.ts} +1 -1
  56. package/dist/{sqlite-BvSEbybu.d.cts → sqlite-mvpXjEeB.d.cts} +1 -1
  57. package/dist/{store-DbQLsSor.d.cts → store-D7YEMg2v.d.cts} +69 -3
  58. package/dist/{store-CiS_AGNH.d.ts → store-Ufc1Eoey.d.ts} +69 -3
  59. package/dist/{types-Cars4JZ1.d.ts → types-B-sJJ4GQ.d.ts} +1 -1
  60. package/dist/{types-DZPBXZOK.d.cts → types-CMQymcwk.d.cts} +11 -0
  61. package/dist/{types-Dzkr0Eqi.d.ts → types-CQ7xXJMP.d.ts} +11 -0
  62. package/dist/{types-CF7nDH3q.d.cts → types-CmUA9sal.d.cts} +1 -1
  63. package/dist/{where-BmtjfWuS.d.cts → where-5zf15aFZ.d.cts} +1 -1
  64. package/dist/{where-kk1Zz2En.d.ts → where-CtrLu1Zf.d.ts} +1 -1
  65. package/package.json +8 -8
  66. package/dist/chunk-3W6AIFT2.js.map +0 -1
  67. package/dist/chunk-4TJI44WP.cjs.map +0 -1
  68. package/dist/chunk-DN4RUDF3.cjs.map +0 -1
  69. package/dist/chunk-ENXJLDRK.js.map +0 -1
  70. package/dist/chunk-RF5EUQWS.js.map +0 -1
  71. package/dist/chunk-TVUARC7S.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { p as SqlDialect, ah as SqlSchema, F as FulltextStrategy, ax as ValueType, ay as PredicateExpression, az as VectorMetricType, a0 as FulltextQueryMode, Q as QueryAst, J as JsonPointer, L as FieldRef, ac as ParameterRef, G as GraphBackend, al as TransactionBackend, a5 as JsonPointerInput, am as TraversalExpansion, aA as Traversal, aB as NodePredicate, aC as ProjectedField, ab as OrderSpec, aD as GroupBySpec, a3 as HybridFusionOptions, aE as RecursiveCyclePolicy, aF as TraversalDirection$1, aG as EdgeRow, aH as NodeRow, U as AdoptedTransaction, K as AggregateExpr, aI as SelectiveField, aJ as ComposableQuery, aK as SetOperationType, aL as SetOperation, ag as SortDirection, m as JsonSchema, aM as VectorMetric } from './types-Dzkr0Eqi.js';
3
- import { K as KindRegistry, G as GraphDef, t as EdgeKinds, w as NodeKinds, s as AllNodeTypes, c as SchemaManagerOptions, d as SchemaValidationResult } from './manager-C3LxzPcX.js';
2
+ import { p as SqlDialect, ah as SqlSchema, F as FulltextStrategy, ax as ValueType, ay as PredicateExpression, az as VectorMetricType, a0 as FulltextQueryMode, Q as QueryAst, J as JsonPointer, L as FieldRef, ac as ParameterRef, G as GraphBackend, al as TransactionBackend, a5 as JsonPointerInput, am as TraversalExpansion, aA as Traversal, aB as NodePredicate, aC as ProjectedField, ab as OrderSpec, aD as GroupBySpec, a3 as HybridFusionOptions, aE as RecursiveCyclePolicy, aF as TraversalDirection$1, aG as EdgeRow, aH as NodeRow, U as AdoptedTransaction, K as AggregateExpr, aI as SelectiveField, aJ as ComposableQuery, aK as SetOperationType, aL as SetOperation, ag as SortDirection, m as JsonSchema, aM as VectorMetric } from './types-CQ7xXJMP.js';
3
+ import { K as KindRegistry, G as GraphDef, u as EdgeKinds, x as NodeKinds, t as AllNodeTypes, c as SchemaManagerOptions, d as SchemaValidationResult } from './manager-ehLTTNq0.js';
4
4
  import { A as AnyEdgeType, N as NodeType, T as TemporalMode, e as EdgeType, E as EdgeRegistration, h as EdgeId, m as NodeId, b as NodeRegistration, K as KindEntity, f as Cardinality, k as EndpointExistence, d as KindAnnotations, o as UniquenessScope, g as Collation, G as GraphExtension } from './extension-types-B78CZfA5.js';
5
5
  import { SQL } from 'drizzle-orm';
6
6
  import { b as MaterializeIndexesOptions, M as MaterializeIndexesResult } from './materialize-indexes-DFavFQah.js';
@@ -2920,6 +2920,14 @@ type HybridVectorOptions = Readonly<{
2920
2920
  k?: number;
2921
2921
  /** Minimum similarity to include (units depend on metric). */
2922
2922
  minScore?: number;
2923
+ /**
2924
+ * HNSW search frontier for this query (pgvector `hnsw.ef_search`).
2925
+ * The vector side over-fetches `k` (default `4 * limit`) candidates;
2926
+ * `efSearch` must be `>= k` for the index to surface that many
2927
+ * neighbors, and ~2–4× `k` is the high-recall target. Postgres HNSW
2928
+ * only — no-op elsewhere. See `VectorSearchOptions.efSearch`.
2929
+ */
2930
+ efSearch?: number;
2923
2931
  }>;
2924
2932
  /**
2925
2933
  * Options for the standalone `store.search.vector` path. Mirrors the
@@ -2937,6 +2945,22 @@ type VectorSearchOptions = Readonly<{
2937
2945
  metric?: VectorMetric;
2938
2946
  /** Minimum similarity to include (units depend on metric). */
2939
2947
  minScore?: number;
2948
+ /**
2949
+ * HNSW search frontier for this query (pgvector `hnsw.ef_search`).
2950
+ * Sizes the dynamic candidate list the index scan maintains — higher
2951
+ * trades latency for recall. The floor for the index to surface
2952
+ * `limit` neighbors is `efSearch >= limit`; ~2–4× is the high-recall
2953
+ * target on million-scale corpora. Lets a latency-sensitive
2954
+ * interactive path and a recall-sensitive batch path share one
2955
+ * connection pool, tuning per query rather than per session.
2956
+ *
2957
+ * Postgres HNSW only: applied transaction-locally via `SET LOCAL`.
2958
+ * sqlite-vec has no equivalent frontier knob and ignores it; Postgres
2959
+ * backends without transactions (`drizzle-orm/neon-http`) ignore it
2960
+ * with a one-time warning. Must be a positive integer; pgvector caps
2961
+ * it at 1000.
2962
+ */
2963
+ efSearch?: number;
2940
2964
  }>;
2941
2965
  type HybridFulltextOptions = Readonly<{
2942
2966
  query: string;
@@ -3766,5 +3790,47 @@ declare function createStore<G extends GraphDef>(graph: G, backend: GraphBackend
3766
3790
  * ```
3767
3791
  */
3768
3792
  declare function createStoreWithSchema<G extends GraphDef>(graph: G, backend: GraphBackend, options?: StoreOptions & SchemaManagerOptions): Promise<[Store<G>, SchemaValidationResult]>;
3793
+ /**
3794
+ * Creates a Store after **verifying** that the database is at the same
3795
+ * schema version as the code graph — without running any DDL, bootstrap,
3796
+ * or marker writes. The runtime counterpart of `createStoreWithSchema`
3797
+ * for the deployment model in "Database roles & least privilege":
3798
+ *
3799
+ * - **`createStoreWithSchema(graph, backend)`** runs DDL (bootstrap,
3800
+ * safe auto-migrations, durable contribution materialization). Run it
3801
+ * once at startup under a privileged role that holds `CREATE` / DDL.
3802
+ * - **`createVerifiedStore(graph, backend)`** is the zero-DDL runtime
3803
+ * attach with a verification gate. Throws `MigrationError` when the
3804
+ * persisted schema is behind the code graph (any pending change, safe
3805
+ * or breaking), `ConfigurationError` when no schema has been
3806
+ * initialized, or `StoreNotInitializedError` when the schema is
3807
+ * current but the runtime-contribution markers are missing/stale.
3808
+ * The runtime can use a least-privilege, DML-only database role.
3809
+ * - **`createStore(graph, backend)`** is the same zero-DDL attach
3810
+ * *without* the verification gate — fastest, but schema drift goes
3811
+ * undetected until a hot-path operation trips.
3812
+ *
3813
+ * Folds any persisted graph-extension document into the supplied graph
3814
+ * before building the Store, just like `createStoreWithSchema`.
3815
+ *
3816
+ * @param graph - The graph definition
3817
+ * @param backend - The database backend
3818
+ * @param options - Optional store configuration
3819
+ * @returns A tuple of [store, validationResult] — `result.status` is
3820
+ * always `"unchanged"` on success
3821
+ *
3822
+ * @example
3823
+ * ```typescript
3824
+ * // Runtime — least-privilege, DML-only role. Zero DDL.
3825
+ * const [store, result] = await createVerifiedStore(graph, backend);
3826
+ * // result.status === "unchanged" — the privileged migrator is current.
3827
+ * ```
3828
+ *
3829
+ * @throws ConfigurationError if no schema has been initialized.
3830
+ * @throws MigrationError if the persisted schema is behind the code graph.
3831
+ * @throws StoreNotInitializedError if runtime-contribution markers are
3832
+ * missing/stale/failed for this graph on this connection.
3833
+ */
3834
+ declare function createVerifiedStore<G extends GraphDef>(graph: G, backend: GraphBackend, options?: StoreOptions): Promise<[Store<G>, SchemaValidationResult]>;
3769
3835
 
3770
- export { type MaterializeRemovalsOptions as $, type AliasMap as A, type BaseTraversalOptions as B, type CreateQueryBuilderOptions as C, DEFAULT_SEARCHABLE_LANGUAGE as D, type EdgeAliasMap as E, type EmbeddingSchema as F, type EmbeddingValue as G, ExecutableAggregateQuery as H, ExecutableQuery as I, type FieldAccessor as J, type FulltextSearchHit as K, type FulltextSearchOptions as L, type GetOrCreateAction as M, type GraphAlgorithms as N, type GraphEdgeCollections as O, type GraphNodeCollections as P, QueryBuilder as Q, type HookContext as R, Store as S, TraversalBuilder as T, type HybridFulltextOptions as U, type HybridSearchHit as V, type HybridSearchOptions as W, type HybridVectorOptions as X, type IfExistsMode as Y, type KindIntrospection as Z, type MaterializeRemovalsEntry as _, type AggregateResult as a, getSearchableMetadata as a$, type MaterializeRemovalsResult as a0, type NeighborsOptions as a1, type Node as a2, type NodeAccessor as a3, type NodeAlias as a4, type NodeCollection as a5, type NodeGetOrCreateByConstraintOptions as a6, type NodeGetOrCreateByConstraintResult as a7, type NodeIdentifier as a8, type NodeRef as a9, type StoreProjection as aA, type StoreRef as aB, StoreSearch as aC, type StreamOptions as aD, type SubgraphEdgeResult as aE, type SubgraphNodeResult as aF, type SubgraphOptions as aG, type SubgraphResult as aH, type SubsetEdge as aI, type SubsetNode as aJ, type TemporalAlgorithmOptions as aK, type TransactionContext as aL, type TraversalDirection as aM, type TypedEdgeCollection as aN, UnionableQuery as aO, type UniqueIntrospection as aP, type UpdateEdgeInput as aQ, type UpdateNodeInput as aR, type VectorSearchHit as aS, type VectorSearchOptions as aT, createStore as aU, createStoreWithSchema as aV, defineSubgraphProject as aW, embedding as aX, exists as aY, fieldRef as aZ, getEmbeddingDimensions as a_, type OntologyIntrospection as aa, type OperationHookContext as ab, type PaginateOptions as ac, type PaginatedResult as ad, type PathNode as ae, type Predicate as af, PreparedQuery as ag, type PropsAccessor as ah, type QueryHookContext as ai, type QueryOptions as aj, type ReachableNode as ak, type ReachableOptions as al, type RebuildFulltextOptions as am, type RebuildFulltextResult as an, type RecursiveTraversalOptions as ao, type SchemaIntrospection as ap, type SearchableMetadata as aq, type SearchableOptions as ar, type SearchableSchema as as, type SelectContext as at, type SelectableEdge as au, type SelectableNode as av, type ShortestPathOptions as aw, type ShortestPathResult as ax, type StoreHooks as ay, type StoreOptions as az, type AlgorithmCyclePolicy as b, inSubquery as b0, isEmbeddingSchema as b1, isParameterRef as b2, isSearchableSchema as b3, notExists as b4, notInSubquery as b5, param as b6, searchable as b7, type AnyEdge as c, type AnyNode as d, type BatchResults as e, type BatchableQuery as f, type ConstraintNames as g, type CreateEdgeInput as h, type CreateNodeInput as i, type DegreeOptions as j, type DynamicEdgeAccessor as k, type DynamicEdgeCollection as l, type DynamicEdgeType as m, type DynamicFieldBuilder as n, type DynamicNodeAccessor as o, type DynamicNodeCollection as p, type DynamicNodeType as q, type DynamicSelectableEdge as r, type DynamicSelectableNode as s, type Edge as t, type EdgeAccessor as u, type EdgeCollection as v, type EdgeFindByEndpointsOptions as w, type EdgeGetOrCreateByEndpointsOptions as x, type EdgeGetOrCreateByEndpointsResult as y, type EdgeIntrospection as z };
3836
+ export { type MaterializeRemovalsOptions as $, type AliasMap as A, type BaseTraversalOptions as B, type CreateQueryBuilderOptions as C, DEFAULT_SEARCHABLE_LANGUAGE as D, type EdgeAliasMap as E, type EmbeddingSchema as F, type EmbeddingValue as G, ExecutableAggregateQuery as H, ExecutableQuery as I, type FieldAccessor as J, type FulltextSearchHit as K, type FulltextSearchOptions as L, type GetOrCreateAction as M, type GraphAlgorithms as N, type GraphEdgeCollections as O, type GraphNodeCollections as P, QueryBuilder as Q, type HookContext as R, Store as S, TraversalBuilder as T, type HybridFulltextOptions as U, type HybridSearchHit as V, type HybridSearchOptions as W, type HybridVectorOptions as X, type IfExistsMode as Y, type KindIntrospection as Z, type MaterializeRemovalsEntry as _, type AggregateResult as a, getEmbeddingDimensions as a$, type MaterializeRemovalsResult as a0, type NeighborsOptions as a1, type Node as a2, type NodeAccessor as a3, type NodeAlias as a4, type NodeCollection as a5, type NodeGetOrCreateByConstraintOptions as a6, type NodeGetOrCreateByConstraintResult as a7, type NodeIdentifier as a8, type NodeRef as a9, type StoreProjection as aA, type StoreRef as aB, StoreSearch as aC, type StreamOptions as aD, type SubgraphEdgeResult as aE, type SubgraphNodeResult as aF, type SubgraphOptions as aG, type SubgraphResult as aH, type SubsetEdge as aI, type SubsetNode as aJ, type TemporalAlgorithmOptions as aK, type TransactionContext as aL, type TraversalDirection as aM, type TypedEdgeCollection as aN, UnionableQuery as aO, type UniqueIntrospection as aP, type UpdateEdgeInput as aQ, type UpdateNodeInput as aR, type VectorSearchHit as aS, type VectorSearchOptions as aT, createStore as aU, createStoreWithSchema as aV, createVerifiedStore as aW, defineSubgraphProject as aX, embedding as aY, exists as aZ, fieldRef as a_, type OntologyIntrospection as aa, type OperationHookContext as ab, type PaginateOptions as ac, type PaginatedResult as ad, type PathNode as ae, type Predicate as af, PreparedQuery as ag, type PropsAccessor as ah, type QueryHookContext as ai, type QueryOptions as aj, type ReachableNode as ak, type ReachableOptions as al, type RebuildFulltextOptions as am, type RebuildFulltextResult as an, type RecursiveTraversalOptions as ao, type SchemaIntrospection as ap, type SearchableMetadata as aq, type SearchableOptions as ar, type SearchableSchema as as, type SelectContext as at, type SelectableEdge as au, type SelectableNode as av, type ShortestPathOptions as aw, type ShortestPathResult as ax, type StoreHooks as ay, type StoreOptions as az, type AlgorithmCyclePolicy as b, getSearchableMetadata as b0, inSubquery as b1, isEmbeddingSchema as b2, isParameterRef as b3, isSearchableSchema as b4, notExists as b5, notInSubquery as b6, param as b7, searchable as b8, type AnyEdge as c, type AnyNode as d, type BatchResults as e, type BatchableQuery as f, type ConstraintNames as g, type CreateEdgeInput as h, type CreateNodeInput as i, type DegreeOptions as j, type DynamicEdgeAccessor as k, type DynamicEdgeCollection as l, type DynamicEdgeType as m, type DynamicFieldBuilder as n, type DynamicNodeAccessor as o, type DynamicNodeCollection as p, type DynamicNodeType as q, type DynamicSelectableEdge as r, type DynamicSelectableNode as s, type Edge as t, type EdgeAccessor as u, type EdgeCollection as v, type EdgeFindByEndpointsOptions as w, type EdgeGetOrCreateByEndpointsOptions as x, type EdgeGetOrCreateByEndpointsResult as y, type EdgeIntrospection as z };
@@ -1,5 +1,5 @@
1
1
  import { K as KindEntity } from './extension-types-B78CZfA5.js';
2
- import { J as JsonPointer } from './types-Dzkr0Eqi.js';
2
+ import { J as JsonPointer } from './types-CQ7xXJMP.js';
3
3
 
4
4
  /**
5
5
  * QueryProfiler types.
@@ -814,6 +814,17 @@ type VectorSearchParams = Readonly<{
814
814
  metric: VectorMetric;
815
815
  limit: number;
816
816
  minScore?: number;
817
+ /**
818
+ * HNSW search frontier for this query (pgvector `hnsw.ef_search`).
819
+ * Sizes the dynamic candidate list the index scan maintains: higher
820
+ * trades latency for recall. The floor for the over-fetch to fill its
821
+ * candidate set is `efSearch >= limit`; ~2–4× is the high-recall
822
+ * target. Applied transaction-locally (`SET LOCAL`) on the Postgres
823
+ * HNSW path only. No-op on backends without an HNSW frontier knob
824
+ * (sqlite-vec) and ignored — with a one-time warning — on Postgres
825
+ * backends without transactions (e.g. `drizzle-orm/neon-http`).
826
+ */
827
+ efSearch?: number;
817
828
  }>;
818
829
  /**
819
830
  * Result from a vector similarity search.
@@ -814,6 +814,17 @@ type VectorSearchParams = Readonly<{
814
814
  metric: VectorMetric;
815
815
  limit: number;
816
816
  minScore?: number;
817
+ /**
818
+ * HNSW search frontier for this query (pgvector `hnsw.ef_search`).
819
+ * Sizes the dynamic candidate list the index scan maintains: higher
820
+ * trades latency for recall. The floor for the over-fetch to fill its
821
+ * candidate set is `efSearch >= limit`; ~2–4× is the high-recall
822
+ * target. Applied transaction-locally (`SET LOCAL`) on the Postgres
823
+ * HNSW path only. No-op on backends without an HNSW frontier knob
824
+ * (sqlite-vec) and ignored — with a one-time warning — on Postgres
825
+ * backends without transactions (e.g. `drizzle-orm/neon-http`).
826
+ */
827
+ efSearch?: number;
817
828
  }>;
818
829
  /**
819
830
  * Result from a vector similarity search.
@@ -1,5 +1,5 @@
1
1
  import { K as KindEntity } from './extension-types-B78CZfA5.cjs';
2
- import { J as JsonPointer } from './types-DZPBXZOK.cjs';
2
+ import { J as JsonPointer } from './types-CMQymcwk.cjs';
3
3
 
4
4
  /**
5
5
  * QueryProfiler types.
@@ -1,5 +1,5 @@
1
1
  import { A as AnyEdgeType, N as NodeType } from './extension-types-B78CZfA5.cjs';
2
- import { E as EdgeIndexConfig, c as EdgeIndexDeclaration, N as NodeIndexConfig, d as NodeIndexDeclaration, e as IndexWhereExpression } from './types-DZPBXZOK.cjs';
2
+ import { E as EdgeIndexConfig, c as EdgeIndexDeclaration, N as NodeIndexConfig, d as NodeIndexDeclaration, e as IndexWhereExpression } from './types-CMQymcwk.cjs';
3
3
 
4
4
  declare function defineNodeIndex<N extends NodeType>(node: N, config: NodeIndexConfig<N>): NodeIndexDeclaration;
5
5
  declare function defineEdgeIndex<E extends AnyEdgeType>(edge: E, config: EdgeIndexConfig<E>): EdgeIndexDeclaration;
@@ -1,5 +1,5 @@
1
1
  import { A as AnyEdgeType, N as NodeType } from './extension-types-B78CZfA5.js';
2
- import { E as EdgeIndexConfig, c as EdgeIndexDeclaration, N as NodeIndexConfig, d as NodeIndexDeclaration, e as IndexWhereExpression } from './types-Dzkr0Eqi.js';
2
+ import { E as EdgeIndexConfig, c as EdgeIndexDeclaration, N as NodeIndexConfig, d as NodeIndexDeclaration, e as IndexWhereExpression } from './types-CQ7xXJMP.js';
3
3
 
4
4
  declare function defineNodeIndex<N extends NodeType>(node: N, config: NodeIndexConfig<N>): NodeIndexDeclaration;
5
5
  declare function defineEdgeIndex<E extends AnyEdgeType>(edge: E, config: EdgeIndexConfig<E>): EdgeIndexDeclaration;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nicia-ai/typegraph",
3
- "version": "0.26.0",
3
+ "version": "0.28.0",
4
4
  "description": "TypeScript-first embedded knowledge graph library with ontological reasoning",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -121,7 +121,7 @@
121
121
  "nanoid": "^5.1.11"
122
122
  },
123
123
  "devDependencies": {
124
- "@cloudflare/vitest-pool-workers": "^0.16.6",
124
+ "@cloudflare/vitest-pool-workers": "^0.16.7",
125
125
  "@libsql/client": "^0.17.3",
126
126
  "@neondatabase/serverless": "^1.1.0",
127
127
  "@stryker-mutator/core": "^9.6.1",
@@ -129,18 +129,18 @@
129
129
  "@types/better-sqlite3": "^7.6.13",
130
130
  "@types/node": "^24.12.0",
131
131
  "@types/pg": "^8.20.0",
132
- "@vitest/coverage-v8": "^4.1.5",
133
- "better-sqlite3": "^12.9.0",
132
+ "@vitest/coverage-v8": "^4.1.7",
133
+ "better-sqlite3": "^12.10.0",
134
134
  "drizzle-orm": "^0.45.2",
135
- "eslint": "^10.3.0",
136
- "fast-check": "^4.7.0",
137
- "pg": "^8.20.0",
135
+ "eslint": "^10.4.0",
136
+ "fast-check": "^4.8.0",
137
+ "pg": "^8.21.0",
138
138
  "postgres": "^3.4.9",
139
139
  "sqlite-vec": "^0.1.9",
140
140
  "tsd": "^0.33.0",
141
141
  "tsup": "^8.5.1",
142
142
  "typescript": "^5.9.3",
143
- "vitest": "^4.1.5",
143
+ "vitest": "^4.1.7",
144
144
  "zod": "^4.4.3",
145
145
  "@typegraph/eslint-config": "0.1.0"
146
146
  },