@camstack/addon-ai 0.4.91 → 0.4.92

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
@@ -20641,6 +20641,22 @@ var occupancyRecheckFramesField = {
20641
20641
  step: 1
20642
20642
  };
20643
20643
  /**
20644
+ * Frames one PRE-ROLL catch-up burst may send to inference at session open.
20645
+ *
20646
+ * The default of 12 over a ~4 s retained window is one frame per ~333 ms of
20647
+ * footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
20648
+ * fleet measures — one-shot, and only ever taken while a permit would still be
20649
+ * spare for live. `0` turns the burst off entirely (the history is still
20650
+ * decoded, because that is how the dial reaches a decodable GOP, and is then
20651
+ * discarded — the pre-D411 behaviour).
20652
+ */
20653
+ var preRollInferenceFramesField = {
20654
+ min: 0,
20655
+ max: 30,
20656
+ default: 12,
20657
+ step: 1
20658
+ };
20659
+ /**
20644
20660
  * Source enum for motion signals fed to the runner. Extensible — add
20645
20661
  * new variants here when new motion-trigger paths are wired in
20646
20662
  * (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
@@ -20881,6 +20897,31 @@ var RunnerCameraConfigSchema = object({
20881
20897
  * to every occupancy rule until something moved in front of it. The churn is
20882
20898
  * now paid on the interval instead — see `occupancyRecheckSecField`.
20883
20899
  */
20900
+ /**
20901
+ * Infer the session's PRE-ROLL — the retained history the restreamer replays
20902
+ * at session open — instead of decoding it and throwing it away.
20903
+ *
20904
+ * DEFAULT `true`, and the default is the argument. This is not a new
20905
+ * capability being offered cautiously: the pre-roll is ALREADY requested,
20906
+ * already served, already decoded and already paid for on every on-motion
20907
+ * detection session that asks for history. What shipped was a last-moment
20908
+ * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
20909
+ * arriving inside a few hundred ms of wall clock looks to it like one frame's
20910
+ * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
20911
+ * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
20912
+ * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
20913
+ * was decoded, and was freed.
20914
+ *
20915
+ * Shipping that as opt-in would ship the bug: an operator cannot discover a
20916
+ * setting whose absence looks exactly like a camera that noticed the cyclist
20917
+ * late. What makes ON safe is not a switch but the BOUND —
20918
+ * `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
20919
+ * the last inference permit — so the switch exists for the camera where the
20920
+ * history is worthless (a doorbell whose subject is always already at the
20921
+ * door), not as a hedge against the feature.
20922
+ */
20923
+ preRollInferenceEnabled: boolean().default(true),
20924
+ preRollInferenceFrames: number$1().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
20884
20925
  occupancyRecheckEnabled: boolean().default(true),
20885
20926
  occupancyRecheckSec: number$1().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
20886
20927
  occupancyRecheckFrames: number$1().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
@@ -20909,7 +20950,7 @@ var RunnerCameraConfigSchema = object({
20909
20950
  */
20910
20951
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
20911
20952
  });
20912
- 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;
20953
+ 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;
20913
20954
  /**
20914
20955
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20915
20956
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
package/dist/addon.mjs CHANGED
@@ -20668,6 +20668,22 @@ var occupancyRecheckFramesField = {
20668
20668
  step: 1
20669
20669
  };
20670
20670
  /**
20671
+ * Frames one PRE-ROLL catch-up burst may send to inference at session open.
20672
+ *
20673
+ * The default of 12 over a ~4 s retained window is one frame per ~333 ms of
20674
+ * footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
20675
+ * fleet measures — one-shot, and only ever taken while a permit would still be
20676
+ * spare for live. `0` turns the burst off entirely (the history is still
20677
+ * decoded, because that is how the dial reaches a decodable GOP, and is then
20678
+ * discarded — the pre-D411 behaviour).
20679
+ */
20680
+ var preRollInferenceFramesField = {
20681
+ min: 0,
20682
+ max: 30,
20683
+ default: 12,
20684
+ step: 1
20685
+ };
20686
+ /**
20671
20687
  * Source enum for motion signals fed to the runner. Extensible — add
20672
20688
  * new variants here when new motion-trigger paths are wired in
20673
20689
  * (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
@@ -20908,6 +20924,31 @@ var RunnerCameraConfigSchema = object({
20908
20924
  * to every occupancy rule until something moved in front of it. The churn is
20909
20925
  * now paid on the interval instead — see `occupancyRecheckSecField`.
20910
20926
  */
20927
+ /**
20928
+ * Infer the session's PRE-ROLL — the retained history the restreamer replays
20929
+ * at session open — instead of decoding it and throwing it away.
20930
+ *
20931
+ * DEFAULT `true`, and the default is the argument. This is not a new
20932
+ * capability being offered cautiously: the pre-roll is ALREADY requested,
20933
+ * already served, already decoded and already paid for on every on-motion
20934
+ * detection session that asks for history. What shipped was a last-moment
20935
+ * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
20936
+ * arriving inside a few hundred ms of wall clock looks to it like one frame's
20937
+ * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
20938
+ * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
20939
+ * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
20940
+ * was decoded, and was freed.
20941
+ *
20942
+ * Shipping that as opt-in would ship the bug: an operator cannot discover a
20943
+ * setting whose absence looks exactly like a camera that noticed the cyclist
20944
+ * late. What makes ON safe is not a switch but the BOUND —
20945
+ * `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
20946
+ * the last inference permit — so the switch exists for the camera where the
20947
+ * history is worthless (a doorbell whose subject is always already at the
20948
+ * door), not as a hedge against the feature.
20949
+ */
20950
+ preRollInferenceEnabled: boolean().default(true),
20951
+ preRollInferenceFrames: number$1().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
20911
20952
  occupancyRecheckEnabled: boolean().default(true),
20912
20953
  occupancyRecheckSec: number$1().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
20913
20954
  occupancyRecheckFrames: number$1().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
@@ -20936,7 +20977,7 @@ var RunnerCameraConfigSchema = object({
20936
20977
  */
20937
20978
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
20938
20979
  });
20939
- 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;
20980
+ 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;
20940
20981
  /**
20941
20982
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20942
20983
  * 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-ai",
3
- "version": "0.4.91",
3
+ "version": "0.4.92",
4
4
  "description": "AI addon for CamStack — the `llm` collection provider (cloud, LAN, and camstack-managed local llama.cpp profiles) plus the per-node `llm-runtime` managed executor.",
5
5
  "keywords": [
6
6
  "camstack",