@camstack/server 1.2.740 → 1.2.742
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 +167 -43
- package/dist/api/core/integration-role.js +20 -0
- package/dist/api/trpc/generated-cap-mounts.js +18 -1
- package/dist/api/trpc/generated-cap-routers.js +2434 -2379
- package/package.json +16 -16
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/{agent-https-DXWlu1kP.js → agent-https-CsDhLoui.js} +1 -1
- package/system/dist/{agent-https-DcYKH3q_.mjs → agent-https-lgka7y2l.mjs} +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 +4 -4
- package/system/dist/builtins/alerts/alerts.addon.mjs +4 -4
- 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 +4 -4
- package/system/dist/builtins/camera-grid/index.mjs +4 -4
- 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 +193 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +193 -3
- package/system/dist/builtins/core-blocks/migrations/index.d.ts +5 -0
- package/system/dist/builtins/core-blocks/migrations/pump-cycle-split.d.ts +43 -0
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +3 -3
- package/system/dist/builtins/keychain/index.mjs +3 -3
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +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 +146 -48
- package/system/dist/builtins/loki-logging/index.mjs +146 -48
- package/system/dist/builtins/loki-logging/loki-logging.addon.d.ts +15 -0
- package/system/dist/builtins/loki-logging/loki-record-kinds.d.ts +2 -0
- package/system/dist/builtins/loki-logging/migrations/index.d.ts +11 -1
- package/system/dist/builtins/loki-logging/migrations/registry-toggle-to-record.d.ts +26 -0
- package/system/dist/builtins/loki-logging/retire-enabled-flag.d.ts +8 -23
- 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-registry.d.ts +2 -2
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2 -2
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +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/{composition-sources-BNa_vU07.mjs → composition-sources-BE6yrVCB.mjs} +1 -1
- package/system/dist/{composition-sources-BfWnLt2j.js → composition-sources-ny5MCbhd.js} +1 -1
- package/system/dist/{constants-DugYIgQF.js → constants-BbgVaoOX.js} +1 -1
- package/system/dist/{constants-DCYUT12P.mjs → constants-DiDTdj26.mjs} +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-CFs0PY9S.js → device-ca-BdgE_3J6.js} +1 -1
- package/system/dist/{device-ca-BnBFt1ex.mjs → device-ca-CVcZIfhA.mjs} +1 -1
- package/system/dist/{dist-BF9MiiHX.mjs → dist-BqlGZK-1.mjs} +397 -132
- package/system/dist/{dist-DwI4ifnv.js → dist-DdlfeOQx.js} +402 -131
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-CnSqBHO9.mjs → hub-mdns-ciao-BZsVTXQ7.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-Dsk7HF0G.js → hub-mdns-ciao-D3ZQMWjg.js} +2 -2
- package/system/dist/index.js +14 -9
- package/system/dist/index.mjs +225 -220
- package/system/dist/migrations/hub/2026-11-02-integration-addon-id-bare.d.ts +3 -0
- package/system/dist/{restore-archive-CDgSTubW.mjs → restore-archive-BFem7ZuS.mjs} +94 -94
- package/system/dist/{restore-archive-CnG6nyar.js → restore-archive-Ch76C3VQ.js} +1 -1
- package/system/dist/{retention-csYEu0l3.mjs → retention-D5Vk8FXc.mjs} +1 -1
- package/system/dist/{retention-voCdtR4h.js → retention-DWsfcaKe.js} +1 -1
- package/system/dist/{wal-maintenance-CTsOr0e7.mjs → wal-maintenance-CS-Wtg9w.mjs} +0 -0
- package/system/dist/{wal-maintenance-DrLnLCGO.js → wal-maintenance-DcVdVWDD.js} +0 -0
- package/system/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.742",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,15 +66,15 @@
|
|
|
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-provider-
|
|
75
|
-
"@camstack/addon-provider-
|
|
76
|
-
"@camstack/addon-provider-
|
|
77
|
-
"@camstack/addon-
|
|
69
|
+
"@camstack/addon-admin-ui": ">=1.2.560",
|
|
70
|
+
"@camstack/addon-agent-ui": ">=1.2.317",
|
|
71
|
+
"@camstack/addon-cloudflare": ">=1.2.152",
|
|
72
|
+
"@camstack/addon-export-alexa": ">=1.2.179",
|
|
73
|
+
"@camstack/addon-import-alexa": ">=0.2.179",
|
|
74
|
+
"@camstack/addon-provider-esphome": ">=0.1.9",
|
|
75
|
+
"@camstack/addon-provider-homeassistant": ">=1.2.652",
|
|
76
|
+
"@camstack/addon-provider-reolink": ">=1.2.220",
|
|
77
|
+
"@camstack/addon-static-turn": ">=1.2.143"
|
|
78
78
|
},
|
|
79
79
|
"wrapper": {
|
|
80
80
|
"desktop": ">=0.0.1",
|
|
@@ -83,19 +83,19 @@
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@camstack/addon-admin-ui": "1.2.
|
|
87
|
-
"@camstack/addon-agent-ui": "1.2.
|
|
86
|
+
"@camstack/addon-admin-ui": "1.2.560",
|
|
87
|
+
"@camstack/addon-agent-ui": "1.2.317",
|
|
88
88
|
"@camstack/addon-auth": "1.2.175",
|
|
89
89
|
"@camstack/addon-benchmark": "1.2.311",
|
|
90
90
|
"@camstack/addon-decoder-nodeav": "1.2.145",
|
|
91
|
-
"@camstack/addon-notifiers": "1.2.
|
|
91
|
+
"@camstack/addon-notifiers": "1.2.628",
|
|
92
92
|
"@camstack/addon-pipeline": "1.2.638",
|
|
93
93
|
"@camstack/addon-pipeline-orchestrator": "1.2.652",
|
|
94
|
-
"@camstack/addon-post-analysis": "1.2.
|
|
94
|
+
"@camstack/addon-post-analysis": "1.2.664",
|
|
95
95
|
"@camstack/develop": "0.1.44",
|
|
96
96
|
"@camstack/sdk": "1.2.155",
|
|
97
|
-
"@camstack/types": "1.2.
|
|
98
|
-
"@camstack/ui-library": "1.2.
|
|
97
|
+
"@camstack/types": "1.2.480",
|
|
98
|
+
"@camstack/ui-library": "1.2.375",
|
|
99
99
|
"@fastify/compress": "^9.0.0",
|
|
100
100
|
"@fastify/cookie": "^11.0.2",
|
|
101
101
|
"@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,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-DdlfeOQx.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");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { us as defineRecordKinds } from "./dist-BqlGZK-1.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";
|
|
@@ -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-DdlfeOQx.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 { an as addonPagesCapability,
|
|
1
|
+
import { an as addonPagesCapability, ho as BaseAddon, nc as EventCategory, tc as errMsg } from "../../dist-BqlGZK-1.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-DdlfeOQx.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 {
|
|
1
|
+
import { ho as BaseAddon, nc as EventCategory, sn as addonWidgetsCapability, tc as errMsg } from "../../dist-BqlGZK-1.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-DdlfeOQx.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
|
/**
|
|
@@ -426,7 +426,7 @@ var AlertStore = class AlertStore {
|
|
|
426
426
|
//#region src/builtins/alerts/migration-alerts.ts
|
|
427
427
|
var MIGRATION_ALERT_PREFIX = "migration:";
|
|
428
428
|
function faulted(entry) {
|
|
429
|
-
if (entry.status === "failed") return "critical";
|
|
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
431
|
if (entry.status === "skipped-newer") return "warning";
|
|
432
432
|
return null;
|
|
@@ -448,9 +448,9 @@ function planMigrationAlerts(ledger, open, now) {
|
|
|
448
448
|
id,
|
|
449
449
|
category: require_dist.EventCategory.MigrationFailed,
|
|
450
450
|
severity,
|
|
451
|
-
title:
|
|
451
|
+
title: entry.status === "skipped-newer" ? "Database is newer than this version" : "Migration failed",
|
|
452
452
|
message: messageOf(entry),
|
|
453
|
-
...
|
|
453
|
+
...entry.status !== "skipped-newer" ? { action: {
|
|
454
454
|
label: "Retry",
|
|
455
455
|
invoke: {
|
|
456
456
|
addonId: "sqlite-settings",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ar as isAlertEpisodeOpen,
|
|
1
|
+
import { Ar as isAlertEpisodeOpen, as as createEvent, cn as alertEpisodeId, d as AlertSchema, ho as BaseAddon, jr as isAlertEpisodeSeverity, ln as alertEpisodePayload, nc as EventCategory, tc as errMsg, un as alertsCapability, us as defineRecordKinds } from "../../dist-BqlGZK-1.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
|
/**
|
|
@@ -420,7 +420,7 @@ var AlertStore = class AlertStore {
|
|
|
420
420
|
//#region src/builtins/alerts/migration-alerts.ts
|
|
421
421
|
var MIGRATION_ALERT_PREFIX = "migration:";
|
|
422
422
|
function faulted(entry) {
|
|
423
|
-
if (entry.status === "failed") return "critical";
|
|
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
425
|
if (entry.status === "skipped-newer") return "warning";
|
|
426
426
|
return null;
|
|
@@ -442,9 +442,9 @@ function planMigrationAlerts(ledger, open, now) {
|
|
|
442
442
|
id,
|
|
443
443
|
category: EventCategory.MigrationFailed,
|
|
444
444
|
severity,
|
|
445
|
-
title:
|
|
445
|
+
title: entry.status === "skipped-newer" ? "Database is newer than this version" : "Migration failed",
|
|
446
446
|
message: messageOf(entry),
|
|
447
|
-
...
|
|
447
|
+
...entry.status !== "skipped-newer" ? { action: {
|
|
448
448
|
label: "Retry",
|
|
449
449
|
invoke: {
|
|
450
450
|
addonId: "sqlite-settings",
|
|
@@ -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-DdlfeOQx.js");
|
|
7
7
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
8
8
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
9
9
|
deadZoneFraction: .5,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Mi as ptzAutotrackCapability, hn as bareAddonId, ho as BaseAddon, nc as EventCategory, tc as errMsg, tt as FIRST_LEVEL_MACRO_CLASSES, xs as isEvent } from "../../dist-BqlGZK-1.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-DdlfeOQx.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-Ch76C3VQ.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 {
|
|
1
|
+
import { Ms as nodePin, ga as storageOccupancyCapability, ho as BaseAddon, mn as backupCapability, nc as EventCategory, qs as toNodeId, ri as mayWriteToLocation } from "../../dist-BqlGZK-1.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-BFem7ZuS.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-DdlfeOQx.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 { Cn as calendarsCapability, T as CalendarPreferencesSchema,
|
|
1
|
+
import { Cn as calendarsCapability, T as CalendarPreferencesSchema, ho as BaseAddon, us as defineRecordKinds } from "../../dist-BqlGZK-1.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-DdlfeOQx.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");
|
|
@@ -3030,7 +3030,7 @@ var CameraGridAddon = class extends require_dist.BaseAddon {
|
|
|
3030
3030
|
this.activity = new GridActivityForwarder({
|
|
3031
3031
|
eventBus: this.ctx.eventBus,
|
|
3032
3032
|
logger: this.ctx.logger.child("activity"),
|
|
3033
|
-
addonId: this.ctx.id,
|
|
3033
|
+
addonId: require_dist.bareAddonId(this.ctx.id),
|
|
3034
3034
|
gridsForSource: (sourceDeviceId) => this.gridsForSource(sourceDeviceId),
|
|
3035
3035
|
now: () => Date.now()
|
|
3036
3036
|
});
|
|
@@ -3123,7 +3123,7 @@ var CameraGridAddon = class extends require_dist.BaseAddon {
|
|
|
3123
3123
|
await this.retireWithdrawnSessions(instances);
|
|
3124
3124
|
const result = await new require_dist.DeclaredDevices({
|
|
3125
3125
|
logger: this.ctx.logger.child("declaration"),
|
|
3126
|
-
addonId: this.ctx.id,
|
|
3126
|
+
addonId: require_dist.bareAddonId(this.ctx.id),
|
|
3127
3127
|
devices: this.ctx.kernel.devices,
|
|
3128
3128
|
localNodeId: this.ctx.kernel.localNodeId,
|
|
3129
3129
|
getIntegration: async (addonId) => {
|
|
@@ -3144,7 +3144,7 @@ var CameraGridAddon = class extends require_dist.BaseAddon {
|
|
|
3144
3144
|
});
|
|
3145
3145
|
},
|
|
3146
3146
|
listOwnDevices: async () => {
|
|
3147
|
-
return gridCameraReconciliationIndex(await this.ctx.api.deviceManager.listAll.query({ addonId: this.ctx.id }), this.integrationId, declarations, this.tombstones);
|
|
3147
|
+
return gridCameraReconciliationIndex(await this.ctx.api.deviceManager.listAll.query({ addonId: require_dist.bareAddonId(this.ctx.id) }), this.integrationId, declarations, this.tombstones);
|
|
3148
3148
|
}
|
|
3149
3149
|
}).reconcile({
|
|
3150
3150
|
integrationName: INTEGRATION_NAME,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ga as buildFfmpegArgs, K as DeclaredDevices, L as DERIVED_CAMERA_SILENCED_CAP_NAMES, Qs as DeviceFeature, St as MOTION_CLOSE_AFTER_MS, ai as memoizePinnedFfmpeg, as as createEvent, da as snapshotCapability, ec as DeviceType, hn as bareAddonId, ho as BaseAddon, m as BaseDevice, nc as EventCategory, qn as declarationOwnerNodeId, tc as errMsg, ui as motionCapability, va as streamCatalogCapability, vs as hydrateSchema, wn as cameraGridLayoutCapability } from "../../dist-BqlGZK-1.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { FfmpegProcess } from "@camstack/types/node";
|
|
4
4
|
import { join } from "node:path";
|
|
@@ -3025,7 +3025,7 @@ var CameraGridAddon = class extends BaseAddon {
|
|
|
3025
3025
|
this.activity = new GridActivityForwarder({
|
|
3026
3026
|
eventBus: this.ctx.eventBus,
|
|
3027
3027
|
logger: this.ctx.logger.child("activity"),
|
|
3028
|
-
addonId: this.ctx.id,
|
|
3028
|
+
addonId: bareAddonId(this.ctx.id),
|
|
3029
3029
|
gridsForSource: (sourceDeviceId) => this.gridsForSource(sourceDeviceId),
|
|
3030
3030
|
now: () => Date.now()
|
|
3031
3031
|
});
|
|
@@ -3118,7 +3118,7 @@ var CameraGridAddon = class extends BaseAddon {
|
|
|
3118
3118
|
await this.retireWithdrawnSessions(instances);
|
|
3119
3119
|
const result = await new DeclaredDevices({
|
|
3120
3120
|
logger: this.ctx.logger.child("declaration"),
|
|
3121
|
-
addonId: this.ctx.id,
|
|
3121
|
+
addonId: bareAddonId(this.ctx.id),
|
|
3122
3122
|
devices: this.ctx.kernel.devices,
|
|
3123
3123
|
localNodeId: this.ctx.kernel.localNodeId,
|
|
3124
3124
|
getIntegration: async (addonId) => {
|
|
@@ -3139,7 +3139,7 @@ var CameraGridAddon = class extends BaseAddon {
|
|
|
3139
3139
|
});
|
|
3140
3140
|
},
|
|
3141
3141
|
listOwnDevices: async () => {
|
|
3142
|
-
return gridCameraReconciliationIndex(await this.ctx.api.deviceManager.listAll.query({ addonId: this.ctx.id }), this.integrationId, declarations, this.tombstones);
|
|
3142
|
+
return gridCameraReconciliationIndex(await this.ctx.api.deviceManager.listAll.query({ addonId: bareAddonId(this.ctx.id) }), this.integrationId, declarations, this.tombstones);
|
|
3143
3143
|
}
|
|
3144
3144
|
}).reconcile({
|
|
3145
3145
|
integrationName: INTEGRATION_NAME,
|
|
@@ -3,9 +3,9 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_composition_sources = require("../../composition-sources-
|
|
8
|
-
const require_retention = require("../../retention-
|
|
6
|
+
const require_dist = require("../../dist-DdlfeOQx.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-ny5MCbhd.js");
|
|
8
|
+
const require_retention = require("../../retention-DWsfcaKe.js");
|
|
9
9
|
let zod = require("zod");
|
|
10
10
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
11
11
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $a as
|
|
2
|
-
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-
|
|
3
|
-
import { i as DAY_MS$1, m as capSeriesKey, t as DEFAULT_RETENTION } from "../../retention-
|
|
1
|
+
import { $a as createStatefulExpressionMemory, Aa as valveCapability, An as climateControlCapability, Ba as DEFAULT_HISTORY_RETENTION, Cs as isReadingQuantity, Er as groupTemplate, Ha as HISTORY_SLOW_MS, Hr as kebabToCamel, Ja as composedDeviceStableId, Jn as declaredSeriesKind, K as DeclaredDevices, Ka as cloneStatefulExpressionMemory, Mn as colorCapability, Nn as composerCapability, Pn as compositionFieldKey, Qa as compositionSourceKey, Ra as COMPOSER_ADDON_ID, Si as parseColorInput, Ti as planComposition, Tr as groupCommandsCapability, Ua as HOUR_MS, Va as HISTORY_FAST_MS, Vn as coverCapability, Wa as MINUTE_MS, Xa as compositionItemFieldPath, Ya as compositionFeatureEnabled, Za as compositionSliceKey, Zi as runFanOut, Zr as lockControlCapability, _n as brightnessCapability, _r as fanOutTargets, aa as sharedActuatorFeatures, ao as isForwardInputRef, as as createEvent, b as COMPOSED_ITEM_FIXED_FIELDS, co as openReset, do as planStatisticTier, ec as DeviceType, eo as disarmRoseMemory, fo as statisticCadenceMs, ft as HvacModeSchema, gr as fanControlCapability, ho as BaseAddon, ii as mediaPlayerCapability, io as integrateReading, lo as openStatistic, m as BaseDevice, mr as expressionContainsBuiltinCall, n as ACTUATOR_METHODS, nc as EventCategory, no as evaluateStatistic, o as ALL_CAPABILITY_DEFINITIONS, oa as sharedActuatorMethods, oi as methodRefusal, oo as isHistoryHelper, po as toExpressionValue, qa as composedDeviceRef, qi as resolveMutate, r as ACTUATOR_TEMPLATE_IDS, rt as FanDirectionSchema, sa as sharedColorModes, so as nextLocalMidnight, st as GroupCommandResultSchema, tc as errMsg, to as evaluateDerivative, ui as motionCapability, uo as planResetTier, ur as evaluateCompositionField, xa as switchCapability, yn as buildCapabilityLookup, yr as featureForwards, za as DAY_MS } from "../../dist-BqlGZK-1.mjs";
|
|
2
|
+
import { i as parseDeviceStateChanged, n as normalizedNativeOwner, r as isRecord$4 } from "../../composition-sources-BE6yrVCB.mjs";
|
|
3
|
+
import { i as DAY_MS$1, m as capSeriesKey, t as DEFAULT_RETENTION } from "../../retention-D5Vk8FXc.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region src/builtins/composer/actuator-invoke.ts
|
|
6
6
|
/**
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-DdlfeOQx.js");
|
|
7
7
|
const require_formatter = require("../../formatter-xbxeV4GD.js");
|
|
8
8
|
//#region src/builtins/console-logging/console-destination.ts
|
|
9
9
|
var LEVEL_RANK = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $r as logDestinationCapability, ho as BaseAddon } from "../../dist-BqlGZK-1.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 = {
|