@camstack/server 1.2.810 → 1.2.812

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 (116) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/api/trpc/cap-router-runtime.js +3 -0
  3. package/dist/api/trpc/generated-cap-mounts.js +3 -1
  4. package/dist/api/trpc/generated-cap-routers.js +1869 -1789
  5. package/dist/core/addon/hub-addon-api.js +8 -1
  6. package/dist/core/moleculer/moleculer.service.js +3 -0
  7. package/package.json +9 -42
  8. package/system/dist/addon-runner.js +4 -1
  9. package/system/dist/addon-runner.mjs +5 -2
  10. package/system/dist/{agent-https-B5cYxyQW.mjs → agent-https-CyEBY3RB.mjs} +1 -1
  11. package/system/dist/{agent-https-C0QE8tXs.js → agent-https-a3mE4PW4.js} +1 -1
  12. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  13. package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  14. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  15. package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  16. package/system/dist/builtins/alerts/alerts.addon.js +3 -101
  17. package/system/dist/builtins/alerts/alerts.addon.mjs +40 -134
  18. package/system/dist/builtins/autotrack/index.js +1 -1
  19. package/system/dist/builtins/autotrack/index.mjs +1 -1
  20. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
  21. package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
  22. package/system/dist/builtins/calendars/calendars.addon.js +1 -1
  23. package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
  24. package/system/dist/builtins/camera-grid/index.js +1 -1
  25. package/system/dist/builtins/camera-grid/index.mjs +1 -1
  26. package/system/dist/builtins/composer/composer.addon.js +6 -5
  27. package/system/dist/builtins/composer/composer.addon.mjs +6 -5
  28. package/system/dist/builtins/console-logging/index.js +1 -1
  29. package/system/dist/builtins/console-logging/index.mjs +1 -1
  30. package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +2 -0
  31. package/system/dist/builtins/core-blocks/core-blocks.addon.js +358 -32
  32. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +361 -35
  33. package/system/dist/builtins/core-blocks/hero-layout-service.d.ts +42 -0
  34. package/system/dist/builtins/core-blocks/remote-call-redirect.d.ts +1 -1
  35. package/system/dist/builtins/core-blocks/remote-service.d.ts +38 -0
  36. package/system/dist/builtins/device-history/device-history.addon.d.ts +5 -0
  37. package/system/dist/builtins/device-history/device-history.addon.js +357 -18
  38. package/system/dist/builtins/device-history/device-history.addon.mjs +357 -18
  39. package/system/dist/builtins/device-history/retention/retention.d.ts +14 -1
  40. package/system/dist/builtins/device-history/transitions/device-transitions-record-kinds.d.ts +14 -0
  41. package/system/dist/builtins/device-history/transitions/transitions-service.d.ts +80 -0
  42. package/system/dist/builtins/device-manager/device-manager.addon.d.ts +2 -0
  43. package/system/dist/builtins/device-manager/device-manager.addon.js +712 -18
  44. package/system/dist/builtins/device-manager/device-manager.addon.mjs +780 -95
  45. package/system/dist/builtins/device-manager/device-state-mirror.d.ts +7 -0
  46. package/system/dist/builtins/device-manager/transitions/command-args.d.ts +4 -0
  47. package/system/dist/builtins/device-manager/transitions/transition-correlator.d.ts +68 -0
  48. package/system/dist/builtins/device-manager/transitions/transitions-sender.d.ts +37 -0
  49. package/system/dist/builtins/device-manager/transitions/transitions-wiring.d.ts +25 -0
  50. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  51. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  52. package/system/dist/builtins/keychain/index.js +4 -4
  53. package/system/dist/builtins/keychain/index.mjs +4 -4
  54. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  55. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  56. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  57. package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
  58. package/system/dist/builtins/local-network/local-network.addon.js +2 -2
  59. package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
  60. package/system/dist/builtins/loki-logging/index.js +1 -1
  61. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  62. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  63. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  64. package/system/dist/builtins/platform-probe/index.js +1 -1
  65. package/system/dist/builtins/platform-probe/index.mjs +1 -1
  66. package/system/dist/builtins/record-entries/index.js +1 -1
  67. package/system/dist/builtins/record-entries/index.mjs +1 -1
  68. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  69. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  70. package/system/dist/builtins/snapshot/index.js +1 -1
  71. package/system/dist/builtins/snapshot/index.mjs +1 -1
  72. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  73. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  74. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  75. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  76. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
  77. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
  78. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  79. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  80. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  81. package/system/dist/builtins/system-config/system-config.addon.mjs +284 -284
  82. package/system/dist/builtins/winston-logging/index.js +1 -1
  83. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  84. package/system/dist/{capture-engine-DHvJXvuV.js → capture-engine-BO9mSlY-.js} +1 -1
  85. package/system/dist/{capture-engine-Ci4GwgjQ.mjs → capture-engine-ByF-6AFH.mjs} +1 -1
  86. package/system/dist/{composition-sources-CXJ0SzYJ.mjs → composition-sources-AziMFo7T.mjs} +1 -1
  87. package/system/dist/{composition-sources-B-WY9L7z.js → composition-sources-BMJUPUh2.js} +1 -1
  88. package/system/dist/{constants-DAuOjW5K.mjs → constants-CTikgsC_.mjs} +1 -1
  89. package/system/dist/{constants-DnJ2vuC7.js → constants-CjRlgRlu.js} +1 -1
  90. package/system/dist/{device-ca-D0HejZGK.mjs → device-ca-CNRlFqFC.mjs} +1 -1
  91. package/system/dist/{device-ca-BRpXm-B0.js → device-ca-Dxl6kVcJ.js} +1 -1
  92. package/system/dist/{dist-BLxWQm_m.mjs → dist-BPq13Y8j.mjs} +17392 -15506
  93. package/system/dist/{dist-DZQowBDF.js → dist-CkJnelZr.js} +17463 -15511
  94. package/system/dist/file-host-worker.js +1 -1
  95. package/system/dist/file-host-worker.mjs +1 -1
  96. package/system/dist/{hub-mdns-ciao-BJx5WmFx.mjs → hub-mdns-ciao-CrjItezp.mjs} +2 -2
  97. package/system/dist/{hub-mdns-ciao-ClSuN_QT.js → hub-mdns-ciao-Cx6yJBl9.js} +2 -2
  98. package/system/dist/index.js +67 -75
  99. package/system/dist/index.mjs +53 -68
  100. package/system/dist/kernel/cap-router-builder.d.ts +9 -0
  101. package/system/dist/kernel/command-observation.d.ts +76 -0
  102. package/system/dist/kernel/index.d.ts +2 -0
  103. package/system/dist/kernel/transport/child-cap-protocol.d.ts +10 -1
  104. package/system/dist/kernel/transport/local-child-registry.d.ts +15 -0
  105. package/system/dist/{legacy-integration-rows-door-BiNKE2zW.js → legacy-integration-rows-door-CKM-LxvL.js} +1 -1
  106. package/system/dist/{legacy-integration-rows-door-CN84_M7B.mjs → legacy-integration-rows-door-Dxcqwc-w.mjs} +1 -1
  107. package/system/dist/log-redactor-BhIEMaG9.js +149 -0
  108. package/system/dist/log-redactor-XLDrPzOi.mjs +120 -0
  109. package/system/dist/logging/log-redactor.d.ts +2 -0
  110. package/system/dist/{restore-archive-Co1yYMV3.js → restore-archive-BQWOdGAB.js} +1 -1
  111. package/system/dist/{restore-archive-gLW5oc1w.mjs → restore-archive-r3zTdLKr.mjs} +82 -82
  112. package/system/dist/{retention-BNONb5X_.js → retention-BcOSL6b9.js} +33 -2
  113. package/system/dist/{retention-B9l9TnGE.mjs → retention-CUOVI1p7.mjs} +33 -2
  114. package/system/dist/{wal-maintenance-BQaIM_cY.js → wal-maintenance-CiCgL4Hp.js} +0 -0
  115. package/system/dist/{wal-maintenance-Zji_8sLK.mjs → wal-maintenance-zJ4-ORo6.mjs} +0 -0
  116. package/system/package.json +7 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.812] - 2026-11-08
