@camstack/addon-provider-amcrest 0.1.8 → 0.1.9

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
@@ -4633,7 +4633,7 @@ function _instanceof(cls, params = {}) {
4633
4633
  return inst;
4634
4634
  }
4635
4635
  //#endregion
4636
- //#region ../types/dist/sleep-BC9Yqte7.mjs
4636
+ //#region ../types/dist/sleep-Baang_XW.mjs
4637
4637
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4638
4638
  EventCategory["SystemBoot"] = "system.boot";
4639
4639
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -12024,7 +12024,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
12024
12024
  image: _instanceof(Uint8Array).optional(),
12025
12025
  referenceImage: string().optional(),
12026
12026
  deviceId: number().optional(),
12027
- sessionId: string().optional()
12027
+ sessionId: string().optional(),
12028
+ /**
12029
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
12030
+ * reference-image, and detail-subtree calls. 'frame' is the live
12031
+ * per-frame dispatch: ONLY root-plane steps run; crop children
12032
+ * (inputClasses ≠ null) are skipped and served per-track via
12033
+ * pipelineRunner.runDetailSubtree (two-plane design).
12034
+ */
12035
+ plane: _enum(["full", "frame"]).optional()
12028
12036
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
12029
12037
  engine: PipelineEngineChoiceSchema.optional(),
12030
12038
  steps: array(PipelineStepInputSchema).min(1),
@@ -12200,6 +12208,28 @@ var NativeCropResultSchema = object({
12200
12208
  width: number().int().positive(),
12201
12209
  height: number().int().positive()
12202
12210
  });
12211
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
12212
+ * originating detection, in FRAME-space coordinates. Reuses
12213
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
12214
+ * the coordinates are frame-space rather than getNativeCrop's
12215
+ * normalized [0,1] convention). */
12216
+ var DetailParentSchema = object({
12217
+ bbox: NativeCropBboxSchema,
12218
+ className: string()
12219
+ });
12220
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
12221
+ * or refined detection produced by running the crop-subtree on a
12222
+ * single tracked detection. */
12223
+ var DetailResultSchema = object({
12224
+ stepId: string(),
12225
+ className: string(),
12226
+ score: number(),
12227
+ /** FRAME-space bbox (already mapped back from crop space). */
12228
+ bbox: NativeCropBboxSchema.optional(),
12229
+ embedding: string().optional(),
12230
+ label: string().optional(),
12231
+ alignedCropJpeg: string().optional()
12232
+ });
12203
12233
  /**
12204
12234
  * Per-camera tunable ranges + defaults. Single source of truth used
12205
12235
  * by both the Zod data schema (validation + default fallback) and
@@ -12460,7 +12490,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
12460
12490
  handle: FrameHandleSchema,
12461
12491
  bbox: NativeCropBboxSchema,
12462
12492
  maxWidth: number().int().positive().optional()
12463
- }), NativeCropResultSchema.nullable());
12493
+ }), NativeCropResultSchema.nullable()), method(object({
12494
+ deviceId: number(),
12495
+ frameHandle: FrameHandleSchema.optional(),
12496
+ cropJpeg: string().optional(),
12497
+ parent: DetailParentSchema,
12498
+ steps: array(string()).optional()
12499
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
12464
12500
  /**
12465
12501
  * Hardware / firmware motion sensor cap — binary detected state plus
12466
12502
  * a timestamp of the last observation. Distinct from
@@ -25264,6 +25300,12 @@ Object.freeze({
25264
25300
  addonId: null,
25265
25301
  access: "create"
25266
25302
  },
25303
+ "pipelineRunner.runDetailSubtree": {
25304
+ capName: "pipeline-runner",
25305
+ capScope: "system",
25306
+ addonId: null,
25307
+ access: "create"
25308
+ },
25267
25309
  "plateGallery.correctPlateText": {
25268
25310
  capName: "plate-gallery",
25269
25311
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -4634,7 +4634,7 @@ function _instanceof(cls, params = {}) {
4634
4634
  return inst;
4635
4635
  }
4636
4636
  //#endregion
4637
- //#region ../types/dist/sleep-BC9Yqte7.mjs
4637
+ //#region ../types/dist/sleep-Baang_XW.mjs
4638
4638
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4639
4639
  EventCategory["SystemBoot"] = "system.boot";
4640
4640
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -12025,7 +12025,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
12025
12025
  image: _instanceof(Uint8Array).optional(),
12026
12026
  referenceImage: string().optional(),
12027
12027
  deviceId: number().optional(),
12028
- sessionId: string().optional()
12028
+ sessionId: string().optional(),
12029
+ /**
12030
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
12031
+ * reference-image, and detail-subtree calls. 'frame' is the live
12032
+ * per-frame dispatch: ONLY root-plane steps run; crop children
12033
+ * (inputClasses ≠ null) are skipped and served per-track via
12034
+ * pipelineRunner.runDetailSubtree (two-plane design).
12035
+ */
12036
+ plane: _enum(["full", "frame"]).optional()
12029
12037
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
12030
12038
  engine: PipelineEngineChoiceSchema.optional(),
