@camstack/addon-provider-tuya 0.1.7 → 0.1.8

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 CHANGED
@@ -4646,7 +4646,7 @@ function preprocess(fn, schema) {
4646
4646
  });
4647
4647
  }
4648
4648
  //#endregion
4649
- //#region ../types/dist/sleep-BC9Yqte7.mjs
4649
+ //#region ../types/dist/sleep-Baang_XW.mjs
4650
4650
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4651
4651
  EventCategory["SystemBoot"] = "system.boot";
4652
4652
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -11959,7 +11959,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11959
11959
  image: _instanceof(Uint8Array).optional(),
11960
11960
  referenceImage: string().optional(),
11961
11961
  deviceId: number().optional(),
11962
- sessionId: string().optional()
11962
+ sessionId: string().optional(),
11963
+ /**
11964
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
11965
+ * reference-image, and detail-subtree calls. 'frame' is the live
11966
+ * per-frame dispatch: ONLY root-plane steps run; crop children
11967
+ * (inputClasses ≠ null) are skipped and served per-track via
11968
+ * pipelineRunner.runDetailSubtree (two-plane design).
11969
+ */
11970
+ plane: _enum(["full", "frame"]).optional()
11963
11971
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
11964
11972
  engine: PipelineEngineChoiceSchema.optional(),
11965
11973
  steps: array(PipelineStepInputSchema).min(1),
@@ -12135,6 +12143,28 @@ var NativeCropResultSchema = object({
12135
12143
  width: number().int().positive(),
12136
12144
  height: number().int().positive()
12137
12145
  });
12146
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
12147
+ * originating detection, in FRAME-space coordinates. Reuses
12148
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
12149
+ * the coordinates are frame-space rather than getNativeCrop's
12150
+ * normalized [0,1] convention). */
12151
+ var DetailParentSchema = object({
12152
+ bbox: NativeCropBboxSchema,
12153
+ className: string()
12154
+ });
12155
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
12156
+ * or refined detection produced by running the crop-subtree on a
12157
+ * single tracked detection. */
12158
+ var DetailResultSchema = object({
12159
+ stepId: string(),
12160
+ className: string(),
12161
+ score: number(),
12162
+ /** FRAME-space bbox (already mapped back from crop space). */
12163
+ bbox: NativeCropBboxSchema.optional(),
12164
+ embedding: string().optional(),
12165
+ label: string().optional(),
12166
+ alignedCropJpeg: string().optional()
12167
+ });
12138
12168
  /**
12139
12169
  * Per-camera tunable ranges + defaults. Single source of truth used
12140
12170
  * by both the Zod data schema (validation + default fallback) and
@@ -12395,7 +12425,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
12395
12425
  handle: FrameHandleSchema,
12396
12426
  bbox: NativeCropBboxSchema,
12397
12427
  maxWidth: number().int().positive().optional()
12398
- }), NativeCropResultSchema.nullable());
12428
+ }), NativeCropResultSchema.nullable()), method(object({
12429
+ deviceId: number(),
12430
+ frameHandle: FrameHandleSchema.optional(),
12431
+ cropJpeg: string().optional(),
12432
+ parent: DetailParentSchema,
12433
+ steps: array(string()).optional()
12434
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
12399
12435
  /**
12400
12436
  * Hardware / firmware motion sensor cap — binary detected state plus
12401
12437
  * a timestamp of the last observation. Distinct from
@@ -24866,6 +24902,12 @@ Object.freeze({
24866
24902
  addonId: null,
24867
24903
  access: "create"
24868
24904
  },
24905
+ "pipelineRunner.runDetailSubtree": {
24906
+ capName: "pipeline-runner",
24907
+ capScope: "system",
24908
+ addonId: null,
24909
+ access: "create"
24910
+ },
24869
24911
  "plateGallery.correctPlateText": {
24870
24912
  capName: "plate-gallery",
24871
24913
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -4645,7 +4645,7 @@ function preprocess(fn, schema) {
4645
4645
  });
4646
4646
  }
4647
4647
  //#endregion
4648
- //#region ../types/dist/sleep-BC9Yqte7.mjs
4648
+ //#region ../types/dist/sleep-Baang_XW.mjs
4649
4649
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4650
4650
  EventCategory["SystemBoot"] = "system.boot";
4651
4651
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -11958,7 +11958,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
11958
11958
  image: _instanceof(Uint8Array).optional(),
11959
11959
  referenceImage: string().optional(),
11960
11960
  deviceId: number().optional(),
11961
- sessionId: string().optional()
11961
+ sessionId: string().optional(),
11962
+ /**
11963
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
11964
+ * reference-image, and detail-subtree calls. 'frame' is the live
11965
+ * per-frame dispatch: ONLY root-plane steps run; crop children
11966
+ * (inputClasses ≠ null) are skipped and served per-track via
11967
+ * pipelineRunner.runDetailSubtree (two-plane design).
11968
+ */
11969
+ plane: _enum(["full", "frame"]).optional()
11962
11970
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
11963
11971
  engine: PipelineEngineChoiceSchema.optional(),
