@nicia-ai/typegraph 0.58.0 → 0.60.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.
- package/CHANGELOG.md +42 -0
- package/README.md +15 -0
- package/dist/{atomic-mutation-program-CPcn0ZPu.d.ts → atomic-mutation-program-BNvJ13bq.d.ts} +1 -1
- package/dist/{atomic-mutation-program-AqOe51XD.d.cts → atomic-mutation-program-DOVE147J.d.cts} +1 -1
- package/dist/backend/drizzle/engine/index.cjs +8 -8
- package/dist/backend/drizzle/engine/index.d.cts +9 -9
- package/dist/backend/drizzle/engine/index.d.ts +9 -9
- package/dist/backend/drizzle/engine/index.js +3 -3
- package/dist/backend/drizzle/indexes.cjs +6 -6
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/drizzle/indexes.js +2 -2
- package/dist/backend/index.d.cts +7 -7
- package/dist/backend/index.d.ts +7 -7
- package/dist/backend/postgres/index.cjs +17 -17
- package/dist/backend/postgres/index.d.cts +8 -8
- package/dist/backend/postgres/index.d.ts +8 -8
- package/dist/backend/postgres/index.js +3 -3
- package/dist/backend/postgres/pglite-store.cjs +1 -1
- package/dist/backend/postgres/pglite-store.d.cts +6 -6
- package/dist/backend/postgres/pglite-store.d.ts +6 -6
- package/dist/backend/postgres/pglite-store.js +1 -1
- package/dist/backend/postgres/pglite.cjs +5 -5
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +4 -4
- package/dist/backend/sqlite/index.cjs +16 -16
- package/dist/backend/sqlite/index.d.cts +7 -7
- package/dist/backend/sqlite/index.d.ts +7 -7
- package/dist/backend/sqlite/index.js +3 -3
- package/dist/backend/sqlite/libsql.cjs +7 -7
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +3 -3
- package/dist/backend/sqlite/local-store.cjs +1 -1
- package/dist/backend/sqlite/local-store.d.cts +6 -6
- package/dist/backend/sqlite/local-store.d.ts +6 -6
- package/dist/backend/sqlite/local-store.js +1 -1
- package/dist/backend/sqlite/local.cjs +5 -5
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +4 -4
- package/dist/{chunk-7JUD57B4.js → chunk-2DKIJP2R.js} +1044 -84
- package/dist/chunk-2DKIJP2R.js.map +1 -0
- package/dist/{chunk-QIKO6DL5.js → chunk-2QNFFAMF.js} +3 -3
- package/dist/{chunk-QIKO6DL5.js.map → chunk-2QNFFAMF.js.map} +1 -1
- package/dist/{chunk-6BVZHDAZ.js → chunk-43DOTETB.js} +3 -3
- package/dist/{chunk-6BVZHDAZ.js.map → chunk-43DOTETB.js.map} +1 -1
- package/dist/{chunk-US3BLFWM.js → chunk-7GNPCBS2.js} +3 -3
- package/dist/{chunk-US3BLFWM.js.map → chunk-7GNPCBS2.js.map} +1 -1
- package/dist/{chunk-IV5W7LKW.cjs → chunk-A22XPVBQ.cjs} +2 -2
- package/dist/chunk-A22XPVBQ.cjs.map +1 -0
- package/dist/{chunk-CVO2ZPW5.js → chunk-B4P4DAW3.js} +4 -4
- package/dist/{chunk-CVO2ZPW5.js.map → chunk-B4P4DAW3.js.map} +1 -1
- package/dist/{chunk-FHFPUORN.cjs → chunk-CNFKFE5L.cjs} +1375 -415
- package/dist/chunk-CNFKFE5L.cjs.map +1 -0
- package/dist/{chunk-4MZQVVPX.cjs → chunk-D5CHUSW7.cjs} +33 -2
- package/dist/chunk-D5CHUSW7.cjs.map +1 -0
- package/dist/{chunk-TKEJR2UL.cjs → chunk-DWO6WZP5.cjs} +6 -6
- package/dist/{chunk-TKEJR2UL.cjs.map → chunk-DWO6WZP5.cjs.map} +1 -1
- package/dist/{chunk-GUMNJJFP.cjs → chunk-EHDLHPMK.cjs} +9 -9
- package/dist/{chunk-GUMNJJFP.cjs.map → chunk-EHDLHPMK.cjs.map} +1 -1
- package/dist/{chunk-DV24YZHG.js → chunk-FTDRMXIJ.js} +6 -6
- package/dist/{chunk-DV24YZHG.js.map → chunk-FTDRMXIJ.js.map} +1 -1
- package/dist/{chunk-BYBMDK6X.js → chunk-GYOQAV6R.js} +3 -3
- package/dist/{chunk-BYBMDK6X.js.map → chunk-GYOQAV6R.js.map} +1 -1
- package/dist/{chunk-GTW5YKFV.js → chunk-HCNC53MU.js} +3 -3
- package/dist/{chunk-GTW5YKFV.js.map → chunk-HCNC53MU.js.map} +1 -1
- package/dist/{chunk-M7TRJXFE.js → chunk-ILVXUOQY.js} +3 -3
- package/dist/{chunk-M7TRJXFE.js.map → chunk-ILVXUOQY.js.map} +1 -1
- package/dist/{chunk-FGKWXSHF.cjs → chunk-KGQVK2II.cjs} +40 -40
- package/dist/{chunk-FGKWXSHF.cjs.map → chunk-KGQVK2II.cjs.map} +1 -1
- package/dist/{chunk-BMATB57B.cjs → chunk-KW3ON5IU.cjs} +11 -11
- package/dist/{chunk-BMATB57B.cjs.map → chunk-KW3ON5IU.cjs.map} +1 -1
- package/dist/{chunk-GK62U3S5.js → chunk-LOFUF6L7.js} +3 -3
- package/dist/{chunk-GK62U3S5.js.map → chunk-LOFUF6L7.js.map} +1 -1
- package/dist/{chunk-BPYZUJX5.cjs → chunk-MTJAT6UO.cjs} +5 -5
- package/dist/{chunk-BPYZUJX5.cjs.map → chunk-MTJAT6UO.cjs.map} +1 -1
- package/dist/{chunk-YTYB5KCQ.js → chunk-OH7QRGPQ.js} +33 -2
- package/dist/chunk-OH7QRGPQ.js.map +1 -0
- package/dist/{chunk-U53HFE4L.cjs → chunk-OKA6H3B3.cjs} +22 -22
- package/dist/{chunk-U53HFE4L.cjs.map → chunk-OKA6H3B3.cjs.map} +1 -1
- package/dist/{chunk-QR6V2BXA.cjs → chunk-PTFO3JI5.cjs} +114 -114
- package/dist/{chunk-QR6V2BXA.cjs.map → chunk-PTFO3JI5.cjs.map} +1 -1
- package/dist/{chunk-C3CN2C2T.cjs → chunk-Q6ZVQWH7.cjs} +38 -38
- package/dist/{chunk-C3CN2C2T.cjs.map → chunk-Q6ZVQWH7.cjs.map} +1 -1
- package/dist/{chunk-WAG3NVD7.cjs → chunk-QBQ465OX.cjs} +12 -12
- package/dist/{chunk-WAG3NVD7.cjs.map → chunk-QBQ465OX.cjs.map} +1 -1
- package/dist/{chunk-CRROO6PK.cjs → chunk-QHP2BCBJ.cjs} +4 -4
- package/dist/{chunk-CRROO6PK.cjs.map → chunk-QHP2BCBJ.cjs.map} +1 -1
- package/dist/{chunk-HWWPL2YL.js → chunk-QWIR5533.js} +2 -2
- package/dist/chunk-QWIR5533.js.map +1 -0
- package/dist/{chunk-ZHLWPHNT.cjs → chunk-RJ3GVX73.cjs} +6 -6
- package/dist/{chunk-ZHLWPHNT.cjs.map → chunk-RJ3GVX73.cjs.map} +1 -1
- package/dist/{chunk-SYKR6MVR.cjs → chunk-T2M2S5YZ.cjs} +59 -59
- package/dist/{chunk-SYKR6MVR.cjs.map → chunk-T2M2S5YZ.cjs.map} +1 -1
- package/dist/{chunk-OESX3T5K.js → chunk-TNNDNSNH.js} +4 -4
- package/dist/{chunk-OESX3T5K.js.map → chunk-TNNDNSNH.js.map} +1 -1
- package/dist/{chunk-5C4OYYDD.js → chunk-UVQMUBZ6.js} +6 -6
- package/dist/{chunk-5C4OYYDD.js.map → chunk-UVQMUBZ6.js.map} +1 -1
- package/dist/{chunk-IV3FENV2.js → chunk-W6K6NSRT.js} +5 -5
- package/dist/{chunk-IV3FENV2.js.map → chunk-W6K6NSRT.js.map} +1 -1
- package/dist/core/index.d.cts +3 -3
- package/dist/core/index.d.ts +3 -3
- package/dist/{ddl-wlEdaCQK.d.cts → ddl-B9lzB8Zi.d.cts} +3 -3
- package/dist/{ddl-DkFrUTn_.d.ts → ddl-DuZWvxBb.d.ts} +3 -3
- package/dist/graph-extension/index.d.cts +2 -2
- package/dist/graph-extension/index.d.ts +2 -2
- package/dist/graph-merge/index.cjs +122 -122
- package/dist/graph-merge/index.d.cts +7 -6
- package/dist/graph-merge/index.d.ts +7 -6
- package/dist/graph-merge/index.js +10 -10
- package/dist/{graph-templates-B4gkXVqg.d.ts → graph-templates-ClBhrXiA.d.ts} +2 -2
- package/dist/{graph-templates-6zTU7bNe.d.cts → graph-templates-DfmKDARd.d.cts} +2 -2
- package/dist/index.cjs +73 -73
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +11 -11
- package/dist/indexes/index.cjs +8 -8
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/indexes/index.js +3 -3
- package/dist/{ingestion-import-target-im9wEB00.d.cts → ingestion-import-target-BSgJagqI.d.cts} +1 -1
- package/dist/{ingestion-import-target-SopMSm-T.d.ts → ingestion-import-target-PNw10V4T.d.ts} +1 -1
- package/dist/interchange/index.cjs +29 -29
- package/dist/interchange/index.d.cts +7 -6
- package/dist/interchange/index.d.ts +7 -6
- package/dist/interchange/index.js +6 -6
- package/dist/{local-store-impl-ARNXBBSF.cjs → local-store-impl-QGSRYFZF.cjs} +17 -17
- package/dist/{local-store-impl-ARNXBBSF.cjs.map → local-store-impl-QGSRYFZF.cjs.map} +1 -1
- package/dist/{local-store-impl-FTGRP2V7.js → local-store-impl-VEVK2VGA.js} +14 -14
- package/dist/{local-store-impl-FTGRP2V7.js.map → local-store-impl-VEVK2VGA.js.map} +1 -1
- package/dist/{pglite-store-impl-CNQZYRBC.cjs → pglite-store-impl-33CI3P3M.cjs} +17 -17
- package/dist/{pglite-store-impl-CNQZYRBC.cjs.map → pglite-store-impl-33CI3P3M.cjs.map} +1 -1
- package/dist/{pglite-store-impl-NULC2IHH.js → pglite-store-impl-RDPTOOP3.js} +14 -14
- package/dist/{pglite-store-impl-NULC2IHH.js.map → pglite-store-impl-RDPTOOP3.js.map} +1 -1
- package/dist/{postgres-Dd3TrFku.d.ts → postgres-2FBMdOE_.d.ts} +3 -3
- package/dist/{postgres-cLQPlKtp.d.cts → postgres-BR3AeXm9.d.ts} +1 -1
- package/dist/{postgres-CLPfTNYN.d.ts → postgres-CRatyTVL.d.cts} +1 -1
- package/dist/{postgres-B4VD_rVy.d.cts → postgres-lbZf0zyg.d.cts} +3 -3
- package/dist/{profile-Co154QBx.d.ts → profile-BipG05-8.d.ts} +2 -2
- package/dist/{profile-BqThShR_.d.cts → profile-DKtvxVyA.d.cts} +2 -2
- package/dist/profiler/index.d.cts +8 -7
- package/dist/profiler/index.d.ts +8 -7
- package/dist/provenance/index.cjs +15 -15
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +6 -5
- package/dist/provenance/index.d.ts +6 -5
- package/dist/provenance/index.js +2 -2
- package/dist/provenance/index.js.map +1 -1
- package/dist/{repair-validity-windows-BLoClfCq.d.cts → repair-validity-windows-BnSHFIsR.d.cts} +1 -1
- package/dist/{repair-validity-windows-C__28ckL.d.ts → repair-validity-windows-DfRb4gZm.d.ts} +1 -1
- package/dist/{resolve-DgFSIK99.d.ts → resolve-BbjZDYTw.d.ts} +1 -1
- package/dist/{resolve-DSUxNIqw.d.cts → resolve-mLksuBg2.d.cts} +1 -1
- package/dist/schema/index.cjs +36 -36
- package/dist/schema/index.d.cts +7 -7
- package/dist/schema/index.d.ts +7 -7
- package/dist/schema/index.js +6 -6
- package/dist/{searchable-CZKn12eY.d.cts → searchable-BEAN91Ce.d.cts} +1 -1
- package/dist/{searchable-CUWWphQI.d.ts → searchable-Bg2lMPRm.d.ts} +1 -1
- package/dist/{sqlite-mSd_eVk4.d.ts → sqlite-Cal3rHgZ.d.ts} +3 -3
- package/dist/{sqlite-RdH7w-ix.d.cts → sqlite-CvajLABd.d.cts} +1 -1
- package/dist/{sqlite-qXLIybR2.d.cts → sqlite-DQxKoWAH.d.cts} +3 -3
- package/dist/{sqlite-CoBmhiFd.d.ts → sqlite-jH5J-Jb8.d.ts} +1 -1
- package/dist/{store-BzmMsCcw.d.ts → store-B5WZ8E5m.d.ts} +313 -177
- package/dist/{store-CL6uTm_W.d.cts → store-DdhFpX53.d.cts} +313 -177
- package/dist/{types-BUoh7cc3.d.cts → types-BUA3dZ99.d.cts} +1 -1
- package/dist/{types-ClC0IFIS.d.ts → types-CPtb7KNf.d.ts} +1 -1
- package/dist/{types-Blq8PG_N.d.cts → types-Dky3sCFz.d.cts} +9 -0
- package/dist/{types-Blq8PG_N.d.ts → types-Dky3sCFz.d.ts} +9 -0
- package/dist/{where-61C-QoM8.d.ts → where-BReEkAiy.d.ts} +1 -1
- package/dist/{where-o3Me5iJx.d.cts → where-Cz11nPRu.d.cts} +1 -1
- package/package.json +2 -2
- package/dist/chunk-4MZQVVPX.cjs.map +0 -1
- package/dist/chunk-7JUD57B4.js.map +0 -1
- package/dist/chunk-FHFPUORN.cjs.map +0 -1
- package/dist/chunk-HWWPL2YL.js.map +0 -1
- package/dist/chunk-IV5W7LKW.cjs.map +0 -1
- package/dist/chunk-YTYB5KCQ.js.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkPTFO3JI5_cjs = require('./chunk-PTFO3JI5.cjs');
|
|
4
|
+
var chunkMTJAT6UO_cjs = require('./chunk-MTJAT6UO.cjs');
|
|
5
5
|
var chunkGD7IWK36_cjs = require('./chunk-GD7IWK36.cjs');
|
|
6
|
-
var
|
|
7
|
-
var
|
|
6
|
+
var chunkQ6ZVQWH7_cjs = require('./chunk-Q6ZVQWH7.cjs');
|
|
7
|
+
var chunkA22XPVBQ_cjs = require('./chunk-A22XPVBQ.cjs');
|
|
8
8
|
var chunkOGK7F2J3_cjs = require('./chunk-OGK7F2J3.cjs');
|
|
9
9
|
var chunkEOLNL35G_cjs = require('./chunk-EOLNL35G.cjs');
|
|
10
10
|
var chunk6ODVH5SA_cjs = require('./chunk-6ODVH5SA.cjs');
|
|
@@ -251,7 +251,7 @@ function resolveIngestionImportTarget(target) {
|
|
|
251
251
|
const registeredStore = INGESTION_IMPORT_TARGETS.get(target);
|
|
252
252
|
if (registeredStore !== void 0) return registeredStore;
|
|
253
253
|
try {
|
|
254
|
-
|
|
254
|
+
chunkA22XPVBQ_cjs.storeBackend(target);
|
|
255
255
|
return target;
|
|
256
256
|
} catch (error) {
|
|
257
257
|
throw new chunkG7W67PZO_cjs.ConfigurationError(
|
|
@@ -286,7 +286,7 @@ async function importGraph(target, data, rawOptions) {
|
|
|
286
286
|
}
|
|
287
287
|
async function withImportStreamLease(store, run) {
|
|
288
288
|
const lease = chunkEOLNL35G_cjs.acquireSerializedStreamLease(
|
|
289
|
-
|
|
289
|
+
chunkA22XPVBQ_cjs.storeBackend(store),
|
|
290
290
|
"import-stream"
|
|
291
291
|
);
|
|
292
292
|
if (!lease.acquired) {
|
|
@@ -366,19 +366,19 @@ async function importGraphData(store, data, options) {
|
|
|
366
366
|
validateIdentitySection(data.identity);
|
|
367
367
|
const graph = store.graph;
|
|
368
368
|
const graphId = store.graphId;
|
|
369
|
-
const backend =
|
|
370
|
-
const runtime =
|
|
369
|
+
const backend = chunkA22XPVBQ_cjs.storeBackend(store);
|
|
370
|
+
const runtime = chunkA22XPVBQ_cjs.storeRuntime(store);
|
|
371
371
|
const registry = store.registry;
|
|
372
372
|
const batchPointRead = chunkOGK7F2J3_cjs.batchPointReadVerdict(backend);
|
|
373
373
|
const uniqueSidecarBatch = chunkOGK7F2J3_cjs.uniqueSidecarBatchVerdict(backend);
|
|
374
374
|
const statementExecution = chunkOGK7F2J3_cjs.statementExecutionVerdict(backend);
|
|
375
|
-
const owedClaimReason =
|
|
376
|
-
const claimRefusal = owedClaimReason === void 0 ? void 0 :
|
|
375
|
+
const owedClaimReason = chunkPTFO3JI5_cjs.graphOwesClaims(graph, registry);
|
|
376
|
+
const claimRefusal = owedClaimReason === void 0 ? void 0 : chunkA22XPVBQ_cjs.constraintFenceRefusal({ graphId }, backend, owedClaimReason);
|
|
377
377
|
if (claimRefusal !== void 0) throw claimRefusal;
|
|
378
378
|
const nodeSchemas = buildNodeSchemaMap(graph);
|
|
379
379
|
const edgeSchemas = buildEdgeSchemaMap(graph);
|
|
380
380
|
for (const [kind, entry] of edgeSchemas) {
|
|
381
|
-
|
|
381
|
+
chunkQ6ZVQWH7_cjs.assertEdgeMatchIdentityBackendSupport(
|
|
382
382
|
entry.registration.matchIdentity,
|
|
383
383
|
backend.capabilities,
|
|
384
384
|
kind
|
|
@@ -396,7 +396,7 @@ async function importGraphData(store, data, options) {
|
|
|
396
396
|
uniqueSidecarBatch,
|
|
397
397
|
statementExecution
|
|
398
398
|
};
|
|
399
|
-
const { result, errors } = await
|
|
399
|
+
const { result, errors } = await chunkPTFO3JI5_cjs.runWritePlan(
|
|
400
400
|
{
|
|
401
401
|
graphId,
|
|
402
402
|
registry,
|
|
@@ -413,7 +413,7 @@ async function importGraphData(store, data, options) {
|
|
|
413
413
|
// whether node/edge-operations write to TypeGraph's own recorded
|
|
414
414
|
// relations — engine-native `history: true` never does, even though
|
|
415
415
|
// the public getter now answers `true` for it too.
|
|
416
|
-
historyEnabled:
|
|
416
|
+
historyEnabled: chunkA22XPVBQ_cjs.storeCaptureEnabled(store),
|
|
417
417
|
revisionTrackingEnabled: store.revisionTrackingEnabled,
|
|
418
418
|
revisionSchema: store.revisionSchema,
|
|
419
419
|
// HOW this caller takes position 3. `lockIdentityImportTarget` is
|
|
@@ -424,7 +424,7 @@ async function importGraphData(store, data, options) {
|
|
|
424
424
|
},
|
|
425
425
|
// An import writes node rows AND edge rows in one frame, so it declares the
|
|
426
426
|
// mixed family explicitly instead of receiving either narrower session.
|
|
427
|
-
|
|
427
|
+
chunkPTFO3JI5_cjs.mixedWritePlan(void 0, true),
|
|
428
428
|
backend,
|
|
429
429
|
(session, target, overlaidSession, _lock, transactionMode) => runImportWritePlanAttempt(
|
|
430
430
|
attemptInputs,
|
|
@@ -445,7 +445,7 @@ async function importGraphStream(target, chunks, rawOptions) {
|
|
|
445
445
|
const store = resolveIngestionImportTarget(target);
|
|
446
446
|
const options = ImportOptionsSchema.parse(rawOptions);
|
|
447
447
|
const sourceBackend = exportStreamBackend(chunks);
|
|
448
|
-
const targetBackend =
|
|
448
|
+
const targetBackend = chunkA22XPVBQ_cjs.storeBackend(store);
|
|
449
449
|
const contention = sourceBackend === void 0 ? void 0 : chunkEOLNL35G_cjs.snapshotExportContention(sourceBackend, targetBackend);
|
|
450
450
|
if (contention !== void 0) {
|
|
451
451
|
throw serializedStreamRefusal({
|
|
@@ -702,7 +702,7 @@ function asIdentityImportError(assertions, graphId, error) {
|
|
|
702
702
|
}
|
|
703
703
|
function taggedAssertion(assertions, error) {
|
|
704
704
|
if (typeof error !== "object" || error === null) return void 0;
|
|
705
|
-
const id = error[
|
|
705
|
+
const id = error[chunkQ6ZVQWH7_cjs.IDENTITY_IMPORT_FAILED_ASSERTION];
|
|
706
706
|
if (typeof id !== "string") return void 0;
|
|
707
707
|
return assertions.find((candidate) => candidate.id === id);
|
|
708
708
|
}
|
|
@@ -733,7 +733,7 @@ function identityImportProgress(error) {
|
|
|
733
733
|
if (typeof error !== "object" || error === null) {
|
|
734
734
|
return { created: 0, skipped: 0 };
|
|
735
735
|
}
|
|
736
|
-
const progress = error[
|
|
736
|
+
const progress = error[chunkQ6ZVQWH7_cjs.IDENTITY_IMPORT_PROGRESS];
|
|
737
737
|
if (typeof progress !== "object" || progress === null || !("created" in progress) || typeof progress.created !== "number" || !("skipped" in progress) || typeof progress.skipped !== "number") {
|
|
738
738
|
return { created: 0, skipped: 0 };
|
|
739
739
|
}
|
|
@@ -935,8 +935,8 @@ async function processNodeSlice(frame, graphId, registry, batch, schemas, option
|
|
|
935
935
|
registerAppliedNodeUpdate,
|
|
936
936
|
seedNodeRow,
|
|
937
937
|
seedUniqueRow
|
|
938
|
-
} =
|
|
939
|
-
await
|
|
938
|
+
} = chunkPTFO3JI5_cjs.createNodeBatchValidationSeams(graphId, registry, frame.target);
|
|
939
|
+
await chunkPTFO3JI5_cjs.primeBatchValidationCaches(
|
|
940
940
|
{
|
|
941
941
|
graphId,
|
|
942
942
|
registry,
|
|
@@ -1012,14 +1012,14 @@ async function processNodeSlice(frame, graphId, registry, batch, schemas, option
|
|
|
1012
1012
|
continue;
|
|
1013
1013
|
}
|
|
1014
1014
|
const constraintResult = await catchDeclaredConstraintRefusal(async () => {
|
|
1015
|
-
await
|
|
1015
|
+
await chunkMTJAT6UO_cjs.checkUniquenessConstraints(
|
|
1016
1016
|
{ graphId, registry, backend: validationBackend },
|
|
1017
1017
|
node.kind,
|
|
1018
1018
|
node.id,
|
|
1019
1019
|
props,
|
|
1020
1020
|
uniqueConstraints
|
|
1021
1021
|
);
|
|
1022
|
-
await
|
|
1022
|
+
await chunkPTFO3JI5_cjs.checkDisjointnessConstraint(
|
|
1023
1023
|
{ graphId, registry, backend: validationBackend },
|
|
1024
1024
|
node.kind,
|
|
1025
1025
|
node.id
|
|
@@ -1076,7 +1076,7 @@ function importNodeCreateWork(graphId, registry, node, registration, props) {
|
|
|
1076
1076
|
return {
|
|
1077
1077
|
params: buildImportInsertParams(graphId, node, props),
|
|
1078
1078
|
claim,
|
|
1079
|
-
claimPlan:
|
|
1079
|
+
claimPlan: chunkMTJAT6UO_cjs.planNodeCreateClaims({ graphId, registry }, claim),
|
|
1080
1080
|
sideEffects: {
|
|
1081
1081
|
kind: node.kind,
|
|
1082
1082
|
id: node.id,
|
|
@@ -1140,7 +1140,7 @@ async function catchEdgeCreateRefusalWithSavepoint(frame, fn) {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
1142
|
const statementExecution = frame.statementExecution;
|
|
1143
|
-
const result = await
|
|
1143
|
+
const result = await chunkA22XPVBQ_cjs.runRecordedTransactionSavepoint(target, statementExecution, frame.allocateEdgeSavepoint(), async () => {
|
|
1144
1144
|
const guarded = await catchEdgeCreateRefusal(fn);
|
|
1145
1145
|
return guarded.ok ? { action: "release", value: guarded } : { action: "rollback", value: guarded, cause: guarded.cause };
|
|
1146
1146
|
});
|
|
@@ -1221,7 +1221,7 @@ async function updateImportedEdge(session, edge, props, windowFence) {
|
|
|
1221
1221
|
}
|
|
1222
1222
|
}
|
|
1223
1223
|
function importedEdgeIdentityUpdateError(registration, edge, existing, props) {
|
|
1224
|
-
return
|
|
1224
|
+
return chunkPTFO3JI5_cjs.edgeMatchIdentityUpdateRefusal({
|
|
1225
1225
|
identity: registration.matchIdentity,
|
|
1226
1226
|
kind: edge.kind,
|
|
1227
1227
|
id: edge.id,
|
|
@@ -1339,14 +1339,14 @@ async function processNode(frame, graphId, registry, node, schemas, options) {
|
|
|
1339
1339
|
}
|
|
1340
1340
|
}
|
|
1341
1341
|
const constraintResult = await catchDeclaredConstraintRefusal(async () => {
|
|
1342
|
-
await
|
|
1342
|
+
await chunkMTJAT6UO_cjs.checkUniquenessConstraints(
|
|
1343
1343
|
{ graphId, registry, backend: frame.target },
|
|
1344
1344
|
node.kind,
|
|
1345
1345
|
node.id,
|
|
1346
1346
|
propsResult.data,
|
|
1347
1347
|
uniqueConstraints
|
|
1348
1348
|
);
|
|
1349
|
-
await
|
|
1349
|
+
await chunkPTFO3JI5_cjs.checkDisjointnessConstraint(
|
|
1350
1350
|
{ graphId, registry, backend: frame.target },
|
|
1351
1351
|
node.kind,
|
|
1352
1352
|
node.id
|
|
@@ -1413,7 +1413,7 @@ function recordEdgeOutcome(edge, outcome, result, errors) {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
function prepareEdgeImportCreate(graphId, candidate, registration) {
|
|
1415
1415
|
const { edge, props } = candidate;
|
|
1416
|
-
const matchIdentity =
|
|
1416
|
+
const matchIdentity = chunkPTFO3JI5_cjs.resolveEdgeMatchIdentityStorage(
|
|
1417
1417
|
registration.matchIdentity,
|
|
1418
1418
|
{
|
|
1419
1419
|
fromKind: edge.from.kind,
|
|
@@ -1547,7 +1547,7 @@ async function processEdgeSlice(frame, graphId, registry, batch, edgeSchemas, no
|
|
|
1547
1547
|
const {
|
|
1548
1548
|
backend: cardinalityValidationBackend,
|
|
1549
1549
|
registerPendingEdgeForCardinality
|
|
1550
|
-
} =
|
|
1550
|
+
} = chunkPTFO3JI5_cjs.createEdgeBatchValidationBackend(frame.target);
|
|
1551
1551
|
const candidates = [];
|
|
1552
1552
|
const deferred = [];
|
|
1553
1553
|
const seenIds = /* @__PURE__ */ new Set();
|
|
@@ -1765,7 +1765,7 @@ async function processEdgeSlice(frame, graphId, registry, batch, edgeSchemas, no
|
|
|
1765
1765
|
const { candidate, params, cardinality } = prepared;
|
|
1766
1766
|
const { edge } = candidate;
|
|
1767
1767
|
const cardinalityResult = await catchDeclaredConstraintRefusal(
|
|
1768
|
-
() =>
|
|
1768
|
+
() => chunkPTFO3JI5_cjs.checkCardinalityConstraint(
|
|
1769
1769
|
{ graphId, registry, backend: cardinalityValidationBackend },
|
|
1770
1770
|
edge.kind,
|
|
1771
1771
|
cardinality,
|
|
@@ -1833,7 +1833,7 @@ async function processEdgeSlice(frame, graphId, registry, batch, edgeSchemas, no
|
|
|
1833
1833
|
const rows = await chunkBXHAPCQG_cjs.requireDefined(frame.session.createEdgesDurable)(
|
|
1834
1834
|
acceptedWork
|
|
1835
1835
|
);
|
|
1836
|
-
const outcomes =
|
|
1836
|
+
const outcomes = chunkPTFO3JI5_cjs.classifyDurableEdgeBatchOutcomes(
|
|
1837
1837
|
accepted.map((prepared) => prepared.params),
|
|
1838
1838
|
rows
|
|
1839
1839
|
);
|
|
@@ -2030,7 +2030,7 @@ async function processEdge(frame, graphId, registry, edge, edgeSchemas, nodeSche
|
|
|
2030
2030
|
}
|
|
2031
2031
|
const { cardinality, params } = preparation.value;
|
|
2032
2032
|
const cardinalityResult = await catchDeclaredConstraintRefusal(
|
|
2033
|
-
() =>
|
|
2033
|
+
() => chunkPTFO3JI5_cjs.checkCardinalityConstraint(
|
|
2034
2034
|
{ graphId, registry, backend: frame.target },
|
|
2035
2035
|
edge.kind,
|
|
2036
2036
|
cardinality,
|
|
@@ -2162,7 +2162,7 @@ async function exportGraph(store, options) {
|
|
|
2162
2162
|
};
|
|
2163
2163
|
}
|
|
2164
2164
|
function exportGraphStream(store, options) {
|
|
2165
|
-
const backend =
|
|
2165
|
+
const backend = chunkA22XPVBQ_cjs.storeBackend(store);
|
|
2166
2166
|
return markExportStreamBackend(
|
|
2167
2167
|
exportGraphStreamFromBackend(store, backend, options),
|
|
2168
2168
|
backend
|
|
@@ -2366,7 +2366,7 @@ async function produceExportChunks(store, backend, options, emit) {
|
|
|
2366
2366
|
if (store.graph.identity === void 0) return;
|
|
2367
2367
|
let after;
|
|
2368
2368
|
for (; ; ) {
|
|
2369
|
-
const page = await
|
|
2369
|
+
const page = await chunkA22XPVBQ_cjs.storeRuntime(store).readIdentityAssertionPageAtTarget(
|
|
2370
2370
|
backend,
|
|
2371
2371
|
options.identityMode,
|
|
2372
2372
|
{
|
|
@@ -2593,15 +2593,15 @@ async function* exportEdgeChunks(backend, graphId, kind, options) {
|
|
|
2593
2593
|
|
|
2594
2594
|
// src/interchange/trusted-import.ts
|
|
2595
2595
|
function rejectUnsupportedStoreFeatures(store) {
|
|
2596
|
-
const backend =
|
|
2596
|
+
const backend = chunkA22XPVBQ_cjs.storeBackend(store);
|
|
2597
2597
|
for (const [kind, registration] of Object.entries(store.graph.edges)) {
|
|
2598
|
-
|
|
2598
|
+
chunkQ6ZVQWH7_cjs.assertEdgeMatchIdentityBackendSupport(
|
|
2599
2599
|
registration.matchIdentity,
|
|
2600
2600
|
backend.capabilities,
|
|
2601
2601
|
kind
|
|
2602
2602
|
);
|
|
2603
2603
|
}
|
|
2604
|
-
if (
|
|
2604
|
+
if (chunkA22XPVBQ_cjs.storeCaptureEnabled(store)) {
|
|
2605
2605
|
throw new chunkG7W67PZO_cjs.TrustedImportError(
|
|
2606
2606
|
"Trusted import does not support recorded-time history capture.",
|
|
2607
2607
|
"history_unsupported",
|
|
@@ -2692,7 +2692,7 @@ function nodeParams(graphId, node) {
|
|
|
2692
2692
|
};
|
|
2693
2693
|
}
|
|
2694
2694
|
function edgeParams(graphId, edge, registration) {
|
|
2695
|
-
const matchIdentity =
|
|
2695
|
+
const matchIdentity = chunkPTFO3JI5_cjs.resolveEdgeMatchIdentityStorage(
|
|
2696
2696
|
registration.matchIdentity,
|
|
2697
2697
|
{
|
|
2698
2698
|
fromKind: edge.from.kind,
|
|
@@ -2854,7 +2854,7 @@ async function consumeTrustedChunks(store, session, chunks) {
|
|
|
2854
2854
|
}
|
|
2855
2855
|
async function trustedImportGraphStream(store, chunks) {
|
|
2856
2856
|
rejectUnsupportedStoreFeatures(store);
|
|
2857
|
-
const backend =
|
|
2857
|
+
const backend = chunkA22XPVBQ_cjs.storeBackend(store);
|
|
2858
2858
|
const trustedImport = backend.trustedImport;
|
|
2859
2859
|
if (trustedImport === void 0) {
|
|
2860
2860
|
throw new chunkG7W67PZO_cjs.TrustedImportError(
|
|
@@ -2931,5 +2931,5 @@ exports.importGraphStream = importGraphStream;
|
|
|
2931
2931
|
exports.registerIngestionImportTarget = registerIngestionImportTarget;
|
|
2932
2932
|
exports.trustedImportGraph = trustedImportGraph;
|
|
2933
2933
|
exports.trustedImportGraphStream = trustedImportGraphStream;
|
|
2934
|
-
//# sourceMappingURL=chunk-
|
|
2935
|
-
//# sourceMappingURL=chunk-
|
|
2934
|
+
//# sourceMappingURL=chunk-KGQVK2II.cjs.map
|
|
2935
|
+
//# sourceMappingURL=chunk-KGQVK2II.cjs.map
|