@nicia-ai/typegraph 0.71.0 → 0.71.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.
- package/CHANGELOG.md +6 -0
- package/dist/backend/postgres/pglite-store.cjs +1 -1
- package/dist/backend/postgres/pglite-store.js +1 -1
- package/dist/backend/sqlite/local-store.cjs +1 -1
- package/dist/backend/sqlite/local-store.js +1 -1
- package/dist/{chunk-5YUJYIW3.cjs → chunk-D6J4Z423.cjs} +4 -4
- package/dist/{chunk-5YUJYIW3.cjs.map → chunk-D6J4Z423.cjs.map} +1 -1
- package/dist/{chunk-TKYOWV5U.js → chunk-EPXW4ONY.js} +5 -5
- package/dist/{chunk-TKYOWV5U.js.map → chunk-EPXW4ONY.js.map} +1 -1
- package/dist/{chunk-B33AHPS7.cjs → chunk-H3ULZVTX.cjs} +3 -3
- package/dist/{chunk-B33AHPS7.cjs.map → chunk-H3ULZVTX.cjs.map} +1 -1
- package/dist/{chunk-Z3MH5QUR.js → chunk-NMDDGDMQ.js} +3 -3
- package/dist/{chunk-Z3MH5QUR.js.map → chunk-NMDDGDMQ.js.map} +1 -1
- package/dist/{chunk-2PUJGVJ6.cjs → chunk-Q4MXRK6A.cjs} +9 -9
- package/dist/{chunk-2PUJGVJ6.cjs.map → chunk-Q4MXRK6A.cjs.map} +1 -1
- package/dist/{chunk-GW2DPIPL.js → chunk-U5RVSIFG.js} +3 -3
- package/dist/{chunk-GW2DPIPL.js.map → chunk-U5RVSIFG.js.map} +1 -1
- package/dist/{chunk-O64KMVIO.cjs → chunk-VUUIS5C7.cjs} +22 -22
- package/dist/{chunk-O64KMVIO.cjs.map → chunk-VUUIS5C7.cjs.map} +1 -1
- package/dist/{chunk-O7C44O4P.js → chunk-W2L5N4ES.js} +3 -3
- package/dist/{chunk-O7C44O4P.js.map → chunk-W2L5N4ES.js.map} +1 -1
- package/dist/{chunk-5E2PKOPM.js → chunk-XTHWIDRM.js} +4 -4
- package/dist/{chunk-5E2PKOPM.js.map → chunk-XTHWIDRM.js.map} +1 -1
- package/dist/{chunk-TVOQ2DGB.cjs → chunk-XZJDI4OR.cjs} +255 -255
- package/dist/{chunk-TVOQ2DGB.cjs.map → chunk-XZJDI4OR.cjs.map} +1 -1
- package/dist/{chunk-A7YKBSKQ.cjs → chunk-ZO72TBQE.cjs} +13 -13
- package/dist/{chunk-A7YKBSKQ.cjs.map → chunk-ZO72TBQE.cjs.map} +1 -1
- package/dist/{chunk-FFGW5GXR.js → chunk-ZX72XWSA.js} +3 -3
- package/dist/{chunk-FFGW5GXR.js.map → chunk-ZX72XWSA.js.map} +1 -1
- package/dist/graph-merge/index.cjs +31 -31
- package/dist/graph-merge/index.js +5 -5
- package/dist/index.cjs +52 -52
- package/dist/index.js +5 -5
- package/dist/interchange/index.cjs +26 -26
- package/dist/interchange/index.js +3 -3
- package/dist/{local-store-impl-MJR2DXZT.cjs → local-store-impl-VR7YQUMB.cjs} +7 -7
- package/dist/{local-store-impl-MJR2DXZT.cjs.map → local-store-impl-VR7YQUMB.cjs.map} +1 -1
- package/dist/{local-store-impl-U4MDR2N4.js → local-store-impl-Y3Q5HWSR.js} +6 -6
- package/dist/{local-store-impl-U4MDR2N4.js.map → local-store-impl-Y3Q5HWSR.js.map} +1 -1
- package/dist/{pglite-store-impl-RTAPLRQO.cjs → pglite-store-impl-NMSOMDPC.cjs} +7 -7
- package/dist/{pglite-store-impl-RTAPLRQO.cjs.map → pglite-store-impl-NMSOMDPC.cjs.map} +1 -1
- package/dist/{pglite-store-impl-QLLFPNO6.js → pglite-store-impl-QNGEP62P.js} +6 -6
- package/dist/{pglite-store-impl-QLLFPNO6.js.map → pglite-store-impl-QNGEP62P.js.map} +1 -1
- package/dist/schema/index.cjs +25 -25
- package/dist/schema/index.js +3 -3
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkQ4MXRK6A_cjs = require('./chunk-Q4MXRK6A.cjs');
|
|
4
4
|
var chunkRFRKNBIO_cjs = require('./chunk-RFRKNBIO.cjs');
|
|
5
5
|
var chunkRJHEBE5W_cjs = require('./chunk-RJHEBE5W.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkH3ULZVTX_cjs = require('./chunk-H3ULZVTX.cjs');
|
|
7
7
|
var chunkQEXVOTI2_cjs = require('./chunk-QEXVOTI2.cjs');
|
|
8
8
|
var chunkMYE7SL75_cjs = require('./chunk-MYE7SL75.cjs');
|
|
9
9
|
var chunkAZ2Q6RRS_cjs = require('./chunk-AZ2Q6RRS.cjs');
|
|
@@ -373,13 +373,13 @@ async function importGraphData(store, data, options) {
|
|
|
373
373
|
const batchPointRead = chunkMYE7SL75_cjs.batchPointReadVerdict(backend);
|
|
374
374
|
const uniqueSidecarBatch = chunkMYE7SL75_cjs.uniqueSidecarBatchVerdict(backend);
|
|
375
375
|
const statementExecution = chunkMYE7SL75_cjs.statementExecutionVerdict(backend);
|
|
376
|
-
const owedClaimReason =
|
|
376
|
+
const owedClaimReason = chunkQ4MXRK6A_cjs.graphOwesClaims(graph, registry);
|
|
377
377
|
const claimRefusal = owedClaimReason === void 0 ? void 0 : chunkQEXVOTI2_cjs.constraintFenceRefusal({ graphId }, backend, owedClaimReason);
|
|
378
378
|
if (claimRefusal !== void 0) throw claimRefusal;
|
|
379
379
|
const nodeSchemas = buildNodeSchemaMap(graph);
|
|
380
380
|
const edgeSchemas = buildEdgeSchemaMap(graph);
|
|
381
381
|
for (const [kind, entry] of edgeSchemas) {
|
|
382
|
-
|
|
382
|
+
chunkH3ULZVTX_cjs.assertEdgeMatchIdentityBackendSupport(
|
|
383
383
|
entry.registration.matchIdentity,
|
|
384
384
|
backend.capabilities,
|
|
385
385
|
kind
|
|
@@ -397,7 +397,7 @@ async function importGraphData(store, data, options) {
|
|
|
397
397
|
uniqueSidecarBatch,
|
|
398
398
|
statementExecution
|
|
399
399
|
};
|
|
400
|
-
const { result, errors } = await
|
|
400
|
+
const { result, errors } = await chunkQ4MXRK6A_cjs.runWritePlan(
|
|
401
401
|
{
|
|
402
402
|
graphId,
|
|
403
403
|
registry,
|
|
@@ -425,7 +425,7 @@ async function importGraphData(store, data, options) {
|
|
|
425
425
|
},
|
|
426
426
|
// An import writes node rows AND edge rows in one frame, so it declares the
|
|
427
427
|
// mixed family explicitly instead of receiving either narrower session.
|
|
428
|
-
|
|
428
|
+
chunkQ4MXRK6A_cjs.mixedWritePlan(void 0, true),
|
|
429
429
|
backend,
|
|
430
430
|
(session, target, overlaidSession, _lock, transactionMode) => runImportWritePlanAttempt(
|
|
431
431
|
attemptInputs,
|
|
@@ -708,7 +708,7 @@ function asIdentityImportError(assertions, graphId, error) {
|
|
|
708
708
|
}
|
|
709
709
|
function taggedAssertion(assertions, error) {
|
|
710
710
|
if (typeof error !== "object" || error === null) return void 0;
|
|
711
|
-
const id = error[
|
|
711
|
+
const id = error[chunkH3ULZVTX_cjs.IDENTITY_IMPORT_FAILED_ASSERTION];
|
|
712
712
|
if (typeof id !== "string") return void 0;
|
|
713
713
|
return assertions.find((candidate) => candidate.id === id);
|
|
714
714
|
}
|
|
@@ -739,7 +739,7 @@ function identityImportProgress(error) {
|
|
|
739
739
|
if (typeof error !== "object" || error === null) {
|
|
740
740
|
return { created: 0, skipped: 0 };
|
|
741
741
|
}
|
|
742
|
-
const progress = error[
|
|
742
|
+
const progress = error[chunkH3ULZVTX_cjs.IDENTITY_IMPORT_PROGRESS];
|
|
743
743
|
if (typeof progress !== "object" || progress === null || !("created" in progress) || typeof progress.created !== "number" || !("skipped" in progress) || typeof progress.skipped !== "number") {
|
|
744
744
|
return { created: 0, skipped: 0 };
|
|
745
745
|
}
|
|
@@ -941,8 +941,8 @@ async function processNodeSlice(frame, graphId, registry, batch, schemas, option
|
|
|
941
941
|
registerAppliedNodeUpdate,
|
|
942
942
|
seedNodeRow,
|
|
943
943
|
seedUniqueRow
|
|
944
|
-
} =
|
|
945
|
-
await
|
|
944
|
+
} = chunkQ4MXRK6A_cjs.createNodeBatchValidationSeams(graphId, registry, frame.target);
|
|
945
|
+
await chunkQ4MXRK6A_cjs.primeBatchValidationCaches(
|
|
946
946
|
{
|
|
947
947
|
graphId,
|
|
948
948
|
registry,
|
|
@@ -1025,7 +1025,7 @@ async function processNodeSlice(frame, graphId, registry, batch, schemas, option
|
|
|
1025
1025
|
props,
|
|
1026
1026
|
uniqueConstraints
|
|
1027
1027
|
);
|
|
1028
|
-
await
|
|
1028
|
+
await chunkQ4MXRK6A_cjs.checkDisjointnessConstraint(
|
|
1029
1029
|
{ graphId, registry, backend: validationBackend },
|
|
1030
1030
|
node.kind,
|
|
1031
1031
|
node.id
|
|
@@ -1227,7 +1227,7 @@ async function updateImportedEdge(session, edge, props, windowFence) {
|
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
1229
|
function importedEdgeIdentityUpdateError(registration, edge, existing, props) {
|
|
1230
|
-
return
|
|
1230
|
+
return chunkQ4MXRK6A_cjs.edgeMatchIdentityUpdateRefusal({
|
|
1231
1231
|
identity: registration.matchIdentity,
|
|
1232
1232
|
kind: edge.kind,
|
|
1233
1233
|
id: edge.id,
|
|
@@ -1352,7 +1352,7 @@ async function processNode(frame, graphId, registry, node, schemas, options) {
|
|
|
1352
1352
|
propsResult.data,
|
|
1353
1353
|
uniqueConstraints
|
|
1354
1354
|
);
|
|
1355
|
-
await
|
|
1355
|
+
await chunkQ4MXRK6A_cjs.checkDisjointnessConstraint(
|
|
1356
1356
|
{ graphId, registry, backend: frame.target },
|
|
1357
1357
|
node.kind,
|
|
1358
1358
|
node.id
|
|
@@ -1419,7 +1419,7 @@ function recordEdgeOutcome(edge, outcome, result, errors) {
|
|
|
1419
1419
|
}
|
|
1420
1420
|
function prepareEdgeImportCreate(graphId, candidate, registration) {
|
|
1421
1421
|
const { edge, props } = candidate;
|
|
1422
|
-
const matchIdentity =
|
|
1422
|
+
const matchIdentity = chunkQ4MXRK6A_cjs.resolveEdgeMatchIdentityStorage(
|
|
1423
1423
|
registration.matchIdentity,
|
|
1424
1424
|
{
|
|
1425
1425
|
fromKind: edge.from.kind,
|
|
@@ -1557,7 +1557,7 @@ async function processEdgeSlice(frame, graphId, registry, batch, edgeSchemas, no
|
|
|
1557
1557
|
backend: cardinalityValidationBackend,
|
|
1558
1558
|
registerPendingEdgeForCardinality,
|
|
1559
1559
|
seedCardinalityRows
|
|
1560
|
-
} =
|
|
1560
|
+
} = chunkQ4MXRK6A_cjs.createEdgeBatchValidationBackend(frame.target);
|
|
1561
1561
|
const candidates = [];
|
|
1562
1562
|
const deferred = [];
|
|
1563
1563
|
const seenIds = /* @__PURE__ */ new Set();
|
|
@@ -1846,7 +1846,7 @@ async function processEdgeSlice(frame, graphId, registry, batch, edgeSchemas, no
|
|
|
1846
1846
|
const { candidate, params, cardinality } = prepared;
|
|
1847
1847
|
const { edge } = candidate;
|
|
1848
1848
|
const cardinalityResult = await catchDeclaredConstraintRefusal(
|
|
1849
|
-
() =>
|
|
1849
|
+
() => chunkQ4MXRK6A_cjs.checkCardinalityConstraint(
|
|
1850
1850
|
{ graphId, registry, backend: cardinalityValidationBackend },
|
|
1851
1851
|
edge.kind,
|
|
1852
1852
|
cardinality,
|
|
@@ -1914,7 +1914,7 @@ async function processEdgeSlice(frame, graphId, registry, batch, edgeSchemas, no
|
|
|
1914
1914
|
const rows = await chunkBXHAPCQG_cjs.requireDefined(frame.session.createEdgesDurable)(
|
|
1915
1915
|
acceptedWork
|
|
1916
1916
|
);
|
|
1917
|
-
const outcomes =
|
|
1917
|
+
const outcomes = chunkQ4MXRK6A_cjs.classifyDurableEdgeBatchOutcomes(
|
|
1918
1918
|
accepted.map((prepared) => prepared.params),
|
|
1919
1919
|
rows
|
|
1920
1920
|
);
|
|
@@ -2111,7 +2111,7 @@ async function processEdge(frame, graphId, registry, edge, edgeSchemas, nodeSche
|
|
|
2111
2111
|
}
|
|
2112
2112
|
const { cardinality, params } = preparation.value;
|
|
2113
2113
|
const cardinalityResult = await catchDeclaredConstraintRefusal(
|
|
2114
|
-
() =>
|
|
2114
|
+
() => chunkQ4MXRK6A_cjs.checkCardinalityConstraint(
|
|
2115
2115
|
{ graphId, registry, backend: frame.target },
|
|
2116
2116
|
edge.kind,
|
|
2117
2117
|
cardinality,
|
|
@@ -2676,7 +2676,7 @@ async function* exportEdgeChunks(backend, graphId, kind, options) {
|
|
|
2676
2676
|
function rejectUnsupportedStoreFeatures(store) {
|
|
2677
2677
|
const backend = chunkQEXVOTI2_cjs.storeBackend(store);
|
|
2678
2678
|
for (const [kind, registration] of Object.entries(store.graph.edges)) {
|
|
2679
|
-
|
|
2679
|
+
chunkH3ULZVTX_cjs.assertEdgeMatchIdentityBackendSupport(
|
|
2680
2680
|
registration.matchIdentity,
|
|
2681
2681
|
backend.capabilities,
|
|
2682
2682
|
kind
|
|
@@ -2773,7 +2773,7 @@ function nodeParams(graphId, node) {
|
|
|
2773
2773
|
};
|
|
2774
2774
|
}
|
|
2775
2775
|
function edgeParams(graphId, edge, registration) {
|
|
2776
|
-
const matchIdentity =
|
|
2776
|
+
const matchIdentity = chunkQ4MXRK6A_cjs.resolveEdgeMatchIdentityStorage(
|
|
2777
2777
|
registration.matchIdentity,
|
|
2778
2778
|
{
|
|
2779
2779
|
fromKind: edge.from.kind,
|
|
@@ -3013,5 +3013,5 @@ exports.registerIngestionImportTarget = registerIngestionImportTarget;
|
|
|
3013
3013
|
exports.summarizeImportErrors = summarizeImportErrors;
|
|
3014
3014
|
exports.trustedImportGraph = trustedImportGraph;
|
|
3015
3015
|
exports.trustedImportGraphStream = trustedImportGraphStream;
|
|
3016
|
-
//# sourceMappingURL=chunk-
|
|
3017
|
-
//# sourceMappingURL=chunk-
|
|
3016
|
+
//# sourceMappingURL=chunk-VUUIS5C7.cjs.map
|
|
3017
|
+
//# sourceMappingURL=chunk-VUUIS5C7.cjs.map
|