@camstack/addon-decoder-nodeav 1.2.22 → 1.2.24

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/index.js +204 -61
  2. package/dist/index.mjs +204 -61
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -7566,7 +7566,7 @@ var RecordingBandSchema = object({
7566
7566
  postBufferSec: number().min(0).optional()
7567
7567
  });
7568
7568
  ({
7569
- preBufferSec: 10,
7569
+ preBufferSec: 15,
7570
7570
  postBufferSec: 30
7571
7571
  }).postBufferSec * 1e3;
7572
7572
  /**
@@ -13635,128 +13635,103 @@ var COCO_TO_MACRO = {
13635
13635
  var AUDIO_MACRO_LABELS = [
13636
13636
  {
13637
13637
  id: "speech",
13638
- name: "Speech",
13639
- icon: "🗣️"
13638
+ name: "Speech"
13640
13639
  },
13641
13640
  {
13642
13641
  id: "scream",
13643
- name: "Scream / Shout",
13644
- icon: "😱"
13642
+ name: "Scream / Shout"
13645
13643
  },
13646
13644
  {
13647
13645
  id: "crying",
13648
- name: "Crying / Baby",
13649
- icon: "😢"
13646
+ name: "Crying / Baby"
13650
13647
  },
13651
13648
  {
13652
13649
  id: "laughter",
13653
- name: "Laughter",
13654
- icon: "😂"
13650
+ name: "Laughter"
13655
13651
  },
13656
13652
  {
13657
13653
  id: "music",
13658
- name: "Music",
13659
- icon: "🎵"
13654
+ name: "Music"
13660
13655
  },
13661
13656
  {
13662
13657
  id: "dog",
13663
- name: "Dog",
13664
- icon: "🐕"
13658
+ name: "Dog"
13665
13659
  },
13666
13660
  {
13667
13661
  id: "cat",
13668
- name: "Cat",
13669
- icon: "🐈"
13662
+ name: "Cat"
13670
13663
  },
13671
13664
  {
13672
13665
  id: "bird",
13673
- name: "Bird",
13674
- icon: "🐦"
13666
+ name: "Bird"
13675
13667
  },
13676
13668
  {
13677
13669
  id: "animal",
13678
- name: "Animal (other)",
13679
- icon: "🐾"
13670
+ name: "Animal (other)"
13680
13671
  },
13681
13672
  {
13682
13673
  id: "alarm",
13683
- name: "Alarm / Siren",
13684
- icon: "🚨"
13674
+ name: "Alarm / Siren"
13685
13675
  },
13686
13676
  {
13687
13677
  id: "doorbell",
13688
- name: "Doorbell / Knock",
13689
- icon: "🔔"
13678
+ name: "Doorbell / Knock"
13690
13679
  },
13691
13680
  {
13692
13681
  id: "glass_breaking",
13693
- name: "Glass Breaking",
13694
- icon: "💥"
13682
+ name: "Glass Breaking"
13695
13683
  },
13696
13684
  {
13697
13685
  id: "gunshot",
13698
- name: "Gunshot / Explosion",
13699
- icon: "💣"
13686
+ name: "Gunshot / Explosion"
13700
13687
  },
13701
13688
  {
13702
13689
  id: "vehicle",
13703
- name: "Vehicle",
13704
- icon: "🚗"
13690
+ name: "Vehicle"
13705
13691
  },
13706
13692
  {
13707
13693
  id: "siren",
13708
- name: "Emergency Siren",
13709
- icon: "🚑"
13694
+ name: "Emergency Siren"
13710
13695
  },
13711
13696
  {
13712
13697
  id: "fire",
13713
- name: "Fire / Smoke",
13714
- icon: "🔥"
13698
+ name: "Fire / Smoke"
13715
13699
  },
13716
13700
  {
13717
13701
  id: "water",
13718
- name: "Water",
13719
- icon: "💧"
13702
+ name: "Water"
13720
13703
  },
13721
13704
  {
13722
13705
  id: "wind",
13723
- name: "Wind / Weather",
13724
- icon: "🌬️"
13706
+ name: "Wind / Weather"
13725
13707
  },
13726
13708
  {
13727
13709
  id: "door",
13728
- name: "Door",
13729
- icon: "🚪"
13710
+ name: "Door"
13730
13711
  },
13731
13712
  {
13732
13713
  id: "footsteps",
13733
- name: "Footsteps",
13734
- icon: "👣"
13714
+ name: "Footsteps"
13735
13715
  },
13736
13716
  {
13737
13717
  id: "crowd",
13738
- name: "Crowd / Chatter",
13739
- icon: "👥"
13718
+ name: "Crowd / Chatter"
13740
13719
  },
13741
13720
  {
13742
13721
  id: "telephone",
13743
- name: "Telephone",
13744
- icon: "📞"
13722
+ name: "Telephone"
13745
13723
  },
13746
13724
  {
13747
13725
  id: "engine",
13748
- name: "Engine / Motor",
13749
- icon: "⚙️"
13726
+ name: "Engine / Motor"
13750
13727
  },
13751
13728
  {
13752
13729
  id: "tools",
13753
- name: "Tools / Construction",
13754
- icon: "🔨"
13730
+ name: "Tools / Construction"
13755
13731
  },
13756
13732
  {
13757
13733
  id: "silence",
13758
- name: "Silence",
13759
- icon: "🤫"
13734
+ name: "Silence"
13760
13735
  }
13761
13736
  ];
13762
13737
  var YAMNET_TO_MACRO = {
@@ -16220,7 +16195,7 @@ var TrackEnvelopeSchema = object({
16220
16195
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
16221
16196
  * keeps every scalar the list surfaces actually render (ids, class(es),
16222
16197
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
16223
- * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
16198
+ * zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
16224
16199
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
16225
16200
  * `getTrack`. Mirrors the event-store `projection` convention
16226
16201
  * (`getObjectEvents` et al.).
@@ -16515,6 +16490,35 @@ var TrackSchema = object({
16515
16490
  */
