@camstack/addon-export-ha-mqtt 1.1.20 → 1.1.21

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.
@@ -4679,7 +4679,7 @@ function number(params) {
4679
4679
  return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
4680
4680
  }
4681
4681
  //#endregion
4682
- //#region ../types/dist/sleep-BC9Yqte7.mjs
4682
+ //#region ../types/dist/sleep-Baang_XW.mjs
4683
4683
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4684
4684
  EventCategory["SystemBoot"] = "system.boot";
4685
4685
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -10715,7 +10715,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10715
10715
  image: _instanceof(Uint8Array).optional(),
10716
10716
  referenceImage: string().optional(),
10717
10717
  deviceId: number$1().optional(),
10718
- sessionId: string().optional()
10718
+ sessionId: string().optional(),
10719
+ /**
10720
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
10721
+ * reference-image, and detail-subtree calls. 'frame' is the live
10722
+ * per-frame dispatch: ONLY root-plane steps run; crop children
10723
+ * (inputClasses ≠ null) are skipped and served per-track via
10724
+ * pipelineRunner.runDetailSubtree (two-plane design).
10725
+ */
10726
+ plane: _enum(["full", "frame"]).optional()
10719
10727
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
10720
10728
  engine: PipelineEngineChoiceSchema.optional(),
10721
10729
  steps: array(PipelineStepInputSchema).min(1),
@@ -10858,6 +10866,28 @@ var NativeCropResultSchema = object({
10858
10866
  width: number$1().int().positive(),
10859
10867
  height: number$1().int().positive()
10860
10868
  });
10869
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
10870
+ * originating detection, in FRAME-space coordinates. Reuses
10871
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
10872
+ * the coordinates are frame-space rather than getNativeCrop's
10873
+ * normalized [0,1] convention). */
10874
+ var DetailParentSchema = object({
10875
+ bbox: NativeCropBboxSchema,
10876
+ className: string()
10877
+ });
10878
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
10879
+ * or refined detection produced by running the crop-subtree on a
10880
+ * single tracked detection. */
10881
+ var DetailResultSchema = object({
10882
+ stepId: string(),
10883
+ className: string(),
10884
+ score: number$1(),
10885
+ /** FRAME-space bbox (already mapped back from crop space). */
10886
+ bbox: NativeCropBboxSchema.optional(),
10887
+ embedding: string().optional(),
10888
+ label: string().optional(),
10889
+ alignedCropJpeg: string().optional()
10890
+ });
10861
10891
  /**
10862
10892
  * Per-camera tunable ranges + defaults. Single source of truth used
10863
10893
  * by both the Zod data schema (validation + default fallback) and
@@ -11118,7 +11148,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
11118
11148
  handle: FrameHandleSchema,
11119
11149
  bbox: NativeCropBboxSchema,
11120
11150
  maxWidth: number$1().int().positive().optional()
11121
- }), NativeCropResultSchema.nullable());
11151
+ }), NativeCropResultSchema.nullable()), method(object({
11152
+ deviceId: number$1(),
11153
+ frameHandle: FrameHandleSchema.optional(),
11154
+ cropJpeg: string().optional(),
11155
+ parent: DetailParentSchema,
11156
+ steps: array(string()).optional()
11157
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
11122
11158
  object({
11123
11159
  detected: boolean(),
11124
11160
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -21960,6 +21996,12 @@ Object.freeze({
21960
21996
  addonId: null,
21961
21997
  access: "create"
21962
21998
  },
21999
+ "pipelineRunner.runDetailSubtree": {
22000
+ capName: "pipeline-runner",
22001
+ capScope: "system",
22002
+ addonId: null,
22003
+ access: "create"
22004
+ },
21963
22005
  "plateGallery.correctPlateText": {
21964
22006
  capName: "plate-gallery",
21965
22007
  capScope: "system",
@@ -4677,7 +4677,7 @@ function number(params) {
4677
4677
  return /* @__PURE__ */ _coercedNumber(ZodNumber, params);
