@camstack/server 1.2.913 → 1.2.915

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 (87) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/package.json +8 -11
  3. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  4. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  5. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  6. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  7. package/system/dist/builtins/alerts/alerts.addon.js +1 -1
  8. package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
  9. package/system/dist/builtins/autotrack/index.js +1 -1
  10. package/system/dist/builtins/autotrack/index.mjs +1 -1
  11. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  12. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  13. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  14. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  15. package/system/dist/builtins/camera-grid/index.js +1 -1
  16. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  17. package/system/dist/builtins/composer/composer.addon.js +4 -4
  18. package/system/dist/builtins/composer/composer.addon.mjs +4 -4
  19. package/system/dist/builtins/console-logging/index.js +1 -1
  20. package/system/dist/builtins/console-logging/index.mjs +1 -1
  21. package/system/dist/builtins/core-blocks/core-blocks.addon.js +4 -4
  22. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +4 -4
  23. package/system/dist/builtins/device-history/device-history.addon.js +2 -2
  24. package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
  25. package/system/dist/builtins/device-manager/device-manager.addon.js +2 -2
  26. package/system/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
  27. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  28. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  29. package/system/dist/builtins/keychain/index.js +4 -4
  30. package/system/dist/builtins/keychain/index.mjs +4 -4
  31. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  32. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  33. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  34. package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  35. package/system/dist/builtins/local-network/local-network.addon.js +3 -3
  36. package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
  37. package/system/dist/builtins/loki-logging/index.js +1 -1
  38. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  39. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  40. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  41. package/system/dist/builtins/platform-probe/index.js +1 -1
  42. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  43. package/system/dist/builtins/record-entries/index.js +1 -1
  44. package/system/dist/builtins/record-entries/index.mjs +1 -1
  45. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  46. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  47. package/system/dist/builtins/snapshot/index.js +1 -1
  48. package/system/dist/builtins/snapshot/index.mjs +1 -1
  49. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  50. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  51. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  52. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  53. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
  54. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
  55. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  56. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  57. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  58. package/system/dist/builtins/system-config/system-config.addon.mjs +284 -284
  59. package/system/dist/builtins/winston-logging/index.js +1 -1
  60. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  61. package/system/dist/{capture-engine-Bvwn1cFX.mjs → capture-engine-DqV_6SjI.mjs} +1 -1
  62. package/system/dist/{capture-engine-DpinMBLT.js → capture-engine-dVNf2nq-.js} +1 -1
  63. package/system/dist/{composition-sources-BmRKJZn2.js → composition-sources-BQcauNTH.js} +1 -1
  64. package/system/dist/{composition-sources-B-bcDx5l.mjs → composition-sources-DNxi-fAK.mjs} +1 -1
  65. package/system/dist/{constants-dXTDibrR.mjs → constants-DtDAChDX.mjs} +1 -1
  66. package/system/dist/{constants-D0RAHXo_.js → constants-H2BU7bKi.js} +1 -1
  67. package/system/dist/{device-ca-CN_2AqQb.mjs → device-ca-C82s8Xw9.mjs} +1 -1
  68. package/system/dist/{device-ca-yBp2tHgr.js → device-ca-QMMiXnOk.js} +1 -1
  69. package/system/dist/{dist-BPH9fDKg.mjs → dist-CLuvQ9u4.mjs} +130 -3
  70. package/system/dist/{dist-B6GQhRc0.js → dist-DOO4m7fK.js} +130 -3
  71. package/system/dist/file-host-worker.js +1 -1
  72. package/system/dist/file-host-worker.mjs +1 -1
  73. package/system/dist/{hub-identity-C_rPH1LC.js → hub-identity-B1vdrP8l.js} +1 -1
  74. package/system/dist/{hub-identity-Cwx54dg7.mjs → hub-identity-Dau33k9T.mjs} +1 -1
  75. package/system/dist/{hub-mdns-ciao-DoLDlxEs.js → hub-mdns-ciao-Nso1_VSE.js} +2 -2
  76. package/system/dist/{hub-mdns-ciao-ty6dOv8P.mjs → hub-mdns-ciao-RwTNfZHU.mjs} +2 -2
  77. package/system/dist/index.js +8 -8
  78. package/system/dist/index.mjs +8 -8
  79. package/system/dist/{legacy-integration-rows-door-BWgJZjTa.mjs → legacy-integration-rows-door-C9-7B5gC.mjs} +1 -1
  80. package/system/dist/{legacy-integration-rows-door-D15lR2un.js → legacy-integration-rows-door-Dxd0ZeQK.js} +1 -1
  81. package/system/dist/{rename-composition-block-LiTmjeRn.mjs → rename-composition-block-MfJE4XCv.mjs} +1 -1
  82. package/system/dist/{rename-composition-block-D-demmQQ.js → rename-composition-block-YCjuAytZ.js} +1 -1
  83. package/system/dist/{restore-archive-Bw4nQouq.js → restore-archive-BbZAaTDV.js} +1 -1
  84. package/system/dist/{restore-archive-CSpyu4JP.mjs → restore-archive-BuQCaCvL.mjs} +82 -82
  85. package/system/dist/{wal-maintenance-BywDavI2.mjs → wal-maintenance-BUD6zNQ1.mjs} +0 -0
  86. package/system/dist/{wal-maintenance-CnHO7auI.js → wal-maintenance-CSOuhN9-.js} +0 -0
  87. package/system/package.json +1 -1
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  const require_chunk = require("../../chunk-Cek0wNdY.js");
6
- const require_dist = require("../../dist-B6GQhRc0.js");
6
+ const require_dist = require("../../dist-DOO4m7fK.js");
7
7
  const require_formatter = require("../../formatter-xbxeV4GD.js");
