@camstack/server 1.2.873 → 1.2.874
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 +7 -0
- package/package.json +10 -11
- 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/device-manager.addon.js +87 -29
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +87 -29
- 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 +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +38 -4
- package/system/dist/builtins/system-config/system-config.addon.mjs +319 -285
- 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-p0DLUXcQ.js → capture-engine-Cm-Bq2GH.js} +1 -1
- package/system/dist/{capture-engine-WL-mpqRt.mjs → capture-engine-v5nSEyMa.mjs} +1 -1
- package/system/dist/{composition-sources-Dheuv9_O.mjs → composition-sources-BVxOFdMp.mjs} +1 -1
- package/system/dist/{composition-sources-BuRkhqkL.js → composition-sources-DgAdHcEq.js} +1 -1
- package/system/dist/{constants-D8fNaNti.js → constants-CPAYm7Bq.js} +1 -1
- package/system/dist/{constants-Ci169fqS.mjs → constants-Di6cOA3l.mjs} +1 -1
- package/system/dist/{device-ca-CPeChXfp.js → device-ca-CtsnO3ul.js} +1 -1
- package/system/dist/{device-ca-Cu6Xu_CS.mjs → device-ca-DukusHra.mjs} +1 -1
- package/system/dist/{dist-BHAE4TbZ.js → dist-AbO-Bmtw.js} +153 -0
- package/system/dist/{dist-BBWAHu-O.mjs → dist-CIUo0MpB.mjs} +148 -1
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-BPdwL_Qn.mjs → hub-identity-CMzGT-O8.mjs} +1 -1
- package/system/dist/{hub-identity-CfaF_M6Y.js → hub-identity-DyXxu-ZQ.js} +1 -1
- package/system/dist/{hub-mdns-ciao-1NZAZ7Mp.mjs → hub-mdns-ciao-BTpy99VT.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-DS7-X9U_.js → hub-mdns-ciao-C6Gkg80T.js} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/kernel/moleculer/mesh-mtls/tls-tcp-transporter.d.ts +7 -0
- package/system/dist/{legacy-integration-rows-door-Bnz-aNu6.js → legacy-integration-rows-door-BQztEAgV.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-CsxfaUSU.mjs → legacy-integration-rows-door-ChwuaraH.mjs} +1 -1
- package/system/dist/{rename-composition-block-Dxywwjac.mjs → rename-composition-block-CEkkKNmw.mjs} +1 -1
- package/system/dist/{rename-composition-block-CQUr1lYO.js → rename-composition-block-CnQKQDSg.js} +1 -1
- package/system/dist/{restore-archive-CFMsgNKV.mjs → restore-archive-DROkE3b4.mjs} +82 -82
- package/system/dist/{restore-archive-CbMms_b0.js → restore-archive-DRYoZ_dn.js} +1 -1
- package/system/dist/{wal-maintenance-DJ76u4GY.js → wal-maintenance-C81WD-_A.js} +0 -0
- package/system/dist/{wal-maintenance-6782RP08.mjs → wal-maintenance-DYmw2kX7.mjs} +0 -0
- package/system/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.874] - 2026-11-15
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- A device that reports its state in steps after a restart no longer shows invented interactions in its details (a field the device is first learned is not a change).
|
|
15
|
+
- The hub now also reconnects to an agent whose mesh certificate already expired, so such an agent comes back online instead of crash-looping
|
|
16
|
+
|
|
10
17
|
## [1.2.873] - 2026-11-15
|
|
11
18
|
|
|
12
19
|
### Added
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.874",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,12 +66,11 @@
|
|
|
66
66
|
],
|
|
67
67
|
"requires": {
|
|
68
68
|
"addons": {
|
|
69
|
-
"@camstack/addon-admin-ui": ">=1.2.
|
|
70
|
-
"@camstack/addon-
|
|
71
|
-
"@camstack/addon-pipeline": ">=1.2.
|
|
72
|
-
"@camstack/addon-
|
|
73
|
-
"@camstack/addon-provider-
|
|
74
|
-
"@camstack/addon-terminal": ">=0.1.165"
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.675",
|
|
70
|
+
"@camstack/addon-pipeline": ">=1.2.654",
|
|
71
|
+
"@camstack/addon-pipeline-orchestrator": ">=1.2.690",
|
|
72
|
+
"@camstack/addon-provider-gree": ">=0.2.160",
|
|
73
|
+
"@camstack/addon-provider-homematic": ">=1.2.202"
|
|
75
74
|
},
|
|
76
75
|
"wrapper": {
|
|
77
76
|
"desktop": ">=0.0.1",
|
|
@@ -80,18 +79,18 @@
|
|
|
80
79
|
}
|
|
81
80
|
},
|
|
82
81
|
"dependencies": {
|
|
83
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
82
|
+
"@camstack/addon-admin-ui": "1.2.675",
|
|
84
83
|
"@camstack/addon-agent-ui": "1.2.388",
|
|
85
84
|
"@camstack/addon-auth": "1.2.182",
|
|
86
85
|
"@camstack/addon-benchmark": "1.2.313",
|
|
87
86
|
"@camstack/addon-decoder-nodeav": "1.2.149",
|
|
88
87
|
"@camstack/addon-notifiers": "1.2.639",
|
|
89
|
-
"@camstack/addon-pipeline": "1.2.
|
|
90
|
-
"@camstack/addon-pipeline-orchestrator": "1.2.
|
|
88
|
+
"@camstack/addon-pipeline": "1.2.654",
|
|
89
|
+
"@camstack/addon-pipeline-orchestrator": "1.2.690",
|
|
91
90
|
"@camstack/addon-post-analysis": "1.2.707",
|
|
92
91
|
"@camstack/develop": "0.1.53",
|
|
93
92
|
"@camstack/sdk": "1.2.158",
|
|
94
|
-
"@camstack/types": "1.2.
|
|
93
|
+
"@camstack/types": "1.2.572",
|
|
95
94
|
"@camstack/ui-library": "1.2.449",
|
|
96
95
|
"@fastify/compress": "^9.0.0",
|
|
97
96
|
"@fastify/cookie": "^11.0.2",
|
|
@@ -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-AbO-Bmtw.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 { Cn as addonPagesCapability,
|
|
1
|
+
import { Cn as addonPagesCapability, Ll as errMsg, Ls as BaseAddon, zl as EventCategory } from "../../dist-CIUo0MpB.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-AbO-Bmtw.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 { Ll as errMsg, Ls as BaseAddon, Tn as addonWidgetsCapability, zl as EventCategory } from "../../dist-CIUo0MpB.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-AbO-Bmtw.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 { D as CORE_BLOCK_ADDON_PREFIX, Dn as alertEpisodePayload, En as alertEpisodeId,
|
|
1
|
+
import { D as CORE_BLOCK_ADDON_PREFIX, Dn as alertEpisodePayload, En as alertEpisodeId, Ll as errMsg, Ls as BaseAddon, On as alertsCapability, Pc as createEvent, _i as isAlertEpisodeSeverity, gi as isAlertEpisodeOpen, p as AlertSchema, zc as defineRecordKinds, zl as EventCategory } from "../../dist-CIUo0MpB.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-AbO-Bmtw.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 { Ll as errMsg, Ls as BaseAddon, Oa as ptzAutotrackCapability, Pn as bareAddonId, Qc as isEvent, pt as FIRST_LEVEL_MACRO_CLASSES, zl as EventCategory } from "../../dist-CIUo0MpB.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-AbO-Bmtw.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-DRYoZ_dn.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 { El as toNodeId, Eo as storageOccupancyCapability, Gi as mayWriteToLocation, Ls as BaseAddon, Nn as backupCapability, ul as nodePin, zl as EventCategory } from "../../dist-CIUo0MpB.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-DROkE3b4.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-AbO-Bmtw.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 { Ls as BaseAddon, Wn as calendarsCapability, k as CalendarPreferencesSchema, zc as defineRecordKinds } from "../../dist-CIUo0MpB.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-AbO-Bmtw.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let _camstack_types_node = require("@camstack/types/node");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $c as isInstanceEnabled, Gn as cameraGridLayoutCapability, Il as DeviceType, Jc as hydrateSchema, Ji as memoizePinnedFfmpeg, Ll as errMsg, Ls as BaseAddon, Oo as streamCatalogCapability, Pc as createEvent, Pl as DeviceFeature, Pn as bareAddonId, Pt as MOTION_CLOSE_AFTER_MS, Rc as defineEntryKind, V as DERIVED_CAMERA_SILENCED_CAP_NAMES, bo as snapshotCapability, br as declarationOwnerNodeId, cs as buildFfmpegArgs, ea as motionCapability, fi as integrationInstancesCapability, sc as RecordIntegrationInstances, tt as DeclaredDevices, v as BaseDevice, zl as EventCategory } from "../../dist-CIUo0MpB.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { FfmpegProcess } from "@camstack/types/node";
|
|
@@ -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_composition_sources = require("../../composition-sources-
|
|
8
|
-
const require_capture_engine = require("../../capture-engine-
|
|
6
|
+
const require_dist = require("../../dist-AbO-Bmtw.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-DgAdHcEq.js");
|
|
8
|
+
const require_capture_engine = require("../../capture-engine-Cm-Bq2GH.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-CnQKQDSg.js");
|
|
11
11
|
let zod = require("zod");
|
|
12
12
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
13
13
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $n as climateControlCapability,
|
|
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 { $n as climateControlCapability, $o as COMPOSER_ADDON_ID, Ai as kebabToCamel, As as openReset, Br as evaluateCompositionField, Ds as isForwardInputRef, Es as integrateReading, Fs as toExpressionValue, Go as valveCapability, Gr as expressionContainsBuiltinCall, Il as DeviceType, In as brightnessCapability, Ki as mediaPlayerCapability, Ll as errMsg, Ls as BaseAddon, M as ConsumableItemSchema, Ms as planResetTier, Ns as planStatisticTier, Os as isHistoryHelper, Pc as createEvent, Ps as statisticCadenceMs, Qr as featureForwards, Rl as featuresOfBoundCaps, Rn as buildCapabilityLookup, Ss as evaluateStatistic, Ta as processTimeZoneOr, Ut as PetFountainStatusSchema, Xa as resolveMutate, Xo as withDefaultRunning, Xr as fanOutTargets, Yi as methodRefusal, Yr as fanControlCapability, _s as compositionSliceKey, ar as composerCapability, as as HOUR_MS, bs as disarmRoseMemory, ci as groupTemplate, da as parseColorInput, ea as motionCapability, fs as cloneStatefulExpressionMemory, ga as planComposition, go as sharedColorModes, gs as compositionItemFieldPath, ho as sharedActuatorMethods, hr as coverCapability, hs as compositionFeatureEnabled, ht as FanDirectionSchema, i as ACTUATOR_TEMPLATE_IDS, is as HISTORY_SLOW_MS, jo as switchCapability, js as openStatistic, ks as nextLocalMidnight, lr as consumablesCapability, ma as petFountainWaterItem, mo as sharedActuatorFeatures, ms as composedDeviceStableId, no as runFanOut, nr as colorCapability, ns as DEFAULT_HISTORY_RETENTION, or as compositionFieldKey, pa as petFountainCapability, ps as composedDeviceRef, qi as mediaPlayerFeaturesOfRoles, r as ACTUATOR_METHODS, rs as HISTORY_FAST_MS, s as ALL_CAPABILITY_DEFINITIONS, si as groupCommandsCapability, ss as MINUTE_MS, tl as isReadingQuantity, tt as DeclaredDevices, v as BaseDevice, vs as compositionSourceKey, w as COMPOSED_ITEM_FIXED_FIELDS, ws as historyRetentionFromSettings, wt as HvacModeSchema, xr as declaredSeriesKind, xs as evaluateDerivative, ys as createStatefulExpressionMemory, yt as GroupCommandResultSchema, zi as lockControlCapability, zl as EventCategory } from "../../dist-CIUo0MpB.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-BVxOFdMp.mjs";
|
|
3
|
+
import { i as capSeriesKey } from "../../capture-engine-v5nSEyMa.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-CEkkKNmw.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-AbO-Bmtw.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 { Ls as BaseAddon, Vi as logDestinationCapability } from "../../dist-CIUo0MpB.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-AbO-Bmtw.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-DgAdHcEq.js");
|
|
6
|
+
const require_capture_engine = require("../../capture-engine-Cm-Bq2GH.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 { $o as
|
|
1
|
+
import { $o as COMPOSER_ADDON_ID, $t as RemoteAssumedStateSchema, Aa as readStoredRemoteConfig, Ac as collectSecretMarkerRefs, Ai as kebabToCamel, Al as vocabActionIdFor, B as DEFAULT_HOLD_OVERRIDE, Ba as replacedFieldKeys, Bi as lockDoorLinkOfComposition, Ca as problemsBlockSave, Cl as secretTreeFromSchema, Cs as helperMembers, D as CORE_BLOCK_ADDON_PREFIX, Da as proposeRunningThreshold, E as CORE_BLOCKS_ADDON_ID, Ea as projectDeviceRow, Et as INTERNAL_ACTION_PREFIX, Fa as reexpandAutomationInstance, Fl as DeviceRole, Fo as timedRunLimitOf, Ft as MediaPlayerStatusSchema, Ga as resolveCoreBlockFiles, Hc as entryBody, Ho as validateComposition, Hr as evaluateWhenTree, Ia as remoteCapability, Ic as defineAddonMigrations, Ii as localDateOf, Il as DeviceType$1, Io as timedRunMaxIn, Jc as hydrateSchema, Jn as capUnitResolver, Jr as fanAxisPath, Jt as QuantityUnitError, Ka as resolveHeroLayout, La as remoteLayoutComponentsCapability, Ll as errMsg$1, Ln as buildActionSteps, Lo as timedRunQuickRun, Ls as BaseAddon, N as CoreBlockSchema, Nc as commandOrigin$1, No as templateCapability, Ol as transformSecretWrite, Po as timedRunCapability, Qa as resolveRemoteSource, Qn as checkTemplatePayload, Qo as zoneOnlySite, Ra as remoteSourceSteps, Rc as defineEntryKind, Rn as buildCapabilityLookup, Ro as timedRunSeconds, Sa as prepareRecipeUnits, Sn as addonIdOfActionId, So as stableIdMapOf, T as COMPOSER_RUNNER_ID, Tr as describeComposableCaps, Tt as IDLE_ACTION_STATUS, Un as builtinAutomationTemplate, Va as resolveActionVariables, Vn as buildHeroModel, Vr as evaluateStepCondition, Wa as resolveCoreBlockEntry, Wo as validateSchedulerInput, Wt as PowerSourceInfoSchema, Xt as REMOTE_MEDIA_COMMANDS, Yo as weekdayOfLocalDate, Zr as fanPresetsCapability, _ as BUILTIN_REMOTE_COMPONENTS, _r as customKeyOfRole, ai as generateAutomationBlock, an as SchedulerError, ba as powerSourceLinkOfComposition, bc as actionEffect, bi as isBuiltinTemplateId, bl as ruleFireOfClaim, bn as actionWaitTotalMs, c as ActionError, ca as occurrenceOn, cr as compositionUnionReads, ct as EMPTY_REMOTE_CONFIG, d as ActionTargetResolver, di as instanceCodeHash, do as seedInstanceOnce, dr as coreBlockComposition, dt as FAN_OSCILLATION_AXES, ei as findChannelSource, en as RemoteLayoutPayloadSchema, eo as resolveStepArgs, er as collectDeviceTemplates, es as CompositionSchema, f as ActionVariableSchema, fi as integrationInstancesCapability, fr as coreBlockIdFromAddonId, ft as FAN_OSCILLATION_AXIS_SETTABLE, g as BUILTIN_AUTOMATION_TEMPLATES, ga as planComposition, gt as FanPresetSchema, h as AutomationTemplatePayloadSchema, hn as TemplateKindSchema, hs as compositionFeatureEnabled, ia as normalizeCoreBlockWrite, il as isSecretMarker, ir as compileScalarOverride, j as ConditionMirror, jl as vocabCall, jn as assertStepsOffered, ka as readRecipeLiteral, kn as appendTrace, l as ActionMinDelaySecSchema, li as hasTimeLeaves, ln as SetOscillationAxisInputSchema, ls as canonicalStoredBlockTarget, m as AutomationStateDocSchema, mr as coreBlocksCapability, ms as composedDeviceStableId, mt as FanControlStatusSchema, n as ACTION_TARGET_INVALIDATION_EVENTS, na as nextTimeBoundaryInMs, ol as isSecretRefOwnedBy, on as SchedulerSchema, oo as schedulersCapability, os as HelperMemberSchema, ot as EMPTY_AUTOMATION_STATE, pi as internalActionId, pr as coreBlockSourceKind, ps as composedDeviceRef, qn as canonicalStoredStepTargets, ra as normalizeActionUnits, ro as runSteps, s as ALL_CAPABILITY_DEFINITIONS, sc as RecordIntegrationInstances, sr as compositionSourceRefs, st as EMPTY_REMOTE_ASSUMED_STATE, ta as nextOccurrence, tn as RunningStateStatusSchema, tr as collectWhenMirrorSources, ts as DAY_MS, tt as DeclaredDevices, u as ActionStepSchema, ui as heroLayoutCapability, ur as coreBlockAddonId, ut as FAN_CAPTURE_FIELDS, va as powerSourceActuatorConflicts, vc as VocabActionError, vo as siteFor, vs as compositionSourceKey, wi as isInternalActionId, ws as historyRetentionFromSettings, xn as actionsCapability, ya as powerSourceCapability, yl as resolveSecretMarkers, yn as actionSourceCapability, za as replaceRecipeLiteral, zc as defineRecordKinds, zl as EventCategory$1, zo as toTimings } from "../../dist-CIUo0MpB.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
|
-
import { i as parseDeviceStateChanged, r as isRecord$1, t as describeCompositionSources } from "../../composition-sources-
|
|
4
|
-
import { i as capSeriesKey } from "../../capture-engine-
|
|
3
|
+
import { i as parseDeviceStateChanged, r as isRecord$1, t as describeCompositionSources } from "../../composition-sources-BVxOFdMp.mjs";
|
|
4
|
+
import { i as capSeriesKey } from "../../capture-engine-v5nSEyMa.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-AbO-Bmtw.js");
|
|
7
|
+
const require_capture_engine = require("../../capture-engine-Cm-Bq2GH.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 { An as armRemovalReconcile,
|
|
2
|
-
import { a as catalogMetrics, c as DeviceDirectory, d as identityOf, f as subjectIdOf, i as capSeriesKey, l as isRealDeviceType, 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 { An as armRemovalReconcile, Il as DeviceType, Ir as deviceTransitionsCapability, Is as wattMillisecondsToKwh, Js as InvalidRecordError, Ls as BaseAddon, Mr as deviceRemovalHookCapability, Nr as deviceRunsCapability, U as DEVICE_HISTORY_ENERGY_KEY, Vc as emitReadiness, Ws as DeviceTransitionSchema, bt as HISTORY_CATALOG, kr as deviceHistoryCapability, nt as DeviceRunSchema, qc as historyUnitFor, tl as isReadingQuantity, uc as RecordTooLargeError, xt as HISTORY_ITEM_CATALOG, zc as defineRecordKinds, zl as EventCategory } from "../../dist-CIUo0MpB.mjs";
|
|
2
|
+
import { a as catalogMetrics, c as DeviceDirectory, d as identityOf, f as subjectIdOf, i as capSeriesKey, l as isRealDeviceType, n as CaptureEngine, o as readPath, r as capItemSeriesKey, s as readUnit, t as CAP_KEY_PREFIX, u as SeriesRegistry } from "../../capture-engine-v5nSEyMa.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
|
|
@@ -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-AbO-Bmtw.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-CnQKQDSg.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");
|
|
@@ -4710,43 +4710,106 @@ async function getWireableFields(deps, input) {
|
|
|
4710
4710
|
//#region src/builtins/device-manager/device-search.ts
|
|
4711
4711
|
/** A shortlist, not a second list. */
|
|
4712
4712
|
var SUGGESTED_MAX = 8;
|
|
4713
|
-
function
|
|
4713
|
+
function unrankedKeyOf(c) {
|
|
4714
4714
|
return [
|
|
4715
4715
|
c.compatible ? 0 : 1,
|
|
4716
|
-
c.device.type,
|
|
4717
4716
|
c.device.name.toLowerCase(),
|
|
4717
|
+
c.device.type,
|
|
4718
4718
|
c.device.id
|
|
4719
4719
|
];
|
|
4720
4720
|
}
|
|
4721
|
-
function
|
|
4721
|
+
function sortKeyOf(c) {
|
|
4722
|
+
const base = unrankedKeyOf(c);
|
|
4723
|
+
if (c.rank === null) return base;
|
|
4724
|
+
return [
|
|
4725
|
+
c.rank,
|
|
4726
|
+
base[0],
|
|
4727
|
+
base[1],
|
|
4728
|
+
base[2],
|
|
4729
|
+
base[3]
|
|
4730
|
+
];
|
|
4731
|
+
}
|
|
4732
|
+
function compareUnranked(a, b) {
|
|
4722
4733
|
if (a[0] !== b[0]) return a[0] - b[0];
|
|
4723
4734
|
if (a[1] !== b[1]) return a[1] < b[1] ? -1 : 1;
|
|
4724
4735
|
if (a[2] !== b[2]) return a[2] < b[2] ? -1 : 1;
|
|
4725
4736
|
return a[3] - b[3];
|
|
4726
4737
|
}
|
|
4738
|
+
function compareKeys(a, b) {
|
|
4739
|
+
if (a.length === 5 && b.length === 5) {
|
|
4740
|
+
if (a[0] !== b[0]) return a[0] - b[0];
|
|
4741
|
+
return compareUnranked([
|
|
4742
|
+
a[1],
|
|
4743
|
+
a[2],
|
|
4744
|
+
a[3],
|
|
4745
|
+
a[4]
|
|
4746
|
+
], [
|
|
4747
|
+
b[1],
|
|
4748
|
+
b[2],
|
|
4749
|
+
b[3],
|
|
4750
|
+
b[4]
|
|
4751
|
+
]);
|
|
4752
|
+
}
|
|
4753
|
+
if (a.length === 4 && b.length === 4) return compareUnranked(a, b);
|
|
4754
|
+
return a.length - b.length;
|
|
4755
|
+
}
|
|
4727
4756
|
function encodeCursor(key) {
|
|
4728
4757
|
return Buffer.from(JSON.stringify(key), "utf8").toString("base64url");
|
|
4729
4758
|
}
|
|
4759
|
+
function unrankedFrom(parsed) {
|
|
4760
|
+
const compatible = parsed[0];
|
|
4761
|
+
const name = parsed[1];
|
|
4762
|
+
const type = parsed[2];
|
|
4763
|
+
const id = parsed[3];
|
|
4764
|
+
if (typeof compatible !== "number" || typeof name !== "string" || typeof type !== "string") return null;
|
|
4765
|
+
if (typeof id !== "number") return null;
|
|
4766
|
+
return [
|
|
4767
|
+
compatible,
|
|
4768
|
+
name,
|
|
4769
|
+
type,
|
|
4770
|
+
id
|
|
4771
|
+
];
|
|
4772
|
+
}
|
|
4730
4773
|
function decodeCursor(cursor) {
|
|
4731
4774
|
try {
|
|
4732
4775
|
const parsed = JSON.parse(Buffer.from(cursor, "base64url").toString("utf8"));
|
|
4733
|
-
if (!Array.isArray(parsed)
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
const
|
|
4737
|
-
const
|
|
4738
|
-
if (typeof
|
|
4739
|
-
if (typeof i !== "number") return null;
|
|
4776
|
+
if (!Array.isArray(parsed)) return null;
|
|
4777
|
+
if (parsed.length === 4) return unrankedFrom(parsed);
|
|
4778
|
+
if (parsed.length !== 5) return null;
|
|
4779
|
+
const rank = parsed[0];
|
|
4780
|
+
const rest = unrankedFrom(parsed.slice(1));
|
|
4781
|
+
if (typeof rank !== "number" || rest === null) return null;
|
|
4740
4782
|
return [
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4783
|
+
rank,
|
|
4784
|
+
rest[0],
|
|
4785
|
+
rest[1],
|
|
4786
|
+
rest[2],
|
|
4787
|
+
rest[3]
|
|
4745
4788
|
];
|
|
4746
4789
|
} catch {
|
|
4747
4790
|
return null;
|
|
4748
4791
|
}
|
|
4749
4792
|
}
|
|
4793
|
+
function parentName(device, nameById) {
|
|
4794
|
+
if (device.parentDeviceId === null) return null;
|
|
4795
|
+
return nameById.get(device.parentDeviceId) ?? null;
|
|
4796
|
+
}
|
|
4797
|
+
/** Label is the device name. The parent name is a keyword, so a container is searchable. */
|
|
4798
|
+
function textRank(text, device, containerName, integrationLabel) {
|
|
4799
|
+
const keywords = [
|
|
4800
|
+
containerName,
|
|
4801
|
+
device.location,
|
|
4802
|
+
device.type,
|
|
4803
|
+
integrationLabel,
|
|
4804
|
+
device.integrationId ?? null,
|
|
4805
|
+
device.stableId
|
|
4806
|
+
].filter((value) => value !== null && value.length > 0);
|
|
4807
|
+
return require_dist.searchRank(text, {
|
|
4808
|
+
label: device.name,
|
|
4809
|
+
keywords,
|
|
4810
|
+
identifiers: [String(device.id), `#${device.id}`]
|
|
4811
|
+
});
|
|
4812
|
+
}
|
|
4750
4813
|
/** `colourTemperature` / `battery_level` → `Colour temperature` / `Battery level`. */
|
|
4751
4814
|
function labelOfPath(path) {
|
|
4752
4815
|
const words = (path.split(".").pop() ?? path).replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim().toLowerCase();
|
|
@@ -4798,6 +4861,9 @@ function applyRequire(candidate, have, req) {
|
|
|
4798
4861
|
async function searchDevices(deps, input) {
|
|
4799
4862
|
const [fleet, labels] = await Promise.all([deps.listDevices(), deps.integrationLabels()]);
|
|
4800
4863
|
const req = requireOf(input);
|
|
4864
|
+
const nameById = new Map(fleet.map((device) => [device.id, device.name]));
|
|
4865
|
+
const text = input.text ?? "";
|
|
4866
|
+
const hasText = text.trim().length > 0;
|
|
4801
4867
|
const candidates = fleet.map((device) => {
|
|
4802
4868
|
const integrationId = device.integrationId ?? null;
|
|
4803
4869
|
const integrationLabel = integrationId === null ? null : labels.get(integrationId) ?? null;
|
|
@@ -4805,21 +4871,13 @@ async function searchDevices(deps, input) {
|
|
|
4805
4871
|
device,
|
|
4806
4872
|
integrationId,
|
|
4807
4873
|
integrationLabel,
|
|
4808
|
-
|
|
4809
|
-
device.name,
|
|
4810
|
-
device.location ?? "",
|
|
4811
|
-
device.type,
|
|
4812
|
-
integrationId ?? "",
|
|
4813
|
-
integrationLabel ?? "",
|
|
4814
|
-
String(device.id)
|
|
4815
|
-
].join("\0").toLowerCase(),
|
|
4874
|
+
rank: hasText ? textRank(text, device, parentName(device, nameById), integrationLabel) : null,
|
|
4816
4875
|
matchedCaps: [],
|
|
4817
4876
|
compatible: !needsBindings(req)
|
|
4818
4877
|
};
|
|
4819
4878
|
});
|
|
4820
4879
|
if (input.ids !== void 0) return resolveIds(deps, input, candidates);
|
|
4821
|
-
const
|
|
4822
|
-
const textPass = needle === "" ? candidates : candidates.filter((c) => c.haystack.includes(needle));
|
|
4880
|
+
const textPass = hasText ? candidates.filter((c) => c.rank !== null) : candidates;
|
|
4823
4881
|
if (needsBindings(req)) {
|
|
4824
4882
|
const bound = await deps.boundCaps(textPass.map((c) => c.device.id));
|
|
4825
4883
|
for (const c of textPass) applyRequire(c, bound.get(c.device.id) ?? [], req);
|
|
@@ -12653,7 +12711,7 @@ var TransitionCorrelator = class {
|
|
|
12653
12711
|
const before = hadBefore ? prior[field] : void 0;
|
|
12654
12712
|
const after = has ? slice[field] : void 0;
|
|
12655
12713
|
if (sameValue(before, after)) continue;
|
|
12656
|
-
claimed = this.attribute(deviceId, capName, field, toTransitionValue(before), toTransitionValue(after), now, claimed,
|
|
12714
|
+
claimed = this.attribute(deviceId, capName, field, toTransitionValue(before), toTransitionValue(after), now, claimed, !hadBefore);
|
|
12657
12715
|
}
|
|
12658
12716
|
}
|
|
12659
12717
|
/** Expire every pending command past its window. Driven by the sender's tick. */
|
|
@@ -12683,13 +12741,13 @@ var TransitionCorrelator = class {
|
|
|
12683
12741
|
for (const key of [...this.deviceRows.keys()]) if (key.startsWith(prefix)) this.deviceRows.delete(key);
|
|
12684
12742
|
for (const key of [...this.pending.keys()]) if (key.startsWith(prefix)) this.pending.delete(key);
|
|
12685
12743
|
}
|
|
12686
|
-
attribute(deviceId, capName, field, from, to, now, claimedByThisWrite,
|
|
12744
|
+
attribute(deviceId, capName, field, from, to, now, claimedByThisWrite, neverHeld) {
|
|
12687
12745
|
const key = this.keyOf(deviceId, capName);
|
|
12688
12746
|
const ring = this.pending.get(key);
|
|
12689
12747
|
const live = (ring ?? []).filter((e) => !e.settled && e.expiresAt > now);
|
|
12690
12748
|
const matched = [...live].reverse().find((e) => e.effect !== null && e.effect.field === field && sameValue(e.effect.value, to)) ?? claimedByThisWrite ?? [...live].reverse().find((e) => e.effect === null);
|
|
12691
12749
|
if (matched === void 0) {
|
|
12692
|
-
if (
|
|
12750
|
+
if (neverHeld) return void 0;
|
|
12693
12751
|
this.emitDevice(deviceId, capName, field, from, to, now);
|
|
12694
12752
|
return;
|
|
12695
12753
|
}
|