@inerrata-corporation/errata 2.0.17-dev.3433 → 2.0.17-dev.3435

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.
Files changed (2) hide show
  1. package/errata.mjs +13 -2
  2. package/package.json +1 -1
package/errata.mjs CHANGED
@@ -82159,7 +82159,7 @@ function createWatchBreaker(deps) {
82159
82159
  }
82160
82160
 
82161
82161
  // src/engine.ts
82162
- var DAEMON_VERSION = true ? "2.0.17-dev.3433" : "2.0.0-alpha.0";
82162
+ var DAEMON_VERSION = true ? "2.0.17-dev.3435" : "2.0.0-alpha.0";
82163
82163
  var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
82164
82164
  var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
82165
82165
  var GIT_OP_MUTE_MS = 4e3;
@@ -87681,6 +87681,10 @@ async function walk10(root, input, client, opts, readBlob) {
87681
87681
  const launched = /* @__PURE__ */ new Map();
87682
87682
  const cap = opts.maxUnits;
87683
87683
  const edgeParked = /* @__PURE__ */ new Set();
87684
+ const parkedEarlier = new Set((profile.historyStage?.coverageGaps ?? []).filter((g) => g.reason === "edge-blocked").map((g) => `${g.sha}/${g.subIndex}`));
87685
+ units.forEach((u, j) => {
87686
+ if (parkedEarlier.has(`${u.sha}/${u.subIndex}`)) edgeParked.add(j);
87687
+ });
87684
87688
  const predecessor = (k) => {
87685
87689
  for (let j = k - 1; j >= 0; j--) if (!units[j].skip && !edgeParked.has(j)) return units[j];
87686
87690
  return void 0;
@@ -87746,7 +87750,7 @@ async function walk10(root, input, client, opts, readBlob) {
87746
87750
  let ahead = 0;
87747
87751
  for (let j = k + 1; j < units.length && ahead < lookahead; j++) {
87748
87752
  if (cap !== void 0 && processed + (j - k) >= cap) break;
87749
- if (units[j].skip) continue;
87753
+ if (units[j].skip || edgeParked.has(j)) continue;
87750
87754
  ahead += 1;
87751
87755
  await launch(j);
87752
87756
  }
@@ -87767,6 +87771,13 @@ async function walk10(root, input, client, opts, readBlob) {
87767
87771
  log(`[errata] history ${label} skipped (${u.skip})`);
87768
87772
  continue;
87769
87773
  }
87774
+ if (edgeParked.has(k)) {
87775
+ profile = stage(profile, { state: dryRun ? "extracting" : "contributing", unitsDone: doneSoFar, counts, ...lastInPosition ? { watermarkSha: positionSha } : {} }, now);
87776
+ persist(profile);
87777
+ processed += 1;
87778
+ log(`[errata] history ${label}: edge-blocked on an earlier run; gap kept, not re-sent`);
87779
+ continue;
87780
+ }
87770
87781
  const { body: body2, prepMs } = await prepare(k);
87771
87782
  profile = stage(profile, { state: dryRun ? "extracting" : "contributing", unitsDone: doneSoFar - 1, lastError: void 0 }, now);
87772
87783
  persist(profile);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata-corporation/errata",
3
- "version": "2.0.17-dev.3433",
3
+ "version": "2.0.17-dev.3435",
4
4
  "description": "errata - local-first observation engine for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {