@camstack/addon-export-hap 1.2.115 → 1.2.116
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 +47 -8
- package/dist/hap-export.addon.mjs +47 -8
- package/package.json +1 -1
package/dist/hap-export.addon.js
CHANGED
|
@@ -19899,13 +19899,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19899
19899
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19900
19900
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19901
19901
|
*
|
|
19902
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19903
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19904
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19905
|
+
* detector.
|
|
19906
|
+
*
|
|
19907
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19908
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19909
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19910
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19911
|
+
* could not name.
|
|
19912
|
+
*
|
|
19902
19913
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19903
19914
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19904
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19905
|
-
* check silently readmits every source added after it was
|
|
19915
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19916
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19917
|
+
* written.
|
|
19906
19918
|
*/
|
|
19907
19919
|
var TrackSourceSchema = _enum([
|
|
19908
19920
|
"pipeline",
|
|
19921
|
+
"onboard",
|
|
19909
19922
|
"sensor",
|
|
19910
19923
|
"audio"
|
|
19911
19924
|
]);
|
|
@@ -21987,13 +22000,39 @@ var MotionSourceEnum = _enum([
|
|
|
21987
22000
|
*/
|
|
21988
22001
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21989
22002
|
/**
|
|
21990
|
-
* Which root
|
|
21991
|
-
*
|
|
21992
|
-
*
|
|
21993
|
-
*
|
|
21994
|
-
*
|
|
22003
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
22004
|
+
*
|
|
22005
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
22006
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
22007
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
22008
|
+
* track, the overlay and the debug row.
|
|
22009
|
+
*
|
|
22010
|
+
* ## Why one, and why it is still an array
|
|
22011
|
+
*
|
|
22012
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
22013
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
22014
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
22015
|
+
* detectors disagree about the same box by construction — which is the
|
|
22016
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
22017
|
+
*
|
|
22018
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
22019
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
22020
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
22021
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
22022
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
22023
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
22024
|
+
* rely on.
|
|
22025
|
+
*
|
|
22026
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
22027
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
22028
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
22029
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
22030
|
+
* suite caught it.
|
|
22031
|
+
*
|
|
22032
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
22033
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21995
22034
|
*/
|
|
21996
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
22035
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21997
22036
|
/**
|
|
21998
22037
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21999
22038
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
|
@@ -19887,13 +19887,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19887
19887
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19888
19888
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19889
19889
|
*
|
|
19890
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19891
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19892
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19893
|
+
* detector.
|
|
19894
|
+
*
|
|
19895
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19896
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19897
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19898
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19899
|
+
* could not name.
|
|
19900
|
+
*
|
|
19890
19901
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19891
19902
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19892
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19893
|
-
* check silently readmits every source added after it was
|
|
19903
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19904
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19905
|
+
* written.
|
|
19894
19906
|
*/
|
|
19895
19907
|
var TrackSourceSchema = _enum([
|
|
19896
19908
|
"pipeline",
|
|
19909
|
+
"onboard",
|
|
19897
19910
|
"sensor",
|
|
19898
19911
|
"audio"
|
|
19899
19912
|
]);
|
|
@@ -21975,13 +21988,39 @@ var MotionSourceEnum = _enum([
|
|
|
21975
21988
|
*/
|
|
21976
21989
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21977
21990
|
/**
|
|
21978
|
-
* Which root
|
|
21979
|
-
*
|
|
21980
|
-
*
|
|
21981
|
-
*
|
|
21982
|
-
*
|
|
21991
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21992
|
+
*
|
|
21993
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21994
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21995
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21996
|
+
* track, the overlay and the debug row.
|
|
21997
|
+
*
|
|
21998
|
+
* ## Why one, and why it is still an array
|
|
21999
|
+
*
|
|
22000
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
22001
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
22002
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
22003
|
+
* detectors disagree about the same box by construction — which is the
|
|
22004
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
22005
|
+
*
|
|
22006
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
22007
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
22008
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
22009
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
22010
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
22011
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
22012
|
+
* rely on.
|
|
22013
|
+
*
|
|
22014
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
22015
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
22016
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
22017
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
22018
|
+
* suite caught it.
|
|
22019
|
+
*
|
|
22020
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
22021
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21983
22022
|
*/
|
|
21984
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
22023
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21985
22024
|
/**
|
|
21986
22025
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21987
22026
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
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.116",
|
|
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",
|