11
+
12
+ ### Changed
13
+
14
+ - Rebuilt against updated dependencies.
15
+
16
+ ## [1.2.811] - 2026-11-08
17
+
18
+ ### Changed
19
+
20
+ - The device hero capability (hero-layout) is exposed on the API
21
+ - The remote runs declared sources under a per-device lock, resolves a source by name or channel number and refuses undeclared channels; custom buttons are no longer sources
22
+ - Device history keeps a ledger of device transitions (who changed what, and the outcome) with its own retention, default 365 days, in the same Retention settings.
23
+ - Device commands are observed where the caller is known (hub API, forked addon, in-process addon) for the device transition audit.
24
+ - The hub now audits device commands and the state changes they cause: a command is matched to the device's own report within 30 s, or recorded as unconfirmed or failed
25
+ - Device transition audit: command arguments are redacted at any depth (pin, otp, code, key included) and a chatty device field writes one row per 10 s
26
+
10
27
  ## [1.2.810] - 2026-11-08
11
28
 
12
29
  ### Changed
@@ -524,6 +524,9 @@ function createCapRouterServices(deps) {
524
524
  message: `Capability "${capName}" has no method "${method}"`,
525
525
  });
526
526
  },
527
+ // Device commands served by the hub mount (D1022): the principal is read
528
+ // from the request context; the hub mirror's correlator listens here.
529
+ commandObserver: (obs) => (0, system_1.getCommandObserverRegistry)().observe(obs),
527
530
  };
