@camstack/addon-provider-dreame 0.2.104 → 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 +47 -8
- package/dist/addon.mjs +47 -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
|
]);
|
|
@@ -74216,13 +74229,39 @@ var MotionSourceEnum = _enum([
|
|
|
74216
74229
|
*/
|
|
74217
74230
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
74218
74231
|
/**
|
|
74219
|
-
* Which root
|
|
74220
|
-
*
|
|
74221
|
-
*
|
|
74222
|
-
*
|
|
74223
|
-
*
|
|
74232
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
74233
|
+
*
|
|
74234
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
74235
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
74236
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
74237
|
+
* track, the overlay and the debug row.
|
|
74238
|
+
*
|
|
74239
|
+
* ## Why one, and why it is still an array
|
|
74240
|
+
*
|
|
74241
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
74242
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
74243
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
74244
|
+
* detectors disagree about the same box by construction — which is the
|
|
74245
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
74246
|
+
*
|
|
74247
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
74248
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
74249
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
74250
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
74251
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
74252
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
74253
|
+
* rely on.
|
|
74254
|
+
*
|
|
74255
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
74256
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
74257
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
74258
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
74259
|
+
* suite caught it.
|
|
74260
|
+
*
|
|
74261
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
74262
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
74224
74263
|
*/
|
|
74225
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
74264
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
74226
74265
|
/**
|
|
74227
74266
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
74228
74267
|
* 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
|
]);
|
|
@@ -74213,13 +74226,39 @@ var MotionSourceEnum = _enum([
|
|
|
74213
74226
|
*/
|
|
74214
74227
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
74215
74228
|
/**
|
|
74216
|
-
* Which root
|
|
74217
|
-
*
|
|
74218
|
-
*
|
|
74219
|
-
*
|
|
74220
|
-
*
|
|
74229
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
74230
|
+
*
|
|
74231
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
74232
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
74233
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
74234
|
+
* track, the overlay and the debug row.
|
|
74235
|
+
*
|
|
74236
|
+
* ## Why one, and why it is still an array
|
|
74237
|
+
*
|
|
74238
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
74239
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
74240
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
74241
|
+
* detectors disagree about the same box by construction — which is the
|
|
74242
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
74243
|
+
*
|
|
74244
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
74245
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
74246
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
74247
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
74248
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
74249
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
74250
|
+
* rely on.
|
|
74251
|
+
*
|
|
74252
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
74253
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
74254
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
74255
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
74256
|
+
* suite caught it.
|
|
74257
|
+
*
|
|
74258
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
74259
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
74221
74260
|
*/
|
|
74222
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
74261
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
74223
74262
|
/**
|
|
74224
74263
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
74225
74264
|
* 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.105",
|
|
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",
|