@camstack/addon-provider-dreo 0.2.83 → 0.2.85

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
@@ -18799,11 +18799,30 @@ var SensorEventSchema = object({
18799
18799
  value: record(string(), unknown()).nullable(),
18800
18800
  timestamp: number()
18801
18801
  });
18802
+ /**
18803
+ * One stored sighting on a track's trajectory.
18804
+ *
18805
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18806
+ * arrival order, and the two detector passes interleave, so a consumer must not
18807
+ * assume the two are the same on a row written by an older build.
18808
+ */
18802
18809
  var TrackPositionSchema = object({
18803
18810
  x: number(),
18804
18811
  y: number(),
18805
18812
  timestamp: number(),
18806
- bbox: BoundingBoxSchema
18813
+ bbox: BoundingBoxSchema,
18814
+ /**
18815
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18816
+ * pass on the analysis raster, `recovery` is the native-resolution
18817
+ * small-subject second pass (D377/D378). Both write into one array, and until
18818
+ * this field existed the only way to tell them apart was that full-frame boxes
18819
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18820
+ * Absent on rows written before D399.
18821
+ */
18822
+ source: _enum(["frame", "recovery"]).optional(),
18823
+ /** Detection score of this box, so a position can be weighed and not only
18824
+ * plotted. Absent on rows written before D399. */
18825
+ score: number().optional()
18807
18826
  });