528
531
  }
529
532
  /**
@@ -2,7 +2,7 @@
2
2
  // AUTO-GENERATED by scripts/generate-cap-mounts.ts — DO NOT EDIT
3
3
  // Re-run: npx tsx scripts/generate-cap-mounts.ts
4
4
  //
5
- // Mounted: 198 Skipped (legacy): 3
5
+ // Mounted: 200 Skipped (legacy): 3
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.LEGACY_SHAPE_SKIP = void 0;
8
8
  exports.mountAllCaps = mountAllCaps;
@@ -277,6 +277,7 @@ function mountAllCaps(services) {
277
277
  deviceRuns: (0, generated_cap_routers_js_1.createCapRouter_deviceRuns)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'device-runs'), remoteCapProxy),
278
278
  deviceState: (0, generated_cap_routers_js_1.createCapRouter_deviceState)((_ctx) => reg?.getSingleton('device-state') ?? null, remoteCapProxy),
279
279
  deviceStatus: (0, generated_cap_routers_js_1.createCapRouter_deviceStatus)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'device-status'), remoteCapProxy),
280
+ deviceTransitions: (0, generated_cap_routers_js_1.createCapRouter_deviceTransitions)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'device-transitions'), remoteCapProxy),
280
281
  dishwasher: (0, generated_cap_routers_js_1.createCapRouter_dishwasher)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'dishwasher'), remoteCapProxy),
281
282
  displayPalette: (0, generated_cap_routers_js_1.createCapRouter_displayPalette)((_ctx) => reg?.getSingleton('display-palette') ??
282
283
  null, remoteCapProxy),
@@ -321,6 +322,7 @@ function mountAllCaps(services) {
321
322
  groupCommands: (0, generated_cap_routers_js_1.createCapRouter_groupCommands)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'group-commands'), remoteCapProxy),
322
323
  groupStatus: (0, generated_cap_routers_js_1.createCapRouter_groupStatus)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'group-status'), remoteCapProxy),
323
324
  heatingValve: (0, generated_cap_routers_js_1.createCapRouter_heatingValve)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'heating-valve'), remoteCapProxy),
325
+ heroLayout: (0, generated_cap_routers_js_1.createCapRouter_heroLayout)((_ctx) => reg?.getSingleton('hero-layout') ?? null, remoteCapProxy),
324
326
  humidifier: (0, generated_cap_routers_js_1.createCapRouter_humidifier)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'humidifier'), remoteCapProxy),
325
327
  humiditySensor: (0, generated_cap_routers_js_1.createCapRouter_humiditySensor)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'humidity-sensor'), remoteCapProxy),
326
328
  image: (0, generated_cap_routers_js_1.createCapRouter_image)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'image'), remoteCapProxy),