@camstack/addon-provider-tuya 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
|
@@ -21549,6 +21549,22 @@ var occupancyRecheckFramesField = {
|
|
|
21549
21549
|
step: 1
|
|
21550
21550
|
};
|
|
21551
21551
|
/**
|
|
21552
|
+
* Frames one PRE-ROLL catch-up burst may send to inference at session open.
|
|
21553
|
+
*
|
|
21554
|
+
* The default of 12 over a ~4 s retained window is one frame per ~333 ms of
|
|
21555
|
+
* footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
|
|
21556
|
+
* fleet measures — one-shot, and only ever taken while a permit would still be
|
|
21557
|
+
* spare for live. `0` turns the burst off entirely (the history is still
|
|
21558
|
+
* decoded, because that is how the dial reaches a decodable GOP, and is then
|
|
21559
|
+
* discarded — the pre-D411 behaviour).
|
|
21560
|
+
*/
|
|
21561
|
+
var preRollInferenceFramesField = {
|
|
21562
|
+
min: 0,
|
|
21563
|
+
max: 30,
|
|
21564
|
+
default: 12,
|
|
21565
|
+
step: 1
|
|
21566
|
+
};
|
|
21567
|
+
/**
|
|
21552
21568
|
* Source enum for motion signals fed to the runner. Extensible — add
|
|
21553
21569
|
* new variants here when new motion-trigger paths are wired in
|
|
21554
21570
|
* (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
|
|
@@ -21789,6 +21805,31 @@ var RunnerCameraConfigSchema = object({
|
|
|
21789
21805
|
* to every occupancy rule until something moved in front of it. The churn is
|
|
21790
21806
|
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
21791
21807
|
*/
|
|
21808
|
+
/**
|
|
21809
|
+
* Infer the session's PRE-ROLL — the retained history the restreamer replays
|
|
21810
|
+
* at session open — instead of decoding it and throwing it away.
|
|
21811
|
+
*
|
|
21812
|
+
* DEFAULT `true`, and the default is the argument. This is not a new
|
|
21813
|
+
* capability being offered cautiously: the pre-roll is ALREADY requested,
|
|
21814
|
+
* already served, already decoded and already paid for on every on-motion
|
|
21815
|
+
* detection session that asks for history. What shipped was a last-moment
|
|
21816
|
+
* discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
|
|
21817
|
+
* arriving inside a few hundred ms of wall clock looks to it like one frame's
|
|
21818
|
+
* worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
|
|
21819
|
+
* recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
|
|
21820
|
+
* 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
|
|
21821
|
+
* was decoded, and was freed.
|
|
21822
|
+
*
|
|
21823
|
+
* Shipping that as opt-in would ship the bug: an operator cannot discover a
|
|
21824
|
+
* setting whose absence looks exactly like a camera that noticed the cyclist
|
|
21825
|
+
* late. What makes ON safe is not a switch but the BOUND —
|
|
21826
|
+
* `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
|
|
21827
|
+
* the last inference permit — so the switch exists for the camera where the
|
|
21828
|
+
* history is worthless (a doorbell whose subject is always already at the
|
|
21829
|
+
* door), not as a hedge against the feature.
|
|
21830
|
+
*/
|
|
21831
|
+
preRollInferenceEnabled: boolean().default(true),
|
|
21832
|
+
preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
|
|
21792
21833
|
occupancyRecheckEnabled: boolean().default(true),
|
|
21793
21834
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
21794
21835
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
@@ -21817,7 +21858,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
21817
21858
|
*/
|
|
21818
21859
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
21819
21860
|
});
|
|
21820
|
-
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;
|
|
21861
|
+
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;
|
|
21821
21862
|
/**
|
|
21822
21863
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
21823
21864
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
package/dist/addon.mjs
CHANGED
|
@@ -21548,6 +21548,22 @@ var occupancyRecheckFramesField = {
|
|
|
21548
21548
|
step: 1
|
|
21549
21549
|
};
|
|
21550
21550
|
/**
|
|
21551
|
+
* Frames one PRE-ROLL catch-up burst may send to inference at session open.
|
|
21552
|
+
*
|
|
21553
|
+
* The default of 12 over a ~4 s retained window is one frame per ~333 ms of
|
|
21554
|
+
* footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
|
|
21555
|
+
* fleet measures — one-shot, and only ever taken while a permit would still be
|
|
21556
|
+
* spare for live. `0` turns the burst off entirely (the history is still
|
|
21557
|
+
* decoded, because that is how the dial reaches a decodable GOP, and is then
|
|
21558
|
+
* discarded — the pre-D411 behaviour).
|
|
21559
|
+
*/
|
|
21560
|
+
var preRollInferenceFramesField = {
|
|
21561
|
+
min: 0,
|
|
21562
|
+
max: 30,
|
|
21563
|
+
default: 12,
|
|
21564
|
+
step: 1
|
|
21565
|
+
};
|
|
21566
|
+
/**
|
|
21551
21567
|
* Source enum for motion signals fed to the runner. Extensible — add
|
|
21552
21568
|
* new variants here when new motion-trigger paths are wired in
|
|
21553
21569
|
* (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
|
|
@@ -21788,6 +21804,31 @@ var RunnerCameraConfigSchema = object({
|
|
|
21788
21804
|
* to every occupancy rule until something moved in front of it. The churn is
|
|
21789
21805
|
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
21790
21806
|
*/
|
|
21807
|
+
/**
|
|
21808
|
+
* Infer the session's PRE-ROLL — the retained history the restreamer replays
|
|
21809
|
+
* at session open — instead of decoding it and throwing it away.
|
|
21810
|
+
*
|
|
21811
|
+
* DEFAULT `true`, and the default is the argument. This is not a new
|
|
21812
|
+
* capability being offered cautiously: the pre-roll is ALREADY requested,
|
|
21813
|
+
* already served, already decoded and already paid for on every on-motion
|
|
21814
|
+
* detection session that asks for history. What shipped was a last-moment
|
|
21815
|
+
* discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
|
|
21816
|
+
* arriving inside a few hundred ms of wall clock looks to it like one frame's
|
|
21817
|
+
* worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
|
|
21818
|
+
* recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
|
|
21819
|
+
* 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
|
|
21820
|
+
* was decoded, and was freed.
|
|
21821
|
+
*
|
|
21822
|
+
* Shipping that as opt-in would ship the bug: an operator cannot discover a
|
|
21823
|
+
* setting whose absence looks exactly like a camera that noticed the cyclist
|
|
21824
|
+
* late. What makes ON safe is not a switch but the BOUND —
|
|
21825
|
+
* `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
|
|
21826
|
+
* the last inference permit — so the switch exists for the camera where the
|
|
21827
|
+
* history is worthless (a doorbell whose subject is always already at the
|
|
21828
|
+
* door), not as a hedge against the feature.
|
|
21829
|
+
*/
|
|
21830
|
+
preRollInferenceEnabled: boolean().default(true),
|
|
21831
|
+
preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
|
|
21791
21832
|
occupancyRecheckEnabled: boolean().default(true),
|
|
21792
21833
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
21793
21834
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
@@ -21816,7 +21857,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
21816
21857
|
*/
|
|
21817
21858
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
21818
21859
|
});
|
|
21819
|
-
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;
|
|
21860
|
+
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;
|
|
21820
21861
|
/**
|
|
21821
21862
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
21822
21863
|
* 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-tuya",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.89",
|
|
4
4
|
"description": "Tuya / Smart Life device-provider addon for CamStack — account-onboarded (Tuya IoT cloud fetch of device localKeys) + LOCAL DP control via the @apocaliss92/nodetuya encrypted-LAN client, exposing switch / water-heater-family kettle entities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|