@camstack/server 1.2.862 → 1.2.863
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 +8 -0
- package/package.json +13 -8
- 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 +25 -49
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +25 -49
- package/system/dist/builtins/core-blocks/hero-layout-service.d.ts +3 -1
- package/system/dist/builtins/core-blocks/remote-service.d.ts +10 -10
- 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 +29 -5
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +29 -5
- package/system/dist/builtins/device-manager/device-projection.d.ts +8 -0
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +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 +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-B5OYzCH1.mjs → capture-engine-CK9f9H7b.mjs} +1 -1
- package/system/dist/{capture-engine-BManwD48.js → capture-engine-Cofev-f3.js} +1 -1
- package/system/dist/{composition-sources-B8hoUx1K.mjs → composition-sources-Cah5d873.mjs} +1 -1
- package/system/dist/{composition-sources-DWu-IL2w.js → composition-sources-Pqrpujem.js} +1 -1
- package/system/dist/{constants-qDKQ7NaY.mjs → constants-BKiAEgH1.mjs} +1 -1
- package/system/dist/{constants-CUAopsxj.js → constants-DzdeUhhD.js} +1 -1
- package/system/dist/{device-ca-DNrM4Ao-.js → device-ca-DfFm8dSR.js} +1 -1
- package/system/dist/{device-ca-BOUTrISA.mjs → device-ca-MvTMcE3C.mjs} +1 -1
- package/system/dist/{dist-3MQdfUTG.mjs → dist-BDIq20ng.mjs} +76 -16
- package/system/dist/{dist-B9Kzw974.js → dist-BJBp-Cna.js} +81 -15
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-DEbxcoVh.mjs → hub-identity-DErvD_Y9.mjs} +1 -1
- package/system/dist/{hub-identity-BQIE6w3g.js → hub-identity-DZw5bjVe.js} +1 -1
- package/system/dist/{hub-mdns-ciao-Bj_RdJiH.js → hub-mdns-ciao-Cn4CZvKD.js} +2 -2
- package/system/dist/{hub-mdns-ciao-BzKGywE2.mjs → hub-mdns-ciao-DBtitWew.mjs} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-rgL9olef.mjs → legacy-integration-rows-door-CT9d6do5.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-CRfEC_HP.js → legacy-integration-rows-door-Dm8DXrzQ.js} +1 -1
- package/system/dist/{rename-composition-block-DlgSgxch.mjs → rename-composition-block-BgjpGf0d.mjs} +1 -1
- package/system/dist/{rename-composition-block-Bbt43q6n.js → rename-composition-block-CMrV8Rou.js} +1 -1
- package/system/dist/{restore-archive-DJBACMC0.js → restore-archive-BRIGjOQv.js} +1 -1
- package/system/dist/{restore-archive-Ct-H3qLw.mjs → restore-archive-BTpU7KMz.mjs} +1 -1
- package/system/dist/{wal-maintenance-Bu6vjJlR.mjs → wal-maintenance-BsgOZJxC.mjs} +0 -0
- package/system/dist/{wal-maintenance-BvIEU1r1.js → wal-maintenance-DAzeawfH.js} +0 -0
- package/system/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.863] - 2026-11-14
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- A remote no longer assumes a mute from the last key sent; mute on an infrared TV is a momentary key
|
|
15
|
+
- A numeric reading without a fixed type (CPU load, memory, a health or charge level) now shows its unit on the device list and the device page for devices run by a forked addon
|
|
16
|
+
- A numeric sensor's device page shows its unit
|
|
17
|
+
|
|
10
18
|
## [1.2.862] - 2026-11-13
|
|
11
19
|
|
|
12
20
|
### Changed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.863",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,8 +66,13 @@
|
|
|
66
66
|
],
|
|
67
67
|
"requires": {
|
|
68
68
|
"addons": {
|
|
69
|
-
"@camstack/addon-admin-ui": ">=1.2.
|
|
70
|
-
"@camstack/addon-
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.665",
|
|
70
|
+
"@camstack/addon-agent-ui": ">=1.2.381",
|
|
71
|
+
"@camstack/addon-import-alexa": ">=0.2.207",
|
|
72
|
+
"@camstack/addon-pipeline-orchestrator": ">=1.2.685",
|
|
73
|
+
"@camstack/addon-provider-enpal": ">=0.1.21",
|
|
74
|
+
"@camstack/addon-provider-homeassistant": ">=1.2.686",
|
|
75
|
+
"@camstack/addon-provider-homematic": ">=1.2.198"
|
|
71
76
|
},
|
|
72
77
|
"wrapper": {
|
|
73
78
|
"desktop": ">=0.0.1",
|
|
@@ -76,19 +81,19 @@
|
|
|
76
81
|
}
|
|
77
82
|
},
|
|
78
83
|
"dependencies": {
|
|
79
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
80
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
84
|
+
"@camstack/addon-admin-ui": "1.2.665",
|
|
85
|
+
"@camstack/addon-agent-ui": "1.2.381",
|
|
81
86
|
"@camstack/addon-auth": "1.2.182",
|
|
82
87
|
"@camstack/addon-benchmark": "1.2.313",
|
|
83
88
|
"@camstack/addon-decoder-nodeav": "1.2.149",
|
|
84
89
|
"@camstack/addon-notifiers": "1.2.639",
|
|
85
90
|
"@camstack/addon-pipeline": "1.2.651",
|
|
86
|
-
"@camstack/addon-pipeline-orchestrator": "1.2.
|
|
91
|
+
"@camstack/addon-pipeline-orchestrator": "1.2.685",
|
|
87
92
|
"@camstack/addon-post-analysis": "1.2.703",
|
|
88
93
|
"@camstack/develop": "0.1.53",
|
|
89
94
|
"@camstack/sdk": "1.2.157",
|
|
90
|
-
"@camstack/types": "1.2.
|
|
91
|
-
"@camstack/ui-library": "1.2.
|
|
95
|
+
"@camstack/types": "1.2.564",
|
|
96
|
+
"@camstack/ui-library": "1.2.441",
|
|
92
97
|
"@fastify/compress": "^9.0.0",
|
|
93
98
|
"@fastify/cookie": "^11.0.2",
|
|
94
99
|
"@fastify/cors": "^11.2.0",
|
|
@@ -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-BJBp-Cna.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, Il as errMsg, Is as BaseAddon, Rl as EventCategory } from "../../dist-BDIq20ng.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-BJBp-Cna.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 { Il as errMsg, Is as BaseAddon, Rl as EventCategory, Tn as addonWidgetsCapability } from "../../dist-BDIq20ng.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-BJBp-Cna.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, Il as errMsg, Is as BaseAddon, Nc as createEvent, On as alertsCapability, Rc as defineRecordKinds, Rl as EventCategory, _i as isAlertEpisodeSeverity, gi as isAlertEpisodeOpen, p as AlertSchema } from "../../dist-BDIq20ng.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-BJBp-Cna.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 { Il as errMsg, Is as BaseAddon, Oa as ptzAutotrackCapability, Pn as bareAddonId, Rl as EventCategory, Zc as isEvent, pt as FIRST_LEVEL_MACRO_CLASSES } from "../../dist-BDIq20ng.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-BJBp-Cna.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-BRIGjOQv.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 { Gi as mayWriteToLocation, Is as BaseAddon, Nn as backupCapability, Rl as EventCategory, Tl as toNodeId, To as storageOccupancyCapability, ll as nodePin } from "../../dist-BDIq20ng.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-BTpU7KMz.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-BJBp-Cna.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 { Is as BaseAddon, Rc as defineRecordKinds, Wn as calendarsCapability, k as CalendarPreferencesSchema } from "../../dist-BDIq20ng.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-BJBp-Cna.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 { Do as streamCatalogCapability, Fl as DeviceType, Gn as cameraGridLayoutCapability, Il as errMsg, Is as BaseAddon, Ji as memoizePinnedFfmpeg, Lc as defineEntryKind, Nc as createEvent, Nl as DeviceFeature, Pn as bareAddonId, Pt as MOTION_CLOSE_AFTER_MS, Qc as isInstanceEnabled, Rl as EventCategory, V as DERIVED_CAMERA_SILENCED_CAP_NAMES, br as declarationOwnerNodeId, ea as motionCapability, fi as integrationInstancesCapability, oc as RecordIntegrationInstances, qc as hydrateSchema, ss as buildFfmpegArgs, tt as DeclaredDevices, v as BaseDevice, yo as snapshotCapability } from "../../dist-BDIq20ng.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-BJBp-Cna.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-Pqrpujem.js");
|
|
8
|
+
const require_capture_engine = require("../../capture-engine-Cofev-f3.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-CMrV8Rou.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 parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-
|
|
3
|
-
import { i as capSeriesKey } from "../../capture-engine-
|
|
1
|
+
import { $n as climateControlCapability, Ai as kebabToCamel, Ao as switchCapability, As as openStatistic, Br as evaluateCompositionField, Cs as historyRetentionFromSettings, Ds as isHistoryHelper, Es as isForwardInputRef, Fl as DeviceType, Gr as expressionContainsBuiltinCall, Il as errMsg, In as brightnessCapability, Is as BaseAddon, Ki as mediaPlayerCapability, Ll as featuresOfBoundCaps, M as ConsumableItemSchema, Ms as planStatisticTier, Nc as createEvent, Ns as statisticCadenceMs, Os as nextLocalMidnight, Ps as toExpressionValue, Qo as COMPOSER_ADDON_ID, Qr as featureForwards, Rl as EventCategory, Rn as buildCapabilityLookup, Ta as processTimeZoneOr, Ts as integrateReading, Ut as PetFountainStatusSchema, Wo as valveCapability, Xa as resolveMutate, Xr as fanOutTargets, Yi as methodRefusal, Yo as withDefaultRunning, Yr as fanControlCapability, _s as compositionSourceKey, ar as composerCapability, bs as evaluateDerivative, ci as groupTemplate, da as parseColorInput, ds as cloneStatefulExpressionMemory, ea as motionCapability, el as isReadingQuantity, fs as composedDeviceRef, ga as planComposition, gs as compositionSliceKey, ho as sharedColorModes, hr as coverCapability, hs as compositionItemFieldPath, ht as FanDirectionSchema, i as ACTUATOR_TEMPLATE_IDS, is as HOUR_MS, js as planResetTier, ks as openReset, lr as consumablesCapability, ma as petFountainWaterItem, mo as sharedActuatorMethods, ms as compositionFeatureEnabled, no as runFanOut, nr as colorCapability, ns as HISTORY_FAST_MS, or as compositionFieldKey, os as MINUTE_MS, pa as petFountainCapability, po as sharedActuatorFeatures, ps as composedDeviceStableId, qi as mediaPlayerFeaturesOfRoles, r as ACTUATOR_METHODS, rs as HISTORY_SLOW_MS, s as ALL_CAPABILITY_DEFINITIONS, si as groupCommandsCapability, ts as DEFAULT_HISTORY_RETENTION, tt as DeclaredDevices, v as BaseDevice, vs as createStatefulExpressionMemory, w as COMPOSED_ITEM_FIXED_FIELDS, wt as HvacModeSchema, xr as declaredSeriesKind, xs as evaluateStatistic, ys as disarmRoseMemory, yt as GroupCommandResultSchema, zi as lockControlCapability } from "../../dist-BDIq20ng.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-Cah5d873.mjs";
|
|
3
|
+
import { i as capSeriesKey } from "../../capture-engine-CK9f9H7b.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-BgjpGf0d.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-BJBp-Cna.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 { Is as BaseAddon, Vi as logDestinationCapability } from "../../dist-BDIq20ng.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-BJBp-Cna.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-Pqrpujem.js");
|
|
6
|
+
const require_capture_engine = require("../../capture-engine-Cofev-f3.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");
|
|
@@ -6163,7 +6163,8 @@ var HeroLayoutService = class {
|
|
|
6163
6163
|
role: device.role,
|
|
6164
6164
|
name: device.name,
|
|
6165
6165
|
online: device.online,
|
|
6166
|
-
integration: device.integration ?? null
|
|
6166
|
+
integration: device.integration ?? null,
|
|
6167
|
+
quantity: device.quantity ?? null
|
|
6167
6168
|
},
|
|
6168
6169
|
caps: [...bound.filter((cap) => cap !== REMOTE_CAP), REMOTE_CAP],
|
|
6169
6170
|
features: device.features,
|
|
@@ -6661,7 +6662,8 @@ function remoteCallRedirect(deps) {
|
|
|
6661
6662
|
* only AFTER a send succeeded, is persisted per device and never recorded
|
|
6662
6663
|
* in history. A toggle power code is sent only when the current state
|
|
6663
6664
|
* differs from the requested one; a discrete pair is always sent. A mute on
|
|
6664
|
-
* a device that does not report it is sent
|
|
6665
|
+
* a device that does not report it is a momentary key: sent every time, and
|
|
6666
|
+
* no mute state is kept or shown (only a native READING of it is a state).
|
|
6665
6667
|
* - **Sources are declared** (planning#460). `availableSources` is the
|
|
6666
6668
|
* operator's declared sources, never the custom buttons. A source runs its
|
|
6667
6669
|
* steps in order under the device's lock (no other press interleaves),
|
|
@@ -6822,23 +6824,22 @@ var RemoteService = class {
|
|
|
6822
6824
|
await Promise.all(affected.map((tv) => this.refreshSlice(tv)));
|
|
6823
6825
|
}
|
|
6824
6826
|
/**
|
|
6825
|
-
* What the remote ASSUMES (the last power and
|
|
6826
|
-
* knows neither. No plug, no running-state: that is `assumedStatus`.
|
|
6827
|
+
* What the remote ASSUMES (the last power and source it sent), or null when it
|
|
6828
|
+
* knows neither. A mute is never assumed: without a reading it has no state. No plug, no running-state: that is `assumedStatus`.
|
|
6827
6829
|
*/
|
|
6828
6830
|
getAssumedStatus = async ({ deviceId }) => {
|
|
6829
6831
|
const kept = await this.readAssumed(deviceId);
|
|
6830
|
-
if (kept.power === null && kept.
|
|
6832
|
+
if (kept.power === null && kept.source === null) return null;
|
|
6831
6833
|
const config = await this.deps.store.read(deviceId);
|
|
6832
6834
|
const assumedFields = [];
|
|
6833
6835
|
if (kept.power !== null) assumedFields.push("state");
|
|
6834
|
-
if (kept.muted !== null) assumedFields.push("isMuted");
|
|
6835
6836
|
if (kept.source !== null) assumedFields.push("source");
|
|
6836
6837
|
return this.buildStatus({
|
|
6837
6838
|
state: kept.power?.state ?? "standby",
|
|
6838
6839
|
assumedFields,
|
|
6839
|
-
muted:
|
|
6840
|
+
muted: null,
|
|
6840
6841
|
source: kept.source?.name ?? "",
|
|
6841
|
-
changedAt: Math.max(kept.power?.at ?? 0, kept.
|
|
6842
|
+
changedAt: Math.max(kept.power?.at ?? 0, kept.source?.at ?? 0),
|
|
6842
6843
|
sources: config.sources
|
|
6843
6844
|
});
|
|
6844
6845
|
};
|
|
@@ -6847,7 +6848,7 @@ var RemoteService = class {
|
|
|
6847
6848
|
* state. Power truth, in order: a `running-state` reading; the linked plug
|
|
6848
6849
|
* (off is `off`, a reading; on is `standby` until a power command was sent,
|
|
6849
6850
|
* then what the remote sent); the remote's own assumption. Mute comes from
|
|
6850
|
-
* the
|
|
6851
|
+
* the native reading only; the remote never assumes it.
|
|
6851
6852
|
*/
|
|
6852
6853
|
async assumedStatus(deviceId) {
|
|
6853
6854
|
return this.statusOf(deviceId, true);
|
|
@@ -6860,17 +6861,15 @@ var RemoteService = class {
|
|
|
6860
6861
|
const assumedFields = truth.assumed ? ["state"] : [];
|
|
6861
6862
|
const state = truth.state;
|
|
6862
6863
|
const changedAt = truth.at;
|
|
6863
|
-
const mute = state === "off" ? null : kept.muted ?? null;
|
|
6864
|
-
if (mute !== null) assumedFields.push("isMuted");
|
|
6865
6864
|
const source = state === "off" ? null : kept.source ?? null;
|
|
6866
6865
|
if (source !== null) assumedFields.push("source");
|
|
6867
6866
|
const config = await this.deps.store.read(deviceId);
|
|
6868
6867
|
return this.buildStatus({
|
|
6869
6868
|
state,
|
|
6870
6869
|
assumedFields,
|
|
6871
|
-
muted:
|
|
6870
|
+
muted: null,
|
|
6872
6871
|
source: source?.name ?? "",
|
|
6873
|
-
changedAt: Math.max(changedAt,
|
|
6872
|
+
changedAt: Math.max(changedAt, source?.at ?? 0),
|
|
6874
6873
|
sources: config.sources
|
|
6875
6874
|
});
|
|
6876
6875
|
}
|
|
@@ -6881,6 +6880,7 @@ var RemoteService = class {
|
|
|
6881
6880
|
assumedFields: [...input.assumedFields],
|
|
6882
6881
|
volumeLevel: null,
|
|
6883
6882
|
isMuted: input.muted,
|
|
6883
|
+
muteReadback: false,
|
|
6884
6884
|
source: input.source,
|
|
6885
6885
|
availableSources: input.sources.map((source) => source.name),
|
|
6886
6886
|
declaredSources: input.sources.map((source) => source.kind === "digits" ? {
|
|
@@ -6959,19 +6959,18 @@ var RemoteService = class {
|
|
|
6959
6959
|
};
|
|
6960
6960
|
return null;
|
|
6961
6961
|
}
|
|
6962
|
-
/** The mute as a native source
|
|
6962
|
+
/** The mute as a native source READS it, else unknown: a send is never a reading. */
|
|
6963
6963
|
async currentMute(deviceId) {
|
|
6964
6964
|
const reported = await this.deps.reportedStatus(deviceId);
|
|
6965
|
-
|
|
6966
|
-
return (await this.readAssumed(deviceId)).muted?.value ?? null;
|
|
6965
|
+
return reported !== null ? reported.isMuted : null;
|
|
6967
6966
|
}
|
|
6968
6967
|
async readAssumed(deviceId) {
|
|
6969
6968
|
return await this.deps.assumptions.read(deviceId) ?? require_dist.EMPTY_REMOTE_ASSUMED_STATE;
|
|
6970
6969
|
}
|
|
6971
6970
|
/**
|
|
6972
|
-
* `setMute(muted)`: skipped when the mute is already
|
|
6973
|
-
* otherwise the mute code is sent ONCE
|
|
6974
|
-
*
|
|
6971
|
+
* `setMute(muted)`: skipped when a native reading says the mute is already
|
|
6972
|
+
* that value; otherwise the mute code is sent ONCE. Nothing is assumed from
|
|
6973
|
+
* the send: without a reading the key is momentary and has no state.
|
|
6975
6974
|
*/
|
|
6976
6975
|
async setMute(deviceId, config, role, muted) {
|
|
6977
6976
|
if (await this.currentMute(deviceId) === muted) {
|
|
@@ -6984,19 +6983,7 @@ var RemoteService = class {
|
|
|
6984
6983
|
reason: "already-in-state"
|
|
6985
6984
|
};
|
|
6986
6985
|
}
|
|
6987
|
-
|
|
6988
|
-
if (result.status === "sent") {
|
|
6989
|
-
const kept = await this.readAssumed(deviceId);
|
|
6990
|
-
await this.deps.assumptions.write(deviceId, {
|
|
6991
|
-
...kept,
|
|
6992
|
-
muted: {
|
|
6993
|
-
value: muted,
|
|
6994
|
-
at: this.now()
|
|
6995
|
-
}
|
|
6996
|
-
});
|
|
6997
|
-
await this.refreshSlice(deviceId);
|
|
6998
|
-
}
|
|
6999
|
-
return result;
|
|
6986
|
+
return this.run(deviceId, config, role, 1);
|
|
7000
6987
|
}
|
|
7001
6988
|
/**
|
|
7002
6989
|
* Runs `fn` after every earlier press of the device has finished. A press that
|
|
@@ -7305,8 +7292,7 @@ var RemoteService = class {
|
|
|
7305
7292
|
}
|
|
7306
7293
|
/**
|
|
7307
7294
|
* The assumption moves only after a send landed. A bare `power` flips a KNOWN
|
|
7308
|
-
* state
|
|
7309
|
-
* unknown (the press alone does not say which way it went).
|
|
7295
|
+
* state. A `mute` press moves nothing: the mute is never assumed.
|
|
7310
7296
|
*/
|
|
7311
7297
|
async moveAssumption(deviceId, role, wantsState) {
|
|
7312
7298
|
const kept = await this.readAssumed(deviceId);
|
|
@@ -7342,17 +7328,6 @@ var RemoteService = class {
|
|
|
7342
7328
|
});
|
|
7343
7329
|
return;
|
|
7344
7330
|
}
|
|
7345
|
-
if (role === "mute") {
|
|
7346
|
-
const before = await this.currentMute(deviceId);
|
|
7347
|
-
if (before === null) return;
|
|
7348
|
-
await this.deps.assumptions.write(deviceId, {
|
|
7349
|
-
...kept,
|
|
7350
|
-
muted: {
|
|
7351
|
-
value: !before,
|
|
7352
|
-
at: this.now()
|
|
7353
|
-
}
|
|
7354
|
-
});
|
|
7355
|
-
}
|
|
7356
7331
|
}
|
|
7357
7332
|
};
|
|
7358
7333
|
//#endregion
|
|
@@ -9453,7 +9428,8 @@ var CoreBlocksAddon = class extends require_dist.BaseAddon {
|
|
|
9453
9428
|
name: found.name,
|
|
9454
9429
|
online: found.online,
|
|
9455
9430
|
features: found.features,
|
|
9456
|
-
integration: manufacturerOf(found.metadata)
|
|
9431
|
+
integration: manufacturerOf(found.metadata),
|
|
9432
|
+
quantity: found.sourceInfo?.quantity ?? null
|
|
9457
9433
|
};
|
|
9458
9434
|
},
|
|
9459
9435
|
caps: async (deviceId) => (await requireApi().deviceManager.getBindings.query({ deviceId })).entries.map((e) => e.capName),
|