@camstack/addon-export-hap 1.2.99 → 1.2.101
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/hap-export.addon.js +42 -1
- package/dist/hap-export.addon.mjs +42 -1
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -21145,6 +21145,22 @@ var occupancyRecheckFramesField = {
|
|
|
21145
21145
|
step: 1
|
|
21146
21146
|
};
|
|
21147
21147
|
/**
|
|
21148
|
+
* Frames one PRE-ROLL catch-up burst may send to inference at session open.
|
|
21149
|
+
*
|
|
21150
|
+
* The default of 12 over a ~4 s retained window is one frame per ~333 ms of
|
|
21151
|
+
* footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
|
|
21152
|
+
* fleet measures — one-shot, and only ever taken while a permit would still be
|
|
21153
|
+
* spare for live. `0` turns the burst off entirely (the history is still
|
|
21154
|
+
* decoded, because that is how the dial reaches a decodable GOP, and is then
|
|
21155
|
+
* discarded — the pre-D411 behaviour).
|
|
21156
|
+
*/
|
|
21157
|
+
var preRollInferenceFramesField = {
|
|
21158
|
+
min: 0,
|
|
21159
|
+
max: 30,
|
|
21160
|
+
default: 12,
|
|
21161
|
+
step: 1
|
|
21162
|
+
};
|
|
21163
|
+
/**
|
|
21148
21164
|
* Source enum for motion signals fed to the runner. Extensible — add
|
|
21149
21165
|
* new variants here when new motion-trigger paths are wired in
|
|
21150
21166
|
* (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
|
|
@@ -21385,6 +21401,31 @@ var RunnerCameraConfigSchema = object({
|
|
|
21385
21401
|
* to every occupancy rule until something moved in front of it. The churn is
|
|
21386
21402
|
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
21387
21403
|
*/
|
|
21404
|
+
/**
|
|
21405
|
+
* Infer the session's PRE-ROLL — the retained history the restreamer replays
|
|
21406
|
+
* at session open — instead of decoding it and throwing it away.
|
|
21407
|
+
*
|
|
21408
|
+
* DEFAULT `true`, and the default is the argument. This is not a new
|
|
21409
|
+
* capability being offered cautiously: the pre-roll is ALREADY requested,
|
|
21410
|
+
* already served, already decoded and already paid for on every on-motion
|
|
21411
|
+
* detection session that asks for history. What shipped was a last-moment
|
|
21412
|
+
* discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
|
|
21413
|
+
* arriving inside a few hundred ms of wall clock looks to it like one frame's
|
|
21414
|
+
* worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
|
|
21415
|
+
* recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
|
|
21416
|
+
* 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
|
|
21417
|
+
* was decoded, and was freed.
|
|
21418
|
+
*
|
|
21419
|
+
* Shipping that as opt-in would ship the bug: an operator cannot discover a
|
|
21420
|
+
* setting whose absence looks exactly like a camera that noticed the cyclist
|
|
21421
|
+
* late. What makes ON safe is not a switch but the BOUND —
|
|
21422
|
+
* `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
|
|
21423
|
+
* the last inference permit — so the switch exists for the camera where the
|
|
21424
|
+
* history is worthless (a doorbell whose subject is always already at the
|
|
21425
|
+
* door), not as a hedge against the feature.
|
|
21426
|
+
*/
|
|
21427
|
+
preRollInferenceEnabled: boolean().default(true),
|
|
21428
|
+
preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
|
|
21388
21429
|
occupancyRecheckEnabled: boolean().default(true),
|
|
21389
21430
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
21390
21431
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
@@ -21413,7 +21454,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
21413
21454
|
*/
|
|
21414
21455
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
21415
21456
|
});
|
|
21416
|
-
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;
|
|
21457
|
+
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;
|
|
21417
21458
|
/**
|
|
21418
21459
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
21419
21460
|
* load-balancing levels (L2 capacity-based, L3 hardware-aware) to decide
|
|
@@ -21133,6 +21133,22 @@ var occupancyRecheckFramesField = {
|
|
|
21133
21133
|
step: 1
|
|
21134
21134
|
};
|
|
21135
21135
|
/**
|
|
21136
|
+
* Frames one PRE-ROLL catch-up burst may send to inference at session open.
|
|
21137
|
+
*
|
|
21138
|
+
* The default of 12 over a ~4 s retained window is one frame per ~333 ms of
|
|
21139
|
+
* footage, and costs ~480 ms of ONE inference permit at the 40 ms/frame this
|
|
21140
|
+
* fleet measures — one-shot, and only ever taken while a permit would still be
|
|
21141
|
+
* spare for live. `0` turns the burst off entirely (the history is still
|
|
21142
|
+
* decoded, because that is how the dial reaches a decodable GOP, and is then
|
|
21143
|
+
* discarded — the pre-D411 behaviour).
|
|
21144
|
+
*/
|
|
21145
|
+
var preRollInferenceFramesField = {
|
|
21146
|
+
min: 0,
|
|
21147
|
+
max: 30,
|
|
21148
|
+
default: 12,
|
|
21149
|
+
step: 1
|
|
21150
|
+
};
|
|
21151
|
+
/**
|
|
21136
21152
|
* Source enum for motion signals fed to the runner. Extensible — add
|
|
21137
21153
|
* new variants here when new motion-trigger paths are wired in
|
|
21138
21154
|
* (`wasm-cross-camera`, `event-bus-relay`, etc.). The runner uses
|
|
@@ -21373,6 +21389,31 @@ var RunnerCameraConfigSchema = object({
|
|
|
21373
21389
|
* to every occupancy rule until something moved in front of it. The churn is
|
|
21374
21390
|
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
21375
21391
|
*/
|
|
21392
|
+
/**
|
|
21393
|
+
* Infer the session's PRE-ROLL — the retained history the restreamer replays
|
|
21394
|
+
* at session open — instead of decoding it and throwing it away.
|
|
21395
|
+
*
|
|
21396
|
+
* DEFAULT `true`, and the default is the argument. This is not a new
|
|
21397
|
+
* capability being offered cautiously: the pre-roll is ALREADY requested,
|
|
21398
|
+
* already served, already decoded and already paid for on every on-motion
|
|
21399
|
+
* detection session that asks for history. What shipped was a last-moment
|
|
21400
|
+
* discard — `FrameSlot`'s throttle compares wall clocks, and ~4 s of media
|
|
21401
|
+
* arriving inside a few hundred ms of wall clock looks to it like one frame's
|
|
21402
|
+
* worth. Device 617, 2026-09-08: a re-run of the SAME model over the stored
|
|
21403
|
+
* recording scored the subject `vehicle 0.5669` — above the 0.50 floor —
|
|
21404
|
+
* 1.68 s BEFORE the live track was born, on a frame that was in the pre-roll,
|
|
21405
|
+
* was decoded, and was freed.
|
|
21406
|
+
*
|
|
21407
|
+
* Shipping that as opt-in would ship the bug: an operator cannot discover a
|
|
21408
|
+
* setting whose absence looks exactly like a camera that noticed the cyclist
|
|
21409
|
+
* late. What makes ON safe is not a switch but the BOUND —
|
|
21410
|
+
* `preRollInferenceFrames`, a wall-clock ceiling, and a lane that never takes
|
|
21411
|
+
* the last inference permit — so the switch exists for the camera where the
|
|
21412
|
+
* history is worthless (a doorbell whose subject is always already at the
|
|
21413
|
+
* door), not as a hedge against the feature.
|
|
21414
|
+
*/
|
|
21415
|
+
preRollInferenceEnabled: boolean().default(true),
|
|
21416
|
+
preRollInferenceFrames: number().min(preRollInferenceFramesField.min).max(preRollInferenceFramesField.max).default(preRollInferenceFramesField.default),
|
|
21376
21417
|
occupancyRecheckEnabled: boolean().default(true),
|
|
21377
21418
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
21378
21419
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
@@ -21401,7 +21442,7 @@ var RunnerCameraConfigSchema = object({
|
|
|
21401
21442
|
*/
|
|
21402
21443
|
inferenceDevices: array(RunnerInferenceDeviceSchema).readonly().optional()
|
|
21403
21444
|
});
|
|
21404
|
-
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;
|
|
21445
|
+
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;
|
|
21405
21446
|
/**
|
|
21406
21447
|
* Runtime load summary returned by `getLocalLoad`. Used by the orchestrator's
|
|
21407
21448
|
* 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-export-hap",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.101",
|
|
4
4
|
"description": "HomeKit (HAP) exporter for CamStack devices. Publishes each exposed device as its own HomeKit accessory: cameras and doorbells with SRTP streaming, HomeKit Secure Video, motion, two-way audio, PTZ and battery; switches, lights, locks and sensors through a capability→service table.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|