@camstack/addon-ai 0.4.13 → 0.4.14

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 (3) hide show
  1. package/dist/addon.js +138 -56
  2. package/dist/addon.mjs +138 -56
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -7772,7 +7772,7 @@ var RecordingBandSchema = object({
7772
7772
  postBufferSec: number$1().min(0).optional()
7773
7773
  });
7774
7774
  ({
7775
- preBufferSec: 10,
7775
+ preBufferSec: 15,
7776
7776
  postBufferSec: 30
7777
7777
  }).postBufferSec * 1e3;
7778
7778
  /**
@@ -13792,128 +13792,103 @@ var COCO_TO_MACRO = {
13792
13792
  var AUDIO_MACRO_LABELS = [
13793
13793
  {
13794
13794
  id: "speech",
13795
- name: "Speech",
13796
- icon: "🗣️"
13795
+ name: "Speech"
13797
13796
  },
13798
13797
  {
13799
13798
  id: "scream",
13800
- name: "Scream / Shout",
13801
- icon: "😱"
13799
+ name: "Scream / Shout"
13802
13800
  },
13803
13801
  {
13804
13802
  id: "crying",
13805
- name: "Crying / Baby",
13806
- icon: "😢"
13803
+ name: "Crying / Baby"
13807
13804
  },
13808
13805
  {
13809
13806
  id: "laughter",
13810
- name: "Laughter",
13811
- icon: "😂"
13807
+ name: "Laughter"
13812
13808
  },
13813
13809
  {
13814
13810
  id: "music",
13815
- name: "Music",
13816
- icon: "🎵"
13811
+ name: "Music"
13817
13812
  },
13818
13813
  {
13819
13814
  id: "dog",
13820
- name: "Dog",
13821
- icon: "🐕"
13815
+ name: "Dog"
13822
13816
  },
13823
13817
  {
13824
13818
  id: "cat",
13825
- name: "Cat",
13826
- icon: "🐈"
13819
+ name: "Cat"
13827
13820
  },
13828
13821
  {
13829
13822
  id: "bird",
13830
- name: "Bird",
13831
- icon: "🐦"
13823
+ name: "Bird"
13832
13824
  },
13833
13825
  {
13834
13826
  id: "animal",
13835
- name: "Animal (other)",
13836
- icon: "🐾"
13827
+ name: "Animal (other)"
13837
13828
  },
13838
13829
  {
13839
13830
  id: "alarm",
13840
- name: "Alarm / Siren",
13841
- icon: "🚨"
13831
+ name: "Alarm / Siren"
13842
13832
  },
13843
13833
  {
13844
13834
  id: "doorbell",
13845
- name: "Doorbell / Knock",
13846
- icon: "🔔"
13835
+ name: "Doorbell / Knock"
13847
13836
  },
13848
13837
  {
13849
13838
  id: "glass_breaking",
13850
- name: "Glass Breaking",
13851
- icon: "💥"
13839
+ name: "Glass Breaking"
13852
13840
  },
13853
13841
  {
13854
13842
  id: "gunshot",
13855
- name: "Gunshot / Explosion",
13856
- icon: "💣"
13843
+ name: "Gunshot / Explosion"
13857
13844
  },
13858
13845
  {
13859
13846
  id: "vehicle",
13860
- name: "Vehicle",
13861
- icon: "🚗"
13847
+ name: "Vehicle"
13862
13848
  },
13863
13849
  {
13864
13850
  id: "siren",
13865
- name: "Emergency Siren",
13866
- icon: "🚑"
13851
+ name: "Emergency Siren"
13867
13852
  },
13868
13853
  {
13869
13854
  id: "fire",
13870
- name: "Fire / Smoke",
13871
- icon: "🔥"
13855
+ name: "Fire / Smoke"
13872
13856
  },
13873
13857
  {
13874
13858
  id: "water",
13875
- name: "Water",
13876
- icon: "💧"
13859
+ name: "Water"
13877
13860
  },
13878
13861
  {
13879
13862
  id: "wind",
13880
- name: "Wind / Weather",
13881
- icon: "🌬️"
13863
+ name: "Wind / Weather"
13882
13864
  },
13883
13865
  {
13884
13866
  id: "door",
13885
- name: "Door",
13886
- icon: "🚪"
13867
+ name: "Door"
13887
13868
  },
13888
13869
  {
13889
13870
  id: "footsteps",
13890
- name: "Footsteps",
13891
- icon: "👣"
13871
+ name: "Footsteps"
13892
13872
  },
13893
13873
  {
13894
13874
  id: "crowd",
13895
- name: "Crowd / Chatter",
13896
- icon: "👥"
13875
+ name: "Crowd / Chatter"
13897
13876
  },
13898
13877
  {
13899
13878
  id: "telephone",
13900
- name: "Telephone",
13901
- icon: "📞"
13879
+ name: "Telephone"
13902
13880
  },
13903
13881
  {
13904
13882
  id: "engine",
13905
- name: "Engine / Motor",
13906
- icon: "⚙️"
13883
+ name: "Engine / Motor"
13907
13884
  },
13908
13885
  {
13909
13886
  id: "tools",
13910
- name: "Tools / Construction",
13911
- icon: "🔨"
13887
+ name: "Tools / Construction"
13912
13888
  },
13913
13889
  {
13914
13890
  id: "silence",
13915
- name: "Silence",
13916
- icon: "🤫"
13891
+ name: "Silence"
13917
13892
  }
13918
13893
  ];
13919
13894
  var YAMNET_TO_MACRO = {
@@ -16377,7 +16352,7 @@ var TrackEnvelopeSchema = object({
16377
16352
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
16378
16353
  * keeps every scalar the list surfaces actually render (ids, class(es),
16379
16354
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
16380
- * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
16355
+ * zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
16381
16356
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
16382
16357
  * `getTrack`. Mirrors the event-store `projection` convention
16383
16358
  * (`getObjectEvents` et al.).
@@ -16672,6 +16647,35 @@ var TrackSchema = object({
16672
16647
  */
