@camstack/addon-provider-dreame 0.2.104 → 0.2.106
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
|
@@ -72128,13 +72128,26 @@ var TrackAudioLabelSchema = object({
|
|
|
72128
72128
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
72129
72129
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
72130
72130
|
*
|
|
72131
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
72132
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
72133
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
72134
|
+
* detector.
|
|
72135
|
+
*
|
|
72136
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
72137
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
72138
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
72139
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
72140
|
+
* could not name.
|
|
72141
|
+
*
|
|
72131
72142
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
72132
72143
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
72133
|
-
* with `isSpatialTrack`, which allow-lists
|
|
72134
|
-
* check silently readmits every source added after it was
|
|
72144
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
72145
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
72146
|
+
* written.
|
|
72135
72147
|
*/
|
|
72136
72148
|
var TrackSourceSchema = _enum([
|
|
72137
72149
|
"pipeline",
|
|
72150
|
+
"onboard",
|
|
72138
72151
|
"sensor",
|
|
72139
72152
|
"audio"
|
|
72140
72153
|
]);
|
|
@@ -72722,6 +72735,7 @@ var MediaFileKindEnum = _enum([
|
|
|
72722
72735
|
"keyFrame",
|
|
72723
72736
|
"keyFrameSmall",
|
|
72724
72737
|
"thumbnailSmall",
|
|
72738
|
+
"confirmationCrop",
|
|
72725
72739
|
"sceneFrame"
|
|
72726
72740
|
]);
|
|
72727
72741
|
/**
|
|
@@ -74216,13 +74230,39 @@ var MotionSourceEnum = _enum([
|
|
|
74216
74230
|
*/
|
|
74217
74231
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
74218
74232
|
/**
|
|
74219
|
-
* Which root
|
|
74220
|
-
*
|
|
74221
|
-
*
|
|
74222
|
-
*
|
|
74223
|
-
*
|
|
74233
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
74234
|
+
*
|
|
74235
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
74236
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
74237
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
74238
|
+
* track, the overlay and the debug row.
|
|
74239
|
+
*
|
|
74240
|
+
* ## Why one, and why it is still an array
|
|
74241
|
+
*
|
|
74242
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
74243
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
74244
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
74245
|
+
* detectors disagree about the same box by construction — which is the
|
|
74246
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
74247
|
+
*
|
|
74248
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
74249
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
74250
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
74251
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
74252
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
74253
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
74254
|
+
* rely on.
|
|
74255
|
+
*
|
|
74256
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
74257
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
74258
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
74259
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
74260
|
+
* suite caught it.
|
|
74261
|
+
*
|
|
74262
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
74263
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
74224
74264
|
*/
|
|
74225
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
74265
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
74226
74266
|
/**
|
|
74227
74267
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
74228
74268
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
package/dist/addon.mjs
CHANGED
|
@@ -72125,13 +72125,26 @@ var TrackAudioLabelSchema = object({
|
|
|
72125
72125
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
72126
72126
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
72127
72127
|
*
|
|
72128
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
72129
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
72130
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
72131
|
+
* detector.
|
|
72132
|
+
*
|
|
72133
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
72134
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
72135
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
72136
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
72137
|
+
* could not name.
|
|
72138
|
+
*
|
|
72128
72139
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
72129
72140
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
72130
|
-
* with `isSpatialTrack`, which allow-lists
|
|
72131
|
-
* check silently readmits every source added after it was
|
|
72141
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
72142
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
72143
|
+
* written.
|
|
72132
72144
|
*/
|
|
72133
72145
|
var TrackSourceSchema = _enum([
|
|
72134
72146
|
"pipeline",
|
|
72147
|
+
"onboard",
|
|
72135
72148
|
"sensor",
|
|
72136
72149
|
"audio"
|
|
72137
72150
|
]);
|
|
@@ -72719,6 +72732,7 @@ var MediaFileKindEnum = _enum([
|
|
|
72719
72732
|
"keyFrame",
|
|
72720
72733
|
"keyFrameSmall",
|
|
72721
72734
|
"thumbnailSmall",
|
|
72735
|
+
"confirmationCrop",
|
|
72722
72736
|
"sceneFrame"
|
|
72723
72737
|
]);
|
|
72724
72738
|
/**
|
|
@@ -74213,13 +74227,39 @@ var MotionSourceEnum = _enum([
|
|
|
74213
74227
|
*/
|
|
74214
74228
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
74215
74229
|
/**
|
|
74216
|
-
* Which root
|
|
74217
|
-
*
|
|
74218
|
-
*
|
|
74219
|
-
*
|
|
74220
|
-
*
|
|
74230
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
74231
|
+
*
|
|
74232
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
74233
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
74234
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
74235
|
+
* track, the overlay and the debug row.
|
|
74236
|
+
*
|
|
74237
|
+
* ## Why one, and why it is still an array
|
|
74238
|
+
*
|
|
74239
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
74240
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
74241
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
74242
|
+
* detectors disagree about the same box by construction — which is the
|
|
74243
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
74244
|
+
*
|
|
74245
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
74246
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
74247
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
74248
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
74249
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
74250
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
74251
|
+
* rely on.
|
|
74252
|
+
*
|
|
74253
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
74254
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
74255
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
74256
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
74257
|
+
* suite caught it.
|
|
74258
|
+
*
|
|
74259
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
74260
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
74221
74261
|
*/
|
|
74222
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
74262
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
74223
74263
|
/**
|
|
74224
74264
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
74225
74265
|
* 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-dreame",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.106",
|
|
4
4
|
"description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|