18808
18827
  var TrackSnapshotSchema = object({
18809
18828
  timestamp: number(),
@@ -19203,14 +19222,25 @@ var TrackSchema = object({
19203
19222
  */
19204
19223
  hasRider: boolean().optional(),
19205
19224
  /**
19206
- * WHY this track ended without a NATIVE best-shot tile
19207
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
19225
+ * WHY this track ended without a NATIVE best-shot FRAME
19226
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
19227
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19208
19228
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19209
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19210
- * the late-keyFrame upgrade when a native tile lands after all. The
19211
- * operator-facing answer to "perché manca l'immagine?" on a track whose
19229
+ * `derive-returned-null tile=standin`,
19230
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
19231
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
19232
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19212
19233
  * tile is a face/plate stand-in, a raster crop, or an icon.
19213
19234
  *
19235
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19236
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19237
+ * while its key frame missed carried no reason at all — three of the four
19238
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19239
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19240
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19241
+ * lastFrame copy source`), so its absence is now on this line whatever the
19242
+ * tile ended up being.
19243
+ *
19214
19244
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19215
19245
  * that predates the field, and every track whose tile landed native all
19216
19246
  * omit it. Render nothing when absent.
@@ -25282,6 +25312,59 @@ var IdentitySampleInfoSchema = object({
25282
25312
  deviceId: number().int().optional(),
25283
25313
  base64: string().optional()
25284
25314
  });
25315
+ /**
25316
+ * One enrolled sample, judged against the gallery it lives in.
25317
+ *
25318
+ * The gallery is the one input to recognition nobody re-reads: a sample
25319
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25320
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25321
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25322
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25323
+ * where every other cross-identity pair sits under 0.50.
25324
+ */
25325
+ var IdentitySampleAuditRowSchema = object({
25326
+ sampleId: string(),
25327
+ enrolledAt: number().int(),
25328
+ deviceId: number().int().optional(),
25329
+ source: _enum(["detected", "photo"]),
25330
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25331
+ mediaKey: string().optional(),
25332
+ /**
25333
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25334
+ * across feature spaces is a well-formed float with no meaning. Every number
25335
+ * below then says nothing — it must read as "cannot say", never as an
25336
+ * accusation and never as a clean bill: this list ends in a Remove button.
25337
+ */
25338
+ comparable: boolean(),
25339
+ /** Mean cosine against this person's other samples. Null when there are none
25340
+ * to compare with — never 0, which would read as "opposite". */
25341
+ selfMean: number().nullable(),
25342
+ /** The other person this sample looks most like, when it looks like one.
25343
+ * This is the half that convicts: not looking like yourself can be a hard
25344
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25345
+ bestForeign: object({
25346
+ identityId: string(),
25347
+ name: string(),
25348
+ score: number()
25349
+ }).optional(),
25350
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25351
+ suspicion: number()
25352
+ });
25353
+ var IdentitySampleAuditSchema = object({
25354
+ identityId: string(),
25355
+ name: string(),
25356
+ /** The cluster face model every comparison was made in. */
25357
+ modelId: string(),
25358
+ totalSamples: number().int(),
25359
+ comparableSamples: number().int(),
25360
+ flagged: number().int(),
25361
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25362
+ * only its current result. */
25363
+ flagThreshold: number(),
25364
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25365
+ * operator asked to see the gallery, not only its accusations. */
25366
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25367
+ });
25285
25368
  var FaceInfoSchema = object({
25286
25369
  faceId: string(),
25287
25370
  deviceId: number().int(),
@@ -25433,7 +25516,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25433
25516
  }), method(object({ id: string() }), _void(), {
25434
25517
  kind: "mutation",
25435
25518
  auth: "admin"
25436
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25519
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25437
25520
  identityId: string(),
25438
25521
  sampleId: string()
25439
25522
  }), _void(), {
@@ -35926,6 +36009,12 @@ Object.freeze({
35926
36009
  addonId: null,
35927
36010
  access: "create"
35928
36011
  },
36012
+ "faceGallery.auditIdentitySamples": {
36013
+ capName: "face-gallery",
36014
+ capScope: "system",
36015
+ addonId: null,
36016
+ access: "view"
36017
+ },
35929
36018
  "faceGallery.createIdentity": {
35930
36019
  capName: "face-gallery",
35931
36020
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -18800,11 +18800,30 @@ var SensorEventSchema = object({
18800
18800
  value: record(string(), unknown()).nullable(),
18801
18801
  timestamp: number()
18802
18802
  });
18803
+ /**
18804
+ * One stored sighting on a track's trajectory.
18805
+ *
18806
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18807
+ * arrival order, and the two detector passes interleave, so a consumer must not
18808
+ * assume the two are the same on a row written by an older build.
18809
+ */
18803
18810
  var TrackPositionSchema = object({
18804
18811
  x: number(),
18805
18812
  y: number(),
18806
18813
  timestamp: number(),
18807
- bbox: BoundingBoxSchema
18814
+ bbox: BoundingBoxSchema,
18815
+ /**
18816
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18817
+ * pass on the analysis raster, `recovery` is the native-resolution
18818
+ * small-subject second pass (D377/D378). Both write into one array, and until
18819
+ * this field existed the only way to tell them apart was that full-frame boxes
18820
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18821
+ * Absent on rows written before D399.
18822
+ */
18823
+ source: _enum(["frame", "recovery"]).optional(),
18824
+ /** Detection score of this box, so a position can be weighed and not only
18825
+ * plotted. Absent on rows written before D399. */
18826
+ score: number().optional()
18808
18827
  });
18809
18828
  var TrackSnapshotSchema = object({
18810
18829
  timestamp: number(),
@@ -19204,14 +19223,25 @@ var TrackSchema = object({
19204
19223
  */
19205
19224
  hasRider: boolean().optional(),
19206
19225
  /**
19207
- * WHY this track ended without a NATIVE best-shot tile
19208
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
19226
+ * WHY this track ended without a NATIVE best-shot FRAME
19227
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
19228
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19209
19229
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19210
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19211
- * the late-keyFrame upgrade when a native tile lands after all. The
19212
- * operator-facing answer to "perché manca l'immagine?" on a track whose
19230
+ * `derive-returned-null tile=standin`,
19231
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
19232
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
19233
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19213
19234
  * tile is a face/plate stand-in, a raster crop, or an icon.
19214
19235
  *
19236
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19237
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19238
+ * while its key frame missed carried no reason at all — three of the four
19239
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19240
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19241
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19242
+ * lastFrame copy source`), so its absence is now on this line whatever the
19243
+ * tile ended up being.
19244
+ *
19215
19245
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19216
19246
  * that predates the field, and every track whose tile landed native all
19217
19247
  * omit it. Render nothing when absent.
@@ -25283,6 +25313,59 @@ var IdentitySampleInfoSchema = object({
25283
25313
  deviceId: number().int().optional(),
25284
25314
  base64: string().optional()
25285
25315
  });
25316
+ /**
25317
+ * One enrolled sample, judged against the gallery it lives in.
25318
+ *
25319
+ * The gallery is the one input to recognition nobody re-reads: a sample
25320
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25321
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25322
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25323
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25324
+ * where every other cross-identity pair sits under 0.50.
25325
+ */
25326
+ var IdentitySampleAuditRowSchema = object({
25327
+ sampleId: string(),
25328
+ enrolledAt: number().int(),
25329
+ deviceId: number().int().optional(),
25330
+ source: _enum(["detected", "photo"]),
25331
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25332
+ mediaKey: string().optional(),
25333
+ /**
25334
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25335
+ * across feature spaces is a well-formed float with no meaning. Every number
25336
+ * below then says nothing — it must read as "cannot say", never as an
25337
+ * accusation and never as a clean bill: this list ends in a Remove button.
25338
+ */
25339
+ comparable: boolean(),
25340
+ /** Mean cosine against this person's other samples. Null when there are none
25341
+ * to compare with — never 0, which would read as "opposite". */
25342
+ selfMean: number().nullable(),
25343
+ /** The other person this sample looks most like, when it looks like one.
25344
+ * This is the half that convicts: not looking like yourself can be a hard
25345
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25346
+ bestForeign: object({
25347
+ identityId: string(),
25348
+ name: string(),
25349
+ score: number()
25350
+ }).optional(),
25351
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25352
+ suspicion: number()
25353
+ });
25354
+ var IdentitySampleAuditSchema = object({
25355
+ identityId: string(),
25356
+ name: string(),
25357
+ /** The cluster face model every comparison was made in. */
25358
+ modelId: string(),
25359
+ totalSamples: number().int(),
25360
+ comparableSamples: number().int(),
25361
+ flagged: number().int(),
25362
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25363
+ * only its current result. */
25364
+ flagThreshold: number(),
25365
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25366
+ * operator asked to see the gallery, not only its accusations. */
25367
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25368
+ });
25286
25369
  var FaceInfoSchema = object({
25287
25370
  faceId: string(),
25288
25371
  deviceId: number().int(),
@@ -25434,7 +25517,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25434
25517
  }), method(object({ id: string() }), _void(), {
25435
25518
  kind: "mutation",
25436
25519
  auth: "admin"
25437
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25520
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25438
25521
  identityId: string(),
25439
25522
  sampleId: string()
25440
25523
  }), _void(), {
@@ -35927,6 +36010,12 @@ Object.freeze({
35927
36010
  addonId: null,
35928
36011
  access: "create"
35929
36012
  },
36013
+ "faceGallery.auditIdentitySamples": {
36014
+ capName: "face-gallery",
36015
+ capScope: "system",
36016
+ addonId: null,
36017
+ access: "view"
36018
+ },
35930
36019
  "faceGallery.createIdentity": {
35931
36020
  capName: "face-gallery",
35932
36021
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-dreo",
3
- "version": "0.2.83",
3
+ "version": "0.2.85",
4
4
  "description": "Dreo smart-device (fan / air-circulator / purifier / heater / humidifier) device-provider addon for CamStack — wraps the @apocaliss92/nodedreo Dreo cloud client (REST + WebSocket)",
5
5
  "keywords": [
6
6
  "camstack",