@inerrata-corporation/errata 2.0.2-dev.1274 → 2.0.2-dev.1285
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 -6
- package/package.json +1 -1
package/errata.mjs
CHANGED
|
@@ -29839,8 +29839,9 @@ function mergeProblemsByEmbedding(store, opts) {
|
|
|
29839
29839
|
);
|
|
29840
29840
|
const corro = (n) => Number(n.attrs["corroborations"] ?? 0);
|
|
29841
29841
|
const consumed = /* @__PURE__ */ new Set();
|
|
29842
|
+
const seeds = opts.freshSince === void 0 ? open2 : open2.filter((p) => p.createdAt > opts.freshSince);
|
|
29842
29843
|
store.transaction(() => {
|
|
29843
|
-
for (const a of
|
|
29844
|
+
for (const a of seeds) {
|
|
29844
29845
|
if (consumed.has(a.id)) continue;
|
|
29845
29846
|
const cluster = [a];
|
|
29846
29847
|
for (const b of open2) {
|
|
@@ -57728,7 +57729,7 @@ function createWatchBreaker(deps) {
|
|
|
57728
57729
|
}
|
|
57729
57730
|
|
|
57730
57731
|
// src/engine.ts
|
|
57731
|
-
var DAEMON_VERSION = true ? "2.0.2-dev.
|
|
57732
|
+
var DAEMON_VERSION = true ? "2.0.2-dev.1285" : "2.0.0-alpha.0";
|
|
57732
57733
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
57733
57734
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
57734
57735
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -59769,10 +59770,17 @@ B: ${b}`,
|
|
|
59769
59770
|
const sem = await embedSemanticNodes(store);
|
|
59770
59771
|
if (sem.embedded > 0) {
|
|
59771
59772
|
console.log(`[errata] embedded ${sem.embedded} semantic node(s)`);
|
|
59772
|
-
|
|
59773
|
-
|
|
59774
|
-
|
|
59775
|
-
|
|
59773
|
+
}
|
|
59774
|
+
const parkWmRaw = store.getMeta?.("fold_park_sweep_at") ?? null;
|
|
59775
|
+
const e = mergeProblemsByEmbedding(store, {
|
|
59776
|
+
ts: Date.now(),
|
|
59777
|
+
...parkWmRaw !== null ? { freshSince: Number(parkWmRaw) || 0 } : {}
|
|
59778
|
+
});
|
|
59779
|
+
store.setMeta?.("fold_park_sweep_at", String(Date.now()));
|
|
59780
|
+
if (e.merged > 0 || (e.nearMissMarked ?? 0) > 0) {
|
|
59781
|
+
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)" : ""}`);
|
|
59782
|
+
}
|
|
59783
|
+
if (sem.embedded > 0) {
|
|
59776
59784
|
const cb = bindCanonicalNeighbors(store, { ts: Date.now() });
|
|
59777
59785
|
if (cb.bound > 0) {
|
|
59778
59786
|
console.log(`[errata] canonical-bind: +${cb.bound} machine-proposed link(s) across ${cb.scanned} problem(s)`);
|