@nicia-ai/typegraph 0.51.0 → 0.51.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.
Files changed (33) hide show
  1. package/dist/backend/postgres/pglite-store.cjs +1 -1
  2. package/dist/backend/postgres/pglite-store.js +1 -1
  3. package/dist/backend/sqlite/local-store.cjs +1 -1
  4. package/dist/backend/sqlite/local-store.js +1 -1
  5. package/dist/{chunk-WRBV2FNH.cjs → chunk-5FVZSE3B.cjs} +48 -48
  6. package/dist/{chunk-WRBV2FNH.cjs.map → chunk-5FVZSE3B.cjs.map} +1 -1
  7. package/dist/{chunk-JHRUZ73O.cjs → chunk-AOGOC6JF.cjs} +4 -4
  8. package/dist/chunk-AOGOC6JF.cjs.map +1 -0
  9. package/dist/{chunk-YT2IVFAI.js → chunk-EVYW3532.js} +4 -4
  10. package/dist/chunk-EVYW3532.js.map +1 -0
  11. package/dist/{chunk-RCBG6YMT.js → chunk-K6OZIHKI.js} +3 -3
  12. package/dist/{chunk-RCBG6YMT.js.map → chunk-K6OZIHKI.js.map} +1 -1
  13. package/dist/{chunk-QLLZM5I3.cjs → chunk-TUWSVL6I.cjs} +4 -4
  14. package/dist/{chunk-QLLZM5I3.cjs.map → chunk-TUWSVL6I.cjs.map} +1 -1
  15. package/dist/{chunk-CAI6SMP6.js → chunk-WS5MT2UJ.js} +3 -3
  16. package/dist/{chunk-CAI6SMP6.js.map → chunk-WS5MT2UJ.js.map} +1 -1
  17. package/dist/graph-merge/index.cjs +9 -9
  18. package/dist/graph-merge/index.js +2 -2
  19. package/dist/index.cjs +57 -57
  20. package/dist/index.js +3 -3
  21. package/dist/{local-store-impl-OXTOVU2J.js → local-store-impl-JC7OBRAW.js} +4 -4
  22. package/dist/{local-store-impl-OXTOVU2J.js.map → local-store-impl-JC7OBRAW.js.map} +1 -1
  23. package/dist/{local-store-impl-6DDTFM32.cjs → local-store-impl-UOS2LUIG.cjs} +5 -5
  24. package/dist/{local-store-impl-6DDTFM32.cjs.map → local-store-impl-UOS2LUIG.cjs.map} +1 -1
  25. package/dist/{pglite-store-impl-GJG3Y7RP.cjs → pglite-store-impl-J5J5AA52.cjs} +5 -5
  26. package/dist/{pglite-store-impl-GJG3Y7RP.cjs.map → pglite-store-impl-J5J5AA52.cjs.map} +1 -1
  27. package/dist/{pglite-store-impl-6EMZGL7K.js → pglite-store-impl-LDRH2DUH.js} +4 -4
  28. package/dist/{pglite-store-impl-6EMZGL7K.js.map → pglite-store-impl-LDRH2DUH.js.map} +1 -1
  29. package/dist/schema/index.cjs +24 -24
  30. package/dist/schema/index.js +2 -2
  31. package/package.json +1 -1
  32. package/dist/chunk-JHRUZ73O.cjs.map +0 -1
  33. package/dist/chunk-YT2IVFAI.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkJHRUZ73O_cjs = require('./chunk-JHRUZ73O.cjs');
3
+ var chunkAOGOC6JF_cjs = require('./chunk-AOGOC6JF.cjs');
4
4
  var chunkN66HCGCY_cjs = require('./chunk-N66HCGCY.cjs');
5
5
 
6
6
  // src/schema/deserializer.ts