16673
16648
  hasFace: boolean().optional(),
16674
16649
  /**
16650
+ * This track has a face row IN THE GALLERY: a crop **and** an embedding — a
16651
+ * face an operator could ASSIGN to an identity.
16652
+ *
16653
+ * The STRICT twin of {@link hasFace}, and the pair only earns its keep
16654
+ * because the two disagree. `hasFace` is stamped at the TOP of the face
16655
+ * branch, before every gate, and means no more than "a face detector produced
16656
+ * a face detail". This one is stamped at the single moment the gallery row
16657
+ * LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
16658
+ * past the embedding-magnitude verdict, the `minFacePx` detection gate, the
16659
+ * candidate gate, the imageless-track drop (no crop was ever captured) and
16660
+ * the crop-store drop. Everything between the detector and that insert can
16661
+ * legitimately refuse the face, so a flag written any earlier promises the
16662
+ * operator something to assign and delivers nothing.
16663
+ *
16664
+ * **Independent of recognition.** A face collected but never auto-matched is
16665
+ * still assignable — it is in fact the face an operator most wants to reach —
16666
+ * so this is NOT gated on `recognizedIdentityId`. Recognition lands in
16667
+ * `subLabel`; this says only that the raw material exists.
16668
+ *
16669
+ * **Set once, never cleared.** A track that produced a gallery row produced
16670
+ * one; deleting the row later is the gallery's business, not this flag's.
16671
+ *
16672
+ * **Absent ≠ false**, the same rule as {@link hasFace}: every row written
16673
+ * before the column omits it, and so does every server that predates the
16674
+ * field. A consumer must test `=== true` and render nothing otherwise —
16675
+ * never infer "no assignable face".
16676
+ */
16677
+ hasEmbeddedFace: boolean().optional(),
16678
+ /**
16675
16679
  * This subject CONTAINS a folded rider — a person the rider-pairing step
16676
16680
  * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16677
16681
  * so the passage is tracked once and as a VEHICLE.
@@ -18021,6 +18025,32 @@ var DetailResultSchema = object({
18021
18025
  /** FRAME-space bbox (already mapped back from crop space). */
