@camstack/addon-agent-ui 1.2.88 → 1.2.90

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.
Files changed (2) hide show
  1. package/dist/addon.js +97 -8
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -18381,11 +18381,30 @@ var SensorEventSchema = object({
18381
18381
  value: record(string(), unknown()).nullable(),
18382
18382
  timestamp: number()
18383
18383
  });
18384
+ /**
18385
+ * One stored sighting on a track's trajectory.
18386
+ *
18387
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18388
+ * arrival order, and the two detector passes interleave, so a consumer must not
18389
+ * assume the two are the same on a row written by an older build.
18390
+ */
18384
18391
  var TrackPositionSchema = object({
18385
18392
  x: number(),
18386
18393
  y: number(),
18387
18394
  timestamp: number(),
18388
- bbox: BoundingBoxSchema
18395
+ bbox: BoundingBoxSchema,
18396
+ /**
18397
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18398
+ * pass on the analysis raster, `recovery` is the native-resolution
18399
+ * small-subject second pass (D377/D378). Both write into one array, and until
18400
+ * this field existed the only way to tell them apart was that full-frame boxes
18401
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18402
+ * Absent on rows written before D399.
18403
+ */
18404
+ source: _enum(["frame", "recovery"]).optional(),
18405
+ /** Detection score of this box, so a position can be weighed and not only
18406
+ * plotted. Absent on rows written before D399. */
18407
+ score: number().optional()
18389
18408
  });
18390
18409
  var TrackSnapshotSchema = object({
18391
18410
  timestamp: number(),
@@ -18785,14 +18804,25 @@ var TrackSchema = object({
18785
18804
  */
18786
18805
  hasRider: boolean().optional(),
18787
18806
  /**
18788
- * WHY this track ended without a NATIVE best-shot tile
18789
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
18807
+ * WHY this track ended without a NATIVE best-shot FRAME
18808
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
18809
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
18790
18810
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
18791
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
18792
- * the late-keyFrame upgrade when a native tile lands after all. The
18793
- * operator-facing answer to "perché manca l'immagine?" on a track whose
18811
+ * `derive-returned-null tile=standin`,
18812
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
18813
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
18814
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
18794
18815
  * tile is a face/plate stand-in, a raster crop, or an icon.
18795
18816
  *
18817
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
18818
+ * the TILE ranked below native, so a track whose thumbnail landed natively
18819
+ * while its key frame missed carried no reason at all — three of the four
18820
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
18821
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
18822
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
18823
+ * lastFrame copy source`), so its absence is now on this line whatever the
18824
+ * tile ended up being.
18825
+ *
18796
18826
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
18797
18827
  * that predates the field, and every track whose tile landed native all
18798
18828
  * omit it. Render nothing when absent.
@@ -24126,6 +24156,59 @@ var IdentitySampleInfoSchema = object({
24126
24156
  deviceId: number().int().optional(),
24127
24157
  base64: string().optional()
24128
24158
  });
24159
+ /**
24160
+ * One enrolled sample, judged against the gallery it lives in.
24161
+ *
24162
+ * The gallery is the one input to recognition nobody re-reads: a sample
24163
+ * enrolled from the wrong face keeps voting forever, and because the matches it
24164
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
24165
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
24166
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
24167
+ * where every other cross-identity pair sits under 0.50.
24168
+ */
24169
+ var IdentitySampleAuditRowSchema = object({
24170
+ sampleId: string(),
24171
+ enrolledAt: number().int(),
24172
+ deviceId: number().int().optional(),
24173
+ source: _enum(["detected", "photo"]),
24174
+ /** The enrolled crop's media key, so the panel can show the evidence. */
24175
+ mediaKey: string().optional(),
24176
+ /**
24177
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
24178
+ * across feature spaces is a well-formed float with no meaning. Every number
24179
+ * below then says nothing — it must read as "cannot say", never as an
24180
+ * accusation and never as a clean bill: this list ends in a Remove button.
24181
+ */
24182
+ comparable: boolean(),
24183
+ /** Mean cosine against this person's other samples. Null when there are none
24184
+ * to compare with — never 0, which would read as "opposite". */
24185
+ selfMean: number().nullable(),
24186
+ /** The other person this sample looks most like, when it looks like one.
24187
+ * This is the half that convicts: not looking like yourself can be a hard
24188
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
24189
+ bestForeign: object({
24190
+ identityId: string(),
24191
+ name: string(),
24192
+ score: number()
24193
+ }).optional(),
24194
+ /** 0 = nothing to say. Higher = look at this one sooner. */
24195
+ suspicion: number()
24196
+ });
24197
+ var IdentitySampleAuditSchema = object({
24198
+ identityId: string(),
24199
+ name: string(),
24200
+ /** The cluster face model every comparison was made in. */
24201
+ modelId: string(),
24202
+ totalSamples: number().int(),
24203
+ comparableSamples: number().int(),
24204
+ flagged: number().int(),
24205
+ /** The bar `flagged` counts against, so the panel states the RULE and not
24206
+ * only its current result. */
24207
+ flagThreshold: number(),
24208
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
24209
+ * operator asked to see the gallery, not only its accusations. */
24210
+ rows: array(IdentitySampleAuditRowSchema).readonly()
24211
+ });
24129
24212
  var FaceInfoSchema = object({
24130
24213
  faceId: string(),
24131
24214
  deviceId: number().int(),
@@ -24277,7 +24360,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
24277
24360
  }), method(object({ id: string() }), _void(), {
24278
24361
  kind: "mutation",
24279
24362
  auth: "admin"
24280
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
24363
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
24281
24364
  identityId: string(),
24282
24365
  sampleId: string()
24283
24366
  }), _void(), {
@@ -31504,6 +31587,12 @@ Object.freeze({
31504
31587
  addonId: null,
31505
31588
  access: "create"
31506
31589
  },
31590
+ "faceGallery.auditIdentitySamples": {
31591
+ capName: "face-gallery",
31592
+ capScope: "system",
31593
+ addonId: null,
31594
+ access: "view"
31595
+ },
31507
31596
  "faceGallery.createIdentity": {
31508
31597
  capName: "face-gallery",
31509
31598
  capScope: "system",
@@ -38145,7 +38234,7 @@ var AgentUIAddon = class extends BaseAddon {
38145
38234
  capability: adminUiCapability,
38146
38235
  provider: {
38147
38236
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
38148
- getVersion: async () => ({ version: "1.2.88" })
38237
+ getVersion: async () => ({ version: "1.2.90" })
38149
38238
  }
38150
38239
  }];
38151
38240
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.88",
3
+ "version": "1.2.90",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",