@camstack/addon-provider-amcrest 0.2.90 → 0.2.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/addon.js CHANGED
@@ -20707,6 +20707,22 @@ var occupancyRecheckFramesField = {
20707
20707
  step: 1
20708
20708
  };
20709
20709
  /**
20710
+ * Frames one PRE-ROLL catch-up burst may send to inference at session open.
20711
+ *
20712
+ * The default of 12 over a ~4 s retained window is one frame per ~333 ms of
20713
+ * footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
20714
+ * fleet measures — one-shot, and only ever taken while a permit would still be
20715
+ * spare for live. `0` turns the burst off entirely (the history is still
20716
+ * decoded, because that is how the dial reaches a decodable GOP, and is then
20717
+ * discarded — the pre-D411 behaviour).
20718
+ */
20719
+ var preRollInferenceFramesField = {
20720
+ min: 0,
20721
+ max: 30,
20722
+ default: 12,
20723
+ step: 1
20724
+ };
20725
+ /**
20710
20726
  * Source enum for motion signals fed to the runner. Extensible — add
20711
20727
  * new variants here when new motion-trigger paths are wired in
20712
20728
  * (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
@@ -20947,6 +20963,31 @@ var RunnerCameraConfigSchema = object({
20947
20963
  * to every occupancy rule until something moved in front of it. The churn is
20948
20964
  * now paid on the interval instead — see `occupancyRecheckSecField`.
20949
20965
  */
20966
+ /**
20967
+ * Infer the session's PRE-ROLL — the retained history the restreamer replays
20968
+ * at session open — instead of decoding it and throwing it away.
20969
+ *
20970
+ * DEFAULT `true`, and the default is the argument. This is not a new
20971
+ * capability being offered cautiously: the pre-roll is ALREADY requested,
20972
+ * already served, already decoded and already paid for on every on-motion
20973
+ * detection session that asks for history. What shipped was a last-moment
20974
+ * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
20975
+ * arriving inside a few hundred ms of wall clock looks to it like one frame's
20976
+ * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
20977
+ * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
20978
+ * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
20979
+ * was decoded, and was freed.
20980
+ *
20981
+ * Shipping that as opt-in would ship the bug: an operator cannot discover a
20982
+ * setting whose absence looks exactly like a camera that noticed the cyclist
20983
+ * late. What makes ON safe is not a switch but the BOUND —
20984
+ * `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
20985
+ * the last inference permit — so the switch exists for the camera where the
20986
+ * history is worthless (a doorbell whose subject is always already at the
20987
+ * door), not as a hedge against the feature.
20988
+ */
20989
+ preRollInferenceEnabled: boolean().default(true),
20990
+ preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
20950
20991
  occupancyRecheckEnabled: boolean().default(true),
20951
20992
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
20952
20993
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
@@ -20975,7 +21016,7 @@ var RunnerCameraConfigSchema = object({
20975
21016
  */
20976
21017
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
20977
21018
  });
20978
- 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;
21019
+ 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;
20979
21020
  /**
20980
21021
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20981
21022
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
package/dist/addon.mjs CHANGED
@@ -20708,6 +20708,22 @@ var occupancyRecheckFramesField = {
20708
20708
  step: 1
20709
20709
  };
20710
20710
  /**
20711
+ * Frames one PRE-ROLL catch-up burst may send to inference at session open.
20712
+ *
20713
+ * The default of 12 over a ~4 s retained window is one frame per ~333 ms of
20714
+ * footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
20715
+ * fleet measures — one-shot, and only ever taken while a permit would still be
20716
+ * spare for live. `0` turns the burst off entirely (the history is still
20717
+ * decoded, because that is how the dial reaches a decodable GOP, and is then
20718
+ * discarded — the pre-D411 behaviour).
20719
+ */
20720
+ var preRollInferenceFramesField = {
20721
+ min: 0,
20722
+ max: 30,
20723
+ default: 12,
20724
+ step: 1
20725
+ };
20726
+ /**
20711
20727
  * Source enum for motion signals fed to the runner. Extensible — add
20712
20728
  * new variants here when new motion-trigger paths are wired in
20713
20729
  * (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
@@ -20948,6 +20964,31 @@ var RunnerCameraConfigSchema = object({
20948
20964
  * to every occupancy rule until something moved in front of it. The churn is
20949
20965
  * now paid on the interval instead — see `occupancyRecheckSecField`.
20950
20966
  */
20967
+ /**
20968
+ * Infer the session's PRE-ROLL — the retained history the restreamer replays
20969
+ * at session open — instead of decoding it and throwing it away.
20970
+ *
20971
+ * DEFAULT `true`, and the default is the argument. This is not a new
20972
+ * capability being offered cautiously: the pre-roll is ALREADY requested,
20973
+ * already served, already decoded and already paid for on every on-motion
20974
+ * detection session that asks for history. What shipped was a last-moment
20975
+ * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
20976
+ * arriving inside a few hundred ms of wall clock looks to it like one frame's
20977
+ * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
20978
+ * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
20979
+ * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
20980
+ * was decoded, and was freed.
20981
+ *
20982
+ * Shipping that as opt-in would ship the bug: an operator cannot discover a
20983
+ * setting whose absence looks exactly like a camera that noticed the cyclist
20984
+ * late. What makes ON safe is not a switch but the BOUND —
20985
+ * `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
20986
+ * the last inference permit — so the switch exists for the camera where the
20987
+ * history is worthless (a doorbell whose subject is always already at the
20988
+ * door), not as a hedge against the feature.
20989
+ */
20990
+ preRollInferenceEnabled: boolean().default(true),
20991
+ preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
20951
20992
  occupancyRecheckEnabled: boolean().default(true),
20952
20993
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
20953
20994
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
@@ -20976,7 +21017,7 @@ var RunnerCameraConfigSchema = object({
20976
21017
  */
20977
21018
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
20978
21019
  });
20979
- 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;
21020
+ 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;
20980
21021
  /**
20981
21022
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20982
21023
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-amcrest",
3
- "version": "0.2.90",
3
+ "version": "0.2.91",
4
4
  "description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
5
5
  "keywords": [
6
6
  "camstack",