@camstack/addon-mqtt-broker 1.2.88 → 1.2.90

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.
@@ -20441,6 +20441,22 @@ var occupancyRecheckFramesField = {
20441
20441
  step: 1
20442
20442
  };
20443
20443
  /**
20444
+ * Frames one PRE-ROLL catch-up burst may send to inference at session open.
20445
+ *
20446
+ * The default of 12 over a ~4 s retained window is one frame per ~333 ms of
20447
+ * footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
20448
+ * fleet measures — one-shot, and only ever taken while a permit would still be
20449
+ * spare for live. `0` turns the burst off entirely (the history is still
20450
+ * decoded, because that is how the dial reaches a decodable GOP, and is then
20451
+ * discarded — the pre-D411 behaviour).
20452
+ */
20453
+ var preRollInferenceFramesField = {
20454
+ min: 0,
20455
+ max: 30,
20456
+ default: 12,
20457
+ step: 1
20458
+ };
20459
+ /**
20444
20460
  * Source enum for motion signals fed to the runner. Extensible — add
20445
20461
  * new variants here when new motion-trigger paths are wired in
20446
20462
  * (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
@@ -20681,6 +20697,31 @@ var RunnerCameraConfigSchema = object({
20681
20697
  * to every occupancy rule until something moved in front of it. The churn is
20682
20698
  * now paid on the interval instead — see `occupancyRecheckSecField`.
20683
20699
  */
20700
+ /**
20701
+ * Infer the session's PRE-ROLL — the retained history the restreamer replays
20702
+ * at session open — instead of decoding it and throwing it away.
20703
+ *
20704
+ * DEFAULT `true`, and the default is the argument. This is not a new
20705
+ * capability being offered cautiously: the pre-roll is ALREADY requested,
20706
+ * already served, already decoded and already paid for on every on-motion
20707
+ * detection session that asks for history. What shipped was a last-moment
20708
+ * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
20709
+ * arriving inside a few hundred ms of wall clock looks to it like one frame's
20710
+ * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
20711
+ * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
20712
+ * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
20713
+ * was decoded, and was freed.
20714
+ *
20715
+ * Shipping that as opt-in would ship the bug: an operator cannot discover a
20716
+ * setting whose absence looks exactly like a camera that noticed the cyclist
20717
+ * late. What makes ON safe is not a switch but the BOUND —
20718
+ * `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
20719
+ * the last inference permit — so the switch exists for the camera where the
20720
+ * history is worthless (a doorbell whose subject is always already at the
20721
+ * door), not as a hedge against the feature.
20722
+ */
20723
+ preRollInferenceEnabled: boolean().default(true),
20724
+ preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
20684
20725
  occupancyRecheckEnabled: boolean().default(true),
20685
20726
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
20686
20727
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
@@ -20709,7 +20750,7 @@ var RunnerCameraConfigSchema = object({
20709
20750
  */
20710
20751
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
20711
20752
  });
20712
- 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;
20753
+ 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;
20713
20754
  /**
20714
20755
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20715
20756
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -20436,6 +20436,22 @@ var occupancyRecheckFramesField = {
20436
20436
  step: 1
20437
20437
  };
20438
20438
  /**
20439
+ * Frames one PRE-ROLL catch-up burst may send to inference at session open.
20440
+ *
20441
+ * The default of 12 over a ~4 s retained window is one frame per ~333 ms of
20442
+ * footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
20443
+ * fleet measures — one-shot, and only ever taken while a permit would still be
20444
+ * spare for live. `0` turns the burst off entirely (the history is still
20445
+ * decoded, because that is how the dial reaches a decodable GOP, and is then
20446
+ * discarded — the pre-D411 behaviour).
20447
+ */
20448
+ var preRollInferenceFramesField = {
20449
+ min: 0,
20450
+ max: 30,
20451
+ default: 12,
20452
+ step: 1
20453
+ };
20454
+ /**
20439
20455
  * Source enum for motion signals fed to the runner. Extensible — add
20440
20456
  * new variants here when new motion-trigger paths are wired in
20441
20457
  * (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
@@ -20676,6 +20692,31 @@ var RunnerCameraConfigSchema = object({
20676
20692
  * to every occupancy rule until something moved in front of it. The churn is
20677
20693
  * now paid on the interval instead — see `occupancyRecheckSecField`.
20678
20694
  */
20695
+ /**
20696
+ * Infer the session's PRE-ROLL — the retained history the restreamer replays
20697
+ * at session open — instead of decoding it and throwing it away.
20698
+ *
20699
+ * DEFAULT `true`, and the default is the argument. This is not a new
20700
+ * capability being offered cautiously: the pre-roll is ALREADY requested,
20701
+ * already served, already decoded and already paid for on every on-motion
20702
+ * detection session that asks for history. What shipped was a last-moment
20703
+ * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
20704
+ * arriving inside a few hundred ms of wall clock looks to it like one frame's
20705
+ * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
20706
+ * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
20707
+ * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
20708
+ * was decoded, and was freed.
20709
+ *
20710
+ * Shipping that as opt-in would ship the bug: an operator cannot discover a
20711
+ * setting whose absence looks exactly like a camera that noticed the cyclist
20712
+ * late. What makes ON safe is not a switch but the BOUND —
20713
+ * `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
20714
+ * the last inference permit — so the switch exists for the camera where the
20715
+ * history is worthless (a doorbell whose subject is always already at the
20716
+ * door), not as a hedge against the feature.
20717
+ */
20718
+ preRollInferenceEnabled: boolean().default(true),
20719
+ preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
20679
20720
  occupancyRecheckEnabled: boolean().default(true),
20680
20721
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
20681
20722
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
@@ -20704,7 +20745,7 @@ var RunnerCameraConfigSchema = object({
20704
20745
  */
20705
20746
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
20706
20747
  });
20707
- 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;
20748
+ 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;
20708
20749
  /**
20709
20750
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20710
20751
  * 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-mqtt-broker",
3
- "version": "1.2.88",
3
+ "version": "1.2.90",
4
4
  "description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
5
5
  "keywords": [
6
6
  "camstack",