@camstack/addon-terminal 0.1.108 → 0.1.109
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 +47 -8
- package/dist/addon.mjs +47 -8
- package/package.json +1 -1
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
|
|
19462
|
-
* check silently readmits every source added after it was
|
|
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
|
]);
|
|
@@ -21544,13 +21557,39 @@ var MotionSourceEnum = _enum([
|
|
|
21544
21557
|
*/
|
|
21545
21558
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21546
21559
|
/**
|
|
21547
|
-
* Which root
|
|
21548
|
-
*
|
|
21549
|
-
*
|
|
21550
|
-
*
|
|
21551
|
-
*
|
|
21560
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21561
|
+
*
|
|
21562
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21563
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21564
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21565
|
+
* track, the overlay and the debug row.
|
|
21566
|
+
*
|
|
21567
|
+
* ## Why one, and why it is still an array
|
|
21568
|
+
*
|
|
21569
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21570
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21571
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21572
|
+
* detectors disagree about the same box by construction — which is the
|
|
21573
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21574
|
+
*
|
|
21575
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21576
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21577
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21578
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21579
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21580
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21581
|
+
* rely on.
|
|
21582
|
+
*
|
|
21583
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21584
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21585
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21586
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21587
|
+
* suite caught it.
|
|
21588
|
+
*
|
|
21589
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21590
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21552
21591
|
*/
|
|
21553
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21592
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21554
21593
|
/**
|
|
21555
21594
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21556
21595
|
* 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
|
|
19439
|
-
* check silently readmits every source added after it was
|
|
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
|
]);
|
|
@@ -21521,13 +21534,39 @@ var MotionSourceEnum = _enum([
|
|
|
21521
21534
|
*/
|
|
21522
21535
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21523
21536
|
/**
|
|
21524
|
-
* Which root
|
|
21525
|
-
*
|
|
21526
|
-
*
|
|
21527
|
-
*
|
|
21528
|
-
*
|
|
21537
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21538
|
+
*
|
|
21539
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21540
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21541
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21542
|
+
* track, the overlay and the debug row.
|
|
21543
|
+
*
|
|
21544
|
+
* ## Why one, and why it is still an array
|
|
21545
|
+
*
|
|
21546
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21547
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21548
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21549
|
+
* detectors disagree about the same box by construction — which is the
|
|
21550
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21551
|
+
*
|
|
21552
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21553
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21554
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21555
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21556
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21557
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21558
|
+
* rely on.
|
|
21559
|
+
*
|
|
21560
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21561
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21562
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21563
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21564
|
+
* suite caught it.
|
|
21565
|
+
*
|
|
21566
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21567
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21529
21568
|
*/
|
|
21530
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21569
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21531
21570
|
/**
|
|
21532
21571
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21533
21572
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|