@camstack/addon-provider-homematic 1.2.104 → 1.2.105

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
@@ -19513,13 +19513,26 @@ var TrackAudioLabelSchema = object({
19513
19513
  * - `audio` — an audio event on the camera itself that was anomalous for
19514
19514
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19515
19515
  *
19516
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19517
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19518
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19519
+ * detector.
19520
+ *
19521
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19522
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19523
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19524
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19525
+ * could not name.
19526
+ *
19516
19527
  * The spatial subsystems (tracker association, occupancy count, re-id /
19517
19528
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19518
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19519
- * check silently readmits every source added after it was written.
19529
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19530
+ * `!== 'sensor'` check silently readmits every source added after it was
19531
+ * written.
19520
19532
  */
19521
19533
  var TrackSourceSchema = _enum([
19522
19534
  "pipeline",
19535
+ "onboard",
19523
19536
  "sensor",
19524
19537
  "audio"
19525
19538
  ]);
@@ -21601,13 +21614,39 @@ var MotionSourceEnum = _enum([
21601
21614
  */
21602
21615
  var MotionSourcesSchema = array(MotionSourceEnum);
21603
21616
  /**
21604
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21605
- * post-analysis already tags every detection with (`DetectionSource`) rather
21606
- * than a second spelling of the same two ideas — the value an operator picks
21607
- * here is the value that comes back on the track, the overlay and the debug
21608
- * row.
21617
+ * Which root detector a camera runs — EXACTLY ONE.
21618
+ *
21619
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21620
+ * with (`DetectionSource`) rather than a second spelling of the same two
21621
+ * ideas: the value an operator picks here is the value that comes back on the
21622
+ * track, the overlay and the debug row.
21623
+ *
21624
+ * ## Why one, and why it is still an array
21625
+ *
21626
+ * Two roots on one camera is a capability nobody asked for and the operator has
21627
+ * since ruled out. It was never free: both planes feed the SAME per-device
21628
+ * stationary registry, both can promote the same parked object, and the two
21629
+ * detectors disagree about the same box by construction — which is the
21630
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21631
+ *
21632
+ * The ARRAY shape survives because the stored settings and the attach payload
21633
+ * already speak it on every camera of every fleet, and a cap input that
21634
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21635
+ * in the one direction that costs an operator their cameras. So the wire stays
21636
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21637
+ * element rather than refused, and `max(1)` is what every consumer can then
21638
+ * rely on.
21639
+ *
21640
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21641
+ * a camera an operator left with no root detector — and `planDetectionSources`
21642
+ * has always said so: inventing a root for them is how a default acts without
21643
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21644
+ * suite caught it.
21645
+ *
21646
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21647
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21609
21648
  */
21610
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21649
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21611
21650
  /**
21612
21651
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21613
21652
  * so cap-side consumers (the orchestrator forward, the runner addon's
package/dist/addon.mjs CHANGED
@@ -19514,13 +19514,26 @@ var TrackAudioLabelSchema = object({
19514
19514
  * - `audio` — an audio event on the camera itself that was anomalous for
19515
19515
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19516
19516
  *
19517
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19518
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19519
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19520
+ * detector.
19521
+ *
19522
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19523
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19524
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19525
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19526
+ * could not name.
19527
+ *
19517
19528
  * The spatial subsystems (tracker association, occupancy count, re-id /
19518
19529
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19519
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19520
- * check silently readmits every source added after it was written.
19530
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19531
+ * `!== 'sensor'` check silently readmits every source added after it was
19532
+ * written.
19521
19533
  */
19522
19534
  var TrackSourceSchema = _enum([
19523
19535
  "pipeline",
19536
+ "onboard",
19524
19537
  "sensor",
19525
19538
  "audio"
19526
19539
  ]);
@@ -21602,13 +21615,39 @@ var MotionSourceEnum = _enum([
21602
21615
  */
21603
21616
  var MotionSourcesSchema = array(MotionSourceEnum);
21604
21617
  /**
21605
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21606
- * post-analysis already tags every detection with (`DetectionSource`) rather
21607
- * than a second spelling of the same two ideas — the value an operator picks
21608
- * here is the value that comes back on the track, the overlay and the debug
21609
- * row.
21618
+ * Which root detector a camera runs — EXACTLY ONE.
21619
+ *
21620
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21621
+ * with (`DetectionSource`) rather than a second spelling of the same two
21622
+ * ideas: the value an operator picks here is the value that comes back on the
21623
+ * track, the overlay and the debug row.
21624
+ *
21625
+ * ## Why one, and why it is still an array
21626
+ *
21627
+ * Two roots on one camera is a capability nobody asked for and the operator has
21628
+ * since ruled out. It was never free: both planes feed the SAME per-device
21629
+ * stationary registry, both can promote the same parked object, and the two
21630
+ * detectors disagree about the same box by construction — which is the
21631
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21632
+ *
21633
+ * The ARRAY shape survives because the stored settings and the attach payload
21634
+ * already speak it on every camera of every fleet, and a cap input that
21635
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21636
+ * in the one direction that costs an operator their cameras. So the wire stays
21637
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21638
+ * element rather than refused, and `max(1)` is what every consumer can then
21639
+ * rely on.
21640
+ *
21641
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21642
+ * a camera an operator left with no root detector — and `planDetectionSources`
21643
+ * has always said so: inventing a root for them is how a default acts without
21644
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21645
+ * suite caught it.
21646
+ *
21647
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21648
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21610
21649
  */
21611
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21650
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21612
21651
  /**
21613
21652
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21614
21653
  * 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-provider-homematic",
3
- "version": "1.2.104",
3
+ "version": "1.2.105",
4
4
  "description": "Homematic / HomematicIP (CCU3 / RaspberryMatic) device-provider addon for CamStack — wraps the nodehomematic library",
5
5
  "keywords": [
6
6
  "camstack",