@camstack/addon-provider-reolink 1.2.105 → 1.2.107

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
@@ -19390,11 +19390,30 @@ var SensorEventSchema = object({
19390
19390
  value: record(string(), unknown()).nullable(),
19391
19391
  timestamp: number()
19392
19392
  });
19393
+ /**
19394
+ * One stored sighting on a track's trajectory.
19395
+ *
19396
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
19397
+ * arrival order, and the two detector passes interleave, so a consumer must not
19398
+ * assume the two are the same on a row written by an older build.
19399
+ */
19393
19400
  var TrackPositionSchema = object({
19394
19401
  x: number(),
19395
19402
  y: number(),
19396
19403
  timestamp: number(),
19397
- bbox: BoundingBoxSchema
19404
+ bbox: BoundingBoxSchema,
19405
+ /**
19406
+ * Which detector pass measured this box (D399): `frame` is the full-frame
19407
+ * pass on the analysis raster, `recovery` is the native-resolution
19408
+ * small-subject second pass (D377/D378). Both write into one array, and until
19409
+ * this field existed the only way to tell them apart was that full-frame boxes
19410
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
19411
+ * Absent on rows written before D399.
19412
+ */
19413
+ source: _enum(["frame", "recovery"]).optional(),
19414
+ /** Detection score of this box, so a position can be weighed and not only
19415
+ * plotted. Absent on rows written before D399. */
19416
+ score: number().optional()
19398
19417
  });
