@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.
- package/CHANGELOG.md +17 -0
- package/dist/api/trpc/cap-router-runtime.js +3 -0
- package/dist/api/trpc/generated-cap-mounts.js +3 -1
- package/dist/api/trpc/generated-cap-routers.js +1869 -1789
- package/dist/core/addon/hub-addon-api.js +8 -1
- package/dist/core/moleculer/moleculer.service.js +3 -0
- package/package.json +9 -42
- package/system/dist/addon-runner.js +4 -1
- package/system/dist/addon-runner.mjs +5 -2
- package/system/dist/{agent-https-B5cYxyQW.mjs → agent-https-CyEBY3RB.mjs} +1 -1
- package/system/dist/{agent-https-C0QE8tXs.js → agent-https-a3mE4PW4.js} +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +3 -101
- package/system/dist/builtins/alerts/alerts.addon.mjs +40 -134
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +6 -5
- package/system/dist/builtins/composer/composer.addon.mjs +6 -5
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +2 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +358 -32
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +361 -35
- package/system/dist/builtins/core-blocks/hero-layout-service.d.ts +42 -0
- package/system/dist/builtins/core-blocks/remote-call-redirect.d.ts +1 -1
- package/system/dist/builtins/core-blocks/remote-service.d.ts +38 -0
- package/system/dist/builtins/device-history/device-history.addon.d.ts +5 -0
- package/system/dist/builtins/device-history/device-history.addon.js +357 -18
- package/system/dist/builtins/device-history/device-history.addon.mjs +357 -18
- package/system/dist/builtins/device-history/retention/retention.d.ts +14 -1
- package/system/dist/builtins/device-history/transitions/device-transitions-record-kinds.d.ts +14 -0
- package/system/dist/builtins/device-history/transitions/transitions-service.d.ts +80 -0
- package/system/dist/builtins/device-manager/device-manager.addon.d.ts +2 -0
- package/system/dist/builtins/device-manager/device-manager.addon.js +712 -18
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +780 -95
- package/system/dist/builtins/device-manager/device-state-mirror.d.ts +7 -0
- package/system/dist/builtins/device-manager/transitions/command-args.d.ts +4 -0
- package/system/dist/builtins/device-manager/transitions/transition-correlator.d.ts +68 -0
- package/system/dist/builtins/device-manager/transitions/transitions-sender.d.ts +37 -0
- package/system/dist/builtins/device-manager/transitions/transitions-wiring.d.ts +25 -0
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +284 -284
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-DHvJXvuV.js → capture-engine-BO9mSlY-.js} +1 -1
- package/system/dist/{capture-engine-Ci4GwgjQ.mjs → capture-engine-ByF-6AFH.mjs} +1 -1
- package/system/dist/{composition-sources-CXJ0SzYJ.mjs → composition-sources-AziMFo7T.mjs} +1 -1
- package/system/dist/{composition-sources-B-WY9L7z.js → composition-sources-BMJUPUh2.js} +1 -1
- package/system/dist/{constants-DAuOjW5K.mjs → constants-CTikgsC_.mjs} +1 -1
- package/system/dist/{constants-DnJ2vuC7.js → constants-CjRlgRlu.js} +1 -1
- package/system/dist/{device-ca-D0HejZGK.mjs → device-ca-CNRlFqFC.mjs} +1 -1
- package/system/dist/{device-ca-BRpXm-B0.js → device-ca-Dxl6kVcJ.js} +1 -1
- package/system/dist/{dist-BLxWQm_m.mjs → dist-BPq13Y8j.mjs} +17392 -15506
- package/system/dist/{dist-DZQowBDF.js → dist-CkJnelZr.js} +17463 -15511
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-BJx5WmFx.mjs → hub-mdns-ciao-CrjItezp.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-ClSuN_QT.js → hub-mdns-ciao-Cx6yJBl9.js} +2 -2
- package/system/dist/index.js +67 -75
- package/system/dist/index.mjs +53 -68
- package/system/dist/kernel/cap-router-builder.d.ts +9 -0
- package/system/dist/kernel/command-observation.d.ts +76 -0
- package/system/dist/kernel/index.d.ts +2 -0
- package/system/dist/kernel/transport/child-cap-protocol.d.ts +10 -1
- package/system/dist/kernel/transport/local-child-registry.d.ts +15 -0
- package/system/dist/{legacy-integration-rows-door-BiNKE2zW.js → legacy-integration-rows-door-CKM-LxvL.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-CN84_M7B.mjs → legacy-integration-rows-door-Dxcqwc-w.mjs} +1 -1
- package/system/dist/log-redactor-BhIEMaG9.js +149 -0
- package/system/dist/log-redactor-XLDrPzOi.mjs +120 -0
- package/system/dist/logging/log-redactor.d.ts +2 -0
- package/system/dist/{restore-archive-Co1yYMV3.js → restore-archive-BQWOdGAB.js} +1 -1
- package/system/dist/{restore-archive-gLW5oc1w.mjs → restore-archive-r3zTdLKr.mjs} +82 -82
- package/system/dist/{retention-BNONb5X_.js → retention-BcOSL6b9.js} +33 -2
- package/system/dist/{retention-B9l9TnGE.mjs → retention-CUOVI1p7.mjs} +33 -2
- package/system/dist/{wal-maintenance-BQaIM_cY.js → wal-maintenance-CiCgL4Hp.js} +0 -0
- package/system/dist/{wal-maintenance-Zji_8sLK.mjs → wal-maintenance-zJ4-ORo6.mjs} +0 -0
- 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:
|
|
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),
|