@camstack/system 1.2.211 → 1.2.213

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.
Files changed (51) hide show
  1. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
  2. package/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
  3. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
  4. package/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
  5. package/dist/builtins/alerts/alerts.addon.js +1 -1
  6. package/dist/builtins/alerts/alerts.addon.mjs +1 -1
  7. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +1 -1
  8. package/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +1 -1
  9. package/dist/builtins/console-logging/index.js +1 -1
  10. package/dist/builtins/console-logging/index.mjs +1 -1
  11. package/dist/builtins/core-blocks/core-blocks.addon.js +1 -1
  12. package/dist/builtins/core-blocks/core-blocks.addon.mjs +1 -1
  13. package/dist/builtins/device-manager/device-manager.addon.js +2 -2
  14. package/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
  15. package/dist/builtins/doorbell/virtual-doorbell.addon.js +1 -1
  16. package/dist/builtins/doorbell/virtual-doorbell.addon.mjs +1 -1
  17. package/dist/builtins/hub-forwarder/index.js +1 -1
  18. package/dist/builtins/hub-forwarder/index.mjs +1 -1
  19. package/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
  20. package/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
  21. package/dist/builtins/local-auth/local-auth.addon.js +1 -1
  22. package/dist/builtins/local-auth/local-auth.addon.mjs +1 -1
  23. package/dist/builtins/local-network/local-network.addon.js +1 -1
  24. package/dist/builtins/local-network/local-network.addon.mjs +1 -1
  25. package/dist/builtins/loki-logging/index.js +1 -1
  26. package/dist/builtins/loki-logging/index.mjs +1 -1
  27. package/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
  28. package/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
  29. package/dist/builtins/platform-probe/index.js +1 -1
  30. package/dist/builtins/platform-probe/index.mjs +1 -1
  31. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
  32. package/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
  33. package/dist/builtins/snapshot/index.js +1 -1
  34. package/dist/builtins/snapshot/index.mjs +1 -1
  35. package/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
  36. package/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
  37. package/dist/builtins/sqlite-storage/sqlite-settings.addon.js +0 -0
  38. package/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +0 -0
  39. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
  40. package/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
  41. package/dist/builtins/system-config/system-config.addon.js +1 -1
  42. package/dist/builtins/system-config/system-config.addon.mjs +1 -1
  43. package/dist/builtins/winston-logging/index.js +1 -1
  44. package/dist/builtins/winston-logging/index.mjs +1 -1
  45. package/dist/{dist-C5xJy-uL.js → dist-9GQQ9F3s.js} +224 -1
  46. package/dist/{dist-Cnelbn_Z.mjs → dist-uZj-Z5uc.mjs} +224 -1
  47. package/dist/index.js +1 -1
  48. package/dist/index.mjs +1 -1
  49. package/dist/{retired-settings-keys-CIuDeUQo.mjs → retired-settings-keys-BX0zIks4.mjs} +1 -1
  50. package/dist/{retired-settings-keys-CONISA8J.js → retired-settings-keys-DfdSH46H.js} +1 -1
  51. 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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
