@camstack/addon-ai 0.4.86 → 0.4.88

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
@@ -24450,6 +24450,59 @@ var IdentitySampleInfoSchema = object({
24450
24450
  deviceId: number$1().int().optional(),
24451
24451
  base64: string().optional()
24452
24452
  });
24453
+ /**
24454
+ * One enrolled sample, judged against the gallery it lives in.
24455
+ *
24456
+ * The gallery is the one input to recognition nobody re-reads: a sample
24457
+ * enrolled from the wrong face keeps voting forever, and because the matches it
24458
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
24459
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
24460
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
24461
+ * where every other cross-identity pair sits under 0.50.
24462
+ */
24463
+ var IdentitySampleAuditRowSchema = object({
24464
+ sampleId: string(),
24465
+ enrolledAt: number$1().int(),
24466
+ deviceId: number$1().int().optional(),
24467
+ source: _enum(["detected", "photo"]),
24468
+ /** The enrolled crop's media key, so the panel can show the evidence. */
24469
+ mediaKey: string().optional(),
24470
+ /**
24471
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
24472
+ * across feature spaces is a well-formed float with no meaning. Every number
24473
+ * below then says nothing — it must read as "cannot say", never as an
24474
+ * accusation and never as a clean bill: this list ends in a Remove button.
24475
+ */
24476
+ comparable: boolean(),
24477
+ /** Mean cosine against this person's other samples. Null when there are none
24478
+ * to compare with — never 0, which would read as "opposite". */
24479
+ selfMean: number$1().nullable(),
24480
+ /** The other person this sample looks most like, when it looks like one.
24481
+ * This is the half that convicts: not looking like yourself can be a hard
24482
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
24483
+ bestForeign: object({
24484
+ identityId: string(),
24485
+ name: string(),
24486
+ score: number$1()
24487
+ }).optional(),
24488
+ /** 0 = nothing to say. Higher = look at this one sooner. */
24489
+ suspicion: number$1()
24490
+ });
24491
+ var IdentitySampleAuditSchema = object({
24492
+ identityId: string(),
24493
+ name: string(),
24494
+ /** The cluster face model every comparison was made in. */
24495
+ modelId: string(),
24496
+ totalSamples: number$1().int(),
24497
+ comparableSamples: number$1().int(),
24498
+ flagged: number$1().int(),
24499
+ /** The bar `flagged` counts against, so the panel states the RULE and not
24500
+ * only its current result. */
24501
+ flagThreshold: number$1(),
24502
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
24503
+ * operator asked to see the gallery, not only its accusations. */
24504
+ rows: array(IdentitySampleAuditRowSchema).readonly()
24505
+ });
24453
24506
  var FaceInfoSchema = object({
24454
24507
  faceId: string(),
24455
24508
  deviceId: number$1().int(),
@@ -24601,7 +24654,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
24601
24654
  }), method(object({ id: string() }), _void(), {
24602
24655
  kind: "mutation",
24603
24656
  auth: "admin"
24604
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
24657
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
24605
24658
  identityId: string(),
24606
24659
  sampleId: string()
24607
24660
  }), _void(), {
@@ -31828,6 +31881,12 @@ Object.freeze({
31828
31881
  addonId: null,
31829
31882
  access: "create"
31830
31883
  },
31884
+ "faceGallery.auditIdentitySamples": {
31885
+ capName: "face-gallery",
31886
+ capScope: "system",
31887
+ addonId: null,
31888
+ access: "view"
31889
+ },
31831
31890
  "faceGallery.createIdentity": {
31832
31891
  capName: "face-gallery",
31833
31892
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -24477,6 +24477,59 @@ var IdentitySampleInfoSchema = object({
24477
24477
  deviceId: number$1().int().optional(),
24478
24478
  base64: string().optional()
24479
24479
  });
24480
+ /**
24481
+ * One enrolled sample, judged against the gallery it lives in.
24482
+ *
24483
+ * The gallery is the one input to recognition nobody re-reads: a sample
24484
+ * enrolled from the wrong face keeps voting forever, and because the matches it
24485
+ * pulls then look confident, nobody goes back. The 2026-09-08 audit found
24486
+ * exactly one such pair on this cluster — a sample scoring 0.61 against three
24487
+ * samples of ANOTHER person, enrolled from the same camera in the same minute,
24488
+ * where every other cross-identity pair sits under 0.50.
24489
+ */
24490
+ var IdentitySampleAuditRowSchema = object({
24491
+ sampleId: string(),
24492
+ enrolledAt: number$1().int(),
24493
+ deviceId: number$1().int().optional(),
24494
+ source: _enum(["detected", "photo"]),
24495
+ /** The enrolled crop's media key, so the panel can show the evidence. */
24496
+ mediaKey: string().optional(),
24497
+ /**
24498
+ * False = the sample is stamped with a DIFFERENT face model, and a cosine
24499
+ * across feature spaces is a well-formed float with no meaning. Every number
24500
+ * below then says nothing — it must read as "cannot say", never as an
24501
+ * accusation and never as a clean bill: this list ends in a Remove button.
24502
+ */
24503
+ comparable: boolean(),
24504
+ /** Mean cosine against this person's other samples. Null when there are none
24505
+ * to compare with — never 0, which would read as "opposite". */
24506
+ selfMean: number$1().nullable(),
24507
+ /** The other person this sample looks most like, when it looks like one.
24508
+ * This is the half that convicts: not looking like yourself can be a hard
24509
+ * angle; looking like someone the gallery can NAME is a mis-enrolment. */
24510
+ bestForeign: object({
24511
+ identityId: string(),
24512
+ name: string(),
24513
+ score: number$1()
24514
+ }).optional(),
24515
+ /** 0 = nothing to say. Higher = look at this one sooner. */
24516
+ suspicion: number$1()
24517
+ });
24518
+ var IdentitySampleAuditSchema = object({
24519
+ identityId: string(),
24520
+ name: string(),
24521
+ /** The cluster face model every comparison was made in. */
24522
+ modelId: string(),
24523
+ totalSamples: number$1().int(),
24524
+ comparableSamples: number$1().int(),
24525
+ flagged: number$1().int(),
24526
+ /** The bar `flagged` counts against, so the panel states the RULE and not
24527
+ * only its current result. */
24528
+ flagThreshold: number$1(),
24529
+ /** Worst first. A row with nothing to say still appears, at the bottom: the
24530
+ * operator asked to see the gallery, not only its accusations. */
24531
+ rows: array(IdentitySampleAuditRowSchema).readonly()
24532
+ });
24480
24533
  var FaceInfoSchema = object({
24481
24534
  faceId: string(),
24482
24535
  deviceId: number$1().int(),
@@ -24628,7 +24681,7 @@ includeCrops: boolean().optional() }).optional(), array(IdentitySchema).readonly
24628
24681
  }), method(object({ id: string() }), _void(), {
24629
24682
  kind: "mutation",
24630
24683
  auth: "admin"
24631
- }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({
24684
+ }), method(object({ identityId: string() }), array(IdentitySampleInfoSchema).readonly()), method(object({ identityId: string().min(1) }), IdentitySampleAuditSchema, { auth: "admin" }), method(object({
24632
24685
  identityId: string(),
24633
24686
  sampleId: string()
24634
24687
  }), _void(), {
@@ -31855,6 +31908,12 @@ Object.freeze({
31855
31908
  addonId: null,
31856
31909
  access: "create"
31857
31910
  },
31911
+ "faceGallery.auditIdentitySamples": {
31912
+ capName: "face-gallery",
31913
+ capScope: "system",
31914
+ addonId: null,
31915
+ access: "view"
31916
+ },
31858
31917
  "faceGallery.createIdentity": {
31859
31918
  capName: "face-gallery",
31860
31919
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-ai",
3
- "version": "0.4.86",
3
+ "version": "0.4.88",
4
4
  "description": "AI addon for CamStack — the `llm` collection provider (cloud, LAN, and camstack-managed local llama.cpp profiles) plus the per-node `llm-runtime` managed executor.",
5
5
  "keywords": [
6
6
  "camstack",