@camstack/server 1.2.733 → 1.2.734

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 (99) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/core/agent/node-removal-hooks.js +25 -0
  3. package/dist/manual-boot.js +11 -0
  4. package/package.json +4 -6
  5. package/system/dist/addon-runner.js +94 -17
  6. package/system/dist/addon-runner.mjs +95 -18
  7. package/system/dist/{agent-https-v5uyVgpk.js → agent-https-DEmi-YQ_.js} +1 -1
  8. package/system/dist/{agent-https-D3dptveB.mjs → agent-https-DGp4gFzH.mjs} +1 -1
  9. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  10. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  11. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  12. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  13. package/system/dist/builtins/alerts/alerts.addon.js +1 -1
  14. package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
  15. package/system/dist/builtins/autotrack/index.js +1 -1
  16. package/system/dist/builtins/autotrack/index.mjs +1 -1
  17. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  18. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  19. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  20. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  21. package/system/dist/builtins/camera-grid/index.js +1 -1
  22. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  23. package/system/dist/builtins/composer/composer.addon.js +3 -3
  24. package/system/dist/builtins/composer/composer.addon.mjs +3 -3
  25. package/system/dist/builtins/console-logging/index.js +1 -1
  26. package/system/dist/builtins/console-logging/index.mjs +1 -1
  27. package/system/dist/builtins/core-blocks/core-blocks.addon.js +79 -8
  28. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +90 -21
  29. package/system/dist/builtins/core-blocks/index.mjs +1 -1
  30. package/system/dist/builtins/device-history/device-history.addon.js +2 -2
  31. package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
  32. package/system/dist/builtins/device-manager/device-manager.addon.js +2 -2
  33. package/system/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
  34. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  35. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  36. package/system/dist/builtins/keychain/index.js +3 -3
  37. package/system/dist/builtins/keychain/index.mjs +3 -3
  38. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  39. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  40. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  41. package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  42. package/system/dist/builtins/local-network/local-network.addon.js +91 -21
  43. package/system/dist/builtins/local-network/local-network.addon.mjs +91 -21
  44. package/system/dist/builtins/local-network/scan/dns-wire.d.ts +29 -0
  45. package/system/dist/builtins/loki-logging/index.js +1 -1
  46. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  47. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  48. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  49. package/system/dist/builtins/platform-probe/index.js +1 -1
  50. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  51. package/system/dist/builtins/record-entries/index.js +1 -1
  52. package/system/dist/builtins/record-entries/index.mjs +1 -1
  53. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  54. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  55. package/system/dist/builtins/snapshot/index.js +1 -1
  56. package/system/dist/builtins/snapshot/index.mjs +1 -1
  57. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  58. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  59. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  60. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  61. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2 -2
  62. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
  63. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  64. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  65. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  66. package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
  67. package/system/dist/builtins/winston-logging/index.js +1 -1
  68. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  69. package/system/dist/{composition-sources-j_bFq7Tx.js → composition-sources-DfyoPtMe.js} +1 -1
  70. package/system/dist/{composition-sources-Dnyu7-1p.mjs → composition-sources-wVMwuZ-r.mjs} +1 -1
  71. package/system/dist/{constants-GDBin8zB.mjs → constants-C8fjD4YU.mjs} +1 -1
  72. package/system/dist/{constants-C6zJ_38f.js → constants-CavIW3ee.js} +1 -1
  73. package/system/dist/{device-ca-Bpqrad00.mjs → device-ca-B1vN9ZRB.mjs} +1 -1
  74. package/system/dist/{device-ca-CV9QZvoy.js → device-ca-b_fSvUlI.js} +1 -1
  75. package/system/dist/{dist-CwYYyGAB.js → dist-DDl6NKUe.js} +56 -1
  76. package/system/dist/{dist-DcHvuBfD.mjs → dist-SXRVvbkS.mjs} +51 -2
  77. package/system/dist/{dns-wire-CqgMi_uB.js → dns-wire-B1BvF9Ao.js} +78 -10
  78. package/system/dist/{dns-wire-DO56tOHL.mjs → dns-wire-Dm3H_7ST.mjs} +55 -11
  79. package/system/dist/file-host-worker.js +1 -1
  80. package/system/dist/file-host-worker.mjs +1 -1
  81. package/system/dist/{hub-mdns-ciao-DNLnbJNG.js → hub-mdns-ciao-95JXbLd5.js} +2 -2
  82. package/system/dist/{hub-mdns-ciao-D2sU6sKd.mjs → hub-mdns-ciao-euMLdIPi.mjs} +2 -2
  83. package/system/dist/index.d.ts +1 -0
  84. package/system/dist/index.js +45 -19
  85. package/system/dist/index.mjs +46 -21
  86. package/system/dist/kernel/addon-settings-store.d.ts +25 -0
  87. package/system/dist/kernel/device-settings-resolver.d.ts +27 -0
  88. package/system/dist/kernel/moleculer/runner-device-settings.d.ts +2 -0
  89. package/system/dist/kernel/settings-door-view.d.ts +5 -1
  90. package/system/dist/kernel/settings-view-types.d.ts +7 -1
  91. package/system/dist/migrations/hub/2026-11-02-addon-settings-node-id.d.ts +3 -0
  92. package/system/dist/migrations/hub/index.d.ts +3 -4
  93. package/system/dist/{restore-archive-xTqhDFkW.js → restore-archive-CMkK7SeP.js} +1 -1
  94. package/system/dist/{restore-archive-BGK6EnYj.mjs → restore-archive-DbtbDgPC.mjs} +1 -1
  95. package/system/dist/{retention-CXu8PB2L.mjs → retention-BGUmx4FD.mjs} +1 -1
  96. package/system/dist/{retention-gQ3GIUA3.js → retention-DI_dDceD.js} +1 -1
  97. package/system/dist/{wal-maintenance-Hwzm3DCe.js → wal-maintenance-BaPMwUtL.js} +0 -0
  98. package/system/dist/{wal-maintenance-D7XmFaUD.mjs → wal-maintenance-CgHJ7XTw.mjs} +0 -0
  99. package/system/package.json +1 -1
@@ -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-CwYYyGAB.js");
4
- const require_device_ca = require("./device-ca-CV9QZvoy.js");
3
+ const require_dist = require("./dist-DDl6NKUe.js");
4
+ const require_device_ca = require("./device-ca-b_fSvUlI.js");
5
5
  const require_read_all_rows$1 = require("./read-all-rows-CVoO1ONM.js");
6
6
  const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
7
7
  require("./builtins/alerts/index.js");
