@ibgib/space-gib 0.0.12 → 0.0.13
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/client/bootstrap.mjs +1 -1
- package/dist/client/chunk-ROJZUPPE.mjs +19 -0
- package/dist/client/{chunk-GCWH3SH4.mjs.map → chunk-ROJZUPPE.mjs.map} +3 -3
- package/dist/client/{chunk-I7KNBFG3.mjs → chunk-WJHRARK6.mjs} +2 -2
- package/dist/client/index.mjs +1 -1
- package/dist/client/index.mjs.map +2 -2
- package/dist/client/script.mjs +1 -1
- package/dist/server/server.mjs +111 -105
- package/dist/server/server.mjs.map +3 -3
- package/package.json +4 -4
- package/src/client/AUTO-GENERATED-version.mts +1 -1
- package/dist/client/chunk-GCWH3SH4.mjs +0 -21
- /package/dist/client/{chunk-I7KNBFG3.mjs.map → chunk-WJHRARK6.mjs.map} +0 -0
package/dist/client/script.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e}from"./chunk-
|
|
1
|
+
import{p as e}from"./chunk-WJHRARK6.mjs";import"./chunk-ROJZUPPE.mjs";console.log("space-gib early script executing...");e();
|
|
2
2
|
//# sourceMappingURL=script.mjs.map
|
package/dist/server/server.mjs
CHANGED
|
@@ -6986,7 +6986,7 @@ var WitnessBase_V1 = class _WitnessBase_V1 {
|
|
|
6986
6986
|
|
|
6987
6987
|
// ../../libs/core-gib/dist/common/other/graph-helper.mjs
|
|
6988
6988
|
var logalot11 = GLOBAL_LOG_A_LOT3;
|
|
6989
|
-
async function getDependencyGraph({ ibGib, ibGibs, ibGibAddr, ibGibAddrs, live, gotten, tjpAddrsAlreadyAnalyzed, skipAddrs, skipRel8nNames, onlyRel8nNames, maxRetries, msBetweenRetries, space, timeLogName, mapTjpAddrToLatestAddrsInSpace }) {
|
|
6989
|
+
async function getDependencyGraph({ ibGib, ibGibs, ibGibAddr, ibGibAddrs, live, gotten, tjpAddrsAlreadyAnalyzed, skipAddrs, skipRel8nNames, onlyRel8nNames, maxRetries, msBetweenRetries, space, spaces, timeLogName, mapTjpAddrToLatestAddrsInSpace }) {
|
|
6990
6990
|
const lc2 = `[${getDependencyGraph.name}]`;
|
|
6991
6991
|
try {
|
|
6992
6992
|
if (logalot11) {
|
|
@@ -7006,6 +7006,7 @@ async function getDependencyGraph({ ibGib, ibGibs, ibGibAddr, ibGibAddrs, live,
|
|
|
7006
7006
|
maxRetries,
|
|
7007
7007
|
msBetweenRetries,
|
|
7008
7008
|
space,
|
|
7009
|
+
spaces,
|
|
7009
7010
|
timeLogName,
|
|
7010
7011
|
mapTjpAddrToLatestAddrsInSpace
|
|
7011
7012
|
});
|
|
@@ -7027,14 +7028,18 @@ async function getDependencyGraph({ ibGib, ibGibs, ibGibAddr, ibGibAddrs, live,
|
|
|
7027
7028
|
}
|
|
7028
7029
|
}
|
|
7029
7030
|
}
|
|
7030
|
-
async function getGraphProjection_initializeOpts({ ibGib, ibGibs, ibGibAddr, ibGibAddrs, live, gotten, tjpAddrsAlreadyAnalyzed, skipAddrs, skipRel8nNames, onlyRel8nNames, maxRetries, msBetweenRetries, space, timeLogName, mapTjpAddrToLatestAddrsInSpace }) {
|
|
7031
|
+
async function getGraphProjection_initializeOpts({ ibGib, ibGibs, ibGibAddr, ibGibAddrs, live, gotten, tjpAddrsAlreadyAnalyzed, skipAddrs, skipRel8nNames, onlyRel8nNames, maxRetries, msBetweenRetries, space, spaces, timeLogName, mapTjpAddrToLatestAddrsInSpace }) {
|
|
7031
7032
|
const lc2 = `[${getGraphProjection_initializeOpts.name}]`;
|
|
7032
7033
|
try {
|
|
7033
7034
|
if (logalot11) {
|
|
7034
7035
|
console.log(`${lc2} starting... (I: bd6807477f679345df9dddefe0b4e922)`);
|
|
7035
7036
|
}
|
|
7036
|
-
if (
|
|
7037
|
-
throw new Error(
|
|
7037
|
+
if (space && (spaces ?? []).length > 0) {
|
|
7038
|
+
throw new Error("space and spaces parameters are mutually exclusive. Pass either space or spaces, not both. (E: 994a5323e4214f4e95d5bb2b89f89090)");
|
|
7039
|
+
}
|
|
7040
|
+
const resolvedSpaces = space ? [space] : (spaces ?? []).filter((s) => !!s);
|
|
7041
|
+
if (resolvedSpaces.length === 0) {
|
|
7042
|
+
throw new Error("space or spaces required. (E: 9f38166ab70340cb919174f8d26af909)");
|
|
7038
7043
|
}
|
|
7039
7044
|
if (!ibGib && !ibGibAddr && (ibGibs ?? []).length === 0 && (ibGibAddrs ?? []).length === 0) {
|
|
7040
7045
|
throw new Error(`either ibGib/s or ibGibAddr/s required. (E: b6d08699651f455697f0d05a41edb039)`);
|
|
@@ -7064,7 +7069,8 @@ async function getGraphProjection_initializeOpts({ ibGib, ibGibs, ibGibAddr, ibG
|
|
|
7064
7069
|
onlyRel8nNames,
|
|
7065
7070
|
maxRetries,
|
|
7066
7071
|
msBetweenRetries,
|
|
7067
|
-
space,
|
|
7072
|
+
space: void 0,
|
|
7073
|
+
spaces: resolvedSpaces,
|
|
7068
7074
|
timeLogName,
|
|
7069
7075
|
mapTjpAddrToLatestAddrsInSpace
|
|
7070
7076
|
};
|
|
@@ -7077,12 +7083,16 @@ async function getGraphProjection_initializeOpts({ ibGib, ibGibs, ibGibAddr, ibG
|
|
|
7077
7083
|
}
|
|
7078
7084
|
}
|
|
7079
7085
|
}
|
|
7080
|
-
async function getGraphProjection_getIbGibsInIbGibAddrs({ ibGibs, ibGibAddrs, gotten, skipAddrs, maxRetries, msBetweenRetries, timeLogName, space }) {
|
|
7086
|
+
async function getGraphProjection_getIbGibsInIbGibAddrs({ ibGibs, ibGibAddrs, gotten, skipAddrs, maxRetries, msBetweenRetries, timeLogName, space, spaces }) {
|
|
7081
7087
|
const lc2 = `[${getGraphProjection_getIbGibsInIbGibAddrs.name}]`;
|
|
7082
7088
|
try {
|
|
7083
7089
|
if (logalot11) {
|
|
7084
7090
|
console.log(`${lc2} starting... (I: 67b2be37ff24393fff56e229304da122)`);
|
|
7085
7091
|
}
|
|
7092
|
+
const resolvedSpaces = spaces ?? (space ? [space] : []);
|
|
7093
|
+
if (resolvedSpaces.length === 0) {
|
|
7094
|
+
throw new Error(`(UNEXPECTED) spaces empty? (E: aa9f657695717034b3581066932d7d23)`);
|
|
7095
|
+
}
|
|
7086
7096
|
const resIbGibs = [];
|
|
7087
7097
|
ibGibs ??= [];
|
|
7088
7098
|
ibGibAddrs ??= [];
|
|
@@ -7125,50 +7135,35 @@ ${addrsToGetFromSpace.join("\n")} (I: b45a2614184b48b694becfd377c789f5)`);
|
|
|
7125
7135
|
}
|
|
7126
7136
|
await delay(msBetweenRetries);
|
|
7127
7137
|
}
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
}
|
|
7131
|
-
if (!space) {
|
|
7132
|
-
throw new Error(`(UNEXPECTED) space falsy? (E: aa9f657695717034b3581066932d7d23)`);
|
|
7133
|
-
}
|
|
7134
|
-
let resGetThese = await getFromSpace({ addrs: addrsToGet, space });
|
|
7135
|
-
if (timeLogName) {
|
|
7136
|
-
console.timeLog(timeLogName, `${lc2} getFromSpace complete.`);
|
|
7137
|
-
}
|
|
7138
|
-
if (resGetThese.success && (resGetThese.ibGibs?.length ?? 0) > 0) {
|
|
7139
|
-
resGetThese.ibGibs.forEach((x) => resIbGibs.push(x));
|
|
7140
|
-
const gottenAddrs2 = resGetThese.ibGibs.map((x) => getIbGibAddr({ ibGib: x }));
|
|
7141
|
-
if (gottenAddrs2.length === addrsToGet.length) {
|
|
7142
|
-
if (timeLogName) {
|
|
7143
|
-
console.timeLog(timeLogName, `${lc2} got all.`);
|
|
7144
|
-
}
|
|
7145
|
-
addrsToGet = [];
|
|
7138
|
+
for (const spaceOfSpaces of resolvedSpaces) {
|
|
7139
|
+
if (addrsToGet.length === 0) {
|
|
7146
7140
|
break;
|
|
7147
|
-
} else {
|
|
7148
|
-
if (timeLogName) {
|
|
7149
|
-
console.timeLog(timeLogName, `${lc2} got some.`);
|
|
7150
|
-
}
|
|
7151
|
-
addrsToGet = addrsToGet.filter((x) => !gottenAddrs2.includes(x));
|
|
7152
7141
|
}
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7159
|
-
|
|
7160
|
-
|
|
7161
|
-
|
|
7142
|
+
if (timeLogName) {
|
|
7143
|
+
console.timeLog(timeLogName, `${lc2} getFromSpace (${addrsToGet.length}) starting...`);
|
|
7144
|
+
}
|
|
7145
|
+
let resGetThese = await getFromSpace({ addrs: addrsToGet, space: spaceOfSpaces });
|
|
7146
|
+
if (timeLogName) {
|
|
7147
|
+
console.timeLog(timeLogName, `${lc2} getFromSpace complete.`);
|
|
7148
|
+
}
|
|
7149
|
+
if (resGetThese.success && (resGetThese.ibGibs?.length ?? 0) > 0) {
|
|
7150
|
+
resGetThese.ibGibs.forEach((x) => resIbGibs.push(x));
|
|
7151
|
+
const gottenAddrsInTry = resGetThese.ibGibs.map((x) => getIbGibAddr({ ibGib: x }));
|
|
7152
|
+
addrsToGet = addrsToGet.filter((x) => !gottenAddrsInTry.includes(x));
|
|
7162
7153
|
} else {
|
|
7163
|
-
|
|
7164
|
-
|
|
7154
|
+
const gottenIbGibs = resGetThese.rawResultIbGib?.ibGibs ?? [];
|
|
7155
|
+
if (gottenIbGibs.length > 0) {
|
|
7156
|
+
gottenIbGibs.forEach((x) => resIbGibs.push(x));
|
|
7157
|
+
const gottenAddrsInTry = gottenIbGibs.map((x) => getIbGibAddr({ ibGib: x }));
|
|
7158
|
+
addrsToGet = addrsToGet.filter((x) => !gottenAddrsInTry.includes(x));
|
|
7165
7159
|
}
|
|
7166
7160
|
}
|
|
7167
7161
|
}
|
|
7168
7162
|
retryCount++;
|
|
7169
7163
|
}
|
|
7170
|
-
if (addrsToGet
|
|
7171
|
-
|
|
7164
|
+
if (addrsToGet.length > 0) {
|
|
7165
|
+
const spaceIbs = resolvedSpaces.map((s) => s?.ib).join(", ");
|
|
7166
|
+
throw new Error(`unable to retrieve dependency ibgibs from space/s (ib/s: ${spaceIbs}). addrsToGet: ${addrsToGet.join("\n")} (E: 8413594b6c1b447988781cf3f3e1729d)`);
|
|
7172
7167
|
}
|
|
7173
7168
|
}
|
|
7174
7169
|
return resIbGibs;
|
|
@@ -7204,6 +7199,7 @@ async function getGraphProjection(opts) {
|
|
|
7204
7199
|
maxRetries,
|
|
7205
7200
|
msBetweenRetries,
|
|
7206
7201
|
space,
|
|
7202
|
+
spaces,
|
|
7207
7203
|
timeLogName,
|
|
7208
7204
|
mapTjpAddrToLatestAddrsInSpace
|
|
7209
7205
|
} = await getGraphProjection_initializeOpts(opts);
|
|
@@ -7219,7 +7215,8 @@ async function getGraphProjection(opts) {
|
|
|
7219
7215
|
maxRetries,
|
|
7220
7216
|
msBetweenRetries,
|
|
7221
7217
|
timeLogName,
|
|
7222
|
-
space
|
|
7218
|
+
space,
|
|
7219
|
+
spaces
|
|
7223
7220
|
});
|
|
7224
7221
|
ibGibs = ibGibs ? [...ibGibs, ...supplementalIbGibs] : [...supplementalIbGibs];
|
|
7225
7222
|
}
|
|
@@ -7240,6 +7237,7 @@ async function getGraphProjection(opts) {
|
|
|
7240
7237
|
maxRetries,
|
|
7241
7238
|
msBetweenRetries,
|
|
7242
7239
|
space,
|
|
7240
|
+
spaces,
|
|
7243
7241
|
timeLogName,
|
|
7244
7242
|
mapTjpAddrToLatestAddrsInSpace
|
|
7245
7243
|
});
|
|
@@ -7255,6 +7253,7 @@ async function getGraphProjection(opts) {
|
|
|
7255
7253
|
maxRetries,
|
|
7256
7254
|
msBetweenRetries,
|
|
7257
7255
|
space,
|
|
7256
|
+
spaces,
|
|
7258
7257
|
timeLogName
|
|
7259
7258
|
});
|
|
7260
7259
|
}
|
|
@@ -7267,7 +7266,7 @@ async function getGraphProjection(opts) {
|
|
|
7267
7266
|
}
|
|
7268
7267
|
}
|
|
7269
7268
|
}
|
|
7270
|
-
async function getDeltaDependencyGraph({ ibGibAddr, latestCommonFrameAddr, live, space }) {
|
|
7269
|
+
async function getDeltaDependencyGraph({ ibGibAddr, latestCommonFrameAddr, live, space, spaces }) {
|
|
7271
7270
|
const lc2 = `[${getDeltaDependencyGraph.name}]`;
|
|
7272
7271
|
try {
|
|
7273
7272
|
if (logalot11) {
|
|
@@ -7281,13 +7280,15 @@ async function getDeltaDependencyGraph({ ibGibAddr, latestCommonFrameAddr, live,
|
|
|
7281
7280
|
ibGibAddr: latestCommonFrameAddr,
|
|
7282
7281
|
live: false,
|
|
7283
7282
|
// always get the smaller graph live === false!
|
|
7284
|
-
space
|
|
7283
|
+
space,
|
|
7284
|
+
spaces
|
|
7285
7285
|
});
|
|
7286
7286
|
const dependencyGraph_delta = await getDependencyGraph({
|
|
7287
7287
|
ibGibAddr,
|
|
7288
7288
|
live,
|
|
7289
7289
|
skipAddrs: Object.keys(dependencyGraph_lcf),
|
|
7290
|
-
space
|
|
7290
|
+
space,
|
|
7291
|
+
spaces
|
|
7291
7292
|
});
|
|
7292
7293
|
return dependencyGraph_delta;
|
|
7293
7294
|
} catch (error) {
|
|
@@ -7299,9 +7300,10 @@ async function getDeltaDependencyGraph({ ibGibAddr, latestCommonFrameAddr, live,
|
|
|
7299
7300
|
}
|
|
7300
7301
|
}
|
|
7301
7302
|
}
|
|
7302
|
-
async function getGraphProjection_Live({ ibGibs, ibGibAddrs, gotten, tjpAddrsAlreadyAnalyzed, mapTjpAddrToLatestAddrsInSpace, skipAddrs, skipRel8nNames, onlyRel8nNames, maxRetries, msBetweenRetries, space, timeLogName }) {
|
|
7303
|
+
async function getGraphProjection_Live({ ibGibs, ibGibAddrs, gotten, tjpAddrsAlreadyAnalyzed, mapTjpAddrToLatestAddrsInSpace, skipAddrs, skipRel8nNames, onlyRel8nNames, maxRetries, msBetweenRetries, space, spaces, timeLogName }) {
|
|
7303
7304
|
const lc2 = `[${getGraphProjection_Live.name}]`;
|
|
7304
7305
|
try {
|
|
7306
|
+
const resolvedSpaces = spaces ?? (space ? [space] : []);
|
|
7305
7307
|
mapTjpAddrToLatestAddrsInSpace = mapTjpAddrToLatestAddrsInSpace ?? {};
|
|
7306
7308
|
tjpAddrsAlreadyAnalyzed = tjpAddrsAlreadyAnalyzed ?? [];
|
|
7307
7309
|
let allIbGibsSoFar = { ...gotten };
|
|
@@ -7339,7 +7341,7 @@ async function getGraphProjection_Live({ ibGibs, ibGibAddrs, gotten, tjpAddrsAlr
|
|
|
7339
7341
|
const latestAddrCorrespondingToTjpAddr = getIbGibAddr({ ibGib: latestIbGibCorrespondingToTjpAddr });
|
|
7340
7342
|
latestAddrsMap[latestAddrCorrespondingToTjpAddr] = mapTjpAddrToLatestAddrsInSpace[tjpAddr];
|
|
7341
7343
|
} else {
|
|
7342
|
-
console.error(`${lc2} latestIbGibCorrespondingToTjpAddr is falsy`);
|
|
7344
|
+
console.error(`${lc2} latestIbGibCorrespondingToTjpAddr is falsy (E: 8a5d3f2e1c4b90876543210fe89abcdf)`);
|
|
7343
7345
|
}
|
|
7344
7346
|
});
|
|
7345
7347
|
if (logalot11) {
|
|
@@ -7348,17 +7350,33 @@ async function getGraphProjection_Live({ ibGibs, ibGibAddrs, gotten, tjpAddrsAlr
|
|
|
7348
7350
|
const ibGibsToQueryLatestAddrs = Object.values(mapTjpAddrToLatestIbGibInTimelineThatWeHaventAlreadyAnalyzed);
|
|
7349
7351
|
let queriedLatestAddrsMap = {};
|
|
7350
7352
|
if (ibGibsToQueryLatestAddrs.length > 0) {
|
|
7351
|
-
if (
|
|
7352
|
-
throw new Error(`(UNEXPECTED) space falsy? (E: 8e878975e3561df9a8dc4c628b0abc23)`);
|
|
7353
|
+
if (resolvedSpaces.length === 0) {
|
|
7354
|
+
throw new Error(`(UNEXPECTED) space/s falsy? (E: 8e878975e3561df9a8dc4c628b0abc23)`);
|
|
7353
7355
|
}
|
|
7354
|
-
const
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7356
|
+
for (const currentSpace of resolvedSpaces) {
|
|
7357
|
+
const resLatest = await getLatestAddrs({
|
|
7358
|
+
ibGibs: ibGibsToQueryLatestAddrs,
|
|
7359
|
+
space: currentSpace
|
|
7360
|
+
});
|
|
7361
|
+
if (!resLatest?.data?.latestAddrsMap) {
|
|
7362
|
+
throw new Error(`(UNEXPECTED) getLatestAddrs result latestAddrsMap falsy (E: 088caa1fc95fd3b079108ab63ef33422)`);
|
|
7363
|
+
}
|
|
7364
|
+
const spaceMap = resLatest.data.latestAddrsMap;
|
|
7365
|
+
Object.keys(spaceMap).forEach((addr) => {
|
|
7366
|
+
const spaceLatestAddr = spaceMap[addr];
|
|
7367
|
+
if (spaceLatestAddr) {
|
|
7368
|
+
queriedLatestAddrsMap[addr] = spaceLatestAddr;
|
|
7369
|
+
} else if (!queriedLatestAddrsMap[addr]) {
|
|
7370
|
+
queriedLatestAddrsMap[addr] = null;
|
|
7371
|
+
}
|
|
7372
|
+
});
|
|
7360
7373
|
}
|
|
7361
|
-
|
|
7374
|
+
ibGibsToQueryLatestAddrs.forEach((ibGib) => {
|
|
7375
|
+
const origAddr = getIbGibAddr({ ibGib });
|
|
7376
|
+
if (!queriedLatestAddrsMap[origAddr]) {
|
|
7377
|
+
queriedLatestAddrsMap[origAddr] = origAddr;
|
|
7378
|
+
}
|
|
7379
|
+
});
|
|
7362
7380
|
if (Object.keys(queriedLatestAddrsMap).length !== countOfTimelinesNotYetGotten) {
|
|
7363
7381
|
throw new Error(`(UNEXPECTED) latestAddrsMap is not the same size as the incoming map (E: 666af512bbd44534983bb28ee8d43fed)`);
|
|
7364
7382
|
}
|
|
@@ -7384,7 +7402,7 @@ async function getGraphProjection_Live({ ibGibs, ibGibAddrs, gotten, tjpAddrsAlr
|
|
|
7384
7402
|
}
|
|
7385
7403
|
if (latestAddrInSpace === latestAddrAlreadyGotten) {
|
|
7386
7404
|
if (logalot11) {
|
|
7387
|
-
console.log(`${lc2} analyzed ${tjpAddr}(I: afb7960900f04b8a87538f4c7bd903b7)`);
|
|
7405
|
+
console.log(`${lc2} analyzed ${tjpAddr} (I: afb7960900f04b8a87538f4c7bd903b7)`);
|
|
7388
7406
|
}
|
|
7389
7407
|
tjpAddrsAlreadyAnalyzed.push(tjpAddr);
|
|
7390
7408
|
} else {
|
|
@@ -7418,6 +7436,7 @@ async function getGraphProjection_Live({ ibGibs, ibGibAddrs, gotten, tjpAddrsAlr
|
|
|
7418
7436
|
maxRetries,
|
|
7419
7437
|
msBetweenRetries,
|
|
7420
7438
|
space,
|
|
7439
|
+
spaces: resolvedSpaces,
|
|
7421
7440
|
timeLogName,
|
|
7422
7441
|
live: true,
|
|
7423
7442
|
mapTjpAddrToLatestAddrsInSpace
|
|
@@ -7443,6 +7462,7 @@ async function getGraphProjection_Live({ ibGibs, ibGibAddrs, gotten, tjpAddrsAlr
|
|
|
7443
7462
|
maxRetries,
|
|
7444
7463
|
msBetweenRetries,
|
|
7445
7464
|
space,
|
|
7465
|
+
spaces: resolvedSpaces,
|
|
7446
7466
|
timeLogName,
|
|
7447
7467
|
live: false
|
|
7448
7468
|
});
|
|
@@ -7471,6 +7491,7 @@ async function getGraphProjection_NonLive({
|
|
|
7471
7491
|
maxRetries,
|
|
7472
7492
|
msBetweenRetries,
|
|
7473
7493
|
space,
|
|
7494
|
+
spaces,
|
|
7474
7495
|
timeLogName
|
|
7475
7496
|
}) {
|
|
7476
7497
|
const lc2 = `[${getGraphProjection_NonLive.name}]`;
|
|
@@ -7488,7 +7509,7 @@ async function getGraphProjection_NonLive({
|
|
|
7488
7509
|
const ibGibAddr = getIbGibAddr({ ibGib });
|
|
7489
7510
|
const { gib } = getIbAndGib({ ibGib });
|
|
7490
7511
|
if (gib === GIB) {
|
|
7491
|
-
throw new Error(`cannot get dependency graph of primitive
|
|
7512
|
+
throw new Error(`cannot get dependency graph of primitive. (E: 5493b8908d134bdf887e91122a6a57e3)`);
|
|
7492
7513
|
}
|
|
7493
7514
|
if (!Object.keys(gotten).includes(ibGibAddr)) {
|
|
7494
7515
|
gotten[ibGibAddr] = ibGib;
|
|
@@ -7518,7 +7539,7 @@ async function getGraphProjection_NonLive({
|
|
|
7518
7539
|
});
|
|
7519
7540
|
}
|
|
7520
7541
|
if (Object.keys(invalidAddrs).length > 0) {
|
|
7521
|
-
throw new Error(`invalid addresses found in dependency graph. Errors (clipped to 1kB): ${JSON.stringify(invalidAddrs).substring(0, 1024)}`);
|
|
7542
|
+
throw new Error(`invalid addresses found in dependency graph. Errors (clipped to 1kB): ${JSON.stringify(invalidAddrs).substring(0, 1024)} (E: d2416b9b23fa4d178e6c7104b40ee78c)`);
|
|
7522
7543
|
}
|
|
7523
7544
|
}
|
|
7524
7545
|
if (timeLogName) {
|
|
@@ -7528,62 +7549,47 @@ async function getGraphProjection_NonLive({
|
|
|
7528
7549
|
if (timeLogName) {
|
|
7529
7550
|
console.timeLog(timeLogName, `${lc2} get addrsWeDontHaveAlready_Rel8dAddrs starting...`);
|
|
7530
7551
|
}
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
|
|
7534
|
-
|
|
7552
|
+
const newlyGottenIbGibs = await getGraphProjection_getIbGibsInIbGibAddrs({
|
|
7553
|
+
ibGibAddrs: addrsWeDontHaveAlready_Rel8dAddrs,
|
|
7554
|
+
gotten,
|
|
7555
|
+
skipAddrs,
|
|
7556
|
+
maxRetries,
|
|
7557
|
+
msBetweenRetries,
|
|
7558
|
+
timeLogName,
|
|
7559
|
+
space,
|
|
7560
|
+
spaces
|
|
7561
|
+
});
|
|
7562
|
+
newlyGottenIbGibs.forEach((x) => gotten[getIbGibAddr({ ibGib: x })] = x);
|
|
7535
7563
|
if (timeLogName) {
|
|
7536
|
-
console.timeLog(timeLogName, `${lc2}
|
|
7564
|
+
console.timeLog(timeLogName, `${lc2} call getGraphProjection recursively starting...`);
|
|
7537
7565
|
}
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
|
|
7548
|
-
|
|
7549
|
-
|
|
7550
|
-
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
skipRel8nNames,
|
|
7554
|
-
onlyRel8nNames,
|
|
7555
|
-
maxRetries,
|
|
7556
|
-
msBetweenRetries,
|
|
7557
|
-
space
|
|
7558
|
-
});
|
|
7559
|
-
if (timeLogName) {
|
|
7560
|
-
console.timeLog(timeLogName, `${lc2} call getGraphProjection recursively complete.`);
|
|
7561
|
-
}
|
|
7562
|
-
return result;
|
|
7563
|
-
} else if ((resGet.ibGibs?.length ?? 0) > 0 && resGet.ibGibs.length < addrsWeDontHaveAlready_Rel8dAddrs.length) {
|
|
7564
|
-
if (logalot11) {
|
|
7565
|
-
console.warn(`${lc2} got SOME of them (happy-ish path?). not sure what to do here... (W: e3458f61a1ae4979af9e6b18ac935c14)`);
|
|
7566
|
-
}
|
|
7567
|
-
throw new Error(`trouble getting dependency ibgibs (E: 8156bf65fd084ae4a4e8a0669db28b07)`);
|
|
7568
|
-
} else if ((resGet.ibGibs?.length ?? 0 > 0) && resGet.ibGibs.length > addrsWeDontHaveAlready_Rel8dAddrs.length) {
|
|
7569
|
-
throw new Error(`(UNEXPECTED) got more ibGibs than addrs that we asked for. space not working properly. (E: 352219b3d18543bcbda957f2d60b78f3)`);
|
|
7570
|
-
} else {
|
|
7571
|
-
throw new Error(`couldn't get dependency ibgibs from space. (E: 225f26b7d7f84911bb033753a062209b)`);
|
|
7572
|
-
}
|
|
7573
|
-
} else {
|
|
7574
|
-
throw new Error(`failure getting addrs in space ${space?.data?.name || "[no name?]"} (id: ${space?.data?.uuid || "[no uuid?]"}). (E: 60404e6e389249d9bbecf0039cd51878) addrs:
|
|
7575
|
-
${addrsWeDontHaveAlready_Rel8dAddrs.join("\n")} `);
|
|
7566
|
+
const result = await getGraphProjection({
|
|
7567
|
+
ibGibs: newlyGottenIbGibs,
|
|
7568
|
+
live: false,
|
|
7569
|
+
gotten,
|
|
7570
|
+
/* tjpAddrsAlreadyAnalyzed not used */
|
|
7571
|
+
skipAddrs,
|
|
7572
|
+
skipRel8nNames,
|
|
7573
|
+
onlyRel8nNames,
|
|
7574
|
+
maxRetries,
|
|
7575
|
+
msBetweenRetries,
|
|
7576
|
+
space,
|
|
7577
|
+
spaces
|
|
7578
|
+
});
|
|
7579
|
+
if (timeLogName) {
|
|
7580
|
+
console.timeLog(timeLogName, `${lc2} call getGraphProjection recursively complete.`);
|
|
7576
7581
|
}
|
|
7582
|
+
return result;
|
|
7577
7583
|
} else {
|
|
7578
7584
|
return gotten;
|
|
7579
7585
|
}
|
|
7580
7586
|
} catch (error) {
|
|
7581
7587
|
const emsg = `${lc2} ${error.message}`;
|
|
7582
|
-
console.error(emsg);
|
|
7588
|
+
console.error(`${emsg} (E: 8a42e56616014e7a8848aa6bb6f2722b)`);
|
|
7583
7589
|
if (timeLogName) {
|
|
7584
7590
|
console.timeLog(timeLogName, `${lc2} error: ${emsg}`);
|
|
7585
7591
|
}
|
|
7586
|
-
throw
|
|
7592
|
+
throw new Error(`${emsg} (E: a21b0682121746a480572b83413cf2d0)`);
|
|
7587
7593
|
} finally {
|
|
7588
7594
|
if (timeLogName) {
|
|
7589
7595
|
console.timeLog(timeLogName, `${lc2} complete.`);
|