@camstack/addon-provider-dreame 0.2.23 → 0.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.
- package/dist/addon.js +138 -56
- package/dist/addon.mjs +138 -56
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -58071,7 +58071,7 @@ var RecordingBandSchema = object({
|
|
|
58071
58071
|
postBufferSec: number().min(0).optional()
|
|
58072
58072
|
});
|
|
58073
58073
|
({
|
|
58074
|
-
preBufferSec:
|
|
58074
|
+
preBufferSec: 15,
|
|
58075
58075
|
postBufferSec: 30
|
|
58076
58076
|
}).postBufferSec * 1e3;
|
|
58077
58077
|
/**
|
|
@@ -64291,128 +64291,103 @@ var COCO_TO_MACRO = {
|
|
|
64291
64291
|
var AUDIO_MACRO_LABELS = [
|
|
64292
64292
|
{
|
|
64293
64293
|
id: "speech",
|
|
64294
|
-
name: "Speech"
|
|
64295
|
-
icon: "🗣️"
|
|
64294
|
+
name: "Speech"
|
|
64296
64295
|
},
|
|
64297
64296
|
{
|
|
64298
64297
|
id: "scream",
|
|
64299
|
-
name: "Scream / Shout"
|
|
64300
|
-
icon: "😱"
|
|
64298
|
+
name: "Scream / Shout"
|
|
64301
64299
|
},
|
|
64302
64300
|
{
|
|
64303
64301
|
id: "crying",
|
|
64304
|
-
name: "Crying / Baby"
|
|
64305
|
-
icon: "😢"
|
|
64302
|
+
name: "Crying / Baby"
|
|
64306
64303
|
},
|
|
64307
64304
|
{
|
|
64308
64305
|
id: "laughter",
|
|
64309
|
-
name: "Laughter"
|
|
64310
|
-
icon: "😂"
|
|
64306
|
+
name: "Laughter"
|
|
64311
64307
|
},
|
|
64312
64308
|
{
|
|
64313
64309
|
id: "music",
|
|
64314
|
-
name: "Music"
|
|
64315
|
-
icon: "🎵"
|
|
64310
|
+
name: "Music"
|
|
64316
64311
|
},
|
|
64317
64312
|
{
|
|
64318
64313
|
id: "dog",
|
|
64319
|
-
name: "Dog"
|
|
64320
|
-
icon: "🐕"
|
|
64314
|
+
name: "Dog"
|
|
64321
64315
|
},
|
|
64322
64316
|
{
|
|
64323
64317
|
id: "cat",
|
|
64324
|
-
name: "Cat"
|
|
64325
|
-
icon: "🐈"
|
|
64318
|
+
name: "Cat"
|
|
64326
64319
|
},
|
|
64327
64320
|
{
|
|
64328
64321
|
id: "bird",
|
|
64329
|
-
name: "Bird"
|
|
64330
|
-
icon: "🐦"
|
|
64322
|
+
name: "Bird"
|
|
64331
64323
|
},
|
|
64332
64324
|
{
|
|
64333
64325
|
id: "animal",
|
|
64334
|
-
name: "Animal (other)"
|
|
64335
|
-
icon: "🐾"
|
|
64326
|
+
name: "Animal (other)"
|
|
64336
64327
|
},
|
|
64337
64328
|
{
|
|
64338
64329
|
id: "alarm",
|
|
64339
|
-
name: "Alarm / Siren"
|
|
64340
|
-
icon: "🚨"
|
|
64330
|
+
name: "Alarm / Siren"
|
|
64341
64331
|
},
|
|
64342
64332
|
{
|
|
64343
64333
|
id: "doorbell",
|
|
64344
|
-
name: "Doorbell / Knock"
|
|
64345
|
-
icon: "🔔"
|
|
64334
|
+
name: "Doorbell / Knock"
|
|
64346
64335
|
},
|
|
64347
64336
|
{
|
|
64348
64337
|
id: "glass_breaking",
|
|
64349
|
-
name: "Glass Breaking"
|
|
64350
|
-
icon: "💥"
|
|
64338
|
+
name: "Glass Breaking"
|
|
64351
64339
|
},
|
|
64352
64340
|
{
|
|
64353
64341
|
id: "gunshot",
|
|
64354
|
-
name: "Gunshot / Explosion"
|
|
64355
|
-
icon: "💣"
|
|
64342
|
+
name: "Gunshot / Explosion"
|
|
64356
64343
|
},
|
|
64357
64344
|
{
|
|
64358
64345
|
id: "vehicle",
|
|
64359
|
-
name: "Vehicle"
|
|
64360
|
-
icon: "🚗"
|
|
64346
|
+
name: "Vehicle"
|
|
64361
64347
|
},
|
|
64362
64348
|
{
|
|
64363
64349
|
id: "siren",
|
|
64364
|
-
name: "Emergency Siren"
|
|
64365
|
-
icon: "🚑"
|
|
64350
|
+
name: "Emergency Siren"
|
|
64366
64351
|
},
|
|
64367
64352
|
{
|
|
64368
64353
|
id: "fire",
|
|
64369
|
-
name: "Fire / Smoke"
|
|
64370
|
-
icon: "🔥"
|
|
64354
|
+
name: "Fire / Smoke"
|
|
64371
64355
|
},
|
|
64372
64356
|
{
|
|
64373
64357
|
id: "water",
|
|
64374
|
-
name: "Water"
|
|
64375
|
-
icon: "💧"
|
|
64358
|
+
name: "Water"
|
|
64376
64359
|
},
|
|
64377
64360
|
{
|
|
64378
64361
|
id: "wind",
|
|
64379
|
-
name: "Wind / Weather"
|
|
64380
|
-
icon: "🌬️"
|
|
64362
|
+
name: "Wind / Weather"
|
|
64381
64363
|
},
|
|
64382
64364
|
{
|
|
64383
64365
|
id: "door",
|
|
64384
|
-
name: "Door"
|
|
64385
|
-
icon: "🚪"
|
|
64366
|
+
name: "Door"
|
|
64386
64367
|
},
|
|
64387
64368
|
{
|
|
64388
64369
|
id: "footsteps",
|
|
64389
|
-
name: "Footsteps"
|
|
64390
|
-
icon: "👣"
|
|
64370
|
+
name: "Footsteps"
|
|
64391
64371
|
},
|
|
64392
64372
|
{
|
|
64393
64373
|
id: "crowd",
|
|
64394
|
-
name: "Crowd / Chatter"
|
|
64395
|
-
icon: "👥"
|
|
64374
|
+
name: "Crowd / Chatter"
|
|
64396
64375
|
},
|
|
64397
64376
|
{
|
|
64398
64377
|
id: "telephone",
|
|
64399
|
-
name: "Telephone"
|
|
64400
|
-
icon: "📞"
|
|
64378
|
+
name: "Telephone"
|
|
64401
64379
|
},
|
|
64402
64380
|
{
|
|
64403
64381
|
id: "engine",
|
|
64404
|
-
name: "Engine / Motor"
|
|
64405
|
-
icon: "⚙️"
|
|
64382
|
+
name: "Engine / Motor"
|
|
64406
64383
|
},
|
|
64407
64384
|
{
|
|
64408
64385
|
id: "tools",
|
|
64409
|
-
name: "Tools / Construction"
|
|
64410
|
-
icon: "🔨"
|
|
64386
|
+
name: "Tools / Construction"
|
|
64411
64387
|
},
|
|
64412
64388
|
{
|
|
64413
64389
|
id: "silence",
|
|
64414
|
-
name: "Silence"
|
|
64415
|
-
icon: "🤫"
|
|
64390
|
+
name: "Silence"
|
|
64416
64391
|
}
|
|
64417
64392
|
];
|
|
64418
64393
|
var YAMNET_TO_MACRO = {
|
|
@@ -66914,7 +66889,7 @@ var TrackEnvelopeSchema = object({
|
|
|
66914
66889
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
66915
66890
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
66916
66891
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
66917
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
66892
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
66918
66893
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
66919
66894
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
66920
66895
|
* (`getObjectEvents` et al.).
|
|
@@ -67209,6 +67184,35 @@ var TrackSchema = object({
|
|
|
67209
67184
|
*/
|
|
67210
67185
|
hasFace: boolean().optional(),
|
|
67211
67186
|
/**
|
|
67187
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
67188
|
+
* face an operator could ASSIGN to an identity.
|
|
67189
|
+
*
|
|
67190
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
67191
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
67192
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
67193
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
67194
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
67195
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
67196
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
67197
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
67198
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
67199
|
+
* operator something to assign and delivers nothing.
|
|
67200
|
+
*
|
|
67201
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
67202
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
67203
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
67204
|
+
* `subLabel`; this says only that the raw material exists.
|
|
67205
|
+
*
|
|
67206
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
67207
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
67208
|
+
*
|
|
67209
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
67210
|
+
* before the column omits it, and so does every server that predates the
|
|
67211
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
67212
|
+
* never infer "no assignable face".
|
|
67213
|
+
*/
|
|
67214
|
+
hasEmbeddedFace: boolean().optional(),
|
|
67215
|
+
/**
|
|
67212
67216
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
67213
67217
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
67214
67218
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -68598,6 +68602,32 @@ var DetailResultSchema = object({
|
|
|
68598
68602
|
/** FRAME-space bbox (already mapped back from crop space). */
|
|
68599
68603
|
bbox: NativeCropBboxSchema.optional(),
|
|
68600
68604
|
embedding: string().optional(),
|
|
68605
|
+
/**
|
|
68606
|
+
* L2 magnitude of the RAW pre-normalization embedding. Additive and optional
|
|
68607
|
+
* so an older runner that does not send it degrades to "unmeasurable", which
|
|
68608
|
+
* the consuming gate treats as accept — never as reject.
|
|
68609
|
+
*/
|
|
68610
|
+
embeddingMagnitude: number().optional(),
|
|
68611
|
+
/**
|
|
68612
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
68613
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
68614
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
68615
|
+
* the inference this model exists to forbid.
|
|
68616
|
+
*
|
|
68617
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
68618
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
68619
|
+
* its previous assumption instead of refusing.
|
|
68620
|
+
*
|
|
68621
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
68622
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
68623
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
68624
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
68625
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
68626
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
68627
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
68628
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
68629
|
+
*/
|
|
68630
|
+
embeddingModelId: string().optional(),
|
|
68601
68631
|
label: string().optional(),
|
|
68602
68632
|
/**
|
|
68603
68633
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -70008,6 +70038,7 @@ DeviceType.Camera, method(object({
|
|
|
70008
70038
|
isBattery: boolean(),
|
|
70009
70039
|
reason: _enum([
|
|
70010
70040
|
"disabled",
|
|
70041
|
+
"offline",
|
|
70011
70042
|
"sleeping",
|
|
70012
70043
|
"unreachable",
|
|
70013
70044
|
"waking"
|
|
@@ -70053,9 +70084,17 @@ targets: array(object({
|
|
|
70053
70084
|
sleeping: boolean(),
|
|
70054
70085
|
/** Current device state rendered over the cached frame. State images
|
|
70055
70086
|
* remain authoritative even when their photographic background is
|
|
70056
|
-
* old; null means the link must carry a current camera frame.
|
|
70087
|
+
* old; null means the link must carry a current camera frame.
|
|
70088
|
+
*
|
|
70089
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
70090
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
70091
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
70092
|
+
* — the frame comes from here, and so must the sentence over it
|
|
70093
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
70094
|
+
* state. */
|
|
70057
70095
|
stateReason: _enum([
|
|
70058
70096
|
"disabled",
|
|
70097
|
+
"offline",
|
|
70059
70098
|
"sleeping",
|
|
70060
70099
|
"unreachable",
|
|
70061
70100
|
"waking"
|
|
@@ -87623,7 +87662,6 @@ var NC_AUDIO_DEFAULTS = {
|
|
|
87623
87662
|
hitPercent: 60,
|
|
87624
87663
|
samplingSeconds: 10
|
|
87625
87664
|
};
|
|
87626
|
-
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
87627
87665
|
new Set(["devices", "classes"]);
|
|
87628
87666
|
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
87629
87667
|
/**
|
|
@@ -87857,6 +87895,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
87857
87895
|
createdAt: number(),
|
|
87858
87896
|
updatedAt: number()
|
|
87859
87897
|
});
|
|
87898
|
+
Object.freeze(Object.fromEntries([{
|
|
87899
|
+
stepId: "face-embedding",
|
|
87900
|
+
label: "Face recognition model",
|
|
87901
|
+
defaultModelId: "arcface-r100",
|
|
87902
|
+
indexName: "the enrolled face gallery",
|
|
87903
|
+
options: [
|
|
87904
|
+
{
|
|
87905
|
+
id: "arcface-r100",
|
|
87906
|
+
label: "ArcFace (ResNet34)"
|
|
87907
|
+
},
|
|
87908
|
+
{
|
|
87909
|
+
id: "auraface-r100",
|
|
87910
|
+
label: "AuraFace R100"
|
|
87911
|
+
},
|
|
87912
|
+
{
|
|
87913
|
+
id: "inception-resnet-v1",
|
|
87914
|
+
label: "Inception ResNet V1"
|
|
87915
|
+
}
|
|
87916
|
+
]
|
|
87917
|
+
}, {
|
|
87918
|
+
stepId: "clip-embedding",
|
|
87919
|
+
label: "Semantic search model",
|
|
87920
|
+
defaultModelId: "mobileclip-s1",
|
|
87921
|
+
indexName: "the object semantic-search index",
|
|
87922
|
+
options: [{
|
|
87923
|
+
id: "mobileclip-s1",
|
|
87924
|
+
label: "MobileCLIP S1"
|
|
87925
|
+
}, {
|
|
87926
|
+
id: "mobileclip-s2",
|
|
87927
|
+
label: "MobileCLIP S2"
|
|
87928
|
+
}]
|
|
87929
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
87930
|
+
string().min(1);
|
|
87860
87931
|
object({
|
|
87861
87932
|
/**
|
|
87862
87933
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -87877,10 +87948,21 @@ object({
|
|
|
87877
87948
|
*/
|
|
87878
87949
|
square: boolean()
|
|
87879
87950
|
});
|
|
87880
|
-
|
|
87951
|
+
/**
|
|
87952
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
87953
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
87954
|
+
*/
|
|
87955
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
87881
87956
|
paddingRatio: .15,
|
|
87882
87957
|
square: false
|
|
87883
|
-
}
|
|
87958
|
+
};
|
|
87959
|
+
Object.freeze({
|
|
87960
|
+
x: 0,
|
|
87961
|
+
y: 0,
|
|
87962
|
+
w: 1,
|
|
87963
|
+
h: 1
|
|
87964
|
+
});
|
|
87965
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
87884
87966
|
/**
|
|
87885
87967
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
87886
87968
|
*
|
package/dist/addon.mjs
CHANGED
|
@@ -58071,7 +58071,7 @@ var RecordingBandSchema = object({
|
|
|
58071
58071
|
postBufferSec: number().min(0).optional()
|
|
58072
58072
|
});
|
|
58073
58073
|
({
|
|
58074
|
-
preBufferSec:
|
|
58074
|
+
preBufferSec: 15,
|
|
58075
58075
|
postBufferSec: 30
|
|
58076
58076
|
}).postBufferSec * 1e3;
|
|
58077
58077
|
/**
|
|
@@ -64291,128 +64291,103 @@ var COCO_TO_MACRO = {
|
|
|
64291
64291
|
var AUDIO_MACRO_LABELS = [
|
|
64292
64292
|
{
|
|
64293
64293
|
id: "speech",
|
|
64294
|
-
name: "Speech"
|
|
64295
|
-
icon: "🗣️"
|
|
64294
|
+
name: "Speech"
|
|
64296
64295
|
},
|
|
64297
64296
|
{
|
|
64298
64297
|
id: "scream",
|
|
64299
|
-
name: "Scream / Shout"
|
|
64300
|
-
icon: "😱"
|
|
64298
|
+
name: "Scream / Shout"
|
|
64301
64299
|
},
|
|
64302
64300
|
{
|
|
64303
64301
|
id: "crying",
|
|
64304
|
-
name: "Crying / Baby"
|
|
64305
|
-
icon: "😢"
|
|
64302
|
+
name: "Crying / Baby"
|
|
64306
64303
|
},
|
|
64307
64304
|
{
|
|
64308
64305
|
id: "laughter",
|
|
64309
|
-
name: "Laughter"
|
|
64310
|
-
icon: "😂"
|
|
64306
|
+
name: "Laughter"
|
|
64311
64307
|
},
|
|
64312
64308
|
{
|
|
64313
64309
|
id: "music",
|
|
64314
|
-
name: "Music"
|
|
64315
|
-
icon: "🎵"
|
|
64310
|
+
name: "Music"
|
|
64316
64311
|
},
|
|
64317
64312
|
{
|
|
64318
64313
|
id: "dog",
|
|
64319
|
-
name: "Dog"
|
|
64320
|
-
icon: "🐕"
|
|
64314
|
+
name: "Dog"
|
|
64321
64315
|
},
|
|
64322
64316
|
{
|
|
64323
64317
|
id: "cat",
|
|
64324
|
-
name: "Cat"
|
|
64325
|
-
icon: "🐈"
|
|
64318
|
+
name: "Cat"
|
|
64326
64319
|
},
|
|
64327
64320
|
{
|
|
64328
64321
|
id: "bird",
|
|
64329
|
-
name: "Bird"
|
|
64330
|
-
icon: "🐦"
|
|
64322
|
+
name: "Bird"
|
|
64331
64323
|
},
|
|
64332
64324
|
{
|
|
64333
64325
|
id: "animal",
|
|
64334
|
-
name: "Animal (other)"
|
|
64335
|
-
icon: "🐾"
|
|
64326
|
+
name: "Animal (other)"
|
|
64336
64327
|
},
|
|
64337
64328
|
{
|
|
64338
64329
|
id: "alarm",
|
|
64339
|
-
name: "Alarm / Siren"
|
|
64340
|
-
icon: "🚨"
|
|
64330
|
+
name: "Alarm / Siren"
|
|
64341
64331
|
},
|
|
64342
64332
|
{
|
|
64343
64333
|
id: "doorbell",
|
|
64344
|
-
name: "Doorbell / Knock"
|
|
64345
|
-
icon: "🔔"
|
|
64334
|
+
name: "Doorbell / Knock"
|
|
64346
64335
|
},
|
|
64347
64336
|
{
|
|
64348
64337
|
id: "glass_breaking",
|
|
64349
|
-
name: "Glass Breaking"
|
|
64350
|
-
icon: "💥"
|
|
64338
|
+
name: "Glass Breaking"
|
|
64351
64339
|
},
|
|
64352
64340
|
{
|
|
64353
64341
|
id: "gunshot",
|
|
64354
|
-
name: "Gunshot / Explosion"
|
|
64355
|
-
icon: "💣"
|
|
64342
|
+
name: "Gunshot / Explosion"
|
|
64356
64343
|
},
|
|
64357
64344
|
{
|
|
64358
64345
|
id: "vehicle",
|
|
64359
|
-
name: "Vehicle"
|
|
64360
|
-
icon: "🚗"
|
|
64346
|
+
name: "Vehicle"
|
|
64361
64347
|
},
|
|
64362
64348
|
{
|
|
64363
64349
|
id: "siren",
|
|
64364
|
-
name: "Emergency Siren"
|
|
64365
|
-
icon: "🚑"
|
|
64350
|
+
name: "Emergency Siren"
|
|
64366
64351
|
},
|
|
64367
64352
|
{
|
|
64368
64353
|
id: "fire",
|
|
64369
|
-
name: "Fire / Smoke"
|
|
64370
|
-
icon: "🔥"
|
|
64354
|
+
name: "Fire / Smoke"
|
|
64371
64355
|
},
|
|
64372
64356
|
{
|
|
64373
64357
|
id: "water",
|
|
64374
|
-
name: "Water"
|
|
64375
|
-
icon: "💧"
|
|
64358
|
+
name: "Water"
|
|
64376
64359
|
},
|
|
64377
64360
|
{
|
|
64378
64361
|
id: "wind",
|
|
64379
|
-
name: "Wind / Weather"
|
|
64380
|
-
icon: "🌬️"
|
|
64362
|
+
name: "Wind / Weather"
|
|
64381
64363
|
},
|
|
64382
64364
|
{
|
|
64383
64365
|
id: "door",
|
|
64384
|
-
name: "Door"
|
|
64385
|
-
icon: "🚪"
|
|
64366
|
+
name: "Door"
|
|
64386
64367
|
},
|
|
64387
64368
|
{
|
|
64388
64369
|
id: "footsteps",
|
|
64389
|
-
name: "Footsteps"
|
|
64390
|
-
icon: "👣"
|
|
64370
|
+
name: "Footsteps"
|
|
64391
64371
|
},
|
|
64392
64372
|
{
|
|
64393
64373
|
id: "crowd",
|
|
64394
|
-
name: "Crowd / Chatter"
|
|
64395
|
-
icon: "👥"
|
|
64374
|
+
name: "Crowd / Chatter"
|
|
64396
64375
|
},
|
|
64397
64376
|
{
|
|
64398
64377
|
id: "telephone",
|
|
64399
|
-
name: "Telephone"
|
|
64400
|
-
icon: "📞"
|
|
64378
|
+
name: "Telephone"
|
|
64401
64379
|
},
|
|
64402
64380
|
{
|
|
64403
64381
|
id: "engine",
|
|
64404
|
-
name: "Engine / Motor"
|
|
64405
|
-
icon: "⚙️"
|
|
64382
|
+
name: "Engine / Motor"
|
|
64406
64383
|
},
|
|
64407
64384
|
{
|
|
64408
64385
|
id: "tools",
|
|
64409
|
-
name: "Tools / Construction"
|
|
64410
|
-
icon: "🔨"
|
|
64386
|
+
name: "Tools / Construction"
|
|
64411
64387
|
},
|
|
64412
64388
|
{
|
|
64413
64389
|
id: "silence",
|
|
64414
|
-
name: "Silence"
|
|
64415
|
-
icon: "🤫"
|
|
64390
|
+
name: "Silence"
|
|
64416
64391
|
}
|
|
64417
64392
|
];
|
|
64418
64393
|
var YAMNET_TO_MACRO = {
|
|
@@ -66914,7 +66889,7 @@ var TrackEnvelopeSchema = object({
|
|
|
66914
66889
|
* `snapshots[]` references — megabytes across a page of tracks. `slim`
|
|
66915
66890
|
* keeps every scalar the list surfaces actually render (ids, class(es),
|
|
66916
66891
|
* label / audioLabels / importance enrichment, firstSeen/lastSeen, state,
|
|
66917
|
-
* zonesVisited, bestEventId, envelope, hasFace, hasRider) and returns `positions` /
|
|
66892
|
+
* zonesVisited, bestEventId, envelope, hasFace, hasEmbeddedFace, hasRider) and returns `positions` /
|
|
66918
66893
|
* `snapshots` as EMPTY arrays — detail views re-fetch the full row via
|
|
66919
66894
|
* `getTrack`. Mirrors the event-store `projection` convention
|
|
66920
66895
|
* (`getObjectEvents` et al.).
|
|
@@ -67209,6 +67184,35 @@ var TrackSchema = object({
|
|
|
67209
67184
|
*/
|
|
67210
67185
|
hasFace: boolean().optional(),
|
|
67211
67186
|
/**
|
|
67187
|
+
* This track has a face row IN THE GALLERY: a crop **and** an embedding — a
|
|
67188
|
+
* face an operator could ASSIGN to an identity.
|
|
67189
|
+
*
|
|
67190
|
+
* The STRICT twin of {@link hasFace}, and the pair only earns its keep
|
|
67191
|
+
* because the two disagree. `hasFace` is stamped at the TOP of the face
|
|
67192
|
+
* branch, before every gate, and means no more than "a face detector produced
|
|
67193
|
+
* a face detail". This one is stamped at the single moment the gallery row
|
|
67194
|
+
* LANDS — after `FaceRecognizer.onTrackEnd` successfully persists it, i.e.
|
|
67195
|
+
* past the embedding-magnitude verdict, the `minFacePx` detection gate, the
|
|
67196
|
+
* candidate gate, the imageless-track drop (no crop was ever captured) and
|
|
67197
|
+
* the crop-store drop. Everything between the detector and that insert can
|
|
67198
|
+
* legitimately refuse the face, so a flag written any earlier promises the
|
|
67199
|
+
* operator something to assign and delivers nothing.
|
|
67200
|
+
*
|
|
67201
|
+
* **Independent of recognition.** A face collected but never auto-matched is
|
|
67202
|
+
* still assignable — it is in fact the face an operator most wants to reach —
|
|
67203
|
+
* so this is NOT gated on `recognizedIdentityId`. Recognition lands in
|
|
67204
|
+
* `subLabel`; this says only that the raw material exists.
|
|
67205
|
+
*
|
|
67206
|
+
* **Set once, never cleared.** A track that produced a gallery row produced
|
|
67207
|
+
* one; deleting the row later is the gallery's business, not this flag's.
|
|
67208
|
+
*
|
|
67209
|
+
* **Absent ≠ false**, the same rule as {@link hasFace}: every row written
|
|
67210
|
+
* before the column omits it, and so does every server that predates the
|
|
67211
|
+
* field. A consumer must test `=== true` and render nothing otherwise —
|
|
67212
|
+
* never infer "no assignable face".
|
|
67213
|
+
*/
|
|
67214
|
+
hasEmbeddedFace: boolean().optional(),
|
|
67215
|
+
/**
|
|
67212
67216
|
* This subject CONTAINS a folded rider — a person the rider-pairing step
|
|
67213
67217
|
* ([D34](../decisions/adr-0034.md)) removed from the frame BEFORE the tracker,
|
|
67214
67218
|
* so the passage is tracked once and as a VEHICLE.
|
|
@@ -68598,6 +68602,32 @@ var DetailResultSchema = object({
|
|
|
68598
68602
|
/** FRAME-space bbox (already mapped back from crop space). */
|
|
68599
68603
|
bbox: NativeCropBboxSchema.optional(),
|
|
68600
68604
|
embedding: string().optional(),
|
|
68605
|
+
/**
|
|
68606
|
+
* L2 magnitude of the RAW pre-normalization embedding. Additive and optional
|
|
68607
|
+
* so an older runner that does not send it degrades to "unmeasurable", which
|
|
68608
|
+
* the consuming gate treats as accept — never as reject.
|
|
68609
|
+
*/
|
|
68610
|
+
embeddingMagnitude: number().optional(),
|
|
68611
|
+
/**
|
|
68612
|
+
* Model that produced `embedding` — the SAME contract `labelModelId` has for
|
|
68613
|
+
* `label`, and for the same reason: the producing node is the only side that
|
|
68614
|
+
* knows which model actually ran, and re-deriving it downstream is exactly
|
|
68615
|
+
* the inference this model exists to forbid.
|
|
68616
|
+
*
|
|
68617
|
+
* Additive and optional, so a runner that predates it degrades to
|
|
68618
|
+
* "unmeasurable" rather than to a wrong answer — the consumer falls back to
|
|
68619
|
+
* its previous assumption instead of refusing.
|
|
68620
|
+
*
|
|
68621
|
+
* Its absence was not cosmetic. `FaceRecognizer` needs the probe's model id
|
|
68622
|
+
* to use `face-matcher`'s same-model gate (`sample.modelId !== probe.modelId`);
|
|
68623
|
+
* with nothing on the wire it took the id from the GALLERY, so the gate
|
|
68624
|
+
* compared the gallery against itself and could never fire. That turned the
|
|
68625
|
+
* one guard protecting the face feature space into a tautology, and it is
|
|
68626
|
+
* why swapping `face-embedding`'s model would NOT have stranded the enrolled
|
|
68627
|
+
* gallery as the catalog comment predicts — it would have scored the new
|
|
68628
|
+
* model's vectors against the old model's samples in one cosine space.
|
|
68629
|
+
*/
|
|
68630
|
+
embeddingModelId: string().optional(),
|
|
68601
68631
|
label: string().optional(),
|
|
68602
68632
|
/**
|
|
68603
68633
|
* The tier `label` occupies, copied VERBATIM from the producing step's
|
|
@@ -70008,6 +70038,7 @@ DeviceType.Camera, method(object({
|
|
|
70008
70038
|
isBattery: boolean(),
|
|
70009
70039
|
reason: _enum([
|
|
70010
70040
|
"disabled",
|
|
70041
|
+
"offline",
|
|
70011
70042
|
"sleeping",
|
|
70012
70043
|
"unreachable",
|
|
70013
70044
|
"waking"
|
|
@@ -70053,9 +70084,17 @@ targets: array(object({
|
|
|
70053
70084
|
sleeping: boolean(),
|
|
70054
70085
|
/** Current device state rendered over the cached frame. State images
|
|
70055
70086
|
* remain authoritative even when their photographic background is
|
|
70056
|
-
* old; null means the link must carry a current camera frame.
|
|
70087
|
+
* old; null means the link must carry a current camera frame.
|
|
70088
|
+
*
|
|
70089
|
+
* **This is the ONLY source a surface may derive an inactive tile
|
|
70090
|
+
* from.** A client that reads a device's `online`/`disabled` flags and
|
|
70091
|
+
* draws its own verdict will disagree with the pixels it is painting
|
|
70092
|
+
* — the frame comes from here, and so must the sentence over it
|
|
70093
|
+
* (D190). Pair with `ageMs` for the age of the photograph behind the
|
|
70094
|
+
* state. */
|
|
70057
70095
|
stateReason: _enum([
|
|
70058
70096
|
"disabled",
|
|
70097
|
+
"offline",
|
|
70059
70098
|
"sleeping",
|
|
70060
70099
|
"unreachable",
|
|
70061
70100
|
"waking"
|
|
@@ -87623,7 +87662,6 @@ var NC_AUDIO_DEFAULTS = {
|
|
|
87623
87662
|
hitPercent: 60,
|
|
87624
87663
|
samplingSeconds: 10
|
|
87625
87664
|
};
|
|
87626
|
-
new Map(AUDIO_MACRO_LABELS.flatMap((macro) => macro.icon === void 0 ? [] : [[macro.id, macro.icon]]));
|
|
87627
87665
|
new Set(["devices", "classes"]);
|
|
87628
87666
|
NC_AUDIO_DEFAULTS.hitPercent, NC_AUDIO_DEFAULTS.samplingSeconds;
|
|
87629
87667
|
/**
|
|
@@ -87857,6 +87895,39 @@ TimelapseRuleInputSchema.extend({
|
|
|
87857
87895
|
createdAt: number(),
|
|
87858
87896
|
updatedAt: number()
|
|
87859
87897
|
});
|
|
87898
|
+
Object.freeze(Object.fromEntries([{
|
|
87899
|
+
stepId: "face-embedding",
|
|
87900
|
+
label: "Face recognition model",
|
|
87901
|
+
defaultModelId: "arcface-r100",
|
|
87902
|
+
indexName: "the enrolled face gallery",
|
|
87903
|
+
options: [
|
|
87904
|
+
{
|
|
87905
|
+
id: "arcface-r100",
|
|
87906
|
+
label: "ArcFace (ResNet34)"
|
|
87907
|
+
},
|
|
87908
|
+
{
|
|
87909
|
+
id: "auraface-r100",
|
|
87910
|
+
label: "AuraFace R100"
|
|
87911
|
+
},
|
|
87912
|
+
{
|
|
87913
|
+
id: "inception-resnet-v1",
|
|
87914
|
+
label: "Inception ResNet V1"
|
|
87915
|
+
}
|
|
87916
|
+
]
|
|
87917
|
+
}, {
|
|
87918
|
+
stepId: "clip-embedding",
|
|
87919
|
+
label: "Semantic search model",
|
|
87920
|
+
defaultModelId: "mobileclip-s1",
|
|
87921
|
+
indexName: "the object semantic-search index",
|
|
87922
|
+
options: [{
|
|
87923
|
+
id: "mobileclip-s1",
|
|
87924
|
+
label: "MobileCLIP S1"
|
|
87925
|
+
}, {
|
|
87926
|
+
id: "mobileclip-s2",
|
|
87927
|
+
label: "MobileCLIP S2"
|
|
87928
|
+
}]
|
|
87929
|
+
}].map((s) => [s.stepId, s.defaultModelId])));
|
|
87930
|
+
string().min(1);
|
|
87860
87931
|
object({
|
|
87861
87932
|
/**
|
|
87862
87933
|
* Fraction of the box's own size added on EACH side before cutting.
|
|
@@ -87877,10 +87948,21 @@ object({
|
|
|
87877
87948
|
*/
|
|
87878
87949
|
square: boolean()
|
|
87879
87950
|
});
|
|
87880
|
-
|
|
87951
|
+
/**
|
|
87952
|
+
* The convention in force when nobody has configured one — byte-for-byte the
|
|
87953
|
+
* behaviour of the pre-unification LIVE path (`DETAIL_CROP_PADDING_RATIO`).
|
|
87954
|
+
*/
|
|
87955
|
+
var DEFAULT_DETAIL_CROP_CONVENTION = {
|
|
87881
87956
|
paddingRatio: .15,
|
|
87882
87957
|
square: false
|
|
87883
|
-
}
|
|
87958
|
+
};
|
|
87959
|
+
Object.freeze({
|
|
87960
|
+
x: 0,
|
|
87961
|
+
y: 0,
|
|
87962
|
+
w: 1,
|
|
87963
|
+
h: 1
|
|
87964
|
+
});
|
|
87965
|
+
DEFAULT_DETAIL_CROP_CONVENTION.paddingRatio;
|
|
87884
87966
|
/**
|
|
87885
87967
|
* WHICH delivered frames the decode worker retains a native copy of.
|
|
87886
87968
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-dreame",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.24",
|
|
4
4
|
"description": "Dreame robot-vacuum / lawn-mower device-provider addon for CamStack — wraps the @apocaliss92/nodedreame Dreamehome cloud client",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|