@nicia-ai/typegraph 0.58.0 → 0.59.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 +22 -0
- package/README.md +12 -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-QR6V2BXA.cjs → chunk-26CL47SW.cjs} +13 -13
- package/dist/{chunk-QR6V2BXA.cjs.map → chunk-26CL47SW.cjs.map} +1 -1
- package/dist/{chunk-U53HFE4L.cjs → chunk-2GZL5ED3.cjs} +16 -16
- package/dist/{chunk-U53HFE4L.cjs.map → chunk-2GZL5ED3.cjs.map} +1 -1
- 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-M7TRJXFE.js → chunk-3GX5HTPP.js} +3 -3
- package/dist/{chunk-M7TRJXFE.js.map → chunk-3GX5HTPP.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-FHFPUORN.cjs → chunk-CA76FVJB.cjs} +1234 -306
- package/dist/chunk-CA76FVJB.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-5C4OYYDD.js → chunk-DZ3ETMXF.js} +4 -4
- package/dist/{chunk-5C4OYYDD.js.map → chunk-DZ3ETMXF.js.map} +1 -1
- package/dist/{chunk-IV3FENV2.js → chunk-E6PU35DE.js} +4 -4
- package/dist/{chunk-IV3FENV2.js.map → chunk-E6PU35DE.js.map} +1 -1
- package/dist/{chunk-GUMNJJFP.cjs → chunk-EN67I47R.cjs} +9 -9
- package/dist/{chunk-GUMNJJFP.cjs.map → chunk-EN67I47R.cjs.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-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-7JUD57B4.js → chunk-MKQY4ZLZ.js} +996 -68
- package/dist/chunk-MKQY4ZLZ.js.map +1 -0
- package/dist/{chunk-YTYB5KCQ.js → chunk-OH7QRGPQ.js} +33 -2
- package/dist/chunk-OH7QRGPQ.js.map +1 -0
- 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-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-C3CN2C2T.cjs → chunk-UOHFBYYH.cjs} +4 -4
- package/dist/{chunk-C3CN2C2T.cjs.map → chunk-UOHFBYYH.cjs.map} +1 -1
- package/dist/{chunk-DV24YZHG.js → chunk-V3JKR2CN.js} +4 -4
- package/dist/{chunk-DV24YZHG.js.map → chunk-V3JKR2CN.js.map} +1 -1
- package/dist/{chunk-CVO2ZPW5.js → chunk-W4NT4IMI.js} +3 -3
- package/dist/{chunk-CVO2ZPW5.js.map → chunk-W4NT4IMI.js.map} +1 -1
- package/dist/{chunk-FGKWXSHF.cjs → chunk-XGYUUUHY.cjs} +22 -22
- package/dist/{chunk-FGKWXSHF.cjs.map → chunk-XGYUUUHY.cjs.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 +31 -31
- package/dist/graph-merge/index.d.cts +7 -6
- package/dist/graph-merge/index.d.ts +7 -6
- package/dist/graph-merge/index.js +8 -8
- package/dist/{graph-templates-6zTU7bNe.d.cts → graph-templates-Buh-RlmQ.d.cts} +2 -2
- package/dist/{graph-templates-B4gkXVqg.d.ts → graph-templates-DQnmCPkd.d.ts} +2 -2
- package/dist/index.cjs +68 -68
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +8 -8
- 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 +27 -27
- package/dist/interchange/index.d.cts +7 -6
- package/dist/interchange/index.d.ts +7 -6
- package/dist/interchange/index.js +4 -4
- package/dist/{local-store-impl-FTGRP2V7.js → local-store-impl-EPUMDNQJ.js} +12 -12
- package/dist/{local-store-impl-FTGRP2V7.js.map → local-store-impl-EPUMDNQJ.js.map} +1 -1
- package/dist/{local-store-impl-ARNXBBSF.cjs → local-store-impl-GFBZBCTN.cjs} +15 -15
- package/dist/{local-store-impl-ARNXBBSF.cjs.map → local-store-impl-GFBZBCTN.cjs.map} +1 -1
- package/dist/{pglite-store-impl-CNQZYRBC.cjs → pglite-store-impl-DB4RRLB7.cjs} +15 -15
- package/dist/{pglite-store-impl-CNQZYRBC.cjs.map → pglite-store-impl-DB4RRLB7.cjs.map} +1 -1
- package/dist/{pglite-store-impl-NULC2IHH.js → pglite-store-impl-M5PWKN7Z.js} +12 -12
- package/dist/{pglite-store-impl-NULC2IHH.js.map → pglite-store-impl-M5PWKN7Z.js.map} +1 -1
- package/dist/{postgres-Dd3TrFku.d.ts → postgres-2FBMdOE_.d.ts} +3 -3
- package/dist/{postgres-CLPfTNYN.d.ts → postgres-BR3AeXm9.d.ts} +1 -1
- package/dist/{postgres-cLQPlKtp.d.cts → 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.map +1 -1
- package/dist/provenance/index.d.cts +6 -5
- package/dist/provenance/index.d.ts +6 -5
- 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 +30 -30
- package/dist/schema/index.d.cts +7 -7
- package/dist/schema/index.d.ts +7 -7
- package/dist/schema/index.js +5 -5
- 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-CoBmhiFd.d.ts → sqlite-CvajLABd.d.cts} +1 -1
- package/dist/{sqlite-qXLIybR2.d.cts → sqlite-DQxKoWAH.d.cts} +3 -3
- package/dist/{sqlite-RdH7w-ix.d.cts → sqlite-jH5J-Jb8.d.ts} +1 -1
- package/dist/{store-BzmMsCcw.d.ts → store-CvtRQ8Nb.d.cts} +136 -10
- package/dist/{store-CL6uTm_W.d.cts → store-sLu0hcRm.d.ts} +136 -10
- 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.ts → types-Dky3sCFz.d.cts} +9 -0
- package/dist/{types-Blq8PG_N.d.cts → 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-YTYB5KCQ.js.map +0 -1
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var chunk6YKISECL_cjs = require('./chunk-6YKISECL.cjs');
|
|
4
4
|
var chunkUVVDQGOY_cjs = require('./chunk-UVVDQGOY.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkUOHFBYYH_cjs = require('./chunk-UOHFBYYH.cjs');
|
|
6
6
|
var chunkIV5W7LKW_cjs = require('./chunk-IV5W7LKW.cjs');
|
|
7
7
|
var chunkWEXAMJTA_cjs = require('./chunk-WEXAMJTA.cjs');
|
|
8
8
|
var chunkEOLNL35G_cjs = require('./chunk-EOLNL35G.cjs');
|
|
9
9
|
var chunk6ODVH5SA_cjs = require('./chunk-6ODVH5SA.cjs');
|
|
10
10
|
var chunkFSSQ4YNU_cjs = require('./chunk-FSSQ4YNU.cjs');
|
|
11
11
|
var chunkNWJV4UVW_cjs = require('./chunk-NWJV4UVW.cjs');
|
|
12
|
-
var
|
|
12
|
+
var chunkQHP2BCBJ_cjs = require('./chunk-QHP2BCBJ.cjs');
|
|
13
13
|
var chunkZY4GXIVN_cjs = require('./chunk-ZY4GXIVN.cjs');
|
|
14
14
|
var chunkMAYQDOZB_cjs = require('./chunk-MAYQDOZB.cjs');
|
|
15
15
|
var chunkHAHNRASW_cjs = require('./chunk-HAHNRASW.cjs');
|
|
@@ -1826,7 +1826,7 @@ function compileGraphExtensionRelationalIndexes(documents, nodeKinds, mergedEdge
|
|
|
1826
1826
|
suggestion: "Declare the kind under `nodes` in this graph extension, or remove the index from `indexes`."
|
|
1827
1827
|
});
|
|
1828
1828
|
}
|
|
1829
|
-
const declaration2 =
|
|
1829
|
+
const declaration2 = chunkQHP2BCBJ_cjs.defineNodeIndex(
|
|
1830
1830
|
node,
|
|
1831
1831
|
toNodeIndexConfig(document)
|
|
1832
1832
|
);
|
|
@@ -1840,7 +1840,7 @@ function compileGraphExtensionRelationalIndexes(documents, nodeKinds, mergedEdge
|
|
|
1840
1840
|
suggestion: "Declare the edge under `edges` in this graph extension, or remove the index from `indexes`."
|
|
1841
1841
|
});
|
|
1842
1842
|
}
|
|
1843
|
-
const declaration =
|
|
1843
|
+
const declaration = chunkQHP2BCBJ_cjs.defineEdgeIndex(
|
|
1844
1844
|
edgeRegistration.type,
|
|
1845
1845
|
toEdgeIndexConfig(document)
|
|
1846
1846
|
);
|
|
@@ -2224,7 +2224,7 @@ async function ensureIdentitySchemaStorage(backend, schema, options) {
|
|
|
2224
2224
|
const separationMissing = missingTables.includes(
|
|
2225
2225
|
IDENTITY_SEPARATION_RELATION
|
|
2226
2226
|
);
|
|
2227
|
-
const rebuildRequired = await
|
|
2227
|
+
const rebuildRequired = await chunkUOHFBYYH_cjs.separationRebuildRequired(
|
|
2228
2228
|
backend,
|
|
2229
2229
|
schema,
|
|
2230
2230
|
options.graphId,
|
|
@@ -2362,7 +2362,7 @@ async function identityKindCascadeNeeded(backend, schema, graphId, droppedNodeKi
|
|
|
2362
2362
|
provisionMissing: false
|
|
2363
2363
|
});
|
|
2364
2364
|
if (missingTables.length > 0) return false;
|
|
2365
|
-
return
|
|
2365
|
+
return chunkUOHFBYYH_cjs.hasAssertionsTouchingKinds(backend, schema, graphId, droppedNodeKinds);
|
|
2366
2366
|
}
|
|
2367
2367
|
function assertIdentityStoragePresent(graphId, missingTables) {
|
|
2368
2368
|
if (missingTables.length === 0) return;
|
|
@@ -2386,12 +2386,12 @@ function identitySchemaCommitPreflight(ctx, options) {
|
|
|
2386
2386
|
options.provisionDerivedRelations ?? []
|
|
2387
2387
|
);
|
|
2388
2388
|
await chunkIV5W7LKW_cjs.lockRecordedGraphWrite(target, ctx.graphId);
|
|
2389
|
-
await
|
|
2389
|
+
await chunkUOHFBYYH_cjs.lockIdentityGraph(target, ctx.graphId);
|
|
2390
2390
|
if (options.enablement) {
|
|
2391
|
-
await
|
|
2391
|
+
await chunkUOHFBYYH_cjs.lockIdentityEnablementNodes(target, ctx.schema);
|
|
2392
2392
|
await chunkIV5W7LKW_cjs.withRecordedIdentityMutationTarget(
|
|
2393
2393
|
target,
|
|
2394
|
-
(rawTarget, touch) =>
|
|
2394
|
+
(rawTarget, touch) => chunkUOHFBYYH_cjs.purgeAssertionsWithUnregisteredKinds(
|
|
2395
2395
|
rawTarget,
|
|
2396
2396
|
ctx.schema,
|
|
2397
2397
|
ctx.graphId,
|
|
@@ -2404,7 +2404,7 @@ function identitySchemaCommitPreflight(ctx, options) {
|
|
|
2404
2404
|
if (droppedNodeKinds.length > 0) {
|
|
2405
2405
|
await chunkIV5W7LKW_cjs.withRecordedIdentityMutationTarget(
|
|
2406
2406
|
target,
|
|
2407
|
-
(rawTarget, touch) =>
|
|
2407
|
+
(rawTarget, touch) => chunkUOHFBYYH_cjs.deleteAssertionsTouchingKinds(
|
|
2408
2408
|
rawTarget,
|
|
2409
2409
|
ctx.schema,
|
|
2410
2410
|
ctx.graphId,
|
|
@@ -2413,7 +2413,7 @@ function identitySchemaCommitPreflight(ctx, options) {
|
|
|
2413
2413
|
)
|
|
2414
2414
|
);
|
|
2415
2415
|
}
|
|
2416
|
-
await
|
|
2416
|
+
await chunkUOHFBYYH_cjs.rebuildIdentityClosureForContext({ ...ctx, backend: target });
|
|
2417
2417
|
};
|
|
2418
2418
|
}
|
|
2419
2419
|
async function provisionDerivedRelationsInCommit(target, graphId, ddl) {
|
|
@@ -2428,10 +2428,10 @@ async function provisionDerivedRelationsInCommit(target, graphId, ddl) {
|
|
|
2428
2428
|
function identityKindCascadePreflight(ctx, droppedNodeKinds) {
|
|
2429
2429
|
return async (target) => {
|
|
2430
2430
|
await chunkIV5W7LKW_cjs.lockRecordedGraphWrite(target, ctx.graphId);
|
|
2431
|
-
await
|
|
2431
|
+
await chunkUOHFBYYH_cjs.lockIdentityGraph(target, ctx.graphId);
|
|
2432
2432
|
await chunkIV5W7LKW_cjs.withRecordedIdentityMutationTarget(
|
|
2433
2433
|
target,
|
|
2434
|
-
(rawTarget, touch) =>
|
|
2434
|
+
(rawTarget, touch) => chunkUOHFBYYH_cjs.deleteAssertionsTouchingKinds(
|
|
2435
2435
|
rawTarget,
|
|
2436
2436
|
ctx.schema,
|
|
2437
2437
|
ctx.graphId,
|
|
@@ -3495,7 +3495,7 @@ function assertGraphEdgeMatchIdentitySupport(backend, graph) {
|
|
|
3495
3495
|
for (const [kind, registration] of Object.entries(graph.edges)) {
|
|
3496
3496
|
const identity = registration.matchIdentity;
|
|
3497
3497
|
if (identity === void 0) continue;
|
|
3498
|
-
|
|
3498
|
+
chunkUOHFBYYH_cjs.assertEdgeMatchIdentityBackendSupport(identity, backend.capabilities, kind);
|
|
3499
3499
|
}
|
|
3500
3500
|
}
|
|
3501
3501
|
function edgeKindsRequiringMatchIdentityMaterialization(target, storedSchema) {
|
|
@@ -3779,5 +3779,5 @@ exports.serializeSchema = serializeSchema;
|
|
|
3779
3779
|
exports.serializeSchemaProperties = serializeSchemaProperties;
|
|
3780
3780
|
exports.stripGraphExtension = stripGraphExtension;
|
|
3781
3781
|
exports.subClassOf = subClassOf;
|
|
3782
|
-
//# sourceMappingURL=chunk-
|
|
3783
|
-
//# sourceMappingURL=chunk-
|
|
3782
|
+
//# sourceMappingURL=chunk-2GZL5ED3.cjs.map
|
|
3783
|
+
//# sourceMappingURL=chunk-2GZL5ED3.cjs.map
|