@@ -33,7 +33,7 @@ function deserializeSchema(schema) {
33
33
  function buildRegistryFromRelations(schema) {
34
34
  const nodeKinds = /* @__PURE__ */ new Map();
35
35
  const edgeKinds = /* @__PURE__ */ new Map();
36
- return chunkJHRUZ73O_cjs.buildValidatedKindRegistry({
36
+ return chunkAOGOC6JF_cjs.buildValidatedKindRegistry({
37
37
  nodeKinds,
38
38
  edgeKinds,
39
39
  ontology: schema.ontology.relations.map(
@@ -56,5 +56,5 @@ function buildEdgeEndpointKinds(edges) {
56
56
  }
57
57
 
58
58
  exports.deserializeSchema = deserializeSchema;
59
- //# sourceMappingURL=chunk-QLLZM5I3.cjs.map
60
- //# sourceMappingURL=chunk-QLLZM5I3.cjs.map
59
+ //# sourceMappingURL=chunk-TUWSVL6I.cjs.map
60
+ //# sourceMappingURL=chunk-TUWSVL6I.cjs.map
@@ -1 +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,QAAA;AAAA,IAC1B,WAAA,EAAa,MAAM,MAAA,CAAO,QAAA;AAAA,IAC1B,QAAQ,MAAM,MAAA;AAAA,IAEd,aAAA,EAAe,MAAM,0BAAA,CAA2B,MAAM;AAAA,GACxD;AACF;AAYA,SAAS,2BAA2B,MAAA,EAAwC;AAE1E,EAAA,MAAM,SAAA,uBAAgB,GAAA,EAAsB;AAC5C,EAAA,MAAM,SAAA,uBAAgB,GAAA,EAAyB;AAC/C,EAAA,OAAOC,4CAAA,CAA2B;AAAA,IAChC,SAAA;AAAA,IACA,SAAA;AAAA,IACA,QAAA,EAAU,MAAA,CAAO,QAAA,CAAS,SAAA,CAAU,GAAA;AAAA,MAClC,CAAC,QAAA,MAAqC;AAAA,QACpC,UAAU,QAAA,CAAS,QAAA;AAAA,QACnB,MAAM,QAAA,CAAS,IAAA;AAAA,QACf,IAAI,QAAA,CAAS;AAAA,OACf;AAAA,KACF;AAAA,IACA,aAAA,EAAe,sBAAA,CAAuB,MAAA,CAAO,KAAK,CAAA;AAAA,IAClD,GAAI,OAAO,QAAA,KAAa,MAAA,GAAY,EAAC,GAAI,EAAE,QAAA,EAAU,MAAA,CAAO,QAAA;AAAS,GACtE,CAAA;AACH;AASA,SAAS,uBACP,KAAA,EACwC;AACxC,EAAA,MAAM,MAAA,uBAAa,GAAA,EAA+B;AAClD,EAAA,KAAA,MAAW,CAAC,IAAA,EAAM,GAAG,KAAK,MAAA,CAAO,OAAA,CAAQ,KAAK,CAAA,EAAG;AAC/C,IAAA,MAAA,CAAO,GAAA,CAAI,MAAM,EAAE,IAAA,EAAM,IAAI,SAAA,EAAW,EAAA,EAAI,GAAA,CAAI,OAAA,EAAS,CAAA;AAAA,EAC3D;AACA,EAAA,OAAO,MAAA;AACT","file":"chunk-QLLZM5I3.cjs","sourcesContent":["/**\n * Schema deserializer for loading stored schemas.\n *\n * Reconstructs runtime objects from SerializedSchema.\n * Note: Zod schemas cannot be fully reconstructed from JSON Schema,\n * so this provides access to the serialized data for introspection.\n */\nimport { type AnyEdgeType, type NodeType } from \"../core/types\";\nimport { type NamedOntologyRelation } from \"../ontology/validation\";\nimport { buildValidatedKindRegistry } from \"../registry/build-validated\";\nimport type { KindRegistry } from \"../registry/kind-registry\";\nimport { type EdgeEndpointKinds } from \"../registry/validate-implies\";\nimport { hasOwnKey } from \"../utils/object\";\nimport {\n type SerializedClosures,\n type SerializedEdgeDef,\n type SerializedMetaEdge,\n type SerializedNodeDef,\n type SerializedOntologyRelation,\n type SerializedSchema,\n} from \"./types\";\n\n// ============================================================\n// Deserialized Schema\n// ============================================================\n\n/**\n * A deserialized schema provides read-only access to schema metadata.\n *\n * Note: Unlike the original GraphDef, this does not include Zod schemas\n * since those cannot be reconstructed from JSON Schema. Use this for\n * introspection and metadata access only.\n */\nexport type DeserializedSchema = Readonly<{\n graphId: string;\n version: number;\n generatedAt: string;\n\n /** Get node definition by name */\n getNode: (name: string) => SerializedNodeDef | undefined;\n\n /** Get all node names */\n getNodeNames: () => readonly string[];\n\n /** Get edge definition by name */\n getEdge: (name: string) => SerializedEdgeDef | undefined;\n\n /** Get all edge names */\n getEdgeNames: () => readonly string[];\n\n /** Get meta-edge definition by name */\n getMetaEdge: (name: string) => SerializedMetaEdge | undefined;\n\n /** Get all meta-edge names */\n getMetaEdgeNames: () => readonly string[];\n\n /** Get all ontology relations */\n getRelations: () => readonly SerializedOntologyRelation[];\n\n /** Get precomputed closures */\n getClosures: () => SerializedClosures;\n\n /** Get graph defaults */\n getDefaults: () => SerializedSchema[\"defaults\"];\n\n /** Get the durable TypeGraph Identity Profile configuration. */\n getIdentity: () => SerializedSchema[\"identity\"];\n\n /** Get the raw serialized schema */\n getRaw: () => SerializedSchema;\n\n /** Build a validated KindRegistry by recomputing closures from relations */\n buildRegistry: () => KindRegistry;\n}>;\n\n// ============================================================\n// Deserialization\n// ============================================================\n\n/**\n * Deserializes a SerializedSchema into a DeserializedSchema.\n *\n * @param schema - The serialized schema to deserialize\n * @returns A deserialized schema with accessor methods\n */\nexport function deserializeSchema(\n schema: SerializedSchema,\n): DeserializedSchema {\n const nodeNames = Object.keys(schema.nodes);\n const edgeNames = Object.keys(schema.edges);\n const metaEdgeNames = Object.keys(schema.ontology.metaEdges);\n\n return {\n graphId: schema.graphId,\n version: schema.version,\n generatedAt: schema.generatedAt,\n\n // Own-key reads, for the same reason {@link buildEdgeEndpointKinds} below\n // uses a `Map`: `schema` is parsed out of a stored JSON document and the\n // caller supplies the name, so a raw read hands back an `Object.prototype`\n // member typed as a definition for any name no kind is registered under.\n getNode: (name) =>\n hasOwnKey(schema.nodes, name) ? schema.nodes[name] : undefined,\n getNodeNames: () => nodeNames,\n\n getEdge: (name) =>\n hasOwnKey(schema.edges, name) ? schema.edges[name] : undefined,\n getEdgeNames: () => edgeNames,\n\n getMetaEdge: (name) =>\n hasOwnKey(schema.ontology.metaEdges, name) ?\n schema.ontology.metaEdges[name]\n : undefined,\n getMetaEdgeNames: () => metaEdgeNames,\n\n getRelations: () => schema.ontology.relations,\n getClosures: () => schema.ontology.closures,\n\n getDefaults: () => schema.defaults,\n getIdentity: () => schema.identity,\n getRaw: () => schema,\n\n buildRegistry: () => buildRegistryFromRelations(schema),\n };\n}\n\n// ============================================================\n// Registry Building\n// ============================================================\n\n/**\n * Builds a KindRegistry from serialized relations.\n *\n * Persisted closures are a legacy inspection artifact. Relations are validated\n * and closures are recomputed so old schemas gain current hardening rules.\n */\nfunction buildRegistryFromRelations(schema: SerializedSchema): KindRegistry {\n // Build empty node/edge kind maps (we don't have the actual Zod schemas)\n const nodeKinds = new Map<string, NodeType>();\n const edgeKinds = new Map<string, AnyEdgeType>();\n return buildValidatedKindRegistry({\n nodeKinds,\n edgeKinds,\n ontology: schema.ontology.relations.map(\n (relation): NamedOntologyRelation => ({\n metaEdge: relation.metaEdge,\n from: relation.from,\n to: relation.to,\n }),\n ),\n edgeEndpoints: buildEdgeEndpointKinds(schema.edges),\n ...(schema.identity === undefined ? {} : { identity: schema.identity }),\n });\n}\n\n/**\n * Maps each edge kind's serialized definition to its domain/range kind\n * names, for `validateImpliesEndpointCompatibility`. A `Map` (rather than\n * the plain `schema.edges` object) so a lookup for an edge kind literally\n * named \"toString\" or another `Object.prototype` member can't resolve to\n * an inherited member instead of `undefined`.\n */\nfunction buildEdgeEndpointKinds(\n edges: Record<string, SerializedEdgeDef>,\n): ReadonlyMap<string, EdgeEndpointKinds> {\n const result = new Map<string, EdgeEndpointKinds>();\n for (const [kind, def] of Object.entries(edges)) {\n result.set(kind, { from: def.fromKinds, to: def.toKinds });\n }\n return result;\n}\n"]}
1
+ {"version":3,"sources":["../src/schema/deserializer.ts"],"names":["hasOwnKey","buildValidatedKindRegistry"],"mappings":";;;;;;AAqFO,SAAS,kBACd,MAAA,EACoB;AACpB,EAAA,MAAM,SAAA,GAAY,MAAA,CAAO,IAAA,CAAK,MAAA,CAAO,KAAK,CAAA;AAC1C,EAAA,MAAM,SAAA,GAAY,MAAA,CAAO,IAAA,CAAK,MAAA,CAAO,KAAK,CAAA;AAC1C,EAAA,MAAM,aAAA,GAAgB,MAAA,CAAO,IAAA,CAAK,MAAA,CAAO,SAAS,SAAS,CAAA;AAE3D,EAAA,OAAO;AAAA,IACL,SAAS,MAAA,CAAO,OAAA;AAAA,IAChB,SAAS,MAAA,CAAO,OAAA;AAAA,IAChB,aAAa,MAAA,CAAO,WAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMpB,OAAA,EAAS,CAAC,IAAA,KACRA,2BAAA,CAAU,MAAA,CAAO,KAAA,EAAO,IAAI,CAAA,GAAI,MAAA,CAAO,KAAA,CAAM,IAAI,CAAA,GAAI,MAAA;AAAA,IACvD,cAAc,MAAM,SAAA;AAAA,IAEpB,OAAA,EAAS,CAAC,IAAA,KACRA,2BAAA,CAAU,MAAA,CAAO,KAAA,EAAO,IAAI,CAAA,GAAI,MAAA,CAAO,KAAA,CAAM,IAAI,CAAA,GAAI,MAAA;AAAA,IACvD,cAAc,MAAM,SAAA;AAAA,IAEpB,W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,MAAA,CAAO,OAAA,CAAQ,KAAK,CAAA,EAAG;AAC/C,IAAA,MAAA,CAAO,GAAA,CAAI,MAAM,EAAE,IAAA,EAAM,IAAI,SAAA,EAAW,EAAA,EAAI,GAAA,CAAI,OAAA,EAAS,CAAA;AAAA,EAC3D;AACA,EAAA,OAAO,MAAA;AACT","file":"chunk-TUWSVL6I.cjs","sourcesContent":["/**\n * Schema deserializer for loading stored schemas.\n *\n * Reconstructs runtime objects from SerializedSchema.\n * Note: Zod schemas cannot be fully reconstructed from JSON Schema,\n * so this provides access to the serialized data for introspection.\n */\nimport { type AnyEdgeType, type NodeType } from \"../core/types\";\nimport { type NamedOntologyRelation } from \"../ontology/validation\";\nimport { buildValidatedKindRegistry } from \"../registry/build-validated\";\nimport type { KindRegistry } from \"../registry/kind-registry\";\nimport { type EdgeEndpointKinds } from \"../registry/validate-implies\";\nimport { hasOwnKey } from \"../utils/object\";\nimport {\n type SerializedClosures,\n type SerializedEdgeDef,\n type SerializedMetaEdge,\n type SerializedNodeDef,\n type SerializedOntologyRelation,\n type SerializedSchema,\n} from \"./types\";\n\n// ============================================================\n// Deserialized Schema\n// ============================================================\n\n/**\n * A deserialized schema provides read-only access to schema metadata.\n *\n * Note: Unlike the original GraphDef, this does not include Zod schemas\n * since those cannot be reconstructed from JSON Schema. Use this for\n * introspection and metadata access only.\n */\nexport type DeserializedSchema = Readonly<{\n graphId: string;\n version: number;\n generatedAt: string;\n\n /** Get node definition by name */\n getNode: (name: string) => SerializedNodeDef | undefined;\n\n /** Get all node names */\n getNodeNames: () => readonly string[];\n\n /** Get edge definition by name */\n getEdge: (name: string) => SerializedEdgeDef | undefined;\n\n /** Get all edge names */\n getEdgeNames: () => readonly string[];\n\n /** Get meta-edge definition by name */\n getMetaEdge: (name: string) => SerializedMetaEdge | undefined;\n\n /** Get all meta-edge names */\n getMetaEdgeNames: () => readonly string[];\n\n /** Get all ontology relations */\n getRelations: () => readonly SerializedOntologyRelation[];\n\n /** Get precomputed closures */\n getClosures: () => SerializedClosures;\n\n /** Get graph defaults */\n getDefaults: () => SerializedSchema[\"defaults\"];\n\n /** Get the durable TypeGraph Identity Profile configuration. */\n getIdentity: () => SerializedSchema[\"identity\"];\n\n /** Get the raw serialized schema */\n getRaw: () => SerializedSchema;\n\n /** Build a validated KindRegistry by recomputing closures from relations */\n buildRegistry: () => KindRegistry;\n}>;\n\n// ============================================================\n// Deserialization\n// ============================================================\n\n/**\n * Deserializes a SerializedSchema into a DeserializedSchema.\n *\n * @param schema - The serialized schema to deserialize\n * @returns A deserialized schema with accessor methods\n */\nexport function deserializeSchema(\n schema: SerializedSchema,\n): DeserializedSchema {\n const nodeNames = Object.keys(schema.nodes);\n const edgeNames = Object.keys(schema.edges);\n const metaEdgeNames = Object.keys(schema.ontology.metaEdges);\n\n return {\n graphId: schema.graphId,\n version: schema.version,\n generatedAt: schema.generatedAt,\n\n // Own-key reads, for the same reason {@link buildEdgeEndpointKinds} below\n // uses a `Map`: `schema` is parsed out of a stored JSON document and the\n // caller supplies the name, so a raw read hands back an `Object.prototype`\n // member typed as a definition for any name no kind is registered under.\n getNode: (name) =>\n hasOwnKey(schema.nodes, name) ? schema.nodes[name] : undefined,\n getNodeNames: () => nodeNames,\n\n getEdge: (name) =>\n hasOwnKey(schema.edges, name) ? schema.edges[name] : undefined,\n getEdgeNames: () => edgeNames,\n\n getMetaEdge: (name) =>\n hasOwnKey(schema.ontology.metaEdges, name) ?\n schema.ontology.metaEdges[name]\n : undefined,\n getMetaEdgeNames: () => metaEdgeNames,\n\n getRelations: () => schema.ontology.relations,\n getClosures: () => schema.ontology.closures,\n\n getDefaults: () => schema.defaults,\n getIdentity: () => schema.identity,\n getRaw: () => schema,\n\n buildRegistry: () => buildRegistryFromRelations(schema),\n };\n}\n\n// ============================================================\n// Registry Building\n// ============================================================\n\n/**\n * Builds a KindRegistry from serialized relations.\n *\n * Persisted closures are a legacy inspection artifact. Relations are validated\n * and closures are recomputed so old schemas gain current hardening rules.\n */\nfunction buildRegistryFromRelations(schema: SerializedSchema): KindRegistry {\n // Build empty node/edge kind maps (we don't have the actual Zod schemas)\n const nodeKinds = new Map<string, NodeType>();\n const edgeKinds = new Map<string, AnyEdgeType>();\n return buildValidatedKindRegistry({\n nodeKinds,\n edgeKinds,\n ontology: schema.ontology.relations.map(\n (relation): NamedOntologyRelation => ({\n metaEdge: relation.metaEdge,\n from: relation.from,\n to: relation.to,\n }),\n ),\n edgeEndpoints: buildEdgeEndpointKinds(schema.edges),\n ...(schema.identity === undefined ? {} : { identity: schema.identity }),\n });\n}\n\n/**\n * Maps each edge kind's serialized definition to its domain/range kind\n * names, for `validateImpliesEndpointCompatibility`. A `Map` (rather than\n * the plain `schema.edges` object) so a lookup for an edge kind literally\n * named \"toString\" or another `Object.prototype` member can't resolve to\n * an inherited member instead of `undefined`.\n */\nfunction buildEdgeEndpointKinds(\n edges: Record<string, SerializedEdgeDef>,\n): ReadonlyMap<string, EdgeEndpointKinds> {\n const result = new Map<string, EdgeEndpointKinds>();\n for (const [kind, def] of Object.entries(edges)) {\n result.set(kind, { from: def.fromKinds, to: def.toKinds });\n }\n return result;\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { buildValidatedKindRegistry } from './chunk-YT2IVFAI.js';
1
+ import { buildValidatedKindRegistry } from './chunk-EVYW3532.js';
2
2
  import { hasOwnKey } from './chunk-DYATYRY4.js';
3
3
 
4
4
  // src/schema/deserializer.ts
@@ -54,5 +54,5 @@ function buildEdgeEndpointKinds(edges) {
54
54
  }
55
55
 
56
56
  export { deserializeSchema };
57
- //# sourceMappingURL=chunk-CAI6SMP6.js.map
58
- //# sourceMappingURL=chunk-CAI6SMP6.js.map
57
+ //# sourceMappingURL=chunk-WS5MT2UJ.js.map
58
+ //# sourceMappingURL=chunk-WS5MT2UJ.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/schema/deserializer.ts"],"names":[],"mappings":";;;;AAqFO,SAAS,kBACd,MAAA,EACoB;AACpB,EAAA,MAAM,S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AA,GACxD;AACF;AAYA,SAAS,2BAA2B,MAAA,EAAwC;AAE1E,EAAA,MAAM,SAAA,uBAAgB,GAAA,EAAsB;AAC5C,EAAA,MAAM,SAAA,uBAAgB,GAAA,EAAyB;AAC/C,EAAA,OAAO,0BAAA,CAA2B;AAAA,IAChC,SAAA;AAAA,IACA,SAAA;AAAA,IACA,QAAA,EAAU,MAAA,CAAO,QAAA,CAAS,SAAA,CAAU,GAAA;AAAA,MAClC,CAAC,QAAA,MAAqC;AAAA,QACpC,UAAU,QAAA,CAAS,QAAA;AAAA,QACnB,MAAM,QAAA,CAAS,IAAA;AAAA,QACf,IAAI,QAAA,CAAS;AAAA,OACf;AAAA,KACF;AAAA,IACA,aAAA,EAAe,sBAAA,CAAuB,MAAA,CAAO,KAAK,CAAA;AAAA,IAClD,GAAI,OAAO,QAAA,KAAa,MAAA,GAAY,EAAC,GAAI,EAAE,QAAA,EAAU,MAAA,CAAO,QAAA;AAAS,GACtE,CAAA;AACH;AASA,SAAS,uBACP,KAAA,EACwC;AACxC,EAAA,MAAM,MAAA,uBAAa,GAAA,EAA+B;AAClD,EAAA,KAAA,MAAW,CAAC,IAAA,EAAM,GAAG,KAAK,MAAA,CAAO,OAAA,CAAQ,KAAK,CAAA,EAAG;AAC/C,IAAA,MAAA,CAAO,GAAA,CAAI,MAAM,EAAE,IAAA,EAAM,IAAI,SAAA,EAAW,EAAA,EAAI,GAAA,CAAI,OAAA,EAAS,CAAA;AAAA,EAC3D;AACA,EAAA,OAAO,MAAA;AACT","file":"chunk-CAI6SMP6.js","sourcesContent":["/**\n * Schema deserializer for loading stored schemas.\n *\n * Reconstructs runtime objects from SerializedSchema.\n * Note: Zod schemas cannot be fully reconstructed from JSON Schema,\n * so this provides access to the serialized data for introspection.\n */\nimport { type AnyEdgeType, type NodeType } from \"../core/types\";\nimport { type NamedOntologyRelation } from \"../ontology/validation\";\nimport { buildValidatedKindRegistry } from \"../registry/build-validated\";\nimport type { KindRegistry } from \"../registry/kind-registry\";\nimport { type EdgeEndpointKinds } from \"../registry/validate-implies\";\nimport { hasOwnKey } from \"../utils/object\";\nimport {\n type SerializedClosures,\n type SerializedEdgeDef,\n type SerializedMetaEdge,\n type SerializedNodeDef,\n type SerializedOntologyRelation,\n type SerializedSchema,\n} from \"./types\";\n\n// ============================================================\n// Deserialized Schema\n// ============================================================\n\n/**\n * A deserialized schema provides read-only access to schema metadata.\n *\n * Note: Unlike the original GraphDef, this does not include Zod schemas\n * since those cannot be reconstructed from JSON Schema. Use this for\n * introspection and metadata access only.\n */\nexport type DeserializedSchema = Readonly<{\n graphId: string;\n version: number;\n generatedAt: string;\n\n /** Get node definition by name */\n getNode: (name: string) => SerializedNodeDef | undefined;\n\n /** Get all node names */\n getNodeNames: () => readonly string[];\n\n /** Get edge definition by name */\n getEdge: (name: string) => SerializedEdgeDef | undefined;\n\n /** Get all edge names */\n getEdgeNames: () => readonly string[];\n\n /** Get meta-edge definition by name */\n getMetaEdge: (name: string) => SerializedMetaEdge | undefined;\n\n /** Get all meta-edge names */\n getMetaEdgeNames: () => readonly string[];\n\n /** Get all ontology relations */\n getRelations: () => readonly SerializedOntologyRelation[];\n\n /** Get precomputed closures */\n getClosures: () => SerializedClosures;\n\n /** Get graph defaults */\n getDefaults: () => SerializedSchema[\"defaults\"];\n\n /** Get the durable TypeGraph Identity Profile configuration. */\n getIdentity: () => SerializedSchema[\"identity\"];\n\n /** Get the raw serialized schema */\n getRaw: () => SerializedSchema;\n\n /** Build a validated KindRegistry by recomputing closures from relations */\n buildRegistry: () => KindRegistry;\n}>;\n\n// ============================================================\n// Deserialization\n// ============================================================\n\n/**\n * Deserializes a SerializedSchema into a DeserializedSchema.\n *\n * @param schema - The serialized schema to deserialize\n * @returns A deserialized schema with accessor methods\n */\nexport function deserializeSchema(\n schema: SerializedSchema,\n): DeserializedSchema {\n const nodeNames = Object.keys(schema.nodes);\n const edgeNames = Object.keys(schema.edges);\n const metaEdgeNames = Object.keys(schema.ontology.metaEdges);\n\n return {\n graphId: schema.graphId,\n version: schema.version,\n generatedAt: schema.generatedAt,\n\n // Own-key reads, for the same reason {@link buildEdgeEndpointKinds} below\n // uses a `Map`: `schema` is parsed out of a stored JSON document and the\n // caller supplies the name, so a raw read hands back an `Object.prototype`\n // member typed as a definition for any name no kind is registered under.\n getNode: (name) =>\n hasOwnKey(schema.nodes, name) ? schema.nodes[name] : undefined,\n getNodeNames: () => nodeNames,\n\n getEdge: (name) =>\n hasOwnKey(schema.edges, name) ? schema.edges[name] : undefined,\n getEdgeNames: () => edgeNames,\n\n getMetaEdge: (name) =>\n hasOwnKey(schema.ontology.metaEdges, name) ?\n schema.ontology.metaEdges[name]\n : undefined,\n getMetaEdgeNames: () => metaEdgeNames,\n\n getRelations: () => schema.ontology.relations,\n getClosures: () => schema.ontology.closures,\n\n getDefaults: () => schema.defaults,\n getIdentity: () => schema.identity,\n getRaw: () => schema,\n\n buildRegistry: () => buildRegistryFromRelations(schema),\n };\n}\n\n// ============================================================\n// Registry Building\n// ============================================================\n\n/**\n * Builds a KindRegistry from serialized relations.\n *\n * Persisted closures are a legacy inspection artifact. Relations are validated\n * and closures are recomputed so old schemas gain current hardening rules.\n */\nfunction buildRegistryFromRelations(schema: SerializedSchema): KindRegistry {\n // Build empty node/edge kind maps (we don't have the actual Zod schemas)\n const nodeKinds = new Map<string, NodeType>();\n const edgeKinds = new Map<string, AnyEdgeType>();\n return buildValidatedKindRegistry({\n nodeKinds,\n edgeKinds,\n ontology: schema.ontology.relations.map(\n (relation): NamedOntologyRelation => ({\n metaEdge: relation.metaEdge,\n from: relation.from,\n to: relation.to,\n }),\n ),\n edgeEndpoints: buildEdgeEndpointKinds(schema.edges),\n ...(schema.identity === undefined ? {} : { identity: schema.identity }),\n });\n}\n\n/**\n * Maps each edge kind's serialized definition to its domain/range kind\n * names, for `validateImpliesEndpointCompatibility`. A `Map` (rather than\n * the plain `schema.edges` object) so a lookup for an edge kind literally\n * named \"toString\" or another `Object.prototype` member can't resolve to\n * an inherited member instead of `undefined`.\n */\nfunction buildEdgeEndpointKinds(\n edges: Record<string, SerializedEdgeDef>,\n): ReadonlyMap<string, EdgeEndpointKinds> {\n const result = new Map<string, EdgeEndpointKinds>();\n for (const [kind, def] of Object.entries(edges)) {\n result.set(kind, { from: def.fromKinds, to: def.toKinds });\n }\n return result;\n}\n"]}
1
+ {"version":3,"sources":["../src/schema/deserializer.ts"],"names":[],"mappings":";;;;AAqFO,SAAS,kBACd,MAAA,EACoB;AACpB,EAAA,MAAM,SAAA,GAAY,MAAA,CAAO,IAAA,CAAK,MAAA,CAAO,KAAK,CAAA;AAC1C,EAAA,MAAM,SAAA,GAAY,MAAA,CAAO,IAAA,CAAK,MAAA,CAAO,KAAK,CAAA;AAC1C,EAAA,MAAM,aAAA,GAAgB,MAAA,CAAO,IAAA,CAAK,MAAA,CAAO,SAAS,SAAS,CAAA;AAE3D,EAAA,OAAO;AAAA,IACL,SAAS,MAAA,CAAO,OAAA;AAAA,IAChB,SAAS,MAAA,CAAO,OAAA;AAAA,IAChB,aAAa,MAAA,CAAO,WAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMpB,OAAA,EAAS,CAAC,IAAA,KACR,SAAA,CAAU,MAAA,CAAO,KAAA,EAAO,IAAI,CAAA,GAAI,MAAA,CAAO,KAAA,CAAM,IAAI,CAAA,GAAI,MAAA;AAAA,IACvD,cAAc,MAAM,SAAA;AAAA,IAEpB,OAAA,EAAS,CAAC,IAAA,KACR,SAAA,CAAU,MAAA,CAAO,KAAA,EAAO,IAAI,CAAA,GAAI,MAAA,CAAO,KAAA,CAAM,IAAI,CAAA,GAAI,MAAA;AAAA,IACvD,cAAc,MAAM,SAAA;AAAA,IAEpB,WAAA,EAAa,CAAC,IAAA,KACZ,SAAA,CAAU,MAAA,CAAO,QAAA,CAAS,SAAA,EAAW,IAAI,CAAA,GACvC,MAAA,CAAO,QAAA,CAAS,SAAA,CAAU,IAAI,CAAA,GAC9B,MAAA;AAAA,IACJ,kBAAkB,M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ACA,EAAA,OAAO,MAAA;AACT","file":"chunk-WS5MT2UJ.js","sourcesContent":["/**\n * Schema deserializer for loading stored schemas.\n *\n * Reconstructs runtime objects from SerializedSchema.\n * Note: Zod schemas cannot be fully reconstructed from JSON Schema,\n * so this provides access to the serialized data for introspection.\n */\nimport { type AnyEdgeType, type NodeType } from \"../core/types\";\nimport { type NamedOntologyRelation } from \"../ontology/validation\";\nimport { buildValidatedKindRegistry } from \"../registry/build-validated\";\nimport type { KindRegistry } from \"../registry/kind-registry\";\nimport { type EdgeEndpointKinds } from \"../registry/validate-implies\";\nimport { hasOwnKey } from \"../utils/object\";\nimport {\n type SerializedClosures,\n type SerializedEdgeDef,\n type SerializedMetaEdge,\n type SerializedNodeDef,\n type SerializedOntologyRelation,\n type SerializedSchema,\n} from \"./types\";\n\n// ============================================================\n// Deserialized Schema\n// ============================================================\n\n/**\n * A deserialized schema provides read-only access to schema metadata.\n *\n * Note: Unlike the original GraphDef, this does not include Zod schemas\n * since those cannot be reconstructed from JSON Schema. Use this for\n * introspection and metadata access only.\n */\nexport type DeserializedSchema = Readonly<{\n graphId: string;\n version: number;\n generatedAt: string;\n\n /** Get node definition by name */\n getNode: (name: string) => SerializedNodeDef | undefined;\n\n /** Get all node names */\n getNodeNames: () => readonly string[];\n\n /** Get edge definition by name */\n getEdge: (name: string) => SerializedEdgeDef | undefined;\n\n /** Get all edge names */\n getEdgeNames: () => readonly string[];\n\n /** Get meta-edge definition by name */\n getMetaEdge: (name: string) => SerializedMetaEdge | undefined;\n\n /** Get all meta-edge names */\n getMetaEdgeNames: () => readonly string[];\n\n /** Get all ontology relations */\n getRelations: () => readonly SerializedOntologyRelation[];\n\n /** Get precomputed closures */\n getClosures: () => SerializedClosures;\n\n /** Get graph defaults */\n getDefaults: () => SerializedSchema[\"defaults\"];\n\n /** Get the durable TypeGraph Identity Profile configuration. */\n getIdentity: () => SerializedSchema[\"identity\"];\n\n /** Get the raw serialized schema */\n getRaw: () => SerializedSchema;\n\n /** Build a validated KindRegistry by recomputing closures from relations */\n buildRegistry: () => KindRegistry;\n}>;\n\n// ============================================================\n// Deserialization\n// ============================================================\n\n/**\n * Deserializes a SerializedSchema into a DeserializedSchema.\n *\n * @param schema - The serialized schema to deserialize\n * @returns A deserialized schema with accessor methods\n */\nexport function deserializeSchema(\n schema: SerializedSchema,\n): DeserializedSchema {\n const nodeNames = Object.keys(schema.nodes);\n const edgeNames = Object.keys(schema.edges);\n const metaEdgeNames = Object.keys(schema.ontology.metaEdges);\n\n return {\n graphId: schema.graphId,\n version: schema.version,\n generatedAt: schema.generatedAt,\n\n // Own-key reads, for the same reason {@link buildEdgeEndpointKinds} below\n // uses a `Map`: `schema` is parsed out of a stored JSON document and the\n // caller supplies the name, so a raw read hands back an `Object.prototype`\n // member typed as a definition for any name no kind is registered under.\n getNode: (name) =>\n hasOwnKey(schema.nodes, name) ? schema.nodes[name] : undefined,\n getNodeNames: () => nodeNames,\n\n getEdge: (name) =>\n hasOwnKey(schema.edges, name) ? schema.edges[name] : undefined,\n getEdgeNames: () => edgeNames,\n\n getMetaEdge: (name) =>\n hasOwnKey(schema.ontology.metaEdges, name) ?\n schema.ontology.metaEdges[name]\n : undefined,\n getMetaEdgeNames: () => metaEdgeNames,\n\n getRelations: () => schema.ontology.relations,\n getClosures: () => schema.ontology.closures,\n\n getDefaults: () => schema.defaults,\n getIdentity: () => schema.identity,\n getRaw: () => schema,\n\n buildRegistry: () => buildRegistryFromRelations(schema),\n };\n}\n\n// ============================================================\n// Registry Building\n// ============================================================\n\n/**\n * Builds a KindRegistry from serialized relations.\n *\n * Persisted closures are a legacy inspection artifact. Relations are validated\n * and closures are recomputed so old schemas gain current hardening rules.\n */\nfunction buildRegistryFromRelations(schema: SerializedSchema): KindRegistry {\n // Build empty node/edge kind maps (we don't have the actual Zod schemas)\n const nodeKinds = new Map<string, NodeType>();\n const edgeKinds = new Map<string, AnyEdgeType>();\n return buildValidatedKindRegistry({\n nodeKinds,\n edgeKinds,\n ontology: schema.ontology.relations.map(\n (relation): NamedOntologyRelation => ({\n metaEdge: relation.metaEdge,\n from: relation.from,\n to: relation.to,\n }),\n ),\n edgeEndpoints: buildEdgeEndpointKinds(schema.edges),\n ...(schema.identity === undefined ? {} : { identity: schema.identity }),\n });\n}\n\n/**\n * Maps each edge kind's serialized definition to its domain/range kind\n * names, for `validateImpliesEndpointCompatibility`. A `Map` (rather than\n * the plain `schema.edges` object) so a lookup for an edge kind literally\n * named \"toString\" or another `Object.prototype` member can't resolve to\n * an inherited member instead of `undefined`.\n */\nfunction buildEdgeEndpointKinds(\n edges: Record<string, SerializedEdgeDef>,\n): ReadonlyMap<string, EdgeEndpointKinds> {\n const result = new Map<string, EdgeEndpointKinds>();\n for (const [kind, def] of Object.entries(edges)) {\n result.set(kind, { from: def.fromKinds, to: def.toKinds });\n }\n return result;\n}\n"]}
@@ -1,12 +1,12 @@
1
1
  'use strict';
2
2
 
3
- var chunkWRBV2FNH_cjs = require('../chunk-WRBV2FNH.cjs');
3
+ var chunk5FVZSE3B_cjs = require('../chunk-5FVZSE3B.cjs');
4
4
  require('../chunk-36SX6QXP.cjs');
5
5
  var chunkKACEYDYV_cjs = require('../chunk-KACEYDYV.cjs');
6
6
  require('../chunk-2KCTP3U2.cjs');
7
7
  var chunk2CVDZCXH_cjs = require('../chunk-2CVDZCXH.cjs');
8
8
  require('../chunk-FMMW3KX7.cjs');
9
- var chunkJHRUZ73O_cjs = require('../chunk-JHRUZ73O.cjs');
9
+ var chunkAOGOC6JF_cjs = require('../chunk-AOGOC6JF.cjs');
10
10
  var chunkPS3TUWJM_cjs = require('../chunk-PS3TUWJM.cjs');
11
11
  var chunkL6EVYIID_cjs = require('../chunk-L6EVYIID.cjs');
12
12
  var chunkJQKMEKKW_cjs = require('../chunk-JQKMEKKW.cjs');
@@ -1775,7 +1775,7 @@ async function computeSchemaComponent(store) {
1775
1775
  chunk2CVDZCXH_cjs.storeBackend(store),
1776
1776
  store.graphId
1777
1777
  );
1778
- return chunkJHRUZ73O_cjs.computeSchemaHash(chunkJHRUZ73O_cjs.serializeSchema(store.graph, version));
1778
+ return chunkAOGOC6JF_cjs.computeSchemaHash(chunkAOGOC6JF_cjs.serializeSchema(store.graph, version));
1779
1779
  }
1780
1780
  function byDigestEntry(left, right) {
1781
1781
  const byKind = chunkRWUWTJQY_cjs.compareStrings(left.kind, right.kind);
@@ -1905,7 +1905,7 @@ function cloneWorkingCopyWithGraphStrategy(makeBackend, graphForClone) {
1905
1905
  create: async (baseStore) => {
1906
1906
  const backend = await makeBackend();
1907
1907
  try {
1908
- const [freshStore] = await chunkWRBV2FNH_cjs.createStoreWithSchema(
1908
+ const [freshStore] = await chunk5FVZSE3B_cjs.createStoreWithSchema(
1909
1909
  graphForClone(baseStore),
1910
1910
  backend,
1911
1911
  {
@@ -4902,7 +4902,7 @@ async function openProvenanceStore(...args) {
4902
4902
  throw provenanceGraphIdCollision(graph.id, targetGraphId, claim.reason);
4903
4903
  }
4904
4904
  }
4905
- const [store] = await chunkWRBV2FNH_cjs.createStoreWithSchema(graph, backend);
4905
+ const [store] = await chunk5FVZSE3B_cjs.createStoreWithSchema(graph, backend);
4906
4906
  return store;
4907
4907
  }
4908
4908
  async function claimSidecarOwnership(backend, graph, targetGraphId) {
@@ -4964,14 +4964,14 @@ async function inspectSidecarGraphId(port, graph, targetGraphId) {
4964
4964
  if (activeSchema === void 0) {
4965
4965
  return { state: "refuse", reason: "application-graph" };
4966
4966
  }
4967
- const ownedHash = await chunkJHRUZ73O_cjs.computeSchemaHash(
4968
- chunkJHRUZ73O_cjs.serializeSchema(graph, activeSchema.version)
4967
+ const ownedHash = await chunkAOGOC6JF_cjs.computeSchemaHash(
4968
+ chunkAOGOC6JF_cjs.serializeSchema(graph, activeSchema.version)
4969
4969
  );
4970
4970
  if (activeSchema.schema_hash === ownedHash) {
4971
4971
  return { state: "refuse", reason: "unowned-exact-schema-graph" };
4972
4972
  }
4973
- const legacyHash = await chunkJHRUZ73O_cjs.computeSchemaHash(
4974
- chunkJHRUZ73O_cjs.serializeSchema(buildProvenanceGraph(targetGraphId), activeSchema.version)
4973
+ const legacyHash = await chunkAOGOC6JF_cjs.computeSchemaHash(
4974
+ chunkAOGOC6JF_cjs.serializeSchema(buildProvenanceGraph(targetGraphId), activeSchema.version)
4975
4975
  );
4976
4976
  if (activeSchema.schema_hash !== legacyHash) {
4977
4977
  return { state: "refuse", reason: "application-graph" };
@@ -1,10 +1,10 @@
1
- import { createStoreWithSchema } from '../chunk-RCBG6YMT.js';
1
+ import { createStoreWithSchema } from '../chunk-K6OZIHKI.js';
2
2
  import '../chunk-VUQZNUHU.js';
3
3
  import { importGraphStream, exportGraphStream, importGraph, exportGraph, registerIngestionImportTarget } from '../chunk-RI7RJH4G.js';
4
4
  import '../chunk-TYEYRCXL.js';
5
5
  import { storeBackend, storeRuntime, transactionBackend } from '../chunk-4DKY6RIU.js';
6
6
  import '../chunk-NGQDGL5X.js';
7
- import { computeSchemaHash, serializeSchema } from '../chunk-YT2IVFAI.js';
7
+ import { computeSchemaHash, serializeSchema } from '../chunk-EVYW3532.js';
8
8
  import { defineNode } from '../chunk-LI4K2KEJ.js';
9
9
  import { normalizeIdentityPair, identityReferenceKey, identityValidityWindowsOverlap, identityAssertionSemanticKey } from '../chunk-WFSYYU4W.js';
10
10
  import { generateId, lockRecordedGraphWrite, readRevisionOrigin, readRecordedClock, forceRecordedGraphRevision, forceWriteTransactionRevision, advanceRevisionClock } from '../chunk-VAAC7L57.js';
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkWRBV2FNH_cjs = require('./chunk-WRBV2FNH.cjs');
3
+ var chunk5FVZSE3B_cjs = require('./chunk-5FVZSE3B.cjs');
4
4
  var chunk322TBTOQ_cjs = require('./chunk-322TBTOQ.cjs');
5
5
  var chunkD3GWARN7_cjs = require('./chunk-D3GWARN7.cjs');
6
6
  var chunkTIJUA4I6_cjs = require('./chunk-TIJUA4I6.cjs');
@@ -12,8 +12,8 @@ var chunkBZ5MVITP_cjs = require('./chunk-BZ5MVITP.cjs');
12
12
  require('./chunk-2KCTP3U2.cjs');
13
13
  var chunk2CVDZCXH_cjs = require('./chunk-2CVDZCXH.cjs');
14
14
  require('./chunk-FMMW3KX7.cjs');
15
- require('./chunk-QLLZM5I3.cjs');
16
- var chunkJHRUZ73O_cjs = require('./chunk-JHRUZ73O.cjs');
15
+ require('./chunk-TUWSVL6I.cjs');
16
+ var chunkAOGOC6JF_cjs = require('./chunk-AOGOC6JF.cjs');
17
17
  var chunkPS3TUWJM_cjs = require('./chunk-PS3TUWJM.cjs');
18
18
  require('./chunk-L6EVYIID.cjs');
19
19
  var chunkJQKMEKKW_cjs = require('./chunk-JQKMEKKW.cjs');
@@ -267,155 +267,155 @@ function decodeEmbeddingJson(row) {
267
267
 
268
268
  Object.defineProperty(exports, "ExecutableAggregateQuery", {
269
269
  enumerable: true,
270
- get: function () { return chunkWRBV2FNH_cjs.ExecutableAggregateQuery; }
270
+ get: function () { return chunk5FVZSE3B_cjs.ExecutableAggregateQuery; }
271
271
  });
272
272
  Object.defineProperty(exports, "ExecutableQuery", {
273
273
  enumerable: true,
274
- get: function () { return chunkWRBV2FNH_cjs.ExecutableQuery; }
274
+ get: function () { return chunk5FVZSE3B_cjs.ExecutableQuery; }
275
275
  });
276
276
  Object.defineProperty(exports, "MAX_EXPLICIT_RECURSIVE_DEPTH", {
277
277
  enumerable: true,
278
- get: function () { return chunkWRBV2FNH_cjs.MAX_EXPLICIT_RECURSIVE_DEPTH; }
278
+ get: function () { return chunk5FVZSE3B_cjs.MAX_EXPLICIT_RECURSIVE_DEPTH; }
279
279
  });
280
280
  Object.defineProperty(exports, "MAX_RECURSIVE_DEPTH", {
281
281
  enumerable: true,
282
- get: function () { return chunkWRBV2FNH_cjs.MAX_RECURSIVE_DEPTH; }
282
+ get: function () { return chunk5FVZSE3B_cjs.MAX_RECURSIVE_DEPTH; }
283
283
  });
284
284
  Object.defineProperty(exports, "PreparedQuery", {
285
285
  enumerable: true,
286
- get: function () { return chunkWRBV2FNH_cjs.PreparedQuery; }
286
+ get: function () { return chunk5FVZSE3B_cjs.PreparedQuery; }
287
287
  });
288
288
  Object.defineProperty(exports, "QueryBuilder", {
289
289
  enumerable: true,
290
- get: function () { return chunkWRBV2FNH_cjs.QueryBuilder; }
290
+ get: function () { return chunk5FVZSE3B_cjs.QueryBuilder; }
291
291
  });
292
292
  Object.defineProperty(exports, "RecordedStoreView", {
293
293
  enumerable: true,
294
- get: function () { return chunkWRBV2FNH_cjs.RecordedStoreView; }
294
+ get: function () { return chunk5FVZSE3B_cjs.RecordedStoreView; }
295
295
  });
296
296
  Object.defineProperty(exports, "StoreSearch", {
297
297
  enumerable: true,
298
- get: function () { return chunkWRBV2FNH_cjs.StoreSearch; }
298
+ get: function () { return chunk5FVZSE3B_cjs.StoreSearch; }
299
299
  });
300
300
  Object.defineProperty(exports, "StoreView", {
301
301
  enumerable: true,
302
- get: function () { return chunkWRBV2FNH_cjs.StoreView; }
302
+ get: function () { return chunk5FVZSE3B_cjs.StoreView; }
303
303
  });
304
304
  Object.defineProperty(exports, "UnionableQuery", {
305
305
  enumerable: true,
306
- get: function () { return chunkWRBV2FNH_cjs.UnionableQuery; }
306
+ get: function () { return chunk5FVZSE3B_cjs.UnionableQuery; }
307
307
  });
308
308
  Object.defineProperty(exports, "avg", {
309
309
  enumerable: true,
310
- get: function () { return chunkWRBV2FNH_cjs.avg; }
310
+ get: function () { return chunk5FVZSE3B_cjs.avg; }
311
311
  });
312
312
  Object.defineProperty(exports, "composeFragments", {
313
313
  enumerable: true,
314
- get: function () { return chunkWRBV2FNH_cjs.composeFragments; }
314
+ get: function () { return chunk5FVZSE3B_cjs.composeFragments; }
315
315
  });
316
316
  Object.defineProperty(exports, "count", {
317
317
  enumerable: true,
318
- get: function () { return chunkWRBV2FNH_cjs.count; }
318
+ get: function () { return chunk5FVZSE3B_cjs.count; }
319
319
  });
320
320
  Object.defineProperty(exports, "countDistinct", {
321
321
  enumerable: true,
322
- get: function () { return chunkWRBV2FNH_cjs.countDistinct; }
322
+ get: function () { return chunk5FVZSE3B_cjs.countDistinct; }
323
323
  });
324
324
  Object.defineProperty(exports, "countDistinctEdges", {
325
325
  enumerable: true,
326
- get: function () { return chunkWRBV2FNH_cjs.countDistinctEdges; }
326
+ get: function () { return chunk5FVZSE3B_cjs.countDistinctEdges; }
327
327
  });
328
328
  Object.defineProperty(exports, "countEdges", {
329
329
  enumerable: true,
330
- get: function () { return chunkWRBV2FNH_cjs.countEdges; }
330
+ get: function () { return chunk5FVZSE3B_cjs.countEdges; }
331
331
  });
332
332
  Object.defineProperty(exports, "createAdapterStore", {
333
333
  enumerable: true,
334
- get: function () { return chunkWRBV2FNH_cjs.createAdapterStore; }
334
+ get: function () { return chunk5FVZSE3B_cjs.createAdapterStore; }
335
335
  });
336
336
  Object.defineProperty(exports, "createAdapterStoreWithSchema", {
337
337
  enumerable: true,
338
- get: function () { return chunkWRBV2FNH_cjs.createAdapterStoreWithSchema; }
338
+ get: function () { return chunk5FVZSE3B_cjs.createAdapterStoreWithSchema; }
339
339
  });
340
340
  Object.defineProperty(exports, "createFragment", {
341
341
  enumerable: true,
342
- get: function () { return chunkWRBV2FNH_cjs.createFragment; }
342
+ get: function () { return chunk5FVZSE3B_cjs.createFragment; }
343
343
  });
344
344
  Object.defineProperty(exports, "createQueryBuilder", {
345
345
  enumerable: true,
346
- get: function () { return chunkWRBV2FNH_cjs.createQueryBuilder; }
346
+ get: function () { return chunk5FVZSE3B_cjs.createQueryBuilder; }
347
347
  });
348
348
  Object.defineProperty(exports, "createStore", {
349
349
  enumerable: true,
350
- get: function () { return chunkWRBV2FNH_cjs.createStore; }
350
+ get: function () { return chunk5FVZSE3B_cjs.createStore; }
351
351
  });
352
352
  Object.defineProperty(exports, "createStoreWithSchema", {
353
353
  enumerable: true,
354
- get: function () { return chunkWRBV2FNH_cjs.createStoreWithSchema; }
354
+ get: function () { return chunk5FVZSE3B_cjs.createStoreWithSchema; }
355
355
  });
356
356
  Object.defineProperty(exports, "createVerifiedAdapterStore", {
357
357
  enumerable: true,
358
- get: function () { return chunkWRBV2FNH_cjs.createVerifiedAdapterStore; }
358
+ get: function () { return chunk5FVZSE3B_cjs.createVerifiedAdapterStore; }
359
359
  });
360
360
  Object.defineProperty(exports, "createVerifiedStore", {
361
361
  enumerable: true,
362
- get: function () { return chunkWRBV2FNH_cjs.createVerifiedStore; }
362
+ get: function () { return chunk5FVZSE3B_cjs.createVerifiedStore; }
363
363
  });
364
364
  Object.defineProperty(exports, "defineSubgraphProject", {
365
365
  enumerable: true,
366
- get: function () { return chunkWRBV2FNH_cjs.defineSubgraphProject; }
366
+ get: function () { return chunk5FVZSE3B_cjs.defineSubgraphProject; }
367
367
  });
368
368
  Object.defineProperty(exports, "field", {
369
369
  enumerable: true,
370
- get: function () { return chunkWRBV2FNH_cjs.field; }
370
+ get: function () { return chunk5FVZSE3B_cjs.field; }
371
371
  });
372
372
  Object.defineProperty(exports, "having", {
373
373
  enumerable: true,
374
- get: function () { return chunkWRBV2FNH_cjs.having; }
374
+ get: function () { return chunk5FVZSE3B_cjs.having; }
375
375
  });
376
376
  Object.defineProperty(exports, "havingEq", {
377
377
  enumerable: true,
378
- get: function () { return chunkWRBV2FNH_cjs.havingEq; }
378
+ get: function () { return chunk5FVZSE3B_cjs.havingEq; }
379
379
  });
380
380
  Object.defineProperty(exports, "havingGt", {
381
381
  enumerable: true,
382
- get: function () { return chunkWRBV2FNH_cjs.havingGt; }
382
+ get: function () { return chunk5FVZSE3B_cjs.havingGt; }
383
383
  });
384
384
  Object.defineProperty(exports, "havingGte", {
385
385
  enumerable: true,
386
- get: function () { return chunkWRBV2FNH_cjs.havingGte; }
386
+ get: function () { return chunk5FVZSE3B_cjs.havingGte; }
387
387
  });
388
388
  Object.defineProperty(exports, "havingLt", {
389
389
  enumerable: true,
390
- get: function () { return chunkWRBV2FNH_cjs.havingLt; }
390
+ get: function () { return chunk5FVZSE3B_cjs.havingLt; }
391
391
  });
392
392
  Object.defineProperty(exports, "havingLte", {
393
393
  enumerable: true,
394
- get: function () { return chunkWRBV2FNH_cjs.havingLte; }
394
+ get: function () { return chunk5FVZSE3B_cjs.havingLte; }
395
395
  });
396
396
  Object.defineProperty(exports, "limitFragment", {
397
397
  enumerable: true,
398
- get: function () { return chunkWRBV2FNH_cjs.limitFragment; }
398
+ get: function () { return chunk5FVZSE3B_cjs.limitFragment; }
399
399
  });
400
400
  Object.defineProperty(exports, "max", {
401
401
  enumerable: true,
402
- get: function () { return chunkWRBV2FNH_cjs.max; }
402
+ get: function () { return chunk5FVZSE3B_cjs.max; }
403
403
  });
404
404
  Object.defineProperty(exports, "min", {
405
405
  enumerable: true,
406
- get: function () { return chunkWRBV2FNH_cjs.min; }
406
+ get: function () { return chunk5FVZSE3B_cjs.min; }
407
407
  });
408
408
  Object.defineProperty(exports, "offsetFragment", {
409
409
  enumerable: true,
410
- get: function () { return chunkWRBV2FNH_cjs.offsetFragment; }
410
+ get: function () { return chunk5FVZSE3B_cjs.offsetFragment; }
411
411
  });
412
412
  Object.defineProperty(exports, "orderByFragment", {
413
413
  enumerable: true,
414
- get: function () { return chunkWRBV2FNH_cjs.orderByFragment; }
414
+ get: function () { return chunk5FVZSE3B_cjs.orderByFragment; }
415
415
  });
416
416
  Object.defineProperty(exports, "sum", {
417
417
  enumerable: true,
418
- get: function () { return chunkWRBV2FNH_cjs.sum; }
418
+ get: function () { return chunk5FVZSE3B_cjs.sum; }
419
419
  });
420
420
  Object.defineProperty(exports, "sqliteVecStrategy", {
421
421
  enumerable: true,
@@ -467,67 +467,67 @@ Object.defineProperty(exports, "metaEdge", {
467
467
  });
468
468
  Object.defineProperty(exports, "broader", {
469
469
  enumerable: true,
470
- get: function () { return chunkJHRUZ73O_cjs.broader; }
470
+ get: function () { return chunkAOGOC6JF_cjs.broader; }
471
471
  });
472
472
  Object.defineProperty(exports, "core", {
473
473
  enumerable: true,
474
- get: function () { return chunkJHRUZ73O_cjs.core; }
474
+ get: function () { return chunkAOGOC6JF_cjs.core; }
475
475
  });
476
476
  Object.defineProperty(exports, "differentFrom", {
477
477
  enumerable: true,
478
- get: function () { return chunkJHRUZ73O_cjs.differentFrom; }
478
+ get: function () { return chunkAOGOC6JF_cjs.differentFrom; }
479
479
  });
480
480
  Object.defineProperty(exports, "disjointWith", {
481
481
  enumerable: true,
482
- get: function () { return chunkJHRUZ73O_cjs.disjointWith; }
482
+ get: function () { return chunkAOGOC6JF_cjs.disjointWith; }
483
483
  });
484
484
  Object.defineProperty(exports, "equivalentTo", {
485
485
  enumerable: true,
486
- get: function () { return chunkJHRUZ73O_cjs.equivalentTo; }
486
+ get: function () { return chunkAOGOC6JF_cjs.equivalentTo; }
487
487
  });
488
488
  Object.defineProperty(exports, "getActiveSchema", {
489
489
  enumerable: true,
490
- get: function () { return chunkJHRUZ73O_cjs.getActiveSchema; }
490
+ get: function () { return chunkAOGOC6JF_cjs.getActiveSchema; }
491
491
  });
492
492
  Object.defineProperty(exports, "getCommittedSchemaVersion", {
493
493
  enumerable: true,
494
- get: function () { return chunkJHRUZ73O_cjs.getCommittedSchemaVersion; }
494
+ get: function () { return chunkAOGOC6JF_cjs.getCommittedSchemaVersion; }
495
495
  });
496
496
  Object.defineProperty(exports, "hasPart", {
497
497
  enumerable: true,
498
- get: function () { return chunkJHRUZ73O_cjs.hasPart; }
498
+ get: function () { return chunkAOGOC6JF_cjs.hasPart; }
499
499
  });
500
500
  Object.defineProperty(exports, "implies", {
501
501
  enumerable: true,
502
- get: function () { return chunkJHRUZ73O_cjs.implies; }
502
+ get: function () { return chunkAOGOC6JF_cjs.implies; }
503
503
  });
504
504
  Object.defineProperty(exports, "inverseOf", {
505
505
  enumerable: true,
506
- get: function () { return chunkJHRUZ73O_cjs.inverseOf; }
506
+ get: function () { return chunkAOGOC6JF_cjs.inverseOf; }
507
507
  });
508
508
  Object.defineProperty(exports, "isSchemaInitialized", {
509
509
  enumerable: true,
510
- get: function () { return chunkJHRUZ73O_cjs.isSchemaInitialized; }
510
+ get: function () { return chunkAOGOC6JF_cjs.isSchemaInitialized; }
511
511
  });
512
512
  Object.defineProperty(exports, "narrower", {
513
513
  enumerable: true,
514
- get: function () { return chunkJHRUZ73O_cjs.narrower; }
514
+ get: function () { return chunkAOGOC6JF_cjs.narrower; }
515
515
  });
516
516
  Object.defineProperty(exports, "partOf", {
517
517
  enumerable: true,
518
- get: function () { return chunkJHRUZ73O_cjs.partOf; }
518
+ get: function () { return chunkAOGOC6JF_cjs.partOf; }
519
519
  });
520
520
  Object.defineProperty(exports, "relatedTo", {
521
521
  enumerable: true,
522
- get: function () { return chunkJHRUZ73O_cjs.relatedTo; }
522
+ get: function () { return chunkAOGOC6JF_cjs.relatedTo; }
523
523
  });
524
524
  Object.defineProperty(exports, "sameAs", {
525
525
  enumerable: true,
526
- get: function () { return chunkJHRUZ73O_cjs.sameAs; }
526
+ get: function () { return chunkAOGOC6JF_cjs.sameAs; }
527
527
  });
528
528
  Object.defineProperty(exports, "subClassOf", {
529
529
  enumerable: true,
530
- get: function () { return chunkJHRUZ73O_cjs.subClassOf; }
530
+ get: function () { return chunkAOGOC6JF_cjs.subClassOf; }
531
531
  });
532
532
  Object.defineProperty(exports, "defineEdge", {
533
533
  enumerable: true,
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { ExecutableAggregateQuery, ExecutableQuery, MAX_EXPLICIT_RECURSIVE_DEPTH, MAX_RECURSIVE_DEPTH, PreparedQuery, QueryBuilder, RecordedStoreView, StoreSearch, StoreView, UnionableQuery, avg, composeFragments, count, countDistinct, countDistinctEdges, countEdges, createAdapterStore, createAdapterStoreWithSchema, createFragment, createQueryBuilder, createStore, createStoreWithSchema, createVerifiedAdapterStore, createVerifiedStore, defineSubgraphProject, field, having, havingEq, havingGt, havingGte, havingLt, havingLte, limitFragment, max, min, offsetFragment, orderByFragment, sum } from './chunk-RCBG6YMT.js';
1
+ export { ExecutableAggregateQuery, ExecutableQuery, MAX_EXPLICIT_RECURSIVE_DEPTH, MAX_RECURSIVE_DEPTH, PreparedQuery, QueryBuilder, RecordedStoreView, StoreSearch, StoreView, UnionableQuery, avg, composeFragments, count, countDistinct, countDistinctEdges, countEdges, createAdapterStore, createAdapterStoreWithSchema, createFragment, createQueryBuilder, createStore, createStoreWithSchema, createVerifiedAdapterStore, createVerifiedStore, defineSubgraphProject, field, having, havingEq, havingGt, havingGte, havingLt, havingLte, limitFragment, max, min, offsetFragment, orderByFragment, sum } from './chunk-K6OZIHKI.js';
2
2
  export { sqliteVecStrategy } from './chunk-IZD4HTCP.js';
3
3
  export { libsqlVectorStrategy } from './chunk-D3OUDFU7.js';
4
4
  export { pgvectorStrategy } from './chunk-CBOD7TXH.js';
@@ -10,8 +10,8 @@ export { createExternalRef, externalRef, getExternalRefTable, isExternalRefSchem
10
10
  import './chunk-TYEYRCXL.js';
11
11
  import { storeRuntime } from './chunk-4DKY6RIU.js';
12
12
  import './chunk-NGQDGL5X.js';
13
- import './chunk-CAI6SMP6.js';
14
- export { broader, core, differentFrom, disjointWith, equivalentTo, getActiveSchema, getCommittedSchemaVersion, hasPart, implies, inverseOf, isSchemaInitialized, narrower, partOf, relatedTo, sameAs, subClassOf } from './chunk-YT2IVFAI.js';
13
+ import './chunk-WS5MT2UJ.js';
14
+ export { broader, core, differentFrom, disjointWith, equivalentTo, getActiveSchema, getCommittedSchemaVersion, hasPart, implies, inverseOf, isSchemaInitialized, narrower, partOf, relatedTo, sameAs, subClassOf } from './chunk-EVYW3532.js';
15
15
  export { defineEdge, defineNode, isMetaEdge } from './chunk-LI4K2KEJ.js';
16
16
  import './chunk-WFSYYU4W.js';
17
17
  export { exists, fieldRef, generateId, inSubquery, isParameterRef, notExists, notInSubquery, param } from './chunk-VAAC7L57.js';
@@ -3,7 +3,7 @@ import './chunk-H4FY6OZK.js';
3
3
  import './chunk-NBOS7BY3.js';
4
4
  import { createSqliteTables } from './chunk-UKOVGCRN.js';
5
5
  import './chunk-PVFFH7TL.js';
6
- import { createStoreWithSchema } from './chunk-RCBG6YMT.js';
6
+ import { createStoreWithSchema } from './chunk-K6OZIHKI.js';
7
7
  import './chunk-IZD4HTCP.js';
8
8
  import './chunk-SLGGT2XD.js';
9
9
  import './chunk-VUQZNUHU.js';
@@ -11,7 +11,7 @@ import './chunk-IRCWIA3R.js';
11
11
  import './chunk-TYEYRCXL.js';
12
12
  import './chunk-4DKY6RIU.js';
13
13
  import './chunk-NGQDGL5X.js';
14
- import './chunk-YT2IVFAI.js';
14
+ import './chunk-EVYW3532.js';
15
15
  import './chunk-LI4K2KEJ.js';
16
16
  import './chunk-WFSYYU4W.js';
17
17
  import './chunk-VAAC7L57.js';
@@ -71,5 +71,5 @@ async function createLocalSqliteStoreImpl(graph, options) {
71
71
  }
72
72
 
73
73
  export { createLocalSqliteStoreImpl };
74
- //# sourceMappingURL=local-store-impl-OXTOVU2J.js.map
75
- //# sourceMappingURL=local-store-impl-OXTOVU2J.js.map
74
+ //# sourceMappingURL=local-store-impl-JC7OBRAW.js.map
75
+ //# sourceMappingURL=local-store-impl-JC7OBRAW.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/backend/sqlite/local-store-impl.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACA,kBAAA,CAAmB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AAClD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,wBAAA,CAAyB;AAAA,IAC3C,GAAI,QAAQ,IAAA,KAAS,MAAA,GAAY,EAAC,GAAI,EAAE,IAAA,EAAM,OAAA,CAAQ,IAAA,EAAK;AAAA,IAC3D,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,YAAA,KAAiB,MAAA,GAC3B,EAAC,GACD,EAAE,YAAA,EAAc,OAAA,CAAQ,YAAA,EAAa;AAAA,IACvC,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAM,qBAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAO,iBAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"local-store-impl-OXTOVU2J.js","sourcesContent":["/**\n * `createLocalSqliteStore`'s implementation body, loaded behind a dynamic\n * import from `./local-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `local-store.ts` must hold no static reference to this module\n * — only the `import(\"./local-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport { createSqliteTables } from \"../drizzle/schema/sqlite\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalSqliteBackend } from \"./local\";\n// Type-only import: the option types are defined in `local-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalSqliteStoreOptions } from \"./local-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalSqliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalSqliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalSqliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createSqliteTables(options.store.schema.tables);\n const { backend } = createLocalSqliteBackend({\n ...(options.path === undefined ? {} : { path: options.path }),\n ...(options.pragmas === undefined ? {} : { pragmas: options.pragmas }),\n ...(options.capabilities === undefined ?\n {}\n : { capabilities: options.capabilities }),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/backend/sqlite/local-store-impl.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S,KAAK,CAAA;AAAA,EACzC;AACF","file":"local-store-impl-JC7OBRAW.js","sourcesContent":["/**\n * `createLocalSqliteStore`'s implementation body, loaded behind a dynamic\n * import from `./local-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `local-store.ts` must hold no static reference to this module\n * — only the `import(\"./local-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport { createSqliteTables } from \"../drizzle/schema/sqlite\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalSqliteBackend } from \"./local\";\n// Type-only import: the option types are defined in `local-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalSqliteStoreOptions } from \"./local-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalSqliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalSqliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalSqliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createSqliteTables(options.store.schema.tables);\n const { backend } = createLocalSqliteBackend({\n ...(options.path === undefined ? {} : { path: options.path }),\n ...(options.pragmas === undefined ? {} : { pragmas: options.pragmas }),\n ...(options.capabilities === undefined ?\n {}\n : { capabilities: options.capabilities }),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
@@ -5,7 +5,7 @@ require('./chunk-QCD5JKU4.cjs');
5
5
  require('./chunk-WDM5WQK4.cjs');
6
6
  var chunk5WWEYV4H_cjs = require('./chunk-5WWEYV4H.cjs');
7
7
  require('./chunk-LLFPQOBA.cjs');
8
- var chunkWRBV2FNH_cjs = require('./chunk-WRBV2FNH.cjs');
8
+ var chunk5FVZSE3B_cjs = require('./chunk-5FVZSE3B.cjs');
9
9
  require('./chunk-322TBTOQ.cjs');
10
10
  require('./chunk-UYKDYE5D.cjs');
11
11
  require('./chunk-36SX6QXP.cjs');
@@ -13,7 +13,7 @@ require('./chunk-EKG2UXNX.cjs');
13
13
  require('./chunk-2KCTP3U2.cjs');
14
14
  require('./chunk-2CVDZCXH.cjs');
15
15
  require('./chunk-FMMW3KX7.cjs');
16
- require('./chunk-JHRUZ73O.cjs');
16
+ require('./chunk-AOGOC6JF.cjs');
17
17
  require('./chunk-PS3TUWJM.cjs');
18
18
  require('./chunk-L6EVYIID.cjs');
19
19
  require('./chunk-JQKMEKKW.cjs');
@@ -59,7 +59,7 @@ async function createLocalSqliteStoreImpl(graph, options) {
59
59
  ...tables === void 0 ? {} : { tables }
60
60
  });
61
61
  try {
62
- const [store] = await chunkWRBV2FNH_cjs.createStoreWithSchema(graph, backend, {
62
+ const [store] = await chunk5FVZSE3B_cjs.createStoreWithSchema(graph, backend, {
63
63
  ...options.store,
64
64
  // The type already excludes `schema` here; the runtime strip guards
65
65
  // untyped callers, so the provisioned schema (or the default tables)
@@ -73,5 +73,5 @@ async function createLocalSqliteStoreImpl(graph, options) {
73
73
  }
74
74
 
75
75
  exports.createLocalSqliteStoreImpl = createLocalSqliteStoreImpl;
76
- //# sourceMappingURL=local-store-impl-6DDTFM32.cjs.map
77
- //# sourceMappingURL=local-store-impl-6DDTFM32.cjs.map
76
+ //# sourceMappingURL=local-store-impl-UOS2LUIG.cjs.map
77
+ //# sourceMappingURL=local-store-impl-UOS2LUIG.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/backend/sqlite/local-store-impl.ts"],"names":["createSqliteTables","createLocalSqliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACAA,oCAAA,CAAmB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AAClD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAIC,0CAAA,CAAyB;AAAA,IAC3C,GAAI,QAAQ,IAAA,KAAS,MAAA,GAAY,EAAC,GAAI,EAAE,IAAA,EAAM,OAAA,CAAQ,IAAA,EAAK;AAAA,IAC3D,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,YAAA,KAAiB,MAAA,GAC3B,EAAC,GACD,EAAE,YAAA,EAAc,OAAA,CAAQ,YAAA,EAAa;AAAA,IACvC,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAMC,uCAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"local-store-impl-6DDTFM32.cjs","sourcesContent":["/**\n * `createLocalSqliteStore`'s implementation body, loaded behind a dynamic\n * import from `./local-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `local-store.ts` must hold no static reference to this module\n * — only the `import(\"./local-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport { createSqliteTables } from \"../drizzle/schema/sqlite\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalSqliteBackend } from \"./local\";\n// Type-only import: the option types are defined in `local-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalSqliteStoreOptions } from \"./local-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalSqliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalSqliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalSqliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createSqliteTables(options.store.schema.tables);\n const { backend } = createLocalSqliteBackend({\n ...(options.path === undefined ? {} : { path: options.path }),\n ...(options.pragmas === undefined ? {} : { pragmas: options.pragmas }),\n ...(options.capabilities === undefined ?\n {}\n : { capabilities: options.capabilities }),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/backend/sqlite/local-store-impl.ts"],"names":["createSqliteTables","createLocalSqliteBackend","createStoreWithSchema","closeAfterFailure"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,SAAS,sBACP,gBAAA,EACsC;AACtC,EAAA,IAAI,gBAAA,KAAqB,MAAA,EAAW,OAAO,EAAC;AAC5C,EAAA,MAAM,EAAE,MAAA,EAAQ,QAAA,EAAU,GAAG,MAAK,GAChC,gBAAA;AAEF,EAAA,OAAO,IAAA;AACT;AAGA,eAAsB,0BAAA,CACpB,OACA,OAAA,EAC4D;AAC5D,EAAA,MAAM,MAAA,GACJ,OAAA,CAAQ,KAAA,EAAO,MAAA,KAAW,MAAA,GACxB,SACAA,oCAAA,CAAmB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AAClD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAIC,0CAAA,CAAyB;AAAA,IAC3C,GAAI,QAAQ,IAAA,KAAS,MAAA,GAAY,EAAC,GAAI,EAAE,IAAA,EAAM,OAAA,CAAQ,IAAA,EAAK;AAAA,IAC3D,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,YAAA,KAAiB,MAAA,GAC3B,EAAC,GACD,EAAE,YAAA,EAAc,OAAA,CAAQ,YAAA,EAAa;AAAA,IACvC,GAAI,MAAA,KAAW,MAAA,GAAY,EAAC,GAAI,EAAE,MAAA;AAAO,GAC1C,CAAA;AACD,EAAA,IAAI;AACF,IAAA,MAAM,CAAC,KAAK,CAAA,GAAI,MAAMC,uCAAA,CAAsB,OAAO,OAAA,EAAS;AAAA,MAC1D,GAAG,OAAA,CAAQ,KAAA;AAAA;AAAA;AAAA;AAAA,MAIX,GAAG,qBAAA,CAAsB,OAAA,CAAQ,gBAAgB;AAAA,KAClD,CAAA;AACD,IAAA,OAAO,KAAA;AAAA,EACT,SAAS,KAAA,EAAO;AACd,IAAA,OAAOC,mCAAA,CAAkB,SAAS,KAAK,CAAA;AAAA,EACzC;AACF","file":"local-store-impl-UOS2LUIG.cjs","sourcesContent":["/**\n * `createLocalSqliteStore`'s implementation body, loaded behind a dynamic\n * import from `./local-store.ts` so a missing `drizzle-orm` peer surfaces as\n * a typed refusal rather than a bare module-resolution stack (design §4.4b).\n *\n * This module owns every value import that reaches `drizzle-orm` for this\n * entrypoint. `local-store.ts` must hold no static reference to this module\n * — only the `import(\"./local-store-impl\")` expression inside its factory —\n * so the dynamic import survives into its own chunk in both the ESM and CJS\n * shipped artifacts (I12).\n */\nimport { type GraphDef } from \"../../core/define-graph\";\nimport { type SchemaManagerOptions } from \"../../schema/manager\";\nimport {\n createStoreWithSchema,\n type HistoryStore,\n type RecordedReadStore,\n type Store,\n} from \"../../store/store\";\nimport { createSqliteTables } from \"../drizzle/schema/sqlite\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalSqliteBackend } from \"./local\";\n// Type-only import: the option types are defined in `local-store.ts`, which\n// is this module's ONLY caller. A static value import in the other direction\n// would give `collectModuleEdges` a real edge from the store module to this\n// one, turning I12's `load` verdict dirty; a type-only import is erased at\n// runtime (no `verbatimModuleSyntax` in `tsconfig.base.json`), so this\n// back-edge never becomes a value cycle — the same precedent documented at\n// `src/errors/index.ts:26-29`.\nimport type { LocalSqliteStoreOptions } from \"./local-store\";\n\n/**\n * Drops a smuggled `schema` from the nested schema-management options: the\n * effective `SqlSchema` has exactly one source (`store.schema`), which also\n * drives physical table provisioning in this constructor.\n */\nfunction withoutSchemaOverride(\n schemaManagement: Omit<SchemaManagerOptions, \"schema\"> | undefined,\n): Omit<SchemaManagerOptions, \"schema\"> {\n if (schemaManagement === undefined) return {};\n const { schema: smuggled, ...rest } =\n schemaManagement as SchemaManagerOptions;\n void smuggled;\n return rest;\n}\n\n/** {@link createLocalSqliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalSqliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalSqliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createSqliteTables(options.store.schema.tables);\n const { backend } = createLocalSqliteBackend({\n ...(options.path === undefined ? {} : { path: options.path }),\n ...(options.pragmas === undefined ? {} : { pragmas: options.pragmas }),\n ...(options.capabilities === undefined ?\n {}\n : { capabilities: options.capabilities }),\n ...(tables === undefined ? {} : { tables }),\n });\n try {\n const [store] = await createStoreWithSchema(graph, backend, {\n ...options.store,\n // The type already excludes `schema` here; the runtime strip guards\n // untyped callers, so the provisioned schema (or the default tables)\n // can never diverge from the one the Store reads.\n ...withoutSchemaOverride(options.schemaManagement),\n });\n return store;\n } catch (error) {\n return closeAfterFailure(backend, error);\n }\n}\n"]}