11964
11972
  steps: array(PipelineStepInputSchema).min(1),
@@ -12134,6 +12142,28 @@ var NativeCropResultSchema = object({
12134
12142
  width: number().int().positive(),
12135
12143
  height: number().int().positive()
12136
12144
  });
12145
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
12146
+ * originating detection, in FRAME-space coordinates. Reuses
12147
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
12148
+ * the coordinates are frame-space rather than getNativeCrop's
12149
+ * normalized [0,1] convention). */
12150
+ var DetailParentSchema = object({
12151
+ bbox: NativeCropBboxSchema,
12152
+ className: string()
12153
+ });
12154
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
12155
+ * or refined detection produced by running the crop-subtree on a
12156
+ * single tracked detection. */
12157
+ var DetailResultSchema = object({
12158
+ stepId: string(),
12159
+ className: string(),
12160
+ score: number(),
12161
+ /** FRAME-space bbox (already mapped back from crop space). */
12162
+ bbox: NativeCropBboxSchema.optional(),
12163
+ embedding: string().optional(),
12164
+ label: string().optional(),
12165
+ alignedCropJpeg: string().optional()
12166
+ });
12137
12167
  /**
12138
12168
  * Per-camera tunable ranges + defaults. Single source of truth used
12139
12169
  * by both the Zod data schema (validation + default fallback) and
@@ -12394,7 +12424,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
12394
12424
  handle: FrameHandleSchema,
12395
12425
  bbox: NativeCropBboxSchema,
12396
12426
  maxWidth: number().int().positive().optional()
12397
- }), NativeCropResultSchema.nullable());
12427
+ }), NativeCropResultSchema.nullable()), method(object({
12428
+ deviceId: number(),
12429
+ frameHandle: FrameHandleSchema.optional(),
12430
+ cropJpeg: string().optional(),
12431
+ parent: DetailParentSchema,
12432
+ steps: array(string()).optional()
12433
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
12398
12434
  /**
12399
12435
  * Hardware / firmware motion sensor cap — binary detected state plus
12400
12436
  * a timestamp of the last observation. Distinct from
@@ -24865,6 +24901,12 @@ Object.freeze({
24865
24901
  addonId: null,
24866
24902
  access: "create"
24867
24903
  },
24904
+ "pipelineRunner.runDetailSubtree": {
24905
+ capName: "pipeline-runner",
24906
+ capScope: "system",
24907
+ addonId: null,
24908
+ access: "create"
24909
+ },
24868
24910
  "plateGallery.correctPlateText": {
24869
24911
  capName: "plate-gallery",
24870
24912
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-tuya",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Tuya / Smart Life device-provider addon for CamStack — account-onboarded (Tuya IoT cloud fetch of device localKeys) + LOCAL DP control via the @apocaliss92/nodetuya encrypted-LAN client, exposing switch / water-heater-family kettle entities",
5
5
  "keywords": [
6
6
  "camstack",