@inerrata-corporation/errata 2.0.2-dev.338 → 2.0.2-dev.342

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 +10 -2
  2. package/package.json +1 -1
package/errata.mjs CHANGED
@@ -53147,7 +53147,7 @@ function startLoopLagMonitor(thresholdMs = 1e3) {
53147
53147
  }
53148
53148
 
53149
53149
  // src/engine.ts
53150
- var DAEMON_VERSION = true ? "2.0.2-dev.338" : "2.0.0-alpha.0";
53150
+ var DAEMON_VERSION = true ? "2.0.2-dev.342" : "2.0.0-alpha.0";
53151
53151
  var IGNORED_PATH = /[\\/](?:\.git|node_modules|\.errata|\.claude|\.codex|\.cursor|\.turbo|\.next|dist|coverage|test-results|playwright-report|__pycache__)(?:[\\/]|$)/;
53152
53152
  var IGNORED_NOISE = /castalia\.db|eventlog\.sqlite|turn-cursors/;
53153
53153
  var GIT_OP_MUTE_MS = 4e3;
@@ -55520,6 +55520,11 @@ async function checkForUpdate(channel) {
55520
55520
  downgradeAvailable: latest !== null && direction < 0
55521
55521
  };
55522
55522
  }
55523
+ function pendingFromServerVerdict(latest, channel, current = DAEMON_VERSION) {
55524
+ if (!latest) return null;
55525
+ if (compareVersions(latest, current) <= 0) return null;
55526
+ return { current, latest, channel };
55527
+ }
55523
55528
  var POLL_INTERVAL_MS = {
55524
55529
  dev: 6 * 60 * 6e4,
55525
55530
  latest: 24 * 60 * 6e4
@@ -56637,7 +56642,10 @@ async function startMultiDaemon(opts = {}) {
56637
56642
  pruned2 += s.pruned;
56638
56643
  if (s.staleDaemon) stale = s.staleDaemon;
56639
56644
  }
56640
- const next = stale ? { current: DAEMON_VERSION, latest: stale.latest, channel: loadConfig().updateChannel } : null;
56645
+ const next = pendingFromServerVerdict(
56646
+ stale?.latest,
56647
+ loadConfig().updateChannel
56648
+ );
56641
56649
  if ((next?.latest ?? null) !== (serverPending?.latest ?? null)) {
56642
56650
  serverPending = next;
56643
56651
  for (const rec of records) rec.engine.markContextDirty();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inerrata-corporation/errata",
3
- "version": "2.0.2-dev.338",
3
+ "version": "2.0.2-dev.342",
4
4
  "description": "errata - local-first observation engine for AI coding agents",
5
5
  "type": "module",
6
6
  "bin": {