8
8
  const require_log_file_read_protocol = require("../../log-file-read-protocol-DSV_vQRb.js");
9
9
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import { Cc as BaseAddon, Sl as defineAddonMigrations, Za as preconditionOf, pa as logDestinationCapability } from "../../dist-BPH9fDKg.mjs";
1
+ import { Cc as BaseAddon, Sl as defineAddonMigrations, Za as preconditionOf, pa as logDestinationCapability } from "../../dist-CLuvQ9u4.mjs";
2
2
  import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
3
3
  import { a as LogFileIndexStore, i as serveRead, n as isFromReader, t as CancelBook } from "../../log-file-read-protocol-hTaAsYlX.mjs";
4
4
  import { createRequire } from "node:module";
@@ -1,4 +1,4 @@
1
- import { Eu as DeviceType, Nc as HISTORY_DEFAULT_MIN_INTERVAL_MS, Pl as historyItemFieldPath } from "./dist-BPH9fDKg.mjs";
1
+ import { Eu as DeviceType, Nc as HISTORY_DEFAULT_MIN_INTERVAL_MS, Pl as historyItemFieldPath } from "./dist-CLuvQ9u4.mjs";
2
2
  //#region src/builtins/shared/device-state-changed.ts
3
3
  /** Structural narrowing helper for untrusted bus payloads. */
