@camstack/addon-provider-wyze 0.2.27 → 0.2.28

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
@@ -7598,7 +7598,7 @@ var RecordingBandSchema = object({
7598
7598
  postBufferSec: number().min(0).optional()
7599
7599
  });
7600
7600
  ({
7601
- preBufferSec: 10,
7601
+ preBufferSec: 15,
7602
7602
  postBufferSec: 30
7603
7603
  }).postBufferSec * 1e3;
7604
7604
  /**
@@ -16416,7 +16416,7 @@ var TrackEnvelopeSchema = object({
16416
16416
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
16417
16417
  * keeps every scalar the list surfaces actually render (ids, class(es),
16418
16418
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
16419
- * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
16419
+ * zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
16420
16420
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
16421
16421
  * `getTrack`. Mirrors the event-store `projection` convention
16422
16422
  * (`getObjectEvents` et al.).
@@ -16711,6 +16711,35 @@ var TrackSchema = object({
16711
16711
  */
16712
16712
  hasFace: boolean().optional(),
16713
16713
  /**
16714
+ * This track has a face row IN THE GALLERY: a crop **and** an embedding — a
16715
+ * face an operator could ASSIGN to an identity.
16716
+ *
16717
+ * The STRICT twin of {@link hasFace}, and the pair only earns its keep
16718
+ * because the two disagree. `hasFace` is stamped at the TOP of the face
16719
+ * branch, before every gate, and means no more than "a face detector produced
16720
+ * a face detail". This one is stamped at the single moment the gallery row
16721
+ * LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
16722
+ * past the embedding-magnitude verdict, the `minFacePx` detection gate, the
16723
+ * candidate gate, the imageless-track drop (no crop was ever captured) and
16724
+ * the crop-store drop. Everything between the detector and that insert can
16725
+ * legitimately refuse the face, so a flag written any earlier promises the
16726
+ * operator something to assign and delivers nothing.
16727
+ *
16728
+ * **Independent of recognition.** A face collected but never auto-matched is
16729
+ * still assignable — it is in fact the face an operator most wants to reach —
16730
+ * so this is NOT gated on `recognizedIdentityId`. Recognition lands in
16731
+ * `subLabel`; this says only that the raw material exists.
16732
+ *
16733
+ * **Set once, never cleared.** A track that produced a gallery row produced
16734
+ * one; deleting the row later is the gallery's business, not this flag's.
16735
+ *
16736
+ * **Absent ≠ false**, the same rule as {@link hasFace}: every row written
16737
+ * before the column omits it, and so does every server that predates the
16738
+ * field. A consumer must test `=== true` and render nothing otherwise —
16739
+ * never infer "no assignable face".
16740
+ */
16741
+ hasEmbeddedFace: boolean().optional(),
16742
+ /**
16714
16743
  * This subject CONTAINS a folded rider — a person the rider-pairing step
16715
16744
  * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16716
16745
  * so the passage is tracked once and as a VEHICLE.
@@ -18106,6 +18135,26 @@ var DetailResultSchema = object({
18106
18135
  * the consuming gate treats as accept — never as reject.
18107
18136
  */
18108
18137
  embeddingMagnitude: number().optional(),
18138
+ /**
18139
+ * Model that produced `embedding` — the SAME contract `labelModelId` has for
18140
+ * `label`, and for the same reason: the producing node is the only side that
18141
+ * knows which model actually ran, and re-deriving it downstream is exactly
18142
+ * the inference this model exists to forbid.
18143
+ *
18144
+ * Additive and optional, so a runner that predates it degrades to
18145
+ * "unmeasurable" rather than to a wrong answer — the consumer falls back to
18146
+ * its previous assumption instead of refusing.
18147
+ *
18148
+ * Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
18149
+ * to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
18150
+ * with nothing on the wire it took the id from the GALLERY, so the gate
18151
+ * compared the gallery against itself and could never fire. That turned the
18152
+ * one guard protecting the face feature space into a tautology, and it is
18153
+ * why swapping `face-embedding`'s model would NOT have stranded the enrolled
18154
+ * gallery as the catalog comment predicts — it would have scored the new
18155
+ * model's vectors against the old model's samples in one cosine space.
18156
+ */
18157
+ embeddingModelId: string().optional(),
18109
18158
  label: string().optional(),
