@camstack/addon-pipeline 1.2.215 → 1.2.218

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 (125) hide show
  1. package/dist/audio-analyzer/index.js +2 -2
  2. package/dist/audio-analyzer/index.mjs +2 -2
  3. package/dist/{default-detection-model-C2vYSX3O.mjs → default-detection-model-AJyhoTLF.mjs} +1 -1
  4. package/dist/{default-detection-model-f0PImZnh.js → default-detection-model-Bf45EQ98.js} +1 -1
  5. package/dist/detection-pipeline/index.js +5 -5
  6. package/dist/detection-pipeline/index.mjs +4 -4
  7. package/dist/{dist-DoHcimdu.js → dist-BbvtiBNc.js} +278 -20
  8. package/dist/{dist-DttqKvsQ.mjs → dist-Dl6GntEh.mjs} +278 -20
  9. package/dist/{lazy-sharp-BeeQGCUu.js → lazy-sharp-L9Lcr62v.js} +1 -1
  10. package/dist/motion-wasm/index.js +2 -2
  11. package/dist/motion-wasm/index.mjs +1 -1
  12. package/dist/{node-NtM7__8q.mjs → node-CEyw52D2.mjs} +1 -1
  13. package/dist/{node-6uF72wri.js → node-CbCVHEvJ.js} +1 -1
  14. package/dist/pipeline-runner/index.js +546 -25
  15. package/dist/pipeline-runner/index.mjs +545 -24
  16. package/dist/{process-memory-BRdyl5fE.js → process-memory-DBxdiCSF.js} +1 -1
  17. package/dist/{process-memory-CddpCDWL.mjs → process-memory-Du00R6-e.mjs} +1 -1
  18. package/dist/recorder/index.js +238 -52
  19. package/dist/recorder/index.mjs +238 -52
  20. package/dist/{segment-demux-js-CsFtPVzH.mjs → segment-demux-js-B278aBtB.mjs} +1 -1
  21. package/dist/{segment-demux-js-CkJPdyDH.js → segment-demux-js-D7bjzY8M.js} +1 -1
  22. package/dist/session-decode/decode-worker-child.js +58 -45
  23. package/dist/session-decode/decode-worker-child.mjs +57 -44
  24. package/dist/stream-broker/_stub.js +2 -2
  25. package/dist/stream-broker/{_virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-ZIja2AOe.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_stream_broker_widgets-BnmbfnAd.mjs} +3 -3
  26. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-yJ2CyixO.mjs +26 -0
  27. package/dist/stream-broker/{_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-Uxkwkgy5.mjs → _virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DICVQkNi.mjs} +1 -1
  28. package/dist/stream-broker/demux-worker-child.js +1 -1
  29. package/dist/stream-broker/demux-worker-child.mjs +1 -1
  30. package/dist/stream-broker/{hostInit-DpatMS4g.mjs → hostInit-MIKQqs86.mjs} +3 -3
  31. package/dist/stream-broker/index.js +20 -21
  32. package/dist/stream-broker/index.mjs +20 -21
  33. package/dist/stream-broker/remoteEntry.js +1 -1
  34. package/dist/{worker-protocol-BKwkLZWT.mjs → worker-protocol-BEbD5adq.mjs} +1 -1
  35. package/dist/{worker-protocol-BWO2WNjw.js → worker-protocol-C4rh5uiS.js} +1 -1
  36. package/package.json +1 -1
  37. package/python/__pycache__/inference_pool.cpython-312.pyc +0 -0
  38. package/python/__pycache__/inference_pool.cpython-313.pyc +0 -0
  39. package/python/__pycache__/inference_pool.cpython-314.pyc +0 -0
  40. package/python/__pycache__/test_inference_pool_backpressure.cpython-312-pytest-9.1.1.pyc +0 -0
  41. package/python/__pycache__/test_inference_pool_backpressure.cpython-312.pyc +0 -0
  42. package/python/__pycache__/test_inference_pool_backpressure.cpython-314.pyc +0 -0
  43. package/python/__pycache__/test_inference_pool_coreml_cache.cpython-312-pytest-9.1.1.pyc +0 -0
  44. package/python/__pycache__/test_inference_pool_coreml_cache.cpython-312.pyc +0 -0
  45. package/python/__pycache__/test_inference_pool_coreml_cache.cpython-314.pyc +0 -0
  46. package/python/__pycache__/test_inference_pool_deadline.cpython-314.pyc +0 -0
  47. package/python/__pycache__/test_inference_pool_device_selection.cpython-312-pytest-9.1.1.pyc +0 -0
  48. package/python/__pycache__/test_inference_pool_device_selection.cpython-312.pyc +0 -0
  49. package/python/__pycache__/test_inference_pool_device_selection.cpython-314.pyc +0 -0
  50. package/python/__pycache__/test_inference_pool_layout.cpython-312-pytest-9.1.1.pyc +0 -0
  51. package/python/__pycache__/test_inference_pool_layout.cpython-314.pyc +0 -0
  52. package/python/__pycache__/test_inference_pool_memstats.cpython-312-pytest-9.1.1.pyc +0 -0
  53. package/python/__pycache__/test_inference_pool_memstats.cpython-312.pyc +0 -0
  54. package/python/__pycache__/test_inference_pool_memstats.cpython-314.pyc +0 -0
  55. package/python/__pycache__/test_inference_pool_ov_ppp.cpython-312-pytest-9.1.1.pyc +0 -0
  56. package/python/__pycache__/test_inference_pool_ov_ppp.cpython-312.pyc +0 -0
  57. package/python/__pycache__/test_inference_pool_ov_ppp.cpython-314.pyc +0 -0
  58. package/python/__pycache__/test_inference_pool_preprocess.cpython-312-pytest-9.1.1.pyc +0 -0
  59. package/python/__pycache__/test_inference_pool_preprocess.cpython-314.pyc +0 -0
  60. package/python/__pycache__/test_inference_pool_reconfigure.cpython-314.pyc +0 -0
  61. package/python/__pycache__/test_inference_pool_static_batch.cpython-312-pytest-9.1.1.pyc +0 -0
  62. package/python/__pycache__/test_inference_pool_static_batch.cpython-312.pyc +0 -0
  63. package/python/__pycache__/test_inference_pool_static_batch.cpython-314.pyc +0 -0
  64. package/python/__pycache__/yamnet_audio.cpython-314.pyc +0 -0
  65. package/python/postprocessors/__pycache__/__init__.cpython-312.pyc +0 -0
  66. package/python/postprocessors/__pycache__/__init__.cpython-313.pyc +0 -0
  67. package/python/postprocessors/__pycache__/__init__.cpython-314.pyc +0 -0
  68. package/python/postprocessors/__pycache__/_safety.cpython-313.pyc +0 -0
  69. package/python/postprocessors/__pycache__/arcface.cpython-312.pyc +0 -0
  70. package/python/postprocessors/__pycache__/arcface.cpython-313.pyc +0 -0
  71. package/python/postprocessors/__pycache__/arcface.cpython-314.pyc +0 -0
  72. package/python/postprocessors/__pycache__/clip.cpython-312.pyc +0 -0
  73. package/python/postprocessors/__pycache__/clip.cpython-313.pyc +0 -0
  74. package/python/postprocessors/__pycache__/clip.cpython-314.pyc +0 -0
  75. package/python/postprocessors/__pycache__/ctc.cpython-312.pyc +0 -0
  76. package/python/postprocessors/__pycache__/ctc.cpython-313.pyc +0 -0
  77. package/python/postprocessors/__pycache__/ctc.cpython-314.pyc +0 -0
  78. package/python/postprocessors/__pycache__/plate_slots.cpython-312.pyc +0 -0
  79. package/python/postprocessors/__pycache__/plate_slots.cpython-314.pyc +0 -0
  80. package/python/postprocessors/__pycache__/rfdetr.cpython-312.pyc +0 -0
  81. package/python/postprocessors/__pycache__/rfdetr.cpython-314.pyc +0 -0
  82. package/python/postprocessors/__pycache__/saliency.cpython-312.pyc +0 -0
  83. package/python/postprocessors/__pycache__/saliency.cpython-313.pyc +0 -0
  84. package/python/postprocessors/__pycache__/saliency.cpython-314.pyc +0 -0
  85. package/python/postprocessors/__pycache__/scrfd.cpython-312.pyc +0 -0
  86. package/python/postprocessors/__pycache__/scrfd.cpython-313.pyc +0 -0
  87. package/python/postprocessors/__pycache__/scrfd.cpython-314.pyc +0 -0
  88. package/python/postprocessors/__pycache__/softmax.cpython-312.pyc +0 -0
  89. package/python/postprocessors/__pycache__/softmax.cpython-313.pyc +0 -0
  90. package/python/postprocessors/__pycache__/softmax.cpython-314.pyc +0 -0
  91. package/python/postprocessors/__pycache__/ssd.cpython-312.pyc +0 -0
  92. package/python/postprocessors/__pycache__/ssd.cpython-313.pyc +0 -0
  93. package/python/postprocessors/__pycache__/ssd.cpython-314.pyc +0 -0
  94. package/python/postprocessors/__pycache__/test_clip.cpython-312-pytest-9.1.1.pyc +0 -0
  95. package/python/postprocessors/__pycache__/test_clip.cpython-313-pytest-9.1.1.pyc +0 -0
  96. package/python/postprocessors/__pycache__/test_ctc.cpython-312-pytest-9.1.1.pyc +0 -0
  97. package/python/postprocessors/__pycache__/test_ctc.cpython-312.pyc +0 -0
  98. package/python/postprocessors/__pycache__/test_ctc.cpython-313-pytest-9.1.1.pyc +0 -0
  99. package/python/postprocessors/__pycache__/test_ctc.cpython-313.pyc +0 -0
  100. package/python/postprocessors/__pycache__/test_ctc.cpython-314.pyc +0 -0
  101. package/python/postprocessors/__pycache__/test_plate_slots.cpython-312-pytest-9.1.1.pyc +0 -0
  102. package/python/postprocessors/__pycache__/test_rfdetr.cpython-312-pytest-9.1.1.pyc +0 -0
  103. package/python/postprocessors/__pycache__/test_rfdetr.cpython-314.pyc +0 -0
  104. package/python/postprocessors/__pycache__/test_saliency.cpython-312-pytest-9.1.1.pyc +0 -0
  105. package/python/postprocessors/__pycache__/test_saliency.cpython-313-pytest-9.1.1.pyc +0 -0
  106. package/python/postprocessors/__pycache__/test_saliency.cpython-314.pyc +0 -0
  107. package/python/postprocessors/__pycache__/test_softmax.cpython-312-pytest-9.1.1.pyc +0 -0
  108. package/python/postprocessors/__pycache__/test_softmax.cpython-314.pyc +0 -0
  109. package/python/postprocessors/__pycache__/test_yolo_nms.cpython-312-pytest-9.1.1.pyc +0 -0
  110. package/python/postprocessors/__pycache__/test_yolo_nms.cpython-314.pyc +0 -0
  111. package/python/postprocessors/__pycache__/test_yolo_nms.cpython-39.pyc +0 -0
  112. package/python/postprocessors/__pycache__/test_yolonas.cpython-312-pytest-9.1.1.pyc +0 -0
  113. package/python/postprocessors/__pycache__/yamnet.cpython-312.pyc +0 -0
  114. package/python/postprocessors/__pycache__/yamnet.cpython-313.pyc +0 -0
  115. package/python/postprocessors/__pycache__/yamnet.cpython-314.pyc +0 -0
  116. package/python/postprocessors/__pycache__/yolo.cpython-312.pyc +0 -0
  117. package/python/postprocessors/__pycache__/yolo.cpython-313.pyc +0 -0
  118. package/python/postprocessors/__pycache__/yolo.cpython-314.pyc +0 -0
  119. package/python/postprocessors/__pycache__/yolo.cpython-39.pyc +0 -0
  120. package/python/postprocessors/__pycache__/yolo_seg.cpython-312.pyc +0 -0
  121. package/python/postprocessors/__pycache__/yolo_seg.cpython-313.pyc +0 -0
  122. package/python/postprocessors/__pycache__/yolo_seg.cpython-314.pyc +0 -0
  123. package/python/postprocessors/__pycache__/yolonas.cpython-312.pyc +0 -0
  124. package/python/postprocessors/__pycache__/yolonas.cpython-314.pyc +0 -0
  125. package/dist/stream-broker/_virtual_mf___mfe_internal__addon_stream_broker_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-0MF-KL1v.mjs +0 -26
