@nicia-ai/typegraph 0.48.0 → 0.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/backend/postgres/index.cjs +3 -3
  2. package/dist/backend/postgres/index.js +2 -2
  3. package/dist/backend/postgres/pglite-store.cjs +4 -4
  4. package/dist/backend/postgres/pglite-store.d.cts +2 -2
  5. package/dist/backend/postgres/pglite-store.d.ts +2 -2
  6. package/dist/backend/postgres/pglite-store.js +3 -3
  7. package/dist/backend/postgres/pglite.cjs +4 -4
  8. package/dist/backend/postgres/pglite.js +3 -3
  9. package/dist/backend/sqlite/index.cjs +3 -3
  10. package/dist/backend/sqlite/index.js +2 -2
  11. package/dist/backend/sqlite/libsql.cjs +4 -4
  12. package/dist/backend/sqlite/libsql.js +2 -2
  13. package/dist/backend/sqlite/local-store.cjs +5 -5
  14. package/dist/backend/sqlite/local-store.d.cts +2 -2
  15. package/dist/backend/sqlite/local-store.d.ts +2 -2
  16. package/dist/backend/sqlite/local-store.js +4 -4
  17. package/dist/backend/sqlite/local.cjs +5 -5
  18. package/dist/backend/sqlite/local.js +3 -3
  19. package/dist/{chunk-TKZXMWQF.cjs → chunk-2O4PCIZ6.cjs} +4 -4
  20. package/dist/{chunk-TKZXMWQF.cjs.map → chunk-2O4PCIZ6.cjs.map} +1 -1
  21. package/dist/{chunk-OTUPEF2W.cjs → chunk-3G5W2U2L.cjs} +30 -4
  22. package/dist/chunk-3G5W2U2L.cjs.map +1 -0
  23. package/dist/{chunk-WCCATHMB.cjs → chunk-3QNZ5SAJ.cjs} +3 -3
  24. package/dist/chunk-3QNZ5SAJ.cjs.map +1 -0
  25. package/dist/{chunk-OD4SSY2U.js → chunk-7LZJNLA5.js} +3 -3
  26. package/dist/{chunk-OD4SSY2U.js.map → chunk-7LZJNLA5.js.map} +1 -1
  27. package/dist/{chunk-7XUYFFR4.cjs → chunk-7UOLHNWC.cjs} +5 -5
  28. package/dist/{chunk-7XUYFFR4.cjs.map → chunk-7UOLHNWC.cjs.map} +1 -1
  29. package/dist/{chunk-2SYZXD54.js → chunk-D4QLTJSM.js} +3 -3
  30. package/dist/{chunk-2SYZXD54.js.map → chunk-D4QLTJSM.js.map} +1 -1
  31. package/dist/{chunk-CT3ZKTOF.js → chunk-JPD2CTC3.js} +3 -3
  32. package/dist/{chunk-CT3ZKTOF.js.map → chunk-JPD2CTC3.js.map} +1 -1
  33. package/dist/{chunk-AX6JGVTZ.js → chunk-LTXQOEIC.js} +30 -5
  34. package/dist/chunk-LTXQOEIC.js.map +1 -0
  35. package/dist/{chunk-PFBRJBUL.cjs → chunk-UGHQV7MP.cjs} +55 -55
  36. package/dist/{chunk-PFBRJBUL.cjs.map → chunk-UGHQV7MP.cjs.map} +1 -1
  37. package/dist/{chunk-4WMMBDS5.js → chunk-WIC7DRXW.js} +3 -3
  38. package/dist/{chunk-4WMMBDS5.js.map → chunk-WIC7DRXW.js.map} +1 -1
  39. package/dist/{chunk-2HIYYMWY.cjs → chunk-YYUHLYM2.cjs} +54 -54
  40. package/dist/{chunk-2HIYYMWY.cjs.map → chunk-YYUHLYM2.cjs.map} +1 -1
  41. package/dist/{chunk-ACGSAMD3.js → chunk-Z2JCLZFJ.js} +3 -3
  42. package/dist/chunk-Z2JCLZFJ.js.map +1 -0
  43. package/dist/graph-merge/index.cjs +28 -5
  44. package/dist/graph-merge/index.cjs.map +1 -1
  45. package/dist/graph-merge/index.d.cts +7 -4
  46. package/dist/graph-merge/index.d.ts +7 -4
  47. package/dist/graph-merge/index.js +24 -1
  48. package/dist/graph-merge/index.js.map +1 -1
  49. package/dist/index.cjs.map +1 -1
  50. package/dist/index.d.cts +2 -2
  51. package/dist/index.d.ts +2 -2
  52. package/dist/index.js.map +1 -1
  53. package/dist/ingestion-import-target-XPxZYw89.d.cts +17 -0
  54. package/dist/ingestion-import-target-dNeL7iAv.d.ts +17 -0
  55. package/dist/interchange/index.cjs +25 -25
  56. package/dist/interchange/index.d.cts +9 -6
  57. package/dist/interchange/index.d.ts +9 -6
  58. package/dist/interchange/index.js +2 -2
  59. package/dist/profiler/index.d.cts +1 -1
  60. package/dist/profiler/index.d.ts +1 -1
  61. package/dist/provenance/index.d.cts +1 -1
  62. package/dist/provenance/index.d.ts +1 -1
  63. package/dist/{store-UzrGvZOo.d.ts → store-DRrFCx5x.d.ts} +9 -1
  64. package/dist/{store-JUVvtmR4.d.cts → store-bphCSo7z.d.cts} +9 -1
  65. package/package.json +2 -3
  66. package/dist/chunk-ACGSAMD3.js.map +0 -1
  67. package/dist/chunk-AX6JGVTZ.js.map +0 -1
  68. package/dist/chunk-OTUPEF2W.cjs.map +0 -1
  69. package/dist/chunk-WCCATHMB.cjs.map +0 -1
