@camstack/system 1.2.211 → 1.2.212
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-Cnelbn_Z.mjs → dist-6XcpyI6Q.mjs} +182 -0
- package/dist/{dist-C5xJy-uL.js → dist-WLsoGpyn.js} +182 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{retired-settings-keys-CONISA8J.js → retired-settings-keys-WShMmPM4.js} +1 -1
- package/dist/{retired-settings-keys-CIuDeUQo.mjs → retired-settings-keys-zWV6AULO.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.js");
|
|
7
|
+
const require_retired_settings_keys = require("../../retired-settings-keys-WShMmPM4.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-6XcpyI6Q.mjs";
|
|
2
|
+
import { n as purgeRetiredSettingsRows } from "../../retired-settings-keys-zWV6AULO.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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-WLsoGpyn.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-6XcpyI6Q.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";
|
|
@@ -3797,6 +3797,157 @@ function walkField(field, out) {
|
|
|
3797
3797
|
for (const tab of tabs) for (const child of fieldsOf(tab)) walkField(child, out);
|
|
3798
3798
|
}
|
|
3799
3799
|
}
|
|
3800
|
+
/**
|
|
3801
|
+
* What the gate decided about a birth, from the CALLER's point of view.
|
|
3802
|
+
*
|
|
3803
|
+
* Deliberately not `ConfirmationVerdict`: `undecided` is not a birth decision
|
|
3804
|
+
* at all — it is a deferral, and the row is written when the deferral ENDS.
|
|
3805
|
+
* The third member is the one the gate's own type cannot express, because
|
|
3806
|
+
* exhaustion is a property of how long the caller waited.
|
|
3807
|
+
*/
|
|
3808
|
+
var BirthDecisionVerdictSchema = z.enum([
|
|
3809
|
+
"confirmed",
|
|
3810
|
+
"suppressed",
|
|
3811
|
+
"exhausted-fallback"
|
|
3812
|
+
]);
|
|
3813
|
+
/** One birth decision, as it is kept. */
|
|
3814
|
+
var BirthDecisionRecordSchema = z.object({
|
|
3815
|
+
id: z.string(),
|
|
3816
|
+
/** Epoch ms the VERDICT was taken (not the birth instant — see `firstSeen`). */
|
|
3817
|
+
at: z.number().int(),
|
|
3818
|
+
/** The camera. Required: every question here is asked per-camera. */
|
|
3819
|
+
deviceId: z.number().int(),
|
|
3820
|
+
/**
|
|
3821
|
+
* The track the decision was about. PROVENANCE, not ownership — a suppressed
|
|
3822
|
+
* birth has no track at all, and a confirmed one is expected to age out long
|
|
3823
|
+
* before this row does. Named `sourceTrackId` so the retention model's
|
|
3824
|
+
* ownership derivation (`collection-classification.ts`, which keys on a
|
|
3825
|
+
* column literally called `trackId`) cannot reach it.
|
|
3826
|
+
*/
|
|
3827
|
+
sourceTrackId: z.string(),
|
|
3828
|
+
/** The candidate's claimed class. The miss rate is asked per class too. */
|
|
3829
|
+
className: z.string(),
|
|
3830
|
+
verdict: BirthDecisionVerdictSchema,
|
|
3831
|
+
/**
|
|
3832
|
+
* The gate's own `ConfirmationReason` (`confirmed`, `suppressed`,
|
|
3833
|
+
* `native-pass`, `no-crop`, `timeout`, `carried-inconclusive`, …), or `null`
|
|
3834
|
+
* when the gate is DISABLED and every birth is waved through. `null` is not
|
|
3835
|
+
* "unknown": it says the gate took no measurement because it was off, which
|
|
3836
|
+
* is a different population and must never be averaged in with the rest.
|
|
3837
|
+
*/
|
|
3838
|
+
reason: z.string().nullable(),
|
|
3839
|
+
/** Deferral attempts this birth used. 0 = decided on its first look. */
|
|
3840
|
+
attempts: z.number().int(),
|
|
3841
|
+
/** Ms from the FIRST undecided attempt to this verdict. 0 = never deferred. */
|
|
3842
|
+
deferredForMs: z.number().int(),
|
|
3843
|
+
/**
|
|
3844
|
+
* THE COLUMN THE RE-OFFER DEFECT IS COUNTED IN.
|
|
3845
|
+
*
|
|
3846
|
+
* `true` when the frame the verdict was taken on carried no matched
|
|
3847
|
+
* detection for this track — the tracker was coasting a frozen box and the
|
|
3848
|
+
* subject was not observed. The deferred-birth re-offer pulls the candidate
|
|
3849
|
+
* straight out of `result.tracked` without checking, so this is reachable
|
|
3850
|
+
* today; the question is the RATE, per camera, and whether refusing those
|
|
3851
|
+
* frames would have cost real tracks (cross-read against `verdict` and
|
|
3852
|
+
* `decidedByBirthEvidence`).
|
|
3853
|
+
*/
|
|
3854
|
+
decidedOnCoastedFrame: z.boolean(),
|
|
3855
|
+
/** Were D379 birth-instant pixels in hand when this candidate was submitted? */
|
|
3856
|
+
birthEvidenceAvailable: z.boolean(),
|
|
3857
|
+
/**
|
|
3858
|
+
* Did those pixels DECIDE it (`cropSource === 'carried'`)? Available and
|
|
3859
|
+
* deciding are different: the carried crop is confirm-only, so a candidate
|
|
3860
|
+
* can hold evidence, be found inconclusive on it, and be decided by a native
|
|
3861
|
+
* crop of a later instant. A coasted decision backed by carried evidence is
|
|
3862
|
+
* a real observation of the birth instant; one without it is not.
|
|
3863
|
+
*/
|
|
3864
|
+
decidedByBirthEvidence: z.boolean(),
|
|
3865
|
+
/** Best class-compatible crop score, or `null` when nothing compatible was
|
|
3866
|
+
* found — deliberately not 0, which would be a measurement that never was. */
|
|
3867
|
+
bestScore: z.number().nullable(),
|
|
3868
|
+
/** The bar this candidate actually faced (the phantom-cell hook may raise it). */
|
|
3869
|
+
appliedMinConfidence: z.number().nullable(),
|
|
3870
|
+
/**
|
|
3871
|
+
* The track's own `firstSeen` — the candidate's first frame, which is where
|
|
3872
|
+
* the timeline starts. `null` for a suppressed birth, which has no track.
|
|
3873
|
+
*/
|
|
3874
|
+
firstSeen: z.number().int().nullable(),
|
|
3875
|
+
/**
|
|
3876
|
+
* The device's most recent motion RISING EDGE at the moment of the decision,
|
|
3877
|
+
* or `null` when there is none, it is older than
|
|
3878
|
+
* {@link MAX_BIRTH_LATENCY_PROXY_MS}, or this runner never saw one.
|
|
3879
|
+
*/
|
|
3880
|
+
motionOnsetAt: z.number().int().nullable(),
|
|
3881
|
+
/**
|
|
3882
|
+
* `firstSeen − motionOnsetAt` — THE OPERATOR'S COMPLAINT, IN MILLISECONDS,
|
|
3883
|
+
* AND THE WEAKEST NUMBER IN THIS ROW. Read the error bars before quoting it.
|
|
3884
|
+
*
|
|
3885
|
+
* **Why motion onset and not something else.** Two other proxies were
|
|
3886
|
+
* considered and rejected:
|
|
3887
|
+
* - *the recording/pipeline session start*: for a camera on
|
|
3888
|
+
* `detectionMode: 'always'` the session opens at process start, hours
|
|
3889
|
+
* before any subject. It measures nothing.
|
|
3890
|
+
* - *the first detection on the device in this burst*: CIRCULAR. A track's
|
|
3891
|
+
* `firstSeen` IS the first detection of that object, so for the track that
|
|
3892
|
+
* OPENS a burst — the only one the operator is complaining about — the two
|
|
3893
|
+
* are the same instant and the latency is 0 by construction.
|
|
3894
|
+
* Motion onset is the only in-process signal produced by a DIFFERENT
|
|
3895
|
+
* mechanism from the object detector, so it is the only one that can precede
|
|
3896
|
+
* it. It is also already maintained per-device at frame rate on this very
|
|
3897
|
+
* node (`handleMotionAnalysis` / `handleOnboardMotion`), which is what makes
|
|
3898
|
+
* it free — and, decisively, the frame path and the motion path are gated to
|
|
3899
|
+
* the SAME designated post-processing node, so the mirror is never empty for
|
|
3900
|
+
* a camera whose births land here.
|
|
3901
|
+
*
|
|
3902
|
+
* **Error bars, all of them.**
|
|
3903
|
+
* 1. *Motion has no class.* A burst opened by rain, a headlight sweeping a
|
|
3904
|
+
* wall or a branch, and only later joined by the person, OVERSTATES the
|
|
3905
|
+
* latency without bound. Mitigated, never removed, by
|
|
3906
|
+
* {@link BirthDecisionRecord.birthIndexInBurst}: only index 0 is a
|
|
3907
|
+
* candidate for "this burst is this subject", and even then it is a
|
|
3908
|
+
* candidate, not a fact.
|
|
3909
|
+
* 2. *The sign is not guaranteed.* The analyzer needs a pixel-count and
|
|
3910
|
+
* intensity threshold. A subject entering slowly at the far edge of the
|
|
3911
|
+
* frame can clear the detector's confidence floor BEFORE it clears the
|
|
3912
|
+
* motion floor, making this negative. Negatives are stored as-is and
|
|
3913
|
+
* never clamped — clamping would fabricate the distribution's left tail,
|
|
3914
|
+
* which is the half that says the proxy is unreliable.
|
|
3915
|
+
* 3. *Onboard motion carries firmware latency of unknown, per-model offset*
|
|
3916
|
+
* (hundreds of ms), plus camera-vs-hub clock skew on top. Numbers are
|
|
3917
|
+
* therefore comparable WITHIN a camera and not across cameras of
|
|
3918
|
+
* different motion sources. The motion source is deliberately not copied
|
|
3919
|
+
* here — it belongs to the addon that owns the device (D224) and this is
|
|
3920
|
+
* a write on the frame path — so group by `deviceId`, which is how the
|
|
3921
|
+
* question is always asked anyway.
|
|
3922
|
+
* 4. *Continuous motion.* On a busy scene the burst never closes and the
|
|
3923
|
+
* onset is minutes old. Bounded by {@link MAX_BIRTH_LATENCY_PROXY_MS};
|
|
3924
|
+
* past it this is `null`.
|
|
3925
|
+
* 5. *No motion signal at all* — analyzer off, onboard-only camera not
|
|
3926
|
+
* reporting, or nothing since boot: `null`. Which is the truth about a
|
|
3927
|
+
* camera nobody has a reference instant for.
|
|
3928
|
+
*
|
|
3929
|
+
* So this is a per-camera DISTRIBUTION over index-0 births, and it is honest
|
|
3930
|
+
* as such. It is not a per-track fact and must never be shown as one.
|
|
3931
|
+
*/
|
|
3932
|
+
birthLatencyMs: z.number().int().nullable(),
|
|
3933
|
+
/**
|
|
3934
|
+
* How many births this device has already decided since that motion onset.
|
|
3935
|
+
* 0 = the first, i.e. the only index at which the burst plausibly belongs to
|
|
3936
|
+
* this subject. `null` when there is no usable onset.
|
|
3937
|
+
*/
|
|
3938
|
+
birthIndexInBurst: z.number().int().nullable()
|
|
3939
|
+
});
|
|
3940
|
+
/** Query input for `listBirthDecisions` — newest first, one camera or all. */
|
|
3941
|
+
var BirthDecisionQueryInputSchema = z.object({
|
|
3942
|
+
/** Restrict to a single camera; omit for every row. */
|
|
3943
|
+
deviceId: z.number().int().optional(),
|
|
3944
|
+
/** Only decisions at or after this epoch ms. */
|
|
3945
|
+
since: z.number().int().optional(),
|
|
3946
|
+
/** Restrict to one verdict — the miss rate is read one population at a time. */
|
|
3947
|
+
verdict: BirthDecisionVerdictSchema.optional(),
|
|
3948
|
+
/** Max rows returned, newest-first. */
|
|
3949
|
+
limit: z.number().int().min(1).max(5e3).optional()
|
|
3950
|
+
});
|
|
3800
3951
|
/** One archived note — the operator's words plus enough context to find what
|
|
3801
3952
|
* they were looking at, after the track itself is gone. */
|
|
3802
3953
|
var ArchivedDebugNoteSchema = z.object({
|
|
@@ -19402,6 +19553,26 @@ var pipelineAnalyticsCapability = {
|
|
|
19402
19553
|
*/
|
|
19403
19554
|
listArchivedDebugNotes: method(ArchivedDebugNoteQueryInputSchema, z.array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }),
|
|
19404
19555
|
/**
|
|
19556
|
+
* Birth decisions — one row per resolved confirmation-gate verdict (D409).
|
|
19557
|
+
*
|
|
19558
|
+
* The READ half of a measurement, and only that: it gates nothing and no
|
|
19559
|
+
* runtime path consults it. It exists because the two questions the
|
|
19560
|
+
* operator's "traccia partita in ritardo" marks raised are both multi-day
|
|
19561
|
+
* and `logs.query` holds under an hour of fleet traffic —
|
|
19562
|
+
* • how often is a birth DECIDED on a frame the subject was not observed
|
|
19563
|
+
* in (`decidedOnCoastedFrame`), and did D379's carried pixels make it a
|
|
19564
|
+
* real observation anyway (`decidedByBirthEvidence`);
|
|
19565
|
+
* • how long after the camera's motion onset does a track's `firstSeen`
|
|
19566
|
+
* land (`birthLatencyMs` — read its error bars in
|
|
19567
|
+
* `BirthDecisionRecordSchema` before quoting it).
|
|
19568
|
+
*
|
|
19569
|
+
* Newest-first, capped by `limit` (default
|
|
19570
|
+
* {@link BIRTH_DECISION_DEFAULT_LIMIT}), optionally scoped to one camera,
|
|
19571
|
+
* one verdict, or a `since`. The table is bounded by row count, not age —
|
|
19572
|
+
* see {@link MAX_BIRTH_DECISION_RECORDS}.
|
|
19573
|
+
*/
|
|
19574
|
+
listBirthDecisions: method(BirthDecisionQueryInputSchema, z.array(BirthDecisionRecordSchema).readonly(), { kind: "query" }),
|
|
19575
|
+
/**
|
|
19405
19576
|
* Durable event-store footprint for the management UI: event rows
|
|
19406
19577
|
* (motion + object + audio) counted per camera + total, plus the
|
|
19407
19578
|
* event-owned media bytes on disk per camera + total. Stat/count-based,
|
|
@@ -39238,6 +39409,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
39238
39409
|
addonId: null,
|
|
39239
39410
|
access: "view"
|
|
39240
39411
|
},
|
|
39412
|
+
"pipelineAnalytics.listBirthDecisions": {
|
|
39413
|
+
capName: "pipeline-analytics",
|
|
39414
|
+
capScope: "device",
|
|
39415
|
+
addonId: null,
|
|
39416
|
+
access: "view"
|
|
39417
|
+
},
|
|
39241
39418
|
"pipelineAnalytics.listEventKinds": {
|
|
39242
39419
|
capName: "pipeline-analytics",
|
|
39243
39420
|
capScope: "device",
|
|
@@ -43030,6 +43207,11 @@ Object.freeze({
|
|
|
43030
43207
|
form: "single",
|
|
43031
43208
|
optional: true
|
|
43032
43209
|
}],
|
|
43210
|
+
"pipelineAnalytics.listBirthDecisions": [{
|
|
43211
|
+
name: "deviceId",
|
|
43212
|
+
form: "single",
|
|
43213
|
+
optional: true
|
|
43214
|
+
}],
|
|
43033
43215
|
"pipelineAnalytics.listEventKinds": [{
|
|
43034
43216
|
name: "deviceId",
|
|
43035
43217
|
form: "single",
|
|
@@ -3797,6 +3797,157 @@ function walkField(field, out) {
|
|
|
3797
3797
|
for (const tab of tabs) for (const child of fieldsOf(tab)) walkField(child, out);
|
|
3798
3798
|
}
|
|
3799
3799
|
}
|
|
3800
|
+
/**
|
|
3801
|
+
* What the gate decided about a birth, from the CALLER's point of view.
|
|
3802
|
+
*
|
|
3803
|
+
* Deliberately not `ConfirmationVerdict`: `undecided` is not a birth decision
|
|
3804
|
+
* at all — it is a deferral, and the row is written when the deferral ENDS.
|
|
3805
|
+
* The third member is the one the gate's own type cannot express, because
|
|
3806
|
+
* exhaustion is a property of how long the caller waited.
|
|
3807
|
+
*/
|
|
3808
|
+
var BirthDecisionVerdictSchema = zod.z.enum([
|
|
3809
|
+
"confirmed",
|
|
3810
|
+
"suppressed",
|
|
3811
|
+
"exhausted-fallback"
|
|
3812
|
+
]);
|
|
3813
|
+
/** One birth decision, as it is kept. */
|
|
3814
|
+
var BirthDecisionRecordSchema = zod.z.object({
|
|
3815
|
+
id: zod.z.string(),
|
|
3816
|
+
/** Epoch ms the VERDICT was taken (not the birth instant — see `firstSeen`). */
|
|
3817
|
+
at: zod.z.number().int(),
|
|
3818
|
+
/** The camera. Required: every question here is asked per-camera. */
|
|
3819
|
+
deviceId: zod.z.number().int(),
|
|
3820
|
+
/**
|
|
3821
|
+
* The track the decision was about. PROVENANCE, not ownership — a suppressed
|
|
3822
|
+
* birth has no track at all, and a confirmed one is expected to age out long
|
|
3823
|
+
* before this row does. Named `sourceTrackId` so the retention model's
|
|
3824
|
+
* ownership derivation (`collection-classification.ts`, which keys on a
|
|
3825
|
+
* column literally called `trackId`) cannot reach it.
|
|
3826
|
+
*/
|
|
3827
|
+
sourceTrackId: zod.z.string(),
|
|
3828
|
+
/** The candidate's claimed class. The miss rate is asked per class too. */
|
|
3829
|
+
className: zod.z.string(),
|
|
3830
|
+
verdict: BirthDecisionVerdictSchema,
|
|
3831
|
+
/**
|
|
3832
|
+
* The gate's own `ConfirmationReason` (`confirmed`, `suppressed`,
|
|
3833
|
+
* `native-pass`, `no-crop`, `timeout`, `carried-inconclusive`, …), or `null`
|
|
3834
|
+
* when the gate is DISABLED and every birth is waved through. `null` is not
|
|
3835
|
+
* "unknown": it says the gate took no measurement because it was off, which
|
|
3836
|
+
* is a different population and must never be averaged in with the rest.
|
|
3837
|
+
*/
|
|
3838
|
+
reason: zod.z.string().nullable(),
|
|
3839
|
+
/** Deferral attempts this birth used. 0 = decided on its first look. */
|
|
3840
|
+
attempts: zod.z.number().int(),
|
|
3841
|
+
/** Ms from the FIRST undecided attempt to this verdict. 0 = never deferred. */
|
|
3842
|
+
deferredForMs: zod.z.number().int(),
|
|
3843
|
+
/**
|
|
3844
|
+
* THE COLUMN THE RE-OFFER DEFECT IS COUNTED IN.
|
|
3845
|
+
*
|
|
3846
|
+
* `true` when the frame the verdict was taken on carried no matched
|
|
3847
|
+
* detection for this track — the tracker was coasting a frozen box and the
|
|
3848
|
+
* subject was not observed. The deferred-birth re-offer pulls the candidate
|
|
3849
|
+
* straight out of `result.tracked` without checking, so this is reachable
|
|
3850
|
+
* today; the question is the RATE, per camera, and whether refusing those
|
|
3851
|
+
* frames would have cost real tracks (cross-read against `verdict` and
|
|
3852
|
+
* `decidedByBirthEvidence`).
|
|
3853
|
+
*/
|
|
3854
|
+
decidedOnCoastedFrame: zod.z.boolean(),
|
|
3855
|
+
/** Were D379 birth-instant pixels in hand when this candidate was submitted? */
|
|
3856
|
+
birthEvidenceAvailable: zod.z.boolean(),
|
|
3857
|
+
/**
|
|
3858
|
+
* Did those pixels DECIDE it (`cropSource === 'carried'`)? Available and
|
|
3859
|
+
* deciding are different: the carried crop is confirm-only, so a candidate
|
|
3860
|
+
* can hold evidence, be found inconclusive on it, and be decided by a native
|
|
3861
|
+
* crop of a later instant. A coasted decision backed by carried evidence is
|
|
3862
|
+
* a real observation of the birth instant; one without it is not.
|
|
3863
|
+
*/
|
|
3864
|
+
decidedByBirthEvidence: zod.z.boolean(),
|
|
3865
|
+
/** Best class-compatible crop score, or `null` when nothing compatible was
|
|
3866
|
+
* found — deliberately not 0, which would be a measurement that never was. */
|
|
3867
|
+
bestScore: zod.z.number().nullable(),
|
|
3868
|
+
/** The bar this candidate actually faced (the phantom-cell hook may raise it). */
|
|
3869
|
+
appliedMinConfidence: zod.z.number().nullable(),
|
|
3870
|
+
/**
|
|
3871
|
+
* The track's own `firstSeen` — the candidate's first frame, which is where
|
|
3872
|
+
* the timeline starts. `null` for a suppressed birth, which has no track.
|
|
3873
|
+
*/
|
|
3874
|
+
firstSeen: zod.z.number().int().nullable(),
|
|
3875
|
+
/**
|
|
3876
|
+
* The device's most recent motion RISING EDGE at the moment of the decision,
|
|
3877
|
+
* or `null` when there is none, it is older than
|
|
3878
|
+
* {@link MAX_BIRTH_LATENCY_PROXY_MS}, or this runner never saw one.
|
|
3879
|
+
*/
|
|
3880
|
+
motionOnsetAt: zod.z.number().int().nullable(),
|
|
3881
|
+
/**
|
|
3882
|
+
* `firstSeen − motionOnsetAt` — THE OPERATOR'S COMPLAINT, IN MILLISECONDS,
|
|
3883
|
+
* AND THE WEAKEST NUMBER IN THIS ROW. Read the error bars before quoting it.
|
|
3884
|
+
*
|
|
3885
|
+
* **Why motion onset and not something else.** Two other proxies were
|
|
3886
|
+
* considered and rejected:
|
|
3887
|
+
* - *the recording/pipeline session start*: for a camera on
|
|
3888
|
+
* `detectionMode: 'always'` the session opens at process start, hours
|
|
3889
|
+
* before any subject. It measures nothing.
|
|
3890
|
+
* - *the first detection on the device in this burst*: CIRCULAR. A track's
|
|
3891
|
+
* `firstSeen` IS the first detection of that object, so for the track that
|
|
3892
|
+
* OPENS a burst — the only one the operator is complaining about — the two
|
|
3893
|
+
* are the same instant and the latency is 0 by construction.
|
|
3894
|
+
* Motion onset is the only in-process signal produced by a DIFFERENT
|
|
3895
|
+
* mechanism from the object detector, so it is the only one that can precede
|
|
3896
|
+
* it. It is also already maintained per-device at frame rate on this very
|
|
3897
|
+
* node (`handleMotionAnalysis` / `handleOnboardMotion`), which is what makes
|
|
3898
|
+
* it free — and, decisively, the frame path and the motion path are gated to
|
|
3899
|
+
* the SAME designated post-processing node, so the mirror is never empty for
|
|
3900
|
+
* a camera whose births land here.
|
|
3901
|
+
*
|
|
3902
|
+
* **Error bars, all of them.**
|
|
3903
|
+
* 1. *Motion has no class.* A burst opened by rain, a headlight sweeping a
|
|
3904
|
+
* wall or a branch, and only later joined by the person, OVERSTATES the
|
|
3905
|
+
* latency without bound. Mitigated, never removed, by
|
|
3906
|
+
* {@link BirthDecisionRecord.birthIndexInBurst}: only index 0 is a
|
|
3907
|
+
* candidate for "this burst is this subject", and even then it is a
|
|
3908
|
+
* candidate, not a fact.
|
|
3909
|
+
* 2. *The sign is not guaranteed.* The analyzer needs a pixel-count and
|
|
3910
|
+
* intensity threshold. A subject entering slowly at the far edge of the
|
|
3911
|
+
* frame can clear the detector's confidence floor BEFORE it clears the
|
|
3912
|
+
* motion floor, making this negative. Negatives are stored as-is and
|
|
3913
|
+
* never clamped — clamping would fabricate the distribution's left tail,
|
|
3914
|
+
* which is the half that says the proxy is unreliable.
|
|
3915
|
+
* 3. *Onboard motion carries firmware latency of unknown, per-model offset*
|
|
3916
|
+
* (hundreds of ms), plus camera-vs-hub clock skew on top. Numbers are
|
|
3917
|
+
* therefore comparable WITHIN a camera and not across cameras of
|
|
3918
|
+
* different motion sources. The motion source is deliberately not copied
|
|
3919
|
+
* here — it belongs to the addon that owns the device (D224) and this is
|
|
3920
|
+
* a write on the frame path — so group by `deviceId`, which is how the
|
|
3921
|
+
* question is always asked anyway.
|
|
3922
|
+
* 4. *Continuous motion.* On a busy scene the burst never closes and the
|
|
3923
|
+
* onset is minutes old. Bounded by {@link MAX_BIRTH_LATENCY_PROXY_MS};
|
|
3924
|
+
* past it this is `null`.
|
|
3925
|
+
* 5. *No motion signal at all* — analyzer off, onboard-only camera not
|
|
3926
|
+
* reporting, or nothing since boot: `null`. Which is the truth about a
|
|
3927
|
+
* camera nobody has a reference instant for.
|
|
3928
|
+
*
|
|
3929
|
+
* So this is a per-camera DISTRIBUTION over index-0 births, and it is honest
|
|
3930
|
+
* as such. It is not a per-track fact and must never be shown as one.
|
|
3931
|
+
*/
|
|
3932
|
+
birthLatencyMs: zod.z.number().int().nullable(),
|
|
3933
|
+
/**
|
|
3934
|
+
* How many births this device has already decided since that motion onset.
|
|
3935
|
+
* 0 = the first, i.e. the only index at which the burst plausibly belongs to
|
|
3936
|
+
* this subject. `null` when there is no usable onset.
|
|
3937
|
+
*/
|
|
3938
|
+
birthIndexInBurst: zod.z.number().int().nullable()
|
|
3939
|
+
});
|
|
3940
|
+
/** Query input for `listBirthDecisions` — newest first, one camera or all. */
|
|
3941
|
+
var BirthDecisionQueryInputSchema = zod.z.object({
|
|
3942
|
+
/** Restrict to a single camera; omit for every row. */
|
|
3943
|
+
deviceId: zod.z.number().int().optional(),
|
|
3944
|
+
/** Only decisions at or after this epoch ms. */
|
|
3945
|
+
since: zod.z.number().int().optional(),
|
|
3946
|
+
/** Restrict to one verdict — the miss rate is read one population at a time. */
|
|
3947
|
+
verdict: BirthDecisionVerdictSchema.optional(),
|
|
3948
|
+
/** Max rows returned, newest-first. */
|
|
3949
|
+
limit: zod.z.number().int().min(1).max(5e3).optional()
|
|
3950
|
+
});
|
|
3800
3951
|
/** One archived note — the operator's words plus enough context to find what
|
|
3801
3952
|
* they were looking at, after the track itself is gone. */
|
|
3802
3953
|
var ArchivedDebugNoteSchema = zod.z.object({
|
|
@@ -19402,6 +19553,26 @@ var pipelineAnalyticsCapability = {
|
|
|
19402
19553
|
*/
|
|
19403
19554
|
listArchivedDebugNotes: method(ArchivedDebugNoteQueryInputSchema, zod.z.array(ArchivedDebugNoteSchema).readonly(), { kind: "query" }),
|
|
19404
19555
|
/**
|
|
19556
|
+
* Birth decisions — one row per resolved confirmation-gate verdict (D409).
|
|
19557
|
+
*
|
|
19558
|
+
* The READ half of a measurement, and only that: it gates nothing and no
|
|
19559
|
+
* runtime path consults it. It exists because the two questions the
|
|
19560
|
+
* operator's "traccia partita in ritardo" marks raised are both multi-day
|
|
19561
|
+
* and `logs.query` holds under an hour of fleet traffic —
|
|
19562
|
+
* • how often is a birth DECIDED on a frame the subject was not observed
|
|
19563
|
+
* in (`decidedOnCoastedFrame`), and did D379's carried pixels make it a
|
|
19564
|
+
* real observation anyway (`decidedByBirthEvidence`);
|
|
19565
|
+
* • how long after the camera's motion onset does a track's `firstSeen`
|
|
19566
|
+
* land (`birthLatencyMs` — read its error bars in
|
|
19567
|
+
* `BirthDecisionRecordSchema` before quoting it).
|
|
19568
|
+
*
|
|
19569
|
+
* Newest-first, capped by `limit` (default
|
|
19570
|
+
* {@link BIRTH_DECISION_DEFAULT_LIMIT}), optionally scoped to one camera,
|
|
19571
|
+
* one verdict, or a `since`. The table is bounded by row count, not age —
|
|
19572
|
+
* see {@link MAX_BIRTH_DECISION_RECORDS}.
|
|
19573
|
+
*/
|
|
19574
|
+
listBirthDecisions: method(BirthDecisionQueryInputSchema, zod.z.array(BirthDecisionRecordSchema).readonly(), { kind: "query" }),
|
|
19575
|
+
/**
|
|
19405
19576
|
* Durable event-store footprint for the management UI: event rows
|
|
19406
19577
|
* (motion + object + audio) counted per camera + total, plus the
|
|
19407
19578
|
* event-owned media bytes on disk per camera + total. Stat/count-based,
|
|
@@ -39238,6 +39409,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
|
|
|
39238
39409
|
addonId: null,
|
|
39239
39410
|
access: "view"
|
|
39240
39411
|
},
|
|
39412
|
+
"pipelineAnalytics.listBirthDecisions": {
|
|
39413
|
+
capName: "pipeline-analytics",
|
|
39414
|
+
capScope: "device",
|
|
39415
|
+
addonId: null,
|
|
39416
|
+
access: "view"
|
|
39417
|
+
},
|
|
39241
39418
|
"pipelineAnalytics.listEventKinds": {
|
|
39242
39419
|
capName: "pipeline-analytics",
|
|
39243
39420
|
capScope: "device",
|
|
@@ -43030,6 +43207,11 @@ Object.freeze({
|
|
|
43030
43207
|
form: "single",
|
|
43031
43208
|
optional: true
|
|
43032
43209
|
}],
|
|
43210
|
+
"pipelineAnalytics.listBirthDecisions": [{
|
|
43211
|
+
name: "deviceId",
|
|
43212
|
+
form: "single",
|
|
43213
|
+
optional: true
|
|
43214
|
+
}],
|
|
43033
43215
|
"pipelineAnalytics.listEventKinds": [{
|
|
43034
43216
|
name: "deviceId",
|
|
43035
43217
|
form: "single",
|
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-WLsoGpyn.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-6XcpyI6Q.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";
|