@@ -2,8 +2,8 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-DoHcimdu.js");
6
- const require_process_memory = require("../process-memory-BRdyl5fE.js");
5
+ const require_dist = require("../dist-BbvtiBNc.js");
6
+ const require_process_memory = require("../process-memory-DBxdiCSF.js");
7
7
  let node_fs = require("node:fs");
8
8
  node_fs = require_dist.__toESM(node_fs);
9
9
  let node_path = require("node:path");
@@ -1,6 +1,6 @@
1
1
  import { n as __require } from "../chunk-DnnnRqeS.mjs";
2
- import { Dt as resolvePoolMemoryPolicy, It as errMsg, Jt as hydrateSchema, M as audioAnalyzerCapability, S as PoolMemoryWatchdog, Ut as BaseAddon, j as audioAnalysisCapability, n as AUDIO_BACKEND_CHOICES, ot as mapAudioLabelToMacro, s as DEFAULT_AUDIO_ANALYZER_CONFIG, v as HF_BASE_URL } from "../dist-DttqKvsQ.mjs";
3
- import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-CddpCDWL.mjs";
2
+ import { Dt as resolvePoolMemoryPolicy, It as errMsg, Jt as hydrateSchema, M as audioAnalyzerCapability, S as PoolMemoryWatchdog, Ut as BaseAddon, j as audioAnalysisCapability, n as AUDIO_BACKEND_CHOICES, ot as mapAudioLabelToMacro, s as DEFAULT_AUDIO_ANALYZER_CONFIG, v as HF_BASE_URL } from "../dist-Dl6GntEh.mjs";
3
+ import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-Du00R6-e.mjs";
4
4
  import * as fs from "node:fs";