4678
4678
  }
4679
4679
  //#endregion
4680
- //#region ../types/dist/sleep-BC9Yqte7.mjs
4680
+ //#region ../types/dist/sleep-Baang_XW.mjs
4681
4681
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4682
4682
  EventCategory["SystemBoot"] = "system.boot";
4683
4683
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -10713,7 +10713,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10713
10713
  image: _instanceof(Uint8Array).optional(),
10714
10714
  referenceImage: string().optional(),
10715
10715
  deviceId: number$1().optional(),
10716
- sessionId: string().optional()
10716
+ sessionId: string().optional(),
10717
+ /**
10718
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
10719
+ * reference-image, and detail-subtree calls. 'frame' is the live
10720
+ * per-frame dispatch: ONLY root-plane steps run; crop children
10721
+ * (inputClasses ≠ null) are skipped and served per-track via
10722
+ * pipelineRunner.runDetailSubtree (two-plane design).
10723
+ */
10724
+ plane: _enum(["full", "frame"]).optional()
10717
10725
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
10718
10726
  engine: PipelineEngineChoiceSchema.optional(),
10719
10727
  steps: array(PipelineStepInputSchema).min(1),
@@ -10856,6 +10864,28 @@ var NativeCropResultSchema = object({
10856
10864
  width: number$1().int().positive(),
10857
10865
  height: number$1().int().positive()
10858
10866
  });
10867
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
10868
+ * originating detection, in FRAME-space coordinates. Reuses
10869
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
10870
+ * the coordinates are frame-space rather than getNativeCrop's
10871
+ * normalized [0,1] convention). */
10872
+ var DetailParentSchema = object({
10873
+ bbox: NativeCropBboxSchema,
10874
+ className: string()
10875
+ });
10876
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
10877
+ * or refined detection produced by running the crop-subtree on a
10878
+ * single tracked detection. */
10879
+ var DetailResultSchema = object({
10880
+ stepId: string(),
10881
+ className: string(),
10882
+ score: number$1(),
10883
+ /** FRAME-space bbox (already mapped back from crop space). */
10884
+ bbox: NativeCropBboxSchema.optional(),
10885
+ embedding: string().optional(),
10886
+ label: string().optional(),
10887
+ alignedCropJpeg: string().optional()
10888
+ });
10859
10889
  /**
10860
10890
  * Per-camera tunable ranges + defaults. Single source of truth used
10861
10891
  * by both the Zod data schema (validation + default fallback) and
@@ -11116,7 +11146,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
11116
11146
  handle: FrameHandleSchema,
11117
11147
  bbox: NativeCropBboxSchema,
11118
11148
  maxWidth: number$1().int().positive().optional()
11119
- }), NativeCropResultSchema.nullable());
11149
+ }), NativeCropResultSchema.nullable()), method(object({
11150
+ deviceId: number$1(),
11151
+ frameHandle: FrameHandleSchema.optional(),
11152
+ cropJpeg: string().optional(),
11153
+ parent: DetailParentSchema,
11154
+ steps: array(string()).optional()
11155
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
11120
11156
  object({
11121
11157
  detected: boolean(),
11122
11158
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -21958,6 +21994,12 @@ Object.freeze({
21958
21994
  addonId: null,
21959
21995
  access: "create"
21960
21996
  },
21997
+ "pipelineRunner.runDetailSubtree": {
21998
+ capName: "pipeline-runner",
21999
+ capScope: "system",
22000
+ addonId: null,
22001
+ access: "create"
22002
+ },
21961
22003
  "plateGallery.correctPlateText": {
21962
22004
  capName: "plate-gallery",
21963
22005
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-ha-mqtt",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
4
4
  "description": "HomeAssistant MQTT discovery exporter for CamStack devices. Publishes discovery topics so HA auto-creates entities for exposed cameras/switches/intercoms/sensors.",
5
5
  "keywords": [
6
6
  "camstack",