@camstack/server 1.2.762 → 1.2.764
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 +13 -0
- package/dist/api/core/cap-providers.js +21 -2
- package/dist/api/trpc/generated-cap-routers.js +10 -0
- package/dist/core/addon/integration-visibility.js +1 -0
- package/package.json +12 -19
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/{agent-https-UksJdbes.mjs → agent-https-CJmfFcZE.mjs} +1 -1
- package/system/dist/{agent-https-BHpDnJr0.js → agent-https-DH_lJHh9.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.d.ts +7 -0
- package/system/dist/builtins/alerts/alerts.addon.js +50 -3
- package/system/dist/builtins/alerts/alerts.addon.mjs +50 -3
- 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 +3 -3
- package/system/dist/builtins/keychain/index.mjs +3 -3
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +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-rows-ports.d.ts +14 -0
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +7 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +7 -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 +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-Btq9LseJ.mjs → capture-engine-CQUJKdm-.mjs} +1 -1
- package/system/dist/{capture-engine-DgcmHuIi.js → capture-engine-IOE87CGh.js} +1 -1
- package/system/dist/{composition-sources-xyPI-9ja.mjs → composition-sources-C4FTY6tR.mjs} +1 -1
- package/system/dist/{composition-sources-DrGLoV8D.js → composition-sources-d0b3s931.js} +1 -1
- package/system/dist/{constants-B8q9KsGq.mjs → constants-BbSsUU8s.mjs} +1 -1
- package/system/dist/{constants-BiE3GU1C.js → constants-Bf3S16sn.js} +1 -1
- package/system/dist/{coral-accelerators-DBlgWB8k.mjs → coral-accelerators-BW3OcrLD.mjs} +6 -6
- package/system/dist/{custom-action-registry-oHl1xltx.mjs → custom-action-registry-BIJZBObd.mjs} +37 -37
- package/system/dist/{device-ca-Bel2vDyJ.js → device-ca-BTCCvC-f.js} +1 -1
- package/system/dist/{device-ca-D5U9i2AO.mjs → device-ca-DtVxvkgh.mjs} +1 -1
- package/system/dist/{dist-Dd_vXorK.mjs → dist-DRMDBvu-.mjs} +36 -5
- package/system/dist/{dist-B6-AUY2T.js → dist-DcyjtBjf.js} +36 -5
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-Dz9w_pd0.mjs → hub-mdns-ciao-Cljo9BPS.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-DV7bwoub.js → hub-mdns-ciao-DTY0nvBg.js} +2 -2
- package/system/dist/index.d.ts +1 -0
- package/system/dist/index.js +31 -7
- package/system/dist/index.mjs +242 -219
- package/system/dist/{restore-archive-BcdcInFR.mjs → restore-archive-5dvmYOeA.mjs} +94 -94
- package/system/dist/{restore-archive-BcstsRhG.js → restore-archive-94Ko0oT3.js} +1 -1
- package/system/dist/{wal-maintenance-Ctp8Q-y7.mjs → wal-maintenance-C1L9D5dT.mjs} +0 -0
- package/system/dist/{wal-maintenance-CzjpuF7n.js → wal-maintenance-uH7RcUuL.js} +0 -0
- package/system/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [1.2.764] - 2026-11-04
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- The hub can clear one integration's legacy settings rows and their keychain values for the addon that migrated them
|
|
15
|
+
- Clearing an integration's legacy rows deletes its keychain values first, so a failed delete is retried
|
|
16
|
+
|
|
17
|
+
## [1.2.763] - 2026-11-04
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- The migration ledger no longer shows an applied migration of a not-yet-loaded addon as skipped-newer, and no longer raises a false 'Database is newer' alert; the 'Runners degraded' alert resolves itself once the failed runners are running again
|
|
22
|
+
|
|
10
23
|
## [1.2.762] - 2026-11-04
|
|
11
24
|
|
|
12
25
|
### Changed
|
|
@@ -967,8 +967,8 @@ exports.INTEGRATION_CAP_MARKERS = new Set(['device-provider', 'device-adoption']
|
|
|
967
967
|
/**
|
|
968
968
|
* An entry that brings only service connections (`integrationRole: 'services'`, or derived
|
|
969
969
|
* from `integration-instances`) is configured from its function page (D996): it is neither
|
|
970
|
-
* an integration type nor a row of the Integrations list.
|
|
971
|
-
* is listed for its devices. Decided from the manifest, so a not-yet-registered provider does
|
|
970
|
+
* an integration type nor a row of the Integrations list. An entry with devices AND
|
|
971
|
+
* `integration-instances` declares its role (`devices` or `both`) and is listed for its devices. Decided from the manifest, so a not-yet-registered provider does
|
|
972
972
|
* not flash a row in. A row it already has stays in the registry and reachable by id.
|
|
973
973
|
*/
|
|
974
974
|
async function hidesFromIntegrations(ar, addonId) {
|
|
@@ -1469,6 +1469,25 @@ function buildIntegrationsProvider(ar, eb, loggingService, capabilityRegistry) {
|
|
|
1469
1469
|
});
|
|
1470
1470
|
return { success: true };
|
|
1471
1471
|
},
|
|
1472
|
+
clearSettings: async (input) => {
|
|
1473
|
+
const reg = requireIntegrationRegistry(ar);
|
|
1474
|
+
const integration = await reg.getIntegration(input.id);
|
|
1475
|
+
if (!integration)
|
|
1476
|
+
throw new Error(`Integration "${input.id}" not found`);
|
|
1477
|
+
// Only the integration's own addon clears its rows, after it moved them (D1007).
|
|
1478
|
+
const caller = Reflect.get(input, 'callerAddonId');
|
|
1479
|
+
const isOwner = typeof caller === 'string' &&
|
|
1480
|
+
(caller === integration.addonId || ar.runnerIdFor(integration.addonId) === caller);
|
|
1481
|
+
if (!isOwner) {
|
|
1482
|
+
throw new Error(`Integration "${input.id}" settings can be cleared only by its own addon (${integration.addonId})`);
|
|
1483
|
+
}
|
|
1484
|
+
const cleared = await (0, system_1.clearIntegrationRows)({ registry: reg, secrets: ownerSecrets(ar, integration.addonId) }, input.id);
|
|
1485
|
+
logger.info('legacy settings cleared', {
|
|
1486
|
+
tags: { integrationId: input.id, addonId: integration.addonId },
|
|
1487
|
+
meta: { phase: 'clearSettings', ...cleared },
|
|
1488
|
+
});
|
|
1489
|
+
return cleared;
|
|
1490
|
+
},
|
|
1472
1491
|
getAvailableTypes: async () => {
|
|
1473
1492
|
const reg = requireIntegrationRegistry(ar);
|
|
1474
1493
|
const addons = ar.listAddons();
|
|
@@ -5596,6 +5596,16 @@ function createCapRouter_integrations(getProvider, createRemoteProxy) {
|
|
|
5596
5596
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5597
5597
|
return p.setSettings(methodInput);
|
|
5598
5598
|
}),
|
|
5599
|
+
clearSettings: trpc_middleware_js_1.adminProcedure
|
|
5600
|
+
.input(types_72.integrationsCapability.methods.clearSettings.input.loose())
|
|
5601
|
+
.output(types_72.integrationsCapability.methods.clearSettings.output)
|
|
5602
|
+
.mutation(async ({ input, ctx }) => {
|
|
5603
|
+
const parsedInput = ctx.req !== undefined ? (0, types_3.withoutCallerStamp)(input) : input;
|
|
5604
|
+
const { nodeId, ...methodInput } = parsedInput;
|
|
5605
|
+
const p = resolveProvider('integrations', nodeId, () => getProvider(ctx), createRemoteProxy);
|
|
5606
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
|
|
5607
|
+
return p.clearSettings(methodInput);
|
|
5608
|
+
}),
|
|
5599
5609
|
getAvailableTypes: trpc_middleware_js_1.adminProcedure
|
|
5600
5610
|
.input(zod_1.z.object({ nodeId: zod_1.z.string().optional() }).optional())
|
|
5601
5611
|
.output(types_72.integrationsCapability.methods.getAvailableTypes.output)
|
|
@@ -95,5 +95,6 @@ function createFilteredIntegrationRegistry(deps) {
|
|
|
95
95
|
getIntegrationSettings: (id) => raw.getIntegrationSettings(id),
|
|
96
96
|
setIntegrationSetting: (id, key, value) => raw.setIntegrationSetting(id, key, value),
|
|
97
97
|
setIntegrationSettings: (id, settings) => raw.setIntegrationSettings(id, settings),
|
|
98
|
+
clearIntegrationSettings: (id) => raw.clearIntegrationSettings(id),
|
|
98
99
|
};
|
|
99
100
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.764",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,20 +66,13 @@
|
|
|
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-
|
|
73
|
-
"@camstack/addon-
|
|
74
|
-
"@camstack/addon-
|
|
75
|
-
"@camstack/addon-
|
|
76
|
-
"@camstack/addon-import-alexa": ">=0.2.184",
|
|
77
|
-
"@camstack/addon-matter-broker": ">=0.2.156",
|
|
78
|
-
"@camstack/addon-mqtt-broker": ">=1.2.150",
|
|
79
|
-
"@camstack/addon-provider-homeassistant": ">=1.2.656",
|
|
80
|
-
"@camstack/addon-smtp-nodemailer": ">=1.2.147",
|
|
81
|
-
"@camstack/addon-static-turn": ">=1.2.144",
|
|
82
|
-
"@camstack/addon-training": ">=0.1.130"
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.581",
|
|
70
|
+
"@camstack/addon-agent-ui": ">=1.2.324",
|
|
71
|
+
"@camstack/addon-provider-amcrest": ">=0.2.165",
|
|
72
|
+
"@camstack/addon-provider-gree": ">=0.2.149",
|
|
73
|
+
"@camstack/addon-provider-hikvision": ">=1.2.181",
|
|
74
|
+
"@camstack/addon-provider-reolink": ">=1.2.222",
|
|
75
|
+
"@camstack/addon-provider-rtsp": ">=1.2.150"
|
|
83
76
|
},
|
|
84
77
|
"wrapper": {
|
|
85
78
|
"desktop": ">=0.0.1",
|
|
@@ -88,8 +81,8 @@
|
|
|
88
81
|
}
|
|
89
82
|
},
|
|
90
83
|
"dependencies": {
|
|
91
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
92
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
84
|
+
"@camstack/addon-admin-ui": "1.2.581",
|
|
85
|
+
"@camstack/addon-agent-ui": "1.2.324",
|
|
93
86
|
"@camstack/addon-auth": "1.2.175",
|
|
94
87
|
"@camstack/addon-benchmark": "1.2.311",
|
|
95
88
|
"@camstack/addon-decoder-nodeav": "1.2.145",
|
|
@@ -99,8 +92,8 @@
|
|
|
99
92
|
"@camstack/addon-post-analysis": "1.2.667",
|
|
100
93
|
"@camstack/develop": "0.1.44",
|
|
101
94
|
"@camstack/sdk": "1.2.155",
|
|
102
|
-
"@camstack/types": "1.2.
|
|
103
|
-
"@camstack/ui-library": "1.2.
|
|
95
|
+
"@camstack/types": "1.2.497",
|
|
96
|
+
"@camstack/ui-library": "1.2.382",
|
|
104
97
|
"@fastify/compress": "^9.0.0",
|
|
105
98
|
"@fastify/cookie": "^11.0.2",
|
|
106
99
|
"@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-BIJZBObd.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-DRMDBvu-.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-DcyjtBjf.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-DcyjtBjf.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-DRMDBvu-.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
|
|
5
|
+
import * as fs 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
|
|
214
|
+
const stat = fs.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
|
|
218
|
+
v = createHash("sha1").update(fs.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-DcyjtBjf.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-DRMDBvu-.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
|
|
5
|
+
import * as fs 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
|
|
207
|
+
const files = fs.readdirSync(dir).filter((f) => fs.statSync(path$1.join(dir, f)).isFile()).sort();
|
|
208
208
|
const cacheKey = `${dir}#${files.map((f) => {
|
|
209
|
-
const s = fs
|
|
209
|
+
const s = fs.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
|
|
217
|
+
hash.update(fs.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);
|
|
@@ -41,6 +41,13 @@ export declare class AlertCenterAddon extends BaseAddon<AlertCenterConfig> {
|
|
|
41
41
|
* `refused` record whose notification was already sent.
|
|
42
42
|
*/
|
|
43
43
|
private handleRunnerStateChanged;
|
|
44
|
+
/**
|
|
45
|
+
* The boot check runs once, so nothing else would ever tell it the runners
|
|
46
|
+
* recovered. The alert's own persisted findings are the in-memory state (D49,
|
|
47
|
+
* not a one-shot event): a runner reaching `running` leaves them, and the
|
|
48
|
+
* alert resolves when none is left.
|
|
49
|
+
*/
|
|
50
|
+
private settleRunnerCheck;
|
|
44
51
|
/** The node's one-shot runner boot check: one alert, dismissed when the node is clean. */
|
|
45
52
|
private handleRunnerCheck;
|
|
46
53
|
private readAlertRaw;
|
|
@@ -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-DcyjtBjf.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
|
/**
|
|
@@ -428,7 +428,7 @@ var MIGRATION_ALERT_PREFIX = "migration:";
|
|
|
428
428
|
function faulted(entry) {
|
|
429
429
|
if (entry.status === "failed") return entry.meta?.onFailure === "tolerate" ? "warning" : "critical";
|
|
430
430
|
if (entry.status === "blocked" && entry.reason === "snapshot-refused") return "critical";
|
|
431
|
-
if (entry.status === "skipped-newer") return "warning";
|
|
431
|
+
if (entry.status === "skipped-newer") return entry.ownerNotLoaded === true ? null : "warning";
|
|
432
432
|
return null;
|
|
433
433
|
}
|
|
434
434
|
function messageOf(entry) {
|
|
@@ -966,10 +966,57 @@ var AlertCenterAddon = class extends require_dist.BaseAddon {
|
|
|
966
966
|
if (event.data["state"] !== "running") return;
|
|
967
967
|
const runnerId = typeof event.data["runnerId"] === "string" ? event.data["runnerId"] : null;
|
|
968
968
|
if (runnerId === null) return;
|
|
969
|
-
const
|
|
969
|
+
const nodeId = typeof event.data["nodeId"] === "string" ? event.data["nodeId"] : "hub";
|
|
970
|
+
await this.settleRunnerCheck(nodeId, runnerId);
|
|
971
|
+
const alertId = runnerAlertId(nodeId, runnerId);
|
|
970
972
|
if (await this.readRunnerRecord(alertId) === null) return;
|
|
971
973
|
await this.dismiss(alertId);
|
|
972
974
|
}
|
|
975
|
+
/**
|
|
976
|
+
* The boot check runs once, so nothing else would ever tell it the runners
|
|
977
|
+
* recovered. The alert's own persisted findings are the in-memory state (D49,
|
|
978
|
+
* not a one-shot event): a runner reaching `running` leaves them, and the
|
|
979
|
+
* alert resolves when none is left.
|
|
980
|
+
*/
|
|
981
|
+
async settleRunnerCheck(nodeId, runnerId) {
|
|
982
|
+
const alertId = `runner-check:${nodeId}`;
|
|
983
|
+
const store = this.alertStore;
|
|
984
|
+
if (store === null) return;
|
|
985
|
+
const raw = await store.getData(alertId);
|
|
986
|
+
if (raw === null) return;
|
|
987
|
+
const parsed = require_dist.AlertSchema.safeParse({
|
|
988
|
+
id: alertId,
|
|
989
|
+
...raw
|
|
990
|
+
});
|
|
991
|
+
if (!parsed.success || parsed.data.status !== "active") return;
|
|
992
|
+
const meta = parsed.data.metadata ?? {};
|
|
993
|
+
const idOf = (v) => {
|
|
994
|
+
if (typeof v === "string") return v;
|
|
995
|
+
if (typeof v === "object" && v !== null && "runnerId" in v && typeof v.runnerId === "string") return v.runnerId;
|
|
996
|
+
return null;
|
|
997
|
+
};
|
|
998
|
+
const idsOf = (value) => Array.isArray(value) ? value.flatMap((v) => idOf(v) ?? []) : [];
|
|
999
|
+
const pending = [
|
|
1000
|
+
...idsOf(meta["failed"]),
|
|
1001
|
+
...idsOf(meta["refused"]),
|
|
1002
|
+
...idsOf(meta["missing"])
|
|
1003
|
+
];
|
|
1004
|
+
if (!pending.includes(runnerId)) return;
|
|
1005
|
+
if (pending.every((id) => id === runnerId)) await this.dismiss(alertId);
|
|
1006
|
+
else {
|
|
1007
|
+
const without = (value) => Array.isArray(value) ? value.filter((v) => idOf(v) !== runnerId) : [];
|
|
1008
|
+
await this.persistAlert({
|
|
1009
|
+
...parsed.data,
|
|
1010
|
+
updatedAt: Date.now(),
|
|
1011
|
+
metadata: {
|
|
1012
|
+
...meta,
|
|
1013
|
+
failed: without(meta["failed"]),
|
|
1014
|
+
refused: without(meta["refused"]),
|
|
1015
|
+
missing: without(meta["missing"])
|
|
1016
|
+
}
|
|
1017
|
+
});
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
973
1020
|
/** The node's one-shot runner boot check: one alert, dismissed when the node is clean. */
|
|
974
1021
|
async handleRunnerCheck(event) {
|
|
975
1022
|
const nodeId = typeof event.data["nodeId"] === "string" ? event.data["nodeId"] : "hub";
|
|
@@ -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-DRMDBvu-.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
|
/**
|
|
@@ -422,7 +422,7 @@ var MIGRATION_ALERT_PREFIX = "migration:";
|
|
|
422
422
|
function faulted(entry) {
|
|
423
423
|
if (entry.status === "failed") return entry.meta?.onFailure === "tolerate" ? "warning" : "critical";
|
|
424
424
|
if (entry.status === "blocked" && entry.reason === "snapshot-refused") return "critical";
|
|
425
|
-
if (entry.status === "skipped-newer") return "warning";
|
|
425
|
+
if (entry.status === "skipped-newer") return entry.ownerNotLoaded === true ? null : "warning";
|
|
426
426
|
return null;
|
|
427
427
|
}
|
|
428
428
|
function messageOf(entry) {
|
|
@@ -960,10 +960,57 @@ var AlertCenterAddon = class extends BaseAddon {
|
|
|
960
960
|
if (event.data["state"] !== "running") return;
|
|
961
961
|
const runnerId = typeof event.data["runnerId"] === "string" ? event.data["runnerId"] : null;
|
|
962
962
|
if (runnerId === null) return;
|
|
963
|
-
const
|
|
963
|
+
const nodeId = typeof event.data["nodeId"] === "string" ? event.data["nodeId"] : "hub";
|
|
964
|
+
await this.settleRunnerCheck(nodeId, runnerId);
|
|
965
|
+
const alertId = runnerAlertId(nodeId, runnerId);
|
|
964
966
|
if (await this.readRunnerRecord(alertId) === null) return;
|
|
965
967
|
await this.dismiss(alertId);
|
|
966
968
|
}
|
|
969
|
+
/**
|
|
970
|
+
* The boot check runs once, so nothing else would ever tell it the runners
|
|
971
|
+
* recovered. The alert's own persisted findings are the in-memory state (D49,
|
|
972
|
+
* not a one-shot event): a runner reaching `running` leaves them, and the
|
|
973
|
+
* alert resolves when none is left.
|
|
974
|
+
*/
|
|
975
|
+
async settleRunnerCheck(nodeId, runnerId) {
|
|
976
|
+
const alertId = `runner-check:${nodeId}`;
|
|
977
|
+
const store = this.alertStore;
|
|
978
|
+
if (store === null) return;
|
|
979
|
+
const raw = await store.getData(alertId);
|
|
980
|
+
if (raw === null) return;
|
|
981
|
+
const parsed = AlertSchema.safeParse({
|
|
982
|
+
id: alertId,
|
|
983
|
+
...raw
|
|
984
|
+
});
|
|
985
|
+
if (!parsed.success || parsed.data.status !== "active") return;
|
|
986
|
+
const meta = parsed.data.metadata ?? {};
|
|
987
|
+
const idOf = (v) => {
|
|
988
|
+
if (typeof v === "string") return v;
|
|
989
|
+
if (typeof v === "object" && v !== null && "runnerId" in v && typeof v.runnerId === "string") return v.runnerId;
|
|
990
|
+
return null;
|
|
991
|
+
};
|
|
992
|
+
const idsOf = (value) => Array.isArray(value) ? value.flatMap((v) => idOf(v) ?? []) : [];
|
|
993
|
+
const pending = [
|
|
994
|
+
...idsOf(meta["failed"]),
|
|
995
|
+
...idsOf(meta["refused"]),
|
|
996
|
+
...idsOf(meta["missing"])
|
|
997
|
+
];
|
|
998
|
+
if (!pending.includes(runnerId)) return;
|
|
999
|
+
if (pending.every((id) => id === runnerId)) await this.dismiss(alertId);
|
|
1000
|
+
else {
|
|
1001
|
+
const without = (value) => Array.isArray(value) ? value.filter((v) => idOf(v) !== runnerId) : [];
|
|
1002
|
+
await this.persistAlert({
|
|
1003
|
+
...parsed.data,
|
|
1004
|
+
updatedAt: Date.now(),
|
|
1005
|
+
metadata: {
|
|
1006
|
+
...meta,
|
|
1007
|
+
failed: without(meta["failed"]),
|
|
1008
|
+
refused: without(meta["refused"]),
|
|
1009
|
+
missing: without(meta["missing"])
|
|
1010
|
+
}
|
|
1011
|
+
});
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
967
1014
|
/** The node's one-shot runner boot check: one alert, dismissed when the node is clean. */
|
|
968
1015
|
async handleRunnerCheck(event) {
|
|
969
1016
|
const nodeId = typeof event.data["nodeId"] === "string" ? event.data["nodeId"] : "hub";
|
|
@@ -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-DcyjtBjf.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-DRMDBvu-.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-DcyjtBjf.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-94Ko0oT3.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-DRMDBvu-.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-5dvmYOeA.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
|
|
7
|
+
import * as fs 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
|
|
1021
|
+
const writeStream = fs.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
|
|
2505
|
+
const stream = fs.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-DcyjtBjf.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-DRMDBvu-.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-DcyjtBjf.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-DRMDBvu-.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-DcyjtBjf.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-d0b3s931.js");
|
|
8
|
+
const require_capture_engine = require("../../capture-engine-IOE87CGh.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-DRMDBvu-.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-C4FTY6tR.mjs";
|
|
3
|
+
import { i as capSeriesKey } from "../../capture-engine-CQUJKdm-.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-DcyjtBjf.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-DRMDBvu-.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-DcyjtBjf.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-d0b3s931.js");
|
|
6
|
+
const require_capture_engine = require("../../capture-engine-IOE87CGh.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-DRMDBvu-.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-C4FTY6tR.mjs";
|
|
4
|
+
import { i as capSeriesKey } from "../../capture-engine-CQUJKdm-.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-DcyjtBjf.js");
|
|
7
|
+
const require_capture_engine = require("../../capture-engine-IOE87CGh.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
|