@camstack/addon-provider-gree 0.2.102 → 0.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/addon.js CHANGED
@@ -19441,13 +19441,26 @@ var TrackAudioLabelSchema = object({
19441
19441
  * - `audio` — an audio event on the camera itself that was anomalous for
19442
19442
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19443
19443
  *
19444
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19445
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19446
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19447
+ * detector.
19448
+ *
19449
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19450
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19451
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19452
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19453
+ * could not name.
19454
+ *
19444
19455
  * The spatial subsystems (tracker association, occupancy count, re-id /
19445
19456
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19446
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19447
- * check silently readmits every source added after it was written.
19457
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19458
+ * `!== 'sensor'` check silently readmits every source added after it was
19459
+ * written.
19448
19460
  */
19449
19461
  var TrackSourceSchema = _enum([
19450
19462
  "pipeline",
19463
+ "onboard",
19451
19464
  "sensor",
19452
19465
  "audio"
19453
19466
  ]);
@@ -20035,6 +20048,7 @@ var MediaFileKindEnum = _enum([
20035
20048
  "keyFrame",
20036
20049
  "keyFrameSmall",
20037
20050
  "thumbnailSmall",
20051
+ "confirmationCrop",
20038
20052
  "sceneFrame"
20039
20053
  ]);
20040
20054
  /**
@@ -21529,13 +21543,39 @@ var MotionSourceEnum = _enum([
21529
21543
  */
21530
21544
  var MotionSourcesSchema = array(MotionSourceEnum);
21531
21545
  /**
21532
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21533
- * post-analysis already tags every detection with (`DetectionSource`) rather
21534
- * than a second spelling of the same two ideas — the value an operator picks
21535
- * here is the value that comes back on the track, the overlay and the debug
21536
- * row.
21546
+ * Which root detector a camera runs — EXACTLY ONE.
21547
+ *
21548
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21549
+ * with (`DetectionSource`) rather than a second spelling of the same two
21550
+ * ideas: the value an operator picks here is the value that comes back on the
21551
+ * track, the overlay and the debug row.
21552
+ *
21553
+ * ## Why one, and why it is still an array
21554
+ *
21555
+ * Two roots on one camera is a capability nobody asked for and the operator has
21556
+ * since ruled out. It was never free: both planes feed the SAME per-device
21557
+ * stationary registry, both can promote the same parked object, and the two
21558
+ * detectors disagree about the same box by construction — which is the
21559
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21560
+ *
21561
+ * The ARRAY shape survives because the stored settings and the attach payload
21562
+ * already speak it on every camera of every fleet, and a cap input that
21563
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21564
+ * in the one direction that costs an operator their cameras. So the wire stays
21565
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21566
+ * element rather than refused, and `max(1)` is what every consumer can then
21567
+ * rely on.
21568
+ *
21569
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21570
+ * a camera an operator left with no root detector — and `planDetectionSources`
21571
+ * has always said so: inventing a root for them is how a default acts without
21572
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21573
+ * suite caught it.
21574
+ *
21575
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21576
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21537
21577
  */
21538
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21578
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21539
21579
  /**
21540
21580
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21541
21581
  * so cap-side consumers (the orchestrator forward, the runner addon's
package/dist/addon.mjs CHANGED
@@ -19440,13 +19440,26 @@ var TrackAudioLabelSchema = object({
19440
19440
  * - `audio` — an audio event on the camera itself that was anomalous for
19441
19441
  * THAT camera, loud, and heard while nothing visual was happening (D62).
19442
19442
  *
19443
+ * - `onboard` — the CAMERA's own firmware, paired with a decoded frame in
19444
+ * that frame's pixel space. A real root detector and a SPATIAL one: its
19445
+ * boxes are the same kind of fact `pipeline`'s are, produced by a different
19446
+ * detector.
19447
+ *
19448
+ * `onboard` was missing here while `DetectionSourceSchema` already had it, so
19449
+ * a persisted onboard track failed `safeParse` on read and came back with NO
19450
+ * source at all — which `isSpatialTrack` then admitted by accident, through the
19451
+ * `undefined` arm rather than by anybody's decision, and which `excludeSources`
19452
+ * could not name.
19453
+ *
19443
19454
  * The spatial subsystems (tracker association, occupancy count, re-id /
19444
19455
  * embedding, resurrection) MUST skip every synthetic source. Test for that
19445
- * with `isSpatialTrack`, which allow-lists `pipeline` — a `!== 'sensor'`
19446
- * check silently readmits every source added after it was written.
19456
+ * with `isSpatialTrack`, which allow-lists the spatial sources explicitly — a
19457
+ * `!== 'sensor'` check silently readmits every source added after it was
19458
+ * written.
19447
19459
  */
19448
19460
  var TrackSourceSchema = _enum([
19449
19461
  "pipeline",
19462
+ "onboard",
19450
19463
  "sensor",
19451
19464
  "audio"
19452
19465
  ]);
@@ -20034,6 +20047,7 @@ var MediaFileKindEnum = _enum([
20034
20047
  "keyFrame",
20035
20048
  "keyFrameSmall",
20036
20049
  "thumbnailSmall",
20050
+ "confirmationCrop",
20037
20051
  "sceneFrame"
20038
20052
  ]);
20039
20053
  /**
@@ -21528,13 +21542,39 @@ var MotionSourceEnum = _enum([
21528
21542
  */
21529
21543
  var MotionSourcesSchema = array(MotionSourceEnum);
21530
21544
  /**
21531
- * Which root detectors a camera runs. Deliberately the SAME vocabulary
21532
- * post-analysis already tags every detection with (`DetectionSource`) rather
21533
- * than a second spelling of the same two ideas — the value an operator picks
21534
- * here is the value that comes back on the track, the overlay and the debug
21535
- * row.
21545
+ * Which root detector a camera runs — EXACTLY ONE.
21546
+ *
21547
+ * Deliberately the SAME vocabulary post-analysis already tags every detection
21548
+ * with (`DetectionSource`) rather than a second spelling of the same two
21549
+ * ideas: the value an operator picks here is the value that comes back on the
21550
+ * track, the overlay and the debug row.
21551
+ *
21552
+ * ## Why one, and why it is still an array
21553
+ *
21554
+ * Two roots on one camera is a capability nobody asked for and the operator has
21555
+ * since ruled out. It was never free: both planes feed the SAME per-device
21556
+ * stationary registry, both can promote the same parked object, and the two
21557
+ * detectors disagree about the same box by construction — which is the
21558
+ * disagreement D505 had to arbitrate. Removing the case removes the arbitration.
21559
+ *
21560
+ * The ARRAY shape survives because the stored settings and the attach payload
21561
+ * already speak it on every camera of every fleet, and a cap input that
21562
+ * suddenly refuses a stored value makes the camera un-attachable — a fail-closed
21563
+ * in the one direction that costs an operator their cameras. So the wire stays
21564
+ * tolerant and the TYPE is exact: a longer list is truncated to its first
21565
+ * element rather than refused, and `max(1)` is what every consumer can then
21566
+ * rely on.
21567
+ *
21568
+ * AT MOST one, not exactly one. The EMPTY list is a legal, deliberate pick —
21569
+ * a camera an operator left with no root detector — and `planDetectionSources`
21570
+ * has always said so: inventing a root for them is how a default acts without
21571
+ * anybody choosing it. Tightening this to `length(1)` broke that, and the
21572
+ * suite caught it.
21573
+ *
21574
+ * Measured before tightening (2026-09-15, this fleet, 6 h of attaches): 3327
21575
+ * `["pipeline"]` and 2 `["onboard"]`. Not one camera had two.
21536
21576
  */
21537
- var DetectionSourcesSchema = array(DetectionSourceSchema);
21577
+ var DetectionSourcesSchema = preprocess((value) => Array.isArray(value) && value.length > 1 ? value.slice(0, 1) : value, array(DetectionSourceSchema).max(1));
21538
21578
  /**
21539
21579
  * Input shape for `pipeline-runner.reportMotion` cap method. Exported
21540
21580
  * 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-gree",
3
- "version": "0.2.102",
3
+ "version": "0.2.104",
4
4
  "description": "Gree air-conditioner device-provider addon for CamStack — wraps the @apocaliss92/nodegree local-UDP client (LAN discovery + AES control), exposing climate-control and fan-control",
5
5
  "keywords": [
6
6
  "camstack",