@camstack/addon-import-alexa 0.2.102 → 0.2.104

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
  ]);
@@ -20273,6 +20286,7 @@ var MediaFileKindEnum = _enum([
20273
20286
  "keyFrame",
20274
20287
  "keyFrameSmall",
20275
20288
  "thumbnailSmall",
20289
+ "confirmationCrop",
20276
20290
  "sceneFrame"
20277
20291
  ]);
20278
20292
  /**
@@ -21767,13 +21781,39 @@ var MotionSourceEnum = _enum([
21767
21781
  */
21768
21782
  var MotionSourcesSchema = array(MotionSourceEnum);
21769
21783
  /**
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.
21784
+ * Which root detector a camera runs — EXACTLY ONE.
21785
+ *
21786
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21787
+ * with (`DetectionSource`) rather than a second spelling of the same two
21788
+ * ideas: the value an operator picks here is the value that comes back on the
21789
+ * track, the overlay and the debug row.
21790
+ *
21791
+ * ## Why one, and why it is still an array
21792
+ *
21793
+ * Two roots on one camera is a capability nobody asked for and the operator has
21794
+ * since ruled out. It was never free: both planes feed the SAME per-device
21795
+ * stationary registry, both can promote the same parked object, and the two
21796
+ * detectors disagree about the same box by construction — which is the
21797
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21798
+ *
21799
+ * The ARRAY shape survives because the stored settings and the attach payload
21800
+ * already speak it on every camera of every fleet, and a cap input that
21801
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21802
+ * in the one direction that costs an operator their cameras. So the wire stays
21803
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21804
+ * element rather than refused, and `max(1)` is what every consumer can then
21805
+ * rely on.
21806
+ *
21807
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21808
+ * a camera an operator left with no root detector — and `planDetectionSources`
21809
+ * has always said so: inventing a root for them is how a default acts without
21810
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21811
+ * suite caught it.
21812
+ *
21813
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21814
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21775
21815
  */
21776
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21816
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21777
21817
  /**
21778
21818
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21779
21819
  * 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
  ]);
@@ -20273,6 +20286,7 @@ var MediaFileKindEnum = _enum([
20273
20286
  "keyFrame",
20274
20287
  "keyFrameSmall",
20275
20288
  "thumbnailSmall",
20289
+ "confirmationCrop",
20276
20290
  "sceneFrame"
20277
20291
  ]);
20278
20292
  /**
@@ -21767,13 +21781,39 @@ var MotionSourceEnum = _enum([
21767
21781
  */
21768
21782
  var MotionSourcesSchema = array(MotionSourceEnum);
21769
21783
  /**
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.
21784
+ * Which root detector a camera runs — EXACTLY ONE.
21785
+ *
21786
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21787
+ * with (`DetectionSource`) rather than a second spelling of the same two
21788
+ * ideas: the value an operator picks here is the value that comes back on the
21789
+ * track, the overlay and the debug row.
21790
+ *
21791
+ * ## Why one, and why it is still an array
21792
+ *
21793
+ * Two roots on one camera is a capability nobody asked for and the operator has
21794
+ * since ruled out. It was never free: both planes feed the SAME per-device
21795
+ * stationary registry, both can promote the same parked object, and the two
21796
+ * detectors disagree about the same box by construction — which is the
21797
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21798
+ *
21799
+ * The ARRAY shape survives because the stored settings and the attach payload
21800
+ * already speak it on every camera of every fleet, and a cap input that
21801
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21802
+ * in the one direction that costs an operator their cameras. So the wire stays
21803
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21804
+ * element rather than refused, and `max(1)` is what every consumer can then
21805
+ * rely on.
21806
+ *
21807
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21808
+ * a camera an operator left with no root detector — and `planDetectionSources`
21809
+ * has always said so: inventing a root for them is how a default acts without
21810
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21811
+ * suite caught it.
21812
+ *
21813
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21814
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21775
21815
  */
21776
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21816
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21777
21817
  /**
21778
21818
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21779
21819
  * 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.104",
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",