@camstack/addon-agent-ui 1.2.175 → 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.
Files changed (2) hide show
  1. package/dist/addon.js +192 -66
  2. 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
- new Set([
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
- /** One `fillsClassifierEffects` entry — see `ModelCatalogEntry.fillsClassifierEffects`. */
10657
- var FillsClassifierEffectSchema = object({
10658
- stepId: _enum(FILLABLE_STEP_IDS),
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 already does the work of (D715):
10789
- * its labels name the effect the step exists to produce (`deer` for
10790
- * `animal-classifier`, `package` for `package-detection`). Derived from the
10791
- * labelmap by `deriveClassifierFills`, never hand-written; a COCO model
10792
- * declares none. Whether a declaration is honoured is the step's own
10793
- * `labelLink` policy (`resolveLabelLink`). `labelToEffect` values are in
10794
- * `FILLABLE_STEP_VOCABULARIES` (guard `check-label-link-vocabulary`).
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
- fillsClassifierEffects: array(FillsClassifierEffectSchema).readonly().optional(),
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",
@@ -18472,6 +18498,8 @@ var NcSystemEventKindSchema = _enum([
18472
18498
  "stream-offline",
18473
18499
  "node-online",
18474
18500
  "node-offline",
18501
+ "node-restarting",
18502
+ "node-updating",
18475
18503
  "node-inference-unavailable",
18476
18504
  "detection-blind",
18477
18505
  "addon-crash-loop",
@@ -22989,6 +23017,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
22989
23017
  timestamp: number()
22990
23018
  });
22991
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
+ /**
22992
23048
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
22993
23049
  * within the frame, so the executor can re-cut a leaf child ROI at native
22994
23050
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23119,7 +23175,7 @@ var PipelineModelOptionSchema = object({
23119
23175
  legacy: boolean().optional(),
23120
23176
  provider: ModelProviderIdSchema.optional(),
23121
23177
  defaultConfidence: number().optional(),
23122
- fillsClassifierEffects: array(FillsClassifierEffectSchema).readonly().optional()
23178
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23123
23179
  });
23124
23180
  var ConfigFieldBridge = custom();
23125
23181
  var PipelineAddonSchemaSchema = object({
@@ -23387,7 +23443,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23387
23443
  * `device-not-servable`), and nothing reaches the camera's live
23388
23444
  * trace stream. Absent ⇒ unchanged behaviour.
23389
23445
  */
23390
- 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()
23391
23456
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
23392
23457
  steps: array(PipelineStepInputSchema).min(1),
23393
23458
  frames: array(FrameInputSchema).min(1).max(255),
@@ -24489,7 +24554,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
24489
24554
  */
24490
24555
  cropJpeg: string().optional(),
24491
24556
  parent: DetailParentSchema,
24492
- 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()
24493
24573
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
24494
24574
  /** Catalog step id, e.g. `clip-embedding`. */
24495
24575
  stepId: string(),
@@ -30567,6 +30647,27 @@ var ViewerEndpointsSchema = object({
30567
30647
  /** What the ranking currently resolves to (may be empty if nothing is up). */
30568
30648
  resolved: array(string()).readonly()
30569
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
+ });
30570
30671
  var AllowedAddressesSchema = object({
30571
30672
  /**
30572
30673
  * Allowlist of interface addresses operators have explicitly opted
@@ -30613,7 +30714,13 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
30613
30714
  * an address notification links can be flagged with, not a hub
30614
30715
  * route. Default `false`: racers and rankers never see it. */
30615
30716
  includeAppLink: boolean().optional()
30616
- }), 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(), AllowedAddressesSchema), method(AllowedAddressesSchema, object({ success: literal(true) }), { kind: "mutation" }), method(_void(), AllowedAddressesSchema, { kind: "mutation" }), method(_void(), TlsStatusSchema), method(object({ reason: string().optional() }), TlsStatusSchema, {
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, {
30617
30724
  kind: "mutation",
30618
30725
  auth: "admin"
30619
30726
  }), method(object({
@@ -31003,7 +31110,8 @@ object({
31003
31110
  * writes this slice (not even a boot seed), and neither does the runner's
31004
31111
  * phase machine: its phase is "a session is attached" for every on-motion
31005
31112
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
31006
- * A provider's `isDetected` answers from the hub's slice.
31113
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
31114
+ * (`hubMotionNativeProvider`).
31007
31115
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
31008
31116
  * imports) — the provider pushes both edges itself, from the upstream
31009
31117
  * system's own state change. That is the sensor's own fact.
@@ -39080,6 +39188,12 @@ Object.freeze({
39080
39188
  addonId: null,
39081
39189
  access: "view"
39082
39190
  },
39191
+ "localNetwork.getHubAddresses": {
39192
+ capName: "local-network",
39193
+ capScope: "system",
39194
+ addonId: null,
39195
+ access: "view"
39196
+ },
39083
39197
  "localNetwork.getNotificationEndpoint": {
39084
39198
  capName: "local-network",
39085
39199
  capScope: "system",
@@ -39134,6 +39248,12 @@ Object.freeze({
39134
39248
  addonId: null,
39135
39249
  access: "create"
39136
39250
  },
39251
+ "localNetwork.setHubAddress": {
39252
+ capName: "local-network",
39253
+ capScope: "system",
39254
+ addonId: null,
39255
+ access: "create"
39256
+ },
39137
39257
  "localNetwork.setNotificationEndpoint": {
39138
39258
  capName: "local-network",
39139
39259
  capScope: "system",
@@ -47533,6 +47653,8 @@ new Map(Object.entries({
47533
47653
  "detection-blind": "device-events",
47534
47654
  "node-online": "system",
47535
47655
  "node-offline": "system",
47656
+ "node-restarting": "system",
47657
+ "node-updating": "system",
47536
47658
  "node-inference-unavailable": "system",
47537
47659
  "addon-crash-loop": "system",
47538
47660
  "addon-update-available": "system",
@@ -47610,6 +47732,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
47610
47732
  kinds: [
47611
47733
  "node-offline",
47612
47734
  "node-online",
47735
+ "node-restarting",
47613
47736
  "node-inference-unavailable"
47614
47737
  ]
47615
47738
  },
@@ -47631,6 +47754,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
47631
47754
  label: "Server & container updates",
47632
47755
  kinds: [
47633
47756
  "server-update-available",
47757
+ "node-updating",
47634
47758
  "server-updated",
47635
47759
  "wrapper-update-available"
47636
47760
  ]
@@ -47778,6 +47902,7 @@ var STATE_SUMMARY_SECTION_VARS = [
47778
47902
  kinds: [
47779
47903
  "node-offline",
47780
47904
  "node-online",
47905
+ "node-restarting",
47781
47906
  "node-inference-unavailable"
47782
47907
  ]
47783
47908
  },
@@ -47799,6 +47924,7 @@ var STATE_SUMMARY_SECTION_VARS = [
47799
47924
  example: "server 1.2.377 → 1.2.378",
47800
47925
  kinds: [
47801
47926
  "server-update-available",
47927
+ "node-updating",
47802
47928
  "server-updated",
47803
47929
  "wrapper-update-available"
47804
47930
  ]
@@ -47831,7 +47957,7 @@ var STATE_SUMMARY_VARS = [
47831
47957
  {
47832
47958
  name: "summarySection",
47833
47959
  label: "Summary: this section",
47834
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
47960
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
47835
47961
  example: "Batterie scariche",
47836
47962
  group: "system",
47837
47963
  families: ["rule"],
@@ -48458,7 +48584,7 @@ var AgentUIAddon = class extends BaseAddon {
48458
48584
  capability: adminUiCapability,
48459
48585
  provider: {
48460
48586
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
48461
- getVersion: async () => ({ version: "1.2.175" })
48587
+ getVersion: async () => ({ version: "1.2.177" })
48462
48588
  }
48463
48589
  }];
48464
48590
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.2.175",
3
+ "version": "1.2.177",
4
4
  "description": "Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",