@camstack/system 1.2.382 → 1.2.383
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/addon-runner.js +1 -1
- package/dist/addon-runner.mjs +1 -1
- package/dist/addon-utils.js +1 -1
- package/dist/addon-utils.mjs +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-manager/device-manager.addon.js +2 -2
- package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/dist/builtins/hub-forwarder/index.js +1 -1
- package/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/dist/builtins/keychain/index.js +5 -5
- package/dist/builtins/keychain/index.mjs +4 -4
- package/dist/builtins/keychain/system-held-secrets.d.ts +2 -1
- 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 +9 -178
- package/dist/builtins/local-auth/local-auth.addon.mjs +4 -161
- 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/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/sqlite-settings.addon.js +0 -0
- package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
- 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/index.d.ts +1 -0
- package/dist/builtins/system-config/index.js +2 -0
- package/dist/builtins/system-config/index.mjs +2 -2
- package/dist/builtins/system-config/mesh-actions.d.ts +19 -0
- package/dist/builtins/system-config/system-config.addon.d.ts +34 -1
- package/dist/builtins/system-config/system-config.addon.js +87538 -9
- package/dist/builtins/system-config/system-config.addon.mjs +87505 -4
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{child-cap-dispatch-BrMdKHfp.js → child-cap-dispatch-BD8fhJ1b.js} +2 -2
- package/dist/{child-cap-dispatch-WsYPNvnK.mjs → child-cap-dispatch-C68N2a6Y.mjs} +2 -2
- package/dist/{composition-sources-C6ZynCZ2.js → composition-sources-ChpT_Yw4.js} +1 -1
- package/dist/{composition-sources-XqRX51db.mjs → composition-sources-DM7Ft_tp.mjs} +1 -1
- package/dist/{cluster-secret-BEPLh3LL.js → constants-CDpry1_T.js} +82 -1
- package/dist/{cluster-secret-DhPdZ0VA.mjs → constants-e3mCa1jG.mjs} +23 -2
- package/dist/{dist-tnAO12ak.js → dist-CUNGH0fs.js} +34 -0
- package/dist/{dist-CP5TTjwd.mjs → dist-osl3bkF0.mjs} +23 -1
- package/dist/{event-loop-stall-monitor-WkssIXjq.mjs → event-loop-stall-monitor-BeeWMnyT.mjs} +1 -1
- package/dist/{event-loop-stall-monitor-9kR0sAPS.js → event-loop-stall-monitor-Dk28EF8B.js} +1 -1
- package/dist/index.js +284 -86048
- package/dist/index.mjs +513 -86302
- package/dist/{jwt-signing-key-CAbozwvF.mjs → jwt-signing-key-MQLxLfgF.mjs} +1 -1
- package/dist/{jwt-signing-key-Dgf8sIXY.js → jwt-signing-key-WI6z7JBo.js} +1 -1
- package/dist/kernel/index.d.ts +6 -2
- package/dist/kernel/moleculer/agent-mesh-authenticator.d.ts +41 -0
- package/dist/kernel/moleculer/broker-factory.d.ts +19 -3
- package/dist/kernel/moleculer/mesh-access-middleware.d.ts +7 -2
- package/dist/kernel/moleculer/mesh-mtls/constants.d.ts +20 -0
- package/dist/kernel/moleculer/mesh-mtls/index.d.ts +9 -0
- package/dist/kernel/moleculer/mesh-mtls/mesh-ca-keeper.d.ts +55 -0
- package/dist/kernel/moleculer/mesh-mtls/mesh-ca.d.ts +45 -0
- package/dist/kernel/moleculer/mesh-mtls/mesh-crl.d.ts +16 -0
- package/dist/kernel/moleculer/mesh-mtls/mesh-enroll.d.ts +27 -0
- package/dist/kernel/moleculer/mesh-mtls/mesh-join-token.d.ts +55 -0
- package/dist/kernel/moleculer/mesh-mtls/mesh-tls-enabler.d.ts +5 -0
- package/dist/kernel/moleculer/mesh-mtls/tls-tcp-transporter.d.ts +92 -0
- package/dist/ms-DlIWNkkk.mjs +160 -0
- package/dist/ms-t68_FaqE.js +171 -0
- package/dist/{restore-archive-CbvrfPuB.js → restore-archive-C5f9yX90.js} +3 -3
- package/dist/{restore-archive-BV39nY46.mjs → restore-archive-CZRtI1k9.mjs} +2 -2
- package/dist/{retired-settings-keys-CzpIkwS-.mjs → retired-settings-keys-LuDd4y3M.mjs} +1 -1
- package/dist/{retired-settings-keys-4bHpL-0m.js → retired-settings-keys-WLrbzdPR.js} +1 -1
- package/dist/tls-BWpwU-d5.js +1160 -0
- package/dist/tls-C2NT-Orr.mjs +949 -0
- package/dist/{tls-CljF057D.js → x509.es-BhTzcFhZ.js} +65 -1108
- package/dist/{tls-4cRH24Id.mjs → x509.es-Xf3K_brW.mjs} +40 -950
- package/package.json +3 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { Vn as userManagementCapability, W as UserRecordSchema, Y as authProviderCapability, r as ApiKeyRecordSchema, ur as BaseAddon, z as ScopedTokenSchema } from "../../dist-
|
|
3
|
-
import {
|
|
2
|
+
import { Vn as userManagementCapability, W as UserRecordSchema, Y as authProviderCapability, r as ApiKeyRecordSchema, ur as BaseAddon, z as ScopedTokenSchema } from "../../dist-osl3bkF0.mjs";
|
|
3
|
+
import { n as require_safe_buffer, t as require_ms } from "../../ms-DlIWNkkk.mjs";
|
|
4
|
+
import { a as loadJwtSigningKey, i as getProcessJwtSigningKeyState, o as processJwtSigningKey, s as setProcessJwtSigningKey, t as JWT_SIGNING_KEY_REF } from "../../jwt-signing-key-MQLxLfgF.mjs";
|
|
4
5
|
import * as crypto$1 from "node:crypto";
|
|
5
6
|
import { createHash, randomUUID, timingSafeEqual } from "node:crypto";
|
|
6
7
|
import nodeCrypto from "crypto";
|
|
@@ -1852,46 +1853,6 @@ function _hash(password, salt, callback, progressCallback) {
|
|
|
1852
1853
|
}, progressCallback);
|
|
1853
1854
|
}
|
|
1854
1855
|
//#endregion
|
|
1855
|
-
//#region ../../node_modules/safe-buffer/index.js
|
|
1856
|
-
var require_safe_buffer = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1857
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
1858
|
-
var buffer = __require("buffer");
|
|
1859
|
-
var Buffer = buffer.Buffer;
|
|
1860
|
-
function copyProps(src, dst) {
|
|
1861
|
-
for (var key in src) dst[key] = src[key];
|
|
1862
|
-
}
|
|
1863
|
-
if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) module.exports = buffer;
|
|
1864
|
-
else {
|
|
1865
|
-
copyProps(buffer, exports);
|
|
1866
|
-
exports.Buffer = SafeBuffer;
|
|
1867
|
-
}
|
|
1868
|
-
function SafeBuffer(arg, encodingOrOffset, length) {
|
|
1869
|
-
return Buffer(arg, encodingOrOffset, length);
|
|
1870
|
-
}
|
|
1871
|
-
SafeBuffer.prototype = Object.create(Buffer.prototype);
|
|
1872
|
-
copyProps(Buffer, SafeBuffer);
|
|
1873
|
-
SafeBuffer.from = function(arg, encodingOrOffset, length) {
|
|
1874
|
-
if (typeof arg === "number") throw new TypeError("Argument must not be a number");
|
|
1875
|
-
return Buffer(arg, encodingOrOffset, length);
|
|
1876
|
-
};
|
|
1877
|
-
SafeBuffer.alloc = function(size, fill, encoding) {
|
|
1878
|
-
if (typeof size !== "number") throw new TypeError("Argument must be a number");
|
|
1879
|
-
var buf = Buffer(size);
|
|
1880
|
-
if (fill !== void 0) if (typeof encoding === "string") buf.fill(fill, encoding);
|
|
1881
|
-
else buf.fill(fill);
|
|
1882
|
-
else buf.fill(0);
|
|
1883
|
-
return buf;
|
|
1884
|
-
};
|
|
1885
|
-
SafeBuffer.allocUnsafe = function(size) {
|
|
1886
|
-
if (typeof size !== "number") throw new TypeError("Argument must be a number");
|
|
1887
|
-
return Buffer(size);
|
|
1888
|
-
};
|
|
1889
|
-
SafeBuffer.allocUnsafeSlow = function(size) {
|
|
1890
|
-
if (typeof size !== "number") throw new TypeError("Argument must be a number");
|
|
1891
|
-
return buffer.SlowBuffer(size);
|
|
1892
|
-
};
|
|
1893
|
-
}));
|
|
1894
|
-
//#endregion
|
|
1895
1856
|
//#region ../../node_modules/jws/lib/data-stream.js
|
|
1896
1857
|
var require_data_stream = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1897
1858
|
var Buffer = require_safe_buffer().Buffer;
|
|
@@ -2522,124 +2483,6 @@ var require_TokenExpiredError = /* @__PURE__ */ __commonJSMin(((exports, module)
|
|
|
2522
2483
|
module.exports = TokenExpiredError;
|
|
2523
2484
|
}));
|
|
2524
2485
|
//#endregion
|
|
2525
|
-
//#region ../../node_modules/ms/index.js
|
|
2526
|
-
var require_ms = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2527
|
-
/**
|
|
2528
|
-
* Helpers.
|
|
2529
|
-
*/
|
|
2530
|
-
var s = 1e3;
|
|
2531
|
-
var m = s * 60;
|
|
2532
|
-
var h = m * 60;
|
|
2533
|
-
var d = h * 24;
|
|
2534
|
-
var w = d * 7;
|
|
2535
|
-
var y = d * 365.25;
|
|
2536
|
-
/**
|
|
2537
|
-
* Parse or format the given `val`.
|
|
2538
|
-
*
|
|
2539
|
-
* Options:
|
|
2540
|
-
*
|
|
2541
|
-
* - `long` verbose formatting [false]
|
|
2542
|
-
*
|
|
2543
|
-
* @param {String|Number} val
|
|
2544
|
-
* @param {Object} [options]
|
|
2545
|
-
* @throws {Error} throw an error if val is not a non-empty string or a number
|
|
2546
|
-
* @return {String|Number}
|
|
2547
|
-
* @api public
|
|
2548
|
-
*/
|
|
2549
|
-
module.exports = function(val, options) {
|
|
2550
|
-
options = options || {};
|
|
2551
|
-
var type = typeof val;
|
|
2552
|
-
if (type === "string" && val.length > 0) return parse(val);
|
|
2553
|
-
else if (type === "number" && isFinite(val)) return options.long ? fmtLong(val) : fmtShort(val);
|
|
2554
|
-
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
|
|
2555
|
-
};
|
|
2556
|
-
/**
|
|
2557
|
-
* Parse the given `str` and return milliseconds.
|
|
2558
|
-
*
|
|
2559
|
-
* @param {String} str
|
|
2560
|
-
* @return {Number}
|
|
2561
|
-
* @api private
|
|
2562
|
-
*/
|
|
2563
|
-
function parse(str) {
|
|
2564
|
-
str = String(str);
|
|
2565
|
-
if (str.length > 100) return;
|
|
2566
|
-
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(str);
|
|
2567
|
-
if (!match) return;
|
|
2568
|
-
var n = parseFloat(match[1]);
|
|
2569
|
-
switch ((match[2] || "ms").toLowerCase()) {
|
|
2570
|
-
case "years":
|
|
2571
|
-
case "year":
|
|
2572
|
-
case "yrs":
|
|
2573
|
-
case "yr":
|
|
2574
|
-
case "y": return n * y;
|
|
2575
|
-
case "weeks":
|
|
2576
|
-
case "week":
|
|
2577
|
-
case "w": return n * w;
|
|
2578
|
-
case "days":
|
|
2579
|
-
case "day":
|
|
2580
|
-
case "d": return n * d;
|
|
2581
|
-
case "hours":
|
|
2582
|
-
case "hour":
|
|
2583
|
-
case "hrs":
|
|
2584
|
-
case "hr":
|
|
2585
|
-
case "h": return n * h;
|
|
2586
|
-
case "minutes":
|
|
2587
|
-
case "minute":
|
|
2588
|
-
case "mins":
|
|
2589
|
-
case "min":
|
|
2590
|
-
case "m": return n * m;
|
|
2591
|
-
case "seconds":
|
|
2592
|
-
case "second":
|
|
2593
|
-
case "secs":
|
|
2594
|
-
case "sec":
|
|
2595
|
-
case "s": return n * s;
|
|
2596
|
-
case "milliseconds":
|
|
2597
|
-
case "millisecond":
|
|
2598
|
-
case "msecs":
|
|
2599
|
-
case "msec":
|
|
2600
|
-
case "ms": return n;
|
|
2601
|
-
default: return;
|
|
2602
|
-
}
|
|
2603
|
-
}
|
|
2604
|
-
/**
|
|
2605
|
-
* Short format for `ms`.
|
|
2606
|
-
*
|
|
2607
|
-
* @param {Number} ms
|
|
2608
|
-
* @return {String}
|
|
2609
|
-
* @api private
|
|
2610
|
-
*/
|
|
2611
|
-
function fmtShort(ms) {
|
|
2612
|
-
var msAbs = Math.abs(ms);
|
|
2613
|
-
if (msAbs >= d) return Math.round(ms / d) + "d";
|
|
2614
|
-
if (msAbs >= h) return Math.round(ms / h) + "h";
|
|
2615
|
-
if (msAbs >= m) return Math.round(ms / m) + "m";
|
|
2616
|
-
if (msAbs >= s) return Math.round(ms / s) + "s";
|
|
2617
|
-
return ms + "ms";
|
|
2618
|
-
}
|
|
2619
|
-
/**
|
|
2620
|
-
* Long format for `ms`.
|
|
2621
|
-
*
|
|
2622
|
-
* @param {Number} ms
|
|
2623
|
-
* @return {String}
|
|
2624
|
-
* @api private
|
|
2625
|
-
*/
|
|
2626
|
-
function fmtLong(ms) {
|
|
2627
|
-
var msAbs = Math.abs(ms);
|
|
2628
|
-
if (msAbs >= d) return plural(ms, msAbs, d, "day");
|
|
2629
|
-
if (msAbs >= h) return plural(ms, msAbs, h, "hour");
|
|
2630
|
-
if (msAbs >= m) return plural(ms, msAbs, m, "minute");
|
|
2631
|
-
if (msAbs >= s) return plural(ms, msAbs, s, "second");
|
|
2632
|
-
return ms + " ms";
|
|
2633
|
-
}
|
|
2634
|
-
/**
|
|
2635
|
-
* Pluralization helper.
|
|
2636
|
-
*/
|
|
2637
|
-
function plural(ms, msAbs, n, name) {
|
|
2638
|
-
var isPlural = msAbs >= n * 1.5;
|
|
2639
|
-
return Math.round(ms / n) + " " + name + (isPlural ? "s" : "");
|
|
2640
|
-
}
|
|
2641
|
-
}));
|
|
2642
|
-
//#endregion
|
|
2643
2486
|
//#region ../../node_modules/jsonwebtoken/lib/timespan.js
|
|
2644
2487
|
var require_timespan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2645
2488
|
var ms = require_ms();
|
|
@@ -11273,4 +11116,4 @@ var LocalAuthAddon = class extends BaseAddon {
|
|
|
11273
11116
|
}
|
|
11274
11117
|
};
|
|
11275
11118
|
//#endregion
|
|
11276
|
-
export { LocalAuthAddon, LocalAuthAddon as default, isSettingsReadUnavailable as _, attachUserManagementInternal as a,
|
|
11119
|
+
export { LocalAuthAddon, LocalAuthAddon as default, isSettingsReadUnavailable as _, attachUserManagementInternal as a, ADMIN_TOKEN_MAX_LIFETIME_MS as c, LoginSessionManager as d, REFRESH_TOKEN_PREFIX as f, SettingsReadUnavailableError as g, parseTokenExpiry as h, USER_MANAGEMENT_INTERNAL as i, ADMIN_TOKEN_PREFIX as l, AuthManager as m, FIRST_BOOT_ADMIN_USERNAME as n, getUserManagementInternal as o, ScopedTokenManager as p, UserManager as r, AuthAuditLog as s, FIRST_BOOT_ADMIN_PASSWORD as t, AdminTokenManager as u, ApiKeyManager as v };
|
|
@@ -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_tls = require("../../tls-
|
|
3
|
+
const require_dist = require("../../dist-CUNGH0fs.js");
|
|
4
|
+
const require_tls = require("../../tls-BWpwU-d5.js");
|
|
5
5
|
let zod = require("zod");
|
|
6
6
|
let node_net = require("node:net");
|
|
7
7
|
let node_os = require("node:os");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bt as isDefaultAppConnectionEndpoint, Dn as resolveNotificationTapAddress, Lt as isAppLinkBase, Un as validateCustomAddress, Xt as localNetworkCapability, bn as resolveAppConnections,
|
|
2
|
-
import { P as readLanHttpState, _ as writeExtraSans, h as readTlsMode, i as storeUploadedCertificate, j as applyLanHttp, k as DEFAULT_LAN_HTTP_PORT, m as readTlsAccessStatus, n as regenerateCertificate, p as readExtraSans, r as revertToGeneratedCertificate, t as applyCertificateToListener, u as servedHttpsLeafFingerprint, y as ensureTlsCert } from "../../tls-
|
|
1
|
+
import { Bt as isDefaultAppConnectionEndpoint, Dn as resolveNotificationTapAddress, Lt as isAppLinkBase, Un as validateCustomAddress, Xt as localNetworkCapability, bn as resolveAppConnections, ni as EventCategory, pn as pickAppLinkHub, rt as checkRoleAddress, s as CAMSTACK_APP_LINK_ORIGIN, ur as BaseAddon, wn as resolveHubAddressRoles } from "../../dist-osl3bkF0.mjs";
|
|
2
|
+
import { P as readLanHttpState, _ as writeExtraSans, h as readTlsMode, i as storeUploadedCertificate, j as applyLanHttp, k as DEFAULT_LAN_HTTP_PORT, m as readTlsAccessStatus, n as regenerateCertificate, p as readExtraSans, r as revertToGeneratedCertificate, t as applyCertificateToListener, u as servedHttpsLeafFingerprint, y as ensureTlsCert } from "../../tls-C2NT-Orr.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { isIP } from "node:net";
|
|
5
5
|
import * as os from "node:os";
|
|
@@ -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-CUNGH0fs.js");
|
|
7
7
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
8
8
|
/**
|
|
9
9
|
* Loki rejects a label name that is not a valid Prometheus label
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Qt as logDestinationCapability, ur as BaseAddon } from "../../dist-
|
|
1
|
+
import { Qt as logDestinationCapability, ur as BaseAddon } from "../../dist-osl3bkF0.mjs";
|
|
2
2
|
//#region src/builtins/loki-logging/loki-payload.ts
|
|
3
3
|
/**
|
|
4
4
|
* Loki rejects a label name that is not a valid Prometheus label
|
|
@@ -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-CUNGH0fs.js");
|
|
7
7
|
const require_proc_stat = require("../../proc-stat-DL-WUOhl.js");
|
|
8
8
|
let node_fs_promises = require("node:fs/promises");
|
|
9
9
|
let node_os = require("node:os");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Nt as foldSnapshotByFunction, Tr as createEvent, an as metricsProviderCapability,
|
|
1
|
+
import { Nt as foldSnapshotByFunction, Tr as createEvent, an as metricsProviderCapability, lr as errMsg, ni as EventCategory, ur as BaseAddon, vn as reducePoints, xn as resolveBucketMs } from "../../dist-osl3bkF0.mjs";
|
|
2
2
|
import { a as parseProcStat, i as nodeProcReader, n as elapsedSecSince, o as parseProcStatusRss, r as lifetimeCpuPercent, t as commandFromCmdline } from "../../proc-stat-CbC55Kqi.mjs";
|
|
3
3
|
import { access, readFile, readdir } from "node:fs/promises";
|
|
4
4
|
import * as os from "node:os";
|
|
@@ -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-CUNGH0fs.js");
|
|
7
7
|
let node_os = require("node:os");
|
|
8
8
|
node_os = require_chunk.__toESM(node_os);
|
|
9
9
|
let node_fs = require("node:fs");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as __toESM } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { hn as platformProbeCapability, jn as scoreRuntimes, kr as emitReadiness, lr as errMsg, ni as EventCategory, ur as BaseAddon, wt as enumerateInferenceDevices } from "../../dist-osl3bkF0.mjs";
|
|
3
3
|
import * as os from "node:os";
|
|
4
4
|
import * as fs from "node:fs";
|
|
5
5
|
import { execFile } from "node:child_process";
|
|
@@ -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-CUNGH0fs.js");
|
|
7
7
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
8
8
|
/**
|
|
9
9
|
* Reconcile the durable `enabledProviders` set against authoritative
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ni as EventCategory, ur as BaseAddon } from "../../dist-osl3bkF0.mjs";
|
|
2
2
|
//#region src/builtins/remote-access-orchestrator/enabled-providers-reconcile.ts
|
|
3
3
|
/**
|
|
4
4
|
* Reconcile the durable `enabledProviders` set against authoritative
|
|
@@ -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-CUNGH0fs.js");
|
|
7
7
|
const require_snapshot_courtesy = require("../../snapshot-courtesy-D_C5-nC0.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bn as streamQualityLabel,
|
|
1
|
+
import { Bn as streamQualityLabel, Br as nodePin, Pn as snapshotCapability, Q as batteryCapability, Z as bareAddonId, a as BatteryStatusSchema, cr as DeviceType, in as memoizePinnedFfmpeg, lr as errMsg, ni as EventCategory, or as DeviceFeature, ur as BaseAddon, vt as deriveBatteryPresence } from "../../dist-osl3bkF0.mjs";
|
|
2
2
|
import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourtesyJpeg } from "../../snapshot-courtesy-CyFs1M3I.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } 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-CUNGH0fs.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
let node_fs_promises = require("node:fs/promises");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Mt as filesystemBrowseCapability, Rn as storageProviderCapability, ur as BaseAddon } from "../../dist-
|
|
1
|
+
import { Mt as filesystemBrowseCapability, Rn as storageProviderCapability, ur as BaseAddon } from "../../dist-osl3bkF0.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import { mkdir, readdir, realpath, statfs } from "node:fs/promises";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
Binary file
|
|
Binary file
|
|
@@ -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-CUNGH0fs.js");
|
|
7
7
|
const require_hub_cap_forward = require("../../hub-cap-forward-W8oEm4ME.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as StorageCleanupJobSchema, Cr as collectSecretConfigKeys, Fn as storageCapability, Ft as gbToBytes, H as StorageLocationTypeSchema, Hr as parseJsonObject, In as storageMigrationCapability, Jt as legacyModeOf, Lr as isSecretMarker, Mn as settingsStoreCapability, O as LegacyStorageLocationDefaultSchema, Ot as evictionPolicyOfLocation, Tn as resolveLocationMode, U as StorageMigrationJobSchema, V as StorageLocationModeSchema, Vt as isLocationEnabled, Xr as secretTreeFromPaths, mr as REDACTED_SECRET, ni as EventCategory, nn as mayReadLocation, on as modeMayWrite, qn as withLocationMode, qr as resolveSecretMarkers, rn as mayWriteToLocation, ti as transformSecretWrite, ur as BaseAddon } from "../../dist-osl3bkF0.mjs";
|
|
2
2
|
import { t as HUB_CAP_FWD_ACTION } from "../../hub-cap-forward-CDiN1p98.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
@@ -5,4 +5,6 @@ Object.defineProperties(exports, {
|
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
6
|
const require_builtins_system_config_system_config_addon = require("./system-config.addon.js");
|
|
7
7
|
exports.SystemConfigAddon = require_builtins_system_config_system_config_addon.SystemConfigAddon;
|
|
8
|
+
exports.customActions = require_builtins_system_config_system_config_addon.systemConfigMeshActions;
|
|
8
9
|
exports.default = require_builtins_system_config_system_config_addon.SystemConfigAddon;
|
|
10
|
+
exports.systemConfigMeshActions = require_builtins_system_config_system_config_addon.systemConfigMeshActions;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SystemConfigAddon } from "./system-config.addon.mjs";
|
|
2
|
-
export { SystemConfigAddon, SystemConfigAddon as default };
|
|
1
|
+
import { SystemConfigAddon, t as systemConfigMeshActions } from "./system-config.addon.mjs";
|
|
2
|
+
export { SystemConfigAddon, SystemConfigAddon as default, systemConfigMeshActions as customActions, systemConfigMeshActions };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const systemConfigMeshActions: {
|
|
3
|
+
mintJoinToken: import('@camstack/types').CustomActionSpec<z.ZodOptional<z.ZodObject<{
|
|
4
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
hubUrl: z.ZodOptional<z.ZodString>;
|
|
6
|
+
hubMeshAddress: z.ZodOptional<z.ZodString>;
|
|
7
|
+
ttlSec: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
}, z.core.$strip>>, z.ZodObject<{
|
|
9
|
+
token: z.ZodString;
|
|
10
|
+
exp: z.ZodNumber;
|
|
11
|
+
hubUrl: z.ZodString;
|
|
12
|
+
hubMeshAddress: z.ZodString;
|
|
13
|
+
caFingerprint: z.ZodString;
|
|
14
|
+
nodeId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>, "mutation", "admin", {
|
|
16
|
+
readonly kind: "system";
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
export type SystemConfigMeshActions = typeof systemConfigMeshActions;
|
|
@@ -4,9 +4,42 @@ export declare const SYSTEM_CONFIG_CLUSTER_SECTION_ID = "system-config-cluster";
|
|
|
4
4
|
export declare class SystemConfigAddon extends BaseAddon {
|
|
5
5
|
readonly id = "system-config";
|
|
6
6
|
private clusterSecretKeeper;
|
|
7
|
+
private meshCaKeeper;
|
|
7
8
|
constructor();
|
|
8
|
-
protected onInitialize(): Promise<
|
|
9
|
+
protected onInitialize(): Promise<{
|
|
10
|
+
customActions: {
|
|
11
|
+
mintJoinToken: import('@camstack/types').CustomActionSpec<import('zod').ZodOptional<import('zod').ZodObject<{
|
|
12
|
+
nodeId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
13
|
+
hubUrl: import('zod').ZodOptional<import('zod').ZodString>;
|
|
14
|
+
hubMeshAddress: import('zod').ZodOptional<import('zod').ZodString>;
|
|
15
|
+
ttlSec: import('zod').ZodOptional<import('zod').ZodNumber>;
|
|
16
|
+
}, import('zod/v4/core').$strip>>, import('zod').ZodObject<{
|
|
17
|
+
token: import('zod').ZodString;
|
|
18
|
+
exp: import('zod').ZodNumber;
|
|
19
|
+
hubUrl: import('zod').ZodString;
|
|
20
|
+
hubMeshAddress: import('zod').ZodString;
|
|
21
|
+
caFingerprint: import('zod').ZodString;
|
|
22
|
+
nodeId: import('zod').ZodOptional<import('zod').ZodString>;
|
|
23
|
+
}, import('zod/v4/core').$strip>, "mutation", "admin", {
|
|
24
|
+
readonly kind: "system";
|
|
25
|
+
}>;
|
|
26
|
+
};
|
|
27
|
+
actionHandlers: {
|
|
28
|
+
mintJoinToken: (input: any) => Promise<{
|
|
29
|
+
token: string;
|
|
30
|
+
exp: number;
|
|
31
|
+
hubUrl: string;
|
|
32
|
+
hubMeshAddress: string;
|
|
33
|
+
caFingerprint: string;
|
|
34
|
+
nodeId?: string;
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
37
|
+
}>;
|
|
9
38
|
protected onShutdown(): Promise<void>;
|
|
39
|
+
private onMeshCaReady;
|
|
40
|
+
private mintJoinToken;
|
|
41
|
+
private resolveHubUrl;
|
|
42
|
+
private resolveHubMeshAddress;
|
|
10
43
|
/** The keychain handle for owner `system`; `null` where there is no door. */
|
|
11
44
|
private systemSecrets;
|
|
12
45
|
private buildGlobalSchema;
|