18022
18026
  bbox: NativeCropBboxSchema.optional(),
18023
18027
  embedding: string().optional(),
18028
+ /**
18029
+ * L2 magnitude of the RAW pre-normalization embedding. Additive and optional
18030
+ * so an older runner that does not send it degrades to "unmeasurable", which
18031
+ * the consuming gate treats as accept — never as reject.
18032
+ */
18033
+ embeddingMagnitude: number$1().optional(),
18034
+ /**
18035
+ * Model that produced `embedding` — the SAME contract `labelModelId` has for
18036
+ * `label`, and for the same reason: the producing node is the only side that
18037
+ * knows which model actually ran, and re-deriving it downstream is exactly
18038
+ * the inference this model exists to forbid.
18039
+ *
18040
+ * Additive and optional, so a runner that predates it degrades to
18041
+ * "unmeasurable" rather than to a wrong answer — the consumer falls back to
18042
+ * its previous assumption instead of refusing.
18043
+ *
18044
+ * Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
18045
+ * to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
18046
+ * with nothing on the wire it took the id from the GALLERY, so the gate
18047
+ * compared the gallery against itself and could never fire. That turned the
18048
+ * one guard protecting the face feature space into a tautology, and it is
18049
+ * why swapping `face-embedding`'s model would NOT have stranded the enrolled
18050
+ * gallery as the catalog comment predicts — it would have scored the new
18051
+ * model's vectors against the old model's samples in one cosine space.
18052
+ */
18053
+ embeddingModelId: string().optional(),
18024
18054
  label: string().optional(),
18025
18055
  /**
18026
18056
  * The tier `label` occupies, copied VERBATIM from the producing step's
@@ -19431,6 +19461,7 @@ DeviceType.Camera, method(object({
19431
19461
  isBattery: boolean(),
19432
19462
  reason: _enum([
19433
19463
  "disabled",
19464
+ "offline",
19434
19465
  "sleeping",
19435
19466
  "unreachable",
19436
19467
  "waking"
@@ -19476,9 +19507,17 @@ targets: array(object({
19476
19507
  sleeping: boolean(),
19477
19508
  /** Current device state rendered over the cached frame. State images
19478
19509
  * remain authoritative even when their photographic background is
19479
- * old; null means the link must carry a current camera frame. */
19510
+ * old; null means the link must carry a current camera frame.
19511
+ *
19512
+ * **This is the ONLY source a surface may derive an inactive tile
19513
+ * from.** A client that reads a device's `online`/`disabled` flags and
19514
+ * draws its own verdict will disagree with the pixels it is painting
19515
+ * — the frame comes from here, and so must the sentence over it
19516
+ * (D190). Pair with `ageMs` for the age of the photograph behind the
19517
+ * state. */
19480
19518
  stateReason: _enum([
19481
19519
  "disabled",
19520
+ "offline",
19482
19521
  "sleeping",
19483
19522
  "unreachable",
19484
19523
  "waking"
@@ -33664,7 +33703,6 @@ var NC_AUDIO_DEFAULTS = {
33664
33703
  hitPercent: 60,
33665
33704
  samplingSeconds: 10
33666
33705
  };
33667
- new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33668
33706
  new Set(["devices", "classes"]);
33669
33707
  NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33670
33708
  /**
@@ -33898,6 +33936,39 @@ TimelapseRuleInputSchema.extend({
33898
33936
  createdAt: number$1(),
33899
33937
  updatedAt: number$1()
33900
33938
  });
33939
+ Object.freeze(Object.fromEntries([{
33940
+ stepId: "face-embedding",
33941
+ label: "Face recognition model",
33942
+ defaultModelId: "arcface-r100",
33943
+ indexName: "the enrolled face gallery",
33944
+ options: [
33945
+ {
33946
+ id: "arcface-r100",
33947
+ label: "ArcFace (ResNet34)"
33948
+ },
33949
+ {
33950
+ id: "auraface-r100",
33951
+ label: "AuraFace R100"
33952
+ },
33953
+ {
33954
+ id: "inception-resnet-v1",
33955
+ label: "Inception ResNet V1"
33956
+ }
33957
+ ]
33958
+ }, {
33959
+ stepId: "clip-embedding",
33960
+ label: "Semantic search model",
33961
+ defaultModelId: "mobileclip-s1",
33962
+ indexName: "the object semantic-search index",
33963
+ options: [{
33964
+ id: "mobileclip-s1",
33965
+ label: "MobileCLIP S1"
33966
+ }, {
33967
+ id: "mobileclip-s2",
33968
+ label: "MobileCLIP S2"
33969
+ }]
33970
+ }].map((s) => [s.stepId, s.defaultModelId])));
33971
+ string().min(1);
33901
33972
  object({
33902
33973
  /**
33903
33974
  * Fraction of the box's own size added on EACH side before cutting.
@@ -33918,10 +33989,21 @@ object({
33918
33989
  */
33919
33990
  square: boolean()
33920
33991
  });