5
5
  import * as path$1 from "node:path";
6
6
  import { downloadFile } from "@camstack/system/addon-utils";
@@ -1,4 +1,4 @@
1
- import { N as audioKindId, a as COCO_80_LABELS, o as COCO_TO_MACRO, r as AUDIO_MACRO_LABELS, tt as hfModelUrl } from "./dist-DttqKvsQ.mjs";
1
+ import { N as audioKindId, a as COCO_80_LABELS, o as COCO_TO_MACRO, r as AUDIO_MACRO_LABELS, tt as hfModelUrl } from "./dist-Dl6GntEh.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  //#region src/detection-pipeline/pipeline/landmark-precision-gate.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- const require_dist = require("./dist-DoHcimdu.js");
1
+ const require_dist = require("./dist-BbvtiBNc.js");
2
2
  let node_crypto = require("node:crypto");
3
3
  //#region src/detection-pipeline/pipeline/landmark-precision-gate.ts
4
4
  /**
@@ -2,11 +2,11 @@ Object.defineProperties(exports, {
2
2
  __esModule: { value: true },
3
3
  [Symbol.toStringTag]: { value: "Module" }
4
4
  });
5
- const require_dist = require("../dist-DoHcimdu.js");
6
- const require_node = require("../node-6uF72wri.js");
7
- const require_default_detection_model = require("../default-detection-model-f0PImZnh.js");
8
- const require_lazy_sharp = require("../lazy-sharp-BeeQGCUu.js");
9
- const require_process_memory = require("../process-memory-BRdyl5fE.js");
5
+ const require_dist = require("../dist-BbvtiBNc.js");
6
+ const require_node = require("../node-CbCVHEvJ.js");
7
+ const require_default_detection_model = require("../default-detection-model-Bf45EQ98.js");
8
+ const require_lazy_sharp = require("../lazy-sharp-L9Lcr62v.js");
9
+ const require_process_memory = require("../process-memory-DBxdiCSF.js");
10
10
  let node_os = require("node:os");
11
11
  node_os = require_dist.__toESM(node_os);
12
12
  let node_fs = require("node:fs");
@@ -1,9 +1,9 @@
1
1
  import { n as __require } from "../chunk-DnnnRqeS.mjs";
2
- import { $t as parseJsonUnknown, B as defaultDeviceFor$1, Dt as resolvePoolMemoryPolicy, G as detectionPipelineCapability, It as errMsg, J as enumerateInferenceDevices, Jt as hydrateSchema, Pt as supportedRuntimes$1, Qt as nodePin, S as PoolMemoryWatchdog, Ut as BaseAddon, X as evaluateZoneRules, c as DEFAULT_CLUSTER_STEP_MODELS, gt as pickClusterStepSettings, hn as EventCategory, ht as pickClusterStepModels, in as array, it as loadContributionCapability, k as YAMNET_TO_MACRO, kt as runtimeDevices$1, l as DEFAULT_CLUSTER_STEP_SETTINGS, m as DEVICE_BACKEND_TO_FORMAT, mn as union, nn as sleep, nt as inferModelProvider, pn as string, pt as overlayClusterStepSettings, qt as createEvent, t as APPLE_SA_TO_MACRO, un as object, wt as resolveClusterStepModelId, yt as pipelineExecutorCapability } from "../dist-DttqKvsQ.mjs";
3
- import { o as readProcessCost } from "../node-NtM7__8q.mjs";
4
- import { a as ALL_PIPELINE_STEPS, c as getStep, d as landmarkPrecisionVerdict, l as getStepDefinition, n as resolveDefaultDetectionModel, o as ALL_STEPS, r as localFrameRegistry, s as getDefaultModelForFormat, u as resolveModelForFormat } from "../default-detection-model-C2vYSX3O.mjs";
2
+ import { $t as parseJsonUnknown, B as defaultDeviceFor$1, Dt as resolvePoolMemoryPolicy, G as detectionPipelineCapability, It as errMsg, J as enumerateInferenceDevices, Jt as hydrateSchema, Pt as supportedRuntimes$1, Qt as nodePin, S as PoolMemoryWatchdog, Ut as BaseAddon, X as evaluateZoneRules, c as DEFAULT_CLUSTER_STEP_MODELS, gt as pickClusterStepSettings, hn as EventCategory, ht as pickClusterStepModels, in as array, it as loadContributionCapability, k as YAMNET_TO_MACRO, kt as runtimeDevices$1, l as DEFAULT_CLUSTER_STEP_SETTINGS, m as DEVICE_BACKEND_TO_FORMAT, mn as union, nn as sleep, nt as inferModelProvider, pn as string, pt as overlayClusterStepSettings, qt as createEvent, t as APPLE_SA_TO_MACRO, un as object, wt as resolveClusterStepModelId, yt as pipelineExecutorCapability } from "../dist-Dl6GntEh.mjs";
3
+ import { o as readProcessCost } from "../node-CEyw52D2.mjs";
4
+ import { a as ALL_PIPELINE_STEPS, c as getStep, d as landmarkPrecisionVerdict, l as getStepDefinition, n as resolveDefaultDetectionModel, o as ALL_STEPS, r as localFrameRegistry, s as getDefaultModelForFormat, u as resolveModelForFormat } from "../default-detection-model-AJyhoTLF.mjs";
5
5
  import { t as getSharp } from "../lazy-sharp-DXsqwpph.mjs";
6
- import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-CddpCDWL.mjs";
6
+ import { n as pickNodePlatformArch, t as readProcessMemory } from "../process-memory-Du00R6-e.mjs";
7
7
  import * as os from "node:os";
8
8
  import * as fs from "node:fs";
9
9
  import * as path$1 from "node:path";
@@ -22,7 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  }) : target, mod));
23
23
  //#endregion
24
24
  let node_crypto = require("node:crypto");
25
- //#region ../types/dist/event-category-CnLqLOKs.mjs
25
+ //#region ../types/dist/event-category-DAXzJeTX.mjs
26
26
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
27
27
  EventCategory["SystemBoot"] = "system.boot";
28
28
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -614,7 +614,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
614
614
  * issue. Payload `PipelineAnalyticsPlateGalleryChangedPayload`.
615
615
  */