16516
16491
  hasFace: boolean().optional(),
16517
16492
  /**
16493
+ * This track has a face row IN THE GALLERY: a crop **and** an embedding — a
16494
+ * face an operator could ASSIGN to an identity.
16495
+ *
16496
+ * The STRICT twin of {@link hasFace}, and the pair only earns its keep
16497
+ * because the two disagree. `hasFace` is stamped at the TOP of the face
16498
+ * branch, before every gate, and means no more than "a face detector produced
16499
+ * a face detail". This one is stamped at the single moment the gallery row
16500
+ * LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
16501
+ * past the embedding-magnitude verdict, the `minFacePx` detection gate, the
16502
+ * candidate gate, the imageless-track drop (no crop was ever captured) and
16503
+ * the crop-store drop. Everything between the detector and that insert can
16504
+ * legitimately refuse the face, so a flag written any earlier promises the
16505
+ * operator something to assign and delivers nothing.
16506
+ *
16507
+ * **Independent of recognition.** A face collected but never auto-matched is
16508
+ * still assignable — it is in fact the face an operator most wants to reach —
16509
+ * so this is NOT gated on `recognizedIdentityId`. Recognition lands in
16510
+ * `subLabel`; this says only that the raw material exists.
16511
+ *
16512
+ * **Set once, never cleared.** A track that produced a gallery row produced
16513
+ * one; deleting the row later is the gallery's business, not this flag's.
16514
+ *
16515
+ * **Absent ≠ false**, the same rule as {@link hasFace}: every row written
16516
+ * before the column omits it, and so does every server that predates the
16517
+ * field. A consumer must test `=== true` and render nothing otherwise —
16518
+ * never infer "no assignable face".
16519
+ */
16520
+ hasEmbeddedFace: boolean().optional(),
16521
+ /**
16518
16522
  * This subject CONTAINS a folded rider — a person the rider-pairing step
16519
16523
  * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16520
16524
  * so the passage is tracked once and as a VEHICLE.
@@ -17864,6 +17868,32 @@ var DetailResultSchema = object({
17864
17868
  /** FRAME-space bbox (already mapped back from crop space). */
17865
17869
  bbox: NativeCropBboxSchema.optional(),
17866
17870
  embedding: string().optional(),
17871
+ /**
17872
+ * L2 magnitude of the RAW pre-normalization embedding. Additive and optional
17873
+ * so an older runner that does not send it degrades to "unmeasurable", which
17874
+ * the consuming gate treats as accept — never as reject.
17875
+ */
17876
+ embeddingMagnitude: number().optional(),
17877
+ /**
17878
+ * Model that produced `embedding` — the SAME contract `labelModelId` has for
17879
+ * `label`, and for the same reason: the producing node is the only side that
17880
+ * knows which model actually ran, and re-deriving it downstream is exactly
17881
+ * the inference this model exists to forbid.
17882
+ *
17883
+ * Additive and optional, so a runner that predates it degrades to
17884
+ * "unmeasurable" rather than to a wrong answer — the consumer falls back to
17885
+ * its previous assumption instead of refusing.
17886
+ *
17887
+ * Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
17888
+ * to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
17889
+ * with nothing on the wire it took the id from the GALLERY, so the gate
17890
+ * compared the gallery against itself and could never fire. That turned the
17891
+ * one guard protecting the face feature space into a tautology, and it is
17892
+ * why swapping `face-embedding`'s model would NOT have stranded the enrolled
17893
+ * gallery as the catalog comment predicts — it would have scored the new
17894
+ * model's vectors against the old model's samples in one cosine space.
17895
+ */
17896
+ embeddingModelId: string().optional(),
17867
17897
  label: string().optional(),
