@camstack/addon-terminal 0.1.108 → 0.1.110

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
@@ -19456,13 +19456,26 @@ var TrackAudioLabelSchema = object({
19456
19456
  * - `audio` — an audio event on the camera itself that was anomalous for
19457
19457
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19458
19458
  *
19459
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19460
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19461
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19462
+ * detector.
19463
+ *
19464
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19465
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19466
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19467
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19468
+ * could not name.
19469
+ *
19459
19470
  * The spatial subsystems (tracker association, occupancy count, re-id /
19460
19471
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19461
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19462
- * check silently readmits every source added after it was written.
19472
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19473
+ * `!== 'sensor'` check silently readmits every source added after it was
19474
+ * written.
19463
19475
  */
19464
19476
  var TrackSourceSchema = _enum([
19465
19477
  "pipeline",
19478
+ "onboard",
19466
19479
  "sensor",
19467
19480
  "audio"
19468
19481
  ]);
@@ -20050,6 +20063,7 @@ var MediaFileKindEnum = _enum([
20050
20063
  "keyFrame",
20051
20064
  "keyFrameSmall",
20052
20065
  "thumbnailSmall",
20066
+ "confirmationCrop",
20053
20067
  "sceneFrame"
20054
20068
  ]);
20055
20069
  /**
@@ -21544,13 +21558,39 @@ var MotionSourceEnum = _enum([
21544
21558
  */
21545
21559
  var MotionSourcesSchema = array(MotionSourceEnum);
21546
21560
  /**
21547
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21548
- * post-analysis already tags every detection with (`DetectionSource`) rather
21549
- * than a second spelling of the same two ideas the value an operator picks
21550
- * here is the value that comes back on the track, the overlay and the debug
21551
- * row.
21561
+ * Which root detector a camera runs EXACTLY ONE.
21562
+ *
21563
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21564
+ * with (`DetectionSource`) rather than a second spelling of the same two
21565
+ * ideas: the value an operator picks here is the value that comes back on the
21566
+ * track, the overlay and the debug row.
21567
+ *
21568
+ * ## Why one, and why it is still an array
21569
+ *
21570
+ * Two roots on one camera is a capability nobody asked for and the operator has
21571
+ * since ruled out. It was never free: both planes feed the SAME per-device
21572
+ * stationary registry, both can promote the same parked object, and the two
21573
+ * detectors disagree about the same box by construction — which is the
21574
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21575
+ *
21576
+ * The ARRAY shape survives because the stored settings and the attach payload
21577
+ * already speak it on every camera of every fleet, and a cap input that
21578
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21579
+ * in the one direction that costs an operator their cameras. So the wire stays
21580
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21581
+ * element rather than refused, and `max(1)` is what every consumer can then
21582
+ * rely on.
21583
+ *
21584
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21585
+ * a camera an operator left with no root detector — and `planDetectionSources`
21586
+ * has always said so: inventing a root for them is how a default acts without
21587
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21588
+ * suite caught it.
21589
+ *
21590
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21591
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21552
21592
  */
21553
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21593
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21554
21594
  /**
21555
21595
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21556
21596
  * so cap-side consumers (the orchestrator forward, the runner addon's
package/dist/addon.mjs CHANGED
@@ -19433,13 +19433,26 @@ var TrackAudioLabelSchema = object({
19433
19433
  * - `audio` — an audio event on the camera itself that was anomalous for
19434
19434
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19435
19435
  *
19436
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19437
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19438
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19439
+ * detector.
19440
+ *
19441
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19442
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19443
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19444
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19445
+ * could not name.
19446
+ *
19436
19447
  * The spatial subsystems (tracker association, occupancy count, re-id /
19437
19448
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19438
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19439
- * check silently readmits every source added after it was written.
19449
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19450
+ * `!== 'sensor'` check silently readmits every source added after it was
19451
+ * written.
19440
19452
  */
19441
19453
  var TrackSourceSchema = _enum([
19442
19454
  "pipeline",
19455
+ "onboard",
19443
19456
  "sensor",
19444
19457
  "audio"
19445
19458
  ]);
@@ -20027,6 +20040,7 @@ var MediaFileKindEnum = _enum([
20027
20040
  "keyFrame",
20028
20041
  "keyFrameSmall",
20029
20042
  "thumbnailSmall",
20043
+ "confirmationCrop",
20030
20044
  "sceneFrame"
20031
20045
  ]);
20032
20046
  /**
@@ -21521,13 +21535,39 @@ var MotionSourceEnum = _enum([
21521
21535
  */
21522
21536
  var MotionSourcesSchema = array(MotionSourceEnum);
21523
21537
  /**
21524
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21525
- * post-analysis already tags every detection with (`DetectionSource`) rather
21526
- * than a second spelling of the same two ideas the value an operator picks
21527
- * here is the value that comes back on the track, the overlay and the debug
21528
- * row.
21538
+ * Which root detector a camera runs EXACTLY ONE.
21539
+ *
21540
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21541
+ * with (`DetectionSource`) rather than a second spelling of the same two
21542
+ * ideas: the value an operator picks here is the value that comes back on the
21543
+ * track, the overlay and the debug row.
21544
+ *
21545
+ * ## Why one, and why it is still an array
21546
+ *
21547
+ * Two roots on one camera is a capability nobody asked for and the operator has
21548
+ * since ruled out. It was never free: both planes feed the SAME per-device
21549
+ * stationary registry, both can promote the same parked object, and the two
21550
+ * detectors disagree about the same box by construction — which is the
21551
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21552
+ *
21553
+ * The ARRAY shape survives because the stored settings and the attach payload
21554
+ * already speak it on every camera of every fleet, and a cap input that
21555
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21556
+ * in the one direction that costs an operator their cameras. So the wire stays
21557
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21558
+ * element rather than refused, and `max(1)` is what every consumer can then
21559
+ * rely on.
21560
+ *
21561
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21562
+ * a camera an operator left with no root detector — and `planDetectionSources`
21563
+ * has always said so: inventing a root for them is how a default acts without
21564
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21565
+ * suite caught it.
21566
+ *
21567
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21568
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21529
21569
  */
21530
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21570
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21531
21571
  /**
21532
21572
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21533
21573
  * 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-terminal",
3
- "version": "0.1.108",
3
+ "version": "0.1.110",
4
4
  "description": "Interactive terminal sessions (pty + xterm) as a CamStack addon",
5
5
  "keywords": [
6
6
  "camstack",