@camstack/system 1.2.198 → 1.2.200
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/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/backup-orchestrator/backup-orchestrator.addon.js +1 -1
- package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
- 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 +1 -1
- package/dist/builtins/core-blocks/core-blocks.addon.mjs +1 -1
- 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/doorbell/virtual-doorbell.addon.js +1 -1
- package/dist/builtins/doorbell/virtual-doorbell.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/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 +1 -1
- package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
- package/dist/builtins/local-network/local-network.addon.js +1 -1
- package/dist/builtins/local-network/local-network.addon.mjs +1 -1
- 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/system-config.addon.js +1 -1
- package/dist/builtins/system-config/system-config.addon.mjs +1 -1
- package/dist/builtins/winston-logging/index.js +1 -1
- package/dist/builtins/winston-logging/index.mjs +1 -1
- package/dist/{dist-DWnHJI2T.mjs → dist-CCp74QLJ.mjs} +73 -43
- package/dist/{dist-BNaW68aZ.js → dist-KQ5D2wqr.js} +73 -43
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{retired-settings-keys-FwgzdSHJ.js → retired-settings-keys-2lWk7OeU.js} +1 -1
- package/dist/{retired-settings-keys-cjLVvYV0.mjs → retired-settings-keys-7P9XwNdl.mjs} +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, {
|
|
|
3
3
|
[Symbol.toStringTag]: { value: "Module" }
|
|
4
4
|
});
|
|
5
5
|
const require_chunk = require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-KQ5D2wqr.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 { D as addonPagesCapability, Ft as errMsg, It as BaseAddon, cn as EventCategory } from "../../dist-
|
|
1
|
+
import { D as addonPagesCapability, Ft as errMsg, It as BaseAddon, cn as EventCategory } from "../../dist-CCp74QLJ.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-KQ5D2wqr.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 { Ft as errMsg, It as BaseAddon, cn as EventCategory, k as addonWidgetsCapability } from "../../dist-
|
|
1
|
+
import { Ft as errMsg, It as BaseAddon, cn as EventCategory, k as addonWidgetsCapability } from "../../dist-CCp74QLJ.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-KQ5D2wqr.js");
|
|
7
7
|
//#region src/builtins/alerts/prune-policy.ts
|
|
8
8
|
/**
|
|
9
9
|
* Ids older than `cutoffMs`, oldest first.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as alertsCapability, Ft as errMsg, It as BaseAddon, Yt as createEvent, cn as EventCategory, n as AlertSchema } from "../../dist-
|
|
1
|
+
import { A as alertsCapability, Ft as errMsg, It as BaseAddon, Yt as createEvent, cn as EventCategory, n as AlertSchema } from "../../dist-CCp74QLJ.mjs";
|
|
2
2
|
//#region src/builtins/alerts/prune-policy.ts
|
|
3
3
|
/**
|
|
4
4
|
* Ids older than `cutoffMs`, oldest first.
|
|
@@ -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-KQ5D2wqr.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
let buffer = require("buffer");
|
|
9
9
|
let node_fs_promises = require("node:fs/promises");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { It as BaseAddon, M as backupCapability, cn as EventCategory } from "../../dist-
|
|
1
|
+
import { It as BaseAddon, M as backupCapability, cn as EventCategory } from "../../dist-CCp74QLJ.mjs";
|
|
2
2
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
3
3
|
import { Buffer as Buffer$1 } from "buffer";
|
|
4
4
|
import * as fsp from "node:fs/promises";
|
|
@@ -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-KQ5D2wqr.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 { It as BaseAddon, lt as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { It as BaseAddon, lt as logDestinationCapability } from "../../dist-CCp74QLJ.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,6 +1,6 @@
|
|
|
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-KQ5D2wqr.js");
|
|
4
4
|
let node_crypto = require("node:crypto");
|
|
5
5
|
let node_fs_promises = require("node:fs/promises");
|
|
6
6
|
node_fs_promises = require_chunk.__toESM(node_fs_promises);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ft as errMsg, It as BaseAddon, L as coreBlockAddonId, R as coreBlockIdFromAddonId, c as CORE_BLOCK_ADDON_PREFIX, d as DeclaredDevices, l as CoreBlockSchema, s as CORE_BLOCKS_ADDON_ID, z as coreBlocksCapability } from "../../dist-
|
|
1
|
+
import { Ft as errMsg, It as BaseAddon, L as coreBlockAddonId, R as coreBlockIdFromAddonId, c as CORE_BLOCK_ADDON_PREFIX, d as DeclaredDevices, l as CoreBlockSchema, s as CORE_BLOCKS_ADDON_ID, z as coreBlocksCapability } from "../../dist-CCp74QLJ.mjs";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
3
|
import * as fs from "node:fs/promises";
|
|
4
4
|
import * as path$1 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_retired_settings_keys = require("../../retired-settings-keys-
|
|
6
|
+
const require_dist = require("../../dist-KQ5D2wqr.js");
|
|
7
|
+
const require_retired_settings_keys = require("../../retired-settings-keys-2lWk7OeU.js");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let _camstack_types_node = require("@camstack/types/node");
|
|
10
10
|
//#region src/builtins/device-manager/adoption-job-engine.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Bt as DeviceFeature, F as buildStreamParamsConfigSchema, Ft as errMsg, G as deviceStatusCapability, Gt as WELL_KNOWN_TAB_MAP, Ht as DeviceType, It as BaseAddon, J as enumerateItemArrayFields, St as runtimeStatePolicyFor, U as deviceManagerCapability, Vt as DeviceRole, W as deviceStateCapability, Y as enumerateSchemaFields, a as CAMERA_SWITCH_ORDER, bt as resolveContainerPrimaryChild, cn as EventCategory, en as isDeviceConfigCap, f as DeviceStatusSchema, ht as parseStreamParamsFormPatch, o as CAP_NAMES_WITH_STATUS, pt as normalizeUnit, sn as sleep, t as ALL_CAPABILITY_DEFINITIONS, x as STREAM_PROFILE_META } from "../../dist-
|
|
2
|
-
import { n as purgeRetiredSettingsRows } from "../../retired-settings-keys-
|
|
1
|
+
import { Bt as DeviceFeature, F as buildStreamParamsConfigSchema, Ft as errMsg, G as deviceStatusCapability, Gt as WELL_KNOWN_TAB_MAP, Ht as DeviceType, It as BaseAddon, J as enumerateItemArrayFields, St as runtimeStatePolicyFor, U as deviceManagerCapability, Vt as DeviceRole, W as deviceStateCapability, Y as enumerateSchemaFields, a as CAMERA_SWITCH_ORDER, bt as resolveContainerPrimaryChild, cn as EventCategory, en as isDeviceConfigCap, f as DeviceStatusSchema, ht as parseStreamParamsFormPatch, o as CAP_NAMES_WITH_STATUS, pt as normalizeUnit, sn as sleep, t as ALL_CAPABILITY_DEFINITIONS, x as STREAM_PROFILE_META } from "../../dist-CCp74QLJ.mjs";
|
|
2
|
+
import { n as purgeRetiredSettingsRows } from "../../retired-settings-keys-7P9XwNdl.mjs";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { canonicalDeviceFingerprint } from "@camstack/types/node";
|
|
5
5
|
//#region src/builtins/device-manager/adoption-job-engine.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-KQ5D2wqr.js");
|
|
7
7
|
//#region src/builtins/doorbell/trigger-engine.ts
|
|
8
8
|
/**
|
|
9
9
|
* Pure trigger logic for the virtual-doorbell builtin — edge detection over
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ft as errMsg, Ht as DeviceType, It as BaseAddon, K as doorbellCapability, N as bareAddonId, X as evaluateSensorEdge, Yt as createEvent, cn as EventCategory, it as isSourceCap, rt as isSameAddonId, v as SOURCE_CAPS, y as SOURCE_DEVICE_TYPES } from "../../dist-
|
|
1
|
+
import { Ft as errMsg, Ht as DeviceType, It as BaseAddon, K as doorbellCapability, N as bareAddonId, X as evaluateSensorEdge, Yt as createEvent, cn as EventCategory, it as isSourceCap, rt as isSameAddonId, v as SOURCE_CAPS, y as SOURCE_DEVICE_TYPES } from "../../dist-CCp74QLJ.mjs";
|
|
2
2
|
//#region src/builtins/doorbell/trigger-engine.ts
|
|
3
3
|
/**
|
|
4
4
|
* Pure trigger logic for the virtual-doorbell builtin — edge detection over
|
|
@@ -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-KQ5D2wqr.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 { It as BaseAddon, lt as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { It as BaseAddon, lt as logDestinationCapability } from "../../dist-CCp74QLJ.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;
|
|
@@ -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-KQ5D2wqr.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 { Ft as errMsg, It as BaseAddon, Yt as createEvent, _ as RecordingStatusSchema, cn as EventCategory } from "../../dist-
|
|
1
|
+
import { Ft as errMsg, It as BaseAddon, Yt as createEvent, _ as RecordingStatusSchema, cn as EventCategory } from "../../dist-CCp74QLJ.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,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-KQ5D2wqr.js");
|
|
7
7
|
let node_crypto = require("node:crypto");
|
|
8
8
|
node_crypto = require_chunk.__toESM(node_crypto);
|
|
9
9
|
let crypto$1 = require("crypto");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as __require, o as __toESM, t as __commonJSMin } from "../../chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { E as UserRecordSchema, It as BaseAddon, Mt as userManagementCapability, S as ScopedTokenSchema, j as authProviderCapability, r as ApiKeyRecordSchema } from "../../dist-
|
|
2
|
+
import { E as UserRecordSchema, It as BaseAddon, Mt as userManagementCapability, S as ScopedTokenSchema, j as authProviderCapability, r as ApiKeyRecordSchema } from "../../dist-CCp74QLJ.mjs";
|
|
3
3
|
import * as crypto$2 from "node:crypto";
|
|
4
4
|
import { createHash, randomUUID, timingSafeEqual } from "node:crypto";
|
|
5
5
|
import nodeCrypto from "crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
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-KQ5D2wqr.js");
|
|
4
4
|
const require_tls = require("../../tls-BxQlomxd.js");
|
|
5
5
|
let node_fs_promises = require("node:fs/promises");
|
|
6
6
|
let node_path = require("node:path");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { It as BaseAddon, cn as EventCategory, ct as localNetworkCapability } from "../../dist-
|
|
1
|
+
import { It as BaseAddon, cn as EventCategory, ct as localNetworkCapability } from "../../dist-CCp74QLJ.mjs";
|
|
2
2
|
import { S as readLanHttpState, _ as DEFAULT_LAN_HTTP_PORT, a as writeTlsMode, i as writeExtraSans, l as reissueTlsLeaf, n as readTlsAccessStatus, o as validateUploadedTls, r as readTlsMode, s as ensureTlsCert, t as readExtraSans, y as applyLanHttp } from "../../tls-DOTmtLCW.mjs";
|
|
3
3
|
import { mkdir, writeFile } from "node:fs/promises";
|
|
4
4
|
import { join } 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-KQ5D2wqr.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 { It as BaseAddon, lt as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { It as BaseAddon, lt as logDestinationCapability } from "../../dist-CCp74QLJ.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-KQ5D2wqr.js");
|
|
7
7
|
let node_fs_promises = require("node:fs/promises");
|
|
8
8
|
let node_child_process = require("node:child_process");
|
|
9
9
|
let node_util = require("node:util");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as foldSnapshotByFunction, Ft as errMsg, It as BaseAddon, Yt as createEvent, cn as EventCategory, ft as metricsProviderCapability, vt as reducePoints, yt as resolveBucketMs } from "../../dist-
|
|
1
|
+
import { $ as foldSnapshotByFunction, Ft as errMsg, It as BaseAddon, Yt as createEvent, cn as EventCategory, ft as metricsProviderCapability, vt as reducePoints, yt as resolveBucketMs } from "../../dist-CCp74QLJ.mjs";
|
|
2
2
|
import { readFile, readdir } from "node:fs/promises";
|
|
3
3
|
import { execFile, execFileSync } from "node:child_process";
|
|
4
4
|
import { promisify } from "node:util";
|
|
@@ -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-KQ5D2wqr.js");
|
|
7
7
|
let node_child_process = require("node:child_process");
|
|
8
8
|
let node_util = require("node:util");
|
|
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 { Ft as errMsg, It as BaseAddon, Tt as scoreRuntimes, Zt as emitReadiness, cn as EventCategory, gt as platformProbeCapability, q as enumerateInferenceDevices } from "../../dist-
|
|
2
|
+
import { Ft as errMsg, It as BaseAddon, Tt as scoreRuntimes, Zt as emitReadiness, cn as EventCategory, gt as platformProbeCapability, q as enumerateInferenceDevices } from "../../dist-CCp74QLJ.mjs";
|
|
3
3
|
import { execFile } from "node:child_process";
|
|
4
4
|
import { promisify } from "node:util";
|
|
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-KQ5D2wqr.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 { It as BaseAddon, cn as EventCategory } from "../../dist-
|
|
1
|
+
import { It as BaseAddon, cn as EventCategory } from "../../dist-CCp74QLJ.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-KQ5D2wqr.js");
|
|
7
7
|
let zod = require("zod");
|
|
8
8
|
let node_crypto = require("node:crypto");
|
|
9
9
|
let _camstack_types_node = require("@camstack/types/node");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bt as DeviceFeature, Dt as snapshotCapability, Ft as errMsg, H as deriveBatteryPresence, Ht as DeviceType, It as BaseAddon, N as bareAddonId, P as batteryCapability, cn as EventCategory, i as BatteryStatusSchema, jt as streamQualityLabel, tn as nodePin } from "../../dist-
|
|
1
|
+
import { Bt as DeviceFeature, Dt as snapshotCapability, Ft as errMsg, H as deriveBatteryPresence, Ht as DeviceType, It as BaseAddon, N as bareAddonId, P as batteryCapability, cn as EventCategory, i as BatteryStatusSchema, jt as streamQualityLabel, tn as nodePin } from "../../dist-CCp74QLJ.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { signExpiringUrl, verifyExpiringUrl } from "@camstack/types/node";
|
|
@@ -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-KQ5D2wqr.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 { At as storageProviderCapability, It as BaseAddon, Q as filesystemBrowseCapability } from "../../dist-
|
|
1
|
+
import { At as storageProviderCapability, It as BaseAddon, Q as filesystemBrowseCapability } from "../../dist-CCp74QLJ.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-KQ5D2wqr.js");
|
|
7
7
|
const require_hub_cap_forward = require("../../hub-cap-forward-DmHNjbB0.js");
|
|
8
8
|
let zod = require("zod");
|
|
9
9
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as StorageCleanupJobSchema, Et as settingsStoreCapability, I as collectSecretConfigKeys, It as BaseAddon, Ot as storageCapability, T as StorageMigrationJobSchema, h as REDACTED_SECRET, kt as storageMigrationCapability, nn as parseJsonObject, w as StorageLocationTypeSchema } from "../../dist-
|
|
1
|
+
import { C as StorageCleanupJobSchema, Et as settingsStoreCapability, I as collectSecretConfigKeys, It as BaseAddon, Ot as storageCapability, T as StorageMigrationJobSchema, h as REDACTED_SECRET, kt as storageMigrationCapability, nn as parseJsonObject, w as StorageLocationTypeSchema } from "../../dist-CCp74QLJ.mjs";
|
|
2
2
|
import { t as HUB_CAP_FWD_ACTION } from "../../hub-cap-forward-BdT320dq.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
|
require("../../chunk-Cek0wNdY.js");
|
|
6
|
-
const require_dist = require("../../dist-
|
|
6
|
+
const require_dist = require("../../dist-KQ5D2wqr.js");
|
|
7
7
|
//#region src/builtins/system-config/system-config.addon.ts
|
|
8
8
|
/**
|
|
9
9
|
* Built-in `system-config` addon — Phase 4 of the settings redesign.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as hydrateSchema, Ft as errMsg, It as BaseAddon } from "../../dist-
|
|
1
|
+
import { $t as hydrateSchema, Ft as errMsg, It as BaseAddon } from "../../dist-CCp74QLJ.mjs";
|
|
2
2
|
//#region src/builtins/system-config/system-config.addon.ts
|
|
3
3
|
/**
|
|
4
4
|
* Built-in `system-config` addon — Phase 4 of the settings redesign.
|
|
@@ -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-KQ5D2wqr.js");
|
|
7
7
|
const require_formatter = require("../../formatter-DqAKDlvN.js");
|
|
8
8
|
let node_path = require("node:path");
|
|
9
9
|
node_path = require_chunk.__toESM(node_path);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { It as BaseAddon, lt as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { It as BaseAddon, lt as logDestinationCapability } from "../../dist-CCp74QLJ.mjs";
|
|
2
2
|
import { t as formatLogLine } from "../../formatter-B7qW8bPJ.mjs";
|
|
3
3
|
import * as path$1 from "node:path";
|
|
4
4
|
import path from "node:path";
|
|
@@ -3756,21 +3756,21 @@ function collectSecretConfigKeys(schema) {
|
|
|
3756
3756
|
for (const section of sectionsOf(schema)) for (const field of fieldsOf(section)) walkField(field, keys);
|
|
3757
3757
|
return keys;
|
|
3758
3758
|
}
|
|
3759
|
-
function isRecord$
|
|
3759
|
+
function isRecord$3(value) {
|
|
3760
3760
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
3761
3761
|
}
|
|
3762
3762
|
function sectionsOf(schema) {
|
|
3763
|
-
if (!isRecord$
|
|
3763
|
+
if (!isRecord$3(schema)) return [];
|
|
3764
3764
|
const sections = schema["sections"];
|
|
3765
3765
|
return Array.isArray(sections) ? sections : [];
|
|
3766
3766
|
}
|
|
3767
3767
|
function fieldsOf(node) {
|
|
3768
|
-
if (!isRecord$
|
|
3768
|
+
if (!isRecord$3(node)) return [];
|
|
3769
3769
|
const fields = node["fields"];
|
|
3770
3770
|
return Array.isArray(fields) ? fields : [];
|
|
3771
3771
|
}
|
|
3772
3772
|
function walkField(field, out) {
|
|
3773
|
-
if (!isRecord$
|
|
3773
|
+
if (!isRecord$3(field)) return;
|
|
3774
3774
|
const type = field["type"];
|
|
3775
3775
|
const key = field["key"];
|
|
3776
3776
|
if ((type === "password" || field["secret"] === true) && typeof key === "string" && key.length > 0) out.add(key);
|
|
@@ -4049,17 +4049,29 @@ var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
|
4049
4049
|
/**
|
|
4050
4050
|
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
4051
4051
|
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
4052
|
-
* - `off`
|
|
4053
|
-
* - `events`
|
|
4054
|
-
* - `continuous`
|
|
4055
|
-
*
|
|
4056
|
-
*
|
|
4057
|
-
*
|
|
4052
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
4053
|
+
* - `events` — every band records around triggers only.
|
|
4054
|
+
* - `continuous` — at least one band records continuously.
|
|
4055
|
+
* - `on-device-decision`— the DEVICE decides: recording runs for as long as the
|
|
4056
|
+
* camera raises its own `recording-signal` level (a robot that cleans). There
|
|
4057
|
+
* is no schedule to author, because there is no hour to program — see
|
|
4058
|
+
* {@link RecordingConfigSchema}`.deviceDecision`.
|
|
4059
|
+
*
|
|
4060
|
+
* NEVER authored: the recorder stamps it from the authoritative intent
|
|
4061
|
+
* (`bands` + `deviceDecision`) on every save (`activeModeForConfig`). Writing it
|
|
4062
|
+
* has no effect.
|
|
4063
|
+
*
|
|
4064
|
+
* `on-device-decision` is named for WHO decides, not for how the recording is
|
|
4065
|
+
* requested. `on-demand` was rejected: in this repo's vocabulary a "demand" is
|
|
4066
|
+
* something the operator makes (the live gate is the recorder's own "demand
|
|
4067
|
+
* window"), and a knob whose name suggests the operator starts it while the
|
|
4068
|
+
* device actually does is the D62 shape — a control nobody can predict.
|
|
4058
4069
|
*/
|
|
4059
4070
|
var RecordingStorageModeSchema = z.enum([
|
|
4060
4071
|
"off",
|
|
4061
4072
|
"events",
|
|
4062
|
-
"continuous"
|
|
4073
|
+
"continuous",
|
|
4074
|
+
"on-device-decision"
|
|
4063
4075
|
]);
|
|
4064
4076
|
/**
|
|
4065
4077
|
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
@@ -4109,22 +4121,7 @@ var RecordingTriggersSchema = z.object({
|
|
|
4109
4121
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
4110
4122
|
* registrare.
|
|
4111
4123
|
*/
|
|
4112
|
-
sensorDeviceIds: z.array(z.number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
4113
|
-
/**
|
|
4114
|
-
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
4115
|
-
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
4116
|
-
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
4117
|
-
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
4118
|
-
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
4119
|
-
*
|
|
4120
|
-
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
4121
|
-
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
4122
|
-
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
4123
|
-
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
4124
|
-
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
4125
|
-
* (`holdTrigger` / `releaseTrigger`).
|
|
4126
|
-
*/
|
|
4127
|
-
deviceSignal: z.boolean().optional()
|
|
4124
|
+
sensorDeviceIds: z.array(z.number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
4128
4125
|
});
|
|
4129
4126
|
/**
|
|
4130
4127
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -4154,13 +4151,28 @@ var RecordingBandSchema = z.object({
|
|
|
4154
4151
|
end: z.string().regex(HHMM),
|
|
4155
4152
|
mode: RecordingBandModeSchema,
|
|
4156
4153
|
triggers: RecordingBandTriggersSchema.optional(),
|
|
4154
|
+
/**
|
|
4155
|
+
* RETIRED (D381). A band no longer carries a pre-buffer of its own.
|
|
4156
|
+
*
|
|
4157
|
+
* It was the retroactive KEEP bound — which already-written segments survive
|
|
4158
|
+
* a trigger — and it had to be at least as wide as the widest pre-roll the
|
|
4159
|
+
* broker could serve, or the gate would delete the seconds the ring had just
|
|
4160
|
+
* handed the writer. That "at least as wide as" is the tell: it was a second
|
|
4161
|
+
* expression of the broker's retention, in different units, in a different
|
|
4162
|
+
* addon, with an invariant the operator had to maintain by hand. The keep
|
|
4163
|
+
* bound is now derived from the one prebuffer ceiling and there is nothing
|
|
4164
|
+
* left to configure here.
|
|
4165
|
+
*
|
|
4166
|
+
* The key survives in the SHAPE so a config written before that record still
|
|
4167
|
+
* parses and can be migrated deliberately — `RecordingBandSchema` is not
|
|
4168
|
+
* strict, so simply deleting it would strip an operator's value in silence on
|
|
4169
|
+
* the next save (the failure D380 came one commit from shipping). Nothing
|
|
4170
|
+
* reads it: {@link stripRetiredBandPreBufferSec} removes it on load.
|
|
4171
|
+
*/
|
|
4157
4172
|
preBufferSec: z.number().min(0).optional(),
|
|
4158
4173
|
postBufferSec: z.number().min(0).optional()
|
|
4159
4174
|
});
|
|
4160
|
-
({
|
|
4161
|
-
preBufferSec: 15,
|
|
4162
|
-
postBufferSec: 30
|
|
4163
|
-
}).postBufferSec * 1e3;
|
|
4175
|
+
({ postBufferSec: 30 }).postBufferSec * 1e3;
|
|
4164
4176
|
/**
|
|
4165
4177
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
4166
4178
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -4208,8 +4220,29 @@ var RecordingConfigSchema = z.object({
|
|
|
4208
4220
|
* "off" is the absence of a covering band, never a band value.
|
|
4209
4221
|
*/
|
|
4210
4222
|
bands: z.array(RecordingBandSchema).default([]),
|
|
4223
|
+
/**
|
|
4224
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
4225
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
4226
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
4227
|
+
* recording intent that is not a band.
|
|
4228
|
+
*
|
|
4229
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
4230
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
4231
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
4232
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
4233
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
4234
|
+
* job however long it is, and closes one pad after the fall.
|
|
4235
|
+
*
|
|
4236
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
4237
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
4238
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
4239
|
+
*/
|
|
4240
|
+
deviceDecision: z.boolean().optional(),
|
|
4211
4241
|
retention: RecordingRetentionSchema.optional()
|
|
4212
|
-
}).strict()
|
|
4242
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
4243
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
4244
|
+
path: ["bands"]
|
|
4245
|
+
});
|
|
4213
4246
|
/**
|
|
4214
4247
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
4215
4248
|
*
|
|
@@ -20612,12 +20645,10 @@ var CameraAudioStatusSchema = z.object({
|
|
|
20612
20645
|
nodeId: z.string(),
|
|
20613
20646
|
enabled: z.boolean()
|
|
20614
20647
|
});
|
|
20615
|
-
/** Recording mode
|
|
20616
|
-
|
|
20617
|
-
|
|
20618
|
-
|
|
20619
|
-
"events"
|
|
20620
|
-
]);
|
|
20648
|
+
/** Recording mode — THE one definition, shared with the `recording` cap. A
|
|
20649
|
+
* copy of the list is how `on-device-decision` could have reached the recorder
|
|
20650
|
+
* and not this status block. */
|
|
20651
|
+
var CameraRecordingModeSchema = RecordingStorageModeSchema;
|
|
20621
20652
|
/** Recording block — null when no recording cap is active for this device. */
|
|
20622
20653
|
var CameraRecordingStatusSchema = z.object({
|
|
20623
20654
|
mode: CameraRecordingModeSchema,
|
|
@@ -30714,11 +30745,10 @@ var rebootCapability = {
|
|
|
30714
30745
|
var RecordingStatusSchema = z.object({
|
|
30715
30746
|
deviceId: z.number(),
|
|
30716
30747
|
enabled: z.boolean(),
|
|
30717
|
-
|
|
30718
|
-
|
|
30719
|
-
|
|
30720
|
-
|
|
30721
|
-
]),
|
|
30748
|
+
/** THE derived storage mode, from the one definition
|
|
30749
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
30750
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
30751
|
+
activeMode: RecordingStorageModeSchema,
|
|
30722
30752
|
nodeId: z.string(),
|
|
30723
30753
|
storageBytes: z.number()
|
|
30724
30754
|
});
|
|
@@ -3756,21 +3756,21 @@ function collectSecretConfigKeys(schema) {
|
|
|
3756
3756
|
for (const section of sectionsOf(schema)) for (const field of fieldsOf(section)) walkField(field, keys);
|
|
3757
3757
|
return keys;
|
|
3758
3758
|
}
|
|
3759
|
-
function isRecord$
|
|
3759
|
+
function isRecord$3(value) {
|
|
3760
3760
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
3761
3761
|
}
|
|
3762
3762
|
function sectionsOf(schema) {
|
|
3763
|
-
if (!isRecord$
|
|
3763
|
+
if (!isRecord$3(schema)) return [];
|
|
3764
3764
|
const sections = schema["sections"];
|
|
3765
3765
|
return Array.isArray(sections) ? sections : [];
|
|
3766
3766
|
}
|
|
3767
3767
|
function fieldsOf(node) {
|
|
3768
|
-
if (!isRecord$
|
|
3768
|
+
if (!isRecord$3(node)) return [];
|
|
3769
3769
|
const fields = node["fields"];
|
|
3770
3770
|
return Array.isArray(fields) ? fields : [];
|
|
3771
3771
|
}
|
|
3772
3772
|
function walkField(field, out) {
|
|
3773
|
-
if (!isRecord$
|
|
3773
|
+
if (!isRecord$3(field)) return;
|
|
3774
3774
|
const type = field["type"];
|
|
3775
3775
|
const key = field["key"];
|
|
3776
3776
|
if ((type === "password" || field["secret"] === true) && typeof key === "string" && key.length > 0) out.add(key);
|
|
@@ -4049,17 +4049,29 @@ var HHMM = /^([01]\d|2[0-3]):[0-5]\d$/;
|
|
|
4049
4049
|
/**
|
|
4050
4050
|
* DERIVED per-camera storage summary — the single field cheap consumers read
|
|
4051
4051
|
* (the viewer's status dot, the camera list) instead of walking `bands`:
|
|
4052
|
-
* - `off`
|
|
4053
|
-
* - `events`
|
|
4054
|
-
* - `continuous`
|
|
4055
|
-
*
|
|
4056
|
-
*
|
|
4057
|
-
*
|
|
4052
|
+
* - `off` — no band covers the camera (or it is disabled).
|
|
4053
|
+
* - `events` — every band records around triggers only.
|
|
4054
|
+
* - `continuous` — at least one band records continuously.
|
|
4055
|
+
* - `on-device-decision`— the DEVICE decides: recording runs for as long as the
|
|
4056
|
+
* camera raises its own `recording-signal` level (a robot that cleans). There
|
|
4057
|
+
* is no schedule to author, because there is no hour to program — see
|
|
4058
|
+
* {@link RecordingConfigSchema}`.deviceDecision`.
|
|
4059
|
+
*
|
|
4060
|
+
* NEVER authored: the recorder stamps it from the authoritative intent
|
|
4061
|
+
* (`bands` + `deviceDecision`) on every save (`activeModeForConfig`). Writing it
|
|
4062
|
+
* has no effect.
|
|
4063
|
+
*
|
|
4064
|
+
* `on-device-decision` is named for WHO decides, not for how the recording is
|
|
4065
|
+
* requested. `on-demand` was rejected: in this repo's vocabulary a "demand" is
|
|
4066
|
+
* something the operator makes (the live gate is the recorder's own "demand
|
|
4067
|
+
* window"), and a knob whose name suggests the operator starts it while the
|
|
4068
|
+
* device actually does is the D62 shape — a control nobody can predict.
|
|
4058
4069
|
*/
|
|
4059
4070
|
var RecordingStorageModeSchema = zod.z.enum([
|
|
4060
4071
|
"off",
|
|
4061
4072
|
"events",
|
|
4062
|
-
"continuous"
|
|
4073
|
+
"continuous",
|
|
4074
|
+
"on-device-decision"
|
|
4063
4075
|
]);
|
|
4064
4076
|
/**
|
|
4065
4077
|
* Le macro classi che possono aprire una finestra di registrazione — le stesse
|
|
@@ -4109,22 +4121,7 @@ var RecordingTriggersSchema = zod.z.object({
|
|
|
4109
4121
|
* il livello: un contatto trovato già aperto al riavvio del runner non fa
|
|
4110
4122
|
* registrare.
|
|
4111
4123
|
*/
|
|
4112
|
-
sensorDeviceIds: zod.z.array(zod.z.number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
4113
|
-
/**
|
|
4114
|
-
* La camera registra per tutta la durata del SEGNALE che lei stessa
|
|
4115
|
-
* pubblica — la cap `recording-signal` (`active: true` mentre il device è in
|
|
4116
|
-
* funzione: un robot che pulisce). È un LIVELLO, non un fronte: la finestra
|
|
4117
|
-
* resta aperta finché il segnale è alto e si chiude `postBufferSec` dopo la
|
|
4118
|
-
* caduta, così una pulizia di quaranta minuti è UNA clip.
|
|
4119
|
-
*
|
|
4120
|
-
* Non nomina un device: il segnale è della camera stessa, tenuto fresco dal
|
|
4121
|
-
* suo provider (D224); il recorder lo ascolta su `DeviceStateChanged` e lo
|
|
4122
|
-
* riconcilia leggendo la slice via RPC, con un tetto oltre il quale un
|
|
4123
|
-
* segnale mai abbassato (un evento perso) non può tenere aperta una
|
|
4124
|
-
* registrazione (D11). Vedi `recorder/addon/band-decision.ts`
|
|
4125
|
-
* (`holdTrigger` / `releaseTrigger`).
|
|
4126
|
-
*/
|
|
4127
|
-
deviceSignal: zod.z.boolean().optional()
|
|
4124
|
+
sensorDeviceIds: zod.z.array(zod.z.number().int().positive()).min(1).max(16).refine(noDuplicates, { message: "sensorDeviceIds must not repeat a device" }).optional()
|
|
4128
4125
|
});
|
|
4129
4126
|
/**
|
|
4130
4127
|
* Mode of a single recording band — the recorder per-band vocabulary.
|
|
@@ -4154,13 +4151,28 @@ var RecordingBandSchema = zod.z.object({
|
|
|
4154
4151
|
end: zod.z.string().regex(HHMM),
|
|
4155
4152
|
mode: RecordingBandModeSchema,
|
|
4156
4153
|
triggers: RecordingBandTriggersSchema.optional(),
|
|
4154
|
+
/**
|
|
4155
|
+
* RETIRED (D381). A band no longer carries a pre-buffer of its own.
|
|
4156
|
+
*
|
|
4157
|
+
* It was the retroactive KEEP bound — which already-written segments survive
|
|
4158
|
+
* a trigger — and it had to be at least as wide as the widest pre-roll the
|
|
4159
|
+
* broker could serve, or the gate would delete the seconds the ring had just
|
|
4160
|
+
* handed the writer. That "at least as wide as" is the tell: it was a second
|
|
4161
|
+
* expression of the broker's retention, in different units, in a different
|
|
4162
|
+
* addon, with an invariant the operator had to maintain by hand. The keep
|
|
4163
|
+
* bound is now derived from the one prebuffer ceiling and there is nothing
|
|
4164
|
+
* left to configure here.
|
|
4165
|
+
*
|
|
4166
|
+
* The key survives in the SHAPE so a config written before that record still
|
|
4167
|
+
* parses and can be migrated deliberately — `RecordingBandSchema` is not
|
|
4168
|
+
* strict, so simply deleting it would strip an operator's value in silence on
|
|
4169
|
+
* the next save (the failure D380 came one commit from shipping). Nothing
|
|
4170
|
+
* reads it: {@link stripRetiredBandPreBufferSec} removes it on load.
|
|
4171
|
+
*/
|
|
4157
4172
|
preBufferSec: zod.z.number().min(0).optional(),
|
|
4158
4173
|
postBufferSec: zod.z.number().min(0).optional()
|
|
4159
4174
|
});
|
|
4160
|
-
({
|
|
4161
|
-
preBufferSec: 15,
|
|
4162
|
-
postBufferSec: 30
|
|
4163
|
-
}).postBufferSec * 1e3;
|
|
4175
|
+
({ postBufferSec: 30 }).postBufferSec * 1e3;
|
|
4164
4176
|
/**
|
|
4165
4177
|
* Per-device retention overrides. Every field is optional; an unset or `0`
|
|
4166
4178
|
* value inherits the node-wide recorder default. Only footage-lifetime limits
|
|
@@ -4208,8 +4220,29 @@ var RecordingConfigSchema = zod.z.object({
|
|
|
4208
4220
|
* "off" is the absence of a covering band, never a band value.
|
|
4209
4221
|
*/
|
|
4210
4222
|
bands: zod.z.array(RecordingBandSchema).default([]),
|
|
4223
|
+
/**
|
|
4224
|
+
* THE device-decided intent: record for as long as the camera itself raises
|
|
4225
|
+
* `recording-signal` (`active: true` while the device is in function — a
|
|
4226
|
+
* robot that cleans). AUTHORED, unlike `mode`, and the only authored
|
|
4227
|
+
* recording intent that is not a band.
|
|
4228
|
+
*
|
|
4229
|
+
* It carries NO schedule on purpose. A band is an HOUR, and this feature has
|
|
4230
|
+
* no hour to program: the device decides. What it costs the operator is one
|
|
4231
|
+
* flag — "this camera can record on its own" — and what it buys is the same
|
|
4232
|
+
* hold/release the recorder already implements (D371, `holdTrigger` /
|
|
4233
|
+
* `releaseTrigger`): the window opens on the rise, stays open for the whole
|
|
4234
|
+
* job however long it is, and closes one pad after the fall.
|
|
4235
|
+
*
|
|
4236
|
+
* EXCLUSIVE with `bands` (below): two authorities deciding when the same
|
|
4237
|
+
* camera records is the D62 failure. `off` remains `enabled: false`, so an
|
|
4238
|
+
* operator switching this camera off is REPORTED off, never as broken.
|
|
4239
|
+
*/
|
|
4240
|
+
deviceDecision: zod.z.boolean().optional(),
|
|
4211
4241
|
retention: RecordingRetentionSchema.optional()
|
|
4212
|
-
}).strict()
|
|
4242
|
+
}).strict().refine((config) => config.deviceDecision !== true || config.bands.length === 0, {
|
|
4243
|
+
message: "deviceDecision is a whole-config mode and carries no schedule: it cannot be combined with bands",
|
|
4244
|
+
path: ["bands"]
|
|
4245
|
+
});
|
|
4213
4246
|
/**
|
|
4214
4247
|
* Entity-relocation job state (storage entity-routing spec, Phase 4).
|
|
4215
4248
|
*
|
|
@@ -20612,12 +20645,10 @@ var CameraAudioStatusSchema = zod.z.object({
|
|
|
20612
20645
|
nodeId: zod.z.string(),
|
|
20613
20646
|
enabled: zod.z.boolean()
|
|
20614
20647
|
});
|
|
20615
|
-
/** Recording mode
|
|
20616
|
-
|
|
20617
|
-
|
|
20618
|
-
|
|
20619
|
-
"events"
|
|
20620
|
-
]);
|
|
20648
|
+
/** Recording mode — THE one definition, shared with the `recording` cap. A
|
|
20649
|
+
* copy of the list is how `on-device-decision` could have reached the recorder
|
|
20650
|
+
* and not this status block. */
|
|
20651
|
+
var CameraRecordingModeSchema = RecordingStorageModeSchema;
|
|
20621
20652
|
/** Recording block — null when no recording cap is active for this device. */
|
|
20622
20653
|
var CameraRecordingStatusSchema = zod.z.object({
|
|
20623
20654
|
mode: CameraRecordingModeSchema,
|
|
@@ -30714,11 +30745,10 @@ var rebootCapability = {
|
|
|
30714
30745
|
var RecordingStatusSchema = zod.z.object({
|
|
30715
30746
|
deviceId: zod.z.number(),
|
|
30716
30747
|
enabled: zod.z.boolean(),
|
|
30717
|
-
|
|
30718
|
-
|
|
30719
|
-
|
|
30720
|
-
|
|
30721
|
-
]),
|
|
30748
|
+
/** THE derived storage mode, from the one definition
|
|
30749
|
+
* (`deriveRecordingMode`) — never a second enum. A duplicated list is how
|
|
30750
|
+
* `on-device-decision` could have reached the recorder and not the status. */
|
|
30751
|
+
activeMode: RecordingStorageModeSchema,
|
|
30722
30752
|
nodeId: zod.z.string(),
|
|
30723
30753
|
storageBytes: zod.z.number()
|
|
30724
30754
|
});
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-KQ5D2wqr.js");
|
|
4
4
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
5
5
|
require("./builtins/alerts/index.js");
|
|
6
6
|
const require_formatter = require("./formatter-DqAKDlvN.js");
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM$1, r as __exportAll, t as __commonJSMin$1 } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { Ct as scopesAllowAddon, Ft as errMsg$1, Jt as asString$1, Kt as asJsonObject$1, Lt as DATAPLANE_SECRET_HEADER$1, O as addonSettingsCapability, Qt as expandCapMethods, Rt as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Ut as ReadinessRegistry, Wt as ReadinessTimeoutError, Xt as emitDownForOwnedCaps, Yt as createEvent, Z as extractNestedAddonId, _t as procedureAuthKey, an as resolveCapMount, at as isVoidInput, cn as EventCategory$1, dt as looseSchema, et as isArrayOutputSchema, g as RUNTIME_DEFAULTS, in as readinessKey, m as METHOD_ACCESS_MAP, mt as objectInputDeclaresAddonId, nn as parseJsonObject, nt as isObjectInput, on as scopeKey, ot as kebabToCamel, p as LOG_LEVEL_RANK, qt as asNumber, rn as parseJsonUnknown, st as lifecycleJobSchema, t as ALL_CAPABILITY_DEFINITIONS, tt as isCollectionArrayMethod, ut as logLevelAtMost, wt as scopesAllowDeviceCap, xt as resolveMethodAuth, zt as DEVICE_STATUS_METHOD } from "./dist-
|
|
2
|
+
import { Ct as scopesAllowAddon, Ft as errMsg$1, Jt as asString$1, Kt as asJsonObject$1, Lt as DATAPLANE_SECRET_HEADER$1, O as addonSettingsCapability, Qt as expandCapMethods, Rt as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Ut as ReadinessRegistry, Wt as ReadinessTimeoutError, Xt as emitDownForOwnedCaps, Yt as createEvent, Z as extractNestedAddonId, _t as procedureAuthKey, an as resolveCapMount, at as isVoidInput, cn as EventCategory$1, dt as looseSchema, et as isArrayOutputSchema, g as RUNTIME_DEFAULTS, in as readinessKey, m as METHOD_ACCESS_MAP, mt as objectInputDeclaresAddonId, nn as parseJsonObject, nt as isObjectInput, on as scopeKey, ot as kebabToCamel, p as LOG_LEVEL_RANK, qt as asNumber, rn as parseJsonUnknown, st as lifecycleJobSchema, t as ALL_CAPABILITY_DEFINITIONS, tt as isCollectionArrayMethod, ut as logLevelAtMost, wt as scopesAllowDeviceCap, xt as resolveMethodAuth, zt as DEVICE_STATUS_METHOD } from "./dist-CCp74QLJ.mjs";
|
|
3
3
|
import { AlertCenterAddon } from "./builtins/alerts/alerts.addon.mjs";
|
|
4
4
|
import "./builtins/alerts/index.mjs";
|
|
5
5
|
import { t as formatLogLine } from "./formatter-B7qW8bPJ.mjs";
|