33921
- ({
33992
+ /**
33993
+ * The convention in force when nobody has configured one — byte-for-byte the
33994
+ * behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
33995
+ */
33996
+ var DEFAULT_DETAIL_CROP_CONVENTION = {
33922
33997
  paddingRatio: .15,
33923
33998
  square: false
33924
- }).paddingRatio;
33999
+ };
34000
+ Object.freeze({
34001
+ x: 0,
34002
+ y: 0,
34003
+ w: 1,
34004
+ h: 1
34005
+ });
34006
+ DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
33925
34007
  /**
33926
34008
  * WHICH delivered frames the decode worker retains a native copy of.
33927
34009
  *
package/dist/addon.mjs CHANGED
@@ -7798,7 +7798,7 @@ var RecordingBandSchema = object({
7798
7798
  postBufferSec: number$1().min(0).optional()
7799
7799
  });
7800
7800
  ({
7801
- preBufferSec: 10,
7801
+ preBufferSec: 15,
7802
7802
  postBufferSec: 30
7803
7803
  }).postBufferSec * 1e3;
7804
7804
  /**
@@ -13818,128 +13818,103 @@ var COCO_TO_MACRO = {
13818
13818
  var AUDIO_MACRO_LABELS = [
13819
13819
  {
13820
13820
  id: "speech",
13821
- name: "Speech",
13822
- icon: "🗣️"
13821
+ name: "Speech"
13823
13822
  },
13824
13823
  {
13825
13824
  id: "scream",
13826
- name: "Scream / Shout",
13827
- icon: "😱"
13825
+ name: "Scream / Shout"
13828
13826
  },
13829
13827
  {
13830
13828
  id: "crying",
13831
- name: "Crying / Baby",
13832
- icon: "😢"
13829
+ name: "Crying / Baby"
13833
13830
  },
13834
13831
  {
13835
13832
  id: "laughter",
13836
- name: "Laughter",
13837
- icon: "😂"
13833
+ name: "Laughter"
13838
13834
  },
13839
13835
  {
13840
13836
  id: "music",
13841
- name: "Music",
13842
- icon: "🎵"
13837
+ name: "Music"
13843
13838
  },
13844
13839
  {
13845
13840
  id: "dog",
13846
- name: "Dog",
13847
- icon: "🐕"
13841
+ name: "Dog"
13848
13842
  },
13849
13843
  {
13850
13844
  id: "cat",
13851
- name: "Cat",
13852
- icon: "🐈"
13845
+ name: "Cat"
13853
13846
  },
13854
13847
  {
13855
13848
  id: "bird",
13856
- name: "Bird",
13857
- icon: "🐦"
13849
+ name: "Bird"
13858
13850
  },
13859
13851
  {
13860
13852
  id: "animal",
13861
- name: "Animal (other)",
13862
- icon: "🐾"
13853
+ name: "Animal (other)"
13863
13854
  },
13864
13855
  {
13865
13856
  id: "alarm",
13866
- name: "Alarm / Siren",
13867
- icon: "🚨"
13857
+ name: "Alarm / Siren"
13868
13858
  },
13869
13859
  {
13870
13860
  id: "doorbell",
13871
- name: "Doorbell / Knock",
13872
- icon: "🔔"
13861
+ name: "Doorbell / Knock"
13873
13862
  },
13874
13863
  {
13875
13864
  id: "glass_breaking",
13876
- name: "Glass Breaking",
13877
- icon: "💥"
13865
+ name: "Glass Breaking"
13878
13866
  },
13879
13867
  {
13880
13868
  id: "gunshot",
13881
- name: "Gunshot / Explosion",
13882
- icon: "💣"
13869
+ name: "Gunshot / Explosion"
13883
13870
  },
13884
13871
  {
13885
13872
  id: "vehicle",
13886
- name: "Vehicle",
13887
- icon: "🚗"
13873
+ name: "Vehicle"
13888
13874
  },
13889
13875
  {
13890
13876
  id: "siren",
13891
- name: "Emergency Siren",
13892
- icon: "🚑"
13877
+ name: "Emergency Siren"
13893
13878
  },
13894
13879
  {
13895
13880
  id: "fire",
13896
- name: "Fire / Smoke",
13897
- icon: "🔥"
13881
+ name: "Fire / Smoke"
13898
13882
  },
13899
13883
  {
13900
13884
  id: "water",
13901
- name: "Water",
13902
- icon: "💧"
13885
+ name: "Water"
13903
13886
  },
13904
13887
  {
13905
13888
  id: "wind",
13906
- name: "Wind / Weather",
13907
- icon: "🌬️"
13889
+ name: "Wind / Weather"
13908
13890
  },
13909
13891
  {
13910
13892
  id: "door",
13911
- name: "Door",
13912
- icon: "🚪"
13893
+ name: "Door"
13913
13894
  },
13914
13895
  {
13915
13896
  id: "footsteps",
13916
- name: "Footsteps",
13917
- icon: "👣"
13897
+ name: "Footsteps"
13918
13898
  },
13919
13899
  {
13920
13900
  id: "crowd",
13921
- name: "Crowd / Chatter",
13922
- icon: "👥"
13901
+ name: "Crowd / Chatter"
13923
13902
  },
13924
13903
  {
13925
13904
  id: "telephone",
13926
- name: "Telephone",
13927
- icon: "📞"
13905
+ name: "Telephone"
13928
13906
  },
13929
13907
  {
13930
13908
  id: "engine",
13931
- name: "Engine / Motor",
13932
- icon: "⚙️"
13909
+ name: "Engine / Motor"
13933
13910
  },
13934
13911
  {
13935
13912
  id: "tools",
13936
- name: "Tools / Construction",
13937
- icon: "🔨"
13913
+ name: "Tools / Construction"
13938
13914
  },
13939
13915
  {
13940
13916
  id: "silence",
13941
- name: "Silence",
13942
- icon: "🤫"
13917
+ name: "Silence"
13943
13918
  }
13944
13919
  ];
13945
13920
  var YAMNET_TO_MACRO = {
@@ -16403,7 +16378,7 @@ var TrackEnvelopeSchema = object({
16403
16378
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
16404
16379
  * keeps every scalar the list surfaces actually render (ids, class(es),
16405
16380
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
16406
- * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
16381
+ * zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
16407
16382
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
16408
16383
  * `getTrack`. Mirrors the event-store `projection` convention
16409
16384
  * (`getObjectEvents` et al.).
@@ -16698,6 +16673,35 @@ var TrackSchema = object({
16698
16673
  */
