@camstack/addon-import-alexa 0.2.102 → 0.2.103

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 CHANGED
@@ -19679,13 +19679,26 @@ var TrackAudioLabelSchema = object({
19679
19679
  * - `audio` — an audio event on the camera itself that was anomalous for
19680
19680
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19681
19681
  *
19682
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19683
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19684
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19685
+ * detector.
19686
+ *
19687
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19688
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19689
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19690
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19691
+ * could not name.
19692
+ *
19682
19693
  * The spatial subsystems (tracker association, occupancy count, re-id /
19683
19694
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19684
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19685
- * check silently readmits every source added after it was written.
19695
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19696
+ * `!== 'sensor'` check silently readmits every source added after it was
19697
+ * written.
19686
19698
  */
19687
19699
  var TrackSourceSchema = _enum([
19688
19700
  "pipeline",
19701
+ "onboard",
19689
19702
  "sensor",
19690
19703
  "audio"
19691
19704
  ]);
@@ -21767,13 +21780,39 @@ var MotionSourceEnum = _enum([
21767
21780
  */
21768
21781
  var MotionSourcesSchema = array(MotionSourceEnum);
21769
21782
  /**
21770
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21771
- * post-analysis already tags every detection with (`DetectionSource`) rather
21772
- * than a second spelling of the same two ideas — the value an operator picks
21773
- * here is the value that comes back on the track, the overlay and the debug
21774
- * row.
21783
+ * Which root detector a camera runs — EXACTLY ONE.
21784
+ *
21785
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21786
+ * with (`DetectionSource`) rather than a second spelling of the same two
21787
+ * ideas: the value an operator picks here is the value that comes back on the
21788
+ * track, the overlay and the debug row.
21789
+ *
21790
+ * ## Why one, and why it is still an array
21791
+ *
21792
+ * Two roots on one camera is a capability nobody asked for and the operator has
21793
+ * since ruled out. It was never free: both planes feed the SAME per-device
21794
+ * stationary registry, both can promote the same parked object, and the two
21795
+ * detectors disagree about the same box by construction — which is the
21796
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21797
+ *
21798
+ * The ARRAY shape survives because the stored settings and the attach payload
21799
+ * already speak it on every camera of every fleet, and a cap input that
21800
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21801
+ * in the one direction that costs an operator their cameras. So the wire stays
21802
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21803
+ * element rather than refused, and `max(1)` is what every consumer can then
21804
+ * rely on.
21805
+ *
21806
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21807
+ * a camera an operator left with no root detector — and `planDetectionSources`
21808
+ * has always said so: inventing a root for them is how a default acts without
21809
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21810
+ * suite caught it.
21811
+ *
21812
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21813
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21775
21814
  */
21776
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21815
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21777
21816
  /**
21778
21817
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21779
21818
  * so cap-side consumers (the orchestrator forward, the runner addon's
package/dist/addon.mjs CHANGED
@@ -19679,13 +19679,26 @@ var TrackAudioLabelSchema = object({
19679
19679
  * - `audio` — an audio event on the camera itself that was anomalous for
19680
19680
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19681
19681
  *
19682
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19683
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19684
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19685
+ * detector.
19686
+ *
19687
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19688
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19689
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19690
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19691
+ * could not name.
19692
+ *
19682
19693
  * The spatial subsystems (tracker association, occupancy count, re-id /
19683
19694
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19684
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19685
- * check silently readmits every source added after it was written.
19695
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19696
+ * `!== 'sensor'` check silently readmits every source added after it was
19697
+ * written.
19686
19698
  */
19687
19699
  var TrackSourceSchema = _enum([
19688
19700
  "pipeline",
19701
+ "onboard",
19689
19702
  "sensor",
19690
19703
  "audio"
19691
19704
  ]);
@@ -21767,13 +21780,39 @@ var MotionSourceEnum = _enum([
21767
21780
  */
21768
21781
  var MotionSourcesSchema = array(MotionSourceEnum);
21769
21782
  /**
21770
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21771
- * post-analysis already tags every detection with (`DetectionSource`) rather
21772
- * than a second spelling of the same two ideas — the value an operator picks
21773
- * here is the value that comes back on the track, the overlay and the debug
21774
- * row.
21783
+ * Which root detector a camera runs — EXACTLY ONE.
21784
+ *
21785
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21786
+ * with (`DetectionSource`) rather than a second spelling of the same two
21787
+ * ideas: the value an operator picks here is the value that comes back on the
21788
+ * track, the overlay and the debug row.
21789
+ *
21790
+ * ## Why one, and why it is still an array
21791
+ *
21792
+ * Two roots on one camera is a capability nobody asked for and the operator has
21793
+ * since ruled out. It was never free: both planes feed the SAME per-device
21794
+ * stationary registry, both can promote the same parked object, and the two
21795
+ * detectors disagree about the same box by construction — which is the
21796
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21797
+ *
21798
+ * The ARRAY shape survives because the stored settings and the attach payload
21799
+ * already speak it on every camera of every fleet, and a cap input that
21800
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21801
+ * in the one direction that costs an operator their cameras. So the wire stays
21802
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21803
+ * element rather than refused, and `max(1)` is what every consumer can then
21804
+ * rely on.
21805
+ *
21806
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21807
+ * a camera an operator left with no root detector — and `planDetectionSources`
21808
+ * has always said so: inventing a root for them is how a default acts without
21809
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21810
+ * suite caught it.
21811
+ *
21812
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21813
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21775
21814
  */
21776
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21815
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21777
21816
  /**
21778
21817
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21779
21818
  * 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-import-alexa",
3
- "version": "0.2.102",
3
+ "version": "0.2.103",
4
4
  "description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
5
5
  "keywords": [
6
6
  "camstack",