@camstack/addon-terminal 0.1.88 → 0.1.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.
package/dist/addon.js CHANGED
@@ -18764,11 +18764,30 @@ var SensorEventSchema = object({
18764
18764
  value: record(string(), unknown()).nullable(),
18765
18765
  timestamp: number()
18766
18766
  });
18767
+ /**
18768
+ * One stored sighting on a track's trajectory.
18769
+ *
18770
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18771
+ * arrival order, and the two detector passes interleave, so a consumer must not
18772
+ * assume the two are the same on a row written by an older build.
18773
+ */
18767
18774
  var TrackPositionSchema = object({
18768
18775
  x: number(),
18769
18776
  y: number(),
18770
18777
  timestamp: number(),
18771
- bbox: BoundingBoxSchema
18778
+ bbox: BoundingBoxSchema,
18779
+ /**
18780
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18781
+ * pass on the analysis raster, `recovery` is the native-resolution
18782
+ * small-subject second pass (D377/D378). Both write into one array, and until
18783
+ * this field existed the only way to tell them apart was that full-frame boxes
18784
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18785
+ * Absent on rows written before D399.
18786
+ */
18787
+ source: _enum(["frame", "recovery"]).optional(),
18788
+ /** Detection score of this box, so a position can be weighed and not only
18789
+ * plotted. Absent on rows written before D399. */
18790
+ score: number().optional()
18772
18791
  });
18773
18792
  var TrackSnapshotSchema = object({
18774
18793
  timestamp: number(),
@@ -19168,14 +19187,25 @@ var TrackSchema = object({
19168
19187
  */
19169
19188
  hasRider: boolean().optional(),
19170
19189
  /**
19171
- * WHY this track ended without a NATIVE best-shot tile
19172
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
19190
+ * WHY this track ended without a NATIVE best-shot FRAME
19191
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
19192
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19173
19193
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19174
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19175
- * the late-keyFrame upgrade when a native tile lands after all. The
19176
- * operator-facing answer to "perché manca l'immagine?" on a track whose
19194
+ * `derive-returned-null tile=standin`,
19195
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
19196
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
19197
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19177
19198
  * tile is a face/plate stand-in, a raster crop, or an icon.
19178
19199
  *
19200
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19201
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19202
+ * while its key frame missed carried no reason at all — three of the four
19203
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19204
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19205
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19206
+ * lastFrame copy source`), so its absence is now on this line whatever the
19207
+ * tile ended up being.
19208
+ *
19179
19209
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19180
19210
  * that predates the field, and every track whose tile landed native all
19181
19211
  * omit it. Render nothing when absent.
@@ -25387,6 +25417,59 @@ var IdentitySampleInfoSchema = object({
25387
25417
  deviceId: number().int().optional(),
25388
25418
  base64: string().optional()
25389
25419
  });
25420
+ /**
25421
+ * One enrolled sample, judged against the gallery it lives in.
25422
+ *
25423
+ * The gallery is the one input to recognition nobody re-reads: a sample
25424
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25425
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25426
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25427
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25428
+ * where every other cross-identity pair sits under 0.50.
25429
+ */
25430
+ var IdentitySampleAuditRowSchema = object({
25431
+ sampleId: string(),
25432
+ enrolledAt: number().int(),
25433
+ deviceId: number().int().optional(),
25434
+ source: _enum(["detected", "photo"]),
25435
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25436
+ mediaKey: string().optional(),
25437
+ /**
25438
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25439
+ * across feature spaces is a well-formed float with no meaning. Every number
25440
+ * below then says nothing — it must read as "cannot say", never as an
25441
+ * accusation and never as a clean bill: this list ends in a Remove button.
25442
+ */
25443
+ comparable: boolean(),
25444
+ /** Mean cosine against this person's other samples. Null when there are none
25445
+ * to compare with — never 0, which would read as "opposite". */
25446
+ selfMean: number().nullable(),
25447
+ /** The other person this sample looks most like, when it looks like one.
25448
+ * This is the half that convicts: not looking like yourself can be a hard
25449
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25450
+ bestForeign: object({
25451
+ identityId: string(),
25452
+ name: string(),
25453
+ score: number()
25454
+ }).optional(),
25455
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25456
+ suspicion: number()
25457
+ });
25458
+ var IdentitySampleAuditSchema = object({
25459
+ identityId: string(),
25460
+ name: string(),
25461
+ /** The cluster face model every comparison was made in. */
25462
+ modelId: string(),
25463
+ totalSamples: number().int(),
25464
+ comparableSamples: number().int(),
25465
+ flagged: number().int(),
25466
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25467
+ * only its current result. */
25468
+ flagThreshold: number(),
25469
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25470
+ * operator asked to see the gallery, not only its accusations. */
25471
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25472
+ });
25390
25473
  var FaceInfoSchema = object({
25391
25474
  faceId: string(),
25392
25475
  deviceId: number().int(),
@@ -25538,7 +25621,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25538
25621
  }), method(object({ id: string() }), _void(), {
25539
25622
  kind: "mutation",
25540
25623
  auth: "admin"
25541
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25624
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25542
25625
  identityId: string(),
25543
25626
  sampleId: string()
25544
25627
  }), _void(), {
@@ -35613,6 +35696,12 @@ Object.freeze({
35613
35696
  addonId: null,
35614
35697
  access: "create"
35615
35698
  },
35699
+ "faceGallery.auditIdentitySamples": {
35700
+ capName: "face-gallery",
35701
+ capScope: "system",
35702
+ addonId: null,
35703
+ access: "view"
35704
+ },
35616
35705
  "faceGallery.createIdentity": {
35617
35706
  capName: "face-gallery",
35618
35707
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -18741,11 +18741,30 @@ var SensorEventSchema = object({
18741
18741
  value: record(string(), unknown()).nullable(),
18742
18742
  timestamp: number()
18743
18743
  });
18744
+ /**
18745
+ * One stored sighting on a track's trajectory.
18746
+ *
18747
+ * The array these live in is returned in TIME order (D399) — it is APPENDED in
18748
+ * arrival order, and the two detector passes interleave, so a consumer must not
18749
+ * assume the two are the same on a row written by an older build.
18750
+ */
18744
18751
  var TrackPositionSchema = object({
18745
18752
  x: number(),
18746
18753
  y: number(),
18747
18754
  timestamp: number(),
18748
- bbox: BoundingBoxSchema
18755
+ bbox: BoundingBoxSchema,
18756
+ /**
18757
+ * Which detector pass measured this box (D399): `frame` is the full-frame
18758
+ * pass on the analysis raster, `recovery` is the native-resolution
18759
+ * small-subject second pass (D377/D378). Both write into one array, and until
18760
+ * this field existed the only way to tell them apart was that full-frame boxes
18761
+ * are exact multiples of 1.2 while recovery boxes are full-precision floats.
18762
+ * Absent on rows written before D399.
18763
+ */
18764
+ source: _enum(["frame", "recovery"]).optional(),
18765
+ /** Detection score of this box, so a position can be weighed and not only
18766
+ * plotted. Absent on rows written before D399. */
18767
+ score: number().optional()
18749
18768
  });
18750
18769
  var TrackSnapshotSchema = object({
18751
18770
  timestamp: number(),
@@ -19145,14 +19164,25 @@ var TrackSchema = object({
19145
19164
  */
19146
19165
  hasRider: boolean().optional(),
19147
19166
  /**
19148
- * WHY this track ended without a NATIVE best-shot tile
19149
- * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md)) —
19167
+ * WHY this track ended without a NATIVE best-shot FRAME
19168
+ * ([D276](../decisions/adr-0276-a-stand-in-tile-is-provisional-and-a-close-says-why.md),
19169
+ * widened by [D400](../decisions/adr-0400-the-picture-is-judged-on-what-is-delivered.md)) —
19150
19170
  * a composed token line (`no-key-frame capture=keyframe:native-missx4`,
19151
- * `derive-returned-null tile=standin`, …) written at close and CLEARED by
19152
- * the late-keyFrame upgrade when a native tile lands after all. The
19153
- * operator-facing answer to "perché manca l'immagine?" on a track whose
19171
+ * `derive-returned-null tile=standin`,
19172
+ * `native-tile tile=native no-key-frame-at-close`, …) written at close and
19173
+ * CLEARED by the late-keyFrame upgrade when a native tile lands after all.
19174
+ * The operator-facing answer to "perché manca l'immagine?" on a track whose
19154
19175
  * tile is a face/plate stand-in, a raster crop, or an icon.
19155
19176
  *
19177
+ * **`no-key-frame-at-close` (D400).** The line used to be written ONLY when
19178
+ * the TILE ranked below native, so a track whose thumbnail landed natively
19179
+ * while its key frame missed carried no reason at all — three of the four
19180
+ * `MISSING_KEYFRAME` tracks in the 2026-09-07 operator audit were exactly
19181
+ * that shape, and their "niente ultimo" had no cause anywhere on the row.
19182
+ * The key frame is the head of a cascade (`keyFrame ⇒ keyFrameSmall ⇒ the
19183
+ * lastFrame copy source`), so its absence is now on this line whatever the
19184
+ * tile ended up being.
19185
+ *
19156
19186
  * **Absent ≠ "missed silently"**: a row written before the column, a hub
19157
19187
  * that predates the field, and every track whose tile landed native all
19158
19188
  * omit it. Render nothing when absent.
@@ -25364,6 +25394,59 @@ var IdentitySampleInfoSchema = object({
25364
25394
  deviceId: number().int().optional(),
25365
25395
  base64: string().optional()
25366
25396
  });
25397
+ /**
25398
+ * One enrolled sample, judged against the gallery it lives in.
25399
+ *
25400
+ * The gallery is the one input to recognition nobody re-reads: a sample
25401
+ * enrolled from the wrong face keeps voting forever, and because the matches it
25402
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
25403
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
25404
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
25405
+ * where every other cross-identity pair sits under 0.50.
25406
+ */
25407
+ var IdentitySampleAuditRowSchema = object({
25408
+ sampleId: string(),
25409
+ enrolledAt: number().int(),
25410
+ deviceId: number().int().optional(),
25411
+ source: _enum(["detected", "photo"]),
25412
+ /** The enrolled crop's media key, so the panel can show the evidence. */
25413
+ mediaKey: string().optional(),
25414
+ /**
25415
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
25416
+ * across feature spaces is a well-formed float with no meaning. Every number
25417
+ * below then says nothing — it must read as "cannot say", never as an
25418
+ * accusation and never as a clean bill: this list ends in a Remove button.
25419
+ */
25420
+ comparable: boolean(),
25421
+ /** Mean cosine against this person's other samples. Null when there are none
25422
+ * to compare with — never 0, which would read as "opposite". */
25423
+ selfMean: number().nullable(),
25424
+ /** The other person this sample looks most like, when it looks like one.
25425
+ * This is the half that convicts: not looking like yourself can be a hard
25426
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
25427
+ bestForeign: object({
25428
+ identityId: string(),
25429
+ name: string(),
25430
+ score: number()
25431
+ }).optional(),
25432
+ /** 0 = nothing to say. Higher = look at this one sooner. */
25433
+ suspicion: number()
25434
+ });
25435
+ var IdentitySampleAuditSchema = object({
25436
+ identityId: string(),
25437
+ name: string(),
25438
+ /** The cluster face model every comparison was made in. */
25439
+ modelId: string(),
25440
+ totalSamples: number().int(),
25441
+ comparableSamples: number().int(),
25442
+ flagged: number().int(),
25443
+ /** The bar `flagged` counts against, so the panel states the RULE and not
25444
+ * only its current result. */
25445
+ flagThreshold: number(),
25446
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
25447
+ * operator asked to see the gallery, not only its accusations. */
25448
+ rows: array(IdentitySampleAuditRowSchema).readonly()
25449
+ });
25367
25450
  var FaceInfoSchema = object({
25368
25451
  faceId: string(),
25369
25452
  deviceId: number().int(),
@@ -25515,7 +25598,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
25515
25598
  }), method(object({ id: string() }), _void(), {
25516
25599
  kind: "mutation",
25517
25600
  auth: "admin"
25518
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
25601
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
25519
25602
  identityId: string(),
25520
25603
  sampleId: string()
25521
25604
  }), _void(), {
@@ -35590,6 +35673,12 @@ Object.freeze({
35590
35673
  addonId: null,
35591
35674
  access: "create"
35592
35675
  },
35676
+ "faceGallery.auditIdentitySamples": {
35677
+ capName: "face-gallery",
35678
+ capScope: "system",
35679
+ addonId: null,
35680
+ access: "view"
35681
+ },
35593
35682
  "faceGallery.createIdentity": {
35594
35683
  capName: "face-gallery",
35595
35684
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-terminal",
3
- "version": "0.1.88",
3
+ "version": "0.1.90",
4
4
  "description": "Interactive terminal sessions (pty + xterm) as a CamStack addon",
5
5
  "keywords": [
6
6
  "camstack",