16699
16674
  hasFace: boolean().optional(),
16700
16675
  /**
16676
+ * This track has a face row IN THE GALLERY: a crop **and** an embedding — a
16677
+ * face an operator could ASSIGN to an identity.
16678
+ *
16679
+ * The STRICT twin of {@link hasFace}, and the pair only earns its keep
16680
+ * because the two disagree. `hasFace` is stamped at the TOP of the face
16681
+ * branch, before every gate, and means no more than "a face detector produced
16682
+ * a face detail". This one is stamped at the single moment the gallery row
16683
+ * LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
16684
+ * past the embedding-magnitude verdict, the `minFacePx` detection gate, the
16685
+ * candidate gate, the imageless-track drop (no crop was ever captured) and
16686
+ * the crop-store drop. Everything between the detector and that insert can
16687
+ * legitimately refuse the face, so a flag written any earlier promises the
16688
+ * operator something to assign and delivers nothing.
16689
+ *
16690
+ * **Independent of recognition.** A face collected but never auto-matched is
16691
+ * still assignable — it is in fact the face an operator most wants to reach —
16692
+ * so this is NOT gated on `recognizedIdentityId`. Recognition lands in
16693
+ * `subLabel`; this says only that the raw material exists.
16694
+ *
16695
+ * **Set once, never cleared.** A track that produced a gallery row produced
16696
+ * one; deleting the row later is the gallery's business, not this flag's.
16697
+ *
16698
+ * **Absent ≠ false**, the same rule as {@link hasFace}: every row written
16699
+ * before the column omits it, and so does every server that predates the
16700
+ * field. A consumer must test `=== true` and render nothing otherwise —
16701
+ * never infer "no assignable face".
16702
+ */
16703
+ hasEmbeddedFace: boolean().optional(),
16704
+ /**
16701
16705
  * This subject CONTAINS a folded rider — a person the rider-pairing step
16702
16706
  * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16703
16707
  * so the passage is tracked once and as a VEHICLE.
@@ -18047,6 +18051,32 @@ var DetailResultSchema = object({
18047
18051
  /** FRAME-space bbox (already mapped back from crop space). */
