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