12031
12039
  steps: array(PipelineStepInputSchema).min(1),
@@ -12201,6 +12209,28 @@ var NativeCropResultSchema = object({
12201
12209
  width: number().int().positive(),
12202
12210
  height: number().int().positive()
12203
12211
  });
12212
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
12213
+ * originating detection, in FRAME-space coordinates. Reuses
12214
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
12215
+ * the coordinates are frame-space rather than getNativeCrop's
12216
+ * normalized [0,1] convention). */
12217
+ var DetailParentSchema = object({
12218
+ bbox: NativeCropBboxSchema,
12219
+ className: string()
12220
+ });
12221
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
12222
+ * or refined detection produced by running the crop-subtree on a
12223
+ * single tracked detection. */
12224
+ var DetailResultSchema = object({
12225
+ stepId: string(),
12226
+ className: string(),
12227
+ score: number(),
12228
+ /** FRAME-space bbox (already mapped back from crop space). */
12229
+ bbox: NativeCropBboxSchema.optional(),
12230
+ embedding: string().optional(),
12231
+ label: string().optional(),
12232
+ alignedCropJpeg: string().optional()
12233
+ });
12204
12234
  /**
12205
12235
  * Per-camera tunable ranges + defaults. Single source of truth used
12206
12236
  * by both the Zod data schema (validation + default fallback) and
@@ -12461,7 +12491,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
12461
12491
  handle: FrameHandleSchema,
12462
12492
  bbox: NativeCropBboxSchema,
12463
12493
  maxWidth: number().int().positive().optional()
12464
- }), NativeCropResultSchema.nullable());
12494
+ }), NativeCropResultSchema.nullable()), method(object({
12495
+ deviceId: number(),
12496
+ frameHandle: FrameHandleSchema.optional(),
12497
+ cropJpeg: string().optional(),
12498
+ parent: DetailParentSchema,
12499
+ steps: array(string()).optional()
12500
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
12465
12501
  /**
12466
12502
  * Hardware / firmware motion sensor cap — binary detected state plus
12467
12503
  * a timestamp of the last observation. Distinct from
@@ -25265,6 +25301,12 @@ Object.freeze({
25265
25301
  addonId: null,
25266
25302
  access: "create"
25267
25303
  },
25304
+ "pipelineRunner.runDetailSubtree": {
25305
+ capName: "pipeline-runner",
25306
+ capScope: "system",
25307
+ addonId: null,
25308
+ access: "create"
25309
+ },
25268
25310
  "plateGallery.correctPlateText": {
25269
25311
  capName: "plate-gallery",
25270
25312
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-amcrest",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Amcrest/Dahua camera device provider addon for CamStack — Dahua CGI over HTTP(S) with digest auth (snapshot, RTSP catalog, PTZ, image/day-night config)",
5
5
  "keywords": [
6
6
  "camstack",