@camstack/system 1.2.392 → 1.2.394

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 (78) hide show
  1. package/dist/addon-runner.js +1 -1
  2. package/dist/addon-runner.mjs +1 -1
  3. package/dist/addon-utils.js +1 -1
  4. package/dist/addon-utils.mjs +1 -1
  5. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  6. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  7. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  8. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  9. package/dist/builtins/alerts/alerts.addon.js +1 -1
  10. package/dist/builtins/alerts/alerts.addon.mjs +1 -1
  11. package/dist/builtins/autotrack/index.js +1 -1
  12. package/dist/builtins/autotrack/index.mjs +1 -1
  13. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  14. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  15. package/dist/builtins/calendars/calendars.addon.js +1 -1
  16. package/dist/builtins/calendars/calendars.addon.mjs +1 -1
  17. package/dist/builtins/camera-grid/index.js +1 -1
  18. package/dist/builtins/camera-grid/index.mjs +1 -1
  19. package/dist/builtins/composer/composer.addon.js +2 -2
  20. package/dist/builtins/composer/composer.addon.mjs +2 -2
  21. package/dist/builtins/console-logging/index.js +1 -1
  22. package/dist/builtins/console-logging/index.mjs +1 -1
  23. package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
  24. package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
  25. package/dist/builtins/device-manager/device-manager.addon.js +2 -2
  26. package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
  27. package/dist/builtins/hub-forwarder/index.js +1 -1
  28. package/dist/builtins/hub-forwarder/index.mjs +1 -1
  29. package/dist/builtins/keychain/index.js +3 -3
  30. package/dist/builtins/keychain/index.mjs +3 -3
  31. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  32. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  33. package/dist/builtins/local-auth/local-auth.addon.js +2 -2
  34. package/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  35. package/dist/builtins/local-network/local-network.addon.js +1 -1
  36. package/dist/builtins/local-network/local-network.addon.mjs +1 -1
  37. package/dist/builtins/loki-logging/index.js +1 -1
  38. package/dist/builtins/loki-logging/index.mjs +1 -1
  39. package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  40. package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  41. package/dist/builtins/platform-probe/index.js +1 -1
  42. package/dist/builtins/platform-probe/index.mjs +1 -1
  43. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  44. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  45. package/dist/builtins/snapshot/index.js +1 -1
  46. package/dist/builtins/snapshot/index.mjs +1 -1
  47. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  48. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  49. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
  50. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
  51. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  52. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  53. package/dist/builtins/system-config/system-config.addon.js +2 -2
  54. package/dist/builtins/system-config/system-config.addon.mjs +283 -283
  55. package/dist/builtins/winston-logging/index.js +1 -1
  56. package/dist/builtins/winston-logging/index.mjs +1 -1
  57. package/dist/{child-cap-dispatch-Nx-lrlHR.js → child-cap-dispatch-CPx0qbCF.js} +12 -7
  58. package/dist/{child-cap-dispatch-x-onDDiV.mjs → child-cap-dispatch-CvXtuNaX.mjs} +12 -7
  59. package/dist/{composition-sources-R8TskGSV.mjs → composition-sources-BuRXx2gs.mjs} +1 -1
  60. package/dist/{composition-sources-LUJsW0AQ.js → composition-sources-CvpibBxI.js} +1 -1
  61. package/dist/{constants-D4lxxip7.js → constants-Bz9gKWe8.js} +1 -1
  62. package/dist/{constants-DMvAcbbP.mjs → constants-C1WoQ0E8.mjs} +1 -1
  63. package/dist/{dist-byg8IP4Q.mjs → dist-0P1gm4Gd.mjs} +387 -158
  64. package/dist/{dist-XTkzsnz-.js → dist-CME5sVBJ.js} +392 -157
  65. package/dist/{event-loop-stall-monitor-TG8UcdY2.mjs → event-loop-stall-monitor-BHtIKJY2.mjs} +1 -1
  66. package/dist/{event-loop-stall-monitor-DPFghEFw.js → event-loop-stall-monitor-BawH8L8C.js} +1 -1
  67. package/dist/index.js +54 -6
  68. package/dist/index.mjs +54 -7
  69. package/dist/{jwt-signing-key-CD87HrHH.js → jwt-signing-key-CyoJaT3C.js} +1 -1
  70. package/dist/{jwt-signing-key-DNBxSN5p.mjs → jwt-signing-key-DK-IFI9j.mjs} +1 -1
  71. package/dist/kernel/index.d.ts +1 -0
  72. package/dist/kernel/inference/inference-resolver.d.ts +10 -5
  73. package/dist/kernel/inference/local-python-runtimes.d.ts +2 -0
  74. package/dist/{restore-archive-Bmmmyp1M.mjs → restore-archive-0g91qMVF.mjs} +81 -81
  75. package/dist/{restore-archive-bvYTsnvp.js → restore-archive-K6kI-oPI.js} +1 -1
  76. package/dist/{retired-settings-keys-V0yq5Bm6.js → retired-settings-keys-Db41_d9H.js} +1 -1
  77. package/dist/{retired-settings-keys-R9CBo2lY.mjs → retired-settings-keys-PrO5jugN.mjs} +1 -1
  78. package/package.json +1 -1
@@ -1,17 +1,17 @@
1
- import { g as DATABASE_SNAPSHOT_SUFFIX } from "./dist-byg8IP4Q.mjs";
1
+ import { g as DATABASE_SNAPSHOT_SUFFIX } from "./dist-0P1gm4Gd.mjs";
2
2
  import { createCipheriv, createDecipheriv, createHash, createPrivateKey, createPublicKey, diffieHellman, generateKeyPairSync, hkdfSync, randomBytes } from "node:crypto";
3
3
  import { Buffer as Buffer$1 } from "buffer";
4
4
  import * as fsp from "node:fs/promises";
5
5
  import jn from "node:fs/promises";
6
- import * as path$2 from "node:path";
6
+ import * as path$1 from "node:path";
7
7
  import path, { basename, join, posix, win32 } from "node:path";
8
- import * as fs$2 from "node:fs";
8
+ import * as fs$1 from "node:fs";
9
9
  import Kt from "node:fs";
10
10
  import { EventEmitter } from "node:events";
11
- import Pe, { Transform } from "node:stream";
11
+ import As, { Transform } from "node:stream";
12
12
  import { StringDecoder } from "node:string_decoder";