17868
17898
  /**
17869
17899
  * The tier `label` occupies, copied VERBATIM from the producing step's
@@ -18739,6 +18769,12 @@ var CameraStatusSchema = object({
18739
18769
  /** Unix timestamp (ms) when this snapshot was composed server-side. */
18740
18770
  fetchedAt: number()
18741
18771
  });
18772
+ var InferenceDeviceExclusionReasonSchema = _enum([
18773
+ "disabled",
18774
+ "unavailable",
18775
+ "cannot-host-camera-root",
18776
+ "accelerator-preferred"
18777
+ ]);
18742
18778
  var NodeInferenceDeviceSchema = object({
18743
18779
  /** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
18744
18780
  key: string(),
@@ -18769,7 +18805,17 @@ var NodeInferenceDeviceSchema = object({
18769
18805
  * available per format; this is the stored selection that becomes the
18770
18806
  * default for EVERY camera landing on this accelerator.
18771
18807
  */
18772
- steps: record(string(), DeviceStepConfigSchema).optional()
18808
+ steps: record(string(), DeviceStepConfigSchema).optional(),
18809
+ /**
18810
+ * `null` when the device IS a camera-root candidate on this node; otherwise
18811
+ * the reason the dispatcher drops it. Computed by the SAME
18812
+ * `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
18813
+ * never disagree with the election — deriving it in the UI from
18814
+ * `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
18815
+ * the node's model catalog) and `accelerator-preferred` (needs the node-wide
18816
+ * "an accelerator is serving" predicate).
18817
+ */
18818
+ exclusion: InferenceDeviceExclusionReasonSchema.nullable()
18773
18819
  });
