@adhdev/daemon-standalone 1.0.58-rc.26 → 1.0.58-rc.27

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/dist/index.js CHANGED
@@ -31672,9 +31672,9 @@ var require_streamx = __commonJS({
31672
31672
  }
31673
31673
  });
31674
31674
 
31675
- // ../daemon-core/node_modules/b4a/index.js
31675
+ // ../../node_modules/tar-stream/node_modules/b4a/index.js
31676
31676
  var require_b4a2 = __commonJS({
31677
- "../daemon-core/node_modules/b4a/index.js"(exports2, module2) {
31677
+ "../../node_modules/tar-stream/node_modules/b4a/index.js"(exports2, module2) {
31678
31678
  "use strict";
31679
31679
  function isBuffer(value) {
31680
31680
  return Buffer.isBuffer(value) || value instanceof Uint8Array;
@@ -31830,9 +31830,9 @@ var require_b4a2 = __commonJS({
31830
31830
  }
31831
31831
  });
31832
31832
 
31833
- // ../daemon-core/node_modules/tar-stream/headers.js
31833
+ // ../../node_modules/tar-stream/headers.js
31834
31834
  var require_headers = __commonJS({
31835
- "../daemon-core/node_modules/tar-stream/headers.js"(exports2) {
31835
+ "../../node_modules/tar-stream/headers.js"(exports2) {
31836
31836
  "use strict";
31837
31837
  var b4a = require_b4a2();
31838
31838
  var ZEROS = "0000000000000000000";
@@ -32093,9 +32093,9 @@ var require_headers = __commonJS({
32093
32093
  }
32094
32094
  });
32095
32095
 
32096
- // ../daemon-core/node_modules/tar-stream/extract.js
32096
+ // ../../node_modules/tar-stream/extract.js
32097
32097
  var require_extract = __commonJS({
32098
- "../daemon-core/node_modules/tar-stream/extract.js"(exports2, module2) {
32098
+ "../../node_modules/tar-stream/extract.js"(exports2, module2) {
32099
32099
  "use strict";
32100
32100
  var { Writable, Readable, getStreamError } = require_streamx();
32101
32101
  var FIFO = require_fast_fifo();
@@ -32438,9 +32438,9 @@ var require_extract = __commonJS({
32438
32438
  }
32439
32439
  });
32440
32440
 
32441
- // ../daemon-core/node_modules/tar-stream/constants.js
32441
+ // ../../node_modules/tar-stream/constants.js
32442
32442
  var require_constants = __commonJS({
32443
- "../daemon-core/node_modules/tar-stream/constants.js"(exports2, module2) {
32443
+ "../../node_modules/tar-stream/constants.js"(exports2, module2) {
32444
32444
  "use strict";
32445
32445
  var constants = {
32446
32446
  // just for envs without fs
@@ -32459,9 +32459,9 @@ var require_constants = __commonJS({
32459
32459
  }
32460
32460
  });
32461
32461
 
32462
- // ../daemon-core/node_modules/tar-stream/pack.js
32462
+ // ../../node_modules/tar-stream/pack.js
32463
32463
  var require_pack = __commonJS({
32464
- "../daemon-core/node_modules/tar-stream/pack.js"(exports2, module2) {
32464
+ "../../node_modules/tar-stream/pack.js"(exports2, module2) {
32465
32465
  "use strict";
32466
32466
  var { Readable, Writable, getStreamError } = require_streamx();
32467
32467
  var b4a = require_b4a2();
@@ -32694,9 +32694,9 @@ var require_pack = __commonJS({
32694
32694
  }
32695
32695
  });
32696
32696
 
32697
- // ../daemon-core/node_modules/tar-stream/index.js
32697
+ // ../../node_modules/tar-stream/index.js
32698
32698
  var require_tar_stream = __commonJS({
32699
- "../daemon-core/node_modules/tar-stream/index.js"(exports2) {
32699
+ "../../node_modules/tar-stream/index.js"(exports2) {
32700
32700
  "use strict";
32701
32701
  exports2.extract = require_extract();
32702
32702
  exports2.pack = require_pack();
@@ -32939,9 +32939,9 @@ var require_pump = __commonJS({
32939
32939
  }
32940
32940
  });
32941
32941
 
32942
- // ../daemon-core/node_modules/tar-fs/index.js
32942
+ // ../../node_modules/tar-fs/index.js
32943
32943
  var require_tar_fs = __commonJS({
32944
- "../daemon-core/node_modules/tar-fs/index.js"(exports2) {
32944
+ "../../node_modules/tar-fs/index.js"(exports2) {
32945
32945
  "use strict";
32946
32946
  var tar = require_tar_stream();
32947
32947
  var pump = require_pump();
@@ -36885,10 +36885,10 @@ var require_dist3 = __commonJS({
36885
36885
  }
36886
36886
  function getDaemonBuildInfo() {
36887
36887
  if (cached2) return cached2;
36888
- const commit = readInjected(true ? "9d74c9f0f92fde5a57a60e0068576d1868701f35" : void 0) ?? "unknown";
36889
- const commitShort = readInjected(true ? "9d74c9f0" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
36890
- const version2 = readInjected(true ? "1.0.58-rc.26" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
36891
- const builtAt = readInjected(true ? "2026-08-27T06:32:25.171Z" : void 0);
36888
+ const commit = readInjected(true ? "6db781afb0c67986e7f3c0a1fab11fb6c464bfad" : void 0) ?? "unknown";
36889
+ const commitShort = readInjected(true ? "6db781af" : void 0) ?? (commit !== "unknown" ? commit.slice(0, 7) : "unknown");
36890
+ const version2 = readInjected(true ? "1.0.58-rc.27" : void 0) ?? readInjected(typeof process !== "undefined" ? process.env?.ADHDEV_PKG_VERSION : void 0) ?? "unknown";
36891
+ const builtAt = readInjected(true ? "2026-08-27T08:09:59.178Z" : void 0);
36892
36892
  cached2 = builtAt ? { commit, commitShort, version: version2, builtAt } : { commit, commitShort, version: version2 };
36893
36893
  return cached2;
36894
36894
  }
@@ -58063,9 +58063,12 @@ CREATE TABLE IF NOT EXISTS sq_archive (
58063
58063
  return result;
58064
58064
  }
58065
58065
  const seen = /* @__PURE__ */ new Set();
58066
+ let oldestComparedMs = Infinity;
58066
58067
  for (const entry of ledgerEntries) {
58067
58068
  result.compared++;
58068
58069
  seen.add(entry.id);
58070
+ const entryMs = new Date(entry.timestamp).getTime();
58071
+ if (Number.isFinite(entryMs) && entryMs < oldestComparedMs) oldestComparedMs = entryMs;
58069
58072
  const actual = shadow.get(entry.id);
58070
58073
  if (!actual) {
58071
58074
  result.mismatches.push({
@@ -58087,6 +58090,8 @@ CREATE TABLE IF NOT EXISTS sq_archive (
58087
58090
  }
58088
58091
  for (const [id, record2] of shadow) {
58089
58092
  if (seen.has(id)) continue;
58093
+ const recordMs = new Date(record2.timestamp).getTime();
58094
+ if (Number.isFinite(recordMs) && recordMs < oldestComparedMs) continue;
58090
58095
  result.mismatches.push({
58091
58096
  kind: "extra_in_shadow",
58092
58097
  id,
@@ -138706,7 +138711,16 @@ ${ptyResult.output.slice(-2e3)}`);
138706
138711
  queueBucket: count(seqscribe.queueBucket),
138707
138712
  fgenAgeBucket: count(seqscribe.fgenAgeBucket),
138708
138713
  quarantined: seqscribe.quarantined === true,
138709
- authority: seqscribe.authority === true
138714
+ authority: seqscribe.authority === true,
138715
+ dualWrite: seqscribe.dualWrite === true,
138716
+ dualWriteFailedBucket: count(seqscribe.dualWriteFailedBucket),
138717
+ dualWriteDroppedBucket: count(seqscribe.dualWriteDroppedBucket),
138718
+ dualWriteBackfilledBucket: count(seqscribe.dualWriteBackfilledBucket),
138719
+ parityMismatchBucket: count(seqscribe.parityMismatchBucket),
138720
+ parityRan: seqscribe.parityRan === true,
138721
+ parityMissingInShadowBucket: count(seqscribe.parityMissingInShadowBucket),
138722
+ parityExtraInShadowBucket: count(seqscribe.parityExtraInShadowBucket),
138723
+ parityFieldMismatchBucket: count(seqscribe.parityFieldMismatchBucket)
138710
138724
  };
138711
138725
  }
138712
138726
  function buildCloudStatusReportPayload(sessions, p2p, timestamp2, seqscribe) {
@@ -147146,7 +147160,10 @@ data: ${JSON.stringify(msg.data)}
147146
147160
  dualWriteDroppedBucket: bucket(opts.dualWrite?.dropped ?? 0, BACKLOG_BUCKETS),
147147
147161
  dualWriteBackfilledBucket: bucket(opts.dualWrite?.backfilled ?? 0, BACKLOG_BUCKETS),
147148
147162
  parityMismatchBucket: bucket(opts.parity?.mismatches ?? 0, BACKLOG_BUCKETS),
147149
- parityRan: (opts.parity?.runs ?? 0) > 0
147163
+ parityRan: (opts.parity?.runs ?? 0) > 0,
147164
+ parityMissingInShadowBucket: bucket(opts.parity?.missingInShadow ?? 0, BACKLOG_BUCKETS),
147165
+ parityExtraInShadowBucket: bucket(opts.parity?.extraInShadow ?? 0, BACKLOG_BUCKETS),
147166
+ parityFieldMismatchBucket: bucket(opts.parity?.fieldMismatch ?? 0, BACKLOG_BUCKETS)
147150
147167
  };
147151
147168
  }
147152
147169
  init_mesh_dual_write();
@@ -147559,7 +147576,13 @@ ${upgradeFailureNotice.notice}${supersededHint}`);
147559
147576
  dropped: dual.dropped,
147560
147577
  backfilled: dual.backfilled
147561
147578
  },
147562
- parity: { runs: parity.runs, mismatches: parity.mismatches }
147579
+ parity: {
147580
+ runs: parity.runs,
147581
+ mismatches: parity.mismatches,
147582
+ missingInShadow: parity.missingInShadow,
147583
+ extraInShadow: parity.extraInShadow,
147584
+ fieldMismatch: parity.fieldMismatch
147585
+ }
147563
147586
  });
147564
147587
  } catch (error48) {
147565
147588
  LOG2.warn(