@camstack/server 1.2.839 → 1.2.841
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/dist/api/trpc/generated-cap-routers.js +16 -0
- package/package.json +18 -8
- package/system/dist/addon-runner.js +4 -2
- package/system/dist/addon-runner.mjs +4 -2
- 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 +5 -5
- package/system/dist/builtins/composer/composer.addon.mjs +5 -5
- 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/composition-api.d.ts +2 -2
- package/system/dist/builtins/core-blocks/composition-sources.d.ts +9 -2
- package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +2 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +598 -395
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +598 -395
- package/system/dist/builtins/core-blocks/fan-link-forward.d.ts +42 -0
- package/system/dist/builtins/core-blocks/fan-presets-service.d.ts +25 -39
- package/system/dist/builtins/core-blocks/fan-presets-wiring.d.ts +5 -3
- package/system/dist/builtins/core-blocks/migrations/helper-to-customize.d.ts +3 -1
- package/system/dist/builtins/core-blocks/power-source-service.d.ts +2 -0
- package/system/dist/builtins/core-blocks/timed-run/timed-run-service.d.ts +8 -2
- 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-bindings-store.d.ts +8 -5
- package/system/dist/builtins/device-manager/device-manager.addon.js +116 -22
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +116 -22
- package/system/dist/builtins/device-manager/device-row-store.d.ts +0 -52
- 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-7E2O4-UN.js → capture-engine-CGU4rnN-.js} +1 -1
- package/system/dist/{capture-engine-B5IBWIRT.mjs → capture-engine-CLrh3FG0.mjs} +1 -1
- package/system/dist/{composition-sources-Cfqn4cly.mjs → composition-sources-CoLbBru1.mjs} +32 -5
- package/system/dist/{composition-sources-DLtc8lSL.js → composition-sources-bhWIz4Rp.js} +32 -5
- package/system/dist/{constants-DjsgCnZk.mjs → constants-CfAS4Qm6.mjs} +1 -1
- package/system/dist/{constants-Cc70YreG.js → constants-DZwpZY5J.js} +1 -1
- package/system/dist/{device-ca-CVP5h3u1.mjs → device-ca-CAbEBLyf.mjs} +1 -1
- package/system/dist/{device-ca-C6JqeFfK.js → device-ca-ksS811fC.js} +1 -1
- package/system/dist/{dist-OmrC_RZs.mjs → dist-ByiDJLen.mjs} +1081 -327
- package/system/dist/{dist-CLnTYKFn.js → dist-DlRUArVs.js} +1128 -338
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-CKQVXf4o.mjs → hub-identity-Bh28ooQx.mjs} +1 -1
- package/system/dist/{hub-identity-TrZcnJkB.js → hub-identity-C-1NeWlr.js} +1 -1
- package/system/dist/{hub-mdns-ciao-ocg6suyX.js → hub-mdns-ciao-CL-Z9yMs.js} +2 -2
- package/system/dist/{hub-mdns-ciao-C8G0K1Z1.mjs → hub-mdns-ciao-OWO6Bw-X.mjs} +2 -2
- package/system/dist/index.js +16 -12
- package/system/dist/index.mjs +16 -12
- package/system/dist/{legacy-integration-rows-door-BPkJUGaX.mjs → legacy-integration-rows-door-Be_QKUlY.mjs} +1 -1
- package/system/dist/{legacy-integration-rows-door-b6CUxtXX.js → legacy-integration-rows-door-CDPH26e8.js} +1 -1
- package/system/dist/{rename-composition-block-N7lslQJK.js → rename-composition-block-Bs5KT3Gn.js} +1 -1
- package/system/dist/{rename-composition-block-DPlsP1xF.mjs → rename-composition-block-CncvFIHl.mjs} +1 -1
- package/system/dist/{restore-archive-CcuEoEtj.js → restore-archive-CHUKcl3T.js} +1 -1
- package/system/dist/{restore-archive-Btc3H-Fg.mjs → restore-archive-DX7kK3LQ.mjs} +1 -1
- package/system/dist/{wal-maintenance-g7yvxLMj.mjs → wal-maintenance-Fibm7rsM.mjs} +0 -0
- package/system/dist/{wal-maintenance-B2_uCEi5.js → wal-maintenance-GNE9Oqdu.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.841] - 2026-11-11
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- fan-control gains the setOscillationAxis route.
|
|
15
|
+
|
|
16
|
+
## [1.2.840] - 2026-11-11
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Rebuilt against updated dependencies.
|
|
21
|
+
|
|
10
22
|
## [1.2.839] - 2026-11-11
|
|
11
23
|
|
|
12
24
|
### Added
|
|
@@ -5242,6 +5242,22 @@ function createCapRouter_fanControl(getProvider, createRemoteProxy) {
|
|
|
5242
5242
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5243
5243
|
return fn.call(p, methodInput);
|
|
5244
5244
|
}),
|
|
5245
|
+
setOscillationAxis: trpc_middleware_js_1.protectedProcedure
|
|
5246
|
+
.input(types_66.fanControlCapability.methods.setOscillationAxis.input.loose())
|
|
5247
|
+
.output(types_66.fanControlCapability.methods.setOscillationAxis.output)
|
|
5248
|
+
.mutation(async ({ input, ctx }) => {
|
|
5249
|
+
const { nodeId, ...methodInput } = input;
|
|
5250
|
+
const p = resolveProvider('fan-control', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5251
|
+
const fn = p.setOscillationAxis;
|
|
5252
|
+
if (typeof fn !== 'function') {
|
|
5253
|
+
throw new server_1.TRPCError({
|
|
5254
|
+
code: 'NOT_IMPLEMENTED',
|
|
5255
|
+
message: 'Capability "fan-control" provider does not implement "setOscillationAxis"',
|
|
5256
|
+
});
|
|
5257
|
+
}
|
|
5258
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5259
|
+
return fn.call(p, methodInput);
|
|
5260
|
+
}),
|
|
5245
5261
|
});
|
|
5246
5262
|
}
|
|
5247
5263
|
function createCapRouter_fanPresets(getProvider, createRemoteProxy) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.841",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,8 +66,18 @@
|
|
|
66
66
|
],
|
|
67
67
|
"requires": {
|
|
68
68
|
"addons": {
|
|
69
|
-
"@camstack/addon-admin-ui": ">=1.2.
|
|
70
|
-
"@camstack/addon-agent-ui": ">=1.2.
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.645",
|
|
70
|
+
"@camstack/addon-agent-ui": ">=1.2.366",
|
|
71
|
+
"@camstack/addon-export-alexa": ">=1.2.194",
|
|
72
|
+
"@camstack/addon-export-hap": ">=1.2.199",
|
|
73
|
+
"@camstack/addon-import-alexa": ">=0.2.204",
|
|
74
|
+
"@camstack/addon-matter-broker": ">=0.2.167",
|
|
75
|
+
"@camstack/addon-provider-bosch": ">=0.1.52",
|
|
76
|
+
"@camstack/addon-provider-gree": ">=0.2.158",
|
|
77
|
+
"@camstack/addon-provider-homeassistant": ">=1.2.680",
|
|
78
|
+
"@camstack/addon-provider-homematic": ">=1.2.190",
|
|
79
|
+
"@camstack/addon-provider-mqtt-ha": ">=0.1.45",
|
|
80
|
+
"@camstack/addon-provider-velux": ">=0.2.167"
|
|
71
81
|
},
|
|
72
82
|
"wrapper": {
|
|
73
83
|
"desktop": ">=0.0.1",
|
|
@@ -76,19 +86,19 @@
|
|
|
76
86
|
}
|
|
77
87
|
},
|
|
78
88
|
"dependencies": {
|
|
79
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
80
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
89
|
+
"@camstack/addon-admin-ui": "1.2.645",
|
|
90
|
+
"@camstack/addon-agent-ui": "1.2.366",
|
|
81
91
|
"@camstack/addon-auth": "1.2.182",
|
|
82
92
|
"@camstack/addon-benchmark": "1.2.313",
|
|
83
93
|
"@camstack/addon-decoder-nodeav": "1.2.149",
|
|
84
94
|
"@camstack/addon-notifiers": "1.2.637",
|
|
85
95
|
"@camstack/addon-pipeline": "1.2.650",
|
|
86
|
-
"@camstack/addon-pipeline-orchestrator": "1.2.
|
|
96
|
+
"@camstack/addon-pipeline-orchestrator": "1.2.681",
|
|
87
97
|
"@camstack/addon-post-analysis": "1.2.693",
|
|
88
98
|
"@camstack/develop": "0.1.52",
|
|
89
99
|
"@camstack/sdk": "1.2.157",
|
|
90
|
-
"@camstack/types": "1.2.
|
|
91
|
-
"@camstack/ui-library": "1.2.
|
|
100
|
+
"@camstack/types": "1.2.549",
|
|
101
|
+
"@camstack/ui-library": "1.2.426",
|
|
92
102
|
"@fastify/compress": "^9.0.0",
|
|
93
103
|
"@fastify/cookie": "^11.0.2",
|
|
94
104
|
"@fastify/cors": "^11.2.0",
|
|
@@ -6429,9 +6429,9 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6429
6429
|
linkDeviceId,
|
|
6430
6430
|
...isFirstSpawn && spec.meta.name !== void 0 ? { name: spec.meta.name } : {},
|
|
6431
6431
|
...isFirstSpawn && spec.meta.location !== void 0 ? { location: spec.meta.location } : {},
|
|
6432
|
+
...(isFirstSpawn || existingMeta?.role == null) && spec.meta.role !== void 0 ? { role: spec.meta.role } : {},
|
|
6432
6433
|
...spec.meta.type !== void 0 ? { type: spec.meta.type } : {},
|
|
6433
|
-
...integrationId !== void 0 ? { integrationId } : {}
|
|
6434
|
-
...spec.meta.role !== void 0 ? { role: spec.meta.role } : {}
|
|
6434
|
+
...integrationId !== void 0 ? { integrationId } : {}
|
|
6435
6435
|
}).catch((err) => {
|
|
6436
6436
|
opts.logger.warn("spawnAccessoryChild: applyInitialMeta pre-seed failed", {
|
|
6437
6437
|
tags: {
|
|
@@ -6717,6 +6717,7 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6717
6717
|
type: device.type,
|
|
6718
6718
|
name: device.name,
|
|
6719
6719
|
parentDeviceId: device.parentDeviceId,
|
|
6720
|
+
...device.role !== void 0 ? { role: device.role } : {},
|
|
6720
6721
|
features: [...device.features],
|
|
6721
6722
|
config: {},
|
|
6722
6723
|
secretConfigPaths: declaredSecretConfigPaths(device)
|
|
@@ -6738,6 +6739,7 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6738
6739
|
type: device.type,
|
|
6739
6740
|
name: device.name,
|
|
6740
6741
|
parentDeviceId: device.parentDeviceId,
|
|
6742
|
+
...device.role !== void 0 ? { role: device.role } : {},
|
|
6741
6743
|
features: [...device.features],
|
|
6742
6744
|
config: {},
|
|
6743
6745
|
secretConfigPaths: declaredSecretConfigPaths(device)
|
|
@@ -6374,9 +6374,9 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6374
6374
|
linkDeviceId,
|
|
6375
6375
|
...isFirstSpawn && spec.meta.name !== void 0 ? { name: spec.meta.name } : {},
|
|
6376
6376
|
...isFirstSpawn && spec.meta.location !== void 0 ? { location: spec.meta.location } : {},
|
|
6377
|
+
...(isFirstSpawn || existingMeta?.role == null) && spec.meta.role !== void 0 ? { role: spec.meta.role } : {},
|
|
6377
6378
|
...spec.meta.type !== void 0 ? { type: spec.meta.type } : {},
|
|
6378
|
-
...integrationId !== void 0 ? { integrationId } : {}
|
|
6379
|
-
...spec.meta.role !== void 0 ? { role: spec.meta.role } : {}
|
|
6379
|
+
...integrationId !== void 0 ? { integrationId } : {}
|
|
6380
6380
|
}).catch((err) => {
|
|
6381
6381
|
opts.logger.warn("spawnAccessoryChild: applyInitialMeta pre-seed failed", {
|
|
6382
6382
|
tags: {
|
|
@@ -6662,6 +6662,7 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6662
6662
|
type: device.type,
|
|
6663
6663
|
name: device.name,
|
|
6664
6664
|
parentDeviceId: device.parentDeviceId,
|
|
6665
|
+
...device.role !== void 0 ? { role: device.role } : {},
|
|
6665
6666
|
features: [...device.features],
|
|
6666
6667
|
config: {},
|
|
6667
6668
|
secretConfigPaths: declaredSecretConfigPaths(device)
|
|
@@ -6683,6 +6684,7 @@ function createBrokerDeviceManagerApi(opts) {
|
|
|
6683
6684
|
type: device.type,
|
|
6684
6685
|
name: device.name,
|
|
6685
6686
|
parentDeviceId: device.parentDeviceId,
|
|
6687
|
+
...device.role !== void 0 ? { role: device.role } : {},
|
|
6686
6688
|
features: [...device.features],
|
|
6687
6689
|
config: {},
|
|
6688
6690
|
secretConfigPaths: declaredSecretConfigPaths(device)
|
|
@@ -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-DlRUArVs.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bn as addonPagesCapability, xl as EventCategory, xs as BaseAddon, yl as errMsg } from "../../dist-ByiDJLen.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-DlRUArVs.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 { Sn as addonWidgetsCapability, xl as EventCategory, xs as BaseAddon, yl as errMsg } from "../../dist-ByiDJLen.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-DlRUArVs.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 { Cn as
|
|
1
|
+
import { Cn as alertEpisodeId, Sc as defineRecordKinds, T as CORE_BLOCK_ADDON_PREFIX, Tn as alertsCapability, _c as createEvent, ci as isAlertEpisodeSeverity, p as AlertSchema, si as isAlertEpisodeOpen, wn as alertEpisodePayload, xl as EventCategory, xs as BaseAddon, yl as errMsg } from "../../dist-ByiDJLen.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-DlRUArVs.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 { An as bareAddonId, Fc as isEvent, ut as FIRST_LEVEL_MACRO_CLASSES, xl as EventCategory, xs as BaseAddon, ya as ptzAutotrackCapability, yl as errMsg } from "../../dist-ByiDJLen.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-DlRUArVs.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-CHUKcl3T.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 { Fi as mayWriteToLocation, kn as backupCapability, ll as toNodeId, po as storageOccupancyCapability, qc as nodePin, xl as EventCategory, xs as BaseAddon } from "../../dist-ByiDJLen.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-DX7kK3LQ.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-DlRUArVs.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 { D as CalendarPreferencesSchema,
|
|
1
|
+
import { D as CalendarPreferencesSchema, Sc as defineRecordKinds, xs as BaseAddon, zn as calendarsCapability } from "../../dist-ByiDJLen.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-DlRUArVs.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 { $ as DeclaredDevices, An as bareAddonId, Bn as cameraGridLayoutCapability, Gs as RecordIntegrationInstances, Ic as isInstanceEnabled, Ri as memoizePinnedFfmpeg, Wi as motionCapability, Yo as buildFfmpegArgs, _c as createEvent, g as BaseDevice, gl as DeviceFeature, gr as declarationOwnerNodeId, ho as streamCatalogCapability, ii as integrationInstancesCapability, jc as hydrateSchema, jt as MOTION_CLOSE_AFTER_MS, so as snapshotCapability, vl as DeviceType, xc as defineEntryKind, xl as EventCategory, xs as BaseAddon, yl as errMsg, z as DERIVED_CAMERA_SILENCED_CAP_NAMES } from "../../dist-ByiDJLen.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-DlRUArVs.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-bhWIz4Rp.js");
|
|
8
|
+
const require_capture_engine = require("../../capture-engine-CGU4rnN-.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-Bs5KT3Gn.js");
|
|
11
11
|
let zod = require("zod");
|
|
12
12
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
13
13
|
/**
|
|
@@ -121,7 +121,6 @@ var GROUP_COMMAND_TYPES = new Set([
|
|
|
121
121
|
require_dist.DeviceType.Valve,
|
|
122
122
|
require_dist.DeviceType.Lock,
|
|
123
123
|
require_dist.DeviceType.MediaPlayer,
|
|
124
|
-
require_dist.DeviceType.Thermostat,
|
|
125
124
|
require_dist.DeviceType.Climate
|
|
126
125
|
]);
|
|
127
126
|
/** A call's arguments without the keys the caller left undefined. */
|
|
@@ -2317,6 +2316,7 @@ function evaluateFields(host, keys, now, timerDriven = false) {
|
|
|
2317
2316
|
source: record.plan.source,
|
|
2318
2317
|
read,
|
|
2319
2318
|
now,
|
|
2319
|
+
targetKind: record.plan.kind,
|
|
2320
2320
|
stateful: {
|
|
2321
2321
|
currentOutput: currentOutput(record),
|
|
2322
2322
|
expressionMemory: candidateMemory,
|
|
@@ -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 { $ as DeclaredDevices, $o as compositionFeatureEnabled, A as ConsumableItemSchema, Bo as COMPOSER_ADDON_ID, Br as expressionContainsBuiltinCall, Bt as PetFountainStatusSchema, Fr as evaluateCompositionField, Go as HISTORY_SLOW_MS, Ii as mediaPlayerCapability, Jo as MINUTE_MS, Ko as HOUR_MS, Kr as featureForwards, Li as mediaPlayerFeaturesOfRoles, Lo as withDefaultRunning, Mn as brightnessCapability, Mo as valveCapability, Pn as buildCapabilityLookup, Qn as colorCapability, Qo as composedDeviceStableId, Ra as resolveMutate, Rc as isReadingQuantity, S as COMPOSED_ITEM_FIXED_FIELDS, Uo as DEFAULT_HISTORY_RETENTION, Ur as fanControlCapability, Wa as runFanOut, Wi as motionCapability, Wo as HISTORY_FAST_MS, Wr as fanOutTargets, Xo as cloneStatefulExpressionMemory, Yn as climateControlCapability, Zo as composedDeviceRef, _c as createEvent, _r as declaredSeriesKind, _s as planStatisticTier, aa as petFountainCapability, ar as consumablesCapability, as as evaluateDerivative, bi as kebabToCamel, bl as featuresOfBoundCaps, ca as planComposition, cs as historyRetentionFromSettings, dr as coverCapability, ds as isForwardInputRef, ei as groupCommandsCapability, es as compositionItemFieldPath, fs as isHistoryHelper, ft as FanDirectionSchema, g as BaseDevice, ga as processTimeZoneOr, gs as planResetTier, gt as GroupCommandResultSchema, hs as openStatistic, i as ACTUATOR_TEMPLATE_IDS, is as disarmRoseMemory, ki as lockControlCapability, ms as openReset, no as sharedActuatorMethods, nr as compositionFieldKey, ns as compositionSourceKey, oa as petFountainWaterItem, os as evaluateStatistic, ps as nextLocalMidnight, r as ACTUATOR_METHODS, ra as parseColorInput, ro as sharedColorModes, rs as createStatefulExpressionMemory, s as ALL_CAPABILITY_DEFINITIONS, ti as groupTemplate, to as sharedActuatorFeatures, tr as composerCapability, ts as compositionSliceKey, us as integrateReading, vl as DeviceType, vo as switchCapability, vs as statisticCadenceMs, xl as EventCategory, xs as BaseAddon, xt as HvacModeSchema, yl as errMsg, ys as toExpressionValue, zi as methodRefusal } from "../../dist-ByiDJLen.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-CoLbBru1.mjs";
|
|
3
|
+
import { i as capSeriesKey } from "../../capture-engine-CLrh3FG0.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-CncvFIHl.mjs";
|
|
6
6
|
import { z } from "zod";
|
|
7
7
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
8
8
|
/**
|
|
@@ -116,7 +116,6 @@ var GROUP_COMMAND_TYPES = new Set([
|
|
|
116
116
|
DeviceType.Valve,
|
|
117
117
|
DeviceType.Lock,
|
|
118
118
|
DeviceType.MediaPlayer,
|
|
119
|
-
DeviceType.Thermostat,
|
|
120
119
|
DeviceType.Climate
|
|
121
120
|
]);
|
|
122
121
|
/** A call's arguments without the keys the caller left undefined. */
|
|
@@ -2312,6 +2311,7 @@ function evaluateFields(host, keys, now, timerDriven = false) {
|
|
|
2312
2311
|
source: record.plan.source,
|
|
2313
2312
|
read,
|
|
2314
2313
|
now,
|
|
2314
|
+
targetKind: record.plan.kind,
|
|
2315
2315
|
stateful: {
|
|
2316
2316
|
currentOutput: currentOutput(record),
|
|
2317
2317
|
expressionMemory: candidateMemory,
|
|
@@ -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-DlRUArVs.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 { ji as logDestinationCapability, xs as BaseAddon } from "../../dist-ByiDJLen.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 = {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* server derives it (`customizationBlockName`), refuses one the client sends,
|
|
13
13
|
* and never lets it move to another device. One per device, by block id (S2).
|
|
14
14
|
*/
|
|
15
|
-
import { type CapabilityDefinition, type CapabilityLookup, type CompositionBlockPatch, type CompositionBlockState, type CompositionSourceRef, type CoreBlock, type ICoreBlocksProvider, type IScopedLogger, type UnreleasedClaim } from "@camstack/types";
|
|
15
|
+
import { type CapabilityDefinition, type CapabilityLookup, type CompositionBlockPatch, type CompositionBlockState, type CompositionFieldRead, type CompositionSourceRef, type CoreBlock, type ICoreBlocksProvider, type IScopedLogger, type UnreleasedClaim } from "@camstack/types";
|
|
16
16
|
import type { NamedCompositionInput } from "./core-block-store.js";
|
|
17
17
|
import type { CompositionDescriptions } from "./composition-sources.js";
|
|
18
18
|
import { type RunningProposalPorts } from "./running-proposal.js";
|
|
@@ -27,7 +27,7 @@ export interface CompositionStoreView {
|
|
|
27
27
|
export interface CompositionApiDeps {
|
|
28
28
|
readonly store: CompositionStoreView;
|
|
29
29
|
/** One read of every source and every existing target a save names (`describeCompositionSources`). */
|
|
30
|
-
readonly describe: (sources: readonly CompositionSourceRef[], targets: readonly CompositionSourceRef[]) => Promise<CompositionDescriptions>;
|
|
30
|
+
readonly describe: (sources: readonly CompositionSourceRef[], targets: readonly CompositionSourceRef[], unionReads?: readonly CompositionFieldRead[]) => Promise<CompositionDescriptions>;
|
|
31
31
|
readonly lookupCap: CapabilityLookup;
|
|
32
32
|
readonly composerStates: (blockIds: readonly string[]) => Promise<readonly CompositionBlockState[]>;
|
|
33
33
|
readonly convergeSoon: () => void;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* Devices are keyed by `{addonId, stableId}` — never a numeric device id,
|
|
14
14
|
* which is this node's allocation and not the composition's identity.
|
|
15
15
|
*/
|
|
16
|
-
import { type CompositionSourceDescription, type CompositionSourceRef, type CompositionTargetDescription, type DeviceType, type ReadingQuantity } from "@camstack/types";
|
|
16
|
+
import { type CompositionFieldRead, type CompositionSourceDescription, type CompositionSourceRef, type CompositionTargetDescription, type DeviceType, type ReadingQuantity } from "@camstack/types";
|
|
17
17
|
export interface SourceRowView {
|
|
18
18
|
readonly id: number;
|
|
19
19
|
readonly stableId: string;
|
|
@@ -29,6 +29,13 @@ export interface BoundCapView {
|
|
|
29
29
|
export interface CompositionSourcePorts {
|
|
30
30
|
readonly listByAddon: (addonId: string) => Promise<readonly SourceRowView[]>;
|
|
31
31
|
readonly bindings: (deviceId: number) => Promise<readonly BoundCapView[]>;
|
|
32
|
+
/**
|
|
33
|
+
* One field of a source's current slice — read only for a union field the
|
|
34
|
+
* save links (D1034), to judge the source's LIVE kind. A failed or missing
|
|
35
|
+
* read leaves the kind unknown: the save is judged without it and the
|
|
36
|
+
* read-time guard still applies.
|
|
37
|
+
*/
|
|
38
|
+
readonly readField?: (deviceId: number, cap: string, fieldPath: string) => Promise<unknown>;
|
|
32
39
|
}
|
|
33
40
|
/** Every device a save reads, described once. Both maps are keyed by `compositionSourceKey`. */
|
|
34
41
|
export interface CompositionDescriptions {
|
|
@@ -37,4 +44,4 @@ export interface CompositionDescriptions {
|
|
|
37
44
|
}
|
|
38
45
|
/** Blank binding owners are not native providers and must not turn ADD into REPLACE. */
|
|
39
46
|
export declare function normalizedNativeOwner(owner: string | null | undefined): string | null;
|
|
40
|
-
export declare function describeCompositionSources(ports: CompositionSourcePorts, sources: readonly CompositionSourceRef[], targets?: readonly CompositionSourceRef[]): Promise<CompositionDescriptions>;
|
|
47
|
+
export declare function describeCompositionSources(ports: CompositionSourcePorts, sources: readonly CompositionSourceRef[], targets?: readonly CompositionSourceRef[], unionReads?: readonly CompositionFieldRead[]): Promise<CompositionDescriptions>;
|
|
@@ -46,6 +46,8 @@ export declare class CoreBlocksAddon extends BaseAddon {
|
|
|
46
46
|
* media-player redirect (when the remote runs) and the lock's door gate.
|
|
47
47
|
*/
|
|
48
48
|
private installDeviceCallRedirect;
|
|
49
|
+
/** The fan link forward's reach (D1034): the stored blocks and the linked devices, through `ctx.api`. */
|
|
50
|
+
private fanLinkPorts;
|
|
49
51
|
/**
|
|
50
52
|
* The remote writes each of its devices' `media-player` slice itself: seeded
|
|
51
53
|
* once at boot (never awaited), refreshed when a device registers, a config
|