@camstack/addon-decoder-nodeav 1.2.103 → 1.2.104

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 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 `pipeline` — a `!== 'sensor'`
19177
- * check silently readmits every source added after it was written.
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
  ]);
@@ -21259,13 +21272,39 @@ var MotionSourceEnum = _enum([
21259
21272
  */
21260
21273
  var MotionSourcesSchema = array(MotionSourceEnum);
21261
21274
  /**
21262
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21263
- * post-analysis already tags every detection with (`DetectionSource`) rather
21264
- * than a second spelling of the same two ideas — the value an operator picks
21265
- * here is the value that comes back on the track, the overlay and the debug
21266
- * row.
21275
+ * Which root detector a camera runs — EXACTLY ONE.
21276
+ *
21277
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21278
+ * with (`DetectionSource`) rather than a second spelling of the same two
21279
+ * ideas: the value an operator picks here is the value that comes back on the
21280
+ * track, the overlay and the debug row.
21281
+ *
21282
+ * ## Why one, and why it is still an array
21283
+ *
21284
+ * Two roots on one camera is a capability nobody asked for and the operator has
21285
+ * since ruled out. It was never free: both planes feed the SAME per-device
21286
+ * stationary registry, both can promote the same parked object, and the two
21287
+ * detectors disagree about the same box by construction — which is the
21288
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21289
+ *
21290
+ * The ARRAY shape survives because the stored settings and the attach payload
21291
+ * already speak it on every camera of every fleet, and a cap input that
21292
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21293
+ * in the one direction that costs an operator their cameras. So the wire stays
21294
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21295
+ * element rather than refused, and `max(1)` is what every consumer can then
21296
+ * rely on.
21297
+ *
21298
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21299
+ * a camera an operator left with no root detector — and `planDetectionSources`
21300
+ * has always said so: inventing a root for them is how a default acts without
21301
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21302
+ * suite caught it.
21303
+ *
21304
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21305
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21267
21306
  */
21268
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21307
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21269
21308
  /**
21270
21309
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21271
21310
  * 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 `pipeline` — a `!== 'sensor'`
19173
- * check silently readmits every source added after it was written.
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
  ]);
@@ -21255,13 +21268,39 @@ var MotionSourceEnum = _enum([
21255
21268
  */
21256
21269
  var MotionSourcesSchema = array(MotionSourceEnum);
21257
21270
  /**
21258
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21259
- * post-analysis already tags every detection with (`DetectionSource`) rather
21260
- * than a second spelling of the same two ideas — the value an operator picks
21261
- * here is the value that comes back on the track, the overlay and the debug
21262
- * row.
21271
+ * Which root detector a camera runs — EXACTLY ONE.
21272
+ *
21273
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21274
+ * with (`DetectionSource`) rather than a second spelling of the same two
21275
+ * ideas: the value an operator picks here is the value that comes back on the
21276
+ * track, the overlay and the debug row.
21277
+ *
21278
+ * ## Why one, and why it is still an array
21279
+ *
21280
+ * Two roots on one camera is a capability nobody asked for and the operator has
21281
+ * since ruled out. It was never free: both planes feed the SAME per-device
21282
+ * stationary registry, both can promote the same parked object, and the two
21283
+ * detectors disagree about the same box by construction — which is the
21284
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21285
+ *
21286
+ * The ARRAY shape survives because the stored settings and the attach payload
21287
+ * already speak it on every camera of every fleet, and a cap input that
21288
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21289
+ * in the one direction that costs an operator their cameras. So the wire stays
21290
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21291
+ * element rather than refused, and `max(1)` is what every consumer can then
21292
+ * rely on.
21293
+ *
21294
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21295
+ * a camera an operator left with no root detector — and `planDetectionSources`
21296
+ * has always said so: inventing a root for them is how a default acts without
21297
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21298
+ * suite caught it.
21299
+ *
21300
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21301
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21263
21302
  */
21264
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21303
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21265
21304
  /**
21266
21305
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21267
21306
  * 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-decoder-nodeav",
3
- "version": "1.2.103",
3
+ "version": "1.2.104",
4
4
  "description": "Standalone in-process node-av decoder addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",