@camstack/server 1.2.729 → 1.2.731

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 +18 -0
  2. package/dist/api/core/server-management.provider.js +10 -3
  3. package/dist/api/trpc/generated-cap-mounts.js +4 -1
  4. package/dist/api/trpc/generated-cap-routers.js +1864 -1765
  5. package/dist/boot/boot-config.js +2 -46
  6. package/dist/launch-args.js +72 -34
  7. package/dist/main.js +2 -1
  8. package/package.json +17 -19
  9. package/system/dist/addon-utils.mjs +1 -1
  10. package/system/dist/{agent-https-BXB7X23w.mjs → agent-https-AJPmB73W.mjs} +1 -1
  11. package/system/dist/{agent-https-BMmfwElS.js → agent-https-CLJhq0GZ.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 +4 -4
  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 +5 -5
  16. package/system/dist/builtins/alerts/alerts.addon.js +1 -1
  17. package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
  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 +5 -5
  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 +3 -3
  27. package/system/dist/builtins/composer/composer.addon.mjs +3 -3
  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 +6 -0
  31. package/system/dist/builtins/core-blocks/core-blocks.addon.js +1361 -440
  32. package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +1360 -440
  33. package/system/dist/builtins/core-blocks/fan-presets-action-source.d.ts +35 -0
  34. package/system/dist/builtins/core-blocks/fan-presets-service.d.ts +83 -0
  35. package/system/dist/builtins/core-blocks/fan-presets-wiring.d.ts +31 -0
  36. package/system/dist/builtins/core-blocks/record-kinds.d.ts +15 -0
  37. package/system/dist/builtins/core-blocks/timed-run/timed-run-service.d.ts +84 -0
  38. package/system/dist/builtins/core-blocks/timed-run/timed-run-wiring.d.ts +21 -0
  39. package/system/dist/builtins/device-history/device-history.addon.js +2 -2
  40. package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
  41. package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
  42. package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
  43. package/system/dist/builtins/hub-forwarder/index.js +1 -1
  44. package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
  45. package/system/dist/builtins/keychain/index.js +3 -3
  46. package/system/dist/builtins/keychain/index.mjs +3 -3
  47. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  48. package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  49. package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
  50. package/system/dist/builtins/local-auth/local-auth.addon.mjs +5 -5
  51. package/system/dist/builtins/local-network/local-network.addon.js +2 -2
  52. package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
  53. package/system/dist/builtins/loki-logging/index.js +1 -1
  54. package/system/dist/builtins/loki-logging/index.mjs +1 -1
  55. package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  56. package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +10 -10
  57. package/system/dist/builtins/platform-probe/index.js +1 -1
  58. package/system/dist/builtins/platform-probe/index.mjs +10 -10
  59. package/system/dist/builtins/record-entries/index.js +1 -1
  60. package/system/dist/builtins/record-entries/index.mjs +1 -1
  61. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  62. package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  63. package/system/dist/builtins/snapshot/index.js +1 -1
  64. package/system/dist/builtins/snapshot/index.mjs +1 -1
  65. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  66. package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +20 -20
  67. package/system/dist/builtins/sqlite-storage/index.js +1 -1
  68. package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
  69. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2 -2
  70. package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
  71. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  72. package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  73. package/system/dist/builtins/system-config/system-config.addon.js +3 -3
  74. package/system/dist/builtins/system-config/system-config.addon.mjs +285 -285
  75. package/system/dist/builtins/winston-logging/index.js +1 -1
  76. package/system/dist/builtins/winston-logging/index.mjs +1 -1
  77. package/system/dist/{composition-sources-D6b0p8Hl.js → composition-sources-BNBlJAgu.js} +1 -1
  78. package/system/dist/{composition-sources-BCfgVe9V.mjs → composition-sources-D-S2hhdw.mjs} +1 -1
  79. package/system/dist/{constants-ePrW9DMj.js → constants-CKwdQTnw.js} +1 -1
  80. package/system/dist/{constants-BQLyzulL.mjs → constants-DmithOex.mjs} +1 -1
  81. package/system/dist/{coral-accelerators-DBlgWB8k.mjs → coral-accelerators-BW3OcrLD.mjs} +6 -6
  82. package/system/dist/{custom-action-registry-oHl1xltx.mjs → custom-action-registry-BIJZBObd.mjs} +37 -37
  83. package/system/dist/{device-ca-C8X1AGHU.mjs → device-ca-D-Cvxobt.mjs} +1 -1
  84. package/system/dist/{device-ca-Dh9wjg_e.js → device-ca-TbdQfW4d.js} +1 -1
  85. package/system/dist/{dist-D-7p7cJp.js → dist-dQKZfa3-.js} +43443 -42687
  86. package/system/dist/{dist-XvOCXwnA.mjs → dist-yrk6fm65.mjs} +42934 -42238
  87. package/system/dist/file-host-worker.js +1 -1
  88. package/system/dist/file-host-worker.mjs +1 -1
  89. package/system/dist/{hub-mdns-ciao-CGwz5__T.mjs → hub-mdns-ciao-Cae5VWUc.mjs} +2 -2
  90. package/system/dist/{hub-mdns-ciao-BFZZAJIx.js → hub-mdns-ciao-DP3_GNZw.js} +2 -2
  91. package/system/dist/index.d.ts +1 -1
  92. package/system/dist/index.js +19 -9
  93. package/system/dist/index.mjs +230 -221
  94. package/system/dist/kernel/heap-watch.d.ts +7 -2
  95. package/system/dist/{restore-archive-B3M3ZwAl.mjs → restore-archive-BJ5gxMvf.mjs} +150 -150
  96. package/system/dist/{restore-archive-3e5X8g6h.js → restore-archive-X9c_wEBY.js} +1 -1
  97. package/system/dist/{retention-BPxZj_Qf.mjs → retention-DBrdAv12.mjs} +1 -1
  98. package/system/dist/{retention-DacNjIXz.js → retention-DRT2wUyB.js} +1 -1
  99. package/system/dist/{wal-maintenance-C4K7pX1x.mjs → wal-maintenance-Bi4yImEY.mjs} +0 -0
  100. package/system/dist/{wal-maintenance-Dguwwx4N.js → wal-maintenance-hsgNGrjh.js} +0 -0
  101. package/system/package.json +10 -1
package/CHANGELOG.md CHANGED
@@ -7,6 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.731] - 2026-11-02
11
+
12
+ ### Changed
13
+
14
+ - Serves the new do-not-disturb capability for Echo devices.
15
+ - AI generate calls accept a per-call reasoning effort
16
+ - Heap ceiling and the hub RSS budget are now set per node under Cluster > node > General; CAMSTACK_HUB_HEAP_MB, CAMSTACK_AGENT_HEAP_MB and the retired secret and CORS variables are ignored, and only the heap ones are named in the boot log
17
+
18
+ ## [1.2.730] - 2026-11-01
19
+
20
+ ### Added
21
+
22
+ - Serves the new fan-presets and timed-run capabilities (fan speed presets, heater and pump timed runs).
23
+
24
+ ### Changed
25
+
26
+ - The API gains the timed-run methods (run for, cancel, status).
27
+
10
28
  ## [1.2.729] - 2026-11-01