18774
18820
  var NodeInferenceDevicesSchema = object({
18775
18821
  nodeId: string(),
@@ -19274,6 +19320,7 @@ DeviceType.Camera, method(object({
19274
19320
  isBattery: boolean(),
19275
19321
  reason: _enum([
19276
19322
  "disabled",
19323
+ "offline",
19277
19324
  "sleeping",
19278
19325
  "unreachable",
19279
19326
  "waking"
@@ -19319,9 +19366,17 @@ targets: array(object({
19319
19366
  sleeping: boolean(),
19320
19367
  /** Current device state rendered over the cached frame. State images
19321
19368
  * remain authoritative even when their photographic background is
19322
- * old; null means the link must carry a current camera frame. */
19369
+ * old; null means the link must carry a current camera frame.
19370
+ *
19371
+ * **This is the ONLY source a surface may derive an inactive tile
19372
+ * from.** A client that reads a device's `online`/`disabled` flags and
19373
+ * draws its own verdict will disagree with the pixels it is painting
19374
+ * — the frame comes from here, and so must the sentence over it
19375
+ * (D190). Pair with `ageMs` for the age of the photograph behind the
19376
+ * state. */
19323
19377
  stateReason: _enum([
19324
19378
  "disabled",
19379
+ "offline",
19325
19380
  "sleeping",
19326
19381
  "unreachable",
19327
19382
  "waking"
@@ -22518,7 +22573,12 @@ var ListResultSchema = object({
22518
22573
  probedAt: number()
22519
22574
  });
22520
22575
  var PreferredSchema = LocalInterfaceSchema.nullable();
22521
- var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
22576
+ /**
22577
+ * Candidate base URL for the SDK to race on connect. Order matters —
22578
+ * the SDK should attempt these top-to-bottom with a short per-candidate
22579
+ * timeout (e.g. 1500ms) and cache the winner for the session.
22580
+ */
22581
+ var ConnectionEndpointSchema = object({
22522
22582
  /** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
22523
22583
  label: string(),
22524
22584
  /** Fully-formed base URL with scheme + host + port. */
@@ -22561,7 +22621,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
22561
22621
  * ordering between polls.
22562
22622
  */
22563
22623
  priority: number()
22564
- })).readonly() });
22624
+ });
22625
+ /**
22626
+ * Where the advertised local port came from. Ordered most → least
22627
+ * authoritative, and the whole point of returning it: a client must be able to
22628
+ * tell a FACT about the hub's socket from an echo of its own guess.
22629
+ */
22630
+ var LocalPortSourceEnum = _enum([
22631
+ "server-config",
22632
+ "server-env",
22633
+ "caller-hint",
22634
+ "default"
22635
+ ]);
22636
+ /** The port every LAN/loopback `baseUrl` in the same result was built with. */
22637
+ var AdvertisedLocalPortSchema = object({
22638
+ port: number().int().min(1).max(65535),
22639
+ source: LocalPortSourceEnum
22640
+ });
22641
+ var GetConnectionEndpointsResultSchema = object({
22642
+ endpoints: array(ConnectionEndpointSchema).readonly(),
22643
+ /**
22644
+ * The port the hub built the LAN/loopback URLs with, and where that number
22645
+ * came from.
22646
+ *
22647
+ * Returned rather than merely applied, because "the URL is right" and "the
22648
+ * client can KNOW the URL is right" are different properties. A client that
22649
+ * only sees a corrected URL cannot distinguish a hub that fixed the port from
22650
+ * a hub that echoed the port the client sent, so it cannot decide whether to
22651
+ * race the candidate or discard it. With `source` it can: anything but
22652
+ * `caller-hint` is the hub's own socket.
22653
+ *
22654
+ * Absent on hubs predating this field — a client that finds it missing is
22655
+ * talking to an echoing hub and must degrade exactly as it does for
22656
+ * `caller-hint`.
22657
+ */
22658
+ localPort: AdvertisedLocalPortSchema
22659
+ });
22565
22660
  /**
22566
22661
  * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
22567
22662
  * AUTO (resolved from the candidate ranking at send time); `resolved` reports
@@ -22582,8 +22677,13 @@ var AllowedAddressesSchema = object({
22582
22677
  */
22583
22678
  addresses: array(string()).readonly() });
22584
22679
  method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
22585
- /** Local hub HTTP port to use in base URLs. */
22586
- port: number().int().min(1).max(65535),
22680
+ /**
22681
+ * LEGACY HINT — do not send from new code. Kept optional so clients
22682
+ * written against the echoing contract keep working; the hub uses it
22683
+ * only when it cannot read its own port, and says so via
22684
+ * `localPort.source === 'caller-hint'`.
22685
+ */
22686
+ port: number().int().min(1).max(65535).optional(),
22587
22687
  /** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
22588
22688
  * candidate. Default `true`. */
22589
22689
  includeLoopback: boolean().optional(),
@@ -33507,7 +33607,6 @@ var NC_AUDIO_DEFAULTS = {
33507
33607
  hitPercent: 60,
33508
33608
  samplingSeconds: 10
33509
33609
  };
33510
- new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33511
33610
  new Set(["devices", "classes"]);
33512
33611
  NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33513
33612
  /**
@@ -33741,6 +33840,39 @@ TimelapseRuleInputSchema.extend({
33741
33840
  createdAt: number(),
33742
33841
  updatedAt: number()
33743
33842
  });
33843
+ Object.freeze(Object.fromEntries([{
33844
+ stepId: "face-embedding",
33845
+ label: "Face recognition model",
33846
+ defaultModelId: "arcface-r100",
33847
+ indexName: "the enrolled face gallery",
33848
+ options: [
33849
+ {
33850
+ id: "arcface-r100",
33851
+ label: "ArcFace (ResNet34)"
33852
+ },
33853
+ {
33854
+ id: "auraface-r100",
33855
+ label: "AuraFace R100"
33856
+ },
33857
+ {
33858
+ id: "inception-resnet-v1",
33859
+ label: "Inception ResNet V1"
33860
+ }
33861
+ ]
33862
+ }, {
33863
+ stepId: "clip-embedding",
33864
+ label: "Semantic search model",
33865
+ defaultModelId: "mobileclip-s1",
33866
+ indexName: "the object semantic-search index",
33867
+ options: [{
33868
+ id: "mobileclip-s1",
33869
+ label: "MobileCLIP S1"
33870
+ }, {
33871
+ id: "mobileclip-s2",
33872
+ label: "MobileCLIP S2"
33873
+ }]
33874
+ }].map((s) => [s.stepId, s.defaultModelId])));
33875
+ string().min(1);
33744
33876
  object({
33745
33877
  /**
33746
33878
  * Fraction of the box's own size added on EACH side before cutting.
@@ -33761,10 +33893,21 @@ object({
33761
33893
  */
33762
33894
  square: boolean()
33763
33895
  });
33764
- ({
33896
+ /**
33897
+ * The convention in force when nobody has configured one — byte-for-byte the
33898
+ * behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
33899
+ */
33900
+ var DEFAULT_DETAIL_CROP_CONVENTION = {
33765
33901
  paddingRatio: .15,
33766
33902
  square: false
33767
- }).paddingRatio;
33903
+ };
33904
+ Object.freeze({
33905
+ x: 0,
33906
+ y: 0,
33907
+ w: 1,
33908
+ h: 1
33909
+ });
33910
+ DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
33768
33911
  /**
33769
33912
  * WHICH delivered frames the decode worker retains a native copy of.
33770
33913
  *
package/dist/index.mjs CHANGED
@@ -7562,7 +7562,7 @@ var RecordingBandSchema = object({
7562
7562
  postBufferSec: number().min(0).optional()
7563
7563
  });
7564
7564
  ({
7565
- preBufferSec: 10,
7565
+ preBufferSec: 15,
7566
7566
  postBufferSec: 30
7567
7567
  }).postBufferSec * 1e3;
7568
7568
  /**
@@ -13631,128 +13631,103 @@ var COCO_TO_MACRO = {
13631
13631
  var AUDIO_MACRO_LABELS = [
13632
13632
  {
13633
13633
  id: "speech",
13634
- name: "Speech",
13635
- icon: "🗣️"
13634
+ name: "Speech"
13636
13635
  },
13637
13636
  {
13638
13637
  id: "scream",
13639
- name: "Scream / Shout",
13640
- icon: "😱"
13638
+ name: "Scream / Shout"
13641
13639
  },
13642
13640
  {
13643
13641
  id: "crying",
13644
- name: "Crying / Baby",
13645
- icon: "😢"
13642
+ name: "Crying / Baby"
13646
13643
  },
13647
13644
  {
13648
13645
  id: "laughter",
13649
- name: "Laughter",
13650
- icon: "😂"
13646
+ name: "Laughter"
13651
13647
  },
13652
13648
  {
13653
13649
  id: "music",
13654
- name: "Music",
13655
- icon: "🎵"
13650
+ name: "Music"
13656
13651
  },
13657
13652
  {
13658
13653
  id: "dog",
13659
- name: "Dog",
13660
- icon: "🐕"
13654
+ name: "Dog"
13661
13655
  },
13662
13656
  {
13663
13657
  id: "cat",
13664
- name: "Cat",
13665
- icon: "🐈"
13658
+ name: "Cat"
13666
13659
  },
13667
13660
  {
13668
13661
  id: "bird",
13669
- name: "Bird",
13670
- icon: "🐦"
13662
+ name: "Bird"
13671
13663
  },
13672
13664
  {
13673
13665
  id: "animal",
13674
- name: "Animal (other)",
13675
- icon: "🐾"
13666
+ name: "Animal (other)"
13676
13667
  },
13677
13668
  {
13678
13669
  id: "alarm",
13679
- name: "Alarm / Siren",
13680
- icon: "🚨"
13670
+ name: "Alarm / Siren"
13681
13671
  },
13682
13672
  {
13683
13673
  id: "doorbell",
13684
- name: "Doorbell / Knock",
13685
- icon: "🔔"
13674
+ name: "Doorbell / Knock"
13686
13675
  },
13687
13676
  {
13688
13677
  id: "glass_breaking",
13689
- name: "Glass Breaking",
13690
- icon: "💥"
13678
+ name: "Glass Breaking"
13691
13679
  },
13692
13680
  {
13693
13681
  id: "gunshot",
13694
- name: "Gunshot / Explosion",
13695
- icon: "💣"
13682
+ name: "Gunshot / Explosion"
13696
13683
  },
13697
13684
  {
13698
13685
  id: "vehicle",
13699
- name: "Vehicle",
13700
- icon: "🚗"
13686
+ name: "Vehicle"
13701
13687
  },
13702
13688
  {
13703
13689
  id: "siren",
13704
- name: "Emergency Siren",
13705
- icon: "🚑"
13690
+ name: "Emergency Siren"
13706
13691
  },
13707
13692
  {
13708
13693
  id: "fire",
13709
- name: "Fire / Smoke",
13710
- icon: "🔥"
13694
+ name: "Fire / Smoke"
13711
13695
  },
13712
13696
  {
13713
13697
  id: "water",
13714
- name: "Water",
13715
- icon: "💧"
13698
+ name: "Water"
13716
13699
  },
13717
13700
  {
13718
13701
  id: "wind",
13719
- name: "Wind / Weather",
13720
- icon: "🌬️"
13702
+ name: "Wind / Weather"
13721
13703
  },
13722
13704
  {
13723
13705
  id: "door",
13724
- name: "Door",
13725
- icon: "🚪"
13706
+ name: "Door"
13726
13707
  },
13727
13708
  {
13728
13709
  id: "footsteps",
13729
- name: "Footsteps",
13730
- icon: "👣"
13710
+ name: "Footsteps"
13731
13711
  },
13732
13712
  {
13733
13713
  id: "crowd",
13734
- name: "Crowd / Chatter",
13735
- icon: "👥"
13714
+ name: "Crowd / Chatter"
13736
13715
  },
13737
13716
  {
13738
13717
  id: "telephone",
13739
- name: "Telephone",
13740
- icon: "📞"
13718
+ name: "Telephone"
13741
13719
  },
13742
13720
  {
13743
13721
  id: "engine",
13744
- name: "Engine / Motor",
13745
- icon: "⚙️"
13722
+ name: "Engine / Motor"
13746
13723
  },
13747
13724
  {
13748
13725
  id: "tools",
13749
- name: "Tools / Construction",
13750
- icon: "🔨"
13726
+ name: "Tools / Construction"
13751
13727
  },
13752
13728
  {
13753
13729
  id: "silence",
13754
- name: "Silence",
13755
- icon: "🤫"
13730
+ name: "Silence"
13756
13731
  }
13757
13732
  ];
13758
13733
  var YAMNET_TO_MACRO = {
@@ -16216,7 +16191,7 @@ var TrackEnvelopeSchema = object({
16216
16191
  * `snapshots[]` references — megabytes across a page of tracks. `slim`
16217
16192
  * keeps every scalar the list surfaces actually render (ids, class(es),
16218
16193
  * label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
16219
- * zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
16194
+ * zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
16220
16195
  * `snapshots` as EMPTY arrays — detail views re-fetch the full row via
16221
16196
  * `getTrack`. Mirrors the event-store `projection` convention
16222
16197
  * (`getObjectEvents` et al.).
@@ -16511,6 +16486,35 @@ var TrackSchema = object({
16511
16486
  */
16512
16487
  hasFace: boolean().optional(),
16513
16488
  /**
16489
+ * This track has a face row IN THE GALLERY: a crop **and** an embedding — a
16490
+ * face an operator could ASSIGN to an identity.
16491
+ *
16492
+ * The STRICT twin of {@link hasFace}, and the pair only earns its keep
16493
+ * because the two disagree. `hasFace` is stamped at the TOP of the face
16494
+ * branch, before every gate, and means no more than "a face detector produced
16495
+ * a face detail". This one is stamped at the single moment the gallery row
16496
+ * LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
16497
+ * past the embedding-magnitude verdict, the `minFacePx` detection gate, the
16498
+ * candidate gate, the imageless-track drop (no crop was ever captured) and
16499
+ * the crop-store drop. Everything between the detector and that insert can
16500
+ * legitimately refuse the face, so a flag written any earlier promises the
16501
+ * operator something to assign and delivers nothing.
16502
+ *
16503
+ * **Independent of recognition.** A face collected but never auto-matched is
16504
+ * still assignable — it is in fact the face an operator most wants to reach —
16505
+ * so this is NOT gated on `recognizedIdentityId`. Recognition lands in
16506
+ * `subLabel`; this says only that the raw material exists.
16507
+ *
16508
+ * **Set once, never cleared.** A track that produced a gallery row produced
16509
+ * one; deleting the row later is the gallery's business, not this flag's.
16510
+ *
16511
+ * **Absent ≠ false**, the same rule as {@link hasFace}: every row written
16512
+ * before the column omits it, and so does every server that predates the
16513
+ * field. A consumer must test `=== true` and render nothing otherwise —
16514
+ * never infer "no assignable face".
16515
+ */
16516
+ hasEmbeddedFace: boolean().optional(),
16517
+ /**
16514
16518
  * This subject CONTAINS a folded rider — a person the rider-pairing step
16515
16519
  * ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
16516
16520
  * so the passage is tracked once and as a VEHICLE.
@@ -17860,6 +17864,32 @@ var DetailResultSchema = object({
17860
17864
  /** FRAME-space bbox (already mapped back from crop space). */
17861
17865
  bbox: NativeCropBboxSchema.optional(),
17862
17866
  embedding: string().optional(),
17867
+ /**
17868
+ * L2 magnitude of the RAW pre-normalization embedding. Additive and optional
17869
+ * so an older runner that does not send it degrades to "unmeasurable", which
17870
+ * the consuming gate treats as accept — never as reject.
17871
+ */
17872
+ embeddingMagnitude: number().optional(),
17873
+ /**
17874
+ * Model that produced `embedding` — the SAME contract `labelModelId` has for
17875
+ * `label`, and for the same reason: the producing node is the only side that
17876
+ * knows which model actually ran, and re-deriving it downstream is exactly
17877
+ * the inference this model exists to forbid.
17878
+ *
17879
+ * Additive and optional, so a runner that predates it degrades to
17880
+ * "unmeasurable" rather than to a wrong answer — the consumer falls back to
17881
+ * its previous assumption instead of refusing.
17882
+ *
17883
+ * Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
17884
+ * to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
17885
+ * with nothing on the wire it took the id from the GALLERY, so the gate
17886
+ * compared the gallery against itself and could never fire. That turned the
17887
+ * one guard protecting the face feature space into a tautology, and it is
17888
+ * why swapping `face-embedding`'s model would NOT have stranded the enrolled
17889
+ * gallery as the catalog comment predicts — it would have scored the new
17890
+ * model's vectors against the old model's samples in one cosine space.
17891
+ */
17892
+ embeddingModelId: string().optional(),
17863
17893
  label: string().optional(),
17864
17894
  /**
17865
17895
  * The tier `label` occupies, copied VERBATIM from the producing step's
@@ -18735,6 +18765,12 @@ var CameraStatusSchema = object({
18735
18765
  /** Unix timestamp (ms) when this snapshot was composed server-side. */
18736
18766
  fetchedAt: number()
18737
18767
  });
18768
+ var InferenceDeviceExclusionReasonSchema = _enum([
18769
+ "disabled",
18770
+ "unavailable",
18771
+ "cannot-host-camera-root",
18772
+ "accelerator-preferred"
18773
+ ]);
18738
18774
  var NodeInferenceDeviceSchema = object({
18739
18775
  /** Stable per-node device key, e.g. `openvino:npu`, `edgetpu:usb`, `cpu`. */
18740
18776
  key: string(),
@@ -18765,7 +18801,17 @@ var NodeInferenceDeviceSchema = object({
18765
18801
  * available per format; this is the stored selection that becomes the
18766
18802
  * default for EVERY camera landing on this accelerator.
18767
18803
  */
18768
- steps: record(string(), DeviceStepConfigSchema).optional()
18804
+ steps: record(string(), DeviceStepConfigSchema).optional(),
18805
+ /**
18806
+ * `null` when the device IS a camera-root candidate on this node; otherwise
18807
+ * the reason the dispatcher drops it. Computed by the SAME
18808
+ * `resolveInferenceDeviceEligibility` the dispatcher runs, so this view can
18809
+ * never disagree with the election — deriving it in the UI from
18810
+ * `enabled`/`available` would silently miss `cannot-host-camera-root` (needs
18811
+ * the node's model catalog) and `accelerator-preferred` (needs the node-wide
18812
+ * "an accelerator is serving" predicate).
18813
+ */
18814
+ exclusion: InferenceDeviceExclusionReasonSchema.nullable()
18769
18815
  });
18770
18816
  var NodeInferenceDevicesSchema = object({
18771
18817
  nodeId: string(),
@@ -19270,6 +19316,7 @@ DeviceType.Camera, method(object({
19270
19316
  isBattery: boolean(),
19271
19317
  reason: _enum([
19272
19318
  "disabled",
19319
+ "offline",
19273
19320
  "sleeping",
19274
19321
  "unreachable",
19275
19322
  "waking"
@@ -19315,9 +19362,17 @@ targets: array(object({
19315
19362
  sleeping: boolean(),
19316
19363
  /** Current device state rendered over the cached frame. State images
19317
19364
  * remain authoritative even when their photographic background is
19318
- * old; null means the link must carry a current camera frame. */
19365
+ * old; null means the link must carry a current camera frame.
19366
+ *
19367
+ * **This is the ONLY source a surface may derive an inactive tile
19368
+ * from.** A client that reads a device's `online`/`disabled` flags and
19369
+ * draws its own verdict will disagree with the pixels it is painting
19370
+ * — the frame comes from here, and so must the sentence over it
19371
+ * (D190). Pair with `ageMs` for the age of the photograph behind the
19372
+ * state. */
19319
19373
  stateReason: _enum([
19320
19374
  "disabled",
19375
+ "offline",
19321
19376
  "sleeping",
19322
19377
  "unreachable",
19323
19378
  "waking"
@@ -22514,7 +22569,12 @@ var ListResultSchema = object({
22514
22569
  probedAt: number()
22515
22570
  });
22516
22571
  var PreferredSchema = LocalInterfaceSchema.nullable();
22517
- var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
22572
+ /**
22573
+ * Candidate base URL for the SDK to race on connect. Order matters —
22574
+ * the SDK should attempt these top-to-bottom with a short per-candidate
22575
+ * timeout (e.g. 1500ms) and cache the winner for the session.
22576
+ */
22577
+ var ConnectionEndpointSchema = object({
22518
22578
  /** Operator-facing label (e.g. "LAN — en0", "Public tunnel"). */
22519
22579
  label: string(),
22520
22580
  /** Fully-formed base URL with scheme + host + port. */
@@ -22557,7 +22617,42 @@ var GetConnectionEndpointsResultSchema = object({ endpoints: array(object({
22557
22617
  * ordering between polls.
22558
22618
  */
22559
22619
  priority: number()
22560
- })).readonly() });
22620
+ });
22621
+ /**
22622
+ * Where the advertised local port came from. Ordered most → least
22623
+ * authoritative, and the whole point of returning it: a client must be able to
22624
+ * tell a FACT about the hub's socket from an echo of its own guess.
22625
+ */
22626
+ var LocalPortSourceEnum = _enum([
22627
+ "server-config",
22628
+ "server-env",
22629
+ "caller-hint",
22630
+ "default"
22631
+ ]);
22632
+ /** The port every LAN/loopback `baseUrl` in the same result was built with. */
22633
+ var AdvertisedLocalPortSchema = object({
22634
+ port: number().int().min(1).max(65535),
22635
+ source: LocalPortSourceEnum
22636
+ });
22637
+ var GetConnectionEndpointsResultSchema = object({
22638
+ endpoints: array(ConnectionEndpointSchema).readonly(),
22639
+ /**
22640
+ * The port the hub built the LAN/loopback URLs with, and where that number
22641
+ * came from.
22642
+ *
22643
+ * Returned rather than merely applied, because "the URL is right" and "the
22644
+ * client can KNOW the URL is right" are different properties. A client that
22645
+ * only sees a corrected URL cannot distinguish a hub that fixed the port from
22646
+ * a hub that echoed the port the client sent, so it cannot decide whether to
22647
+ * race the candidate or discard it. With `source` it can: anything but
22648
+ * `caller-hint` is the hub's own socket.
22649
+ *
22650
+ * Absent on hubs predating this field — a client that finds it missing is
22651
+ * talking to an echoing hub and must degrade exactly as it does for
22652
+ * `caller-hint`.
22653
+ */
22654
+ localPort: AdvertisedLocalPortSchema
22655
+ });
22561
22656
  /**
22562
22657
  * The chosen outbound endpoint for notification artifacts. `baseUrl: null` =
22563
22658
  * AUTO (resolved from the candidate ranking at send time); `resolved` reports
@@ -22578,8 +22673,13 @@ var AllowedAddressesSchema = object({
22578
22673
  */
22579
22674
  addresses: array(string()).readonly() });
22580
22675
  method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(object({
22581
- /** Local hub HTTP port to use in base URLs. */
22582
- port: number().int().min(1).max(65535),
22676
+ /**
22677
+ * LEGACY HINT — do not send from new code. Kept optional so clients
22678
+ * written against the echoing contract keep working; the hub uses it
22679
+ * only when it cannot read its own port, and says so via
22680
+ * `localPort.source === 'caller-hint'`.
22681
+ */
22682
+ port: number().int().min(1).max(65535).optional(),
22583
22683
  /** Include `http(s)://127.0.0.1:<port>` as the lowest-priority
22584
22684
  * candidate. Default `true`. */
22585
22685
  includeLoopback: boolean().optional(),
@@ -33503,7 +33603,6 @@ var NC_AUDIO_DEFAULTS = {
33503
33603
  hitPercent: 60,
33504
33604
  samplingSeconds: 10
33505
33605
  };
33506
- new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
33507
33606
  new Set(["devices", "classes"]);
33508
33607
  NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
33509
33608
  /**
@@ -33737,6 +33836,39 @@ TimelapseRuleInputSchema.extend({
33737
33836
  createdAt: number(),
33738
33837
  updatedAt: number()
33739
33838
  });
33839
+ Object.freeze(Object.fromEntries([{
33840
+ stepId: "face-embedding",
33841
+ label: "Face recognition model",
33842
+ defaultModelId: "arcface-r100",
33843
+ indexName: "the enrolled face gallery",
33844
+ options: [
33845
+ {
33846
+ id: "arcface-r100",
33847
+ label: "ArcFace (ResNet34)"
33848
+ },
33849
+ {
33850
+ id: "auraface-r100",
33851
+ label: "AuraFace R100"
33852
+ },
33853
+ {
33854
+ id: "inception-resnet-v1",
33855
+ label: "Inception ResNet V1"
33856
+ }
33857
+ ]
33858
+ }, {
33859
+ stepId: "clip-embedding",
33860
+ label: "Semantic search model",
33861
+ defaultModelId: "mobileclip-s1",
33862
+ indexName: "the object semantic-search index",
33863
+ options: [{
33864
+ id: "mobileclip-s1",
33865
+ label: "MobileCLIP S1"
33866
+ }, {
33867
+ id: "mobileclip-s2",
33868
+ label: "MobileCLIP S2"
33869
+ }]
33870
+ }].map((s) => [s.stepId, s.defaultModelId])));
33871
+ string().min(1);
33740
33872
  object({
33741
33873
  /**
33742
33874
  * Fraction of the box's own size added on EACH side before cutting.
@@ -33757,10 +33889,21 @@ object({
33757
33889
  */
33758
33890
  square: boolean()
33759
33891
  });
33760
- ({
33892
+ /**
33893
+ * The convention in force when nobody has configured one — byte-for-byte the
33894
+ * behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
33895
+ */
33896
+ var DEFAULT_DETAIL_CROP_CONVENTION = {
33761
33897
  paddingRatio: .15,
33762
33898
  square: false
33763
- }).paddingRatio;
33899
+ };
33900
+ Object.freeze({
33901
+ x: 0,
33902
+ y: 0,
33903
+ w: 1,
33904
+ h: 1
33905
+ });
33906
+ DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
33764
33907
  /**
33765
33908
  * WHICH delivered frames the decode worker retains a native copy of.
33766
33909
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-decoder-nodeav",
3
- "version": "1.2.22",
3
+ "version": "1.2.24",
4
4
  "description": "Standalone in-process node-av decoder addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",