@nicia-ai/typegraph 0.68.0 → 0.68.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 (40) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/backend/postgres/pglite-store.cjs +1 -1
  3. package/dist/backend/postgres/pglite-store.js +1 -1
  4. package/dist/backend/sqlite/local-store.cjs +1 -1
  5. package/dist/backend/sqlite/local-store.js +1 -1
  6. package/dist/{chunk-T3VU3YRQ.cjs → chunk-6GUBF5TF.cjs} +24 -18
  7. package/dist/chunk-6GUBF5TF.cjs.map +1 -0
  8. package/dist/{chunk-55DGFZYC.js → chunk-EJYBHBIB.js} +3 -3
  9. package/dist/{chunk-55DGFZYC.js.map → chunk-EJYBHBIB.js.map} +1 -1
  10. package/dist/{chunk-WY3IFEKV.cjs → chunk-IFTYHOEE.cjs} +13 -5
  11. package/dist/chunk-IFTYHOEE.cjs.map +1 -0
  12. package/dist/{chunk-RTPMG6LQ.js → chunk-JVKHJQ6Q.js} +13 -5
  13. package/dist/chunk-JVKHJQ6Q.js.map +1 -0
  14. package/dist/{chunk-FS2GVO2T.cjs → chunk-OBEYH22Q.cjs} +159 -159
  15. package/dist/{chunk-FS2GVO2T.cjs.map → chunk-OBEYH22Q.cjs.map} +1 -1
  16. package/dist/{chunk-7YJHUY4T.js → chunk-VUYODTHL.js} +10 -5
  17. package/dist/chunk-VUYODTHL.js.map +1 -0
  18. package/dist/graph-merge/index.cjs +20 -20
  19. package/dist/graph-merge/index.cjs.map +1 -1
  20. package/dist/graph-merge/index.d.cts +19 -8
  21. package/dist/graph-merge/index.d.ts +19 -8
  22. package/dist/graph-merge/index.js +5 -5
  23. package/dist/graph-merge/index.js.map +1 -1
  24. package/dist/index.cjs +43 -43
  25. package/dist/index.js +2 -2
  26. package/dist/interchange/index.cjs +25 -25
  27. package/dist/interchange/index.js +2 -2
  28. package/dist/{local-store-impl-GI6S4J6B.cjs → local-store-impl-INNRHDK3.cjs} +5 -5
  29. package/dist/{local-store-impl-GI6S4J6B.cjs.map → local-store-impl-INNRHDK3.cjs.map} +1 -1
  30. package/dist/{local-store-impl-CCMWTLGY.js → local-store-impl-VGC3OKCA.js} +4 -4
  31. package/dist/{local-store-impl-CCMWTLGY.js.map → local-store-impl-VGC3OKCA.js.map} +1 -1
  32. package/dist/{pglite-store-impl-HAPAJUIO.cjs → pglite-store-impl-KDS4NRMC.cjs} +5 -5
  33. package/dist/{pglite-store-impl-HAPAJUIO.cjs.map → pglite-store-impl-KDS4NRMC.cjs.map} +1 -1
  34. package/dist/{pglite-store-impl-HDLFOZWS.js → pglite-store-impl-LJDF2EUF.js} +4 -4
  35. package/dist/{pglite-store-impl-HDLFOZWS.js.map → pglite-store-impl-LJDF2EUF.js.map} +1 -1
  36. package/package.json +1 -1
  37. package/dist/chunk-7YJHUY4T.js.map +0 -1
  38. package/dist/chunk-RTPMG6LQ.js.map +0 -1
  39. package/dist/chunk-T3VU3YRQ.cjs.map +0 -1
  40. package/dist/chunk-WY3IFEKV.cjs.map +0 -1
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkFS2GVO2T_cjs = require('../chunk-FS2GVO2T.cjs');
3
+ var chunkOBEYH22Q_cjs = require('../chunk-OBEYH22Q.cjs');
4
4
  require('../chunk-76OB5RSH.cjs');
5
5
  var chunk3HMEGR7U_cjs = require('../chunk-3HMEGR7U.cjs');
6
6
  require('../chunk-2XQYRCPM.cjs');
