@inerrata-corporation/errata 2.0.2-dev.606 → 2.0.2-dev.610
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 +32 -1
- package/package.json +1 -1
package/errata.mjs
CHANGED
|
@@ -52172,6 +52172,19 @@ var TIEBREAK = [
|
|
|
52172
52172
|
{ re: /same (issue|problem|pattern|root cause) as|instance of|an example of/i, type: "INSTANCE_OF" },
|
|
52173
52173
|
{ re: /depends on|requires|relies on/i, type: "DEPENDS_ON" }
|
|
52174
52174
|
];
|
|
52175
|
+
function packageName(description) {
|
|
52176
|
+
const at = description.lastIndexOf("@");
|
|
52177
|
+
return at > 0 ? description.slice(0, at) : description;
|
|
52178
|
+
}
|
|
52179
|
+
function fileImportsPackage(store, fileId, pkg) {
|
|
52180
|
+
for (const e of store.outEdges(fileId, ["IMPORTS"])) {
|
|
52181
|
+
const spec = store.getNode(e.to)?.description;
|
|
52182
|
+
if (!spec || spec.startsWith(".") || spec.startsWith("/")) continue;
|
|
52183
|
+
const specPkg = spec.startsWith("@") ? spec.split("/").slice(0, 2).join("/") : spec.split("/")[0];
|
|
52184
|
+
if (specPkg === pkg) return true;
|
|
52185
|
+
}
|
|
52186
|
+
return false;
|
|
52187
|
+
}
|
|
52175
52188
|
function tagEdgeCorroborated(targetAnchorIds, sessionTouchedNodeIds, independentReassert = false) {
|
|
52176
52189
|
if (independentReassert) return true;
|
|
52177
52190
|
for (const a of targetAnchorIds) if (sessionTouchedNodeIds.has(a)) return true;
|
|
@@ -52237,6 +52250,18 @@ function mintPriorEdge(store, source, target, sentence, touched, ts) {
|
|
|
52237
52250
|
if (anchorIds.size === 0 && (target.label === "Language" || target.label === "Package")) {
|
|
52238
52251
|
for (const e of store.inEdges(target.id, STACK_GROUNDING_EDGES)) anchorIds.add(e.from);
|
|
52239
52252
|
}
|
|
52253
|
+
if ((target.label === "Language" || target.label === "Package") && target.description) {
|
|
52254
|
+
const targetName = target.description;
|
|
52255
|
+
for (const tid of touched) {
|
|
52256
|
+
const tn = store.getNode(tid);
|
|
52257
|
+
if (tn?.label !== "File") continue;
|
|
52258
|
+
const grounded = target.label === "Language" ? String(tn.attrs["language"] ?? "").toLowerCase() === targetName.toLowerCase() : fileImportsPackage(store, tid, packageName(targetName));
|
|
52259
|
+
if (grounded) {
|
|
52260
|
+
anchorIds.add(tid);
|
|
52261
|
+
break;
|
|
52262
|
+
}
|
|
52263
|
+
}
|
|
52264
|
+
}
|
|
52240
52265
|
if (anchorIds.size === 0 && target.label === "Tool") anchorIds.add(target.id);
|
|
52241
52266
|
const corroborated = tagEdgeCorroborated(anchorIds, touched, false);
|
|
52242
52267
|
store.mergeEdge({
|
|
@@ -54644,7 +54669,7 @@ function startLoopLagMonitor(thresholdMs = 1e3) {
|
|
|
54644
54669
|
}
|
|
54645
54670
|
|
|
54646
54671
|
// src/engine.ts
|
|
54647
|
-
var DAEMON_VERSION = true ? "2.0.2-dev.
|
|
54672
|
+
var DAEMON_VERSION = true ? "2.0.2-dev.610" : "2.0.0-alpha.0";
|
|
54648
54673
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
54649
54674
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
54650
54675
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -57826,6 +57851,12 @@ async function startMultiDaemon(opts = {}) {
|
|
|
57826
57851
|
onHook: engine.webHooks.onHook,
|
|
57827
57852
|
onHookEvent: engine.webHooks.onHookEvent,
|
|
57828
57853
|
onShellEvent: engine.webHooks.onShellEvent,
|
|
57854
|
+
// The tool-run RECORD seam (SP-tool-ground). The single-engine path wired
|
|
57855
|
+
// this in #1172; this sibling builder never did, so on every multi
|
|
57856
|
+
// deployment (i.e. every real one) the webui logged "tool-run recorded"
|
|
57857
|
+
// and dropped the record on the floor — toolSessionsTracked read 0 across
|
|
57858
|
+
// 936 turns while the log showed records landing (VS-corroboration-rate).
|
|
57859
|
+
onToolsObserved: engine.webHooks.onToolsObserved,
|
|
57829
57860
|
onToolError: engine.webHooks.onToolError,
|
|
57830
57861
|
onDiagnostics: engine.webHooks.onDiagnostics,
|
|
57831
57862
|
onTurn: engine.webHooks.onTurn,
|