@camstack/system 1.2.462 → 1.2.463
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/dist/{agent-https-CC7jpktS.mjs → agent-https-B9gbXoJI.mjs} +1 -1
- package/dist/{agent-https-C6M6apPV.js → agent-https-DhFIbEwN.js} +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/dist/builtins/alerts/alerts.addon.js +1 -1
- package/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/dist/builtins/autotrack/index.js +1 -1
- package/dist/builtins/autotrack/index.mjs +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/dist/builtins/calendars/calendars.addon.js +1 -1
- package/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/dist/builtins/camera-grid/index.js +1 -1
- package/dist/builtins/camera-grid/index.mjs +1 -1
- package/dist/builtins/composer/composer.addon.js +2 -2
- package/dist/builtins/composer/composer.addon.mjs +2 -2
- package/dist/builtins/console-logging/index.js +1 -1
- package/dist/builtins/console-logging/index.mjs +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.js +2 -2
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +2 -2
- package/dist/builtins/device-history/device-history.addon.js +1 -1
- package/dist/builtins/device-history/device-history.addon.mjs +1 -1
- package/dist/builtins/device-manager/device-manager.addon.js +1 -1
- package/dist/builtins/device-manager/device-manager.addon.mjs +1 -1
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/keychain/index.js +3 -3
- package/dist/builtins/keychain/index.mjs +3 -3
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/dist/builtins/local-network/local-network.addon.js +2 -2
- package/dist/builtins/local-network/local-network.addon.mjs +2 -2
- package/dist/builtins/loki-logging/index.js +1 -1
- package/dist/builtins/loki-logging/index.mjs +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/dist/builtins/platform-probe/index.js +1 -1
- package/dist/builtins/platform-probe/index.mjs +1 -1
- package/dist/builtins/record-entries/index.js +1 -1
- package/dist/builtins/record-entries/index.mjs +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/dist/builtins/snapshot/index.js +1 -1
- package/dist/builtins/snapshot/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/dist/builtins/sqlite-storage/index.js +1 -1
- package/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +2 -2
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +2 -2
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/dist/builtins/system-config/system-config.addon.js +3 -3
- package/dist/builtins/system-config/system-config.addon.mjs +280 -280
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-BlcYzFwY.mjs → composition-sources-CGtooHSL.mjs} +1 -1
- package/dist/{composition-sources-BPnpB9XG.js → composition-sources-oXvmbMHX.js} +1 -1
- package/dist/{constants-7ZMxWr8Z.js → constants-5mrGZxwS.js} +1 -1
- package/dist/{constants-CH5UXe_G.mjs → constants-CdutnpL9.mjs} +1 -1
- package/dist/{device-ca-CUEx7sti.js → device-ca-B3xUzps7.js} +1 -1
- package/dist/{device-ca-BU_gnd-q.mjs → device-ca-DZHKlZlD.mjs} +1 -1
- package/dist/{dist-8tWIDoWp.mjs → dist-C2OBCa-A.mjs} +25 -25
- package/dist/{dist-Ct-4tTeX.js → dist-D9aw_d0G.js} +25 -25
- package/dist/file-host-worker.js +1 -1
- package/dist/file-host-worker.mjs +1 -1
- package/dist/{hub-mdns-ciao-Cuy7LUdz.mjs → hub-mdns-ciao-Bm09NrMS.mjs} +2 -2
- package/dist/{hub-mdns-ciao-DJ-Amqd7.js → hub-mdns-ciao-CFlhVKK6.js} +2 -2
- package/dist/index.js +7 -7
- package/dist/index.mjs +7 -7
- package/dist/{restore-archive-HwOA83v3.js → restore-archive-6zkRREHO.js} +1 -1
- package/dist/{restore-archive-BDua3jO6.mjs → restore-archive-CSOR_tyN.mjs} +78 -78
- package/dist/{wal-maintenance-BvzVehem.mjs → wal-maintenance-Dg6IzSgz.mjs} +0 -0
- package/dist/{wal-maintenance-DBvuVU9s.js → wal-maintenance-jXcOxm2T.js} +0 -0
- package/package.json +1 -1
|
@@ -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-D9aw_d0G.js");
|
|
7
7
|
const require_formatter = require("../../formatter-DqAKDlvN.js");
|
|
8
8
|
const require_log_file_read_protocol = require("../../log-file-read-protocol-D0WcLbIV.js");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ln as logDestinationCapability, ei as BaseAddon } from "../../dist-
|
|
1
|
+
import { Ln as logDestinationCapability, ei as BaseAddon } from "../../dist-C2OBCa-A.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-B7qW8bPJ.mjs";
|
|
3
3
|
import { a as LogFileIndexStore, i as serveRead, n as isFromReader, t as CancelBook } from "../../log-file-read-protocol-B7M3X3bT.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $r as errMsg, Kr as compositionSourceKey } from "./dist-
|
|
1
|
+
import { $r as errMsg, Kr as compositionSourceKey } from "./dist-C2OBCa-A.mjs";
|
|
2
2
|
//#region src/builtins/core-blocks/composition-sources.ts
|
|
3
3
|
/**
|
|
4
4
|
* Describe what a composition reads and writes for SAVE-time validation
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** `secret://system/global/meshCaKey` — EC P-256 PKCS#8 PEM of the hub mesh CA. */
|
|
2
|
-
var MESH_CA_KEY_REF = require("./dist-
|
|
2
|
+
var MESH_CA_KEY_REF = require("./dist-D9aw_d0G.js").buildSecretRef({
|
|
3
3
|
owner: "system",
|
|
4
4
|
scope: { kind: "global" },
|
|
5
5
|
fieldPath: "meshCaKey"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as DEVICE_SAN_CREDENTIAL_PREFIX, Fi as buildSecretRef, j as DEVICE_SAN_USER_PREFIX } from "./dist-
|
|
1
|
+
import { A as DEVICE_SAN_CREDENTIAL_PREFIX, Fi as buildSecretRef, j as DEVICE_SAN_USER_PREFIX } from "./dist-C2OBCa-A.mjs";
|
|
2
2
|
import { S as backdatedNotBefore, a as KeyUsageFlags, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension } from "./x509.es-DK__ETIe.mjs";
|
|
3
3
|
import { X509Certificate, createPublicKey, randomBytes, verify, webcrypto } from "node:crypto";
|
|
4
4
|
//#region src/auth/jwt-signing-key.ts
|
|
@@ -745,7 +745,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
745
745
|
return EventCategory;
|
|
746
746
|
}({});
|
|
747
747
|
//#endregion
|
|
748
|
-
//#region ../types/dist/sleep-
|
|
748
|
+
//#region ../types/dist/sleep-_sV1BE2f.mjs
|
|
749
749
|
/**
|
|
750
750
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
751
751
|
* window to float samples (D455).
|
|
@@ -857,21 +857,21 @@ function collectSecretConfigKeys(schema) {
|
|
|
857
857
|
for (const section of sectionsOf(schema)) for (const field of fieldsOf(section)) walkField(field, keys);
|
|
858
858
|
return keys;
|
|
859
859
|
}
|
|
860
|
-
function isRecord$
|
|
860
|
+
function isRecord$7(value) {
|
|
861
861
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
862
862
|
}
|
|
863
863
|
function sectionsOf(schema) {
|
|
864
|
-
if (!isRecord$
|
|
864
|
+
if (!isRecord$7(schema)) return [];
|
|
865
865
|
const sections = schema["sections"];
|
|
866
866
|
return Array.isArray(sections) ? sections : [];
|
|
867
867
|
}
|
|
868
868
|
function fieldsOf(node) {
|
|
869
|
-
if (!isRecord$
|
|
869
|
+
if (!isRecord$7(node)) return [];
|
|
870
870
|
const fields = node["fields"];
|
|
871
871
|
return Array.isArray(fields) ? fields : [];
|
|
872
872
|
}
|
|
873
873
|
function walkField(field, out) {
|
|
874
|
-
if (!isRecord$
|
|
874
|
+
if (!isRecord$7(field)) return;
|
|
875
875
|
const type = field["type"];
|
|
876
876
|
const key = field["key"];
|
|
877
877
|
if ((type === "password" || field["secret"] === true) && typeof key === "string" && key.length > 0) out.add(key);
|
|
@@ -909,7 +909,7 @@ function walkField(field, out) {
|
|
|
909
909
|
var SECRET_CLEAR = { $secretClear: true };
|
|
910
910
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
911
911
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
912
|
-
function isRecord$
|
|
912
|
+
function isRecord$6(value) {
|
|
913
913
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
914
914
|
}
|
|
915
915
|
function makeSecretMarker(ref) {
|
|
@@ -920,16 +920,16 @@ function makeSecretMarker(ref) {
|
|
|
920
920
|
}
|
|
921
921
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
922
922
|
function isSecretMarker(value) {
|
|
923
|
-
if (!isRecord$
|
|
923
|
+
if (!isRecord$6(value)) return false;
|
|
924
924
|
const ref = value["$secret"];
|
|
925
925
|
return typeof ref === "string" && ref.length > 0;
|
|
926
926
|
}
|
|
927
927
|
/** Anything carrying a `$secret` key — a stored marker or a UI view of one. */
|
|
928
928
|
function isSecretMarkerLike(value) {
|
|
929
|
-
return isRecord$
|
|
929
|
+
return isRecord$6(value) && Object.prototype.hasOwnProperty.call(value, "$secret");
|
|
930
930
|
}
|
|
931
931
|
function isSecretClear(value) {
|
|
932
|
-
return isRecord$
|
|
932
|
+
return isRecord$6(value) && value["$secretClear"] === true;
|
|
933
933
|
}
|
|
934
934
|
/**
|
|
935
935
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -1598,7 +1598,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
1598
1598
|
}
|
|
1599
1599
|
};
|
|
1600
1600
|
var KEEP = { kind: "keep" };
|
|
1601
|
-
function isRecord$
|
|
1601
|
+
function isRecord$5(value) {
|
|
1602
1602
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1603
1603
|
}
|
|
1604
1604
|
function defaultMintId() {
|
|
@@ -1611,7 +1611,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
1611
1611
|
return out;
|
|
1612
1612
|
}
|
|
1613
1613
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
1614
|
-
else if (isRecord$
|
|
1614
|
+
else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
1615
1615
|
return out;
|
|
1616
1616
|
}
|
|
1617
1617
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -1666,7 +1666,7 @@ function rowId(row, idKey) {
|
|
|
1666
1666
|
return null;
|
|
1667
1667
|
}
|
|
1668
1668
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
1669
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
1669
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
|
|
1670
1670
|
if (!Array.isArray(incoming)) {
|
|
1671
1671
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
1672
1672
|
return {
|
|
@@ -1682,7 +1682,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
1682
1682
|
const kept = /* @__PURE__ */ new Set();
|
|
1683
1683
|
const rows = [];
|
|
1684
1684
|
for (const row of incoming) {
|
|
1685
|
-
if (!isRecord$
|
|
1685
|
+
if (!isRecord$5(row)) {
|
|
1686
1686
|
rows.push(row);
|
|
1687
1687
|
continue;
|
|
1688
1688
|
}
|
|
@@ -1707,7 +1707,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
1707
1707
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
1708
1708
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
1709
1709
|
case "object": {
|
|
1710
|
-
if (!isRecord$
|
|
1710
|
+
if (!isRecord$5(incoming)) {
|
|
1711
1711
|
if (incoming === void 0) return KEEP;
|
|
1712
1712
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
1713
1713
|
return {
|
|
@@ -1715,7 +1715,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
1715
1715
|
value: incoming
|
|
1716
1716
|
};
|
|
1717
1717
|
}
|
|
1718
|
-
const storedObj = isRecord$
|
|
1718
|
+
const storedObj = isRecord$5(stored) ? stored : {};
|
|
1719
1719
|
return {
|
|
1720
1720
|
kind: "value",
|
|
1721
1721
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -1838,7 +1838,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
1838
1838
|
value: items
|
|
1839
1839
|
};
|
|
1840
1840
|
}
|
|
1841
|
-
if (isRecord$
|
|
1841
|
+
if (isRecord$5(v)) {
|
|
1842
1842
|
const out = {};
|
|
1843
1843
|
for (const [k, child] of Object.entries(v)) {
|
|
1844
1844
|
const s = substitute(child);
|
|
@@ -1870,7 +1870,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
1870
1870
|
this.name = "SecretOverwriteRefusedError";
|
|
1871
1871
|
}
|
|
1872
1872
|
};
|
|
1873
|
-
function isRecord$
|
|
1873
|
+
function isRecord$4(value) {
|
|
1874
1874
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1875
1875
|
}
|
|
1876
1876
|
function resolvedValue(pass, marker) {
|
|
@@ -1899,7 +1899,7 @@ function inArray(pass, incoming, stored) {
|
|
|
1899
1899
|
return incoming.map((item, index) => {
|
|
1900
1900
|
const twin = stored[index];
|
|
1901
1901
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
1902
|
-
if (isRecord$
|
|
1902
|
+
if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
|
|
1903
1903
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
1904
1904
|
return item;
|
|
1905
1905
|
});
|
|
@@ -1910,7 +1910,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
1910
1910
|
const twin = stored[key];
|
|
1911
1911
|
if (isSecretMarker(twin)) {
|
|
1912
1912
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
1913
|
-
} else if (isRecord$
|
|
1913
|
+
} else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
1914
1914
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
1915
1915
|
}
|
|
1916
1916
|
return out;
|
|
@@ -1918,7 +1918,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
1918
1918
|
async function walk(pass, incoming, stored) {
|
|
1919
1919
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
1920
1920
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
1921
|
-
if (!isRecord$
|
|
1921
|
+
if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
|
|
1922
1922
|
const out = { ...incoming };
|
|
1923
1923
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
1924
1924
|
return out;
|
|
@@ -1949,7 +1949,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
1949
1949
|
function isJsonEqual(a, b) {
|
|
1950
1950
|
if (Object.is(a, b)) return true;
|
|
1951
1951
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
1952
|
-
if (isRecord$
|
|
1952
|
+
if (isRecord$4(a) && isRecord$4(b)) {
|
|
1953
1953
|
const keys = Object.keys(a);
|
|
1954
1954
|
if (keys.length !== Object.keys(b).length) return false;
|
|
1955
1955
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -1973,7 +1973,7 @@ function markerKeysOf(blob, owner) {
|
|
|
1973
1973
|
}
|
|
1974
1974
|
function nodeFromStored(value, owner) {
|
|
1975
1975
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
1976
|
-
if (!isRecord$
|
|
1976
|
+
if (!isRecord$4(value)) return null;
|
|
1977
1977
|
const children = /* @__PURE__ */ new Map();
|
|
1978
1978
|
for (const [key, child] of Object.entries(value)) {
|
|
1979
1979
|
const node = nodeFromStored(child, owner);
|
|
@@ -3507,11 +3507,11 @@ function secretArrayPrefixes(path) {
|
|
|
3507
3507
|
}
|
|
3508
3508
|
return prefixes;
|
|
3509
3509
|
}
|
|
3510
|
-
function isRecord$
|
|
3510
|
+
function isRecord$3(value) {
|
|
3511
3511
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
3512
3512
|
}
|
|
3513
3513
|
function elementId(element, idKey, declared, prefix) {
|
|
3514
|
-
const id = isRecord$
|
|
3514
|
+
const id = isRecord$3(element) ? element[idKey] : void 0;
|
|
3515
3515
|
if (typeof id !== "string" || id.length === 0) throw new InvalidRecordError(`"${declared}": every element of "${prefix}" needs a non-empty string "${idKey}" to carry a secret`);
|
|
3516
3516
|
return id;
|
|
3517
3517
|
}
|
|
@@ -3522,7 +3522,7 @@ function elementId(element, idKey, declared, prefix) {
|
|
|
3522
3522
|
*/
|
|
3523
3523
|
var REMOVE_LEAF = Symbol("remove-leaf");
|
|
3524
3524
|
function mapAt(node, segments, index, walkedKeys, concretePrefix, declared, arrayKeys, visit) {
|
|
3525
|
-
if (!isRecord$
|
|
3525
|
+
if (!isRecord$3(node)) return node;
|
|
3526
3526
|
const segment = segments[index];
|
|
3527
3527
|
if (segment === void 0) return node;
|
|
3528
3528
|
if (!Object.prototype.hasOwnProperty.call(node, segment.key)) return node;
|
|
@@ -745,7 +745,7 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
745
745
|
return EventCategory;
|
|
746
746
|
}({});
|
|
747
747
|
//#endregion
|
|
748
|
-
//#region ../types/dist/sleep-
|
|
748
|
+
//#region ../types/dist/sleep-_sV1BE2f.mjs
|
|
749
749
|
/**
|
|
750
750
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
751
751
|
* window to float samples (D455).
|
|
@@ -857,21 +857,21 @@ function collectSecretConfigKeys(schema) {
|
|
|
857
857
|
for (const section of sectionsOf(schema)) for (const field of fieldsOf(section)) walkField(field, keys);
|
|
858
858
|
return keys;
|
|
859
859
|
}
|
|
860
|
-
function isRecord$
|
|
860
|
+
function isRecord$7(value) {
|
|
861
861
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
862
862
|
}
|
|
863
863
|
function sectionsOf(schema) {
|
|
864
|
-
if (!isRecord$
|
|
864
|
+
if (!isRecord$7(schema)) return [];
|
|
865
865
|
const sections = schema["sections"];
|
|
866
866
|
return Array.isArray(sections) ? sections : [];
|
|
867
867
|
}
|
|
868
868
|
function fieldsOf(node) {
|
|
869
|
-
if (!isRecord$
|
|
869
|
+
if (!isRecord$7(node)) return [];
|
|
870
870
|
const fields = node["fields"];
|
|
871
871
|
return Array.isArray(fields) ? fields : [];
|
|
872
872
|
}
|
|
873
873
|
function walkField(field, out) {
|
|
874
|
-
if (!isRecord$
|
|
874
|
+
if (!isRecord$7(field)) return;
|
|
875
875
|
const type = field["type"];
|
|
876
876
|
const key = field["key"];
|
|
877
877
|
if ((type === "password" || field["secret"] === true) && typeof key === "string" && key.length > 0) out.add(key);
|
|
@@ -909,7 +909,7 @@ function walkField(field, out) {
|
|
|
909
909
|
var SECRET_CLEAR = { $secretClear: true };
|
|
910
910
|
/** The `'***'` token D634 redaction writes for non-admins. */
|
|
911
911
|
var LEGACY_DEVICE_REDACTION = "***";
|
|
912
|
-
function isRecord$
|
|
912
|
+
function isRecord$6(value) {
|
|
913
913
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
914
914
|
}
|
|
915
915
|
function makeSecretMarker(ref) {
|
|
@@ -920,16 +920,16 @@ function makeSecretMarker(ref) {
|
|
|
920
920
|
}
|
|
921
921
|
/** A stored marker: an object whose `$secret` is a non-empty string. */
|
|
922
922
|
function isSecretMarker(value) {
|
|
923
|
-
if (!isRecord$
|
|
923
|
+
if (!isRecord$6(value)) return false;
|
|
924
924
|
const ref = value["$secret"];
|
|
925
925
|
return typeof ref === "string" && ref.length > 0;
|
|
926
926
|
}
|
|
927
927
|
/** Anything carrying a `$secret` key — a stored marker or a UI view of one. */
|
|
928
928
|
function isSecretMarkerLike(value) {
|
|
929
|
-
return isRecord$
|
|
929
|
+
return isRecord$6(value) && Object.prototype.hasOwnProperty.call(value, "$secret");
|
|
930
930
|
}
|
|
931
931
|
function isSecretClear(value) {
|
|
932
|
-
return isRecord$
|
|
932
|
+
return isRecord$6(value) && value["$secretClear"] === true;
|
|
933
933
|
}
|
|
934
934
|
/**
|
|
935
935
|
* The UI view of a stored secret field value: a marker becomes "set", inline
|
|
@@ -1598,7 +1598,7 @@ var KeychainWriteRefusedError = class extends Error {
|
|
|
1598
1598
|
}
|
|
1599
1599
|
};
|
|
1600
1600
|
var KEEP = { kind: "keep" };
|
|
1601
|
-
function isRecord$
|
|
1601
|
+
function isRecord$5(value) {
|
|
1602
1602
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1603
1603
|
}
|
|
1604
1604
|
function defaultMintId() {
|
|
@@ -1611,7 +1611,7 @@ function collectSecretMarkerRefs(value, out = []) {
|
|
|
1611
1611
|
return out;
|
|
1612
1612
|
}
|
|
1613
1613
|
if (Array.isArray(value)) for (const item of value) collectSecretMarkerRefs(item, out);
|
|
1614
|
-
else if (isRecord$
|
|
1614
|
+
else if (isRecord$5(value)) for (const child of Object.values(value)) collectSecretMarkerRefs(child, out);
|
|
1615
1615
|
return out;
|
|
1616
1616
|
}
|
|
1617
1617
|
async function storedValueEquals(secrets, marker, candidate) {
|
|
@@ -1666,7 +1666,7 @@ function rowId(row, idKey) {
|
|
|
1666
1666
|
return null;
|
|
1667
1667
|
}
|
|
1668
1668
|
async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
1669
|
-
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$
|
|
1669
|
+
const storedRows = Array.isArray(stored) ? stored.filter(isRecord$5) : [];
|
|
1670
1670
|
if (!Array.isArray(incoming)) {
|
|
1671
1671
|
ctx.deletes.push(...collectSecretMarkerRefs(storedRows));
|
|
1672
1672
|
return {
|
|
@@ -1682,7 +1682,7 @@ async function writeArray(ctx, node, incoming, stored, fieldPath) {
|
|
|
1682
1682
|
const kept = /* @__PURE__ */ new Set();
|
|
1683
1683
|
const rows = [];
|
|
1684
1684
|
for (const row of incoming) {
|
|
1685
|
-
if (!isRecord$
|
|
1685
|
+
if (!isRecord$5(row)) {
|
|
1686
1686
|
rows.push(row);
|
|
1687
1687
|
continue;
|
|
1688
1688
|
}
|
|
@@ -1707,7 +1707,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
1707
1707
|
case "leaf": return writeLeaf(ctx, incoming, stored, fieldPath);
|
|
1708
1708
|
case "array": return writeArray(ctx, node, incoming, stored, fieldPath);
|
|
1709
1709
|
case "object": {
|
|
1710
|
-
if (!isRecord$
|
|
1710
|
+
if (!isRecord$5(incoming)) {
|
|
1711
1711
|
if (incoming === void 0) return KEEP;
|
|
1712
1712
|
ctx.deletes.push(...collectSecretMarkerRefs(stored));
|
|
1713
1713
|
return {
|
|
@@ -1715,7 +1715,7 @@ async function writeNode(ctx, node, incoming, stored, fieldPath) {
|
|
|
1715
1715
|
value: incoming
|
|
1716
1716
|
};
|
|
1717
1717
|
}
|
|
1718
|
-
const storedObj = isRecord$
|
|
1718
|
+
const storedObj = isRecord$5(stored) ? stored : {};
|
|
1719
1719
|
return {
|
|
1720
1720
|
kind: "value",
|
|
1721
1721
|
value: await writeMembers(ctx, node.children, incoming, storedObj, (m) => `${fieldPath}.${m}`)
|
|
@@ -1838,7 +1838,7 @@ async function resolveSecretMarkers(value, secrets, options = {}) {
|
|
|
1838
1838
|
value: items
|
|
1839
1839
|
};
|
|
1840
1840
|
}
|
|
1841
|
-
if (isRecord$
|
|
1841
|
+
if (isRecord$5(v)) {
|
|
1842
1842
|
const out = {};
|
|
1843
1843
|
for (const [k, child] of Object.entries(v)) {
|
|
1844
1844
|
const s = substitute(child);
|
|
@@ -1870,7 +1870,7 @@ var SecretOverwriteRefusedError = class extends Error {
|
|
|
1870
1870
|
this.name = "SecretOverwriteRefusedError";
|
|
1871
1871
|
}
|
|
1872
1872
|
};
|
|
1873
|
-
function isRecord$
|
|
1873
|
+
function isRecord$4(value) {
|
|
1874
1874
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
1875
1875
|
}
|
|
1876
1876
|
function resolvedValue(pass, marker) {
|
|
@@ -1899,7 +1899,7 @@ function inArray(pass, incoming, stored) {
|
|
|
1899
1899
|
return incoming.map((item, index) => {
|
|
1900
1900
|
const twin = stored[index];
|
|
1901
1901
|
if (isSecretMarker(twin)) return typeof item === "string" && item === resolvedValue(pass, twin) ? twin : item;
|
|
1902
|
-
if (isRecord$
|
|
1902
|
+
if (isRecord$4(item) && isRecord$4(twin)) return inArrayRow(pass, item, twin);
|
|
1903
1903
|
if (Array.isArray(item) && Array.isArray(twin)) return inArray(pass, item, twin);
|
|
1904
1904
|
return item;
|
|
1905
1905
|
});
|
|
@@ -1910,7 +1910,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
1910
1910
|
const twin = stored[key];
|
|
1911
1911
|
if (isSecretMarker(twin)) {
|
|
1912
1912
|
if (typeof value === "string" && value === resolvedValue(pass, twin)) out[key] = twin;
|
|
1913
|
-
} else if (isRecord$
|
|
1913
|
+
} else if (isRecord$4(value) && isRecord$4(twin)) out[key] = inArrayRow(pass, value, twin);
|
|
1914
1914
|
else if (Array.isArray(value) && Array.isArray(twin)) out[key] = inArray(pass, value, twin);
|
|
1915
1915
|
}
|
|
1916
1916
|
return out;
|
|
@@ -1918,7 +1918,7 @@ function inArrayRow(pass, incoming, stored) {
|
|
|
1918
1918
|
async function walk(pass, incoming, stored) {
|
|
1919
1919
|
if (isSecretMarker(stored)) return atMarker(pass, incoming, stored);
|
|
1920
1920
|
if (Array.isArray(incoming) && Array.isArray(stored)) return inArray(pass, incoming, stored);
|
|
1921
|
-
if (!isRecord$
|
|
1921
|
+
if (!isRecord$4(incoming) || !isRecord$4(stored)) return incoming;
|
|
1922
1922
|
const out = { ...incoming };
|
|
1923
1923
|
for (const [key, value] of Object.entries(incoming)) out[key] = await walk(pass, value, stored[key]);
|
|
1924
1924
|
return out;
|
|
@@ -1949,7 +1949,7 @@ async function restoreUnchangedSecrets(input) {
|
|
|
1949
1949
|
function isJsonEqual(a, b) {
|
|
1950
1950
|
if (Object.is(a, b)) return true;
|
|
1951
1951
|
if (Array.isArray(a)) return Array.isArray(b) && a.length === b.length && a.every((v, i) => isJsonEqual(v, b[i]));
|
|
1952
|
-
if (isRecord$
|
|
1952
|
+
if (isRecord$4(a) && isRecord$4(b)) {
|
|
1953
1953
|
const keys = Object.keys(a);
|
|
1954
1954
|
if (keys.length !== Object.keys(b).length) return false;
|
|
1955
1955
|
return keys.every((k) => Object.prototype.hasOwnProperty.call(b, k) && isJsonEqual(a[k], b[k]));
|
|
@@ -1973,7 +1973,7 @@ function markerKeysOf(blob, owner) {
|
|
|
1973
1973
|
}
|
|
1974
1974
|
function nodeFromStored(value, owner) {
|
|
1975
1975
|
if (isSecretMarker(value)) return isSecretRefOwnedBy(value.$secret, owner) ? { kind: "leaf" } : null;
|
|
1976
|
-
if (!isRecord$
|
|
1976
|
+
if (!isRecord$4(value)) return null;
|
|
1977
1977
|
const children = /* @__PURE__ */ new Map();
|
|
1978
1978
|
for (const [key, child] of Object.entries(value)) {
|
|
1979
1979
|
const node = nodeFromStored(child, owner);
|
|
@@ -3507,11 +3507,11 @@ function secretArrayPrefixes(path) {
|
|
|
3507
3507
|
}
|
|
3508
3508
|
return prefixes;
|
|
3509
3509
|
}
|
|
3510
|
-
function isRecord$
|
|
3510
|
+
function isRecord$3(value) {
|
|
3511
3511
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
3512
3512
|
}
|
|
3513
3513
|
function elementId(element, idKey, declared, prefix) {
|
|
3514
|
-
const id = isRecord$
|
|
3514
|
+
const id = isRecord$3(element) ? element[idKey] : void 0;
|
|
3515
3515
|
if (typeof id !== "string" || id.length === 0) throw new InvalidRecordError(`"${declared}": every element of "${prefix}" needs a non-empty string "${idKey}" to carry a secret`);
|
|
3516
3516
|
return id;
|
|
3517
3517
|
}
|
|
@@ -3522,7 +3522,7 @@ function elementId(element, idKey, declared, prefix) {
|
|
|
3522
3522
|
*/
|
|
3523
3523
|
var REMOVE_LEAF = Symbol("remove-leaf");
|
|
3524
3524
|
function mapAt(node, segments, index, walkedKeys, concretePrefix, declared, arrayKeys, visit) {
|
|
3525
|
-
if (!isRecord$
|
|
3525
|
+
if (!isRecord$3(node)) return node;
|
|
3526
3526
|
const segment = segments[index];
|
|
3527
3527
|
if (segment === void 0) return node;
|
|
3528
3528
|
if (!Object.prototype.hasOwnProperty.call(node, segment.key)) return node;
|
package/dist/file-host-worker.js
CHANGED
|
@@ -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-jXcOxm2T.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 { C as RecordsEngine, D as callVector, E as callRecords, O as controlTargetOf, T as callData, _ as collectTransferables, a as WalMaintenance, b as isFileHostWorkerData, h as serializeError, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, w as callControl, x as trustInput, y as isFileHostRequest } from "./wal-maintenance-
|
|
1
|
+
import { C as RecordsEngine, D as callVector, E as callRecords, O as controlTargetOf, T as callData, _ as collectTransferables, a as WalMaintenance, b as isFileHostWorkerData, h as serializeError, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, w as callControl, x as trustInput, y as isFileHostRequest } from "./wal-maintenance-Dg6IzSgz.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 { xa as userError } from "./dist-
|
|
2
|
+
import { xa as userError } from "./dist-C2OBCa-A.mjs";
|
|
3
3
|
import { f as X509Certificate$1 } from "./x509.es-DK__ETIe.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-B9gbXoJI.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-D9aw_d0G.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-C4cOo48M.js");
|
|
4
|
-
const require_agent_https = require("./agent-https-
|
|
4
|
+
const require_agent_https = require("./agent-https-DhFIbEwN.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/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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-D9aw_d0G.js");
|
|
4
4
|
const require_read_all_rows$1 = require("./read-all-rows-CVoO1ONM.js");
|
|
5
|
-
const require_device_ca = require("./device-ca-
|
|
5
|
+
const require_device_ca = require("./device-ca-B3xUzps7.js");
|
|
6
6
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
7
7
|
require("./builtins/alerts/index.js");
|
|
8
8
|
const require_builtins_calendars_calendars_addon = require("./builtins/calendars/calendars.addon.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-jXcOxm2T.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-DhFIbEwN.js");
|
|
35
|
+
const require_constants = require("./constants-5mrGZxwS.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-MRyes5j0.js");
|
|
40
|
-
const require_hub_mdns_ciao = require("./hub-mdns-ciao-
|
|
40
|
+
const require_hub_mdns_ciao = require("./hub-mdns-ciao-CFlhVKK6.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-6zkRREHO.js");
|
|
44
44
|
const require_coral_accelerators = require("./coral-accelerators-oUXmmbc2.js");
|
|
45
45
|
let zod = require("zod");
|
|
46
46
|
let node_crypto = require("node:crypto");
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as __require } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { $r as errMsg$1, Ar as supportedRuntimes, Bi as createEvent$1, Ca as EventCategory$1, Cn as isCollectionArrayMethod, Dn as isObjectInput, J as METHOD_ACCESS_MAP, Jn as objectInputDeclaresAddonId, K as LOG_LEVEL_RANK, Ki as expandCapMethods, Mi as asNumber, Ni as asString$1, On as isVoidInput, Pn as lifecycleJobSchema, Rn as logLevelAtMost, Sa as withoutCallerStamp, Sn as isArrayOutputSchema, Sr as splitTranslationRef, Ui as defineRecordKinds, Wi as emitDownForOwnedCaps, Yn as objectInputDeclaresRequiredDeviceId, ai as DEVICE_STATUS_METHOD, bi as ReadinessRegistry, ca as parseJsonUnknown, d as CATALOG_LANGS, er as procedureAuthKey, fa as resolveCapMount, fn as extractNestedAddonId, fr as resolveMethodAuth, gr as scopesAllowDeviceCap, hr as scopesAllowAddon, ii as DEVICE_SETTINGS_CONTRIBUTION_METHODS, ji as asJsonObject$1, kn as kebabToCamel$1, ma as scopeKey, n as AGENT_MDNS_TXT_KEYS, ni as CALLER_STAMPED_CAPABILITIES$1, r as ALL_CAPABILITY_DEFINITIONS, ri as DATAPLANE_SECRET_HEADER$1, sa as parseJsonObject, t as AGENT_MDNS_SERVICE_TYPE, ua as readinessKey, v as CatalogFileSchema, vn as interpolate, vt as addonSettingsCapability, xa as userError, xi as ReadinessTimeoutError, yi as RUNTIME_DEFAULTS, zn as looseSchema } from "./dist-
|
|
2
|
+
import { $r as errMsg$1, Ar as supportedRuntimes, Bi as createEvent$1, Ca as EventCategory$1, Cn as isCollectionArrayMethod, Dn as isObjectInput, J as METHOD_ACCESS_MAP, Jn as objectInputDeclaresAddonId, K as LOG_LEVEL_RANK, Ki as expandCapMethods, Mi as asNumber, Ni as asString$1, On as isVoidInput, Pn as lifecycleJobSchema, Rn as logLevelAtMost, Sa as withoutCallerStamp, Sn as isArrayOutputSchema, Sr as splitTranslationRef, Ui as defineRecordKinds, Wi as emitDownForOwnedCaps, Yn as objectInputDeclaresRequiredDeviceId, ai as DEVICE_STATUS_METHOD, bi as ReadinessRegistry, ca as parseJsonUnknown, d as CATALOG_LANGS, er as procedureAuthKey, fa as resolveCapMount, fn as extractNestedAddonId, fr as resolveMethodAuth, gr as scopesAllowDeviceCap, hr as scopesAllowAddon, ii as DEVICE_SETTINGS_CONTRIBUTION_METHODS, ji as asJsonObject$1, kn as kebabToCamel$1, ma as scopeKey, n as AGENT_MDNS_TXT_KEYS, ni as CALLER_STAMPED_CAPABILITIES$1, r as ALL_CAPABILITY_DEFINITIONS, ri as DATAPLANE_SECRET_HEADER$1, sa as parseJsonObject, t as AGENT_MDNS_SERVICE_TYPE, ua as readinessKey, v as CatalogFileSchema, vn as interpolate, vt as addonSettingsCapability, xa as userError, xi as ReadinessTimeoutError, yi as RUNTIME_DEFAULTS, zn as looseSchema } from "./dist-C2OBCa-A.mjs";
|
|
3
3
|
import { t as require_read_all_rows } from "./read-all-rows-TaPqdWNF.mjs";
|
|
4
|
-
import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-
|
|
4
|
+
import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-DZHKlZlD.mjs";
|
|
5
5
|
import { AlertCenterAddon } from "./builtins/alerts/alerts.addon.mjs";
|
|
6
6
|
import "./builtins/alerts/index.mjs";
|
|
7
7
|
import { CalendarsAddon } from "./builtins/calendars/calendars.addon.mjs";
|
|
@@ -25,21 +25,21 @@ import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index
|
|
|
25
25
|
import NativeMetricsAddon, { a as NativeMetricsProvider, n as nodeProcReader, r as parseProcStat } from "./builtins/native-metrics/native-metrics.addon.mjs";
|
|
26
26
|
import { DeviceHistoryAddon } from "./builtins/device-history/device-history.addon.mjs";
|
|
27
27
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
|
|
28
|
-
import { C as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-
|
|
28
|
+
import { C as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-Dg6IzSgz.mjs";
|
|
29
29
|
import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
|
|
30
30
|
import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
|
|
31
31
|
import { StorageOrchestratorAddon, a as stripForwardedCaller, i as createHubCapForwardService, l as STORAGE_DRAIN_STATE_LEGACY, n as HUB_CAP_FWD_ACTION, o as buildStorageLocationRegistry, r as HUB_CAP_FWD_SERVICE, t as StorageOrchestratorService, u as storageOrchestratorRecordKinds } from "./builtins/storage-orchestrator/storage-orchestrator.addon.mjs";
|
|
32
32
|
import "./builtins/storage-orchestrator/index.mjs";
|
|
33
|
-
import { A as buildNameConstraintSet, B as setProcessAgentHttpsNames, C as LEAF_RENEWAL_WINDOW_DAYS, E as evaluateExistingCert, F as readNameConstraints, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, N as permitsIdentity, O as PERMITTED_DNS_SUFFIXES, P as permitsName, R as AgentHttpsNames, S as CA_VALIDITY_DAYS, T as SERVER_AUTH_OID, a as collectAgentNames, b as collectCertIdentity, c as installAgentHttps, d as issueAgentHttpsLeaf, f as loadAgentHttps, h as CA_COMMON_NAME, i as certificateNames, j as isConstrainedCa, k as PERMITTED_IP_RANGES, l as isContainerBridgeAddress, m as pinnedHttpsCaFingerprint, n as acceptAgentSans, o as createAgentHttpsRequest, p as pemDigest, r as agentHttpsPaths, s as describeHttpsLeaf, t as AgentHttpsInstallError, u as isPrivateAddress, w as MAX_LEAF_VALIDITY_DAYS, x as systemHostFacts, y as localCaCommonName, z as getProcessAgentHttpsNames } from "./agent-https-
|
|
34
|
-
import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "./constants-
|
|
33
|
+
import { A as buildNameConstraintSet, B as setProcessAgentHttpsNames, C as LEAF_RENEWAL_WINDOW_DAYS, E as evaluateExistingCert, F as readNameConstraints, I as AGENT_HTTPS_NAMES_COLLECTION, L as AGENT_HTTPS_NAMES_COLUMNS, M as isLocalOnlyHostname, N as permitsIdentity, O as PERMITTED_DNS_SUFFIXES, P as permitsName, R as AgentHttpsNames, S as CA_VALIDITY_DAYS, T as SERVER_AUTH_OID, a as collectAgentNames, b as collectCertIdentity, c as installAgentHttps, d as issueAgentHttpsLeaf, f as loadAgentHttps, h as CA_COMMON_NAME, i as certificateNames, j as isConstrainedCa, k as PERMITTED_IP_RANGES, l as isContainerBridgeAddress, m as pinnedHttpsCaFingerprint, n as acceptAgentSans, o as createAgentHttpsRequest, p as pemDigest, r as agentHttpsPaths, s as describeHttpsLeaf, t as AgentHttpsInstallError, u as isPrivateAddress, w as MAX_LEAF_VALIDITY_DAYS, x as systemHostFacts, y as localCaCommonName, z as getProcessAgentHttpsNames } from "./agent-https-B9gbXoJI.mjs";
|
|
34
|
+
import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "./constants-CdutnpL9.mjs";
|
|
35
35
|
import { $ as generateMeshKeyPair, A as setProcessMeshPeerTransportLookup, B as describeMeshLeaf, C as setProcessMeshTlsEnabler, D as getProcessPeerLeaf, E as getProcessNodeMeshTransport, F as setProcessMeshTlsListenerState, G as MeshCaKeeper, H as setProcessMeshCertificateRegistry, I as MESH_NODE_CERTIFICATES_COLLECTION, J as caFingerprint, K as getProcessMeshCaState, L as MESH_NODE_CERTIFICATES_COLUMNS, M as revokeMeshCertificate, N as getProcessMeshTlsListenerState, O as isProcessVerifiedMeshPeer, P as openMeshTlsWhenRevocationsLoaded, Q as generateMeshCa, R as MeshCertificateRegistry, S as ServiceBroker, SystemConfigAddon, T as emitProcessNodeRegistered, U as MeshCrl, V as getProcessMeshCertificateRegistry, W as processMeshCrl, X as createMeshCsrPem, Y as caFingerprintCompact, Z as exportMeshPrivateKeyPem, _ as signPairingProof, _t as readCidrSetting, a as hubHostFromMeshAddress, at as AGENT_UI_UNLOCK_TTL_MS, b as TlsTcpTransporter, c as PAIRING_MAX_SESSIONS, ct as AGENT_UI_UNLOCK_VERSION, d as PAIRING_PROTOCOL, dt as mintAgentUiUnlockTicket, et as isValidAgentNodeId, f as PAIRING_TTL_MS, ft as parseAgentDashboardOrigins, g as keyFingerprintShort, gt as parseCidrList, h as describeCsr, ht as normalizeIp, i as AgentPairing, it as AGENT_DASHBOARD_ORIGINS_FIELD, j as renewMeshCertificate, k as onProcessNodeRegistered, l as PAIRING_PATHS, lt as UnlockTicketJtiStore, m as computePairingSas, mt as createCidrMatcher, n as HubPairing, nt as issueMeshLeafFromCsr, o as PAIRING_CODE_DIGITS, ot as AGENT_UI_UNLOCK_TYP, p as computePairingCommitment, pt as verifyAgentUiUnlockTicket, q as requireProcessMeshCa, r as PairingHttpError, rt as loadMeshCa, s as PAIRING_MAX_CODE_ATTEMPTS, st as AGENT_UI_UNLOCK_USE, tt as issueMeshLeafForNode, u as PAIRING_PIN_DIGITS, ut as isAllowedAgentDashboardReturnTo, v as verifyPairingProof, w as dropProcessPeer, x as Errors, y as MESH_TLS_PORT_HELLO_FIELD, z as RENEWAL_ABANDONED } from "./builtins/system-config/system-config.addon.mjs";
|
|
36
36
|
import "./builtins/system-config/index.mjs";
|
|
37
37
|
import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
|
|
38
38
|
import { C as isModelDownloaded, T as revisionWeightUrl, _ as downloadFile, a as startEventLoopStallMonitor, b as fetchJson, c as createAuthenticatedFileServer, d as resolveFilePath, 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, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, u as parseTokenizedUrl, v as downloadModel, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-DZSCLBuT.mjs";
|
|
39
|
-
import { A as allFamiliesListenHost, C as caReplacementMarkerFile, D as replaceUnconstrainedLocalCa, E as reissueTlsLeaf, F as registerLanHttpHandler, M as bindPendingLanHttp, N as closeLanHttp, O as retirePreviousLocalCa, P as readLanHttpState, S as validateUploadedTls, T as loadTlsCert, _ as splitPemCertificates, a as storeUploadedCertificate, b as chainsToPublicRoot, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsMode, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as applyLanHttp, k as DEFAULT_LAN_HTTP_PORT, 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 writeExtraSans, w as ensureTlsCert, x as checkUploadedCa, y as writeTlsMode } from "./hub-mdns-ciao-
|
|
39
|
+
import { A as allFamiliesListenHost, C as caReplacementMarkerFile, D as replaceUnconstrainedLocalCa, E as reissueTlsLeaf, F as registerLanHttpHandler, M as bindPendingLanHttp, N as closeLanHttp, O as retirePreviousLocalCa, P as readLanHttpState, S as validateUploadedTls, T as loadTlsCert, _ as splitPemCertificates, a as storeUploadedCertificate, b as chainsToPublicRoot, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsMode, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as applyLanHttp, k as DEFAULT_LAN_HTTP_PORT, 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 writeExtraSans, w as ensureTlsCert, x as checkUploadedCa, y as writeTlsMode } from "./hub-mdns-ciao-Bm09NrMS.mjs";
|
|
40
40
|
import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
|
|
41
41
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
|
|
42
|
-
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-
|
|
42
|
+
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-CSOR_tyN.mjs";
|
|
43
43
|
import { n as nodeCoralFs, t as classifyCoralAccelerator } from "./coral-accelerators-Qhn5TOYZ.mjs";
|
|
44
44
|
import { z } from "zod";
|
|
45
45
|
import * as crypto$1 from "node:crypto";
|