@@ -26,21 +26,21 @@ const require_builtins_loki_logging_index = require("./builtins/loki-logging/ind
26
26
  const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
27
27
  const require_builtins_device_history_device_history_addon = require("./builtins/device-history/device-history.addon.js");
28
28
  const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
29
- const require_wal_maintenance = require("./wal-maintenance-Hwzm3DCe.js");
29
+ const require_wal_maintenance = require("./wal-maintenance-BaPMwUtL.js");
30
30
  const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
31
31
  const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
32
32
  const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
33
33
  require("./builtins/storage-orchestrator/index.js");
34
- const require_agent_https = require("./agent-https-v5uyVgpk.js");
35
- const require_constants = require("./constants-C6zJ_38f.js");
34
+ const require_agent_https = require("./agent-https-DEmi-YQ_.js");
35
+ const require_constants = require("./constants-CavIW3ee.js");
36
36
  const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
37
37
  require("./builtins/system-config/index.js");
38
38
  const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
39
39
  const require_custom_action_registry = require("./custom-action-registry-JuMHGKEc.js");
40
- const require_hub_mdns_ciao = require("./hub-mdns-ciao-DNLnbJNG.js");
40
+ const require_hub_mdns_ciao = require("./hub-mdns-ciao-95JXbLd5.js");
41
41
  const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
42
42
  const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
43
- const require_restore_archive = require("./restore-archive-xTqhDFkW.js");
43
+ const require_restore_archive = require("./restore-archive-CMkK7SeP.js");
44
44
  const require_coral_accelerators = require("./coral-accelerators-BSVsBVzt.js");
45
45
  let zod = require("zod");
46
46
  let node_crypto = require("node:crypto");
@@ -52,10 +52,10 @@ let node_path = require("node:path");
52
52
  node_path = require_chunk.__toESM(node_path);
53
53
  let node_util = require("node:util");
54
54
  node_util = require_chunk.__toESM(node_util);
55
+ let _camstack_types_addon = require("@camstack/types/addon");
55
56
  let node_os = require("node:os");
56
57
  node_os = require_chunk.__toESM(node_os);
57
58
  let node_url = require("node:url");
58
- let _camstack_types_addon = require("@camstack/types/addon");
59
59
  let node_fs = require("node:fs");
60
60
  node_fs = require_chunk.__toESM(node_fs);
61
61
  let node_child_process = require("node:child_process");
@@ -11977,6 +11977,35 @@ async function runHubAddonBoot(steps) {
11977
11977
  await steps.spawnIsolatedConsumers();
11978
11978
  }
11979
11979
  //#endregion
11980
+ //#region src/kernel/device-settings-resolver.ts
11981
+ /**
11982
+ * The ONE fleet-default resolver (D986 point 3), shared by hub-main's settings view and the forked
11983
+ * runner's, over the same two stores both already use (D870):
11984
+ *
11985
+ * device row (`addon-device-settings`) -> fleet-default row (`addon-settings`) -> schema default
11986
+ *
11987
+ * `readDeviceStore` keeps returning the device's RAW overrides; this is a separate, additive read
11988
+ * that says, per field, the value AND where it came from (`device` | `fleet-default` |
11989
+ * `schema-default`), so a device form can mark an inherited field and offer Reset. Reset is "delete
11990
+ * the device row" (`writeDeviceStore(id, { field: undefined })`): an override equal to the default
11991
+ * stays an override.
11992
+ *
11993
+ * Both layers are read THREE-way: a store that did not answer THROWS. Falling back to the schema
11994
+ * default on a failed read would show, and let a caller act on, a value nobody chose (D49).
11995
+ */
11996
+ function createDeviceSettingsResolver(door, addonId) {
11997
+ const deviceStore = require_builtins_device_manager_device_manager_addon.createDeviceSettingsStore(door, addonId);
11998
+ return { async resolve(deviceId, schemaDefaults) {
11999
+ const [fleet, deviceOverrides] = await Promise.all([require_builtins_core_blocks_core_blocks_addon.readUnscopedAddonSettings(door, addonId), require_builtins_device_manager_device_manager_addon.readDeviceOrThrow(deviceStore, deviceId)]);
12000
+ if (fleet.kind === "unreadable") throw new Error(`fleet defaults of "${addonId}" could not be read: ${fleet.error}`);
12001
+ return (0, _camstack_types_addon.resolveDeviceSettings)({
12002
+ schemaDefaults,
12003
+ fleetDefaults: fleet.kind === "present" ? fleet.value : {},
12004
+ deviceOverrides
12005
+ });
12006
+ } };
12007
+ }
12008
+ //#endregion
11980
12009
  //#region src/kernel/settings-door-view.ts
11981
12010
  function isRecord$3(value) {
11982
12011
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -12013,6 +12042,7 @@ async function loadSystemSettingsPrefix(door, prefix, mayRead = () => true) {
12013
12042
  function createDoorSettingsView(addonId, door, sections) {
12014
12043
  const addonStore = require_builtins_core_blocks_core_blocks_addon.createAddonSettingsStore(door, addonId);
12015
12044
  const deviceStore = require_builtins_device_manager_device_manager_addon.createDeviceSettingsStore(door, addonId);
12045
+ const resolver = createDeviceSettingsResolver(door, addonId);
12016
12046
  return {
12017
12047
  async readAddonStore() {
12018
12048
  const read = await addonStore.read();
@@ -12034,6 +12064,7 @@ function createDoorSettingsView(addonId, door, sections) {
12034
12064
  async readDeviceStore(deviceId) {
12035
12065
  return require_builtins_device_manager_device_manager_addon.readDeviceOrThrow(deviceStore, deviceId);
12036
12066
  },
12067
+ readResolvedDeviceStore: (deviceId, schemaDefaults) => resolver.resolve(deviceId, schemaDefaults),
12037
12068
  readDeviceStoreBatch: (deviceIds) => deviceStore.readBatch(deviceIds),
12038
12069
  listDeviceStoreIds: () => deviceStore.listIds(),
12039
12070
  writeDeviceStore: (deviceId, patch) => deviceStore.merge(deviceId, patch),
@@ -23758,16 +23789,6 @@ function createRunnerAddonSettings(client, addonId) {
23758
23789
  }
23759
23790
  //#endregion
23760
23791
  //#region src/kernel/moleculer/runner-device-settings.ts
23761
- /**
23762
- * The forked runner's `ctx.settings` device methods (D870).
23763
- *
23764
- * A runner does not hold the settings door; it holds a tRPC client of the hub's
23765
- * `settings-store` cap. This file adapts that client to the door slice the
23766
- * per-device store needs and hands back the five view methods — the SAME module
23767
- * hub-main's view uses, so a device's settings are one set of rows whichever
23768
- * process asks. Before D870 the runner kept its own `<addonId>:addon-devices`
23769
- * blob per device; a hub-side write to the rows was invisible to it.
23770
- */
23771
23792
  /** The door slice the per-device store needs, over a tRPC client. */
23772
23793
  function doorOverClient(client) {
23773
23794
  return {
@@ -23788,15 +23809,19 @@ function createRunnerDeviceSettings(client, addonId) {
23788
23809
  };
23789
23810
  return {
23790
23811
  readDeviceStore: async () => refuse(),
23812
+ readResolvedDeviceStore: async () => refuse(),
23791
23813
  readDeviceStoreBatch: async () => refuse(),
23792
23814
  listDeviceStoreIds: async () => refuse(),
23793
23815
  writeDeviceStore: async () => refuse(),
23794
23816
  clearDeviceStore: async () => refuse()
23795
23817
  };
23796
23818
  }
23797
- const store = require_builtins_device_manager_device_manager_addon.createDeviceSettingsStore(doorOverClient(client), addonId);
23819
+ const door = doorOverClient(client);
23820
+ const store = require_builtins_device_manager_device_manager_addon.createDeviceSettingsStore(door, addonId);
23821
+ const resolver = createDeviceSettingsResolver(door, addonId);
23798
23822
  return {
23799
23823
  readDeviceStore: (deviceId) => require_builtins_device_manager_device_manager_addon.readDeviceOrThrow(store, deviceId),
23824
+ readResolvedDeviceStore: (deviceId, schemaDefaults) => resolver.resolve(deviceId, schemaDefaults),
23800
23825
  readDeviceStoreBatch: (ids) => store.readBatch(ids),
23801
23826
  listDeviceStoreIds: () => store.listIds(),
23802
23827
  writeDeviceStore: (deviceId, patch) => store.merge(deviceId, patch),
@@ -28329,6 +28354,7 @@ exports.checkUploadedCa = require_hub_mdns_ciao.checkUploadedCa;
28329
28354
  exports.classifyAddonDir = classifyAddonDir;
28330
28355
  exports.classifyCapRoute = classifyCapRoute;
28331
28356
  exports.clearHttpsListener = require_hub_mdns_ciao.clearHttpsListener;
28357
+ exports.clearNodeSettings = require_builtins_core_blocks_core_blocks_addon.clearNodeSettings;
28332
28358
  exports.clearPendingRestart = clearPendingRestart;
28333
28359
  exports.clearPlatformKeychainKey = require_platform_key_source.clearPlatformKeychainKey;
28334
28360
  exports.closeLanHttp = require_hub_mdns_ciao.closeLanHttp;
@@ -1,6 +1,6 @@
1
1
  import { i as __require } from "./chunk-CNf5ZN-e.mjs";
2
- import { As as readinessKey, Dr as interpolate, Ds as parseJsonObject, E as CatalogFileSchema, Go as asJsonObject$1, Hs as withoutCallerStamp, Ko as asNumber, Ks as errMsg$1, Lr as isObjectInput, Mo as ReadinessRegistry, Mr as isCollectionArrayMethod, Ms as resolveCapMount, No as ReadinessTimeoutError, Oi as procedureAuthKey, Os as parseJsonUnknown, Ps as scopeKey, Qi as scopesAllowDeviceCap, Qr as looseSchema, Rr as isVoidInput, Ui as resolveMethodAuth, Vs as userError, Wr as lifecycleJobSchema, Zi as scopesAllowAddon, Zr as logLevelAtMost, a as AGENT_MDNS_TXT_KEYS, an as addonSettingsCapability, as as emitDownForOwnedCaps, bt as METHOD_ACCESS_MAP, ca as splitTranslationRef, ga as supportedRuntimes, go as DEVICE_STATUS_METHOD, hi as objectInputDeclaresRequiredDeviceId, ho as DEVICE_SETTINGS_CONTRIBUTION_METHODS, i as AGENT_MDNS_SERVICE_TYPE, is as defineRecordKinds, jo as RUNTIME_DEFAULTS, jr as isArrayOutputSchema, ls as getDebugInterest, mi as objectInputDeclaresAddonId, mo as DATAPLANE_SECRET_HEADER$1, mr as extractNestedAddonId, o as ALL_CAPABILITY_DEFINITIONS, po as CALLER_STAMPED_CAPABILITIES$1, ps as isDebugChannelName, qo as asString$1, qs as EventCategory$1, ss as expandCapMethods, ts as createEvent$1, vt as LOG_LEVEL_RANK, y as CATALOG_LANGS, zr as kebabToCamel$1 } from "./dist-DcHvuBfD.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-Bpqrad00.mjs";
2
+ import { Dr as interpolate, E as CatalogFileSchema, Fs as scopeKey, Go as asJsonObject$1, Hs as userError, Js as EventCategory$1, Ko as asNumber, Lr as isObjectInput, Mo as ReadinessRegistry, Mr as isCollectionArrayMethod, No as ReadinessTimeoutError, Ns as resolveCapMount, Oi as procedureAuthKey, Os as parseJsonObject, Qi as scopesAllowDeviceCap, Qr as looseSchema, Rr as isVoidInput, Ui as resolveMethodAuth, Us as withoutCallerStamp, Wr as lifecycleJobSchema, Zi as scopesAllowAddon, Zr as logLevelAtMost, a as AGENT_MDNS_TXT_KEYS, an as addonSettingsCapability, as as emitDownForOwnedCaps, bt as METHOD_ACCESS_MAP, ca as splitTranslationRef, ga as supportedRuntimes, go as DEVICE_STATUS_METHOD, hi as objectInputDeclaresRequiredDeviceId, ho as DEVICE_SETTINGS_CONTRIBUTION_METHODS, i as AGENT_MDNS_SERVICE_TYPE, is as defineRecordKinds, jo as RUNTIME_DEFAULTS, jr as isArrayOutputSchema, js as readinessKey, ks as parseJsonUnknown, ls as getDebugInterest, mi as objectInputDeclaresAddonId, mo as DATAPLANE_SECRET_HEADER$1, mr as extractNestedAddonId, o as ALL_CAPABILITY_DEFINITIONS, po as CALLER_STAMPED_CAPABILITIES$1, ps as isDebugChannelName, qo as asString$1, qs as errMsg$1, ss as expandCapMethods, ts as createEvent$1, vt as LOG_LEVEL_RANK, y as CATALOG_LANGS, zr as kebabToCamel$1 } from "./dist-SXRVvbkS.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-B1vN9ZRB.mjs";
4
4
  import { t as require_read_all_rows } from "./read-all-rows-TaPqdWNF.mjs";
5
5
  import { AlertCenterAddon } from "./builtins/alerts/alerts.addon.mjs";
6
6
  import "./builtins/alerts/index.mjs";
@@ -11,7 +11,7 @@ import "./builtins/composer/index.mjs";
11
11
  import { t as formatLogLine } from "./formatter-DkYZ4LXp.mjs";
12
12
  import { ConsoleDestination, ConsoleLoggingAddon } from "./builtins/console-logging/index.mjs";
13
13
  import { t as loadPrefixed } from "./prefix-walk-DAOBSyH1.mjs";
14
- import { CoreBlocksAddon, o as createAddonSettingsStore } from "./builtins/core-blocks/core-blocks.addon.mjs";
14
+ import { CoreBlocksAddon, c as readUnscopedAddonSettings, o as clearNodeSettings, s as createAddonSettingsStore } from "./builtins/core-blocks/core-blocks.addon.mjs";
15
15
  import "./builtins/core-blocks/index.mjs";
16
16
  import { DeviceManagerAddon, n as readDeviceOrThrow, r as setWrapperActive, t as createDeviceSettingsStore } from "./builtins/device-manager/device-manager.addon.mjs";
17
17
  import "./builtins/device-manager/index.mjs";
@@ -25,21 +25,21 @@ import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index
25
25
  import NativeMetricsAddon, { a as NativeMetricsProvider, i as parseProcStatusRss, n as nodeProcReader, r as parseProcStat } from "./builtins/native-metrics/native-metrics.addon.mjs";
26
26
  import { DeviceHistoryAddon } from "./builtins/device-history/device-history.addon.mjs";
27
27
  import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
28
- import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-D7XmFaUD.mjs";
28
+ import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-CgHJ7XTw.mjs";
29
29
  import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
30
30
  import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
31
31
  import { StorageOrchestratorAddon, a as stripForwardedCaller, i as createHubCapForwardService, l as STORAGE_DRAIN_STATE_LEGACY, n as HUB_CAP_FWD_ACTION, o as buildStorageLocationRegistry, r as HUB_CAP_FWD_SERVICE, t as StorageOrchestratorService, u as storageOrchestratorRecordKinds } from "./builtins/storage-orchestrator/storage-orchestrator.addon.mjs";
32
32
  import "./builtins/storage-orchestrator/index.mjs";
33
- import { A as buildNameConstraintSet, B as setProcessAgentHttpsNames, C as LEAF_RENEWAL_WINDOW_DAYS, E as evaluateExistingCert, F as readNameConstraints, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, N as permitsIdentity, O as PERMITTED_DNS_SUFFIXES, P as permitsName, R as AgentHttpsNames, S as CA_VALIDITY_DAYS, T as SERVER_AUTH_OID, a as collectAgentNames, b as collectCertIdentity, c as installAgentHttps, d as issueAgentHttpsLeaf, f as loadAgentHttps, h as CA_COMMON_NAME, i as certificateNames, j as isConstrainedCa, k as PERMITTED_IP_RANGES, l as isContainerBridgeAddress, m as pinnedHttpsCaFingerprint, n as acceptAgentSans, o as createAgentHttpsRequest, p as pemDigest, r as agentHttpsPaths, s as describeHttpsLeaf, t as AgentHttpsInstallError, u as isPrivateAddress, w as MAX_LEAF_VALIDITY_DAYS, x as systemHostFacts, y as localCaCommonName, z as getProcessAgentHttpsNames } from "./agent-https-D3dptveB.mjs";
34
- 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-GDBin8zB.mjs";
33
+ import { A as buildNameConstraintSet, B as setProcessAgentHttpsNames, C as LEAF_RENEWAL_WINDOW_DAYS, E as evaluateExistingCert, F as readNameConstraints, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, N as permitsIdentity, O as PERMITTED_DNS_SUFFIXES, P as permitsName, R as AgentHttpsNames, S as CA_VALIDITY_DAYS, T as SERVER_AUTH_OID, a as collectAgentNames, b as collectCertIdentity, c as installAgentHttps, d as issueAgentHttpsLeaf, f as loadAgentHttps, h as CA_COMMON_NAME, i as certificateNames, j as isConstrainedCa, k as PERMITTED_IP_RANGES, l as isContainerBridgeAddress, m as pinnedHttpsCaFingerprint, n as acceptAgentSans, o as createAgentHttpsRequest, p as pemDigest, r as agentHttpsPaths, s as describeHttpsLeaf, t as AgentHttpsInstallError, u as isPrivateAddress, w as MAX_LEAF_VALIDITY_DAYS, x as systemHostFacts, y as localCaCommonName, z as getProcessAgentHttpsNames } from "./agent-https-DGp4gFzH.mjs";
34
+ 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-C8fjD4YU.mjs";
35
35
  import { $ as caFingerprintCompact, A as getProcessNodeMeshTransport, B as MESH_NODE_CERTIFICATES_COLLECTION, C as MESH_TLS_PORT_HELLO_FIELD, Ct as readOriginSetting, D as setProcessMeshTlsEnabler, Dt as readCidrSetting, E as ServiceBroker, Et as parseCidrList, F as renewMeshCertificate, G as getProcessMeshCertificateRegistry, H as MeshCertificateRegistry, I as revokeMeshCertificate, J as processMeshCrl, K as setProcessMeshCertificateRegistry, L as getProcessMeshTlsListenerState, M as isProcessVerifiedMeshPeer, N as onProcessNodeRegistered, O as dropProcessPeer, P as setProcessMeshPeerTransportLookup, Q as caFingerprint, R as openMeshTlsWhenRevocationsLoaded, S as verifyMembershipAnswer, St as parseOriginList, SystemConfigAddon, T as Errors, Tt as normalizeIp, U as RENEWAL_ABANDONED, V as MESH_NODE_CERTIFICATES_COLUMNS, W as describeMeshLeaf, X as getProcessMeshCaState, Y as MeshCaKeeper, Z as requireProcessMeshCa, _ as signPairingProof, _t as verifyAgentUiUnlockTicket, a as hubHostFromMeshAddress, at as issueMeshLeafForNode, b as MembershipResponder, bt as isInsecureOrigin, c as PAIRING_MAX_SESSIONS, ct as AGENT_DASHBOARD_ORIGINS_FIELD, d as PAIRING_PROTOCOL, dt as AGENT_UI_UNLOCK_USE, et as createMeshCsrPem, f as PAIRING_TTL_MS, ft as AGENT_UI_UNLOCK_VERSION, g as keyFingerprintShort, gt as parseAgentDashboardOrigins, h as describeCsr, ht as mintAgentUiUnlockTicket, i as AgentPairing, it as isValidAgentNodeId, j as getProcessPeerLeaf, k as emitProcessNodeRegistered, l as PAIRING_PATHS, lt as AGENT_UI_UNLOCK_TTL_MS, m as computePairingSas, mt as isAllowedAgentDashboardReturnTo, n as HubPairing, nt as generateMeshCa, o as PAIRING_CODE_DIGITS, ot as issueMeshLeafFromCsr, p as computePairingCommitment, pt as UnlockTicketJtiStore, q as MeshCrl, r as PairingHttpError, rt as generateMeshKeyPair, s as PAIRING_MAX_CODE_ATTEMPTS, st as loadMeshCa, tt as exportMeshPrivateKeyPem, u as PAIRING_PIN_DIGITS, ut as AGENT_UI_UNLOCK_TYP, v as verifyPairingProof, vt as InvalidCorsOriginError, w as TlsTcpTransporter, wt as createCidrMatcher, x as signMembershipProof, xt as normalizeOrigin, y as MEMBERSHIP_PATHS, yt as OPAQUE_ORIGIN, z as setProcessMeshTlsListenerState } from "./builtins/system-config/system-config.addon.mjs";
36
36
  import "./builtins/system-config/index.mjs";
37
37
  import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
38
38
  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-oHl1xltx.mjs";
39
- 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-D2sU6sKd.mjs";
39
+ 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-euMLdIPi.mjs";
40
40
  import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
41
41
  import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
42
- 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-BGK6EnYj.mjs";
42
+ 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-DbtbDgPC.mjs";
43
43
  import { r as nodeCoralFs, t as classifyCoralAccelerator } from "./coral-accelerators-DBlgWB8k.mjs";
44
44
  import { z } from "zod";
45
45
  import * as crypto$1 from "node:crypto";
@@ -51,10 +51,10 @@ import * as path$1 from "node:path";
51
51
  import { basename, dirname, isAbsolute, join, resolve } from "node:path";
52
52
  import * as util from "node:util";
53
53
  import { promisify } from "node:util";
54
+ import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry as ReadinessRegistry$1, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods as expandCapMethods$1, maskUrlCredentials, readErrorI18n, readNodePin, resolveDeviceSettings, scopeKey as scopeKey$1, scrubKnownSecrets, sleep, withCapInputDefaults } from "@camstack/types/addon";
54
55
  import * as os$1 from "node:os";
55
56
  import { tmpdir } from "node:os";
56
57
  import { pathToFileURL } from "node:url";
57
- import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry as ReadinessRegistry$1, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, createDebugEmitter, createDeviceProxy, createEvent, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods as expandCapMethods$1, maskUrlCredentials, readErrorI18n, readNodePin, scopeKey as scopeKey$1, scrubKnownSecrets, sleep, withCapInputDefaults } from "@camstack/types/addon";
58
58
  import * as fs$1 from "node:fs";
59
59
  import { accessSync, constants, createReadStream, createWriteStream, existsSync, readFileSync, readdirSync } from "node:fs";
60
60
  import { execFile, spawn } from "node:child_process";
@@ -11974,6 +11974,35 @@ async function runHubAddonBoot(steps) {
11974
11974
  await steps.spawnIsolatedConsumers();
11975
11975
  }
11976
11976
  //#endregion
11977
+ //#region src/kernel/device-settings-resolver.ts
11978
+ /**
11979
+ * The ONE fleet-default resolver (D986 point 3), shared by hub-main's settings view and the forked
11980
+ * runner's, over the same two stores both already use (D870):
11981
+ *
11982
+ * device row (`addon-device-settings`) -> fleet-default row (`addon-settings`) -> schema default
11983
+ *
11984
+ * `readDeviceStore` keeps returning the device's RAW overrides; this is a separate, additive read
11985
+ * that says, per field, the value AND where it came from (`device` | `fleet-default` |
11986
+ * `schema-default`), so a device form can mark an inherited field and offer Reset. Reset is "delete
11987
+ * the device row" (`writeDeviceStore(id, { field: undefined })`): an override equal to the default
11988
+ * stays an override.
11989
+ *
11990
+ * Both layers are read THREE-way: a store that did not answer THROWS. Falling back to the schema
11991
+ * default on a failed read would show, and let a caller act on, a value nobody chose (D49).
11992
+ */
11993
+ function createDeviceSettingsResolver(door, addonId) {
11994
+ const deviceStore = createDeviceSettingsStore(door, addonId);
11995
+ return { async resolve(deviceId, schemaDefaults) {
11996
+ const [fleet, deviceOverrides] = await Promise.all([readUnscopedAddonSettings(door, addonId), readDeviceOrThrow(deviceStore, deviceId)]);
11997
+ if (fleet.kind === "unreadable") throw new Error(`fleet defaults of "${addonId}" could not be read: ${fleet.error}`);
11998
+ return resolveDeviceSettings({
11999
+ schemaDefaults,
12000
+ fleetDefaults: fleet.kind === "present" ? fleet.value : {},
12001
+ deviceOverrides
12002
+ });
12003
+ } };
12004
+ }
12005
+ //#endregion
11977
12006
  //#region src/kernel/settings-door-view.ts
11978
12007
  function isRecord$3(value) {
11979
12008
  return typeof value === "object" && value !== null && !Array.isArray(value);
@@ -12010,6 +12039,7 @@ async function loadSystemSettingsPrefix(door, prefix, mayRead = () => true) {
12010
12039
  function createDoorSettingsView(addonId, door, sections) {
12011
12040
  const addonStore = createAddonSettingsStore(door, addonId);
12012
12041
  const deviceStore = createDeviceSettingsStore(door, addonId);
12042
+ const resolver = createDeviceSettingsResolver(door, addonId);
12013
12043
  return {
12014
12044
  async readAddonStore() {
12015
12045
  const read = await addonStore.read();
@@ -12031,6 +12061,7 @@ function createDoorSettingsView(addonId, door, sections) {
12031
12061
  async readDeviceStore(deviceId) {
12032
12062
  return readDeviceOrThrow(deviceStore, deviceId);
12033
12063
  },
12064
+ readResolvedDeviceStore: (deviceId, schemaDefaults) => resolver.resolve(deviceId, schemaDefaults),
12034
12065
  readDeviceStoreBatch: (deviceIds) => deviceStore.readBatch(deviceIds),
12035
12066
  listDeviceStoreIds: () => deviceStore.listIds(),
12036
12067
  writeDeviceStore: (deviceId, patch) => deviceStore.merge(deviceId, patch),
@@ -23755,16 +23786,6 @@ function createRunnerAddonSettings(client, addonId) {
23755
23786
  }
23756
23787
  //#endregion
23757
23788
  //#region src/kernel/moleculer/runner-device-settings.ts
23758
- /**
23759
- * The forked runner's `ctx.settings` device methods (D870).
23760
- *
23761
- * A runner does not hold the settings door; it holds a tRPC client of the hub's
23762
- * `settings-store` cap. This file adapts that client to the door slice the
23763
- * per-device store needs and hands back the five view methods — the SAME module
23764
- * hub-main's view uses, so a device's settings are one set of rows whichever
23765
- * process asks. Before D870 the runner kept its own `<addonId>:addon-devices`
23766
- * blob per device; a hub-side write to the rows was invisible to it.
23767
- */
23768
23789
  /** The door slice the per-device store needs, over a tRPC client. */
23769
23790
  function doorOverClient(client) {
23770
23791
  return {
@@ -23785,15 +23806,19 @@ function createRunnerDeviceSettings(client, addonId) {
23785
23806
  };
23786
23807
  return {
23787
23808
  readDeviceStore: async () => refuse(),
23809
+ readResolvedDeviceStore: async () => refuse(),
23788
23810
  readDeviceStoreBatch: async () => refuse(),
23789
23811
  listDeviceStoreIds: async () => refuse(),
23790
23812
  writeDeviceStore: async () => refuse(),
23791
23813
  clearDeviceStore: async () => refuse()
23792
23814
  };
23793
23815
  }
23794
- const store = createDeviceSettingsStore(doorOverClient(client), addonId);
23816
+ const door = doorOverClient(client);
23817
+ const store = createDeviceSettingsStore(door, addonId);
23818
+ const resolver = createDeviceSettingsResolver(door, addonId);
23795
23819
  return {
23796
23820
  readDeviceStore: (deviceId) => readDeviceOrThrow(store, deviceId),
23821
+ readResolvedDeviceStore: (deviceId, schemaDefaults) => resolver.resolve(deviceId, schemaDefaults),
23797
23822
  readDeviceStoreBatch: (ids) => store.readBatch(ids),
23798
23823
  listDeviceStoreIds: () => store.listIds(),
23799
23824
  writeDeviceStore: (deviceId, patch) => store.merge(deviceId, patch),
@@ -28035,4 +28060,4 @@ function resetCatalogRegistryForTests() {
28035
28060
  }
28036
28061
  //#endregion
28037
28062
  var readAllRows = import_read_all_rows.readAllRows;
28038
- export { ADDON_VERSION_REASON_HUB, ADDON_VERSION_REASON_REGISTRY_LATEST, AGENT_CAP_FWD_ACTION, AGENT_CAP_FWD_SERVICE, AGENT_DASHBOARD_ORIGINS_FIELD, AGENT_HTTPS_NAMES_COLLECTION, AGENT_HTTPS_NAMES_COLUMNS, AGENT_MAIN_HEAP_WATCH_LABEL, AGENT_READINESS_SERVICE_NAME, AGENT_UI_UNLOCK_TTL_MS, AGENT_UI_UNLOCK_TYP, AGENT_UI_UNLOCK_USE, AGENT_UI_UNLOCK_VERSION, ALL_CAPABILITY_DEFINITIONS, ARRAY_BUFFER_CENSUS_COOLDOWN_MS, ARRAY_BUFFER_CENSUS_SUSTAIN_MS, ARRAY_BUFFER_CENSUS_THRESHOLD_MB, ARRAY_BUFFER_RELEASE_MIN_DROP_RATIO, AddonApiFactory, AddonDepsManager, AddonEngineManager, AddonHealthMonitor, AddonInstaller, AddonLoader, AddonManifest, AddonRefusedError, AddonRouteRegistry, AgentHttpsInstallError, AgentHttpsNames, AgentMdnsAdvertiser, AgentMeshIdentityGate, AgentPairing, AlertCenterAddon, AuthAuditLog, AuthManager, BackupDecryptError, BackupKeyFormatError, BackupKeyMismatchError, BackupKeyRequiredError, CAP_ACTION_OVERFLOW_LABEL, CAP_ACTION_UNLABELLED, CAP_METHOD_NOT_IMPLEMENTED, CA_COMMON_NAME, CA_VALIDITY_DAYS, CORE_CAP_SERVICE_NAME, CalendarsAddon, CapRouteError, CapRouteResolver, CapUsageRegistry, CapabilityHandle, CapabilityRegistry, CapabilityUnavailableError, CatalogRegistry, ClusterNodeHistoryBodySchema, ClusterNodeTombstoneBodySchema, ComposerAddon, ConfigManager, ConfigStore, ConsoleDestination, ConsoleLoggingAddon, CoreBlocksAddon, CustomActionRegistry, DECISIVE_HEAP_SPACES, DEFAULT_DATA_PATH, DEFAULT_HUB_TLS_TCP_PORT, DEFAULT_LAN_HTTP_PORT, DEFAULT_LOG_LEVEL, DEVICE_CA_KEY_REF, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DataPlaneRegistry, DeviceCaStore, DeviceCredentialManager, DeviceHistoryAddon, DeviceManagerAddon, DeviceRegistry, DeviceStore, EMPTY_CAP_ACTION_READING, EMPTY_SOCKET_DIRECTION, EMPTY_SOCKET_PLANE_BASELINE, EVENT_PLANE_TOP_N, EVENT_TOPIC_PREFIX, EngineManagerResolver, EventBus, FIRST_BOOT_ADMIN_PASSWORD, FIRST_BOOT_ADMIN_USERNAME, FeatureManager, FilesystemStorageAddon, FilesystemStorageProvider, FrameDecoder, FsStorageBackend, GET_STATUS_METHOD, HEALTH_MONITOR_GRACE_PERIOD_MS, HEALTH_MONITOR_RETRY_INTERVALS_MS, HEALTH_MONITOR_TICK_MS, HEAP_RECLAIM_MIN_INTERVAL_MS, HEAP_RECLAIM_STEADY_STATE_INTERVAL_MS, HEAP_RECLAIM_TRIGGER_MB, HEAP_SPACE_REPORT_MIN_MB, HEAP_WATCH_INTERVAL_MS, HEAP_WATCH_WARN_RATIO, HUB_CAP_FWD_ACTION, HUB_CAP_FWD_SERVICE, HUB_MAIN_HEAP_WATCH_LABEL, HUB_MAIN_RSS_BUDGET_MB, HUB_RSS_BUDGET_ENV, HUB_RSS_BUDGET_OVERRIDE_SOURCE, HubForwarderAddon, HubForwarderDestination, HubLogForwarder, HubNodeRegistry, HubPairing, INFRA_CAPABILITIES, INTEGRATIONS_LEGACY, INTEGRATION_SETTINGS_LEGACY, IntegrationRegistry, InvalidCorsOriginError, JWT_SIGNING_KEY_REF, JobJournal, JwtSigningKeyUnavailableError, LEAF_RENEWAL_WINDOW_DAYS, LifecycleJobEngine, LifecycleStateMachine, LivenessMonitorAddon, LocalAuthAddon, LocalChildClient, LocalChildRegistry, LogManager, LogRingBuffer, LoggingGate, LoginSessionManager, LokiDestination, LokiLoggingAddon, MAX_CAP_ACTIONS_PER_PEER, MAX_LEAF_VALIDITY_DAYS, MEMBERSHIP_PATHS, MESH_ACTION_FORBIDDEN_TYPE, MESH_CA_FIELD, MESH_CA_KEY_REF, MESH_CA_SETTINGS_KEY, MESH_NODE_CERTIFICATES_COLLECTION, MESH_NODE_CERTIFICATES_COLUMNS, MESH_NODE_UNAUTHENTICATED_TYPE, MESH_QUEUE_TOP_N, MESH_TLS_PORT_HELLO_FIELD, METHOD_ACCESS_MAP, MembershipResponder, MeshCaKeeper, MeshCertificateRegistry, MeshCrl, MeshIdentityGate, ModelDownloadService, NATIVE_PROVIDER_SERVICE_INFIX, NATIVE_SCAN_DEPTH, NativeMetricsAddon, NativeMetricsProvider, NetworkQualityTracker, NotificationService, OPAQUE_ORIGIN, OUTBOUND_QUEUE_COOLDOWN_MS, OUTBOUND_QUEUE_SUSTAIN_MS, OUTBOUND_QUEUE_THRESHOLD_BYTES, PAIRING_CODE_DIGITS, PAIRING_MAX_CODE_ATTEMPTS, PAIRING_MAX_SESSIONS, PAIRING_PATHS, PAIRING_PIN_DIGITS, PAIRING_PROTOCOL, PAIRING_TTL_MS, PARENT_ROUTED_PROVIDER_ADDON_ID, PERMITTED_DNS_SUFFIXES, PERMITTED_IP_RANGES, PREVIOUS_LEAF_GRACE_MS, PYTHON_VERSION, PairingHttpError, PeerAnsweredError, PipelineRunner, PipelineValidator, PythonEnvManager, QUARANTINE_DIRNAME, REFRESH_TOKEN_PREFIX, RENEWAL_ABANDONED, RESTART_MARKER_FILE, RSS_BUDGET_REANNOUNCE_MIN_MS, RSS_BUDGET_RELEASE_RATIO, RUNNER_HEAP_WATCH_INTERVAL_MS, RUNNER_RSS_BUDGET_ENV, RUNTIME_DEFAULTS, ReadinessRegistry, ReadinessTimeoutError, RecordsEngine, ReplEngine, RingBuffer, SERVER_AUTH_OID, SERVER_NAMESPACE, SOCKET_PLANE_TOP_N, SOCKET_QUEUE_TOP_N, STALL_REPORT_MS, STALL_TICK_MS, STORAGE_DRAIN_STATE_LEGACY, STORE_READABLE_BOOTSTRAP_KEYS, SYSTEM_SECRET_OWNER, ScopedLogger, SettingsReadUnavailableError, SocketChannel, SqliteSettingsAddon, SqliteSettingsBackend, StagingArea, StorageLocationManager, StorageManager, StorageOrchestratorAddon, StorageOrchestratorService, SystemBackupService, SystemConfigAddon, SystemEventBus, TRADITIONAL_NATIVE_PACKAGES, TlsTcpTransporter, ToastService, UDS_NO_ROUTE_PREFIX, UNCLAIMED, UPLOADED_CA_FILE, USER_MANAGEMENT_INTERNAL, UdsLocalTransportClient, UdsLocalTransportServer, UnlockTicketJtiStore, UserManager, WinstonDestination, WinstonLoggingAddon, ZERO_LOOP_DELAY, __resetCapUsageRegistryForTests, __resetLoggingGateForTests, acceptAgentSans, adaptBrokerToCluster, addonSettingsCapability, adoptModelRevisions, afterWorkerOnlineAnnounce, agentHttpsPaths, allFamiliesListenHost, answerClaimedGetStatus, answerDeviceCallRedirect, applyCertificateToListener, applyLanHttp, asBrokerLike, attachUserManagementInternal, attributeStall, backupOrchestratorRecordKinds, backupRecordStoresOf, bareAddonOf, bindPendingLanHttp, bootstrapSchema, brokerCallForCap, brokerTransportLink, buildAgentAnnouncement, buildBinaryPath, buildCapRouters, buildHeapSample, buildLinkChain, buildNameConstraintSet, buildNativeCapProxy, buildNodeManifest, buildNpmChildEnv, buildStorageLocationRegistry, buildTransporter, builderMountedCapNames, caFingerprint, caFingerprintCompact, caReplacementMarkerFile, callRegisterNodeWithRetry, callWithServiceDiscovery, canServeDataPlane, capActionLabel, capActionName, capActionSuffix, capBareAction, capServiceName, catalogNamespaceOf, certificateNames, chainsToPublicRoot, checkUploadedCa, classifyAddonDir, classifyCapRoute, clearHttpsListener, clearPendingRestart, clearPlatformKeychainKey, closeLanHttp, clusterAgentRecordKinds, clusterEventTopic, clusterNodeHistoryRecordKind, clusterNodeTombstoneRecordKind, collectAgentNames, collectCertIdentity, collectModelFiles, compileLogFilter, computePairingCommitment, computePairingSas, connectBrokerTransport, contentTypeFor, copyDirRecursive, copyExtraFileDirs, createAddonContext, createAddonDataPlaneFacility, createAddonPeerBytesFacility, createAddonService, createAgentEventScope, createAgentHttpsRequest, createAgentTransport, createArrayBufferCensusGate, createAuthenticatedFileServer, createBroker, createBrokerDeviceManagerApi, createCapActionCensus, createCiaoPublisher, createCidrMatcher, createCoreCapService, createCoreCatalogRegistry, createDeferredHeapWatchSink, createDoorSettingsView, createEventPlaneMeter, createEventPlaneReader, createFileDataPlaneHandler, createHubCapForwardService, createHubService, createInspectorArrayBufferCensus, createKernelHwAccel, createKernelInferenceEngine, createLocalTransport, createLoopDelayMeter, createMeshAccessMiddleware, createMeshCsrPem, createMeshQueueReader, createOutboundQueueGate, createParentUnownedCallHandler, createProcessService, createReadinessService, createReadinessServiceForRegistry, createScopedProcessManager, createSocketDirectionCounters, createSocketPlaneMeter, createSocketPlaneReader, createStreamProbeBrokerService, createUdsAddonContext, createUdsEventBridge, createUdsEventBus, createUdsLogger, createUdsLoggerWithControl, createV8Reclaimer, currentBrokerTransporter, decideAddonVersionMove, deleteModelFromDisk, deriveAgentListenPort, describeCsr, describeHttpsLeaf, describeMeshLeaf, describeProviderKindDrift, describeRss, deviceCapResolverLink, deviceOfGetStatus, diffCapActionCensus, diffEventPlane, diffSocketPlane, disconnectBrokerTransport, downloadBinary, downloadFile, downloadModel, dropProcessPeer, emitDownForOwnedCaps, emitHeapDiagnosticReport, emitProcessNodeRegistered, encodeFrame, ensureAddonNativePrebuilds, ensureBinary, ensureDir, ensureFfmpeg, ensureModel, ensureNativePrebuilds, ensurePython, ensureTlsCert, evaluateExistingCert, expandCapMethods, exportMeshPrivateKeyPem, fetchJson, filterIsEmpty, findAddonRefusal, findInPath, formatArrayBufferCensus, formatEventPlane, formatHeapSpaces, formatLogLine, formatMeshQueue, formatOutboundQueueVerdict, formatSocketPlane, generateBackupKeyPair, generateDeviceCa, generateMeshCa, generateMeshKeyPair, getBrokerEventBus, getBrokerTlsTransporter, getCapUsageRegistry, getCatalogRegistry, getFfmpegDownloadUrl, getLocalEventInterest, getLoggingGate, getModelFilePath, getMoleculerEventStats, getOrInitReadinessRegistry, getOrInitReadinessRegistryForClient, getPidStats, getPlatformInfo, getPlatformKeychainKey, getProcessAgentHttpsNames, getProcessJwtSigningKeyState, getProcessMeshCaState, getProcessMeshCertificateRegistry, getProcessMeshTlsListenerState, getProcessNodeMeshTransport, getProcessPeerLeaf, getPythonDownloadUrl, getRestartMarkerPath, getSinglePidStats, getUserManagementInternal, getWorkerDeviceRegistry, hasDotNode, heapSpaceField, hostNodeIdOf, hubHostFromMeshAddress, hubMainRssBudget, hubServerVersionOf, installAgentHttps, installBrokerTransporter, installManifestNativeDeps, installManifestPythonDeps, installManifestSystemDeps, installPackageFromNpm, installPythonPackages, installPythonRequirements, integrationRegistryRecordKinds, ipcParentLink, isAddonDeploySource, isAllowedAgentDashboardReturnTo, isArrayBufferCensusReport, isArrayOutputSchema, isCollectionArrayMethod, isConstrainedCa, isContainerBridgeAddress, isCredentialKeyName, isInfraCapability, isInsecureOrigin, isInstalledTransporter, isLocalOnlyHostname, isModelDownloaded, isPeerEventPacket, isPrivateAddress, isProcessVerifiedMeshPeer, isRemoteForbiddenAction, isRemoteForbiddenOnAgent, isSettingsReadUnavailable, isSourceNewer, isValidAgentNodeId, isolatedBuiltinPhase, issueAgentHttpsLeaf, issueDeviceLeaf, issueMeshLeafForNode, issueMeshLeafFromCsr, keyFingerprintShort, leafFingerprintOf, levelRank, lineContainsText, lineMatches, loadAgentHttps, loadBootstrapConfig, loadDeviceCa, loadMeshCa, loadTlsCert, localCaCommonName, localEndpointPath, localProviderLink, localSupportedPythonRuntimes, mapSignalsToInferenceHardware, meshErrorType, mintAgentUiUnlockTicket, mountNativeCapService, nextRssBudgetState, normalizeIp, normalizeOrigin, onLocalEventInterestChange, onProcessNodeRegistered, onSessionsRevoked, openMeshTlsWhenRevocationsLoaded, originNodeOf, overlayGetStatus, parseAgentDashboardOrigins, parseCapAction, parseCidrList, parseOriginList, parseRangeHeader, parseRssBudgetMb, parseTokenExpiry, parseTokenizedUrl, partitionIsolatedBuiltinIds, pemDigest, permitsIdentity, permitsName, pinnedHttpsCaFingerprint, preferencesLimitReasonOf, prepareBootTls, prepareRestoreArchive, probePlatform, processJwtSigningKey, processMeshCrl, proxyToUpstream, quarantineAddonResidue, readAllRows, readBackupEncryptionHeader, readCidrSetting, readExtraSans, readHeapSpaces, readLanHttpState, readNameConstraints, readOriginSetting, readPendingRestart, readSocketQueues, readTlsAccessStatus, readTlsEnabled, readTlsMode, readinessKey, reclaimIntervalMs, recordSocketFrame, redactLogEntry, redactLogMeta, redactLogText, regenerateCertificate, registerEventBusService, registerHttpsListener, registerLanHttpHandler, reissueTlsLeaf, reloadHttpsListener, renewMeshCertificate, replaceUnconstrainedLocalCa, requireProcessMeshCa, resetCatalogRegistryForTests, resolveFilePath, resolveFormatRevision, resolveHwAccel, resolveNpmInvocation, retirePreviousLocalCa, revertToGeneratedCertificate, revisionWeightUrl, revokeMeshCertificate, runHubAddonBoot, runNpm, sampleSocketDirection, scheduleSelfRestart, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, selectAddonResidue, selectReportedSpaces, serializeTypedArrays, servedHttpsLeafFingerprint, setHubConnected, setHuggingFaceReachabilityObserver, setNodeEventInterest, setPlatformKeychainKey, setProcessAgentHttpsNames, setProcessMeshCertificateRegistry, setProcessMeshPeerTransportLookup, setProcessMeshTlsEnabler, setProcessMeshTlsListenerState, setWrapperActive, shouldReclaim, signMembershipProof, signPairingProof, signalAllRunnerGroups, socketDirectionBytes, socketDirectionMessages, splitPemCertificates, stampCallerAddonId, startEventLoopStallMonitor, startHeapWatch, startRunnerHeapWatch, staticJwtSigningKey, storageOrchestratorRecordKinds, storeMayAnswer, storeUploadedCertificate, strandedMb, stripCamstackDeps, stripForgedIdentity, stripForwardedCaller, subscribePassthrough, systemHostFacts, udsChildLogToWorkerEntry, useStoredUploadedCertificate, validateProviderRegistrations, validateUploadedTls, verifyAgentUiUnlockTicket, verifyDeviceLeaf, verifyDeviceSignature, verifyMembershipAnswer, verifyPairingProof, waitUntilReady, writeExtraSans, writePendingRestart, writeTlsEnabled, writeTlsMode };
28063
+ export { ADDON_VERSION_REASON_HUB, ADDON_VERSION_REASON_REGISTRY_LATEST, AGENT_CAP_FWD_ACTION, AGENT_CAP_FWD_SERVICE, AGENT_DASHBOARD_ORIGINS_FIELD, AGENT_HTTPS_NAMES_COLLECTION, AGENT_HTTPS_NAMES_COLUMNS, AGENT_MAIN_HEAP_WATCH_LABEL, AGENT_READINESS_SERVICE_NAME, AGENT_UI_UNLOCK_TTL_MS, AGENT_UI_UNLOCK_TYP, AGENT_UI_UNLOCK_USE, AGENT_UI_UNLOCK_VERSION, ALL_CAPABILITY_DEFINITIONS, ARRAY_BUFFER_CENSUS_COOLDOWN_MS, ARRAY_BUFFER_CENSUS_SUSTAIN_MS, ARRAY_BUFFER_CENSUS_THRESHOLD_MB, ARRAY_BUFFER_RELEASE_MIN_DROP_RATIO, AddonApiFactory, AddonDepsManager, AddonEngineManager, AddonHealthMonitor, AddonInstaller, AddonLoader, AddonManifest, AddonRefusedError, AddonRouteRegistry, AgentHttpsInstallError, AgentHttpsNames, AgentMdnsAdvertiser, AgentMeshIdentityGate, AgentPairing, AlertCenterAddon, AuthAuditLog, AuthManager, BackupDecryptError, BackupKeyFormatError, BackupKeyMismatchError, BackupKeyRequiredError, CAP_ACTION_OVERFLOW_LABEL, CAP_ACTION_UNLABELLED, CAP_METHOD_NOT_IMPLEMENTED, CA_COMMON_NAME, CA_VALIDITY_DAYS, CORE_CAP_SERVICE_NAME, CalendarsAddon, CapRouteError, CapRouteResolver, CapUsageRegistry, CapabilityHandle, CapabilityRegistry, CapabilityUnavailableError, CatalogRegistry, ClusterNodeHistoryBodySchema, ClusterNodeTombstoneBodySchema, ComposerAddon, ConfigManager, ConfigStore, ConsoleDestination, ConsoleLoggingAddon, CoreBlocksAddon, CustomActionRegistry, DECISIVE_HEAP_SPACES, DEFAULT_DATA_PATH, DEFAULT_HUB_TLS_TCP_PORT, DEFAULT_LAN_HTTP_PORT, DEFAULT_LOG_LEVEL, DEVICE_CA_KEY_REF, DEVICE_SETTINGS_CONTRIBUTION_METHODS, DEVICE_STATUS_METHOD, DataPlaneRegistry, DeviceCaStore, DeviceCredentialManager, DeviceHistoryAddon, DeviceManagerAddon, DeviceRegistry, DeviceStore, EMPTY_CAP_ACTION_READING, EMPTY_SOCKET_DIRECTION, EMPTY_SOCKET_PLANE_BASELINE, EVENT_PLANE_TOP_N, EVENT_TOPIC_PREFIX, EngineManagerResolver, EventBus, FIRST_BOOT_ADMIN_PASSWORD, FIRST_BOOT_ADMIN_USERNAME, FeatureManager, FilesystemStorageAddon, FilesystemStorageProvider, FrameDecoder, FsStorageBackend, GET_STATUS_METHOD, HEALTH_MONITOR_GRACE_PERIOD_MS, HEALTH_MONITOR_RETRY_INTERVALS_MS, HEALTH_MONITOR_TICK_MS, HEAP_RECLAIM_MIN_INTERVAL_MS, HEAP_RECLAIM_STEADY_STATE_INTERVAL_MS, HEAP_RECLAIM_TRIGGER_MB, HEAP_SPACE_REPORT_MIN_MB, HEAP_WATCH_INTERVAL_MS, HEAP_WATCH_WARN_RATIO, HUB_CAP_FWD_ACTION, HUB_CAP_FWD_SERVICE, HUB_MAIN_HEAP_WATCH_LABEL, HUB_MAIN_RSS_BUDGET_MB, HUB_RSS_BUDGET_ENV, HUB_RSS_BUDGET_OVERRIDE_SOURCE, HubForwarderAddon, HubForwarderDestination, HubLogForwarder, HubNodeRegistry, HubPairing, INFRA_CAPABILITIES, INTEGRATIONS_LEGACY, INTEGRATION_SETTINGS_LEGACY, IntegrationRegistry, InvalidCorsOriginError, JWT_SIGNING_KEY_REF, JobJournal, JwtSigningKeyUnavailableError, LEAF_RENEWAL_WINDOW_DAYS, LifecycleJobEngine, LifecycleStateMachine, LivenessMonitorAddon, LocalAuthAddon, LocalChildClient, LocalChildRegistry, LogManager, LogRingBuffer, LoggingGate, LoginSessionManager, LokiDestination, LokiLoggingAddon, MAX_CAP_ACTIONS_PER_PEER, MAX_LEAF_VALIDITY_DAYS, MEMBERSHIP_PATHS, MESH_ACTION_FORBIDDEN_TYPE, MESH_CA_FIELD, MESH_CA_KEY_REF, MESH_CA_SETTINGS_KEY, MESH_NODE_CERTIFICATES_COLLECTION, MESH_NODE_CERTIFICATES_COLUMNS, MESH_NODE_UNAUTHENTICATED_TYPE, MESH_QUEUE_TOP_N, MESH_TLS_PORT_HELLO_FIELD, METHOD_ACCESS_MAP, MembershipResponder, MeshCaKeeper, MeshCertificateRegistry, MeshCrl, MeshIdentityGate, ModelDownloadService, NATIVE_PROVIDER_SERVICE_INFIX, NATIVE_SCAN_DEPTH, NativeMetricsAddon, NativeMetricsProvider, NetworkQualityTracker, NotificationService, OPAQUE_ORIGIN, OUTBOUND_QUEUE_COOLDOWN_MS, OUTBOUND_QUEUE_SUSTAIN_MS, OUTBOUND_QUEUE_THRESHOLD_BYTES, PAIRING_CODE_DIGITS, PAIRING_MAX_CODE_ATTEMPTS, PAIRING_MAX_SESSIONS, PAIRING_PATHS, PAIRING_PIN_DIGITS, PAIRING_PROTOCOL, PAIRING_TTL_MS, PARENT_ROUTED_PROVIDER_ADDON_ID, PERMITTED_DNS_SUFFIXES, PERMITTED_IP_RANGES, PREVIOUS_LEAF_GRACE_MS, PYTHON_VERSION, PairingHttpError, PeerAnsweredError, PipelineRunner, PipelineValidator, PythonEnvManager, QUARANTINE_DIRNAME, REFRESH_TOKEN_PREFIX, RENEWAL_ABANDONED, RESTART_MARKER_FILE, RSS_BUDGET_REANNOUNCE_MIN_MS, RSS_BUDGET_RELEASE_RATIO, RUNNER_HEAP_WATCH_INTERVAL_MS, RUNNER_RSS_BUDGET_ENV, RUNTIME_DEFAULTS, ReadinessRegistry, ReadinessTimeoutError, RecordsEngine, ReplEngine, RingBuffer, SERVER_AUTH_OID, SERVER_NAMESPACE, SOCKET_PLANE_TOP_N, SOCKET_QUEUE_TOP_N, STALL_REPORT_MS, STALL_TICK_MS, STORAGE_DRAIN_STATE_LEGACY, STORE_READABLE_BOOTSTRAP_KEYS, SYSTEM_SECRET_OWNER, ScopedLogger, SettingsReadUnavailableError, SocketChannel, SqliteSettingsAddon, SqliteSettingsBackend, StagingArea, StorageLocationManager, StorageManager, StorageOrchestratorAddon, StorageOrchestratorService, SystemBackupService, SystemConfigAddon, SystemEventBus, TRADITIONAL_NATIVE_PACKAGES, TlsTcpTransporter, ToastService, UDS_NO_ROUTE_PREFIX, UNCLAIMED, UPLOADED_CA_FILE, USER_MANAGEMENT_INTERNAL, UdsLocalTransportClient, UdsLocalTransportServer, UnlockTicketJtiStore, UserManager, WinstonDestination, WinstonLoggingAddon, ZERO_LOOP_DELAY, __resetCapUsageRegistryForTests, __resetLoggingGateForTests, acceptAgentSans, adaptBrokerToCluster, addonSettingsCapability, adoptModelRevisions, afterWorkerOnlineAnnounce, agentHttpsPaths, allFamiliesListenHost, answerClaimedGetStatus, answerDeviceCallRedirect, applyCertificateToListener, applyLanHttp, asBrokerLike, attachUserManagementInternal, attributeStall, backupOrchestratorRecordKinds, backupRecordStoresOf, bareAddonOf, bindPendingLanHttp, bootstrapSchema, brokerCallForCap, brokerTransportLink, buildAgentAnnouncement, buildBinaryPath, buildCapRouters, buildHeapSample, buildLinkChain, buildNameConstraintSet, buildNativeCapProxy, buildNodeManifest, buildNpmChildEnv, buildStorageLocationRegistry, buildTransporter, builderMountedCapNames, caFingerprint, caFingerprintCompact, caReplacementMarkerFile, callRegisterNodeWithRetry, callWithServiceDiscovery, canServeDataPlane, capActionLabel, capActionName, capActionSuffix, capBareAction, capServiceName, catalogNamespaceOf, certificateNames, chainsToPublicRoot, checkUploadedCa, classifyAddonDir, classifyCapRoute, clearHttpsListener, clearNodeSettings, clearPendingRestart, clearPlatformKeychainKey, closeLanHttp, clusterAgentRecordKinds, clusterEventTopic, clusterNodeHistoryRecordKind, clusterNodeTombstoneRecordKind, collectAgentNames, collectCertIdentity, collectModelFiles, compileLogFilter, computePairingCommitment, computePairingSas, connectBrokerTransport, contentTypeFor, copyDirRecursive, copyExtraFileDirs, createAddonContext, createAddonDataPlaneFacility, createAddonPeerBytesFacility, createAddonService, createAgentEventScope, createAgentHttpsRequest, createAgentTransport, createArrayBufferCensusGate, createAuthenticatedFileServer, createBroker, createBrokerDeviceManagerApi, createCapActionCensus, createCiaoPublisher, createCidrMatcher, createCoreCapService, createCoreCatalogRegistry, createDeferredHeapWatchSink, createDoorSettingsView, createEventPlaneMeter, createEventPlaneReader, createFileDataPlaneHandler, createHubCapForwardService, createHubService, createInspectorArrayBufferCensus, createKernelHwAccel, createKernelInferenceEngine, createLocalTransport, createLoopDelayMeter, createMeshAccessMiddleware, createMeshCsrPem, createMeshQueueReader, createOutboundQueueGate, createParentUnownedCallHandler, createProcessService, createReadinessService, createReadinessServiceForRegistry, createScopedProcessManager, createSocketDirectionCounters, createSocketPlaneMeter, createSocketPlaneReader, createStreamProbeBrokerService, createUdsAddonContext, createUdsEventBridge, createUdsEventBus, createUdsLogger, createUdsLoggerWithControl, createV8Reclaimer, currentBrokerTransporter, decideAddonVersionMove, deleteModelFromDisk, deriveAgentListenPort, describeCsr, describeHttpsLeaf, describeMeshLeaf, describeProviderKindDrift, describeRss, deviceCapResolverLink, deviceOfGetStatus, diffCapActionCensus, diffEventPlane, diffSocketPlane, disconnectBrokerTransport, downloadBinary, downloadFile, downloadModel, dropProcessPeer, emitDownForOwnedCaps, emitHeapDiagnosticReport, emitProcessNodeRegistered, encodeFrame, ensureAddonNativePrebuilds, ensureBinary, ensureDir, ensureFfmpeg, ensureModel, ensureNativePrebuilds, ensurePython, ensureTlsCert, evaluateExistingCert, expandCapMethods, exportMeshPrivateKeyPem, fetchJson, filterIsEmpty, findAddonRefusal, findInPath, formatArrayBufferCensus, formatEventPlane, formatHeapSpaces, formatLogLine, formatMeshQueue, formatOutboundQueueVerdict, formatSocketPlane, generateBackupKeyPair, generateDeviceCa, generateMeshCa, generateMeshKeyPair, getBrokerEventBus, getBrokerTlsTransporter, getCapUsageRegistry, getCatalogRegistry, getFfmpegDownloadUrl, getLocalEventInterest, getLoggingGate, getModelFilePath, getMoleculerEventStats, getOrInitReadinessRegistry, getOrInitReadinessRegistryForClient, getPidStats, getPlatformInfo, getPlatformKeychainKey, getProcessAgentHttpsNames, getProcessJwtSigningKeyState, getProcessMeshCaState, getProcessMeshCertificateRegistry, getProcessMeshTlsListenerState, getProcessNodeMeshTransport, getProcessPeerLeaf, getPythonDownloadUrl, getRestartMarkerPath, getSinglePidStats, getUserManagementInternal, getWorkerDeviceRegistry, hasDotNode, heapSpaceField, hostNodeIdOf, hubHostFromMeshAddress, hubMainRssBudget, hubServerVersionOf, installAgentHttps, installBrokerTransporter, installManifestNativeDeps, installManifestPythonDeps, installManifestSystemDeps, installPackageFromNpm, installPythonPackages, installPythonRequirements, integrationRegistryRecordKinds, ipcParentLink, isAddonDeploySource, isAllowedAgentDashboardReturnTo, isArrayBufferCensusReport, isArrayOutputSchema, isCollectionArrayMethod, isConstrainedCa, isContainerBridgeAddress, isCredentialKeyName, isInfraCapability, isInsecureOrigin, isInstalledTransporter, isLocalOnlyHostname, isModelDownloaded, isPeerEventPacket, isPrivateAddress, isProcessVerifiedMeshPeer, isRemoteForbiddenAction, isRemoteForbiddenOnAgent, isSettingsReadUnavailable, isSourceNewer, isValidAgentNodeId, isolatedBuiltinPhase, issueAgentHttpsLeaf, issueDeviceLeaf, issueMeshLeafForNode, issueMeshLeafFromCsr, keyFingerprintShort, leafFingerprintOf, levelRank, lineContainsText, lineMatches, loadAgentHttps, loadBootstrapConfig, loadDeviceCa, loadMeshCa, loadTlsCert, localCaCommonName, localEndpointPath, localProviderLink, localSupportedPythonRuntimes, mapSignalsToInferenceHardware, meshErrorType, mintAgentUiUnlockTicket, mountNativeCapService, nextRssBudgetState, normalizeIp, normalizeOrigin, onLocalEventInterestChange, onProcessNodeRegistered, onSessionsRevoked, openMeshTlsWhenRevocationsLoaded, originNodeOf, overlayGetStatus, parseAgentDashboardOrigins, parseCapAction, parseCidrList, parseOriginList, parseRangeHeader, parseRssBudgetMb, parseTokenExpiry, parseTokenizedUrl, partitionIsolatedBuiltinIds, pemDigest, permitsIdentity, permitsName, pinnedHttpsCaFingerprint, preferencesLimitReasonOf, prepareBootTls, prepareRestoreArchive, probePlatform, processJwtSigningKey, processMeshCrl, proxyToUpstream, quarantineAddonResidue, readAllRows, readBackupEncryptionHeader, readCidrSetting, readExtraSans, readHeapSpaces, readLanHttpState, readNameConstraints, readOriginSetting, readPendingRestart, readSocketQueues, readTlsAccessStatus, readTlsEnabled, readTlsMode, readinessKey, reclaimIntervalMs, recordSocketFrame, redactLogEntry, redactLogMeta, redactLogText, regenerateCertificate, registerEventBusService, registerHttpsListener, registerLanHttpHandler, reissueTlsLeaf, reloadHttpsListener, renewMeshCertificate, replaceUnconstrainedLocalCa, requireProcessMeshCa, resetCatalogRegistryForTests, resolveFilePath, resolveFormatRevision, resolveHwAccel, resolveNpmInvocation, retirePreviousLocalCa, revertToGeneratedCertificate, revisionWeightUrl, revokeMeshCertificate, runHubAddonBoot, runNpm, sampleSocketDirection, scheduleSelfRestart, scopeKey, scopesAllowAddon, scopesAllowDeviceCap, selectAddonResidue, selectReportedSpaces, serializeTypedArrays, servedHttpsLeafFingerprint, setHubConnected, setHuggingFaceReachabilityObserver, setNodeEventInterest, setPlatformKeychainKey, setProcessAgentHttpsNames, setProcessMeshCertificateRegistry, setProcessMeshPeerTransportLookup, setProcessMeshTlsEnabler, setProcessMeshTlsListenerState, setWrapperActive, shouldReclaim, signMembershipProof, signPairingProof, signalAllRunnerGroups, socketDirectionBytes, socketDirectionMessages, splitPemCertificates, stampCallerAddonId, startEventLoopStallMonitor, startHeapWatch, startRunnerHeapWatch, staticJwtSigningKey, storageOrchestratorRecordKinds, storeMayAnswer, storeUploadedCertificate, strandedMb, stripCamstackDeps, stripForgedIdentity, stripForwardedCaller, subscribePassthrough, systemHostFacts, udsChildLogToWorkerEntry, useStoredUploadedCertificate, validateProviderRegistrations, validateUploadedTls, verifyAgentUiUnlockTicket, verifyDeviceLeaf, verifyDeviceSignature, verifyMembershipAnswer, verifyPairingProof, waitUntilReady, writeExtraSans, writePendingRestart, writeTlsEnabled, writeTlsMode };
@@ -39,5 +39,30 @@ export interface AddonSettingsStore {
39
39
  readKey(key: string): Promise<AddonSettingKeyRead>;
40
40
  /** Set the fields of `patch`; a field whose value is `undefined` is removed. ONE transaction, no read. */
41
41
  merge(patch: Readonly<Record<string, unknown>>): Promise<void>;
42
+ /**
43
+ * The cluster and fleet-default rows: every field with NO node suffix (D986). A node row
44
+ * (`<field>@<nodeId>`) is never part of it.
45
+ */
46
+ readUnscoped(): Promise<AddonSettingsRead>;
47
+ /**
48
+ * ONE node's rows, keyed by the BARE field. A primary-key range read over the addon's prefix,
49
+ * filtered on the `@<nodeId>` suffix, so another node's value never leaks in.
50
+ */
51
+ readNode(nodeId: string): Promise<AddonSettingsRead>;
52
+ /** {@link merge} for one node: bare fields in, `<field>@<nodeId>` rows out, each carrying `nodeId`. */
53
+ mergeNode(nodeId: string, patch: Readonly<Record<string, unknown>>): Promise<void>;
42
54
  }
55
+ /**
56
+ * The central delete of a forgotten node (D986, the node twin of `clearDeviceSettings`): every
57
+ * `addon-settings` row of EVERY addon that carries this node id, in one statement. Matched on
58
+ * the `nodeId` each node row carries. A cluster row, a fleet-default row and a device row have
59
+ * none, so nothing else goes. Returns how many rows went.
60
+ */
61
+ export declare function clearNodeSettings(door: Pick<ISettingsStoreProvider, "deleteWhere">, nodeId: string): Promise<number>;
62
+ /**
63
+ * The cluster and fleet-default rows of one addon (no node suffix), through the `query` slice
64
+ * alone, so a runner's client door serves it as hub-main's door does. Three-way like every read
65
+ * here; the device resolver's fleet-default layer (D986).
66
+ */
67
+ export declare function readUnscopedAddonSettings(door: Pick<ISettingsStoreProvider, "query">, addonId: string): Promise<AddonSettingsRead>;
43
68
  export declare function createAddonSettingsStore(door: AddonSettingsDoor, addonId: string): AddonSettingsStore;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * The ONE fleet-default resolver (D986 point 3), shared by hub-main's settings view and the forked
3
+ * runner's, over the same two stores both already use (D870):
4
+ *
5
+ * device row (`addon-device-settings`) -> fleet-default row (`addon-settings`) -> schema default
6
+ *
7
+ * `readDeviceStore` keeps returning the device's RAW overrides; this is a separate, additive read
8
+ * that says, per field, the value AND where it came from (`device` | `fleet-default` |
9
+ * `schema-default`), so a device form can mark an inherited field and offer Reset. Reset is "delete
10
+ * the device row" (`writeDeviceStore(id, { field: undefined })`): an override equal to the default
11
+ * stays an override.
12
+ *
13
+ * Both layers are read THREE-way: a store that did not answer THROWS. Falling back to the schema
14
+ * default on a failed read would show, and let a caller act on, a value nobody chose (D49).
15
+ */
16
+ import { type ResolvedSettings } from "@camstack/types/addon";
17
+ import { type DeviceSettingsDoor } from "./device-settings-store.js";
18
+ /** The door slice the resolver needs: the per-device store's, which already carries `query`. */
19
+ export type DeviceSettingsResolverDoor = DeviceSettingsDoor;
20
+ export interface DeviceSettingsResolver {
21
+ /**
22
+ * @param schemaDefaults the device form's field defaults; they name the fields resolved.
23
+ * @throws when either store could not be read.
24
+ */
25
+ resolve(deviceId: number, schemaDefaults: Readonly<Record<string, unknown>>): Promise<ResolvedSettings>;
26
+ }
27
+ export declare function createDeviceSettingsResolver(door: DeviceSettingsResolverDoor, addonId: string): DeviceSettingsResolver;
@@ -8,6 +8,7 @@
8
8
  * process asks. Before D870 the runner kept its own `<addonId>:addon-devices`
9
9
  * blob per device; a hub-side write to the rows was invisible to it.
10
10
  */
11
+ import type { ResolvedSettings } from "@camstack/types/addon";
11
12
  import { type DeviceSettingsDoor, type DeviceSettingsStore } from "../device-settings-store.js";
12
13
  /** The client calls the adapter uses. */
13
14
  export interface RunnerSettingsClient {
@@ -26,6 +27,7 @@ export declare function doorOverClient(client: RunnerSettingsClient): DeviceSett
26
27
  /** The per-device methods of a runner's `ctx.settings`. */
27
28
  export interface RunnerDeviceSettingsView {
28
29
  readDeviceStore(deviceId: number): Promise<Record<string, unknown>>;
30
+ readResolvedDeviceStore(deviceId: number, schemaDefaults: Readonly<Record<string, unknown>>): Promise<ResolvedSettings>;
29
31
  readDeviceStoreBatch: DeviceSettingsStore["readBatch"];
30
32
  listDeviceStoreIds: DeviceSettingsStore["listIds"];
31
33
  writeDeviceStore(deviceId: number, patch: Record<string, unknown>): Promise<void>;
@@ -38,4 +38,8 @@ export interface DoorSectionAccess {
38
38
  getSection(section: string): Promise<Record<string, unknown>>;
39
39
  setSection(section: string, patch: Record<string, unknown>): void | Promise<void>;
40
40
  }
41
- export declare function createDoorSettingsView(addonId: string, door: ISettingsStoreProvider, sections: DoorSectionAccess): SettingsViewBackend;
41
+ /** The door-backed view always resolves fleet defaults (D986); the sync-store one need not. */
42
+ export type DoorSettingsView = SettingsViewBackend & {
43
+ readonly readResolvedDeviceStore: NonNullable<SettingsViewBackend["readResolvedDeviceStore"]>;
44
+ };
45
+ export declare function createDoorSettingsView(addonId: string, door: ISettingsStoreProvider, sections: DoorSectionAccess): DoorSettingsView;
@@ -3,7 +3,7 @@
3
3
  * of `config-manager.ts` (D675) so that file stays one class; every name is
4
4
  * re-exported from there, so importers are unchanged.
5
5
  */
6
- import type { AddonStoreRead, StoredKeyRead } from "@camstack/types";
6
+ import type { AddonStoreRead, ResolvedSettings, StoredKeyRead } from "@camstack/types";
7
7
  export interface AddonSettingsView {
8
8
  readAddonStore(): Promise<Record<string, unknown>>;
9
9
  /** See `IAddonContext['settings'].readAddonStoreResult` (D651). */
@@ -12,6 +12,12 @@ export interface AddonSettingsView {
12
12
  readAddonStoreKeyResult?(key: string): Promise<StoredKeyRead>;
13
13
  writeAddonStore(patch: Record<string, unknown>): Promise<void>;
14
14
  readDeviceStore(deviceId: number): Promise<Record<string, unknown>>;
15
+ /**
16
+ * The device's effective settings, per field value AND source: device row, then the fleet-default
17
+ * row, then the schema default (D986). `readDeviceStore` stays the raw overrides. Throws when a
18
+ * store could not be read.
19
+ */
20
+ readResolvedDeviceStore?(deviceId: number, schemaDefaults: Readonly<Record<string, unknown>>): Promise<ResolvedSettings>;
15
21
  /** See `IAddonContext['settings'].readDeviceStoreBatch`. */
16
22
  readDeviceStoreBatch(deviceIds: readonly number[]): Promise<ReadonlyMap<number, Record<string, unknown>>>;
17
23
  /** See `IAddonContext['settings'].listDeviceStoreIds`. */
@@ -0,0 +1,3 @@
1
+ import type { HubPlanMigration } from "../../builtins/sqlite-storage/migrations/migration-types.js";
2
+ export declare const ADDON_SETTINGS_NODE_ID_MIGRATION_ID = "hub/2026-11-02-addon-settings-node-id";
3
+ export declare const ADDON_SETTINGS_NODE_ID_MIGRATION: HubPlanMigration;
@@ -2,10 +2,9 @@
2
2
  * The hub-store migration catalogue (D987): every migration the hub applies to
3
3
  * `camstack.db`, `events.db` and `history.db` at boot, in declaration order.
4
4
  *
5
- * Empty on purpose in the first release of the engine: the engine ships and is
6
- * proven on test migrations, and each real conversion arrives with the shape
7
- * change that needs it, as one entry here with a spec that asserts a marked
8
- * field survived. The ids are never reused or removed once released.
5
+ * The engine shipped empty and is proven on test migrations; each real
6
+ * conversion arrives with the shape change that needs it, as one entry here with
7
+ * a spec that asserts a marked field survived. The ids are never reused or removed once released.
9
8
  */
10
9
  import type { HubMigration } from "../../builtins/sqlite-storage/migrations/migration-types.js";
11
10
  export declare const HUB_MIGRATIONS: readonly HubMigration[];
@@ -1,5 +1,5 @@
1
1
  const require_chunk = require("./chunk-Cek0wNdY.js");
2
- const require_dist = require("./dist-CwYYyGAB.js");
2
+ const require_dist = require("./dist-DDl6NKUe.js");
3
3
  let zod = require("zod");
4
4
  let node_crypto = require("node:crypto");
5
5
  let buffer = require("buffer");
@@ -1,4 +1,4 @@
1
- import { G as DataStoreDatabaseSchema, M as DATABASE_SNAPSHOT_SUFFIX, is as defineRecordKinds } from "./dist-DcHvuBfD.mjs";
1
+ import { G as DataStoreDatabaseSchema, M as DATABASE_SNAPSHOT_SUFFIX, is as defineRecordKinds } from "./dist-SXRVvbkS.mjs";
2
2
  import { z } from "zod";
3
3
  import { createCipheriv, createDecipheriv, createHash, createPrivateKey, createPublicKey, diffieHellman, generateKeyPairSync, hkdfSync, randomBytes } from "node:crypto";
4
4
  import { Buffer as Buffer$1 } from "buffer";
@@ -1,4 +1,4 @@
1
- import { Gs as DeviceType, bo as HISTORY_DEFAULT_MIN_INTERVAL_MS, us as historyItemFieldPath } from "./dist-DcHvuBfD.mjs";
1
+ import { Ks as DeviceType, bo as HISTORY_DEFAULT_MIN_INTERVAL_MS, us as historyItemFieldPath } from "./dist-SXRVvbkS.mjs";
2
2
  //#region src/builtins/device-history/store/series-registry.ts
3
3
  function subjectIdOf(subject) {
4
4
  return subject.kind === "device" ? `d:${subject.deviceId}` : `n:${subject.nodeId}`;
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-CwYYyGAB.js");
1
+ const require_dist = require("./dist-DDl6NKUe.js");
2
2
  //#region src/builtins/device-history/store/series-registry.ts
3
3
  function subjectIdOf(subject) {
4
4
  return subject.kind === "device" ? `d:${subject.deviceId}` : `n:${subject.nodeId}`;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/server",
3
- "version": "1.2.733",
3
+ "version": "1.2.734",
4
4
  "description": "CamStack builtins — shipped inside @camstack/server (generated, do not edit)",
5
5
  "license": "MIT",
6
6
  "camstack": {