11
29
 
12
30
  ### Changed
@@ -6,10 +6,17 @@ const launch_args_js_1 = require("../../launch-args.js");
6
6
  /** The per-node launch override methods (ADR 0970), backed by the node's data dir. */
7
7
  function buildLaunchOverrideMethods(dataDir) {
8
8
  return {
9
- getLaunchOverrides: () => Promise.resolve({ heapMb: (0, launch_args_js_1.readHeapOverrideMb)(dataDir) }),
9
+ getLaunchOverrides: () => Promise.resolve((0, launch_args_js_1.readLaunchOverrides)(dataDir)),
10
10
  setLaunchOverrides: (input) => {
11
- (0, launch_args_js_1.writeHeapOverrideMb)(dataDir, input.heapMb);
12
- return Promise.resolve({ heapMb: input.heapMb, restartRequired: true });
11
+ const next = {
12
+ heapMb: input.heapMb,
13
+ // Omitted = keep what is stored; null = clear.
14
+ rssBudgetMb: input.rssBudgetMb === undefined
15
+ ? (0, launch_args_js_1.readLaunchOverrides)(dataDir).rssBudgetMb
16
+ : input.rssBudgetMb,
17
+ };
18
+ (0, launch_args_js_1.writeLaunchOverrides)(dataDir, next);
19
+ return Promise.resolve({ ...next, restartRequired: true });
13
20
  },
14
21
  };
15
22
  }
