@camstack/server 1.2.732 → 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 (101) hide show
  1. package/CHANGELOG.md +12 -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 -9
  5. package/system/dist/addon-runner.js +107 -82928
  6. package/system/dist/addon-runner.mjs +106 -82927
  7. package/system/dist/{agent-https-DKMO-__h.js → agent-https-DEmi-YQ_.js} +1 -1
  8. package/system/dist/{agent-https-CDtAIEne.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 +131 -23
  43. package/system/dist/builtins/local-network/local-network.addon.mjs +131 -23
  44. package/system/dist/builtins/local-network/scan/dns-wire.d.ts +35 -2
  45. package/system/dist/builtins/local-network/scan/scan-engine.d.ts +1 -1
  46. package/system/dist/builtins/local-network/scan/scan-io.d.ts +6 -0
  47. package/system/dist/builtins/loki-logging/index.js +1 -1
  48. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  49. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  50. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  51. package/system/dist/builtins/platform-probe/index.js +1 -1
  52. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  53. package/system/dist/builtins/record-entries/index.js +1 -1
  54. package/system/dist/builtins/record-entries/index.mjs +1 -1
  55. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  56. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  57. package/system/dist/builtins/snapshot/index.js +1 -1
  58. package/system/dist/builtins/snapshot/index.mjs +1 -1
  59. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  60. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  61. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  62. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  63. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2 -2
  64. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
  65. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  66. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  67. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  68. package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
  69. package/system/dist/builtins/winston-logging/index.js +1 -1
  70. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  71. package/system/dist/{composition-sources-UQohOHgd.js → composition-sources-DfyoPtMe.js} +1 -1
  72. package/system/dist/{composition-sources-Ca7JEbmu.mjs → composition-sources-wVMwuZ-r.mjs} +1 -1
  73. package/system/dist/{constants-iG57sUNp.mjs → constants-C8fjD4YU.mjs} +1 -1
  74. package/system/dist/{constants-CLA4ogvA.js → constants-CavIW3ee.js} +1 -1
  75. package/system/dist/{device-ca--iHw76cR.mjs → device-ca-B1vN9ZRB.mjs} +1 -1
  76. package/system/dist/{device-ca-BUcHAAew.js → device-ca-b_fSvUlI.js} +1 -1
  77. package/system/dist/{dist-qO48FNMZ.js → dist-DDl6NKUe.js} +110 -82
  78. package/system/dist/{dist-C_cZ9rGK.mjs → dist-SXRVvbkS.mjs} +105 -77
  79. package/system/dist/{dns-wire-CHXO1qSl.js → dns-wire-B1BvF9Ao.js} +84 -13
  80. package/system/dist/{dns-wire-DcL6a0L-.mjs → dns-wire-Dm3H_7ST.mjs} +61 -14
  81. package/system/dist/file-host-worker.js +1 -1
  82. package/system/dist/file-host-worker.mjs +1 -1
  83. package/system/dist/{hub-mdns-ciao-DDmMPZCN.js → hub-mdns-ciao-95JXbLd5.js} +2 -2
  84. package/system/dist/{hub-mdns-ciao-9wPOmsXd.mjs → hub-mdns-ciao-euMLdIPi.mjs} +2 -2
  85. package/system/dist/index.d.ts +1 -0
  86. package/system/dist/index.js +46 -20
  87. package/system/dist/index.mjs +46 -21
  88. package/system/dist/kernel/addon-settings-store.d.ts +25 -0
  89. package/system/dist/kernel/device-settings-resolver.d.ts +27 -0
  90. package/system/dist/kernel/moleculer/runner-device-settings.d.ts +2 -0
  91. package/system/dist/kernel/settings-door-view.d.ts +5 -1
  92. package/system/dist/kernel/settings-view-types.d.ts +7 -1
  93. package/system/dist/migrations/hub/2026-11-02-addon-settings-node-id.d.ts +3 -0
  94. package/system/dist/migrations/hub/index.d.ts +3 -4
  95. package/system/dist/{restore-archive-Cravj5LG.js → restore-archive-CMkK7SeP.js} +1 -1
  96. package/system/dist/{restore-archive-BHVjOlza.mjs → restore-archive-DbtbDgPC.mjs} +1 -1
  97. package/system/dist/{retention-C_9dxCQn.mjs → retention-BGUmx4FD.mjs} +1 -1
  98. package/system/dist/{retention-B_eloRtb.js → retention-DI_dDceD.js} +1 -1
  99. package/system/dist/{wal-maintenance-CfKeIQAG.js → wal-maintenance-BaPMwUtL.js} +0 -0
  100. package/system/dist/{wal-maintenance-Dw7rplkv.mjs → wal-maintenance-CgHJ7XTw.mjs} +0 -0
  101. 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-qO48FNMZ.js");
6
+ const require_dist = require("../../dist-DDl6NKUe.js");
7
7
  let node_fs_promises = require("node:fs/promises");
8
8
  let node_util = require("node:util");
9
9
  let node_os = require("node:os");
@@ -1,4 +1,4 @@
1
- import { Fi as reducePoints, Js as EventCategory, Nt as ROOT_BUCKET_KEY, Qt as UNATTRIBUTED_BUCKET_KEY, Vi as resolveBucketMs, is as createEvent, mo as BaseAddon, qs as errMsg, si as metricsProviderCapability, xr as foldSnapshotByFunction } from "../../dist-C_cZ9rGK.mjs";
1
+ import { Js as EventCategory, Mi as reducePoints, Nt as ROOT_BUCKET_KEY, Qt as UNATTRIBUTED_BUCKET_KEY, Ri as resolveBucketMs, br as foldSnapshotByFunction, do as BaseAddon, ii as metricsProviderCapability, qs as errMsg, ts as createEvent } from "../../dist-SXRVvbkS.mjs";
2
2
  import { access, readFile, readdir } from "node:fs/promises";
3
3
  import { promisify } from "node:util";
4
4
  import * as os$1 from "node:os";
@@ -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-qO48FNMZ.js");
6
+ const require_dist = require("../../dist-DDl6NKUe.js");
7
7
  const require_coral_accelerators = require("../../coral-accelerators-BSVsBVzt.js");
8
8
  let node_path = require("node:path");
9
9
  node_path = require_chunk.__toESM(node_path);
@@ -1,5 +1,5 @@
1
1
  import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
2
- import { Ei as platformProbeCapability, Js as EventCategory, ls as emitReadiness, mo as BaseAddon, na as scoreRuntimes, qs as errMsg, sr as enumerateInferenceDevices, xi as parseAcceleratorFactsJson } from "../../dist-C_cZ9rGK.mjs";
2
+ import { $i as scoreRuntimes, Ci as platformProbeCapability, Js as EventCategory, do as BaseAddon, or as enumerateInferenceDevices, os as emitReadiness, qs as errMsg, vi as parseAcceleratorFactsJson } from "../../dist-SXRVvbkS.mjs";
3
3
  import { n as detectCoralAccelerator, r as nodeCoralFs } from "../../coral-accelerators-DBlgWB8k.mjs";
4
4
  import * as path$1 from "node:path";
5
5
  import { promisify } from "node:util";
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  require("../../chunk-Cek0wNdY.js");
6
- const require_dist = require("../../dist-qO48FNMZ.js");
6
+ const require_dist = require("../../dist-DDl6NKUe.js");
7
7
  let zod = require("zod");
8
8
  let node_crypto = require("node:crypto");
9
9
  //#region src/builtins/record-entries/entries-service.ts
@@ -1,4 +1,4 @@
1
- import { Ko as UnknownRecordKindError, Ms as recordSecretRef, Ni as recordEntriesCapability, mo as BaseAddon, wo as InvalidRecordError, ws as mapSecretLeaves } from "../../dist-C_cZ9rGK.mjs";
1
+ import { Ai as recordEntriesCapability, Cs as mapSecretLeaves, Ms as recordSecretRef, Uo as UnknownRecordKindError, do as BaseAddon, xo as InvalidRecordError } from "../../dist-SXRVvbkS.mjs";
2
2
  import { z } from "zod";
3
3
  import { randomUUID } from "node:crypto";
4
4
  //#region src/builtins/record-entries/entries-service.ts
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
5
  require("../../chunk-Cek0wNdY.js");
6
- const require_dist = require("../../dist-qO48FNMZ.js");
6
+ const require_dist = require("../../dist-DDl6NKUe.js");
7
7
  //#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
8
8
  /**
9
9
  * Reconcile the durable `enabledProviders` set against authoritative
@@ -1,4 +1,4 @@
1
- import { Js as EventCategory, mo as BaseAddon } from "../../dist-C_cZ9rGK.mjs";
1
+ import { Js as EventCategory, do as BaseAddon } from "../../dist-SXRVvbkS.mjs";
2
2
  //#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
3
3
  /**
4
4
  * Reconcile the durable `enabledProviders` set against authoritative
@@ -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-qO48FNMZ.js");
6
+ const require_dist = require("../../dist-DDl6NKUe.js");
7
7
  const require_snapshot_courtesy = require("../../snapshot-courtesy-D_C5-nC0.js");
8
8
  let zod = require("zod");
9
9
  let node_crypto = require("node:crypto");
@@ -1,4 +1,4 @@
1
- import { Js as EventCategory, Ks as DeviceType, Ts as nodePin, Ws as DeviceFeature, Zn as deriveBatteryPresence, ai as memoizePinnedFfmpeg, h as BatteryStatusSchema, hn as batteryCapability, mn as bareAddonId, mo as BaseAddon, qs as errMsg, ua as snapshotCapability, va as streamQualityLabel } from "../../dist-C_cZ9rGK.mjs";
1
+ import { Js as EventCategory, Ks as DeviceType, Ts as nodePin, Ws as DeviceFeature, Xn as deriveBatteryPresence, do as BaseAddon, h as BatteryStatusSchema, ha as streamQualityLabel, hn as batteryCapability, mn as bareAddonId, ni as memoizePinnedFfmpeg, qs as errMsg, sa as snapshotCapability } from "../../dist-SXRVvbkS.mjs";
2
2
  import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourtesyJpeg } from "../../snapshot-courtesy-CyFs1M3I.mjs";
3
3
  import { z } from "zod";
4
4
  import { randomUUID } from "node:crypto";
@@ -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-qO48FNMZ.js");
6
+ const require_dist = require("../../dist-DDl6NKUe.js");
7
7
  let node_crypto = require("node:crypto");
8
8
  let node_fs_promises = require("node:fs/promises");
9
9
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import { br as filesystemBrowseCapability, ga as storageProviderCapability, mo as BaseAddon } from "../../dist-C_cZ9rGK.mjs";
1
+ import { do as BaseAddon, pa as storageProviderCapability, yr as filesystemBrowseCapability } from "../../dist-SXRVvbkS.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { mkdir, readdir, realpath, statfs } from "node:fs/promises";
4
4
  import * as path$1 from "node:path";
@@ -4,7 +4,7 @@ Object.defineProperties(exports, {
4
4
  });
5
5
  require("../../chunk-Cek0wNdY.js");
6
6
  const require_builtins_sqlite_storage_filesystem_storage_addon = require("./filesystem-storage.addon.js");
7
- const require_wal_maintenance = require("../../wal-maintenance-CfKeIQAG.js");
7
+ const require_wal_maintenance = require("../../wal-maintenance-BaPMwUtL.js");
8
8
  const require_builtins_sqlite_storage_sqlite_settings_addon = require("./sqlite-settings.addon.js");
9
9
  //#region src/builtins/sqlite-storage/config-store.ts
10
10
  var ConfigStore = class {
@@ -1,5 +1,5 @@
1
1
  import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./filesystem-storage.addon.mjs";
2
- import { B as SQLITE_ENGINE_STORM_WALL_SHARE, F as SQLITE_MMAP_FLOOR_BYTES, G as SqliteOpProfiler, H as SQLITE_PROFILE_REPORT_INTERVAL_MS, I as SQLITE_PAGE_CACHE_CEILING_KIB, K as sqliteEngineStorm, L as SQLITE_PAGE_CACHE_FLOOR_KIB, N as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, P as SQLITE_MMAP_CEILING_BYTES, R as sqliteMmapSizeFor, U as SQLITE_PROFILE_TOP_N, V as SQLITE_PROFILE_REPORT_FLOOR_MS, W as SQLITE_SLOW_CALL_MS, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as sqlitePageCacheKibFor } from "../../wal-maintenance-Dw7rplkv.mjs";
2
+ import { B as SQLITE_ENGINE_STORM_WALL_SHARE, F as SQLITE_MMAP_FLOOR_BYTES, G as SqliteOpProfiler, H as SQLITE_PROFILE_REPORT_INTERVAL_MS, I as SQLITE_PAGE_CACHE_CEILING_KIB, K as sqliteEngineStorm, L as SQLITE_PAGE_CACHE_FLOOR_KIB, N as SQLITE_JOURNAL_SIZE_LIMIT_BYTES, P as SQLITE_MMAP_CEILING_BYTES, R as sqliteMmapSizeFor, U as SQLITE_PROFILE_TOP_N, V as SQLITE_PROFILE_REPORT_FLOOR_MS, W as SQLITE_SLOW_CALL_MS, a as WalMaintenance, i as WAL_MAINTENANCE_INTERVAL_MS, l as SqliteSettingsBackend, n as WAL_HIGH_WATER_BYTES, r as WAL_IDLE_QUIET_MS, t as WAL_CHECKPOINT_BUSY_TIMEOUT_MS, z as sqlitePageCacheKibFor } from "../../wal-maintenance-CgHJ7XTw.mjs";
3
3
  import { SqliteSettingsAddon } from "./sqlite-settings.addon.mjs";
4
4
  //#region src/builtins/sqlite-storage/config-store.ts
5
5
  var ConfigStore = class {
@@ -3,9 +3,9 @@ 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-qO48FNMZ.js");
6
+ const require_dist = require("../../dist-DDl6NKUe.js");
7
7
  const require_retired_settings_keys = require("../../retired-settings-keys-C8nOOr5H.js");
8
- const require_wal_maintenance = require("../../wal-maintenance-CfKeIQAG.js");
8
+ const require_wal_maintenance = require("../../wal-maintenance-BaPMwUtL.js");
9
9
  const require_sqlite_snapshot_protocol = require("../../sqlite-snapshot-protocol-B9OndqZv.js");
10
10
  const require_wal_checkpoint_policy = require("../../wal-checkpoint-policy-d2z2qPqx.js");
11
11
  let zod = require("zod");
@@ -1,6 +1,6 @@
1
- import { Ds as normalizeSecretOwner, En as catalogueIssues, Gn as dataStoreProviderCapability, Js as EventCategory, Kn as databaseSnapshotCapability, Ko as UnknownRecordKindError, Lo as RecordKindDeclarationSchema, M as DATABASE_SNAPSHOT_SUFFIX, Ma as vectorStoreCapability, N as DATABASE_SNAPSHOT_TIMEOUT_MS, P as DATA_STORE_DATABASES, Pi as recordsCapability, Po as RUNTIME_DEFAULTS, To as NoCallerError, Tt as MigrationMetaSchema, Wo as TransactRefusedError, as as customAction, bi as orderMigrations, bo as DeclarationRefusedError, ci as migrationsCapability, fa as storageAdminCapability, j as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, jo as RECORD_SWEEP_INTERVAL_MS, mn as bareAddonId, mo as BaseAddon, ns as collectSecretMarkerRefs, os as defineCustomActions, qs as errMsg$1, wo as InvalidRecordError } from "../../dist-C_cZ9rGK.mjs";
1
+ import { $o as collectSecretMarkerRefs, Ds as normalizeSecretOwner, En as catalogueIssues, Gn as databaseSnapshotCapability, Js as EventCategory, M as DATABASE_SNAPSHOT_SUFFIX, N as DATABASE_SNAPSHOT_TIMEOUT_MS, Oo as RECORD_SWEEP_INTERVAL_MS, P as DATA_STORE_DATABASES, Po as RecordKindDeclarationSchema, So as NoCallerError, Tt as MigrationMetaSchema, Uo as UnknownRecordKindError, Vo as TransactRefusedError, Wn as dataStoreProviderCapability, _i as orderMigrations, _o as DeclarationRefusedError, ai as migrationsCapability, do as BaseAddon, j as DATABASE_SNAPSHOT_PARTIAL_SUFFIX, ji as recordsCapability, jo as RUNTIME_DEFAULTS, ka as vectorStoreCapability, la as storageAdminCapability, mn as bareAddonId, ns as customAction, qs as errMsg$1, rs as defineCustomActions, xo as InvalidRecordError } from "../../dist-SXRVvbkS.mjs";
2
2
  import { r as retiredKeyStoreOf, t as purgeRetiredSettingsKeys } from "../../retired-settings-keys-u6xQA6r7.mjs";
3
- import { A as callRecords, D as RecordsEngine, E as databaseOfStore, M as controlTargetOf, O as callControl, T as trustResult, _ as rehydrateError, a as WalMaintenance, b as collectTransferables, c as vectorProviderOfOwnedFile, d as callMigrate, f as migrateTargetOf, g as DuplicatePlacementError, h as DatabaseBusyError, j as callVector, k as callData, l as SqliteSettingsBackend, m as CrossDatabaseTransactError, o as createVectorIndex, p as CollectionPlacementError, s as vectorProviderOf, u as HUB_MIGRATIONS, x as isFileHostMessage } from "../../wal-maintenance-Dw7rplkv.mjs";
3
+ import { A as callRecords, D as RecordsEngine, E as databaseOfStore, M as controlTargetOf, O as callControl, T as trustResult, _ as rehydrateError, a as WalMaintenance, b as collectTransferables, c as vectorProviderOfOwnedFile, d as callMigrate, f as migrateTargetOf, g as DuplicatePlacementError, h as DatabaseBusyError, j as callVector, k as callData, l as SqliteSettingsBackend, m as CrossDatabaseTransactError, o as createVectorIndex, p as CollectionPlacementError, s as vectorProviderOf, u as HUB_MIGRATIONS, x as isFileHostMessage } from "../../wal-maintenance-CgHJ7XTw.mjs";
4
4
  import { r as isSnapshotWorkerMessage } from "../../sqlite-snapshot-protocol-2QaTouWV.mjs";
5
5
  import { a as isWorkerMessage, t as WAL_CHECKPOINT_LARGE_PASS_FRAMES } from "../../wal-checkpoint-policy-BahrTtyD.mjs";
6
6
  import { createRequire } from "node:module";
@@ -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-qO48FNMZ.js");
6
+ const require_dist = require("../../dist-DDl6NKUe.js");
7
7
  const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
8
8
  let zod = require("zod");
9
9
  let node_crypto = require("node:crypto");
@@ -1,4 +1,4 @@
1
- import { Es as normalizeNodeId, Fa as withLocationMode, Gi as resolveLocationMode, Gt as StorageCleanupJobSchema, Is as secretTreeFromPaths, Js as EventCategory, Jt as StorageMigrationJobSchema, Kr as legacyModeOf, Kt as StorageLocationModeSchema, Mo as REDACTED_SECRET, Os as parseJsonObject, Ps as resolveSecretMarkers, Vs as transformSecretWrite, bs as isSecretMarker, es as collectSecretConfigKeys, fr as evictionPolicyOfLocation, li as modeMayWrite, ma as storageMigrationCapability, mo as BaseAddon, ni as mayReadLocation, pa as storageCapability, qt as StorageLocationTypeSchema, ra as settingsStoreCapability, ri as mayWriteToLocation, ss as defineRecordKinds, wr as gbToBytes, yt as LegacyStorageLocationDefaultSchema, zr as isLocationEnabled } from "../../dist-C_cZ9rGK.mjs";
1
+ import { $r as mayReadLocation, Cr as gbToBytes, Es as normalizeNodeId, Gt as StorageCleanupJobSchema, Hi as resolveLocationMode, Ir as isLocationEnabled, Is as secretTreeFromPaths, Js as EventCategory, Jt as StorageMigrationJobSchema, Kt as StorageLocationModeSchema, Ma as withLocationMode, Os as parseJsonObject, Ps as resolveSecretMarkers, Ur as legacyModeOf, Vs as transformSecretWrite, Zo as collectSecretConfigKeys, da as storageMigrationCapability, do as BaseAddon, dr as evictionPolicyOfLocation, ea as settingsStoreCapability, ei as mayWriteToLocation, is as defineRecordKinds, ko as REDACTED_SECRET, oi as modeMayWrite, qt as StorageLocationTypeSchema, ua as storageCapability, ys as isSecretMarker, yt as LegacyStorageLocationDefaultSchema } from "../../dist-SXRVvbkS.mjs";
2
2
  import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
3
3
  import { z } from "zod";
4
4
  import { randomUUID } from "node:crypto";
@@ -3,11 +3,11 @@ 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-qO48FNMZ.js");
6
+ const require_dist = require("../../dist-DDl6NKUe.js");
7
7
  const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
8
8
  const require_x509_es = require("../../x509.es-WtnRNyYS.js");
9
- const require_agent_https = require("../../agent-https-DKMO-__h.js");
10
- const require_constants$8 = require("../../constants-CLA4ogvA.js");
9
+ const require_agent_https = require("../../agent-https-DEmi-YQ_.js");
10
+ const require_constants$8 = require("../../constants-CavIW3ee.js");
11
11
  const require_src$1 = require("../../src-CnAqG6EF.js");
12
12
  let zod = require("zod");
13
13
  let node_crypto = require("node:crypto");
@@ -1,9 +1,9 @@
1
1
  import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
2
- import { Ut as ServerNameSchema, as as customAction, mo as BaseAddon, ms as hydrateSchema, os as defineCustomActions, qs as errMsg, sa as shortHostname } from "../../dist-C_cZ9rGK.mjs";
2
+ import { Ut as ServerNameSchema, do as BaseAddon, fs as hydrateSchema, ia as shortHostname, ns as customAction, qs as errMsg, rs as defineCustomActions } from "../../dist-SXRVvbkS.mjs";
3
3
  import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
4
4
  import { C as backdatedNotBefore, S as withUtcTimeEncoding, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension } from "../../x509.es-BRiJgOvu.mjs";
5
- import { B as setProcessAgentHttpsNames, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, R as AgentHttpsNames, V as systemConfigRecordKinds, u as isPrivateAddress, z as getProcessAgentHttpsNames } from "../../agent-https-CDtAIEne.mjs";
6
- import { a as MESH_CA_KEY_REF, c as SERVER_AUTH_OID, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, r as MESH_CA_COMMON_NAME, s as MESH_CA_VALIDITY_DAYS, t as CLIENT_AUTH_OID } from "../../constants-iG57sUNp.mjs";
5
+ import { B as setProcessAgentHttpsNames, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, R as AgentHttpsNames, V as systemConfigRecordKinds, u as isPrivateAddress, z as getProcessAgentHttpsNames } from "../../agent-https-DGp4gFzH.mjs";
6
+ import { a as MESH_CA_KEY_REF, c as SERVER_AUTH_OID, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY, r as MESH_CA_COMMON_NAME, s as MESH_CA_VALIDITY_DAYS, t as CLIENT_AUTH_OID } from "../../constants-C8fjD4YU.mjs";
7
7
  import { t as require_src } from "../../src-hG4grMU4.mjs";
8
8
  import { z } from "zod";
9
9
  import { X509Certificate, createHash, createPrivateKey, randomBytes, randomInt, sign, timingSafeEqual, verify, webcrypto } from "node:crypto";
@@ -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-qO48FNMZ.js");
6
+ const require_dist = require("../../dist-DDl6NKUe.js");
7
7
  const require_formatter = require("../../formatter-xbxeV4GD.js");
8
8
  const require_log_file_read_protocol = require("../../log-file-read-protocol-D0WcLbIV.js");
9
9
  let node_path = require("node:path");
@@ -1,4 +1,4 @@
1
- import { $r as logDestinationCapability, mo as BaseAddon } from "../../dist-C_cZ9rGK.mjs";
1
+ import { Xr as logDestinationCapability, do as BaseAddon } from "../../dist-SXRVvbkS.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-B7M3X3bT.mjs";
4
4
  import { createRequire } from "node:module";
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-qO48FNMZ.js");
1
+ const require_dist = require("./dist-DDl6NKUe.js");
2
2
  //#region src/builtins/shared/device-state-changed.ts
3
3
  /** Structural narrowing helper for untrusted bus payloads. */
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- import { Za as compositionSourceKey, qs as errMsg } from "./dist-C_cZ9rGK.mjs";
1
+ import { Ja as compositionSourceKey, qs as errMsg } from "./dist-SXRVvbkS.mjs";
2
2
  //#region src/builtins/shared/device-state-changed.ts
3
3
  /** Structural narrowing helper for untrusted bus payloads. */
4
4
  function isRecord(value) {
@@ -1,4 +1,4 @@
1
- import { $o as buildSecretRef } from "./dist-C_cZ9rGK.mjs";
1
+ import { Xo as buildSecretRef } from "./dist-SXRVvbkS.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-qO48FNMZ.js").buildSecretRef({
2
+ var MESH_CA_KEY_REF = require("./dist-DDl6NKUe.js").buildSecretRef({
3
3
  owner: "system",
4
4
  scope: { kind: "global" },
5
5
  fieldPath: "meshCaKey"
@@ -1,4 +1,4 @@
1
- import { $o as buildSecretRef, H as DEVICE_SAN_CREDENTIAL_PREFIX, U as DEVICE_SAN_USER_PREFIX } from "./dist-C_cZ9rGK.mjs";
1
+ import { H as DEVICE_SAN_CREDENTIAL_PREFIX, U as DEVICE_SAN_USER_PREFIX, Xo as buildSecretRef } from "./dist-SXRVvbkS.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-qO48FNMZ.js");
1
+ const require_dist = require("./dist-DDl6NKUe.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
@@ -1162,7 +1162,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
1162
1162
  return DeviceRole;
1163
1163
  }({});
1164
1164
  //#endregion
1165
- //#region ../types/dist/sleep-B-vp7x15.mjs
1165
+ //#region ../types/dist/sleep-47MM9p3b.mjs
1166
1166
  /**
1167
1167
  * The audio chunk plane's byte format, and the ONE expansion from a coded
1168
1168
  * window to float samples (D455).
@@ -3118,6 +3118,44 @@ var BaseAddon = class {
3118
3118
  return null;
3119
3119
  }
3120
3120
  /**
3121
+ * D986 scoped settings: the form shape of the CLUSTER-wide settings one capability this addon
3122
+ * provides owns, or `null` when it has none. `cap` is a capability name the addon's manifest
3123
+ * declares. Stored as `addon-settings` rows `<addonId>.<field>`. The keys of this schema, of
3124
+ * {@link nodeSettingsSchema} and of {@link deviceDefaultsSchema} are disjoint, and a key never
3125
+ * contains `@` (guard `check-scoped-settings-declared`). SHAPE only: values are read by scope.
3126
+ */
3127
+ async clusterSettingsSchema(_cap) {
3128
+ return null;
3129
+ }
3130
+ /**
3131
+ * D986: the form shape of the settings one capability owns PER NODE, or `null`. Stored as
3132
+ * `addon-settings` rows `<addonId>.<field>@<nodeId>` carrying `nodeId` in the row data, so a
3133
+ * forgotten node's rows go in one central delete.
3134
+ */
3135
+ async nodeSettingsSchema(_cap) {
3136
+ return null;
3137
+ }
3138
+ /**
3139
+ * D986: the form shape of the FLEET DEFAULTS of the per-device settings one capability owns,
3140
+ * or `null`. Stored as `addon-settings` rows `<addonId>.<field>`; a device resolves its value
3141
+ * as device row, then this default, then the schema default (`resolveDeviceSettings`).
3142
+ */
3143
+ async deviceDefaultsSchema(_cap) {
3144
+ return null;
3145
+ }
3146
+ /**
3147
+ * The host's read of the scoped declarations: the schema one capability declares for `scope`,
3148
+ * or `null`. Beside {@link getIntegrationFormSchema}, the same shape: the hook is protected, the
3149
+ * host asks this method.
3150
+ */
3151
+ async getScopedSettingsSchema(scope, cap) {
3152
+ switch (scope) {
3153
+ case "cluster": return this.clusterSettingsSchema(cap);
3154
+ case "node": return this.nodeSettingsSchema(cap);
3155
+ case "device-defaults": return this.deviceDefaultsSchema(cap);
3156
+ }
3157
+ }
3158
+ /**
3121
3159
  * What the create wizard and the integration edit page render for one instance: the addon's
3122
3160
  * per-instance schema when it declares one, else its global schema (what they always showed).
3123
3161
  */
@@ -3912,6 +3950,17 @@ function normalizeAddonInitResult(result) {
3912
3950
  return result;
3913
3951
  }
3914
3952
  /**
3953
+ * The node id a node-scoped KEY carries: the part after the `@`. `null` for a key with no `@`
3954
+ * (a cluster or fleet-default key) or an empty node id. A schema key never contains `@`
3955
+ * (guard `check-scoped-settings-declared`), so the first `@` is the separator.
3956
+ */
3957
+ function nodeIdOfScopedKey(key) {
3958
+ const at = key.indexOf("@");
3959
+ if (at <= 0) return null;
3960
+ const nodeId = key.slice(at + 1);
3961
+ return nodeId === "" ? null : nodeId;
3962
+ }
3963
+ /**
3915
3964
  * Per-listener shared-secret header the hub injects on every reverse-proxied
3916
3965
  * data-plane request and the addon's framework wrapper validates — so only the
3917
3966
  * hub can reach the addon's `127.0.0.1` listener. Defined here (shared by the
@@ -5015,6 +5064,60 @@ var ProfileRtspEntrySchema = zod.z.object({
5015
5064
  codec: zod.z.string().optional(),
5016
5065
  resolution: CamStreamResolutionSchema.optional()
5017
5066
  });
5067
+ /** Every debug channel's name starts with this; the ring denies it by default. */
5068
+ var DEBUG_CHANNEL_PREFIX = "debug.";
5069
+ function isDebugChannelName(name) {
5070
+ return name.startsWith(DEBUG_CHANNEL_PREFIX);
5071
+ }
5072
+ /**
5073
+ * Who is watching what, in THIS process. In-memory, moved off the log path.
5074
+ *
5075
+ * `active` is a plain boolean FIELD, read first: with no watch anywhere, a
5076
+ * `ctx.debug` call is one load and one branch.
5077
+ */
5078
+ var DebugInterest = class {
5079
+ active = false;
5080
+ windows = /* @__PURE__ */ new Map();
5081
+ /**
5082
+ * Replace the interest with the FULL set of windows. Non-debug windows are
5083
+ * ignored and an absent one is dropped, so a lost disarm cannot leave a
5084
+ * channel running.
5085
+ */
5086
+ apply(windows, nowMs) {
5087
+ this.windows.clear();
5088
+ for (const window of windows) {
5089
+ if (!isDebugChannelName(window.channel) || window.armedUntilMs <= nowMs) continue;
5090
+ const ids = window.deviceIds;
5091
+ this.windows.set(window.channel, {
5092
+ untilMs: window.armedUntilMs,
5093
+ devices: ids === null || ids.length === 0 ? null : new Set(ids)
5094
+ });
5095
+ }
5096
+ this.active = this.windows.size > 0;
5097
+ }
5098
+ /** Drop what has lapsed. Called on a timer, never from a log path. */
5099
+ tick(nowMs) {
5100
+ const closed = [];
5101
+ for (const [name, window] of this.windows) if (window.untilMs <= nowMs) {
5102
+ this.windows.delete(name);
5103
+ closed.push(name);
5104
+ }
5105
+ this.active = this.windows.size > 0;
5106
+ return closed;
5107
+ }
5108
+ /** `channel` is the full name, `debug.<channel>`. */
5109
+ wants(channel, deviceId) {
5110
+ if (!this.active) return false;
5111
+ const window = this.windows.get(channel);
5112
+ if (window === void 0) return false;
5113
+ return window.devices === null || window.devices.has(deviceId);
5114
+ }
5115
+ };
5116
+ var interestInstance = null;
5117
+ function getDebugInterest() {
5118
+ interestInstance ??= new DebugInterest();
5119
+ return interestInstance;
5120
+ }
5018
5121
  var ReadinessTimeoutError = class extends Error {
5019
5122
  capName;
5020
5123
  scope;
@@ -14160,81 +14263,6 @@ var StorageLocationDeclarationSchema = zod.z.object({
14160
14263
  "backup"
14161
14264
  ]).optional()
14162
14265
  });
14163
- /** Every debug channel's name starts with this; the ring denies it by default. */
14164
- var DEBUG_CHANNEL_PREFIX = "debug.";
14165
- function isDebugChannelName(name) {
14166
- return name.startsWith(DEBUG_CHANNEL_PREFIX);
14167
- }
14168
- /**
14169
- * Who is watching what, in THIS process. In-memory, moved off the log path.
14170
- *
14171
- * `active` is a plain boolean FIELD, read first: with no watch anywhere, a
14172
- * `ctx.debug` call is one load and one branch.
14173
- */
14174
- var DebugInterest = class {
14175
- active = false;
14176
- windows = /* @__PURE__ */ new Map();
14177
- /**
14178
- * Replace the interest with the FULL set of windows. Non-debug windows are
14179
- * ignored and an absent one is dropped, so a lost disarm cannot leave a
14180
- * channel running.
14181
- */
14182
- apply(windows, nowMs) {
14183
- this.windows.clear();
14184
- for (const window of windows) {
14185
- if (!isDebugChannelName(window.channel) || window.armedUntilMs <= nowMs) continue;
14186
- const ids = window.deviceIds;
14187
- this.windows.set(window.channel, {
14188
- untilMs: window.armedUntilMs,
14189
- devices: ids === null || ids.length === 0 ? null : new Set(ids)
14190
- });
14191
- }
14192
- this.active = this.windows.size > 0;
14193
- }
14194
- /** Drop what has lapsed. Called on a timer, never from a log path. */
14195
- tick(nowMs) {
14196
- const closed = [];
14197
- for (const [name, window] of this.windows) if (window.untilMs <= nowMs) {
14198
- this.windows.delete(name);
14199
- closed.push(name);
14200
- }
14201
- this.active = this.windows.size > 0;
14202
- return closed;
14203
- }
14204
- /** `channel` is the full name, `debug.<channel>`. */
14205
- wants(channel, deviceId) {
14206
- if (!this.active) return false;
14207
- const window = this.windows.get(channel);
14208
- if (window === void 0) return false;
14209
- return window.devices === null || window.devices.has(deviceId);
14210
- }
14211
- };
14212
- var interestInstance = null;
14213
- function getDebugInterest() {
14214
- interestInstance ??= new DebugInterest();
14215
- return interestInstance;
14216
- }
14217
- /**
14218
- * Build `ctx.debug`. The thunk runs ONLY when somebody watches this
14219
- * (channel, device) pair, and the line carries `tags: { deviceId }` plus the
14220
- * `debug.<channel>` name as `logChannel`.
14221
- */
14222
- function createDebugEmitter(logger, interest = getDebugInterest()) {
14223
- return (channel, deviceId, thunk) => {
14224
- if (!interest.active) return;
14225
- const name = `${DEBUG_CHANNEL_PREFIX}${channel}`;
14226
- if (!interest.wants(name, deviceId)) return;
14227
- const line = thunk();
14228
- const tags = {
14229
- deviceId,
14230
- logChannel: name
14231
- };
14232
- logger.info(line.message, line.meta === void 0 ? { tags } : {
14233
- tags,
14234
- meta: line.meta
14235
- });
14236
- };
14237
- }
14238
14266
  /**
14239
14267
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
14240
14268
  * an addon declares its channels in.
@@ -110616,12 +110644,6 @@ Object.defineProperty(exports, "coverCapability", {
110616
110644
  return coverCapability;
110617
110645
  }
110618
110646
  });
110619
- Object.defineProperty(exports, "createDebugEmitter", {
110620
- enumerable: true,
110621
- get: function() {
110622
- return createDebugEmitter;
110623
- }
110624
- });
110625
110647
  Object.defineProperty(exports, "createDeviceExtensionProvider", {
110626
110648
  enumerable: true,
110627
110649
  get: function() {
@@ -111276,6 +111298,12 @@ Object.defineProperty(exports, "nextOccurrence", {
111276
111298
  return nextOccurrence;
111277
111299
  }
111278
111300
  });
111301
+ Object.defineProperty(exports, "nodeIdOfScopedKey", {
111302
+ enumerable: true,
111303
+ get: function() {
111304
+ return nodeIdOfScopedKey;
111305
+ }
111306
+ });
111279
111307
  Object.defineProperty(exports, "nodePin", {
111280
111308
  enumerable: true,
111281
111309
  get: function() {