@camstack/server 1.2.805 → 1.2.806
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 +6 -0
- package/package.json +2 -25
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/device-manager/device-manager.addon.js +3 -0
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +3 -0
- package/system/dist/builtins/system-config/system-config.addon.mjs +4 -4
- package/system/dist/index.mjs +1 -1
- package/system/dist/{restore-archive-PlBC2NwT.mjs → restore-archive-BcsSlHR8.mjs} +4 -4
- package/system/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.806",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -65,30 +65,7 @@
|
|
|
65
65
|
"@camstack/addon-agent-ui"
|
|
66
66
|
],
|
|
67
67
|
"requires": {
|
|
68
|
-
"addons": {
|
|
69
|
-
"@camstack/addon-admin-ui": ">=1.2.614",
|
|
70
|
-
"@camstack/addon-agent-ui": ">=1.2.342",
|
|
71
|
-
"@camstack/addon-auth": ">=1.2.179",
|
|
72
|
-
"@camstack/addon-decoder-nodeav": ">=1.2.149",
|
|
73
|
-
"@camstack/addon-export-alexa": ">=1.2.189",
|
|
74
|
-
"@camstack/addon-export-google": ">=0.1.131",
|
|
75
|
-
"@camstack/addon-import-alexa": ">=0.2.198",
|
|
76
|
-
"@camstack/addon-matter-broker": ">=0.2.163",
|
|
77
|
-
"@camstack/addon-mqtt-broker": ">=1.2.156",
|
|
78
|
-
"@camstack/addon-pipeline": ">=1.2.648",
|
|
79
|
-
"@camstack/addon-pipeline-orchestrator": ">=1.2.669",
|
|
80
|
-
"@camstack/addon-post-analysis": ">=1.2.685",
|
|
81
|
-
"@camstack/addon-provider-dreame": ">=0.2.171",
|
|
82
|
-
"@camstack/addon-provider-homeassistant": ">=1.2.672",
|
|
83
|
-
"@camstack/addon-provider-petkit": ">=0.2.165",
|
|
84
|
-
"@camstack/addon-provider-reolink": ">=1.2.233",
|
|
85
|
-
"@camstack/addon-provider-tuya": ">=0.2.156",
|
|
86
|
-
"@camstack/addon-provider-wyze": ">=0.2.170",
|
|
87
|
-
"@camstack/addon-smtp-nodemailer": ">=1.2.153",
|
|
88
|
-
"@camstack/addon-static-turn": ">=1.2.146",
|
|
89
|
-
"@camstack/addon-training": ">=0.1.135",
|
|
90
|
-
"@camstack/addon-waste-collections": ">=0.1.40"
|
|
91
|
-
},
|
|
68
|
+
"addons": {},
|
|
92
69
|
"wrapper": {
|
|
93
70
|
"desktop": ">=0.0.1",
|
|
94
71
|
"image": ">=0.0.1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Ec as toNodeId, Ic as EventCategory, Ko as BaseAddon, dc as nodePin, wn as backupCapability, yi as mayWriteToLocation, za as storageOccupancyCapability } from "../../dist-CogtCQxu.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-BcsSlHR8.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import * as fs$1 from "node:fs";
|
|
6
6
|
import * as path$1 from "node:path";
|
|
@@ -2859,6 +2859,7 @@ async function listAll(pctx, input) {
|
|
|
2859
2859
|
config: persistedConfig ?? {},
|
|
2860
2860
|
...secretConfigPathsField(pctx.secretConfigPaths.get(m.id)),
|
|
2861
2861
|
metadata,
|
|
2862
|
+
...m.alias !== void 0 ? { alias: m.alias } : {},
|
|
2862
2863
|
...m.integrationId !== void 0 ? { integrationId: m.integrationId } : {},
|
|
2863
2864
|
...m.linkDeviceId !== void 0 ? { linkDeviceId: m.linkDeviceId } : {},
|
|
2864
2865
|
...m.primaryChildEntityId !== void 0 ? { primaryChildEntityId: m.primaryChildEntityId } : {},
|
|
@@ -2909,6 +2910,7 @@ async function getDevice(pctx, input) {
|
|
|
2909
2910
|
config: persistedConfig ?? {},
|
|
2910
2911
|
...secretConfigPathsField(pctx.secretConfigPaths.get(deviceId)),
|
|
2911
2912
|
metadata,
|
|
2913
|
+
...m.alias !== void 0 ? { alias: m.alias } : {},
|
|
2912
2914
|
...m.integrationId !== void 0 ? { integrationId: m.integrationId } : {},
|
|
2913
2915
|
...m.linkDeviceId !== void 0 ? { linkDeviceId: m.linkDeviceId } : {},
|
|
2914
2916
|
...m.primaryChildEntityId !== void 0 ? { primaryChildEntityId: m.primaryChildEntityId } : {},
|
|
@@ -2986,6 +2988,7 @@ function projectChildren(pctx, parentDeviceId, ownerAddonId, childRows, liveChil
|
|
|
2986
2988
|
config: persistedConfig,
|
|
2987
2989
|
...secretConfigPathsField(pctx.secretConfigPaths.get(m.id)),
|
|
2988
2990
|
metadata,
|
|
2991
|
+
...m.alias !== void 0 ? { alias: m.alias } : {},
|
|
2989
2992
|
...m.integrationId !== void 0 ? { integrationId: m.integrationId } : {},
|
|
2990
2993
|
...m.linkDeviceId !== void 0 ? { linkDeviceId: m.linkDeviceId } : {},
|
|
2991
2994
|
...m.primaryChildEntityId !== void 0 ? { primaryChildEntityId: m.primaryChildEntityId } : {},
|
|
@@ -2854,6 +2854,7 @@ async function listAll(pctx, input) {
|
|
|
2854
2854
|
config: persistedConfig ?? {},
|
|
2855
2855
|
...secretConfigPathsField(pctx.secretConfigPaths.get(m.id)),
|
|
2856
2856
|
metadata,
|
|
2857
|
+
...m.alias !== void 0 ? { alias: m.alias } : {},
|
|
2857
2858
|
...m.integrationId !== void 0 ? { integrationId: m.integrationId } : {},
|
|
2858
2859
|
...m.linkDeviceId !== void 0 ? { linkDeviceId: m.linkDeviceId } : {},
|
|
2859
2860
|
...m.primaryChildEntityId !== void 0 ? { primaryChildEntityId: m.primaryChildEntityId } : {},
|
|
@@ -2904,6 +2905,7 @@ async function getDevice(pctx, input) {
|
|
|
2904
2905
|
config: persistedConfig ?? {},
|
|
2905
2906
|
...secretConfigPathsField(pctx.secretConfigPaths.get(deviceId)),
|
|
2906
2907
|
metadata,
|
|
2908
|
+
...m.alias !== void 0 ? { alias: m.alias } : {},
|
|
2907
2909
|
...m.integrationId !== void 0 ? { integrationId: m.integrationId } : {},
|
|
2908
2910
|
...m.linkDeviceId !== void 0 ? { linkDeviceId: m.linkDeviceId } : {},
|
|
2909
2911
|
...m.primaryChildEntityId !== void 0 ? { primaryChildEntityId: m.primaryChildEntityId } : {},
|
|
@@ -2981,6 +2983,7 @@ function projectChildren(pctx, parentDeviceId, ownerAddonId, childRows, liveChil
|
|
|
2981
2983
|
config: persistedConfig,
|
|
2982
2984
|
...secretConfigPathsField(pctx.secretConfigPaths.get(m.id)),
|
|
2983
2985
|
metadata,
|
|
2986
|
+
...m.alias !== void 0 ? { alias: m.alias } : {},
|
|
2984
2987
|
...m.integrationId !== void 0 ? { integrationId: m.integrationId } : {},
|
|
2985
2988
|
...m.linkDeviceId !== void 0 ? { linkDeviceId: m.linkDeviceId } : {},
|
|
2986
2989
|
...m.primaryChildEntityId !== void 0 ? { primaryChildEntityId: m.primaryChildEntityId } : {},
|
|
@@ -15,7 +15,7 @@ import os from "node:os";
|
|
|
15
15
|
import { fileURLToPath } from "node:url";
|
|
16
16
|
import * as tls from "node:tls";
|
|
17
17
|
import { EventEmitter } from "node:events";
|
|
18
|
-
import
|
|
18
|
+
import As from "node:stream";
|
|
19
19
|
import { StringDecoder } from "node:string_decoder";
|
|
20
20
|
import { lstatSync, readdir as readdir$1, readdirSync as readdirSync$1, readlinkSync, realpathSync } from "fs";
|
|
21
21
|
import "path";
|
|
@@ -83699,7 +83699,7 @@ var xs = new Set([
|
|
|
83699
83699
|
"+",
|
|
83700
83700
|
"*",
|
|
83701
83701
|
"@"
|
|
83702
|
-
]), be = (n) => xs.has(n), vs = "(?!(?:^|/)\\.\\.?(?:$|/))", Ct = "(?!\\.)", Cs = new Set(["[", "."]), Ts = new Set(["..", "."]), As = /* @__PURE__ */ new Set("().*{}+?[]^$\\!"), ks = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), Kt = "[^/]", Se = Kt + "*?", Ee = Kt + "+?", Q = class n {
|
|
83702
|
+
]), be = (n) => xs.has(n), vs = "(?!(?:^|/)\\.\\.?(?:$|/))", Ct = "(?!\\.)", Cs = new Set(["[", "."]), Ts = new Set(["..", "."]), As$1 = /* @__PURE__ */ new Set("().*{}+?[]^$\\!"), ks = (n) => n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), Kt = "[^/]", Se = Kt + "*?", Ee = Kt + "+?", Q = class n {
|
|
83703
83703
|
type;
|
|
83704
83704
|
#t;
|
|
83705
83705
|
#s;
|
|
@@ -83906,7 +83906,7 @@ var xs = new Set([
|
|
|
83906
83906
|
for (let a = 0; a < t.length; a++) {
|
|
83907
83907
|
let l = t.charAt(a);
|
|
83908
83908
|
if (i) {
|
|
83909
|
-
i = !1, r += (As.has(l) ? "\\" : "") + l;
|
|
83909
|
+
i = !1, r += (As$1.has(l) ? "\\" : "") + l;
|
|
83910
83910
|
continue;
|
|
83911
83911
|
}
|
|
83912
83912
|
if (l === "*") {
|
|
@@ -84890,7 +84890,7 @@ var q = (n) => n && n === Math.floor(n) && n > 0 && isFinite(n), De = (n) => q(n
|
|
|
84890
84890
|
var Ne = typeof process == "object" && process ? process : {
|
|
84891
84891
|
stdout: null,
|
|
84892
84892
|
stderr: null
|
|
84893
|
-
}, oi = (n) => !!n && typeof n == "object" && (n instanceof V || n instanceof
|
|
84893
|
+
}, oi = (n) => !!n && typeof n == "object" && (n instanceof V || n instanceof As || hi(n) || ai(n)), hi = (n) => !!n && typeof n == "object" && n instanceof EventEmitter && typeof n.pipe == "function" && n.pipe !== As.Writable.prototype.pipe, ai = (n) => !!n && typeof n == "object" && n instanceof EventEmitter && typeof n.write == "function" && typeof n.end == "function", G = Symbol("EOF"), H = Symbol("maybeEmitEnd"), K = Symbol("emittedEnd"), kt = Symbol("emittingEnd"), ut = Symbol("emittedError"), Rt = Symbol("closed"), _e = Symbol("read"), Ot = Symbol("flush"), Le = Symbol("flushChunk"), P = Symbol("encoding"), et = Symbol("decoder"), v = Symbol("flowing"), dt = Symbol("paused"), st = Symbol("resume"), C = Symbol("buffer"), F = Symbol("pipes"), T = Symbol("bufferLength"), Yt = Symbol("bufferPush"), Ft = Symbol("bufferShift"), k = Symbol("objectMode"), x = Symbol("destroyed"), Xt = Symbol("error"), Jt = Symbol("emitData"), We = Symbol("emitEnd"), Zt = Symbol("emitEnd2"), B = Symbol("async"), Qt = Symbol("abort"), Dt = Symbol("aborted"), pt = Symbol("signal"), Y = Symbol("dataListeners"), M = Symbol("discarded"), mt = (n) => Promise.resolve().then(n), li = (n) => n(), ci = (n) => n === "end" || n === "finish" || n === "prefinish", fi = (n) => n instanceof ArrayBuffer || !!n && typeof n == "object" && n.constructor && n.constructor.name === "ArrayBuffer" && n.byteLength >= 0, ui = (n) => !Buffer.isBuffer(n) && ArrayBuffer.isView(n), Mt = class {
|
|
84894
84894
|
src;
|
|
84895
84895
|
dest;
|
|
84896
84896
|
opts;
|
package/system/dist/index.mjs
CHANGED
|
@@ -40,7 +40,7 @@ import { C as isModelDownloaded, E as setHuggingFaceReachabilityObserver, T as r
|
|
|
40
40
|
import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-aFHCKrif.mjs";
|
|
41
41
|
import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
|
|
42
42
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
|
|
43
|
-
import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-
|
|
43
|
+
import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-BcsSlHR8.mjs";
|
|
44
44
|
import { r as nodeCoralFs, t as classifyCoralAccelerator } from "./coral-accelerators-DBlgWB8k.mjs";
|
|
45
45
|
import { z } from "zod";
|
|
46
46
|
import * as crypto$1 from "node:crypto";
|
|
@@ -9,7 +9,7 @@ import path, { basename, join, posix, win32 } from "node:path";
|
|
|
9
9
|
import * as fsp from "node:fs/promises";
|
|
10
10
|
import jn from "node:fs/promises";
|
|
11
11
|
import { EventEmitter } from "node:events";
|
|
12
|
-
import
|
|
12
|
+
import As, { Transform } from "node:stream";
|
|
13
13
|
import { StringDecoder } from "node:string_decoder";
|
|
14
14
|
import fs$1 from "fs";
|
|
15
15
|
import path$1, { dirname as dirname$1, parse } from "path";
|
|
@@ -477,7 +477,7 @@ var Br = (s, t) => {
|
|
|
477
477
|
var xs = typeof process == "object" && process ? process : {
|
|
478
478
|
stdout: null,
|
|
479
479
|
stderr: null
|
|
480
|
-
}, zr = (s) => !!s && typeof s == "object" && (s instanceof A || s instanceof
|
|
480
|
+
}, zr = (s) => !!s && typeof s == "object" && (s instanceof A || s instanceof As || Ur(s) || Hr(s)), Ur = (s) => !!s && typeof s == "object" && s instanceof EventEmitter && typeof s.pipe == "function" && s.pipe !== As.Writable.prototype.pipe, Hr = (s) => !!s && typeof s == "object" && s instanceof EventEmitter && typeof s.write == "function" && typeof s.end == "function", q = Symbol("EOF"), Q = Symbol("maybeEmitEnd"), rt = Symbol("emittedEnd"), Le = Symbol("emittingEnd"), qt = Symbol("emittedError"), Ne = Symbol("closed"), Ls = Symbol("read"), De = Symbol("flush"), Ns = Symbol("flushChunk"), z$1 = Symbol("encoding"), Mt = Symbol("decoder"), g = Symbol("flowing"), Qt = Symbol("paused"), Bt = Symbol("resume"), b = Symbol("buffer"), D = Symbol("pipes"), _ = Symbol("bufferLength"), gi = Symbol("bufferPush"), Ae = Symbol("bufferShift"), L = Symbol("objectMode"), w = Symbol("destroyed"), bi = Symbol("error"), _i = Symbol("emitData"), Ds = Symbol("emitEnd"), Oi = Symbol("emitEnd2"), Z = Symbol("async"), Ti = Symbol("abort"), Ie = Symbol("aborted"), Jt = Symbol("signal"), Rt = Symbol("dataListeners"), F = Symbol("discarded"), jt = (s) => Promise.resolve().then(s), Wr = (s) => s(), Gr = (s) => s === "end" || s === "finish" || s === "prefinish", Zr = (s) => s instanceof ArrayBuffer || !!s && typeof s == "object" && s.constructor && s.constructor.name === "ArrayBuffer" && s.byteLength >= 0, Yr = (s) => !Buffer.isBuffer(s) && ArrayBuffer.isView(s), Fe = class {
|
|
481
481
|
src;
|
|
482
482
|
dest;
|
|
483
483
|
opts;
|
|
@@ -1268,7 +1268,7 @@ var tn = Buffer$1.concat, Bs = Object.getOwnPropertyDescriptor(Buffer$1, "concat
|
|
|
1268
1268
|
}
|
|
1269
1269
|
}
|
|
1270
1270
|
};
|
|
1271
|
-
var Pe
|
|
1271
|
+
var Pe = class extends Be {
|
|
1272
1272
|
#t;
|
|
1273
1273
|
constructor(t) {
|
|
1274
1274
|
super(t, "Gzip"), this.#t = t && !!t.portable;
|
|
@@ -2428,7 +2428,7 @@ var mi = class {
|
|
|
2428
2428
|
constructor(t = {}) {
|
|
2429
2429
|
if (super(), this.opt = t, this.file = t.file || "", this.cwd = t.cwd || process.cwd(), this.maxReadSize = t.maxReadSize, this.preservePaths = !!t.preservePaths, this.strict = !!t.strict, this.noPax = !!t.noPax, this.prefix = f(t.prefix || ""), this.linkCache = t.linkCache || /* @__PURE__ */ new Map(), this.statCache = t.statCache || /* @__PURE__ */ new Map(), this.readdirCache = t.readdirCache || /* @__PURE__ */ new Map(), this.onWriteEntry = t.onWriteEntry, this[di] = fe, typeof t.onwarn == "function" && this.on("warn", t.onwarn), this.portable = !!t.portable, t.gzip || t.brotli || t.zstd) {
|
|
2430
2430
|
if ((t.gzip ? 1 : 0) + (t.brotli ? 1 : 0) + (t.zstd ? 1 : 0) > 1) throw new TypeError("gzip, brotli, zstd are mutually exclusive");
|
|
2431
|
-
if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = !0), this.zip = new Pe
|
|
2431
|
+
if (t.gzip && (typeof t.gzip != "object" && (t.gzip = {}), this.portable && (t.gzip.portable = !0), this.zip = new Pe(t.gzip)), t.brotli && (typeof t.brotli != "object" && (t.brotli = {}), this.zip = new He(t.brotli)), t.zstd && (typeof t.zstd != "object" && (t.zstd = {}), this.zip = new Ze(t.zstd)), !this.zip) throw new Error("impossible");
|
|
2432
2432
|
let e = this.zip;
|
|
2433
2433
|
e.on("data", (i) => super.write(i)), e.on("end", () => super.end()), e.on("drain", () => this[ls]()), this.on("resume", () => e.resume());
|
|
2434
2434
|
} else this.on("drain", this[ls]);
|