@inerrata-corporation/errata 2.0.22-dev.4180 → 2.0.22-dev.4186
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/consolidate-worker.mjs
CHANGED
|
@@ -21020,7 +21020,9 @@ function buildInstanceIngest(store, profile, daemonVersion, ignorePatterns = [],
|
|
|
21020
21020
|
sidecarNoSummary: 0,
|
|
21021
21021
|
fileRefsSubstituted: 0,
|
|
21022
21022
|
fileRefLexiconMisses: 0,
|
|
21023
|
-
collapsedEdges: 0
|
|
21023
|
+
collapsedEdges: 0,
|
|
21024
|
+
edgesHeldParked: 0,
|
|
21025
|
+
edgesHeldDropped: 0
|
|
21024
21026
|
};
|
|
21025
21027
|
const sharedCauses = /* @__PURE__ */ new Map();
|
|
21026
21028
|
const causalQueue = store.findNodeFieldsByLabel("Problem", ["source", "resolvedAs"]).filter((r) => r.attrs["source"] !== "cloud" && r.attrs["resolvedAs"] !== PROBLEM_RESOLUTION.FALSE_POSITIVE).map((r) => r.id).filter((id) => ignorePatterns.length === 0 || !ignored(store.getNode(id)?.description ?? ""));
|
|
@@ -21331,6 +21333,30 @@ function buildInstanceIngest(store, profile, daemonVersion, ignorePatterns = [],
|
|
|
21331
21333
|
if (count > 0) symbolSummaries = sidecar;
|
|
21332
21334
|
}
|
|
21333
21335
|
edges.push(...anchorEdges);
|
|
21336
|
+
if (opts.edgeHolds && Object.keys(opts.edgeHolds).length > 0) {
|
|
21337
|
+
const holds = opts.edgeHolds;
|
|
21338
|
+
const shipsHere = (wireId) => (endpointSources[wireId] ?? [wireId]).some((localId) => shippedById.has(localId));
|
|
21339
|
+
const kept = [];
|
|
21340
|
+
for (const e of edges) {
|
|
21341
|
+
const hold = holds[e.id];
|
|
21342
|
+
if (!hold || hold === "held" && (shipsHere(e.from) || shipsHere(e.to))) {
|
|
21343
|
+
kept.push(e);
|
|
21344
|
+
continue;
|
|
21345
|
+
}
|
|
21346
|
+
if (hold === "held") {
|
|
21347
|
+
composition.edgesHeldParked++;
|
|
21348
|
+
for (const localId of endpointSources[e.from] ?? [e.from]) {
|
|
21349
|
+
delete anchorDigests[localId];
|
|
21350
|
+
delete semanticEdgeDigests[localId];
|
|
21351
|
+
delete projectAnchorDigests[localId];
|
|
21352
|
+
}
|
|
21353
|
+
} else {
|
|
21354
|
+
composition.edgesHeldDropped++;
|
|
21355
|
+
}
|
|
21356
|
+
}
|
|
21357
|
+
edges.length = 0;
|
|
21358
|
+
edges.push(...kept);
|
|
21359
|
+
}
|
|
21334
21360
|
const bindingEndpoints = /* @__PURE__ */ new Set();
|
|
21335
21361
|
for (const e of edges) {
|
|
21336
21362
|
if (e.type === "CAUSED_BY" || e.type === "SOLVED_BY") {
|
|
@@ -21412,7 +21438,8 @@ function buildDrainInstances(store, sharedStore, input) {
|
|
|
21412
21438
|
...lexicon ? { lexicon } : {},
|
|
21413
21439
|
...fileLexicon ? { fileLexicon } : {},
|
|
21414
21440
|
...input.project ? { project: input.project } : {},
|
|
21415
|
-
...input.quarantinedSessions?.length ? { quarantinedSessions: input.quarantinedSessions } : {}
|
|
21441
|
+
...input.quarantinedSessions?.length ? { quarantinedSessions: input.quarantinedSessions } : {},
|
|
21442
|
+
...input.edgeHolds ? { edgeHolds: input.edgeHolds } : {}
|
|
21416
21443
|
});
|
|
21417
21444
|
return {
|
|
21418
21445
|
batch,
|