@camstack/addon-provider-rtsp 1.2.103 → 1.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
@@ -19494,13 +19494,26 @@ var TrackAudioLabelSchema = object({
19494
19494
  * - `audio` — an audio event on the camera itself that was anomalous for
19495
19495
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19496
19496
  *
19497
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19498
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19499
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19500
+ * detector.
19501
+ *
19502
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19503
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19504
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19505
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19506
+ * could not name.
19507
+ *
19497
19508
  * The spatial subsystems (tracker association, occupancy count, re-id /
19498
19509
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19499
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19500
- * check silently readmits every source added after it was written.
19510
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19511
+ * `!== 'sensor'` check silently readmits every source added after it was
19512
+ * written.
19501
19513
  */
19502
19514
  var TrackSourceSchema = _enum([
19503
19515
  "pipeline",
19516
+ "onboard",
19504
19517
  "sensor",
19505
19518
  "audio"
19506
19519
  ]);
@@ -21582,13 +21595,39 @@ var MotionSourceEnum = _enum([
21582
21595
  */
21583
21596
  var MotionSourcesSchema = array(MotionSourceEnum);
21584
21597
  /**
21585
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21586
- * post-analysis already tags every detection with (`DetectionSource`) rather
21587
- * than a second spelling of the same two ideas the value an operator picks
21588
- * here is the value that comes back on the track, the overlay and the debug
21589
- * row.
21598
+ * Which root detector a camera runs EXACTLY ONE.
21599
+ *
21600
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21601
+ * with (`DetectionSource`) rather than a second spelling of the same two
21602
+ * ideas: the value an operator picks here is the value that comes back on the
21603
+ * track, the overlay and the debug row.
21604
+ *
21605
+ * ## Why one, and why it is still an array
21606
+ *
21607
+ * Two roots on one camera is a capability nobody asked for and the operator has
21608
+ * since ruled out. It was never free: both planes feed the SAME per-device
21609
+ * stationary registry, both can promote the same parked object, and the two
21610
+ * detectors disagree about the same box by construction — which is the
21611
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21612
+ *
21613
+ * The ARRAY shape survives because the stored settings and the attach payload
21614
+ * already speak it on every camera of every fleet, and a cap input that
21615
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21616
+ * in the one direction that costs an operator their cameras. So the wire stays
21617
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21618
+ * element rather than refused, and `max(1)` is what every consumer can then
21619
+ * rely on.
21620
+ *
21621
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21622
+ * a camera an operator left with no root detector — and `planDetectionSources`
21623
+ * has always said so: inventing a root for them is how a default acts without
21624
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21625
+ * suite caught it.
21626
+ *
21627
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21628
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21590
21629
  */
21591
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21630
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21592
21631
  /**
21593
21632
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21594
21633
  * so cap-side consumers (the orchestrator forward, the runner addon's
package/dist/addon.mjs CHANGED
@@ -19470,13 +19470,26 @@ var TrackAudioLabelSchema = object({
19470
19470
  * - `audio` — an audio event on the camera itself that was anomalous for
19471
19471
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19472
19472
  *
19473
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19474
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19475
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19476
+ * detector.
19477
+ *
19478
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19479
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19480
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19481
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19482
+ * could not name.
19483
+ *
19473
19484
  * The spatial subsystems (tracker association, occupancy count, re-id /
19474
19485
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19475
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19476
- * check silently readmits every source added after it was written.
19486
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19487
+ * `!== 'sensor'` check silently readmits every source added after it was
19488
+ * written.
19477
19489
  */
19478
19490
  var TrackSourceSchema = _enum([
19479
19491
  "pipeline",
19492
+ "onboard",
19480
19493
  "sensor",
19481
19494
  "audio"
19482
19495
  ]);
@@ -21558,13 +21571,39 @@ var MotionSourceEnum = _enum([
21558
21571
  */
21559
21572
  var MotionSourcesSchema = array(MotionSourceEnum);
21560
21573
  /**
21561
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21562
- * post-analysis already tags every detection with (`DetectionSource`) rather
21563
- * than a second spelling of the same two ideas the value an operator picks
21564
- * here is the value that comes back on the track, the overlay and the debug
21565
- * row.
21574
+ * Which root detector a camera runs EXACTLY ONE.
21575
+ *
21576
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21577
+ * with (`DetectionSource`) rather than a second spelling of the same two
21578
+ * ideas: the value an operator picks here is the value that comes back on the
21579
+ * track, the overlay and the debug row.
21580
+ *
21581
+ * ## Why one, and why it is still an array
21582
+ *
21583
+ * Two roots on one camera is a capability nobody asked for and the operator has
21584
+ * since ruled out. It was never free: both planes feed the SAME per-device
21585
+ * stationary registry, both can promote the same parked object, and the two
21586
+ * detectors disagree about the same box by construction — which is the
21587
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21588
+ *
21589
+ * The ARRAY shape survives because the stored settings and the attach payload
21590
+ * already speak it on every camera of every fleet, and a cap input that
21591
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21592
+ * in the one direction that costs an operator their cameras. So the wire stays
21593
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21594
+ * element rather than refused, and `max(1)` is what every consumer can then
21595
+ * rely on.
21596
+ *
21597
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21598
+ * a camera an operator left with no root detector — and `planDetectionSources`
21599
+ * has always said so: inventing a root for them is how a default acts without
21600
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21601
+ * suite caught it.
21602
+ *
21603
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21604
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21566
21605
  */
21567
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21606
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21568
21607
  /**
21569
21608
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21570
21609
  * 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-rtsp",
3
- "version": "1.2.103",
3
+ "version": "1.2.104",
4
4
  "description": "Generic RTSP camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",