13
- import fs from "fs";
14
- import path$1, { dirname as dirname$1, parse } from "path";
13
+ import I from "fs";
14
+ import qs, { dirname as dirname$1, parse } from "path";
15
15
  import * as Ms from "zlib";
16
16
  import Jr from "zlib";
17
17
  import Pi from "assert";
@@ -376,7 +376,7 @@ async function readBackupEncryptionHeader(file) {
376
376
  async function decryptBackupFile(input, output, secretKey) {
377
377
  const decrypt = createBackupDecryptStream(secretKey);
378
378
  try {
379
- await pipeline(fs$2.createReadStream(input), decrypt, fs$2.createWriteStream(output, { mode: 384 }));
379
+ await pipeline(fs$1.createReadStream(input), decrypt, fs$1.createWriteStream(output, { mode: 384 }));
380
380
  } catch (err) {
381
381
  await fsp.rm(output, { force: true }).catch(() => void 0);
382
382
  throw err;
@@ -394,7 +394,7 @@ var Br = (s, t) => {
394
394
  var xs = typeof process == "object" && process ? process : {
395
395
  stdout: null,
396
396
  stderr: null
397
- }, zr = (s) => !!s && typeof s == "object" && (s instanceof A || s instanceof Pe || Ur(s) || Hr(s)), Ur = (s) => !!s && typeof s == "object" && s instanceof EventEmitter && typeof s.pipe == "function" && s.pipe !== Pe.Writable.prototype.pipe, Hr = (s) => !!s && typeof s == "object" && s instanceof EventEmitter && typeof s.write == "function" && typeof s.end == "function", q = Symbol("EOF"), Q = Symbol("maybeEmitEnd"), rt = Symbol("emittedEnd"), Le = Symbol("emittingEnd"), qt = Symbol("emittedError"), Ne = Symbol("closed"), Ls = Symbol("read"), De = Symbol("flush"), Ns = Symbol("flushChunk"), z = Symbol("encoding"), Mt = Symbol("decoder"), g = Symbol("flowing"), Qt = Symbol("paused"), Bt = Symbol("resume"), b = Symbol("buffer"), D = Symbol("pipes"), _ = Symbol("bufferLength"), gi = Symbol("bufferPush"), Ae = Symbol("bufferShift"), L = Symbol("objectMode"), w = Symbol("destroyed"), bi = Symbol("error"), _i = Symbol("emitData"), Ds = Symbol("emitEnd"), Oi = Symbol("emitEnd2"), Z = Symbol("async"), Ti = Symbol("abort"), Ie = Symbol("aborted"), Jt = Symbol("signal"), Rt = Symbol("dataListeners"), F = Symbol("discarded"), jt = (s) => Promise.resolve().then(s), Wr = (s) => s(), Gr = (s) => s === "end" || s === "finish" || s === "prefinish", Zr = (s) => s instanceof ArrayBuffer || !!s && typeof s == "object" && s.constructor && s.constructor.name === "ArrayBuffer" && s.byteLength >= 0, Yr = (s) => !Buffer.isBuffer(s) && ArrayBuffer.isView(s), Fe = class {
397
+ }, zr = (s) => !!s && typeof s == "object" && (s instanceof A || s instanceof As || Ur(s) || Hr(s)), Ur = (s) => !!s && typeof s == "object" && s instanceof EventEmitter && typeof s.pipe == "function" && s.pipe !== As.Writable.prototype.pipe, Hr = (s) => !!s && typeof s == "object" && s instanceof EventEmitter && typeof s.write == "function" && typeof s.end == "function", q = Symbol("EOF"), Q = Symbol("maybeEmitEnd"), rt = Symbol("emittedEnd"), Le = Symbol("emittingEnd"), qt = Symbol("emittedError"), Ne = Symbol("closed"), Ls = Symbol("read"), De = Symbol("flush"), Ns = Symbol("flushChunk"), z = Symbol("encoding"), Mt = Symbol("decoder"), g = Symbol("flowing"), Qt = Symbol("paused"), Bt = Symbol("resume"), b = Symbol("buffer"), D = Symbol("pipes"), _ = Symbol("bufferLength"), gi = Symbol("bufferPush"), Ae = Symbol("bufferShift"), L = Symbol("objectMode"), w = Symbol("destroyed"), bi = Symbol("error"), _i = Symbol("emitData"), Ds = Symbol("emitEnd"), Oi = Symbol("emitEnd2"), Z = Symbol("async"), Ti = Symbol("abort"), Ie = Symbol("aborted"), Jt = Symbol("signal"), Rt = Symbol("dataListeners"), F = Symbol("discarded"), jt = (s) => Promise.resolve().then(s), Wr = (s) => s(), Gr = (s) => s === "end" || s === "finish" || s === "prefinish", Zr = (s) => s instanceof ArrayBuffer || !!s && typeof s == "object" && s.constructor && s.constructor.name === "ArrayBuffer" && s.byteLength >= 0, Yr = (s) => !Buffer.isBuffer(s) && ArrayBuffer.isView(s), Fe = class {
398
398
  src;
399
399
  dest;
400
400
  opts;
@@ -714,7 +714,7 @@ while (this[Ns](this[Ae]()) && this[b].length);
714
714
  return zr;
715
715
  }
716
716
  };
717
- var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol("_ended"), m = Symbol("_fd"), Ni = Symbol("_finished"), j = Symbol("_flags"), Di = Symbol("_flush"), Ci = Symbol("_handleChunk"), ki = Symbol("_makeBuf"), ie = Symbol("_mode"), Ce = Symbol("_needDrain"), Ut = Symbol("_onerror"), Ht = Symbol("_onopen"), Ai = Symbol("_onread"), Pt = Symbol("_onwrite"), ht = Symbol("_open"), U = Symbol("_path"), nt = Symbol("_pos"), Y = Symbol("_queue"), zt = Symbol("_read"), Ii = Symbol("_readSize"), J = Symbol("_reading"), ee = Symbol("_remain"), Fi = Symbol("_size"), ke = Symbol("_write"), gt = Symbol("_writing"), ve = Symbol("_defaultFlag"), bt = Symbol("_errored"), _t = class extends A {
717
+ var Xr = I.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol("_ended"), m = Symbol("_fd"), Ni = Symbol("_finished"), j = Symbol("_flags"), Di = Symbol("_flush"), Ci = Symbol("_handleChunk"), ki = Symbol("_makeBuf"), ie = Symbol("_mode"), Ce = Symbol("_needDrain"), Ut = Symbol("_onerror"), Ht = Symbol("_onopen"), Ai = Symbol("_onread"), Pt = Symbol("_onwrite"), ht = Symbol("_open"), U = Symbol("_path"), nt = Symbol("_pos"), Y = Symbol("_queue"), zt = Symbol("_read"), Ii = Symbol("_readSize"), J = Symbol("_reading"), ee = Symbol("_remain"), Fi = Symbol("_size"), ke = Symbol("_write"), gt = Symbol("_writing"), ve = Symbol("_defaultFlag"), bt = Symbol("_errored"), _t = class extends A {
718
718
  [bt] = !1;
719
719
  [m];
720
720
  [U];
@@ -740,7 +740,7 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
740
740
  throw new TypeError("this is a readable stream");
741
741
  }
742
742
  [ht]() {
743
- fs.open(this[U], "r", (t, e) => this[Ht](t, e));
743
+ I.open(this[U], "r", (t, e) => this[Ht](t, e));
744
744
  }
745
745
  [Ht](t, e) {
746
746
  t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[zt]());
@@ -753,7 +753,7 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
753
753
  this[J] = !0;
754
754
  let t = this[ki]();
755
755
  if (t.length === 0) return process.nextTick(() => this[Ai](null, 0, t));
756
- fs.read(this[m], t, 0, t.length, null, (e, i, r) => this[Ai](e, i, r));
756
+ I.read(this[m], t, 0, t.length, null, (e, i, r) => this[Ai](e, i, r));
757
757
  }
758
758
  }
759
759
  [Ai](t, e, i) {
@@ -762,7 +762,7 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
762
762
  [H]() {
763
763
  if (this[ot] && typeof this[m] == "number") {
764
764
  let t = this[m];
765
- this[m] = void 0, fs.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
765
+ this[m] = void 0, I.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
766
766
  }
767
767
  }
768
768
  [Ut](t) {
@@ -785,7 +785,7 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
785
785
  [ht]() {
786
786
  let t = !0;
787
787
  try {
788
- this[Ht](null, fs.openSync(this[U], "r")), t = !1;
788
+ this[Ht](null, I.openSync(this[U], "r")), t = !1;
789
789
  } finally {
790
790
  t && this[H]();
791
791
  }
@@ -796,7 +796,7 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
796
796
  if (!this[J]) {
797
797
  this[J] = !0;
798
798
  do {
799
- let e = this[ki](), i = e.length === 0 ? 0 : fs.readSync(this[m], e, 0, e.length, null);
799
+ let e = this[ki](), i = e.length === 0 ? 0 : I.readSync(this[m], e, 0, e.length, null);
800
800
  if (!this[Ci](i, e)) break;
801
801
  } while (!0);
802
802
  this[J] = !1;
@@ -809,7 +809,7 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
809
809
  [H]() {
810
810
  if (this[ot] && typeof this[m] == "number") {
811
811
  let t = this[m];
812
- this[m] = void 0, fs.closeSync(t), this.emit("close");
812
+ this[m] = void 0, I.closeSync(t), this.emit("close");
813
813
  }
814
814
  }
815
815
  }, tt = class extends $r {
@@ -850,7 +850,7 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
850
850
  this[H](), this[gt] = !0, this.emit("error", t);
851
851
  }
852
852
  [ht]() {
853
- fs.open(this[U], this[j], this[ie], (t, e) => this[Ht](t, e));
853
+ I.open(this[U], this[j], this[ie], (t, e) => this[Ht](t, e));
854
854
  }
855
855
  [Ht](t, e) {
856
856
  this[ve] && this[j] === "r+" && t && t.code === "ENOENT" ? (this[j] = "w", this[ht]()) : t ? this[Ut](t) : (this[m] = e, this.emit("open", e), this[gt] || this[Di]());
@@ -862,7 +862,7 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
862
862
  return typeof t == "string" && (t = Buffer.from(t, e)), this[te] ? (this.emit("error", /* @__PURE__ */ new Error("write() after end()")), !1) : this[m] === void 0 || this[gt] || this[Y].length ? (this[Y].push(t), this[Ce] = !0, !1) : (this[gt] = !0, this[ke](t), !0);
863
863
  }
864
864
  [ke](t) {
865
- fs.write(this[m], t, 0, t.length, this[nt], (e, i) => this[Pt](e, i));
865
+ I.write(this[m], t, 0, t.length, this[nt], (e, i) => this[Pt](e, i));
866
866
  }
867
867
  [Pt](t, e) {
868
868
  t ? this[Ut](t) : (this[nt] !== void 0 && typeof e == "number" && (this[nt] += e), this[Y].length ? this[Di]() : (this[gt] = !1, this[te] && !this[Ni] ? (this[Ni] = !0, this[H](), this.emit("finish")) : this[Ce] && (this[Ce] = !1, this.emit("drain"))));
@@ -878,31 +878,31 @@ var Xr = fs.writev, ot = Symbol("_autoClose"), H = Symbol("_close"), te = Symbol
878
878
  [H]() {
879
879
  if (this[ot] && typeof this[m] == "number") {
880
880
  let t = this[m];
881
- this[m] = void 0, fs.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
881
+ this[m] = void 0, I.close(t, (e) => e ? this.emit("error", e) : this.emit("close"));
882
882
  }
883
883
  }
884
884
  }, Wt = class extends tt {
885
885
  [ht]() {
886
886
  let t;
887
887
  if (this[ve] && this[j] === "r+") try {
888
- t = fs.openSync(this[U], this[j], this[ie]);
888
+ t = I.openSync(this[U], this[j], this[ie]);
889
889
  } catch (e) {
890
890
  if (e?.code === "ENOENT") return this[j] = "w", this[ht]();
891
891
  throw e;
892
892
  }
893
- else t = fs.openSync(this[U], this[j], this[ie]);
893
+ else t = I.openSync(this[U], this[j], this[ie]);
894
894
  this[Ht](null, t);
895
895
  }
896
896
  [H]() {
897
897
  if (this[ot] && typeof this[m] == "number") {
898
898
  let t = this[m];
899
- this[m] = void 0, fs.closeSync(t), this.emit("close");
899
+ this[m] = void 0, I.closeSync(t), this.emit("close");
900
900
  }
901
901
  }
902
902
  [ke](t) {
903
903
  let e = !0;
904
904
  try {
905
- this[Pt](null, fs.writeSync(this[m], t, 0, t.length, this[nt])), e = !1;
905
+ this[Pt](null, I.writeSync(this[m], t, 0, t.length, this[nt])), e = !1;
906
906
  } finally {
907
907
  if (e) try {
908
908
  this[H]();
@@ -1185,7 +1185,7 @@ var tn = Buffer$1.concat, Bs = Object.getOwnPropertyDescriptor(Buffer$1, "concat
1185
1185
  }
1186
1186
  }
1187
1187
  };
1188
- var Pe$1 = class extends Be {
1188
+ var Pe = class extends Be {
1189
1189
  #t;
1190
1190
  constructor(t) {
1191
1191
  super(t, "Gzip"), this.#t = t && !!t.portable;
@@ -1862,7 +1862,7 @@ var er = (s, t) => t ? (s = f(s).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s) : f(
1862
1862
  let [o, a] = le(this.path);
1863
1863
  o && typeof a == "string" && (this.path = a, r = o);
1864
1864
  }
1865
- this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path = $s(this.path.replaceAll(/\\/g, "/")), t = t.replaceAll(/\\/g, "/")), this.absolute = f(i.absolute || path$1.resolve(this.cwd, t)), this.path === "" && (this.path = "./"), r && this.warn("TAR_ENTRY_INFO", `stripping ${r} from absolute path`, {
1865
+ this.win32 = !!i.win32 || process.platform === "win32", this.win32 && (this.path = $s(this.path.replaceAll(/\\/g, "/")), t = t.replaceAll(/\\/g, "/")), this.absolute = f(i.absolute || qs.resolve(this.cwd, t)), this.path === "" && (this.path = "./"), r && this.warn("TAR_ENTRY_INFO", `stripping ${r} from absolute path`, {
1866
1866
  entry: this,
1867
1867
  path: r + this.path
1868
1868
  });
@@ -1876,7 +1876,7 @@ var er = (s, t) => t ? (s = f(s).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s) : f(
1876
1876
  return t === "error" && (this.#t = !0), super.emit(t, ...e);
1877
1877
  }
1878
1878
  [es]() {
1879
- fs.lstat(this.absolute, (t, e) => {
1879
+ I.lstat(this.absolute, (t, e) => {
1880
1880
  if (t) return this.emit("error", t);
1881
1881
  this[ii](e);
1882
1882
  });
@@ -1935,7 +1935,7 @@ var er = (s, t) => t ? (s = f(s).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s) : f(
1935
1935
  this.path.slice(-1) !== "/" && (this.path += "/"), this.stat.size = 0, this[ce](), this.end();
1936
1936
  }
1937
1937
  [ts]() {
1938
- fs.readlink(this.absolute, (t, e) => {
1938
+ I.readlink(this.absolute, (t, e) => {
1939
1939
  if (t) return this.emit("error", t);
1940
1940
  this[ss](e);
1941
1941
  });
@@ -1945,7 +1945,7 @@ var er = (s, t) => t ? (s = f(s).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s) : f(
1945
1945
  }
1946
1946
  [tr](t) {
1947
1947
  if (!this.stat) throw new Error("cannot create link entry without stat");
1948
- this.type = "Link", this.linkpath = f(path$1.relative(this.cwd, t)), this.stat.size = 0, this[ce](), this.end();
1948
+ this.type = "Link", this.linkpath = f(qs.relative(this.cwd, t)), this.stat.size = 0, this[ce](), this.end();
1949
1949
  }
1950
1950
  [Js]() {
1951
1951
  if (!this.stat) throw new Error("cannot create file entry without stat");
@@ -1958,7 +1958,7 @@ var er = (s, t) => t ? (s = f(s).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s) : f(
1958
1958
  this[rs]();
1959
1959
  }
1960
1960
  [rs]() {
1961
- fs.open(this.absolute, "r", (t, e) => {
1961
+ I.open(this.absolute, "r", (t, e) => {
1962
1962
  if (t) return this.emit("error", t);
1963
1963
  this[ns](e);
1964
1964
  });
@@ -1973,13 +1973,13 @@ var er = (s, t) => t ? (s = f(s).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s) : f(
1973
1973
  [ei]() {
1974
1974
  let { fd: t, buf: e, offset: i, length: r, pos: n } = this;
1975
1975
  if (t === void 0 || e === void 0) throw new Error("cannot read file without first opening");
1976
- fs.read(t, e, i, r, n, (o, a) => {
1976
+ I.read(t, e, i, r, n, (o, a) => {
1977
1977
  if (o) return this[pt](() => this.emit("error", o));
1978
1978
  this[is](a);
1979
1979
  });
1980
1980
  }
1981
1981
  [pt](t = () => {}) {
1982
- this.fd !== void 0 && fs.close(this.fd, t);
1982
+ this.fd !== void 0 && I.close(this.fd, t);
1983
1983
  }
1984
1984
  [is](t) {
1985
1985
  if (t <= 0 && this.remain > 0) {
@@ -2021,20 +2021,20 @@ var er = (s, t) => t ? (s = f(s).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s) : f(
2021
2021
  }, ri = class extends fe {
2022
2022
  sync = !0;
2023
2023
  [es]() {
2024
- this[ii](fs.lstatSync(this.absolute));
2024
+ this[ii](I.lstatSync(this.absolute));
2025
2025
  }
2026
2026
  [ts]() {
2027
- this[ss](fs.readlinkSync(this.absolute));
2027
+ this[ss](I.readlinkSync(this.absolute));
2028
2028
  }
2029
2029
  [rs]() {
2030
- this[ns](fs.openSync(this.absolute, "r"));
2030
+ this[ns](I.openSync(this.absolute, "r"));
2031
2031
  }
2032
2032
  [ei]() {
2033
2033
  let t = !0;
2034
2034
  try {
2035
2035
  let { fd: e, buf: i, offset: r, length: n, pos: o } = this;
2036
2036
  if (e === void 0 || i === void 0) throw new Error("fd and buf must be set in READ method");
2037
- let a = fs.readSync(e, i, r, n, o);
2037
+ let a = I.readSync(e, i, r, n, o);
2038
2038
  this[is](a), t = !1;
2039
2039
  } finally {
2040
2040
  if (t) try {
@@ -2046,7 +2046,7 @@ var er = (s, t) => t ? (s = f(s).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s) : f(
2046
2046
  t();
2047
2047
  }
2048
2048
  [pt](t = () => {}) {
2049
- this.fd !== void 0 && fs.closeSync(this.fd), t();
2049
+ this.fd !== void 0 && I.closeSync(this.fd), t();
2050
2050
  }
2051
2051
  }, ni = class extends A {
2052
2052
  blockLen = 0;
@@ -2314,7 +2314,7 @@ var mi = class {
2314
2314
  constructor(t, e) {
2315
2315
  this.path = t || "./", this.absolute = e;
2316
2316
  }
2317
- }, ir = Buffer.alloc(1024), ai = Symbol("onStat"), ue = Symbol("ended"), W = Symbol("queue"), me = Symbol("pendingLinks"), Et = Symbol("current"), Ct = Symbol("process"), pe = Symbol("processing"), hi = Symbol("processJob"), G = Symbol("jobs"), hs = Symbol("jobDone"), li = Symbol("addFSEntry"), sr = Symbol("addTarEntry"), cs = Symbol("stat"), fs$1 = Symbol("readdir"), ci = Symbol("onreaddir"), fi = Symbol("pipe"), rr = Symbol("entry"), as = Symbol("entryOpt"), di = Symbol("writeEntryClass"), or = Symbol("write"), ls = Symbol("ondrain"), wt = class extends A {
2317
+ }, ir = Buffer.alloc(1024), ai = Symbol("onStat"), ue = Symbol("ended"), W = Symbol("queue"), me = Symbol("pendingLinks"), Et = Symbol("current"), Ct = Symbol("process"), pe = Symbol("processing"), hi = Symbol("processJob"), G = Symbol("jobs"), hs = Symbol("jobDone"), li = Symbol("addFSEntry"), sr = Symbol("addTarEntry"), cs = Symbol("stat"), fs = Symbol("readdir"), ci = Symbol("onreaddir"), fi = Symbol("pipe"), rr = Symbol("entry"), as = Symbol("entryOpt"), di = Symbol("writeEntryClass"), or = Symbol("write"), ls = Symbol("ondrain"), wt = class extends A {
2318
2318
  sync = !1;
2319
2319
  opt;
2320
2320
  cwd;
@@ -2345,7 +2345,7 @@ var mi = class {
2345
2345
  constructor(t = {}) {
2346
2346
  if (super(), this.opt = t, this.file = t.file || "", this.cwd = t.cwd || process.cwd(), this.maxReadSize = t.maxReadSize, this.preservePaths = !!t.preservePaths, this.strict = !!t.strict, this.noPax = !!t.noPax, this.prefix = f(t.prefix || ""), this.linkCache = t.linkCache || /* @__PURE__ */ new Map(), this.statCache = t.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t.onWriteEntry, this[di] = fe, typeof t.onwarn == "function" && this.on("warn", t.onwarn), this.portable = !!t.portable, t.gzip || t.brotli || t.zstd) {
2347
2347
  if ((t.gzip ? 1 : 0) + (t.brotli ? 1 : 0) + (t.zstd ? 1 : 0) > 1) throw new TypeError("gzip, brotli, zstd are mutually exclusive");
2348
- if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = !0), this.zip = new Pe$1(t.gzip)), t.brotli && (typeof t.brotli != "object" && (t.brotli = {}), this.zip = new He(t.brotli)), t.zstd && (typeof t.zstd != "object" && (t.zstd = {}), this.zip = new Ze(t.zstd)), !this.zip) throw new Error("impossible");
2348
+ if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = !0), this.zip = new Pe(t.gzip)), t.brotli && (typeof t.brotli != "object" && (t.brotli = {}), this.zip = new He(t.brotli)), t.zstd && (typeof t.zstd != "object" && (t.zstd = {}), this.zip = new Ze(t.zstd)), !this.zip) throw new Error("impossible");
2349
2349
  let e = this.zip;
2350
2350
  e.on("data", (i) => super.write(i)), e.on("end", () => super.end()), e.on("drain", () => this[ls]()), this.on("resume", () => e.resume());
2351
2351
  } else this.on("drain", this[ls]);
@@ -2365,7 +2365,7 @@ var mi = class {
2365
2365
  return typeof t == "string" ? this[li](t) : this[sr](t), this.flowing;
2366
2366
  }
2367
2367
  [sr](t) {
2368
- let e = f(path$1.resolve(this.cwd, t.path));
2368
+ let e = f(qs.resolve(this.cwd, t.path));
2369
2369
  if (!this.filter(t.path, t)) t.resume();
2370
2370
  else {
2371
2371
  let i = new mi(t.path, e);
@@ -2374,12 +2374,12 @@ var mi = class {
2374
2374
  this[Ct]();
2375
2375
  }
2376
2376
  [li](t) {
2377
- let e = f(path$1.resolve(this.cwd, t));
2377
+ let e = f(qs.resolve(this.cwd, t));
2378
2378
  this[W].push(new mi(t, e)), this[Ct]();
2379
2379
  }
2380
2380
  [cs](t) {
2381
2381
  t.pending = !0, this[G] += 1;
2382
- fs[this.follow ? "stat" : "lstat"](t.absolute, (i, r) => {
2382
+ I[this.follow ? "stat" : "lstat"](t.absolute, (i, r) => {
2383
2383
  t.pending = !1, this[G] -= 1, i ? this.emit("error", i) : this[ai](t, r);
2384
2384
  });
2385
2385
  }
@@ -2392,8 +2392,8 @@ var mi = class {
2392
2392
  }
2393
2393
  this[Ct]();
2394
2394
  }
2395
- [fs$1](t) {
2396
- t.pending = !0, this[G] += 1, fs.readdir(t.absolute, (e, i) => {
2395
+ [fs](t) {
2396
+ t.pending = !0, this[G] += 1, I.readdir(t.absolute, (e, i) => {
2397
2397
  if (t.pending = !1, this[G] -= 1, e) return this.emit("error", e);
2398
2398
  this[ci](t, i);
2399
2399
  });
@@ -2439,7 +2439,7 @@ var mi = class {
2439
2439
  if (t.stat && !t.ignore) {
2440
2440
  if (!this.noDirRecurse && t.stat.isDirectory() && !t.readdir) {
2441
2441
  let e = this.readdirCache.get(t.absolute);
2442
- if (e ? this[ci](t, e) : this[fs$1](t), !t.readdir) return;
2442
+ if (e ? this[ci](t, e) : this[fs](t), !t.readdir) return;
2443
2443
  }
2444
2444
  if (t.entry = this[rr](t), !t.entry) {
2445
2445
  t.ignore = !0;
@@ -2506,10 +2506,10 @@ var mi = class {
2506
2506
  resume() {}
2507
2507
  [cs](t) {
2508
2508
  let e = this.follow ? "statSync" : "lstatSync";
2509
- this[ai](t, fs[e](t.absolute));
2509
+ this[ai](t, I[e](t.absolute));
2510
2510
  }
2511
- [fs$1](t) {
2512
- this[ci](t, fs.readdirSync(t.absolute));
2511
+ [fs](t) {
2512
+ this[ci](t, I.readdirSync(t.absolute));
2513
2513
  }
2514
2514
  [fi](t) {
2515
2515
  let e = t.entry, i = this.zip;
@@ -2561,7 +2561,7 @@ var Wn = (s, t) => {
2561
2561
  }, Kn = K(Wn, Gn, Zn, Yn, (s, t) => {
2562
2562
  if (!t?.length) throw new TypeError("no paths specified to add to archive");
2563
2563
  });
2564
- var ur = (process.env.__FAKE_PLATFORM__ || process.platform) === "win32", { O_CREAT: mr, O_NOFOLLOW: cr, O_TRUNC: pr, O_WRONLY: Er } = fs.constants, wr = Number(process.env.__FAKE_FS_O_FILENAME__) || fs.constants.UV_FS_O_FILEMAP || 0, $n = ur && !!wr, Xn = 512 * 1024, qn = wr | pr | mr | Er, fr = !ur && typeof cr == "number" ? cr | pr | mr | Er : null, ds = fr !== null ? () => fr : $n ? (s) => s < Xn ? qn : "w" : () => "w";
2564
+ var ur = (process.env.__FAKE_PLATFORM__ || process.platform) === "win32", { O_CREAT: mr, O_NOFOLLOW: cr, O_TRUNC: pr, O_WRONLY: Er } = I.constants, wr = Number(process.env.__FAKE_FS_O_FILENAME__) || I.constants.UV_FS_O_FILEMAP || 0, $n = ur && !!wr, Xn = 512 * 1024, qn = wr | pr | mr | Er, fr = !ur && typeof cr == "number" ? cr | pr | mr | Er : null, ds = fr !== null ? () => fr : $n ? (s) => s < Xn ? qn : "w" : () => "w";
2565
2565
  var us = (s, t, e) => {
2566
2566
  try {
2567
2567
  return Kt.lchownSync(s, t, e);
@@ -3542,8 +3542,8 @@ var SystemBackupService = class {
3542
3542
  return value;
3543
3543
  }
3544
3544
  async statLocation(loc) {
3545
- const abs = path$2.isAbsolute(loc) ? loc : path$2.join(this.dataDir, loc);
3546
- if (!fs$2.existsSync(abs)) return {
3545
+ const abs = path$1.isAbsolute(loc) ? loc : path$1.join(this.dataDir, loc);
3546
+ if (!fs$1.existsSync(abs)) return {
3547
3547
  name: loc,
3548
3548
  sizeBytes: 0,
3549
3549
  fileCount: 0,
@@ -3587,19 +3587,19 @@ var SystemBackupService = class {
3587
3587
  const requested = opts.locations ?? DEFAULT_BACKUP_LOCATIONS;
3588
3588
  const present = [];
3589
3589
  for (const loc of requested) {
3590
- const abs = path$2.isAbsolute(loc) ? loc : path$2.join(this.dataDir, loc);
3591
- if (fs$2.existsSync(abs)) present.push(loc);
3590
+ const abs = path$1.isAbsolute(loc) ? loc : path$1.join(this.dataDir, loc);
3591
+ if (fs$1.existsSync(abs)) present.push(loc);
3592
3592
  else this.logger.debug("createArchive: skipping missing location", { meta: { location: loc } });
3593
3593
  }
3594
3594
  if (present.length === 0) throw new Error(`createArchive: no locations from {${requested.join(", ")}} exist under ${this.dataDir}`);
3595
- fs$2.mkdirSync(path$2.dirname(opts.archivePath), { recursive: true });
3595
+ fs$1.mkdirSync(path$1.dirname(opts.archivePath), { recursive: true });
3596
3596
  const walked = [];
3597
3597
  for (const loc of present) {
3598
3598
  throwIfCancelled(opts.signal);
3599
- const abs = path$2.join(this.dataDir, loc);
3599
+ const abs = path$1.join(this.dataDir, loc);
3600
3600
  const stat = await fsp.stat(abs);
3601
3601
  if (stat.isDirectory()) for (const e of await walkAbs(abs, this.dataDir, this.exclusionPredicate(), opts.signal)) walked.push(e);
3602
- else if (!isExcludedFromBackup(path$2.relative(this.dataDir, abs))) walked.push(toArchiveEntry(abs, this.dataDir, stat));
3602
+ else if (!isExcludedFromBackup(path$1.relative(this.dataDir, abs))) walked.push(toArchiveEntry(abs, this.dataDir, stat));
3603
3603
  }
3604
3604
  const walkedPaths = new Set(walked.map((e) => e.path));
3605
3605
  const owned = walked.some((e) => isSqlitePath(e.path)) ? await this.ownedDatabasesInScope(opts.owner, walkedPaths) : /* @__PURE__ */ new Set();
@@ -3665,7 +3665,7 @@ var SystemBackupService = class {
3665
3665
  async writeArchive(opts) {
3666
3666
  const { present, manifest } = opts;
3667
3667
  const manifestStagePath = `${opts.archivePath}.${process.pid}.manifest.json`;
3668
- fs$2.writeFileSync(manifestStagePath, JSON.stringify(manifest, null, 2), "utf-8");
3668
+ fs$1.writeFileSync(manifestStagePath, JSON.stringify(manifest, null, 2), "utf-8");
3669
3669
  this.logger.info("createArchive: tarring", { meta: {
3670
3670
  archivePath: opts.archivePath,
3671
3671
  locations: [...present],
@@ -3673,10 +3673,10 @@ var SystemBackupService = class {
3673
3673
  totalBytes: manifest.totalBytes
3674
3674
  } });
3675
3675
  try {
3676
- const stagedInDataDir = path$2.join(this.dataDir, ARCHIVE_MANIFEST_NAME);
3677
- fs$2.copyFileSync(manifestStagePath, stagedInDataDir);
3678
- const stagingRel = path$2.relative(this.dataDir, path$2.dirname(opts.archivePath));
3679
- const excludePrefix = stagingRel && !stagingRel.startsWith("..") && !path$2.isAbsolute(stagingRel) ? stagingRel : null;
3676
+ const stagedInDataDir = path$1.join(this.dataDir, ARCHIVE_MANIFEST_NAME);
3677
+ fs$1.copyFileSync(manifestStagePath, stagedInDataDir);
3678
+ const stagingRel = path$1.relative(this.dataDir, path$1.dirname(opts.archivePath));
3679
+ const excludePrefix = stagingRel && !stagingRel.startsWith("..") && !path$1.isAbsolute(stagingRel) ? stagingRel : null;
3680
3680
  try {
3681
3681
  const pack = Kn({
3682
3682
  gzip: true,
@@ -3690,29 +3690,29 @@ var SystemBackupService = class {
3690
3690
  return norm !== excludePrefix && !norm.startsWith(`${excludePrefix}/`);
3691
3691
  }
3692
3692
  }, [ARCHIVE_MANIFEST_NAME, ...present]);
3693
- const sink = fs$2.createWriteStream(opts.archivePath, { mode: 384 });
3693
+ const sink = fs$1.createWriteStream(opts.archivePath, { mode: 384 });
3694
3694
  try {
3695
3695
  const streamOpts = opts.signal ? { signal: opts.signal } : {};
3696
3696
  if (opts.encryptTo !== void 0) await pipeline(pack, createBackupEncryptStream(opts.encryptTo), byteCountingPassthrough(opts.onArchiveBytes), sink, streamOpts);
3697
3697
  else await pipeline(pack, byteCountingPassthrough(opts.onArchiveBytes), sink, streamOpts);
3698
3698
  } catch (err) {
3699
3699
  try {
3700
- fs$2.rmSync(opts.archivePath, { force: true });
3700
+ fs$1.rmSync(opts.archivePath, { force: true });
3701
3701
  } catch {}
3702
3702
  if (opts.signal?.aborted) throw new BackupCancelledError();
3703
3703
  throw err;
3704
3704
  }
3705
3705
  } finally {
3706
3706
  try {
3707
- fs$2.rmSync(stagedInDataDir, { force: true });
3707
+ fs$1.rmSync(stagedInDataDir, { force: true });
3708
3708
  } catch {}
3709
3709
  }
3710
3710
  } finally {
3711
3711
  try {
3712
- fs$2.rmSync(manifestStagePath, { force: true });
3712
+ fs$1.rmSync(manifestStagePath, { force: true });
3713
3713
  } catch {}
3714
3714
  }
3715
- const sizeBytes = fs$2.statSync(opts.archivePath).size;
3715
+ const sizeBytes = fs$1.statSync(opts.archivePath).size;
3716
3716
  return {
3717
3717
  archivePath: opts.archivePath,
3718
3718
  includedLocations: [...present],
@@ -3725,7 +3725,7 @@ var SystemBackupService = class {
3725
3725
  * one entry we care about, then aborts.
3726
3726
  */
3727
3727
  async readArchiveManifest(archivePath) {
3728
- if (!fs$2.existsSync(archivePath)) throw new Error(`readArchiveManifest: ${archivePath} does not exist`);
3728
+ if (!fs$1.existsSync(archivePath)) throw new Error(`readArchiveManifest: ${archivePath} does not exist`);
3729
3729
  return new Promise((resolve, reject) => {
3730
3730
  const chunks = [];
3731
3731
  let found = false;
@@ -3757,7 +3757,7 @@ var SystemBackupService = class {
3757
3757
  reject(err);
3758
3758
  }
3759
3759
  });
3760
- const reader = fs$2.createReadStream(archivePath);
3760
+ const reader = fs$1.createReadStream(archivePath);
3761
3761
  reader.on("error", (err) => {
3762
3762
  if (!resolved) {
3763
3763
  resolved = true;
@@ -3775,7 +3775,7 @@ var SystemBackupService = class {
3775
3775
  * restart.
3776
3776
  */
3777
3777
  scheduleRestoreMarker(opts) {
3778
- if (!fs$2.existsSync(opts.archivePath)) throw new Error(`scheduleRestoreMarker: ${opts.archivePath} missing`);
3778
+ if (!fs$1.existsSync(opts.archivePath)) throw new Error(`scheduleRestoreMarker: ${opts.archivePath} missing`);
3779
3779
  const markerPath = this.getRestoreMarkerPath();
3780
3780
  const marker = {
3781
3781
  archivePath: opts.archivePath,
@@ -3783,16 +3783,16 @@ var SystemBackupService = class {
3783
3783
  source: opts.source,
3784
3784
  ...opts.locations ? { locations: [...opts.locations] } : {}
3785
3785
  };
3786
- fs$2.mkdirSync(path$2.dirname(markerPath), { recursive: true });
3787
- fs$2.writeFileSync(markerPath, JSON.stringify(marker, null, 2), { mode: 384 });
3786
+ fs$1.mkdirSync(path$1.dirname(markerPath), { recursive: true });
3787
+ fs$1.writeFileSync(markerPath, JSON.stringify(marker, null, 2), { mode: 384 });
3788
3788
  return markerPath;
3789
3789
  }
3790
3790
  /** Read the pending-restore marker if one is present. */
3791
3791
  readPendingMarker() {
3792
3792
  const markerPath = this.getRestoreMarkerPath();
3793
- if (!fs$2.existsSync(markerPath)) return null;
3793
+ if (!fs$1.existsSync(markerPath)) return null;
3794
3794
  try {
3795
- const raw = fs$2.readFileSync(markerPath, "utf-8");
3795
+ const raw = fs$1.readFileSync(markerPath, "utf-8");
3796
3796
  const parsed = JSON.parse(raw);
3797
3797
  if (typeof parsed === "object" && parsed != null && typeof parsed.archivePath === "string") return parsed;
3798
3798
  } catch (err) {
@@ -3803,7 +3803,7 @@ var SystemBackupService = class {
3803
3803
  /** Drop the marker after a successful boot-time restore. */
3804
3804
  clearPendingMarker() {
3805
3805
  const markerPath = this.getRestoreMarkerPath();
3806
- if (fs$2.existsSync(markerPath)) fs$2.rmSync(markerPath, { force: true });
3806
+ if (fs$1.existsSync(markerPath)) fs$1.rmSync(markerPath, { force: true });
3807
3807
  }
3808
3808
  /**
3809
3809
  * The databases the owner declares, archive-relative, that this walk found.
@@ -3845,7 +3845,7 @@ var SystemBackupService = class {
3845
3845
  */
3846
3846
  async takeOwnerSnapshot(owner, owned, signal) {
3847
3847
  const removeOwnedSnapshots = async () => {
3848
- for (const db of owned) await this.removeSnapshot(path$2.join(this.dataDir, db + DATABASE_SNAPSHOT_SUFFIX));
3848
+ for (const db of owned) await this.removeSnapshot(path$1.join(this.dataDir, db + DATABASE_SNAPSHOT_SUFFIX));
3849
3849
  };
3850
3850
  let result;
3851
3851
  try {
@@ -3876,7 +3876,7 @@ var SystemBackupService = class {
3876
3876
  if (snapshotPath !== livePath + ".backup-snapshot") throw new BackupSnapshotRefusedError(`snapshot ${snapshotPath} does not sit beside the database ${livePath} it copies`);
3877
3877
  const uncovered = [...owned].filter((db) => db !== livePath);
3878
3878
  if (!owned.has(livePath) || uncovered.length > 0) throw new BackupSnapshotRefusedError(`snapshot copies ${livePath}, but the owned database(s) in this archive are ${[...owned].join(", ")}`);
3879
- const absPath = path$2.join(this.dataDir, snapshotPath);
3879
+ const absPath = path$1.join(this.dataDir, snapshotPath);
3880
3880
  const stat = await fsp.stat(absPath);
3881
3881
  this.logger.info("createArchive: carrying the owner snapshot in place of the live database", { meta: {
3882
3882
  database: livePath,
@@ -3912,12 +3912,12 @@ var SystemBackupService = class {
3912
3912
  }
3913
3913
  /** `abs` relative to the data root, or null when it lies outside it. */
3914
3914
  archiveRelative(abs) {
3915
- const rel = path$2.relative(path$2.resolve(this.dataDir), path$2.resolve(abs));
3916
- if (rel.length === 0 || rel.startsWith("..") || path$2.isAbsolute(rel)) return null;
3915
+ const rel = path$1.relative(path$1.resolve(this.dataDir), path$1.resolve(abs));
3916
+ if (rel.length === 0 || rel.startsWith("..") || path$1.isAbsolute(rel)) return null;
3917
3917
  return normalizeArchivePath(rel);
3918
3918
  }
3919
3919
  getRestoreMarkerPath() {
3920
- return path$2.join(this.dataDir, ".pending-restore.json");
3920
+ return path$1.join(this.dataDir, ".pending-restore.json");
3921
3921
  }
3922
3922
  /**
3923
3923
  * Absolute-path form of {@link isExcludedFromBackup}, anchored on
@@ -3925,7 +3925,7 @@ var SystemBackupService = class {
3925
3925
  * stats so both agree with the tar filter about what a backup contains.
3926
3926
  */
3927
3927
  exclusionPredicate() {
3928
- return (abs) => isExcludedFromBackup(path$2.relative(this.dataDir, abs));
3928
+ return (abs) => isExcludedFromBackup(path$1.relative(this.dataDir, abs));
3929
3929
  }
3930
3930
  };
3931
3931
  /**
@@ -3956,7 +3956,7 @@ async function walkRec(abs, dataDir, out, shouldSkip, signal) {
3956
3956
  } catch {
3957
3957
  return;
3958
3958
  }
3959
- for (const child of children) await walkRec(path$2.join(abs, child), dataDir, out, shouldSkip, signal);
3959
+ for (const child of children) await walkRec(path$1.join(abs, child), dataDir, out, shouldSkip, signal);
3960
3960
  }
3961
3961
  }
3962
3962
  /**
@@ -3973,10 +3973,10 @@ function byteCountingPassthrough(onBytes) {
3973
3973
  } });
3974
3974
  }
3975
3975
  function toArchiveEntry(abs, dataDir, stat) {
3976
- const rel = path$2.relative(dataDir, abs).replace(/\\/g, "/");
3976
+ const rel = path$1.relative(dataDir, abs).replace(/\\/g, "/");
3977
3977
  const kind = stat.isDirectory() ? "dir" : stat.isSymbolicLink() ? "symlink" : "file";
3978
3978
  return {
3979
- path: rel || path$2.basename(abs),
3979
+ path: rel || path$1.basename(abs),
3980
3980
  kind,
3981
3981
  sizeBytes: kind === "file" ? stat.size : 0,
3982
3982
  mtime: stat.mtimeMs
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-Cek0wNdY.js");
2
- const require_dist = require("./dist-XTkzsnz-.js");
2
+ const require_dist = require("./dist-CME5sVBJ.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  let buffer = require("buffer");
5
5
  let node_fs_promises = require("node:fs/promises");
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-XTkzsnz-.js");
1
+ const require_dist = require("./dist-CME5sVBJ.js");
2
2
  //#region src/builtins/sqlite-storage/retired-settings-keys.ts
3
3
  /**
4
4
  * Is THIS node the one whose settings store is the cluster's authority?
@@ -1,4 +1,4 @@
1
- import { yr as asJsonObject } from "./dist-byg8IP4Q.mjs";
1
+ import { br as asJsonObject } from "./dist-0P1gm4Gd.mjs";
2
2
  //#region src/builtins/sqlite-storage/retired-settings-keys.ts
3
3
  /**
4
4
  * Is THIS node the one whose settings store is the cluster's authority?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/system",
3
- "version": "1.2.392",
3
+ "version": "1.2.394",
4
4
  "description": "Core addon for CamStack — builtins, pipeline, process management, auth, logging, events",
5
5
  "keywords": [
6
6
  "camstack",