@inerrata-corporation/errata 2.0.6-dev.2550 → 2.0.6-dev.2559
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 -6
- package/package.json +1 -1
- package/pass-worker.mjs +3 -0
package/errata.mjs
CHANGED
|
@@ -20548,6 +20548,7 @@ function upgradeAnchorHintsForFile(store, relPath, workspaceId2, ts) {
|
|
|
20548
20548
|
function upgradeAnchorHints(store, workspaceId2, ts) {
|
|
20549
20549
|
let upgraded = 0;
|
|
20550
20550
|
let standing = 0;
|
|
20551
|
+
let unresolvable = 0;
|
|
20551
20552
|
const filesByPath = /* @__PURE__ */ new Map();
|
|
20552
20553
|
for (const f of store.findNodesByLabel("File")) {
|
|
20553
20554
|
if (f.attrs["workspaceId"] && f.attrs["workspaceId"] !== workspaceId2) continue;
|
|
@@ -20558,9 +20559,13 @@ function upgradeAnchorHints(store, workspaceId2, ts) {
|
|
|
20558
20559
|
if (p.validTo != null || p.attrs["resolvedAt"]) continue;
|
|
20559
20560
|
const hint = openAnchorHint(p);
|
|
20560
20561
|
if (!hint) continue;
|
|
20561
|
-
standing++;
|
|
20562
20562
|
const file2 = filesByPath.get(hint.path.trim().replace(/^\.?\//, ""));
|
|
20563
|
-
|
|
20563
|
+
if (!file2 || !isAnchorableCodePath(hint.path)) {
|
|
20564
|
+
unresolvable++;
|
|
20565
|
+
continue;
|
|
20566
|
+
}
|
|
20567
|
+
standing++;
|
|
20568
|
+
const changedAt = Number(file2.attrs["contentChangedAt"] ?? 0);
|
|
20564
20569
|
if (changedAt <= hint.ts) continue;
|
|
20565
20570
|
if (anchorProblemToWorkingFile(store, p.id, hint.path, workspaceId2, ts, "hint-confirmed")) {
|
|
20566
20571
|
consumeAnchorHint(store, p, ts);
|
|
@@ -20568,7 +20573,7 @@ function upgradeAnchorHints(store, workspaceId2, ts) {
|
|
|
20568
20573
|
standing--;
|
|
20569
20574
|
}
|
|
20570
20575
|
}
|
|
20571
|
-
return { upgraded, standing };
|
|
20576
|
+
return { upgraded, standing, unresolvable };
|
|
20572
20577
|
}
|
|
20573
20578
|
function resolveDesignProblemByStatement(store, statement, fixNote, t) {
|
|
20574
20579
|
const problemId = identityId({ kind: "DesignProblem", statement });
|
|
@@ -33812,6 +33817,8 @@ function upsertFile(store, id, f, workspaceId2, skip) {
|
|
|
33812
33817
|
contentHash = createHash4("sha256").update(readFileSync10(f.absPath)).digest("hex");
|
|
33813
33818
|
} catch {
|
|
33814
33819
|
}
|
|
33820
|
+
const carried = { ...store.getNode(id)?.attrs ?? {} };
|
|
33821
|
+
for (const owned of ["contentHash", "indexSkipped", "symbolCount"]) delete carried[owned];
|
|
33815
33822
|
const node2 = {
|
|
33816
33823
|
id,
|
|
33817
33824
|
label: "File",
|
|
@@ -33830,6 +33837,7 @@ function upsertFile(store, id, f, workspaceId2, skip) {
|
|
|
33830
33837
|
community: null,
|
|
33831
33838
|
stability: "stable",
|
|
33832
33839
|
attrs: {
|
|
33840
|
+
...carried,
|
|
33833
33841
|
absPath: f.absPath,
|
|
33834
33842
|
relPath: f.relPath,
|
|
33835
33843
|
size: f.size,
|
|
@@ -78322,7 +78330,7 @@ function createWatchBreaker(deps) {
|
|
|
78322
78330
|
}
|
|
78323
78331
|
|
|
78324
78332
|
// src/engine.ts
|
|
78325
|
-
var DAEMON_VERSION = true ? "2.0.6-dev.
|
|
78333
|
+
var DAEMON_VERSION = true ? "2.0.6-dev.2559" : "2.0.0-alpha.0";
|
|
78326
78334
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
78327
78335
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
78328
78336
|
var GIT_OP_MUTE_MS = 4e3;
|
|
@@ -80341,7 +80349,7 @@ B: ${b}`,
|
|
|
80341
80349
|
semanticMaintenance() {
|
|
80342
80350
|
const seqBefore = store.currentIngestSeq();
|
|
80343
80351
|
const report = runSemanticMaintenance(store);
|
|
80344
|
-
let hintUpgrade = { upgraded: 0, standing: 0 };
|
|
80352
|
+
let hintUpgrade = { upgraded: 0, standing: 0, unresolvable: 0 };
|
|
80345
80353
|
try {
|
|
80346
80354
|
hintUpgrade = upgradeAnchorHints(store, profile.id, Date.now());
|
|
80347
80355
|
} catch {
|
|
@@ -80358,7 +80366,8 @@ B: ${b}`,
|
|
|
80358
80366
|
claimsEvaluated: report.claimsEvaluated,
|
|
80359
80367
|
seqAdvanced: store.currentIngestSeq() - seqBefore,
|
|
80360
80368
|
anchorHintsUpgraded: hintUpgrade.upgraded,
|
|
80361
|
-
anchorHintsStanding: hintUpgrade.standing
|
|
80369
|
+
anchorHintsStanding: hintUpgrade.standing,
|
|
80370
|
+
anchorHintsUnresolvable: hintUpgrade.unresolvable
|
|
80362
80371
|
});
|
|
80363
80372
|
if (report.revisitsCleared > 0 || report.fixCandidatesSettled > 0 || report.designResolved > 0) {
|
|
80364
80373
|
refreshContextNow();
|
package/package.json
CHANGED
package/pass-worker.mjs
CHANGED
|
@@ -16968,6 +16968,8 @@ function upsertFile(store2, id, f, workspaceId, skip) {
|
|
|
16968
16968
|
contentHash = createHash3("sha256").update(readFileSync2(f.absPath)).digest("hex");
|
|
16969
16969
|
} catch {
|
|
16970
16970
|
}
|
|
16971
|
+
const carried = { ...store2.getNode(id)?.attrs ?? {} };
|
|
16972
|
+
for (const owned of ["contentHash", "indexSkipped", "symbolCount"]) delete carried[owned];
|
|
16971
16973
|
const node = {
|
|
16972
16974
|
id,
|
|
16973
16975
|
label: "File",
|
|
@@ -16986,6 +16988,7 @@ function upsertFile(store2, id, f, workspaceId, skip) {
|
|
|
16986
16988
|
community: null,
|
|
16987
16989
|
stability: "stable",
|
|
16988
16990
|
attrs: {
|
|
16991
|
+
...carried,
|
|
16989
16992
|
absPath: f.absPath,
|
|
16990
16993
|
relPath: f.relPath,
|
|
16991
16994
|
size: f.size,
|