616
616
  EventCategory["PipelineAnalyticsPlateGalleryChanged"] = "pipeline-analytics.plate-gallery-changed";
617
- EventCategory["FrigateLiveEvent"] = "frigate.live-event";
618
617
  EventCategory["CameraStreamsProfileSlotsChanged"] = "camera-streams.onProfileSlotsChanged";
619
618
  /**
620
619
  * Stream-broker health watchdog. Per-broker (deviceId/profile) emission.
@@ -14679,7 +14678,7 @@ var detectionPipelineCapability = {
14679
14678
  var SourceInfoSchema = object({
14680
14679
  /** Live dispatch key — mutable when the source system allows rename. */
14681
14680
  id: string(),
14682
- /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'frigate'. */
14681
+ /** Source system tag — e.g. 'homeassistant' | 'reolink' | 'onvif'. */
14683
14682
  system: string(),
14684
14683
  /** Immutable upstream identifier when available (HA `unique_id`, … ).
14685
14684
  * Used to detect rename when `id` changes. */
@@ -15166,7 +15165,7 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
15166
15165
  * - `device-management.router.ts` (deleted in Phase 2)
15167
15166
  * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
15168
15167
  *
15169
- * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
15168
+ * All device provider addons (rtsp, onvif, …) are hub-local: they may
15170
15169
  * fork into separate processes but never run on remote cluster agents. Therefore:
15171
15170
  * - No nodeId routing needed — this is a pure hub singleton.
15172
15171
  * - The hub's DeviceRegistry is the single source of truth for all live devices.
