@inerrata-corporation/errata 2.0.6-dev.2608 → 2.0.6-dev.2611
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 +14 -10
- package/package.json +1 -1
package/errata.mjs
CHANGED
|
@@ -78421,7 +78421,7 @@ function createWatchBreaker(deps) {
|
|
|
78421
78421
|
}
|
|
78422
78422
|
|
|
78423
78423
|
// src/engine.ts
|
|
78424
|
-
var DAEMON_VERSION = true ? "2.0.6-dev.
|
|
78424
|
+
var DAEMON_VERSION = true ? "2.0.6-dev.2611" : "2.0.0-alpha.0";
|
|
78425
78425
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
78426
78426
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
78427
78427
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -80549,8 +80549,10 @@ B: ${b}`,
|
|
|
80549
80549
|
return report;
|
|
80550
80550
|
},
|
|
80551
80551
|
async embedSettled() {
|
|
80552
|
+
const yieldLoop = () => new Promise((r) => setImmediate(r));
|
|
80552
80553
|
try {
|
|
80553
80554
|
const sem = await embedSemanticNodes(store);
|
|
80555
|
+
await yieldLoop();
|
|
80554
80556
|
if (sem.embedded > 0) {
|
|
80555
80557
|
console.log(`[errata] embedded ${sem.embedded} semantic node(s)`);
|
|
80556
80558
|
}
|
|
@@ -80563,6 +80565,7 @@ B: ${b}`,
|
|
|
80563
80565
|
if (e.merged > 0 || (e.nearMissMarked ?? 0) > 0) {
|
|
80564
80566
|
console.log(`[errata] dedup: merged ${e.merged} paraphrased problem(s) across ${e.clusters} cluster(s), parked ${e.nearMissMarked ?? 0} near-miss nomination(s)${parkWmRaw === null ? " (first full sweep)" : ""}`);
|
|
80565
80567
|
}
|
|
80568
|
+
await yieldLoop();
|
|
80566
80569
|
if (sem.embedded > 0) {
|
|
80567
80570
|
const cb = bindCanonicalNeighbors(store, { ts: Date.now() });
|
|
80568
80571
|
if (cb.bound > 0) {
|
|
@@ -80570,11 +80573,13 @@ B: ${b}`,
|
|
|
80570
80573
|
}
|
|
80571
80574
|
refreshContextNow();
|
|
80572
80575
|
}
|
|
80576
|
+
await yieldLoop();
|
|
80573
80577
|
const rg = bindResolvedRegressions(store, { ts: Date.now() });
|
|
80574
80578
|
if (rg.bound > 0) {
|
|
80575
80579
|
console.warn(`[errata] REGRESSION: bound ${rg.bound} open problem(s) to resolved predecessors${rg.full ? " (first full sweep)" : ""}`);
|
|
80576
80580
|
refreshContextNow();
|
|
80577
80581
|
}
|
|
80582
|
+
await yieldLoop();
|
|
80578
80583
|
const fjStart = Date.now();
|
|
80579
80584
|
const fj = await resolveFoldCandidates(store, {
|
|
80580
80585
|
ts: fjStart,
|
|
@@ -89869,7 +89874,7 @@ async function cmdDash(args2) {
|
|
|
89869
89874
|
let triggerConsolidation = () => {
|
|
89870
89875
|
};
|
|
89871
89876
|
const runBoundaryFlush = (reason) => {
|
|
89872
|
-
|
|
89877
|
+
return handle2.sessionBoundaryFlush().then((r) => {
|
|
89873
89878
|
if (r.skipped) return;
|
|
89874
89879
|
if (r.uploaded > 0 || r.written > 0 || r.pruned > 0) {
|
|
89875
89880
|
console.log(
|
|
@@ -89903,16 +89908,15 @@ async function cmdDash(args2) {
|
|
|
89903
89908
|
if (quiesceTimer) clearTimeout(quiesceTimer);
|
|
89904
89909
|
quiesceTimer = setTimeout(() => {
|
|
89905
89910
|
quiesceTimer = null;
|
|
89906
|
-
|
|
89907
|
-
runSemanticPass("quiescent");
|
|
89908
|
-
triggerConsolidation(false);
|
|
89911
|
+
settleThenConsolidate("quiescent", false);
|
|
89909
89912
|
}, QUIESCENCE_MS);
|
|
89910
89913
|
};
|
|
89911
|
-
|
|
89912
|
-
runBoundaryFlush(
|
|
89913
|
-
runSemanticPass(
|
|
89914
|
-
triggerConsolidation(
|
|
89915
|
-
}
|
|
89914
|
+
const settleThenConsolidate = (reason, force) => {
|
|
89915
|
+
const flushed = runBoundaryFlush(reason);
|
|
89916
|
+
setImmediate(() => runSemanticPass(reason));
|
|
89917
|
+
void flushed.finally(() => triggerConsolidation(force));
|
|
89918
|
+
};
|
|
89919
|
+
handle2.onSessionBoundary(() => settleThenConsolidate("session-end", true));
|
|
89916
89920
|
let ticking = false;
|
|
89917
89921
|
const interval = setInterval(() => {
|
|
89918
89922
|
if (ticking) return;
|