@@ -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: 194 Skipped (legacy): 3
5
+ // Mounted: 197 Skipped (legacy): 3
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.LEGACY_SHAPE_SKIP = void 0;
8
8
  exports.mountAllCaps = mountAllCaps;
@@ -280,6 +280,7 @@ function mountAllCaps(services) {
280
280
  dishwasher: (0, generated_cap_routers_js_1.createCapRouter_dishwasher)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'dishwasher'), remoteCapProxy),
281
281
  displayPalette: (0, generated_cap_routers_js_1.createCapRouter_displayPalette)((_ctx) => reg?.getSingleton('display-palette') ??
282
282
  null, remoteCapProxy),
283
+ doNotDisturb: (0, generated_cap_routers_js_1.createCapRouter_doNotDisturb)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'do-not-disturb'), remoteCapProxy),
283
284
  doorbell: (0, generated_cap_routers_js_1.createCapRouter_doorbell)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'doorbell'), remoteCapProxy),
284
285
  embeddingEncoder: (0, generated_cap_routers_js_1.createCapRouter_embeddingEncoder)((_ctx, addonId) => {
285
286
  if (!reg)
@@ -310,6 +311,7 @@ function mountAllCaps(services) {
310
311
  };
311
312
  }, remoteCapProxy),
312
313
  fanControl: (0, generated_cap_routers_js_1.createCapRouter_fanControl)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'fan-control'), remoteCapProxy),
314
+ fanPresets: (0, generated_cap_routers_js_1.createCapRouter_fanPresets)((_ctx) => reg?.getSingleton('fan-presets') ?? null, remoteCapProxy),
313
315
  featureProbe: (0, generated_cap_routers_js_1.createCapRouter_featureProbe)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'feature-probe'), remoteCapProxy),
314
316
  filesystemBrowse: (0, generated_cap_routers_js_1.createCapRouter_filesystemBrowse)((_ctx) => reg?.getSingleton('filesystem-browse') ??
315
317
  null, remoteCapProxy),
@@ -640,6 +642,7 @@ function mountAllCaps(services) {
640
642
  }, remoteCapProxy),
641
643
  terminalSession: (0, generated_cap_routers_js_1.createCapRouter_terminalSession)((_ctx) => reg?.getSingleton('terminal-session') ??
642
644
  null, remoteCapProxy),
645
+ timedRun: (0, generated_cap_routers_js_1.createCapRouter_timedRun)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'timed-run'), remoteCapProxy),
643
646
  toast: (0, generated_cap_routers_js_1.createCapRouter_toast)((_ctx) => reg?.getSingleton('toast') ?? null, remoteCapProxy),
644
647
  training: (0, generated_cap_routers_js_1.createCapRouter_training)((_ctx) => reg?.getSingleton('training') ?? null, remoteCapProxy),
645
648
  trainingProvider: (0, generated_cap_routers_js_1.createCapRouter_trainingProvider)((_ctx, addonId) => {