@@ -19573,7 +19572,7 @@ var NcRuleInputSchema = object({
19573
19572
  * The measured seven-person arrival on device 590 spans 110 s with every
19574
19573
  * internal gap under 30 s. A 12 s fixed window cuts it into three groups; an
19575
19574
  * idle cutoff holds it as one and ends it when the arrival actually ends.
19576
- * 30 is Frigate's shipped value for the same decision.
19575
+ * 30 s is a widely shipped value for the same decision.
19577
19576
  *
19578
19577
  * ### What it replaces
19579
19578
  *
@@ -21799,6 +21798,13 @@ var ZoneCrossingSchema = object({
21799
21798
  /** Zone display name at crossing time (falls back to the id). */
21800
21799
  zoneName: string().optional()
21801
21800
  });
21801
+ /** One zone a box was stamped with, and how much of the BOX fell inside it. */
21802
+ var ZoneOverlapSchema = object({
21803
+ zoneId: string(),
21804
+ zoneName: string().optional(),
21805
+ /** Percentage of the BOX area inside the zone, 0–100. */
21806
+ overlapPct: number()
21807
+ });
21802
21808
  var ObjectEventSchema = object({
21803
21809
  ...BaseEventFields,
21804
21810
  kind: literal("object"),
@@ -21823,6 +21829,35 @@ var ObjectEventSchema = object({
21823
21829
  bbox: BoundingBoxSchema.optional(),
21824
21830
  /** Heavy JSON — omitted in slim projection. */
21825
21831
  zones: array(string()).readonly().optional(),
21832
+ /**
21833
+ * How far inside each stamped zone the box actually was, as a percentage of
21834
+ * the BOX area.
21835
+ *
21836
+ * Membership alone cannot express "at least a third of it inside", which is
21837
+ * the bar an operator argues with — and the number already existed: the
21838
+ * engine computed it, the pipeline logged it, and then discarded it. It
21839
+ * matters most on the events that carry no track, where a rule has nothing
21840
+ * else to judge by.
21841
+ */
21842
+ zoneOverlaps: array(ZoneOverlapSchema).readonly().optional(),
21843
+ /**
21844
+ * Present when this event describes a detection the TRACKER refused, so it
21845
+ * has no track and never will.
21846
+ *
21847
+ * A zone-scoped immediate rule asks "is there an animal in the flowerbed
21848
+ * NOW?"; tracking answers a different question ("is this the same subject as
21849
+ * before?") whose confirmation threshold presumes continuity. On 2026-09-09 a
21850
+ * dog at 0.7729, 100% inside a watched zone, was refused three times in six
21851
+ * seconds with three different candidate ids — seven analysed frames in the
21852
+ * window, the subject in a handful of them, metres apart — and produced no
21853
+ * event at all.
21854
+ *
21855
+ * It is NAMED rather than merely implied by a missing `trackId`: an event
21856
+ * with no track and no reason is indistinguishable from a track whose media
21857
+ * went missing, and a consumer that asks this one for a best shot or a
21858
+ * history is asking for something that never existed.
21859
+ */
21860
+ spawnRefused: string().optional(),
21826
21861
  /** Omitted in slim projection. */
21827
21862
  state: TrackStateSchema.optional(),
21828
21863
  /**
@@ -22249,7 +22284,17 @@ var EventDensityBucketSchema = object({
22249
22284
  bucketStart: number(),
22250
22285
  motion: number().int(),
22251
22286
  object: number().int(),
22252
- audio: number().int()
22287
+ audio: number().int(),
22288
+ /**
22289
+ * Energy-weighted mean dBFS of the audio events in this bucket — the LEVEL,
22290
+ * as opposed to `audio`, which is their COUNT (D431).
22291
+ *
22292
+ * ABSENT when the bucket holds no audio event. Absence means "nothing was
22293
+ * measured", which is not the same claim as silence, and a lane that cannot
22294
+ * tell them apart paints a quiet hour at full scale — which is exactly what
22295
+ * the count-on-a-level-meter did.
22296
+ */
22297
+ audioDbfs: number().optional()
22253
22298
  });
22254
22299
  /**
22255
22300
  * One camera's row in a `getEventDensityBatch` answer.
@@ -22896,6 +22941,60 @@ var NativeCropResultSchema = object({
22896
22941
  */
22897
22942
  tier: _enum(["native", "ram-fullframe"]).optional()
22898
22943
  });
22944
+ /**
22945
+ * What a PARKED frame is for — the `kind` half of the `(deviceId, trackId,
22946
+ * kind)` key ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
22947
+ *
22948
+ * - `keyFrame` — the track's clean best FULL frame at native width (capped by
22949
+ * the caller's `maxWidth`). What `keyFrame` + `keyFrameSmall` are written
22950
+ * from, and what the detail plane's full-frame rung cuts from.
22951
+ * - `thumbnail` — the best-shot subject slab: the caller's 16:9 central-square
22952
+ * window, cut by the runner at uncapped native resolution.
22953
+ *
22954
+ * The runner never interprets `trackId`; it is an opaque key the hub owns.
22955
+ */
22956
+ var ParkedFrameKindSchema = _enum(["keyFrame", "thumbnail"]);
22957
+ /**
22958
+ * Why a park did NOT happen. Every one is logged on the runner with
22959
+ * `tags: { deviceId }` and the handle's measured age, because a handle already
22960
+ * gone at park time IS the defect the 150–500 ms window exists to prevent —
22961
+ * never a reason to retry in a loop.
22962
+ *
22963
+ * - `handle-gone` — the native surface no longer resolves this handle (never
22964
+ * registered, past the lease bound, or the worker released it). `detail`
22965
+ * carries the runner's own miss reason.
22966
+ * - `encode-failed` — pixels resolved and the JPEG encode threw.
22967
+ */
22968
+ var ParkRefusalSchema = _enum(["handle-gone", "encode-failed"]);
22969
+ /** Answer to `parkTrackFrame` — a discriminated union, so "not parked" always names why. */
22970
+ var ParkTrackFrameResultSchema = discriminatedUnion("parked", [object({
22971
+ parked: literal(true),
22972
+ /** The node holding the parcel — what a later retrieval must be pinned to. */
22973
+ nodeId: string(),
22974
+ width: number().int().positive(),
22975
+ height: number().int().positive(),
22976
+ /** JPEG bytes the parcel costs on the node. */
22977
+ bytes: number().int().nonnegative(),
22978
+ /** Whether this park replaced a parcel already held for the key. */
22979
+ replaced: boolean()
22980
+ }), object({
22981
+ parked: literal(false),
22982
+ nodeId: string(),
22983
+ reason: ParkRefusalSchema,
22984
+ /** Age of the handle at the park, on the runner's clock; null if unknown. */
22985
+ handleAgeMs: number().nullable(),
22986
+ detail: string().optional()
22987
+ })]);
22988
+ /** A retrieved parcel — the runner's own JPEG, base64 for the wire. */
22989
+ var ParkedTrackFrameSchema = object({
22990
+ jpeg: string(),
22991
+ width: number().int().positive(),
22992
+ height: number().int().positive(),
22993
+ /** The frame instant the parcel shows (the caller's clock, echoed back). */
22994
+ timestamp: number(),
22995
+ /** When the node stored it (the node's clock). */
22996
+ parkedAt: number()
22997
+ });
22899
22998
  /** Parent detection context passed to `runDetailSubtree` — the crop's
22900
22999
  * originating detection, in FRAME-space coordinates. Reuses
22901
23000
  * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
@@ -23285,7 +23384,7 @@ var RunnerCameraConfigSchema = object({
23285
23384
  * - `analyzer`: ML/frame-diff motion detection (motion-wasm or other
23286
23385
  * analyzer providers) running on decoded frames in this runner.
23287
23386
  * - `onboard`: camera-native motion pushes (Reolink Baichuan, ONVIF
23288
- * analytics, Frigate motion). The provider emits ProviderMotion
23387
+ * analytics). The provider emits ProviderMotion
23289
23388
  * events; the orchestrator forwards to `reportMotion`.
23290
23389
  */
23291
23390
  motionSources: MotionSourcesSchema.default(["analyzer"]),
@@ -23667,7 +23766,60 @@ var pipelineRunnerCapability = {
23667
23766
  className: string(),
23668
23767
  /** Camera the pixels came from. Diagnostics + log tags ONLY — never routing. */
23669
23768
  sourceDeviceId: number()
23670
- }), RunStatelessStepResultSchema, { kind: "mutation" })
23769
+ }), RunStatelessStepResultSchema, { kind: "mutation" }),
23770
+ /**
23771
+ * PARK a frame for a track at the instant it is judged to matter
23772
+ * ([D422](../../../docs/decisions/adr-0422-a-relevant-frame-is-parked-when-it-becomes-relevant.md)).
23773
+ *
23774
+ * The hub's `BestDetectionTracker` — the single "best per track" policy —
23775
+ * concludes a frame is a track's best and calls this on the node that
23776
+ * owns `handle` (`nodePin(handle.nodeId)`), while the handle is young. The
23777
+ * runner cuts `bbox` from the native surface it already holds (a full
23778
+ * frame for `keyFrame`, the caller's subject window for `thumbnail`),
23779
+ * encodes ONE JPEG, and keeps it under `(deviceId, trackId, kind)`. Every
23780
+ * later consumer retrieves by that key (`getParkedTrackFrame`) — a lookup
23781
+ * that cannot miss on age. D52 holds: the rectangle is cut by the runner,
23782
+ * never a pre-cut tile the caller decided. D9/D18 hold: one compressed
23783
+ * encode at a decision point, never a stream.
23784
+ *
23785
+ * Idempotent per `(trackId, kind)`: a later park replaces (the ranking is
23786
+ * the hub's; this adds no second opinion), an out-of-order older instant
23787
+ * is ignored. Bounded per device and per node on the runner
23788
+ * (`parked-frame-store.ts`), oldest-first eviction, never a refusal for
23789
+ * space. A refusal names its reason and is logged on the runner with the
23790
+ * handle's measured age — it is never retried into a loop.
23791
+ */
23792
+ parkTrackFrame: method(object({
23793
+ deviceId: number(),
23794
+ /** Opaque to the runner — the hub's track id. */
23795
+ trackId: string(),
23796
+ kind: ParkedFrameKindSchema,
23797
+ handle: FrameHandleSchema,
23798
+ /** Normalized [0,1] window to cut. `{0,0,1,1}` for a full frame. */
23799
+ bbox: NativeCropBboxSchema,
23800
+ /** Width cap for a full-frame park (the `keyFrame` native cap). */
23801
+ maxWidth: number().int().positive().optional(),
23802
+ /** The frame instant (caller's clock) — orders parks for one key. */
23803
+ timestamp: number()
23804
+ }), ParkTrackFrameResultSchema, { kind: "mutation" }),
23805
+ /**
23806
+ * Retrieve a parked parcel by `(deviceId, trackId, kind)`. Pinned to the
23807
+ * node that answered the park (`ParkTrackFrameResult.nodeId`). `null` means
23808
+ * nothing was parked under that key on this node — never "too old".
23809
+ */
23810
+ getParkedTrackFrame: method(object({
23811
+ deviceId: number(),
23812
+ trackId: string(),
23813
+ kind: ParkedFrameKindSchema
23814
+ }), ParkedTrackFrameSchema.nullable()),
23815
+ /**
23816
+ * Drop every parcel of a track — the hub closed it. Idempotent. A track
23817
+ * whose release is lost ages out on the runner under a hard ceiling.
23818
+ */
23819
+ releaseParkedTrackFrames: method(object({
23820
+ deviceId: number(),
23821
+ trackId: string()
23822
+ }), object({ released: number().int().nonnegative() }), { kind: "mutation" })
23671
23823
  }