4
4
  function isRecord$2(value) {
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-B6GQhRc0.js");
1
+ const require_dist = require("./dist-DOO4m7fK.js");
2
2
  //#region src/builtins/shared/device-state-changed.ts
3
3
  /** Structural narrowing helper for untrusted bus payloads. */
4
4
  function isRecord$2(value) {
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-B6GQhRc0.js");
1
+ const require_dist = require("./dist-DOO4m7fK.js");
2
2
  //#region src/builtins/core-blocks/composition-sources.ts
3
3
  /**
4
4
  * Describe what a composition reads and writes for SAVE-time validation
@@ -1,4 +1,4 @@
1
- import { Du as errMsg, rc as compositionSourceKey } from "./dist-BPH9fDKg.mjs";
1
+ import { Du as errMsg, rc as compositionSourceKey } from "./dist-CLuvQ9u4.mjs";
2
2
  //#region src/builtins/core-blocks/composition-sources.ts
3
3
  /**
4
4
  * Describe what a composition reads and writes for SAVE-time validation
@@ -1,4 +1,4 @@
1
- import { pl as buildSecretRef } from "./dist-BPH9fDKg.mjs";
1
+ import { pl as buildSecretRef } from "./dist-CLuvQ9u4.mjs";
2
2
  /** `secret://system/global/meshCaKey` — EC P-256 PKCS#8 PEM of the hub mesh CA. */
3
3
  var MESH_CA_KEY_REF = buildSecretRef({
4
4
  owner: "system",
@@ -1,5 +1,5 @@
1
1
  /** `secret://system/global/meshCaKey` — EC P-256 PKCS#8 PEM of the hub mesh CA. */
2
- var MESH_CA_KEY_REF = require("./dist-B6GQhRc0.js").buildSecretRef({
2
+ var MESH_CA_KEY_REF = require("./dist-DOO4m7fK.js").buildSecretRef({
3
3
  owner: "system",
4
4
  scope: { kind: "global" },
5
5
  fieldPath: "meshCaKey"
@@ -1,4 +1,4 @@
1
- import { K as DEVICE_SAN_CREDENTIAL_PREFIX, pl as buildSecretRef, q as DEVICE_SAN_USER_PREFIX } from "./dist-BPH9fDKg.mjs";
1
+ import { K as DEVICE_SAN_CREDENTIAL_PREFIX, pl as buildSecretRef, q as DEVICE_SAN_USER_PREFIX } from "./dist-CLuvQ9u4.mjs";
2
2
  import { C as backdatedNotBefore, S as withUtcTimeEncoding, a as KeyUsageFlags, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension } from "./x509.es-BRiJgOvu.mjs";
3
3
  import { X509Certificate, createPublicKey, randomBytes, verify, webcrypto } from "node:crypto";
4
4
  //#region src/auth/jwt-signing-key.ts
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-B6GQhRc0.js");
1
+ const require_dist = require("./dist-DOO4m7fK.js");
2
2
  const require_x509_es = require("./x509.es-WtnRNyYS.js");
3
3
  let node_crypto = require("node:crypto");
4
4
  //#region src/auth/jwt-signing-key.ts
@@ -1315,7 +1315,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1315
1315
  */
1316
1316
  var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
1317
1317
  //#endregion
1318
- //#region ../types/dist/runtime-capabilities-ql3VRzQu.mjs
1318
+ //#region ../types/dist/runtime-capabilities-C0PIVXwH.mjs
1319
1319
  /**
1320
1320
  * The audio chunk plane's byte format, and the ONE expansion from a coded
1321
1321
  * window to float samples (D455).
@@ -16357,6 +16357,45 @@ var CAP_VOCABULARY_BY_NAME = {
16357
16357
  }
16358
16358
  ],
16359
16359
  icon: "battery-charging"
16360
+ },
16361
+ {
16362
+ kind: "enum",
16363
+ field: "chargeState",
16364
+ label: {
16365
+ en: "Charge state",
16366
+ it: "Stato di carica"
16367
+ },
16368
+ values: [
16369
+ {
16370
+ value: "charging",
16371
+ label: {
16372
+ en: "Charging",
16373
+ it: "In carica"
16374
+ }
16375
+ },
16376
+ {
16377
+ value: "full",
16378
+ label: {
16379
+ en: "Full",
16380
+ it: "Carica completa"
16381
+ }
16382
+ },
16383
+ {
16384
+ value: "idle",
16385
+ label: {
16386
+ en: "Not charging",
16387
+ it: "Non in carica"
16388
+ }
16389
+ },
16390
+ {
16391
+ value: "unknown",
16392
+ label: {
16393
+ en: "Unknown",
16394
+ it: "Sconosciuto"
16395
+ }
16396
+ }
16397
+ ],
16398
+ icon: "battery-charging"
16360
16399
  }
16361
16400
  ],
16362
16401
  events: { onStatusChanged: { notOperatorFacing: "the level / sleeping / charging state triggers each read one field of this change" } },
@@ -17862,6 +17901,24 @@ Object.freeze({
17862
17901
  "path": "voltage",
17863
17902
  "valueType": "number"
17864
17903
  },
17904
+ {
17905
+ "path": "chargeState",
17906
+ "valueType": "enum",
17907
+ "enumValues": [
17908
+ "charging",
17909
+ "full",
17910
+ "idle",
17911
+ "unknown"
17912
+ ]
17913
+ },
17914
+ {
17915
+ "path": "currentMa",
17916
+ "valueType": "number"
17917
+ },
17918
+ {
17919
+ "path": "temperatureC",
17920
+ "valueType": "number"
17921
+ },
17865
17922
  {
17866
17923
  "path": "lastContactAt",
17867
17924
  "valueType": "number"
@@ -59960,6 +60017,31 @@ var BatteryStatusSchema = z.object({
59960
60017
  */
59961
60018
  voltage: z.number().nullable().optional().meta(readingMeta("voltage", { label: "Voltage" })),
59962
60019
  /**
60020
+ * What the CELL is doing, as opposed to {@link charging} (what it is powered
60021
+ * from). `'charging'` takes current, `'full'` is connected and topped up,
60022
+ * `'idle'` is a stopped cell the firmware reported as such (running on the
60023
+ * battery, or an adapter that is not feeding it).
60024
+ *
60025
+ * Absent or `'unknown'` is NOT an answer: the provider has not read the
60026
+ * charge fields. It must never be coerced to `'idle'` (D315) — a camera
60027
+ * nobody reached would be drawn "not charging". Consumers SKIP it.
60028
+ */
60029
+ chargeState: z.enum([
60030
+ "charging",
60031
+ "full",
60032
+ "idle",
60033
+ "unknown"
60034
+ ]).optional().meta({ label: "Charge state" }),
60035
+ /**
60036
+ * Battery current in milliamperes, as the firmware reports it (sign is the
60037
+ * firmware's). `null`/absent = not reported. Stored in mA, not the quantity
60038
+ * base (A), so it carries no reading quantity: a quantity would make the UI
60039
+ * convert and print it as amperes.
60040
+ */
60041
+ currentMa: z.number().nullable().optional().meta(readingMeta("none", { label: "Current (mA)" })),
60042
+ /** Battery temperature in °C. `null`/absent = not reported. */
60043
+ temperatureC: z.number().nullable().optional().meta(readingMeta("temperature", { label: "Temperature" })),
60044
+ /**
59963
60045
  * Ms epoch of the last time the device PROVED it was reachable — a
59964
60046
  * completed firmware round-trip, an observed wake, or an inbound push
59965
60047
  * (firmware event, email). `0`/absent = never since this slice was born.
@@ -60119,6 +60201,10 @@ onStatusChanged: {
60119
60201
  voltage: {
60120
60202
  kind: "gauge",
60121
60203
  unit: "V"
60204
+ },
60205
+ temperatureC: {
60206
+ kind: "gauge",
60207
+ unit: "°C"
60122
60208
  }
60123
60209
  } },
60124
60210
  customize: batteryCustomize,
@@ -60171,6 +60257,30 @@ onStatusChanged: {
60171
60257
  }
60172
60258
  ],
60173
60259
  icon: "battery-charging"
60260
+ },
60261
+ {
60262
+ kind: "enum",
60263
+ field: "chargeState",
60264
+ label: t("Charge state", "Stato di carica"),
60265
+ values: [
60266
+ {
60267
+ value: "charging",
60268
+ label: t("Charging", "In carica")
60269
+ },
60270
+ {
60271
+ value: "full",
60272
+ label: t("Full", "Carica completa")
60273
+ },
60274
+ {
60275
+ value: "idle",
60276
+ label: t("Not charging", "Non in carica")
60277
+ },
60278
+ {
60279
+ value: "unknown",
60280
+ label: t("Unknown", "Sconosciuto")
60281
+ }
60282
+ ],
60283
+ icon: "battery-charging"
60174
60284
  }
60175
60285
  ],
60176
60286
  extraEvents: [{
@@ -66838,7 +66948,8 @@ var CAP_RUNTIME_FIELD_UNITS = {
66838
66948
  "ambient-light-sensor": { illuminance: "lx" },
66839
66949
  "battery": {
66840
66950
  level: "%",
66841
- voltage: "V"
66951
+ voltage: "V",
66952
+ temperatureC: "°C"
66842
66953
  },
66843
66954
  "humidity-sensor": { humidity: "%" },
66844
66955
  "power-meter": {
@@ -67864,7 +67975,7 @@ function groupTemplate(id) {
67864
67975
  }
67865
67976
  /**
67866
67977
  * Cap history catalog, projected from every `*.cap.ts` `history` block.
67867
- * 47 caps with series (130 series), 40 caps answered `'none'`.
67978
+ * 47 caps with series (132 series), 40 caps answered `'none'`.
67868
67979
  * Field keys are `runtimeState` paths (`a.b` into fixed objects only).
67869
67980
  */
67870
67981
  var HISTORY_CATALOG = {
@@ -67926,6 +68037,10 @@ var HISTORY_CATALOG = {
67926
68037
  "voltage": {
67927
68038
  kind: "gauge",
67928
68039
  unit: "V"
68040
+ },
68041
+ "temperatureC": {
68042
+ kind: "gauge",
68043
+ unit: "°C"
67929
68044
  }
67930
68045
  },
67931
68046
  "binary": { "on": { kind: "boolean" } },
@@ -68080,6 +68195,12 @@ var HISTORY_CATALOG = {
68080
68195
  deadband: .05,
68081
68196
  displayName: "Stored energy"
68082
68197
  },
68198
+ "storage.capacityKwh": {
68199
+ kind: "gauge",
68200
+ unit: "kWh",
68201
+ deadband: .1,
68202
+ displayName: "Storage capacity"
68203
+ },
68083
68204
  "storage.powerW": {
68084
68205
  group: "power-flow",
68085
68206
  kind: "gauge",
@@ -77761,6 +77882,12 @@ var energySystemCapability = {
77761
77882
  deadband: .05,
77762
77883
  displayName: "Stored energy"
77763
77884
  },
77885
+ "storage.capacityKwh": {
77886
+ kind: "gauge",
77887
+ unit: "kWh",
77888
+ deadband: .1,
77889
+ displayName: "Storage capacity"
77890
+ },
77764
77891
  "storage.powerW": {
77765
77892
  group: "power-flow",
77766
77893
  kind: "gauge",
@@ -1315,7 +1315,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1315
1315
  */
1316
1316
  var COMPOSED_DEVICE_STABLE_ID_PREFIX = "composed-";
1317
1317
  //#endregion
1318
- //#region ../types/dist/runtime-capabilities-ql3VRzQu.mjs
1318
+ //#region ../types/dist/runtime-capabilities-C0PIVXwH.mjs
1319
1319
  /**
1320
1320
  * The audio chunk plane's byte format, and the ONE expansion from a coded
1321
1321
  * window to float samples (D455).
@@ -16357,6 +16357,45 @@ var CAP_VOCABULARY_BY_NAME = {
16357
16357
  }
16358
16358
  ],
16359
16359
  icon: "battery-charging"
16360
+ },
16361
+ {
16362
+ kind: "enum",
16363
+ field: "chargeState",
16364
+ label: {
16365
+ en: "Charge state",
16366
+ it: "Stato di carica"
16367
+ },
16368
+ values: [
16369
+ {
16370
+ value: "charging",
16371
+ label: {
16372
+ en: "Charging",
16373
+ it: "In carica"
16374
+ }
16375
+ },
16376
+ {
16377
+ value: "full",
16378
+ label: {
16379
+ en: "Full",
16380
+ it: "Carica completa"
16381
+ }
16382
+ },
16383
+ {
16384
+ value: "idle",
16385
+ label: {
16386
+ en: "Not charging",
16387
+ it: "Non in carica"
16388
+ }
16389
+ },
16390
+ {
16391
+ value: "unknown",
16392
+ label: {
16393
+ en: "Unknown",
16394
+ it: "Sconosciuto"
16395
+ }
16396
+ }
16397
+ ],
16398
+ icon: "battery-charging"
16360
16399
  }
16361
16400
  ],
16362
16401
  events: { onStatusChanged: { notOperatorFacing: "the level / sleeping / charging state triggers each read one field of this change" } },
@@ -17862,6 +17901,24 @@ Object.freeze({
17862
17901
  "path": "voltage",
17863
17902
  "valueType": "number"
17864
17903
  },
17904
+ {
17905
+ "path": "chargeState",
17906
+ "valueType": "enum",
17907
+ "enumValues": [
17908
+ "charging",
17909
+ "full",
17910
+ "idle",
17911
+ "unknown"
17912
+ ]
17913
+ },
17914
+ {
17915
+ "path": "currentMa",
17916
+ "valueType": "number"
17917
+ },
17918
+ {
17919
+ "path": "temperatureC",
17920
+ "valueType": "number"
17921
+ },
17865
17922
  {
17866
17923
  "path": "lastContactAt",
17867
17924
  "valueType": "number"
@@ -59960,6 +60017,31 @@ var BatteryStatusSchema = zod.z.object({
59960
60017
  */
59961
60018
  voltage: zod.z.number().nullable().optional().meta(readingMeta("voltage", { label: "Voltage" })),
59962
60019
  /**
60020
+ * What the CELL is doing, as opposed to {@link charging} (what it is powered
60021
+ * from). `'charging'` takes current, `'full'` is connected and topped up,
60022
+ * `'idle'` is a stopped cell the firmware reported as such (running on the
60023
+ * battery, or an adapter that is not feeding it).
60024
+ *
60025
+ * Absent or `'unknown'` is NOT an answer: the provider has not read the
60026
+ * charge fields. It must never be coerced to `'idle'` (D315) — a camera
60027
+ * nobody reached would be drawn "not charging". Consumers SKIP it.
60028
+ */
60029
+ chargeState: zod.z.enum([
60030
+ "charging",
60031
+ "full",
60032
+ "idle",
60033
+ "unknown"
60034
+ ]).optional().meta({ label: "Charge state" }),
60035
+ /**
60036
+ * Battery current in milliamperes, as the firmware reports it (sign is the
60037
+ * firmware's). `null`/absent = not reported. Stored in mA, not the quantity
60038
+ * base (A), so it carries no reading quantity: a quantity would make the UI
60039
+ * convert and print it as amperes.
60040
+ */
60041
+ currentMa: zod.z.number().nullable().optional().meta(readingMeta("none", { label: "Current (mA)" })),
60042
+ /** Battery temperature in °C. `null`/absent = not reported. */
60043
+ temperatureC: zod.z.number().nullable().optional().meta(readingMeta("temperature", { label: "Temperature" })),
60044
+ /**
59963
60045
  * Ms epoch of the last time the device PROVED it was reachable — a
59964
60046
  * completed firmware round-trip, an observed wake, or an inbound push
59965
60047
  * (firmware event, email). `0`/absent = never since this slice was born.
@@ -60119,6 +60201,10 @@ onStatusChanged: {
60119
60201
  voltage: {
60120
60202
  kind: "gauge",
60121
60203
  unit: "V"
60204
+ },
60205
+ temperatureC: {
60206
+ kind: "gauge",
60207
+ unit: "°C"
60122
60208
  }
60123
60209
  } },
60124
60210
  customize: batteryCustomize,
@@ -60171,6 +60257,30 @@ onStatusChanged: {
60171
60257
  }
60172
60258
  ],
60173
60259
  icon: "battery-charging"
60260
+ },
60261
+ {
60262
+ kind: "enum",
60263
+ field: "chargeState",
60264
+ label: t("Charge state", "Stato di carica"),
60265
+ values: [
60266
+ {
60267
+ value: "charging",
60268
+ label: t("Charging", "In carica")
60269
+ },
60270
+ {
60271
+ value: "full",
60272
+ label: t("Full", "Carica completa")
60273
+ },
60274
+ {
60275
+ value: "idle",
60276
+ label: t("Not charging", "Non in carica")
60277
+ },
60278
+ {
60279
+ value: "unknown",
60280
+ label: t("Unknown", "Sconosciuto")
60281
+ }
60282
+ ],
60283
+ icon: "battery-charging"
60174
60284
  }
60175
60285
  ],
60176
60286
  extraEvents: [{
@@ -66838,7 +66948,8 @@ var CAP_RUNTIME_FIELD_UNITS = {
66838
66948
  "ambient-light-sensor": { illuminance: "lx" },
66839
66949
  "battery": {
66840
66950
  level: "%",
66841
- voltage: "V"
66951
+ voltage: "V",
66952
+ temperatureC: "°C"
66842
66953
  },
66843
66954
  "humidity-sensor": { humidity: "%" },
66844
66955
  "power-meter": {
@@ -67864,7 +67975,7 @@ function groupTemplate(id) {
67864
67975
  }
67865
67976
  /**
67866
67977
  * Cap history catalog, projected from every `*.cap.ts` `history` block.
67867
- * 47 caps with series (130 series), 40 caps answered `'none'`.
67978
+ * 47 caps with series (132 series), 40 caps answered `'none'`.
67868
67979
  * Field keys are `runtimeState` paths (`a.b` into fixed objects only).
67869
67980
  */
67870
67981
  var HISTORY_CATALOG = {
@@ -67926,6 +68037,10 @@ var HISTORY_CATALOG = {
67926
68037
  "voltage": {
67927
68038
  kind: "gauge",
67928
68039
  unit: "V"
68040
+ },
68041
+ "temperatureC": {
68042
+ kind: "gauge",
68043
+ unit: "°C"
67929
68044
  }
67930
68045
  },
67931
68046
  "binary": { "on": { kind: "boolean" } },
@@ -68080,6 +68195,12 @@ var HISTORY_CATALOG = {
68080
68195
  deadband: .05,
68081
68196
  displayName: "Stored energy"
68082
68197
  },
68198
+ "storage.capacityKwh": {
68199
+ kind: "gauge",
68200
+ unit: "kWh",
68201
+ deadband: .1,
68202
+ displayName: "Storage capacity"
68203
+ },
68083
68204
  "storage.powerW": {
68084
68205
  group: "power-flow",
68085
68206
  kind: "gauge",
@@ -77761,6 +77882,12 @@ var energySystemCapability = {
77761
77882
  deadband: .05,
77762
77883
  displayName: "Stored energy"
77763
77884
  },
77885
+ "storage.capacityKwh": {
77886
+ kind: "gauge",
77887
+ unit: "kWh",
77888
+ deadband: .1,
77889
+ displayName: "Storage capacity"
77890
+ },
77764
77891
  "storage.powerW": {
77765
77892
  group: "power-flow",
77766
77893
  kind: "gauge",
@@ -1,5 +1,5 @@
1
1
  require("./chunk-Cek0wNdY.js");
2
- const require_wal_maintenance = require("./wal-maintenance-CnHO7auI.js");
2
+ const require_wal_maintenance = require("./wal-maintenance-CSOuhN9-.js");
3
3
  let node_worker_threads = require("node:worker_threads");
4
4
  //#region src/builtins/sqlite-storage/file-host-worker.ts
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-BywDavI2.mjs";
1
+ import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-BUD6zNQ1.mjs";
2
2
  import { parentPort, threadId, workerData } from "node:worker_threads";
3
3
  //#region src/builtins/sqlite-storage/file-host-worker.ts
4
4
  /**
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-Cek0wNdY.js");
2
- const require_dist = require("./dist-B6GQhRc0.js");
2
+ const require_dist = require("./dist-DOO4m7fK.js");
3
3
  const require_x509_es = require("./x509.es-WtnRNyYS.js");
4
4
  let zod = require("zod");
5
5
  let node_crypto = require("node:crypto");
@@ -1,4 +1,4 @@
1
- import { Tl as defineRecordKinds } from "./dist-BPH9fDKg.mjs";
1
+ import { Tl as defineRecordKinds } from "./dist-CLuvQ9u4.mjs";
2
2
  import { C as backdatedNotBefore, S as withUtcTimeEncoding, _ as NameConstraints, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, g as GeneralSubtrees, h as GeneralSubtree, i as Extension, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension, v as GeneralName, x as AsnConvert } from "./x509.es-BRiJgOvu.mjs";
3
3
  import { z } from "zod";
4
4
  import { X509Certificate, createHash, createPrivateKey, randomBytes, webcrypto } from "node:crypto";
@@ -1,7 +1,7 @@
1
1
  const require_chunk = require("./chunk-Cek0wNdY.js");
2
- const require_dist = require("./dist-B6GQhRc0.js");
2
+ const require_dist = require("./dist-DOO4m7fK.js");
3
3
  const require_x509_es = require("./x509.es-WtnRNyYS.js");
4
- const require_hub_identity = require("./hub-identity-C_rPH1LC.js");
4
+ const require_hub_identity = require("./hub-identity-B1vdrP8l.js");
5
5
  let node_crypto = require("node:crypto");
6
6
  let _camstack_types_node = require("@camstack/types/node");
7
7
  let node_fs = require("node:fs");
@@ -1,7 +1,7 @@
1
1
  import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
2
- import { yu as userError } from "./dist-BPH9fDKg.mjs";
2
+ import { yu as userError } from "./dist-CLuvQ9u4.mjs";
3
3
  import { f as X509Certificate$1 } from "./x509.es-BRiJgOvu.mjs";
4
- import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-Cwx54dg7.mjs";
4
+ import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-Dau33k9T.mjs";
5
5
  import { X509Certificate, createPrivateKey } from "node:crypto";
6
6
  import { writeOwnerOnlyFileSync } from "@camstack/types/node";
7
7
  import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  const require_chunk = require("./chunk-Cek0wNdY.js");
3
- const require_dist = require("./dist-B6GQhRc0.js");
4
- const require_device_ca = require("./device-ca-yBp2tHgr.js");
3
+ const require_dist = require("./dist-DOO4m7fK.js");
4
+ const require_device_ca = require("./device-ca-QMMiXnOk.js");
5
5
  const require_read_all_rows$1 = require("./read-all-rows-CVoO1ONM.js");
6
6
  const require_log_redactor = require("./log-redactor-BhIEMaG9.js");
7
7
  const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
@@ -28,22 +28,22 @@ const require_builtins_loki_logging_index = require("./builtins/loki-logging/ind
28
28
  const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
29
29
  const require_builtins_device_history_device_history_addon = require("./builtins/device-history/device-history.addon.js");
30
30
  const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
31
- const require_wal_maintenance = require("./wal-maintenance-CnHO7auI.js");
32
- const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-D15lR2un.js");
31
+ const require_wal_maintenance = require("./wal-maintenance-CSOuhN9-.js");
32
+ const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-Dxd0ZeQK.js");
33
33
  const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
34
34
  const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
35
35
  const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
36
36
  require("./builtins/storage-orchestrator/index.js");
37
- const require_hub_identity = require("./hub-identity-C_rPH1LC.js");
38
- const require_constants = require("./constants-D0RAHXo_.js");
37
+ const require_hub_identity = require("./hub-identity-B1vdrP8l.js");
38
+ const require_constants = require("./constants-H2BU7bKi.js");
39
39
  const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
40
40
  require("./builtins/system-config/index.js");
41
41
  const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
42
42
  const require_custom_action_registry = require("./custom-action-registry-CmWpSeMS.js");
43
- const require_hub_mdns_ciao = require("./hub-mdns-ciao-DoLDlxEs.js");
43
+ const require_hub_mdns_ciao = require("./hub-mdns-ciao-Nso1_VSE.js");
44
44
  const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
45
45
  const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
46
- const require_restore_archive = require("./restore-archive-Bw4nQouq.js");
46
+ const require_restore_archive = require("./restore-archive-BbZAaTDV.js");
47
47
  const require_coral_accelerators = require("./coral-accelerators-BSVsBVzt.js");
48
48
  let zod = require("zod");
49
49
  let node_crypto = require("node:crypto");
@@ -1,6 +1,6 @@
1
1
  import { i as __require } from "./chunk-CNf5ZN-e.mjs";
2
- import { $i as isVoidInput, Cs as unmetRequirements, Dc as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Dl as emitDownForOwnedCaps, Du as errMsg$1, Ec as DATAPLANE_SECRET_HEADER$1, Ft as LOG_LEVEL_RANK, Gc as ReadinessRegistry, Hi as isArrayOutputSchema, Ho as scopesAllowAddon, Ia as objectInputDeclaresAddonId, Kc as ReadinessTimeoutError, La as objectInputDeclaresRequiredDeviceId, Li as interpolate, Lt as METHOD_ACCESS_MAP, Nl as getDebugInterest, Oc as DEVICE_STATUS_METHOD, Ri as isAddonInstanceId, Rl as isDebugChannelName, S as CATALOG_LANGS, Su as withoutCallerStamp, Tc as CALLER_STAMPED_CAPABILITIES$1, Tl as defineRecordKinds, Uo as scopesAllowDeviceCap, Wc as RUNTIME_DEFAULTS, Wi as isCollectionArrayMethod, Wr as describeUnmet, Yn as bareAddonId, Zi as isObjectInput, Zt as PackageRequiresSchema, a as AGENT_MDNS_SERVICE_TYPE, bl as createEvent$1, cl as asNumber, di as extractNestedAddonId, eo as procedureAuthKey, gl as collectSecretMarkerRefs, ha as looseSchema, hu as supportedRuntimes, iu as readinessKey, jl as expandCapMethods, k as CatalogFileSchema, ko as resolveMethodAuth, ku as EventCategory$1, ll as asString$1, lu as scopeKey, ma as logLevelAtMost, ns as splitTranslationRef, nu as parseJsonUnknown, o as AGENT_MDNS_TXT_KEYS, ou as resolveCapMount, s as ALL_CAPABILITY_DEFINITIONS, sa as lifecycleJobSchema, sl as asJsonObject$1, ta as kebabToCamel$1, tu as parseJsonObject, yr as compareVersions, yu as userError, zn as addonSettingsCapability } from "./dist-BPH9fDKg.mjs";
3
- import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-CN_2AqQb.mjs";
2
+ import { $i as isVoidInput, Cs as unmetRequirements, Dc as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Dl as emitDownForOwnedCaps, Du as errMsg$1, Ec as DATAPLANE_SECRET_HEADER$1, Ft as LOG_LEVEL_RANK, Gc as ReadinessRegistry, Hi as isArrayOutputSchema, Ho as scopesAllowAddon, Ia as objectInputDeclaresAddonId, Kc as ReadinessTimeoutError, La as objectInputDeclaresRequiredDeviceId, Li as interpolate, Lt as METHOD_ACCESS_MAP, Nl as getDebugInterest, Oc as DEVICE_STATUS_METHOD, Ri as isAddonInstanceId, Rl as isDebugChannelName, S as CATALOG_LANGS, Su as withoutCallerStamp, Tc as CALLER_STAMPED_CAPABILITIES$1, Tl as defineRecordKinds, Uo as scopesAllowDeviceCap, Wc as RUNTIME_DEFAULTS, Wi as isCollectionArrayMethod, Wr as describeUnmet, Yn as bareAddonId, Zi as isObjectInput, Zt as PackageRequiresSchema, a as AGENT_MDNS_SERVICE_TYPE, bl as createEvent$1, cl as asNumber, di as extractNestedAddonId, eo as procedureAuthKey, gl as collectSecretMarkerRefs, ha as looseSchema, hu as supportedRuntimes, iu as readinessKey, jl as expandCapMethods, k as CatalogFileSchema, ko as resolveMethodAuth, ku as EventCategory$1, ll as asString$1, lu as scopeKey, ma as logLevelAtMost, ns as splitTranslationRef, nu as parseJsonUnknown, o as AGENT_MDNS_TXT_KEYS, ou as resolveCapMount, s as ALL_CAPABILITY_DEFINITIONS, sa as lifecycleJobSchema, sl as asJsonObject$1, ta as kebabToCamel$1, tu as parseJsonObject, yr as compareVersions, yu as userError, zn as addonSettingsCapability } from "./dist-CLuvQ9u4.mjs";
3
+ import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-C82s8Xw9.mjs";
4
4
  import { t as require_read_all_rows } from "./read-all-rows-TaPqdWNF.mjs";
5
5
  import { a as redactLogText, i as redactLogMeta, r as redactLogEntry, t as isCredentialKeyName } from "./log-redactor-XLDrPzOi.mjs";
6
6
  import { AlertCenterAddon, n as lastCauseAfterChunk, r as readRunnerDisplayName, t as CRASH_BREAKER_ERROR_PREFIX } from "./builtins/alerts/alerts.addon.mjs";
@@ -27,22 +27,22 @@ import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index
27
27
  import NativeMetricsAddon, { a as NativeMetricsProvider, i as parseProcStatusRss, n as nodeProcReader, r as parseProcStat } from "./builtins/native-metrics/native-metrics.addon.mjs";
28
28
  import { DeviceHistoryAddon } from "./builtins/device-history/device-history.addon.mjs";
29
29
  import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
30
- import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-BywDavI2.mjs";
31
- import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-BWgJZjTa.mjs";
30
+ import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-BUD6zNQ1.mjs";
31
+ import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-C9-7B5gC.mjs";
32
32
  import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
33
33
  import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
34
34
  import { StorageOrchestratorAddon, a as createHubCapForwardService, i as HUB_CAP_FWD_SERVICE, o as stripForwardedCaller, r as HUB_CAP_FWD_ACTION, s as buildStorageLocationRegistry, t as StorageOrchestratorService, u as storageOrchestratorRecordKinds } from "./builtins/storage-orchestrator/storage-orchestrator.addon.mjs";
35
35
  import "./builtins/storage-orchestrator/index.mjs";
36
- import { A as evaluateExistingCert, B as AGENT_HTTPS_NAMES_COLLECTION, C as localCaCommonName, D as LEAF_RENEWAL_WINDOW_DAYS, E as CA_VALIDITY_DAYS, F as isConstrainedCa, H as AgentHttpsNames, I as isLocalOnlyHostname, L as permitsIdentity, M as PERMITTED_DNS_SUFFIXES, N as PERMITTED_IP_RANGES, O as MAX_LEAF_VALIDITY_DAYS, P as buildNameConstraintSet, R as permitsName, T as systemHostFacts, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, _ as pemDigest, a as AgentHttpsInstallError, c as certificateNames, d as describeHttpsLeaf, f as installAgentHttps, g as loadAgentHttps, h as issueAgentHttpsLeaf, i as loadOrCreateHubId, k as SERVER_AUTH_OID, l as collectAgentNames, m as isPrivateAddress, n as HUB_IDENTITY_RELATIVE, o as acceptAgentSans, p as isContainerBridgeAddress, r as isAnnouncedHubId, s as agentHttpsPaths, t as HUB_IDENTITY_FILE, u as createAgentHttpsRequest, v as pinnedHttpsCaFingerprint, w as collectCertIdentity, y as CA_COMMON_NAME, z as readNameConstraints } from "./hub-identity-Cwx54dg7.mjs";
37
- import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "./constants-dXTDibrR.mjs";
36
+ import { A as evaluateExistingCert, B as AGENT_HTTPS_NAMES_COLLECTION, C as localCaCommonName, D as LEAF_RENEWAL_WINDOW_DAYS, E as CA_VALIDITY_DAYS, F as isConstrainedCa, H as AgentHttpsNames, I as isLocalOnlyHostname, L as permitsIdentity, M as PERMITTED_DNS_SUFFIXES, N as PERMITTED_IP_RANGES, O as MAX_LEAF_VALIDITY_DAYS, P as buildNameConstraintSet, R as permitsName, T as systemHostFacts, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, _ as pemDigest, a as AgentHttpsInstallError, c as certificateNames, d as describeHttpsLeaf, f as installAgentHttps, g as loadAgentHttps, h as issueAgentHttpsLeaf, i as loadOrCreateHubId, k as SERVER_AUTH_OID, l as collectAgentNames, m as isPrivateAddress, n as HUB_IDENTITY_RELATIVE, o as acceptAgentSans, p as isContainerBridgeAddress, r as isAnnouncedHubId, s as agentHttpsPaths, t as HUB_IDENTITY_FILE, u as createAgentHttpsRequest, v as pinnedHttpsCaFingerprint, w as collectCertIdentity, y as CA_COMMON_NAME, z as readNameConstraints } from "./hub-identity-Dau33k9T.mjs";
37
+ import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "./constants-DtDAChDX.mjs";
38
38
  import { $ as getProcessMeshCaState, A as emitProcessNodeRegistered, At as readCidrSetting, B as getProcessMeshTlsListenerState, C as verifyMembershipAnswer, Ct as isInsecureOrigin, D as ServiceBroker, Dt as createCidrMatcher, E as Errors, Et as readOriginSetting, F as onProcessNodeRegistered, G as MeshCertificateRegistry, H as setProcessMeshTlsListenerState, I as setProcessMeshHandshakeReporter, J as getProcessMeshCertificateRegistry, K as RENEWAL_ABANDONED, L as setProcessMeshPeerTransportLookup, M as getProcessNodeMeshTransport, N as getProcessPeerLeaf, O as setProcessMeshTlsEnabler, Ot as normalizeIp, P as isProcessVerifiedMeshPeer, Q as MeshCaKeeper, R as renewMeshCertificate, S as signMembershipProof, St as OPAQUE_ORIGIN, SystemConfigAddon, T as TlsTcpTransporter, Tt as parseOriginList, U as MESH_NODE_CERTIFICATES_COLLECTION, V as openMeshTlsWhenRevocationsLoaded, W as MESH_NODE_CERTIFICATES_COLUMNS, X as MeshCrl, Y as setProcessMeshCertificateRegistry, Z as processMeshCrl, _ as keyFingerprintShort, _t as isAllowedAgentDashboardReturnTo, a as dialableHubHost, at as generateMeshCa, b as MEMBERSHIP_PATHS, bt as verifyAgentUiUnlockTicket, c as PAIRING_MAX_CODE_ATTEMPTS, ct as issueMeshLeafForNode, d as PAIRING_PIN_DIGITS, dt as AGENT_DASHBOARD_ORIGINS_FIELD, et as requireProcessMeshCa, f as PAIRING_PROTOCOL, ft as AGENT_UI_UNLOCK_TTL_MS, g as describeCsr, gt as UnlockTicketJtiStore, h as computePairingSas, ht as AGENT_UI_UNLOCK_VERSION, i as AgentPairing, it as exportMeshPrivateKeyPem, j as getProcessMeshHandshakeReporter, k as dropProcessPeer, kt as parseCidrList, l as PAIRING_MAX_SESSIONS, lt as issueMeshLeafFromCsr, m as computePairingCommitment, mt as AGENT_UI_UNLOCK_USE, n as HubPairing, nt as caFingerprintCompact, o as hubHostFromMeshAddress, ot as generateMeshKeyPair, p as PAIRING_TTL_MS, pt as AGENT_UI_UNLOCK_TYP, q as describeMeshLeaf, r as PairingHttpError, rt as createMeshCsrPem, s as PAIRING_CODE_DIGITS, st as isValidAgentNodeId, tt as caFingerprint, u as PAIRING_PATHS, ut as loadMeshCa, v as signPairingProof, vt as mintAgentUiUnlockTicket, w as MESH_TLS_PORT_HELLO_FIELD, wt as normalizeOrigin, x as MembershipResponder, xt as InvalidCorsOriginError, y as verifyPairingProof, yt as parseAgentDashboardOrigins, z as revokeMeshCertificate } from "./builtins/system-config/system-config.addon.mjs";
39
39
  import "./builtins/system-config/index.mjs";
40
40
  import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
41
41
  import { C as isModelDownloaded, E as setHuggingFaceReachabilityObserver, T as revisionWeightUrl, _ as downloadFile, a as startEventLoopStallMonitor, b as fetchJson, c as createAuthenticatedFileServer, d as resolveFilePath, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, u as parseTokenizedUrl, v as downloadModel, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-B9zFBNVa.mjs";
42
- import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-ty6dOv8P.mjs";
42
+ import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-RwTNfZHU.mjs";
43
43
  import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
44
44
  import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
45
- import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-CSpyu4JP.mjs";
45
+ import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-BuQCaCvL.mjs";
46
46
  import { r as nodeCoralFs, t as classifyCoralAccelerator } from "./coral-accelerators-DBlgWB8k.mjs";
47
47
  import { z } from "zod";
48
48
  import * as crypto$1 from "node:crypto";
@@ -1,4 +1,4 @@
1
- import { gl as collectSecretMarkerRefs } from "./dist-BPH9fDKg.mjs";
1
+ import { gl as collectSecretMarkerRefs } from "./dist-CLuvQ9u4.mjs";
2
2
  //#region src/builtins/sqlite-storage/migrations/legacy-integration-rows-door.ts
3
3
  /**
4
4
  * Migration-only door for the leftover integration rows (planning#416).