@camstack/system 1.2.316 → 1.2.317
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/dist/addon-runner.js +1 -1
- package/dist/addon-runner.mjs +1 -1
- package/dist/auth/auth-manager.d.ts +11 -0
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/autotrack/index.js +1 -1
- package/dist/builtins/autotrack/index.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/dist/builtins/camera-grid/index.js +1 -1
- package/dist/builtins/camera-grid/index.mjs +1 -1
- package/dist/builtins/composer/composer.addon.js +347 -181
- package/dist/builtins/composer/composer.addon.mjs +347 -181
- package/dist/builtins/composer/composition-evaluation.d.ts +37 -0
- package/dist/builtins/composer/composition-runtime.d.ts +11 -52
- package/dist/builtins/composer/composition-target.d.ts +50 -0
- package/dist/builtins/composer/existing-target.d.ts +19 -1
- package/dist/builtins/composer/own-field-reads.d.ts +19 -0
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
- package/dist/builtins/device-manager/device-manager.addon.js +265 -29
- package/dist/builtins/device-manager/device-manager.addon.mjs +265 -29
- package/dist/builtins/device-manager/device-provider-context.d.ts +6 -0
- package/dist/builtins/device-manager/device-source-activation.d.ts +26 -1
- package/dist/builtins/device-manager/device-state-mirror.d.ts +41 -9
- package/dist/builtins/device-manager/mirror-row-writer.d.ts +59 -1
- package/dist/builtins/doorbell/binding-mirror.d.ts +45 -81
- package/dist/builtins/doorbell/doorbell-extension-slot.d.ts +4 -3
- package/dist/builtins/doorbell/virtual-doorbell.addon.d.ts +53 -11
- package/dist/builtins/doorbell/virtual-doorbell.addon.js +207 -82
- package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +207 -82
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +47 -3
- package/dist/builtins/local-auth/local-auth.addon.mjs +46 -4
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/dist/builtins/system-config/system-config.addon.js +4 -4
- package/dist/builtins/system-config/system-config.addon.mjs +4 -4
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{child-cap-dispatch-AAltfBUH.mjs → child-cap-dispatch-C2VINHu1.mjs} +70 -18
- package/dist/{child-cap-dispatch-DzcUd_ct.js → child-cap-dispatch-C8uts1P4.js} +70 -18
- package/dist/{composition-sources-fUyF4z39.mjs → composition-sources-DVClu006.mjs} +1 -1
- package/dist/{composition-sources-BwE1POnF.js → composition-sources-Dep7nBwu.js} +1 -1
- package/dist/{dist-BPvku43i.mjs → dist-Dori4pf3.mjs} +85 -6
- package/dist/{dist-RAl10EfG.js → dist-a6p0V-IL.js} +85 -6
- package/dist/index.js +739 -350
- package/dist/index.mjs +737 -352
- package/dist/kernel/bootstrap-config.d.ts +8 -0
- package/dist/kernel/capability-registry.d.ts +30 -0
- package/dist/kernel/config-manager.d.ts +75 -129
- package/dist/kernel/index.d.ts +5 -2
- package/dist/kernel/moleculer/runtime-state-load.d.ts +19 -0
- package/dist/kernel/settings-door-view.d.ts +24 -1
- package/dist/kernel/settings-read-error.d.ts +37 -0
- package/dist/kernel/settings-view-types.d.ts +105 -0
- package/dist/kernel/store-settings-view.d.ts +17 -0
- package/dist/kernel/system-settings-mirror.d.ts +34 -0
- package/dist/kernel/system-settings-policy.d.ts +47 -0
- package/dist/{retired-settings-keys-D3rGTGq5.js → retired-settings-keys-DC1uHWPZ.js} +1 -1
- package/dist/{retired-settings-keys-DqVWSrVw.mjs → retired-settings-keys-DVcKRgzm.mjs} +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which `system-settings` keys the STORE may answer, and which the kernel
|
|
3
|
+
* loads from the door into memory at boot — D675.
|
|
4
|
+
*
|
|
5
|
+
* ## The store never outranks env + config.yaml for a bootstrap section
|
|
6
|
+
*
|
|
7
|
+
* `system-settings` holds, among other things, `auth.jwtSecret`,
|
|
8
|
+
* `auth.adminUsername` and `auth.adminPassword` — written there by
|
|
9
|
+
* `local-auth` (and by older builds) next to `auth.tokenExpiry`. The live
|
|
10
|
+
* container supplies the same three from env (`CAMSTACK_JWT_SECRET`,
|
|
11
|
+
* `CAMSTACK_ADMIN_USER`, `CAMSTACK_ADMIN_PASS`). While the store layer was
|
|
12
|
+
* skipped (every read since D231) env won by accident. Merging the store back
|
|
13
|
+
* in "highest priority" would let a stale DB copy replace the JWT secret —
|
|
14
|
+
* invalidating every token — and change the login password.
|
|
15
|
+
*
|
|
16
|
+
* So a bootstrap-owned section is answered from env + config.yaml ONLY, and
|
|
17
|
+
* the store may add exactly the keys in {@link STORE_READABLE_BOOTSTRAP_KEYS}:
|
|
18
|
+
* today `auth.tokenExpiry`, the one value the operator edits in the UI
|
|
19
|
+
* (System → Authentication). Widening this list is a security decision, not a
|
|
20
|
+
* convenience.
|
|
21
|
+
*/
|
|
22
|
+
/** The only keys under a bootstrap-owned section the store may answer. */
|
|
23
|
+
export declare const STORE_READABLE_BOOTSTRAP_KEYS: ReadonlySet<string>;
|
|
24
|
+
/** May the settings store answer `key`, or is it env + config.yaml only? */
|
|
25
|
+
export declare function storeMayAnswer(key: string): boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Key prefixes loaded from the door into memory ONCE at boot, so the
|
|
28
|
+
* synchronous readers that need them (the capability registry's preference
|
|
29
|
+
* readers, `capabilities.getPreference`) answer the persisted value after a
|
|
30
|
+
* reboot. Capability preferences are the only prefix: every other synchronous
|
|
31
|
+
* caller of `ConfigManager.get` either reads a bootstrap key or runs before the
|
|
32
|
+
* door exists.
|
|
33
|
+
*/
|
|
34
|
+
export declare const PRELOADED_SYSTEM_PREFIXES: readonly string[];
|
|
35
|
+
/**
|
|
36
|
+
* Single keys loaded the same way. `auth.tokenExpiry` is read synchronously on
|
|
37
|
+
* every mint by the hub's `AuthService` (`AuthManager.signToken`).
|
|
38
|
+
*/
|
|
39
|
+
export declare const PRELOADED_SYSTEM_KEYS: readonly string[];
|
|
40
|
+
/** Is `key` served from the boot-time mirror when the engine is isolated? */
|
|
41
|
+
export declare function isPreloadedSystemKey(key: string): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* The stored keys of `section` the store may answer (`storeMayAnswer`,
|
|
44
|
+
* D675): everything for an ordinary section, only the allow-listed keys for a
|
|
45
|
+
* bootstrap-owned one.
|
|
46
|
+
*/
|
|
47
|
+
export declare function filterStoreSection(section: string, stored: Record<string, unknown>): Record<string, unknown>;
|