@inerrata-corporation/errata 2.0.14 → 2.0.15-dev.3318

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.
@@ -17502,8 +17502,10 @@ function percolate(l1, l2, opts) {
17502
17502
  if (n.attrs["source"] === "cloud") {
17503
17503
  const raw = l2.getMeta?.(`history-correction:${String(n.attrs["cloudNodeId"] ?? n.id)}`);
17504
17504
  const correction = raw ? JSON.parse(raw) : null;
17505
+ const incomingSeq = n.attrs["historyCorrectionSeq"];
17506
+ const appliedSeq = typeof incomingSeq === "number" && Number.isSafeInteger(incomingSeq) ? incomingSeq : 0;
17505
17507
  const support = n.attrs["historyQuality"]?.["sourceSupport"];
17506
- if (correction?.action === "quarantine" || correction?.sourceSupport === "contradicted" || support === "quarantined" || support === "contradicted") {
17508
+ if (correction?.seq != null && appliedSeq < correction.seq || correction?.action === "quarantine" || correction?.sourceSupport === "contradicted" || support === "quarantined" || support === "contradicted") {
17507
17509
  result.nodesSkipped++;
17508
17510
  continue;
17509
17511
  }
package/errata.mjs CHANGED
@@ -22028,8 +22028,10 @@ function percolate(l1, l2, opts) {
22028
22028
  if (n.attrs["source"] === "cloud") {
22029
22029
  const raw2 = l2.getMeta?.(`history-correction:${String(n.attrs["cloudNodeId"] ?? n.id)}`);
22030
22030
  const correction = raw2 ? JSON.parse(raw2) : null;
22031
+ const incomingSeq = n.attrs["historyCorrectionSeq"];
22032
+ const appliedSeq = typeof incomingSeq === "number" && Number.isSafeInteger(incomingSeq) ? incomingSeq : 0;
22031
22033
  const support2 = n.attrs["historyQuality"]?.["sourceSupport"];
22032
- if (correction?.action === "quarantine" || correction?.sourceSupport === "contradicted" || support2 === "quarantined" || support2 === "contradicted") {
22034
+ if (correction?.seq != null && appliedSeq < correction.seq || correction?.action === "quarantine" || correction?.sourceSupport === "contradicted" || support2 === "quarantined" || support2 === "contradicted") {
22033
22035
  result.nodesSkipped++;
22034
22036
  continue;
22035
22037
  }
@@ -27144,8 +27146,8 @@ var init_config = __esm({
27144
27146
  "use strict";
27145
27147
  init_paths();
27146
27148
  LEGACY_CLOUD_URL = "https://inerrata-gateway.onrender.com";
27147
- DEFAULT_CLOUD_URL = true ? "https://inerrata.dev" : DEV_CLOUD_URL;
27148
- DEFAULT_UPDATE_CHANNEL = true ? "latest" : "dev";
27149
+ DEFAULT_CLOUD_URL = true ? "https://dev.inerrata.dev" : DEV_CLOUD_URL;
27150
+ DEFAULT_UPDATE_CHANNEL = false ? "latest" : "dev";
27149
27151
  }
27150
27152
  });
27151
27153
 
@@ -81243,7 +81245,7 @@ function createWatchBreaker(deps) {
81243
81245
  }
81244
81246
 
81245
81247
  // src/engine.ts
81246
- var DAEMON_VERSION = true ? "2.0.14" : "2.0.0-alpha.0";
81248
+ var DAEMON_VERSION = true ? "2.0.15-dev.3318" : "2.0.0-alpha.0";
81247
81249
  var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
81248
81250
  var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
81249
81251
  var GIT_OP_MUTE_MS = 4e3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata-corporation/errata",
3
- "version": "2.0.14",
3
+ "version": "2.0.15-dev.3318",
4
4
  "description": "errata - local-first observation engine for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {