@camstack/addon-agent-ui 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.
Files changed (2) hide show
  1. package/dist/addon.js +46 -4
  2. package/package.json +1 -1
package/dist/addon.js CHANGED
@@ -4629,7 +4629,7 @@ function _instanceof(cls, params = {}) {
4629
4629
  return inst;
4630
4630
  }
4631
4631
  //#endregion
4632
- //#region ../types/dist/sleep-BC9Yqte7.mjs
4632
+ //#region ../types/dist/sleep-Baang_XW.mjs
4633
4633
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4634
4634
  EventCategory["SystemBoot"] = "system.boot";
4635
4635
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -10674,7 +10674,15 @@ method(_void(), array(PipelineEngineChoiceSchema)), method(_void(), PipelineEngi
10674
10674
  image: _instanceof(Uint8Array).optional(),
10675
10675
  referenceImage: string().optional(),
10676
10676
  deviceId: number().optional(),
10677
- sessionId: string().optional()
10677
+ sessionId: string().optional(),
10678
+ /**
10679
+ * Execution plane. 'full' (default) runs the whole tree — benchmark,
10680
+ * reference-image, and detail-subtree calls. 'frame' is the live
10681
+ * per-frame dispatch: ONLY root-plane steps run; crop children
10682
+ * (inputClasses ≠ null) are skipped and served per-track via
10683
+ * pipelineRunner.runDetailSubtree (two-plane design).
10684
+ */
10685
+ plane: _enum(["full", "frame"]).optional()
10678
10686
  }), PipelineRunResultBridge, { kind: "mutation" }), method(object({
10679
10687
  engine: PipelineEngineChoiceSchema.optional(),
10680
10688
  steps: array(PipelineStepInputSchema).min(1),
@@ -10817,6 +10825,28 @@ var NativeCropResultSchema = object({
10817
10825
  width: number().int().positive(),
10818
10826
  height: number().int().positive()
10819
10827
  });
10828
+ /** Parent detection context passed to `runDetailSubtree` — the crop's
10829
+ * originating detection, in FRAME-space coordinates. Reuses
10830
+ * `NativeCropBboxSchema`'s `{x,y,w,h}` shape (same numeric fields; here
10831
+ * the coordinates are frame-space rather than getNativeCrop's
10832
+ * normalized [0,1] convention). */
10833
+ var DetailParentSchema = object({
10834
+ bbox: NativeCropBboxSchema,
10835
+ className: string()
10836
+ });
10837
+ /** One child-step result from `runDetailSubtree` — an embedding, label,
10838
+ * or refined detection produced by running the crop-subtree on a
10839
+ * single tracked detection. */
10840
+ var DetailResultSchema = object({
10841
+ stepId: string(),
10842
+ className: string(),
10843
+ score: number(),
10844
+ /** FRAME-space bbox (already mapped back from crop space). */
10845
+ bbox: NativeCropBboxSchema.optional(),
10846
+ embedding: string().optional(),
10847
+ label: string().optional(),
10848
+ alignedCropJpeg: string().optional()
10849
+ });
10820
10850
  /**
10821
10851
  * Per-camera tunable ranges + defaults. Single source of truth used
10822
10852
  * by both the Zod data schema (validation + default fallback) and
@@ -11077,7 +11107,13 @@ method(RunnerCameraConfigSchema, object({ success: literal(true) }), { kind: "mu
11077
11107
  handle: FrameHandleSchema,
11078
11108
  bbox: NativeCropBboxSchema,
11079
11109
  maxWidth: number().int().positive().optional()
11080
- }), NativeCropResultSchema.nullable());
11110
+ }), NativeCropResultSchema.nullable()), method(object({
11111
+ deviceId: number(),
11112
+ frameHandle: FrameHandleSchema.optional(),
11113
+ cropJpeg: string().optional(),
11114
+ parent: DetailParentSchema,
11115
+ steps: array(string()).optional()
11116
+ }), object({ details: array(DetailResultSchema) }).nullable(), { kind: "mutation" });
11081
11117
  object({
11082
11118
  detected: boolean(),
11083
11119
  /** Ms epoch of the last detected-true observation. Null if never detected. */
@@ -21894,6 +21930,12 @@ Object.freeze({
21894
21930
  addonId: null,
21895
21931
  access: "create"
21896
21932
  },
21933
+ "pipelineRunner.runDetailSubtree": {
21934
+ capName: "pipeline-runner",
21935
+ capScope: "system",
21936
+ addonId: null,
21937
+ access: "create"
21938
+ },
21897
21939
  "plateGallery.correctPlateText": {
21898
21940
  capName: "plate-gallery",
21899
21941
  capScope: "system",
@@ -23264,7 +23306,7 @@ var AgentUIAddon = class extends BaseAddon {
23264
23306
  capability: adminUiCapability,
23265
23307
  provider: {
23266
23308
  getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
23267
- getVersion: async () => ({ version: "1.1.22" })
23309
+ getVersion: async () => ({ version: "1.1.23" })
23268
23310
  }
23269
23311
  }];
23270
23312
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-agent-ui",
3
- "version": "1.1.22",
3
+ "version": "1.1.23",
4
4
  "description": "CamStack Agent UI — lightweight status dashboard served by every agent node",
5
5
  "keywords": [
6
6
  "camstack",