@camstack/server 1.2.857 → 1.2.858
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/api/trpc/generated-cap-mounts.js +2 -1
- package/dist/api/trpc/generated-cap-routers.js +15 -1
- package/dist/core/addon/instance-links.service.js +6 -2
- package/package.json +15 -11
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/automation-template-instances.d.ts +38 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.d.ts +6 -0
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +227 -21
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +227 -21
- package/system/dist/builtins/core-blocks/remote-wiring.d.ts +3 -0
- package/system/dist/builtins/core-blocks/templates-service.d.ts +11 -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 +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- 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-BpTIydES.mjs → capture-engine-B4_fq2JB.mjs} +1 -1
- package/system/dist/{capture-engine-OjKUSU7_.js → capture-engine-yhFFC7F8.js} +1 -1
- package/system/dist/{composition-sources-eLYlvnnR.mjs → composition-sources-BQOEYCJG.mjs} +1 -1
- package/system/dist/{composition-sources-WroUQ4J-.js → composition-sources-CKSSe5ny.js} +1 -1
- package/system/dist/{constants-B8nWtzwq.js → constants-dfnEfsX7.js} +1 -1
- package/system/dist/{constants-DO33IJ7k.mjs → constants-h8wJE_8O.mjs} +1 -1
- package/system/dist/{device-ca-EtzHeETW.js → device-ca-_o0-3jJ6.js} +1 -1
- package/system/dist/{device-ca-BOquIg22.mjs → device-ca-h54CenJx.mjs} +1 -1
- package/system/dist/{dist-n0kCY8sq.js → dist-WEGVb8qV.js} +2961 -64
- package/system/dist/{dist-7eN_r5dA.mjs → dist-atHH8IeD.mjs} +2902 -65
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-C_6dgozE.mjs → hub-identity-DLF698tj.mjs} +1 -1
- package/system/dist/{hub-identity-Cz0pt7Ho.js → hub-identity-nIMYA24i.js} +1 -1
- package/system/dist/{hub-mdns-ciao-CmGrhCgY.js → hub-mdns-ciao-B6ZHStt1.js} +2 -2
- package/system/dist/{hub-mdns-ciao-CdHseQBh.mjs → hub-mdns-ciao-DchpUVAk.mjs} +2 -2
- package/system/dist/index.js +12 -8
- package/system/dist/index.mjs +12 -8
- package/system/dist/{legacy-integration-rows-door-Bm1OQy6O.js → legacy-integration-rows-door-BbaIE1qF.js} +1 -1
- package/system/dist/{legacy-integration-rows-door-Cnqq1aq-.mjs → legacy-integration-rows-door-DBO3ZLmn.mjs} +1 -1
- package/system/dist/{rename-composition-block-CuKj9mH0.mjs → rename-composition-block-6ISzMLgj.mjs} +1 -1
- package/system/dist/{rename-composition-block-D82Y4jGp.js → rename-composition-block-IIfaFnEl.js} +1 -1
- package/system/dist/{restore-archive-C2kHLNPq.js → restore-archive-ChRNoqGg.js} +1 -1
- package/system/dist/{restore-archive-BOnkR2ZT.mjs → restore-archive-DeDRh7Lf.mjs} +1 -1
- package/system/dist/{wal-maintenance-Bdrc5v7T.mjs → wal-maintenance-BXj9xnDD.mjs} +0 -0
- package/system/dist/{wal-maintenance-CBrmyT6U.js → wal-maintenance-l3CsKEaJ.js} +0 -0
- package/system/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.858] - 2026-11-13
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- A Google account an email target sends with cannot be deleted while the target still links it.
|
|
15
|
+
- Routers for the new energy-system capability
|
|
16
|
+
|
|
10
17
|
## [1.2.857] - 2026-11-13
|
|
11
18
|
|
|
12
19
|
### Changed
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate-cap-mounts.ts — DO NOT EDIT
|
|
3
3
|
// Re-run: npx tsx scripts/generate-cap-mounts.ts
|
|
4
4
|
//
|
|
5
|
-
// Mounted:
|
|
5
|
+
// Mounted: 203 Skipped (legacy): 3
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.LEGACY_SHAPE_SKIP = void 0;
|
|
8
8
|
exports.mountAllCaps = mountAllCaps;
|
|
@@ -292,6 +292,7 @@ function mountAllCaps(services) {
|
|
|
292
292
|
const entries = reg.getCollectionEntries('embedding-encoder');
|
|
293
293
|
return entries[0]?.[1] ?? null;
|
|
294
294
|
}, remoteCapProxy),
|
|
295
|
+
energySystem: (0, generated_cap_routers_js_1.createCapRouter_energySystem)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'energy-system'), remoteCapProxy),
|
|
295
296
|
enumSensor: (0, generated_cap_routers_js_1.createCapRouter_enumSensor)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'enum-sensor'), remoteCapProxy),
|
|
296
297
|
eventEmitter: (0, generated_cap_routers_js_1.createCapRouter_eventEmitter)((_ctx) => (0, cap_mount_helpers_js_1.requireDeviceScoped)(reg, 'event-emitter'), remoteCapProxy),
|
|
297
298
|
faceGallery: (0, generated_cap_routers_js_1.createCapRouter_faceGallery)((_ctx) => reg?.getSingleton('face-gallery') ?? null, remoteCapProxy),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// AUTO-GENERATED by scripts/generate-cap-routers.ts — DO NOT EDIT
|
|
3
3
|
// Re-run: npx tsx scripts/generate-cap-routers.ts
|
|
4
4
|
//
|
|
5
|
-
// Capabilities:
|
|
5
|
+
// Capabilities: 206
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.requireCapProvider = requireCapProvider;
|
|
@@ -76,6 +76,7 @@ exports.createCapRouter_displayPalette = createCapRouter_displayPalette;
|
|
|
76
76
|
exports.createCapRouter_doNotDisturb = createCapRouter_doNotDisturb;
|
|
77
77
|
exports.createCapRouter_doorbell = createCapRouter_doorbell;
|
|
78
78
|
exports.createCapRouter_embeddingEncoder = createCapRouter_embeddingEncoder;
|
|
79
|
+
exports.createCapRouter_energySystem = createCapRouter_energySystem;
|
|
79
80
|
exports.createCapRouter_enumSensor = createCapRouter_enumSensor;
|
|
80
81
|
exports.createCapRouter_eventEmitter = createCapRouter_eventEmitter;
|
|
81
82
|
exports.createCapRouter_faceGallery = createCapRouter_faceGallery;
|
|
@@ -4997,6 +4998,19 @@ function createCapRouter_embeddingEncoder(getProvider, createRemoteProxy) {
|
|
|
4997
4998
|
}),
|
|
4998
4999
|
});
|
|
4999
5000
|
}
|
|
5001
|
+
function createCapRouter_energySystem(getProvider, createRemoteProxy) {
|
|
5002
|
+
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
5003
|
+
getStatus: trpc_middleware_js_1.protectedProcedure
|
|
5004
|
+
.input(types_2.DEVICE_STATUS_METHOD.getStatus.input.loose())
|
|
5005
|
+
.output(types_2.DEVICE_STATUS_METHOD.getStatus.output)
|
|
5006
|
+
.query(async ({ input, ctx }) => {
|
|
5007
|
+
const { nodeId, ...methodInput } = input;
|
|
5008
|
+
const p = resolveProvider('energy-system', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5009
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5010
|
+
return p.getStatus(methodInput);
|
|
5011
|
+
}),
|
|
5012
|
+
});
|
|
5013
|
+
}
|
|
5000
5014
|
function createCapRouter_enumSensor(getProvider, createRemoteProxy) {
|
|
5001
5015
|
return (0, trpc_middleware_js_1.trpcRouter)({
|
|
5002
5016
|
getStatus: trpc_middleware_js_1.protectedProcedure
|
|
@@ -64,7 +64,7 @@ class InstanceLinksIndex {
|
|
|
64
64
|
}
|
|
65
65
|
exports.InstanceLinksIndex = InstanceLinksIndex;
|
|
66
66
|
/**
|
|
67
|
-
* Refuse while a declared link names instance `id` of `provider`. The target's function
|
|
67
|
+
* Refuse while a declared link names instance `id` of `provider`. The target's function caps and
|
|
68
68
|
* kind come from its own `describe().kinds`; a provider with no kinds is no link target. A
|
|
69
69
|
* consumer that cannot be read REFUSES: a destructive step never goes ahead on a failed read (D49).
|
|
70
70
|
*/
|
|
@@ -75,7 +75,11 @@ async function assertInstanceDeletable(provider, index, id) {
|
|
|
75
75
|
if (kind === undefined)
|
|
76
76
|
return;
|
|
77
77
|
const names = kind.brokerKind === undefined ? [kind.id] : [kind.id, kind.brokerKind];
|
|
78
|
-
|
|
78
|
+
// A link may name the instance through any cap its kind serves (a Google account is a broker and a
|
|
79
|
+
// mail sender): every one of them is asked.
|
|
80
|
+
const caps = [kind.functionCap, ...(kind.alsoServes ?? [])];
|
|
81
|
+
const finders = await Promise.all(caps.map((cap) => index.findersFor(cap, names)));
|
|
82
|
+
await (0, types_1.assertInstanceUnused)(id, finders.flat());
|
|
79
83
|
}
|
|
80
84
|
/** `provider` with a `deleteInstance` that refuses while a declared link names the instance. */
|
|
81
85
|
function guardInstanceDeletes(provider, index) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.858",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,10 +66,14 @@
|
|
|
66
66
|
],
|
|
67
67
|
"requires": {
|
|
68
68
|
"addons": {
|
|
69
|
-
"@camstack/addon-admin-ui": ">=1.2.
|
|
70
|
-
"@camstack/addon-agent-ui": ">=1.2.
|
|
71
|
-
"@camstack/addon-
|
|
72
|
-
"@camstack/addon-
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.661",
|
|
70
|
+
"@camstack/addon-agent-ui": ">=1.2.378",
|
|
71
|
+
"@camstack/addon-google-services": ">=0.2.48",
|
|
72
|
+
"@camstack/addon-notifiers": ">=1.2.638",
|
|
73
|
+
"@camstack/addon-post-analysis": ">=1.2.702",
|
|
74
|
+
"@camstack/addon-provider-enpal": ">=0.1.20",
|
|
75
|
+
"@camstack/addon-provider-homeassistant": ">=1.2.684",
|
|
76
|
+
"@camstack/addon-provider-homematic": ">=1.2.195"
|
|
73
77
|
},
|
|
74
78
|
"wrapper": {
|
|
75
79
|
"desktop": ">=0.0.1",
|
|
@@ -78,19 +82,19 @@
|
|
|
78
82
|
}
|
|
79
83
|
},
|
|
80
84
|
"dependencies": {
|
|
81
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
82
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
85
|
+
"@camstack/addon-admin-ui": "1.2.661",
|
|
86
|
+
"@camstack/addon-agent-ui": "1.2.378",
|
|
83
87
|
"@camstack/addon-auth": "1.2.182",
|
|
84
88
|
"@camstack/addon-benchmark": "1.2.313",
|
|
85
89
|
"@camstack/addon-decoder-nodeav": "1.2.149",
|
|
86
|
-
"@camstack/addon-notifiers": "1.2.
|
|
90
|
+
"@camstack/addon-notifiers": "1.2.638",
|
|
87
91
|
"@camstack/addon-pipeline": "1.2.651",
|
|
88
92
|
"@camstack/addon-pipeline-orchestrator": "1.2.683",
|
|
89
|
-
"@camstack/addon-post-analysis": "1.2.
|
|
93
|
+
"@camstack/addon-post-analysis": "1.2.702",
|
|
90
94
|
"@camstack/develop": "0.1.53",
|
|
91
95
|
"@camstack/sdk": "1.2.157",
|
|
92
|
-
"@camstack/types": "1.2.
|
|
93
|
-
"@camstack/ui-library": "1.2.
|
|
96
|
+
"@camstack/types": "1.2.562",
|
|
97
|
+
"@camstack/ui-library": "1.2.438",
|
|
94
98
|
"@fastify/compress": "^9.0.0",
|
|
95
99
|
"@fastify/cookie": "^11.0.2",
|
|
96
100
|
"@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-WEGVb8qV.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 { Cn as addonPagesCapability, Il as EventCategory, Pl as errMsg, Ps as BaseAddon } from "../../dist-atHH8IeD.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-WEGVb8qV.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 EventCategory, Pl as errMsg, Ps as BaseAddon, Tn as addonWidgetsCapability } from "../../dist-atHH8IeD.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-WEGVb8qV.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
const require_log_redactor = require("../../log-redactor-BhIEMaG9.js");
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as CORE_BLOCK_ADDON_PREFIX, Dn as alertEpisodePayload, En as alertEpisodeId, Ic as defineRecordKinds, Il as EventCategory, On as alertsCapability, Pl as errMsg, Ps as BaseAddon, hi as isAlertEpisodeSeverity, jc as createEvent, mi as isAlertEpisodeOpen, p as AlertSchema } from "../../dist-atHH8IeD.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-WEGVb8qV.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 { Ea as ptzAutotrackCapability, Il as EventCategory, Pl as errMsg, Pn as bareAddonId, Ps as BaseAddon, Yc as isEvent, pt as FIRST_LEVEL_MACRO_CLASSES } from "../../dist-atHH8IeD.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-WEGVb8qV.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-ChRNoqGg.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 { Cl as toNodeId, Co as storageOccupancyCapability, Il as EventCategory, Nn as backupCapability, Ps as BaseAddon, Ui as mayWriteToLocation, sl as nodePin } from "../../dist-atHH8IeD.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-DeDRh7Lf.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-WEGVb8qV.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 { Ic as defineRecordKinds, Ps as BaseAddon, Wn as calendarsCapability, k as CalendarPreferencesSchema } from "../../dist-atHH8IeD.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-WEGVb8qV.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 { Fc as defineEntryKind, Gc as hydrateSchema, Gn as cameraGridLayoutCapability, Il as EventCategory, Ki as memoizePinnedFfmpeg, Nl as DeviceType, Pl as errMsg, Pn as bareAddonId, Ps as BaseAddon, Pt as MOTION_CLOSE_AFTER_MS, Qi as motionCapability, To as streamCatalogCapability, V as DERIVED_CAMERA_SILENCED_CAP_NAMES, Xc as isInstanceEnabled, _o as snapshotCapability, as as buildFfmpegArgs, br as declarationOwnerNodeId, ic as RecordIntegrationInstances, jc as createEvent, jl as DeviceFeature, tt as DeclaredDevices, ui as integrationInstancesCapability, v as BaseDevice } from "../../dist-atHH8IeD.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-WEGVb8qV.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-CKSSe5ny.js");
|
|
8
|
+
const require_capture_engine = require("../../capture-engine-yhFFC7F8.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-IIfaFnEl.js");
|
|
11
11
|
let zod = require("zod");
|
|
12
12
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
13
13
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-
|
|
3
|
-
import { i as capSeriesKey } from "../../capture-engine-
|
|
1
|
+
import { $n as climateControlCapability, $o as DEFAULT_HISTORY_RETENTION, As as planStatisticTier, Ca as processTimeZoneOr, Cs as integrateReading, Ds as openReset, Es as nextLocalMidnight, Fl as featuresOfBoundCaps, Gi as mediaPlayerFeaturesOfRoles, Ho as valveCapability, Il as EventCategory, In as brightnessCapability, Ja as resolveMutate, Jr as fanOutTargets, Li as lockControlCapability, M as ConsumableItemSchema, Ms as toExpressionValue, Nl as DeviceType, Oi as kebabToCamel, Oo as switchCapability, Os as openStatistic, Pl as errMsg, Ps as BaseAddon, Qc as isReadingQuantity, Qi as motionCapability, Rn as buildCapabilityLookup, Ts as isHistoryHelper, Ut as PetFountainStatusSchema, Wi as mediaPlayerCapability, Wr as expressionContainsBuiltinCall, Xo as COMPOSER_ADDON_ID, Xr as featureForwards, _s as disarmRoseMemory, ai as groupCommandsCapability, ar as composerCapability, da as petFountainCapability, do as sharedActuatorFeatures, ds as composedDeviceStableId, eo as runFanOut, es as HISTORY_FAST_MS, fa as petFountainWaterItem, fo as sharedActuatorMethods, fs as compositionFeatureEnabled, gs as createStatefulExpressionMemory, hr as coverCapability, hs as compositionSourceKey, ht as FanDirectionSchema, i as ACTUATOR_TEMPLATE_IDS, is as MINUTE_MS, jc as createEvent, js as statisticCadenceMs, ks as planResetTier, la as parseColorInput, lr as consumablesCapability, ls as cloneStatefulExpressionMemory, ma as planComposition, ms as compositionSliceKey, nr as colorCapability, ns as HOUR_MS, oi as groupTemplate, or as compositionFieldKey, po as sharedColorModes, ps as compositionItemFieldPath, qi as methodRefusal, qo as withDefaultRunning, qr as fanControlCapability, r as ACTUATOR_METHODS, s as ALL_CAPABILITY_DEFINITIONS, ts as HISTORY_SLOW_MS, tt as DeclaredDevices, us as composedDeviceRef, v as BaseDevice, vs as evaluateDerivative, w as COMPOSED_ITEM_FIXED_FIELDS, ws as isForwardInputRef, wt as HvacModeSchema, xr as declaredSeriesKind, xs as historyRetentionFromSettings, ys as evaluateStatistic, yt as GroupCommandResultSchema, zr as evaluateCompositionField } from "../../dist-atHH8IeD.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-BQOEYCJG.mjs";
|
|
3
|
+
import { i as capSeriesKey } from "../../capture-engine-B4_fq2JB.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-6ISzMLgj.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-WEGVb8qV.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 { Ps as BaseAddon, zi as logDestinationCapability } from "../../dist-atHH8IeD.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 = {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The automations made from a template (#527), found and re-expanded where they
|
|
3
|
+
* live: the core-block store. An instance is a block whose recipe literal links
|
|
4
|
+
* to the template (`AutomationRecipe.template`) — there is no second list of
|
|
5
|
+
* instances to keep in step with the blocks.
|
|
6
|
+
*
|
|
7
|
+
* When a template is saved, every instance is re-expanded with its stored
|
|
8
|
+
* values through the same pure function the editor uses, and its code is
|
|
9
|
+
* regenerated and saved through the ordinary block update (compile gate,
|
|
10
|
+
* converge). An instance whose values no longer fit keeps its last good body
|
|
11
|
+
* and is flagged on its link; it is never dropped and never left silent.
|
|
12
|
+
*
|
|
13
|
+
* A block whose code was edited outside the generator (its fingerprint no
|
|
14
|
+
* longer matches `template.codeHash`) is never regenerated over: only its
|
|
15
|
+
* literal is rewritten, to flag it `edited-by-hand`.
|
|
16
|
+
*/
|
|
17
|
+
import { type AutomationTemplatePayload, type CoreBlock, type IScopedLogger, type TemplateAutomationUser, type UnitResolver } from "@camstack/types";
|
|
18
|
+
export interface AutomationTemplateInstances {
|
|
19
|
+
/** The automations whose recipe links to the template. */
|
|
20
|
+
using(templateId: string): Promise<readonly TemplateAutomationUser[]>;
|
|
21
|
+
/** Re-expand every instance of the template against its new payload. */
|
|
22
|
+
reexpand(templateId: string, payload: AutomationTemplatePayload): Promise<ReexpandReport>;
|
|
23
|
+
}
|
|
24
|
+
/** An instance whose code came out unchanged is counted nowhere: nothing was saved. */
|
|
25
|
+
export interface ReexpandReport {
|
|
26
|
+
readonly updated: number;
|
|
27
|
+
readonly flagged: number;
|
|
28
|
+
readonly failed: number;
|
|
29
|
+
}
|
|
30
|
+
export interface AutomationTemplateInstancesDeps {
|
|
31
|
+
readonly blocks: () => readonly CoreBlock[];
|
|
32
|
+
/** The ordinary block update: compile gate, store, converge. */
|
|
33
|
+
readonly saveCode: (blockId: string, code: string) => Promise<void>;
|
|
34
|
+
readonly logger: IScopedLogger;
|
|
35
|
+
/** The cap unit knowledge the editor stamps a recipe with before codegen. */
|
|
36
|
+
readonly units?: UnitResolver;
|
|
37
|
+
}
|
|
38
|
+
export declare function automationTemplateInstancesOver(deps: AutomationTemplateInstancesDeps): AutomationTemplateInstances;
|
|
@@ -38,6 +38,12 @@ export declare class CoreBlocksAddon extends BaseAddon {
|
|
|
38
38
|
private buildPowerSource;
|
|
39
39
|
private powerSourceDevices;
|
|
40
40
|
private buildRemote;
|
|
41
|
+
/**
|
|
42
|
+
* A regenerated automation (a template instance re-expanded, #527) saved the
|
|
43
|
+
* way an operator's edit is: through the compile gate, then the store, then a
|
|
44
|
+
* converge that restarts its runner.
|
|
45
|
+
*/
|
|
46
|
+
private saveGeneratedCode;
|
|
41
47
|
/** A driver's native media-player cap reads the device; the composer's own native holds no reading. */
|
|
42
48
|
private hasNativeMediaPlayer;
|
|
43
49
|
/**
|