@camstack/server 1.2.901 → 1.2.903
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 +12 -12
- package/system/dist/addon-runner.js +11 -6
- package/system/dist/addon-runner.mjs +12 -7
- 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 +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- 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 +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- 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.js +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/command-holds.d.ts +2 -0
- package/system/dist/builtins/device-manager/device-manager.addon.js +18 -4
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +18 -4
- package/system/dist/builtins/device-manager/device-state-mirror.d.ts +2 -0
- package/system/dist/builtins/device-manager/state-refresh-scheduler.d.ts +5 -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 +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- 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 +46 -19
- package/system/dist/builtins/platform-probe/index.mjs +46 -19
- package/system/dist/builtins/platform-probe/platform-scorer.d.ts +7 -0
- package/system/dist/builtins/platform-probe/windows-hardware.d.ts +11 -6
- 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 +3 -3
- 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-B3csK2sW.js → capture-engine-BsGVKjld.js} +1 -1
- package/system/dist/{capture-engine-CCAzcezv.mjs → capture-engine-D0FpnENM.mjs} +1 -1
- package/system/dist/{composition-sources-Bkbk5Oh5.js → composition-sources-75AgWPIR.js} +1 -1
- package/system/dist/{composition-sources-BX7u-Hdf.mjs → composition-sources-B3anVC1t.mjs} +1 -1
- package/system/dist/{constants-BqxCksdV.js → constants-BhN1jHcJ.js} +1 -1
- package/system/dist/{constants-_bOm_ae5.mjs → constants-CjGZCAun.mjs} +1 -1
- package/system/dist/{device-ca-KNx_DazP.js → device-ca-D0-IU1v8.js} +1 -1
- package/system/dist/{device-ca-DRqN1P5Y.mjs → device-ca-rg3jkL9j.mjs} +1 -1
- package/system/dist/{dist-BNrIzdrJ.js → dist-Cadmv3rL.js} +372 -276
- package/system/dist/{dist-S-zGcCEr.mjs → dist-DFRmPXTo.mjs} +361 -271
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-pN0LtUhx.js → hub-identity-CYU8a0Hk.js} +1 -1
- package/system/dist/{hub-identity-DSdbZxeR.mjs → hub-identity-D5hgkkLm.mjs} +1 -1
- package/system/dist/{hub-mdns-ciao-wAcv5VBY.mjs → hub-mdns-ciao-BkD9s5Bz.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-GafEbDm8.js → hub-mdns-ciao-CDCn7uUo.js} +2 -2
- package/system/dist/index.js +22 -16
- package/system/dist/index.mjs +23 -17
- package/system/dist/kernel/inference/inference-resolver.d.ts +4 -2
- package/system/dist/{legacy-integration-rows-door-B1swGb0r.js → legacy-integration-rows-door-C_l9jAFJ.js} +1 -1
- package/system/dist/{legacy-integration-rows-door--186Wij_.mjs → legacy-integration-rows-door-mF8pNWEV.mjs} +1 -1
- package/system/dist/{rename-composition-block-Cf5syiM4.mjs → rename-composition-block-CyULF94b.mjs} +1 -1
- package/system/dist/{rename-composition-block-gJ_4GdHr.js → rename-composition-block-lHaoyeuW.js} +1 -1
- package/system/dist/{restore-archive-DScscuGI.mjs → restore-archive-BZhn64U7.mjs} +1 -1
- package/system/dist/{restore-archive-DXi9iBay.js → restore-archive-IDxQg4bp.js} +1 -1
- package/system/dist/{wal-maintenance-s3KdED98.mjs → wal-maintenance-BFe0hYbV.mjs} +0 -0
- package/system/dist/{wal-maintenance-BA9XNPvt.js → wal-maintenance-Cj1dmAUb.js} +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.903] - 2026-11-18
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- A forked addon can ask for a device with its bindings freshly read, so a capability added after boot is no longer missed
|
|
15
|
+
|
|
16
|
+
## [1.2.902] - 2026-11-18
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- A command on a slow cloud device is no longer reverted while the cloud is still catching up: the device is re-read every 10 seconds until the hold ends
|
|
21
|
+
|
|
10
22
|
## [1.2.901] - 2026-11-18
|
|
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.903",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,10 +66,10 @@
|
|
|
66
66
|
],
|
|
67
67
|
"requires": {
|
|
68
68
|
"addons": {
|
|
69
|
-
"@camstack/addon-
|
|
70
|
-
"@camstack/addon-
|
|
71
|
-
"@camstack/addon-
|
|
72
|
-
"@camstack/addon-
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.701",
|
|
70
|
+
"@camstack/addon-export-hap": ">=1.2.208",
|
|
71
|
+
"@camstack/addon-pipeline": ">=1.2.665",
|
|
72
|
+
"@camstack/addon-pipeline-orchestrator": ">=1.2.704"
|
|
73
73
|
},
|
|
74
74
|
"wrapper": {
|
|
75
75
|
"desktop": ">=0.0.1",
|
|
@@ -78,19 +78,19 @@
|
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
"dependencies": {
|
|
81
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
82
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
81
|
+
"@camstack/addon-admin-ui": "1.2.701",
|
|
82
|
+
"@camstack/addon-agent-ui": "1.2.410",
|
|
83
83
|
"@camstack/addon-auth": "1.2.182",
|
|
84
84
|
"@camstack/addon-benchmark": "1.2.313",
|
|
85
85
|
"@camstack/addon-decoder-nodeav": "1.2.149",
|
|
86
86
|
"@camstack/addon-notifiers": "1.2.639",
|
|
87
|
-
"@camstack/addon-pipeline": "1.2.
|
|
88
|
-
"@camstack/addon-pipeline-orchestrator": "1.2.
|
|
89
|
-
"@camstack/addon-post-analysis": "1.2.
|
|
87
|
+
"@camstack/addon-pipeline": "1.2.665",
|
|
88
|
+
"@camstack/addon-pipeline-orchestrator": "1.2.704",
|
|
89
|
+
"@camstack/addon-post-analysis": "1.2.717",
|
|
90
90
|
"@camstack/develop": "0.1.54",
|
|
91
91
|
"@camstack/sdk": "1.2.159",
|
|
92
|
-
"@camstack/types": "1.2.
|
|
93
|
-
"@camstack/ui-library": "1.2.
|
|
92
|
+
"@camstack/types": "1.2.596",
|
|
93
|
+
"@camstack/ui-library": "1.2.471",
|
|
94
94
|
"@fastify/compress": "^9.0.0",
|
|
95
95
|
"@fastify/cookie": "^11.0.2",
|
|
96
96
|
"@fastify/cors": "^11.2.0",
|
|
@@ -9181,7 +9181,9 @@ function createKernelHwAccel(options = {}) {
|
|
|
9181
9181
|
//#region src/kernel/inference/inference-resolver.ts
|
|
9182
9182
|
/**
|
|
9183
9183
|
* Map the shared platform GPU-vendor probe into the inference `gpu`/`npu` types
|
|
9184
|
-
* the runtime scorer understands. NVIDIA
|
|
9184
|
+
* the runtime scorer understands. NVIDIA gets its OWN slot (like the Coral),
|
|
9185
|
+
* never `gpu`: it is `cuda` only when usable (the CUDA EP is listed), and an
|
|
9186
|
+
* idle NVIDIA card can never hide the iGPU OpenVINO runs on. AMD iGPU → WebGPU/OV-CPU;
|
|
9185
9187
|
* Intel iGPU (or a bare unknown-vendor render node) → openvino; Apple Silicon
|
|
9186
9188
|
* → CoreML/ANE; Intel NPU ("AI Boost") → intel-npu. The NPU only bumps the
|
|
9187
9189
|
* score, never changes the openvino winner, but surfacing it lets the TS
|
|
@@ -9192,11 +9194,14 @@ function createKernelHwAccel(options = {}) {
|
|
|
9192
9194
|
* node AND `hasAmdGpu`, and classifying it as Intel would offer
|
|
9193
9195
|
* `openvino:gpu`/`npu` that do not exist on the host.
|
|
9194
9196
|
*/
|
|
9195
|
-
function mapSignalsToInferenceHardware(signals) {
|
|
9197
|
+
function mapSignalsToInferenceHardware(signals, onnxExecutionProviders = null) {
|
|
9198
|
+
const gpu = signals.hasAmdGpu ? { type: "amd" } : signals.hasIntelGpu ? { type: "intel" } : signals.hasRenderNode ? { type: "intel" } : null;
|
|
9199
|
+
const nvidia = signals.hasNvidiaGpu ? (0, _camstack_types_addon.describeNvidia)({ name: "NVIDIA GPU" }, onnxExecutionProviders) : null;
|
|
9196
9200
|
return {
|
|
9197
|
-
gpu
|
|
9201
|
+
gpu,
|
|
9198
9202
|
npu: signals.platform === "darwin" && signals.arch === "arm64" ? { type: "apple-ane" } : signals.hasIntelNpu ? { type: "intel-npu" } : null,
|
|
9199
|
-
coral: signals.coral
|
|
9203
|
+
coral: signals.coral,
|
|
9204
|
+
...nvidia === null ? {} : { nvidia }
|
|
9200
9205
|
};
|
|
9201
9206
|
}
|
|
9202
9207
|
/**
|
|
@@ -11680,8 +11685,8 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
|
11680
11685
|
bypassWrapper: true
|
|
11681
11686
|
});
|
|
11682
11687
|
},
|
|
11683
|
-
fetchDevice: async (deviceId) => {
|
|
11684
|
-
const cached = bindingCache.get(deviceId);
|
|
11688
|
+
fetchDevice: async (deviceId, options) => {
|
|
11689
|
+
const cached = options?.fresh === true ? void 0 : bindingCache.get(deviceId);
|
|
11685
11690
|
if (cached) return (0, _camstack_types_addon.createDeviceProxy)(api, cached, { stateSource: deviceSliceSource });
|
|
11686
11691
|
const binding = await api.deviceManager.getBindings.query({ deviceId });
|
|
11687
11692
|
bindingCache.set(deviceId, binding);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { register } from "node:module";
|
|
2
|
-
import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, CAP_METHOD_NOT_IMPLEMENTED, CAP_METHOD_TIMEOUTS_MS, COLLECTION_ARRAY_METHODS, COMPOSED_DEVICE_STABLE_ID_PREFIX, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, MIGRATION_API_VERSION, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry, ReadinessTimeoutError, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, commandOrigin, createDebugEmitter, createDeviceProxy, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, describeCustomActions, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, findMigrationsBlocked, isCollectionArrayMethodName, isProviderOptionalMethodName, maskUrlCredentials, nodeIdOfScopedKey, normalizeAddonInitResult, readCommandOrigin, readErrorI18n, readNodePin, resolveDeviceSettings, resolveSecretViewsIn, scopeKey, scrubKnownSecrets, switchRefusesSetState, withCapInputDefaults } from "@camstack/types/addon";
|
|
2
|
+
import { BOOT_RECOVERY_BACKOFF_MS, CALLER_STAMPED_CAPABILITIES, CAP_METHOD_NOT_IMPLEMENTED, CAP_METHOD_TIMEOUTS_MS, COLLECTION_ARRAY_METHODS, COMPOSED_DEVICE_STABLE_ID_PREFIX, DATAPLANE_SECRET_HEADER, DEVICE_CHILDREN_BATCH_MAX, DeviceType, DisposerChain, ErrorI18nPayloadSchema, EventCategory, MIGRATION_API_VERSION, PEER_BYTES_CHUNK_BYTES, PEER_BYTES_MAX_OUTSTANDING, PEER_BYTES_STALL_MS, PEER_BYTES_TICKET_TTL_MS, ReadinessRegistry, ReadinessTimeoutError, addonSliceHandleApi, asJsonObject, asString, collectZodSecretPaths, commandOrigin, createDebugEmitter, createDeviceProxy, createEventBusSliceSource, createRecordsAccess, createSecretsAccess, describeCustomActions, describeNvidia, deviceOpsCapability, emitReadiness, errMsg, expandCapMethods, findMigrationsBlocked, isCollectionArrayMethodName, isProviderOptionalMethodName, maskUrlCredentials, nodeIdOfScopedKey, normalizeAddonInitResult, readCommandOrigin, readErrorI18n, readNodePin, resolveDeviceSettings, resolveSecretViewsIn, scopeKey, scrubKnownSecrets, switchRefusesSetState, withCapInputDefaults } from "@camstack/types/addon";
|
|
3
3
|
import * as fs$1 from "node:fs";
|
|
4
4
|
import fs, { createReadStream, createWriteStream, existsSync, readFileSync, readdirSync } from "node:fs";
|
|
5
5
|
import * as path from "node:path";
|
|
@@ -9126,7 +9126,9 @@ function createKernelHwAccel(options = {}) {
|
|
|
9126
9126
|
//#region src/kernel/inference/inference-resolver.ts
|
|
9127
9127
|
/**
|
|
9128
9128
|
* Map the shared platform GPU-vendor probe into the inference `gpu`/`npu` types
|
|
9129
|
-
* the runtime scorer understands. NVIDIA
|
|
9129
|
+
* the runtime scorer understands. NVIDIA gets its OWN slot (like the Coral),
|
|
9130
|
+
* never `gpu`: it is `cuda` only when usable (the CUDA EP is listed), and an
|
|
9131
|
+
* idle NVIDIA card can never hide the iGPU OpenVINO runs on. AMD iGPU → WebGPU/OV-CPU;
|
|
9130
9132
|
* Intel iGPU (or a bare unknown-vendor render node) → openvino; Apple Silicon
|
|
9131
9133
|
* → CoreML/ANE; Intel NPU ("AI Boost") → intel-npu. The NPU only bumps the
|
|
9132
9134
|
* score, never changes the openvino winner, but surfacing it lets the TS
|
|
@@ -9137,11 +9139,14 @@ function createKernelHwAccel(options = {}) {
|
|
|
9137
9139
|
* node AND `hasAmdGpu`, and classifying it as Intel would offer
|
|
9138
9140
|
* `openvino:gpu`/`npu` that do not exist on the host.
|
|
9139
9141
|
*/
|
|
9140
|
-
function mapSignalsToInferenceHardware(signals) {
|
|
9142
|
+
function mapSignalsToInferenceHardware(signals, onnxExecutionProviders = null) {
|
|
9143
|
+
const gpu = signals.hasAmdGpu ? { type: "amd" } : signals.hasIntelGpu ? { type: "intel" } : signals.hasRenderNode ? { type: "intel" } : null;
|
|
9144
|
+
const nvidia = signals.hasNvidiaGpu ? describeNvidia({ name: "NVIDIA GPU" }, onnxExecutionProviders) : null;
|
|
9141
9145
|
return {
|
|
9142
|
-
gpu
|
|
9146
|
+
gpu,
|
|
9143
9147
|
npu: signals.platform === "darwin" && signals.arch === "arm64" ? { type: "apple-ane" } : signals.hasIntelNpu ? { type: "intel-npu" } : null,
|
|
9144
|
-
coral: signals.coral
|
|
9148
|
+
coral: signals.coral,
|
|
9149
|
+
...nvidia === null ? {} : { nvidia }
|
|
9145
9150
|
};
|
|
9146
9151
|
}
|
|
9147
9152
|
/**
|
|
@@ -11625,8 +11630,8 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
|
11625
11630
|
bypassWrapper: true
|
|
11626
11631
|
});
|
|
11627
11632
|
},
|
|
11628
|
-
fetchDevice: async (deviceId) => {
|
|
11629
|
-
const cached = bindingCache.get(deviceId);
|
|
11633
|
+
fetchDevice: async (deviceId, options) => {
|
|
11634
|
+
const cached = options?.fresh === true ? void 0 : bindingCache.get(deviceId);
|
|
11630
11635
|
if (cached) return createDeviceProxy(api, cached, { stateSource: deviceSliceSource });
|
|
11631
11636
|
const binding = await api.deviceManager.getBindings.query({ deviceId });
|
|
11632
11637
|
bindingCache.set(deviceId, binding);
|
|
@@ -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-Cadmv3rL.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Eu as errMsg, Ou as EventCategory, Rn as addonPagesCapability, Sc as BaseAddon } from "../../dist-DFRmPXTo.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
@@ -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-Cadmv3rL.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Bn as addonWidgetsCapability, Eu as errMsg, Ou as EventCategory, Sc as BaseAddon } from "../../dist-DFRmPXTo.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
@@ -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-Cadmv3rL.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
const require_log_redactor = require("../../log-redactor-BhIEMaG9.js");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { E as CORE_BLOCK_ADDON_PREFIX, Eu as errMsg, Hn as alertEpisodePayload, Ou as EventCategory, Ri as isAlertEpisodeOpen, Sc as BaseAddon, Un as alertsCapability, Vn as alertEpisodeId, p as AlertSchema, wl as defineRecordKinds, yl as createEvent, zi as isAlertEpisodeSeverity } from "../../dist-DFRmPXTo.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import { a as redactLogText } from "../../log-redactor-XLDrPzOi.mjs";
|
|
4
4
|
import * as fs$1 from "node:fs";
|
|
@@ -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-Cadmv3rL.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
9
9
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Eu as errMsg, Ou as EventCategory, Sc as BaseAddon, Yn as bareAddonId, ht as FIRST_LEVEL_MACRO_CLASSES, ro as ptzAutotrackCapability, zl as isEvent } from "../../dist-DFRmPXTo.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
4
4
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
@@ -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-Cadmv3rL.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-IDxQg4bp.js");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
10
10
|
let node_fs = require("node:fs");
|
|
11
11
|
node_fs = require_chunk.__toESM(node_fs);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Jn as backupCapability, Ou as EventCategory, Sc as BaseAddon, Zl as nodePin, _a as mayWriteToLocation, hu as toNodeId, os as storageOccupancyCapability } from "../../dist-DFRmPXTo.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-BZhn64U7.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import * as fs$1 from "node:fs";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
@@ -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-Cadmv3rL.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 {
|
|
1
|
+
import { O as CalendarPreferencesSchema, Sc as BaseAddon, ir as calendarsCapability, wl as defineRecordKinds } from "../../dist-DFRmPXTo.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-Cadmv3rL.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let _camstack_types_node = require("@camstack/types/node");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as DERIVED_CAMERA_SILENCED_CAP_NAMES, Bt as MOTION_CLOSE_AFTER_MS, Cu as DeviceFeature, Et as HostedWithdrawalGate, Eu as errMsg, Fl as hydrateSchema, Go as selectEngineHostedBlocks, Ir as declarationOwnerNodeId, Ks as buildFfmpegArgs, Ls as COMPOSER_ADDON_ID, Oa as motionCapability, Ou as EventCategory, Sc as BaseAddon, Yn as bareAddonId, aa as legacySweepDone, ar as cameraGridLayoutCapability, ba as memoizePinnedFfmpeg, cs as streamCatalogCapability, es as snapshotCapability, ki as hostEngineDevice, us as sweepLegacyEngineRows, v as BaseDevice, yl as createEvent, yr as compileHelper } from "../../dist-DFRmPXTo.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { FfmpegProcess } from "@camstack/types/node";
|
|
4
4
|
import { promises } from "node:fs";
|
|
@@ -3,11 +3,11 @@ 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-
|
|
8
|
-
const require_composition_sources = require("../../composition-sources-
|
|
6
|
+
const require_dist = require("../../dist-Cadmv3rL.js");
|
|
7
|
+
const require_capture_engine = require("../../capture-engine-BsGVKjld.js");
|
|
8
|
+
const require_composition_sources = require("../../composition-sources-75AgWPIR.js");
|
|
9
9
|
const require_retention = require("../../retention-BcOSL6b9.js");
|
|
10
|
-
const require_rename_composition_block = require("../../rename-composition-block-
|
|
10
|
+
const require_rename_composition_block = require("../../rename-composition-block-lHaoyeuW.js");
|
|
11
11
|
let zod = require("zod");
|
|
12
12
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
13
13
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { i as capSeriesKey, m as parseConfirmedStateChanged, p as isRecord$4 } from "../../capture-engine-
|
|
3
|
-
import { n as normalizedNativeOwner } from "../../composition-sources-
|
|
1
|
+
import { $s as compositionFeatureEnabled, Ba as parseColorInput, Bs as DEFAULT_HISTORY_RETENTION, C as COMPOSED_ITEM_FIXED_FIELDS, Ca as methodRefusal, Ds as valveCapability, Dt as HvacModeSchema, Du as featuresOfBoundCaps, Ei as groupTemplate, Eu as errMsg, Fo as runFanOut, Ga as planComposition, Gs as MINUTE_MS, Ha as petFountainCapability, Hl as isReadingQuantity, Hs as HISTORY_SLOW_MS, Jo as sharedActuatorFeatures, Lr as declaredSeriesKind, Ls as COMPOSER_ADDON_ID, Ms as withDefaultRunning, Oa as motionCapability, Ou as EventCategory, Qn as buildCapabilityLookup, Qs as composedDeviceStableId, Qt as PetFountainStatusSchema, Sc as BaseAddon, Sr as compositionFieldKey, Ti as groupCommandsCapability, Tr as consumablesCapability, Tu as DeviceType, Ua as petFountainWaterItem, Us as HOUR_MS, Vs as HISTORY_FAST_MS, Xn as brightnessCapability, Xo as sharedColorModes, Xs as cloneStatefulExpressionMemory, Yo as sharedActuatorMethods, Zs as composedDeviceRef, _c as planResetTier, _t as FanDirectionSchema, ac as evaluateDerivative, bc as toExpressionValue, cc as historyRetentionFromSettings, dc as isEngineHostedHelper, ds as switchCapability, ea as kebabToCamel, ec as compositionItemFieldPath, eo as processTimeZoneOr, fc as isForwardInputRef, gc as openStatistic, gi as featureForwards, gr as colorCapability, hc as openReset, i as ACTUATOR_TEMPLATE_IDS, ic as disarmRoseMemory, ii as evaluateCompositionField, j as ConsumableItemSchema, jr as coverCapability, ko as resolveMutate, li as expressionContainsBuiltinCall, mc as nextLocalMidnight, mi as fanOutTargets, nc as compositionSourceKey, oc as evaluateStatistic, pc as isHistoryHelper, pi as fanControlCapability, pr as climateControlCapability, r as ACTUATOR_METHODS, rc as createStatefulExpressionMemory, s as ALL_CAPABILITY_DEFINITIONS, tc as compositionSliceKey, tt as DeclaredDevices, ua as lockControlCapability, uc as integrateReading, v as BaseDevice, va as mediaPlayerCapability, vc as planStatisticTier, xr as composerCapability, xt as GroupCommandResultSchema, ya as mediaPlayerFeaturesOfRoles, yc as statisticCadenceMs, yl as createEvent } from "../../dist-DFRmPXTo.mjs";
|
|
2
|
+
import { i as capSeriesKey, m as parseConfirmedStateChanged, p as isRecord$4 } from "../../capture-engine-D0FpnENM.mjs";
|
|
3
|
+
import { n as normalizedNativeOwner } from "../../composition-sources-B3anVC1t.mjs";
|
|
4
4
|
import { i as DAY_MS, t as DEFAULT_RETENTION } from "../../retention-CUOVI1p7.mjs";
|
|
5
|
-
import { n as renameCompositionBlock } from "../../rename-composition-block-
|
|
5
|
+
import { n as renameCompositionBlock } from "../../rename-composition-block-CyULF94b.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
8
8
|
/**
|
|
@@ -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-Cadmv3rL.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 = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Sc as BaseAddon, fa as logDestinationCapability } from "../../dist-DFRmPXTo.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 = {
|
|
@@ -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-Cadmv3rL.js");
|
|
4
4
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
5
|
-
const require_capture_engine = require("../../capture-engine-
|
|
6
|
-
const require_composition_sources = require("../../composition-sources-
|
|
5
|
+
const require_capture_engine = require("../../capture-engine-BsGVKjld.js");
|
|
6
|
+
const require_composition_sources = require("../../composition-sources-75AgWPIR.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
|
const require_cap_call_scope = require("../../cap-call-scope-8eiugfLl.js");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $s as compositionFeatureEnabled, $t as PowerSourceInfoSchema, A as ConditionMirror, Aa as nextTimeBoundaryInMs, Ar as coreBlocksCapability, At as INTERNAL_ACTION_PREFIX, Bo as schedulersCapability, Ci as generateAutomationBlock, Cl as defineEntryKind, Co as resolveCoreBlockEntry, Cr as compositionSourceRefs, Di as hasTimeLeaves, Dn as TagsFieldSchema, Dr as coreBlockComposition, E as CORE_BLOCK_ADDON_PREFIX, En as TagStyleSchema, Er as coreBlockAddonId, Es as validateSchedulerInput, Eu as errMsg$1, Fi as internalActionId, Fl as hydrateSchema, Fn as actionWaitTotalMs, Ga as planComposition, Gl as isSecretMarker, Hi as isBuiltinTemplateId, Hr as describeComposableCaps, In as actionsCapability, Io as runSteps, Is as zoneOnlySite, Ja as powerSourceCapability, Kc as RecordIntegrationInstances, Kn as assertStepsOffered, La as occurrenceOn, Ln as addonIdOfActionId, Ls as COMPOSER_ADDON_ID, M as CoreBlockSchema, Ma as normalizeCoreBlockWrite, Na as normalizeTags, Ni as instanceCodeHash, No as resolveStepArgs, Nr as customKeyOfRole, Oi as heroLayoutCapability, Ol as entryBody, On as TemplateKindSchema, Or as coreBlockIdFromAddonId, Ot as IDENTITY_LINK_KINDS, Ou as EventCategory$1, Pi as integrationInstancesCapability, Pn as actionSourceCapability, Qa as problemsBlockSave, Qn as buildCapabilityLookup, Qo as siteFor, Qs as composedDeviceStableId, Rs as CompositionSchema, Sa as mergeScalarTarget, Sc as BaseAddon, T as CORE_BLOCKS_ADDON_ID, Tn as TagNameSchema, To as resolveHeroLayout, Tu as DeviceType$1, Vt as MediaPlayerStatusSchema, Wn as appendTrace, Wo as seedInstanceOnce, Ws as HelperMemberSchema, Wt as NcTaggedRuleKindSchema, Ya as powerSourceLinkOfComposition, Za as prepareRecipeUnits, Zn as buildActionSteps, Zs as composedDeviceRef, _ as BUILTIN_REMOTE_COMPONENTS, _o as replaceRecipeLiteral, _s as timedRunLimitOf, _u as transformSecretWrite, ai as evaluateStepCondition, al as actionEffect, an as REMOTE_MEDIA_COMMANDS, ao as readStoredRemoteConfig, br as compileScalarOverride, bs as timedRunSeconds, bu as vocabCall, c as ActionError, cc as historyRetentionFromSettings, cn as RemoteAssumedStateSchema, cr as capUnitResolver, ct as EMPTY_AUTOMATION_STATE, d as ActionTargetResolver, da as lockDoorLinkOfComposition, do as remoteCapability, du as secretTreeFromSchema, ea as kebabToCamel, f as ActionVariableSchema, fi as fanAxisPath, fo as remoteLayoutComponentsCapability, fr as checkTemplatePayload, ft as FAN_CAPTURE_FIELDS, g as BUILTIN_AUTOMATION_TEMPLATES, gn as SchedulerSchema, go as renameInTags, gs as timedRunCapability, gt as FanControlStatusSchema, h as AutomationTemplatePayloadSchema, hi as fanPresetsCapability, hl as collectSecretMarkerRefs, hn as SchedulerError, ho as removeScalarTarget, hr as collectWhenMirrorSources, hs as templateCapability, io as readRecipeLiteral, ja as normalizeActionUnits, jo as resolveRemoteSource, js as weekdayOfLocalDate, ka as nextOccurrence, kr as coreBlockSourceKind, kt as IDLE_ACTION_STATUS, l as ActionMinDelaySecSchema, ln as RemoteLayoutPayloadSchema, lt as EMPTY_REMOTE_ASSUMED_STATE, m as AutomationStateDocSchema, mn as SWITCH_DEFAULT_OPTIONS, mo as removeFromTags, mr as collectDeviceTemplates, ms as tagsCapability, mt as FAN_OSCILLATION_AXIS_SETTABLE, n as ACTION_TARGET_INVALIDATION_EVENTS, nc as compositionSourceKey, no as proposeRunningThreshold, ns as stableIdMapOf, oi as evaluateWhenTree, ou as resolveSecretMarkers, po as remoteSourceSteps, ps as tagKey, pt as FAN_OSCILLATION_AXES, qa as powerSourceActuatorConflicts, qi as isInternalActionId, ql as isSecretRefOwnedBy, qs as canonicalStoredBlockTarget, rl as VocabActionError, rn as QuantityUnitError, rr as builtinAutomationTemplate, s as ALL_CAPABILITY_DEFINITIONS, sa as localDateOf, sc as helperMembers, sr as canonicalStoredStepTargets, su as ruleFireOfClaim, to as projectDeviceRow, tr as buildHeroModel, tt as DeclaredDevices, u as ActionStepSchema, un as RunningStateStatusSchema, uo as reexpandAutomationInstance, ut as EMPTY_REMOTE_CONFIG, vi as findChannelSource, vl as commandOrigin$1, vo as replacedFieldKeys, vs as timedRunMaxIn, vt as FanPresetSchema, w as COMPOSER_RUNNER_ID, wl as defineRecordKinds, wo as resolveCoreBlockFiles, wr as compositionUnionReads, ws as validateComposition, wu as DeviceRole, xl as defineAddonMigrations, xs as toTimings, yn as SetOscillationAxisInputSchema, yo as resolveActionVariables, ys as timedRunQuickRun, yu as vocabActionIdFor, z as DEFAULT_HOLD_OVERRIDE, zr as defaultTagColorId, zs as DAY_MS } from "../../dist-DFRmPXTo.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
|
-
import { i as capSeriesKey, m as parseConfirmedStateChanged, p as isRecord$1 } from "../../capture-engine-
|
|
4
|
-
import { t as describeCompositionSources } from "../../composition-sources-
|
|
3
|
+
import { i as capSeriesKey, m as parseConfirmedStateChanged, p as isRecord$1 } from "../../capture-engine-D0FpnENM.mjs";
|
|
4
|
+
import { t as describeCompositionSources } from "../../composition-sources-B3anVC1t.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 { n as readCurrentCommandOrigin } from "../../cap-call-scope-Bic6Ekfw.mjs";
|
|
@@ -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-Cadmv3rL.js");
|
|
7
|
+
const require_capture_engine = require("../../capture-engine-BsGVKjld.js");
|
|
8
8
|
const require_retention = require("../../retention-BcOSL6b9.js");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
10
10
|
//#region src/builtins/device-history/capture/point-writer.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ct as
|
|
2
|
-
import { a as catalogMetrics, c as DeviceDirectory, d as identityOf, f as subjectIdOf, i as capSeriesKey, l as isRealDeviceType, m as parseConfirmedStateChanged, n as CaptureEngine, o as readPath, r as capItemSeriesKey, s as readUnit, t as CAP_KEY_PREFIX, u as SeriesRegistry } from "../../capture-engine-
|
|
1
|
+
import { Ct as HISTORY_ITEM_CATALOG, Dl as emitReadiness, Gn as armRemovalReconcile, H as DEVICE_HISTORY_ENERGY_KEY, Hl as isReadingQuantity, Kr as deviceHistoryCapability, Nc as InvalidRecordError, Ou as EventCategory, Pl as historyUnitFor, Sc as BaseAddon, St as HISTORY_CATALOG, Tu as DeviceType, Xr as deviceRunsCapability, Yc as RecordTooLargeError, Yr as deviceRemovalHookCapability, ei as deviceTransitionsCapability, it as DeviceRunSchema, kc as DeviceTransitionSchema, wl as defineRecordKinds, xc as wattMillisecondsToKwh } from "../../dist-DFRmPXTo.mjs";
|
|
2
|
+
import { a as catalogMetrics, c as DeviceDirectory, d as identityOf, f as subjectIdOf, i as capSeriesKey, l as isRealDeviceType, m as parseConfirmedStateChanged, n as CaptureEngine, o as readPath, r as capItemSeriesKey, s as readUnit, t as CAP_KEY_PREFIX, u as SeriesRegistry } from "../../capture-engine-D0FpnENM.mjs";
|
|
3
3
|
import { a as FIVE_MINUTES_MS, c as bucketEndOf, i as DAY_MS, l as bucketStartOf, n as RetentionJob, o as HOUR_MS, r as DepartureTracker, s as ROLLUP_GRACE_MS, t as DEFAULT_RETENTION, u as floorTo } from "../../retention-CUOVI1p7.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
//#region src/builtins/device-history/capture/point-writer.ts
|
|
@@ -65,6 +65,8 @@ export declare class CommandHolds {
|
|
|
65
65
|
isHolding(deviceId: number, capName: string): boolean;
|
|
66
66
|
/** Is any field of any cap of the device still held? (D1062: the command burst stops when this is false.) */
|
|
67
67
|
isHoldingDevice(deviceId: number): boolean;
|
|
68
|
+
/** The longest time any pending hold on the device still has to run, in ms; 0 when none. */
|
|
69
|
+
holdRemainingMs(deviceId: number): number;
|
|
68
70
|
/** Forget a removed device's holds. */
|
|
69
71
|
clearDevice(deviceId: number): void;
|
|
70
72
|
/** Stop every timer (shutdown). */
|
|
@@ -3,10 +3,10 @@ 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-Cadmv3rL.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
const require_log_redactor = require("../../log-redactor-BhIEMaG9.js");
|
|
9
|
-
const require_rename_composition_block = require("../../rename-composition-block-
|
|
9
|
+
const require_rename_composition_block = require("../../rename-composition-block-lHaoyeuW.js");
|
|
10
10
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
11
11
|
const require_prefix_walk = require("../../prefix-walk-Dv6MLZlM.js");
|
|
12
12
|
const require_retired_settings_keys = require("../../retired-settings-keys-C8nOOr5H.js");
|
|
@@ -12712,6 +12712,7 @@ var CommandHolds = class {
|
|
|
12712
12712
|
capName: request.capName,
|
|
12713
12713
|
method: request.method,
|
|
12714
12714
|
holdMs: request.holdMs,
|
|
12715
|
+
expiresAt: Date.now() + request.holdMs,
|
|
12715
12716
|
timer
|
|
12716
12717
|
});
|
|
12717
12718
|
}
|
|
@@ -12795,6 +12796,12 @@ var CommandHolds = class {
|
|
|
12795
12796
|
for (const fields of this.held.get(deviceId)?.values() ?? []) if (fields.size > 0) return true;
|
|
12796
12797
|
return false;
|
|
12797
12798
|
}
|
|
12799
|
+
/** The longest time any pending hold on the device still has to run, in ms; 0 when none. */
|
|
12800
|
+
holdRemainingMs(deviceId) {
|
|
12801
|
+
let longest = 0;
|
|
12802
|
+
for (const arming of this.armings.values()) if (arming.deviceId === deviceId) longest = Math.max(longest, arming.expiresAt - Date.now());
|
|
12803
|
+
return longest;
|
|
12804
|
+
}
|
|
12798
12805
|
/** Forget a removed device's holds. */
|
|
12799
12806
|
clearDevice(deviceId) {
|
|
12800
12807
|
this.held.delete(deviceId);
|
|
@@ -12955,6 +12962,10 @@ var DeviceStateMirror = class {
|
|
|
12955
12962
|
isHoldingDevice(deviceId) {
|
|
12956
12963
|
return this.holds.isHoldingDevice(deviceId);
|
|
12957
12964
|
}
|
|
12965
|
+
/** How long the longest pending hold on the device still runs, ms; 0 when none. */
|
|
12966
|
+
holdRemainingMs(deviceId) {
|
|
12967
|
+
return this.holds.holdRemainingMs(deviceId);
|
|
12968
|
+
}
|
|
12958
12969
|
/** Stop the hold timers (shutdown). */
|
|
12959
12970
|
disposeHolds() {
|
|
12960
12971
|
this.holds.dispose();
|
|
@@ -14198,7 +14209,9 @@ function __resetStateRefreshPolicyRegistryForTests() {
|
|
|
14198
14209
|
* A non-batching integration keeps one schedule per device;
|
|
14199
14210
|
* - command (`onCommand`, awaited by the D1022 seams): a polled device is read
|
|
14200
14211
|
* at once and the command returns after it, then read again at ~3 s and
|
|
14201
|
-
* ~10 s
|
|
14212
|
+
* ~10 s, then every ~10 s with a last read ~2 s before it expires, for as
|
|
14213
|
+
* long as a D1061 hold on it is still pending (the burst covers the hold's
|
|
14214
|
+
* own limit, 30 s by default, up to 120 s); a push device waits
|
|
14202
14215
|
* `PUSH_CONFIRM_WINDOW_MS` for the confirming push and reads once if none
|
|
14203
14216
|
* came. These reads are per device and never move a batched group's schedule;
|
|
14204
14217
|
* - push health: silence past `heartbeatMs` reads the integration, asks it to
|
|
@@ -14438,7 +14451,7 @@ var StateRefreshScheduler = class {
|
|
|
14438
14451
|
if (!this.deps.holdsPending(deviceId)) return;
|
|
14439
14452
|
const timers = [];
|
|
14440
14453
|
let stopped = false;
|
|
14441
|
-
for (const offset of require_dist.
|
|
14454
|
+
for (const offset of require_dist.commandBurstOffsets(this.deps.holdRemainingMs(deviceId))) timers.push(setTimeout(() => {
|
|
14442
14455
|
if (stopped || this.disposed) return;
|
|
14443
14456
|
if (!this.deps.holdsPending(deviceId)) {
|
|
14444
14457
|
stopped = true;
|
|
@@ -14598,6 +14611,7 @@ function startStateRefresh(deps) {
|
|
|
14598
14611
|
policies: deps.policies ?? getStateRefreshPolicyRegistry(),
|
|
14599
14612
|
logger: deps.logger,
|
|
14600
14613
|
holdsPending: (deviceId) => deps.mirror.isHoldingDevice(deviceId),
|
|
14614
|
+
holdRemainingMs: (deviceId) => deps.mirror.holdRemainingMs(deviceId),
|
|
14601
14615
|
refresh: deps.refresh,
|
|
14602
14616
|
resubscribe: deps.resubscribe
|
|
14603
14617
|
});
|