@camstack/addon-cloudflare 1.1.22 → 1.1.23

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.
@@ -4627,7 +4627,7 @@ function _instanceof(cls, params = {}) {
4627
4627
  return inst;
4628
4628
  }
4629
4629
  //#endregion
4630
- //#region ../types/dist/sleep-BC9Yqte7.mjs
4630
+ //#region ../types/dist/sleep-Baang_XW.mjs
4631
4631
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4632
4632
  EventCategory["SystemBoot"] = "system.boot";
4633
4633
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -10663,7 +10663,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10663
10663
  image: _instanceof(Uint8Array).optional(),
10664
10664
  referenceImage: string().optional(),
10665
10665
  deviceId: number().optional(),
10666
- sessionId: string().optional()
10666
+ sessionId: string().optional(),
10667
+ /**
10668
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
10669
+ * reference-image, and detail-subtree calls. 'frame' is the live
10670
+ * per-frame dispatch: ONLY root-plane steps run; crop children
10671
+ * (inputClasses ≠ null) are skipped and served per-track via
10672
+ * pipelineRunner.runDetailSubtree (two-plane design).
10673
+ */
10674
+ plane: _enum(["full", "frame"]).optional()
10667
10675
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
10668
10676
  engine: PipelineEngineChoiceSchema.optional(),
10669
10677
  steps: array(PipelineStepInputSchema).min(1),
@@ -10806,6 +10814,28 @@ var NativeCropResultSchema = object({
10806
10814
  width: number().int().positive(),
10807
10815
  height: number().int().positive()
10808
10816
  });
10817
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
10818
+ * originating detection, in FRAME-space coordinates. Reuses
10819
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
10820
+ * the coordinates are frame-space rather than getNativeCrop's
10821
+ * normalized [0,1] convention). */
10822
+ var DetailParentSchema = object({
10823
+ bbox: NativeCropBboxSchema,
10824
+ className: string()
10825
+ });
10826
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
10827
+ * or refined detection produced by running the crop-subtree on a
10828
+ * single tracked detection. */
10829
+ var DetailResultSchema = object({
10830
+ stepId: string(),
10831
+ className: string(),
10832
+ score: number(),
10833
+ /** FRAME-space bbox (already mapped back from crop space). */
10834
+ bbox: NativeCropBboxSchema.optional(),
10835
+ embedding: string().optional(),
10836
+ label: string().optional(),
10837
+ alignedCropJpeg: string().optional()
10838
+ });
10809
10839
  /**
10810
10840
  * Per-camera tunable ranges + defaults. Single source of truth used
10811
10841
  * by both the Zod data schema (validation + default fallback) and
@@ -11066,7 +11096,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
11066
11096
  handle: FrameHandleSchema,
11067
11097
  bbox: NativeCropBboxSchema,
11068
11098
  maxWidth: number().int().positive().optional()
11069
- }), NativeCropResultSchema.nullable());
11099
+ }), NativeCropResultSchema.nullable()), method(object({
11100
+ deviceId: number(),
11101
+ frameHandle: FrameHandleSchema.optional(),
11102
+ cropJpeg: string().optional(),
11103
+ parent: DetailParentSchema,
11104
+ steps: array(string()).optional()
11105
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
11070
11106
  object({
11071
11107
  detected: boolean(),
11072
11108
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -21944,6 +21980,12 @@ Object.freeze({
21944
21980
  addonId: null,
21945
21981
  access: "create"
21946
21982
  },
21983
+ "pipelineRunner.runDetailSubtree": {
21984
+ capName: "pipeline-runner",
21985
+ capScope: "system",
21986
+ addonId: null,
21987
+ access: "create"
21988
+ },
21947
21989
  "plateGallery.correctPlateText": {
21948
21990
  capName: "plate-gallery",
21949
21991
  capScope: "system",
@@ -4627,7 +4627,7 @@ function _instanceof(cls, params = {}) {
4627
4627
  return inst;
4628
4628
  }
4629
4629
  //#endregion
4630
- //#region ../types/dist/sleep-BC9Yqte7.mjs
4630
+ //#region ../types/dist/sleep-Baang_XW.mjs
4631
4631
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4632
4632
  EventCategory["SystemBoot"] = "system.boot";
4633
4633
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -10663,7 +10663,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10663
10663
  image: _instanceof(Uint8Array).optional(),
10664
10664
  referenceImage: string().optional(),
10665
10665
  deviceId: number().optional(),
10666
- sessionId: string().optional()
10666
+ sessionId: string().optional(),
10667
+ /**
10668
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
10669
+ * reference-image, and detail-subtree calls. 'frame' is the live
10670
+ * per-frame dispatch: ONLY root-plane steps run; crop children
10671
+ * (inputClasses ≠ null) are skipped and served per-track via
10672
+ * pipelineRunner.runDetailSubtree (two-plane design).
10673
+ */
10674
+ plane: _enum(["full", "frame"]).optional()
10667
10675
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
10668
10676
  engine: PipelineEngineChoiceSchema.optional(),
