@camstack/addon-agent-ui 1.2.176 → 1.2.177
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 +182 -65
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -10470,57 +10470,15 @@ var ClipSearchStrictnessSchema = _enum([
|
|
|
10470
10470
|
"balanced",
|
|
10471
10471
|
"strict"
|
|
10472
10472
|
]);
|
|
10473
|
-
|
|
10474
|
-
|
|
10475
|
-
id: "person",
|
|
10476
|
-
name: "Person"
|
|
10477
|
-
},
|
|
10478
|
-
{
|
|
10479
|
-
id: "vehicle",
|
|
10480
|
-
name: "Vehicle"
|
|
10481
|
-
},
|
|
10482
|
-
{
|
|
10483
|
-
id: "animal",
|
|
10484
|
-
name: "Animal"
|
|
10485
|
-
},
|
|
10486
|
-
{
|
|
10487
|
-
id: "package",
|
|
10488
|
-
name: "Package"
|
|
10489
|
-
}
|
|
10490
|
-
].map((l) => l.id));
|
|
10491
|
-
var COCO_TO_MACRO = {
|
|
10492
|
-
mapping: {
|
|
10493
|
-
person: "person",
|
|
10494
|
-
bicycle: "vehicle",
|
|
10495
|
-
car: "vehicle",
|
|
10496
|
-
motorcycle: "vehicle",
|
|
10497
|
-
airplane: "vehicle",
|
|
10498
|
-
bus: "vehicle",
|
|
10499
|
-
train: "vehicle",
|
|
10500
|
-
truck: "vehicle",
|
|
10501
|
-
boat: "vehicle",
|
|
10502
|
-
bird: "animal",
|
|
10503
|
-
cat: "animal",
|
|
10504
|
-
dog: "animal",
|
|
10505
|
-
horse: "animal",
|
|
10506
|
-
sheep: "animal",
|
|
10507
|
-
cow: "animal",
|
|
10508
|
-
elephant: "animal",
|
|
10509
|
-
bear: "animal",
|
|
10510
|
-
zebra: "animal",
|
|
10511
|
-
giraffe: "animal",
|
|
10512
|
-
suitcase: "package",
|
|
10513
|
-
backpack: "package",
|
|
10514
|
-
handbag: "package"
|
|
10515
|
-
},
|
|
10516
|
-
preserveOriginal: false
|
|
10517
|
-
};
|
|
10518
|
-
/** Steps a root detector may declare it fills. */
|
|
10519
|
-
var FILLABLE_STEP_IDS = [
|
|
10473
|
+
/** Steps whose effect a root label can BE. */
|
|
10474
|
+
var LABEL_SUPPLY_STEP_IDS = [
|
|
10520
10475
|
"animal-classifier",
|
|
10521
10476
|
"vehicle-classifier",
|
|
10522
10477
|
"package-detection"
|
|
10523
10478
|
];
|
|
10479
|
+
/** Steps whose box a root detection can BE. */
|
|
10480
|
+
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
10481
|
+
[...LABEL_SUPPLY_STEP_IDS, ...CROP_SUPPLY_STEP_IDS];
|
|
10524
10482
|
var MODEL_FORMATS = [
|
|
10525
10483
|
"onnx",
|
|
10526
10484
|
"coreml",
|
|
@@ -10653,12 +10611,35 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
10653
10611
|
/** True when the weights or their data forbid commercial use. */
|
|
10654
10612
|
nonCommercial: boolean().optional()
|
|
10655
10613
|
}));
|
|
10656
|
-
/**
|
|
10657
|
-
|
|
10658
|
-
|
|
10614
|
+
/**
|
|
10615
|
+
* One step a ROOT detector can supply from its own output (D730) — see
|
|
10616
|
+
* `ModelCatalogEntry.suppliesSteps`.
|
|
10617
|
+
*
|
|
10618
|
+
* - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
|
|
10619
|
+
* the root's label to the step's vocabulary; `uncovered` is the vocabulary
|
|
10620
|
+
* the root cannot produce (shown as unavailable, never a blocker).
|
|
10621
|
+
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
10622
|
+
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
10623
|
+
* child of the `parentMacro` detection that contains it — never a track.
|
|
10624
|
+
*/
|
|
10625
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [object({
|
|
10626
|
+
kind: literal("label"),
|
|
10627
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
10659
10628
|
labelToEffect: record(string(), string()),
|
|
10660
10629
|
uncovered: array(string()).readonly()
|
|
10661
|
-
})
|
|
10630
|
+
}), object({
|
|
10631
|
+
kind: literal("crop"),
|
|
10632
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
10633
|
+
rootLabels: array(string()).readonly(),
|
|
10634
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
10635
|
+
childClass: _enum(["plate", "face"]),
|
|
10636
|
+
/**
|
|
10637
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
10638
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
10639
|
+
* stored by an import.
|
|
10640
|
+
*/
|
|
10641
|
+
rootInputPx: number().int().positive().optional()
|
|
10642
|
+
})]);
|
|
10662
10643
|
var ModelCatalogEntrySchema = object({
|
|
10663
10644
|
id: string(),
|
|
10664
10645
|
name: string(),
|
|
@@ -10785,15 +10766,15 @@ var ModelCatalogEntrySchema = object({
|
|
|
10785
10766
|
*/
|
|
10786
10767
|
classMap: DetectionCatalogClassMapSchema.optional(),
|
|
10787
10768
|
/**
|
|
10788
|
-
* The pipeline steps this ROOT detector
|
|
10789
|
-
* its labels name
|
|
10790
|
-
*
|
|
10791
|
-
* labelmap by `
|
|
10792
|
-
*
|
|
10793
|
-
*
|
|
10794
|
-
* `
|
|
10769
|
+
* The pipeline steps this ROOT detector can supply from its own output
|
|
10770
|
+
* (D730): its labels name a step's effect (`deer` for `animal-classifier`)
|
|
10771
|
+
* or draw a step's box (`license_plate` for `plate-detection`). Computed at
|
|
10772
|
+
* import from THIS model's labelmap by `deriveRootSupplies`, never written
|
|
10773
|
+
* by hand and never assumed per family; a row without it is derived on read
|
|
10774
|
+
* (`rootSuppliesOf`). Whether a camera uses it is the step's own
|
|
10775
|
+
* `useRootModel` flag (`resolveRootSupply`).
|
|
10795
10776
|
*/
|
|
10796
|
-
|
|
10777
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
|
|
10797
10778
|
/**
|
|
10798
10779
|
* The model's CLIP feature-space contract (text encoder, dimension, vector
|
|
10799
10780
|
* index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
|
|
@@ -17715,6 +17696,51 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
17715
17696
|
kind: "mutation",
|
|
17716
17697
|
auth: "admin"
|
|
17717
17698
|
});
|
|
17699
|
+
new Set([
|
|
17700
|
+
{
|
|
17701
|
+
id: "person",
|
|
17702
|
+
name: "Person"
|
|
17703
|
+
},
|
|
17704
|
+
{
|
|
17705
|
+
id: "vehicle",
|
|
17706
|
+
name: "Vehicle"
|
|
17707
|
+
},
|
|
17708
|
+
{
|
|
17709
|
+
id: "animal",
|
|
17710
|
+
name: "Animal"
|
|
17711
|
+
},
|
|
17712
|
+
{
|
|
17713
|
+
id: "package",
|
|
17714
|
+
name: "Package"
|
|
17715
|
+
}
|
|
17716
|
+
].map((l) => l.id));
|
|
17717
|
+
var COCO_TO_MACRO = {
|
|
17718
|
+
mapping: {
|
|
17719
|
+
person: "person",
|
|
17720
|
+
bicycle: "vehicle",
|
|
17721
|
+
car: "vehicle",
|
|
17722
|
+
motorcycle: "vehicle",
|
|
17723
|
+
airplane: "vehicle",
|
|
17724
|
+
bus: "vehicle",
|
|
17725
|
+
train: "vehicle",
|
|
17726
|
+
truck: "vehicle",
|
|
17727
|
+
boat: "vehicle",
|
|
17728
|
+
bird: "animal",
|
|
17729
|
+
cat: "animal",
|
|
17730
|
+
dog: "animal",
|
|
17731
|
+
horse: "animal",
|
|
17732
|
+
sheep: "animal",
|
|
17733
|
+
cow: "animal",
|
|
17734
|
+
elephant: "animal",
|
|
17735
|
+
bear: "animal",
|
|
17736
|
+
zebra: "animal",
|
|
17737
|
+
giraffe: "animal",
|
|
17738
|
+
suitcase: "package",
|
|
17739
|
+
backpack: "package",
|
|
17740
|
+
handbag: "package"
|
|
17741
|
+
},
|
|
17742
|
+
preserveOriginal: false
|
|
17743
|
+
};
|
|
17718
17744
|
var AUDIO_MACRO_LABELS = [
|
|
17719
17745
|
{
|
|
17720
17746
|
id: "speech",
|
|
@@ -22991,6 +23017,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
|
|
|
22991
23017
|
timestamp: number()
|
|
22992
23018
|
});
|
|
22993
23019
|
/**
|
|
23020
|
+
* A root model's boxes standing in for one crop-kind step's own inference
|
|
23021
|
+
* (D730) — see `runPipeline.suppliedRoot`.
|
|
23022
|
+
*/
|
|
23023
|
+
var SuppliedRootOutputSchema = object({
|
|
23024
|
+
stepId: string(),
|
|
23025
|
+
/** The root model that drew the boxes — stamped on the result. */
|
|
23026
|
+
modelId: string(),
|
|
23027
|
+
detections: array(object({
|
|
23028
|
+
/** `[x1, y1, x2, y2]` in the pixels of the call's image. */
|
|
23029
|
+
bbox: tuple([
|
|
23030
|
+
number(),
|
|
23031
|
+
number(),
|
|
23032
|
+
number(),
|
|
23033
|
+
number()
|
|
23034
|
+
]),
|
|
23035
|
+
score: number(),
|
|
23036
|
+
/**
|
|
23037
|
+
* Five facial landmarks in the same pixels — a face the step's own
|
|
23038
|
+
* detector already re-found inside a root face box (D730), so its
|
|
23039
|
+
* embedder child aligns it exactly as it aligns any detected face.
|
|
23040
|
+
*/
|
|
23041
|
+
landmarks: array(object({
|
|
23042
|
+
x: number(),
|
|
23043
|
+
y: number()
|
|
23044
|
+
})).optional()
|
|
23045
|
+
})).min(1)
|
|
23046
|
+
});
|
|
23047
|
+
/**
|
|
22994
23048
|
* Reference to the frame's retained NATIVE surface + the parent crop's placement
|
|
22995
23049
|
* within the frame, so the executor can re-cut a leaf child ROI at native
|
|
22996
23050
|
* resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
|
|
@@ -23121,7 +23175,7 @@ var PipelineModelOptionSchema = object({
|
|
|
23121
23175
|
legacy: boolean().optional(),
|
|
23122
23176
|
provider: ModelProviderIdSchema.optional(),
|
|
23123
23177
|
defaultConfidence: number().optional(),
|
|
23124
|
-
|
|
23178
|
+
suppliesSteps: array(RootStepSupplySchema).readonly().optional()
|
|
23125
23179
|
});
|
|
23126
23180
|
var ConfigFieldBridge = custom();
|
|
23127
23181
|
var PipelineAddonSchemaSchema = object({
|
|
@@ -23389,7 +23443,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
|
|
|
23389
23443
|
* `device-not-servable`), and nothing reaches the camera's live
|
|
23390
23444
|
* trace stream. Absent ⇒ unchanged behaviour.
|
|
23391
23445
|
*/
|
|
23392
|
-
replay: literal(true).optional()
|
|
23446
|
+
replay: literal(true).optional(),
|
|
23447
|
+
/**
|
|
23448
|
+
* Root-supplied detections for the tree's ROOT step (D730). Set by
|
|
23449
|
+
* `runDetailSubtree` when the camera's root model supplies a crop-kind
|
|
23450
|
+
* step (a Frigate+ `license_plate` for `plate-detection`): the step is
|
|
23451
|
+
* NOT inferred, these boxes are its output, and its children (the plate
|
|
23452
|
+
* reader) run on them through their own crop policy. Boxes are in the
|
|
23453
|
+
* PIXELS of the image this call carries. Absent ⇒ the root step runs.
|
|
23454
|
+
*/
|
|
23455
|
+
suppliedRoot: SuppliedRootOutputSchema.optional()
|
|
23393
23456
|
}), PipelineRunResultBridge, { kind: "mutation" }), method(object({
|
|
23394
23457
|
steps: array(PipelineStepInputSchema).min(1),
|
|
23395
23458
|
frames: array(FrameInputSchema).min(1).max(255),
|
|
@@ -24491,7 +24554,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
|
|
|
24491
24554
|
*/
|
|
24492
24555
|
cropJpeg: string().optional(),
|
|
24493
24556
|
parent: DetailParentSchema,
|
|
24494
|
-
steps: array(string()).optional()
|
|
24557
|
+
steps: array(string()).optional(),
|
|
24558
|
+
/**
|
|
24559
|
+
* The camera's root model already drew this step's boxes (D730): a
|
|
24560
|
+
* `license_plate` inside the parent vehicle. The named step is NOT
|
|
24561
|
+
* inferred — these FRAME-space boxes are its output — and its
|
|
24562
|
+
* requested children (the plate reader) run on them. Absent ⇒ every
|
|
24563
|
+
* requested step infers as before.
|
|
24564
|
+
*/
|
|
24565
|
+
supplied: object({
|
|
24566
|
+
stepId: string(),
|
|
24567
|
+
modelId: string(),
|
|
24568
|
+
boxes: array(object({
|
|
24569
|
+
bbox: NativeCropBboxSchema,
|
|
24570
|
+
score: number()
|
|
24571
|
+
})).min(1)
|
|
24572
|
+
}).optional()
|
|
24495
24573
|
}), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
|
|
24496
24574
|
/** Catalog step id, e.g. `clip-embedding`. */
|
|
24497
24575
|
stepId: string(),
|
|
@@ -30569,6 +30647,27 @@ var ViewerEndpointsSchema = object({
|
|
|
30569
30647
|
/** What the ranking currently resolves to (may be empty if nothing is up). */
|
|
30570
30648
|
resolved: array(string()).readonly()
|
|
30571
30649
|
});
|
|
30650
|
+
/**
|
|
30651
|
+
* One audience's hub address (see `hub-address.ts`): the operator's stored
|
|
30652
|
+
* override, the address in use, and where it came from.
|
|
30653
|
+
*/
|
|
30654
|
+
var HubAddressSnapshotSchema = object({
|
|
30655
|
+
/** The operator's override, or null for automatic. */
|
|
30656
|
+
override: string().nullable(),
|
|
30657
|
+
/** The address in use, or null when nothing qualifies (never loopback). */
|
|
30658
|
+
resolved: string().nullable(),
|
|
30659
|
+
source: _enum([
|
|
30660
|
+
"override",
|
|
30661
|
+
"auto",
|
|
30662
|
+
"none"
|
|
30663
|
+
])
|
|
30664
|
+
});
|
|
30665
|
+
var HubAddressesSchema = object({
|
|
30666
|
+
/** "Hub address for agents" — agents' bundle/model pulls, LAN devices. */
|
|
30667
|
+
cluster: HubAddressSnapshotSchema,
|
|
30668
|
+
/** "Public address for sign-in links" — e-mail links, OIDC, WebAuthn, OAuth2. */
|
|
30669
|
+
browser: HubAddressSnapshotSchema
|
|
30670
|
+
});
|
|
30572
30671
|
var AllowedAddressesSchema = object({
|
|
30573
30672
|
/**
|
|
30574
30673
|
* Allowlist of interface addresses operators have explicitly opted
|
|
@@ -30615,7 +30714,13 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
|
|
|
30615
30714
|
* an address notification links can be flagged with, not a hub
|
|
30616
30715
|
* route. Default `false`: racers and rankers never see it. */
|
|
30617
30716
|
includeAppLink: boolean().optional()
|
|
30618
|
-
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(_void(),
|
|
30717
|
+
}), GetConnectionEndpointsResultSchema), method(_void(), NotificationEndpointSchema), method(object({ baseUrl: string().nullable() }), NotificationEndpointSchema, { kind: "mutation" }), method(_void(), ViewerEndpointsSchema), method(object({ baseUrls: array(string()).readonly() }), ViewerEndpointsSchema, { kind: "mutation" }), method(_void(), HubAddressesSchema), method(object({
|
|
30718
|
+
audience: _enum(["cluster", "browser"]),
|
|
30719
|
+
baseUrl: string().nullable()
|
|
30720
|
+
}), HubAddressesSchema, {
|
|
30721
|
+
kind: "mutation",
|
|
30722
|
+
auth: "admin"
|
|
30723
|
+
}), method(_void(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
|
|
30619
30724
|
kind: "mutation",
|
|
30620
30725
|
auth: "admin"
|
|
30621
30726
|
}), method(object({
|
|
@@ -39083,6 +39188,12 @@ Object.freeze({
|
|
|
39083
39188
|
addonId: null,
|
|
39084
39189
|
access: "view"
|
|
39085
39190
|
},
|
|
39191
|
+
"localNetwork.getHubAddresses": {
|
|
39192
|
+
capName: "local-network",
|
|
39193
|
+
capScope: "system",
|
|
39194
|
+
addonId: null,
|
|
39195
|
+
access: "view"
|
|
39196
|
+
},
|
|
39086
39197
|
"localNetwork.getNotificationEndpoint": {
|
|
39087
39198
|
capName: "local-network",
|
|
39088
39199
|
capScope: "system",
|
|
@@ -39137,6 +39248,12 @@ Object.freeze({
|
|
|
39137
39248
|
addonId: null,
|
|
39138
39249
|
access: "create"
|
|
39139
39250
|
},
|
|
39251
|
+
"localNetwork.setHubAddress": {
|
|
39252
|
+
capName: "local-network",
|
|
39253
|
+
capScope: "system",
|
|
39254
|
+
addonId: null,
|
|
39255
|
+
access: "create"
|
|
39256
|
+
},
|
|
39140
39257
|
"localNetwork.setNotificationEndpoint": {
|
|
39141
39258
|
capName: "local-network",
|
|
39142
39259
|
capScope: "system",
|
|
@@ -47840,7 +47957,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
47840
47957
|
{
|
|
47841
47958
|
name: "summarySection",
|
|
47842
47959
|
label: "Summary: this section",
|
|
47843
|
-
description: "The section a per-section summary row is about
|
|
47960
|
+
description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
|
|
47844
47961
|
example: "Batterie scariche",
|
|
47845
47962
|
group: "system",
|
|
47846
47963
|
families: ["rule"],
|
|
@@ -48467,7 +48584,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
48467
48584
|
capability: adminUiCapability,
|
|
48468
48585
|
provider: {
|
|
48469
48586
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
48470
|
-
getVersion: async () => ({ version: "1.2.
|
|
48587
|
+
getVersion: async () => ({ version: "1.2.177" })
|
|
48471
48588
|
}
|
|
48472
48589
|
}];
|
|
48473
48590
|
}
|