18048
18052
  bbox: NativeCropBboxSchema.optional(),
18049
18053
  embedding: string().optional(),
18054
+ /**
18055
+ * L2 magnitude of the RAW pre-normalization embedding. Additive and optional
18056
+ * so an older runner that does not send it degrades to "unmeasurable", which
18057
+ * the consuming gate treats as accept — never as reject.
18058
+ */
18059
+ embeddingMagnitude: number$1().optional(),
18060
+ /**
18061
+ * Model that produced `embedding` — the SAME contract `labelModelId` has for
18062
+ * `label`, and for the same reason: the producing node is the only side that
18063
+ * knows which model actually ran, and re-deriving it downstream is exactly
18064
+ * the inference this model exists to forbid.
18065
+ *
18066
+ * Additive and optional, so a runner that predates it degrades to
18067
+ * "unmeasurable" rather than to a wrong answer — the consumer falls back to
18068
+ * its previous assumption instead of refusing.
18069
+ *
18070
+ * Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
18071
+ * to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
18072
+ * with nothing on the wire it took the id from the GALLERY, so the gate
18073
+ * compared the gallery against itself and could never fire. That turned the
18074
+ * one guard protecting the face feature space into a tautology, and it is
18075
+ * why swapping `face-embedding`'s model would NOT have stranded the enrolled
18076
+ * gallery as the catalog comment predicts — it would have scored the new
18077
+ * model's vectors against the old model's samples in one cosine space.
18078
+ */
18079
+ embeddingModelId: string().optional(),
18050
18080
  label: string().optional(),
