@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
@@ -4,7 +4,7 @@ var chunkS5GU4LUN_cjs = require('./chunk-S5GU4LUN.cjs');
4
4
  require('./chunk-B3MN7EJR.cjs');
5
5
  var chunk5WWEYV4H_cjs = require('./chunk-5WWEYV4H.cjs');
6
6
  require('./chunk-LLFPQOBA.cjs');
7
- var chunkWRBV2FNH_cjs = require('./chunk-WRBV2FNH.cjs');
7
+ var chunk5FVZSE3B_cjs = require('./chunk-5FVZSE3B.cjs');
8
8
  require('./chunk-TIJUA4I6.cjs');
9
9
  require('./chunk-UYKDYE5D.cjs');
10
10
  require('./chunk-36SX6QXP.cjs');
@@ -12,7 +12,7 @@ require('./chunk-EKG2UXNX.cjs');
12
12
  require('./chunk-2KCTP3U2.cjs');
13
13
  require('./chunk-2CVDZCXH.cjs');
14
14
  require('./chunk-FMMW3KX7.cjs');
15
- require('./chunk-JHRUZ73O.cjs');
15
+ require('./chunk-AOGOC6JF.cjs');
16
16
  require('./chunk-PS3TUWJM.cjs');
17
17
  require('./chunk-L6EVYIID.cjs');
18
18
  require('./chunk-JQKMEKKW.cjs');
@@ -57,7 +57,7 @@ async function createLocalPgliteStoreImpl(graph, options) {
57
57
  ...tables === void 0 ? {} : { tables }
58
58
  });
