@camstack/addon-export-google 0.1.84 → 0.1.86

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.
@@ -10678,6 +10678,15 @@ var ClipSearchStrictnessSchema = _enum([
10678
10678
  "balanced",
10679
10679
  "strict"
10680
10680
  ]);
10681
+ /** Steps whose effect a root label can BE. */
10682
+ var LABEL_SUPPLY_STEP_IDS = [
10683
+ "animal-classifier",
10684
+ "vehicle-classifier",
10685
+ "package-detection"
10686
+ ];
10687
+ /** Steps whose box a root detection can BE. */
10688
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10689
+ [...LABEL_SUPPLY_STEP_IDS, ...CROP_SUPPLY_STEP_IDS];
10681
10690
  var MODEL_FORMATS = [
10682
10691
  "onnx",
10683
10692
  "coreml",
@@ -10810,6 +10819,35 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10810
10819
  /** True when the weights or their data forbid commercial use. */
10811
10820
  nonCommercial: boolean().optional()
10812
10821
  }));
10822
+ /**
10823
+ * One step a ROOT detector can supply from its own output (D730) — see
10824
+ * `ModelCatalogEntry.suppliesSteps`.
10825
+ *
10826
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
10827
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
10828
+ * the root cannot produce (shown as unavailable, never a blocker).
10829
+ * - `crop`: the root draws the box the step would have found (`license_plate`
10830
+ * for plate-detection, `face` for face-detection). The box becomes a detail
10831
+ * child of the `parentMacro` detection that contains it — never a track.
10832
+ */
10833
+ var RootStepSupplySchema = discriminatedUnion("kind", [object({
10834
+ kind: literal("label"),
10835
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10836
+ labelToEffect: record(string(), string()),
10837
+ uncovered: array(string()).readonly()
10838
+ }), object({
10839
+ kind: literal("crop"),
10840
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10841
+ rootLabels: array(string()).readonly(),
10842
+ parentMacro: _enum(["vehicle", "person"]),
10843
+ childClass: _enum(["plate", "face"]),
10844
+ /**
10845
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10846
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10847
+ * stored by an import.
10848
+ */
10849
+ rootInputPx: number().int().positive().optional()
10850
+ })]);
10813
10851
  var ModelCatalogEntrySchema = object({
10814
10852
  id: string(),
10815
10853
  name: string(),
@@ -10936,6 +10974,16 @@ var ModelCatalogEntrySchema = object({
10936
10974
  */
10937
10975
  classMap: DetectionCatalogClassMapSchema.optional(),
10938
10976
  /**
10977
+ * The pipeline steps this ROOT detector can supply from its own output
10978
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
10979
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
10980
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
10981
+ * by hand and never assumed per family; a row without it is derived on read
10982
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
10983
+ * `useRootModel` flag (`resolveRootSupply`).
10984
+ */
10985
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
10986
+ /**
10939
10987
  * The model's CLIP feature-space contract (text encoder, dimension, vector
10940
10988
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
10941
10989
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -18709,6 +18757,8 @@ var NcSystemEventKindSchema = _enum([
18709
18757
  "stream-offline",
18710
18758
  "node-online",
18711
18759
  "node-offline",
18760
+ "node-restarting",
18761
+ "node-updating",
18712
18762
  "node-inference-unavailable",
18713
18763
  "detection-blind",
18714
18764
  "addon-crash-loop",
@@ -23242,6 +23292,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23242
23292
  timestamp: number()
23243
23293
  });
23244
23294
  /**
23295
+ * A root model's boxes standing in for one crop-kind step's own inference
23296
+ * (D730) — see `runPipeline.suppliedRoot`.
23297
+ */
23298
+ var SuppliedRootOutputSchema = object({
23299
+ stepId: string(),
23300
+ /** The root model that drew the boxes — stamped on the result. */
23301
+ modelId: string(),
23302
+ detections: array(object({
23303
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
23304
+ bbox: tuple([
23305
+ number(),
23306
+ number(),
23307
+ number(),
23308
+ number()
23309
+ ]),
23310
+ score: number(),
23311
+ /**
23312
+ * Five facial landmarks in the same pixels — a face the step's own
23313
+ * detector already re-found inside a root face box (D730), so its
23314
+ * embedder child aligns it exactly as it aligns any detected face.
23315
+ */
23316
+ landmarks: array(object({
23317
+ x: number(),
23318
+ y: number()
23319
+ })).optional()
23320
+ })).min(1)
23321
+ });
23322
+ /**
23245
23323
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
23246
23324
  * within the frame, so the executor can re-cut a leaf child ROI at native
23247
23325
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23371,7 +23449,8 @@ var PipelineModelOptionSchema = object({
23371
23449
  group: ModelVariantGroupSchema.optional(),
23372
23450
  legacy: boolean().optional(),
23373
23451
  provider: ModelProviderIdSchema.optional(),
23374
- defaultConfidence: number().optional()
23452
+ defaultConfidence: number().optional(),
23453
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23375
23454
  });
23376
23455
  var ConfigFieldBridge = custom();
23377
23456
  var PipelineAddonSchemaSchema = object({
@@ -23639,7 +23718,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23639
23718
  * `device-not-servable`), and nothing reaches the camera's live
23640
23719
  * trace stream. Absent ⇒ unchanged behaviour.
23641
23720
  */
23642
- replay: literal(true).optional()
23721
+ replay: literal(true).optional(),
23722
+ /**
23723
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
23724
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
23725
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
23726
+ * NOT inferred, these boxes are its output, and its children (the plate
23727
+ * reader) run on them through their own crop policy. Boxes are in the
23728
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
23729
+ */
23730
+ suppliedRoot: SuppliedRootOutputSchema.optional()
23643
23731
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
23644
23732
  steps: array(PipelineStepInputSchema).min(1),
23645
23733
  frames: array(FrameInputSchema).min(1).max(255),
@@ -24741,7 +24829,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
24741
24829
  */
24742
24830
  cropJpeg: string().optional(),
24743
24831
  parent: DetailParentSchema,
24744
- steps: array(string()).optional()
24832
+ steps: array(string()).optional(),
24833
+ /**
24834
+ * The camera's root model already drew this step's boxes (D730): a
24835
+ * `license_plate` inside the parent vehicle. The named step is NOT
24836
+ * inferred — these FRAME-space boxes are its output — and its
24837
+ * requested children (the plate reader) run on them. Absent ⇒ every
24838
+ * requested step infers as before.
24839
+ */
24840
+ supplied: object({
24841
+ stepId: string(),
24842
+ modelId: string(),
24843
+ boxes: array(object({
24844
+ bbox: NativeCropBboxSchema,
24845
+ score: number()
24846
+ })).min(1)
24847
+ }).optional()
24745
24848
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
24746
24849
  /** Catalog step id, e.g. `clip-embedding`. */
24747
24850
  stepId: string(),
@@ -30831,6 +30934,27 @@ var ViewerEndpointsSchema = object({
30831
30934
  /** What the ranking currently resolves to (may be empty if nothing is up). */
30832
30935
  resolved: array(string()).readonly()
30833
30936
  });
30937
+ /**
30938
+ * One audience's hub address (see `hub-address.ts`): the operator's stored
30939
+ * override, the address in use, and where it came from.
30940
+ */
30941
+ var HubAddressSnapshotSchema = object({
30942
+ /** The operator's override, or null for automatic. */
30943
+ override: string().nullable(),
30944
+ /** The address in use, or null when nothing qualifies (never loopback). */
30945
+ resolved: string().nullable(),
30946
+ source: _enum([
30947
+ "override",
30948
+ "auto",
30949
+ "none"
30950
+ ])
30951
+ });
30952
+ var HubAddressesSchema = object({
30953
+ /** "Hub address for agents" — agents' bundle/model pulls, LAN devices. */
30954
+ cluster: HubAddressSnapshotSchema,
30955
+ /** "Public address for sign-in links" — e-mail links, OIDC, WebAuthn, OAuth2. */
30956
+ browser: HubAddressSnapshotSchema
30957
+ });
30834
30958
  var AllowedAddressesSchema = object({
30835
30959
  /**
30836
30960
  * Allowlist of interface addresses operators have explicitly opted
@@ -30877,7 +31001,13 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
30877
31001
  * an address notification links can be flagged with, not a hub
30878
31002
  * route. Default `false`: racers and rankers never see it. */
30879
31003
  includeAppLink: boolean().optional()
30880
- }), 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, {
31004
+ }), 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({
31005
+ audience: _enum(["cluster", "browser"]),
31006
+ baseUrl: string().nullable()
31007
+ }), HubAddressesSchema, {
31008
+ kind: "mutation",
31009
+ auth: "admin"
31010
+ }), 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, {
30881
31011
  kind: "mutation",
30882
31012
  auth: "admin"
30883
31013
  }), method(object({
@@ -31267,7 +31397,8 @@ object({
31267
31397
  * writes this slice (not even a boot seed), and neither does the runner's
31268
31398
  * phase machine: its phase is "a session is attached" for every on-motion
31269
31399
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
31270
- * A provider's `isDetected` answers from the hub's slice.
31400
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
31401
+ * (`hubMotionNativeProvider`).
31271
31402
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
31272
31403
  * imports) — the provider pushes both edges itself, from the upstream
31273
31404
  * system's own state change. That is the sensor's own fact.
@@ -39351,6 +39482,12 @@ Object.freeze({
39351
39482
  addonId: null,
39352
39483
  access: "view"
39353
39484
  },
39485
+ "localNetwork.getHubAddresses": {
39486
+ capName: "local-network",
39487
+ capScope: "system",
39488
+ addonId: null,
39489
+ access: "view"
39490
+ },
39354
39491
  "localNetwork.getNotificationEndpoint": {
39355
39492
  capName: "local-network",
39356
39493
  capScope: "system",
@@ -39405,6 +39542,12 @@ Object.freeze({
39405
39542
  addonId: null,
39406
39543
  access: "create"
39407
39544
  },
39545
+ "localNetwork.setHubAddress": {
39546
+ capName: "local-network",
39547
+ capScope: "system",
39548
+ addonId: null,
39549
+ access: "create"
39550
+ },
39408
39551
  "localNetwork.setNotificationEndpoint": {
39409
39552
  capName: "local-network",
39410
39553
  capScope: "system",
@@ -47804,6 +47947,8 @@ new Map(Object.entries({
47804
47947
  "detection-blind": "device-events",
47805
47948
  "node-online": "system",
47806
47949
  "node-offline": "system",
47950
+ "node-restarting": "system",
47951
+ "node-updating": "system",
47807
47952
  "node-inference-unavailable": "system",
47808
47953
  "addon-crash-loop": "system",
47809
47954
  "addon-update-available": "system",
@@ -47881,6 +48026,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
47881
48026
  kinds: [
47882
48027
  "node-offline",
47883
48028
  "node-online",
48029
+ "node-restarting",
47884
48030
  "node-inference-unavailable"
47885
48031
  ]
47886
48032
  },
@@ -47902,6 +48048,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
47902
48048
  label: "Server & container updates",
47903
48049
  kinds: [
47904
48050
  "server-update-available",
48051
+ "node-updating",
47905
48052
  "server-updated",
47906
48053
  "wrapper-update-available"
47907
48054
  ]
@@ -48049,6 +48196,7 @@ var STATE_SUMMARY_SECTION_VARS = [
48049
48196
  kinds: [
48050
48197
  "node-offline",
48051
48198
  "node-online",
48199
+ "node-restarting",
48052
48200
  "node-inference-unavailable"
48053
48201
  ]
48054
48202
  },
@@ -48070,6 +48218,7 @@ var STATE_SUMMARY_SECTION_VARS = [
48070
48218
  example: "server 1.2.377 → 1.2.378",
48071
48219
  kinds: [
48072
48220
  "server-update-available",
48221
+ "node-updating",
48073
48222
  "server-updated",
48074
48223
  "wrapper-update-available"
48075
48224
  ]
@@ -48102,7 +48251,7 @@ var STATE_SUMMARY_VARS = [
48102
48251
  {
48103
48252
  name: "summarySection",
48104
48253
  label: "Summary: this section",
48105
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
48254
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
48106
48255
  example: "Batterie scariche",
48107
48256
  group: "system",
48108
48257
  families: ["rule"],
@@ -49530,13 +49679,12 @@ function buildGoogleOauthIntegration() {
49530
49679
  * cross-process through `ctx.api` — unlike the `addons` core router, which a
49531
49680
  * forked addon calling `ctx.api.addons.*` would wait on forever.
49532
49681
  *
49533
- * **Not** `CAMSTACK_HUB_PUBLIC_URL`. That variable answers a different
49534
- * question: which origin the hub should mint its OWN media / model-distribution
49535
- * links on, and it defaults to `https://127.0.0.1:4443`. It is routinely a
49536
- * loopback or LAN address, and the backend's `publicHubUrl()` fallback is
49537
- * localhost in dev. Google calls from its own cloud, so a LAN answer here is
49538
- * worse than no answer — it produces three console URLs that look complete and
49539
- * can never be reached.
49682
+ * **Not** the hub's own address from `local-network` (`pickHubBaseUrl`). That
49683
+ * answers a different question — which address an agent or a browser on the
49684
+ * LAN reaches — and it is routinely a LAN address; the backend's
49685
+ * `publicHubUrl()` fallback is localhost in dev. Google calls from its own
49686
+ * cloud, so a LAN answer here is worse than no answer — it produces three
49687
+ * console URLs that look complete and can never be reached.
49540
49688
  *
49541
49689
  * ## Why this is a second copy of Alexa's mechanism
49542
49690
  *
@@ -10674,6 +10674,15 @@ var ClipSearchStrictnessSchema = _enum([
10674
10674
  "balanced",
10675
10675
  "strict"
10676
10676
  ]);
10677
+ /** Steps whose effect a root label can BE. */
10678
+ var LABEL_SUPPLY_STEP_IDS = [
10679
+ "animal-classifier",
10680
+ "vehicle-classifier",
10681
+ "package-detection"
10682
+ ];
10683
+ /** Steps whose box a root detection can BE. */
10684
+ var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
10685
+ [...LABEL_SUPPLY_STEP_IDS, ...CROP_SUPPLY_STEP_IDS];
10677
10686
  var MODEL_FORMATS = [
10678
10687
  "onnx",
10679
10688
  "coreml",
@@ -10806,6 +10815,35 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
10806
10815
  /** True when the weights or their data forbid commercial use. */
10807
10816
  nonCommercial: boolean().optional()
10808
10817
  }));
10818
+ /**
10819
+ * One step a ROOT detector can supply from its own output (D730) — see
10820
+ * `ModelCatalogEntry.suppliesSteps`.
10821
+ *
10822
+ * - `label`: the root's raw class IS the step's answer. `labelToEffect` maps
10823
+ * the root's label to the step's vocabulary; `uncovered` is the vocabulary
10824
+ * the root cannot produce (shown as unavailable, never a blocker).
10825
+ * - `crop`: the root draws the box the step would have found (`license_plate`
10826
+ * for plate-detection, `face` for face-detection). The box becomes a detail
10827
+ * child of the `parentMacro` detection that contains it — never a track.
10828
+ */
10829
+ var RootStepSupplySchema = discriminatedUnion("kind", [object({
10830
+ kind: literal("label"),
10831
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
10832
+ labelToEffect: record(string(), string()),
10833
+ uncovered: array(string()).readonly()
10834
+ }), object({
10835
+ kind: literal("crop"),
10836
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
10837
+ rootLabels: array(string()).readonly(),
10838
+ parentMacro: _enum(["vehicle", "person"]),
10839
+ childClass: _enum(["plate", "face"]),
10840
+ /**
10841
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
10842
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
10843
+ * stored by an import.
10844
+ */
10845
+ rootInputPx: number().int().positive().optional()
10846
+ })]);
10809
10847
  var ModelCatalogEntrySchema = object({
10810
10848
  id: string(),
10811
10849
  name: string(),
@@ -10932,6 +10970,16 @@ var ModelCatalogEntrySchema = object({
10932
10970
  */
10933
10971
  classMap: DetectionCatalogClassMapSchema.optional(),
10934
10972
  /**
10973
+ * The pipeline steps this ROOT detector can supply from its own output
10974
+ * (D730): its labels name a step's effect (`deer` for `animal-classifier`)
10975
+ * or draw a step's box (`license_plate` for `plate-detection`). Computed at
10976
+ * import from THIS model's labelmap by `deriveRootSupplies`, never written
10977
+ * by hand and never assumed per family; a row without it is derived on read
10978
+ * (`rootSuppliesOf`). Whether a camera uses it is the step's own
10979
+ * `useRootModel` flag (`resolveRootSupply`).
10980
+ */
10981
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional(),
10982
+ /**
10935
10983
  * The model's CLIP feature-space contract (text encoder, dimension, vector
10936
10984
  * index, token window, search floor) — see `clip-model.ts`. Present ONLY on a
10937
10985
  * CLIP image encoder; its absence is what "not a CLIP model" means to the
@@ -18705,6 +18753,8 @@ var NcSystemEventKindSchema = _enum([
18705
18753
  "stream-offline",
18706
18754
  "node-online",
18707
18755
  "node-offline",
18756
+ "node-restarting",
18757
+ "node-updating",
18708
18758
  "node-inference-unavailable",
18709
18759
  "detection-blind",
18710
18760
  "addon-crash-loop",
@@ -23238,6 +23288,34 @@ DeviceType.Camera, method(object({ deviceId: number() }), array(TrackSchema).rea
23238
23288
  timestamp: number()
23239
23289
  });
23240
23290
  /**
23291
+ * A root model's boxes standing in for one crop-kind step's own inference
23292
+ * (D730) — see `runPipeline.suppliedRoot`.
23293
+ */
23294
+ var SuppliedRootOutputSchema = object({
23295
+ stepId: string(),
23296
+ /** The root model that drew the boxes — stamped on the result. */
23297
+ modelId: string(),
23298
+ detections: array(object({
23299
+ /** `[x1, y1, x2, y2]` in the pixels of the call's image. */
23300
+ bbox: tuple([
23301
+ number(),
23302
+ number(),
23303
+ number(),
23304
+ number()
23305
+ ]),
23306
+ score: number(),
23307
+ /**
23308
+ * Five facial landmarks in the same pixels — a face the step's own
23309
+ * detector already re-found inside a root face box (D730), so its
23310
+ * embedder child aligns it exactly as it aligns any detected face.
23311
+ */
23312
+ landmarks: array(object({
23313
+ x: number(),
23314
+ y: number()
23315
+ })).optional()
23316
+ })).min(1)
23317
+ });
23318
+ /**
23241
23319
  * Reference to the frame's retained NATIVE surface + the parent crop's placement
23242
23320
  * within the frame, so the executor can re-cut a leaf child ROI at native
23243
23321
  * resolution on the detail plane. See the `runPipeline` `nativeCropRef` field.
@@ -23367,7 +23445,8 @@ var PipelineModelOptionSchema = object({
23367
23445
  group: ModelVariantGroupSchema.optional(),
23368
23446
  legacy: boolean().optional(),
23369
23447
  provider: ModelProviderIdSchema.optional(),
23370
- defaultConfidence: number().optional()
23448
+ defaultConfidence: number().optional(),
23449
+ suppliesSteps: array(RootStepSupplySchema).readonly().optional()
23371
23450
  });
23372
23451
  var ConfigFieldBridge = custom();
23373
23452
  var PipelineAddonSchemaSchema = object({
@@ -23635,7 +23714,16 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
23635
23714
  * `device-not-servable`), and nothing reaches the camera's live
23636
23715
  * trace stream. Absent ⇒ unchanged behaviour.
23637
23716
  */
23638
- replay: literal(true).optional()
23717
+ replay: literal(true).optional(),
23718
+ /**
23719
+ * Root-supplied detections for the tree's ROOT step (D730). Set by
23720
+ * `runDetailSubtree` when the camera's root model supplies a crop-kind
23721
+ * step (a Frigate+ `license_plate` for `plate-detection`): the step is
23722
+ * NOT inferred, these boxes are its output, and its children (the plate
23723
+ * reader) run on them through their own crop policy. Boxes are in the
23724
+ * PIXELS of the image this call carries. Absent ⇒ the root step runs.
23725
+ */
23726
+ suppliedRoot: SuppliedRootOutputSchema.optional()
23639
23727
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
23640
23728
  steps: array(PipelineStepInputSchema).min(1),
23641
23729
  frames: array(FrameInputSchema).min(1).max(255),
@@ -24737,7 +24825,22 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
24737
24825
  */
24738
24826
  cropJpeg: string().optional(),
24739
24827
  parent: DetailParentSchema,
24740
- steps: array(string()).optional()
24828
+ steps: array(string()).optional(),
24829
+ /**
24830
+ * The camera's root model already drew this step's boxes (D730): a
24831
+ * `license_plate` inside the parent vehicle. The named step is NOT
24832
+ * inferred — these FRAME-space boxes are its output — and its
24833
+ * requested children (the plate reader) run on them. Absent ⇒ every
24834
+ * requested step infers as before.
24835
+ */
24836
+ supplied: object({
24837
+ stepId: string(),
24838
+ modelId: string(),
24839
+ boxes: array(object({
24840
+ bbox: NativeCropBboxSchema,
24841
+ score: number()
24842
+ })).min(1)
24843
+ }).optional()
24741
24844
  }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" }), method(object({
24742
24845
  /** Catalog step id, e.g. `clip-embedding`. */
24743
24846
  stepId: string(),
@@ -30827,6 +30930,27 @@ var ViewerEndpointsSchema = object({
30827
30930
  /** What the ranking currently resolves to (may be empty if nothing is up). */
30828
30931
  resolved: array(string()).readonly()
30829
30932
  });
30933
+ /**
30934
+ * One audience's hub address (see `hub-address.ts`): the operator's stored
30935
+ * override, the address in use, and where it came from.
30936
+ */
30937
+ var HubAddressSnapshotSchema = object({
30938
+ /** The operator's override, or null for automatic. */
30939
+ override: string().nullable(),
30940
+ /** The address in use, or null when nothing qualifies (never loopback). */
30941
+ resolved: string().nullable(),
30942
+ source: _enum([
30943
+ "override",
30944
+ "auto",
30945
+ "none"
30946
+ ])
30947
+ });
30948
+ var HubAddressesSchema = object({
30949
+ /** "Hub address for agents" — agents' bundle/model pulls, LAN devices. */
30950
+ cluster: HubAddressSnapshotSchema,
30951
+ /** "Public address for sign-in links" — e-mail links, OIDC, WebAuthn, OAuth2. */
30952
+ browser: HubAddressSnapshotSchema
30953
+ });
30830
30954
  var AllowedAddressesSchema = object({
30831
30955
  /**
30832
30956
  * Allowlist of interface addresses operators have explicitly opted
@@ -30873,7 +30997,13 @@ method(_void(), ListResultSchema), method(_void(), PreferredSchema), method(obje
30873
30997
  * an address notification links can be flagged with, not a hub
30874
30998
  * route. Default `false`: racers and rankers never see it. */
30875
30999
  includeAppLink: boolean().optional()
30876
- }), 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, {
31000
+ }), 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({
31001
+ audience: _enum(["cluster", "browser"]),
31002
+ baseUrl: string().nullable()
31003
+ }), HubAddressesSchema, {
31004
+ kind: "mutation",
31005
+ auth: "admin"
31006
+ }), 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, {
30877
31007
  kind: "mutation",
30878
31008
  auth: "admin"
30879
31009
  }), method(object({
@@ -31263,7 +31393,8 @@ object({
31263
31393
  * writes this slice (not even a boot seed), and neither does the runner's
31264
31394
  * phase machine: its phase is "a session is attached" for every on-motion
31265
31395
  * session, not motion, and it now has its own `DetectionPhaseTransition`.
31266
- * A provider's `isDetected` answers from the hub's slice.
31396
+ * A provider's `isDetected` and `getStatus` answer from the hub's slice
31397
+ * (`hubMotionNativeProvider`).
31267
31398
  * - **Sensors** (Home Assistant binary sensors, Homematic, Matter, Alexa
31268
31399
  * imports) — the provider pushes both edges itself, from the upstream
31269
31400
  * system's own state change. That is the sensor's own fact.
@@ -39347,6 +39478,12 @@ Object.freeze({
39347
39478
  addonId: null,
39348
39479
  access: "view"
39349
39480
  },
39481
+ "localNetwork.getHubAddresses": {
39482
+ capName: "local-network",
39483
+ capScope: "system",
39484
+ addonId: null,
39485
+ access: "view"
39486
+ },
39350
39487
  "localNetwork.getNotificationEndpoint": {
39351
39488
  capName: "local-network",
39352
39489
  capScope: "system",
@@ -39401,6 +39538,12 @@ Object.freeze({
39401
39538
  addonId: null,
39402
39539
  access: "create"
39403
39540
  },
39541
+ "localNetwork.setHubAddress": {
39542
+ capName: "local-network",
39543
+ capScope: "system",
39544
+ addonId: null,
39545
+ access: "create"
39546
+ },
39404
39547
  "localNetwork.setNotificationEndpoint": {
39405
39548
  capName: "local-network",
39406
39549
  capScope: "system",
@@ -47800,6 +47943,8 @@ new Map(Object.entries({
47800
47943
  "detection-blind": "device-events",
47801
47944
  "node-online": "system",
47802
47945
  "node-offline": "system",
47946
+ "node-restarting": "system",
47947
+ "node-updating": "system",
47803
47948
  "node-inference-unavailable": "system",
47804
47949
  "addon-crash-loop": "system",
47805
47950
  "addon-update-available": "system",
@@ -47877,6 +48022,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
47877
48022
  kinds: [
47878
48023
  "node-offline",
47879
48024
  "node-online",
48025
+ "node-restarting",
47880
48026
  "node-inference-unavailable"
47881
48027
  ]
47882
48028
  },
@@ -47898,6 +48044,7 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
47898
48044
  label: "Server & container updates",
47899
48045
  kinds: [
47900
48046
  "server-update-available",
48047
+ "node-updating",
47901
48048
  "server-updated",
47902
48049
  "wrapper-update-available"
47903
48050
  ]
@@ -48045,6 +48192,7 @@ var STATE_SUMMARY_SECTION_VARS = [
48045
48192
  kinds: [
48046
48193
  "node-offline",
48047
48194
  "node-online",
48195
+ "node-restarting",
48048
48196
  "node-inference-unavailable"
48049
48197
  ]
48050
48198
  },
@@ -48066,6 +48214,7 @@ var STATE_SUMMARY_SECTION_VARS = [
48066
48214
  example: "server 1.2.377 → 1.2.378",
48067
48215
  kinds: [
48068
48216
  "server-update-available",
48217
+ "node-updating",
48069
48218
  "server-updated",
48070
48219
  "wrapper-update-available"
48071
48220
  ]
@@ -48098,7 +48247,7 @@ var STATE_SUMMARY_VARS = [
48098
48247
  {
48099
48248
  name: "summarySection",
48100
48249
  label: "Summary: this section",
48101
- description: "The section a per-section summary row is about (D698); on a summary sent as one message, every section it reports, comma-separated.",
48250
+ description: "The section a per-section summary row is about; on a summary sent as one message, every section it reports, comma-separated.",
48102
48251
  example: "Batterie scariche",
48103
48252
  group: "system",
48104
48253
  families: ["rule"],
@@ -49526,13 +49675,12 @@ function buildGoogleOauthIntegration() {
49526
49675
  * cross-process through `ctx.api` — unlike the `addons` core router, which a
49527
49676
  * forked addon calling `ctx.api.addons.*` would wait on forever.
49528
49677
  *
49529
- * **Not** `CAMSTACK_HUB_PUBLIC_URL`. That variable answers a different
49530
- * question: which origin the hub should mint its OWN media / model-distribution
49531
- * links on, and it defaults to `https://127.0.0.1:4443`. It is routinely a
49532
- * loopback or LAN address, and the backend's `publicHubUrl()` fallback is
49533
- * localhost in dev. Google calls from its own cloud, so a LAN answer here is
49534
- * worse than no answer — it produces three console URLs that look complete and
49535
- * can never be reached.
49678
+ * **Not** the hub's own address from `local-network` (`pickHubBaseUrl`). That
49679
+ * answers a different question — which address an agent or a browser on the
49680
+ * LAN reaches — and it is routinely a LAN address; the backend's
49681
+ * `publicHubUrl()` fallback is localhost in dev. Google calls from its own
49682
+ * cloud, so a LAN answer here is worse than no answer — it produces three
49683
+ * console URLs that look complete and can never be reached.
49536
49684
  *
49537
49685
  * ## Why this is a second copy of Alexa's mechanism
49538
49686
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-google",
3
- "version": "0.1.84",
3
+ "version": "0.1.86",
4
4
  "description": "Google Home export — hub-side smart-home fulfillment (SYNC / QUERY / EXECUTE / DISCONNECT) for the non-camera fleet, served over the hub's own OAuth account link. No Google credential is stored, sent or required.",
5
5
  "keywords": [
6
6
  "camstack",
@@ -27,7 +27,7 @@
27
27
  "id": "export-google",
28
28
  "category": "exports",
29
29
  "name": "Google Home export",
30
- "description": "Publishes switches, dimmable lights, locks and covers to Google Home / Google Assistant. The hub answers Google's smart-home fulfillment directly (SYNC / QUERY / EXECUTE / DISCONNECT) and account-links through the hub's own OAuth server — no cloud function and no Google credential. Cameras and proactive Report State are deliberately out of scope (D268, D269).",
30
+ "description": "Publishes switches, dimmable lights, locks and covers to Google Home / Google Assistant. The hub answers Google's smart-home fulfillment directly (SYNC / QUERY / EXECUTE / DISCONNECT) and account-links through the hub's own OAuth server — no cloud function and no Google credential. Cameras and proactive Report State are deliberately out of scope.",
31
31
  "entry": "./dist/index.js",
32
32
  "execution": {
33
33
  "placement": "hub-only"