@camstack/addon-export-hap 1.1.21 → 1.1.22

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.
@@ -4664,7 +4664,7 @@ function _instanceof(cls, params = {}) {
4664
4664
  return inst;
4665
4665
  }
4666
4666
  //#endregion
4667
- //#region ../types/dist/sleep-BC9Yqte7.mjs
4667
+ //#region ../types/dist/sleep-Baang_XW.mjs
4668
4668
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4669
4669
  EventCategory["SystemBoot"] = "system.boot";
4670
4670
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -10754,7 +10754,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10754
10754
  image: _instanceof(Uint8Array).optional(),
10755
10755
  referenceImage: string().optional(),
10756
10756
  deviceId: number().optional(),
10757
- sessionId: string().optional()
10757
+ sessionId: string().optional(),
10758
+ /**
10759
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
10760
+ * reference-image, and detail-subtree calls. 'frame' is the live
10761
+ * per-frame dispatch: ONLY root-plane steps run; crop children
10762
+ * (inputClasses ≠ null) are skipped and served per-track via
10763
+ * pipelineRunner.runDetailSubtree (two-plane design).
10764
+ */
10765
+ plane: _enum(["full", "frame"]).optional()
10758
10766
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
10759
10767
  engine: PipelineEngineChoiceSchema.optional(),
10760
10768
  steps: array(PipelineStepInputSchema).min(1),
@@ -10897,6 +10905,28 @@ var NativeCropResultSchema = object({
10897
10905
  width: number().int().positive(),
10898
10906
  height: number().int().positive()
10899
10907
  });
10908
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
10909
+ * originating detection, in FRAME-space coordinates. Reuses
10910
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
10911
+ * the coordinates are frame-space rather than getNativeCrop's
10912
+ * normalized [0,1] convention). */
10913
+ var DetailParentSchema = object({
10914
+ bbox: NativeCropBboxSchema,
10915
+ className: string()
10916
+ });
10917
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
10918
+ * or refined detection produced by running the crop-subtree on a
10919
+ * single tracked detection. */
10920
+ var DetailResultSchema = object({
10921
+ stepId: string(),
10922
+ className: string(),
10923
+ score: number(),
10924
+ /** FRAME-space bbox (already mapped back from crop space). */
10925
+ bbox: NativeCropBboxSchema.optional(),
10926
+ embedding: string().optional(),
10927
+ label: string().optional(),
10928
+ alignedCropJpeg: string().optional()
10929
+ });
10900
10930
  /**
10901
10931
  * Per-camera tunable ranges + defaults. Single source of truth used
10902
10932
  * by both the Zod data schema (validation + default fallback) and
@@ -11157,7 +11187,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
11157
11187
  handle: FrameHandleSchema,
11158
11188
  bbox: NativeCropBboxSchema,
11159
11189
  maxWidth: number().int().positive().optional()
11160
- }), NativeCropResultSchema.nullable());
11190
+ }), NativeCropResultSchema.nullable()), method(object({
11191
+ deviceId: number(),
11192
+ frameHandle: FrameHandleSchema.optional(),
11193
+ cropJpeg: string().optional(),
11194
+ parent: DetailParentSchema,
11195
+ steps: array(string()).optional()
11196
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
11161
11197
  object({
11162
11198
  detected: boolean(),
11163
11199
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -21999,6 +22035,12 @@ Object.freeze({
21999
22035
  addonId: null,
22000
22036
  access: "create"
22001
22037
  },
22038
+ "pipelineRunner.runDetailSubtree": {
22039
+ capName: "pipeline-runner",
22040
+ capScope: "system",
22041
+ addonId: null,
22042
+ access: "create"
22043
+ },
22002
22044
  "plateGallery.correctPlateText": {
22003
22045
  capName: "plate-gallery",
22004
22046
  capScope: "system",
@@ -4639,7 +4639,7 @@ function _instanceof(cls, params = {}) {
4639
4639
  return inst;
4640
4640
  }
4641
4641
  //#endregion
4642
- //#region ../types/dist/sleep-BC9Yqte7.mjs
4642
+ //#region ../types/dist/sleep-Baang_XW.mjs
4643
4643
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4644
4644
  EventCategory["SystemBoot"] = "system.boot";
4645
4645
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -10729,7 +10729,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10729
10729
  image: _instanceof(Uint8Array).optional(),
10730
10730
  referenceImage: string().optional(),
10731
10731
  deviceId: number().optional(),
10732
- sessionId: string().optional()
10732
+ sessionId: string().optional(),
10733
+ /**
10734
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
10735
+ * reference-image, and detail-subtree calls. 'frame' is the live
10736
+ * per-frame dispatch: ONLY root-plane steps run; crop children
10737
+ * (inputClasses ≠ null) are skipped and served per-track via
10738
+ * pipelineRunner.runDetailSubtree (two-plane design).
10739
+ */
10740
+ plane: _enum(["full", "frame"]).optional()
10733
10741
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
10734
10742
  engine: PipelineEngineChoiceSchema.optional(),