1
+ import { Jt as BaseAddon, bn as EventCategory, k as addonPagesCapability, qt as errMsg } from "../../dist-uZj-Z5uc.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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
1
+ import { Jt as BaseAddon, bn as EventCategory, j as addonWidgetsCapability, qt as errMsg } from "../../dist-uZj-Z5uc.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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
1
+ import { Jt as BaseAddon, M as alertsCapability, bn as EventCategory, n as AlertSchema, qt as errMsg, sn as createEvent } from "../../dist-uZj-Z5uc.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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
1
+ import { Bt as storageOccupancyCapability, Jt as BaseAddon, P as backupCapability, bn as EventCategory, yt as mayWriteToLocation } from "../../dist-uZj-Z5uc.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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
1
+ import { Jt as BaseAddon, ht as logDestinationCapability } from "../../dist-uZj-Z5uc.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-C5xJy-uL.js");
3
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
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-uZj-Z5uc.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-C5xJy-uL.js");
7
- const require_retired_settings_keys = require("../../retired-settings-keys-CONISA8J.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.js");
7
+ const require_retired_settings_keys = require("../../retired-settings-keys-DfdSH46H.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-Cnelbn_Z.mjs";
2
- import { n as purgeRetiredSettingsRows } from "../../retired-settings-keys-CIuDeUQo.mjs";
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-uZj-Z5uc.mjs";
2
+ import { n as purgeRetiredSettingsRows } from "../../retired-settings-keys-BX0zIks4.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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
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-uZj-Z5uc.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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
1
+ import { Jt as BaseAddon, ht as logDestinationCapability } from "../../dist-uZj-Z5uc.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-C5xJy-uL.js");
3
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
1
+ import { Jt as BaseAddon, bn as EventCategory, qt as errMsg, sn as createEvent, v as RecordingStatusSchema } from "../../dist-uZj-Z5uc.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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
2
+ import { C as ScopedTokenSchema, Jt as BaseAddon, N as authProviderCapability, O as UserRecordSchema, Ut as userManagementCapability, r as ApiKeyRecordSchema } from "../../dist-uZj-Z5uc.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-C5xJy-uL.js");
3
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
1
+ import { Jt as BaseAddon, bn as EventCategory, mt as localNetworkCapability } from "../../dist-uZj-Z5uc.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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
1
+ import { Jt as BaseAddon, ht as logDestinationCapability } from "../../dist-uZj-Z5uc.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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
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-uZj-Z5uc.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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.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-uZj-Z5uc.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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
1
+ import { Jt as BaseAddon, bn as EventCategory } from "../../dist-uZj-Z5uc.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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
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-uZj-Z5uc.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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
1
+ import { Jt as BaseAddon, Vt as storageProviderCapability, tt as filesystemBrowseCapability } from "../../dist-uZj-Z5uc.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";
@@ -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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
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-uZj-Z5uc.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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
1
+ import { Jt as BaseAddon, dn as hydrateSchema, qt as errMsg } from "../../dist-uZj-Z5uc.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-C5xJy-uL.js");
6
+ const require_dist = require("../../dist-9GQQ9F3s.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-Cnelbn_Z.mjs";
1
+ import { Jt as BaseAddon, ht as logDestinationCapability } from "../../dist-uZj-Z5uc.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 = 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,
@@ -20183,6 +20354,22 @@ var occupancyRecheckFramesField = {
20183
20354
  step: 1
20184
20355
  };
20185
20356
  /**
20357
+ * Frames one PRE-ROLL catch-up burst may send to inference at session open.
20358
+ *
20359
+ * The default of 12 over a ~4 s retained window is one frame per ~333 ms of
20360
+ * footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
20361
+ * fleet measures — one-shot, and only ever taken while a permit would still be
20362
+ * spare for live. `0` turns the burst off entirely (the history is still
20363
+ * decoded, because that is how the dial reaches a decodable GOP, and is then
20364
+ * discarded — the pre-D411 behaviour).
20365
+ */
20366
+ var preRollInferenceFramesField = {
20367
+ min: 0,
20368
+ max: 30,
20369
+ default: 12,
20370
+ step: 1
20371
+ };
20372
+ /**
20186
20373
  * Source enum for motion signals fed to the runner. Extensible — add
20187
20374
  * new variants here when new motion-trigger paths are wired in
20188
20375
  * (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
@@ -20423,6 +20610,31 @@ var RunnerCameraConfigSchema = zod.z.object({
20423
20610
  * to every occupancy rule until something moved in front of it. The churn is
20424
20611
  * now paid on the interval instead — see `occupancyRecheckSecField`.
20425
20612
  */
20613
+ /**
20614
+ * Infer the session's PRE-ROLL — the retained history the restreamer replays
20615
+ * at session open — instead of decoding it and throwing it away.
20616
+ *
20617
+ * DEFAULT `true`, and the default is the argument. This is not a new
20618
+ * capability being offered cautiously: the pre-roll is ALREADY requested,
20619
+ * already served, already decoded and already paid for on every on-motion
20620
+ * detection session that asks for history. What shipped was a last-moment
20621
+ * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
20622
+ * arriving inside a few hundred ms of wall clock looks to it like one frame's
20623
+ * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
20624
+ * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
20625
+ * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
20626
+ * was decoded, and was freed.
20627
+ *
20628
+ * Shipping that as opt-in would ship the bug: an operator cannot discover a
20629
+ * setting whose absence looks exactly like a camera that noticed the cyclist
20630
+ * late. What makes ON safe is not a switch but the BOUND —
20631
+ * `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
20632
+ * the last inference permit — so the switch exists for the camera where the
20633
+ * history is worthless (a doorbell whose subject is always already at the
20634
+ * door), not as a hedge against the feature.
20635
+ */
20636
+ preRollInferenceEnabled: zod.z.boolean().default(true),
20637
+ preRollInferenceFrames: zod.z.number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
20426
20638
  occupancyRecheckEnabled: zod.z.boolean().default(true),
20427
20639
  occupancyRecheckSec: zod.z.number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
20428
20640
  occupancyRecheckFrames: zod.z.number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
@@ -20451,7 +20663,7 @@ var RunnerCameraConfigSchema = zod.z.object({
20451
20663
  */
20452
20664
  inferenceDevices: zod.z.array(RunnerInferenceDeviceSchema).readonly().optional()
20453
20665
  });
20454
- motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
20666
+ motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, preRollInferenceFramesField.min, preRollInferenceFramesField.max, preRollInferenceFramesField.step, preRollInferenceFramesField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
20455
20667
  /**
20456
20668
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20457
20669
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -39238,6 +39450,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
39238
39450
  addonId: null,
39239
39451
  access: "view"
39240
39452
  },
39453
+ "pipelineAnalytics.listBirthDecisions": {
39454
+ capName: "pipeline-analytics",
39455
+ capScope: "device",
39456
+ addonId: null,
39457
+ access: "view"
39458
+ },
39241
39459
  "pipelineAnalytics.listEventKinds": {
39242
39460
  capName: "pipeline-analytics",
39243
39461
  capScope: "device",
@@ -43030,6 +43248,11 @@ Object.freeze({
43030
43248
  form: "single",
43031
43249
  optional: true
43032
43250
  }],
43251
+ "pipelineAnalytics.listBirthDecisions": [{
43252
+ name: "deviceId",
43253
+ form: "single",
43254
+ optional: true
43255
+ }],
43033
43256
  "pipelineAnalytics.listEventKinds": [{
43034
43257
  name: "deviceId",
43035
43258
  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 = 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,
@@ -20183,6 +20354,22 @@ var occupancyRecheckFramesField = {
20183
20354
  step: 1
20184
20355
  };
20185
20356
  /**
20357
+ * Frames one PRE-ROLL catch-up burst may send to inference at session open.
20358
+ *
20359
+ * The default of 12 over a ~4 s retained window is one frame per ~333 ms of
20360
+ * footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
20361
+ * fleet measures — one-shot, and only ever taken while a permit would still be
20362
+ * spare for live. `0` turns the burst off entirely (the history is still
20363
+ * decoded, because that is how the dial reaches a decodable GOP, and is then
20364
+ * discarded — the pre-D411 behaviour).
20365
+ */
20366
+ var preRollInferenceFramesField = {
20367
+ min: 0,
20368
+ max: 30,
20369
+ default: 12,
20370
+ step: 1
20371
+ };
20372
+ /**
20186
20373
  * Source enum for motion signals fed to the runner. Extensible — add
20187
20374
  * new variants here when new motion-trigger paths are wired in
20188
20375
  * (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
@@ -20423,6 +20610,31 @@ var RunnerCameraConfigSchema = z.object({
20423
20610
  * to every occupancy rule until something moved in front of it. The churn is
20424
20611
  * now paid on the interval instead — see `occupancyRecheckSecField`.
20425
20612
  */
20613
+ /**
20614
+ * Infer the session's PRE-ROLL — the retained history the restreamer replays
20615
+ * at session open — instead of decoding it and throwing it away.
20616
+ *
20617
+ * DEFAULT `true`, and the default is the argument. This is not a new
20618
+ * capability being offered cautiously: the pre-roll is ALREADY requested,
20619
+ * already served, already decoded and already paid for on every on-motion
20620
+ * detection session that asks for history. What shipped was a last-moment
20621
+ * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
20622
+ * arriving inside a few hundred ms of wall clock looks to it like one frame's
20623
+ * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
20624
+ * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
20625
+ * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
20626
+ * was decoded, and was freed.
20627
+ *
20628
+ * Shipping that as opt-in would ship the bug: an operator cannot discover a
20629
+ * setting whose absence looks exactly like a camera that noticed the cyclist
20630
+ * late. What makes ON safe is not a switch but the BOUND —
20631
+ * `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
20632
+ * the last inference permit — so the switch exists for the camera where the
20633
+ * history is worthless (a doorbell whose subject is always already at the
20634
+ * door), not as a hedge against the feature.
20635
+ */
20636
+ preRollInferenceEnabled: z.boolean().default(true),
20637
+ preRollInferenceFrames: z.number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
20426
20638
  occupancyRecheckEnabled: z.boolean().default(true),
20427
20639
  occupancyRecheckSec: z.number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
20428
20640
  occupancyRecheckFrames: z.number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
@@ -20451,7 +20663,7 @@ var RunnerCameraConfigSchema = z.object({
20451
20663
  */
20452
20664
  inferenceDevices: z.array(RunnerInferenceDeviceSchema).readonly().optional()
20453
20665
  });
20454
- motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
20666
+ motionFpsField.min, motionFpsField.max, motionFpsField.step, motionFpsField.default, detectionFpsField.min, detectionFpsField.max, detectionFpsField.step, detectionFpsField.default, motionCooldownMsField.min, motionCooldownMsField.max, motionCooldownMsField.step, motionCooldownMsField.default, maxSessionHoldMsField.min, maxSessionHoldMsField.max, maxSessionHoldMsField.step, maxSessionHoldMsField.default, audioMotionWindowMsField.min, audioMotionWindowMsField.max, audioMotionWindowMsField.step, audioMotionWindowMsField.default, preRollInferenceFramesField.min, preRollInferenceFramesField.max, preRollInferenceFramesField.step, preRollInferenceFramesField.default, occupancyRecheckSecField.min, occupancyRecheckSecField.max, occupancyRecheckSecField.step, occupancyRecheckSecField.default, occupancyRecheckFramesField.min, occupancyRecheckFramesField.max, occupancyRecheckFramesField.step, occupancyRecheckFramesField.default;
20455
20667
  /**
20456
20668
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20457
20669
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -39238,6 +39450,12 @@ var METHOD_ACCESS_MAP = Object.freeze({
39238
39450
  addonId: null,
39239
39451
  access: "view"
39240
39452
  },
39453
+ "pipelineAnalytics.listBirthDecisions": {
39454
+ capName: "pipeline-analytics",
39455
+ capScope: "device",
39456
+ addonId: null,
39457
+ access: "view"
39458
+ },
39241
39459
  "pipelineAnalytics.listEventKinds": {
39242
39460
  capName: "pipeline-analytics",
39243
39461
  capScope: "device",
@@ -43030,6 +43248,11 @@ Object.freeze({
43030
43248
  form: "single",
43031
43249
  optional: true
43032
43250
  }],
43251
+ "pipelineAnalytics.listBirthDecisions": [{
43252
+ name: "deviceId",
43253
+ form: "single",
43254
+ optional: true
43255
+ }],
43033
43256
  "pipelineAnalytics.listEventKinds": [{
43034
43257
  name: "deviceId",
43035
43258
  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-C5xJy-uL.js");
3
+ const require_dist = require("./dist-9GQQ9F3s.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-Cnelbn_Z.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-uZj-Z5uc.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";
@@ -1,4 +1,4 @@
1
- import { in as asJsonObject } from "./dist-Cnelbn_Z.mjs";
1
+ import { in as asJsonObject } from "./dist-uZj-Z5uc.mjs";
2
2
  //#region src/builtins/sqlite-storage/retired-settings-keys.ts
3
3
  /**
4
4
  * Is THIS node the one whose settings store is the cluster's authority?
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-C5xJy-uL.js");
1
+ const require_dist = require("./dist-9GQQ9F3s.js");
2
2
  //#region src/builtins/sqlite-storage/retired-settings-keys.ts
3
3
  /**
4
4
  * Is THIS node the one whose settings store is the cluster's authority?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/system",
3
- "version": "1.2.211",
3
+ "version": "1.2.213",
4
4
  "description": "Core addon for CamStack — builtins, pipeline, process management, auth, logging, events",
5
5
  "keywords": [
6
6
  "camstack",