@camstack/server 1.2.748 → 1.2.750
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/package.json +10 -9
- package/system/dist/{agent-https-XIAiPgNs.mjs → agent-https-DoGV9jKg.mjs} +1 -1
- package/system/dist/{agent-https-DsAdFC8n.js → agent-https-Oc0Go3Gs.js} +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +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 +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- 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 +258 -2
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +258 -2
- package/system/dist/builtins/core-blocks/migrations/helper-to-customize.d.ts +35 -0
- package/system/dist/builtins/core-blocks/migrations/index.d.ts +1 -0
- 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 +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +3 -3
- package/system/dist/builtins/keychain/index.mjs +3 -3
- 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 +2 -2
- package/system/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.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 +2 -2
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
- 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 +284 -284
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{composition-sources-DUF2KY-Q.js → composition-sources-Bxahhz4f.js} +1 -1
- package/system/dist/{composition-sources-DKJiErim.mjs → composition-sources-CzRiSzCV.mjs} +1 -1
- package/system/dist/{constants-Smr-sgQk.js → constants-0rC5QY6i.js} +1 -1
- package/system/dist/{constants-D3cOCDWZ.mjs → constants-uI6uXyjP.mjs} +1 -1
- package/system/dist/{device-ca-qPLV2_YM.js → device-ca-CL_Arugd.js} +1 -1
- package/system/dist/{device-ca-Bjql3lRF.mjs → device-ca-D7TyMlsS.mjs} +1 -1
- package/system/dist/{dist-CrwALoYk.js → dist-CYnRCUzN.js} +262 -2
- package/system/dist/{dist-BFiMX6mZ.mjs → dist-Iq3vrBOE.mjs} +251 -3
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-DBYj4N_8.js → hub-mdns-ciao-CNLYSVyJ.js} +2 -2
- package/system/dist/{hub-mdns-ciao-B6JK5wYQ.mjs → hub-mdns-ciao-CvMKderb.mjs} +2 -2
- package/system/dist/index.js +7 -7
- package/system/dist/index.mjs +7 -7
- package/system/dist/{restore-archive-DKZiYRbs.js → restore-archive-Dw04PiG5.js} +1 -1
- package/system/dist/{restore-archive-HEmBtC17.mjs → restore-archive-vzWYLf6p.mjs} +82 -82
- package/system/dist/{retention-CDhx9ofQ.mjs → retention-C-lijsmN.mjs} +1 -1
- package/system/dist/{retention-DUTatu4f.js → retention-WjI-Op7G.js} +1 -1
- package/system/dist/{wal-maintenance-C59YCSjx.mjs → wal-maintenance-BzTHorT2.mjs} +0 -0
- package/system/dist/{wal-maintenance-BlfNMW7r.js → wal-maintenance-DQXiTaph.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.750] - 2026-11-03
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Rebuilt against updated dependencies.
|
|
15
|
+
|
|
16
|
+
## [1.2.749] - 2026-11-03
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Rebuilt against updated dependencies.
|
|
21
|
+
|
|
10
22
|
## [1.2.748] - 2026-11-03
|
|
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.750",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,9 +66,10 @@
|
|
|
66
66
|
],
|
|
67
67
|
"requires": {
|
|
68
68
|
"addons": {
|
|
69
|
-
"@camstack/addon-admin-ui": ">=1.2.
|
|
70
|
-
"@camstack/addon-
|
|
71
|
-
"@camstack/addon-
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.567",
|
|
70
|
+
"@camstack/addon-agent-ui": ">=1.2.319",
|
|
71
|
+
"@camstack/addon-import-alexa": ">=0.2.181",
|
|
72
|
+
"@camstack/addon-pipeline-orchestrator": ">=1.2.656"
|
|
72
73
|
},
|
|
73
74
|
"wrapper": {
|
|
74
75
|
"desktop": ">=0.0.1",
|
|
@@ -77,19 +78,19 @@
|
|
|
77
78
|
}
|
|
78
79
|
},
|
|
79
80
|
"dependencies": {
|
|
80
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
81
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
81
|
+
"@camstack/addon-admin-ui": "1.2.567",
|
|
82
|
+
"@camstack/addon-agent-ui": "1.2.319",
|
|
82
83
|
"@camstack/addon-auth": "1.2.175",
|
|
83
84
|
"@camstack/addon-benchmark": "1.2.311",
|
|
84
85
|
"@camstack/addon-decoder-nodeav": "1.2.145",
|
|
85
86
|
"@camstack/addon-notifiers": "1.2.628",
|
|
86
87
|
"@camstack/addon-pipeline": "1.2.639",
|
|
87
|
-
"@camstack/addon-pipeline-orchestrator": "1.2.
|
|
88
|
+
"@camstack/addon-pipeline-orchestrator": "1.2.656",
|
|
88
89
|
"@camstack/addon-post-analysis": "1.2.666",
|
|
89
90
|
"@camstack/develop": "0.1.44",
|
|
90
91
|
"@camstack/sdk": "1.2.155",
|
|
91
|
-
"@camstack/types": "1.2.
|
|
92
|
-
"@camstack/ui-library": "1.2.
|
|
92
|
+
"@camstack/types": "1.2.487",
|
|
93
|
+
"@camstack/ui-library": "1.2.377",
|
|
93
94
|
"@fastify/compress": "^9.0.0",
|
|
94
95
|
"@fastify/cookie": "^11.0.2",
|
|
95
96
|
"@fastify/cors": "^11.2.0",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { hs as defineRecordKinds } from "./dist-Iq3vrBOE.mjs";
|
|
2
2
|
import { C as backdatedNotBefore, S as withUtcTimeEncoding, _ as NameConstraints, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, g as GeneralSubtrees, h as GeneralSubtree, i as Extension, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension, v as GeneralName, x as AsnConvert } from "./x509.es-BRiJgOvu.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { X509Certificate, createHash, createPrivateKey, randomBytes, webcrypto } from "node:crypto";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-CYnRCUzN.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-CYnRCUzN.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bo as BaseAddon, oc as errMsg, sc as EventCategory, sn as addonPagesCapability } from "../../dist-Iq3vrBOE.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -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-CYnRCUzN.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bo as BaseAddon, ln as addonWidgetsCapability, oc as errMsg, sc as EventCategory } from "../../dist-Iq3vrBOE.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -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-CYnRCUzN.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
//#region src/builtins/alerts/alert-episode-policy.ts
|
|
9
9
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Nr as isAlertEpisodeOpen, Pr as isAlertEpisodeSeverity, bo as BaseAddon, d as AlertSchema, dn as alertEpisodePayload, fn as alertsCapability, hs as defineRecordKinds, oc as errMsg, sc as EventCategory, un as alertEpisodeId, us as createEvent } from "../../dist-Iq3vrBOE.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
//#region src/builtins/alerts/alert-episode-policy.ts
|
|
4
4
|
/**
|
|
@@ -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-CYnRCUzN.js");
|
|
7
7
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
8
8
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
9
9
|
deadZoneFraction: .5,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Es as isEvent, Ii as ptzAutotrackCapability, _n as bareAddonId, bo as BaseAddon, oc as errMsg, sc as EventCategory, tt as FIRST_LEVEL_MACRO_CLASSES } from "../../dist-Iq3vrBOE.mjs";
|
|
2
2
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
3
3
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
4
4
|
deadZoneFraction: .5,
|
|
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-CYnRCUzN.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-Dw04PiG5.js");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
10
10
|
let node_fs_promises = require("node:fs/promises");
|
|
11
11
|
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ls as nodePin, Qs as toNodeId, ba as storageOccupancyCapability, bo as BaseAddon, gn as backupCapability, oi as mayWriteToLocation, sc as EventCategory } from "../../dist-Iq3vrBOE.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-vzWYLf6p.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import * as fsp from "node:fs/promises";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
@@ -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-CYnRCUzN.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 { T as CalendarPreferencesSchema, Tn as calendarsCapability,
|
|
1
|
+
import { T as CalendarPreferencesSchema, Tn as calendarsCapability, bo as BaseAddon, hs as defineRecordKinds } from "../../dist-Iq3vrBOE.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-CYnRCUzN.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let _camstack_types_node = require("@camstack/types/node");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Cs as hydrateSchema, En as cameraGridLayoutCapability, K as DeclaredDevices, L as DERIVED_CAMERA_SILENCED_CAP_NAMES, Sa as streamCatalogCapability, St as MOTION_CLOSE_AFTER_MS, Xa as buildFfmpegArgs, Xn as declarationOwnerNodeId, _n as bareAddonId, ac as DeviceType, bo as BaseAddon, ha as snapshotCapability, li as memoizePinnedFfmpeg, m as BaseDevice, mi as motionCapability, oc as errMsg, rc as DeviceFeature, sc as EventCategory, us as createEvent } from "../../dist-Iq3vrBOE.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { FfmpegProcess } from "@camstack/types/node";
|
|
4
4
|
import { join } from "node:path";
|
|
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_composition_sources = require("../../composition-sources-
|
|
8
|
-
const require_retention = require("../../retention-
|
|
6
|
+
const require_dist = require("../../dist-CYnRCUzN.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-Bxahhz4f.js");
|
|
8
|
+
const require_retention = require("../../retention-WjI-Op7G.js");
|
|
9
9
|
let zod = require("zod");
|
|
10
10
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
11
11
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $a as
|
|
2
|
-
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-
|
|
3
|
-
import { i as DAY_MS$1, m as capSeriesKey, t as DEFAULT_RETENTION } from "../../retention-
|
|
1
|
+
import { $a as composedDeviceStableId, Ei as parseColorInput, Ga as DEFAULT_HISTORY_RETENTION, Gr as kebabToCamel, Ha as COMPOSER_ADDON_ID, In as composerCapability, Ja as HOUR_MS, K as DeclaredDevices, Ka as HISTORY_FAST_MS, Ln as compositionFieldKey, Mn as climateControlCapability, Or as groupCommandsCapability, Os as isReadingQuantity, Pa as valveCapability, Pn as colorCapability, Qa as composedDeviceRef, Sr as featureForwards, Ta as switchCapability, Wa as DAY_MS, Wn as coverCapability, Ya as MINUTE_MS, Za as cloneStatefulExpressionMemory, Zi as resolveMutate, Zn as declaredSeriesKind, _o as statisticCadenceMs, _r as expressionContainsBuiltinCall, ac as DeviceType, ao as disarmRoseMemory, b as COMPOSED_ITEM_FIXED_FIELDS, bo as BaseAddon, br as fanOutTargets, ci as mediaPlayerFeaturesOfRoles, da as sharedColorModes, do as isHistoryHelper, ei as lockControlCapability, eo as compositionFeatureEnabled, fo as nextLocalMidnight, ft as HvacModeSchema, go as planStatisticTier, ho as planResetTier, io as createStatefulExpressionMemory, ki as planComposition, kr as groupTemplate, la as sharedActuatorFeatures, lo as integrateReading, m as BaseDevice, mi as motionCapability, mo as openStatistic, n as ACTUATOR_METHODS, no as compositionSliceKey, o as ALL_CAPABILITY_DEFINITIONS, oc as errMsg, oo as evaluateDerivative, po as openReset, pr as evaluateCompositionField, qa as HISTORY_SLOW_MS, r as ACTUATOR_TEMPLATE_IDS, ro as compositionSourceKey, rt as FanDirectionSchema, sc as EventCategory, si as mediaPlayerCapability, so as evaluateStatistic, st as GroupCommandResultSchema, ta as runFanOut, to as compositionItemFieldPath, ua as sharedActuatorMethods, ui as methodRefusal, uo as isForwardInputRef, us as createEvent, vo as toExpressionValue, xn as buildCapabilityLookup, yn as brightnessCapability, yr as fanControlCapability } from "../../dist-Iq3vrBOE.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-CzRiSzCV.mjs";
|
|
3
|
+
import { i as DAY_MS$1, m as capSeriesKey, t as DEFAULT_RETENTION } from "../../retention-C-lijsmN.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
6
6
|
/**
|
|
@@ -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-CYnRCUzN.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 { bo as BaseAddon, ni as logDestinationCapability } from "../../dist-Iq3vrBOE.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,8 +1,8 @@
|
|
|
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-CYnRCUzN.js");
|
|
4
4
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
5
|
-
const require_composition_sources = require("../../composition-sources-
|
|
5
|
+
const require_composition_sources = require("../../composition-sources-Bxahhz4f.js");
|
|
6
6
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
7
7
|
const require_prefix_walk = require("../../prefix-walk-Dv6MLZlM.js");
|
|
8
8
|
let zod = require("zod");
|
|
@@ -1866,6 +1866,247 @@ var CoreBlockStore = class CoreBlockStore {
|
|
|
1866
1866
|
}
|
|
1867
1867
|
};
|
|
1868
1868
|
//#endregion
|
|
1869
|
+
//#region src/builtins/core-blocks/migrations/helper-to-customize.ts
|
|
1870
|
+
/**
|
|
1871
|
+
* The appliance and heater helper compositions become plain Customize
|
|
1872
|
+
* compositions (D1004, planning#402 phase 4).
|
|
1873
|
+
*
|
|
1874
|
+
* A washer, dryer, dishwasher or heater built from the old template stores a
|
|
1875
|
+
* compiled composition PLUS the `helper` spec the editor reads. D1004 retires
|
|
1876
|
+
* those templates: running, power and the power source are Customize
|
|
1877
|
+
* extensions of a plain composed device. This rewrites each stored block so
|
|
1878
|
+
* the same device keeps working with no helper:
|
|
1879
|
+
*
|
|
1880
|
+
* - `running-state` is recompiled in the Customize catalog format
|
|
1881
|
+
* (`compileScalarOverride`, target `running`) with the SAME threshold and
|
|
1882
|
+
* start and stop dwells, reading the SAME meter;
|
|
1883
|
+
* - `power-meter` is recompiled the same way (target `power`) from the meter;
|
|
1884
|
+
* - an appliance's `power-source` is recompiled (target `switch`) from the SAME
|
|
1885
|
+
* plug, keeping its `offSeconds`;
|
|
1886
|
+
* - a heater's `switch` feature, the read of the plug and the forward of
|
|
1887
|
+
* `setState` to it, is kept exactly as it is;
|
|
1888
|
+
* - a heater with no meter runs while its plug is on (the plug as a `switch`
|
|
1889
|
+
* source, identity): it never used the threshold, so none is stored;
|
|
1890
|
+
* - the `helper` key leaves the composition.
|
|
1891
|
+
*
|
|
1892
|
+
* The block id, and with it the composed device stableId and the deviceId
|
|
1893
|
+
* the device registry holds, never moves, so the history stays attached. Only
|
|
1894
|
+
* a `new`-target block with an appliance or heater `helper` is touched; an
|
|
1895
|
+
* aggregator helper, a free composition, a customization of an existing device
|
|
1896
|
+
* and a block already rewritten (no `helper`) are left as they are, so a rerun
|
|
1897
|
+
* edits nothing. A block that IS an appliance or heater helper but cannot be
|
|
1898
|
+
* rewritten (it does not parse, or does not compile) THROWS: the migration
|
|
1899
|
+
* refuses rather than guess, and the owner does not start.
|
|
1900
|
+
*/
|
|
1901
|
+
var HELPER_TO_CUSTOMIZE_ID = "core-blocks/2026-11-03-helper-to-customize";
|
|
1902
|
+
/** The raw shape of a helper block, enough to refuse one the schema cannot read. */
|
|
1903
|
+
var RawHelperBlockSchema = zod.z.object({ source: zod.z.object({ composition: zod.z.object({ helper: zod.z.object({ kind: zod.z.enum(["appliance", "heater"]) }) }) }) });
|
|
1904
|
+
function refuse$1(blockId, why) {
|
|
1905
|
+
throw new Error(`helper-to-customize: block ${blockId} is not rewritten: ${why}`);
|
|
1906
|
+
}
|
|
1907
|
+
function compileOrRefuse(blockId, input) {
|
|
1908
|
+
const out = require_dist.compileScalarOverride(input);
|
|
1909
|
+
if (!out.ok) return refuse$1(blockId, `${input.draft.cap}.${input.draft.targetId}: ${out.reason}`);
|
|
1910
|
+
return out.value;
|
|
1911
|
+
}
|
|
1912
|
+
function powerMeterFeature(input) {
|
|
1913
|
+
return compileOrRefuse(input.blockId, {
|
|
1914
|
+
draft: {
|
|
1915
|
+
kind: "scalar",
|
|
1916
|
+
cap: "power-meter",
|
|
1917
|
+
targetId: "power",
|
|
1918
|
+
source: sourceOf(input.meter),
|
|
1919
|
+
transform: { kind: "identity" }
|
|
1920
|
+
},
|
|
1921
|
+
device: input.device,
|
|
1922
|
+
apply: "add",
|
|
1923
|
+
sourceValueKind: "number",
|
|
1924
|
+
changedAtField: null,
|
|
1925
|
+
sourceUnit: "W"
|
|
1926
|
+
});
|
|
1927
|
+
}
|
|
1928
|
+
function sourceOf(member) {
|
|
1929
|
+
return {
|
|
1930
|
+
addonId: member.source.addonId,
|
|
1931
|
+
stableId: member.source.stableId,
|
|
1932
|
+
cap: member.cap,
|
|
1933
|
+
fieldPath: member.fieldPath
|
|
1934
|
+
};
|
|
1935
|
+
}
|
|
1936
|
+
function thresholdRunning(input) {
|
|
1937
|
+
return compileOrRefuse(input.blockId, {
|
|
1938
|
+
draft: {
|
|
1939
|
+
kind: "scalar",
|
|
1940
|
+
cap: "running-state",
|
|
1941
|
+
targetId: "running",
|
|
1942
|
+
source: sourceOf(input.meter),
|
|
1943
|
+
transform: {
|
|
1944
|
+
kind: "threshold",
|
|
1945
|
+
comparison: "gte",
|
|
1946
|
+
threshold: input.thresholdWatts,
|
|
1947
|
+
startDwellMs: input.startDwellMs,
|
|
1948
|
+
stopDwellMs: input.stopDwellMs
|
|
1949
|
+
}
|
|
1950
|
+
},
|
|
1951
|
+
device: input.device,
|
|
1952
|
+
apply: "add",
|
|
1953
|
+
sourceValueKind: "number",
|
|
1954
|
+
changedAtField: null,
|
|
1955
|
+
sourceUnit: "W"
|
|
1956
|
+
});
|
|
1957
|
+
}
|
|
1958
|
+
function plugRunning(blockId, device, plug) {
|
|
1959
|
+
return compileOrRefuse(blockId, {
|
|
1960
|
+
draft: {
|
|
1961
|
+
kind: "scalar",
|
|
1962
|
+
cap: "running-state",
|
|
1963
|
+
targetId: "running",
|
|
1964
|
+
source: sourceOf(plug),
|
|
1965
|
+
transform: { kind: "identity" }
|
|
1966
|
+
},
|
|
1967
|
+
device,
|
|
1968
|
+
apply: "add",
|
|
1969
|
+
sourceValueKind: "boolean",
|
|
1970
|
+
changedAtField: "lastChangedAt",
|
|
1971
|
+
sourceUnit: null
|
|
1972
|
+
});
|
|
1973
|
+
}
|
|
1974
|
+
function powerSourceFeature(blockId, device, plug, original) {
|
|
1975
|
+
const compiled = compileOrRefuse(blockId, {
|
|
1976
|
+
draft: {
|
|
1977
|
+
kind: "scalar",
|
|
1978
|
+
cap: "power-source",
|
|
1979
|
+
targetId: "switch",
|
|
1980
|
+
source: sourceOf(plug),
|
|
1981
|
+
transform: { kind: "identity" }
|
|
1982
|
+
},
|
|
1983
|
+
device,
|
|
1984
|
+
apply: "add",
|
|
1985
|
+
sourceValueKind: "boolean",
|
|
1986
|
+
changedAtField: null,
|
|
1987
|
+
sourceUnit: null
|
|
1988
|
+
});
|
|
1989
|
+
const offSeconds = original.fields["offSeconds"];
|
|
1990
|
+
if (offSeconds === void 0) return refuse$1(blockId, "its power-source has no offSeconds");
|
|
1991
|
+
return {
|
|
1992
|
+
...compiled,
|
|
1993
|
+
fields: {
|
|
1994
|
+
...compiled.fields,
|
|
1995
|
+
offSeconds
|
|
1996
|
+
}
|
|
1997
|
+
};
|
|
1998
|
+
}
|
|
1999
|
+
function replacementsOf(blockId, composition, helper) {
|
|
2000
|
+
const device = require_dist.composedDeviceRef(blockId);
|
|
2001
|
+
if (helper.kind === "appliance") {
|
|
2002
|
+
const base = {
|
|
2003
|
+
"running-state": thresholdRunning({
|
|
2004
|
+
blockId,
|
|
2005
|
+
device,
|
|
2006
|
+
meter: helper.member,
|
|
2007
|
+
thresholdWatts: helper.thresholdWatts,
|
|
2008
|
+
startDwellMs: helper.startDwellMs,
|
|
2009
|
+
stopDwellMs: helper.stopDwellMs
|
|
2010
|
+
}),
|
|
2011
|
+
"power-meter": powerMeterFeature({
|
|
2012
|
+
blockId,
|
|
2013
|
+
device,
|
|
2014
|
+
meter: helper.member
|
|
2015
|
+
})
|
|
2016
|
+
};
|
|
2017
|
+
if (helper.powerSwitch === void 0) return base;
|
|
2018
|
+
const original = composition.features.find((f) => f.cap === "power-source");
|
|
2019
|
+
if (original === void 0 || original.kind !== "fields") return refuse$1(blockId, "the helper names a power plug but no power-source feature is stored");
|
|
2020
|
+
return {
|
|
2021
|
+
...base,
|
|
2022
|
+
"power-source": powerSourceFeature(blockId, device, helper.powerSwitch, original)
|
|
2023
|
+
};
|
|
2024
|
+
}
|
|
2025
|
+
const meter = helper.meter;
|
|
2026
|
+
if (meter === void 0) return { "running-state": plugRunning(blockId, device, helper.plug) };
|
|
2027
|
+
return {
|
|
2028
|
+
"running-state": thresholdRunning({
|
|
2029
|
+
blockId,
|
|
2030
|
+
device,
|
|
2031
|
+
meter,
|
|
2032
|
+
thresholdWatts: helper.thresholdWatts,
|
|
2033
|
+
startDwellMs: helper.startDwellMs,
|
|
2034
|
+
stopDwellMs: helper.stopDwellMs
|
|
2035
|
+
}),
|
|
2036
|
+
"power-meter": powerMeterFeature({
|
|
2037
|
+
blockId,
|
|
2038
|
+
device,
|
|
2039
|
+
meter
|
|
2040
|
+
})
|
|
2041
|
+
};
|
|
2042
|
+
}
|
|
2043
|
+
function rewriteComposition(blockId, composition) {
|
|
2044
|
+
const helper = composition.helper;
|
|
2045
|
+
if (helper === void 0 || helper.kind !== "appliance" && helper.kind !== "heater") return null;
|
|
2046
|
+
if (composition.target.kind !== "new") return refuse$1(blockId, "a helper that targets an existing device");
|
|
2047
|
+
const replacements = replacementsOf(blockId, composition, helper);
|
|
2048
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2049
|
+
const features = composition.features.map((feature) => {
|
|
2050
|
+
const replacement = replacements[feature.cap];
|
|
2051
|
+
if (replacement === void 0) return feature;
|
|
2052
|
+
seen.add(feature.cap);
|
|
2053
|
+
return replacement;
|
|
2054
|
+
});
|
|
2055
|
+
const missing = Object.keys(replacements).filter((cap) => !seen.has(cap));
|
|
2056
|
+
if (missing.length > 0) return refuse$1(blockId, `no stored ${missing.join(", ")} feature to rewrite`);
|
|
2057
|
+
const { helper: _helper, ...rest } = composition;
|
|
2058
|
+
const parsed = require_dist.CompositionSchema.safeParse({
|
|
2059
|
+
...rest,
|
|
2060
|
+
features
|
|
2061
|
+
});
|
|
2062
|
+
if (!parsed.success) return refuse$1(blockId, `the rewritten composition is invalid: ${parsed.error.message}`);
|
|
2063
|
+
return parsed.data;
|
|
2064
|
+
}
|
|
2065
|
+
function rewriteOf$1(row, ports) {
|
|
2066
|
+
const parsed = require_dist.CoreBlockSchema.safeParse(row.data.block);
|
|
2067
|
+
if (!parsed.success) {
|
|
2068
|
+
if (RawHelperBlockSchema.safeParse(row.data.block).success) return refuse$1(row.id, `the stored block does not parse: ${parsed.error.message}`);
|
|
2069
|
+
return null;
|
|
2070
|
+
}
|
|
2071
|
+
const block = parsed.data;
|
|
2072
|
+
if (block.source === void 0 || block.source.kind !== "composition") return null;
|
|
2073
|
+
const composition = rewriteComposition(row.id, block.source.composition);
|
|
2074
|
+
if (composition === null) return null;
|
|
2075
|
+
const updatedAt = Math.max(block.updatedAt + 1, ports.now());
|
|
2076
|
+
const next = require_dist.CoreBlockSchema.safeParse({
|
|
2077
|
+
...block,
|
|
2078
|
+
source: {
|
|
2079
|
+
kind: "composition",
|
|
2080
|
+
composition
|
|
2081
|
+
},
|
|
2082
|
+
updatedAt
|
|
2083
|
+
});
|
|
2084
|
+
if (!next.success) return refuse$1(row.id, `the rewritten block is invalid: ${next.error.message}`);
|
|
2085
|
+
return {
|
|
2086
|
+
row,
|
|
2087
|
+
data: {
|
|
2088
|
+
...row.data,
|
|
2089
|
+
updatedAt,
|
|
2090
|
+
block: next.data
|
|
2091
|
+
}
|
|
2092
|
+
};
|
|
2093
|
+
}
|
|
2094
|
+
async function rewriteHelpersToCustomize(ports) {
|
|
2095
|
+
const rewrites = (await ports.listBlockRows()).flatMap((row) => {
|
|
2096
|
+
const rewrite = rewriteOf$1(row, ports);
|
|
2097
|
+
return rewrite === null ? [] : [rewrite];
|
|
2098
|
+
});
|
|
2099
|
+
if (rewrites.length === 0) return {
|
|
2100
|
+
outcome: "already-done",
|
|
2101
|
+
summary: { blocks: 0 }
|
|
2102
|
+
};
|
|
2103
|
+
for (const { row, data } of rewrites) await ports.replaceBlockRow(row.id, data, row.rev);
|
|
2104
|
+
return {
|
|
2105
|
+
outcome: "done",
|
|
2106
|
+
summary: { blocks: rewrites.length }
|
|
2107
|
+
};
|
|
2108
|
+
}
|
|
2109
|
+
//#endregion
|
|
1869
2110
|
//#region src/builtins/core-blocks/migrations/pump-cycle-split.ts
|
|
1870
2111
|
/**
|
|
1871
2112
|
* The pump duty cycle leaves the `pet-fountain` feature of a stored composition
|
|
@@ -2053,6 +2294,21 @@ var ADDON_MIGRATIONS = [{
|
|
|
2053
2294
|
fixtureMark: "the block createdBy and name, which the migration does not know"
|
|
2054
2295
|
},
|
|
2055
2296
|
procedure: splitPumpCycleFromFountain
|
|
2297
|
+
}, {
|
|
2298
|
+
meta: {
|
|
2299
|
+
id: HELPER_TO_CUSTOMIZE_ID,
|
|
2300
|
+
owner: "core-blocks",
|
|
2301
|
+
level: "addon-state",
|
|
2302
|
+
seq: 2,
|
|
2303
|
+
dependsOn: [],
|
|
2304
|
+
store: "settings",
|
|
2305
|
+
scope: "cluster",
|
|
2306
|
+
onFailure: "block-owner",
|
|
2307
|
+
bodyKind: "procedure",
|
|
2308
|
+
description: "Rewrite each stored appliance and heater helper composition into plain Customize features (running-state, power-meter, power-source) with the same threshold, dwells and plugs, and drop the helper spec",
|
|
2309
|
+
fixtureMark: "the marked threshold, start and stop dwell, plug and offSeconds of each helper"
|
|
2310
|
+
},
|
|
2311
|
+
procedure: rewriteHelpersToCustomize
|
|
2056
2312
|
}];
|
|
2057
2313
|
//#endregion
|
|
2058
2314
|
//#region src/builtins/core-blocks/runs-ledger.ts
|