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