@camstack/system 1.2.416 → 1.2.418
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 +9969 -27
- package/dist/addon-runner.mjs +9930 -9
- package/dist/addon-utils.js +19 -20
- package/dist/addon-utils.mjs +1 -2
- package/dist/auth/auth-audit-log.d.ts +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 +7 -9
- package/dist/builtins/keychain/index.mjs +7 -9
- 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 +5 -3
- package/dist/builtins/local-auth/local-auth.addon.mjs +5 -3
- 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 +102 -10
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +92 -4
- package/dist/builtins/platform-probe/amd-npu.d.ts +6 -0
- package/dist/builtins/platform-probe/index.js +317 -19
- package/dist/builtins/platform-probe/index.mjs +318 -20
- package/dist/builtins/platform-probe/platform-scorer.d.ts +4 -0
- package/dist/builtins/platform-probe/windows-hardware.d.ts +77 -0
- 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/index.mjs +1 -1
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +83 -3
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +79 -3
- package/dist/builtins/system-config/system-config.addon.js +2 -2
- package/dist/builtins/system-config/system-config.addon.mjs +2 -2
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-DEZqZLPT.mjs → composition-sources-0cPw9E0M.mjs} +1 -1
- package/dist/{composition-sources-DBcOVpGn.js → composition-sources-BVjuMvpb.js} +1 -1
- package/dist/{constants-C4jZO_qO.js → constants-Aj0OBqlt.js} +1 -1
- package/dist/{constants-BSBtmzm3.mjs → constants-C8T7u1_Z.mjs} +1 -1
- package/dist/{event-loop-stall-monitor-LBZskC1S.mjs → custom-action-registry-BQnbN0DP.mjs} +57 -2
- package/dist/{event-loop-stall-monitor-E2hFvhDg.js → custom-action-registry-Bf_YnagS.js} +64 -3
- package/dist/{dist-DxiDI8hZ.js → dist-DVUg8e1T.js} +56 -182
- package/dist/{dist-DwE9yHdk.mjs → dist-DlmdESNT.mjs} +57 -153
- package/dist/index.js +22901 -10154
- package/dist/index.mjs +22616 -9869
- package/dist/{jwt-signing-key-DLbjTIuA.mjs → jwt-signing-key-CGg61A5v.mjs} +1 -1
- package/dist/{jwt-signing-key-CsC-FxSm.js → jwt-signing-key-Jyu81jZR.js} +1 -1
- package/dist/kernel/moleculer/broker-factory.d.ts +2 -4
- package/dist/kernel/transport/local-child-registry.d.ts +1 -1
- package/dist/logging/log-redactor.d.ts +1 -1
- package/dist/{resource-monitor-B2WZ8_q9.mjs → resource-monitor-Di9daRwI.mjs} +1 -1
- package/dist/{resource-monitor-BgWGRxN5.js → resource-monitor-mio9dSCT.js} +5 -5
- package/dist/{restore-archive-BtKjaVua.js → restore-archive-Bq5PpQ-H.js} +1 -1
- package/dist/{restore-archive-CImzbuRo.mjs → restore-archive-DVo5ooBt.mjs} +1 -1
- package/dist/{retired-settings-keys-Cl1tnkmq.js → retired-settings-keys-CihMX6h9.js} +1 -1
- package/dist/{retired-settings-keys-D1WsCdUY.mjs → retired-settings-keys-k_XuC-Mt.mjs} +1 -1
- package/dist/{tls-C0TRPfqc.js → tls-BgImdxCO.js} +4 -11
- package/dist/{tls-D-2dPY-5.mjs → tls-CaOLZ09W.mjs} +5 -12
- package/package.json +2 -2
- package/dist/amd-npu-B-QyyMyF.js +0 -53
- package/dist/amd-npu-Db_SoSuL.mjs +0 -52
- package/dist/child-cap-dispatch-B87B0FrC.js +0 -13986
- package/dist/child-cap-dispatch-CmfT-OR2.mjs +0 -12916
- package/dist/custom-action-registry-B4Cf4O_X.mjs +0 -57
- package/dist/custom-action-registry-acBY3mHA.js +0 -62
- package/dist/hub-cap-forward-CDiN1p98.mjs +0 -78
- package/dist/hub-cap-forward-W8oEm4ME.js +0 -101
- package/dist/proc-stat-CbC55Kqi.mjs +0 -92
- package/dist/proc-stat-DL-WUOhl.js +0 -127
package/dist/addon-utils.js
CHANGED
|
@@ -1,28 +1,27 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const
|
|
4
|
-
const require_custom_action_registry = require("./custom-action-registry-acBY3mHA.js");
|
|
3
|
+
const require_custom_action_registry = require("./custom-action-registry-Bf_YnagS.js");
|
|
5
4
|
const require_snapshot_courtesy = require("./snapshot-courtesy-D_C5-nC0.js");
|
|
6
5
|
exports.COURTESY_DEFAULT_WIDTH = require_snapshot_courtesy.COURTESY_DEFAULT_WIDTH;
|
|
7
6
|
exports.CustomActionRegistry = require_custom_action_registry.CustomActionRegistry;
|
|
8
|
-
exports.ModelDownloadHttpError =
|
|
9
|
-
exports.ModelDownloadService =
|
|
10
|
-
exports.STALL_REPORT_MS =
|
|
11
|
-
exports.STALL_TICK_MS =
|
|
12
|
-
exports.adoptModelRevisions =
|
|
13
|
-
exports.attributeStall =
|
|
14
|
-
exports.collectModelFiles =
|
|
15
|
-
exports.contentTypeFor =
|
|
7
|
+
exports.ModelDownloadHttpError = require_custom_action_registry.ModelDownloadHttpError;
|
|
8
|
+
exports.ModelDownloadService = require_custom_action_registry.ModelDownloadService;
|
|
9
|
+
exports.STALL_REPORT_MS = require_custom_action_registry.STALL_REPORT_MS;
|
|
10
|
+
exports.STALL_TICK_MS = require_custom_action_registry.STALL_TICK_MS;
|
|
11
|
+
exports.adoptModelRevisions = require_custom_action_registry.adoptModelRevisions;
|
|
12
|
+
exports.attributeStall = require_custom_action_registry.attributeStall;
|
|
13
|
+
exports.collectModelFiles = require_custom_action_registry.collectModelFiles;
|
|
14
|
+
exports.contentTypeFor = require_custom_action_registry.contentTypeFor;
|
|
16
15
|
exports.courtesyCacheKey = require_snapshot_courtesy.courtesyCacheKey;
|
|
17
|
-
exports.createFileDataPlaneHandler =
|
|
18
|
-
exports.deleteModelFromDisk =
|
|
19
|
-
exports.downloadFile =
|
|
20
|
-
exports.ensureModel =
|
|
21
|
-
exports.getModelFilePath =
|
|
22
|
-
exports.isModelDownloadHttpError =
|
|
23
|
-
exports.isModelDownloaded =
|
|
24
|
-
exports.parseRangeHeader =
|
|
16
|
+
exports.createFileDataPlaneHandler = require_custom_action_registry.createFileDataPlaneHandler;
|
|
17
|
+
exports.deleteModelFromDisk = require_custom_action_registry.deleteModelFromDisk;
|
|
18
|
+
exports.downloadFile = require_custom_action_registry.downloadFile;
|
|
19
|
+
exports.ensureModel = require_custom_action_registry.ensureModel;
|
|
20
|
+
exports.getModelFilePath = require_custom_action_registry.getModelFilePath;
|
|
21
|
+
exports.isModelDownloadHttpError = require_custom_action_registry.isModelDownloadHttpError;
|
|
22
|
+
exports.isModelDownloaded = require_custom_action_registry.isModelDownloaded;
|
|
23
|
+
exports.parseRangeHeader = require_custom_action_registry.parseRangeHeader;
|
|
25
24
|
exports.renderCourtesyJpeg = require_snapshot_courtesy.renderCourtesyJpeg;
|
|
26
25
|
exports.renderCourtesyOverlayJpeg = require_snapshot_courtesy.renderCourtesyOverlayJpeg;
|
|
27
|
-
exports.resolveFormatRevision =
|
|
28
|
-
exports.startEventLoopStallMonitor =
|
|
26
|
+
exports.resolveFormatRevision = require_custom_action_registry.resolveFormatRevision;
|
|
27
|
+
exports.startEventLoopStallMonitor = require_custom_action_registry.startEventLoopStallMonitor;
|
package/dist/addon-utils.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { t as CustomActionRegistry } from "./custom-action-registry-B4Cf4O_X.mjs";
|
|
1
|
+
import { C as isModelDownloaded, S as isModelDownloadHttpError, _ as downloadFile, a as startEventLoopStallMonitor, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, p as ModelDownloadHttpError, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-BQnbN0DP.mjs";
|
|
3
2
|
import { i as renderCourtesyOverlayJpeg, n as courtesyCacheKey, r as renderCourtesyJpeg, t as COURTESY_DEFAULT_WIDTH } from "./snapshot-courtesy-CyFs1M3I.mjs";
|
|
4
3
|
export { COURTESY_DEFAULT_WIDTH, CustomActionRegistry, ModelDownloadHttpError, ModelDownloadService, STALL_REPORT_MS, STALL_TICK_MS, adoptModelRevisions, attributeStall, collectModelFiles, contentTypeFor, courtesyCacheKey, createFileDataPlaneHandler, deleteModelFromDisk, downloadFile, ensureModel, getModelFilePath, isModelDownloadHttpError, isModelDownloaded, parseRangeHeader, renderCourtesyJpeg, renderCourtesyOverlayJpeg, resolveFormatRevision, startEventLoopStallMonitor };
|
|
@@ -7,7 +7,7 @@ import type { CollectionColumn, IScopedLogger, SettingsStoreClient } from "@cams
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const AUTH_AUDIT_COLLECTION = "auth_audit";
|
|
9
9
|
export declare const AUTH_AUDIT_COLUMNS: readonly CollectionColumn[];
|
|
10
|
-
export declare const AUTH_AUDIT_ACTIONS: readonly ["second-factor-skipped", "admin-token-created", "admin-token-used", "admin-token-revoked", "credentials-revoked"];
|
|
10
|
+
export declare const AUTH_AUDIT_ACTIONS: readonly ["second-factor-skipped", "admin-token-created", "admin-token-used", "admin-token-revoked", "credentials-revoked", "agent-addon-update", "agent-addon-update-refused"];
|
|
11
11
|
export type AuthAuditAction = (typeof AUTH_AUDIT_ACTIONS)[number];
|
|
12
12
|
export interface AuthAuditEvent {
|
|
13
13
|
readonly action: AuthAuditAction;
|
|
@@ -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-DVUg8e1T.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { W as addonPagesCapability, cr as BaseAddon, ei as EventCategory, sr as errMsg } from "../../dist-DlmdESNT.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -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-DVUg8e1T.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { K as addonWidgetsCapability, cr as BaseAddon, ei as EventCategory, sr as errMsg } from "../../dist-DlmdESNT.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { createHash, randomUUID } from "node:crypto";
|
|
4
4
|
import * as path$1 from "node:path";
|
|
@@ -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-DVUg8e1T.js");
|
|
7
7
|
//#region src/builtins/alerts/device-label.ts
|
|
8
8
|
/**
|
|
9
9
|
* Operator-facing device label for alert messages.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cr as BaseAddon, ei as EventCategory, n as AlertSchema, q as alertsCapability, sr as errMsg, wr as createEvent } from "../../dist-DlmdESNT.mjs";
|
|
2
2
|
//#region src/builtins/alerts/device-label.ts
|
|
3
3
|
/**
|
|
4
4
|
* Operator-facing device label for alert messages.
|
|
@@ -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-DVUg8e1T.js");
|
|
7
7
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
8
8
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
9
9
|
deadZoneFraction: .5,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Nr as isEvent, S as FIRST_LEVEL_MACRO_CLASSES, X as bareAddonId, cr as BaseAddon, ei as EventCategory, mn as ptzAutotrackCapability, sr as errMsg } from "../../dist-DlmdESNT.mjs";
|
|
2
2
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
3
3
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
4
4
|
deadZoneFraction: .5,
|
|
@@ -3,8 +3,8 @@ 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-
|
|
7
|
-
const require_restore_archive = require("../../restore-archive-
|
|
6
|
+
const require_dist = require("../../dist-DVUg8e1T.js");
|
|
7
|
+
const require_restore_archive = require("../../restore-archive-Bq5PpQ-H.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let node_fs_promises = require("node:fs/promises");
|
|
10
10
|
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { a as BackupSnapshotRefusedError, c as BackupKeyFormatError, d as generateBackupKeyPair, f as parseBackupPublicKey, i as BackupCancelledError, n as precheckRestoreKey, o as SystemBackupService, p as parseBackupSecretKey, r as prepareRestoreArchive, u as ENCRYPTED_BACKUP_SUFFIX } from "../../restore-archive-
|
|
1
|
+
import { Pn as storageOccupancyCapability, Y as backupCapability, Zr as toNodeId, cr as BaseAddon, ei as EventCategory, en as mayWriteToLocation, zr as nodePin } from "../../dist-DlmdESNT.mjs";
|
|
2
|
+
import { a as BackupSnapshotRefusedError, c as BackupKeyFormatError, d as generateBackupKeyPair, f as parseBackupPublicKey, i as BackupCancelledError, n as precheckRestoreKey, o as SystemBackupService, p as parseBackupSecretKey, r as prepareRestoreArchive, u as ENCRYPTED_BACKUP_SUFFIX } from "../../restore-archive-DVo5ooBt.mjs";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import * as fsp from "node:fs/promises";
|
|
5
5
|
import * as path$1 from "node:path";
|
|
@@ -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-DVUg8e1T.js");
|
|
7
7
|
const require_settle_sources = require("../../settle-sources-Bhsy57y-.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
//#region src/builtins/calendars/calendar-color.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { cr as BaseAddon, et as calendarsCapability, p as CalendarPreferencesSchema } from "../../dist-DlmdESNT.mjs";
|
|
2
2
|
import { t as settleSourcesWithTimeout } from "../../settle-sources-CDtNC8ub.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/builtins/calendars/calendar-color.ts
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-DVUg8e1T.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let _camstack_types_node = require("@camstack/types/node");
|
|
9
9
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { In as streamCatalogCapability, N as MOTION_CLOSE_AFTER_MS, b as DeclaredDevices, cr as BaseAddon, ei as EventCategory, i as BaseDevice, in as motionCapability, ir as DeviceFeature, jn as snapshotCapability, jr as hydrateSchema, mt as declarationOwnerNodeId, or as DeviceType, qn as buildFfmpegArgs, sr as errMsg, tn as memoizePinnedFfmpeg, tt as cameraGridLayoutCapability, wr as createEvent, y as DERIVED_CAMERA_SILENCED_CAP_NAMES } from "../../dist-DlmdESNT.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { FfmpegProcess } from "@camstack/types/node";
|
|
4
4
|
import { join } from "node:path";
|
|
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_composition_sources = require("../../composition-sources-
|
|
6
|
+
const require_dist = require("../../dist-DVUg8e1T.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-BVjuMvpb.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
//#region src/builtins/shared/device-state-changed.ts
|
|
10
10
|
/** Structural narrowing helper for untrusted bus payloads. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $n as
|
|
2
|
-
import { n as normalizedNativeOwner } from "../../composition-sources-
|
|
1
|
+
import { $n as compositionSliceKey, Et as evaluateCompositionField, Jn as cloneStatefulExpressionMemory, Kn as COMPOSER_ADDON_ID, Q as buildCapabilityLookup, Qn as compositionItemFieldPath, Xn as composedDeviceStableId, Yn as composedDeviceRef, Zn as compositionFeatureEnabled, b as DeclaredDevices, cr as BaseAddon, dn as planComposition, ei as EventCategory, er as compositionSourceKey, i as BaseDevice, it as compositionFieldKey, kt as expressionContainsBuiltinCall, l as COMPOSED_ITEM_FIXED_FIELDS, nr as disarmRoseMemory, or as DeviceType, rr as toExpressionValue, rt as composerCapability, sr as errMsg, t as ALL_CAPABILITY_DEFINITIONS, tr as createStatefulExpressionMemory, wr as createEvent } from "../../dist-DlmdESNT.mjs";
|
|
2
|
+
import { n as normalizedNativeOwner } from "../../composition-sources-0cPw9E0M.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/builtins/shared/device-state-changed.ts
|
|
5
5
|
/** Structural narrowing helper for untrusted bus payloads. */
|
|
@@ -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-DVUg8e1T.js");
|
|
7
7
|
const require_formatter = require("../../formatter-DqAKDlvN.js");
|
|
8
8
|
//#region src/builtins/console-logging/console-destination.ts
|
|
9
9
|
var LEVEL_RANK = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Xt as logDestinationCapability, cr as BaseAddon } from "../../dist-DlmdESNT.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-B7qW8bPJ.mjs";
|
|
3
3
|
//#region src/builtins/console-logging/console-destination.ts
|
|
4
4
|
var LEVEL_RANK = {
|
|
@@ -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_composition_sources = require("../../composition-sources-
|
|
3
|
+
const require_dist = require("../../dist-DVUg8e1T.js");
|
|
4
|
+
const require_composition_sources = require("../../composition-sources-BVjuMvpb.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");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as describeCompositionSources } from "../../composition-sources-
|
|
1
|
+
import { Bn as validateComposition, Q as buildCapabilityLookup, Yn as composedDeviceRef, an as normalizeCoreBlockWrite, at as compositionSourceRefs, b as DeclaredDevices, bn as resolveCoreBlockFiles, cr as BaseAddon, ct as coreBlockIdFromAddonId, d as CORE_BLOCKS_ADDON_ID, dn as planComposition, er as compositionSourceKey, f as CORE_BLOCK_ADDON_PREFIX, gn as replacedFieldKeys, jr as hydrateSchema, lt as coreBlockSourceKind, m as CoreBlockSchema, ot as coreBlockAddonId, sr as errMsg, st as coreBlockComposition, t as ALL_CAPABILITY_DEFINITIONS, u as COMPOSER_RUNNER_ID, ut as coreBlocksCapability, vt as describeComposableCaps, yn as resolveCoreBlockEntry } from "../../dist-DlmdESNT.mjs";
|
|
2
|
+
import { t as describeCompositionSources } from "../../composition-sources-0cPw9E0M.mjs";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import { customizationBlockName } from "@camstack/types/node";
|
|
@@ -3,8 +3,8 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
7
|
-
const require_retired_settings_keys = require("../../retired-settings-keys-
|
|
6
|
+
const require_dist = require("../../dist-DVUg8e1T.js");
|
|
7
|
+
const require_retired_settings_keys = require("../../retired-settings-keys-CihMX6h9.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
10
10
|
let _camstack_types_node = require("@camstack/types/node");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $
|
|
2
|
-
import { n as purgeRetiredSettingsRows } from "../../retired-settings-keys-
|
|
1
|
+
import { $ as buildStreamParamsConfigSchema, $r as transformSecretWrite, A as LocationIconIdSchema, An as siteZoneKey, C as FieldClaimModeSchema, Cr as collectZodSecretPaths, Fr as isSecretClear, Gt as legacyAutoLinkIds, Ir as isSecretMarker, Jr as secretTreeFromPaths, Kr as resolveSecretMarkers, L as STREAM_PROFILE_META, Lr as isSecretMarkerLike, M as MINUTES_PER_DAY, Mr as isDeviceConfigCap, Nt as formatMinutes, Ot as expandContainer, Pr as isKeychainStoredField, Qr as toSecretFieldView, St as deviceStatusCapability, Tn as runtimeStatePolicyFor, Tt as enumerateSchemaFields, Xr as sleep$1, Yt as locationIconKey, _r as WELL_KNOWN_TAB_MAP, ar as DeviceRole, bt as deviceManagerCapability, c as CAP_NAMES_WITH_STATUS, cr as BaseAddon, dt as createDeviceExtensionProvider, ei as EventCategory, gr as SECRET_CLEAR, gt as defineExtensionSlotProvider, ir as DeviceFeature, ln as parseStreamParamsFormPatch, o as CAMERA_SWITCH_ORDER, on as normalizeUnit, or as DeviceType, sr as errMsg, t as ALL_CAPABILITY_DEFINITIONS, v as DAY_NAMES, w as FieldClaimSchema, wt as enumerateItemArrayFields, x as DeviceStatusSchema, xt as deviceStateCapability, yt as deviceExtensionCapability } from "../../dist-DlmdESNT.mjs";
|
|
2
|
+
import { n as purgeRetiredSettingsRows } from "../../retired-settings-keys-k_XuC-Mt.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import { canonicalDeviceFingerprint } from "@camstack/types/node";
|
|
@@ -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-DVUg8e1T.js");
|
|
7
7
|
const require_formatter = require("../../formatter-DqAKDlvN.js");
|
|
8
8
|
//#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
|
|
9
9
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Xt as logDestinationCapability, cr as BaseAddon } from "../../dist-DlmdESNT.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-B7qW8bPJ.mjs";
|
|
3
3
|
//#region src/builtins/hub-forwarder/hub-forwarder-destination.ts
|
|
4
4
|
var DEFAULT_OUTBOUND_BUFFER_SIZE = 500;
|
|
@@ -3,11 +3,12 @@ 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-
|
|
7
|
-
const require_jwt_signing_key = require("../../jwt-signing-key-
|
|
8
|
-
const require_constants = require("../../constants-
|
|
6
|
+
const require_dist = require("../../dist-DVUg8e1T.js");
|
|
7
|
+
const require_jwt_signing_key = require("../../jwt-signing-key-Jyu81jZR.js");
|
|
8
|
+
const require_constants = require("../../constants-Aj0OBqlt.js");
|
|
9
9
|
const require_platform_key_source = require("../../platform-key-source-Di7HrlGR.js");
|
|
10
10
|
let node_crypto = require("node:crypto");
|
|
11
|
+
let _camstack_types_node = require("@camstack/types/node");
|
|
11
12
|
let node_path = require("node:path");
|
|
12
13
|
node_path = require_chunk.__toESM(node_path);
|
|
13
14
|
let node_fs = require("node:fs");
|
|
@@ -217,21 +218,18 @@ async function writeKeyFileAt(file, key, opts) {
|
|
|
217
218
|
recursive: true,
|
|
218
219
|
mode: 448
|
|
219
220
|
});
|
|
220
|
-
|
|
221
|
+
(0, _camstack_types_node.restrictDirToOwnerSync)(dir);
|
|
221
222
|
let movedAside = null;
|
|
222
223
|
try {
|
|
223
224
|
await node_fs.promises.access(file);
|
|
224
225
|
if (!opts.replace) throw new Error(`refusing to overwrite the existing master key at ${file}`);
|
|
225
226
|
movedAside = `${file}.prev-${opts.nowMs}`;
|
|
226
227
|
await node_fs.promises.copyFile(file, movedAside);
|
|
227
|
-
|
|
228
|
+
(0, _camstack_types_node.restrictFileToOwnerSync)(movedAside);
|
|
228
229
|
} catch (err) {
|
|
229
230
|
if ((err !== null && typeof err === "object" ? Reflect.get(err, "code") : void 0) !== "ENOENT") throw err;
|
|
230
231
|
}
|
|
231
|
-
|
|
232
|
-
await node_fs.promises.writeFile(tmp, `${encodeKeyMaterial(key)}\n`, { mode: 384 });
|
|
233
|
-
await node_fs.promises.rename(tmp, file);
|
|
234
|
-
await node_fs.promises.chmod(file, 384);
|
|
232
|
+
(0, _camstack_types_node.writeOwnerOnlyFileSync)(file, `${encodeKeyMaterial(key)}\n`);
|
|
235
233
|
const back = await loadKeyFile(file);
|
|
236
234
|
if (back.kind !== "loaded" || !back.key.equals(key)) throw new Error("the written key file does not read back as the generated key");
|
|
237
235
|
return movedAside;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as SYSTEM_SECRET_OWNER, t as JWT_SIGNING_KEY_REF } from "../../jwt-signing-key-
|
|
3
|
-
import { a as MESH_CA_KEY_REF, p as CLUSTER_SECRET_SETTINGS_KEY } from "../../constants-
|
|
1
|
+
import { Ar as formatSecretScope, Br as normalizeSecretOwner, D as KEYCHAIN_RESET_TRIGGER_ACTOR, Ur as parseSecretRef, Ut as keychainAdminCapability, Wt as keychainCapability, cr as BaseAddon, ei as EventCategory } from "../../dist-DlmdESNT.mjs";
|
|
2
|
+
import { r as SYSTEM_SECRET_OWNER, t as JWT_SIGNING_KEY_REF } from "../../jwt-signing-key-CGg61A5v.mjs";
|
|
3
|
+
import { a as MESH_CA_KEY_REF, p as CLUSTER_SECRET_SETTINGS_KEY } from "../../constants-C8T7u1_Z.mjs";
|
|
4
4
|
import { n as getPlatformKeychainKey } from "../../platform-key-source-BWlq0jjn.mjs";
|
|
5
5
|
import { createCipheriv, createDecipheriv, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
6
|
+
import { restrictDirToOwnerSync, restrictFileToOwnerSync, writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
6
7
|
import * as path$1 from "node:path";
|
|
7
8
|
import { promises } from "node:fs";
|
|
8
9
|
var IV_BYTES = 12;
|
|
@@ -211,21 +212,18 @@ async function writeKeyFileAt(file, key, opts) {
|
|
|
211
212
|
recursive: true,
|
|
212
213
|
mode: 448
|
|
213
214
|
});
|
|
214
|
-
|
|
215
|
+
restrictDirToOwnerSync(dir);
|
|
215
216
|
let movedAside = null;
|
|
216
217
|
try {
|
|
217
218
|
await promises.access(file);
|
|
218
219
|
if (!opts.replace) throw new Error(`refusing to overwrite the existing master key at ${file}`);
|
|
219
220
|
movedAside = `${file}.prev-${opts.nowMs}`;
|
|
220
221
|
await promises.copyFile(file, movedAside);
|
|
221
|
-
|
|
222
|
+
restrictFileToOwnerSync(movedAside);
|
|
222
223
|
} catch (err) {
|
|
223
224
|
if ((err !== null && typeof err === "object" ? Reflect.get(err, "code") : void 0) !== "ENOENT") throw err;
|
|
224
225
|
}
|
|
225
|
-
|
|
226
|
-
await promises.writeFile(tmp, `${encodeKeyMaterial(key)}\n`, { mode: 384 });
|
|
227
|
-
await promises.rename(tmp, file);
|
|
228
|
-
await promises.chmod(file, 384);
|
|
226
|
+
writeOwnerOnlyFileSync(file, `${encodeKeyMaterial(key)}\n`);
|
|
229
227
|
const back = await loadKeyFile(file);
|
|
230
228
|
if (back.kind !== "loaded" || !back.key.equals(key)) throw new Error("the written key file does not read back as the generated key");
|
|
231
229
|
return movedAside;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
require("../../chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("../../dist-
|
|
3
|
+
const require_dist = require("../../dist-DVUg8e1T.js");
|
|
4
4
|
//#region src/builtins/liveness-monitor/liveness-checks.ts
|
|
5
5
|
var NO_DEVICES = "liveness:no-devices";
|
|
6
6
|
var ALL_OFFLINE = "liveness:all-devices-offline";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { F as RecordingStatusSchema, P as RECORDING_SOURCE_CAMSTACK_ADDON, cr as BaseAddon, ei as EventCategory, sr as errMsg, wr as createEvent } from "../../dist-DlmdESNT.mjs";
|
|
2
2
|
//#region src/builtins/liveness-monitor/liveness-checks.ts
|
|
3
3
|
var NO_DEVICES = "liveness:no-devices";
|
|
4
4
|
var ALL_OFFLINE = "liveness:all-devices-offline";
|
|
@@ -3,10 +3,10 @@ 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-DVUg8e1T.js");
|
|
7
7
|
const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
|
|
8
8
|
const require_ms$1 = require("../../ms-LB3giGoU.js");
|
|
9
|
-
const require_jwt_signing_key = require("../../jwt-signing-key-
|
|
9
|
+
const require_jwt_signing_key = require("../../jwt-signing-key-Jyu81jZR.js");
|
|
10
10
|
let node_crypto = require("node:crypto");
|
|
11
11
|
node_crypto = require_chunk.__toESM(node_crypto);
|
|
12
12
|
let crypto$1 = require("crypto");
|
|
@@ -7142,7 +7142,9 @@ var AUTH_AUDIT_ACTIONS = [
|
|
|
7142
7142
|
"admin-token-created",
|
|
7143
7143
|
"admin-token-used",
|
|
7144
7144
|
"admin-token-revoked",
|
|
7145
|
-
"credentials-revoked"
|
|
7145
|
+
"credentials-revoked",
|
|
7146
|
+
"agent-addon-update",
|
|
7147
|
+
"agent-addon-update-refused"
|
|
7146
7148
|
];
|
|
7147
7149
|
var RETENTION_MS = 90 * 864e5;
|
|
7148
7150
|
var MAX_LIST = 500;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { J as authProviderCapability, R as ScopedTokenSchema, U as UserRecordSchema, cr as BaseAddon, r as ApiKeyRecordSchema, zn as userManagementCapability } from "../../dist-DlmdESNT.mjs";
|
|
3
3
|
import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
|
|
4
4
|
import { t as require_ms } from "../../ms-CgH2OFlD.mjs";
|
|
5
|
-
import { a as loadJwtSigningKey, i as getProcessJwtSigningKeyState, o as processJwtSigningKey, s as setProcessJwtSigningKey, t as JWT_SIGNING_KEY_REF } from "../../jwt-signing-key-
|
|
5
|
+
import { a as loadJwtSigningKey, i as getProcessJwtSigningKeyState, o as processJwtSigningKey, s as setProcessJwtSigningKey, t as JWT_SIGNING_KEY_REF } from "../../jwt-signing-key-CGg61A5v.mjs";
|
|
6
6
|
import * as crypto$1 from "node:crypto";
|
|
7
7
|
import { createHash, randomUUID, timingSafeEqual } from "node:crypto";
|
|
8
8
|
import nodeCrypto from "crypto";
|
|
@@ -7132,7 +7132,9 @@ var AUTH_AUDIT_ACTIONS = [
|
|
|
7132
7132
|
"admin-token-created",
|
|
7133
7133
|
"admin-token-used",
|
|
7134
7134
|
"admin-token-revoked",
|
|
7135
|
-
"credentials-revoked"
|
|
7135
|
+
"credentials-revoked",
|
|
7136
|
+
"agent-addon-update",
|
|
7137
|
+
"agent-addon-update-refused"
|
|
7136
7138
|
];
|
|
7137
7139
|
var RETENTION_MS = 90 * 864e5;
|
|
7138
7140
|
var MAX_LIST = 500;
|
|
@@ -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-DVUg8e1T.js");
|
|
4
|
+
const require_tls = require("../../tls-BgImdxCO.js");
|
|
5
5
|
let zod = require("zod");
|
|
6
6
|
let node_net = require("node:net");
|
|
7
7
|
let node_os = require("node:os");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as __toESM } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
3
|
-
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-
|
|
2
|
+
import { E as HUB_MDNS_TXT_KEYS, Ft as isAppLinkBase, Jt as localNetworkCapability, Rt as isDefaultAppConnectionEndpoint, T as HUB_MDNS_SERVICE_TYPE, Vn as validateCustomAddress, _n as resolveAppConnections, cr as BaseAddon, ei as EventCategory, nt as checkRoleAddress, s as CAMSTACK_APP_LINK_ORIGIN, un as pickAppLinkHub, wn as resolveNotificationTapAddress, xn as resolveHubAddressRoles } from "../../dist-DlmdESNT.mjs";
|
|
3
|
+
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-CaOLZ09W.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
import { isIP } from "node:net";
|
|
6
6
|
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-DVUg8e1T.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 {
|
|
1
|
+
import { Xt as logDestinationCapability, cr as BaseAddon } from "../../dist-DlmdESNT.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
|