@@ -1,6 +1,7 @@
1
1
  import { dP as NodeId, dg as NodeType, bh as JsonValue, dw as EdgeId, d8 as GraphDef, dQ as NodeKinds, dD as GetNodeType, aM as GraphBackend, bi as KindAnnotations, dN as MetaEdge, dr as EdgeType, S as DeleteBehavior, ce as TemporalMode, I as IndexDeclaration, aQ as GraphExtensionVersion, ak as ExtensionNodeDef, ae as ExtensionEdgeDef, ap as ExtensionOntologyRelation, ai as ExtensionIndex } from '../types-BqFZTQmV.cjs';
2
2
  export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult } from '../types-BqFZTQmV.cjs';
3
- import { a as Store, aP as Node, ce as UniqueIntrospection } from '../store-JUVvtmR4.cjs';
3
+ import { I as IngestionImportTarget } from '../ingestion-import-target-XPxZYw89.cjs';
4
+ import { a as Store, az as IdentityAssertionWriteFacade, aQ as Node, cf as UniqueIntrospection } from '../store-bphCSo7z.cjs';
4
5
  import { aj as TypeGraphError, ak as TypeGraphErrorOptions } from '../index-COs_z6nV.cjs';
5
6
  import { R as Result } from '../result-DWo6mUVz.cjs';
6
7
  export { i as isErr, a as isOk, u as unwrap } from '../result-DWo6mUVz.cjs';
