@camstack/addon-agent-ui 1.2.179 → 1.2.180
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 +42 -20
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -10478,7 +10478,18 @@ var LABEL_SUPPLY_STEP_IDS = [
|
|
|
10478
10478
|
];
|
|
10479
10479
|
/** Steps whose box a root detection can BE. */
|
|
10480
10480
|
var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
|
|
10481
|
-
|
|
10481
|
+
/**
|
|
10482
|
+
* Steps whose per-detection MASK a root detection can carry (D737). The live
|
|
10483
|
+
* mask step is `segmentation` — a frame-plane refiner that runs its own model
|
|
10484
|
+
* once per detection crop. (`instance-segmentation` is a dormant step id that
|
|
10485
|
+
* no camera tree carries.)
|
|
10486
|
+
*/
|
|
10487
|
+
var MASK_SUPPLY_STEP_IDS = ["segmentation"];
|
|
10488
|
+
[
|
|
10489
|
+
...LABEL_SUPPLY_STEP_IDS,
|
|
10490
|
+
...CROP_SUPPLY_STEP_IDS,
|
|
10491
|
+
...MASK_SUPPLY_STEP_IDS
|
|
10492
|
+
];
|
|
10482
10493
|
var MODEL_FORMATS = [
|
|
10483
10494
|
"onnx",
|
|
10484
10495
|
"coreml",
|
|
@@ -10621,25 +10632,36 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
|
|
|
10621
10632
|
* - `crop`: the root draws the box the step would have found (`license_plate`
|
|
10622
10633
|
* for plate-detection, `face` for face-detection). The box becomes a detail
|
|
10623
10634
|
* child of the `parentMacro` detection that contains it — never a track.
|
|
10635
|
+
* - `mask`: the root's decode emits an instance mask with every detection (a
|
|
10636
|
+
* YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
|
|
10637
|
+
* detection in the shape that step produces. Derived from the model's
|
|
10638
|
+
* postprocessor on read, never stored by an import.
|
|
10624
10639
|
*/
|
|
10625
|
-
var RootStepSupplySchema = discriminatedUnion("kind", [
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10630
|
-
|
|
10631
|
-
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
|
|
10635
|
-
|
|
10636
|
-
|
|
10637
|
-
|
|
10638
|
-
|
|
10639
|
-
|
|
10640
|
-
|
|
10641
|
-
|
|
10642
|
-
|
|
10640
|
+
var RootStepSupplySchema = discriminatedUnion("kind", [
|
|
10641
|
+
object({
|
|
10642
|
+
kind: literal("label"),
|
|
10643
|
+
stepId: _enum(LABEL_SUPPLY_STEP_IDS),
|
|
10644
|
+
labelToEffect: record(string(), string()),
|
|
10645
|
+
uncovered: array(string()).readonly()
|
|
10646
|
+
}),
|
|
10647
|
+
object({
|
|
10648
|
+
kind: literal("crop"),
|
|
10649
|
+
stepId: _enum(CROP_SUPPLY_STEP_IDS),
|
|
10650
|
+
rootLabels: array(string()).readonly(),
|
|
10651
|
+
parentMacro: _enum(["vehicle", "person"]),
|
|
10652
|
+
childClass: _enum(["plate", "face"]),
|
|
10653
|
+
/**
|
|
10654
|
+
* The root's smaller input side, stamped on read by `rootSuppliesOf` from
|
|
10655
|
+
* the model entry — what a step's `minRootInputPx` gate judges. Never
|
|
10656
|
+
* stored by an import.
|
|
10657
|
+
*/
|
|
10658
|
+
rootInputPx: number().int().positive().optional()
|
|
10659
|
+
}),
|
|
10660
|
+
object({
|
|
10661
|
+
kind: literal("mask"),
|
|
10662
|
+
stepId: _enum(MASK_SUPPLY_STEP_IDS)
|
|
10663
|
+
})
|
|
10664
|
+
]);
|
|
10643
10665
|
var ModelCatalogEntrySchema = object({
|
|
10644
10666
|
id: string(),
|
|
10645
10667
|
name: string(),
|
|
@@ -48692,7 +48714,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
48692
48714
|
capability: adminUiCapability,
|
|
48693
48715
|
provider: {
|
|
48694
48716
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
48695
|
-
getVersion: async () => ({ version: "1.2.
|
|
48717
|
+
getVersion: async () => ({ version: "1.2.180" })
|
|
48696
48718
|
}
|
|
48697
48719
|
}];
|
|
48698
48720
|
}
|