7
- var chunkT3VU3YRQ_cjs = require('../chunk-T3VU3YRQ.cjs');
8
- require('../chunk-WY3IFEKV.cjs');
7
+ var chunk6GUBF5TF_cjs = require('../chunk-6GUBF5TF.cjs');
8
+ require('../chunk-IFTYHOEE.cjs');
9
9
  require('../chunk-VNJMM2QQ.cjs');
10
10
  require('../chunk-I7SBZJI2.cjs');
11
11
  require('../chunk-G7OKJDMG.cjs');
@@ -2160,7 +2160,7 @@ function cloneWorkingCopyWithGraphStrategy(makeBackend, graphForClone) {
2160
2160
  create: async (baseStore) => {
2161
2161
  const backend = await makeBackend();
2162
2162
  try {
2163
- const [freshStore] = await chunkFS2GVO2T_cjs.createStoreWithSchema(
2163
+ const [freshStore] = await chunkOBEYH22Q_cjs.createStoreWithSchema(
2164
2164
  graphForClone(baseStore),
2165
2165
  backend,
2166
2166
  {
@@ -2191,25 +2191,25 @@ function cloneWorkingCopyWithGraphStrategy(makeBackend, graphForClone) {
2191
2191
  };
2192
2192
  const importOptions = {
2193
2193
  onConflict: "error",
2194
- onUnknownProperty: "error",
2194
+ onUnknownProperty: "allow",
2195
2195
  validateReferences: true,
2196
2196
  batchSize: CLONE_IMPORT_BATCH_SIZE
2197
2197
  };
2198
2198
  const result = chunk6JRVV2SS_cjs.snapshotExportContention(
2199
2199
  chunk6B3LQUYG_cjs.storeBackend(baseStore),
2200
2200
  chunk6B3LQUYG_cjs.storeBackend(freshStore)
2201
- ) === void 0 ? await chunkT3VU3YRQ_cjs.importGraphStream(
2201
+ ) === void 0 ? await chunk6GUBF5TF_cjs.importGraphStream(
2202
2202
  freshStore,
2203
- chunkT3VU3YRQ_cjs.exportGraphStream(baseStore, exportOptions),
2203
+ chunk6GUBF5TF_cjs.exportGraphStream(baseStore, exportOptions),
2204
2204
  importOptions
2205
- ) : await chunkT3VU3YRQ_cjs.importGraph(
2205
+ ) : await chunk6GUBF5TF_cjs.importGraph(
2206
2206
  freshStore,
2207
- await chunkT3VU3YRQ_cjs.exportGraph(baseStore, exportOptions),
2207
+ await chunk6GUBF5TF_cjs.exportGraph(baseStore, exportOptions),
2208
2208
  importOptions
2209
2209
  );
2210
2210
  if (!result.success) {
2211
2211
  throw new BranchError(
2212
- "Clone import failed: the working copy could not be seeded from the base store. The backend returned by makeBackend() must be empty.",
2212
+ `Clone import failed: the working copy could not be seeded from the base store. ${chunk6GUBF5TF_cjs.summarizeImportErrors(result.errors)}`,
2213
2213
  { details: { errors: result.errors } }
2214
2214
  );
2215
2215
  }
@@ -2294,7 +2294,7 @@ function forkedWorkingCopyStrategy(options) {
2294
2294
  { details: { inheritedTables, connectedTables } }
2295
2295
  );
2296
2296
  }
2297
- const forkStore = chunkFS2GVO2T_cjs.createStore(baseStore.graph, backend, forkOptions);
2297
+ const forkStore = chunkOBEYH22Q_cjs.createStore(baseStore.graph, backend, forkOptions);
2298
2298
  await assertWorkingCopyMatchesBase(forkStore, base);
2299
2299
  return forkStore;
2300
2300
  } catch (error) {
@@ -2436,7 +2436,7 @@ async function ingestionBranch(baseStore, makeBackend, options) {
2436
2436
  close: coalescedWorkingCopyClose(store)
2437
2437
  });
2438
2438
  PRIVATE_BRANCHES.set(handle, privateBranch);
2439
- chunkT3VU3YRQ_cjs.registerIngestionImportTarget(handle, store);
2439
+ chunk6GUBF5TF_cjs.registerIngestionImportTarget(handle, store);
2440
2440
  return chunkHQU2SE74_cjs.ok(handle);
2441
2441
  } catch (error) {
2442
2442
  return chunkHQU2SE74_cjs.err(
@@ -2482,8 +2482,8 @@ async function assertMergeTransactionPristine(target, txBackend) {
2482
2482
 
2483
2483
  // src/graph-merge/apply-callbacks.ts
2484
2484
  var NODE_READ_NAMES = [
2485
- ...chunkFS2GVO2T_cjs.NODE_TEMPORAL_READ_NAMES,
2486
- ...chunkFS2GVO2T_cjs.CURRENT_ONLY_READ_NAMES
2485
+ ...chunkOBEYH22Q_cjs.NODE_TEMPORAL_READ_NAMES,
2486
+ ...chunkOBEYH22Q_cjs.CURRENT_ONLY_READ_NAMES
2487
2487
  ];
2488
2488
  function pickReadMethods(source, names) {
2489
2489
  return Object.fromEntries(names.map((name) => [name, source[name]]));
@@ -2501,12 +2501,12 @@ function mergePlanReadContext(tx, graph) {
2501
2501
  kind,
2502
2502
  pickReadMethods(
2503
2503
  chunkBXHAPCQG_cjs.requireDefined(tx.edges[kind]),
2504
- chunkFS2GVO2T_cjs.EDGE_TEMPORAL_READ_NAMES
2504
+ chunkOBEYH22Q_cjs.EDGE_TEMPORAL_READ_NAMES
2505
2505
  )
2506
2506
  ])
2507
2507
  ),
2508
2508
  ..."identity" in tx ? {
2509
- identity: pickReadMethods(tx.identity, chunkFS2GVO2T_cjs.IDENTITY_READ_NAMES)
2509
+ identity: pickReadMethods(tx.identity, chunkOBEYH22Q_cjs.IDENTITY_READ_NAMES)
2510
2510
  } : {}
2511
2511
  };
2512
2512
  }
@@ -5336,7 +5336,7 @@ async function openProvenanceStore(...args) {
5336
5336
  throw provenanceGraphIdCollision(graph.id, targetGraphId, claim.reason);
5337
5337
  }
5338
5338
  }
5339
- const [store] = await chunkFS2GVO2T_cjs.createStoreWithSchema(graph, backend);
5339
+ const [store] = await chunkOBEYH22Q_cjs.createStoreWithSchema(graph, backend);
5340
5340
  return store;
5341
5341
  }
5342
5342
  async function claimSidecarOwnership(backend, graph, targetGraphId) {
@@ -9691,7 +9691,7 @@ var CandidateWriteSetSchema = zod.z.object({
9691
9691
  target: CandidateWriteSetTargetSchema,
9692
9692
  nodes: zod.z.array(candidateNodeSchema),
9693
9693
  edges: zod.z.array(candidateEdgeSchema),
9694
- identity: chunkT3VU3YRQ_cjs.InterchangeIdentitySchema.optional()
9694
+ identity: chunk6GUBF5TF_cjs.InterchangeIdentitySchema.optional()
9695
9695
  });
9696
9696
  async function captureCandidateWriteSetTarget(target) {
9697
9697
  const activeSchema = await chunk6B3LQUYG_cjs.storeBackend(target).getActiveSchema(
@@ -9784,7 +9784,7 @@ async function planCandidateWriteSet(args) {
9784
9784
  }
9785
9785
  const candidate = created.data;
9786
9786
  try {
9787
- const imported = await chunkT3VU3YRQ_cjs.importGraph(
9787
+ const imported = await chunk6GUBF5TF_cjs.importGraph(
9788
9788
  candidate,
9789
9789
  interchangeDocument(writeSet),
9790
9790
  {
@@ -9884,7 +9884,7 @@ async function planCandidateWriteSetForEvolution(args) {
9884
9884
  }
9885
9885
  const candidate = created.data;
9886
9886
  try {
9887
- const imported = await chunkT3VU3YRQ_cjs.importGraph(
9887
+ const imported = await chunk6GUBF5TF_cjs.importGraph(
9888
9888
  candidate,
9889
9889
  interchangeDocument(writeSet),
9890
9890
  {