@@ -217,14 +218,16 @@ type IngestionNodeCollections<G extends GraphDef> = Readonly<{
217
218
  * merge planning, but cannot access schema evolution, transactions, or runtime
218
219
  * internals. `close()` releases the private working-copy backend.
219
220
  */
220
- type IngestionBranch<G extends GraphDef> = Readonly<{
221
+ type IngestionBranch<G extends GraphDef> = IngestionImportTarget<G> & Readonly<{
221
222
  [INGESTION_BRANCH_BRAND]: true;
222
223
  id: BranchId;
223
224
  base: BaseVersion;
224
225
  nodes: IngestionNodeCollections<G>;
225
226
  edges: Store<G>["edges"];
226
227
  close: () => Promise<void>;
227
- }>;
228
+ }> & ("identity" extends keyof Store<G> ? Readonly<{
229
+ identity: IdentityAssertionWriteFacade<G>;
230
+ }> : Readonly<Record<never, never>>);
228
231
  /** A normal branch or an opaque ingestion branch accepted by merge entrypoints. */
229
232
  type MergeBranch<G extends GraphDef> = GraphBranch<G> | IngestionBranch<G>;
230
233
  /**
@@ -1772,4 +1775,4 @@ type KeylessConfig = Readonly<{
1772
1775
  sortFields: readonly string[];
1773
1776
  }>;
1774
1777
 
1775
- export { type BaseAmbiguity, type BaseNodeLookup, type BaseVersion, BaseVersionMismatchError, BranchError, type BranchId, type BranchOptions, type BranchProvenance, type CandidateDiagnostic, type CandidateDiagnostics, type CandidateDiagnosticsOptions, type CandidateSource, CandidateSourceError, type ComparisonCeilingPolicy, type ConflictingValue, type DeleteModifyConflict, type DeleteModifyPolicy, type DroppedItem, type Embedder, type EntityRef, type EntityResolution, type GraphBranch, IdentityMergeConflictError, type IngestionBranch, type IngestionNodeCollections, InvalidMergeOptionsError, InvalidMergePlanError, type KeylessConfig, MERGE_ERROR_CODES, MERGE_OPTION_DEFAULTS, MERGE_PLAN_DIGEST_ALGORITHM, MERGE_PLAN_FORMAT_VERSION, type MakeBackend, type MatchEvidence, MatchEvidenceError, type MatchSource, type MatchStrategy, type MergeBranch, MergeConflictError, MergeConstraintConflictError, type MergeConstraintConflictErrorDetails, MergeError, type MergeIncrementalArgs, type MergeOptions, type MergePlanAnchors, type MergePlanArtifact, type MergePlanArtifactV1, type MergePlanArtifactV1Input, type MergePlanBranchAnchor, type MergePlanCandidateDiagnostic, type MergePlanCanonicalMapping, MergePlanCapabilityError, type MergePlanDiagnostics, type MergePlanDigest, MergePlanDigestMismatchError, type MergePlanEdgeDelete, type MergePlanEdgeUpsert, type MergePlanEntityRef, type MergePlanEntityResolution, type MergePlanGuards, type MergePlanIdentityAssertion, type MergePlanMatchEvidence, type MergePlanMatchSource, type MergePlanNodeDelete, type MergePlanNodeUpsert, MergePlanOriginMismatchError, type MergePlanProposedSummary, type MergePlanProvenanceOptions, type MergePlanRetype, type MergePlanReview, type MergePlanRevisionFence, type MergePlanSchemaFence, MergePlanSchemaMismatchError, type MergePlanSimilarityStrategy, type MergePlanTargetFence, MergePlanTargetMismatchError, type MergePlanTypeReconciliation, type MergePlanWrites, MergePlanningStaleError, type MergeReport, type MergedCounts, type NormalizedMergeOptions, type PropertyConflict, type PropertyConflictPolicy, type ProvenanceGraph, type ProvenanceIndex, type ProvenanceNode, type ProvenanceQuery, type ProvenanceRecord, type ReconcileTypesMode, type ResolveConfig, type ResolveMap, type ResolvedCluster, Result, type SimilarityStrategy, SimilarityUnavailableError, type SourceScope, StaleMergePlanError, type TypeReconciliation, UnsupportedMergePlanVersionError, VALIDITY_END_TARGET_PRECEDENCE, type ValidityEndResolution, type WorkingCopyStrategy, applyMergePlan, asBaseVersion, asBranchId, branch, cloneWorkingCopyStrategy, computeBaseVersion, ingestionBranch, merge, mergeIncremental, normalizeMergeOptions, openProvenanceStore, persistProvenanceRecords, planMerge, planMergeIncremental, provenanceGraphId, readProvenance };
1778
+ export { type BaseAmbiguity, type BaseNodeLookup, type BaseVersion, BaseVersionMismatchError, BranchError, type BranchId, type BranchOptions, type BranchProvenance, type CandidateDiagnostic, type CandidateDiagnostics, type CandidateDiagnosticsOptions, type CandidateSource, CandidateSourceError, type ComparisonCeilingPolicy, type ConflictingValue, type DeleteModifyConflict, type DeleteModifyPolicy, type DroppedItem, type Embedder, type EntityRef, type EntityResolution, type GraphBranch, IdentityAssertionWriteFacade, IdentityMergeConflictError, type IngestionBranch, IngestionImportTarget, type IngestionNodeCollections, InvalidMergeOptionsError, InvalidMergePlanError, type KeylessConfig, MERGE_ERROR_CODES, MERGE_OPTION_DEFAULTS, MERGE_PLAN_DIGEST_ALGORITHM, MERGE_PLAN_FORMAT_VERSION, type MakeBackend, type MatchEvidence, MatchEvidenceError, type MatchSource, type MatchStrategy, type MergeBranch, MergeConflictError, MergeConstraintConflictError, type MergeConstraintConflictErrorDetails, MergeError, type MergeIncrementalArgs, type MergeOptions, type MergePlanAnchors, type MergePlanArtifact, type MergePlanArtifactV1, type MergePlanArtifactV1Input, type MergePlanBranchAnchor, type MergePlanCandidateDiagnostic, type MergePlanCanonicalMapping, MergePlanCapabilityError, type MergePlanDiagnostics, type MergePlanDigest, MergePlanDigestMismatchError, type MergePlanEdgeDelete, type MergePlanEdgeUpsert, type MergePlanEntityRef, type MergePlanEntityResolution, type MergePlanGuards, type MergePlanIdentityAssertion, type MergePlanMatchEvidence, type MergePlanMatchSource, type MergePlanNodeDelete, type MergePlanNodeUpsert, MergePlanOriginMismatchError, type MergePlanProposedSummary, type MergePlanProvenanceOptions, type MergePlanRetype, type MergePlanReview, type MergePlanRevisionFence, type MergePlanSchemaFence, MergePlanSchemaMismatchError, type MergePlanSimilarityStrategy, type MergePlanTargetFence, MergePlanTargetMismatchError, type MergePlanTypeReconciliation, type MergePlanWrites, MergePlanningStaleError, type MergeReport, type MergedCounts, type NormalizedMergeOptions, type PropertyConflict, type PropertyConflictPolicy, type ProvenanceGraph, type ProvenanceIndex, type ProvenanceNode, type ProvenanceQuery, type ProvenanceRecord, type ReconcileTypesMode, type ResolveConfig, type ResolveMap, type ResolvedCluster, Result, type SimilarityStrategy, SimilarityUnavailableError, type SourceScope, StaleMergePlanError, type TypeReconciliation, UnsupportedMergePlanVersionError, VALIDITY_END_TARGET_PRECEDENCE, type ValidityEndResolution, type WorkingCopyStrategy, applyMergePlan, asBaseVersion, asBranchId, branch, cloneWorkingCopyStrategy, computeBaseVersion, ingestionBranch, merge, mergeIncremental, normalizeMergeOptions, openProvenanceStore, persistProvenanceRecords, planMerge, planMergeIncremental, provenanceGraphId, readProvenance };
@@ -1,6 +1,7 @@
1
1
  import { dP as NodeId, dg as NodeType, bh as JsonValue, dw as EdgeId, d8 as GraphDef, dQ as NodeKinds, dD as GetNodeType, aM as GraphBackend, bi as KindAnnotations, dN as MetaEdge, dr as EdgeType, S as DeleteBehavior, ce as TemporalMode, I as IndexDeclaration, aQ as GraphExtensionVersion, ak as ExtensionNodeDef, ae as ExtensionEdgeDef, ap as ExtensionOntologyRelation, ai as ExtensionIndex } from '../types-BqFZTQmV.js';
2
2
  export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult } from '../types-BqFZTQmV.js';
3
- import { a as Store, aP as Node, ce as UniqueIntrospection } from '../store-UzrGvZOo.js';
3
+ import { I as IngestionImportTarget } from '../ingestion-import-target-dNeL7iAv.js';
4
+ import { a as Store, az as IdentityAssertionWriteFacade, aQ as Node, cf as UniqueIntrospection } from '../store-DRrFCx5x.js';
4
5
  import { aj as TypeGraphError, ak as TypeGraphErrorOptions } from '../index-D7d1u2gr.js';
5
6
  import { R as Result } from '../result-DWo6mUVz.js';
6
7
  export { i as isErr, a as isOk, u as unwrap } from '../result-DWo6mUVz.js';
@@ -217,14 +218,16 @@ type IngestionNodeCollections<G extends GraphDef> = Readonly<{
217
218
  * merge planning, but cannot access schema evolution, transactions, or runtime
218
219
  * internals. `close()` releases the private working-copy backend.
219
220
  */
220
- type IngestionBranch<G extends GraphDef> = Readonly<{
221
+ type IngestionBranch<G extends GraphDef> = IngestionImportTarget<G> & Readonly<{
221
222
  [INGESTION_BRANCH_BRAND]: true;
222
223
  id: BranchId;
223
224
  base: BaseVersion;
224
225
  nodes: IngestionNodeCollections<G>;
225
226
  edges: Store<G>["edges"];
226
227
  close: () => Promise<void>;
227
- }>;
228
+ }> & ("identity" extends keyof Store<G> ? Readonly<{
229
+ identity: IdentityAssertionWriteFacade<G>;
230
+ }> : Readonly<Record<never, never>>);
228
231
  /** A normal branch or an opaque ingestion branch accepted by merge entrypoints. */
229
232
  type MergeBranch<G extends GraphDef> = GraphBranch<G> | IngestionBranch<G>;
230
233
  /**
@@ -1772,4 +1775,4 @@ type KeylessConfig = Readonly<{
1772
1775
  sortFields: readonly string[];
1773
1776
  }>;
1774
1777
 
1775
- export { type BaseAmbiguity, type BaseNodeLookup, type BaseVersion, BaseVersionMismatchError, BranchError, type BranchId, type BranchOptions, type BranchProvenance, type CandidateDiagnostic, type CandidateDiagnostics, type CandidateDiagnosticsOptions, type CandidateSource, CandidateSourceError, type ComparisonCeilingPolicy, type ConflictingValue, type DeleteModifyConflict, type DeleteModifyPolicy, type DroppedItem, type Embedder, type EntityRef, type EntityResolution, type GraphBranch, IdentityMergeConflictError, type IngestionBranch, type IngestionNodeCollections, InvalidMergeOptionsError, InvalidMergePlanError, type KeylessConfig, MERGE_ERROR_CODES, MERGE_OPTION_DEFAULTS, MERGE_PLAN_DIGEST_ALGORITHM, MERGE_PLAN_FORMAT_VERSION, type MakeBackend, type MatchEvidence, MatchEvidenceError, type MatchSource, type MatchStrategy, type MergeBranch, MergeConflictError, MergeConstraintConflictError, type MergeConstraintConflictErrorDetails, MergeError, type MergeIncrementalArgs, type MergeOptions, type MergePlanAnchors, type MergePlanArtifact, type MergePlanArtifactV1, type MergePlanArtifactV1Input, type MergePlanBranchAnchor, type MergePlanCandidateDiagnostic, type MergePlanCanonicalMapping, MergePlanCapabilityError, type MergePlanDiagnostics, type MergePlanDigest, MergePlanDigestMismatchError, type MergePlanEdgeDelete, type MergePlanEdgeUpsert, type MergePlanEntityRef, type MergePlanEntityResolution, type MergePlanGuards, type MergePlanIdentityAssertion, type MergePlanMatchEvidence, type MergePlanMatchSource, type MergePlanNodeDelete, type MergePlanNodeUpsert, MergePlanOriginMismatchError, type MergePlanProposedSummary, type MergePlanProvenanceOptions, type MergePlanRetype, type MergePlanReview, type MergePlanRevisionFence, type MergePlanSchemaFence, MergePlanSchemaMismatchError, type MergePlanSimilarityStrategy, type MergePlanTargetFence, MergePlanTargetMismatchError, type MergePlanTypeReconciliation, type MergePlanWrites, MergePlanningStaleError, type MergeReport, type MergedCounts, type NormalizedMergeOptions, type PropertyConflict, type PropertyConflictPolicy, type ProvenanceGraph, type ProvenanceIndex, type ProvenanceNode, type ProvenanceQuery, type ProvenanceRecord, type ReconcileTypesMode, type ResolveConfig, type ResolveMap, type ResolvedCluster, Result, type SimilarityStrategy, SimilarityUnavailableError, type SourceScope, StaleMergePlanError, type TypeReconciliation, UnsupportedMergePlanVersionError, VALIDITY_END_TARGET_PRECEDENCE, type ValidityEndResolution, type WorkingCopyStrategy, applyMergePlan, asBaseVersion, asBranchId, branch, cloneWorkingCopyStrategy, computeBaseVersion, ingestionBranch, merge, mergeIncremental, normalizeMergeOptions, openProvenanceStore, persistProvenanceRecords, planMerge, planMergeIncremental, provenanceGraphId, readProvenance };
1778
+ export { type BaseAmbiguity, type BaseNodeLookup, type BaseVersion, BaseVersionMismatchError, BranchError, type BranchId, type BranchOptions, type BranchProvenance, type CandidateDiagnostic, type CandidateDiagnostics, type CandidateDiagnosticsOptions, type CandidateSource, CandidateSourceError, type ComparisonCeilingPolicy, type ConflictingValue, type DeleteModifyConflict, type DeleteModifyPolicy, type DroppedItem, type Embedder, type EntityRef, type EntityResolution, type GraphBranch, IdentityAssertionWriteFacade, IdentityMergeConflictError, type IngestionBranch, IngestionImportTarget, type IngestionNodeCollections, InvalidMergeOptionsError, InvalidMergePlanError, type KeylessConfig, MERGE_ERROR_CODES, MERGE_OPTION_DEFAULTS, MERGE_PLAN_DIGEST_ALGORITHM, MERGE_PLAN_FORMAT_VERSION, type MakeBackend, type MatchEvidence, MatchEvidenceError, type MatchSource, type MatchStrategy, type MergeBranch, MergeConflictError, MergeConstraintConflictError, type MergeConstraintConflictErrorDetails, MergeError, type MergeIncrementalArgs, type MergeOptions, type MergePlanAnchors, type MergePlanArtifact, type MergePlanArtifactV1, type MergePlanArtifactV1Input, type MergePlanBranchAnchor, type MergePlanCandidateDiagnostic, type MergePlanCanonicalMapping, MergePlanCapabilityError, type MergePlanDiagnostics, type MergePlanDigest, MergePlanDigestMismatchError, type MergePlanEdgeDelete, type MergePlanEdgeUpsert, type MergePlanEntityRef, type MergePlanEntityResolution, type MergePlanGuards, type MergePlanIdentityAssertion, type MergePlanMatchEvidence, type MergePlanMatchSource, type MergePlanNodeDelete, type MergePlanNodeUpsert, MergePlanOriginMismatchError, type MergePlanProposedSummary, type MergePlanProvenanceOptions, type MergePlanRetype, type MergePlanReview, type MergePlanRevisionFence, type MergePlanSchemaFence, MergePlanSchemaMismatchError, type MergePlanSimilarityStrategy, type MergePlanTargetFence, MergePlanTargetMismatchError, type MergePlanTypeReconciliation, type MergePlanWrites, MergePlanningStaleError, type MergeReport, type MergedCounts, type NormalizedMergeOptions, type PropertyConflict, type PropertyConflictPolicy, type ProvenanceGraph, type ProvenanceIndex, type ProvenanceNode, type ProvenanceQuery, type ProvenanceRecord, type ReconcileTypesMode, type ResolveConfig, type ResolveMap, type ResolvedCluster, Result, type SimilarityStrategy, SimilarityUnavailableError, type SourceScope, StaleMergePlanError, type TypeReconciliation, UnsupportedMergePlanVersionError, VALIDITY_END_TARGET_PRECEDENCE, type ValidityEndResolution, type WorkingCopyStrategy, applyMergePlan, asBaseVersion, asBranchId, branch, cloneWorkingCopyStrategy, computeBaseVersion, ingestionBranch, merge, mergeIncremental, normalizeMergeOptions, openProvenanceStore, persistProvenanceRecords, planMerge, planMergeIncremental, provenanceGraphId, readProvenance };
@@ -1,6 +1,6 @@
1
1
  import { createStoreWithSchema } from '../chunk-BRRP76WO.js';
2
2
  import '../chunk-YIURNGXI.js';
3
- import { importGraphStream, exportGraphStream, importGraph, exportGraph } from '../chunk-AX6JGVTZ.js';
3
+ import { importGraphStream, exportGraphStream, importGraph, exportGraph, registerIngestionImportTarget } from '../chunk-LTXQOEIC.js';
4
4
  import '../chunk-KF6K7TGH.js';
5
5
  import { storeBackend, storeRuntime, transactionBackend } from '../chunk-I4GAZH5Z.js';
6
6
  import { computeSchemaHash, serializeSchema } from '../chunk-2TYSSBU5.js';
@@ -2013,6 +2013,22 @@ async function captureBranchSchemaAnchor(store) {
2013
2013
 
2014
2014
  // src/graph-merge/ingestion-branch.ts
2015
2015
  var PRIVATE_BRANCHES = /* @__PURE__ */ new WeakMap();
2016
+ function createIngestionIdentityFacade(identity) {
2017
+ return Object.freeze({
2018
+ assertSame(a, b, window) {
2019
+ return identity.assertSame(a, b, window);
2020
+ },
2021
+ assertDifferent(a, b, window) {
2022
+ return identity.assertDifferent(a, b, window);
2023
+ },
2024
+ bulkAssertSame(pairs) {
2025
+ return identity.bulkAssertSame(pairs);
2026
+ },
2027
+ bulkAssertDifferent(pairs) {
2028
+ return identity.bulkAssertDifferent(pairs);
2029
+ }
2030
+ });
2031
+ }
2016
2032
  async function ingestionBranch(baseStore, makeBackend, options) {
2017
2033
  try {
2018
2034
  const created = await branch(
@@ -2030,14 +2046,21 @@ async function ingestionBranch(baseStore, makeBackend, options) {
2030
2046
  }
2031
2047
  const privateBranch = created.data;
2032
2048
  const { base, id, store } = privateBranch;
2049
+ const identityAccess = store.graph.identity === void 0 ? {} : {
2050
+ identity: createIngestionIdentityFacade(
2051
+ store.identity
2052
+ )
2053
+ };
2033
2054
  const handle = Object.freeze({
2034
2055
  id,
2035
2056
  base,
2036
2057
  nodes: store.nodes,
2037
2058
  edges: store.edges,
2059
+ ...identityAccess,
2038
2060
  close: async () => storeBackend(store).close()
2039
2061
  });
2040
2062
  PRIVATE_BRANCHES.set(handle, privateBranch);
2063
+ registerIngestionImportTarget(handle, store);
2041
2064
  return ok(handle);
2042
2065
  } catch (error) {
2043
2066
  return err(