18110
18159
  /**
18111
18160
  * The tier `label` occupies, copied VERBATIM from the producing step's
@@ -19570,6 +19619,7 @@ var snapshotCapability = {
19570
19619
  isBattery: boolean(),
19571
19620
  reason: _enum([
19572
19621
  "disabled",
19622
+ "offline",
19573
19623
  "sleeping",
19574
19624
  "unreachable",
19575
19625
  "waking"
@@ -19659,9 +19709,17 @@ targets: array(object({
19659
19709
  sleeping: boolean(),
19660
19710
  /** Current device state rendered over the cached frame. State images
19661
19711
  * remain authoritative even when their photographic background is
19662
- * old; null means the link must carry a current camera frame. */
19712
+ * old; null means the link must carry a current camera frame.
19713
+ *
19714
+ * **This is the ONLY source a surface may derive an inactive tile
19715
+ * from.** A client that reads a device's `online`/`disabled` flags and
19716
+ * draws its own verdict will disagree with the pixels it is painting
19717
+ * — the frame comes from here, and so must the sentence over it
19718
+ * (D190). Pair with `ageMs` for the age of the photograph behind the
19719
+ * state. */
19663
19720
  stateReason: _enum([
19664
19721
  "disabled",
19722
+ "offline",
19665
19723
  "sleeping",
19666
19724
  "unreachable",
19667
19725
  "waking"
@@ -37451,6 +37509,39 @@ TimelapseRuleInputSchema.extend({
37451
37509
  createdAt: number(),
37452
37510
  updatedAt: number()
37453
37511
  });
37512
+ Object.freeze(Object.fromEntries([{
37513
+ stepId: "face-embedding",
37514
+ label: "Face recognition model",
37515
+ defaultModelId: "arcface-r100",
37516
+ indexName: "the enrolled face gallery",
37517
+ options: [
37518
+ {
37519
+ id: "arcface-r100",
37520
+ label: "ArcFace (ResNet34)"
37521
+ },
37522
+ {
37523
+ id: "auraface-r100",
37524
+ label: "AuraFace R100"
37525
+ },
37526
+ {
37527
+ id: "inception-resnet-v1",
37528
+ label: "Inception ResNet V1"
37529
+ }
37530
+ ]
37531
+ }, {
37532
+ stepId: "clip-embedding",
37533
+ label: "Semantic search model",
37534
+ defaultModelId: "mobileclip-s1",
37535
+ indexName: "the object semantic-search index",
37536
+ options: [{
37537
+ id: "mobileclip-s1",
37538
+ label: "MobileCLIP S1"
37539
+ }, {
37540
+ id: "mobileclip-s2",
37541
+ label: "MobileCLIP S2"
37542
+ }]
37543
+ }].map((s) => [s.stepId, s.defaultModelId])));
37544
+ string().min(1);
37454
37545
  object({
37455
37546
  /**
37456
37547
  * Fraction of the box's own size added on EACH side before cutting.
@@ -37471,10 +37562,21 @@ object({
37471
37562
  */
37472
37563
  square: boolean()
37473
37564
  });
37474
- ({
37565
+ /**
37566
+ * The convention in force when nobody has configured one — byte-for-byte the
37567
+ * behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
37568
+ */
37569
+ var DEFAULT_DETAIL_CROP_CONVENTION = {
37475
37570
  paddingRatio: .15,
37476
37571
  square: false
37477
- }).paddingRatio;
37572
+ };
37573
+ Object.freeze({
37574
+ x: 0,
37575
+ y: 0,
37576
+ w: 1,
37577
+ h: 1
37578
+ });
37579
+ DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
37478
37580
  /**
37479
37581
  * WHICH delivered frames the decode worker retains a native copy of.
37480
37582
  *
package/dist/addon.mjs CHANGED
@@ -7577,7 +7577,7 @@ var RecordingBandSchema = object({
7577
7577
  postBufferSec: number().min(0).optional()
7578
7578
  });
7579
7579
  ({
7580
- preBufferSec: 10,
7580
+ preBufferSec: 15,
7581
7581
  postBufferSec: 30
7582
7582
  }).postBufferSec * 1e3;
7583
7583
  /**
@@ -16395,7 +16395,7 @@ var TrackEnvelopeSchema = object({
16395
16395
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
16396
16396
  * keeps every scalar the list surfaces actually render (ids, class(es),
16397
16397
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
16398
- * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
16398
+ * zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
16399
16399
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
16400
16400
  * `getTrack`. Mirrors the event-store `projection` convention
16401
16401
  * (`getObjectEvents` et al.).
@@ -16690,6 +16690,35 @@ var TrackSchema = object({
16690
16690
  */
16691
16691
  hasFace: boolean().optional(),
16692
16692
  /**
16693
+ * This track has a face row IN THE GALLERY: a crop **and** an embedding — a
16694
+ * face an operator could ASSIGN to an identity.
16695
+ *
16696
+ * The STRICT twin of {@link hasFace}, and the pair only earns its keep
16697
+ * because the two disagree. `hasFace` is stamped at the TOP of the face
16698
+ * branch, before every gate, and means no more than "a face detector produced
16699
+ * a face detail". This one is stamped at the single moment the gallery row
16700
+ * LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
16701
+ * past the embedding-magnitude verdict, the `minFacePx` detection gate, the
16702
+ * candidate gate, the imageless-track drop (no crop was ever captured) and
16703
+ * the crop-store drop. Everything between the detector and that insert can
16704
+ * legitimately refuse the face, so a flag written any earlier promises the
16705
+ * operator something to assign and delivers nothing.
16706
+ *
16707
+ * **Independent of recognition.** A face collected but never auto-matched is
16708
+ * still assignable — it is in fact the face an operator most wants to reach —
16709
+ * so this is NOT gated on `recognizedIdentityId`. Recognition lands in
16710
+ * `subLabel`; this says only that the raw material exists.
16711
+ *
16712
+ * **Set once, never cleared.** A track that produced a gallery row produced
16713
+ * one; deleting the row later is the gallery's business, not this flag's.
16714
+ *
16715
+ * **Absent ≠ false**, the same rule as {@link hasFace}: every row written
16716
+ * before the column omits it, and so does every server that predates the
16717
+ * field. A consumer must test `=== true` and render nothing otherwise —
16718
+ * never infer "no assignable face".
16719
+ */
16720
+ hasEmbeddedFace: boolean().optional(),
16721
+ /**
16693
16722
  * This subject CONTAINS a folded rider — a person the rider-pairing step
16694
16723
  * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16695
16724
  * so the passage is tracked once and as a VEHICLE.
@@ -18085,6 +18114,26 @@ var DetailResultSchema = object({
18085
18114
  * the consuming gate treats as accept — never as reject.
18086
18115
  */
18087
18116
  embeddingMagnitude: number().optional(),
18117
+ /**
18118
+ * Model that produced `embedding` — the SAME contract `labelModelId` has for
18119
+ * `label`, and for the same reason: the producing node is the only side that
18120
+ * knows which model actually ran, and re-deriving it downstream is exactly
18121
+ * the inference this model exists to forbid.
18122
+ *
18123
+ * Additive and optional, so a runner that predates it degrades to
18124
+ * "unmeasurable" rather than to a wrong answer — the consumer falls back to
18125
+ * its previous assumption instead of refusing.
18126
+ *
18127
+ * Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
18128
+ * to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
18129
+ * with nothing on the wire it took the id from the GALLERY, so the gate
18130
+ * compared the gallery against itself and could never fire. That turned the
18131
+ * one guard protecting the face feature space into a tautology, and it is
18132
+ * why swapping `face-embedding`'s model would NOT have stranded the enrolled
18133
+ * gallery as the catalog comment predicts — it would have scored the new
18134
+ * model's vectors against the old model's samples in one cosine space.
18135
+ */
18136
+ embeddingModelId: string().optional(),
18088
18137
  label: string().optional(),
18089
18138
  /**
18090
18139
  * The tier `label` occupies, copied VERBATIM from the producing step's
@@ -19549,6 +19598,7 @@ var snapshotCapability = {
19549
19598
  isBattery: boolean(),
19550
19599
  reason: _enum([
19551
19600
  "disabled",
19601
+ "offline",
19552
19602
  "sleeping",
19553
19603
  "unreachable",
19554
19604
  "waking"
@@ -19638,9 +19688,17 @@ targets: array(object({
19638
19688
  sleeping: boolean(),
19639
19689
  /** Current device state rendered over the cached frame. State images
19640
19690
  * remain authoritative even when their photographic background is
19641
- * old; null means the link must carry a current camera frame. */
19691
+ * old; null means the link must carry a current camera frame.
19692
+ *
19693
+ * **This is the ONLY source a surface may derive an inactive tile
19694
+ * from.** A client that reads a device's `online`/`disabled` flags and
19695
+ * draws its own verdict will disagree with the pixels it is painting
19696
+ * — the frame comes from here, and so must the sentence over it
19697
+ * (D190). Pair with `ageMs` for the age of the photograph behind the
19698
+ * state. */
19642
19699
  stateReason: _enum([
19643
19700
  "disabled",
19701
+ "offline",
19644
19702
  "sleeping",
19645
19703
  "unreachable",
19646
19704
  "waking"
@@ -37430,6 +37488,39 @@ TimelapseRuleInputSchema.extend({
37430
37488
  createdAt: number(),
37431
37489
  updatedAt: number()
37432
37490
  });
37491
+ Object.freeze(Object.fromEntries([{
37492
+ stepId: "face-embedding",
37493
+ label: "Face recognition model",
37494
+ defaultModelId: "arcface-r100",
37495
+ indexName: "the enrolled face gallery",
37496
+ options: [
37497
+ {
37498
+ id: "arcface-r100",
37499
+ label: "ArcFace (ResNet34)"
37500
+ },
37501
+ {
37502
+ id: "auraface-r100",
37503
+ label: "AuraFace R100"
37504
+ },
37505
+ {
37506
+ id: "inception-resnet-v1",
37507
+ label: "Inception ResNet V1"
37508
+ }
37509
+ ]
37510
+ }, {
37511
+ stepId: "clip-embedding",
37512
+ label: "Semantic search model",
37513
+ defaultModelId: "mobileclip-s1",
37514
+ indexName: "the object semantic-search index",
37515
+ options: [{
37516
+ id: "mobileclip-s1",
37517
+ label: "MobileCLIP S1"
37518
+ }, {
37519
+ id: "mobileclip-s2",
37520
+ label: "MobileCLIP S2"
37521
+ }]
37522
+ }].map((s) => [s.stepId, s.defaultModelId])));
37523
+ string().min(1);
37433
37524
  object({
37434
37525
  /**
37435
37526
  * Fraction of the box's own size added on EACH side before cutting.
@@ -37450,10 +37541,21 @@ object({
37450
37541
  */
37451
37542
  square: boolean()
37452
37543
  });
37453
- ({
37544
+ /**
37545
+ * The convention in force when nobody has configured one — byte-for-byte the
37546
+ * behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
37547
+ */
37548
+ var DEFAULT_DETAIL_CROP_CONVENTION = {
37454
37549
  paddingRatio: .15,
37455
37550
  square: false
37456
- }).paddingRatio;
37551
+ };
37552
+ Object.freeze({
37553
+ x: 0,
37554
+ y: 0,
37555
+ w: 1,
37556
+ h: 1
37557
+ });
37558
+ DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
37457
37559
  /**
37458
37560
  * WHICH delivered frames the decode worker retains a native copy of.
37459
37561
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-wyze",
3
- "version": "0.2.27",
3
+ "version": "0.2.28",
4
4
  "description": "Wyze camera device-provider addon for CamStack — wraps the @apocaliss92/wyze-bridge-js P2P/DTLS client, feeding the stream-broker via the pull-rfc4571 lazy-publish path (a structural twin of addon-provider-reolink)",
5
5
  "keywords": [
6
6
  "camstack",