@camstack/addon-provider-rtsp 1.2.103 → 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
@@ -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
  ]);
@@ -20088,6 +20101,7 @@ var MediaFileKindEnum = _enum([
20088
20101
  "keyFrame",
20089
20102
  "keyFrameSmall",
20090
20103
  "thumbnailSmall",
20104
+ "confirmationCrop",
20091
20105
  "sceneFrame"
20092
20106
  ]);
20093
20107
  /**
@@ -21582,13 +21596,39 @@ var MotionSourceEnum = _enum([
21582
21596
  */
21583
21597
  var MotionSourcesSchema = array(MotionSourceEnum);
21584
21598
  /**
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.
21599
+ * Which root detector a camera runs EXACTLY ONE.
21600
+ *
21601
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21602
+ * with (`DetectionSource`) rather than a second spelling of the same two
21603
+ * ideas: the value an operator picks here is the value that comes back on the
21604
+ * track, the overlay and the debug row.
21605
+ *
21606
+ * ## Why one, and why it is still an array
21607
+ *
21608
+ * Two roots on one camera is a capability nobody asked for and the operator has
21609
+ * since ruled out. It was never free: both planes feed the SAME per-device
21610
+ * stationary registry, both can promote the same parked object, and the two
21611
+ * detectors disagree about the same box by construction — which is the
21612
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21613
+ *
21614
+ * The ARRAY shape survives because the stored settings and the attach payload
21615
+ * already speak it on every camera of every fleet, and a cap input that
21616
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21617
+ * in the one direction that costs an operator their cameras. So the wire stays
21618
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21619
+ * element rather than refused, and `max(1)` is what every consumer can then
21620
+ * rely on.
21621
+ *
21622
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21623
+ * a camera an operator left with no root detector — and `planDetectionSources`
21624
+ * has always said so: inventing a root for them is how a default acts without
21625
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21626
+ * suite caught it.
21627
+ *
21628
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21629
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21590
21630
  */
21591
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21631
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21592
21632
  /**
21593
21633
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21594
21634
  * 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
  ]);
@@ -20064,6 +20077,7 @@ var MediaFileKindEnum = _enum([
20064
20077
  "keyFrame",
20065
20078
  "keyFrameSmall",
20066
20079
  "thumbnailSmall",
20080
+ "confirmationCrop",
20067
20081
  "sceneFrame"
20068
20082
  ]);
20069
20083
  /**
@@ -21558,13 +21572,39 @@ var MotionSourceEnum = _enum([
21558
21572
  */
21559
21573
  var MotionSourcesSchema = array(MotionSourceEnum);
21560
21574
  /**
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.
21575
+ * Which root detector a camera runs EXACTLY ONE.
21576
+ *
21577
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21578
+ * with (`DetectionSource`) rather than a second spelling of the same two
21579
+ * ideas: the value an operator picks here is the value that comes back on the
21580
+ * track, the overlay and the debug row.
21581
+ *
21582
+ * ## Why one, and why it is still an array
21583
+ *
21584
+ * Two roots on one camera is a capability nobody asked for and the operator has
21585
+ * since ruled out. It was never free: both planes feed the SAME per-device
21586
+ * stationary registry, both can promote the same parked object, and the two
21587
+ * detectors disagree about the same box by construction — which is the
21588
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21589
+ *
21590
+ * The ARRAY shape survives because the stored settings and the attach payload
21591
+ * already speak it on every camera of every fleet, and a cap input that
21592
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21593
+ * in the one direction that costs an operator their cameras. So the wire stays
21594
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21595
+ * element rather than refused, and `max(1)` is what every consumer can then
21596
+ * rely on.
21597
+ *
21598
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21599
+ * a camera an operator left with no root detector — and `planDetectionSources`
21600
+ * has always said so: inventing a root for them is how a default acts without
21601
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21602
+ * suite caught it.
21603
+ *
21604
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21605
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21566
21606
  */
21567
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21607
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21568
21608
  /**
21569
21609
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21570
21610
  * 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.105",
4
4
  "description": "Generic RTSP camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",