19399
19418
  var TrackSnapshotSchema = object({
19400
19419
  timestamp: number(),
@@ -19794,14 +19813,25 @@ var TrackSchema = object({
19794
19813
  */
19795
19814
  hasRider: boolean().optional(),
19796
19815
  /**
19797
- * WHY this track ended without a NATIVE best-shot tile
19798
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
19816
+ * WHY this track ended without a NATIVE best-shot FRAME
19817
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
19818
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19799
19819
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19800
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19801
- * the late-keyFrame upgrade when a native tile lands after all. The
19802
- * operator-facing answer to "perché manca l'immagine?" on a track whose
19820
+ * `derive-returned-null tile=standin`,
19821
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
19822
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
19823
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19803
19824
  * tile is a face/plate stand-in, a raster crop, or an icon.
19804
19825
  *
19826
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19827
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19828
+ * while its key frame missed carried no reason at all — three of the four
19829
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19830
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19831
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19832
+ * lastFrame copy source`), so its absence is now on this line whatever the
19833
+ * tile ended up being.
19834
+ *
19805
19835
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19806
19836
  * that predates the field, and every track whose tile landed native all
19807
19837
  * omit it. Render nothing when absent.
@@ -29962,8 +29992,27 @@ var PrivacyMaskRegionSchema = object({
29962
29992
  /** Current on-camera privacy state — mask master enable + zones + microphone. */
29963
29993
  var PrivacyMaskStatusSchema = object({
29964
29994
  enabled: boolean(),
29965
- /** Active zones (normalized 0..1). Length ≤ maxRegions. */
29966
- regions: array(PrivacyMaskRegionSchema),
29995
+ /**
29996
+ * Active zones (normalized 0..1). Length ≤ maxRegions.
29997
+ *
29998
+ * `null` means "no answer" — the provider has never reached this camera
29999
+ * (a cold `runtimeState` slice, a battery camera asleep) or the read
30000
+ * failed. A consumer must render it as UNKNOWN and never as "this camera
30001
+ * has no zones": those two look identical to an operator right up to the
30002
+ * moment one of them is acted on, and acting on them differs completely.
30003
+ * The switch group turned an unanswered read into *"nothing is set up for
30004
+ * it to act on"* — an instruction to go and draw a zone that already
30005
+ * exists — and this editor seeded an EMPTY canvas from it, one Save away
30006
+ * from deleting the mask it could not read.
30007
+ *
30008
+ * Empty-and-answered is `[]` and stays a real answer: this camera genuinely
30009
+ * has no zones. The distinction is the same one {@link
30010
+ * PrivacyMaskStatusSchema.shape.audioEnabled} already draws for the
30011
+ * microphone, on the very same payload — both planes come from ONE refresh,
30012
+ * so it was never coherent for one of them to be able to say "unknown"
30013
+ * while the other could not.
30014
+ */
30015
+ regions: array(PrivacyMaskRegionSchema).nullable(),
29967
30016
  /**
29968
30017
  * Is the camera capturing sound right now? Read from the camera, never from
29969
30018
  * a server-side mirror.
@@ -150510,7 +150559,7 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
150510
150559
  staleRead: "serve-and-revalidate",
150511
150560
  empty: () => ({
150512
150561
  enabled: false,
150513
- regions: [],
150562
+ regions: null,
150514
150563
  audioEnabled: null,
150515
150564
  lastFetchedAt: 0
150516
150565
  })
package/dist/addon.mjs CHANGED
@@ -19385,11 +19385,30 @@ var SensorEventSchema = object({
19385
19385
  value: record(string(), unknown()).nullable(),
19386
19386
  timestamp: number()
19387
19387
  });
19388
+ /**
19389
+ * One stored sighting on a track's trajectory.
19390
+ *
19391
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
19392
+ * arrival order, and the two detector passes interleave, so a consumer must not
19393
+ * assume the two are the same on a row written by an older build.
19394
+ */
19388
19395
  var TrackPositionSchema = object({
19389
19396
  x: number(),
19390
19397
  y: number(),
19391
19398
  timestamp: number(),
19392
- bbox: BoundingBoxSchema
19399
+ bbox: BoundingBoxSchema,
19400
+ /**
19401
+ * Which detector pass measured this box (D399): `frame` is the full-frame
19402
+ * pass on the analysis raster, `recovery` is the native-resolution
19403
+ * small-subject second pass (D377/D378). Both write into one array, and until
19404
+ * this field existed the only way to tell them apart was that full-frame boxes
19405
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
19406
+ * Absent on rows written before D399.
19407
+ */
19408
+ source: _enum(["frame", "recovery"]).optional(),
19409
+ /** Detection score of this box, so a position can be weighed and not only
19410
+ * plotted. Absent on rows written before D399. */
19411
+ score: number().optional()
19393
19412
  });
19394
19413
  var TrackSnapshotSchema = object({
19395
19414
  timestamp: number(),
@@ -19789,14 +19808,25 @@ var TrackSchema = object({
19789
19808
  */
19790
19809
  hasRider: boolean().optional(),
19791
19810
  /**
19792
- * WHY this track ended without a NATIVE best-shot tile
19793
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
19811
+ * WHY this track ended without a NATIVE best-shot FRAME
19812
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
19813
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19794
19814
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19795
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19796
- * the late-keyFrame upgrade when a native tile lands after all. The
19797
- * operator-facing answer to "perché manca l'immagine?" on a track whose
19815
+ * `derive-returned-null tile=standin`,
19816
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
19817
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
19818
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19798
19819
  * tile is a face/plate stand-in, a raster crop, or an icon.
19799
19820
  *
19821
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19822
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19823
+ * while its key frame missed carried no reason at all — three of the four
19824
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19825
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19826
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19827
+ * lastFrame copy source`), so its absence is now on this line whatever the
19828
+ * tile ended up being.
19829
+ *
19800
19830
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19801
19831
  * that predates the field, and every track whose tile landed native all
19802
19832
  * omit it. Render nothing when absent.
@@ -29957,8 +29987,27 @@ var PrivacyMaskRegionSchema = object({
29957
29987
  /** Current on-camera privacy state — mask master enable + zones + microphone. */
29958
29988
  var PrivacyMaskStatusSchema = object({
29959
29989
  enabled: boolean(),
29960
- /** Active zones (normalized 0..1). Length ≤ maxRegions. */
29961
- regions: array(PrivacyMaskRegionSchema),
29990
+ /**
29991
+ * Active zones (normalized 0..1). Length ≤ maxRegions.
29992
+ *
29993
+ * `null` means "no answer" — the provider has never reached this camera
29994
+ * (a cold `runtimeState` slice, a battery camera asleep) or the read
29995
+ * failed. A consumer must render it as UNKNOWN and never as "this camera
29996
+ * has no zones": those two look identical to an operator right up to the
29997
+ * moment one of them is acted on, and acting on them differs completely.
29998
+ * The switch group turned an unanswered read into *"nothing is set up for
29999
+ * it to act on"* — an instruction to go and draw a zone that already
30000
+ * exists — and this editor seeded an EMPTY canvas from it, one Save away
30001
+ * from deleting the mask it could not read.
30002
+ *
30003
+ * Empty-and-answered is `[]` and stays a real answer: this camera genuinely
30004
+ * has no zones. The distinction is the same one {@link
30005
+ * PrivacyMaskStatusSchema.shape.audioEnabled} already draws for the
30006
+ * microphone, on the very same payload — both planes come from ONE refresh,
30007
+ * so it was never coherent for one of them to be able to say "unknown"
30008
+ * while the other could not.
30009
+ */
30010
+ regions: array(PrivacyMaskRegionSchema).nullable(),
29962
30011
  /**
29963
30012
  * Is the camera capturing sound right now? Read from the camera, never from
29964
30013
  * a server-side mirror.
@@ -150505,7 +150554,7 @@ var ReolinkCamera = class ReolinkCamera extends BaseDevice {
150505
150554
  staleRead: "serve-and-revalidate",
150506
150555
  empty: () => ({
150507
150556
  enabled: false,
150508
- regions: [],
150557
+ regions: null,
150509
150558
  audioEnabled: null,
150510
150559
  lastFetchedAt: 0
150511
150560
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-reolink",
3
- "version": "1.2.105",
3
+ "version": "1.2.107",
4
4
  "description": "Reolink camera device provider addon for CamStack — native Baichuan protocol",
5
5
  "keywords": [
6
6
  "camstack",