@camstack/server 1.2.774 → 1.2.776
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 +12 -0
- package/package.json +10 -9
- package/system/dist/addon-runner.js +17 -4
- package/system/dist/addon-runner.mjs +17 -4
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/{agent-https-CEjYhgzb.mjs → agent-https-D7XFlCS4.mjs} +1 -1
- package/system/dist/{agent-https-COdYAZtp.js → agent-https-DN3SiDdO.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 +4 -4
- 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 +5 -5
- package/system/dist/builtins/alerts/alerts.addon.d.ts +2 -1
- package/system/dist/builtins/alerts/alerts.addon.js +6 -2
- package/system/dist/builtins/alerts/alerts.addon.mjs +6 -2
- 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 +5 -5
- 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 +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- package/system/dist/builtins/console-logging/console-logging.addon.d.ts +2 -1
- package/system/dist/builtins/console-logging/index.js +6 -2
- package/system/dist/builtins/console-logging/index.mjs +6 -2
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.d.ts +2 -1
- package/system/dist/builtins/device-history/device-history.addon.js +7 -3
- package/system/dist/builtins/device-history/device-history.addon.mjs +7 -3
- package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- 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 +5 -5
- package/system/dist/builtins/local-network/local-network.addon.d.ts +1 -0
- package/system/dist/builtins/local-network/local-network.addon.js +5 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +5 -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.d.ts +2 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +6 -2
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +15 -11
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +10 -10
- 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 +6 -2
- package/system/dist/builtins/snapshot/index.mjs +6 -2
- package/system/dist/builtins/snapshot/snapshot.addon.d.ts +2 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +20 -20
- 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 +115 -115
- 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-BT3BGiY3.mjs → capture-engine-GMG1X2TN.mjs} +1 -1
- package/system/dist/{capture-engine-DI2oXZDO.js → capture-engine-b-6U50tb.js} +1 -1
- package/system/dist/{composition-sources-BynfnyBp.js → composition-sources-B4d51O_D.js} +1 -1
- package/system/dist/{composition-sources-CJp4PlDI.mjs → composition-sources-Cn00-OEM.mjs} +1 -1
- package/system/dist/{constants-C1-vhqNF.js → constants-CQ6aJD-7.js} +1 -1
- package/system/dist/{constants-DXABL2gj.mjs → constants-nF0GL2ol.mjs} +1 -1
- package/system/dist/{coral-accelerators-DBlgWB8k.mjs → coral-accelerators-BW3OcrLD.mjs} +6 -6
- package/system/dist/{custom-action-registry-oHl1xltx.mjs → custom-action-registry-BIJZBObd.mjs} +37 -37
- package/system/dist/{device-ca-BrNT18xL.mjs → device-ca-BO_1Fnqk.mjs} +1 -1
- package/system/dist/{device-ca-DT2jrW1E.js → device-ca-DDPuTmrn.js} +1 -1
- package/system/dist/{dist-BBg37iyL.mjs → dist-C-reEuab.mjs} +128 -23
- package/system/dist/{dist-UBEXcyvP.js → dist-DyI9u0b7.js} +128 -23
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-BhXyHO14.js → hub-mdns-ciao-BnTtLjAw.js} +2 -2
- package/system/dist/{hub-mdns-ciao-Bvnuizns.mjs → hub-mdns-ciao-vybj30s5.mjs} +2 -2
- package/system/dist/index.js +25 -12
- package/system/dist/index.mjs +236 -223
- package/system/dist/kernel/moleculer/device-cap-proxy.d.ts +7 -1
- package/system/dist/{legacy-integration-rows-door-tscfL1oK.mjs → legacy-integration-rows-door-5eYHOgk7.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-BURxlJ76.js → legacy-integration-rows-door-uTtKNkuI.js} +1 -1
- package/system/dist/{restore-archive-RgMFtrh4.mjs → restore-archive-BT_VMwFC.mjs} +94 -94
- package/system/dist/{restore-archive-DUGJ5dqY.js → restore-archive-BYOloNIq.js} +1 -1
- package/system/dist/{wal-maintenance-B8Fzfc-w.js → wal-maintenance-CfBfW_kE.js} +0 -0
- package/system/dist/{wal-maintenance-CuxNjH8u.mjs → wal-maintenance-D2ztRFn-.mjs} +0 -0
- package/system/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.776] - 2026-11-05
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Deleting a device from the UI now also stops the instance running inside its addon worker (no zombie timers, no stale 'already adopted'); accessories of a hub-child camera inherit the hub's integration
|
|
15
|
+
|
|
16
|
+
## [1.2.775] - 2026-11-05
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Rebuilt against updated dependencies.
|
|
21
|
+
|
|
10
22
|
## [1.2.774] - 2026-11-05
|
|
11
23
|
|
|
12
24
|
### Changed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.776",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,9 +66,10 @@
|
|
|
66
66
|
],
|
|
67
67
|
"requires": {
|
|
68
68
|
"addons": {
|
|
69
|
-
"@camstack/addon-
|
|
70
|
-
"@camstack/addon-
|
|
71
|
-
"@camstack/addon-
|
|
69
|
+
"@camstack/addon-matter-broker": ">=0.2.158",
|
|
70
|
+
"@camstack/addon-provider-dreo": ">=0.2.156",
|
|
71
|
+
"@camstack/addon-provider-gree": ">=0.2.152",
|
|
72
|
+
"@camstack/addon-provider-reolink": ">=1.2.228"
|
|
72
73
|
},
|
|
73
74
|
"wrapper": {
|
|
74
75
|
"desktop": ">=0.0.1",
|
|
@@ -77,18 +78,18 @@
|
|
|
77
78
|
}
|
|
78
79
|
},
|
|
79
80
|
"dependencies": {
|
|
80
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
81
|
+
"@camstack/addon-admin-ui": "1.2.591",
|
|
81
82
|
"@camstack/addon-agent-ui": "1.2.328",
|
|
82
83
|
"@camstack/addon-auth": "1.2.175",
|
|
83
84
|
"@camstack/addon-benchmark": "1.2.311",
|
|
84
85
|
"@camstack/addon-decoder-nodeav": "1.2.145",
|
|
85
86
|
"@camstack/addon-notifiers": "1.2.628",
|
|
86
|
-
"@camstack/addon-pipeline": "1.2.
|
|
87
|
-
"@camstack/addon-pipeline-orchestrator": "1.2.
|
|
88
|
-
"@camstack/addon-post-analysis": "1.2.
|
|
87
|
+
"@camstack/addon-pipeline": "1.2.641",
|
|
88
|
+
"@camstack/addon-pipeline-orchestrator": "1.2.661",
|
|
89
|
+
"@camstack/addon-post-analysis": "1.2.669",
|
|
89
90
|
"@camstack/develop": "0.1.46",
|
|
90
91
|
"@camstack/sdk": "1.2.155",
|
|
91
|
-
"@camstack/types": "1.2.
|
|
92
|
+
"@camstack/types": "1.2.504",
|
|
92
93
|
"@camstack/ui-library": "1.2.386",
|
|
93
94
|
"@fastify/compress": "^9.0.0",
|
|
94
95
|
"@fastify/cookie": "^11.0.2",
|
|
@@ -5922,7 +5922,13 @@ function getWorkerNativeCapProvider(capName, deviceId) {
|
|
|
5922
5922
|
function deviceHasStreamSources(device) {
|
|
5923
5923
|
return typeof Reflect.get(device, "getStreamSources") === "function";
|
|
5924
5924
|
}
|
|
5925
|
-
|
|
5925
|
+
/**
|
|
5926
|
+
* `afterRemove` is the worker's local teardown (registry entry, native caps,
|
|
5927
|
+
* children). The hub's `remove` reaches a forked worker ONLY through this
|
|
5928
|
+
* provider, so the lifecycle call alone would leave a zombie instance in the
|
|
5929
|
+
* worker (timers running, still listed as adopted). It is idempotent.
|
|
5930
|
+
*/
|
|
5931
|
+
function buildDeviceOpsProvider(device, afterRemove) {
|
|
5926
5932
|
const assertMatch = (incoming) => {
|
|
5927
5933
|
if (incoming !== device.id) throw new Error(`device-ops: deviceId mismatch — expected '${device.id}', got '${incoming}'`);
|
|
5928
5934
|
};
|
|
@@ -5950,6 +5956,7 @@ function buildDeviceOpsProvider(device) {
|
|
|
5950
5956
|
removeDevice: async (input) => {
|
|
5951
5957
|
assertMatch(input.deviceId);
|
|
5952
5958
|
await device.removeDevice();
|
|
5959
|
+
await afterRemove?.(device.id);
|
|
5953
5960
|
},
|
|
5954
5961
|
getSettingsSchema: async (input) => {
|
|
5955
5962
|
assertMatch(input.deviceId);
|
|
@@ -6180,6 +6187,10 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6180
6187
|
}
|
|
6181
6188
|
};
|
|
6182
6189
|
};
|
|
6190
|
+
/** The integration a spawned child inherits: its parent's persisted one, if any. */
|
|
6191
|
+
const resolveParentIntegrationId = async (parentId) => {
|
|
6192
|
+
return (await callDeviceManager(api, "loadMeta", { deviceId: parentId }).catch(() => null))?.integrationId ?? void 0;
|
|
6193
|
+
};
|
|
6183
6194
|
/**
|
|
6184
6195
|
* Spawn one accessory child device declared by a parent's
|
|
6185
6196
|
* `getAccessoryChildren()`. Mirrors the standard `create()` flow
|
|
@@ -6197,13 +6208,15 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6197
6208
|
const empty = {};
|
|
6198
6209
|
const existingMeta = await callDeviceManager(api, "loadMeta", { deviceId: id }).catch(() => null);
|
|
6199
6210
|
const isFirstSpawn = !existingMeta || existingMeta.name === childStableId;
|
|
6211
|
+
const linkDeviceId = spec.meta.linkDeviceId ?? parent.id;
|
|
6212
|
+
const integrationId = spec.meta.integrationId ?? await resolveParentIntegrationId(parent.id);
|
|
6200
6213
|
await callDeviceManager(api, "applyInitialMeta", {
|
|
6201
6214
|
deviceId: id,
|
|
6202
|
-
linkDeviceId
|
|
6215
|
+
linkDeviceId,
|
|
6203
6216
|
...isFirstSpawn && spec.meta.name !== void 0 ? { name: spec.meta.name } : {},
|
|
6204
6217
|
...isFirstSpawn && spec.meta.location !== void 0 ? { location: spec.meta.location } : {},
|
|
6205
6218
|
...spec.meta.type !== void 0 ? { type: spec.meta.type } : {},
|
|
6206
|
-
...
|
|
6219
|
+
...integrationId !== void 0 ? { integrationId } : {},
|
|
6207
6220
|
...spec.meta.role !== void 0 ? { role: spec.meta.role } : {}
|
|
6208
6221
|
}).catch((err) => {
|
|
6209
6222
|
opts.logger.warn("spawnAccessoryChild: applyInitialMeta pre-seed failed", {
|
|
@@ -6464,7 +6477,7 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6464
6477
|
},
|
|
6465
6478
|
register: async (device) => {
|
|
6466
6479
|
registry.register(addonId, device);
|
|
6467
|
-
buildContext(device.stableId, device.id, device.parentDeviceId).registerNativeCap(_camstack_types_addon.deviceOpsCapability, buildDeviceOpsProvider(device));
|
|
6480
|
+
buildContext(device.stableId, device.id, device.parentDeviceId).registerNativeCap(_camstack_types_addon.deviceOpsCapability, buildDeviceOpsProvider(device, (id) => teardownLocal(id, false)));
|
|
6468
6481
|
try {
|
|
6469
6482
|
await callDeviceManager(api, "registerDevice", {
|
|
6470
6483
|
addonId,
|
|
@@ -5867,7 +5867,13 @@ function getWorkerNativeCapProvider(capName, deviceId) {
|
|
|
5867
5867
|
function deviceHasStreamSources(device) {
|
|
5868
5868
|
return typeof Reflect.get(device, "getStreamSources") === "function";
|
|
5869
5869
|
}
|
|
5870
|
-
|
|
5870
|
+
/**
|
|
5871
|
+
* `afterRemove` is the worker's local teardown (registry entry, native caps,
|
|
5872
|
+
* children). The hub's `remove` reaches a forked worker ONLY through this
|
|
5873
|
+
* provider, so the lifecycle call alone would leave a zombie instance in the
|
|
5874
|
+
* worker (timers running, still listed as adopted). It is idempotent.
|
|
5875
|
+
*/
|
|
5876
|
+
function buildDeviceOpsProvider(device, afterRemove) {
|
|
5871
5877
|
const assertMatch = (incoming) => {
|
|
5872
5878
|
if (incoming !== device.id) throw new Error(`device-ops: deviceId mismatch — expected '${device.id}', got '${incoming}'`);
|
|
5873
5879
|
};
|
|
@@ -5895,6 +5901,7 @@ function buildDeviceOpsProvider(device) {
|
|
|
5895
5901
|
removeDevice: async (input) => {
|
|
5896
5902
|
assertMatch(input.deviceId);
|
|
5897
5903
|
await device.removeDevice();
|
|
5904
|
+
await afterRemove?.(device.id);
|
|
5898
5905
|
},
|
|
5899
5906
|
getSettingsSchema: async (input) => {
|
|
5900
5907
|
assertMatch(input.deviceId);
|
|
@@ -6125,6 +6132,10 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6125
6132
|
}
|
|
6126
6133
|
};
|
|
6127
6134
|
};
|
|
6135
|
+
/** The integration a spawned child inherits: its parent's persisted one, if any. */
|
|
6136
|
+
const resolveParentIntegrationId = async (parentId) => {
|
|
6137
|
+
return (await callDeviceManager(api, "loadMeta", { deviceId: parentId }).catch(() => null))?.integrationId ?? void 0;
|
|
6138
|
+
};
|
|
6128
6139
|
/**
|
|
6129
6140
|
* Spawn one accessory child device declared by a parent's
|
|
6130
6141
|
* `getAccessoryChildren()`. Mirrors the standard `create()` flow
|
|
@@ -6142,13 +6153,15 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6142
6153
|
const empty = {};
|
|
6143
6154
|
const existingMeta = await callDeviceManager(api, "loadMeta", { deviceId: id }).catch(() => null);
|
|
6144
6155
|
const isFirstSpawn = !existingMeta || existingMeta.name === childStableId;
|
|
6156
|
+
const linkDeviceId = spec.meta.linkDeviceId ?? parent.id;
|
|
6157
|
+
const integrationId = spec.meta.integrationId ?? await resolveParentIntegrationId(parent.id);
|
|
6145
6158
|
await callDeviceManager(api, "applyInitialMeta", {
|
|
6146
6159
|
deviceId: id,
|
|
6147
|
-
linkDeviceId
|
|
6160
|
+
linkDeviceId,
|
|
6148
6161
|
...isFirstSpawn && spec.meta.name !== void 0 ? { name: spec.meta.name } : {},
|
|
6149
6162
|
...isFirstSpawn && spec.meta.location !== void 0 ? { location: spec.meta.location } : {},
|
|
6150
6163
|
...spec.meta.type !== void 0 ? { type: spec.meta.type } : {},
|
|
6151
|
-
...
|
|
6164
|
+
...integrationId !== void 0 ? { integrationId } : {},
|
|
6152
6165
|
...spec.meta.role !== void 0 ? { role: spec.meta.role } : {}
|
|
6153
6166
|
}).catch((err) => {
|
|
6154
6167
|
opts.logger.warn("spawnAccessoryChild: applyInitialMeta pre-seed failed", {
|
|
@@ -6409,7 +6422,7 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6409
6422
|
},
|
|
6410
6423
|
register: async (device) => {
|
|
6411
6424
|
registry.register(addonId, device);
|
|
6412
|
-
buildContext(device.stableId, device.id, device.parentDeviceId).registerNativeCap(deviceOpsCapability, buildDeviceOpsProvider(device));
|
|
6425
|
+
buildContext(device.stableId, device.id, device.parentDeviceId).registerNativeCap(deviceOpsCapability, buildDeviceOpsProvider(device, (id) => teardownLocal(id, false)));
|
|
6413
6426
|
try {
|
|
6414
6427
|
await callDeviceManager(api, "registerDevice", {
|
|
6415
6428
|
addonId,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as isModelDownloaded, S as isModelDownloadHttpError, _ as downloadFile, a as startEventLoopStallMonitor, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, p as ModelDownloadHttpError, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-
|
|
1
|
+
import { C as isModelDownloaded, S as isModelDownloadHttpError, _ as downloadFile, a as startEventLoopStallMonitor, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, p as ModelDownloadHttpError, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-BIJZBObd.mjs";
|
|
2
2
|
import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourtesyJpeg, t as COURTESY_DEFAULT_WIDTH } from "./snapshot-courtesy-CyFs1M3I.mjs";
|
|
3
3
|
export { COURTESY_DEFAULT_WIDTH, CustomActionRegistry, ModelDownloadHttpError, ModelDownloadService, STALL_REPORT_MS, STALL_TICK_MS, adoptModelRevisions, attributeStall, collectModelFiles, contentTypeFor, courtesyCacheKey, createFileDataPlaneHandler, deleteModelFromDisk, downloadFile, ensureModel, getModelFilePath, isModelDownloadHttpError, isModelDownloaded, parseRangeHeader, renderCourtesyJpeg, renderCourtesyOverlayJpeg, resolveFormatRevision, startEventLoopStallMonitor };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bs as defineRecordKinds } from "./dist-
|
|
1
|
+
import { bs as defineRecordKinds } from "./dist-C-reEuab.mjs";
|
|
2
2
|
import { C as backdatedNotBefore, S as withUtcTimeEncoding, _ as NameConstraints, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, g as GeneralSubtrees, h as GeneralSubtree, i as Extension, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension, v as GeneralName, x as AsnConvert } from "./x509.es-BRiJgOvu.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { X509Certificate, createHash, createPrivateKey, randomBytes, webcrypto } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-DyI9u0b7.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
let node_crypto = require("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-
|
|
6
|
+
const require_dist = require("../../dist-DyI9u0b7.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { To as BaseAddon, cn as addonPagesCapability, dc as errMsg, fc as EventCategory } from "../../dist-
|
|
1
|
+
import { To as BaseAddon, cn as addonPagesCapability, dc as errMsg, fc as EventCategory } from "../../dist-C-reEuab.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
5
|
-
import * as fs
|
|
5
|
+
import * as fs from "node:fs";
|
|
6
6
|
//#region src/builtins/addon-pages-aggregator/dedupe-pages.ts
|
|
7
7
|
/** Stable identity for an addon page, independent of which node reported it. */
|
|
8
8
|
function pageKey(info) {
|
|
@@ -211,11 +211,11 @@ var AddonPagesAggregatorAddon = class extends BaseAddon {
|
|
|
211
211
|
const bundlePath = this.resolveBundlePath(addonId, bundle);
|
|
212
212
|
if (bundlePath === null) return `/api/addon-pages/${addonId}/${bundle}?v=${Math.floor(Date.now())}`;
|
|
213
213
|
try {
|
|
214
|
-
const stat = fs
|
|
214
|
+
const stat = fs.statSync(bundlePath);
|
|
215
215
|
const cacheKey = `${bundlePath}:${stat.size}:${stat.mtimeMs}`;
|
|
216
216
|
let v = this.bundleHashCache.get(cacheKey);
|
|
217
217
|
if (v === void 0) {
|
|
218
|
-
v = createHash("sha1").update(fs
|
|
218
|
+
v = createHash("sha1").update(fs.readFileSync(bundlePath)).digest("hex").slice(0, 12);
|
|
219
219
|
this.bundleHashCache.set(cacheKey, v);
|
|
220
220
|
}
|
|
221
221
|
return `/api/addon-pages/${addonId}/${bundle}?v=${v}`;
|
|
@@ -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-
|
|
6
|
+
const require_dist = require("../../dist-DyI9u0b7.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { To as BaseAddon, dc as errMsg, fc as EventCategory, un as addonWidgetsCapability } from "../../dist-
|
|
1
|
+
import { To as BaseAddon, dc as errMsg, fc as EventCategory, un as addonWidgetsCapability } from "../../dist-C-reEuab.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
5
|
-
import * as fs
|
|
5
|
+
import * as fs from "node:fs";
|
|
6
6
|
//#region src/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.ts
|
|
7
7
|
/**
|
|
8
8
|
* Addon Widgets Aggregator — hub-local builtin that owns the singleton
|
|
@@ -204,9 +204,9 @@ var AddonWidgetsAggregatorAddon = class extends BaseAddon {
|
|
|
204
204
|
if (entryPath === null) return String(Math.floor(Date.now()));
|
|
205
205
|
try {
|
|
206
206
|
const dir = path$1.dirname(entryPath);
|
|
207
|
-
const files = fs
|
|
207
|
+
const files = fs.readdirSync(dir).filter((f) => fs.statSync(path$1.join(dir, f)).isFile()).sort();
|
|
208
208
|
const cacheKey = `${dir}#${files.map((f) => {
|
|
209
|
-
const s = fs
|
|
209
|
+
const s = fs.statSync(path$1.join(dir, f));
|
|
210
210
|
return `${f}:${s.size}:${s.mtimeMs}`;
|
|
211
211
|
}).join("|")}`;
|
|
212
212
|
const cached = this.bundleHashCache.get(cacheKey);
|
|
@@ -214,7 +214,7 @@ var AddonWidgetsAggregatorAddon = class extends BaseAddon {
|
|
|
214
214
|
const hash = createHash("sha1");
|
|
215
215
|
for (const f of files) {
|
|
216
216
|
hash.update(f);
|
|
217
|
-
hash.update(fs
|
|
217
|
+
hash.update(fs.readFileSync(path$1.join(dir, f)));
|
|
218
218
|
}
|
|
219
219
|
const digest = hash.digest("hex").slice(0, 12);
|
|
220
220
|
this.bundleHashCache.set(cacheKey, digest);
|
|
@@ -16,7 +16,8 @@ export declare class AlertCenterAddon extends BaseAddon<AlertCenterConfig> {
|
|
|
16
16
|
private readonly rateLimitCounters;
|
|
17
17
|
protected onInitialize(): Promise<ProviderRegistration[]>;
|
|
18
18
|
protected onShutdown(): Promise<void>;
|
|
19
|
-
protected
|
|
19
|
+
protected override scopedSettingsCapabilities(): readonly string[];
|
|
20
|
+
protected override clusterSettingsSchema(cap: string): Promise<ConfigUISchema | null>;
|
|
20
21
|
listAlerts(filter?: {
|
|
21
22
|
unreadOnly?: boolean;
|
|
22
23
|
limit?: number;
|
|
@@ -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-
|
|
6
|
+
const require_dist = require("../../dist-DyI9u0b7.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
//#region src/builtins/alerts/alert-episode-policy.ts
|
|
9
9
|
/**
|
|
@@ -780,7 +780,11 @@ var AlertCenterAddon = class extends require_dist.BaseAddon {
|
|
|
780
780
|
for (const unsub of this.unsubscribers) unsub();
|
|
781
781
|
this.unsubscribers = [];
|
|
782
782
|
}
|
|
783
|
-
|
|
783
|
+
scopedSettingsCapabilities() {
|
|
784
|
+
return ["alerts"];
|
|
785
|
+
}
|
|
786
|
+
async clusterSettingsSchema(cap) {
|
|
787
|
+
if (cap !== "alerts") return null;
|
|
784
788
|
return this.schema({ sections: [{
|
|
785
789
|
id: "alerts",
|
|
786
790
|
title: "Alert Center",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Fr as isAlertEpisodeSeverity, Pr as isAlertEpisodeOpen, To as BaseAddon, bs as defineRecordKinds, d as AlertSchema, dc as errMsg, dn as alertEpisodeId, fc as EventCategory, fn as alertEpisodePayload, hs as createEvent, pn as alertsCapability } from "../../dist-
|
|
1
|
+
import { Fr as isAlertEpisodeSeverity, Pr as isAlertEpisodeOpen, To as BaseAddon, bs as defineRecordKinds, d as AlertSchema, dc as errMsg, dn as alertEpisodeId, fc as EventCategory, fn as alertEpisodePayload, hs as createEvent, pn as alertsCapability } from "../../dist-C-reEuab.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
//#region src/builtins/alerts/alert-episode-policy.ts
|
|
4
4
|
/**
|
|
@@ -774,7 +774,11 @@ var AlertCenterAddon = class extends BaseAddon {
|
|
|
774
774
|
for (const unsub of this.unsubscribers) unsub();
|
|
775
775
|
this.unsubscribers = [];
|
|
776
776
|
}
|
|
777
|
-
|
|
777
|
+
scopedSettingsCapabilities() {
|
|
778
|
+
return ["alerts"];
|
|
779
|
+
}
|
|
780
|
+
async clusterSettingsSchema(cap) {
|
|
781
|
+
if (cap !== "alerts") return null;
|
|
778
782
|
return this.schema({ sections: [{
|
|
779
783
|
id: "alerts",
|
|
780
784
|
title: "Alert Center",
|
|
@@ -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-
|
|
6
|
+
const require_dist = require("../../dist-DyI9u0b7.js");
|
|
7
7
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
8
8
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
9
9
|
deadZoneFraction: .5,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { To as BaseAddon, dc as errMsg, fc as EventCategory, js as isEvent, tt as FIRST_LEVEL_MACRO_CLASSES, vn as bareAddonId, zi as ptzAutotrackCapability } from "../../dist-
|
|
1
|
+
import { To as BaseAddon, dc as errMsg, fc as EventCategory, js as isEvent, tt as FIRST_LEVEL_MACRO_CLASSES, vn as bareAddonId, zi as ptzAutotrackCapability } from "../../dist-C-reEuab.mjs";
|
|
2
2
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
3
3
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
4
4
|
deadZoneFraction: .5,
|
|
@@ -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-
|
|
6
|
+
const require_dist = require("../../dist-DyI9u0b7.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
|
-
const require_restore_archive = require("../../restore-archive-
|
|
8
|
+
const require_restore_archive = require("../../restore-archive-BYOloNIq.js");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
10
10
|
let node_fs_promises = require("node:fs/promises");
|
|
11
11
|
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Ca as storageOccupancyCapability, Hs as nodePin, To as BaseAddon, _n as backupCapability, fc as EventCategory, rc as toNodeId, si as mayWriteToLocation } from "../../dist-
|
|
1
|
+
import { Ca as storageOccupancyCapability, Hs as nodePin, To as BaseAddon, _n as backupCapability, fc as EventCategory, rc as toNodeId, si as mayWriteToLocation } from "../../dist-C-reEuab.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
|
-
import { _ as backupRecordStoresOf, a as BackupSnapshotRefusedError, d as ENCRYPTED_BACKUP_SUFFIX, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, i as BackupCancelledError, l as BackupKeyFormatError, m as parseBackupSecretKey, n as precheckRestoreKey, o as DEFAULT_BACKUP_DATABASES, p as parseBackupPublicKey, r as prepareRestoreArchive, s as SystemBackupService } from "../../restore-archive-
|
|
3
|
+
import { _ as backupRecordStoresOf, a as BackupSnapshotRefusedError, d as ENCRYPTED_BACKUP_SUFFIX, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, i as BackupCancelledError, l as BackupKeyFormatError, m as parseBackupSecretKey, n as precheckRestoreKey, o as DEFAULT_BACKUP_DATABASES, p as parseBackupPublicKey, r as prepareRestoreArchive, s as SystemBackupService } from "../../restore-archive-BT_VMwFC.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import * as fsp from "node:fs/promises";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
7
|
-
import * as fs
|
|
7
|
+
import * as fs from "node:fs";
|
|
8
8
|
//#region src/builtins/backup-orchestrator/backup-databases.ts
|
|
9
9
|
/** Stable id of the seeded weekly schedule. */
|
|
10
10
|
var WEEKLY_SCHEDULE_ID = "weekly-events-history";
|
|
@@ -1018,7 +1018,7 @@ async function downloadArchiveToCache(input) {
|
|
|
1018
1018
|
location: input.locationId,
|
|
1019
1019
|
relativePath: input.filename
|
|
1020
1020
|
});
|
|
1021
|
-
const writeStream = fs
|
|
1021
|
+
const writeStream = fs.createWriteStream(input.cachePath);
|
|
1022
1022
|
let offset = 0;
|
|
1023
1023
|
try {
|
|
1024
1024
|
while (offset < sizeBytes) {
|
|
@@ -2502,7 +2502,7 @@ var BackupOrchestratorAddon = class extends BaseAddon {
|
|
|
2502
2502
|
});
|
|
2503
2503
|
try {
|
|
2504
2504
|
let offset = 0;
|
|
2505
|
-
const stream = fs
|
|
2505
|
+
const stream = fs.createReadStream(input.cachePath, { highWaterMark: UPLOAD_CHUNK_BYTES });
|
|
2506
2506
|
for await (const rawChunk of stream) {
|
|
2507
2507
|
if (input.signal?.aborted) {
|
|
2508
2508
|
stream.destroy();
|
|
@@ -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-
|
|
6
|
+
const require_dist = require("../../dist-DyI9u0b7.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
//#region src/builtins/calendars/calendar-color.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { En as calendarsCapability, T as CalendarPreferencesSchema, To as BaseAddon, bs as defineRecordKinds } from "../../dist-
|
|
1
|
+
import { En as calendarsCapability, T as CalendarPreferencesSchema, To as BaseAddon, bs as defineRecordKinds } from "../../dist-C-reEuab.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/builtins/calendars/calendar-color.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-
|
|
6
|
+
const require_dist = require("../../dist-DyI9u0b7.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let _camstack_types_node = require("@camstack/types/node");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dn as cameraGridLayoutCapability, K as DeclaredDevices, L as DERIVED_CAMERA_SILENCED_CAP_NAMES, Os as hydrateSchema, St as MOTION_CLOSE_AFTER_MS, Ta as streamCatalogCapability, To as BaseAddon, Zn as declarationOwnerNodeId, cc as DeviceFeature, dc as errMsg, eo as buildFfmpegArgs, fc as EventCategory, hi as motionCapability, hs as createEvent, m as BaseDevice, uc as DeviceType, ui as memoizePinnedFfmpeg, va as snapshotCapability, vn as bareAddonId } from "../../dist-
|
|
1
|
+
import { Dn as cameraGridLayoutCapability, K as DeclaredDevices, L as DERIVED_CAMERA_SILENCED_CAP_NAMES, Os as hydrateSchema, St as MOTION_CLOSE_AFTER_MS, Ta as streamCatalogCapability, To as BaseAddon, Zn as declarationOwnerNodeId, cc as DeviceFeature, dc as errMsg, eo as buildFfmpegArgs, fc as EventCategory, hi as motionCapability, hs as createEvent, m as BaseDevice, uc as DeviceType, ui as memoizePinnedFfmpeg, va as snapshotCapability, vn as bareAddonId } from "../../dist-C-reEuab.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { FfmpegProcess } from "@camstack/types/node";
|
|
4
4
|
import { join } from "node:path";
|
|
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_composition_sources = require("../../composition-sources-
|
|
8
|
-
const require_capture_engine = require("../../capture-engine-
|
|
6
|
+
const require_dist = require("../../dist-DyI9u0b7.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-B4d51O_D.js");
|
|
8
|
+
const require_capture_engine = require("../../capture-engine-b-6U50tb.js");
|
|
9
9
|
const require_retention = require("../../retention-BNONb5X_.js");
|
|
10
10
|
let zod = require("zod");
|
|
11
11
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $a as MINUTE_MS, Ai as planComposition, Ar as groupTemplate, Co as toExpressionValue, Cr as featureForwards, Di as parseColorInput, Fn as colorCapability, Ga as COMPOSER_ADDON_ID, Gn as coverCapability, Ja as DEFAULT_HISTORY_RETENTION, K as DeclaredDevices, Kr as kebabToCamel, La as valveCapability, Li as processTimeZoneOr, Ln as composerCapability, Nn as climateControlCapability, Ns as isReadingQuantity, Oa as switchCapability, Qn as declaredSeriesKind, Rn as compositionFieldKey, Sn as buildCapabilityLookup, So as statisticCadenceMs, To as BaseAddon, Xa as HISTORY_SLOW_MS, Ya as HISTORY_FAST_MS, Za as HOUR_MS, _o as nextLocalMidnight, ao as compositionItemFieldPath, b as COMPOSED_ITEM_FIXED_FIELDS, bn as brightnessCapability, bo as planResetTier, br as fanControlCapability, ci as mediaPlayerCapability, co as createStatefulExpressionMemory, dc as errMsg, di as methodRefusal, do as evaluateStatistic, ea as resolveMutate, fa as sharedActuatorFeatures, fc as EventCategory, ft as HvacModeSchema, go as isHistoryHelper, hi as motionCapability, ho as isForwardInputRef, hs as createEvent, ia as runFanOut, io as compositionFeatureEnabled, kr as groupCommandsCapability, li as mediaPlayerFeaturesOfRoles, lo as disarmRoseMemory, m as BaseDevice, ma as sharedColorModes, mo as integrateReading, mr as evaluateCompositionField, n as ACTUATOR_METHODS, no as composedDeviceRef, o as ALL_CAPABILITY_DEFINITIONS, oo as compositionSliceKey, pa as sharedActuatorMethods, po as historyRetentionFromSettings, r as ACTUATOR_TEMPLATE_IDS, ro as composedDeviceStableId, rt as FanDirectionSchema, so as compositionSourceKey, st as GroupCommandResultSchema, ti as lockControlCapability, to as cloneStatefulExpressionMemory, uc as DeviceType, uo as evaluateDerivative, vo as openReset, vr as expressionContainsBuiltinCall, xo as planStatisticTier, xr as fanOutTargets, yo as openStatistic } from "../../dist-
|
|
2
|
-
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-
|
|
3
|
-
import { i as capSeriesKey } from "../../capture-engine-
|
|
1
|
+
import { $a as MINUTE_MS, Ai as planComposition, Ar as groupTemplate, Co as toExpressionValue, Cr as featureForwards, Di as parseColorInput, Fn as colorCapability, Ga as COMPOSER_ADDON_ID, Gn as coverCapability, Ja as DEFAULT_HISTORY_RETENTION, K as DeclaredDevices, Kr as kebabToCamel, La as valveCapability, Li as processTimeZoneOr, Ln as composerCapability, Nn as climateControlCapability, Ns as isReadingQuantity, Oa as switchCapability, Qn as declaredSeriesKind, Rn as compositionFieldKey, Sn as buildCapabilityLookup, So as statisticCadenceMs, To as BaseAddon, Xa as HISTORY_SLOW_MS, Ya as HISTORY_FAST_MS, Za as HOUR_MS, _o as nextLocalMidnight, ao as compositionItemFieldPath, b as COMPOSED_ITEM_FIXED_FIELDS, bn as brightnessCapability, bo as planResetTier, br as fanControlCapability, ci as mediaPlayerCapability, co as createStatefulExpressionMemory, dc as errMsg, di as methodRefusal, do as evaluateStatistic, ea as resolveMutate, fa as sharedActuatorFeatures, fc as EventCategory, ft as HvacModeSchema, go as isHistoryHelper, hi as motionCapability, ho as isForwardInputRef, hs as createEvent, ia as runFanOut, io as compositionFeatureEnabled, kr as groupCommandsCapability, li as mediaPlayerFeaturesOfRoles, lo as disarmRoseMemory, m as BaseDevice, ma as sharedColorModes, mo as integrateReading, mr as evaluateCompositionField, n as ACTUATOR_METHODS, no as composedDeviceRef, o as ALL_CAPABILITY_DEFINITIONS, oo as compositionSliceKey, pa as sharedActuatorMethods, po as historyRetentionFromSettings, r as ACTUATOR_TEMPLATE_IDS, ro as composedDeviceStableId, rt as FanDirectionSchema, so as compositionSourceKey, st as GroupCommandResultSchema, ti as lockControlCapability, to as cloneStatefulExpressionMemory, uc as DeviceType, uo as evaluateDerivative, vo as openReset, vr as expressionContainsBuiltinCall, xo as planStatisticTier, xr as fanOutTargets, yo as openStatistic } from "../../dist-C-reEuab.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-Cn00-OEM.mjs";
|
|
3
|
+
import { i as capSeriesKey } from "../../capture-engine-GMG1X2TN.mjs";
|
|
4
4
|
import { i as DAY_MS, t as DEFAULT_RETENTION } from "../../retention-B9l9TnGE.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
@@ -21,6 +21,7 @@ export declare class ConsoleLoggingAddon extends BaseAddon<ConsoleConfig> {
|
|
|
21
21
|
protected onInitialize(): Promise<ProviderRegistration[]>;
|
|
22
22
|
protected onShutdown(): Promise<void>;
|
|
23
23
|
getDestination(): ConsoleDestination;
|
|
24
|
-
protected
|
|
24
|
+
protected override scopedSettingsCapabilities(): readonly string[];
|
|
25
|
+
protected override clusterSettingsSchema(cap: string): Promise<ConfigUISchema | null>;
|
|
25
26
|
}
|
|
26
27
|
export {};
|
|
@@ -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-
|
|
6
|
+
const require_dist = require("../../dist-DyI9u0b7.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
//#region src/builtins/console-logging/console-destination.ts
|
|
9
9
|
var LEVEL_RANK = {
|
|
@@ -60,7 +60,11 @@ var ConsoleLoggingAddon = class extends require_dist.BaseAddon {
|
|
|
60
60
|
if (!this.destination) throw new Error("Console logging not initialized");
|
|
61
61
|
return this.destination;
|
|
62
62
|
}
|
|
63
|
-
|
|
63
|
+
scopedSettingsCapabilities() {
|
|
64
|
+
return ["log-destination"];
|
|
65
|
+
}
|
|
66
|
+
async clusterSettingsSchema(cap) {
|
|
67
|
+
if (cap !== "log-destination") return null;
|
|
64
68
|
return this.schema({ sections: [{
|
|
65
69
|
id: "console-logging",
|
|
66
70
|
title: "Console Logging",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { To as BaseAddon, ri as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { To as BaseAddon, ri as logDestinationCapability } from "../../dist-C-reEuab.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
3
3
|
//#region src/builtins/console-logging/console-destination.ts
|
|
4
4
|
var LEVEL_RANK = {
|
|
@@ -55,7 +55,11 @@ var ConsoleLoggingAddon = class extends BaseAddon {
|
|
|
55
55
|
if (!this.destination) throw new Error("Console logging not initialized");
|
|
56
56
|
return this.destination;
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
scopedSettingsCapabilities() {
|
|
59
|
+
return ["log-destination"];
|
|
60
|
+
}
|
|
61
|
+
async clusterSettingsSchema(cap) {
|
|
62
|
+
if (cap !== "log-destination") return null;
|
|
59
63
|
return this.schema({ sections: [{
|
|
60
64
|
id: "console-logging",
|
|
61
65
|
title: "Console Logging",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
3
|
+
const require_dist = require("../../dist-DyI9u0b7.js");
|
|
4
4
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
5
|
-
const require_composition_sources = require("../../composition-sources-
|
|
6
|
-
const require_capture_engine = require("../../capture-engine-
|
|
5
|
+
const require_composition_sources = require("../../composition-sources-B4d51O_D.js");
|
|
6
|
+
const require_capture_engine = require("../../capture-engine-b-6U50tb.js");
|
|
7
7
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
8
8
|
const require_prefix_walk = require("../../prefix-walk-Dv6MLZlM.js");
|
|
9
9
|
let zod = require("zod");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as EMPTY_REMOTE_CONFIG, $t as SwitchStatusSchema, Aa as timedRunCapability, Ai as planComposition, Bn as coreBlockAddonId, Bt as RemoteConfigSchema, C as CORE_BLOCK_ADDON_PREFIX, Ct as MediaPlayerStatusSchema, D as ConditionMirror, Fi as problemsBlockSave, Ft as REMOTE_MEDIA_COMMANDS, Gi as replacedFieldKeys, Gt as SchedulerSchema, Ha as weekdayOfLocalDate, Hn as coreBlockIdFromAddonId, I as DEFAULT_HOLD_OVERRIDE, Ia as validateSchedulerInput, In as compileScalarOverride, Is as isSecretMarker, Jn as customRole, K as DeclaredDevices, Ka as CompositionSchema, Ki as resolveActionVariables, Kr as kebabToCamel, Ma as timedRunSeconds, Mi as powerSourceCapability, Mn as checkTemplatePayload, Mr as internalActionId, Ni as powerSourceLinkOfComposition, Nt as QuantityUnitError, O as ControlStatusSchema, Os as hydrateSchema, Pa as validateComposition, Pn as collectWhenMirrorSources, Q as EMPTY_REMOTE_ASSUMED_STATE, Qa as HelperMemberSchema, Qr as localDateOf, Ri as proposeRunningThreshold, Rs as isSecretRefOwnedBy, S as CORE_BLOCKS_ADDON_ID, Sn as buildCapabilityLookup, Sr as fanPresetsCapability, To as BaseAddon, Ui as remoteCapability, Un as coreBlockSourceKind, Va as vocabActionIdFor, Vn as coreBlockComposition, Vr as isInternalActionId, Vt as RunningStateStatusSchema, Wa as zoneOnlySite, Wi as remoteLayoutComponentsCapability, Wn as coreBlocksCapability, Wt as SchedulerError, Xi as resolveCoreBlockFiles, Yi as resolveCoreBlockEntry, Z as EMPTY_AUTOMATION_STATE, Zs as resolveSecretMarkers, _i as normalizeActionUnits, _s as defineAddonMigrations, aa as runSteps, ac as transformSecretWrite, an as actionSourceCapability, bi as normalizeStepTargets, bs as defineRecordKinds, c as ActionStepSchema, dc as errMsg$1, ec as secretTreeFromSchema, en as TemplateKindSchema, et as FAN_CAPTURE_FIELDS, f as AutomationStateDocSchema, fc as EventCategory$1, fo as helperMembers, ga as siteFor, gi as nextOccurrence, hr as evaluateWhenTree, in as actionEffect, it as FanPresetSchema, ja as timedRunLimitOf, k as CoreBlockSchema, ka as templateCapability, kn as capUnitResolver, kt as PowerSourceInfoSchema, l as ActionTargetResolver, mn as appendTrace, mt as INTERNAL_ACTION_PREFIX, ni as lockDoorLinkOfComposition, no as composedDeviceRef, nr as describeComposableCaps, nt as FanControlStatusSchema, o as ALL_CAPABILITY_DEFINITIONS, on as actionsCapability, p as BUILTIN_REMOTE_COMPONENTS, po as historyRetentionFromSettings, ps as collectSecretMarkerRefs, pt as IDLE_ACTION_STATUS, qa as DAY_MS, qn as customKeyOfRole, ra as resolveStepArgs, s as ActionError, sa as schedulersCapability, sn as addonIdOfActionId, so as compositionSourceKey, t as ACTION_TARGET_INVALIDATION_EVENTS, u as ActionVariableSchema, uc as DeviceType$1, vi as normalizeCapStep, wi as occurrenceOn, x as COMPOSER_RUNNER_ID, xn as buildActionSteps, yi as normalizeCoreBlockWrite, zn as compositionSourceRefs, zt as RemoteAssumedStateSchema } from "../../dist-
|
|
1
|
+
import { $ as EMPTY_REMOTE_CONFIG, $t as SwitchStatusSchema, Aa as timedRunCapability, Ai as planComposition, Bn as coreBlockAddonId, Bt as RemoteConfigSchema, C as CORE_BLOCK_ADDON_PREFIX, Ct as MediaPlayerStatusSchema, D as ConditionMirror, Fi as problemsBlockSave, Ft as REMOTE_MEDIA_COMMANDS, Gi as replacedFieldKeys, Gt as SchedulerSchema, Ha as weekdayOfLocalDate, Hn as coreBlockIdFromAddonId, I as DEFAULT_HOLD_OVERRIDE, Ia as validateSchedulerInput, In as compileScalarOverride, Is as isSecretMarker, Jn as customRole, K as DeclaredDevices, Ka as CompositionSchema, Ki as resolveActionVariables, Kr as kebabToCamel, Ma as timedRunSeconds, Mi as powerSourceCapability, Mn as checkTemplatePayload, Mr as internalActionId, Ni as powerSourceLinkOfComposition, Nt as QuantityUnitError, O as ControlStatusSchema, Os as hydrateSchema, Pa as validateComposition, Pn as collectWhenMirrorSources, Q as EMPTY_REMOTE_ASSUMED_STATE, Qa as HelperMemberSchema, Qr as localDateOf, Ri as proposeRunningThreshold, Rs as isSecretRefOwnedBy, S as CORE_BLOCKS_ADDON_ID, Sn as buildCapabilityLookup, Sr as fanPresetsCapability, To as BaseAddon, Ui as remoteCapability, Un as coreBlockSourceKind, Va as vocabActionIdFor, Vn as coreBlockComposition, Vr as isInternalActionId, Vt as RunningStateStatusSchema, Wa as zoneOnlySite, Wi as remoteLayoutComponentsCapability, Wn as coreBlocksCapability, Wt as SchedulerError, Xi as resolveCoreBlockFiles, Yi as resolveCoreBlockEntry, Z as EMPTY_AUTOMATION_STATE, Zs as resolveSecretMarkers, _i as normalizeActionUnits, _s as defineAddonMigrations, aa as runSteps, ac as transformSecretWrite, an as actionSourceCapability, bi as normalizeStepTargets, bs as defineRecordKinds, c as ActionStepSchema, dc as errMsg$1, ec as secretTreeFromSchema, en as TemplateKindSchema, et as FAN_CAPTURE_FIELDS, f as AutomationStateDocSchema, fc as EventCategory$1, fo as helperMembers, ga as siteFor, gi as nextOccurrence, hr as evaluateWhenTree, in as actionEffect, it as FanPresetSchema, ja as timedRunLimitOf, k as CoreBlockSchema, ka as templateCapability, kn as capUnitResolver, kt as PowerSourceInfoSchema, l as ActionTargetResolver, mn as appendTrace, mt as INTERNAL_ACTION_PREFIX, ni as lockDoorLinkOfComposition, no as composedDeviceRef, nr as describeComposableCaps, nt as FanControlStatusSchema, o as ALL_CAPABILITY_DEFINITIONS, on as actionsCapability, p as BUILTIN_REMOTE_COMPONENTS, po as historyRetentionFromSettings, ps as collectSecretMarkerRefs, pt as IDLE_ACTION_STATUS, qa as DAY_MS, qn as customKeyOfRole, ra as resolveStepArgs, s as ActionError, sa as schedulersCapability, sn as addonIdOfActionId, so as compositionSourceKey, t as ACTION_TARGET_INVALIDATION_EVENTS, u as ActionVariableSchema, uc as DeviceType$1, vi as normalizeCapStep, wi as occurrenceOn, x as COMPOSER_RUNNER_ID, xn as buildActionSteps, yi as normalizeCoreBlockWrite, zn as compositionSourceRefs, zt as RemoteAssumedStateSchema } from "../../dist-C-reEuab.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
|
-
import { i as parseDeviceStateChanged, t as describeCompositionSources } from "../../composition-sources-
|
|
4
|
-
import { i as capSeriesKey } from "../../capture-engine-
|
|
3
|
+
import { i as parseDeviceStateChanged, t as describeCompositionSources } from "../../composition-sources-Cn00-OEM.mjs";
|
|
4
|
+
import { i as capSeriesKey } from "../../capture-engine-GMG1X2TN.mjs";
|
|
5
5
|
import { t as prefixRange } from "../../prefix-range-Dl0znowN.mjs";
|
|
6
6
|
import { n as unwrapStoredValue, t as loadPrefixed } from "../../prefix-walk-DAOBSyH1.mjs";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
@@ -52,6 +52,7 @@ export declare class DeviceHistoryAddon extends BaseAddon<DeviceHistoryConfig> {
|
|
|
52
52
|
private openRuns;
|
|
53
53
|
private stopRuntime;
|
|
54
54
|
protected override onShutdown(): Promise<void>;
|
|
55
|
-
protected
|
|
55
|
+
protected override scopedSettingsCapabilities(): readonly string[];
|
|
56
|
+
protected override clusterSettingsSchema(cap: string): Promise<ConfigUISchema | null>;
|
|
56
57
|
}
|
|
57
58
|
export default DeviceHistoryAddon;
|
|
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_capture_engine = require("../../capture-engine-
|
|
6
|
+
const require_dist = require("../../dist-DyI9u0b7.js");
|
|
7
|
+
const require_capture_engine = require("../../capture-engine-b-6U50tb.js");
|
|
8
8
|
const require_retention = require("../../retention-BNONb5X_.js");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
10
10
|
//#region src/builtins/device-history/capture/point-writer.ts
|
|
@@ -3589,7 +3589,11 @@ var DeviceHistoryAddon = class extends require_dist.BaseAddon {
|
|
|
3589
3589
|
this.runs = null;
|
|
3590
3590
|
this.runsProvider = null;
|
|
3591
3591
|
}
|
|
3592
|
-
|
|
3592
|
+
scopedSettingsCapabilities() {
|
|
3593
|
+
return ["device-history"];
|
|
3594
|
+
}
|
|
3595
|
+
async clusterSettingsSchema(cap) {
|
|
3596
|
+
if (cap !== "device-history") return null;
|
|
3593
3597
|
return this.schema({ sections: [{
|
|
3594
3598
|
id: "retention",
|
|
3595
3599
|
title: "Retention",
|