@camstack/addon-decoder-nodeav 1.2.103 → 1.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/index.js +48 -8
- package/dist/index.mjs +48 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19171,13 +19171,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19171
19171
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19172
19172
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19173
19173
|
*
|
|
19174
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19175
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19176
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19177
|
+
* detector.
|
|
19178
|
+
*
|
|
19179
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19180
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19181
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19182
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19183
|
+
* could not name.
|
|
19184
|
+
*
|
|
19174
19185
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19175
19186
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19176
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19177
|
-
* check silently readmits every source added after it was
|
|
19187
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19188
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19189
|
+
* written.
|
|
19178
19190
|
*/
|
|
19179
19191
|
var TrackSourceSchema = _enum([
|
|
19180
19192
|
"pipeline",
|
|
19193
|
+
"onboard",
|
|
19181
19194
|
"sensor",
|
|
19182
19195
|
"audio"
|
|
19183
19196
|
]);
|
|
@@ -19765,6 +19778,7 @@ var MediaFileKindEnum = _enum([
|
|
|
19765
19778
|
"keyFrame",
|
|
19766
19779
|
"keyFrameSmall",
|
|
19767
19780
|
"thumbnailSmall",
|
|
19781
|
+
"confirmationCrop",
|
|
19768
19782
|
"sceneFrame"
|
|
19769
19783
|
]);
|
|
19770
19784
|
/**
|
|
@@ -21259,13 +21273,39 @@ var MotionSourceEnum = _enum([
|
|
|
21259
21273
|
*/
|
|
21260
21274
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21261
21275
|
/**
|
|
21262
|
-
* Which root
|
|
21263
|
-
*
|
|
21264
|
-
*
|
|
21265
|
-
*
|
|
21266
|
-
*
|
|
21276
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21277
|
+
*
|
|
21278
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21279
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21280
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21281
|
+
* track, the overlay and the debug row.
|
|
21282
|
+
*
|
|
21283
|
+
* ## Why one, and why it is still an array
|
|
21284
|
+
*
|
|
21285
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21286
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21287
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21288
|
+
* detectors disagree about the same box by construction — which is the
|
|
21289
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21290
|
+
*
|
|
21291
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21292
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21293
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21294
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21295
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21296
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21297
|
+
* rely on.
|
|
21298
|
+
*
|
|
21299
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21300
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21301
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21302
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21303
|
+
* suite caught it.
|
|
21304
|
+
*
|
|
21305
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21306
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21267
21307
|
*/
|
|
21268
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21308
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21269
21309
|
/**
|
|
21270
21310
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21271
21311
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|
package/dist/index.mjs
CHANGED
|
@@ -19167,13 +19167,26 @@ var TrackAudioLabelSchema = object({
|
|
|
19167
19167
|
* - `audio` — an audio event on the camera itself that was anomalous for
|
|
19168
19168
|
* THAT camera, loud, and heard while nothing visual was happening (D62).
|
|
19169
19169
|
*
|
|
19170
|
+
* - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
|
|
19171
|
+
* that frame's pixel space. A real root detector and a SPATIAL one: its
|
|
19172
|
+
* boxes are the same kind of fact `pipeline`'s are, produced by a different
|
|
19173
|
+
* detector.
|
|
19174
|
+
*
|
|
19175
|
+
* `onboard` was missing here while `DetectionSourceSchema` already had it, so
|
|
19176
|
+
* a persisted onboard track failed `safeParse` on read and came back with NO
|
|
19177
|
+
* source at all — which `isSpatialTrack` then admitted by accident, through the
|
|
19178
|
+
* `undefined` arm rather than by anybody's decision, and which `excludeSources`
|
|
19179
|
+
* could not name.
|
|
19180
|
+
*
|
|
19170
19181
|
* The spatial subsystems (tracker association, occupancy count, re-id /
|
|
19171
19182
|
* embedding, resurrection) MUST skip every synthetic source. Test for that
|
|
19172
|
-
* with `isSpatialTrack`, which allow-lists
|
|
19173
|
-
* check silently readmits every source added after it was
|
|
19183
|
+
* with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
|
|
19184
|
+
* `!== 'sensor'` check silently readmits every source added after it was
|
|
19185
|
+
* written.
|
|
19174
19186
|
*/
|
|
19175
19187
|
var TrackSourceSchema = _enum([
|
|
19176
19188
|
"pipeline",
|
|
19189
|
+
"onboard",
|
|
19177
19190
|
"sensor",
|
|
19178
19191
|
"audio"
|
|
19179
19192
|
]);
|
|
@@ -19761,6 +19774,7 @@ var MediaFileKindEnum = _enum([
|
|
|
19761
19774
|
"keyFrame",
|
|
19762
19775
|
"keyFrameSmall",
|
|
19763
19776
|
"thumbnailSmall",
|
|
19777
|
+
"confirmationCrop",
|
|
19764
19778
|
"sceneFrame"
|
|
19765
19779
|
]);
|
|
19766
19780
|
/**
|
|
@@ -21255,13 +21269,39 @@ var MotionSourceEnum = _enum([
|
|
|
21255
21269
|
*/
|
|
21256
21270
|
var MotionSourcesSchema = array(MotionSourceEnum);
|
|
21257
21271
|
/**
|
|
21258
|
-
* Which root
|
|
21259
|
-
*
|
|
21260
|
-
*
|
|
21261
|
-
*
|
|
21262
|
-
*
|
|
21272
|
+
* Which root detector a camera runs — EXACTLY ONE.
|
|
21273
|
+
*
|
|
21274
|
+
* Deliberately the SAME vocabulary post-analysis already tags every detection
|
|
21275
|
+
* with (`DetectionSource`) rather than a second spelling of the same two
|
|
21276
|
+
* ideas: the value an operator picks here is the value that comes back on the
|
|
21277
|
+
* track, the overlay and the debug row.
|
|
21278
|
+
*
|
|
21279
|
+
* ## Why one, and why it is still an array
|
|
21280
|
+
*
|
|
21281
|
+
* Two roots on one camera is a capability nobody asked for and the operator has
|
|
21282
|
+
* since ruled out. It was never free: both planes feed the SAME per-device
|
|
21283
|
+
* stationary registry, both can promote the same parked object, and the two
|
|
21284
|
+
* detectors disagree about the same box by construction — which is the
|
|
21285
|
+
* disagreement D505 had to arbitrate. Removing the case removes the arbitration.
|
|
21286
|
+
*
|
|
21287
|
+
* The ARRAY shape survives because the stored settings and the attach payload
|
|
21288
|
+
* already speak it on every camera of every fleet, and a cap input that
|
|
21289
|
+
* suddenly refuses a stored value makes the camera un-attachable — a fail-closed
|
|
21290
|
+
* in the one direction that costs an operator their cameras. So the wire stays
|
|
21291
|
+
* tolerant and the TYPE is exact: a longer list is truncated to its first
|
|
21292
|
+
* element rather than refused, and `max(1)` is what every consumer can then
|
|
21293
|
+
* rely on.
|
|
21294
|
+
*
|
|
21295
|
+
* AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
|
|
21296
|
+
* a camera an operator left with no root detector — and `planDetectionSources`
|
|
21297
|
+
* has always said so: inventing a root for them is how a default acts without
|
|
21298
|
+
* anybody choosing it. Tightening this to `length(1)` broke that, and the
|
|
21299
|
+
* suite caught it.
|
|
21300
|
+
*
|
|
21301
|
+
* Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
|
|
21302
|
+
* `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
|
|
21263
21303
|
*/
|
|
21264
|
-
var DetectionSourcesSchema = array(DetectionSourceSchema);
|
|
21304
|
+
var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
|
|
21265
21305
|
/**
|
|
21266
21306
|
* Input shape for `pipeline-runner.reportMotion` cap method. Exported
|
|
21267
21307
|
* so cap-side consumers (the orchestrator forward, the runner addon's
|