@camstack/addon-export-google 0.1.67 → 0.1.69

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.
@@ -19321,13 +19321,26 @@ var TrackAudioLabelSchema = object({
19321
19321
  * - `audio` — an audio event on the camera itself that was anomalous for
19322
19322
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19323
19323
  *
19324
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19325
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19326
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19327
+ * detector.
19328
+ *
19329
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19330
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19331
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19332
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19333
+ * could not name.
19334
+ *
19324
19335
  * The spatial subsystems (tracker association, occupancy count, re-id /
19325
19336
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19326
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19327
- * check silently readmits every source added after it was written.
19337
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19338
+ * `!== 'sensor'` check silently readmits every source added after it was
19339
+ * written.
19328
19340
  */
19329
19341
  var TrackSourceSchema = _enum([
19330
19342
  "pipeline",
19343
+ "onboard",
19331
19344
  "sensor",
19332
19345
  "audio"
19333
19346
  ]);
@@ -19915,6 +19928,7 @@ var MediaFileKindEnum = _enum([
19915
19928
  "keyFrame",
19916
19929
  "keyFrameSmall",
19917
19930
  "thumbnailSmall",
19931
+ "confirmationCrop",
19918
19932
  "sceneFrame"
19919
19933
  ]);
19920
19934
  /**
@@ -21409,13 +21423,39 @@ var MotionSourceEnum = _enum([
21409
21423
  */
21410
21424
  var MotionSourcesSchema = array(MotionSourceEnum);
21411
21425
  /**
21412
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21413
- * post-analysis already tags every detection with (`DetectionSource`) rather
21414
- * than a second spelling of the same two ideas — the value an operator picks
21415
- * here is the value that comes back on the track, the overlay and the debug
21416
- * row.
21426
+ * Which root detector a camera runs — EXACTLY ONE.
21427
+ *
21428
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21429
+ * with (`DetectionSource`) rather than a second spelling of the same two
21430
+ * ideas: the value an operator picks here is the value that comes back on the
21431
+ * track, the overlay and the debug row.
21432
+ *
21433
+ * ## Why one, and why it is still an array
21434
+ *
21435
+ * Two roots on one camera is a capability nobody asked for and the operator has
21436
+ * since ruled out. It was never free: both planes feed the SAME per-device
21437
+ * stationary registry, both can promote the same parked object, and the two
21438
+ * detectors disagree about the same box by construction — which is the
21439
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21440
+ *
21441
+ * The ARRAY shape survives because the stored settings and the attach payload
21442
+ * already speak it on every camera of every fleet, and a cap input that
21443
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21444
+ * in the one direction that costs an operator their cameras. So the wire stays
21445
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21446
+ * element rather than refused, and `max(1)` is what every consumer can then
21447
+ * rely on.
21448
+ *
21449
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21450
+ * a camera an operator left with no root detector — and `planDetectionSources`
21451
+ * has always said so: inventing a root for them is how a default acts without
21452
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21453
+ * suite caught it.
21454
+ *
21455
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21456
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21417
21457
  */
21418
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21458
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21419
21459
  /**
21420
21460
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21421
21461
  * so cap-side consumers (the orchestrator forward, the runner addon's
@@ -19317,13 +19317,26 @@ var TrackAudioLabelSchema = object({
19317
19317
  * - `audio` — an audio event on the camera itself that was anomalous for
19318
19318
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19319
19319
  *
19320
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19321
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19322
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19323
+ * detector.
19324
+ *
19325
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19326
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19327
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19328
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19329
+ * could not name.
19330
+ *
19320
19331
  * The spatial subsystems (tracker association, occupancy count, re-id /
19321
19332
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19322
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19323
- * check silently readmits every source added after it was written.
19333
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19334
+ * `!== 'sensor'` check silently readmits every source added after it was
19335
+ * written.
19324
19336
  */
19325
19337
  var TrackSourceSchema = _enum([
19326
19338
  "pipeline",
19339
+ "onboard",
19327
19340
  "sensor",
19328
19341
  "audio"
19329
19342
  ]);
@@ -19911,6 +19924,7 @@ var MediaFileKindEnum = _enum([
19911
19924
  "keyFrame",
19912
19925
  "keyFrameSmall",
19913
19926
  "thumbnailSmall",
19927
+ "confirmationCrop",
19914
19928
  "sceneFrame"
19915
19929
  ]);
19916
19930
  /**
@@ -21405,13 +21419,39 @@ var MotionSourceEnum = _enum([
21405
21419
  */
21406
21420
  var MotionSourcesSchema = array(MotionSourceEnum);
21407
21421
  /**
21408
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21409
- * post-analysis already tags every detection with (`DetectionSource`) rather
21410
- * than a second spelling of the same two ideas — the value an operator picks
21411
- * here is the value that comes back on the track, the overlay and the debug
21412
- * row.
21422
+ * Which root detector a camera runs — EXACTLY ONE.
21423
+ *
21424
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21425
+ * with (`DetectionSource`) rather than a second spelling of the same two
21426
+ * ideas: the value an operator picks here is the value that comes back on the
21427
+ * track, the overlay and the debug row.
21428
+ *
21429
+ * ## Why one, and why it is still an array
21430
+ *
21431
+ * Two roots on one camera is a capability nobody asked for and the operator has
21432
+ * since ruled out. It was never free: both planes feed the SAME per-device
21433
+ * stationary registry, both can promote the same parked object, and the two
21434
+ * detectors disagree about the same box by construction — which is the
21435
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21436
+ *
21437
+ * The ARRAY shape survives because the stored settings and the attach payload
21438
+ * already speak it on every camera of every fleet, and a cap input that
21439
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21440
+ * in the one direction that costs an operator their cameras. So the wire stays
21441
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21442
+ * element rather than refused, and `max(1)` is what every consumer can then
21443
+ * rely on.
21444
+ *
21445
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21446
+ * a camera an operator left with no root detector — and `planDetectionSources`
21447
+ * has always said so: inventing a root for them is how a default acts without
21448
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21449
+ * suite caught it.
21450
+ *
21451
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21452
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21413
21453
  */
21414
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21454
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21415
21455
  /**
21416
21456
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21417
21457
  * 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-export-google",
3
- "version": "0.1.67",
3
+ "version": "0.1.69",
4
4
  "description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
5
5
  "keywords": [
6
6
  "camstack",