@camstack/system 1.2.214 → 1.2.216
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-9GQQ9F3s.js → dist-DYWqXngV.js} +237 -16
- package/dist/{dist-uZj-Z5uc.mjs → dist-MtqqwJVI.mjs} +237 -16
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{retired-settings-keys-BX0zIks4.mjs → retired-settings-keys-BBrgMHDy.mjs} +1 -1
- package/dist/{retired-settings-keys-DfdSH46H.js → retired-settings-keys-CXLIB19R.js} +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-DYWqXngV.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 { Jt as BaseAddon, bn as EventCategory, k as addonPagesCapability, qt as errMsg } from "../../dist-
|
|
1
|
+
import { Jt as BaseAddon, bn as EventCategory, k as addonPagesCapability, qt as errMsg } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { Jt as BaseAddon, bn as EventCategory, j as addonWidgetsCapability, qt as errMsg } from "../../dist-
|
|
1
|
+
import { Jt as BaseAddon, bn as EventCategory, j as addonWidgetsCapability, qt as errMsg } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { Jt as BaseAddon, M as alertsCapability, bn as EventCategory, n as AlertSchema, qt as errMsg, sn as createEvent } from "../../dist-
|
|
1
|
+
import { Jt as BaseAddon, M as alertsCapability, bn as EventCategory, n as AlertSchema, qt as errMsg, sn as createEvent } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { Bt as storageOccupancyCapability, Jt as BaseAddon, P as backupCapability, bn as EventCategory, yt as mayWriteToLocation } from "../../dist-
|
|
1
|
+
import { Bt as storageOccupancyCapability, Jt as BaseAddon, P as backupCapability, bn as EventCategory, yt as mayWriteToLocation } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { Jt as BaseAddon, ht as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { Jt as BaseAddon, ht as logDestinationCapability } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { B as coreBlockIdFromAddonId, Jt as BaseAddon, V as coreBlocksCapability, c as CORE_BLOCK_ADDON_PREFIX, d as DeclaredDevices, l as CoreBlockSchema, qt as errMsg, s as CORE_BLOCKS_ADDON_ID, z as coreBlockAddonId } from "../../dist-
|
|
1
|
+
import { B as coreBlockIdFromAddonId, Jt as BaseAddon, V as coreBlocksCapability, c as CORE_BLOCK_ADDON_PREFIX, d as DeclaredDevices, l as CoreBlockSchema, qt as errMsg, s as CORE_BLOCKS_ADDON_ID, z as coreBlockAddonId } from "../../dist-MtqqwJVI.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-DYWqXngV.js");
|
|
7
|
+
const require_retired_settings_keys = require("../../retired-settings-keys-CXLIB19R.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 { $t as DeviceRole, G as deviceManagerCapability, Jt as BaseAddon, K as deviceStateCapability, L as buildStreamParamsConfigSchema, Mt as runtimeStatePolicyFor, Qt as DeviceFeature, S as STREAM_PROFILE_META, St as normalizeUnit, X as enumerateItemArrayFields, Z as enumerateSchemaFields, a as CAMERA_SWITCH_ORDER, bn as EventCategory, en as DeviceType, f as DeviceStatusSchema, fn as isDeviceConfigCap, kt as resolveContainerPrimaryChild, o as CAP_NAMES_WITH_STATUS, q as deviceStatusCapability, qt as errMsg, rn as WELL_KNOWN_TAB_MAP, t as ALL_CAPABILITY_DEFINITIONS, wt as parseStreamParamsFormPatch, yn as sleep } from "../../dist-
|
|
2
|
-
import { n as purgeRetiredSettingsRows } from "../../retired-settings-keys-
|
|
1
|
+
import { $t as DeviceRole, G as deviceManagerCapability, Jt as BaseAddon, K as deviceStateCapability, L as buildStreamParamsConfigSchema, Mt as runtimeStatePolicyFor, Qt as DeviceFeature, S as STREAM_PROFILE_META, St as normalizeUnit, X as enumerateItemArrayFields, Z as enumerateSchemaFields, a as CAMERA_SWITCH_ORDER, bn as EventCategory, en as DeviceType, f as DeviceStatusSchema, fn as isDeviceConfigCap, kt as resolveContainerPrimaryChild, o as CAP_NAMES_WITH_STATUS, q as deviceStatusCapability, qt as errMsg, rn as WELL_KNOWN_TAB_MAP, t as ALL_CAPABILITY_DEFINITIONS, wt as parseStreamParamsFormPatch, yn as sleep } from "../../dist-MtqqwJVI.mjs";
|
|
2
|
+
import { n as purgeRetiredSettingsRows } from "../../retired-settings-keys-BBrgMHDy.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-DYWqXngV.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 { F as bareAddonId, J as doorbellCapability, Jt as BaseAddon, Q as evaluateSensorEdge, b as SOURCE_DEVICE_TYPES, bn as EventCategory, ct as isSameAddonId, en as DeviceType, lt as isSourceCap, qt as errMsg, sn as createEvent, y as SOURCE_CAPS } from "../../dist-
|
|
1
|
+
import { F as bareAddonId, J as doorbellCapability, Jt as BaseAddon, Q as evaluateSensorEdge, b as SOURCE_DEVICE_TYPES, bn as EventCategory, ct as isSameAddonId, en as DeviceType, lt as isSourceCap, qt as errMsg, sn as createEvent, y as SOURCE_CAPS } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { Jt as BaseAddon, ht as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { Jt as BaseAddon, ht as logDestinationCapability } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { Jt as BaseAddon, bn as EventCategory, qt as errMsg, sn as createEvent, v as RecordingStatusSchema } from "../../dist-
|
|
1
|
+
import { Jt as BaseAddon, bn as EventCategory, qt as errMsg, sn as createEvent, v as RecordingStatusSchema } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { C as ScopedTokenSchema, Jt as BaseAddon, N as authProviderCapability, O as UserRecordSchema, Ut as userManagementCapability, r as ApiKeyRecordSchema } from "../../dist-
|
|
2
|
+
import { C as ScopedTokenSchema, Jt as BaseAddon, N as authProviderCapability, O as UserRecordSchema, Ut as userManagementCapability, r as ApiKeyRecordSchema } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { Jt as BaseAddon, bn as EventCategory, mt as localNetworkCapability } from "../../dist-
|
|
1
|
+
import { Jt as BaseAddon, bn as EventCategory, mt as localNetworkCapability } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { Jt as BaseAddon, ht as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { Jt as BaseAddon, ht as logDestinationCapability } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { Dt as reducePoints, Jt as BaseAddon, Ot as resolveBucketMs, bn as EventCategory, bt as metricsProviderCapability, nt as foldSnapshotByFunction, qt as errMsg, sn as createEvent } from "../../dist-
|
|
1
|
+
import { Dt as reducePoints, Jt as BaseAddon, Ot as resolveBucketMs, bn as EventCategory, bt as metricsProviderCapability, nt as foldSnapshotByFunction, qt as errMsg, sn as createEvent } from "../../dist-MtqqwJVI.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-DYWqXngV.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 scoreRuntimes, Jt as BaseAddon, Tt as platformProbeCapability, Y as enumerateInferenceDevices, bn as EventCategory, ln as emitReadiness, qt as errMsg } from "../../dist-
|
|
2
|
+
import { Ft as scoreRuntimes, Jt as BaseAddon, Tt as platformProbeCapability, Y as enumerateInferenceDevices, bn as EventCategory, ln as emitReadiness, qt as errMsg } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { Jt as BaseAddon, bn as EventCategory } from "../../dist-
|
|
1
|
+
import { Jt as BaseAddon, bn as EventCategory } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { F as bareAddonId, Ht as streamQualityLabel, I as batteryCapability, Jt as BaseAddon, Lt as snapshotCapability, Qt as DeviceFeature, W as deriveBatteryPresence, bn as EventCategory, en as DeviceType, i as BatteryStatusSchema, pn as nodePin, qt as errMsg } from "../../dist-
|
|
1
|
+
import { F as bareAddonId, Ht as streamQualityLabel, I as batteryCapability, Jt as BaseAddon, Lt as snapshotCapability, Qt as DeviceFeature, W as deriveBatteryPresence, bn as EventCategory, en as DeviceType, i as BatteryStatusSchema, pn as nodePin, qt as errMsg } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { Jt as BaseAddon, Vt as storageProviderCapability, tt as filesystemBrowseCapability } from "../../dist-
|
|
1
|
+
import { Jt as BaseAddon, Vt as storageProviderCapability, tt as filesystemBrowseCapability } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { $ as evictionPolicyOfLocation, At as resolveLocationMode, D as StorageMigrationJobSchema, E as StorageLocationTypeSchema, It as settingsStoreCapability, Jt as BaseAddon, Kt as withLocationMode, R as collectSecretConfigKeys, Rt as storageCapability, T as StorageLocationModeSchema, bn as EventCategory, ft as legacyModeOf, g as REDACTED_SECRET, m as LegacyStorageLocationDefaultSchema, mn as parseJsonObject, ot as isLocationEnabled, rt as gbToBytes, vt as mayReadLocation, w as StorageCleanupJobSchema, xt as modeMayWrite, yt as mayWriteToLocation, zt as storageMigrationCapability } from "../../dist-
|
|
1
|
+
import { $ as evictionPolicyOfLocation, At as resolveLocationMode, D as StorageMigrationJobSchema, E as StorageLocationTypeSchema, It as settingsStoreCapability, Jt as BaseAddon, Kt as withLocationMode, R as collectSecretConfigKeys, Rt as storageCapability, T as StorageLocationModeSchema, bn as EventCategory, ft as legacyModeOf, g as REDACTED_SECRET, m as LegacyStorageLocationDefaultSchema, mn as parseJsonObject, ot as isLocationEnabled, rt as gbToBytes, vt as mayReadLocation, w as StorageCleanupJobSchema, xt as modeMayWrite, yt as mayWriteToLocation, zt as storageMigrationCapability } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { Jt as BaseAddon, dn as hydrateSchema, qt as errMsg } from "../../dist-
|
|
1
|
+
import { Jt as BaseAddon, dn as hydrateSchema, qt as errMsg } from "../../dist-MtqqwJVI.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-DYWqXngV.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 { Jt as BaseAddon, ht as logDestinationCapability } from "../../dist-
|
|
1
|
+
import { Jt as BaseAddon, ht as logDestinationCapability } from "../../dist-MtqqwJVI.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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
let zod = require("zod");
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -591,7 +591,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
591
591
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
592
592
|
*/
|
|
593
593
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
594
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
595
594
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
596
595
|
/**
|
|
597
596
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -10421,7 +10420,7 @@ var detectionPipelineCapability = {
|
|
|
10421
10420
|
var SourceInfoSchema = zod.z.object({
|
|
10422
10421
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
10423
10422
|
id: zod.z.string(),
|
|
10424
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
10423
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
10425
10424
|
system: zod.z.string(),
|
|
10426
10425
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
10427
10426
|
* Used to detect rename when `id` changes. */
|
|
@@ -11123,7 +11122,7 @@ var deviceProviderCapability = {
|
|
|
11123
11122
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
11124
11123
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
11125
11124
|
*
|
|
11126
|
-
* All device provider addons (rtsp, onvif,
|
|
11125
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
11127
11126
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
11128
11127
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
11129
11128
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -16069,7 +16068,7 @@ var NcRuleInputSchema = zod.z.object({
|
|
|
16069
16068
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
16070
16069
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
16071
16070
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
16072
|
-
* 30 is
|
|
16071
|
+
* 30 s is a widely shipped value for the same decision.
|
|
16073
16072
|
*
|
|
16074
16073
|
* ### What it replaces
|
|
16075
16074
|
*
|
|
@@ -18476,6 +18475,13 @@ var ZoneCrossingSchema = zod.z.object({
|
|
|
18476
18475
|
/** Zone display name at crossing time (falls back to the id). */
|
|
18477
18476
|
zoneName: zod.z.string().optional()
|
|
18478
18477
|
});
|
|
18478
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
18479
|
+
var ZoneOverlapSchema = zod.z.object({
|
|
18480
|
+
zoneId: zod.z.string(),
|
|
18481
|
+
zoneName: zod.z.string().optional(),
|
|
18482
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
18483
|
+
overlapPct: zod.z.number()
|
|
18484
|
+
});
|
|
18479
18485
|
var ObjectEventSchema = zod.z.object({
|
|
18480
18486
|
...BaseEventFields,
|
|
18481
18487
|
kind: zod.z.literal("object"),
|
|
@@ -18500,6 +18506,35 @@ var ObjectEventSchema = zod.z.object({
|
|
|
18500
18506
|
bbox: BoundingBoxSchema.optional(),
|
|
18501
18507
|
/** Heavy JSON — omitted in slim projection. */
|
|
18502
18508
|
zones: zod.z.array(zod.z.string()).readonly().optional(),
|
|
18509
|
+
/**
|
|
18510
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
18511
|
+
* the BOX area.
|
|
18512
|
+
*
|
|
18513
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
18514
|
+
* the bar an operator argues with — and the number already existed: the
|
|
18515
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
18516
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
18517
|
+
* else to judge by.
|
|
18518
|
+
*/
|
|
18519
|
+
zoneOverlaps: zod.z.array(ZoneOverlapSchema).readonly().optional(),
|
|
18520
|
+
/**
|
|
18521
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
18522
|
+
* has no track and never will.
|
|
18523
|
+
*
|
|
18524
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
18525
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
18526
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
18527
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
18528
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
18529
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
18530
|
+
* event at all.
|
|
18531
|
+
*
|
|
18532
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
18533
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
18534
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
18535
|
+
* history is asking for something that never existed.
|
|
18536
|
+
*/
|
|
18537
|
+
spawnRefused: zod.z.string().optional(),
|
|
18503
18538
|
/** Omitted in slim projection. */
|
|
18504
18539
|
state: TrackStateSchema.optional(),
|
|
18505
18540
|
/**
|
|
@@ -20169,6 +20204,60 @@ var NativeCropResultSchema = zod.z.object({
|
|
|
20169
20204
|
*/
|
|
20170
20205
|
tier: zod.z.enum(["native", "ram-fullframe"]).optional()
|
|
20171
20206
|
});
|
|
20207
|
+
/**
|
|
20208
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20209
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20210
|
+
*
|
|
20211
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20212
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20213
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20214
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20215
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20216
|
+
*
|
|
20217
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20218
|
+
*/
|
|
20219
|
+
var ParkedFrameKindSchema = zod.z.enum(["keyFrame", "thumbnail"]);
|
|
20220
|
+
/**
|
|
20221
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20222
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20223
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20224
|
+
* never a reason to retry in a loop.
|
|
20225
|
+
*
|
|
20226
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20227
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20228
|
+
* carries the runner's own miss reason.
|
|
20229
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20230
|
+
*/
|
|
20231
|
+
var ParkRefusalSchema = zod.z.enum(["handle-gone", "encode-failed"]);
|
|
20232
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20233
|
+
var ParkTrackFrameResultSchema = zod.z.discriminatedUnion("parked", [zod.z.object({
|
|
20234
|
+
parked: zod.z.literal(true),
|
|
20235
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20236
|
+
nodeId: zod.z.string(),
|
|
20237
|
+
width: zod.z.number().int().positive(),
|
|
20238
|
+
height: zod.z.number().int().positive(),
|
|
20239
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20240
|
+
bytes: zod.z.number().int().nonnegative(),
|
|
20241
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20242
|
+
replaced: zod.z.boolean()
|
|
20243
|
+
}), zod.z.object({
|
|
20244
|
+
parked: zod.z.literal(false),
|
|
20245
|
+
nodeId: zod.z.string(),
|
|
20246
|
+
reason: ParkRefusalSchema,
|
|
20247
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20248
|
+
handleAgeMs: zod.z.number().nullable(),
|
|
20249
|
+
detail: zod.z.string().optional()
|
|
20250
|
+
})]);
|
|
20251
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20252
|
+
var ParkedTrackFrameSchema = zod.z.object({
|
|
20253
|
+
jpeg: zod.z.string(),
|
|
20254
|
+
width: zod.z.number().int().positive(),
|
|
20255
|
+
height: zod.z.number().int().positive(),
|
|
20256
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20257
|
+
timestamp: zod.z.number(),
|
|
20258
|
+
/** When the node stored it (the node's clock). */
|
|
20259
|
+
parkedAt: zod.z.number()
|
|
20260
|
+
});
|
|
20172
20261
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20173
20262
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20174
20263
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20558,7 +20647,7 @@ var RunnerCameraConfigSchema = zod.z.object({
|
|
|
20558
20647
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20559
20648
|
* analyzer providers) running on decoded frames in this runner.
|
|
20560
20649
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20561
|
-
* analytics
|
|
20650
|
+
* analytics). The provider emits ProviderMotion
|
|
20562
20651
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20563
20652
|
*/
|
|
20564
20653
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -20940,7 +21029,60 @@ var pipelineRunnerCapability = {
|
|
|
20940
21029
|
className: zod.z.string(),
|
|
20941
21030
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
20942
21031
|
sourceDeviceId: zod.z.number()
|
|
20943
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21032
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }),
|
|
21033
|
+
/**
|
|
21034
|
+
* PARK a frame for a track at the instant it is judged to matter
|
|
21035
|
+
* ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
21036
|
+
*
|
|
21037
|
+
* The hub's `BestDetectionTracker` — the single "best per track" policy —
|
|
21038
|
+
* concludes a frame is a track's best and calls this on the node that
|
|
21039
|
+
* owns `handle` (`nodePin(handle.nodeId)`), while the handle is young. The
|
|
21040
|
+
* runner cuts `bbox` from the native surface it already holds (a full
|
|
21041
|
+
* frame for `keyFrame`, the caller's subject window for `thumbnail`),
|
|
21042
|
+
* encodes ONE JPEG, and keeps it under `(deviceId, trackId, kind)`. Every
|
|
21043
|
+
* later consumer retrieves by that key (`getParkedTrackFrame`) — a lookup
|
|
21044
|
+
* that cannot miss on age. D52 holds: the rectangle is cut by the runner,
|
|
21045
|
+
* never a pre-cut tile the caller decided. D9/D18 hold: one compressed
|
|
21046
|
+
* encode at a decision point, never a stream.
|
|
21047
|
+
*
|
|
21048
|
+
* Idempotent per `(trackId, kind)`: a later park replaces (the ranking is
|
|
21049
|
+
* the hub's; this adds no second opinion), an out-of-order older instant
|
|
21050
|
+
* is ignored. Bounded per device and per node on the runner
|
|
21051
|
+
* (`parked-frame-store.ts`), oldest-first eviction, never a refusal for
|
|
21052
|
+
* space. A refusal names its reason and is logged on the runner with the
|
|
21053
|
+
* handle's measured age — it is never retried into a loop.
|
|
21054
|
+
*/
|
|
21055
|
+
parkTrackFrame: method(zod.z.object({
|
|
21056
|
+
deviceId: zod.z.number(),
|
|
21057
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21058
|
+
trackId: zod.z.string(),
|
|
21059
|
+
kind: ParkedFrameKindSchema,
|
|
21060
|
+
handle: FrameHandleSchema,
|
|
21061
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21062
|
+
bbox: NativeCropBboxSchema,
|
|
21063
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21064
|
+
maxWidth: zod.z.number().int().positive().optional(),
|
|
21065
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21066
|
+
timestamp: zod.z.number()
|
|
21067
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }),
|
|
21068
|
+
/**
|
|
21069
|
+
* Retrieve a parked parcel by `(deviceId, trackId, kind)`. Pinned to the
|
|
21070
|
+
* node that answered the park (`ParkTrackFrameResult.nodeId`). `null` means
|
|
21071
|
+
* nothing was parked under that key on this node — never "too old".
|
|
21072
|
+
*/
|
|
21073
|
+
getParkedTrackFrame: method(zod.z.object({
|
|
21074
|
+
deviceId: zod.z.number(),
|
|
21075
|
+
trackId: zod.z.string(),
|
|
21076
|
+
kind: ParkedFrameKindSchema
|
|
21077
|
+
}), ParkedTrackFrameSchema.nullable()),
|
|
21078
|
+
/**
|
|
21079
|
+
* Drop every parcel of a track — the hub closed it. Idempotent. A track
|
|
21080
|
+
* whose release is lost ages out on the runner under a hard ceiling.
|
|
21081
|
+
*/
|
|
21082
|
+
releaseParkedTrackFrames: method(zod.z.object({
|
|
21083
|
+
deviceId: zod.z.number(),
|
|
21084
|
+
trackId: zod.z.string()
|
|
21085
|
+
}), zod.z.object({ released: zod.z.number().int().nonnegative() }), { kind: "mutation" })
|
|
20944
21086
|
}
|
|
20945
21087
|
};
|
|
20946
21088
|
var CameraPipelineConfigSchema = zod.z.object({
|
|
@@ -25243,8 +25385,8 @@ onStatusChanged: { data: zod.z.object({
|
|
|
25243
25385
|
/**
|
|
25244
25386
|
* Runtime-state slice — every provider that registers this cap
|
|
25245
25387
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
25246
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
25247
|
-
*
|
|
25388
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
25389
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
25248
25390
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
25249
25391
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
25250
25392
|
* the underlying driver.
|
|
@@ -25394,7 +25536,7 @@ var buttonCapability = {
|
|
|
25394
25536
|
*
|
|
25395
25537
|
* Implementations:
|
|
25396
25538
|
* - Each camera-providing addon registers this cap natively per
|
|
25397
|
-
* device (Reolink, Hikvision, RTSP,
|
|
25539
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
25398
25540
|
* - Returns a snapshot from the persisted device config blob — no
|
|
25399
25541
|
* extra round-trip to the camera, no probing.
|
|
25400
25542
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -27613,7 +27755,7 @@ var AvailableIntegrationTypeSchema = zod.z.object({
|
|
|
27613
27755
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
27614
27756
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
27615
27757
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
27616
|
-
* `device-provider` integrations (Reolink/
|
|
27758
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
27617
27759
|
* legacy config → discovery flow.
|
|
27618
27760
|
*/
|
|
27619
27761
|
kind: zod.z.enum(["device-adoption", "device-provider"]),
|
|
@@ -31550,13 +31692,31 @@ var RecordingManifestSchema = zod.z.object({
|
|
|
31550
31692
|
*/
|
|
31551
31693
|
playbackEndpoints: zod.z.array(zod.z.string())
|
|
31552
31694
|
});
|
|
31553
|
-
/**
|
|
31554
|
-
*
|
|
31695
|
+
/**
|
|
31696
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
31697
|
+
* across every profile and every resolvable location on this node.
|
|
31698
|
+
*
|
|
31699
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
31700
|
+
*
|
|
31701
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
31702
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
31703
|
+
* this camera writes to, so the two can be added up and compared.
|
|
31704
|
+
*
|
|
31705
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
31706
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
31707
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
31708
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
31709
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
31710
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
31711
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
31712
|
+
*/
|
|
31555
31713
|
var RecordingDeviceUsageSchema = zod.z.object({
|
|
31556
31714
|
deviceId: zod.z.number(),
|
|
31715
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
31716
|
+
* recordings locations. */
|
|
31557
31717
|
usedBytes: zod.z.number(),
|
|
31558
31718
|
/**
|
|
31559
|
-
* Start of this camera's OLDEST
|
|
31719
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
31560
31720
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
31561
31721
|
* only honest answer to "is retention actually holding?" per camera.
|
|
31562
31722
|
*
|
|
@@ -31566,7 +31726,24 @@ var RecordingDeviceUsageSchema = zod.z.object({
|
|
|
31566
31726
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
31567
31727
|
* the later of the two.
|
|
31568
31728
|
*/
|
|
31569
|
-
oldestMs: zod.z.number().nullable().optional()
|
|
31729
|
+
oldestMs: zod.z.number().nullable().optional(),
|
|
31730
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
31731
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
31732
|
+
segments: zod.z.number().optional(),
|
|
31733
|
+
/**
|
|
31734
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
31735
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
31736
|
+
*
|
|
31737
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
31738
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
31739
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
31740
|
+
* it, and so does a node whose ledger could not answer.
|
|
31741
|
+
*/
|
|
31742
|
+
residentBytes: zod.z.number().optional(),
|
|
31743
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
31744
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
31745
|
+
* retention. `null` = nothing resident. */
|
|
31746
|
+
residentOldestMs: zod.z.number().nullable().optional()
|
|
31570
31747
|
});
|
|
31571
31748
|
/** Recording storage usage + capacity for one storage location. */
|
|
31572
31749
|
var RecordingLocationUsageSchema = zod.z.object({
|
|
@@ -31604,6 +31781,17 @@ var RecordingStorageUsageSchema = zod.z.object({
|
|
|
31604
31781
|
totalUsedBytes: zod.z.number(),
|
|
31605
31782
|
devices: zod.z.array(RecordingDeviceUsageSchema),
|
|
31606
31783
|
/**
|
|
31784
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
31785
|
+
* disks (D418).
|
|
31786
|
+
*
|
|
31787
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
31788
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
31789
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
31790
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
31791
|
+
* and its rows are residency.
|
|
31792
|
+
*/
|
|
31793
|
+
devicesRead: zod.z.enum(["archive", "unavailable"]).optional(),
|
|
31794
|
+
/**
|
|
31607
31795
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
31608
31796
|
* of the payload without it: the hub serves this method through a BAKED
|
|
31609
31797
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -40206,6 +40394,24 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
40206
40394
|
addonId: null,
|
|
40207
40395
|
access: "view"
|
|
40208
40396
|
},
|
|
40397
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
40398
|
+
capName: "pipeline-runner",
|
|
40399
|
+
capScope: "system",
|
|
40400
|
+
addonId: null,
|
|
40401
|
+
access: "view"
|
|
40402
|
+
},
|
|
40403
|
+
"pipelineRunner.parkTrackFrame": {
|
|
40404
|
+
capName: "pipeline-runner",
|
|
40405
|
+
capScope: "system",
|
|
40406
|
+
addonId: null,
|
|
40407
|
+
access: "create"
|
|
40408
|
+
},
|
|
40409
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
40410
|
+
capName: "pipeline-runner",
|
|
40411
|
+
capScope: "system",
|
|
40412
|
+
addonId: null,
|
|
40413
|
+
access: "create"
|
|
40414
|
+
},
|
|
40209
40415
|
"pipelineRunner.reportMotion": {
|
|
40210
40416
|
capName: "pipeline-runner",
|
|
40211
40417
|
capScope: "system",
|
|
@@ -43483,6 +43689,21 @@ Object.freeze({
|
|
|
43483
43689
|
form: "single",
|
|
43484
43690
|
optional: false
|
|
43485
43691
|
}],
|
|
43692
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
43693
|
+
name: "deviceId",
|
|
43694
|
+
form: "single",
|
|
43695
|
+
optional: false
|
|
43696
|
+
}],
|
|
43697
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
43698
|
+
name: "deviceId",
|
|
43699
|
+
form: "single",
|
|
43700
|
+
optional: false
|
|
43701
|
+
}],
|
|
43702
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
43703
|
+
name: "deviceId",
|
|
43704
|
+
form: "single",
|
|
43705
|
+
optional: false
|
|
43706
|
+
}],
|
|
43486
43707
|
"pipelineRunner.reportMotion": [{
|
|
43487
43708
|
name: "deviceId",
|
|
43488
43709
|
form: "single",
|
|
@@ -44466,7 +44687,7 @@ var PreviewTextField = zod.z.string().max(200);
|
|
|
44466
44687
|
* Whether the notification's preview is a STILL or a short animation.
|
|
44467
44688
|
*
|
|
44468
44689
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
44469
|
-
* rule)"* —
|
|
44690
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
44470
44691
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
44471
44692
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
44472
44693
|
* simply applies it to a dozen frames sampled across the render and assembles
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-DAXzJeTX.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -591,7 +591,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
591
591
|
* issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
|
|
592
592
|
*/
|
|
593
593
|
EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
|
|
594
|
-
EventCategory["FrigateLiveEvent"] = "frigate.live-event";
|
|
595
594
|
EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
|
|
596
595
|
/**
|
|
597
596
|
* Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
|
|
@@ -10421,7 +10420,7 @@ var detectionPipelineCapability = {
|
|
|
10421
10420
|
var SourceInfoSchema = z.object({
|
|
10422
10421
|
/** Live dispatch key — mutable when the source system allows rename. */
|
|
10423
10422
|
id: z.string(),
|
|
10424
|
-
/** Source system tag — e.g. 'homeassistant' | 'reolink' | '
|
|
10423
|
+
/** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
|
|
10425
10424
|
system: z.string(),
|
|
10426
10425
|
/** Immutable upstream identifier when available (HA `unique_id`, … ).
|
|
10427
10426
|
* Used to detect rename when `id` changes. */
|
|
@@ -11123,7 +11122,7 @@ var deviceProviderCapability = {
|
|
|
11123
11122
|
* - `device-management.router.ts` (deleted in Phase 2)
|
|
11124
11123
|
* - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
|
|
11125
11124
|
*
|
|
11126
|
-
* All device provider addons (rtsp, onvif,
|
|
11125
|
+
* All device provider addons (rtsp, onvif, …) are hub-local: they may
|
|
11127
11126
|
* fork into separate processes but never run on remote cluster agents. Therefore:
|
|
11128
11127
|
* - No nodeId routing needed — this is a pure hub singleton.
|
|
11129
11128
|
* - The hub's DeviceRegistry is the single source of truth for all live devices.
|
|
@@ -16069,7 +16068,7 @@ var NcRuleInputSchema = z.object({
|
|
|
16069
16068
|
* The measured seven-person arrival on device 590 spans 110 s with every
|
|
16070
16069
|
* internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
|
|
16071
16070
|
* idle cutoff holds it as one and ends it when the arrival actually ends.
|
|
16072
|
-
* 30 is
|
|
16071
|
+
* 30 s is a widely shipped value for the same decision.
|
|
16073
16072
|
*
|
|
16074
16073
|
* ### What it replaces
|
|
16075
16074
|
*
|
|
@@ -18476,6 +18475,13 @@ var ZoneCrossingSchema = z.object({
|
|
|
18476
18475
|
/** Zone display name at crossing time (falls back to the id). */
|
|
18477
18476
|
zoneName: z.string().optional()
|
|
18478
18477
|
});
|
|
18478
|
+
/** One zone a box was stamped with, and how much of the BOX fell inside it. */
|
|
18479
|
+
var ZoneOverlapSchema = z.object({
|
|
18480
|
+
zoneId: z.string(),
|
|
18481
|
+
zoneName: z.string().optional(),
|
|
18482
|
+
/** Percentage of the BOX area inside the zone, 0–100. */
|
|
18483
|
+
overlapPct: z.number()
|
|
18484
|
+
});
|
|
18479
18485
|
var ObjectEventSchema = z.object({
|
|
18480
18486
|
...BaseEventFields,
|
|
18481
18487
|
kind: z.literal("object"),
|
|
@@ -18500,6 +18506,35 @@ var ObjectEventSchema = z.object({
|
|
|
18500
18506
|
bbox: BoundingBoxSchema.optional(),
|
|
18501
18507
|
/** Heavy JSON — omitted in slim projection. */
|
|
18502
18508
|
zones: z.array(z.string()).readonly().optional(),
|
|
18509
|
+
/**
|
|
18510
|
+
* How far inside each stamped zone the box actually was, as a percentage of
|
|
18511
|
+
* the BOX area.
|
|
18512
|
+
*
|
|
18513
|
+
* Membership alone cannot express "at least a third of it inside", which is
|
|
18514
|
+
* the bar an operator argues with — and the number already existed: the
|
|
18515
|
+
* engine computed it, the pipeline logged it, and then discarded it. It
|
|
18516
|
+
* matters most on the events that carry no track, where a rule has nothing
|
|
18517
|
+
* else to judge by.
|
|
18518
|
+
*/
|
|
18519
|
+
zoneOverlaps: z.array(ZoneOverlapSchema).readonly().optional(),
|
|
18520
|
+
/**
|
|
18521
|
+
* Present when this event describes a detection the TRACKER refused, so it
|
|
18522
|
+
* has no track and never will.
|
|
18523
|
+
*
|
|
18524
|
+
* A zone-scoped immediate rule asks "is there an animal in the flowerbed
|
|
18525
|
+
* NOW?"; tracking answers a different question ("is this the same subject as
|
|
18526
|
+
* before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
|
|
18527
|
+
* dog at 0.7729, 100% inside a watched zone, was refused three times in six
|
|
18528
|
+
* seconds with three different candidate ids — seven analysed frames in the
|
|
18529
|
+
* window, the subject in a handful of them, metres apart — and produced no
|
|
18530
|
+
* event at all.
|
|
18531
|
+
*
|
|
18532
|
+
* It is NAMED rather than merely implied by a missing `trackId`: an event
|
|
18533
|
+
* with no track and no reason is indistinguishable from a track whose media
|
|
18534
|
+
* went missing, and a consumer that asks this one for a best shot or a
|
|
18535
|
+
* history is asking for something that never existed.
|
|
18536
|
+
*/
|
|
18537
|
+
spawnRefused: z.string().optional(),
|
|
18503
18538
|
/** Omitted in slim projection. */
|
|
18504
18539
|
state: TrackStateSchema.optional(),
|
|
18505
18540
|
/**
|
|
@@ -20169,6 +20204,60 @@ var NativeCropResultSchema = z.object({
|
|
|
20169
20204
|
*/
|
|
20170
20205
|
tier: z.enum(["native", "ram-fullframe"]).optional()
|
|
20171
20206
|
});
|
|
20207
|
+
/**
|
|
20208
|
+
* What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
|
|
20209
|
+
* kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
20210
|
+
*
|
|
20211
|
+
* - `keyFrame` — the track's clean best FULL frame at native width (capped by
|
|
20212
|
+
* the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
|
|
20213
|
+
* from, and what the detail plane's full-frame rung cuts from.
|
|
20214
|
+
* - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
|
|
20215
|
+
* window, cut by the runner at uncapped native resolution.
|
|
20216
|
+
*
|
|
20217
|
+
* The runner never interprets `trackId`; it is an opaque key the hub owns.
|
|
20218
|
+
*/
|
|
20219
|
+
var ParkedFrameKindSchema = z.enum(["keyFrame", "thumbnail"]);
|
|
20220
|
+
/**
|
|
20221
|
+
* Why a park did NOT happen. Every one is logged on the runner with
|
|
20222
|
+
* `tags: { deviceId }` and the handle's measured age, because a handle already
|
|
20223
|
+
* gone at park time IS the defect the 150–500 ms window exists to prevent —
|
|
20224
|
+
* never a reason to retry in a loop.
|
|
20225
|
+
*
|
|
20226
|
+
* - `handle-gone` — the native surface no longer resolves this handle (never
|
|
20227
|
+
* registered, past the lease bound, or the worker released it). `detail`
|
|
20228
|
+
* carries the runner's own miss reason.
|
|
20229
|
+
* - `encode-failed` — pixels resolved and the JPEG encode threw.
|
|
20230
|
+
*/
|
|
20231
|
+
var ParkRefusalSchema = z.enum(["handle-gone", "encode-failed"]);
|
|
20232
|
+
/** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
|
|
20233
|
+
var ParkTrackFrameResultSchema = z.discriminatedUnion("parked", [z.object({
|
|
20234
|
+
parked: z.literal(true),
|
|
20235
|
+
/** The node holding the parcel — what a later retrieval must be pinned to. */
|
|
20236
|
+
nodeId: z.string(),
|
|
20237
|
+
width: z.number().int().positive(),
|
|
20238
|
+
height: z.number().int().positive(),
|
|
20239
|
+
/** JPEG bytes the parcel costs on the node. */
|
|
20240
|
+
bytes: z.number().int().nonnegative(),
|
|
20241
|
+
/** Whether this park replaced a parcel already held for the key. */
|
|
20242
|
+
replaced: z.boolean()
|
|
20243
|
+
}), z.object({
|
|
20244
|
+
parked: z.literal(false),
|
|
20245
|
+
nodeId: z.string(),
|
|
20246
|
+
reason: ParkRefusalSchema,
|
|
20247
|
+
/** Age of the handle at the park, on the runner's clock; null if unknown. */
|
|
20248
|
+
handleAgeMs: z.number().nullable(),
|
|
20249
|
+
detail: z.string().optional()
|
|
20250
|
+
})]);
|
|
20251
|
+
/** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
|
|
20252
|
+
var ParkedTrackFrameSchema = z.object({
|
|
20253
|
+
jpeg: z.string(),
|
|
20254
|
+
width: z.number().int().positive(),
|
|
20255
|
+
height: z.number().int().positive(),
|
|
20256
|
+
/** The frame instant the parcel shows (the caller's clock, echoed back). */
|
|
20257
|
+
timestamp: z.number(),
|
|
20258
|
+
/** When the node stored it (the node's clock). */
|
|
20259
|
+
parkedAt: z.number()
|
|
20260
|
+
});
|
|
20172
20261
|
/** Parent detection context passed to `runDetailSubtree` — the crop's
|
|
20173
20262
|
* originating detection, in FRAME-space coordinates. Reuses
|
|
20174
20263
|
* `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
|
|
@@ -20558,7 +20647,7 @@ var RunnerCameraConfigSchema = z.object({
|
|
|
20558
20647
|
* - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
|
|
20559
20648
|
* analyzer providers) running on decoded frames in this runner.
|
|
20560
20649
|
* - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
|
|
20561
|
-
* analytics
|
|
20650
|
+
* analytics). The provider emits ProviderMotion
|
|
20562
20651
|
* events; the orchestrator forwards to `reportMotion`.
|
|
20563
20652
|
*/
|
|
20564
20653
|
motionSources: MotionSourcesSchema.default(["analyzer"]),
|
|
@@ -20940,7 +21029,60 @@ var pipelineRunnerCapability = {
|
|
|
20940
21029
|
className: z.string(),
|
|
20941
21030
|
/** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
|
|
20942
21031
|
sourceDeviceId: z.number()
|
|
20943
|
-
}), RunStatelessStepResultSchema, { kind: "mutation" })
|
|
21032
|
+
}), RunStatelessStepResultSchema, { kind: "mutation" }),
|
|
21033
|
+
/**
|
|
21034
|
+
* PARK a frame for a track at the instant it is judged to matter
|
|
21035
|
+
* ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
|
|
21036
|
+
*
|
|
21037
|
+
* The hub's `BestDetectionTracker` — the single "best per track" policy —
|
|
21038
|
+
* concludes a frame is a track's best and calls this on the node that
|
|
21039
|
+
* owns `handle` (`nodePin(handle.nodeId)`), while the handle is young. The
|
|
21040
|
+
* runner cuts `bbox` from the native surface it already holds (a full
|
|
21041
|
+
* frame for `keyFrame`, the caller's subject window for `thumbnail`),
|
|
21042
|
+
* encodes ONE JPEG, and keeps it under `(deviceId, trackId, kind)`. Every
|
|
21043
|
+
* later consumer retrieves by that key (`getParkedTrackFrame`) — a lookup
|
|
21044
|
+
* that cannot miss on age. D52 holds: the rectangle is cut by the runner,
|
|
21045
|
+
* never a pre-cut tile the caller decided. D9/D18 hold: one compressed
|
|
21046
|
+
* encode at a decision point, never a stream.
|
|
21047
|
+
*
|
|
21048
|
+
* Idempotent per `(trackId, kind)`: a later park replaces (the ranking is
|
|
21049
|
+
* the hub's; this adds no second opinion), an out-of-order older instant
|
|
21050
|
+
* is ignored. Bounded per device and per node on the runner
|
|
21051
|
+
* (`parked-frame-store.ts`), oldest-first eviction, never a refusal for
|
|
21052
|
+
* space. A refusal names its reason and is logged on the runner with the
|
|
21053
|
+
* handle's measured age — it is never retried into a loop.
|
|
21054
|
+
*/
|
|
21055
|
+
parkTrackFrame: method(z.object({
|
|
21056
|
+
deviceId: z.number(),
|
|
21057
|
+
/** Opaque to the runner — the hub's track id. */
|
|
21058
|
+
trackId: z.string(),
|
|
21059
|
+
kind: ParkedFrameKindSchema,
|
|
21060
|
+
handle: FrameHandleSchema,
|
|
21061
|
+
/** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
|
|
21062
|
+
bbox: NativeCropBboxSchema,
|
|
21063
|
+
/** Width cap for a full-frame park (the `keyFrame` native cap). */
|
|
21064
|
+
maxWidth: z.number().int().positive().optional(),
|
|
21065
|
+
/** The frame instant (caller's clock) — orders parks for one key. */
|
|
21066
|
+
timestamp: z.number()
|
|
21067
|
+
}), ParkTrackFrameResultSchema, { kind: "mutation" }),
|
|
21068
|
+
/**
|
|
21069
|
+
* Retrieve a parked parcel by `(deviceId, trackId, kind)`. Pinned to the
|
|
21070
|
+
* node that answered the park (`ParkTrackFrameResult.nodeId`). `null` means
|
|
21071
|
+
* nothing was parked under that key on this node — never "too old".
|
|
21072
|
+
*/
|
|
21073
|
+
getParkedTrackFrame: method(z.object({
|
|
21074
|
+
deviceId: z.number(),
|
|
21075
|
+
trackId: z.string(),
|
|
21076
|
+
kind: ParkedFrameKindSchema
|
|
21077
|
+
}), ParkedTrackFrameSchema.nullable()),
|
|
21078
|
+
/**
|
|
21079
|
+
* Drop every parcel of a track — the hub closed it. Idempotent. A track
|
|
21080
|
+
* whose release is lost ages out on the runner under a hard ceiling.
|
|
21081
|
+
*/
|
|
21082
|
+
releaseParkedTrackFrames: method(z.object({
|
|
21083
|
+
deviceId: z.number(),
|
|
21084
|
+
trackId: z.string()
|
|
21085
|
+
}), z.object({ released: z.number().int().nonnegative() }), { kind: "mutation" })
|
|
20944
21086
|
}
|
|
20945
21087
|
};
|
|
20946
21088
|
var CameraPipelineConfigSchema = z.object({
|
|
@@ -25243,8 +25385,8 @@ onStatusChanged: { data: z.object({
|
|
|
25243
25385
|
/**
|
|
25244
25386
|
* Runtime-state slice — every provider that registers this cap
|
|
25245
25387
|
* stores the same shape under `device.runtimeState[battery]`.
|
|
25246
|
-
* Cross-provider uniformity: a Reolink Argus, a
|
|
25247
|
-
*
|
|
25388
|
+
* Cross-provider uniformity: a Reolink Argus, a sensor proxy,
|
|
25389
|
+
* an ONVIF battery cam all read/write the same keys.
|
|
25248
25390
|
* Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
|
|
25249
25391
|
* via `device.runtimeState.getCapState('battery')` regardless of
|
|
25250
25392
|
* the underlying driver.
|
|
@@ -25394,7 +25536,7 @@ var buttonCapability = {
|
|
|
25394
25536
|
*
|
|
25395
25537
|
* Implementations:
|
|
25396
25538
|
* - Each camera-providing addon registers this cap natively per
|
|
25397
|
-
* device (Reolink, Hikvision, RTSP,
|
|
25539
|
+
* device (Reolink, Hikvision, RTSP, ONVIF self).
|
|
25398
25540
|
* - Returns a snapshot from the persisted device config blob — no
|
|
25399
25541
|
* extra round-trip to the camera, no probing.
|
|
25400
25542
|
* - The cap is admin-only (`auth: 'admin'`) — credentials must not
|
|
@@ -27613,7 +27755,7 @@ var AvailableIntegrationTypeSchema = z.object({
|
|
|
27613
27755
|
* Which integration-marker cap the addon declared, so the wizard can
|
|
27614
27756
|
* branch on CAP — never on addon name. `device-adoption` integrations
|
|
27615
27757
|
* (Home Assistant, …) route through the broker step (Approach A);
|
|
27616
|
-
* `device-provider` integrations (Reolink/
|
|
27758
|
+
* `device-provider` integrations (Reolink/ONVIF) keep the
|
|
27617
27759
|
* legacy config → discovery flow.
|
|
27618
27760
|
*/
|
|
27619
27761
|
kind: z.enum(["device-adoption", "device-provider"]),
|
|
@@ -31550,13 +31692,31 @@ var RecordingManifestSchema = z.object({
|
|
|
31550
31692
|
*/
|
|
31551
31693
|
playbackEndpoints: z.array(z.string())
|
|
31552
31694
|
});
|
|
31553
|
-
/**
|
|
31554
|
-
*
|
|
31695
|
+
/**
|
|
31696
|
+
* Recording storage usage for one camera — what the ARCHIVE holds for it,
|
|
31697
|
+
* across every profile and every resolvable location on this node.
|
|
31698
|
+
*
|
|
31699
|
+
* ## Archive vs residency, which is the whole point of this shape (D418)
|
|
31700
|
+
*
|
|
31701
|
+
* `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
|
|
31702
|
+
* the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
|
|
31703
|
+
* this camera writes to, so the two can be added up and compared.
|
|
31704
|
+
*
|
|
31705
|
+
* They were not always. Until D418 this row came from the recorder's in-RAM
|
|
31706
|
+
* `RecordingIndex`, which since D287 holds only the live tail plus the hours
|
|
31707
|
+
* somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
|
|
31708
|
+
* 60.5 GB and "oldest: three hours ago" on the same page as the volume row
|
|
31709
|
+
* that said otherwise, and two people read it as retention eating recent
|
|
31710
|
+
* footage. Residency is still reported, under `residentBytes` /
|
|
31711
|
+
* `residentOldestMs`, which answer a different question and say so.
|
|
31712
|
+
*/
|
|
31555
31713
|
var RecordingDeviceUsageSchema = z.object({
|
|
31556
31714
|
deviceId: z.number(),
|
|
31715
|
+
/** Bytes the ARCHIVE holds for this camera on this node's resolvable
|
|
31716
|
+
* recordings locations. */
|
|
31557
31717
|
usedBytes: z.number(),
|
|
31558
31718
|
/**
|
|
31559
|
-
* Start of this camera's OLDEST
|
|
31719
|
+
* Start of this camera's OLDEST ARCHIVED segment, across every profile and
|
|
31560
31720
|
* location — the "Oldest footage" column in Recordings → Storage, and the
|
|
31561
31721
|
* only honest answer to "is retention actually holding?" per camera.
|
|
31562
31722
|
*
|
|
@@ -31566,7 +31726,24 @@ var RecordingDeviceUsageSchema = z.object({
|
|
|
31566
31726
|
* (types) and the addon ship on different trains, and the addon is usually
|
|
31567
31727
|
* the later of the two.
|
|
31568
31728
|
*/
|
|
31569
|
-
oldestMs: z.number().nullable().optional()
|
|
31729
|
+
oldestMs: z.number().nullable().optional(),
|
|
31730
|
+
/** Segments the archive holds for this camera — the "M" beside `usedBytes`.
|
|
31731
|
+
* OPTIONAL for the same train-skew reason as `oldestMs`. */
|
|
31732
|
+
segments: z.number().optional(),
|
|
31733
|
+
/**
|
|
31734
|
+
* RESIDENCY, not the archive: bytes the recorder process currently holds in
|
|
31735
|
+
* its RAM index — the live tail plus the hours a reader hydrated.
|
|
31736
|
+
*
|
|
31737
|
+
* It answers "what can be served without touching the disk", never "how much
|
|
31738
|
+
* footage this camera has". A UI that renders it must label it as such, and
|
|
31739
|
+
* must never total it as storage. OPTIONAL: a recorder predating D418 omits
|
|
31740
|
+
* it, and so does a node whose ledger could not answer.
|
|
31741
|
+
*/
|
|
31742
|
+
residentBytes: z.number().optional(),
|
|
31743
|
+
/** The residency counterpart of `oldestMs` — the oldest segment currently in
|
|
31744
|
+
* RAM, which on a healthy recorder is minutes ago and means nothing about
|
|
31745
|
+
* retention. `null` = nothing resident. */
|
|
31746
|
+
residentOldestMs: z.number().nullable().optional()
|
|
31570
31747
|
});
|
|
31571
31748
|
/** Recording storage usage + capacity for one storage location. */
|
|
31572
31749
|
var RecordingLocationUsageSchema = z.object({
|
|
@@ -31604,6 +31781,17 @@ var RecordingStorageUsageSchema = z.object({
|
|
|
31604
31781
|
totalUsedBytes: z.number(),
|
|
31605
31782
|
devices: z.array(RecordingDeviceUsageSchema),
|
|
31606
31783
|
/**
|
|
31784
|
+
* WHERE `devices[]` came from, so an empty table is never mistaken for empty
|
|
31785
|
+
* disks (D418).
|
|
31786
|
+
*
|
|
31787
|
+
* `archive` = the durable hour ledger answered. `unavailable` = this node
|
|
31788
|
+
* declared no ledger and the recorder REFUSED rather than answering the
|
|
31789
|
+
* question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
|
|
31790
|
+
* zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
|
|
31791
|
+
* and its rows are residency.
|
|
31792
|
+
*/
|
|
31793
|
+
devicesRead: z.enum(["archive", "unavailable"]).optional(),
|
|
31794
|
+
/**
|
|
31607
31795
|
* Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
|
|
31608
31796
|
* of the payload without it: the hub serves this method through a BAKED
|
|
31609
31797
|
* router, so a hub whose framework train predates a change to this array
|
|
@@ -40206,6 +40394,24 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
40206
40394
|
addonId: null,
|
|
40207
40395
|
access: "view"
|
|
40208
40396
|
},
|
|
40397
|
+
"pipelineRunner.getParkedTrackFrame": {
|
|
40398
|
+
capName: "pipeline-runner",
|
|
40399
|
+
capScope: "system",
|
|
40400
|
+
addonId: null,
|
|
40401
|
+
access: "view"
|
|
40402
|
+
},
|
|
40403
|
+
"pipelineRunner.parkTrackFrame": {
|
|
40404
|
+
capName: "pipeline-runner",
|
|
40405
|
+
capScope: "system",
|
|
40406
|
+
addonId: null,
|
|
40407
|
+
access: "create"
|
|
40408
|
+
},
|
|
40409
|
+
"pipelineRunner.releaseParkedTrackFrames": {
|
|
40410
|
+
capName: "pipeline-runner",
|
|
40411
|
+
capScope: "system",
|
|
40412
|
+
addonId: null,
|
|
40413
|
+
access: "create"
|
|
40414
|
+
},
|
|
40209
40415
|
"pipelineRunner.reportMotion": {
|
|
40210
40416
|
capName: "pipeline-runner",
|
|
40211
40417
|
capScope: "system",
|
|
@@ -43483,6 +43689,21 @@ Object.freeze({
|
|
|
43483
43689
|
form: "single",
|
|
43484
43690
|
optional: false
|
|
43485
43691
|
}],
|
|
43692
|
+
"pipelineRunner.getParkedTrackFrame": [{
|
|
43693
|
+
name: "deviceId",
|
|
43694
|
+
form: "single",
|
|
43695
|
+
optional: false
|
|
43696
|
+
}],
|
|
43697
|
+
"pipelineRunner.parkTrackFrame": [{
|
|
43698
|
+
name: "deviceId",
|
|
43699
|
+
form: "single",
|
|
43700
|
+
optional: false
|
|
43701
|
+
}],
|
|
43702
|
+
"pipelineRunner.releaseParkedTrackFrames": [{
|
|
43703
|
+
name: "deviceId",
|
|
43704
|
+
form: "single",
|
|
43705
|
+
optional: false
|
|
43706
|
+
}],
|
|
43486
43707
|
"pipelineRunner.reportMotion": [{
|
|
43487
43708
|
name: "deviceId",
|
|
43488
43709
|
form: "single",
|
|
@@ -44466,7 +44687,7 @@ var PreviewTextField = z.string().max(200);
|
|
|
44466
44687
|
* Whether the notification's preview is a STILL or a short animation.
|
|
44467
44688
|
*
|
|
44468
44689
|
* The operator's ask, verbatim: *"inviato come gif o video (come per le altre
|
|
44469
|
-
* rule)"* —
|
|
44690
|
+
* rule)"* — the other rules already offer an animated preview, and a ten-hour
|
|
44470
44691
|
* night reads better as three seconds of motion than as one frame of it. Both
|
|
44471
44692
|
* modes get the SAME treatment (blurred frame, large centred title); `'gif'`
|
|
44472
44693
|
* simply applies it to a dozen frames sampled across the render and assembles
|
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-DYWqXngV.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 { A as addonSettingsCapability, Ct as objectInputDeclaresAddonId, Et as procedureAuthKey, Nt as scopesAllowAddon, Pt as scopesAllowDeviceCap, Xt as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Yt as DATAPLANE_SECRET_HEADER$1, Zt as DEVICE_STATUS_METHOD, _ as RUNTIME_DEFAULTS, _n as resolveCapMount, _t as looseSchema, an as asNumber, at as isCollectionArrayMethod, bn as EventCategory$1, cn as emitDownForOwnedCaps, dt as kebabToCamel, et as extractNestedAddonId, gn as readinessKey, gt as logLevelAtMost, h as METHOD_ACCESS_MAP, hn as parseJsonUnknown, in as asJsonObject$1, it as isArrayOutputSchema, jt as resolveMethodAuth, mn as parseJsonObject, nn as ReadinessTimeoutError, on as asString$1, p as LOG_LEVEL_RANK, pt as lifecycleJobSchema, qt as errMsg$1, sn as createEvent, st as isObjectInput, t as ALL_CAPABILITY_DEFINITIONS, tn as ReadinessRegistry, un as expandCapMethods, ut as isVoidInput, vn as scopeKey } from "./dist-
|
|
2
|
+
import { A as addonSettingsCapability, Ct as objectInputDeclaresAddonId, Et as procedureAuthKey, Nt as scopesAllowAddon, Pt as scopesAllowDeviceCap, Xt as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Yt as DATAPLANE_SECRET_HEADER$1, Zt as DEVICE_STATUS_METHOD, _ as RUNTIME_DEFAULTS, _n as resolveCapMount, _t as looseSchema, an as asNumber, at as isCollectionArrayMethod, bn as EventCategory$1, cn as emitDownForOwnedCaps, dt as kebabToCamel, et as extractNestedAddonId, gn as readinessKey, gt as logLevelAtMost, h as METHOD_ACCESS_MAP, hn as parseJsonUnknown, in as asJsonObject$1, it as isArrayOutputSchema, jt as resolveMethodAuth, mn as parseJsonObject, nn as ReadinessTimeoutError, on as asString$1, p as LOG_LEVEL_RANK, pt as lifecycleJobSchema, qt as errMsg$1, sn as createEvent, st as isObjectInput, t as ALL_CAPABILITY_DEFINITIONS, tn as ReadinessRegistry, un as expandCapMethods, ut as isVoidInput, vn as scopeKey } from "./dist-MtqqwJVI.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";
|