@camstack/system 1.2.452 → 1.2.454
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-CMz4S56_.js → agent-https-B7IjRRzT.js} +2 -2
- package/dist/{agent-https-D6lRxHma.mjs → agent-https-oXsR24R2.mjs} +2 -2
- 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/alert-episode-policy.d.ts +39 -0
- package/dist/builtins/alerts/alerts.addon.d.ts +25 -38
- package/dist/builtins/alerts/alerts.addon.js +178 -423
- package/dist/builtins/alerts/alerts.addon.mjs +178 -423
- package/dist/builtins/alerts/emit-alert-policy.d.ts +3 -16
- package/dist/builtins/alerts/runner-alert.d.ts +0 -13
- 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 +4 -4
- package/dist/builtins/keychain/index.mjs +4 -4
- 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 +3 -3
- package/dist/builtins/local-auth/local-auth.addon.mjs +3 -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 +15 -2
- package/dist/builtins/native-metrics/native-metrics.addon.mjs +15 -2
- 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 +22 -2
- package/dist/builtins/record-entries/index.mjs +22 -2
- 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/records/records-engine.d.ts +13 -0
- 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/location-class-paths.d.ts +13 -0
- package/dist/builtins/storage-orchestrator/location-repoint-move.d.ts +6 -1
- package/dist/builtins/storage-orchestrator/location-repointer.d.ts +97 -0
- package/dist/builtins/storage-orchestrator/location-store.d.ts +13 -2
- package/dist/builtins/storage-orchestrator/record-kinds.d.ts +5 -0
- package/dist/builtins/storage-orchestrator/storage-location-band-monitor.d.ts +38 -4
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.d.ts +8 -2
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +486 -143
- package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +486 -143
- package/dist/builtins/storage-orchestrator/storage-orchestrator.service.d.ts +26 -1
- package/dist/builtins/system-config/system-config.addon.js +3 -3
- package/dist/builtins/system-config/system-config.addon.mjs +3 -3
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{composition-sources-BQmhc3se.js → composition-sources-Cukc78eu.js} +1 -1
- package/dist/{composition-sources-DzuruDVY.mjs → composition-sources-bt6IQDLu.mjs} +1 -1
- package/dist/{constants-BPWA-r-Y.js → constants-DBGG6Zu5.js} +1 -1
- package/dist/{constants-gzGZbnwO.mjs → constants-DQcVrhVI.mjs} +1 -1
- package/dist/{device-ca-75rt3U_U.js → device-ca-B3hUVfYk.js} +1 -1
- package/dist/{device-ca-D05nqNXE.mjs → device-ca-Utfvsx5x.mjs} +1 -1
- package/dist/{dist-DV2ll9Hi.mjs → dist-7ZciHCIp.mjs} +394 -38
- package/dist/{dist-Ct88catN.js → dist-Bi4Ioxop.js} +417 -37
- package/dist/file-host-worker.js +1 -1
- package/dist/file-host-worker.mjs +1 -1
- package/dist/{hub-mdns-ciao-DAU1WttG.js → hub-mdns-ciao-2FzLWfbD.js} +2 -2
- package/dist/{hub-mdns-ciao-BPOg2iyc.mjs → hub-mdns-ciao-BRs3DUT-.mjs} +2 -2
- package/dist/index.js +17 -9
- package/dist/index.mjs +17 -9
- package/dist/kernel/cap-router-builder.d.ts +9 -0
- package/dist/{phase6-declare-gate-BJplW6tX.mjs → phase6-declare-gate-D-2LMw9o.mjs} +1 -1
- package/dist/{phase6-declare-gate-C6WqagkC.js → phase6-declare-gate-DwYAep7y.js} +1 -1
- package/dist/{restore-archive-Cprdh3P9.js → restore-archive-C0ymYQk7.js} +1 -1
- package/dist/{restore-archive-Jiz63mVB.mjs → restore-archive-UVZv_hmr.mjs} +1 -1
- package/dist/{wal-maintenance-BspX29jz.js → wal-maintenance-Bo_lo3Dh.js} +0 -0
- package/dist/{wal-maintenance-BNIaf3QP.mjs → wal-maintenance-Df89xxrK.mjs} +0 -0
- package/package.json +1 -1
- package/dist/builtins/alerts/critical-push.d.ts +0 -90
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { Alert } from "@camstack/types";
|
|
2
|
-
import { type PushState } from "./critical-push.js";
|
|
3
2
|
export declare function episodeKeyFromMetadata(metadata: Record<string, unknown> | undefined): string | undefined;
|
|
4
3
|
export interface EmitMergeInput {
|
|
5
4
|
readonly existing: {
|
|
@@ -9,20 +8,8 @@ export interface EmitMergeInput {
|
|
|
9
8
|
} | null;
|
|
10
9
|
readonly incoming: Alert;
|
|
11
10
|
}
|
|
12
|
-
export interface EmitMergeResult {
|
|
13
|
-
readonly alert: Alert;
|
|
14
|
-
readonly queuePush: boolean;
|
|
15
|
-
}
|
|
16
|
-
/** Completed episodes start fresh — prior push must not suppress the next digest. */
|
|
17
|
-
export declare function shouldDropPriorPush(existingStatus: string | undefined): boolean;
|
|
18
|
-
export declare function alertWithRetainedPush(toStore: Alert, existingPush: PushState | undefined, existingStatus: string | undefined): Alert;
|
|
19
11
|
/**
|
|
20
|
-
* Re-emit of the same alert id: preserve read when the episode is unchanged
|
|
21
|
-
* and still active. A completed episode starts again.
|
|
22
|
-
* only for active, unread critical findings.
|
|
12
|
+
* Re-emit of the same alert id: preserve `read` when the episode is unchanged
|
|
13
|
+
* and still active. A completed episode starts again.
|
|
23
14
|
*/
|
|
24
|
-
export declare function mergeEmitAlert(input: EmitMergeInput):
|
|
25
|
-
export declare function criticalPushPayload(alert: Alert): {
|
|
26
|
-
readonly key: string;
|
|
27
|
-
readonly line: string;
|
|
28
|
-
};
|
|
15
|
+
export declare function mergeEmitAlert(input: EmitMergeInput): Alert;
|
|
@@ -56,16 +56,3 @@ export interface RenderedRunnerAlert {
|
|
|
56
56
|
readonly message: string;
|
|
57
57
|
}
|
|
58
58
|
export declare function renderRunnerAlert(record: RunnerAlertRecord): RenderedRunnerAlert;
|
|
59
|
-
/** Is the record in a state an operator must act on (terminal)? */
|
|
60
|
-
export declare function isTerminalRunnerState(state: RunnerAlertState): boolean;
|
|
61
|
-
/**
|
|
62
|
-
* The push key of a record: its episode and its cause. The same refusal of the
|
|
63
|
-
* same episode is never pushed twice; a refusal with another reason, a breaker
|
|
64
|
-
* trip, or any failure after a recovery (a new episode) is a new push.
|
|
65
|
-
*/
|
|
66
|
-
export declare function runnerPushKey(record: RunnerAlertRecord): string;
|
|
67
|
-
/**
|
|
68
|
-
* The one line a push carries: runner, state and the remedy. Deliberately NOT
|
|
69
|
-
* the raw reason or error text - those stay on the alert.
|
|
70
|
-
*/
|
|
71
|
-
export declare function runnerPushLine(record: RunnerAlertRecord): string;
|
|
@@ -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-Bi4Ioxop.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 { Gr as errMsg, Kr as BaseAddon, P as FIRST_LEVEL_MACRO_CLASSES, Ui as isEvent, qn as ptzAutotrackCapability, va as EventCategory, yt as bareAddonId } from "../../dist-7ZciHCIp.mjs";
|
|
2
2
|
//#region src/builtins/autotrack/autotrack-config.ts
|
|
3
3
|
var DEFAULT_AUTOTRACK_LOOP_CONFIG = {
|
|
4
4
|
deadZoneFraction: .5,
|
|
@@ -3,9 +3,9 @@ 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-Bi4Ioxop.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
|
-
const require_restore_archive = require("../../restore-archive-
|
|
8
|
+
const require_restore_archive = require("../../restore-archive-C0ymYQk7.js");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
10
10
|
let node_fs_promises = require("node:fs/promises");
|
|
11
11
|
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Kr as BaseAddon, Nn as mayWriteToLocation, Zi as nodePin, pa as toNodeId, va as EventCategory, vr as storageOccupancyCapability, vt as backupCapability } from "../../dist-7ZciHCIp.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
|
-
import { _ as parseBackupSecretKey, a as BackupSnapshotRefusedError, c as backupOrchestratorRecordKinds, d as BackupEncryptionKeyStore, g as generateBackupKeyPair, h as ENCRYPTED_BACKUP_SUFFIX, i as BackupCancelledError, l as backupRecordStoresOf, n as precheckRestoreKey, o as DEFAULT_BACKUP_DATABASES, p as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, u as BackupSeedMarkerStore } from "../../restore-archive-
|
|
3
|
+
import { _ as parseBackupSecretKey, a as BackupSnapshotRefusedError, c as backupOrchestratorRecordKinds, d as BackupEncryptionKeyStore, g as generateBackupKeyPair, h as ENCRYPTED_BACKUP_SUFFIX, i as BackupCancelledError, l as backupRecordStoresOf, n as precheckRestoreKey, o as DEFAULT_BACKUP_DATABASES, p as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, u as BackupSeedMarkerStore } from "../../restore-archive-UVZv_hmr.mjs";
|
|
4
4
|
import { randomUUID } from "node:crypto";
|
|
5
5
|
import * as fsp from "node:fs/promises";
|
|
6
6
|
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-Bi4Ioxop.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 { Ii as defineRecordKinds, Kr as BaseAddon, Tt as calendarsCapability, g as CalendarPreferencesSchema } from "../../dist-7ZciHCIp.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-Bi4Ioxop.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 { Bt as declarationOwnerNodeId, Et as cameraGridLayoutCapability, Gr as errMsg, Hr as DeviceFeature, Kr as BaseAddon, Ln as motionCapability, Mi as createEvent, Pn as memoizePinnedFfmpeg, Vi as hydrateSchema, Wr as DeviceType, br as streamCatalogCapability, j as DeclaredDevices, jr as buildFfmpegArgs, o as BaseDevice, pr as snapshotCapability, q as MOTION_CLOSE_AFTER_MS, va as EventCategory, w as DERIVED_CAMERA_SILENCED_CAP_NAMES } from "../../dist-7ZciHCIp.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-Bi4Ioxop.js");
|
|
7
|
+
const require_composition_sources = require("../../composition-sources-Cukc78eu.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 {
|
|
2
|
-
import { n as normalizedNativeOwner } from "../../composition-sources-
|
|
1
|
+
import { Ar as COMPOSER_ADDON_ID, At as compositionFieldKey, Br as disarmRoseMemory, Fr as compositionFeatureEnabled, Gr as errMsg, Ir as compositionItemFieldPath, Kr as BaseAddon, Lr as compositionSliceKey, Mi as createEvent, Mr as cloneStatefulExpressionMemory, Nr as composedDeviceRef, Pr as composedDeviceStableId, Rr as compositionSourceKey, Vr as toExpressionValue, Wn as planComposition, Wr as DeviceType, f as COMPOSED_ITEM_FIXED_FIELDS, in as expressionContainsBuiltinCall, j as DeclaredDevices, kt as composerCapability, o as BaseDevice, r as ALL_CAPABILITY_DEFINITIONS, tn as evaluateCompositionField, va as EventCategory, xt as buildCapabilityLookup, zr as createStatefulExpressionMemory } from "../../dist-7ZciHCIp.mjs";
|
|
2
|
+
import { n as normalizedNativeOwner } from "../../composition-sources-bt6IQDLu.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-Bi4Ioxop.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 { Kr as BaseAddon, kn as logDestinationCapability } from "../../dist-7ZciHCIp.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,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-Bi4Ioxop.js");
|
|
4
4
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
5
|
-
const require_composition_sources = require("../../composition-sources-
|
|
5
|
+
const require_composition_sources = require("../../composition-sources-Cukc78eu.js");
|
|
6
6
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
7
7
|
const require_prefix_walk = require("../../prefix-walk-Dv6MLZlM.js");
|
|
8
8
|
let zod = require("zod");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ai as collectSecretMarkerRefs, Ft as coreBlockSourceKind, Gr as errMsg, Ii as defineRecordKinds, It as coreBlocksCapability, Ji as isSecretRefOwnedBy, Ki as isSecretMarker, Kr as BaseAddon, Mt as coreBlockAddonId, Nr as composedDeviceRef, Nt as coreBlockComposition, Pt as coreBlockIdFromAddonId, Rn as normalizeCoreBlockWrite, Rr as compositionSourceKey, Vi as hydrateSchema, Wn as planComposition, Wt as describeComposableCaps, Zn as replacedFieldKeys, ca as resolveSecretMarkers, da as secretTreeFromSchema, er as resolveCoreBlockEntry, h as CORE_BLOCK_ADDON_PREFIX, ha as transformSecretWrite, j as DeclaredDevices, jt as compositionSourceRefs, m as CORE_BLOCKS_ADDON_ID, p as COMPOSER_RUNNER_ID, r as ALL_CAPABILITY_DEFINITIONS, tr as resolveCoreBlockFiles, v as CoreBlockSchema, wr as validateComposition, xt as buildCapabilityLookup } from "../../dist-7ZciHCIp.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
|
-
import { t as describeCompositionSources } from "../../composition-sources-
|
|
3
|
+
import { t as describeCompositionSources } from "../../composition-sources-bt6IQDLu.mjs";
|
|
4
4
|
import { t as prefixRange } from "../../prefix-range-Dl0znowN.mjs";
|
|
5
5
|
import { n as unwrapStoredValue, t as loadPrefixed } from "../../prefix-walk-DAOBSyH1.mjs";
|
|
6
6
|
import { createRequire } from "node:module";
|
|
@@ -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-Bi4Ioxop.js");
|
|
7
7
|
//#region src/builtins/device-history/store/series-registry.ts
|
|
8
8
|
function subjectIdOf(subject) {
|
|
9
9
|
return subject.kind === "device" ? `d:${subject.deviceId}` : `n:${subject.nodeId}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Kr as BaseAddon, L as HISTORY_CATALOG, Wr as DeviceType, Yt as deviceRemovalHookCapability, gt as armRemovalReconcile, qt as deviceHistoryCapability, ti as HISTORY_DEFAULT_MIN_INTERVAL_MS, va as EventCategory } from "../../dist-7ZciHCIp.mjs";
|
|
2
2
|
//#region src/builtins/device-history/store/series-registry.ts
|
|
3
3
|
function subjectIdOf(subject) {
|
|
4
4
|
return subject.kind === "device" ? `d:${subject.deviceId}` : `n:${subject.nodeId}`;
|
|
@@ -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-Bi4Ioxop.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
const require_prefix_range = require("../../prefix-range-D_KueXbQ.js");
|
|
9
9
|
const require_prefix_walk = require("../../prefix-walk-Dv6MLZlM.js");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $t as enumerateItemArrayFields, C as DAY_NAMES, Dt as canonicalIconKey, F as FieldClaimModeSchema, Gi as isSecretClear, Gr as errMsg, Hi as isDeviceConfigCap, Hn as parseStreamParamsFormPatch, Hr as DeviceFeature, Ht as defineExtensionSlotProvider, I as FieldClaimSchema, Ii as defineRecordKinds, Jt as deviceManagerCapability, K as MINUTES_PER_DAY, Ki as isSecretMarker, Kr as BaseAddon, Kt as deviceExtensionCapability, Lt as createDeviceExtensionProvider, M as DeviceStatusSchema, N as DeviceTombstoneSchema, On as locationIconKey, Si as WELL_KNOWN_TAB_MAP, Ur as DeviceRole, Wi as isKeychainStoredField, Wr as DeviceType, Xt as deviceStateCapability, Zt as deviceStatusCapability, c as CAMERA_SWITCH_ORDER, ca as resolveSecretMarkers, en as enumerateSchemaFields, et as STREAM_PROFILE_META, fa as sleep$1, fr as siteZoneKey, ga as userError, ha as transformSecretWrite, ji as collectZodSecretPaths, ln as formatMinutes, ma as toSecretFieldView, or as runtimeStatePolicyFor, qi as isSecretMarkerLike, r as ALL_CAPABILITY_DEFINITIONS, rn as expandContainer, u as CAP_NAMES_WITH_STATUS, ua as secretTreeFromPaths, va as EventCategory, wn as legacyAutoLinkIds, wt as buildStreamParamsConfigSchema, yi as SECRET_CLEAR, zn as normalizeUnit } from "../../dist-7ZciHCIp.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
3
|
import { t as prefixRange } from "../../prefix-range-Dl0znowN.mjs";
|
|
4
4
|
import { t as loadPrefixed } from "../../prefix-walk-DAOBSyH1.mjs";
|
|
@@ -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-Bi4Ioxop.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 { Kr as BaseAddon, kn as logDestinationCapability } from "../../dist-7ZciHCIp.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,11 @@ 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-Bi4Ioxop.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
|
-
const require_device_ca = require("../../device-ca-
|
|
9
|
-
const require_phase6_declare_gate = require("../../phase6-declare-gate-
|
|
10
|
-
const require_constants = require("../../constants-
|
|
8
|
+
const require_device_ca = require("../../device-ca-B3hUVfYk.js");
|
|
9
|
+
const require_phase6_declare_gate = require("../../phase6-declare-gate-DwYAep7y.js");
|
|
10
|
+
const require_constants = require("../../constants-DBGG6Zu5.js");
|
|
11
11
|
const require_platform_key_source = require("../../platform-key-source-Di7HrlGR.js");
|
|
12
12
|
let node_crypto = require("node:crypto");
|
|
13
13
|
let _camstack_types_node = require("@camstack/types/node");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $i as normalizeSecretOwner, B as KEYCHAIN_RESET_TRIGGER_ACTOR, Bi as formatSecretScope, Cn as keychainCapability, H as KeychainResetRecordSchema, Ii as defineRecordKinds, Kr as BaseAddon, Sn as keychainAdminCapability, V as KeychainAuditEntrySchema, na as parseSecretRef, va as EventCategory } from "../../dist-7ZciHCIp.mjs";
|
|
2
2
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
3
|
-
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-
|
|
4
|
-
import { t as resolvePhase6UseRecordsPathForHub } from "../../phase6-declare-gate-
|
|
5
|
-
import { a as MESH_CA_KEY_REF } from "../../constants-
|
|
3
|
+
import { d as JWT_SIGNING_KEY_REF, n as DEVICE_CA_KEY_REF, p as SYSTEM_SECRET_OWNER } from "../../device-ca-Utfvsx5x.mjs";
|
|
4
|
+
import { t as resolvePhase6UseRecordsPathForHub } from "../../phase6-declare-gate-D-2LMw9o.mjs";
|
|
5
|
+
import { a as MESH_CA_KEY_REF } from "../../constants-DQcVrhVI.mjs";
|
|
6
6
|
import { n as getPlatformKeychainKey } from "../../platform-key-source-BWlq0jjn.mjs";
|
|
7
7
|
import { createCipheriv, createDecipheriv, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
|
|
8
8
|
import { restrictDirToOwnerSync, restrictFileToOwnerSync, writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
@@ -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-Bi4Ioxop.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 { Gr as errMsg, Kr as BaseAddon, Mi as createEvent, X as RecordingStatusSchema, Y as RECORDING_SOURCE_CAMSTACK_ADDON, va as EventCategory } from "../../dist-7ZciHCIp.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,12 +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-
|
|
6
|
+
const require_dist = require("../../dist-Bi4Ioxop.js");
|
|
7
7
|
const require_read_all_rows$1 = require("../../read-all-rows-CVoO1ONM.js");
|
|
8
8
|
const require_safe_buffer$1 = require("../../safe-buffer-D3aoa-7X.js");
|
|
9
9
|
const require_ms$1 = require("../../ms-LB3giGoU.js");
|
|
10
|
-
const require_device_ca = require("../../device-ca-
|
|
11
|
-
const require_phase6_declare_gate = require("../../phase6-declare-gate-
|
|
10
|
+
const require_device_ca = require("../../device-ca-B3hUVfYk.js");
|
|
11
|
+
const require_phase6_declare_gate = require("../../phase6-declare-gate-DwYAep7y.js");
|
|
12
12
|
let zod = require("zod");
|
|
13
13
|
let node_crypto = require("node:crypto");
|
|
14
14
|
node_crypto = require_chunk.__toESM(node_crypto);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Cr as userManagementCapability, Ct as buildDeviceSignatureMessage, E as DEVICE_NONCE_TTL_MS, Gt as deviceCredentialsCapability, Ii as defineRecordKinds, Ki as isSecretMarker, Kr as BaseAddon, St as buildDeviceEnrollmentLink, T as DEVICE_ENROLLMENT_TTL_MS, Yi as makeSecretMarker, _t as authProviderCapability, a as ApiKeyRecordSchema, cn as formatDeviceRevoker, ct as TokenScopeSchema, ga as userError, lt as UserRecordSchema, rt as SsoBridgeClaimsSchema, tt as ScopedTokenSchema } from "../../dist-7ZciHCIp.mjs";
|
|
3
3
|
import { t as require_read_all_rows } from "../../read-all-rows-TaPqdWNF.mjs";
|
|
4
4
|
import { t as require_safe_buffer } from "../../safe-buffer-B1OjL1I9.mjs";
|
|
5
5
|
import { t as require_ms } from "../../ms-CgH2OFlD.mjs";
|
|
6
|
-
import { _ as setProcessJwtSigningKey, a as importDevicePublicKey, c as rebuildDeviceCaCertificate, d as JWT_SIGNING_KEY_REF, g as processJwtSigningKey, h as loadJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, r as DEVICE_CA_SETTINGS_SECTION, s as loadDeviceCa, t as DEVICE_CA_FIELD, u as verifyDeviceSignature } from "../../device-ca-
|
|
7
|
-
import { t as resolvePhase6UseRecordsPathForHub } from "../../phase6-declare-gate-
|
|
6
|
+
import { _ as setProcessJwtSigningKey, a as importDevicePublicKey, c as rebuildDeviceCaCertificate, d as JWT_SIGNING_KEY_REF, g as processJwtSigningKey, h as loadJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, r as DEVICE_CA_SETTINGS_SECTION, s as loadDeviceCa, t as DEVICE_CA_FIELD, u as verifyDeviceSignature } from "../../device-ca-Utfvsx5x.mjs";
|
|
7
|
+
import { t as resolvePhase6UseRecordsPathForHub } from "../../phase6-declare-gate-D-2LMw9o.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import * as crypto$1 from "node:crypto";
|
|
10
10
|
import { X509Certificate, createHash, randomUUID, timingSafeEqual } from "node:crypto";
|
|
@@ -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_hub_mdns_ciao = require("../../hub-mdns-ciao-
|
|
3
|
+
const require_dist = require("../../dist-Bi4Ioxop.js");
|
|
4
|
+
const require_hub_mdns_ciao = require("../../hub-mdns-ciao-2FzLWfbD.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 {
|
|
2
|
-
import { P as readLanHttpState, a as storeUploadedCertificate, d as servedHttpsLeafFingerprint, g as readTlsMode, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as applyLanHttp, k as DEFAULT_LAN_HTTP_PORT, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, r as regenerateCertificate, t as createCiaoPublisher, v as writeExtraSans, w as ensureTlsCert } from "../../hub-mdns-ciao-
|
|
1
|
+
import { Dn as localNetworkCapability, J as NetworkTunnelStartedDataSchema, Kr as BaseAddon, Ot as checkRoleAddress, Qn as resolveAppConnections, R as HUB_MDNS_SERVICE_TYPE, Tr as validateCustomAddress, Un as pickAppLinkHub, _n as isDefaultAppConnectionEndpoint, ar as resolveNotificationTapAddress, l as CAMSTACK_APP_LINK_ORIGIN, mn as isAppLinkBase, nr as resolveHubAddressRoles, va as EventCategory, z as HUB_MDNS_TXT_KEYS } from "../../dist-7ZciHCIp.mjs";
|
|
2
|
+
import { P as readLanHttpState, a as storeUploadedCertificate, d as servedHttpsLeafFingerprint, g as readTlsMode, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as applyLanHttp, k as DEFAULT_LAN_HTTP_PORT, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, r as regenerateCertificate, t as createCiaoPublisher, v as writeExtraSans, w as ensureTlsCert } from "../../hub-mdns-ciao-BRs3DUT-.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { isIP } from "node:net";
|
|
5
5
|
import * as os$1 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-Bi4Ioxop.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 { Kr as BaseAddon, kn as logDestinationCapability } from "../../dist-7ZciHCIp.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-Bi4Ioxop.js");
|
|
7
7
|
let node_fs_promises = require("node:fs/promises");
|
|
8
8
|
let node_util = require("node:util");
|
|
9
9
|
let node_os = require("node:os");
|
|
@@ -1045,6 +1045,11 @@ function nodeMetricsHistoryClient(api) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
};
|
|
1047
1047
|
}
|
|
1048
|
+
function refusalCounts(result) {
|
|
1049
|
+
const counts = {};
|
|
1050
|
+
for (const r of result.refused) counts[r.reason] = (counts[r.reason] ?? 0) + r.count;
|
|
1051
|
+
return counts;
|
|
1052
|
+
}
|
|
1048
1053
|
var NodeMetricsHistoryRecorder = class {
|
|
1049
1054
|
deps;
|
|
1050
1055
|
declared = false;
|
|
@@ -1118,7 +1123,15 @@ var NodeMetricsHistoryRecorder = class {
|
|
|
1118
1123
|
});
|
|
1119
1124
|
if (points.length === 0) return;
|
|
1120
1125
|
try {
|
|
1121
|
-
await this.deps.deviceHistory.record({ points });
|
|
1126
|
+
const result = await this.deps.deviceHistory.record({ points });
|
|
1127
|
+
if (result.refused.length > 0) {
|
|
1128
|
+
if (result.refused.some((r) => r.reason === "undeclared")) this.declared = false;
|
|
1129
|
+
this.deps.logger.warn("node metrics history points refused", { meta: {
|
|
1130
|
+
nodeId,
|
|
1131
|
+
accepted: result.accepted,
|
|
1132
|
+
refused: refusalCounts(result)
|
|
1133
|
+
} });
|
|
1134
|
+
}
|
|
1122
1135
|
} catch (err) {
|
|
1123
1136
|
this.deps.logger.warn("node metrics history sample not stored", { meta: {
|
|
1124
1137
|
nodeId,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $n as resolveBucketMs, Fn as metricsProviderCapability, Gr as errMsg, Kr as BaseAddon, Mi as createEvent, Xn as reducePoints, sn as foldSnapshotByFunction, va as EventCategory } from "../../dist-7ZciHCIp.mjs";
|
|
2
2
|
import { access, readFile, readdir } from "node:fs/promises";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import * as os$1 from "node:os";
|
|
@@ -1040,6 +1040,11 @@ function nodeMetricsHistoryClient(api) {
|
|
|
1040
1040
|
}
|
|
1041
1041
|
};
|
|
1042
1042
|
}
|
|
1043
|
+
function refusalCounts(result) {
|
|
1044
|
+
const counts = {};
|
|
1045
|
+
for (const r of result.refused) counts[r.reason] = (counts[r.reason] ?? 0) + r.count;
|
|
1046
|
+
return counts;
|
|
1047
|
+
}
|
|
1043
1048
|
var NodeMetricsHistoryRecorder = class {
|
|
1044
1049
|
deps;
|
|
1045
1050
|
declared = false;
|
|
@@ -1113,7 +1118,15 @@ var NodeMetricsHistoryRecorder = class {
|
|
|
1113
1118
|
});
|
|
1114
1119
|
if (points.length === 0) return;
|
|
1115
1120
|
try {
|
|
1116
|
-
await this.deps.deviceHistory.record({ points });
|
|
1121
|
+
const result = await this.deps.deviceHistory.record({ points });
|
|
1122
|
+
if (result.refused.length > 0) {
|
|
1123
|
+
if (result.refused.some((r) => r.reason === "undeclared")) this.declared = false;
|
|
1124
|
+
this.deps.logger.warn("node metrics history points refused", { meta: {
|
|
1125
|
+
nodeId,
|
|
1126
|
+
accepted: result.accepted,
|
|
1127
|
+
refused: refusalCounts(result)
|
|
1128
|
+
} });
|
|
1129
|
+
}
|
|
1117
1130
|
} catch (err) {
|
|
1118
1131
|
this.deps.logger.warn("node metrics history sample not stored", { meta: {
|
|
1119
1132
|
nodeId,
|
|
@@ -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-Bi4Ioxop.js");
|
|
7
7
|
let node_util = require("node:util");
|
|
8
8
|
let node_os = require("node:os");
|
|
9
9
|
node_os = require_chunk.__toESM(node_os);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as __toESM, r as __exportAll } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { Gn as platformProbeCapability, Gr as errMsg, Kr as BaseAddon, Qt as enumerateInferenceDevices, Ri as emitReadiness, lr as scoreRuntimes, va as EventCategory } from "../../dist-7ZciHCIp.mjs";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import * as os$1 from "node:os";
|
|
5
5
|
import * as fs from "node:fs";
|
|
@@ -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-Bi4Ioxop.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -23,6 +23,26 @@ var ENTRIES_LIST_MAX = 2e3;
|
|
|
23
23
|
function isRecord(value) {
|
|
24
24
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
25
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* A stored secret, as an entries read shows it: a VIEW naming the row's own
|
|
28
|
+
* keychain ref (`set: true`), never the value and no longer the bare redaction
|
|
29
|
+
* token. The form hands it to the secret field, which reveals the value by
|
|
30
|
+
* ref through the audited `keychain-admin.reveal`; sent back untouched it
|
|
31
|
+
* keeps the stored secret (the records door reads a view as KEEP).
|
|
32
|
+
*/
|
|
33
|
+
function secretViewsOf(owner, kind, id, info, data) {
|
|
34
|
+
const decl = info.declaration;
|
|
35
|
+
if (decl.secretPaths.length === 0) return data;
|
|
36
|
+
const shown = require_dist.mapSecretLeaves(data, decl.secretPaths, decl.secretArrayKeys, (leaf) => {
|
|
37
|
+
if (leaf.value !== "__camstack_redacted__") return leaf.value;
|
|
38
|
+
return {
|
|
39
|
+
$secret: require_dist.recordSecretRef(owner, kind, id, leaf.concrete),
|
|
40
|
+
v: 1,
|
|
41
|
+
set: true
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
return isRecord(shown) ? shown : data;
|
|
45
|
+
}
|
|
26
46
|
var EntriesService = class {
|
|
27
47
|
deps;
|
|
28
48
|
constructor(deps) {
|
|
@@ -77,7 +97,7 @@ var EntriesService = class {
|
|
|
77
97
|
name: typeof name === "string" ? name : row.id,
|
|
78
98
|
rev: row.rev,
|
|
79
99
|
updatedAt: row.updatedAt,
|
|
80
|
-
data: row.data
|
|
100
|
+
data: secretViewsOf(input.owner, input.kind, row.id, info, row.data)
|
|
81
101
|
});
|
|
82
102
|
}
|
|
83
103
|
cursor = page.nextCursor ?? void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Jn as recordEntriesCapability, Kr as BaseAddon, Xi as mapSecretLeaves, ni as InvalidRecordError, oa as recordSecretRef, xi as UnknownRecordKindError } from "../../dist-7ZciHCIp.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
//#region src/builtins/record-entries/entries-service.ts
|
|
@@ -18,6 +18,26 @@ var ENTRIES_LIST_MAX = 2e3;
|
|
|
18
18
|
function isRecord(value) {
|
|
19
19
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* A stored secret, as an entries read shows it: a VIEW naming the row's own
|
|
23
|
+
* keychain ref (`set: true`), never the value and no longer the bare redaction
|
|
24
|
+
* token. The form hands it to the secret field, which reveals the value by
|
|
25
|
+
* ref through the audited `keychain-admin.reveal`; sent back untouched it
|
|
26
|
+
* keeps the stored secret (the records door reads a view as KEEP).
|
|
27
|
+
*/
|
|
28
|
+
function secretViewsOf(owner, kind, id, info, data) {
|
|
29
|
+
const decl = info.declaration;
|
|
30
|
+
if (decl.secretPaths.length === 0) return data;
|
|
31
|
+
const shown = mapSecretLeaves(data, decl.secretPaths, decl.secretArrayKeys, (leaf) => {
|
|
32
|
+
if (leaf.value !== "__camstack_redacted__") return leaf.value;
|
|
33
|
+
return {
|
|
34
|
+
$secret: recordSecretRef(owner, kind, id, leaf.concrete),
|
|
35
|
+
v: 1,
|
|
36
|
+
set: true
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
return isRecord(shown) ? shown : data;
|
|
40
|
+
}
|
|
21
41
|
var EntriesService = class {
|
|
22
42
|
deps;
|
|
23
43
|
constructor(deps) {
|
|
@@ -72,7 +92,7 @@ var EntriesService = class {
|
|
|
72
92
|
name: typeof name === "string" ? name : row.id,
|
|
73
93
|
rev: row.rev,
|
|
74
94
|
updatedAt: row.updatedAt,
|
|
75
|
-
data: row.data
|
|
95
|
+
data: secretViewsOf(input.owner, input.kind, row.id, info, row.data)
|
|
76
96
|
});
|
|
77
97
|
}
|
|
78
98
|
cursor = page.nextCursor ?? void 0;
|
|
@@ -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-Bi4Ioxop.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 { Kr as BaseAddon, va as EventCategory } from "../../dist-7ZciHCIp.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-Bi4Ioxop.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");
|