@camstack/addon-agent-ui 1.2.24 → 1.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/addon.js +139 -57
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -7560,7 +7560,7 @@ var RecordingBandSchema = object({
|
|
|
7560
7560
|
postBufferSec: number().min(0).optional()
|
|
7561
7561
|
});
|
|
7562
7562
|
({
|
|
7563
|
-
preBufferSec:
|
|
7563
|
+
preBufferSec: 15,
|
|
7564
7564
|
postBufferSec: 30
|
|
7565
7565
|
}).postBufferSec * 1e3;
|
|
7566
7566
|
/**
|
|
@@ -13499,128 +13499,103 @@ var COCO_TO_MACRO = {
|
|
|
13499
13499
|
var AUDIO_MACRO_LABELS = [
|
|
13500
13500
|
{
|
|
13501
13501
|
id: "speech",
|
|
13502
|
-
name: "Speech"
|
|
13503
|
-
icon: "🗣️"
|
|
13502
|
+
name: "Speech"
|
|
13504
13503
|
},
|
|
13505
13504
|
{
|
|
13506
13505
|
id: "scream",
|
|
13507
|
-
name: "Scream / Shout"
|
|
13508
|
-
icon: "😱"
|
|
13506
|
+
name: "Scream / Shout"
|
|
13509
13507
|
},
|
|
13510
13508
|
{
|
|
13511
13509
|
id: "crying",
|
|
13512
|
-
name: "Crying / Baby"
|
|
13513
|
-
icon: "😢"
|
|
13510
|
+
name: "Crying / Baby"
|
|
13514
13511
|
},
|
|
13515
13512
|
{
|
|
13516
13513
|
id: "laughter",
|
|
13517
|
-
name: "Laughter"
|
|
13518
|
-
icon: "😂"
|
|
13514
|
+
name: "Laughter"
|
|
13519
13515
|
},
|
|
13520
13516
|
{
|
|
13521
13517
|
id: "music",
|
|
13522
|
-
name: "Music"
|
|
13523
|
-
icon: "🎵"
|
|
13518
|
+
name: "Music"
|
|
13524
13519
|
},
|
|
13525
13520
|
{
|
|
13526
13521
|
id: "dog",
|
|
13527
|
-
name: "Dog"
|
|
13528
|
-
icon: "🐕"
|
|
13522
|
+
name: "Dog"
|
|
13529
13523
|
},
|
|
13530
13524
|
{
|
|
13531
13525
|
id: "cat",
|
|
13532
|
-
name: "Cat"
|
|
13533
|
-
icon: "🐈"
|
|
13526
|
+
name: "Cat"
|
|
13534
13527
|
},
|
|
13535
13528
|
{
|
|
13536
13529
|
id: "bird",
|
|
13537
|
-
name: "Bird"
|
|
13538
|
-
icon: "🐦"
|
|
13530
|
+
name: "Bird"
|
|
13539
13531
|
},
|
|
13540
13532
|
{
|
|
13541
13533
|
id: "animal",
|
|
13542
|
-
name: "Animal (other)"
|
|
13543
|
-
icon: "🐾"
|
|
13534
|
+
name: "Animal (other)"
|
|
13544
13535
|
},
|
|
13545
13536
|
{
|
|
13546
13537
|
id: "alarm",
|
|
13547
|
-
name: "Alarm / Siren"
|
|
13548
|
-
icon: "🚨"
|
|
13538
|
+
name: "Alarm / Siren"
|
|
13549
13539
|
},
|
|
13550
13540
|
{
|
|
13551
13541
|
id: "doorbell",
|
|
13552
|
-
name: "Doorbell / Knock"
|
|
13553
|
-
icon: "🔔"
|
|
13542
|
+
name: "Doorbell / Knock"
|
|
13554
13543
|
},
|
|
13555
13544
|
{
|
|
13556
13545
|
id: "glass_breaking",
|
|
13557
|
-
name: "Glass Breaking"
|
|
13558
|
-
icon: "💥"
|
|
13546
|
+
name: "Glass Breaking"
|
|
13559
13547
|
},
|
|
13560
13548
|
{
|
|
13561
13549
|
id: "gunshot",
|
|
13562
|
-
name: "Gunshot / Explosion"
|
|
13563
|
-
icon: "💣"
|
|
13550
|
+
name: "Gunshot / Explosion"
|
|
13564
13551
|
},
|
|
13565
13552
|
{
|
|
13566
13553
|
id: "vehicle",
|
|
13567
|
-
name: "Vehicle"
|
|
13568
|
-
icon: "🚗"
|
|
13554
|
+
name: "Vehicle"
|
|
13569
13555
|
},
|
|
13570
13556
|
{
|
|
13571
13557
|
id: "siren",
|
|
13572
|
-
name: "Emergency Siren"
|
|
13573
|
-
icon: "🚑"
|
|
13558
|
+
name: "Emergency Siren"
|
|
13574
13559
|
},
|
|
13575
13560
|
{
|
|
13576
13561
|
id: "fire",
|
|
13577
|
-
name: "Fire / Smoke"
|
|
13578
|
-
icon: "🔥"
|
|
13562
|
+
name: "Fire / Smoke"
|
|
13579
13563
|
},
|
|
13580
13564
|
{
|
|
13581
13565
|
id: "water",
|
|
13582
|
-
name: "Water"
|
|
13583
|
-
icon: "💧"
|
|
13566
|
+
name: "Water"
|
|
13584
13567
|
},
|
|
13585
13568
|
{
|
|
13586
13569
|
id: "wind",
|
|
13587
|
-
name: "Wind / Weather"
|
|
13588
|
-
icon: "🌬️"
|
|
13570
|
+
name: "Wind / Weather"
|
|
13589
13571
|
},
|
|
13590
13572
|
{
|
|
13591
13573
|
id: "door",
|
|
13592
|
-
name: "Door"
|
|
13593
|
-
icon: "🚪"
|
|
13574
|
+
name: "Door"
|
|
13594
13575
|
},
|
|
13595
13576
|
{
|
|
13596
13577
|
id: "footsteps",
|
|
13597
|
-
name: "Footsteps"
|
|
13598
|
-
icon: "👣"
|
|
13578
|
+
name: "Footsteps"
|
|
13599
13579
|
},
|
|
13600
13580
|
{
|
|
13601
13581
|
id: "crowd",
|
|
13602
|
-
name: "Crowd / Chatter"
|
|
13603
|
-
icon: "👥"
|
|
13582
|
+
name: "Crowd / Chatter"
|
|
13604
13583
|
},
|
|
13605
13584
|
{
|
|
13606
13585
|
id: "telephone",
|
|
13607
|
-
name: "Telephone"
|
|
13608
|
-
icon: "📞"
|
|
13586
|
+
name: "Telephone"
|
|
13609
13587
|
},
|
|
13610
13588
|
{
|
|
13611
13589
|
id: "engine",
|
|
13612
|
-
name: "Engine / Motor"
|
|
13613
|
-
icon: "⚙️"
|
|
13590
|
+
name: "Engine / Motor"
|
|
13614
13591
|
},
|
|
13615
13592
|
{
|
|
13616
13593
|
id: "tools",
|
|
13617
|
-
name: "Tools / Construction"
|
|
13618
|
-
icon: "🔨"
|
|
13594
|
+
name: "Tools / Construction"
|
|
13619
13595
|
},
|
|
13620
13596
|
{
|
|
13621
13597
|
id: "silence",
|
|
13622
|
-
name: "Silence"
|
|
13623
|
-
icon: "🤫"
|
|
13598
|
+
name: "Silence"
|
|
13624
13599
|
}
|
|
13625
13600
|
];
|
|
13626
13601
|
var YAMNET_TO_MACRO = {
|
|
@@ -16084,7 +16059,7 @@ var TrackEnvelopeSchema = object({
|
|
|
16084
16059
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
16085
16060
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
16086
16061
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
16087
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
16062
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
16088
16063
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
16089
16064
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
16090
16065
|
* (`getObjectEvents` et al.).
|
|
@@ -16379,6 +16354,35 @@ var TrackSchema = object({
|
|
|
16379
16354
|
*/
|
|
16380
16355
|
hasFace: boolean().optional(),
|
|
16381
16356
|
/**
|
|
16357
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
16358
|
+
* face an operator could ASSIGN to an identity.
|
|
16359
|
+
*
|
|
16360
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
16361
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
16362
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
16363
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
16364
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
16365
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
16366
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
16367
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
16368
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
16369
|
+
* operator something to assign and delivers nothing.
|
|
16370
|
+
*
|
|
16371
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
16372
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
16373
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
16374
|
+
* `subLabel`; this says only that the raw material exists.
|
|
16375
|
+
*
|
|
16376
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
16377
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
16378
|
+
*
|
|
16379
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
16380
|
+
* before the column omits it, and so does every server that predates the
|
|
16381
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
16382
|
+
* never infer "no assignable face".
|
|
16383
|
+
*/
|
|
16384
|
+
hasEmbeddedFace: boolean().optional(),
|
|
16385
|
+
/**
|
|
16382
16386
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
16383
16387
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
16384
16388
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -17728,6 +17732,32 @@ var DetailResultSchema = object({
|
|
|
17728
17732
|
/** FRAME-space bbox (already mapped back from crop space). */
|
|
17729
17733
|
bbox: NativeCropBboxSchema.optional(),
|
|
17730
17734
|
embedding: string().optional(),
|
|
17735
|
+
/**
|
|
17736
|
+
* L2 magnitude of the RAW pre-normalization embedding. Additive and optional
|
|
17737
|
+
* so an older runner that does not send it degrades to "unmeasurable", which
|
|
17738
|
+
* the consuming gate treats as accept — never as reject.
|
|
17739
|
+
*/
|
|
17740
|
+
embeddingMagnitude: number().optional(),
|
|
17741
|
+
/**
|
|
17742
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
17743
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
17744
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
17745
|
+
* the inference this model exists to forbid.
|
|
17746
|
+
*
|
|
17747
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
17748
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
17749
|
+
* its previous assumption instead of refusing.
|
|
17750
|
+
*
|
|
17751
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
17752
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
17753
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
17754
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
17755
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
17756
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
17757
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
17758
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
17759
|
+
*/
|
|
17760
|
+
embeddingModelId: string().optional(),
|
|
17731
17761
|
label: string().optional(),
|
|
17732
17762
|
/**
|
|
17733
17763
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -19138,6 +19168,7 @@ DeviceType.Camera, method(object({
|
|
|
19138
19168
|
isBattery: boolean(),
|
|
19139
19169
|
reason: _enum([
|
|
19140
19170
|
"disabled",
|
|
19171
|
+
"offline",
|
|
19141
19172
|
"sleeping",
|
|
19142
19173
|
"unreachable",
|
|
19143
19174
|
"waking"
|
|
@@ -19183,9 +19214,17 @@ targets: array(object({
|
|
|
19183
19214
|
sleeping: boolean(),
|
|
19184
19215
|
/** Current device state rendered over the cached frame. State images
|
|
19185
19216
|
* remain authoritative even when their photographic background is
|
|
19186
|
-
* old; null means the link must carry a current camera frame.
|
|
19217
|
+
* old; null means the link must carry a current camera frame.
|
|
19218
|
+
*
|
|
19219
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
19220
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
19221
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
19222
|
+
* — the frame comes from here, and so must the sentence over it
|
|
19223
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
19224
|
+
* state. */
|
|
19187
19225
|
stateReason: _enum([
|
|
19188
19226
|
"disabled",
|
|
19227
|
+
"offline",
|
|
19189
19228
|
"sleeping",
|
|
19190
19229
|
"unreachable",
|
|
19191
19230
|
"waking"
|
|
@@ -33371,7 +33410,6 @@ var NC_AUDIO_DEFAULTS = {
|
|
|
33371
33410
|
hitPercent: 60,
|
|
33372
33411
|
samplingSeconds: 10
|
|
33373
33412
|
};
|
|
33374
|
-
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
33375
33413
|
new Set(["devices", "classes"]);
|
|
33376
33414
|
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
33377
33415
|
/**
|
|
@@ -33605,6 +33643,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
33605
33643
|
createdAt: number(),
|
|
33606
33644
|
updatedAt: number()
|
|
33607
33645
|
});
|
|
33646
|
+
Object.freeze(Object.fromEntries([{
|
|
33647
|
+
stepId: "face-embedding",
|
|
33648
|
+
label: "Face recognition model",
|
|
33649
|
+
defaultModelId: "arcface-r100",
|
|
33650
|
+
indexName: "the enrolled face gallery",
|
|
33651
|
+
options: [
|
|
33652
|
+
{
|
|
33653
|
+
id: "arcface-r100",
|
|
33654
|
+
label: "ArcFace (ResNet34)"
|
|
33655
|
+
},
|
|
33656
|
+
{
|
|
33657
|
+
id: "auraface-r100",
|
|
33658
|
+
label: "AuraFace R100"
|
|
33659
|
+
},
|
|
33660
|
+
{
|
|
33661
|
+
id: "inception-resnet-v1",
|
|
33662
|
+
label: "Inception ResNet V1"
|
|
33663
|
+
}
|
|
33664
|
+
]
|
|
33665
|
+
}, {
|
|
33666
|
+
stepId: "clip-embedding",
|
|
33667
|
+
label: "Semantic search model",
|
|
33668
|
+
defaultModelId: "mobileclip-s1",
|
|
33669
|
+
indexName: "the object semantic-search index",
|
|
33670
|
+
options: [{
|
|
33671
|
+
id: "mobileclip-s1",
|
|
33672
|
+
label: "MobileCLIP S1"
|
|
33673
|
+
}, {
|
|
33674
|
+
id: "mobileclip-s2",
|
|
33675
|
+
label: "MobileCLIP S2"
|
|
33676
|
+
}]
|
|
33677
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
33678
|
+
string().min(1);
|
|
33608
33679
|
object({
|
|
33609
33680
|
/**
|
|
33610
33681
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -33625,10 +33696,21 @@ object({
|
|
|
33625
33696
|
*/
|
|
33626
33697
|
square: boolean()
|
|
33627
33698
|
});
|
|
33628
|
-
|
|
33699
|
+
/**
|
|
33700
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
33701
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
33702
|
+
*/
|
|
33703
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
33629
33704
|
paddingRatio: .15,
|
|
33630
33705
|
square: false
|
|
33631
|
-
}
|
|
33706
|
+
};
|
|
33707
|
+
Object.freeze({
|
|
33708
|
+
x: 0,
|
|
33709
|
+
y: 0,
|
|
33710
|
+
w: 1,
|
|
33711
|
+
h: 1
|
|
33712
|
+
});
|
|
33713
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
33632
33714
|
/**
|
|
33633
33715
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
33634
33716
|
*
|
|
@@ -33764,7 +33846,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
33764
33846
|
capability: adminUiCapability,
|
|
33765
33847
|
provider: {
|
|
33766
33848
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
33767
|
-
getVersion: async () => ({ version: "1.2.
|
|
33849
|
+
getVersion: async () => ({ version: "1.2.25" })
|
|
33768
33850
|
}
|
|
33769
33851
|
}];
|
|
33770
33852
|
}
|