59
59
  try {
60
- const [store] = await chunkWRBV2FNH_cjs.createStoreWithSchema(graph, backend, {
60
+ const [store] = await chunk5FVZSE3B_cjs.createStoreWithSchema(graph, backend, {
61
61
  ...options.store,
62
62
  // The type already excludes `schema` here; the runtime strip guards
63
63
  // untyped callers, so the provisioned schema (or the default tables)
@@ -71,5 +71,5 @@ async function createLocalPgliteStoreImpl(graph, options) {
71
71
  }
72
72
 
73
73
  exports.createLocalPgliteStoreImpl = createLocalPgliteStoreImpl;
74
- //# sourceMappingURL=pglite-store-impl-GJG3Y7RP.cjs.map
75
- //# sourceMappingURL=pglite-store-impl-GJG3Y7RP.cjs.map
74
+ //# sourceMappingURL=pglite-store-impl-J5J5AA52.cjs.map
75
+ //# sourceMappingURL=pglite-store-impl-J5J5AA52.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/backend/postgres/pglite-store-impl.ts"],"names":["createPostgresTables","createLocalPgliteBackend","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,sCAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAMC,0CAAA,CAAyB;AAAA,IACjD,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,MAAA,KAAW,KAAA,GAAQ,EAAE,MAAA,EAAQ,KAAA,KAAmB,EAAC;AAAA,IAC7D,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":"pglite-store-impl-GJG3Y7RP.cjs","sourcesContent":["/**\n * `createLocalPgliteStore`'s implementation body, loaded behind a dynamic\n * import from `./pglite-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. `pglite-store.ts` must hold no static reference to this module\n * — only the `import(\"./pglite-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 { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n// Type-only import: the option types are defined in `pglite-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 { LocalPgliteStoreOptions } from \"./pglite-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 createLocalPgliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalPgliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createPostgresTables(options.store.schema.tables);\n const { backend } = await createLocalPgliteBackend({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(options.vector === false ? { vector: false as const } : {}),\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/postgres/pglite-store-impl.ts"],"names":["createPostgresTables","createLocalPgliteBackend","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,sCAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAMC,0CAAA,CAAyB;AAAA,IACjD,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,MAAA,KAAW,KAAA,GAAQ,EAAE,MAAA,EAAQ,KAAA,KAAmB,EAAC;AAAA,IAC7D,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":"pglite-store-impl-J5J5AA52.cjs","sourcesContent":["/**\n * `createLocalPgliteStore`'s implementation body, loaded behind a dynamic\n * import from `./pglite-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. `pglite-store.ts` must hold no static reference to this module\n * — only the `import(\"./pglite-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 { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n// Type-only import: the option types are defined in `pglite-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 { LocalPgliteStoreOptions } from \"./pglite-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 createLocalPgliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalPgliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createPostgresTables(options.store.schema.tables);\n const { backend } = await createLocalPgliteBackend({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(options.vector === false ? { vector: false as const } : {}),\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"]}
@@ -2,7 +2,7 @@ import { createLocalPgliteBackend } from './chunk-SDPWO2Z5.js';
2
2
  import './chunk-K67P5DLL.js';
3
3
  import { createPostgresTables } from './chunk-UKOVGCRN.js';
4
4
  import './chunk-PVFFH7TL.js';
5
- import { createStoreWithSchema } from './chunk-RCBG6YMT.js';
5
+ import { createStoreWithSchema } from './chunk-K6OZIHKI.js';
6
6
  import './chunk-CBOD7TXH.js';
7
7
  import './chunk-SLGGT2XD.js';
8
8
  import './chunk-VUQZNUHU.js';
@@ -10,7 +10,7 @@ import './chunk-IRCWIA3R.js';
10
10
  import './chunk-TYEYRCXL.js';
11
11
  import './chunk-4DKY6RIU.js';
12
12
  import './chunk-NGQDGL5X.js';
13
- import './chunk-YT2IVFAI.js';
13
+ import './chunk-EVYW3532.js';
14
14
  import './chunk-LI4K2KEJ.js';
15
15
  import './chunk-WFSYYU4W.js';
16
16
  import './chunk-VAAC7L57.js';
@@ -69,5 +69,5 @@ async function createLocalPgliteStoreImpl(graph, options) {
69
69
  }
70
70
 
71
71
  export { createLocalPgliteStoreImpl };
72
- //# sourceMappingURL=pglite-store-impl-6EMZGL7K.js.map
73
- //# sourceMappingURL=pglite-store-impl-6EMZGL7K.js.map
72
+ //# sourceMappingURL=pglite-store-impl-LDRH2DUH.js.map
73
+ //# sourceMappingURL=pglite-store-impl-LDRH2DUH.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/backend/postgres/pglite-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,oBAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAM,wBAAA,CAAyB;AAAA,IACjD,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,MAAA,KAAW,KAAA,GAAQ,EAAE,MAAA,EAAQ,KAAA,KAAmB,EAAC;AAAA,IAC7D,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":"pglite-store-impl-6EMZGL7K.js","sourcesContent":["/**\n * `createLocalPgliteStore`'s implementation body, loaded behind a dynamic\n * import from `./pglite-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. `pglite-store.ts` must hold no static reference to this module\n * — only the `import(\"./pglite-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 { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n// Type-only import: the option types are defined in `pglite-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 { LocalPgliteStoreOptions } from \"./pglite-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 createLocalPgliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalPgliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createPostgresTables(options.store.schema.tables);\n const { backend } = await createLocalPgliteBackend({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(options.vector === false ? { vector: false as const } : {}),\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/postgres/pglite-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,oBAAA,CAAqB,OAAA,CAAQ,KAAA,CAAM,MAAA,CAAO,MAAM,CAAA;AACpD,EAAA,MAAM,EAAE,OAAA,EAAQ,GAAI,MAAM,wBAAA,CAAyB;AAAA,IACjD,GAAI,QAAQ,OAAA,KAAY,MAAA,GAAY,EAAC,GAAI,EAAE,OAAA,EAAS,OAAA,CAAQ,OAAA,EAAQ;AAAA,IACpE,GAAI,QAAQ,MAAA,KAAW,KAAA,GAAQ,EAAE,MAAA,EAAQ,KAAA,KAAmB,EAAC;AAAA,IAC7D,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":"pglite-store-impl-LDRH2DUH.js","sourcesContent":["/**\n * `createLocalPgliteStore`'s implementation body, loaded behind a dynamic\n * import from `./pglite-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. `pglite-store.ts` must hold no static reference to this module\n * — only the `import(\"./pglite-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 { createPostgresTables } from \"../drizzle/schema/postgres\";\nimport { closeAfterFailure } from \"../types\";\nimport { createLocalPgliteBackend } from \"./pglite\";\n// Type-only import: the option types are defined in `pglite-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 { LocalPgliteStoreOptions } from \"./pglite-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 createLocalPgliteStore}'s implementation body, verbatim from before the split. */\nexport async function createLocalPgliteStoreImpl<G extends GraphDef>(\n graph: G,\n options: LocalPgliteStoreOptions,\n): Promise<Store<G> | HistoryStore<G> | RecordedReadStore<G>> {\n const tables =\n options.store?.schema === undefined ?\n undefined\n : createPostgresTables(options.store.schema.tables);\n const { backend } = await createLocalPgliteBackend({\n ...(options.dataDir === undefined ? {} : { dataDir: options.dataDir }),\n ...(options.vector === false ? { vector: false as const } : {}),\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,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkQLLZM5I3_cjs = require('../chunk-QLLZM5I3.cjs');
4
- var chunkJHRUZ73O_cjs = require('../chunk-JHRUZ73O.cjs');
3
+ var chunkTUWSVL6I_cjs = require('../chunk-TUWSVL6I.cjs');
4
+ var chunkAOGOC6JF_cjs = require('../chunk-AOGOC6JF.cjs');
5
5
  require('../chunk-PS3TUWJM.cjs');
6
6
  require('../chunk-L6EVYIID.cjs');
7
7
  var chunkJQKMEKKW_cjs = require('../chunk-JQKMEKKW.cjs');
@@ -34,91 +34,91 @@ require('../chunk-N66HCGCY.cjs');
34
34
 
35
35
  Object.defineProperty(exports, "deserializeSchema", {
36
36
  enumerable: true,
37
- get: function () { return chunkQLLZM5I3_cjs.deserializeSchema; }
37
+ get: function () { return chunkTUWSVL6I_cjs.deserializeSchema; }
38
38
  });
39
39
  Object.defineProperty(exports, "applyDeprecatedKinds", {
40
40
  enumerable: true,
41
- get: function () { return chunkJHRUZ73O_cjs.applyDeprecatedKinds; }
41
+ get: function () { return chunkAOGOC6JF_cjs.applyDeprecatedKinds; }
42
42
  });
43
43
  Object.defineProperty(exports, "assertSchemaCurrent", {
44
44
  enumerable: true,
45
- get: function () { return chunkJHRUZ73O_cjs.assertSchemaCurrent; }
45
+ get: function () { return chunkAOGOC6JF_cjs.assertSchemaCurrent; }
46
46
  });
47
47
  Object.defineProperty(exports, "classifySchemaChanges", {
48
48
  enumerable: true,
49
- get: function () { return chunkJHRUZ73O_cjs.classifySchemaChanges; }
49
+ get: function () { return chunkAOGOC6JF_cjs.classifySchemaChanges; }
50
50
  });
51
51
  Object.defineProperty(exports, "computeSchemaDiff", {
52
52
  enumerable: true,
53
- get: function () { return chunkJHRUZ73O_cjs.computeSchemaDiff; }
53
+ get: function () { return chunkAOGOC6JF_cjs.computeSchemaDiff; }
54
54
  });
55
55
  Object.defineProperty(exports, "computeSchemaHash", {
56
56
  enumerable: true,
57
- get: function () { return chunkJHRUZ73O_cjs.computeSchemaHash; }
57
+ get: function () { return chunkAOGOC6JF_cjs.computeSchemaHash; }
58
58
  });
59
59
  Object.defineProperty(exports, "deserializeWherePredicate", {
60
60
  enumerable: true,
61
- get: function () { return chunkJHRUZ73O_cjs.deserializeWherePredicate; }
61
+ get: function () { return chunkAOGOC6JF_cjs.deserializeWherePredicate; }
62
62
  });
63
63
  Object.defineProperty(exports, "ensureSchema", {
64
64
  enumerable: true,
65
- get: function () { return chunkJHRUZ73O_cjs.ensureSchema; }
65
+ get: function () { return chunkAOGOC6JF_cjs.ensureSchema; }
66
66
  });
67
67
  Object.defineProperty(exports, "getActiveSchema", {
68
68
  enumerable: true,
69
- get: function () { return chunkJHRUZ73O_cjs.getActiveSchema; }
69
+ get: function () { return chunkAOGOC6JF_cjs.getActiveSchema; }
70
70
  });
71
71
  Object.defineProperty(exports, "getCommittedSchemaVersion", {
72
72
  enumerable: true,
73
- get: function () { return chunkJHRUZ73O_cjs.getCommittedSchemaVersion; }
73
+ get: function () { return chunkAOGOC6JF_cjs.getCommittedSchemaVersion; }
74
74
  });
75
75
  Object.defineProperty(exports, "getMigrationActions", {
76
76
  enumerable: true,
77
- get: function () { return chunkJHRUZ73O_cjs.getMigrationActions; }
77
+ get: function () { return chunkAOGOC6JF_cjs.getMigrationActions; }
78
78
  });
79
79
  Object.defineProperty(exports, "getSchemaChanges", {
80
80
  enumerable: true,
81
- get: function () { return chunkJHRUZ73O_cjs.getSchemaChanges; }
81
+ get: function () { return chunkAOGOC6JF_cjs.getSchemaChanges; }
82
82
  });
83
83
  Object.defineProperty(exports, "initializeSchema", {
84
84
  enumerable: true,
85
- get: function () { return chunkJHRUZ73O_cjs.initializeSchema; }
85
+ get: function () { return chunkAOGOC6JF_cjs.initializeSchema; }
86
86
  });
87
87
  Object.defineProperty(exports, "isBackwardsCompatible", {
88
88
  enumerable: true,
89
- get: function () { return chunkJHRUZ73O_cjs.isBackwardsCompatible; }
89
+ get: function () { return chunkAOGOC6JF_cjs.isBackwardsCompatible; }
90
90
  });
91
91
  Object.defineProperty(exports, "isSchemaInitialized", {
92
92
  enumerable: true,
93
- get: function () { return chunkJHRUZ73O_cjs.isSchemaInitialized; }
93
+ get: function () { return chunkAOGOC6JF_cjs.isSchemaInitialized; }
94
94
  });
95
95
  Object.defineProperty(exports, "loadActiveSchemaWithBootstrap", {
96
96
  enumerable: true,
97
- get: function () { return chunkJHRUZ73O_cjs.loadActiveSchemaWithBootstrap; }
97
+ get: function () { return chunkAOGOC6JF_cjs.loadActiveSchemaWithBootstrap; }
98
98
  });
99
99
  Object.defineProperty(exports, "loadAndMergeGraphExtensionDocument", {
100
100
  enumerable: true,
101
- get: function () { return chunkJHRUZ73O_cjs.loadAndMergeGraphExtensionDocument; }
101
+ get: function () { return chunkAOGOC6JF_cjs.loadAndMergeGraphExtensionDocument; }
102
102
  });
103
103
  Object.defineProperty(exports, "migrateSchema", {
104
104
  enumerable: true,
105
- get: function () { return chunkJHRUZ73O_cjs.migrateSchema; }
105
+ get: function () { return chunkAOGOC6JF_cjs.migrateSchema; }
106
106
  });
107
107
  Object.defineProperty(exports, "parseSerializedSchema", {
108
108
  enumerable: true,
109
- get: function () { return chunkJHRUZ73O_cjs.parseSerializedSchema; }
109
+ get: function () { return chunkAOGOC6JF_cjs.parseSerializedSchema; }
110
110
  });
111
111
  Object.defineProperty(exports, "requiresMigration", {
112
112
  enumerable: true,
113
- get: function () { return chunkJHRUZ73O_cjs.requiresMigration; }
113
+ get: function () { return chunkAOGOC6JF_cjs.requiresMigration; }
114
114
  });
115
115
  Object.defineProperty(exports, "rollbackSchema", {
116
116
  enumerable: true,
117
- get: function () { return chunkJHRUZ73O_cjs.rollbackSchema; }
117
+ get: function () { return chunkAOGOC6JF_cjs.rollbackSchema; }
118
118
  });
119
119
  Object.defineProperty(exports, "serializeSchema", {
120
120
  enumerable: true,
121
- get: function () { return chunkJHRUZ73O_cjs.serializeSchema; }
121
+ get: function () { return chunkAOGOC6JF_cjs.serializeSchema; }
122
122
  });
123
123
  Object.defineProperty(exports, "createValidationError", {
124
124
  enumerable: true,
@@ -1,5 +1,5 @@
1
- export { deserializeSchema } from '../chunk-CAI6SMP6.js';
2
- export { applyDeprecatedKinds, assertSchemaCurrent, classifySchemaChanges, computeSchemaDiff, computeSchemaHash, deserializeWherePredicate, ensureSchema, getActiveSchema, getCommittedSchemaVersion, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, loadActiveSchemaWithBootstrap, loadAndMergeGraphExtensionDocument, migrateSchema, parseSerializedSchema, requiresMigration, rollbackSchema, serializeSchema } from '../chunk-YT2IVFAI.js';
1
+ export { deserializeSchema } from '../chunk-WS5MT2UJ.js';
2
+ export { applyDeprecatedKinds, assertSchemaCurrent, classifySchemaChanges, computeSchemaDiff, computeSchemaHash, deserializeWherePredicate, ensureSchema, getActiveSchema, getCommittedSchemaVersion, getMigrationActions, getSchemaChanges, initializeSchema, isBackwardsCompatible, isSchemaInitialized, loadActiveSchemaWithBootstrap, loadAndMergeGraphExtensionDocument, migrateSchema, parseSerializedSchema, requiresMigration, rollbackSchema, serializeSchema } from '../chunk-EVYW3532.js';
3
3
  import '../chunk-LI4K2KEJ.js';
4
4
  import '../chunk-WFSYYU4W.js';
5
5
  export { createValidationError, validateEdgeProps, validateNodeProps, validateProps, wrapZodError } from '../chunk-VAAC7L57.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nicia-ai/typegraph",
3
- "version": "0.51.0",
3
+ "version": "0.51.1",
4
4
  "description": "TypeScript-first embedded knowledge graph library with ontological reasoning",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",