@camstack/addon-provider-unifi 0.2.88 → 0.2.89
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 +42 -1
- package/dist/addon.mjs +42 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -20712,6 +20712,22 @@ var occupancyRecheckFramesField = {
|
|
|
20712
20712
|
step: 1
|
|
20713
20713
|
};
|
|
20714
20714
|
/**
|
|
20715
|
+
* Frames one PRE-ROLL catch-up burst may send to inference at session open.
|
|
20716
|
+
*
|
|
20717
|
+
* The default of 12 over a ~4 s retained window is one frame per ~333 ms of
|
|
20718
|
+
* footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
|
|
20719
|
+
* fleet measures — one-shot, and only ever taken while a permit would still be
|
|
20720
|
+
* spare for live. `0` turns the burst off entirely (the history is still
|
|
20721
|
+
* decoded, because that is how the dial reaches a decodable GOP, and is then
|
|
20722
|
+
* discarded — the pre-D411 behaviour).
|
|
20723
|
+
*/
|
|
20724
|
+
var preRollInferenceFramesField = {
|
|
20725
|
+
min: 0,
|
|
20726
|
+
max: 30,
|
|
20727
|
+
default: 12,
|
|
20728
|
+
step: 1
|
|
20729
|
+
};
|
|
20730
|
+
/**
|
|
20715
20731
|
* Source enum for motion signals fed to the runner. Extensible — add
|
|
20716
20732
|
* new variants here when new motion-trigger paths are wired in
|
|
20717
20733
|
* (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
|
|
@@ -20952,6 +20968,31 @@ var RunnerCameraConfigSchema = object({
|
|
|
20952
20968
|
* to every occupancy rule until something moved in front of it. The churn is
|
|
20953
20969
|
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
20954
20970
|
*/
|
|
20971
|
+
/**
|
|
20972
|
+
* Infer the session's PRE-ROLL — the retained history the restreamer replays
|
|
20973
|
+
* at session open — instead of decoding it and throwing it away.
|
|
20974
|
+
*
|
|
20975
|
+
* DEFAULT `true`, and the default is the argument. This is not a new
|
|
20976
|
+
* capability being offered cautiously: the pre-roll is ALREADY requested,
|
|
20977
|
+
* already served, already decoded and already paid for on every on-motion
|
|
20978
|
+
* detection session that asks for history. What shipped was a last-moment
|
|
20979
|
+
* discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
|
|
20980
|
+
* arriving inside a few hundred ms of wall clock looks to it like one frame's
|
|
20981
|
+
* worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
|
|
20982
|
+
* recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
|
|
20983
|
+
* 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
|
|
20984
|
+
* was decoded, and was freed.
|
|
20985
|
+
*
|
|
20986
|
+
* Shipping that as opt-in would ship the bug: an operator cannot discover a
|
|
20987
|
+
* setting whose absence looks exactly like a camera that noticed the cyclist
|
|
20988
|
+
* late. What makes ON safe is not a switch but the BOUND —
|
|
20989
|
+
* `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
|
|
20990
|
+
* the last inference permit — so the switch exists for the camera where the
|
|
20991
|
+
* history is worthless (a doorbell whose subject is always already at the
|
|
20992
|
+
* door), not as a hedge against the feature.
|
|
20993
|
+
*/
|
|
20994
|
+
preRollInferenceEnabled: boolean().default(true),
|
|
20995
|
+
preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
|
|
20955
20996
|
occupancyRecheckEnabled: boolean().default(true),
|
|
20956
20997
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
20957
20998
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
@@ -20980,7 +21021,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20980
21021
|
*/
|
|
20981
21022
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
20982
21023
|
});
|
|
20983
|
-
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;
|
|
21024
|
+
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;
|
|
20984
21025
|
/**
|
|
20985
21026
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
20986
21027
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
package/dist/addon.mjs
CHANGED
|
@@ -20711,6 +20711,22 @@ var occupancyRecheckFramesField = {
|
|
|
20711
20711
|
step: 1
|
|
20712
20712
|
};
|
|
20713
20713
|
/**
|
|
20714
|
+
* Frames one PRE-ROLL catch-up burst may send to inference at session open.
|
|
20715
|
+
*
|
|
20716
|
+
* The default of 12 over a ~4 s retained window is one frame per ~333 ms of
|
|
20717
|
+
* footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
|
|
20718
|
+
* fleet measures — one-shot, and only ever taken while a permit would still be
|
|
20719
|
+
* spare for live. `0` turns the burst off entirely (the history is still
|
|
20720
|
+
* decoded, because that is how the dial reaches a decodable GOP, and is then
|
|
20721
|
+
* discarded — the pre-D411 behaviour).
|
|
20722
|
+
*/
|
|
20723
|
+
var preRollInferenceFramesField = {
|
|
20724
|
+
min: 0,
|
|
20725
|
+
max: 30,
|
|
20726
|
+
default: 12,
|
|
20727
|
+
step: 1
|
|
20728
|
+
};
|
|
20729
|
+
/**
|
|
20714
20730
|
* Source enum for motion signals fed to the runner. Extensible — add
|
|
20715
20731
|
* new variants here when new motion-trigger paths are wired in
|
|
20716
20732
|
* (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
|
|
@@ -20951,6 +20967,31 @@ var RunnerCameraConfigSchema = object({
|
|
|
20951
20967
|
* to every occupancy rule until something moved in front of it. The churn is
|
|
20952
20968
|
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
20953
20969
|
*/
|
|
20970
|
+
/**
|
|
20971
|
+
* Infer the session's PRE-ROLL — the retained history the restreamer replays
|
|
20972
|
+
* at session open — instead of decoding it and throwing it away.
|
|
20973
|
+
*
|
|
20974
|
+
* DEFAULT `true`, and the default is the argument. This is not a new
|
|
20975
|
+
* capability being offered cautiously: the pre-roll is ALREADY requested,
|
|
20976
|
+
* already served, already decoded and already paid for on every on-motion
|
|
20977
|
+
* detection session that asks for history. What shipped was a last-moment
|
|
20978
|
+
* discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
|
|
20979
|
+
* arriving inside a few hundred ms of wall clock looks to it like one frame's
|
|
20980
|
+
* worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
|
|
20981
|
+
* recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
|
|
20982
|
+
* 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
|
|
20983
|
+
* was decoded, and was freed.
|
|
20984
|
+
*
|
|
20985
|
+
* Shipping that as opt-in would ship the bug: an operator cannot discover a
|
|
20986
|
+
* setting whose absence looks exactly like a camera that noticed the cyclist
|
|
20987
|
+
* late. What makes ON safe is not a switch but the BOUND —
|
|
20988
|
+
* `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
|
|
20989
|
+
* the last inference permit — so the switch exists for the camera where the
|
|
20990
|
+
* history is worthless (a doorbell whose subject is always already at the
|
|
20991
|
+
* door), not as a hedge against the feature.
|
|
20992
|
+
*/
|
|
20993
|
+
preRollInferenceEnabled: boolean().default(true),
|
|
20994
|
+
preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
|
|
20954
20995
|
occupancyRecheckEnabled: boolean().default(true),
|
|
20955
20996
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
20956
20997
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
@@ -20979,7 +21020,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
20979
21020
|
*/
|
|
20980
21021
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
20981
21022
|
});
|
|
20982
|
-
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;
|
|
21023
|
+
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;
|
|
20983
21024
|
/**
|
|
20984
21025
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
20985
21026
|
* 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-unifi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.89",
|
|
4
4
|
"description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. NO cameras/Protect.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|