@camstack/addon-agent-ui 1.2.93 → 1.2.95

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 (2) hide show
  1. package/dist/addon.js +43 -2
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -20347,6 +20347,22 @@ var occupancyRecheckFramesField = {
20347
20347
  step: 1
20348
20348
  };
20349
20349
  /**
20350
+ * Frames one PRE-ROLL catch-up burst may send to inference at session open.
20351
+ *
20352
+ * The default of 12 over a ~4 s retained window is one frame per ~333 ms of
20353
+ * footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
20354
+ * fleet measures — one-shot, and only ever taken while a permit would still be
20355
+ * spare for live. `0` turns the burst off entirely (the history is still
20356
+ * decoded, because that is how the dial reaches a decodable GOP, and is then
20357
+ * discarded — the pre-D411 behaviour).
20358
+ */
20359
+ var preRollInferenceFramesField = {
20360
+ min: 0,
20361
+ max: 30,
20362
+ default: 12,
20363
+ step: 1
20364
+ };
20365
+ /**
20350
20366
  * Source enum for motion signals fed to the runner. Extensible — add
20351
20367
  * new variants here when new motion-trigger paths are wired in
20352
20368
  * (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
@@ -20587,6 +20603,31 @@ var RunnerCameraConfigSchema = object({
20587
20603
  * to every occupancy rule until something moved in front of it. The churn is
20588
20604
  * now paid on the interval instead — see `occupancyRecheckSecField`.
20589
20605
  */
20606
+ /**
20607
+ * Infer the session's PRE-ROLL — the retained history the restreamer replays
20608
+ * at session open — instead of decoding it and throwing it away.
20609
+ *
20610
+ * DEFAULT `true`, and the default is the argument. This is not a new
20611
+ * capability being offered cautiously: the pre-roll is ALREADY requested,
20612
+ * already served, already decoded and already paid for on every on-motion
20613
+ * detection session that asks for history. What shipped was a last-moment
20614
+ * discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
20615
+ * arriving inside a few hundred ms of wall clock looks to it like one frame's
20616
+ * worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
20617
+ * recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
20618
+ * 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
20619
+ * was decoded, and was freed.
20620
+ *
20621
+ * Shipping that as opt-in would ship the bug: an operator cannot discover a
20622
+ * setting whose absence looks exactly like a camera that noticed the cyclist
20623
+ * late. What makes ON safe is not a switch but the BOUND —
20624
+ * `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
20625
+ * the last inference permit — so the switch exists for the camera where the
20626
+ * history is worthless (a doorbell whose subject is always already at the
20627
+ * door), not as a hedge against the feature.
20628
+ */
20629
+ preRollInferenceEnabled: boolean().default(true),
20630
+ preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
20590
20631
  occupancyRecheckEnabled: boolean().default(true),
20591
20632
  occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
20592
20633
  occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
@@ -20615,7 +20656,7 @@ var RunnerCameraConfigSchema = object({
20615
20656
  */
20616
20657
  inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
20617
20658
  });
20618
- 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;
20659
+ 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;
20619
20660
  /**
20620
20661
  * Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
20621
20662
  * load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
@@ -38436,7 +38477,7 @@ var AgentUIAddon = class extends BaseAddon {
38436
38477
  capability: adminUiCapability,
38437
38478
  provider: {
38438
38479
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
38439
- getVersion: async () => ({ version: "1.2.93" })
38480
+ getVersion: async () => ({ version: "1.2.95" })
38440
38481
  }
38441
38482
  }];
38442
38483
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.93",
3
+ "version": "1.2.95",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",