@camstack/addon-notifiers 1.2.27 → 1.2.29

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 +204 -61
  2. package/dist/addon.mjs +204 -61
  3. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -7699,7 +7699,7 @@ var RecordingBandSchema = object({
7699
7699
  postBufferSec: number().min(0).optional()
7700
7700
  });
7701
7701
  ({
7702
- preBufferSec: 10,
7702
+ preBufferSec: 15,
7703
7703
  postBufferSec: 30
7704
7704
  }).postBufferSec * 1e3;
7705
7705
  /**
@@ -13693,128 +13693,103 @@ var COCO_TO_MACRO = {
13693
13693
  var AUDIO_MACRO_LABELS = [
13694
13694
  {
13695
13695
  id: "speech",
13696
- name: "Speech",
13697
- icon: "🗣️"
13696
+ name: "Speech"
13698
13697
  },
13699
13698
  {
13700
13699
  id: "scream",
13701
- name: "Scream / Shout",
13702
- icon: "😱"
13700
+ name: "Scream / Shout"
13703
13701
  },
13704
13702
  {
13705
13703
  id: "crying",
13706
- name: "Crying / Baby",
13707
- icon: "😢"
13704
+ name: "Crying / Baby"
13708
13705
  },
13709
13706
  {
13710
13707
  id: "laughter",
13711
- name: "Laughter",
13712
- icon: "😂"
13708
+ name: "Laughter"
13713
13709
  },
13714
13710
  {
13715
13711
  id: "music",
13716
- name: "Music",
13717
- icon: "🎵"
13712
+ name: "Music"
13718
13713
  },
13719
13714
  {
13720
13715
  id: "dog",
13721
- name: "Dog",
13722
- icon: "🐕"
13716
+ name: "Dog"
13723
13717
  },
13724
13718
  {
13725
13719
  id: "cat",
13726
- name: "Cat",
13727
- icon: "🐈"
13720
+ name: "Cat"
13728
13721
  },
13729
13722
  {
13730
13723
  id: "bird",
13731
- name: "Bird",
13732
- icon: "🐦"
13724
+ name: "Bird"
13733
13725
  },
13734
13726
  {
13735
13727
  id: "animal",
13736
- name: "Animal (other)",
13737
- icon: "🐾"
13728
+ name: "Animal (other)"
13738
13729
  },
13739
13730
  {
13740
13731
  id: "alarm",
13741
- name: "Alarm / Siren",
13742
- icon: "🚨"
13732
+ name: "Alarm / Siren"
13743
13733
  },
13744
13734
  {
13745
13735
  id: "doorbell",
13746
- name: "Doorbell / Knock",
13747
- icon: "🔔"
13736
+ name: "Doorbell / Knock"
13748
13737
  },
13749
13738
  {
13750
13739
  id: "glass_breaking",
13751
- name: "Glass Breaking",
13752
- icon: "💥"
13740
+ name: "Glass Breaking"
13753
13741
  },
13754
13742
  {
13755
13743
  id: "gunshot",
13756
- name: "Gunshot / Explosion",
13757
- icon: "💣"
13744
+ name: "Gunshot / Explosion"
13758
13745
  },
13759
13746
  {
13760
13747
  id: "vehicle",
13761
- name: "Vehicle",
13762
- icon: "🚗"
13748
+ name: "Vehicle"
13763
13749
  },
13764
13750
  {
13765
13751
  id: "siren",
13766
- name: "Emergency Siren",
13767
- icon: "🚑"
13752
+ name: "Emergency Siren"
13768
13753
  },
13769
13754
  {
13770
13755
  id: "fire",
13771
- name: "Fire / Smoke",
13772
- icon: "🔥"
13756
+ name: "Fire / Smoke"
13773
13757
  },
13774
13758
  {
13775
13759
  id: "water",
13776
- name: "Water",
13777
- icon: "💧"
13760
+ name: "Water"
13778
13761
  },
13779
13762
  {
13780
13763
  id: "wind",
13781
- name: "Wind / Weather",
13782
- icon: "🌬️"
13764
+ name: "Wind / Weather"
13783
13765
  },
13784
13766
  {
13785
13767
  id: "door",
13786
- name: "Door",
13787
- icon: "🚪"
13768
+ name: "Door"
13788
13769
  },
13789
13770
  {
13790
13771
  id: "footsteps",
13791
- name: "Footsteps",
13792
- icon: "👣"
13772
+ name: "Footsteps"
13793
13773
  },
13794
13774
  {
13795
13775
  id: "crowd",
13796
- name: "Crowd / Chatter",
13797
- icon: "👥"
13776
+ name: "Crowd / Chatter"
13798
13777
  },
13799
13778
  {
13800
13779
  id: "telephone",
13801
- name: "Telephone",
13802
- icon: "📞"
13780
+ name: "Telephone"
13803
13781
  },
13804
13782
  {
13805
13783
  id: "engine",
13806
- name: "Engine / Motor",
13807
- icon: "⚙️"
13784
+ name: "Engine / Motor"
13808
13785
  },
13809
13786
  {
13810
13787
  id: "tools",
13811
- name: "Tools / Construction",
13812
- icon: "🔨"
13788
+ name: "Tools / Construction"
13813
13789
  },
13814
13790
  {
13815
13791
  id: "silence",
13816
- name: "Silence",
13817
- icon: "🤫"
13792
+ name: "Silence"
13818
13793
  }
13819
13794
  ];
13820
13795
  var YAMNET_TO_MACRO = {
@@ -16278,7 +16253,7 @@ var TrackEnvelopeSchema = object({
16278
16253
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
16279
16254
  * keeps every scalar the list surfaces actually render (ids, class(es),
16280
16255
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
16281
- * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
16256
+ * zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
16282
16257
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
16283
16258
  * `getTrack`. Mirrors the event-store `projection` convention
16284
16259
  * (`getObjectEvents` et al.).
@@ -16573,6 +16548,35 @@ var TrackSchema = object({
16573
16548
  */
16574
16549
  hasFace: boolean().optional(),
16575
16550
  /**
16551
+ * This track has a face row IN THE GALLERY: a crop **and** an embedding — a
16552
+ * face an operator could ASSIGN to an identity.
16553
+ *
16554
+ * The STRICT twin of {@link hasFace}, and the pair only earns its keep
16555
+ * because the two disagree. `hasFace` is stamped at the TOP of the face
16556
+ * branch, before every gate, and means no more than "a face detector produced
16557
+ * a face detail". This one is stamped at the single moment the gallery row
16558
+ * LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
16559
+ * past the embedding-magnitude verdict, the `minFacePx` detection gate, the
16560
+ * candidate gate, the imageless-track drop (no crop was ever captured) and
16561
+ * the crop-store drop. Everything between the detector and that insert can
16562
+ * legitimately refuse the face, so a flag written any earlier promises the
16563
+ * operator something to assign and delivers nothing.
16564
+ *
16565
+ * **Independent of recognition.** A face collected but never auto-matched is
16566
+ * still assignable — it is in fact the face an operator most wants to reach —
16567
+ * so this is NOT gated on `recognizedIdentityId`. Recognition lands in
16568
+ * `subLabel`; this says only that the raw material exists.
16569
+ *
16570
+ * **Set once, never cleared.** A track that produced a gallery row produced
16571
+ * one; deleting the row later is the gallery's business, not this flag's.
16572
+ *
16573
+ * **Absent ≠ false**, the same rule as {@link hasFace}: every row written
16574
+ * before the column omits it, and so does every server that predates the
16575
+ * field. A consumer must test `=== true` and render nothing otherwise —
16576
+ * never infer "no assignable face".
16577
+ */
16578
+ hasEmbeddedFace: boolean().optional(),
16579
+ /**
16576
16580
  * This subject CONTAINS a folded rider — a person the rider-pairing step
16577
16581
  * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16578
16582
  * so the passage is tracked once and as a VEHICLE.
@@ -17922,6 +17926,32 @@ var DetailResultSchema = object({
17922
17926
  /** FRAME-space bbox (already mapped back from crop space). */
17923
17927
  bbox: NativeCropBboxSchema.optional(),
17924
17928
  embedding: string().optional(),
17929
+ /**
17930
+ * L2 magnitude of the RAW pre-normalization embedding. Additive and optional
17931
+ * so an older runner that does not send it degrades to "unmeasurable", which
17932
+ * the consuming gate treats as accept — never as reject.
17933
+ */
17934
+ embeddingMagnitude: number().optional(),
17935
+ /**
17936
+ * Model that produced `embedding` — the SAME contract `labelModelId` has for
17937
+ * `label`, and for the same reason: the producing node is the only side that
17938
+ * knows which model actually ran, and re-deriving it downstream is exactly
17939
+ * the inference this model exists to forbid.
17940
+ *
17941
+ * Additive and optional, so a runner that predates it degrades to
17942
+ * "unmeasurable" rather than to a wrong answer — the consumer falls back to
17943
+ * its previous assumption instead of refusing.
17944
+ *
17945
+ * Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
17946
+ * to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
17947
+ * with nothing on the wire it took the id from the GALLERY, so the gate
17948
+ * compared the gallery against itself and could never fire. That turned the
17949
+ * one guard protecting the face feature space into a tautology, and it is
17950
+ * why swapping `face-embedding`'s model would NOT have stranded the enrolled
17951
+ * gallery as the catalog comment predicts — it would have scored the new
17952
+ * model's vectors against the old model's samples in one cosine space.
17953
+ */
17954
+ embeddingModelId: string().optional(),
17925
17955
  label: string().optional(),
17926
17956
  /**
17927
17957
  * The tier `label` occupies, copied VERBATIM from the producing step's
@@ -18797,6 +18827,12 @@ var CameraStatusSchema = object({
18797
18827
  /** Unix timestamp (ms) when this snapshot was composed server-side. */
18798
18828
  fetchedAt: number()
18799
18829
  });
18830
+ var InferenceDeviceExclusionReasonSchema = _enum([
18831
+ "disabled",
18832
+ "unavailable",
18833
+ "cannot-host-camera-root",
18834
+ "accelerator-preferred"
18835
+ ]);
18800
18836
  var NodeInferenceDeviceSchema = object({
18801
18837
  /** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
18802
18838
  key: string(),
@@ -18827,7 +18863,17 @@ var NodeInferenceDeviceSchema = object({
18827
18863
  * available per format; this is the stored selection that becomes the
18828
18864
  * default for EVERY camera landing on this accelerator.
18829
18865
  */
18830
- steps: record(string(), DeviceStepConfigSchema).optional()
18866
+ steps: record(string(), DeviceStepConfigSchema).optional(),
18867
+ /**
18868
+ * `null` when the device IS a camera-root candidate on this node; otherwise
18869
+ * the reason the dispatcher drops it. Computed by the SAME
18870
+ * `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
18871
+ * never disagree with the election — deriving it in the UI from
18872
+ * `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
18873
+ * the node's model catalog) and `accelerator-preferred` (needs the node-wide
18874
+ * "an accelerator is serving" predicate).
18875
+ */
18876
+ exclusion: InferenceDeviceExclusionReasonSchema.nullable()
18831
18877
  });
18832
18878
  var NodeInferenceDevicesSchema = object({
18833
18879
  nodeId: string(),
@@ -19332,6 +19378,7 @@ DeviceType.Camera, method(object({
19332
19378
  isBattery: boolean(),
19333
19379
  reason: _enum([
19334
19380
  "disabled",
19381
+ "offline",
19335
19382
  "sleeping",
19336
19383
  "unreachable",
19337
19384
  "waking"
@@ -19377,9 +19424,17 @@ targets: array(object({
19377
19424
  sleeping: boolean(),
19378
19425
  /** Current device state rendered over the cached frame. State images
19379
19426
  * remain authoritative even when their photographic background is
19380
- * old; null means the link must carry a current camera frame. */
19427
+ * old; null means the link must carry a current camera frame.
19428
+ *
19429
+ * **This is the ONLY source a surface may derive an inactive tile
19430
+ * from.** A client that reads a device's `online`/`disabled` flags and
19431
+ * draws its own verdict will disagree with the pixels it is painting
19432
+ * — the frame comes from here, and so must the sentence over it
19433
+ * (D190). Pair with `ageMs` for the age of the photograph behind the
19434
+ * state. */
19381
19435
  stateReason: _enum([
19382
19436
  "disabled",
19437
+ "offline",
19383
19438
  "sleeping",
19384
19439
  "unreachable",
19385
19440
  "waking"
@@ -22576,7 +22631,12 @@ var ListResultSchema = object({
22576
22631
  probedAt: number()
22577
22632
  });
22578
22633
  var PreferredSchema = LocalInterfaceSchema.nullable();
22579
- var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
22634
+ /**
22635
+ * Candidate base URL for the SDK to race on connect. Order matters —
22636
+ * the SDK should attempt these top-to-bottom with a short per-candidate
22637
+ * timeout (e.g. 1500ms) and cache the winner for the session.
22638
+ */
22639
+ var ConnectionEndpointSchema = object({
22580
22640
  /** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
22581
22641
  label: string(),
22582
22642
  /** Fully-formed base URL with scheme + host + port. */
@@ -22619,7 +22679,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
22619
22679
  * ordering between polls.
22620
22680
  */
22621
22681
  priority: number()
22622
- })).readonly() });
22682
+ });
22683
+ /**
22684
+ * Where the advertised local port came from. Ordered most → least
22685
+ * authoritative, and the whole point of returning it: a client must be able to
22686
+ * tell a FACT about the hub's socket from an echo of its own guess.
22687
+ */
22688
+ var LocalPortSourceEnum = _enum([
22689
+ "server-config",
22690
+ "server-env",
22691
+ "caller-hint",
22692
+ "default"
22693
+ ]);
22694
+ /** The port every LAN/loopback `baseUrl` in the same result was built with. */
22695
+ var AdvertisedLocalPortSchema = object({
22696
+ port: number().int().min(1).max(65535),
22697
+ source: LocalPortSourceEnum
22698
+ });
22699
+ var GetConnectionEndpointsResultSchema = object({
22700
+ endpoints: array(ConnectionEndpointSchema).readonly(),
22701
+ /**
22702
+ * The port the hub built the LAN/loopback URLs with, and where that number
22703
+ * came from.
22704
+ *
22705
+ * Returned rather than merely applied, because "the URL is right" and "the
22706
+ * client can KNOW the URL is right" are different properties. A client that
22707
+ * only sees a corrected URL cannot distinguish a hub that fixed the port from
22708
+ * a hub that echoed the port the client sent, so it cannot decide whether to
22709
+ * race the candidate or discard it. With `source` it can: anything but
22710
+ * `caller-hint` is the hub's own socket.
22711
+ *
22712
+ * Absent on hubs predating this field — a client that finds it missing is
22713
+ * talking to an echoing hub and must degrade exactly as it does for
22714
+ * `caller-hint`.
22715
+ */
22716
+ localPort: AdvertisedLocalPortSchema
22717
+ });
22623
22718
  /**
22624
22719
  * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
22625
22720
  * AUTO (resolved from the candidate ranking at send time); `resolved` reports
@@ -22640,8 +22735,13 @@ var AllowedAddressesSchema = object({
22640
22735
  */
22641
22736
  addresses: array(string()).readonly() });
22642
22737
  method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
22643
- /** Local hub HTTP port to use in base URLs. */
22644
- port: number().int().min(1).max(65535),
22738
+ /**
22739
+ * LEGACY HINT — do not send from new code. Kept optional so clients
22740
+ * written against the echoing contract keep working; the hub uses it
22741
+ * only when it cannot read its own port, and says so via
22742
+ * `localPort.source === 'caller-hint'`.
22743
+ */
22744
+ port: number().int().min(1).max(65535).optional(),
22645
22745
  /** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
22646
22746
  * candidate. Default `true`. */
22647
22747
  includeLoopback: boolean().optional(),
@@ -33565,7 +33665,6 @@ var NC_AUDIO_DEFAULTS = {
33565
33665
  hitPercent: 60,
33566
33666
  samplingSeconds: 10
33567
33667
  };
33568
- new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33569
33668
  new Set(["devices", "classes"]);
33570
33669
  /** Strip a small, safe subset of Markdown down to plain text. */
33571
33670
  function markdownToText(md) {
@@ -34006,6 +34105,39 @@ TimelapseRuleInputSchema.extend({
34006
34105
  createdAt: number(),
34007
34106
  updatedAt: number()
34008
34107
  });
34108
+ Object.freeze(Object.fromEntries([{
34109
+ stepId: "face-embedding",
34110
+ label: "Face recognition model",
34111
+ defaultModelId: "arcface-r100",
34112
+ indexName: "the enrolled face gallery",
34113
+ options: [
34114
+ {
34115
+ id: "arcface-r100",
34116
+ label: "ArcFace (ResNet34)"
34117
+ },
34118
+ {
34119
+ id: "auraface-r100",
34120
+ label: "AuraFace R100"
34121
+ },
34122
+ {
34123
+ id: "inception-resnet-v1",
34124
+ label: "Inception ResNet V1"
34125
+ }
34126
+ ]
34127
+ }, {
34128
+ stepId: "clip-embedding",
34129
+ label: "Semantic search model",
34130
+ defaultModelId: "mobileclip-s1",
34131
+ indexName: "the object semantic-search index",
34132
+ options: [{
34133
+ id: "mobileclip-s1",
34134
+ label: "MobileCLIP S1"
34135
+ }, {
34136
+ id: "mobileclip-s2",
34137
+ label: "MobileCLIP S2"
34138
+ }]
34139
+ }].map((s) => [s.stepId, s.defaultModelId])));
34140
+ string().min(1);
34009
34141
  object({
34010
34142
  /**
34011
34143
  * Fraction of the box's own size added on EACH side before cutting.
@@ -34026,10 +34158,21 @@ object({
34026
34158
  */
34027
34159
  square: boolean()
34028
34160
  });
34029
- ({
34161
+ /**
34162
+ * The convention in force when nobody has configured one — byte-for-byte the
34163
+ * behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
34164
+ */
34165
+ var DEFAULT_DETAIL_CROP_CONVENTION = {
34030
34166
  paddingRatio: .15,
34031
34167
  square: false
34032
- }).paddingRatio;
34168
+ };
34169
+ Object.freeze({
34170
+ x: 0,
34171
+ y: 0,
34172
+ w: 1,
34173
+ h: 1
34174
+ });
34175
+ DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
34033
34176
  /**
34034
34177
  * WHICH delivered frames the decode worker retains a native copy of.
34035
34178
  *
package/dist/addon.mjs CHANGED
@@ -7672,7 +7672,7 @@ var RecordingBandSchema = object({
7672
7672
  postBufferSec: number().min(0).optional()
7673
7673
  });
7674
7674
  ({
7675
- preBufferSec: 10,
7675
+ preBufferSec: 15,
7676
7676
  postBufferSec: 30
7677
7677
  }).postBufferSec * 1e3;
7678
7678
  /**
@@ -13666,128 +13666,103 @@ var COCO_TO_MACRO = {
13666
13666
  var AUDIO_MACRO_LABELS = [
13667
13667
  {
13668
13668
  id: "speech",
13669
- name: "Speech",
13670
- icon: "🗣️"
13669
+ name: "Speech"
13671
13670
  },
13672
13671
  {
13673
13672
  id: "scream",
13674
- name: "Scream / Shout",
13675
- icon: "😱"
13673
+ name: "Scream / Shout"
13676
13674
  },
13677
13675
  {
13678
13676
  id: "crying",
13679
- name: "Crying / Baby",
13680
- icon: "😢"
13677
+ name: "Crying / Baby"
13681
13678
  },
13682
13679
  {
13683
13680
  id: "laughter",
13684
- name: "Laughter",
13685
- icon: "😂"
13681
+ name: "Laughter"
13686
13682
  },
13687
13683
  {
13688
13684
  id: "music",
13689
- name: "Music",
13690
- icon: "🎵"
13685
+ name: "Music"
13691
13686
  },
13692
13687
  {
13693
13688
  id: "dog",
13694
- name: "Dog",
13695
- icon: "🐕"
13689
+ name: "Dog"
13696
13690
  },
13697
13691
  {
13698
13692
  id: "cat",
13699
- name: "Cat",
13700
- icon: "🐈"
13693
+ name: "Cat"
13701
13694
  },
13702
13695
  {
13703
13696
  id: "bird",
13704
- name: "Bird",
13705
- icon: "🐦"
13697
+ name: "Bird"
13706
13698
  },
13707
13699
  {
13708
13700
  id: "animal",
13709
- name: "Animal (other)",
13710
- icon: "🐾"
13701
+ name: "Animal (other)"
13711
13702
  },
13712
13703
  {
13713
13704
  id: "alarm",
13714
- name: "Alarm / Siren",
13715
- icon: "🚨"
13705
+ name: "Alarm / Siren"
13716
13706
  },
13717
13707
  {
13718
13708
  id: "doorbell",
13719
- name: "Doorbell / Knock",
13720
- icon: "🔔"
13709
+ name: "Doorbell / Knock"
13721
13710
  },
13722
13711
  {
13723
13712
  id: "glass_breaking",
13724
- name: "Glass Breaking",
13725
- icon: "💥"
13713
+ name: "Glass Breaking"
13726
13714
  },
13727
13715
  {
13728
13716
  id: "gunshot",
13729
- name: "Gunshot / Explosion",
13730
- icon: "💣"
13717
+ name: "Gunshot / Explosion"
13731
13718
  },
13732
13719
  {
13733
13720
  id: "vehicle",
13734
- name: "Vehicle",
13735
- icon: "🚗"
13721
+ name: "Vehicle"
13736
13722
  },
13737
13723
  {
13738
13724
  id: "siren",
13739
- name: "Emergency Siren",
13740
- icon: "🚑"
13725
+ name: "Emergency Siren"
13741
13726
  },
13742
13727
  {
13743
13728
  id: "fire",
13744
- name: "Fire / Smoke",
13745
- icon: "🔥"
13729
+ name: "Fire / Smoke"
13746
13730
  },
13747
13731
  {
13748
13732
  id: "water",
13749
- name: "Water",
13750
- icon: "💧"
13733
+ name: "Water"
13751
13734
  },
13752
13735
  {
13753
13736
  id: "wind",
13754
- name: "Wind / Weather",
13755
- icon: "🌬️"
13737
+ name: "Wind / Weather"
13756
13738
  },
13757
13739
  {
13758
13740
  id: "door",
13759
- name: "Door",
13760
- icon: "🚪"
13741
+ name: "Door"
13761
13742
  },
13762
13743
  {
13763
13744
  id: "footsteps",
13764
- name: "Footsteps",
13765
- icon: "👣"
13745
+ name: "Footsteps"
13766
13746
  },
13767
13747
  {
13768
13748
  id: "crowd",
13769
- name: "Crowd / Chatter",
13770
- icon: "👥"
13749
+ name: "Crowd / Chatter"
13771
13750
  },
13772
13751
  {
13773
13752
  id: "telephone",
13774
- name: "Telephone",
13775
- icon: "📞"
13753
+ name: "Telephone"
13776
13754
  },
13777
13755
  {
13778
13756
  id: "engine",
13779
- name: "Engine / Motor",
13780
- icon: "⚙️"
13757
+ name: "Engine / Motor"
13781
13758
  },
13782
13759
  {
13783
13760
  id: "tools",
13784
- name: "Tools / Construction",
13785
- icon: "🔨"
13761
+ name: "Tools / Construction"
13786
13762
  },
13787
13763
  {
13788
13764
  id: "silence",
13789
- name: "Silence",
13790
- icon: "🤫"
13765
+ name: "Silence"
13791
13766
  }
13792
13767
  ];
13793
13768
  var YAMNET_TO_MACRO = {
@@ -16251,7 +16226,7 @@ var TrackEnvelopeSchema = object({
16251
16226
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
16252
16227
  * keeps every scalar the list surfaces actually render (ids, class(es),
16253
16228
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
16254
- * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
16229
+ * zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
16255
16230
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
16256
16231
  * `getTrack`. Mirrors the event-store `projection` convention
16257
16232
  * (`getObjectEvents` et al.).
@@ -16546,6 +16521,35 @@ var TrackSchema = object({
16546
16521
  */
16547
16522
  hasFace: boolean().optional(),
16548
16523
  /**
16524
+ * This track has a face row IN THE GALLERY: a crop **and** an embedding — a
16525
+ * face an operator could ASSIGN to an identity.
16526
+ *
16527
+ * The STRICT twin of {@link hasFace}, and the pair only earns its keep
16528
+ * because the two disagree. `hasFace` is stamped at the TOP of the face
16529
+ * branch, before every gate, and means no more than "a face detector produced
16530
+ * a face detail". This one is stamped at the single moment the gallery row
16531
+ * LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
16532
+ * past the embedding-magnitude verdict, the `minFacePx` detection gate, the
16533
+ * candidate gate, the imageless-track drop (no crop was ever captured) and
16534
+ * the crop-store drop. Everything between the detector and that insert can
16535
+ * legitimately refuse the face, so a flag written any earlier promises the
16536
+ * operator something to assign and delivers nothing.
16537
+ *
16538
+ * **Independent of recognition.** A face collected but never auto-matched is
16539
+ * still assignable — it is in fact the face an operator most wants to reach —
16540
+ * so this is NOT gated on `recognizedIdentityId`. Recognition lands in
16541
+ * `subLabel`; this says only that the raw material exists.
16542
+ *
16543
+ * **Set once, never cleared.** A track that produced a gallery row produced
16544
+ * one; deleting the row later is the gallery's business, not this flag's.
16545
+ *
16546
+ * **Absent ≠ false**, the same rule as {@link hasFace}: every row written
16547
+ * before the column omits it, and so does every server that predates the
16548
+ * field. A consumer must test `=== true` and render nothing otherwise —
16549
+ * never infer "no assignable face".
16550
+ */
16551
+ hasEmbeddedFace: boolean().optional(),
16552
+ /**
16549
16553
  * This subject CONTAINS a folded rider — a person the rider-pairing step
16550
16554
  * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16551
16555
  * so the passage is tracked once and as a VEHICLE.
@@ -17895,6 +17899,32 @@ var DetailResultSchema = object({
17895
17899
  /** FRAME-space bbox (already mapped back from crop space). */
17896
17900
  bbox: NativeCropBboxSchema.optional(),
17897
17901
  embedding: string().optional(),
17902
+ /**
17903
+ * L2 magnitude of the RAW pre-normalization embedding. Additive and optional
17904
+ * so an older runner that does not send it degrades to "unmeasurable", which
17905
+ * the consuming gate treats as accept — never as reject.
17906
+ */
17907
+ embeddingMagnitude: number().optional(),
17908
+ /**
17909
+ * Model that produced `embedding` — the SAME contract `labelModelId` has for
17910
+ * `label`, and for the same reason: the producing node is the only side that
17911
+ * knows which model actually ran, and re-deriving it downstream is exactly
17912
+ * the inference this model exists to forbid.
17913
+ *
17914
+ * Additive and optional, so a runner that predates it degrades to
17915
+ * "unmeasurable" rather than to a wrong answer — the consumer falls back to
17916
+ * its previous assumption instead of refusing.
17917
+ *
17918
+ * Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
17919
+ * to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
17920
+ * with nothing on the wire it took the id from the GALLERY, so the gate
17921
+ * compared the gallery against itself and could never fire. That turned the
17922
+ * one guard protecting the face feature space into a tautology, and it is
17923
+ * why swapping `face-embedding`'s model would NOT have stranded the enrolled
17924
+ * gallery as the catalog comment predicts — it would have scored the new
17925
+ * model's vectors against the old model's samples in one cosine space.
17926
+ */
17927
+ embeddingModelId: string().optional(),
17898
17928
  label: string().optional(),
17899
17929
  /**
17900
17930
  * The tier `label` occupies, copied VERBATIM from the producing step's
@@ -18770,6 +18800,12 @@ var CameraStatusSchema = object({
18770
18800
  /** Unix timestamp (ms) when this snapshot was composed server-side. */
18771
18801
  fetchedAt: number()
18772
18802
  });
18803
+ var InferenceDeviceExclusionReasonSchema = _enum([
18804
+ "disabled",
18805
+ "unavailable",
18806
+ "cannot-host-camera-root",
18807
+ "accelerator-preferred"
18808
+ ]);
18773
18809
  var NodeInferenceDeviceSchema = object({
18774
18810
  /** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
18775
18811
  key: string(),
@@ -18800,7 +18836,17 @@ var NodeInferenceDeviceSchema = object({
18800
18836
  * available per format; this is the stored selection that becomes the
18801
18837
  * default for EVERY camera landing on this accelerator.
18802
18838
  */
18803
- steps: record(string(), DeviceStepConfigSchema).optional()
18839
+ steps: record(string(), DeviceStepConfigSchema).optional(),
18840
+ /**
18841
+ * `null` when the device IS a camera-root candidate on this node; otherwise
18842
+ * the reason the dispatcher drops it. Computed by the SAME
18843
+ * `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
18844
+ * never disagree with the election — deriving it in the UI from
18845
+ * `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
18846
+ * the node's model catalog) and `accelerator-preferred` (needs the node-wide
18847
+ * "an accelerator is serving" predicate).
18848
+ */
18849
+ exclusion: InferenceDeviceExclusionReasonSchema.nullable()
18804
18850
  });
18805
18851
  var NodeInferenceDevicesSchema = object({
18806
18852
  nodeId: string(),
@@ -19305,6 +19351,7 @@ DeviceType.Camera, method(object({
19305
19351
  isBattery: boolean(),
19306
19352
  reason: _enum([
19307
19353
  "disabled",
19354
+ "offline",
19308
19355
  "sleeping",
19309
19356
  "unreachable",
19310
19357
  "waking"
@@ -19350,9 +19397,17 @@ targets: array(object({
19350
19397
  sleeping: boolean(),
19351
19398
  /** Current device state rendered over the cached frame. State images
19352
19399
  * remain authoritative even when their photographic background is
19353
- * old; null means the link must carry a current camera frame. */
19400
+ * old; null means the link must carry a current camera frame.
19401
+ *
19402
+ * **This is the ONLY source a surface may derive an inactive tile
19403
+ * from.** A client that reads a device's `online`/`disabled` flags and
19404
+ * draws its own verdict will disagree with the pixels it is painting
19405
+ * — the frame comes from here, and so must the sentence over it
19406
+ * (D190). Pair with `ageMs` for the age of the photograph behind the
19407
+ * state. */
19354
19408
  stateReason: _enum([
19355
19409
  "disabled",
19410
+ "offline",
19356
19411
  "sleeping",
19357
19412
  "unreachable",
19358
19413
  "waking"
@@ -22549,7 +22604,12 @@ var ListResultSchema = object({
22549
22604
  probedAt: number()
22550
22605
  });
22551
22606
  var PreferredSchema = LocalInterfaceSchema.nullable();
22552
- var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
22607
+ /**
22608
+ * Candidate base URL for the SDK to race on connect. Order matters —
22609
+ * the SDK should attempt these top-to-bottom with a short per-candidate
22610
+ * timeout (e.g. 1500ms) and cache the winner for the session.
22611
+ */
22612
+ var ConnectionEndpointSchema = object({
22553
22613
  /** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
22554
22614
  label: string(),
22555
22615
  /** Fully-formed base URL with scheme + host + port. */
@@ -22592,7 +22652,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
22592
22652
  * ordering between polls.
22593
22653
  */
22594
22654
  priority: number()
22595
- })).readonly() });
22655
+ });
22656
+ /**
22657
+ * Where the advertised local port came from. Ordered most → least
22658
+ * authoritative, and the whole point of returning it: a client must be able to
22659
+ * tell a FACT about the hub's socket from an echo of its own guess.
22660
+ */
22661
+ var LocalPortSourceEnum = _enum([
22662
+ "server-config",
22663
+ "server-env",
22664
+ "caller-hint",
22665
+ "default"
22666
+ ]);
22667
+ /** The port every LAN/loopback `baseUrl` in the same result was built with. */
22668
+ var AdvertisedLocalPortSchema = object({
22669
+ port: number().int().min(1).max(65535),
22670
+ source: LocalPortSourceEnum
22671
+ });
22672
+ var GetConnectionEndpointsResultSchema = object({
22673
+ endpoints: array(ConnectionEndpointSchema).readonly(),
22674
+ /**
22675
+ * The port the hub built the LAN/loopback URLs with, and where that number
22676
+ * came from.
22677
+ *
22678
+ * Returned rather than merely applied, because "the URL is right" and "the
22679
+ * client can KNOW the URL is right" are different properties. A client that
22680
+ * only sees a corrected URL cannot distinguish a hub that fixed the port from
22681
+ * a hub that echoed the port the client sent, so it cannot decide whether to
22682
+ * race the candidate or discard it. With `source` it can: anything but
22683
+ * `caller-hint` is the hub's own socket.
22684
+ *
22685
+ * Absent on hubs predating this field — a client that finds it missing is
22686
+ * talking to an echoing hub and must degrade exactly as it does for
22687
+ * `caller-hint`.
22688
+ */
22689
+ localPort: AdvertisedLocalPortSchema
22690
+ });
22596
22691
  /**
22597
22692
  * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
22598
22693
  * AUTO (resolved from the candidate ranking at send time); `resolved` reports
@@ -22613,8 +22708,13 @@ var AllowedAddressesSchema = object({
22613
22708
  */
22614
22709
  addresses: array(string()).readonly() });
22615
22710
  method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
22616
- /** Local hub HTTP port to use in base URLs. */
22617
- port: number().int().min(1).max(65535),
22711
+ /**
22712
+ * LEGACY HINT — do not send from new code. Kept optional so clients
22713
+ * written against the echoing contract keep working; the hub uses it
22714
+ * only when it cannot read its own port, and says so via
22715
+ * `localPort.source === 'caller-hint'`.
22716
+ */
22717
+ port: number().int().min(1).max(65535).optional(),
22618
22718
  /** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
22619
22719
  * candidate. Default `true`. */
22620
22720
  includeLoopback: boolean().optional(),
@@ -33538,7 +33638,6 @@ var NC_AUDIO_DEFAULTS = {
33538
33638
  hitPercent: 60,
33539
33639
  samplingSeconds: 10
33540
33640
  };
33541
- new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33542
33641
  new Set(["devices", "classes"]);
33543
33642
  /** Strip a small, safe subset of Markdown down to plain text. */
33544
33643
  function markdownToText(md) {
@@ -33979,6 +34078,39 @@ TimelapseRuleInputSchema.extend({
33979
34078
  createdAt: number(),
33980
34079
  updatedAt: number()
33981
34080
  });
34081
+ Object.freeze(Object.fromEntries([{
34082
+ stepId: "face-embedding",
34083
+ label: "Face recognition model",
34084
+ defaultModelId: "arcface-r100",
34085
+ indexName: "the enrolled face gallery",
34086
+ options: [
34087
+ {
34088
+ id: "arcface-r100",
34089
+ label: "ArcFace (ResNet34)"
34090
+ },
34091
+ {
34092
+ id: "auraface-r100",
34093
+ label: "AuraFace R100"
34094
+ },
34095
+ {
34096
+ id: "inception-resnet-v1",
34097
+ label: "Inception ResNet V1"
34098
+ }
34099
+ ]
34100
+ }, {
34101
+ stepId: "clip-embedding",
34102
+ label: "Semantic search model",
34103
+ defaultModelId: "mobileclip-s1",
34104
+ indexName: "the object semantic-search index",
34105
+ options: [{
34106
+ id: "mobileclip-s1",
34107
+ label: "MobileCLIP S1"
34108
+ }, {
34109
+ id: "mobileclip-s2",
34110
+ label: "MobileCLIP S2"
34111
+ }]
34112
+ }].map((s) => [s.stepId, s.defaultModelId])));
34113
+ string().min(1);
33982
34114
  object({
33983
34115
  /**
33984
34116
  * Fraction of the box's own size added on EACH side before cutting.
@@ -33999,10 +34131,21 @@ object({
33999
34131
  */
34000
34132
  square: boolean()
34001
34133
  });
34002
- ({
34134
+ /**
34135
+ * The convention in force when nobody has configured one — byte-for-byte the
34136
+ * behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
34137
+ */
34138
+ var DEFAULT_DETAIL_CROP_CONVENTION = {
34003
34139
  paddingRatio: .15,
34004
34140
  square: false
34005
- }).paddingRatio;
34141
+ };
34142
+ Object.freeze({
34143
+ x: 0,
34144
+ y: 0,
34145
+ w: 1,
34146
+ h: 1
34147
+ });
34148
+ DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
34006
34149
  /**
34007
34150
  * WHICH delivered frames the decode worker retains a native copy of.
34008
34151
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-notifiers",
3
- "version": "1.2.27",
3
+ "version": "1.2.29",
4
4
  "description": "System notifiers addon for CamStack — a `notification-output` collection provider hosting per-kind notifier adapters (ntfy, pushover, gotify, telegram, discord, webhook, zentik).",
5
5
  "keywords": [
6
6
  "camstack",