@inerrata-corporation/errata 2.0.0-dev.93 → 2.0.0-dev.94
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/errata.mjs +15 -15
- package/package.json +1 -1
package/errata.mjs
CHANGED
|
@@ -51438,7 +51438,7 @@ function startLoopLagMonitor(thresholdMs = 1e3) {
|
|
|
51438
51438
|
}
|
|
51439
51439
|
|
|
51440
51440
|
// src/engine.ts
|
|
51441
|
-
var DAEMON_VERSION = true ? "2.0.0-dev.
|
|
51441
|
+
var DAEMON_VERSION = true ? "2.0.0-dev.94" : "2.0.0-alpha.0";
|
|
51442
51442
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
51443
51443
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
51444
51444
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -53126,8 +53126,8 @@ function noveltyAgainst(node2, neighbors, opts = {}) {
|
|
|
53126
53126
|
// src/instance-ingest.ts
|
|
53127
53127
|
var INSTANCE_LABELS = ["Problem", "Solution", "RootCause"];
|
|
53128
53128
|
var INSTANCE_EDGES = ["CAUSED_BY", "SOLVED_BY"];
|
|
53129
|
-
var ANCHOR_EDGES = ["OCCURS_IN", "DEPENDS_ON"];
|
|
53130
|
-
var ANCHOR_TARGET_LABELS = ["Language", "Package"];
|
|
53129
|
+
var ANCHOR_EDGES = ["OCCURS_IN", "DEPENDS_ON", "PERTAIN_TO"];
|
|
53130
|
+
var ANCHOR_TARGET_LABELS = ["Language", "Package", "Domain"];
|
|
53131
53131
|
function stripCodebaseScope(scope) {
|
|
53132
53132
|
const s = { ...scope ?? {} };
|
|
53133
53133
|
delete s["codebase"];
|
|
@@ -53138,21 +53138,20 @@ function wireContextId(n) {
|
|
|
53138
53138
|
const name2 = String(n.attrs["name"] ?? "").trim() || n.description.trim() || n.id.replace(/^lang:/, "");
|
|
53139
53139
|
return languageCanonicalId(name2);
|
|
53140
53140
|
}
|
|
53141
|
+
if (n.label === "Domain" && n.attrs["source"] !== "cloud") {
|
|
53142
|
+
return String(n.attrs["canonicalId"] ?? n.id);
|
|
53143
|
+
}
|
|
53141
53144
|
return n.id;
|
|
53142
53145
|
}
|
|
53143
53146
|
function shareableContext(n, wireId) {
|
|
53144
|
-
|
|
53145
|
-
|
|
53146
|
-
|
|
53147
|
-
|
|
53148
|
-
|
|
53149
|
-
|
|
53150
|
-
|
|
53151
|
-
|
|
53152
|
-
ecosystem: n.attrs["ecosystem"],
|
|
53153
|
-
resolved: n.attrs["resolved"]
|
|
53154
|
-
} : { name: n.attrs["name"] }
|
|
53155
|
-
};
|
|
53147
|
+
const attrs = n.label === "Package" ? {
|
|
53148
|
+
purl: n.attrs["purl"],
|
|
53149
|
+
name: n.attrs["name"],
|
|
53150
|
+
version: n.attrs["version"],
|
|
53151
|
+
ecosystem: n.attrs["ecosystem"],
|
|
53152
|
+
resolved: n.attrs["resolved"]
|
|
53153
|
+
} : n.label === "Domain" ? { name: n.description, canonicalId: n.attrs["canonicalId"] } : { name: n.attrs["name"] };
|
|
53154
|
+
return { ...n, id: wireId, embedding: [], attrs };
|
|
53156
53155
|
}
|
|
53157
53156
|
function buildInstanceIngest(store, profile, daemonVersion, ignorePatterns = [], opts = {}) {
|
|
53158
53157
|
const level = opts.level ?? 1;
|
|
@@ -53208,6 +53207,7 @@ function buildInstanceIngest(store, profile, daemonVersion, ignorePatterns = [],
|
|
|
53208
53207
|
if (!t || !ANCHOR_TARGET_LABELS.includes(t.label)) continue;
|
|
53209
53208
|
if (e.type === "OCCURS_IN" && t.label !== "Language") continue;
|
|
53210
53209
|
if (e.type === "DEPENDS_ON" && t.label !== "Package") continue;
|
|
53210
|
+
if (e.type === "PERTAIN_TO" && t.label !== "Domain") continue;
|
|
53211
53211
|
if (t.label === "Package" && opts.includePackages !== true) continue;
|
|
53212
53212
|
if (ignored(t.description) || ignored(String(t.attrs["name"] ?? ""))) continue;
|
|
53213
53213
|
targets.push({ e, t, wireId: wireContextId(t) });
|