23672
23824
  };
23673
23825
  var CameraPipelineConfigSchema = object({
@@ -26729,8 +26881,8 @@ onStatusChanged: { data: object({
26729
26881
  /**
26730
26882
  * Runtime-state slice — every provider that registers this cap
26731
26883
  * stores the same shape under `device.runtimeState[battery]`.
26732
- * Cross-provider uniformity: a Reolink Argus, a Frigate sensor
26733
- * proxy, an ONVIF battery cam all read/write the same keys.
26884
+ * Cross-provider uniformity: a Reolink Argus, a sensor proxy,
26885
+ * an ONVIF battery cam all read/write the same keys.
26734
26886
  * Consumers (BatteryBadge, snapshot wrapper sleep gate) read once
26735
26887
  * via `device.runtimeState.getCapState('battery')` regardless of
26736
26888
  * the underlying driver.
@@ -26787,7 +26939,7 @@ DeviceType.Button, method(object({ deviceId: number().int().nonnegative() }), _v
26787
26939
  *
26788
26940
  * Implementations:
26789
26941
  * - Each camera-providing addon registers this cap natively per
26790
- * device (Reolink, Hikvision, RTSP, Frigate, ONVIF self).
26942
+ * device (Reolink, Hikvision, RTSP, ONVIF self).
26791
26943
  * - Returns a snapshot from the persisted device config blob — no
26792
26944
  * extra round-trip to the camera, no probing.
26793
26945
  * - The cap is admin-only (`auth: 'admin'`) — credentials must not
@@ -28173,7 +28325,7 @@ var AvailableIntegrationTypeSchema = object({
28173
28325
  * Which integration-marker cap the addon declared, so the wizard can
28174
28326
  * branch on CAP — never on addon name. `device-adoption` integrations
28175
28327
  * (Home Assistant, …) route through the broker step (Approach A);
28176
- * `device-provider` integrations (Reolink/Frigate/ONVIF) keep the
28328
+ * `device-provider` integrations (Reolink/ONVIF) keep the
28177
28329
  * legacy config → discovery flow.
28178
28330
  */
28179
28331
  kind: _enum(["device-adoption", "device-provider"]),
@@ -30674,7 +30826,23 @@ var RecordingRangeSchema = object({
30674
30826
  });
30675
30827
  var RecordingAvailabilitySchema = object({
30676
30828
  deviceId: number(),
30677
- ranges: array(RecordingRangeSchema)
30829
+ ranges: array(RecordingRangeSchema),
30830
+ /**
30831
+ * Every profile this camera has footage in — not only the one `ranges`
30832
+ * describes (D433).
30833
+ *
30834
+ * `ranges` answers for ONE profile by design: the timeline is a single bar,
30835
+ * and enumerating all of them triples the directory reads for a bar that
30836
+ * would look identical. But the answer used to say nothing about that, so a
30837
+ * caller asking "what can I export?" read the single preferred profile as
30838
+ * the only one that exists — on this deployment every camera records `high`
30839
+ * AND `low`, the low tree holding 14 GB for camera 615 alone, and the export
30840
+ * UI could not see it.
30841
+ *
30842
+ * Cheap: it is the same shallow directory read the profile CHOICE already
30843
+ * makes. Ask for a specific profile's ranges with the `profile` input.
30844
+ */
30845
+ profilesWithFootage: array(string())
30678
30846
  });
30679
30847
  var RecordingDaysSchema = object({
30680
30848
  deviceId: number(),
@@ -30700,7 +30868,11 @@ var RecordingDaysSchema = object({
30700
30868
  var RecordingAvailabilityForDeviceSchema = object({
30701
30869
  deviceId: number(),
30702
30870
  read: _enum(["read", "unreadable"]),
30703
- ranges: array(RecordingRangeSchema).readonly()
30871
+ ranges: array(RecordingRangeSchema).readonly(),
30872
+ /** Same field, same meaning, as the singular answer (D433). A row that
30873
+ * dropped it would tell a grid caller the archive holds one profile.
30874
+ * Empty on an `'unreadable'` row: nobody looked. */
30875
+ profilesWithFootage: array(string()).readonly()
30704
30876
  });
30705
30877
  /**
30706
30878
  * One camera's row in a `getDaysWithRecordingsBatch` answer. Same rule as
@@ -30730,13 +30902,31 @@ var RecordingManifestSchema = object({
30730
30902
  */
30731
30903
  playbackEndpoints: array(string())
30732
30904
  });
30733
- /** Recording storage usage for one camera (bytes on disk across all its
30734
- * profiles/subtrees/locations on this node). */
30905
+ /**
30906
+ * Recording storage usage for one camera — what the ARCHIVE holds for it,
30907
+ * across every profile and every resolvable location on this node.
30908
+ *
30909
+ * ## Archive vs residency, which is the whole point of this shape (D418)
30910
+ *
30911
+ * `usedBytes` / `oldestMs` / `segments` are the durable hour ledger's numbers:
30912
+ * the same quantity `RecordingLocationUsage.usedBytes` reports for the volume
30913
+ * this camera writes to, so the two can be added up and compared.
30914
+ *
30915
+ * They were not always. Until D418 this row came from the recorder's in-RAM
30916
+ * `RecordingIndex`, which since D287 holds only the live tail plus the hours
30917
+ * somebody hydrated — so a hub with 1.9 TB and 3.3 days of footage reported
30918
+ * 60.5 GB and "oldest: three hours ago" on the same page as the volume row
30919
+ * that said otherwise, and two people read it as retention eating recent
30920
+ * footage. Residency is still reported, under `residentBytes` /
30921
+ * `residentOldestMs`, which answer a different question and say so.
30922
+ */
30735
30923
  var RecordingDeviceUsageSchema = object({
30736
30924
  deviceId: number(),
30925
+ /** Bytes the ARCHIVE holds for this camera on this node's resolvable
30926
+ * recordings locations. */
30737
30927
  usedBytes: number(),
30738
30928
  /**
30739
- * Start of this camera's OLDEST indexed segment, across every profile and
30929
+ * Start of this camera's OLDEST ARCHIVED segment, across every profile and
30740
30930
  * location — the "Oldest footage" column in Recordings → Storage, and the
30741
30931
  * only honest answer to "is retention actually holding?" per camera.
30742
30932
  *
@@ -30746,7 +30936,24 @@ var RecordingDeviceUsageSchema = object({
30746
30936
  * (types) and the addon ship on different trains, and the addon is usually
30747
30937
  * the later of the two.
30748
30938
  */
30749
- oldestMs: number().nullable().optional()
30939
+ oldestMs: number().nullable().optional(),
30940
+ /** Segments the archive holds for this camera — the "M" beside `usedBytes`.
30941
+ * OPTIONAL for the same train-skew reason as `oldestMs`. */
30942
+ segments: number().optional(),
30943
+ /**
30944
+ * RESIDENCY, not the archive: bytes the recorder process currently holds in
30945
+ * its RAM index — the live tail plus the hours a reader hydrated.
30946
+ *
30947
+ * It answers "what can be served without touching the disk", never "how much
30948
+ * footage this camera has". A UI that renders it must label it as such, and
30949
+ * must never total it as storage. OPTIONAL: a recorder predating D418 omits
30950
+ * it, and so does a node whose ledger could not answer.
30951
+ */
30952
+ residentBytes: number().optional(),
30953
+ /** The residency counterpart of `oldestMs` — the oldest segment currently in
30954
+ * RAM, which on a healthy recorder is minutes ago and means nothing about
30955
+ * retention. `null` = nothing resident. */
30956
+ residentOldestMs: number().nullable().optional()
30750
30957
  });
30751
30958
  /** Recording storage usage + capacity for one storage location. */
30752
30959
  var RecordingLocationUsageSchema = object({
@@ -30784,6 +30991,17 @@ var RecordingStorageUsageSchema = object({
30784
30991
  totalUsedBytes: number(),
30785
30992
  devices: array(RecordingDeviceUsageSchema),
30786
30993
  /**
30994
+ * WHERE `devices[]` came from, so an empty table is never mistaken for empty
30995
+ * disks (D418).
30996
+ *
30997
+ * `archive` = the durable hour ledger answered. `unavailable` = this node
30998
+ * declared no ledger and the recorder REFUSED rather than answering the
30999
+ * question with the resident index (D295 rule 3) — the rows are UNKNOWN, not
31000
+ * zero, and a UI must say so. OPTIONAL: a recorder predating D418 omits it,
31001
+ * and its rows are residency.
31002
+ */
31003
+ devicesRead: _enum(["archive", "unavailable"]).optional(),
31004
+ /**
30787
31005
  * Per-physical-volume capacity. OPTIONAL, and consumers must render the rest
30788
31006
  * of the payload without it: the hub serves this method through a BAKED
30789
31007
  * router, so a hub whose framework train predates a change to this array
@@ -30954,7 +31172,14 @@ var recordingCapability = {
30954
31172
  getAvailability: method(object({
30955
31173
  deviceId: number(),
30956
31174
  fromMs: number(),
30957
- toMs: number()
31175
+ toMs: number(),
31176
+ /**
31177
+ * Answer for THIS profile instead of the preferred one (D433). Absent
31178
+ * keeps the timeline's behaviour — one bar, one profile, one set of
31179
+ * reads. `profilesWithFootage` on the answer says what may be asked
31180
+ * for.
31181
+ */
31182
+ profile: string().optional()
30958
31183
  }), RecordingAvailabilitySchema, {
30959
31184
  kind: "query",
30960
31185
  auth: "protected"
@@ -37585,6 +37810,24 @@ Object.freeze({
37585
37810
  addonId: null,
37586
37811
  access: "view"
37587
37812
  },
37813
+ "pipelineRunner.getParkedTrackFrame": {
37814
+ capName: "pipeline-runner",
37815
+ capScope: "system",
37816
+ addonId: null,
37817
+ access: "view"
37818
+ },
37819
+ "pipelineRunner.parkTrackFrame": {
37820
+ capName: "pipeline-runner",
37821
+ capScope: "system",
37822
+ addonId: null,
37823
+ access: "create"
37824
+ },
37825
+ "pipelineRunner.releaseParkedTrackFrames": {
37826
+ capName: "pipeline-runner",
37827
+ capScope: "system",
37828
+ addonId: null,
37829
+ access: "create"
37830
+ },
37588
37831
  "pipelineRunner.reportMotion": {
37589
37832
  capName: "pipeline-runner",
37590
37833
  capScope: "system",
@@ -40862,6 +41105,21 @@ Object.freeze({
40862
41105
  form: "single",
40863
41106
  optional: false
40864
41107
  }],
41108
+ "pipelineRunner.getParkedTrackFrame": [{
41109
+ name: "deviceId",
41110
+ form: "single",
41111
+ optional: false
41112
+ }],
41113
+ "pipelineRunner.parkTrackFrame": [{
41114
+ name: "deviceId",
41115
+ form: "single",
41116
+ optional: false
41117
+ }],
41118
+ "pipelineRunner.releaseParkedTrackFrames": [{
41119
+ name: "deviceId",
41120
+ form: "single",
41121
+ optional: false
41122
+ }],
40865
41123
  "pipelineRunner.reportMotion": [{
40866
41124
  name: "deviceId",
40867
41125
  form: "single",
@@ -41603,7 +41861,7 @@ var PreviewTextField = string().max(200);
41603
41861
  * Whether the notification's preview is a STILL or a short animation.
41604
41862
  *
41605
41863
  * The operator's ask, verbatim: *"inviato come gif o video (come per le altre
41606
- * rule)"* — his Scrypted advanced-notifier has a `gifRule`, and a ten-hour
41864
+ * rule)"* — the other rules already offer an animated preview, and a ten-hour
41607
41865
  * night reads better as three seconds of motion than as one frame of it. Both
41608
41866
  * modes get the SAME treatment (blurred frame, large centred title); `'gif'`
41609
41867
  * simply applies it to a dozen frames sampled across the render and assembles