10669
10677
  steps: array(PipelineStepInputSchema).min(1),
@@ -10806,6 +10814,28 @@ var NativeCropResultSchema = object({
10806
10814
  width: number().int().positive(),
10807
10815
  height: number().int().positive()
10808
10816
  });
10817
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
10818
+ * originating detection, in FRAME-space coordinates. Reuses
10819
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
10820
+ * the coordinates are frame-space rather than getNativeCrop's
10821
+ * normalized [0,1] convention). */
10822
+ var DetailParentSchema = object({
10823
+ bbox: NativeCropBboxSchema,
10824
+ className: string()
10825
+ });
10826
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
10827
+ * or refined detection produced by running the crop-subtree on a
10828
+ * single tracked detection. */
10829
+ var DetailResultSchema = object({
10830
+ stepId: string(),
10831
+ className: string(),
10832
+ score: number(),
10833
+ /** FRAME-space bbox (already mapped back from crop space). */
10834
+ bbox: NativeCropBboxSchema.optional(),
10835
+ embedding: string().optional(),
10836
+ label: string().optional(),
10837
+ alignedCropJpeg: string().optional()
10838
+ });
10809
10839
  /**
10810
10840
  * Per-camera tunable ranges + defaults. Single source of truth used
10811
10841
  * by both the Zod data schema (validation + default fallback) and
@@ -11066,7 +11096,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
11066
11096
  handle: FrameHandleSchema,
11067
11097
  bbox: NativeCropBboxSchema,
11068
11098
  maxWidth: number().int().positive().optional()
11069
- }), NativeCropResultSchema.nullable());
11099
+ }), NativeCropResultSchema.nullable()), method(object({
11100
+ deviceId: number(),
11101
+ frameHandle: FrameHandleSchema.optional(),
11102
+ cropJpeg: string().optional(),
11103
+ parent: DetailParentSchema,
11104
+ steps: array(string()).optional()
11105
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
11070
11106
  object({
11071
11107
  detected: boolean(),
11072
11108
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -21944,6 +21980,12 @@ Object.freeze({
21944
21980
  addonId: null,
21945
21981
  access: "create"
21946
21982
  },
21983
+ "pipelineRunner.runDetailSubtree": {
21984
+ capName: "pipeline-runner",
21985
+ capScope: "system",
21986
+ addonId: null,
21987
+ access: "create"
21988
+ },
21947
21989
  "plateGallery.correctPlateText": {
21948
21990
  capName: "plate-gallery",
21949
21991
  capScope: "system",
@@ -21,7 +21,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
21
21
  enumerable: true
22
22
  }) : target, mod));
23
23
  //#endregion
24
- const require_dist = require("../dist-B-5cEVeX.js");
24
+ const require_dist = require("../dist-gkRT1B9v.js");
25
25
  let node_path = require("node:path");
26
26
  node_path = __toESM(node_path);
27
27
  let node_crypto = require("node:crypto");
@@ -1,4 +1,4 @@
1
- import { a as BaseAddon, c as array, d as literal, f as number, l as boolean, m as string, n as defineCustomActions, o as EventCategory, p as object, r as networkAccessCapability, s as _enum, t as customAction } from "../dist-BYAmzLm5.mjs";
1
+ import { a as BaseAddon, c as array, d as literal, f as number, l as boolean, m as string, n as defineCustomActions, o as EventCategory, p as object, r as networkAccessCapability, s as _enum, t as customAction } from "../dist-BUzNAvoc.mjs";
2
2
  import * as path from "node:path";
3
3
  import { randomUUID } from "node:crypto";
4
4
  import { spawn } from "node:child_process";
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_dist = require("../dist-B-5cEVeX.js");
2
+ const require_dist = require("../dist-gkRT1B9v.js");
3
3
  //#region src/turn/cloudflare-turn.ts
4
4
  /**
5
5
  * Cloudflare returns ICE servers in several flavours depending on which
@@ -1,4 +1,4 @@
1
- import { a as BaseAddon, d as literal, f as number, i as turnProviderCapability, l as boolean, m as string, n as defineCustomActions, p as object, t as customAction, u as discriminatedUnion } from "../dist-BYAmzLm5.mjs";
1
+ import { a as BaseAddon, d as literal, f as number, i as turnProviderCapability, l as boolean, m as string, n as defineCustomActions, p as object, t as customAction, u as discriminatedUnion } from "../dist-BUzNAvoc.mjs";
2
2
  //#region src/turn/cloudflare-turn.ts
3
3
  /**
4
4
  * Cloudflare returns ICE servers in several flavours depending on which
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-cloudflare",
3
- "version": "1.1.22",
3
+ "version": "1.1.23",
4
4
  "description": "Cloudflare bundle — Tunnel (network-access) + TURN relay (turn-provider). Multi-entry npm package shipping 2 addons under a single bundle.",
5
5
  "keywords": [
6
6
  "camstack",