@camstack/server 1.2.769 → 1.2.771
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/core/cap-providers.js +4 -193
- package/dist/api/trpc/generated-cap-routers.js +40 -30
- package/dist/core/addon/addon-registry.service.js +100 -65
- package/dist/core/addon/group-respawn-ledger.js +59 -0
- package/dist/core/addon/integration-visibility.js +0 -5
- package/dist/core/addon/runner-convergence.js +36 -0
- package/package.json +8 -17
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/{agent-https-C_rkCAus.mjs → agent-https-BGRPCKwT.mjs} +1 -1
- package/system/dist/{agent-https-Cw5Wc_ip.js → agent-https-mq6d71iq.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 +4 -4
- 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 +5 -5
- 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 +5 -5
- 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 +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +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 +17 -10
- package/system/dist/builtins/keychain/index.mjs +17 -10
- 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 +5 -5
- 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 +10 -10
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +10 -10
- 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 +20 -20
- 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/integration-record-kinds.d.ts +3 -10
- package/system/dist/builtins/sqlite-storage/integration-registry.d.ts +1 -11
- package/system/dist/builtins/sqlite-storage/integration-rows-ports.d.ts +13 -15
- package/system/dist/builtins/sqlite-storage/migrations/legacy-integration-rows-door.d.ts +31 -0
- package/system/dist/builtins/sqlite-storage/migrations/migrations-provider.d.ts +39 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +48 -5
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +48 -5
- 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 +115 -115
- 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-DXSWU1PY.js → capture-engine--FQ8NUHh.js} +1 -1
- package/system/dist/{capture-engine-Kl46lSBi.mjs → capture-engine-Cmx7DIzV.mjs} +1 -1
- package/system/dist/{composition-sources-ClCP809M.mjs → composition-sources-Bd09D5f4.mjs} +1 -1
- package/system/dist/{composition-sources-Cq0IeRv9.js → composition-sources-cvZAN87H.js} +1 -1
- package/system/dist/{constants-CDxTuuXp.mjs → constants-Dce28BAx.mjs} +1 -1
- package/system/dist/{constants-CI5ySMIj.js → constants-gM9xHjyj.js} +1 -1
- package/system/dist/{coral-accelerators-BW3OcrLD.mjs → coral-accelerators-DBlgWB8k.mjs} +6 -6
- package/system/dist/{custom-action-registry-BIJZBObd.mjs → custom-action-registry-oHl1xltx.mjs} +37 -37
- package/system/dist/{device-ca-DPvU-3TE.js → device-ca-BmeH6Y9E.js} +1 -1
- package/system/dist/{device-ca-uRLJ8-jZ.mjs → device-ca-DcMuT-Yp.mjs} +1 -1
- package/system/dist/{dist-C_SNsYGY.mjs → dist-C3WXy3Ix.mjs} +78 -55
- package/system/dist/{dist-BDixk7cu.js → dist-Dtw1sIeQ.js} +78 -55
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-7uRbexmH.js → hub-mdns-ciao-C49eqyby.js} +2 -2
- package/system/dist/{hub-mdns-ciao-ea1EwFAF.mjs → hub-mdns-ciao-Dfue_0kR.mjs} +2 -2
- package/system/dist/index.d.ts +1 -1
- package/system/dist/index.js +42 -230
- package/system/dist/index.mjs +262 -450
- package/system/dist/legacy-integration-rows-door-B8_XCqUX.js +290 -0
- package/system/dist/legacy-integration-rows-door-DK42Bh2Q.mjs +255 -0
- package/system/dist/migrations/hub/2026-11-05-drop-integration-settings.d.ts +16 -0
- package/system/dist/{restore-archive-D0y_tFM2.mjs → restore-archive-C0YDO-qd.mjs} +94 -94
- package/system/dist/{restore-archive-CpTnlXUA.js → restore-archive-DuktQtye.js} +1 -1
- package/system/dist/{wal-maintenance-Dy4gxMdb.js → wal-maintenance-BEo-y-cQ.js} +0 -0
- package/system/dist/{wal-maintenance-BvxzVfje.mjs → wal-maintenance-DhuvKiGK.mjs} +0 -0
- package/system/package.json +1 -1
- package/dist/api/core/integration-secrets.js +0 -96
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Which restart requests one group-runner fork may satisfy.
|
|
4
|
+
*
|
|
5
|
+
* The child loads whatever is on disk at the moment it is forked (D5: there
|
|
6
|
+
* is no in-process reload). A request is satisfied only by a fork that starts
|
|
7
|
+
* AFTER the request — the caller's swap is already on disk by then. A fork
|
|
8
|
+
* already in flight does not count; that caller joins the single follow-up
|
|
9
|
+
* which starts when the in-flight fork returns. No clock (D3).
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.forkedRunnerOutcome = forkedRunnerOutcome;
|
|
13
|
+
exports.createGroupRespawnLedger = createGroupRespawnLedger;
|
|
14
|
+
function forkedRunnerOutcome(pidBefore, pidAfter) {
|
|
15
|
+
return {
|
|
16
|
+
live: pidAfter !== null && pidAfter !== pidBefore,
|
|
17
|
+
pidBefore,
|
|
18
|
+
pidAfter,
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function createGroupRespawnLedger() {
|
|
22
|
+
const slots = new Map();
|
|
23
|
+
const slot = (runnerId) => {
|
|
24
|
+
const existing = slots.get(runnerId);
|
|
25
|
+
if (existing)
|
|
26
|
+
return existing;
|
|
27
|
+
const created = {
|
|
28
|
+
requested: 0,
|
|
29
|
+
satisfied: 0,
|
|
30
|
+
pidBefore: null,
|
|
31
|
+
pidAfter: null,
|
|
32
|
+
};
|
|
33
|
+
slots.set(runnerId, created);
|
|
34
|
+
return created;
|
|
35
|
+
};
|
|
36
|
+
return {
|
|
37
|
+
claim(runnerId) {
|
|
38
|
+
const current = slot(runnerId);
|
|
39
|
+
current.requested += 1;
|
|
40
|
+
return current.requested;
|
|
41
|
+
},
|
|
42
|
+
covered(runnerId, epoch) {
|
|
43
|
+
return slot(runnerId).satisfied >= epoch;
|
|
44
|
+
},
|
|
45
|
+
coverThrough(runnerId) {
|
|
46
|
+
return slot(runnerId).requested;
|
|
47
|
+
},
|
|
48
|
+
markForked(runnerId, coverThrough, pids) {
|
|
49
|
+
const current = slot(runnerId);
|
|
50
|
+
current.satisfied = Math.max(current.satisfied, coverThrough);
|
|
51
|
+
current.pidBefore = pids.pidBefore;
|
|
52
|
+
current.pidAfter = pids.pidAfter;
|
|
53
|
+
},
|
|
54
|
+
pids(runnerId) {
|
|
55
|
+
const current = slot(runnerId);
|
|
56
|
+
return { pidBefore: current.pidBefore, pidAfter: current.pidAfter };
|
|
57
|
+
},
|
|
58
|
+
};
|
|
59
|
+
}
|
|
@@ -91,10 +91,5 @@ function createFilteredIntegrationRegistry(deps) {
|
|
|
91
91
|
},
|
|
92
92
|
updateIntegration: (id, updates) => raw.updateIntegration(id, updates),
|
|
93
93
|
deleteIntegration: (id) => raw.deleteIntegration(id),
|
|
94
|
-
// Integration settings: passthrough (already gated by getIntegration)
|
|
95
|
-
getIntegrationSettings: (id) => raw.getIntegrationSettings(id),
|
|
96
|
-
setIntegrationSetting: (id, key, value) => raw.setIntegrationSetting(id, key, value),
|
|
97
|
-
setIntegrationSettings: (id, settings) => raw.setIntegrationSettings(id, settings),
|
|
98
|
-
clearIntegrationSettings: (id) => raw.clearIntegrationSettings(id),
|
|
99
94
|
};
|
|
100
95
|
}
|
|
@@ -23,7 +23,43 @@
|
|
|
23
23
|
* the group spawned fresh — the convergence this planner encodes.
|
|
24
24
|
*/
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.parseListedRunner = parseListedRunner;
|
|
27
|
+
exports.readProcessPid = readProcessPid;
|
|
28
|
+
exports.readRestartReply = readRestartReply;
|
|
26
29
|
exports.planRunnerConvergence = planRunnerConvergence;
|
|
30
|
+
function parseListedRunner(value) {
|
|
31
|
+
if (typeof value !== 'object' || value === null)
|
|
32
|
+
return null;
|
|
33
|
+
const name = Reflect.get(value, 'name');
|
|
34
|
+
const addonIds = Reflect.get(value, 'addonIds');
|
|
35
|
+
const pid = Reflect.get(value, 'pid');
|
|
36
|
+
if (typeof name !== 'string' || !Array.isArray(addonIds))
|
|
37
|
+
return null;
|
|
38
|
+
const ids = [];
|
|
39
|
+
for (const id of addonIds) {
|
|
40
|
+
if (typeof id !== 'string')
|
|
41
|
+
return null;
|
|
42
|
+
ids.push(id);
|
|
43
|
+
}
|
|
44
|
+
return { name, addonIds: ids, pid: typeof pid === 'number' ? pid : null };
|
|
45
|
+
}
|
|
46
|
+
function readProcessPid(value) {
|
|
47
|
+
if (typeof value !== 'object' || value === null)
|
|
48
|
+
return null;
|
|
49
|
+
const pid = Reflect.get(value, 'pid');
|
|
50
|
+
return typeof pid === 'number' ? pid : null;
|
|
51
|
+
}
|
|
52
|
+
function readRestartReply(value) {
|
|
53
|
+
if (typeof value !== 'object' || value === null) {
|
|
54
|
+
return { success: false, pid: null, reason: null };
|
|
55
|
+
}
|
|
56
|
+
const reason = Reflect.get(value, 'reason');
|
|
57
|
+
return {
|
|
58
|
+
success: Reflect.get(value, 'success') === true,
|
|
59
|
+
pid: readProcessPid(value),
|
|
60
|
+
reason: typeof reason === 'string' ? reason : null,
|
|
61
|
+
};
|
|
62
|
+
}
|
|
27
63
|
function sameRoster(addonIds, rosterSet) {
|
|
28
64
|
return addonIds.length === rosterSet.size && addonIds.every((a) => rosterSet.has(a));
|
|
29
65
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.771",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -65,16 +65,7 @@
|
|
|
65
65
|
"@camstack/addon-agent-ui"
|
|
66
66
|
],
|
|
67
67
|
"requires": {
|
|
68
|
-
"addons": {
|
|
69
|
-
"@camstack/addon-admin-ui": ">=1.2.586",
|
|
70
|
-
"@camstack/addon-agent-ui": ">=1.2.326",
|
|
71
|
-
"@camstack/addon-export-alexa": ">=1.2.184",
|
|
72
|
-
"@camstack/addon-export-hap": ">=1.2.193",
|
|
73
|
-
"@camstack/addon-post-analysis": ">=1.2.668",
|
|
74
|
-
"@camstack/addon-provider-esphome": ">=0.1.11",
|
|
75
|
-
"@camstack/addon-provider-homeassistant": ">=1.2.660",
|
|
76
|
-
"@camstack/addon-provider-vesync": ">=0.2.150"
|
|
77
|
-
},
|
|
68
|
+
"addons": {},
|
|
78
69
|
"wrapper": {
|
|
79
70
|
"desktop": ">=0.0.1",
|
|
80
71
|
"image": ">=0.0.1"
|
|
@@ -82,19 +73,19 @@
|
|
|
82
73
|
}
|
|
83
74
|
},
|
|
84
75
|
"dependencies": {
|
|
85
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
86
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
76
|
+
"@camstack/addon-admin-ui": "1.2.587",
|
|
77
|
+
"@camstack/addon-agent-ui": "1.2.327",
|
|
87
78
|
"@camstack/addon-auth": "1.2.175",
|
|
88
79
|
"@camstack/addon-benchmark": "1.2.311",
|
|
89
80
|
"@camstack/addon-decoder-nodeav": "1.2.145",
|
|
90
81
|
"@camstack/addon-notifiers": "1.2.628",
|
|
91
82
|
"@camstack/addon-pipeline": "1.2.640",
|
|
92
|
-
"@camstack/addon-pipeline-orchestrator": "1.2.
|
|
83
|
+
"@camstack/addon-pipeline-orchestrator": "1.2.660",
|
|
93
84
|
"@camstack/addon-post-analysis": "1.2.668",
|
|
94
|
-
"@camstack/develop": "0.1.
|
|
85
|
+
"@camstack/develop": "0.1.45",
|
|
95
86
|
"@camstack/sdk": "1.2.155",
|
|
96
|
-
"@camstack/types": "1.2.
|
|
97
|
-
"@camstack/ui-library": "1.2.
|
|
87
|
+
"@camstack/types": "1.2.501",
|
|
88
|
+
"@camstack/ui-library": "1.2.385",
|
|
98
89
|
"@fastify/compress": "^9.0.0",
|
|
99
90
|
"@fastify/cookie": "^11.0.2",
|
|
100
91
|
"@fastify/cors": "^11.2.0",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { C as isModelDownloaded, S as isModelDownloadHttpError, _ as downloadFile, a as startEventLoopStallMonitor, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, p as ModelDownloadHttpError, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-
|
|
1
|
+
import { C as isModelDownloaded, S as isModelDownloadHttpError, _ as downloadFile, a as startEventLoopStallMonitor, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, p as ModelDownloadHttpError, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-oHl1xltx.mjs";
|
|
2
2
|
import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourtesyJpeg, t as COURTESY_DEFAULT_WIDTH } from "./snapshot-courtesy-CyFs1M3I.mjs";
|
|
3
3
|
export { COURTESY_DEFAULT_WIDTH, CustomActionRegistry, ModelDownloadHttpError, ModelDownloadService, STALL_REPORT_MS, STALL_TICK_MS, adoptModelRevisions, attributeStall, collectModelFiles, contentTypeFor, courtesyCacheKey, createFileDataPlaneHandler, deleteModelFromDisk, downloadFile, ensureModel, getModelFilePath, isModelDownloadHttpError, isModelDownloaded, parseRangeHeader, renderCourtesyJpeg, renderCourtesyOverlayJpeg, resolveFormatRevision, startEventLoopStallMonitor };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ys as defineRecordKinds } from "./dist-
|
|
1
|
+
import { ys as defineRecordKinds } from "./dist-C3WXy3Ix.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-Dtw1sIeQ.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-Dtw1sIeQ.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,8 +1,8 @@
|
|
|
1
|
-
import { cn as addonPagesCapability, dc as EventCategory, uc as errMsg, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { cn as addonPagesCapability, dc as EventCategory, uc as errMsg, wo as BaseAddon } from "../../dist-C3WXy3Ix.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";
|
|
5
|
-
import * as fs from "node:fs";
|
|
5
|
+
import * as fs$1 from "node:fs";
|
|
6
6
|
//#region src/builtins/addon-pages-aggregator/dedupe-pages.ts
|
|
7
7
|
/** Stable identity for an addon page, independent of which node reported it. */
|
|
8
8
|
function pageKey(info) {
|
|
@@ -211,11 +211,11 @@ var AddonPagesAggregatorAddon = class extends BaseAddon {
|
|
|
211
211
|
const bundlePath = this.resolveBundlePath(addonId, bundle);
|
|
212
212
|
if (bundlePath === null) return `/api/addon-pages/${addonId}/${bundle}?v=${Math.floor(Date.now())}`;
|
|
213
213
|
try {
|
|
214
|
-
const stat = fs.statSync(bundlePath);
|
|
214
|
+
const stat = fs$1.statSync(bundlePath);
|
|
215
215
|
const cacheKey = `${bundlePath}:${stat.size}:${stat.mtimeMs}`;
|
|
216
216
|
let v = this.bundleHashCache.get(cacheKey);
|
|
217
217
|
if (v === void 0) {
|
|
218
|
-
v = createHash("sha1").update(fs.readFileSync(bundlePath)).digest("hex").slice(0, 12);
|
|
218
|
+
v = createHash("sha1").update(fs$1.readFileSync(bundlePath)).digest("hex").slice(0, 12);
|
|
219
219
|
this.bundleHashCache.set(cacheKey, v);
|
|
220
220
|
}
|
|
221
221
|
return `/api/addon-pages/${addonId}/${bundle}?v=${v}`;
|
|
@@ -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-Dtw1sIeQ.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,8 +1,8 @@
|
|
|
1
|
-
import { dc as EventCategory, uc as errMsg, un as addonWidgetsCapability, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { dc as EventCategory, uc as errMsg, un as addonWidgetsCapability, wo as BaseAddon } from "../../dist-C3WXy3Ix.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";
|
|
5
|
-
import * as fs from "node:fs";
|
|
5
|
+
import * as fs$1 from "node:fs";
|
|
6
6
|
//#region src/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.ts
|
|
7
7
|
/**
|
|
8
8
|
* Addon Widgets Aggregator — hub-local builtin that owns the singleton
|
|
@@ -204,9 +204,9 @@ var AddonWidgetsAggregatorAddon = class extends BaseAddon {
|
|
|
204
204
|
if (entryPath === null) return String(Math.floor(Date.now()));
|
|
205
205
|
try {
|
|
206
206
|
const dir = path$1.dirname(entryPath);
|
|
207
|
-
const files = fs.readdirSync(dir).filter((f) => fs.statSync(path$1.join(dir, f)).isFile()).sort();
|
|
207
|
+
const files = fs$1.readdirSync(dir).filter((f) => fs$1.statSync(path$1.join(dir, f)).isFile()).sort();
|
|
208
208
|
const cacheKey = `${dir}#${files.map((f) => {
|
|
209
|
-
const s = fs.statSync(path$1.join(dir, f));
|
|
209
|
+
const s = fs$1.statSync(path$1.join(dir, f));
|
|
210
210
|
return `${f}:${s.size}:${s.mtimeMs}`;
|
|
211
211
|
}).join("|")}`;
|
|
212
212
|
const cached = this.bundleHashCache.get(cacheKey);
|
|
@@ -214,7 +214,7 @@ var AddonWidgetsAggregatorAddon = class extends BaseAddon {
|
|
|
214
214
|
const hash = createHash("sha1");
|
|
215
215
|
for (const f of files) {
|
|
216
216
|
hash.update(f);
|
|
217
|
-
hash.update(fs.readFileSync(path$1.join(dir, f)));
|
|
217
|
+
hash.update(fs$1.readFileSync(path$1.join(dir, f)));
|
|
218
218
|
}
|
|
219
219
|
const digest = hash.digest("hex").slice(0, 12);
|
|
220
220
|
this.bundleHashCache.set(cacheKey, digest);
|
|
@@ -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-Dtw1sIeQ.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 { Fr as isAlertEpisodeSeverity, Pr as isAlertEpisodeOpen, d as AlertSchema, dc as EventCategory, dn as alertEpisodeId, fn as alertEpisodePayload, ms as createEvent, pn as alertsCapability, uc as errMsg, wo as BaseAddon, ys as defineRecordKinds } from "../../dist-
|
|
1
|
+
import { Fr as isAlertEpisodeSeverity, Pr as isAlertEpisodeOpen, d as AlertSchema, dc as EventCategory, dn as alertEpisodeId, fn as alertEpisodePayload, ms as createEvent, pn as alertsCapability, uc as errMsg, wo as BaseAddon, ys as defineRecordKinds } from "../../dist-C3WXy3Ix.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-Dtw1sIeQ.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 { As as isEvent, Ri as ptzAutotrackCapability, dc as EventCategory, tt as FIRST_LEVEL_MACRO_CLASSES, uc as errMsg, vn as bareAddonId, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { As as isEvent, Ri as ptzAutotrackCapability, dc as EventCategory, tt as FIRST_LEVEL_MACRO_CLASSES, uc as errMsg, vn as bareAddonId, wo as BaseAddon } from "../../dist-C3WXy3Ix.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-Dtw1sIeQ.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-DuktQtye.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,10 +1,10 @@
|
|
|
1
|
-
import { Sa as storageOccupancyCapability, Vs as nodePin, _n as backupCapability, dc as EventCategory, nc as toNodeId, si as mayWriteToLocation, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { Sa as storageOccupancyCapability, Vs as nodePin, _n as backupCapability, dc as EventCategory, nc as toNodeId, si as mayWriteToLocation, wo as BaseAddon } from "../../dist-C3WXy3Ix.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-C0YDO-qd.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";
|
|
7
|
-
import * as fs from "node:fs";
|
|
7
|
+
import * as fs$1 from "node:fs";
|
|
8
8
|
//#region src/builtins/backup-orchestrator/backup-databases.ts
|
|
9
9
|
/** Stable id of the seeded weekly schedule. */
|
|
10
10
|
var WEEKLY_SCHEDULE_ID = "weekly-events-history";
|
|
@@ -1018,7 +1018,7 @@ async function downloadArchiveToCache(input) {
|
|
|
1018
1018
|
location: input.locationId,
|
|
1019
1019
|
relativePath: input.filename
|
|
1020
1020
|
});
|
|
1021
|
-
const writeStream = fs.createWriteStream(input.cachePath);
|
|
1021
|
+
const writeStream = fs$1.createWriteStream(input.cachePath);
|
|
1022
1022
|
let offset = 0;
|
|
1023
1023
|
try {
|
|
1024
1024
|
while (offset < sizeBytes) {
|
|
@@ -2502,7 +2502,7 @@ var BackupOrchestratorAddon = class extends BaseAddon {
|
|
|
2502
2502
|
});
|
|
2503
2503
|
try {
|
|
2504
2504
|
let offset = 0;
|
|
2505
|
-
const stream = fs.createReadStream(input.cachePath, { highWaterMark: UPLOAD_CHUNK_BYTES });
|
|
2505
|
+
const stream = fs$1.createReadStream(input.cachePath, { highWaterMark: UPLOAD_CHUNK_BYTES });
|
|
2506
2506
|
for await (const rawChunk of stream) {
|
|
2507
2507
|
if (input.signal?.aborted) {
|
|
2508
2508
|
stream.destroy();
|
|
@@ -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-Dtw1sIeQ.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 { En as calendarsCapability, T as CalendarPreferencesSchema, wo as BaseAddon, ys as defineRecordKinds } from "../../dist-
|
|
1
|
+
import { En as calendarsCapability, T as CalendarPreferencesSchema, wo as BaseAddon, ys as defineRecordKinds } from "../../dist-C3WXy3Ix.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-Dtw1sIeQ.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 { $a as buildFfmpegArgs, Dn as cameraGridLayoutCapability, Ds as hydrateSchema, K as DeclaredDevices, L as DERIVED_CAMERA_SILENCED_CAP_NAMES, St as MOTION_CLOSE_AFTER_MS, Zn as declarationOwnerNodeId, _a as snapshotCapability, dc as EventCategory, hi as motionCapability, lc as DeviceType, m as BaseDevice, ms as createEvent, sc as DeviceFeature, uc as errMsg, ui as memoizePinnedFfmpeg, vn as bareAddonId, wa as streamCatalogCapability, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { $a as buildFfmpegArgs, Dn as cameraGridLayoutCapability, Ds as hydrateSchema, K as DeclaredDevices, L as DERIVED_CAMERA_SILENCED_CAP_NAMES, St as MOTION_CLOSE_AFTER_MS, Zn as declarationOwnerNodeId, _a as snapshotCapability, dc as EventCategory, hi as motionCapability, lc as DeviceType, m as BaseDevice, ms as createEvent, sc as DeviceFeature, uc as errMsg, ui as memoizePinnedFfmpeg, vn as bareAddonId, wa as streamCatalogCapability, wo as BaseAddon } from "../../dist-C3WXy3Ix.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_capture_engine = require("../../capture-engine
|
|
6
|
+
const require_dist = require("../../dist-Dtw1sIeQ.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-cvZAN87H.js");
|
|
8
|
+
const require_capture_engine = require("../../capture-engine--FQ8NUHh.js");
|
|
9
9
|
const require_retention = require("../../retention-BNONb5X_.js");
|
|
10
10
|
let zod = require("zod");
|
|
11
11
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $i as resolveMutate, Ai as planComposition, Ar as groupTemplate, Cr as featureForwards, Da as switchCapability, Di as parseColorInput, Fn as colorCapability, Gn as coverCapability, Ia as valveCapability, Ja as HISTORY_FAST_MS, K as DeclaredDevices, Kr as kebabToCamel, Ln as composerCapability, Ms as isReadingQuantity, Nn as climateControlCapability, Qa as MINUTE_MS, Qn as declaredSeriesKind, Rn as compositionFieldKey, Sn as buildCapabilityLookup, So as toExpressionValue, Wa as COMPOSER_ADDON_ID, Xa as HOUR_MS, Ya as HISTORY_SLOW_MS, _o as openReset, ao as compositionSliceKey, b as COMPOSED_ITEM_FIXED_FIELDS, bn as brightnessCapability, bo as planStatisticTier, br as fanControlCapability, ci as mediaPlayerCapability, co as disarmRoseMemory, da as sharedActuatorFeatures, dc as EventCategory, di as methodRefusal, eo as cloneStatefulExpressionMemory, fa as sharedActuatorMethods, fo as historyRetentionFromSettings, ft as HvacModeSchema, go as nextLocalMidnight, hi as motionCapability, ho as isHistoryHelper, io as compositionItemFieldPath, kr as groupCommandsCapability, lc as DeviceType, li as mediaPlayerFeaturesOfRoles, lo as evaluateDerivative, m as BaseDevice, mo as isForwardInputRef, mr as evaluateCompositionField, ms as createEvent, n as ACTUATOR_METHODS, no as composedDeviceStableId, o as ALL_CAPABILITY_DEFINITIONS, oo as compositionSourceKey, pa as sharedColorModes, po as integrateReading, qa as DEFAULT_HISTORY_RETENTION, r as ACTUATOR_TEMPLATE_IDS, ra as runFanOut, ro as compositionFeatureEnabled, rt as FanDirectionSchema, so as createStatefulExpressionMemory, st as GroupCommandResultSchema, ti as lockControlCapability, to as composedDeviceRef, uc as errMsg, uo as evaluateStatistic, vo as openStatistic, vr as expressionContainsBuiltinCall, wo as BaseAddon, xo as statisticCadenceMs, xr as fanOutTargets, yo as planResetTier } from "../../dist-
|
|
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 { $i as resolveMutate, Ai as planComposition, Ar as groupTemplate, Cr as featureForwards, Da as switchCapability, Di as parseColorInput, Fn as colorCapability, Gn as coverCapability, Ia as valveCapability, Ja as HISTORY_FAST_MS, K as DeclaredDevices, Kr as kebabToCamel, Ln as composerCapability, Ms as isReadingQuantity, Nn as climateControlCapability, Qa as MINUTE_MS, Qn as declaredSeriesKind, Rn as compositionFieldKey, Sn as buildCapabilityLookup, So as toExpressionValue, Wa as COMPOSER_ADDON_ID, Xa as HOUR_MS, Ya as HISTORY_SLOW_MS, _o as openReset, ao as compositionSliceKey, b as COMPOSED_ITEM_FIXED_FIELDS, bn as brightnessCapability, bo as planStatisticTier, br as fanControlCapability, ci as mediaPlayerCapability, co as disarmRoseMemory, da as sharedActuatorFeatures, dc as EventCategory, di as methodRefusal, eo as cloneStatefulExpressionMemory, fa as sharedActuatorMethods, fo as historyRetentionFromSettings, ft as HvacModeSchema, go as nextLocalMidnight, hi as motionCapability, ho as isHistoryHelper, io as compositionItemFieldPath, kr as groupCommandsCapability, lc as DeviceType, li as mediaPlayerFeaturesOfRoles, lo as evaluateDerivative, m as BaseDevice, mo as isForwardInputRef, mr as evaluateCompositionField, ms as createEvent, n as ACTUATOR_METHODS, no as composedDeviceStableId, o as ALL_CAPABILITY_DEFINITIONS, oo as compositionSourceKey, pa as sharedColorModes, po as integrateReading, qa as DEFAULT_HISTORY_RETENTION, r as ACTUATOR_TEMPLATE_IDS, ra as runFanOut, ro as compositionFeatureEnabled, rt as FanDirectionSchema, so as createStatefulExpressionMemory, st as GroupCommandResultSchema, ti as lockControlCapability, to as composedDeviceRef, uc as errMsg, uo as evaluateStatistic, vo as openStatistic, vr as expressionContainsBuiltinCall, wo as BaseAddon, xo as statisticCadenceMs, xr as fanOutTargets, yo as planResetTier } from "../../dist-C3WXy3Ix.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-Bd09D5f4.mjs";
|
|
3
|
+
import { i as capSeriesKey } from "../../capture-engine-Cmx7DIzV.mjs";
|
|
4
4
|
import { i as DAY_MS, t as DEFAULT_RETENTION } from "../../retention-B9l9TnGE.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/builtins/composer/actuator-invoke.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-Dtw1sIeQ.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 { ri as logDestinationCapability, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { ri as logDestinationCapability, wo as BaseAddon } from "../../dist-C3WXy3Ix.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
3
3
|
//#region src/builtins/console-logging/console-destination.ts
|
|
4
4
|
var LEVEL_RANK = {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
3
|
+
const require_dist = require("../../dist-Dtw1sIeQ.js");
|
|
4
4
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
5
|
-
const require_composition_sources = require("../../composition-sources-
|
|
6
|
-
const require_capture_engine = require("../../capture-engine
|
|
5
|
+
const require_composition_sources = require("../../composition-sources-cvZAN87H.js");
|
|
6
|
+
const require_capture_engine = require("../../capture-engine--FQ8NUHh.js");
|
|
7
7
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
8
8
|
const require_prefix_walk = require("../../prefix-walk-Dv6MLZlM.js");
|
|
9
9
|
let zod = require("zod");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as EMPTY_REMOTE_CONFIG, $s as secretTreeFromSchema, $t as SwitchStatusSchema, Aa as timedRunLimitOf, Ai as planComposition, Ba as vocabActionIdFor, Bn as coreBlockAddonId, Bt as RemoteConfigSchema, C as CORE_BLOCK_ADDON_PREFIX, Ct as MediaPlayerStatusSchema, D as ConditionMirror, Ds as hydrateSchema, Fa as validateSchedulerInput, Fi as problemsBlockSave, Fs as isSecretMarker, Ft as REMOTE_MEDIA_COMMANDS, Ga as CompositionSchema, Gi as resolveActionVariables, Gt as SchedulerSchema, Hi as remoteCapability, Hn as coreBlockIdFromAddonId, I as DEFAULT_HOLD_OVERRIDE, In as compileScalarOverride, Ji as resolveCoreBlockEntry, Jn as customRole, K as DeclaredDevices, Ka as DAY_MS, Kr as kebabToCamel, Li as proposeRunningThreshold, Ls as isSecretRefOwnedBy, Mi as powerSourceCapability, Mn as checkTemplatePayload, Mr as internalActionId, Na as validateComposition, Ni as powerSourceLinkOfComposition, Nt as QuantityUnitError, O as ControlStatusSchema, Oa as templateCapability, Pn as collectWhenMirrorSources, Q as EMPTY_REMOTE_ASSUMED_STATE, Qr as localDateOf, S as CORE_BLOCKS_ADDON_ID, Sn as buildCapabilityLookup, Sr as fanPresetsCapability, Ua as zoneOnlySite, Ui as remoteLayoutComponentsCapability, Un as coreBlockSourceKind, Va as weekdayOfLocalDate, Vn as coreBlockComposition, Vr as isInternalActionId, Vt as RunningStateStatusSchema, Wi as replacedFieldKeys, Wn as coreBlocksCapability, Wt as SchedulerError, Xs as resolveSecretMarkers, Yi as resolveCoreBlockFiles, Z as EMPTY_AUTOMATION_STATE, Za as HelperMemberSchema, _i as normalizeActionUnits, an as actionSourceCapability, bi as normalizeStepTargets, c as ActionStepSchema, dc as EventCategory$1, do as helperMembers, en as TemplateKindSchema, et as FAN_CAPTURE_FIELDS, f as AutomationStateDocSchema, fo as historyRetentionFromSettings, fs as collectSecretMarkerRefs, gi as nextOccurrence, gs as defineAddonMigrations, ha as siteFor, hr as evaluateWhenTree, ia as runSteps, ic as transformSecretWrite, in as actionEffect, it as FanPresetSchema, ja as timedRunSeconds, k as CoreBlockSchema, ka as timedRunCapability, kn as capUnitResolver, kt as PowerSourceInfoSchema, l as ActionTargetResolver, lc as DeviceType$1, mn as appendTrace, mt as INTERNAL_ACTION_PREFIX, na as resolveStepArgs, ni as lockDoorLinkOfComposition, nr as describeComposableCaps, nt as FanControlStatusSchema, o as ALL_CAPABILITY_DEFINITIONS, oa as schedulersCapability, on as actionsCapability, oo as compositionSourceKey, p as BUILTIN_REMOTE_COMPONENTS, pt as IDLE_ACTION_STATUS, qn as customKeyOfRole, s as ActionError, sn as addonIdOfActionId, t as ACTION_TARGET_INVALIDATION_EVENTS, to as composedDeviceRef, u as ActionVariableSchema, uc as errMsg$1, vi as normalizeCapStep, wi as occurrenceOn, wo as BaseAddon, x as COMPOSER_RUNNER_ID, xn as buildActionSteps, yi as normalizeCoreBlockWrite, ys as defineRecordKinds, zn as compositionSourceRefs, zt as RemoteAssumedStateSchema } from "../../dist-
|
|
1
|
+
import { $ as EMPTY_REMOTE_CONFIG, $s as secretTreeFromSchema, $t as SwitchStatusSchema, Aa as timedRunLimitOf, Ai as planComposition, Ba as vocabActionIdFor, Bn as coreBlockAddonId, Bt as RemoteConfigSchema, C as CORE_BLOCK_ADDON_PREFIX, Ct as MediaPlayerStatusSchema, D as ConditionMirror, Ds as hydrateSchema, Fa as validateSchedulerInput, Fi as problemsBlockSave, Fs as isSecretMarker, Ft as REMOTE_MEDIA_COMMANDS, Ga as CompositionSchema, Gi as resolveActionVariables, Gt as SchedulerSchema, Hi as remoteCapability, Hn as coreBlockIdFromAddonId, I as DEFAULT_HOLD_OVERRIDE, In as compileScalarOverride, Ji as resolveCoreBlockEntry, Jn as customRole, K as DeclaredDevices, Ka as DAY_MS, Kr as kebabToCamel, Li as proposeRunningThreshold, Ls as isSecretRefOwnedBy, Mi as powerSourceCapability, Mn as checkTemplatePayload, Mr as internalActionId, Na as validateComposition, Ni as powerSourceLinkOfComposition, Nt as QuantityUnitError, O as ControlStatusSchema, Oa as templateCapability, Pn as collectWhenMirrorSources, Q as EMPTY_REMOTE_ASSUMED_STATE, Qr as localDateOf, S as CORE_BLOCKS_ADDON_ID, Sn as buildCapabilityLookup, Sr as fanPresetsCapability, Ua as zoneOnlySite, Ui as remoteLayoutComponentsCapability, Un as coreBlockSourceKind, Va as weekdayOfLocalDate, Vn as coreBlockComposition, Vr as isInternalActionId, Vt as RunningStateStatusSchema, Wi as replacedFieldKeys, Wn as coreBlocksCapability, Wt as SchedulerError, Xs as resolveSecretMarkers, Yi as resolveCoreBlockFiles, Z as EMPTY_AUTOMATION_STATE, Za as HelperMemberSchema, _i as normalizeActionUnits, an as actionSourceCapability, bi as normalizeStepTargets, c as ActionStepSchema, dc as EventCategory$1, do as helperMembers, en as TemplateKindSchema, et as FAN_CAPTURE_FIELDS, f as AutomationStateDocSchema, fo as historyRetentionFromSettings, fs as collectSecretMarkerRefs, gi as nextOccurrence, gs as defineAddonMigrations, ha as siteFor, hr as evaluateWhenTree, ia as runSteps, ic as transformSecretWrite, in as actionEffect, it as FanPresetSchema, ja as timedRunSeconds, k as CoreBlockSchema, ka as timedRunCapability, kn as capUnitResolver, kt as PowerSourceInfoSchema, l as ActionTargetResolver, lc as DeviceType$1, mn as appendTrace, mt as INTERNAL_ACTION_PREFIX, na as resolveStepArgs, ni as lockDoorLinkOfComposition, nr as describeComposableCaps, nt as FanControlStatusSchema, o as ALL_CAPABILITY_DEFINITIONS, oa as schedulersCapability, on as actionsCapability, oo as compositionSourceKey, p as BUILTIN_REMOTE_COMPONENTS, pt as IDLE_ACTION_STATUS, qn as customKeyOfRole, s as ActionError, sn as addonIdOfActionId, t as ACTION_TARGET_INVALIDATION_EVENTS, to as composedDeviceRef, u as ActionVariableSchema, uc as errMsg$1, vi as normalizeCapStep, wi as occurrenceOn, wo as BaseAddon, x as COMPOSER_RUNNER_ID, xn as buildActionSteps, yi as normalizeCoreBlockWrite, ys as defineRecordKinds, zn as compositionSourceRefs, zt as RemoteAssumedStateSchema } from "../../dist-C3WXy3Ix.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
|
-
import { i as parseDeviceStateChanged, t as describeCompositionSources } from "../../composition-sources-
|
|
4
|
-
import { i as capSeriesKey } from "../../capture-engine-
|
|
3
|
+
import { i as parseDeviceStateChanged, t as describeCompositionSources } from "../../composition-sources-Bd09D5f4.mjs";
|
|
4
|
+
import { i as capSeriesKey } from "../../capture-engine-Cmx7DIzV.mjs";
|
|
5
5
|
import { t as prefixRange } from "../../prefix-range-Dl0znowN.mjs";
|
|
6
6
|
import { n as unwrapStoredValue, t as loadPrefixed } from "../../prefix-walk-DAOBSyH1.mjs";
|
|
7
7
|
import { createRequire } from "node:module";
|
|
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_capture_engine = require("../../capture-engine
|
|
6
|
+
const require_dist = require("../../dist-Dtw1sIeQ.js");
|
|
7
|
+
const require_capture_engine = require("../../capture-engine--FQ8NUHh.js");
|
|
8
8
|
const require_retention = require("../../retention-BNONb5X_.js");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
10
10
|
//#region src/builtins/device-history/capture/point-writer.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Co as wattMillisecondsToKwh, Es as historyUnitFor, Ms as isReadingQuantity, ar as deviceHistoryCapability, cr as deviceRunsCapability, ct as HISTORY_CATALOG, dc as EventCategory, hn as armRemovalReconcile, lc as DeviceType, lt as HISTORY_ITEM_CATALOG, q as DeviceRunSchema, sr as deviceRemovalHookCapability, wo as BaseAddon, xs as emitReadiness, ys as defineRecordKinds, z as DEVICE_HISTORY_ENERGY_KEY } from "../../dist-
|
|
2
|
-
import { a as catalogMetrics, c as DeviceDirectory, d as identityOf, f as subjectIdOf, i as capSeriesKey, l as isRealDeviceType, n as CaptureEngine, o as readPath, r as capItemSeriesKey, s as readUnit, t as CAP_KEY_PREFIX, u as SeriesRegistry } from "../../capture-engine-
|
|
1
|
+
import { Co as wattMillisecondsToKwh, Es as historyUnitFor, Ms as isReadingQuantity, ar as deviceHistoryCapability, cr as deviceRunsCapability, ct as HISTORY_CATALOG, dc as EventCategory, hn as armRemovalReconcile, lc as DeviceType, lt as HISTORY_ITEM_CATALOG, q as DeviceRunSchema, sr as deviceRemovalHookCapability, wo as BaseAddon, xs as emitReadiness, ys as defineRecordKinds, z as DEVICE_HISTORY_ENERGY_KEY } from "../../dist-C3WXy3Ix.mjs";
|
|
2
|
+
import { a as catalogMetrics, c as DeviceDirectory, d as identityOf, f as subjectIdOf, i as capSeriesKey, l as isRealDeviceType, n as CaptureEngine, o as readPath, r as capItemSeriesKey, s as readUnit, t as CAP_KEY_PREFIX, u as SeriesRegistry } from "../../capture-engine-Cmx7DIzV.mjs";
|
|
3
3
|
import { a as FIVE_MINUTES_MS, c as bucketEndOf, i as DAY_MS, l as bucketStartOf, n as RetentionJob, o as HOUR_MS, r as DepartureTracker, s as ROLLUP_GRACE_MS, t as DEFAULT_RETENTION, u as floorTo } from "../../retention-B9l9TnGE.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
//#region src/builtins/device-history/capture/point-writer.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-Dtw1sIeQ.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
9
9
|
const require_prefix_walk = require("../../prefix-walk-Dv6MLZlM.js");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dr as formatMinutes, F as DAY_NAMES, Fs as isSecretMarker, Is as isSecretMarkerLike, J as DeviceStatusSchema, Kn as createDeviceExtensionProvider, Ns as isSecretClear, Oi as parseStreamParamsFormPatch, On as canonicalIconKey, Qo as SECRET_CLEAR, Qs as secretTreeFromPaths, Tn as buildStreamParamsConfigSchema, Ut as STREAM_PROFILE_META, X as DiscoveryProposalBodySchema, Xs as resolveSecretMarkers, Y as DeviceTombstoneSchema, Yr as legacyAutoLinkIds, _r as expandContainer, aa as runtimeStatePolicyFor, ac as userError, at as FieldClaimModeSchema, cc as DeviceRole, dc as EventCategory, ei as locationIconKey, er as defineExtensionSlotProvider, fr as enumerateItemArrayFields, g as CAMERA_SWITCH_ORDER, ga as siteZoneKey, ic as transformSecretWrite, ir as deviceExtensionCapability, js as isKeychainStoredField, ks as isDeviceConfigCap, lc as DeviceType, lr as deviceStateCapability, o as ALL_CAPABILITY_DEFINITIONS, or as deviceManagerCapability, ot as FieldClaimSchema, pr as enumerateSchemaFields, ps as collectZodSecretPaths, rc as toSecretFieldView, rs as WELL_KNOWN_TAB_MAP, sc as DeviceFeature, tc as sleep$1, uc as errMsg, ur as deviceStatusCapability, v as CAP_NAMES_WITH_STATUS, wo as BaseAddon, xi as normalizeUnit, xt as MINUTES_PER_DAY, ys as defineRecordKinds } from "../../dist-
|
|
1
|
+
import { Dr as formatMinutes, F as DAY_NAMES, Fs as isSecretMarker, Is as isSecretMarkerLike, J as DeviceStatusSchema, Kn as createDeviceExtensionProvider, Ns as isSecretClear, Oi as parseStreamParamsFormPatch, On as canonicalIconKey, Qo as SECRET_CLEAR, Qs as secretTreeFromPaths, Tn as buildStreamParamsConfigSchema, Ut as STREAM_PROFILE_META, X as DiscoveryProposalBodySchema, Xs as resolveSecretMarkers, Y as DeviceTombstoneSchema, Yr as legacyAutoLinkIds, _r as expandContainer, aa as runtimeStatePolicyFor, ac as userError, at as FieldClaimModeSchema, cc as DeviceRole, dc as EventCategory, ei as locationIconKey, er as defineExtensionSlotProvider, fr as enumerateItemArrayFields, g as CAMERA_SWITCH_ORDER, ga as siteZoneKey, ic as transformSecretWrite, ir as deviceExtensionCapability, js as isKeychainStoredField, ks as isDeviceConfigCap, lc as DeviceType, lr as deviceStateCapability, o as ALL_CAPABILITY_DEFINITIONS, or as deviceManagerCapability, ot as FieldClaimSchema, pr as enumerateSchemaFields, ps as collectZodSecretPaths, rc as toSecretFieldView, rs as WELL_KNOWN_TAB_MAP, sc as DeviceFeature, tc as sleep$1, uc as errMsg, ur as deviceStatusCapability, v as CAP_NAMES_WITH_STATUS, wo as BaseAddon, xi as normalizeUnit, xt as MINUTES_PER_DAY, ys as defineRecordKinds } from "../../dist-C3WXy3Ix.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import { t as prefixRange } from "../../prefix-range-Dl0znowN.mjs";
|
|
4
4
|
import { t as loadPrefixed } from "../../prefix-walk-DAOBSyH1.mjs";
|
|
@@ -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-Dtw1sIeQ.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
//#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
|
|
9
9
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ri as logDestinationCapability, wo as BaseAddon } from "../../dist-
|
|
1
|
+
import { ri as logDestinationCapability, wo as BaseAddon } from "../../dist-C3WXy3Ix.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-DkYZ4LXp.mjs";
|
|
3
3
|
//#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
|
|
4
4
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
@@ -3,10 +3,11 @@ 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-
|
|
7
|
-
const require_device_ca = require("../../device-ca-
|
|
6
|
+
const require_dist = require("../../dist-Dtw1sIeQ.js");
|
|
7
|
+
const require_device_ca = require("../../device-ca-BmeH6Y9E.js");
|
|
8
8
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
9
|
-
const
|
|
9
|
+
const require_legacy_integration_rows_door = require("../../legacy-integration-rows-door-B8_XCqUX.js");
|
|
10
|
+
const require_constants = require("../../constants-gM9xHjyj.js");
|
|
10
11
|
const require_platform_key_source = require("../../platform-key-source-Di7HrlGR.js");
|
|
11
12
|
let node_crypto = require("node:crypto");
|
|
12
13
|
let _camstack_types_node = require("@camstack/types/node");
|
|
@@ -1885,13 +1886,19 @@ async function blobsFor(door, owner, scope) {
|
|
|
1885
1886
|
...connection
|
|
1886
1887
|
];
|
|
1887
1888
|
}
|
|
1888
|
-
case "integration":
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1889
|
+
case "integration": try {
|
|
1890
|
+
return (await door.query({
|
|
1891
|
+
collection: require_legacy_integration_rows_door.LEGACY_INTEGRATION_ROWS_TABLE,
|
|
1892
|
+
filter: {
|
|
1893
|
+
where: { integration_id: scope.integrationId },
|
|
1894
|
+
limit: 2e3
|
|
1895
|
+
}
|
|
1896
|
+
})).map((r) => r.data);
|
|
1897
|
+
} catch (err) {
|
|
1898
|
+
const message = err instanceof Error ? err.message : "";
|
|
1899
|
+
if (message.includes("no such table") || message.includes("not found")) return [];
|
|
1900
|
+
return null;
|
|
1901
|
+
}
|
|
1895
1902
|
case "row": return [await door.get({
|
|
1896
1903
|
collection: scope.collection,
|
|
1897
1904
|
key: scope.rowId
|