@inerrata-corporation/errata 2.0.2-dev.208 → 2.0.2-dev.211
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 -5
- package/package.json +1 -1
package/errata.mjs
CHANGED
|
@@ -50622,7 +50622,9 @@ var EMPTY = {
|
|
|
50622
50622
|
detached: 0,
|
|
50623
50623
|
reopened: 0,
|
|
50624
50624
|
witnessed: 0,
|
|
50625
|
-
cloudTwins: []
|
|
50625
|
+
cloudTwins: [],
|
|
50626
|
+
reminted: 0,
|
|
50627
|
+
recoverable: 0
|
|
50626
50628
|
};
|
|
50627
50629
|
function markerPath(configDir) {
|
|
50628
50630
|
return join16(configDir, "constraint-backfill.json");
|
|
@@ -50688,8 +50690,11 @@ function backfillConstraintKind(store, opts) {
|
|
|
50688
50690
|
detached: 0,
|
|
50689
50691
|
reopened: 0,
|
|
50690
50692
|
witnessed: 0,
|
|
50691
|
-
cloudTwins: []
|
|
50693
|
+
cloudTwins: [],
|
|
50694
|
+
reminted: 0,
|
|
50695
|
+
recoverable: 0
|
|
50692
50696
|
};
|
|
50697
|
+
const missing = [];
|
|
50693
50698
|
const seen = /* @__PURE__ */ new Set();
|
|
50694
50699
|
const work = [];
|
|
50695
50700
|
for (const statement of statements) {
|
|
@@ -50697,7 +50702,10 @@ function backfillConstraintKind(store, opts) {
|
|
|
50697
50702
|
if (seen.has(id)) continue;
|
|
50698
50703
|
seen.add(id);
|
|
50699
50704
|
const node2 = store.getNode(id);
|
|
50700
|
-
if (!node2 || node2.label !== "Problem")
|
|
50705
|
+
if (!node2 || node2.label !== "Problem") {
|
|
50706
|
+
missing.push(statement);
|
|
50707
|
+
continue;
|
|
50708
|
+
}
|
|
50701
50709
|
const isWitnessed = citedByFix.has(priorHandle(node2)) || citedByFix.has(id) || [...citedByFix].some((c) => c && id.startsWith(c));
|
|
50702
50710
|
const fabricated = [];
|
|
50703
50711
|
for (const e of store.outEdges(id, ["SOLVED_BY"])) {
|
|
@@ -50719,7 +50727,26 @@ function backfillConstraintKind(store, opts) {
|
|
|
50719
50727
|
}
|
|
50720
50728
|
if (stamp || fabricated.length > 0) work.push({ id, fabricated, stamp });
|
|
50721
50729
|
}
|
|
50722
|
-
|
|
50730
|
+
report.recoverable = opts.remint ? 0 : missing.length;
|
|
50731
|
+
if (opts.dryRun) {
|
|
50732
|
+
report.reminted = opts.remint ? missing.length : 0;
|
|
50733
|
+
return report;
|
|
50734
|
+
}
|
|
50735
|
+
if (opts.remint && missing.length > 0) {
|
|
50736
|
+
store.transaction(() => {
|
|
50737
|
+
for (const statement of missing) {
|
|
50738
|
+
try {
|
|
50739
|
+
const r = ingestDesignProblem(
|
|
50740
|
+
store,
|
|
50741
|
+
{ problem: statement, kind: "constraint" },
|
|
50742
|
+
{ workspaceId: "", source: `constraint-remint:v${BACKFILL_VERSION}`, ts: opts.now }
|
|
50743
|
+
);
|
|
50744
|
+
if (r.created) report.reminted++;
|
|
50745
|
+
} catch {
|
|
50746
|
+
}
|
|
50747
|
+
}
|
|
50748
|
+
});
|
|
50749
|
+
}
|
|
50723
50750
|
store.transaction(() => {
|
|
50724
50751
|
for (const w of work) {
|
|
50725
50752
|
const node2 = store.getNode(w.id);
|
|
@@ -52315,7 +52342,7 @@ function startLoopLagMonitor(thresholdMs = 1e3) {
|
|
|
52315
52342
|
}
|
|
52316
52343
|
|
|
52317
52344
|
// src/engine.ts
|
|
52318
|
-
var DAEMON_VERSION = true ? "2.0.2-dev.
|
|
52345
|
+
var DAEMON_VERSION = true ? "2.0.2-dev.211" : "2.0.0-alpha.0";
|
|
52319
52346
|
var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
|
|
52320
52347
|
var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
|
|
52321
52348
|
var GIT_OP_MUTE_MS = 4e3;
|