10735
10743
  steps: array(PipelineStepInputSchema).min(1),
@@ -10872,6 +10880,28 @@ var NativeCropResultSchema = object({
10872
10880
  width: number().int().positive(),
10873
10881
  height: number().int().positive()
10874
10882
  });
10883
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
10884
+ * originating detection, in FRAME-space coordinates. Reuses
10885
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
10886
+ * the coordinates are frame-space rather than getNativeCrop's
10887
+ * normalized [0,1] convention). */
10888
+ var DetailParentSchema = object({
10889
+ bbox: NativeCropBboxSchema,
10890
+ className: string()
10891
+ });
10892
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
10893
+ * or refined detection produced by running the crop-subtree on a
10894
+ * single tracked detection. */
10895
+ var DetailResultSchema = object({
10896
+ stepId: string(),
10897
+ className: string(),
10898
+ score: number(),
10899
+ /** FRAME-space bbox (already mapped back from crop space). */
10900
+ bbox: NativeCropBboxSchema.optional(),
10901
+ embedding: string().optional(),
10902
+ label: string().optional(),
10903
+ alignedCropJpeg: string().optional()
10904
+ });
10875
10905
  /**
10876
10906
  * Per-camera tunable ranges + defaults. Single source of truth used
10877
10907
  * by both the Zod data schema (validation + default fallback) and
@@ -11132,7 +11162,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
11132
11162
  handle: FrameHandleSchema,
11133
11163
  bbox: NativeCropBboxSchema,
11134
11164
  maxWidth: number().int().positive().optional()
11135
- }), NativeCropResultSchema.nullable());
11165
+ }), NativeCropResultSchema.nullable()), method(object({
11166
+ deviceId: number(),
11167
+ frameHandle: FrameHandleSchema.optional(),
11168
+ cropJpeg: string().optional(),
11169
+ parent: DetailParentSchema,
11170
+ steps: array(string()).optional()
11171
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
11136
11172
  object({
11137
11173
  detected: boolean(),
11138
11174
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -21974,6 +22010,12 @@ Object.freeze({
21974
22010
  addonId: null,
21975
22011
  access: "create"
21976
22012
  },
22013
+ "pipelineRunner.runDetailSubtree": {
22014
+ capName: "pipeline-runner",
22015
+ capScope: "system",
22016
+ addonId: null,
22017
+ access: "create"
22018
+ },
21977
22019
  "plateGallery.correctPlateText": {
21978
22020
  capName: "plate-gallery",
21979
22021
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-export-hap",
3
- "version": "1.1.21",
3
+ "version": "1.1.22",
4
4
  "description": "HomeKit (HAP) bridge exporter for CamStack devices. Publishes a bridged accessory per exposed device — MotionSensor in this MVP; Camera/Doorbell/Switch/Light follow.",
5
5
  "keywords": [
6
6
  "camstack",