@nicia-ai/typegraph 0.47.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.
- package/dist/backend/drizzle/indexes.d.cts +1 -1
- package/dist/backend/drizzle/indexes.d.ts +1 -1
- package/dist/backend/index.cjs +27 -19
- package/dist/backend/index.d.cts +37 -55
- package/dist/backend/index.d.ts +37 -55
- package/dist/backend/index.js +4 -4
- package/dist/backend/postgres/index.cjs +7 -7
- package/dist/backend/postgres/index.d.cts +21 -7
- package/dist/backend/postgres/index.d.ts +21 -7
- package/dist/backend/postgres/index.js +6 -6
- package/dist/backend/postgres/pglite-store.cjs +17 -17
- package/dist/backend/postgres/pglite-store.d.cts +8 -8
- package/dist/backend/postgres/pglite-store.d.ts +8 -8
- package/dist/backend/postgres/pglite-store.js +14 -14
- package/dist/backend/postgres/pglite.cjs +8 -8
- package/dist/backend/postgres/pglite.d.cts +3 -3
- package/dist/backend/postgres/pglite.d.ts +3 -3
- package/dist/backend/postgres/pglite.js +7 -7
- package/dist/backend/sqlite/index.cjs +7 -7
- package/dist/backend/sqlite/index.d.cts +20 -7
- package/dist/backend/sqlite/index.d.ts +20 -7
- package/dist/backend/sqlite/index.js +6 -6
- package/dist/backend/sqlite/libsql.cjs +8 -8
- package/dist/backend/sqlite/libsql.d.cts +3 -3
- package/dist/backend/sqlite/libsql.d.ts +3 -3
- package/dist/backend/sqlite/libsql.js +6 -6
- package/dist/backend/sqlite/local-store.cjs +18 -18
- package/dist/backend/sqlite/local-store.d.cts +8 -8
- package/dist/backend/sqlite/local-store.d.ts +8 -8
- package/dist/backend/sqlite/local-store.js +15 -15
- package/dist/backend/sqlite/local.cjs +9 -9
- package/dist/backend/sqlite/local.d.cts +3 -3
- package/dist/backend/sqlite/local.d.ts +3 -3
- package/dist/backend/sqlite/local.js +7 -7
- package/dist/{chunk-5FBRVORR.cjs → chunk-2O4PCIZ6.cjs} +8 -7
- package/dist/chunk-2O4PCIZ6.cjs.map +1 -0
- package/dist/{chunk-6KFLYYOC.cjs → chunk-2QGYQBS2.cjs} +5 -5
- package/dist/{chunk-6KFLYYOC.cjs.map → chunk-2QGYQBS2.cjs.map} +1 -1
- package/dist/{chunk-XYBQI6LE.js → chunk-2TYSSBU5.js} +6 -6
- package/dist/{chunk-XYBQI6LE.js.map → chunk-2TYSSBU5.js.map} +1 -1
- package/dist/{chunk-6JVZSOHQ.cjs → chunk-3FPR224C.cjs} +26 -26
- package/dist/{chunk-6JVZSOHQ.cjs.map → chunk-3FPR224C.cjs.map} +1 -1
- package/dist/{chunk-U5EDAVOJ.cjs → chunk-3G5W2U2L.cjs} +82 -51
- package/dist/chunk-3G5W2U2L.cjs.map +1 -0
- package/dist/{chunk-MFZR4QKM.cjs → chunk-3KOY4FH3.cjs} +181 -4
- package/dist/chunk-3KOY4FH3.cjs.map +1 -0
- package/dist/{chunk-UPAJHMW3.cjs → chunk-3QNZ5SAJ.cjs} +55 -58
- package/dist/chunk-3QNZ5SAJ.cjs.map +1 -0
- package/dist/{chunk-NG2RB5WL.js → chunk-5K2BKEBD.js} +18 -3
- package/dist/chunk-5K2BKEBD.js.map +1 -0
- package/dist/chunk-5PRKMB24.cjs +124 -0
- package/dist/chunk-5PRKMB24.cjs.map +1 -0
- package/dist/chunk-6LN7FIVU.js +107 -0
- package/dist/chunk-6LN7FIVU.js.map +1 -0
- package/dist/{chunk-M35DF33T.js → chunk-7LZJNLA5.js} +29 -16
- package/dist/chunk-7LZJNLA5.js.map +1 -0
- package/dist/{chunk-I4G3SQPF.cjs → chunk-7UOLHNWC.cjs} +7 -7
- package/dist/chunk-7UOLHNWC.cjs.map +1 -0
- package/dist/{chunk-DJZTXBWY.js → chunk-BRRP76WO.js} +71 -30
- package/dist/chunk-BRRP76WO.js.map +1 -0
- package/dist/{chunk-5FT3TLPK.js → chunk-D4QLTJSM.js} +16 -13
- package/dist/chunk-D4QLTJSM.js.map +1 -0
- package/dist/{chunk-XY5OMOJD.js → chunk-DZAICA5J.js} +3 -3
- package/dist/{chunk-XY5OMOJD.js.map → chunk-DZAICA5J.js.map} +1 -1
- package/dist/{chunk-OIFSOPSR.cjs → chunk-EZEEWCFJ.cjs} +38 -156
- package/dist/chunk-EZEEWCFJ.cjs.map +1 -0
- package/dist/{chunk-AMMWA76F.cjs → chunk-FA2AFWLP.cjs} +6 -6
- package/dist/{chunk-AMMWA76F.cjs.map → chunk-FA2AFWLP.cjs.map} +1 -1
- package/dist/{chunk-FNOMT74T.js → chunk-I4GAZH5Z.js} +180 -5
- package/dist/chunk-I4GAZH5Z.js.map +1 -0
- package/dist/{chunk-WGX7JH7E.cjs → chunk-JB6T4GLL.cjs} +106 -134
- package/dist/chunk-JB6T4GLL.cjs.map +1 -0
- package/dist/{chunk-MX4DHSQP.cjs → chunk-JFRT7S3B.cjs} +92 -98
- package/dist/chunk-JFRT7S3B.cjs.map +1 -0
- package/dist/{chunk-5UMTUOM5.js → chunk-JPD2CTC3.js} +5 -4
- package/dist/chunk-JPD2CTC3.js.map +1 -0
- package/dist/{chunk-SE6EGQSD.js → chunk-KF6K7TGH.js} +38 -66
- package/dist/chunk-KF6K7TGH.js.map +1 -0
- package/dist/{chunk-QS3NQZVC.js → chunk-LTXQOEIC.js} +44 -14
- package/dist/chunk-LTXQOEIC.js.map +1 -0
- package/dist/{chunk-ZHNXLS3C.js → chunk-NACVVDWB.js} +208 -8
- package/dist/chunk-NACVVDWB.js.map +1 -0
- package/dist/{chunk-AVGUJWVX.js → chunk-S5TERQVW.js} +15 -132
- package/dist/chunk-S5TERQVW.js.map +1 -0
- package/dist/chunk-SIT26LAZ.cjs +614 -0
- package/dist/chunk-SIT26LAZ.cjs.map +1 -0
- package/dist/{chunk-BR7SHKGM.cjs → chunk-SR725PWF.cjs} +548 -507
- package/dist/chunk-SR725PWF.cjs.map +1 -0
- package/dist/{chunk-425IZOQ5.cjs → chunk-TQHGE7UC.cjs} +20 -2
- package/dist/chunk-TQHGE7UC.cjs.map +1 -0
- package/dist/{chunk-GYUJZARH.cjs → chunk-TUNPBZY3.cjs} +4 -4
- package/dist/{chunk-GYUJZARH.cjs.map → chunk-TUNPBZY3.cjs.map} +1 -1
- package/dist/chunk-UGHG7PGX.js +592 -0
- package/dist/chunk-UGHG7PGX.js.map +1 -0
- package/dist/{chunk-BCQ76AXA.cjs → chunk-UGHQV7MP.cjs} +107 -94
- package/dist/chunk-UGHQV7MP.cjs.map +1 -0
- package/dist/{chunk-KABFHAL7.cjs → chunk-UMGZDVOA.cjs} +213 -12
- package/dist/chunk-UMGZDVOA.cjs.map +1 -0
- package/dist/{chunk-6FWSNSRE.js → chunk-WIC7DRXW.js} +4 -4
- package/dist/chunk-WIC7DRXW.js.map +1 -0
- package/dist/{chunk-LEWHMOUY.js → chunk-YIURNGXI.js} +4 -4
- package/dist/{chunk-LEWHMOUY.js.map → chunk-YIURNGXI.js.map} +1 -1
- package/dist/{chunk-EP4RUYD6.js → chunk-YVF2EM7B.js} +3 -3
- package/dist/{chunk-EP4RUYD6.js.map → chunk-YVF2EM7B.js.map} +1 -1
- package/dist/{chunk-EMIB2RXD.cjs → chunk-YYUHLYM2.cjs} +99 -96
- package/dist/chunk-YYUHLYM2.cjs.map +1 -0
- package/dist/{chunk-KH7XW7VV.js → chunk-Z2JCLZFJ.js} +25 -28
- package/dist/chunk-Z2JCLZFJ.js.map +1 -0
- package/dist/{chunk-NNQ6A3RM.js → chunk-ZFMCDJGB.js} +7 -12
- package/dist/chunk-ZFMCDJGB.js.map +1 -0
- package/dist/core/index.cjs +6 -6
- package/dist/core/index.d.cts +4 -4
- package/dist/core/index.d.ts +4 -4
- package/dist/core/index.js +2 -2
- package/dist/ddl-BL1NZLMY.d.cts +78 -0
- package/dist/ddl-D_oW-EVO.d.ts +78 -0
- package/dist/graph-extension/index.d.cts +4 -4
- package/dist/graph-extension/index.d.ts +4 -4
- package/dist/graph-merge/index.cjs +357 -191
- package/dist/graph-merge/index.cjs.map +1 -1
- package/dist/graph-merge/index.d.cts +68 -15
- package/dist/graph-merge/index.d.ts +68 -15
- package/dist/graph-merge/index.js +197 -32
- package/dist/graph-merge/index.js.map +1 -1
- package/dist/{index-CHTv4XMZ.d.cts → index-COs_z6nV.d.cts} +2 -2
- package/dist/{index-CzoJ3MUw.d.ts → index-D7d1u2gr.d.ts} +2 -2
- package/dist/index.cjs +90 -86
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +13 -13
- package/dist/index.js.map +1 -1
- package/dist/indexes/index.d.cts +4 -4
- package/dist/indexes/index.d.ts +4 -4
- package/dist/ingestion-import-target-XPxZYw89.d.cts +17 -0
- package/dist/ingestion-import-target-dNeL7iAv.d.ts +17 -0
- package/dist/interchange/index.cjs +38 -38
- package/dist/interchange/index.d.cts +15 -12
- package/dist/interchange/index.d.ts +15 -12
- package/dist/interchange/index.js +10 -10
- package/dist/{manager-DlY1vlla.d.cts → manager-CYaff3n3.d.cts} +2 -2
- package/dist/{manager-B6sOQzcQ.d.ts → manager-D9eRT_ns.d.ts} +2 -2
- package/dist/{materialize-indexes-DQL4xcpf.d.ts → materialize-indexes-DJ3ykH59.d.ts} +1 -1
- package/dist/{materialize-indexes-sskhp-c_.d.cts → materialize-indexes-DTtAnvfY.d.cts} +1 -1
- package/dist/{postgres-BXy_nyMs.d.cts → postgres-CcL4bAHS.d.ts} +1 -1
- package/dist/{postgres-B6YOUcaK.d.ts → postgres-DMj39MEu.d.cts} +1 -1
- package/dist/profiler/index.d.cts +9 -9
- package/dist/profiler/index.d.ts +9 -9
- package/dist/provenance/index.cjs +25 -26
- package/dist/provenance/index.cjs.map +1 -1
- package/dist/provenance/index.d.cts +7 -7
- package/dist/provenance/index.d.ts +7 -7
- package/dist/provenance/index.js +9 -10
- package/dist/provenance/index.js.map +1 -1
- package/dist/repair-validity-windows-BFNZvd_H.d.cts +166 -0
- package/dist/repair-validity-windows-DlUSqwCg.d.ts +166 -0
- package/dist/schema/index.cjs +35 -35
- package/dist/schema/index.d.cts +6 -6
- package/dist/schema/index.d.ts +6 -6
- package/dist/schema/index.js +8 -8
- package/dist/{searchable-D9gMiwcS.d.ts → searchable-DHJMh_nj.d.cts} +1 -1
- package/dist/{searchable-0Cn_lY8U.d.cts → searchable-bpE1bBfc.d.ts} +1 -1
- package/dist/{sqlite-DioSxaPe.d.cts → sqlite-D7Oz0SQh.d.ts} +1 -1
- package/dist/{sqlite-ClXuBYAj.d.ts → sqlite-YppHrNFb.d.cts} +1 -1
- package/dist/{store-5j-w5onJ.d.ts → store-DRrFCx5x.d.ts} +122 -27
- package/dist/{store-CFedKGU5.d.cts → store-bphCSo7z.d.cts} +122 -27
- package/dist/{temporal-CjO9FH1l.d.ts → temporal-5GqpYCk2.d.cts} +1 -1
- package/dist/{temporal-Ce1pG0S1.d.cts → temporal-CbnLzTmM.d.ts} +1 -1
- package/dist/{types-DKkMJZjR.d.cts → types-BqFZTQmV.d.cts} +29 -4
- package/dist/{types-DKkMJZjR.d.ts → types-BqFZTQmV.d.ts} +29 -4
- package/dist/{types-BrdOFu48.d.ts → types-Bx74kaTt.d.ts} +1 -1
- package/dist/{types-oj_OGAaZ.d.cts → types-CXAhpW-c.d.cts} +1 -1
- package/dist/{where-D1wKCJ4Q.d.cts → where-DI_Fqz-X.d.cts} +1 -1
- package/dist/{where-C8w2627G.d.ts → where-O-k2wgYm.d.ts} +1 -1
- package/package.json +2 -3
- package/dist/chunk-3HGRTCDU.cjs +0 -269
- package/dist/chunk-3HGRTCDU.cjs.map +0 -1
- package/dist/chunk-425IZOQ5.cjs.map +0 -1
- package/dist/chunk-5FBRVORR.cjs.map +0 -1
- package/dist/chunk-5FT3TLPK.js.map +0 -1
- package/dist/chunk-5UMTUOM5.js.map +0 -1
- package/dist/chunk-6FWSNSRE.js.map +0 -1
- package/dist/chunk-AVGUJWVX.js.map +0 -1
- package/dist/chunk-BCQ76AXA.cjs.map +0 -1
- package/dist/chunk-BR7SHKGM.cjs.map +0 -1
- package/dist/chunk-DJZTXBWY.js.map +0 -1
- package/dist/chunk-EMIB2RXD.cjs.map +0 -1
- package/dist/chunk-FNOMT74T.js.map +0 -1
- package/dist/chunk-I4G3SQPF.cjs.map +0 -1
- package/dist/chunk-JR6SX5RH.cjs +0 -268
- package/dist/chunk-JR6SX5RH.cjs.map +0 -1
- package/dist/chunk-KABFHAL7.cjs.map +0 -1
- package/dist/chunk-KH7XW7VV.js.map +0 -1
- package/dist/chunk-M35DF33T.js.map +0 -1
- package/dist/chunk-MFZR4QKM.cjs.map +0 -1
- package/dist/chunk-MX4DHSQP.cjs.map +0 -1
- package/dist/chunk-NAZ2RA4L.js +0 -254
- package/dist/chunk-NAZ2RA4L.js.map +0 -1
- package/dist/chunk-NG2RB5WL.js.map +0 -1
- package/dist/chunk-NNQ6A3RM.js.map +0 -1
- package/dist/chunk-OIFSOPSR.cjs.map +0 -1
- package/dist/chunk-QS3NQZVC.js.map +0 -1
- package/dist/chunk-SE6EGQSD.js.map +0 -1
- package/dist/chunk-SHSSRCFR.js +0 -246
- package/dist/chunk-SHSSRCFR.js.map +0 -1
- package/dist/chunk-U5EDAVOJ.cjs.map +0 -1
- package/dist/chunk-UPAJHMW3.cjs.map +0 -1
- package/dist/chunk-WGX7JH7E.cjs.map +0 -1
- package/dist/chunk-ZHNXLS3C.js.map +0 -1
- package/dist/ddl-CprnMXJ-.d.ts +0 -38
- package/dist/ddl-DJA7Lci5.d.cts +0 -38
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-
|
|
7
|
-
require('../chunk-
|
|
3
|
+
var chunk3G5W2U2L_cjs = require('../chunk-3G5W2U2L.cjs');
|
|
4
|
+
require('../chunk-JB6T4GLL.cjs');
|
|
5
|
+
var chunk3KOY4FH3_cjs = require('../chunk-3KOY4FH3.cjs');
|
|
6
|
+
require('../chunk-JFRT7S3B.cjs');
|
|
7
|
+
require('../chunk-EZEEWCFJ.cjs');
|
|
8
8
|
require('../chunk-PWLJ77UV.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
var chunkSIT26LAZ_cjs = require('../chunk-SIT26LAZ.cjs');
|
|
10
10
|
require('../chunk-3U5ABFDW.cjs');
|
|
11
|
-
|
|
11
|
+
require('../chunk-5PRKMB24.cjs');
|
|
12
12
|
require('../chunk-BFUOME67.cjs');
|
|
13
13
|
require('../chunk-FQPEMEWX.cjs');
|
|
14
|
-
require('../chunk-
|
|
15
|
-
var
|
|
14
|
+
require('../chunk-2QGYQBS2.cjs');
|
|
15
|
+
var chunkTQHGE7UC_cjs = require('../chunk-TQHGE7UC.cjs');
|
|
16
16
|
require('../chunk-NAUA4PW5.cjs');
|
|
17
17
|
require('../chunk-L3LQNR34.cjs');
|
|
18
18
|
require('../chunk-EDN4Y4ZG.cjs');
|
|
@@ -81,10 +81,10 @@ function invalidStream(message) {
|
|
|
81
81
|
}
|
|
82
82
|
function nonCanonicalWindowOf(entity) {
|
|
83
83
|
const { validFrom, validTo } = entity;
|
|
84
|
-
if (typeof validFrom === "string" && !
|
|
84
|
+
if (typeof validFrom === "string" && !chunkTQHGE7UC_cjs.isCanonicalIsoDate(validFrom)) {
|
|
85
85
|
return { field: "validFrom", value: validFrom };
|
|
86
86
|
}
|
|
87
|
-
if (typeof validTo === "string" && !
|
|
87
|
+
if (typeof validTo === "string" && !chunkTQHGE7UC_cjs.isCanonicalIsoDate(validTo)) {
|
|
88
88
|
return { field: "validTo", value: validTo };
|
|
89
89
|
}
|
|
90
90
|
return void 0;
|
|
@@ -100,7 +100,7 @@ function nonCanonicalWindowMessage(subject, field, value) {
|
|
|
100
100
|
return `Non-canonical ${field} in trusted import: ${subject} states "${value}". Expected canonical fixed-width UTC ISO 8601 (YYYY-MM-DDTHH:mm:ss.sssZ), which is what makes a stored timestamp sort chronologically against an asOf coordinate. Convert with new Date(value).toISOString().`;
|
|
101
101
|
}
|
|
102
102
|
function hasInvertedWindow(entity) {
|
|
103
|
-
return
|
|
103
|
+
return chunkTQHGE7UC_cjs.isInvertedValidityWindow(
|
|
104
104
|
entity.validFrom ?? void 0,
|
|
105
105
|
entity.validTo
|
|
106
106
|
);
|
|
@@ -260,7 +260,7 @@ async function consumeTrustedChunks(store, session, chunks) {
|
|
|
260
260
|
}
|
|
261
261
|
async function trustedImportGraphStream(store, chunks) {
|
|
262
262
|
rejectUnsupportedStoreFeatures(store);
|
|
263
|
-
const backend =
|
|
263
|
+
const backend = chunk3KOY4FH3_cjs.storeBackend(store);
|
|
264
264
|
const trustedImport = backend.trustedImport;
|
|
265
265
|
if (trustedImport === void 0) {
|
|
266
266
|
throw new chunkMRDBBHIZ_cjs.TrustedImportError(
|
|
@@ -269,10 +269,10 @@ async function trustedImportGraphStream(store, chunks) {
|
|
|
269
269
|
{ dialect: backend.dialect }
|
|
270
270
|
);
|
|
271
271
|
}
|
|
272
|
-
const sourceBackend = Symbol.asyncIterator in chunks ?
|
|
273
|
-
const contention = sourceBackend === void 0 ? void 0 :
|
|
272
|
+
const sourceBackend = Symbol.asyncIterator in chunks ? chunk3G5W2U2L_cjs.exportStreamBackend(chunks) : void 0;
|
|
273
|
+
const contention = sourceBackend === void 0 ? void 0 : chunkSIT26LAZ_cjs.snapshotExportContention(sourceBackend, backend);
|
|
274
274
|
if (contention !== void 0) {
|
|
275
|
-
throw
|
|
275
|
+
throw chunk3G5W2U2L_cjs.serializedStreamRefusal({
|
|
276
276
|
graphId: store.graphId,
|
|
277
277
|
requested: "import-stream",
|
|
278
278
|
heldBy: "export-snapshot",
|
|
@@ -286,7 +286,7 @@ async function trustedImportGraphStream(store, chunks) {
|
|
|
286
286
|
expectedVersion: schemaVersion
|
|
287
287
|
}
|
|
288
288
|
};
|
|
289
|
-
return
|
|
289
|
+
return chunk3G5W2U2L_cjs.withImportStreamLease(
|
|
290
290
|
store,
|
|
291
291
|
() => trustedImport(
|
|
292
292
|
(session) => consumeTrustedChunks(store, session, chunks),
|
|
@@ -315,87 +315,87 @@ function trustedImportGraph(store, data) {
|
|
|
315
315
|
|
|
316
316
|
Object.defineProperty(exports, "ConflictStrategySchema", {
|
|
317
317
|
enumerable: true,
|
|
318
|
-
get: function () { return
|
|
318
|
+
get: function () { return chunk3G5W2U2L_cjs.ConflictStrategySchema; }
|
|
319
319
|
});
|
|
320
320
|
Object.defineProperty(exports, "ExportOptionsSchema", {
|
|
321
321
|
enumerable: true,
|
|
322
|
-
get: function () { return
|
|
322
|
+
get: function () { return chunk3G5W2U2L_cjs.ExportOptionsSchema; }
|
|
323
323
|
});
|
|
324
324
|
Object.defineProperty(exports, "ExportStreamOptionsSchema", {
|
|
325
325
|
enumerable: true,
|
|
326
|
-
get: function () { return
|
|
326
|
+
get: function () { return chunk3G5W2U2L_cjs.ExportStreamOptionsSchema; }
|
|
327
327
|
});
|
|
328
328
|
Object.defineProperty(exports, "FORMAT_VERSION", {
|
|
329
329
|
enumerable: true,
|
|
330
|
-
get: function () { return
|
|
330
|
+
get: function () { return chunk3G5W2U2L_cjs.FORMAT_VERSION; }
|
|
331
331
|
});
|
|
332
332
|
Object.defineProperty(exports, "GraphDataHeaderSchema", {
|
|
333
333
|
enumerable: true,
|
|
334
|
-
get: function () { return
|
|
334
|
+
get: function () { return chunk3G5W2U2L_cjs.GraphDataHeaderSchema; }
|
|
335
335
|
});
|
|
336
336
|
Object.defineProperty(exports, "GraphDataSchema", {
|
|
337
337
|
enumerable: true,
|
|
338
|
-
get: function () { return
|
|
338
|
+
get: function () { return chunk3G5W2U2L_cjs.GraphDataSchema; }
|
|
339
339
|
});
|
|
340
340
|
Object.defineProperty(exports, "GraphDataSourceSchema", {
|
|
341
341
|
enumerable: true,
|
|
342
|
-
get: function () { return
|
|
342
|
+
get: function () { return chunk3G5W2U2L_cjs.GraphDataSourceSchema; }
|
|
343
343
|
});
|
|
344
344
|
Object.defineProperty(exports, "GraphInterchangeChunkSchema", {
|
|
345
345
|
enumerable: true,
|
|
346
|
-
get: function () { return
|
|
346
|
+
get: function () { return chunk3G5W2U2L_cjs.GraphInterchangeChunkSchema; }
|
|
347
347
|
});
|
|
348
348
|
Object.defineProperty(exports, "IdentityInterchangeModeSchema", {
|
|
349
349
|
enumerable: true,
|
|
350
|
-
get: function () { return
|
|
350
|
+
get: function () { return chunk3G5W2U2L_cjs.IdentityInterchangeModeSchema; }
|
|
351
351
|
});
|
|
352
352
|
Object.defineProperty(exports, "ImportErrorSchema", {
|
|
353
353
|
enumerable: true,
|
|
354
|
-
get: function () { return
|
|
354
|
+
get: function () { return chunk3G5W2U2L_cjs.ImportErrorSchema; }
|
|
355
355
|
});
|
|
356
356
|
Object.defineProperty(exports, "ImportOptionsSchema", {
|
|
357
357
|
enumerable: true,
|
|
358
|
-
get: function () { return
|
|
358
|
+
get: function () { return chunk3G5W2U2L_cjs.ImportOptionsSchema; }
|
|
359
359
|
});
|
|
360
360
|
Object.defineProperty(exports, "ImportResultSchema", {
|
|
361
361
|
enumerable: true,
|
|
362
|
-
get: function () { return
|
|
362
|
+
get: function () { return chunk3G5W2U2L_cjs.ImportResultSchema; }
|
|
363
363
|
});
|
|
364
364
|
Object.defineProperty(exports, "InterchangeEdgeSchema", {
|
|
365
365
|
enumerable: true,
|
|
366
|
-
get: function () { return
|
|
366
|
+
get: function () { return chunk3G5W2U2L_cjs.InterchangeEdgeSchema; }
|
|
367
367
|
});
|
|
368
368
|
Object.defineProperty(exports, "InterchangeIdentityAssertionSchema", {
|
|
369
369
|
enumerable: true,
|
|
370
|
-
get: function () { return
|
|
370
|
+
get: function () { return chunk3G5W2U2L_cjs.InterchangeIdentityAssertionSchema; }
|
|
371
371
|
});
|
|
372
372
|
Object.defineProperty(exports, "InterchangeIdentitySchema", {
|
|
373
373
|
enumerable: true,
|
|
374
|
-
get: function () { return
|
|
374
|
+
get: function () { return chunk3G5W2U2L_cjs.InterchangeIdentitySchema; }
|
|
375
375
|
});
|
|
376
376
|
Object.defineProperty(exports, "InterchangeNodeSchema", {
|
|
377
377
|
enumerable: true,
|
|
378
|
-
get: function () { return
|
|
378
|
+
get: function () { return chunk3G5W2U2L_cjs.InterchangeNodeSchema; }
|
|
379
379
|
});
|
|
380
380
|
Object.defineProperty(exports, "UnknownPropertyStrategySchema", {
|
|
381
381
|
enumerable: true,
|
|
382
|
-
get: function () { return
|
|
382
|
+
get: function () { return chunk3G5W2U2L_cjs.UnknownPropertyStrategySchema; }
|
|
383
383
|
});
|
|
384
384
|
Object.defineProperty(exports, "exportGraph", {
|
|
385
385
|
enumerable: true,
|
|
386
|
-
get: function () { return
|
|
386
|
+
get: function () { return chunk3G5W2U2L_cjs.exportGraph; }
|
|
387
387
|
});
|
|
388
388
|
Object.defineProperty(exports, "exportGraphStream", {
|
|
389
389
|
enumerable: true,
|
|
390
|
-
get: function () { return
|
|
390
|
+
get: function () { return chunk3G5W2U2L_cjs.exportGraphStream; }
|
|
391
391
|
});
|
|
392
392
|
Object.defineProperty(exports, "importGraph", {
|
|
393
393
|
enumerable: true,
|
|
394
|
-
get: function () { return
|
|
394
|
+
get: function () { return chunk3G5W2U2L_cjs.importGraph; }
|
|
395
395
|
});
|
|
396
396
|
Object.defineProperty(exports, "importGraphStream", {
|
|
397
397
|
enumerable: true,
|
|
398
|
-
get: function () { return
|
|
398
|
+
get: function () { return chunk3G5W2U2L_cjs.importGraphStream; }
|
|
399
399
|
});
|
|
400
400
|
exports.trustedImportGraph = trustedImportGraph;
|
|
401
401
|
exports.trustedImportGraphStream = trustedImportGraphStream;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { d8 as GraphDef } from '../types-BqFZTQmV.cjs';
|
|
2
|
+
export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult } from '../types-BqFZTQmV.cjs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { a as Store } from '../store-
|
|
5
|
-
import '../
|
|
6
|
-
import '../
|
|
7
|
-
import '../
|
|
8
|
-
import '../
|
|
4
|
+
import { a as Store } from '../store-bphCSo7z.cjs';
|
|
5
|
+
import { I as IngestionImportTarget } from '../ingestion-import-target-XPxZYw89.cjs';
|
|
6
|
+
import '../temporal-5GqpYCk2.cjs';
|
|
7
|
+
import '../searchable-DHJMh_nj.cjs';
|
|
8
|
+
import '../manager-CYaff3n3.cjs';
|
|
9
|
+
import '../materialize-indexes-DTtAnvfY.cjs';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Graph interchange format types.
|
|
@@ -559,8 +560,10 @@ declare function exportGraph<G extends GraphDef>(store: Store<G>, options?: Expo
|
|
|
559
560
|
*/
|
|
560
561
|
declare function exportGraphStream<G extends GraphDef>(store: Store<G>, options?: ExportStreamOptionsInput): AsyncIterable<GraphInterchangeChunk>;
|
|
561
562
|
|
|
563
|
+
/** A normal Store or an opaque ingestion branch that interchange may stage. */
|
|
564
|
+
type ImportTarget<G extends GraphDef> = Store<G> | IngestionImportTarget<G>;
|
|
562
565
|
/**
|
|
563
|
-
* Import graph data into a store.
|
|
566
|
+
* Import graph data into a store or opaque ingestion branch.
|
|
564
567
|
*
|
|
565
568
|
* Nodes are imported first to satisfy edge reference validation.
|
|
566
569
|
* The import runs within a transaction for atomicity when supported.
|
|
@@ -573,7 +576,7 @@ declare function exportGraphStream<G extends GraphDef>(store: Store<G>, options?
|
|
|
573
576
|
* connection is therefore refused on the first chunk instead of nesting a write
|
|
574
577
|
* transaction inside the export's open snapshot.
|
|
575
578
|
*
|
|
576
|
-
* @param
|
|
579
|
+
* @param target - The graph store or ingestion branch to import into
|
|
577
580
|
* @param data - Graph data in interchange format
|
|
578
581
|
* @param options - Import configuration
|
|
579
582
|
* @returns Import statistics and any errors
|
|
@@ -588,7 +591,7 @@ declare function exportGraphStream<G extends GraphDef>(store: Store<G>, options?
|
|
|
588
591
|
* console.log(`Created ${result.nodes.created} nodes`);
|
|
589
592
|
* ```
|
|
590
593
|
*/
|
|
591
|
-
declare function importGraph<G extends GraphDef>(
|
|
594
|
+
declare function importGraph<G extends GraphDef>(target: ImportTarget<G>, data: GraphData, rawOptions: ImportOptions): Promise<ImportResult>;
|
|
592
595
|
/**
|
|
593
596
|
* Imports a header-first stream of bounded interchange chunks.
|
|
594
597
|
*
|
|
@@ -626,7 +629,7 @@ declare function importGraph<G extends GraphDef>(store: Store<G>, data: GraphDat
|
|
|
626
629
|
* single-connection — see the residual gap documented in
|
|
627
630
|
* `backend/transaction-resource.ts`.
|
|
628
631
|
*/
|
|
629
|
-
declare function importGraphStream<G extends GraphDef>(
|
|
632
|
+
declare function importGraphStream<G extends GraphDef>(target: ImportTarget<G>, chunks: AsyncIterable<GraphInterchangeChunk>, rawOptions: ImportOptions): Promise<ImportResult>;
|
|
630
633
|
|
|
631
634
|
/** Counts committed by a trusted initial import. */
|
|
632
635
|
type TrustedImportResult = Readonly<{
|
|
@@ -656,4 +659,4 @@ declare function trustedImportGraphStream<G extends GraphDef>(store: Store<G>, c
|
|
|
656
659
|
/** In-memory convenience wrapper around {@link trustedImportGraphStream}. */
|
|
657
660
|
declare function trustedImportGraph<G extends GraphDef>(store: Store<G>, data: GraphData): Promise<TrustedImportResult>;
|
|
658
661
|
|
|
659
|
-
export { type ConflictStrategy, ConflictStrategySchema, type ExportOptions, type ExportOptionsInput, ExportOptionsSchema, type ExportStreamOptions, type ExportStreamOptionsInput, ExportStreamOptionsSchema, FORMAT_VERSION, type GraphData, type GraphDataHeader, GraphDataHeaderSchema, GraphDataSchema, type GraphDataSource, GraphDataSourceSchema, type GraphInterchangeChunk, GraphInterchangeChunkSchema, type IdentityInterchangeMode, IdentityInterchangeModeSchema, type ImportError, ImportErrorSchema, type ImportOptions, ImportOptionsSchema, type ImportResult, ImportResultSchema, type InterchangeEdge, InterchangeEdgeSchema, type InterchangeIdentity, type InterchangeIdentityAssertion, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, type InterchangeNode, InterchangeNodeSchema, type TrustedImportResult, type UnknownPropertyStrategy, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream, trustedImportGraph, trustedImportGraphStream };
|
|
662
|
+
export { type ConflictStrategy, ConflictStrategySchema, type ExportOptions, type ExportOptionsInput, ExportOptionsSchema, type ExportStreamOptions, type ExportStreamOptionsInput, ExportStreamOptionsSchema, FORMAT_VERSION, type GraphData, type GraphDataHeader, GraphDataHeaderSchema, GraphDataSchema, type GraphDataSource, GraphDataSourceSchema, type GraphInterchangeChunk, GraphInterchangeChunkSchema, type IdentityInterchangeMode, IdentityInterchangeModeSchema, type ImportError, ImportErrorSchema, type ImportOptions, ImportOptionsSchema, type ImportResult, ImportResultSchema, type ImportTarget, IngestionImportTarget, type InterchangeEdge, InterchangeEdgeSchema, type InterchangeIdentity, type InterchangeIdentityAssertion, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, type InterchangeNode, InterchangeNodeSchema, type TrustedImportResult, type UnknownPropertyStrategy, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream, trustedImportGraph, trustedImportGraphStream };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { d8 as GraphDef } from '../types-BqFZTQmV.js';
|
|
2
|
+
export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult } from '../types-BqFZTQmV.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { a as Store } from '../store-
|
|
5
|
-
import '../
|
|
6
|
-
import '../
|
|
7
|
-
import '../
|
|
8
|
-
import '../
|
|
4
|
+
import { a as Store } from '../store-DRrFCx5x.js';
|
|
5
|
+
import { I as IngestionImportTarget } from '../ingestion-import-target-dNeL7iAv.js';
|
|
6
|
+
import '../temporal-CbnLzTmM.js';
|
|
7
|
+
import '../searchable-bpE1bBfc.js';
|
|
8
|
+
import '../manager-D9eRT_ns.js';
|
|
9
|
+
import '../materialize-indexes-DJ3ykH59.js';
|
|
9
10
|
|
|
10
11
|
/**
|
|
11
12
|
* Graph interchange format types.
|
|
@@ -559,8 +560,10 @@ declare function exportGraph<G extends GraphDef>(store: Store<G>, options?: Expo
|
|
|
559
560
|
*/
|
|
560
561
|
declare function exportGraphStream<G extends GraphDef>(store: Store<G>, options?: ExportStreamOptionsInput): AsyncIterable<GraphInterchangeChunk>;
|
|
561
562
|
|
|
563
|
+
/** A normal Store or an opaque ingestion branch that interchange may stage. */
|
|
564
|
+
type ImportTarget<G extends GraphDef> = Store<G> | IngestionImportTarget<G>;
|
|
562
565
|
/**
|
|
563
|
-
* Import graph data into a store.
|
|
566
|
+
* Import graph data into a store or opaque ingestion branch.
|
|
564
567
|
*
|
|
565
568
|
* Nodes are imported first to satisfy edge reference validation.
|
|
566
569
|
* The import runs within a transaction for atomicity when supported.
|
|
@@ -573,7 +576,7 @@ declare function exportGraphStream<G extends GraphDef>(store: Store<G>, options?
|
|
|
573
576
|
* connection is therefore refused on the first chunk instead of nesting a write
|
|
574
577
|
* transaction inside the export's open snapshot.
|
|
575
578
|
*
|
|
576
|
-
* @param
|
|
579
|
+
* @param target - The graph store or ingestion branch to import into
|
|
577
580
|
* @param data - Graph data in interchange format
|
|
578
581
|
* @param options - Import configuration
|
|
579
582
|
* @returns Import statistics and any errors
|
|
@@ -588,7 +591,7 @@ declare function exportGraphStream<G extends GraphDef>(store: Store<G>, options?
|
|
|
588
591
|
* console.log(`Created ${result.nodes.created} nodes`);
|
|
589
592
|
* ```
|
|
590
593
|
*/
|
|
591
|
-
declare function importGraph<G extends GraphDef>(
|
|
594
|
+
declare function importGraph<G extends GraphDef>(target: ImportTarget<G>, data: GraphData, rawOptions: ImportOptions): Promise<ImportResult>;
|
|
592
595
|
/**
|
|
593
596
|
* Imports a header-first stream of bounded interchange chunks.
|
|
594
597
|
*
|
|
@@ -626,7 +629,7 @@ declare function importGraph<G extends GraphDef>(store: Store<G>, data: GraphDat
|
|
|
626
629
|
* single-connection — see the residual gap documented in
|
|
627
630
|
* `backend/transaction-resource.ts`.
|
|
628
631
|
*/
|
|
629
|
-
declare function importGraphStream<G extends GraphDef>(
|
|
632
|
+
declare function importGraphStream<G extends GraphDef>(target: ImportTarget<G>, chunks: AsyncIterable<GraphInterchangeChunk>, rawOptions: ImportOptions): Promise<ImportResult>;
|
|
630
633
|
|
|
631
634
|
/** Counts committed by a trusted initial import. */
|
|
632
635
|
type TrustedImportResult = Readonly<{
|
|
@@ -656,4 +659,4 @@ declare function trustedImportGraphStream<G extends GraphDef>(store: Store<G>, c
|
|
|
656
659
|
/** In-memory convenience wrapper around {@link trustedImportGraphStream}. */
|
|
657
660
|
declare function trustedImportGraph<G extends GraphDef>(store: Store<G>, data: GraphData): Promise<TrustedImportResult>;
|
|
658
661
|
|
|
659
|
-
export { type ConflictStrategy, ConflictStrategySchema, type ExportOptions, type ExportOptionsInput, ExportOptionsSchema, type ExportStreamOptions, type ExportStreamOptionsInput, ExportStreamOptionsSchema, FORMAT_VERSION, type GraphData, type GraphDataHeader, GraphDataHeaderSchema, GraphDataSchema, type GraphDataSource, GraphDataSourceSchema, type GraphInterchangeChunk, GraphInterchangeChunkSchema, type IdentityInterchangeMode, IdentityInterchangeModeSchema, type ImportError, ImportErrorSchema, type ImportOptions, ImportOptionsSchema, type ImportResult, ImportResultSchema, type InterchangeEdge, InterchangeEdgeSchema, type InterchangeIdentity, type InterchangeIdentityAssertion, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, type InterchangeNode, InterchangeNodeSchema, type TrustedImportResult, type UnknownPropertyStrategy, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream, trustedImportGraph, trustedImportGraphStream };
|
|
662
|
+
export { type ConflictStrategy, ConflictStrategySchema, type ExportOptions, type ExportOptionsInput, ExportOptionsSchema, type ExportStreamOptions, type ExportStreamOptionsInput, ExportStreamOptionsSchema, FORMAT_VERSION, type GraphData, type GraphDataHeader, GraphDataHeaderSchema, GraphDataSchema, type GraphDataSource, GraphDataSourceSchema, type GraphInterchangeChunk, GraphInterchangeChunkSchema, type IdentityInterchangeMode, IdentityInterchangeModeSchema, type ImportError, ImportErrorSchema, type ImportOptions, ImportOptionsSchema, type ImportResult, ImportResultSchema, type ImportTarget, IngestionImportTarget, type InterchangeEdge, InterchangeEdgeSchema, type InterchangeIdentity, type InterchangeIdentityAssertion, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, type InterchangeNode, InterchangeNodeSchema, type TrustedImportResult, type UnknownPropertyStrategy, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream, trustedImportGraph, trustedImportGraphStream };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { exportStreamBackend, serializedStreamRefusal, withImportStreamLease } from '../chunk-
|
|
2
|
-
export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, IdentityInterchangeModeSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import { storeBackend } from '../chunk-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
1
|
+
import { exportStreamBackend, serializedStreamRefusal, withImportStreamLease } from '../chunk-LTXQOEIC.js';
|
|
2
|
+
export { ConflictStrategySchema, ExportOptionsSchema, ExportStreamOptionsSchema, FORMAT_VERSION, GraphDataHeaderSchema, GraphDataSchema, GraphDataSourceSchema, GraphInterchangeChunkSchema, IdentityInterchangeModeSchema, ImportErrorSchema, ImportOptionsSchema, ImportResultSchema, InterchangeEdgeSchema, InterchangeIdentityAssertionSchema, InterchangeIdentitySchema, InterchangeNodeSchema, UnknownPropertyStrategySchema, exportGraph, exportGraphStream, importGraph, importGraphStream } from '../chunk-LTXQOEIC.js';
|
|
3
|
+
import '../chunk-KF6K7TGH.js';
|
|
4
|
+
import { storeBackend } from '../chunk-I4GAZH5Z.js';
|
|
5
|
+
import '../chunk-ZFMCDJGB.js';
|
|
6
|
+
import '../chunk-S5TERQVW.js';
|
|
7
7
|
import '../chunk-JBQQ7THH.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import { snapshotExportContention } from '../chunk-UGHG7PGX.js';
|
|
9
9
|
import '../chunk-NVY5CJFP.js';
|
|
10
|
-
import
|
|
10
|
+
import '../chunk-6LN7FIVU.js';
|
|
11
11
|
import '../chunk-HEV35TGT.js';
|
|
12
12
|
import '../chunk-GLHXM7C4.js';
|
|
13
|
-
import '../chunk-
|
|
14
|
-
import { isInvertedValidityWindow, isCanonicalIsoDate } from '../chunk-
|
|
13
|
+
import '../chunk-DZAICA5J.js';
|
|
14
|
+
import { isInvertedValidityWindow, isCanonicalIsoDate } from '../chunk-5K2BKEBD.js';
|
|
15
15
|
import '../chunk-2EBMPJBO.js';
|
|
16
16
|
import '../chunk-ZDKTPBGV.js';
|
|
17
17
|
import '../chunk-3DMMGT6S.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as SchemaDiff } from './materialize-indexes-
|
|
1
|
+
import { dg as NodeType, dh as AnyEdgeType, aR as GraphIdentityConfig, di as SqlSchema, bR as SchemaVersionRow, aM as GraphBackend, bZ as SerializedSchema, d8 as GraphDef } from './types-BqFZTQmV.cjs';
|
|
2
|
+
import { S as SchemaDiff } from './materialize-indexes-DTtAnvfY.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* KindRegistry holds precomputed closures for ontological reasoning.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as SchemaDiff } from './materialize-indexes-
|
|
1
|
+
import { dg as NodeType, dh as AnyEdgeType, aR as GraphIdentityConfig, di as SqlSchema, bR as SchemaVersionRow, aM as GraphBackend, bZ as SerializedSchema, d8 as GraphDef } from './types-BqFZTQmV.js';
|
|
2
|
+
import { S as SchemaDiff } from './materialize-indexes-DJ3ykH59.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* KindRegistry holds precomputed closures for ontological reasoning.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bW as SerializedNodeDef, bU as SerializedEdgeDef, b0 as IndexEntity, I as IndexDeclaration, bZ as SerializedSchema } from './types-BqFZTQmV.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Schema migration utilities.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bW as SerializedNodeDef, bU as SerializedEdgeDef, b0 as IndexEntity, I as IndexDeclaration, bZ as SerializedSchema } from './types-BqFZTQmV.cjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Schema migration utilities.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { a as Store } from '../store-
|
|
4
|
-
import { P as ProfilerOptions, a as ProfileReport } from '../types-
|
|
5
|
-
export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-
|
|
1
|
+
import { d8 as GraphDef, d9 as QueryAst } from '../types-BqFZTQmV.cjs';
|
|
2
|
+
export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult } from '../types-BqFZTQmV.cjs';
|
|
3
|
+
import { a as Store } from '../store-bphCSo7z.cjs';
|
|
4
|
+
import { P as ProfilerOptions, a as ProfileReport } from '../types-CXAhpW-c.cjs';
|
|
5
|
+
export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-CXAhpW-c.cjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../temporal-
|
|
8
|
-
import '../searchable-
|
|
9
|
-
import '../manager-
|
|
10
|
-
import '../materialize-indexes-
|
|
7
|
+
import '../temporal-5GqpYCk2.cjs';
|
|
8
|
+
import '../searchable-DHJMh_nj.cjs';
|
|
9
|
+
import '../manager-CYaff3n3.cjs';
|
|
10
|
+
import '../materialize-indexes-DTtAnvfY.cjs';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* A Store with profiling capabilities.
|
package/dist/profiler/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
import { a as Store } from '../store-
|
|
4
|
-
import { P as ProfilerOptions, a as ProfileReport } from '../types-
|
|
5
|
-
export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-
|
|
1
|
+
import { d8 as GraphDef, d9 as QueryAst } from '../types-BqFZTQmV.js';
|
|
2
|
+
export { u as ContributionDiagnostic, v as ContributionDiagnosticState, J as ContributionRepairEntry, K as ContributionRepairResult } from '../types-BqFZTQmV.js';
|
|
3
|
+
import { a as Store } from '../store-DRrFCx5x.js';
|
|
4
|
+
import { P as ProfilerOptions, a as ProfileReport } from '../types-Bx74kaTt.js';
|
|
5
|
+
export { D as DeclaredIndex, I as IndexRecommendation, b as ProfileSummary, c as PropertyAccessStats, d as PropertyPath, R as RecommendationPriority, U as UsageContext } from '../types-Bx74kaTt.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../temporal-
|
|
8
|
-
import '../searchable-
|
|
9
|
-
import '../manager-
|
|
10
|
-
import '../materialize-indexes-
|
|
7
|
+
import '../temporal-CbnLzTmM.js';
|
|
8
|
+
import '../searchable-bpE1bBfc.js';
|
|
9
|
+
import '../manager-D9eRT_ns.js';
|
|
10
|
+
import '../materialize-indexes-DJ3ykH59.js';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* A Store with profiling capabilities.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
3
|
+
var chunk3KOY4FH3_cjs = require('../chunk-3KOY4FH3.cjs');
|
|
4
|
+
var chunkEZEEWCFJ_cjs = require('../chunk-EZEEWCFJ.cjs');
|
|
5
|
+
require('../chunk-SIT26LAZ.cjs');
|
|
6
6
|
require('../chunk-3U5ABFDW.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunk5PRKMB24_cjs = require('../chunk-5PRKMB24.cjs');
|
|
8
8
|
require('../chunk-FQPEMEWX.cjs');
|
|
9
|
-
require('../chunk-
|
|
10
|
-
var
|
|
9
|
+
require('../chunk-2QGYQBS2.cjs');
|
|
10
|
+
var chunkTQHGE7UC_cjs = require('../chunk-TQHGE7UC.cjs');
|
|
11
11
|
require('../chunk-NAUA4PW5.cjs');
|
|
12
12
|
require('../chunk-EDN4Y4ZG.cjs');
|
|
13
13
|
require('../chunk-RT5ZY4XA.cjs');
|
|
@@ -47,10 +47,10 @@ function keyToRef(key) {
|
|
|
47
47
|
return { kind, id };
|
|
48
48
|
}
|
|
49
49
|
function sortedReferences(keys) {
|
|
50
|
-
return [...keys].toSorted((left, right) =>
|
|
50
|
+
return [...keys].toSorted((left, right) => chunkEZEEWCFJ_cjs.compareStrings(left, right)).map((key) => keyToRef(key));
|
|
51
51
|
}
|
|
52
52
|
function parseNodeProps(row) {
|
|
53
|
-
const parsed =
|
|
53
|
+
const parsed = chunk5PRKMB24_cjs.rowPropsToObject(row.props);
|
|
54
54
|
if (!chunkN66HCGCY_cjs.isPlainObject(parsed)) {
|
|
55
55
|
throw new chunkMRDBBHIZ_cjs.ConfigurationError(
|
|
56
56
|
`Node ${row.kind}/${row.id} props are not an object.`,
|
|
@@ -157,7 +157,7 @@ function duplicateValues(values) {
|
|
|
157
157
|
}
|
|
158
158
|
seen.add(value);
|
|
159
159
|
}
|
|
160
|
-
return [...duplicates].toSorted((left, right) =>
|
|
160
|
+
return [...duplicates].toSorted((left, right) => chunkEZEEWCFJ_cjs.compareStrings(left, right));
|
|
161
161
|
}
|
|
162
162
|
function assertKind(records, kind, role, noun, graphId) {
|
|
163
163
|
if (Object.hasOwn(records, kind)) return;
|
|
@@ -198,9 +198,6 @@ function assertEdgeEndpoints(graph, edgeKind, expected) {
|
|
|
198
198
|
);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
function isValidAt(row, asOf) {
|
|
202
|
-
return (row.valid_from === void 0 || row.valid_from <= asOf) && (row.valid_to === void 0 || row.valid_to > asOf);
|
|
203
|
-
}
|
|
204
201
|
async function findNodeRows(backend, graphId, kind, options) {
|
|
205
202
|
if (options.includeTombstones) {
|
|
206
203
|
const rows = await backend.findNodesByKind({
|
|
@@ -210,7 +207,9 @@ async function findNodeRows(backend, graphId, kind, options) {
|
|
|
210
207
|
temporalMode: "includeTombstones",
|
|
211
208
|
orderBy: "id"
|
|
212
209
|
});
|
|
213
|
-
return rows.filter(
|
|
210
|
+
return rows.filter(
|
|
211
|
+
(row) => chunkTQHGE7UC_cjs.validityWindowContainsInstant(row.valid_from, row.valid_to, options.asOf)
|
|
212
|
+
);
|
|
214
213
|
}
|
|
215
214
|
return backend.findNodesByKind({
|
|
216
215
|
graphId,
|
|
@@ -298,7 +297,7 @@ function buildSupportEdges(config, rows) {
|
|
|
298
297
|
};
|
|
299
298
|
}
|
|
300
299
|
async function loadSupportGraph(backend, graphId, config) {
|
|
301
|
-
const asOf =
|
|
300
|
+
const asOf = chunkTQHGE7UC_cjs.nowIso();
|
|
302
301
|
const roles = await readRoles(backend, graphId, config, asOf);
|
|
303
302
|
const supportEdges = buildSupportEdges(config, roles);
|
|
304
303
|
const sourceRowsByKind = await Promise.all(
|
|
@@ -406,7 +405,7 @@ function buildReport(before, after, affected) {
|
|
|
406
405
|
const unaffected = sortedReferences(
|
|
407
406
|
believedBefore.filter((key) => !affected.has(key))
|
|
408
407
|
);
|
|
409
|
-
const survivedVia = [...affected].filter((key) => after.supportedFactKeys.has(key)).toSorted((left, right) =>
|
|
408
|
+
const survivedVia = [...affected].filter((key) => after.supportedFactKeys.has(key)).toSorted((left, right) => chunkEZEEWCFJ_cjs.compareStrings(left, right)).map((key) => ({
|
|
410
409
|
fact: keyToRef(key),
|
|
411
410
|
via: sortedReferences(
|
|
412
411
|
after.firingJustificationKeysByFact.get(key) ?? []
|
|
@@ -429,14 +428,14 @@ async function synchronizeFactCurrency(backend, store, runHooks, snapshot, affec
|
|
|
429
428
|
snapshot,
|
|
430
429
|
affected,
|
|
431
430
|
(key) => !snapshot.supportedFactKeys.has(key),
|
|
432
|
-
|
|
431
|
+
chunk5PRKMB24_cjs.isLiveNodeRow,
|
|
433
432
|
(row) => closeFactCurrency(backend, store, runHooks, row, lock)
|
|
434
433
|
);
|
|
435
434
|
await forEachAffectedFact(
|
|
436
435
|
snapshot,
|
|
437
436
|
affected,
|
|
438
437
|
(key) => snapshot.supportedFactKeys.has(key),
|
|
439
|
-
|
|
438
|
+
chunk5PRKMB24_cjs.isTombstonedNodeRow,
|
|
440
439
|
(row) => reopenFactCurrency(backend, store, runHooks, row, lock)
|
|
441
440
|
);
|
|
442
441
|
}
|
|
@@ -451,8 +450,8 @@ function getFactRegistration(store, row) {
|
|
|
451
450
|
async function closeFactCurrency(backend, store, runHooks, row, lock) {
|
|
452
451
|
await runHooks("delete", row.kind, row.id, async () => {
|
|
453
452
|
const registration = getFactRegistration(store, row);
|
|
454
|
-
await
|
|
455
|
-
|
|
453
|
+
await chunk3KOY4FH3_cjs.applyNodeSoftDelete(
|
|
454
|
+
chunk3KOY4FH3_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
|
|
456
455
|
{
|
|
457
456
|
existing: row,
|
|
458
457
|
schema: registration.type.schema,
|
|
@@ -467,8 +466,8 @@ async function closeFactCurrency(backend, store, runHooks, row, lock) {
|
|
|
467
466
|
async function reopenFactCurrency(backend, store, runHooks, row, lock) {
|
|
468
467
|
await runHooks("update", row.kind, row.id, async () => {
|
|
469
468
|
const registration = getFactRegistration(store, row);
|
|
470
|
-
await
|
|
471
|
-
|
|
469
|
+
await chunk3KOY4FH3_cjs.applyNodeResurrect(
|
|
470
|
+
chunk3KOY4FH3_cjs.createNodeWriteContext(store.graphId, store.registry, lock),
|
|
472
471
|
{
|
|
473
472
|
existing: row,
|
|
474
473
|
schema: registration.type.schema,
|
|
@@ -500,8 +499,8 @@ async function runTransition(store, config, sources, retracted) {
|
|
|
500
499
|
);
|
|
501
500
|
}
|
|
502
501
|
return store.transaction(async (tx) => {
|
|
503
|
-
const backend =
|
|
504
|
-
const lock = await
|
|
502
|
+
const backend = chunk3KOY4FH3_cjs.transactionBackend(tx);
|
|
503
|
+
const lock = await chunkEZEEWCFJ_cjs.lockRecordedGraphWrite(backend, store.graphId);
|
|
505
504
|
const rows = await Promise.all(
|
|
506
505
|
uniqueSources.map(
|
|
507
506
|
(source) => backend.getNode(store.graphId, source.kind, source.id)
|
|
@@ -537,7 +536,7 @@ async function runTransition(store, config, sources, retracted) {
|
|
|
537
536
|
await synchronizeFactCurrency(
|
|
538
537
|
backend,
|
|
539
538
|
store,
|
|
540
|
-
|
|
539
|
+
chunk3KOY4FH3_cjs.transactionNodeOperationHookRunner(tx),
|
|
541
540
|
after,
|
|
542
541
|
affected,
|
|
543
542
|
lock
|
|
@@ -563,8 +562,8 @@ function createRetractionCapability(store, config) {
|
|
|
563
562
|
unRetractMany: (sources) => transition(sources, false),
|
|
564
563
|
async holding() {
|
|
565
564
|
return store.transaction(async (tx) => {
|
|
566
|
-
const backend =
|
|
567
|
-
await
|
|
565
|
+
const backend = chunk3KOY4FH3_cjs.transactionBackend(tx);
|
|
566
|
+
await chunkEZEEWCFJ_cjs.lockRecordedGraphWrite(backend, store.graphId);
|
|
568
567
|
const snapshot = await computeSupport(
|
|
569
568
|
backend,
|
|
570
569
|
store.graphId,
|