@camstack/server 1.2.731 → 1.2.733
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 +1 -0
- package/dist/api/core/logging-settings.js +88 -1
- package/dist/api/trpc/generated-cap-routers.js +49 -0
- package/dist/core/addon/addon-registry.service.js +61 -59
- package/package.json +11 -19
- package/system/dist/addon-runner.js +1 -0
- package/system/dist/addon-runner.mjs +2 -1
- package/system/dist/addon-utils.mjs +1 -1
- package/system/dist/{agent-https-AJPmB73W.mjs → agent-https-D3dptveB.mjs} +1 -1
- package/system/dist/{agent-https-CLJhq0GZ.js → agent-https-v5uyVgpk.js} +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +4 -4
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +5 -5
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +5 -5
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +3 -3
- package/system/dist/builtins/composer/composer.addon.mjs +3 -3
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
- 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 +220 -16
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +220 -16
- package/system/dist/builtins/device-manager/discovery-proposal-service.d.ts +38 -0
- package/system/dist/builtins/device-manager/discovery-proposal-store.d.ts +28 -0
- package/system/dist/builtins/device-manager/record-kinds.d.ts +2 -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.d.ts +10 -0
- package/system/dist/builtins/local-network/local-network.addon.js +297 -190
- package/system/dist/builtins/local-network/local-network.addon.mjs +294 -187
- package/system/dist/builtins/local-network/passive/discovery-watcher.d.ts +60 -0
- package/system/dist/builtins/local-network/passive/passive-io-node.d.ts +2 -0
- package/system/dist/builtins/local-network/passive/passive-packets.d.ts +10 -0
- package/system/dist/builtins/local-network/scan/dns-wire.d.ts +6 -2
- package/system/dist/builtins/local-network/scan/scan-engine.d.ts +1 -1
- package/system/dist/builtins/local-network/scan/scan-io.d.ts +6 -0
- 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/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-D-S2hhdw.mjs → composition-sources-Dnyu7-1p.mjs} +1 -1
- package/system/dist/{composition-sources-BNBlJAgu.js → composition-sources-j_bFq7Tx.js} +1 -1
- package/system/dist/{constants-CKwdQTnw.js → constants-C6zJ_38f.js} +1 -1
- package/system/dist/{constants-DmithOex.mjs → constants-GDBin8zB.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-D-Cvxobt.mjs → device-ca-Bpqrad00.mjs} +1 -1
- package/system/dist/{device-ca-TbdQfW4d.js → device-ca-CV9QZvoy.js} +1 -1
- package/system/dist/{dist-dQKZfa3-.js → dist-CwYYyGAB.js} +227 -3
- package/system/dist/{dist-yrk6fm65.mjs → dist-DcHvuBfD.mjs} +210 -4
- package/system/dist/dns-wire-CqgMi_uB.js +202 -0
- package/system/dist/dns-wire-DO56tOHL.mjs +173 -0
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-mdns-ciao-Cae5VWUc.mjs → hub-mdns-ciao-D2sU6sKd.mjs} +2 -2
- package/system/dist/{hub-mdns-ciao-DP3_GNZw.js → hub-mdns-ciao-DNLnbJNG.js} +2 -2
- package/system/dist/index.js +24 -7
- package/system/dist/index.mjs +236 -219
- package/system/dist/{restore-archive-BJ5gxMvf.mjs → restore-archive-BGK6EnYj.mjs} +94 -94
- package/system/dist/{restore-archive-X9c_wEBY.js → restore-archive-xTqhDFkW.js} +1 -1
- package/system/dist/{retention-DBrdAv12.mjs → retention-CXu8PB2L.mjs} +1 -1
- package/system/dist/{retention-DRT2wUyB.js → retention-gQ3GIUA3.js} +1 -1
- package/system/dist/{wal-maintenance-Bi4yImEY.mjs → wal-maintenance-D7XmFaUD.mjs} +0 -0
- package/system/dist/{wal-maintenance-hsgNGrjh.js → wal-maintenance-Hwzm3DCe.js} +0 -0
- package/system/package.json +1 -1
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
//#region src/builtins/local-network/scan/dns-wire.ts
|
|
2
|
+
/**
|
|
3
|
+
* DNS-SD wire format for the scan engine: one PTR question per service type,
|
|
4
|
+
* and a parser that turns an answer into services (instance, host, port, TXT).
|
|
5
|
+
*/
|
|
6
|
+
/** Top bit of the question class: ask for a unicast reply (RFC 6762). */
|
|
7
|
+
var MDNS_QU_CLASS = 32769;
|
|
8
|
+
/** Plain IN class: the responder may answer on the group (QM), which a group member hears. */
|
|
9
|
+
var MDNS_QM_CLASS = 1;
|
|
10
|
+
var A = 1;
|
|
11
|
+
var PTR = 12;
|
|
12
|
+
var TXT = 16;
|
|
13
|
+
var SRV = 33;
|
|
14
|
+
var SRV_FIXED = 6;
|
|
15
|
+
var MAX_NAME_HOPS = 16;
|
|
16
|
+
var MDNS_PORT = 5353;
|
|
17
|
+
var MDNS_GROUP = "224.0.0.251";
|
|
18
|
+
/** `_esphomelib._tcp` and `_esphomelib._tcp.local.` name the same service. */
|
|
19
|
+
function normalizeServiceType(serviceType) {
|
|
20
|
+
const lower = serviceType.trim().toLowerCase().replace(/\.$/, "");
|
|
21
|
+
return lower.endsWith(".local") ? lower.slice(0, -6) : lower;
|
|
22
|
+
}
|
|
23
|
+
function readName(buf, start) {
|
|
24
|
+
const labels = [];
|
|
25
|
+
let pos = start;
|
|
26
|
+
let end = start;
|
|
27
|
+
let jumped = false;
|
|
28
|
+
for (let hops = 0; hops < MAX_NAME_HOPS; hops++) {
|
|
29
|
+
if (pos < 0 || pos >= buf.length) return null;
|
|
30
|
+
const len = buf[pos] ?? 0;
|
|
31
|
+
if (len === 0) {
|
|
32
|
+
if (!jumped) end = pos + 1;
|
|
33
|
+
return {
|
|
34
|
+
name: labels.join("."),
|
|
35
|
+
end
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
if ((len & 192) === 192) {
|
|
39
|
+
if (pos + 1 >= buf.length) return null;
|
|
40
|
+
if (!jumped) end = pos + 2;
|
|
41
|
+
jumped = true;
|
|
42
|
+
pos = (len & 63) << 8 | (buf[pos + 1] ?? 0);
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
if ((len & 192) !== 0 || pos + 1 + len > buf.length) return null;
|
|
46
|
+
labels.push(buf.subarray(pos + 1, pos + 1 + len).toString("utf8"));
|
|
47
|
+
pos += 1 + len;
|
|
48
|
+
if (!jumped) end = pos;
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
function readRecords(buf, offset, count) {
|
|
53
|
+
const records = [];
|
|
54
|
+
let pos = offset;
|
|
55
|
+
for (let i = 0; i < count; i++) {
|
|
56
|
+
const name = readName(buf, pos);
|
|
57
|
+
if (name === null || name.end + 10 > buf.length) return null;
|
|
58
|
+
const type = buf.readUInt16BE(name.end);
|
|
59
|
+
const dataLength = buf.readUInt16BE(name.end + 8);
|
|
60
|
+
const dataOffset = name.end + 10;
|
|
61
|
+
if (dataOffset + dataLength > buf.length) return null;
|
|
62
|
+
records.push({
|
|
63
|
+
name: name.name,
|
|
64
|
+
type,
|
|
65
|
+
dataOffset,
|
|
66
|
+
dataLength
|
|
67
|
+
});
|
|
68
|
+
pos = dataOffset + dataLength;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
records,
|
|
72
|
+
next: pos
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function parseTxt(buf, offset, length) {
|
|
76
|
+
const out = {};
|
|
77
|
+
let pos = offset;
|
|
78
|
+
const end = offset + length;
|
|
79
|
+
while (pos < end) {
|
|
80
|
+
const len = buf[pos] ?? 0;
|
|
81
|
+
pos += 1;
|
|
82
|
+
if (len === 0 || pos + len > end) break;
|
|
83
|
+
const entry = buf.subarray(pos, pos + len).toString("utf8");
|
|
84
|
+
pos += len;
|
|
85
|
+
const eq = entry.indexOf("=");
|
|
86
|
+
if (eq < 0) out[entry] = "";
|
|
87
|
+
else out[entry.slice(0, eq)] = entry.slice(eq + 1);
|
|
88
|
+
}
|
|
89
|
+
return out;
|
|
90
|
+
}
|
|
91
|
+
/** One PTR question per service type, with the unicast-reply bit unless `unicastResponse` is false. */
|
|
92
|
+
function buildPtrQuery(serviceTypes, options = {}) {
|
|
93
|
+
const questionClass = options.unicastResponse === false ? MDNS_QM_CLASS : MDNS_QU_CLASS;
|
|
94
|
+
const header = Buffer.alloc(12);
|
|
95
|
+
header.writeUInt16BE(serviceTypes.length, 4);
|
|
96
|
+
const questions = serviceTypes.map((type) => {
|
|
97
|
+
const encoded = `${normalizeServiceType(type)}.local`.split(".").filter((part) => part.length > 0).map((l) => Buffer.concat([Buffer.from([l.length]), Buffer.from(l)]));
|
|
98
|
+
const tail = Buffer.alloc(4);
|
|
99
|
+
tail.writeUInt16BE(PTR, 0);
|
|
100
|
+
tail.writeUInt16BE(questionClass, 2);
|
|
101
|
+
return Buffer.concat([
|
|
102
|
+
...encoded,
|
|
103
|
+
Buffer.from([0]),
|
|
104
|
+
tail
|
|
105
|
+
]);
|
|
106
|
+
});
|
|
107
|
+
return Buffer.concat([header, ...questions]);
|
|
108
|
+
}
|
|
109
|
+
/** The services advertised on one mDNS message; a malformed packet yields none. */
|
|
110
|
+
function parseMdnsMessage(buf) {
|
|
111
|
+
if (buf.length < 12) return [];
|
|
112
|
+
const [questions = 0, answers = 0, authorities = 0, extra = 0] = [
|
|
113
|
+
4,
|
|
114
|
+
6,
|
|
115
|
+
8,
|
|
116
|
+
10
|
|
117
|
+
].map((o) => buf.readUInt16BE(o));
|
|
118
|
+
let pos = 12;
|
|
119
|
+
for (let i = 0; i < questions; i++) {
|
|
120
|
+
const name = readName(buf, pos);
|
|
121
|
+
if (name === null) return [];
|
|
122
|
+
pos = name.end + 4;
|
|
123
|
+
if (pos > buf.length) return [];
|
|
124
|
+
}
|
|
125
|
+
const records = [];
|
|
126
|
+
for (const count of [
|
|
127
|
+
answers,
|
|
128
|
+
authorities,
|
|
129
|
+
extra
|
|
130
|
+
]) {
|
|
131
|
+
const read = readRecords(buf, pos, count);
|
|
132
|
+
if (read === null) return [];
|
|
133
|
+
records.push(...read.records);
|
|
134
|
+
pos = read.next;
|
|
135
|
+
}
|
|
136
|
+
const ptrs = [];
|
|
137
|
+
const srv = /* @__PURE__ */ new Map();
|
|
138
|
+
const txt = /* @__PURE__ */ new Map();
|
|
139
|
+
const addresses = /* @__PURE__ */ new Map();
|
|
140
|
+
for (const rec of records) {
|
|
141
|
+
const key = rec.name.toLowerCase();
|
|
142
|
+
if (rec.type === PTR) {
|
|
143
|
+
const target = readName(buf, rec.dataOffset);
|
|
144
|
+
if (target !== null) ptrs.push({
|
|
145
|
+
serviceType: rec.name,
|
|
146
|
+
instance: target.name
|
|
147
|
+
});
|
|
148
|
+
} else if (rec.type === SRV && rec.dataLength >= SRV_FIXED) {
|
|
149
|
+
const target = readName(buf, rec.dataOffset + SRV_FIXED);
|
|
150
|
+
if (target !== null) srv.set(key, {
|
|
151
|
+
target: target.name,
|
|
152
|
+
port: buf.readUInt16BE(rec.dataOffset + 4)
|
|
153
|
+
});
|
|
154
|
+
} else if (rec.type === TXT) txt.set(key, parseTxt(buf, rec.dataOffset, rec.dataLength));
|
|
155
|
+
else if (rec.type === A && rec.dataLength === 4) addresses.set(key, `${buf[rec.dataOffset]}.${buf[rec.dataOffset + 1]}.${buf[rec.dataOffset + 2]}.${buf[rec.dataOffset + 3]}`);
|
|
156
|
+
}
|
|
157
|
+
const out = [];
|
|
158
|
+
for (const { serviceType, instance } of ptrs) {
|
|
159
|
+
const service = srv.get(instance.toLowerCase());
|
|
160
|
+
const target = service?.target ?? instance;
|
|
161
|
+
out.push({
|
|
162
|
+
serviceType: normalizeServiceType(serviceType),
|
|
163
|
+
instance,
|
|
164
|
+
address: addresses.get(target.toLowerCase()) ?? addresses.get(instance.toLowerCase()) ?? null,
|
|
165
|
+
host: target,
|
|
166
|
+
port: service?.port ?? 0,
|
|
167
|
+
txt: txt.get(instance.toLowerCase()) ?? {}
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
return out;
|
|
171
|
+
}
|
|
172
|
+
//#endregion
|
|
173
|
+
export { parseMdnsMessage as a, normalizeServiceType as i, MDNS_PORT as n, buildPtrQuery as r, MDNS_GROUP as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
2
|
+
const require_wal_maintenance = require("./wal-maintenance-Hwzm3DCe.js");
|
|
3
3
|
let node_worker_threads = require("node:worker_threads");
|
|
4
4
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-
|
|
1
|
+
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-D7XmFaUD.mjs";
|
|
2
2
|
import { parentPort, threadId, workerData } from "node:worker_threads";
|
|
3
3
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
4
4
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Vs as userError } from "./dist-DcHvuBfD.mjs";
|
|
3
3
|
import { f as X509Certificate$1 } from "./x509.es-BRiJgOvu.mjs";
|
|
4
|
-
import { D as reasonRequiresNewCa, E as evaluateExistingCert, F as readNameConstraints, N as permitsIdentity, _ as issueLeaf, b as collectCertIdentity, g as generateCa, j as isConstrainedCa, v as loadCa, y as localCaCommonName } from "./agent-https-
|
|
4
|
+
import { D as reasonRequiresNewCa, E as evaluateExistingCert, F as readNameConstraints, N as permitsIdentity, _ as issueLeaf, b as collectCertIdentity, g as generateCa, j as isConstrainedCa, v as loadCa, y as localCaCommonName } from "./agent-https-D3dptveB.mjs";
|
|
5
5
|
import { X509Certificate, createPrivateKey } from "node:crypto";
|
|
6
6
|
import { writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
7
7
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-CwYYyGAB.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
|
-
const require_agent_https = require("./agent-https-
|
|
4
|
+
const require_agent_https = require("./agent-https-v5uyVgpk.js");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
6
|
let _camstack_types_node = require("@camstack/types/node");
|
|
7
7
|
let node_fs_promises = require("node:fs/promises");
|
package/system/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("./dist-
|
|
4
|
-
const require_device_ca = require("./device-ca-
|
|
3
|
+
const require_dist = require("./dist-CwYYyGAB.js");
|
|
4
|
+
const require_device_ca = require("./device-ca-CV9QZvoy.js");
|
|
5
5
|
const require_read_all_rows$1 = require("./read-all-rows-CVoO1ONM.js");
|
|
6
6
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
7
7
|
require("./builtins/alerts/index.js");
|
|
@@ -26,21 +26,21 @@ const require_builtins_loki_logging_index = require("./builtins/loki-logging/ind
|
|
|
26
26
|
const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
|
|
27
27
|
const require_builtins_device_history_device_history_addon = require("./builtins/device-history/device-history.addon.js");
|
|
28
28
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
|
|
29
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
29
|
+
const require_wal_maintenance = require("./wal-maintenance-Hwzm3DCe.js");
|
|
30
30
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
|
|
31
31
|
const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
|
|
32
32
|
const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
|
|
33
33
|
require("./builtins/storage-orchestrator/index.js");
|
|
34
|
-
const require_agent_https = require("./agent-https-
|
|
35
|
-
const require_constants = require("./constants-
|
|
34
|
+
const require_agent_https = require("./agent-https-v5uyVgpk.js");
|
|
35
|
+
const require_constants = require("./constants-C6zJ_38f.js");
|
|
36
36
|
const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
|
|
37
37
|
require("./builtins/system-config/index.js");
|
|
38
38
|
const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
|
|
39
39
|
const require_custom_action_registry = require("./custom-action-registry-JuMHGKEc.js");
|
|
40
|
-
const require_hub_mdns_ciao = require("./hub-mdns-ciao-
|
|
40
|
+
const require_hub_mdns_ciao = require("./hub-mdns-ciao-DNLnbJNG.js");
|
|
41
41
|
const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
|
|
42
42
|
const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
|
|
43
|
-
const require_restore_archive = require("./restore-archive-
|
|
43
|
+
const require_restore_archive = require("./restore-archive-xTqhDFkW.js");
|
|
44
44
|
const require_coral_accelerators = require("./coral-accelerators-BSVsBVzt.js");
|
|
45
45
|
let zod = require("zod");
|
|
46
46
|
let node_crypto = require("node:crypto");
|
|
@@ -3989,6 +3989,17 @@ function matchesLogTags(entryTags, filterTags) {
|
|
|
3989
3989
|
}
|
|
3990
3990
|
return true;
|
|
3991
3991
|
}
|
|
3992
|
+
/**
|
|
3993
|
+
* A `debug.<channel>` line enters the ring only while somebody is watching
|
|
3994
|
+
* that device — a disabled channel never costs ring space. Every other line
|
|
3995
|
+
* is admitted unchanged.
|
|
3996
|
+
*/
|
|
3997
|
+
function admitsDebugLine(entry) {
|
|
3998
|
+
const channel = entry.tags?.logChannel;
|
|
3999
|
+
if (channel === void 0 || !require_dist.isDebugChannelName(channel)) return true;
|
|
4000
|
+
const deviceId = entry.tags?.deviceId;
|
|
4001
|
+
return typeof deviceId === "number" && require_dist.getDebugInterest().wants(channel, deviceId);
|
|
4002
|
+
}
|
|
3992
4003
|
var LogRingBuffer = class {
|
|
3993
4004
|
capacity;
|
|
3994
4005
|
buffer;
|
|
@@ -3999,6 +4010,7 @@ var LogRingBuffer = class {
|
|
|
3999
4010
|
this.buffer = Array.from({ length: capacity });
|
|
4000
4011
|
}
|
|
4001
4012
|
push(entry) {
|
|
4013
|
+
if (!admitsDebugLine(entry)) return;
|
|
4002
4014
|
this.buffer[this.head] = entry;
|
|
4003
4015
|
this.head = (this.head + 1) % this.capacity;
|
|
4004
4016
|
if (this.count < this.capacity) this.count++;
|
|
@@ -24133,6 +24145,7 @@ async function buildAddonContext(runtime, declaration, dataDir, options) {
|
|
|
24133
24145
|
id: addonId,
|
|
24134
24146
|
logger: scopedLogger,
|
|
24135
24147
|
eventBus: scopedEventBus,
|
|
24148
|
+
debug: (0, _camstack_types_addon.createDebugEmitter)(scopedLogger),
|
|
24136
24149
|
addonConfig: options?.addonConfig ?? {},
|
|
24137
24150
|
dataDir: addonDataDir,
|
|
24138
24151
|
nodeDataDir,
|
|
@@ -27547,6 +27560,8 @@ var en_default = {
|
|
|
27547
27560
|
"globalSettings.s_local-access.httpPort.description": "Dedicated listener. Must not equal the HTTPS port (4443 by default).",
|
|
27548
27561
|
"globalSettings.s_local-access.mdnsAdvertise.label": "Announce this hub on the LAN (mDNS)",
|
|
27549
27562
|
"globalSettings.s_local-access.mdnsAdvertise.description": "Lets `camstack login` find the hub without an address. Advertises only the HTTPS address, never a secret. Needs UDP 5353 multicast to reach the LAN (host networking or a dedicated container IP).",
|
|
27563
|
+
"globalSettings.s_local-access.passiveDiscovery.label": "Find new devices on the LAN by listening",
|
|
27564
|
+
"globalSettings.s_local-access.passiveDiscovery.description": "On by default. Listens for mDNS and SSDP announcements and proposes the devices an integration can adopt; a low-cost scan also runs every 30 minutes. It never sends a probe of its own. Needs UDP multicast to reach the LAN (host networking or a dedicated container IP).",
|
|
27550
27565
|
"globalSettings.s_local-access.localHostname.label": "Local hostname",
|
|
27551
27566
|
"globalSettings.s_local-access.localHostname.description": "Advertised to the viewer instead of the raw LAN IP, and added to the certificate SAN. Requires this name to resolve on the LAN (router DNS, mDNS, or a hosts file). Leave empty to keep using the IP.",
|
|
27552
27567
|
"globalSettings.s_loki-logging.title": "Loki",
|
|
@@ -27810,6 +27825,8 @@ var it_default = {
|
|
|
27810
27825
|
"globalSettings.s_local-access.httpPort.description": "Listener dedicato. Non deve coincidere con la porta HTTPS (4443 per impostazione predefinita).",
|
|
27811
27826
|
"globalSettings.s_local-access.mdnsAdvertise.label": "Annuncia questo hub sulla LAN (mDNS)",
|
|
27812
27827
|
"globalSettings.s_local-access.mdnsAdvertise.description": "Permette a `camstack login` di trovare l'hub senza indirizzo. Annuncia solo l'indirizzo HTTPS, mai un segreto. Richiede il multicast UDP 5353 per raggiungere la LAN (rete host o IP dedicato del container).",
|
|
27828
|
+
"globalSettings.s_local-access.passiveDiscovery.label": "Trova nuovi dispositivi in rete restando in ascolto",
|
|
27829
|
+
"globalSettings.s_local-access.passiveDiscovery.description": "Attivo di default. Ascolta gli annunci mDNS e SSDP e propone i dispositivi che un'integrazione puo' adottare; ogni 30 minuti parte anche una scansione leggera. Non invia mai sonde proprie. Richiede che il multicast UDP raggiunga la LAN (rete host o IP dedicato al container).",
|
|
27813
27830
|
"globalSettings.s_local-access.localHostname.label": "Nome host locale",
|
|
27814
27831
|
"globalSettings.s_local-access.localHostname.description": "Annunciato al visualizzatore al posto dell'IP LAN grezzo e aggiunto al SAN del certificato. Richiede che questo nome si risolva sulla LAN (DNS del router, mDNS o file hosts). Lascia vuoto per continuare a usare l'IP.",
|
|
27815
27832
|
"globalSettings.s_loki-logging.title": "Loki",
|