18051
18081
  /**
18052
18082
  * The tier `label` occupies, copied VERBATIM from the producing step's
@@ -19457,6 +19487,7 @@ DeviceType.Camera, method(object({
19457
19487
  isBattery: boolean(),
19458
19488
  reason: _enum([
19459
19489
  "disabled",
19490
+ "offline",
19460
19491
  "sleeping",
19461
19492
  "unreachable",
19462
19493
  "waking"
@@ -19502,9 +19533,17 @@ targets: array(object({
19502
19533
  sleeping: boolean(),
19503
19534
  /** Current device state rendered over the cached frame. State images
19504
19535
  * remain authoritative even when their photographic background is
19505
- * old; null means the link must carry a current camera frame. */
19536
+ * old; null means the link must carry a current camera frame.
19537
+ *
19538
+ * **This is the ONLY source a surface may derive an inactive tile
19539
+ * from.** A client that reads a device's `online`/`disabled` flags and
19540
+ * draws its own verdict will disagree with the pixels it is painting
19541
+ * — the frame comes from here, and so must the sentence over it
19542
+ * (D190). Pair with `ageMs` for the age of the photograph behind the
19543
+ * state. */
19506
19544
  stateReason: _enum([
19507
19545
  "disabled",
19546
+ "offline",
19508
19547
  "sleeping",
19509
19548
  "unreachable",
19510
19549
  "waking"
@@ -33690,7 +33729,6 @@ var NC_AUDIO_DEFAULTS = {
33690
33729
  hitPercent: 60,
33691
33730
  samplingSeconds: 10
33692
33731
  };
33693
- new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33694
33732
  new Set(["devices", "classes"]);
33695
33733
  NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33696
33734
  /**
@@ -33924,6 +33962,39 @@ TimelapseRuleInputSchema.extend({
33924
33962
  createdAt: number$1(),
33925
33963
  updatedAt: number$1()
33926
33964
  });
33965
+ Object.freeze(Object.fromEntries([{
33966
+ stepId: "face-embedding",
33967
+ label: "Face recognition model",
33968
+ defaultModelId: "arcface-r100",
33969
+ indexName: "the enrolled face gallery",
33970
+ options: [
33971
+ {
33972
+ id: "arcface-r100",
33973
+ label: "ArcFace (ResNet34)"
33974
+ },
33975
+ {
33976
+ id: "auraface-r100",
33977
+ label: "AuraFace R100"
33978
+ },
33979
+ {
33980
+ id: "inception-resnet-v1",
33981
+ label: "Inception ResNet V1"
33982
+ }
33983
+ ]
33984
+ }, {
33985
+ stepId: "clip-embedding",
33986
+ label: "Semantic search model",
33987
+ defaultModelId: "mobileclip-s1",
33988
+ indexName: "the object semantic-search index",
33989
+ options: [{
33990
+ id: "mobileclip-s1",
33991
+ label: "MobileCLIP S1"
33992
+ }, {
33993
+ id: "mobileclip-s2",
33994
+ label: "MobileCLIP S2"
33995
+ }]
33996
+ }].map((s) => [s.stepId, s.defaultModelId])));
33997
+ string().min(1);
33927
33998
  object({
33928
33999
  /**
33929
34000
  * Fraction of the box's own size added on EACH side before cutting.
@@ -33944,10 +34015,21 @@ object({
33944
34015
  */
33945
34016
  square: boolean()
33946
34017
  });
33947
- ({
34018
+ /**
34019
+ * The convention in force when nobody has configured one — byte-for-byte the
34020
+ * behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
34021
+ */
34022
+ var DEFAULT_DETAIL_CROP_CONVENTION = {
33948
34023
  paddingRatio: .15,
33949
34024
  square: false
33950
- }).paddingRatio;
34025
+ };
34026
+ Object.freeze({
34027
+ x: 0,
34028
+ y: 0,
34029
+ w: 1,
34030
+ h: 1
34031
+ });
34032
+ DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
33951
34033
  /**
33952
34034
  * WHICH delivered frames the decode worker retains a native copy of.
33953
34035
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-ai",
3
- "version": "0.4.13",
3
+ "version": "0.4.14",
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",