@camstack/addon-post-analysis 1.2.339 → 1.2.341

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 (16) hide show
  1. package/THIRD_PARTY_MODELS.md +3 -8
  2. package/dist/{clip-model-registry-DlJT7zn4.js → clip-model-registry-BOAYW16o.js} +709 -517
  3. package/dist/{clip-model-registry-BKVUtnRA.mjs → clip-model-registry-BP-BF3CK.mjs} +709 -517
  4. package/dist/embedding-encoder/index.js +1 -1
  5. package/dist/embedding-encoder/index.mjs +1 -1
  6. package/dist/pipeline-analytics/_stub.js +2 -2
  7. package/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-CF8ypDMO.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-B2hR0cv6.mjs} +3 -3
  8. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-B9vPD32p.mjs +26 -0
  9. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-CY24cHgW.mjs +26 -0
  10. package/dist/pipeline-analytics/{hostInit-DYVlvRBm.mjs → hostInit-BgudaQ7W.mjs} +3 -3
  11. package/dist/pipeline-analytics/index.js +14 -14
  12. package/dist/pipeline-analytics/index.mjs +14 -14
  13. package/dist/pipeline-analytics/remoteEntry.js +1 -1
  14. package/package.json +1 -1
  15. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BImFB0o5.mjs +0 -26
  16. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BRmdbHeK.mjs +0 -26
@@ -1,5 +1,5 @@
1
1
  import { createHash } from "node:crypto";
2
- //#region ../types/dist/event-category-BGmz_oxW.mjs
2
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
3
3
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4
4
  EventCategory["SystemBoot"] = "system.boot";
5
5
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -500,15 +500,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
500
500
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
501
501
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
502
502
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
503
- /**
504
- * Per-agent hwaccel preference changed (user override set, cleared, or
505
- * re-probed). Observability event — decoders pull the current pref at
506
- * `createSession`, so running sessions keep their current backend until
507
- * they rotate naturally (camera add/remove, stream restart). Future
508
- * work can wire a listener in stream-broker that force-rotates live
509
- * sessions; for now this event powers logs + admin-UI toast feedback.
510
- */
511
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
512
503
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
513
504
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
514
505
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -5451,7 +5442,7 @@ var ZodIssueCode = {
5451
5442
  var ZodFirstPartyTypeKind;
5452
5443
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5453
5444
  //#endregion
5454
- //#region ../types/dist/sleep-C16NCZR2.mjs
5445
+ //#region ../types/dist/sleep-BNeXenvr.mjs
5455
5446
  /**
5456
5447
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5457
5448
  * window to float samples (D455).
@@ -6817,32 +6808,12 @@ object({
6817
6808
  audioCodec: string().optional(),
6818
6809
  metadata: record(string(), unknown()).readonly().optional()
6819
6810
  });
6820
- var EncodedPacketSchema = object({
6821
- type: _enum(["video", "audio"]),
6822
- data: _instanceof(Uint8Array),
6823
- pts: number(),
6824
- dts: number(),
6825
- keyframe: boolean(),
6826
- codec: string()
6827
- });
6828
- var DecodedFrameSchema = object({
6829
- data: _instanceof(Uint8Array),
6830
- width: number(),
6831
- height: number(),
6832
- format: _enum([
6833
- "jpeg",
6834
- "rgb",
6835
- "bgr",
6836
- "yuv420",
6837
- "gray"
6838
- ]),
6839
- timestamp: number()
6840
- });
6841
6811
  /**
6842
6812
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
6843
6813
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
6844
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
6845
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
6814
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
6815
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
6816
+ * over tRPC / Moleculer.
6846
6817
  *
6847
6818
  * The `satisfies` assertion below pins this schema to the interface: if a
6848
6819
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -6868,50 +6839,6 @@ var FrameHandleSchema = object({
6868
6839
  slotCount: number().int().positive()
6869
6840
  });
6870
6841
  /**
6871
- * Pixel format a frame-handle subscriber can request from the broker
6872
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
6873
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
6874
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
6875
- * payload, and no decoded-frame consumer requests it over the shm plane.
6876
- */
6877
- var FrameHandleFormatSchema = _enum([
6878
- "rgb",
6879
- "bgr",
6880
- "yuv420",
6881
- "gray"
6882
- ]);
6883
- /**
6884
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
6885
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
6886
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
6887
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
6888
- * they asked for with no broker-side conversion.
6889
- */
6890
- var SubscribeFramesInputSchema = object({
6891
- brokerId: string(),
6892
- format: FrameHandleFormatSchema,
6893
- /**
6894
- * Optional reader-side cadence hint in frames per second. The broker does
6895
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
6896
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
6897
- * the consumer can pace its own `pullFrameHandles` polling.
6898
- */
6899
- maxFps: number().positive().optional(),
6900
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
6901
- tag: string().optional()
6902
- });
6903
- /**
6904
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
6905
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
6906
- * `FrameHandle` to a `FrameRingReader`.
6907
- */
6908
- var SubscribeFramesResultSchema = object({
6909
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
6910
- subscriptionId: string(),
6911
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
6912
- maxFps: number().nonnegative()
6913
- });
6914
- /**
6915
6842
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
6916
6843
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
6917
6844
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -6919,8 +6846,8 @@ var SubscribeFramesResultSchema = object({
6919
6846
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
6920
6847
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
6921
6848
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
6922
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
6923
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
6849
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
6850
+ * it.
6924
6851
  */
6925
6852
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
6926
6853
  var DecodedAudioChunkSchema = object({
@@ -6938,11 +6865,10 @@ var DecodedAudioChunkSchema = object({
6938
6865
  format: AudioChunkFormatSchema.optional()
6939
6866
  });
6940
6867
  /**
6941
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
6942
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
6943
- * asks the broker for the decoded audio-chunk stream of one broker; the
6944
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
6945
- * `pullAudioChunks`.
6868
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
6869
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
6870
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
6871
+ * the consumer drains via `pullAudioChunks`.
6946
6872
  */
6947
6873
  var SubscribeAudioChunksInputSchema = object({
6948
6874
  brokerId: string(),
@@ -6973,9 +6899,7 @@ var BrokerStatsSchema = object({
6973
6899
  "stopped"
6974
6900
  ]),
6975
6901
  inputFps: number(),
6976
- decodeFps: number(),
6977
6902
  encodedSubscribers: number(),
6978
- decodedSubscribers: number(),
6979
6903
  uptimeMs: number(),
6980
6904
  bitrateKbps: number(),
6981
6905
  idrIntervalMs: number(),
@@ -6988,14 +6912,6 @@ var BrokerStatsSchema = object({
6988
6912
  preBufferMs: number(),
6989
6913
  preBufferPackets: number(),
6990
6914
  /**
6991
- * Moleculer node id of the decoder provider currently servicing this
6992
- * stream's decoded subscribers. `null` until the deferred decoder is
6993
- * created (no decoded clients yet, or codec not detected). Surfaces the
6994
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
6995
- * a separate cap call per broker.
6996
- */
6997
- decoderNodeId: string().nullable(),
6998
- /**
6999
6915
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
7000
6916
  * when the stream has no audio track or the broker is in cold start.
7001
6917
  * `supported = false` means the codec was detected but the local
@@ -11178,70 +11094,6 @@ var StorageLocationDeclarationSchema = object({
11178
11094
  "backup"
11179
11095
  ]).optional()
11180
11096
  });
11181
- var DecoderStatsSchema = object({
11182
- inputFps: number(),
11183
- outputFps: number(),
11184
- avgDecodeTimeMs: number(),
11185
- droppedFrames: number(),
11186
- /**
11187
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
11188
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
11189
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
11190
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
11191
- */
11192
- lagMs: number().optional(),
11193
- effectiveFps: number().optional(),
11194
- adaptiveFps: number().optional()
11195
- });
11196
- var DecoderSessionConfigSchema = object({
11197
- codec: string(),
11198
- maxFps: number().default(0),
11199
- outputFormat: _enum([
11200
- "jpeg",
11201
- "rgb",
11202
- "bgr",
11203
- "yuv420",
11204
- "gray"
11205
- ]).default("jpeg"),
11206
- scale: number().default(1),
11207
- width: number().optional(),
11208
- height: number().optional(),
11209
- /**
11210
- * Identifier of the camera this decoder session serves. Optional
11211
- * because the cap is generic (any caller could request decode), but
11212
- * stream-broker passes it so decoder logs include `deviceId` for
11213
- * per-camera filtering when diagnosing failures (e.g. node-av
11214
- * sendPacket errors on a single hung camera).
11215
- */
11216
- deviceId: number().int().nonnegative().optional(),
11217
- /**
11218
- * Free-form tag for log scoping. Stream-broker uses
11219
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
11220
- * on every line so `grep tag=broker:5/high` filters one camera
11221
- * profile cleanly.
11222
- */
11223
- tag: string().optional(),
11224
- /**
11225
- * Where the session delivers decoded frames (Phase 5 / D9):
11226
- *
11227
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
11228
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
11229
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
11230
- * into an OS shared-memory ring and drained as zero-pixel
11231
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
11232
- * other — `pullFrames` returns nothing for an `'shm'` session and
11233
- * `pullHandles` returns nothing for a `'callback'` session.
11234
- */
11235
- frameSink: _enum(["callback", "shm"]).default("callback"),
11236
- /**
11237
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
11238
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
11239
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
11240
- * stream-broker's `streamingDebug` gate — off by default so production logs
11241
- * stay quiet and the emit path pays zero per-frame cost when disabled.
11242
- */
11243
- debug: boolean().optional()
11244
- });
11245
11097
  /**
11246
11098
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
11247
11099
  * an addon declares its channels in.
@@ -11537,8 +11389,19 @@ var LABEL_SUPPLY_STEP_IDS = [
11537
11389
  ];
11538
11390
  /** Steps whose box a root detection can BE. */
11539
11391
  var CROP_SUPPLY_STEP_IDS = ["plate-detection", "face-detection"];
11392
+ /**
11393
+ * Steps whose per-detection MASK a root detection can carry (D737). The live
11394
+ * mask step is `segmentation` — a frame-plane refiner that runs its own model
11395
+ * once per detection crop. (`instance-segmentation` is a dormant step id that
11396
+ * no camera tree carries.)
11397
+ */
11398
+ var MASK_SUPPLY_STEP_IDS = ["segmentation"];
11540
11399
  /** Every step a root model can supply. */
11541
- var ROOT_SUPPLIABLE_STEP_IDS = [...LABEL_SUPPLY_STEP_IDS, ...CROP_SUPPLY_STEP_IDS];
11400
+ var ROOT_SUPPLIABLE_STEP_IDS = [
11401
+ ...LABEL_SUPPLY_STEP_IDS,
11402
+ ...CROP_SUPPLY_STEP_IDS,
11403
+ ...MASK_SUPPLY_STEP_IDS
11404
+ ];
11542
11405
  /** Narrow a step id to a suppliable one — type guard, not a cast. */
11543
11406
  function isRootSuppliableStepId(value) {
11544
11407
  return ROOT_SUPPLIABLE_STEP_IDS.some((id) => id === value);
@@ -11603,7 +11466,53 @@ var ModelFormatEntrySchema = object({
11603
11466
  /** Multi-file payload (directory members or sibling files). */
11604
11467
  files: array(string()).readonly().optional(),
11605
11468
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
11606
- runtimes: array(_enum(["python"])).readonly().optional()
11469
+ runtimes: array(_enum(["python"])).readonly().optional(),
11470
+ /**
11471
+ * Content revision of the artefact, for one hosted OFF the CamStack mirror.
11472
+ * A format on the mirror leaves it unset: its revision (the sha256 of its
11473
+ * weight file) comes from the downloader's generated table, kept in step
11474
+ * with the mirror by `scripts/check-hosted-model-revisions.ts` (D744). A
11475
+ * node records the revision it downloaded next to the file
11476
+ * (`<file>.revision`); a copy with no record or a different one is stale
11477
+ * unless its weight file hashes to the revision, and a stale copy is
11478
+ * downloaded again, the old one serving until the new one is complete. No
11479
+ * revision at all ⇒ a file on disk is current, whatever it holds (D743).
11480
+ */
11481
+ revision: string().min(1).optional()
11482
+ });
11483
+ /**
11484
+ * What a node holds for one (model, format) (D746). `current` is a complete
11485
+ * copy at its catalog revision — exactly what `downloaded: true` means.
11486
+ * `stale` is bytes on disk that are not (yet) proven current under D743/D744:
11487
+ * no or a different revision record, or a missing sibling. `missing` is no
11488
+ * copy. `downloaded` alone folds `stale` into "not downloaded", which hid
11489
+ * reclaimable bytes and a copy about to be replaced.
11490
+ */
11491
+ var ModelOnDiskStateSchema = _enum([
11492
+ "current",
11493
+ "stale",
11494
+ "missing"
11495
+ ]);
11496
+ /**
11497
+ * The numeric precision of one format's BUILD (D746) — reported only when the
11498
+ * build states it (file-name token, an INT8 variant, an EdgeTPU compile, a
11499
+ * CamStack Core ML export). Absent means "not stated", never "fp32".
11500
+ */
11501
+ var ModelFormatPrecisionSchema = _enum([
11502
+ "fp32",
11503
+ "fp16",
11504
+ "int8"
11505
+ ]);
11506
+ /**
11507
+ * One format of one model as a node's `pipelineExecutor.getSchema` reports it.
11508
+ * `onDisk` / `precision` are optional for version skew: a runner that predates
11509
+ * them omits them, and a reader falls back to `downloaded`.
11510
+ */
11511
+ var PipelineModelFormatStatusSchema = object({
11512
+ downloaded: boolean(),
11513
+ sizeMB: number(),
11514
+ onDisk: ModelOnDiskStateSchema.optional(),
11515
+ precision: ModelFormatPrecisionSchema.optional()
11607
11516
  });
11608
11517
  /**
11609
11518
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -11717,25 +11626,36 @@ var ModelLicenseSchema = preprocess((value) => typeof value === "string" ? { wei
11717
11626
  * - `crop`: the root draws the box the step would have found (`license_plate`
11718
11627
  * for plate-detection, `face` for face-detection). The box becomes a detail
11719
11628
  * child of the `parentMacro` detection that contains it — never a track.
11629
+ * - `mask`: the root's decode emits an instance mask with every detection (a
11630
+ * YOLO26-seg root, D737) — the `segmentation` step's result, carried on the
11631
+ * detection in the shape that step produces. Derived from the model's
11632
+ * postprocessor on read, never stored by an import.
11720
11633
  */
11721
- var RootStepSupplySchema = discriminatedUnion("kind", [object({
11722
- kind: literal("label"),
11723
- stepId: _enum(LABEL_SUPPLY_STEP_IDS),
11724
- labelToEffect: record(string(), string()),
11725
- uncovered: array(string()).readonly()
11726
- }), object({
11727
- kind: literal("crop"),
11728
- stepId: _enum(CROP_SUPPLY_STEP_IDS),
11729
- rootLabels: array(string()).readonly(),
11730
- parentMacro: _enum(["vehicle", "person"]),
11731
- childClass: _enum(["plate", "face"]),
11732
- /**
11733
- * The root's smaller input side, stamped on read by `rootSuppliesOf` from
11734
- * the model entry — what a step's `minRootInputPx` gate judges. Never
11735
- * stored by an import.
11736
- */
11737
- rootInputPx: number().int().positive().optional()
11738
- })]);
11634
+ var RootStepSupplySchema = discriminatedUnion("kind", [
11635
+ object({
11636
+ kind: literal("label"),
11637
+ stepId: _enum(LABEL_SUPPLY_STEP_IDS),
11638
+ labelToEffect: record(string(), string()),
11639
+ uncovered: array(string()).readonly()
11640
+ }),
11641
+ object({
11642
+ kind: literal("crop"),
11643
+ stepId: _enum(CROP_SUPPLY_STEP_IDS),
11644
+ rootLabels: array(string()).readonly(),
11645
+ parentMacro: _enum(["vehicle", "person"]),
11646
+ childClass: _enum(["plate", "face"]),
11647
+ /**
11648
+ * The root's smaller input side, stamped on read by `rootSuppliesOf` from
11649
+ * the model entry — what a step's `minRootInputPx` gate judges. Never
11650
+ * stored by an import.
11651
+ */
11652
+ rootInputPx: number().int().positive().optional()
11653
+ }),
11654
+ object({
11655
+ kind: literal("mask"),
11656
+ stepId: _enum(MASK_SUPPLY_STEP_IDS)
11657
+ })
11658
+ ]);
11739
11659
  var ModelCatalogEntrySchema = object({
11740
11660
  id: string(),
11741
11661
  name: string(),
@@ -11801,6 +11721,35 @@ var ModelCatalogEntrySchema = object({
11801
11721
  */
11802
11722
  defaultConfidence: number().min(0).max(1).optional(),
11803
11723
  /**
11724
+ * Per-MODEL default of the per-class confidence floors (`minConfidence<Macro>`
11725
+ * on a detector step), keyed by macro class: `{ person: 0.45 }`. A class
11726
+ * absent here runs at the step slider's global default. The same row shape
11727
+ * the floor measurement produces (`model-floors.json`: modelId → floors), so
11728
+ * a measured table is copied in as-is. An operator override is bound to the
11729
+ * model it was made for and does not survive a model change (D738). A custom
11730
+ * / imported model may declare it; without it, the global defaults apply.
11731
+ */
11732
+ defaultClassFloors: record(string(), number().min(0).max(1)).optional(),
11733
+ /**
11734
+ * The inference precision this model's OpenVINO IR needs on an Intel GPU.
11735
+ * Absent ⇒ the device default (f16 on a GPU). Set to `'f32'` for an FP32 IR
11736
+ * that produces invalid output at f16 — measured 2026-10-07 for YOLO26
11737
+ * base IRs (`yolo26s`: 0 true / 146 false positives; `yolo26m*`: NaN
11738
+ * scores) on the Core Ultra iGPU and the N100. Threaded to the pool as
11739
+ * `PoolModelConfig.gpuInferencePrecision`; the pool sets
11740
+ * INFERENCE_PRECISION_HINT on a GPU only. Costs ~60% latency on the GPU.
11741
+ */
11742
+ gpuInferencePrecision: _enum(["f32", "f16"]).optional(),
11743
+ /**
11744
+ * ROOT detectors only: per supplied step (`animal-classifier`, …), the
11745
+ * minimum DETECTION score from which this root's own fine label (species,
11746
+ * vehicle type — D736 root supply) is taken (D741). Below it the detection
11747
+ * keeps its macro class without the fine label. `1` = never take it from
11748
+ * this root. Absent ⇒ no floor beyond the macro floor. The supplied step's
11749
+ * `minConfidence` slider, bound to the ROOT model, overrides it.
11750
+ */
11751
+ suppliedLabelFloors: record(string(), number().min(0).max(1)).optional(),
11752
+ /**
11804
11753
  * When true, the executor produces a landmark-aligned crop (similarity warp
11805
11754
  * onto the canonical template) before this step runs, instead of a plain
11806
11755
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -13930,13 +13879,6 @@ var BrokerRtspClientSchema = object({
13930
13879
  lastRtpAt: number(),
13931
13880
  bytesSent: number()
13932
13881
  });
13933
- var BrokerDecodedClientSchema = object({
13934
- tag: string(),
13935
- subscribedAt: number(),
13936
- maxFps: number(),
13937
- framesDelivered: number(),
13938
- framesDropped: number()
13939
- });
13940
13882
  var BrokerAudioClientSchema = object({
13941
13883
  tag: string(),
13942
13884
  subscribedAt: number(),
@@ -14028,7 +13970,6 @@ var BrokerEncodedClientSchema = object({
14028
13970
  });
14029
13971
  var BrokerClientsSchema = object({
14030
13972
  rtsp: array(BrokerRtspClientSchema).readonly(),
14031
- decoded: array(BrokerDecodedClientSchema).readonly(),
14032
13973
  audio: array(BrokerAudioClientSchema).readonly(),
14033
13974
  encoded: array(BrokerEncodedClientSchema).readonly(),
14034
13975
  pipeClients: number(),
@@ -14520,11 +14461,7 @@ var streamBrokerCapability = {
14520
14461
  listClients: method(object({ brokerId: string() }), BrokerClientsSchema),
14521
14462
  killClient: method(object({
14522
14463
  brokerId: string(),
14523
- channel: _enum([
14524
- "rtsp",
14525
- "decoded",
14526
- "audio"
14527
- ]),
14464
+ channel: _enum(["rtsp", "audio"]),
14528
14465
  handle: string()
14529
14466
  }), object({ killed: boolean() }), {
14530
14467
  kind: "mutation",
@@ -14623,31 +14560,6 @@ var streamBrokerCapability = {
14623
14560
  maxCount: number().int().positive().default(8)
14624
14561
  }), array(DecodedAudioChunkSchema).readonly()),
14625
14562
  unsubscribeAudioChunks: method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }),
14626
- /**
14627
- * ── Shared-memory frame plane (Phase 5 / D9) ──────────────────────
14628
- *
14629
- * The handle-based replacement for the live-object `IStreamBroker.
14630
- * onDecodedFrame` callback path. A consumer:
14631
- *
14632
- * 1. `subscribeFrames({ brokerId, format })` — the broker spins up
14633
- * (or reuses) a `frameSink: 'shm'` decoder session producing that
14634
- * `format` and returns a `subscriptionId`.
14635
- * 2. polls `pullFrameHandles({ subscriptionId, maxCount })` — drains
14636
- * zero-pixel `FrameHandle[]`; each handle is fed to a
14637
- * `FrameRingReader` that opens the named shm segment and reads the
14638
- * pixels back zero-copy.
14639
- * 3. `unsubscribeFrames({ subscriptionId })` on teardown.
14640
- *
14641
- * The broker keeps one shm ring per `(brokerId, format)` actually
14642
- * requested — no broker-side `sharp` conversion. fps throttling is
14643
- * implicit (latest-wins ring reads drop frames for a slow consumer).
14644
- */
14645
- subscribeFrames: method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }),
14646
- pullFrameHandles: method(object({
14647
- subscriptionId: string(),
14648
- maxCount: number().int().positive().default(4)
14649
- }), array(FrameHandleSchema).readonly()),
14650
- unsubscribeFrames: method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }),
14651
14563
  setPreBufferDuration: method(object({
14652
14564
  brokerId: string(),
14653
14565
  seconds: number().min(0).max(30)
@@ -16374,72 +16286,18 @@ id: union([string(), number()]) }), {
16374
16286
  })
16375
16287
  }
16376
16288
  };
16377
- /**
16378
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
16379
- * exposed via `decoder.getShmStats` so downstream consumers can
16380
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
16381
- */
16382
- var ShmRingStatsSchema = object({
16383
- sessionId: string(),
16384
- slotCount: number().int(),
16385
- slotByteLength: number().int(),
16386
- segmentBytes: number().int(),
16387
- budgetMb: number().int(),
16388
- framesWritten: number().int(),
16389
- getFrameHits: number().int(),
16390
- getFrameMisses: number().int()
16391
- });
16392
16289
  var decoderCapability = {
16393
16290
  name: "decoder",
16394
16291
  scope: "system",
16395
16292
  mode: "singleton",
16396
16293
  preferredProvider: "decoder-nodeav",
16397
16294
  methods: {
16398
- supportsCodec: method(object({ codec: string() }), boolean()),
16399
16295
  getInfo: method(_void(), object({
16400
16296
  id: string(),
16401
16297
  name: string(),
16402
- isPullMode: boolean().optional(),
16403
- priority: number().optional(),
16404
16298
  hwaccel: string().optional(),
16405
16299
  probedBestHwaccel: string().optional()
16406
16300
  })),
16407
- createSession: method(DecoderSessionConfigSchema, object({
16408
- sessionId: string(),
16409
- nodeId: string()
16410
- })),
16411
- destroySession: method(object({ sessionId: string() }), _void()),
16412
- pushPacket: method(object({
16413
- sessionId: string(),
16414
- packet: EncodedPacketSchema
16415
- }), _void()),
16416
- openStream: method(object({
16417
- sessionId: string(),
16418
- url: string()
16419
- }), _void()),
16420
- pullFrames: method(object({
16421
- sessionId: string(),
16422
- maxCount: number().default(1),
16423
- waitMs: number().optional()
16424
- }), array(DecodedFrameSchema)),
16425
- pullHandles: method(object({
16426
- sessionId: string(),
16427
- maxCount: number().default(1),
16428
- waitMs: number().optional()
16429
- }), array(FrameHandleSchema)),
16430
- getFrame: method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()),
16431
- getShmStats: method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()),
16432
- updateConfig: method(object({
16433
- sessionId: string(),
16434
- config: DecoderSessionConfigSchema.partial()
16435
- }), _void()),
16436
- getStats: method(object({ sessionId: string() }), DecoderStatsSchema),
16437
- listActiveSessions: method(_void(), array(object({
16438
- sessionId: string(),
16439
- codec: string(),
16440
- outputFormat: string(),
16441
- createdAtMs: number()
16442
- })).readonly()),
16443
16301
  /**
16444
16302
  * Re-run the host platform-probe for the decoder's hwaccel backend
16445
16303
  * and write the detected value into the addon's own global
@@ -26044,8 +25902,8 @@ function flattenHydratedView(view, wanted) {
26044
25902
  var CLUSTER_STEP_SETTING_FIELDS = [{
26045
25903
  stepId: "face-embedding",
26046
25904
  key: "minLandmarkFaceSize",
26047
- label: "Min face size for recognition (detection px)",
26048
- description: "Refuse to embed a face smaller than this IN THE DETECTION FRAME. Applies to every node — the enrolled gallery is one index, and two admission floors would fill it from two policies. 0 disables the gate.",
25905
+ label: "Min face size to embed (detection-frame px)",
25906
+ description: "Faces smaller than this in the small frame the detector sees are not embedded, so they can never be recognised. Below it the face cannot be aligned reliably and a bad embedding matches everyone. Same value on every node. 0 = no limit.",
26049
25907
  type: "slider",
26050
25908
  min: 0,
26051
25909
  max: 64,
@@ -28730,7 +28588,7 @@ var FrameRefSchema = object({
28730
28588
  timestamp: number(),
28731
28589
  capturedAt: number().optional()
28732
28590
  });
28733
- var ModelFormatSchema$1 = _enum([
28591
+ var ModelFormatSchema$2 = _enum([
28734
28592
  "onnx",
28735
28593
  "coreml",
28736
28594
  "openvino",
@@ -28748,7 +28606,7 @@ var PipelineSlotSchema = _enum([
28748
28606
  var PipelineEngineChoiceSchema = object({
28749
28607
  runtime: literal("python"),
28750
28608
  backend: string(),
28751
- format: ModelFormatSchema$1,
28609
+ format: ModelFormatSchema$2,
28752
28610
  device: string().optional()
28753
28611
  });
28754
28612
  /**
@@ -28787,28 +28645,10 @@ var PipelineDefaultStepSchema = lazy(() => object({
28787
28645
  group: string().optional(),
28788
28646
  settings: record(string(), unknown()).optional()
28789
28647
  }));
28790
- var PipelineTemplateStepSchema = lazy(() => object({
28791
- addonId: string(),
28792
- enabled: boolean(),
28793
- modelId: string(),
28794
- children: array(PipelineTemplateStepSchema).readonly(),
28795
- settings: record(string(), unknown()).optional()
28796
- }));
28797
- var PipelineTemplateSchema$1 = object({
28798
- id: string(),
28799
- name: string(),
28800
- createdAt: string(),
28801
- updatedAt: string(),
28802
- engine: PipelineEngineChoiceSchema,
28803
- steps: array(PipelineTemplateStepSchema).readonly()
28804
- });
28805
28648
  var PipelineModelOptionSchema = object({
28806
28649
  id: string(),
28807
28650
  name: string(),
28808
- formats: record(string(), object({
28809
- downloaded: boolean(),
28810
- sizeMB: number()
28811
- })),
28651
+ formats: record(string(), PipelineModelFormatStatusSchema),
28812
28652
  group: ModelVariantGroupSchema.optional(),
28813
28653
  legacy: boolean().optional(),
28814
28654
  provider: ModelProviderIdSchema.optional(),
@@ -29023,6 +28863,32 @@ var pipelineExecutorCapability = {
29023
28863
  auth: "admin"
29024
28864
  }),
29025
28865
  /**
28866
+ * Auto tune (D745): the MODEL-BOUND thresholds (`bindsToModel` keys of
28867
+ * the object-detection root, and their binding keys) stored in THIS node's
28868
+ * per-camera detector settings — and, unless `dryRun`, remove them so the
28869
+ * running model's own defaults apply. Every other key of a camera's store
28870
+ * is kept. `nodeId` is the ROUTING key. `deviceIds` absent ⇒ every camera
28871
+ * with a store. A camera whose store could not be read is `refused`, never
28872
+ * reported as clean.
28873
+ */
28874
+ clearModelBoundDeviceOverrides: method(object({
28875
+ nodeId: string(),
28876
+ deviceIds: array(number()).readonly().optional(),
28877
+ dryRun: boolean()
28878
+ }), object({
28879
+ entries: array(object({
28880
+ deviceId: number(),
28881
+ keys: array(string()).readonly()
28882
+ })).readonly(),
28883
+ refused: array(object({
28884
+ deviceId: number(),
28885
+ reason: string()
28886
+ })).readonly()
28887
+ }), {
28888
+ kind: "mutation",
28889
+ auth: "admin"
28890
+ }),
28891
+ /**
29026
28892
  * Which of THIS node's inference devices the executor currently refuses,
29027
28893
  * and why. `nodeId` is the ROUTING key (stripped by the generated router).
29028
28894
  *
@@ -29100,29 +28966,17 @@ var pipelineExecutorCapability = {
29100
28966
  steps: array(PipelineStepInputSchema),
29101
28967
  deviceKey: string().optional()
29102
28968
  }), PipelineValidationResultSchema),
29103
- listTemplates: method(_void(), array(PipelineTemplateSchema$1).readonly()),
29104
- saveTemplate: method(object({
29105
- name: string(),
29106
- steps: array(PipelineTemplateStepSchema).readonly(),
29107
- engine: PipelineEngineChoiceSchema
29108
- }), PipelineTemplateSchema$1, { kind: "mutation" }),
29109
- updateTemplate: method(object({
29110
- id: string(),
29111
- name: string().optional(),
29112
- steps: array(PipelineTemplateStepSchema).readonly().optional()
29113
- }), PipelineTemplateSchema$1, { kind: "mutation" }),
29114
- deleteTemplate: method(object({ id: string() }), _void(), { kind: "mutation" }),
29115
28969
  getCapabilities: method(_void(), InferenceCapabilitiesBridge),
29116
28970
  getAddonModels: method(object({ addonId: string() }), ModelAvailabilityListBridge),
29117
28971
  downloadModel: method(object({
29118
28972
  addonId: string(),
29119
28973
  modelId: string(),
29120
- format: ModelFormatSchema$1
28974
+ format: ModelFormatSchema$2
29121
28975
  }), DownloadModelResultSchema, { kind: "mutation" }),
29122
28976
  deleteModel: method(object({
29123
28977
  addonId: string(),
29124
28978
  modelId: string(),
29125
- format: ModelFormatSchema$1
28979
+ format: ModelFormatSchema$2
29126
28980
  }), object({ success: literal(true) }), { kind: "mutation" }),
29127
28981
  /**
29128
28982
  * Stateless single-frame execution. Callers (runner, benchmark) pass
@@ -29368,6 +29222,375 @@ var pipelineExecutorCapability = {
29368
29222
  getDetectionConfigSchema: method(_void(), ConfigUISchemaNullableBridge)
29369
29223
  }
29370
29224
  };
29225
+ /**
29226
+ * The wire shapes of the Auto tune plan and apply (D745), used by the
29227
+ * `pipeline-orchestrator` cap. The recommender's own types
29228
+ * (`recommend.ts`) are the TS face of the same data; these
29229
+ * schemas are what crosses the cap boundary.
29230
+ */
29231
+ var ModelFormatSchema$1 = _enum(MODEL_FORMATS);
29232
+ /** The operator's range for it. */
29233
+ var MIN_SESSIONS_PER_DEVICE_RANGE = {
29234
+ min: 1,
29235
+ max: 8
29236
+ };
29237
+ var HardwareClassIdSchema = _enum([
29238
+ "intel-core-ultra",
29239
+ "intel-n-series",
29240
+ "apple-m-base",
29241
+ "apple-m-pro",
29242
+ "unknown"
29243
+ ]);
29244
+ var AcceleratorKindSchema = _enum([
29245
+ "intel-npu",
29246
+ "intel-igpu",
29247
+ "x86-cpu",
29248
+ "arm-cpu",
29249
+ "apple-ane",
29250
+ "coral"
29251
+ ]);
29252
+ var RecommendationReasonSchema = discriminatedUnion("kind", [
29253
+ object({
29254
+ kind: literal("capacity"),
29255
+ sessions: number(),
29256
+ minSessions: number()
29257
+ }),
29258
+ object({
29259
+ kind: literal("tie-faster"),
29260
+ over: string(),
29261
+ recallDelta: number()
29262
+ }),
29263
+ object({
29264
+ kind: literal("stepped-down"),
29265
+ from: string(),
29266
+ to: string(),
29267
+ limitedBy: string()
29268
+ }),
29269
+ object({
29270
+ kind: literal("no-fit-lightest"),
29271
+ sessions: number(),
29272
+ minSessions: number()
29273
+ }),
29274
+ object({
29275
+ kind: literal("derived-latency"),
29276
+ modelId: string()
29277
+ }),
29278
+ object({ kind: literal("cpu-device") }),
29279
+ object({ kind: literal("coral-untouched") }),
29280
+ object({ kind: literal("device-disabled") }),
29281
+ object({ kind: literal("device-unavailable") }),
29282
+ object({ kind: literal("node-offline") }),
29283
+ object({ kind: literal("no-hardware-facts") }),
29284
+ object({
29285
+ kind: literal("no-measured-data"),
29286
+ hardwareClass: HardwareClassIdSchema
29287
+ }),
29288
+ object({
29289
+ kind: literal("no-family-build"),
29290
+ format: ModelFormatSchema$1
29291
+ })
29292
+ ]);
29293
+ var DeviceModelChoiceSchema = object({
29294
+ modelId: string(),
29295
+ p50Ms: number(),
29296
+ fps: number(),
29297
+ measured: boolean(),
29298
+ /** Parallel sessions at the camera rate with the headroom kept free: ⌊fps × (1 − headroom) / camera fps⌋. */
29299
+ capacitySessions: number(),
29300
+ personRecall: number()
29301
+ });
29302
+ var DeviceRecommendationSchema = object({
29303
+ deviceKey: string(),
29304
+ accelerator: AcceleratorKindSchema.nullable(),
29305
+ enabled: boolean(),
29306
+ available: boolean(),
29307
+ chosen: DeviceModelChoiceSchema.nullable(),
29308
+ reasons: array(RecommendationReasonSchema).readonly()
29309
+ });
29310
+ var NodeRecommendationSchema = object({
29311
+ nodeId: string(),
29312
+ reachable: boolean(),
29313
+ hardwareClass: HardwareClassIdSchema.nullable(),
29314
+ cpuModel: string().nullable(),
29315
+ skipped: boolean(),
29316
+ acceleratorModelId: string().nullable(),
29317
+ devices: array(DeviceRecommendationSchema).readonly(),
29318
+ reasons: array(RecommendationReasonSchema).readonly()
29319
+ });
29320
+ var ModelPinChangeSchema = object({
29321
+ stepId: string(),
29322
+ before: string().nullable(),
29323
+ after: string().nullable()
29324
+ });
29325
+ var NodeDeviceChangeSchema = object({
29326
+ nodeId: string(),
29327
+ deviceKey: string(),
29328
+ madeExplicit: boolean(),
29329
+ modelPins: array(ModelPinChangeSchema).readonly(),
29330
+ thresholds: array(object({
29331
+ stepId: string(),
29332
+ keys: array(string()).readonly()
29333
+ })).readonly()
29334
+ });
29335
+ var CameraOverrideClearSchema = object({
29336
+ deviceId: number(),
29337
+ source: _enum(["step-override", "wholesale"]),
29338
+ nodeId: string(),
29339
+ deviceKey: string().nullable(),
29340
+ stepId: string(),
29341
+ modelIdBefore: string().nullable(),
29342
+ keys: array(string()).readonly()
29343
+ });
29344
+ var DetectorStoreClearSchema = object({
29345
+ deviceId: number(),
29346
+ keys: array(string()).readonly()
29347
+ });
29348
+ var AutoTuneWarningSchema = discriminatedUnion("kind", [
29349
+ object({
29350
+ kind: literal("detector-store-cluster-wide"),
29351
+ skippedNodes: array(string()).readonly()
29352
+ }),
29353
+ object({
29354
+ kind: literal("detector-store-unreadable"),
29355
+ error: string()
29356
+ }),
29357
+ object({
29358
+ kind: literal("coral-enabled"),
29359
+ nodeId: string(),
29360
+ deviceKey: string()
29361
+ })
29362
+ ]);
29363
+ var AutoTuneOptionsSchema = object({
29364
+ /** Share of each accelerator's throughput kept free (0.3–0.5). */
29365
+ headroom: number().min(.3).max(.5).default(.4),
29366
+ /**
29367
+ * The least number of parallel sessions every device must sustain at the
29368
+ * camera rate with the headroom kept free (D755). The most accurate model
29369
+ * that reaches it wins.
29370
+ */
29371
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
29372
+ });
29373
+ var AutoTunePlanSchema = object({
29374
+ /** Hash of everything the apply will write — the apply refuses a different one. */
29375
+ planHash: string(),
29376
+ family: literal("yolov9"),
29377
+ headroom: number(),
29378
+ minSessionsPerDevice: number(),
29379
+ /** The detection rate a session is counted at (the fastest camera running the pipeline root). */
29380
+ cameraFps: number(),
29381
+ generatedAt: number(),
29382
+ nodes: array(NodeRecommendationSchema).readonly(),
29383
+ nodeChanges: array(NodeDeviceChangeSchema).readonly(),
29384
+ cameraClears: array(CameraOverrideClearSchema).readonly(),
29385
+ detectorStoreClears: array(DetectorStoreClearSchema).readonly(),
29386
+ warnings: array(AutoTuneWarningSchema).readonly()
29387
+ });
29388
+ var AutoTuneApplyInputSchema = object({
29389
+ planHash: string(),
29390
+ headroom: number().min(.3).max(.5).default(.4),
29391
+ minSessionsPerDevice: number().int().min(MIN_SESSIONS_PER_DEVICE_RANGE.min).max(MIN_SESSIONS_PER_DEVICE_RANGE.max).default(2)
29392
+ });
29393
+ var AutoTunePhaseResultSchema = object({
29394
+ phase: _enum([
29395
+ "download",
29396
+ "camera-overrides",
29397
+ "detector-thresholds",
29398
+ "node-models",
29399
+ "redispatch"
29400
+ ]),
29401
+ ok: boolean(),
29402
+ detail: string()
29403
+ });
29404
+ var AutoTuneApplyResultSchema = discriminatedUnion("kind", [
29405
+ object({
29406
+ kind: literal("applied"),
29407
+ planHash: string(),
29408
+ phases: array(AutoTunePhaseResultSchema).readonly()
29409
+ }),
29410
+ object({
29411
+ kind: literal("aborted"),
29412
+ phases: array(AutoTunePhaseResultSchema).readonly()
29413
+ }),
29414
+ object({
29415
+ kind: literal("stale"),
29416
+ plan: AutoTunePlanSchema
29417
+ }),
29418
+ object({
29419
+ kind: literal("refused"),
29420
+ reason: _enum(["apply-in-progress"])
29421
+ })
29422
+ ]);
29423
+ /**
29424
+ * Wire shapes of the Load balancing surface (D748): the session placement
29425
+ * policy, the atomic share write, the observed placement statistics, the
29426
+ * hardware share suggestion and the stale device pins.
29427
+ */
29428
+ /**
29429
+ * How a new detection session picks its node and device.
29430
+ * - `least-loaded` — the historical rule: lowest `attached / weight`, a
29431
+ * constant node order at a tie (D37). An idle node always ties at 0, so a
29432
+ * weight only bites once a node already holds a session.
29433
+ * - `share` — the share of PARALLEL sessions is held to the weights, and a
29434
+ * full or drowning node yields to a free one (D748).
29435
+ */
29436
+ var SessionPlacementPolicySchema = _enum(["least-loaded", "share"]);
29437
+ var LoadBalancingSharesInputSchema = object({
29438
+ /** nodeId → share (> 0). A node left out keeps its weight. */
29439
+ nodes: record(string(), number().positive()).default({}),
29440
+ /** nodeId → deviceKey → share (> 0). A device left out keeps its weight. */
29441
+ devices: record(string(), record(string(), number().positive())).default({})
29442
+ });
29443
+ var PlacementStatsInputSchema = object({
29444
+ /** Window the observed shares are averaged over (default 1 h, max 24 h). */
29445
+ windowMs: number().int().min(6e4).max(1440 * 60 * 1e3).default(3600 * 1e3) });
29446
+ var PlacementDeviceStatsSchema = object({
29447
+ deviceKey: string(),
29448
+ /** Sessions running on this device now. */
29449
+ sessionsNow: number(),
29450
+ /** Sessions started on this device inside the window. */
29451
+ sessionsStarted: number(),
29452
+ /** Time-weighted share of the node's parallel sessions over the window (0–1); null = no session ran. */
29453
+ observedShare: number().nullable()
29454
+ });
29455
+ var PlacementNodeStatsSchema = object({
29456
+ nodeId: string(),
29457
+ sessionsNow: number(),
29458
+ sessionsStarted: number(),
29459
+ /** Time-weighted share of the cluster's parallel sessions over the window (0–1); null = none ran. */
29460
+ observedShare: number().nullable(),
29461
+ /** Most sessions this node ran at once inside the window. */
29462
+ peakSessions: number(),
29463
+ /** Sessions a share election handed elsewhere because this node was full or drowning. */
29464
+ yieldsAway: number(),
29465
+ devices: array(PlacementDeviceStatsSchema).readonly()
29466
+ });
29467
+ /** A camera's device pin that the session path cannot honour. */
29468
+ var StaleDevicePinSchema = object({
29469
+ deviceId: number(),
29470
+ deviceKey: string(),
29471
+ /** `disabled` — the key exists on some node but is not enabled anywhere; `absent` — no node has it. */
29472
+ reason: _enum(["disabled", "absent"])
29473
+ });
29474
+ var PlacementStatsSchema = object({
29475
+ policy: SessionPlacementPolicySchema,
29476
+ windowMs: number(),
29477
+ /** How much of the window was actually observed (the hub keeps it in memory). */
29478
+ observedForMs: number(),
29479
+ sessionsNow: number(),
29480
+ /** Most parallel sessions across the cluster inside the window. */
29481
+ clusterPeakSessions: number(),
29482
+ nodes: array(PlacementNodeStatsSchema).readonly(),
29483
+ stalePins: array(StaleDevicePinSchema).readonly()
29484
+ });
29485
+ /**
29486
+ * Where an automatic share's capacity comes from (D755).
29487
+ * - `hardware` — the static capacity of each device at its Auto tune model:
29488
+ * the measured latency table for the node's hardware class.
29489
+ * - `benchmark` — the node's own measured capacity (node benchmark results).
29490
+ * A node with no results falls back to `hardware`, and says so.
29491
+ */
29492
+ var CapacitySourceSchema = _enum(["hardware", "benchmark"]);
29493
+ /** Why a node under the `benchmark` source was sized from hardware instead. */
29494
+ var CapacityFallbackSchema = _enum(["no-benchmark-results", "partial-benchmark-results"]);
29495
+ var SuggestSharesInputSchema = object({
29496
+ headroom: number().min(.3).max(.5).default(.4),
29497
+ /** Default `hardware`. */
29498
+ source: CapacitySourceSchema.default("hardware")
29499
+ });
29500
+ var SuggestedDeviceShareSchema = object({
29501
+ deviceKey: string(),
29502
+ /** Share of the node (0–100, rounded). */
29503
+ share: number(),
29504
+ modelId: string().nullable(),
29505
+ /** Inferences per second at that model, from the measured table; null when sized by a benchmark. */
29506
+ fps: number().nullable(),
29507
+ /** False for a table cell derived from another chip; true for a measured cell or a benchmark. */
29508
+ measured: boolean(),
29509
+ /**
29510
+ * Advisory session cap: ⌊fps × (1 − headroom) / camera fps⌋ from the table,
29511
+ * or the benchmark's measured max sessions. Never enforced.
29512
+ */
29513
+ suggestedMaxSessions: number().nullable()
29514
+ });
29515
+ var SuggestedNodeShareSchema = object({
29516
+ nodeId: string(),
29517
+ /** Share of the cluster (0–100, rounded); null = node skipped (offline, unknown hardware). */
29518
+ share: number().nullable(),
29519
+ /** Parallel sessions the node sustains at the suggested models with the headroom kept free. */
29520
+ capacitySessions: number(),
29521
+ devices: array(SuggestedDeviceShareSchema).readonly(),
29522
+ skippedReason: string().nullable(),
29523
+ /** What this node's capacity was read from; null when the node is skipped. */
29524
+ capacitySource: CapacitySourceSchema.nullable(),
29525
+ /** Set when the `benchmark` source was asked for and this node used `hardware`. */
29526
+ capacityFallback: CapacityFallbackSchema.nullable()
29527
+ });
29528
+ var SuggestSharesResultSchema = object({
29529
+ headroom: number(),
29530
+ /** The source asked for; each node says what it actually used. */
29531
+ source: CapacitySourceSchema,
29532
+ /** Camera detection rate the capacity is counted in (the fastest camera's fps). */
29533
+ cameraFps: number(),
29534
+ /** The Auto tune capacity floor the models were picked at. */
29535
+ minSessionsPerDevice: number(),
29536
+ nodes: array(SuggestedNodeShareSchema).readonly()
29537
+ });
29538
+ /**
29539
+ * Where the node and device shares come from (D750, D755).
29540
+ * - `hardware` (default) — computed by the system from each node's static
29541
+ * capacity (its accelerators at their Auto tune models, from the measured
29542
+ * latency table), recomputed whenever a node or device joins, leaves, is
29543
+ * switched on or off, or changes model. No load input.
29544
+ * - `benchmark` — the same, from each node's measured capacity (node
29545
+ * benchmark results); a node without results falls back to `hardware`.
29546
+ * - `manual` — the operator's stored sliders.
29547
+ * Either way a node or device that cannot take sessions gives its share to
29548
+ * the others in proportion; the stored values are never rewritten for that.
29549
+ */
29550
+ var ShareSourceSchema = _enum([
29551
+ "hardware",
29552
+ "benchmark",
29553
+ "manual"
29554
+ ]);
29555
+ var SetShareSourceInputSchema = object({ source: ShareSourceSchema });
29556
+ object({
29557
+ nodes: record(string(), number()),
29558
+ devices: record(string(), record(string(), number()))
29559
+ });
29560
+ var EffectiveDeviceShareSchema = object({
29561
+ deviceKey: string(),
29562
+ /** Can take sessions now (enabled, available, can run the root). */
29563
+ eligible: boolean(),
29564
+ /** The share the source assigns, as a percentage of the node's devices. */
29565
+ configuredPct: number(),
29566
+ /** The share actually used, after an ineligible device's share went to the others. */
29567
+ effectivePct: number()
29568
+ });
29569
+ var EffectiveNodeShareSchema = object({
29570
+ nodeId: string(),
29571
+ eligible: boolean(),
29572
+ configuredPct: number(),
29573
+ effectivePct: number(),
29574
+ /** Automatic sources: what this node's share was computed from; null under `manual` or before the first answer. */
29575
+ capacitySource: CapacitySourceSchema.nullable(),
29576
+ /** Automatic `benchmark`: why this node used `hardware` instead. */
29577
+ capacityFallback: CapacityFallbackSchema.nullable(),
29578
+ devices: array(EffectiveDeviceShareSchema).readonly()
29579
+ });
29580
+ var EffectiveSharesSchema = object({
29581
+ source: ShareSourceSchema,
29582
+ policy: SessionPlacementPolicySchema,
29583
+ /** An automatic source with no computed answer yet: the stored sliders are used meanwhile. */
29584
+ autoPending: boolean(),
29585
+ /** When the automatic shares were last computed (ms epoch); null = never. */
29586
+ computedAt: number().nullable(),
29587
+ /** What made the system recompute them last. */
29588
+ trigger: string().nullable(),
29589
+ nodes: array(EffectiveNodeShareSchema).readonly(),
29590
+ /** The relative weights the election reads (before eligibility). */
29591
+ nodeWeights: record(string(), number()),
29592
+ deviceWeights: record(string(), record(string(), number()))
29593
+ });
29371
29594
  object({
29372
29595
  activeCameras: number(),
29373
29596
  throttledCameras: number(),
@@ -30285,14 +30508,15 @@ var RunnerLocalLoadSchema = object({
30285
30508
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
30286
30509
  * this runner currently has attached cameras on, so the orchestrator's second
30287
30510
  * `balance()` pass (over a node's devices) weights on real per-pool session
30288
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
30289
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
30511
+ * counts. Empty on single-device / pre-multi-device runners. There is no
30512
+ * per-device queue depth: the inference pool's backlog has no accessor, and
30513
+ * a field that always read 0 was removed rather than shown as a measurement
30514
+ * (D762).
30290
30515
  */
30291
30516
  devices: array(object({
30292
30517
  deviceKey: string(),
30293
30518
  backend: string(),
30294
- attachedCameras: number(),
30295
- queueDepthTotal: number()
30519
+ attachedCameras: number()
30296
30520
  })).default([]),
30297
30521
  /** Hardware capability flags reported by this node. */
30298
30522
  hardware: object({
@@ -30698,14 +30922,6 @@ var CameraPipelineConfigSchema = object({
30698
30922
  settings: record(string(), unknown()).readonly().optional()
30699
30923
  }).nullable().optional()
30700
30924
  });
30701
- var PipelineTemplateSchema = object({
30702
- id: string(),
30703
- name: string(),
30704
- description: string().optional(),
30705
- config: CameraPipelineConfigSchema,
30706
- createdAt: string(),
30707
- updatedAt: string()
30708
- });
30709
30925
  var DeviceStepConfigSchema = object({
30710
30926
  modelId: string().optional(),
30711
30927
  settings: record(string(), unknown()).optional(),
@@ -30779,9 +30995,10 @@ var CameraStepOverridePatchSchema = object({
30779
30995
  modelId: string().optional(),
30780
30996
  settings: record(string(), unknown()).readonly().optional()
30781
30997
  });
30998
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
30782
30999
  var CameraPipelineSettingsSchema = object({
30783
- pinnedAgentNodeId: string().optional(),
30784
31000
  stepToggles: record(string(), boolean()).optional(),
31001
+ stepSettings: CameraStepSettingsSchema.optional(),
30785
31002
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
30786
31003
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
30787
31004
  });
@@ -30814,7 +31031,10 @@ var PipelineAssignmentSchema = object({
30814
31031
  });
30815
31032
  /**
30816
31033
  * Per-agent load summary surfaced to the load balancer + dashboards.
30817
- * Aggregated from each runner's `getLocalLoad` cap call.
31034
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
31035
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
31036
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
31037
+ * the default pool IS that device (D745); the balancer's census stays raw.
30818
31038
  */
30819
31039
  var AgentLoadSummarySchema = object({
30820
31040
  nodeId: string(),
@@ -30903,26 +31123,27 @@ var CameraBrokerStatusSchema = object({
30903
31123
  width: number(),
30904
31124
  height: number(),
30905
31125
  subscribers: number(),
30906
- inFps: number(),
30907
- outFps: number()
31126
+ /**
31127
+ * Encoded packets/s the broker receives from the camera. null when the
31128
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
31129
+ * There is no output rate: decoding runs in the session decode workers, not
31130
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
31131
+ * camera and is not served (D758).
31132
+ */
31133
+ inFps: number().nullable()
30908
31134
  })).readonly(),
30909
31135
  webrtcSessions: number(),
30910
31136
  rtspRestream: boolean()
30911
31137
  });
30912
- /** Shared-memory ring statistics within the decoder block. */
30913
- var CameraDecoderShmSchema = object({
30914
- framesWritten: number(),
30915
- getFrameHits: number(),
30916
- getFrameMisses: number(),
30917
- budgetMb: number()
30918
- });
30919
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
30920
- var CameraDecoderStatusSchema = object({
30921
- nodeId: string(),
30922
- formats: array(string()).readonly(),
30923
- sessionCount: number(),
30924
- shm: CameraDecoderShmSchema
30925
- });
31138
+ /**
31139
+ * Decoder block — WHERE decode runs (co-located with the detection node by
31140
+ * construction); null when the camera has no detection node. It carries no
31141
+ * frame counter: the shared-memory plane whose counters it used to serve is
31142
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
31143
+ * from `detection.actualFps` (frames delivered to and processed by the
31144
+ * detector), never from a counter nothing feeds.
31145
+ */
31146
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
30926
31147
  /** Motion block — null when motion detection is not active for this device. */
30927
31148
  var CameraMotionStatusSchema = object({
30928
31149
  enabled: boolean(),
@@ -31428,18 +31649,6 @@ var pipelineOrchestratorCapability = {
31428
31649
  auth: "admin"
31429
31650
  }),
31430
31651
  /**
31431
- * Set a node's detection WEIGHT (relative share for the quota balancer).
31432
- * `null` clears it (back to the implicit weight 1). Unpinned cameras
31433
- * distribute proportionally to weight; `maxCameras` still clamps on top.
31434
- */
31435
- setAgentDetectWeight: method(object({
31436
- agentNodeId: string(),
31437
- detectWeight: number().positive().nullable()
31438
- }), object({ success: literal(true) }), {
31439
- kind: "mutation",
31440
- auth: "admin"
31441
- }),
31442
- /**
31443
31652
  * Set one node's placement CAPABILITIES — the per-node record that
31444
31653
  * replaced the four flat orchestrator lists (`enabledNodes`,
31445
31654
  * `enabledDecoderNodes`, `enabledAudioNodes`, `remoteSourcingNodes`).
@@ -31558,6 +31767,76 @@ var pipelineOrchestratorCapability = {
31558
31767
  kind: "mutation",
31559
31768
  auth: "admin"
31560
31769
  }),
31770
+ /**
31771
+ * Auto tune (D745, D755) — DRY RUN. Recommends ONE detector family
31772
+ * (YOLOv9) for the whole cluster from each node's static hardware class
31773
+ * and the measured latency table: per device, the most accurate model
31774
+ * that sustains at least `minSessionsPerDevice` parallel sessions at the
31775
+ * camera rate with the headroom kept free (no load input), and lists every write
31776
+ * the apply would make: the node model pins set, the enrichment pins and
31777
+ * model-bound thresholds removed (node level and per camera), and the
31778
+ * per-camera detector thresholds cleared. Writes nothing. Step
31779
+ * enablement, device enablement, pins, recording, notifications, zones and
31780
+ * rules are never part of it. `planHash` names exactly this diff.
31781
+ */
31782
+ planAutoTune: method(AutoTuneOptionsSchema, AutoTunePlanSchema, { auth: "admin" }),
31783
+ /**
31784
+ * Auto tune (D745) — APPLY the plan the operator confirmed. Recomputes
31785
+ * the plan and refuses (`stale`, with the fresh plan) when its hash is not
31786
+ * `planHash`, so what is written is exactly the confirmed diff. Offline
31787
+ * nodes are skipped; there is no undo.
31788
+ */
31789
+ applyAutoTune: method(AutoTuneApplyInputSchema, AutoTuneApplyResultSchema, {
31790
+ kind: "mutation",
31791
+ auth: "admin"
31792
+ }),
31793
+ /**
31794
+ * Load balancing (D748) — write node shares (`detectWeight`) and per-node
31795
+ * device shares (inference-device `weight`) in ONE atomic read-modify-write
31796
+ * of the agent settings — the only writer of node shares (the per-node
31797
+ * `setAgentDetectWeight` it replaced raced its siblings, one RMW each).
31798
+ * A node or device left out keeps its weight. Never changes the
31799
+ * `sessionPlacement` policy.
31800
+ */
31801
+ setLoadBalancingShares: method(LoadBalancingSharesInputSchema, object({ success: literal(true) }), {
31802
+ kind: "mutation",
31803
+ auth: "admin"
31804
+ }),
31805
+ /**
31806
+ * Load balancing (D748) — what placement actually did: per node and
31807
+ * device, sessions now, sessions started and the time-weighted share of
31808
+ * PARALLEL sessions over `windowMs`; the cluster's parallel peak; yields
31809
+ * a share election made; and every device pin the session path cannot
31810
+ * honour. In memory on the hub — a restart starts a new window.
31811
+ */
31812
+ getPlacementStats: method(PlacementStatsInputSchema, PlacementStatsSchema, { auth: "admin" }),
31813
+ /**
31814
+ * Load balancing (D748, D755) — shares proportional to each node's
31815
+ * capacity in parallel sessions: from the latency table at the models
31816
+ * Auto tune picks (`hardware`), or from node benchmark results
31817
+ * (`benchmark`, each node without results falling back to `hardware` and
31818
+ * saying so). The automatic shares are exactly this answer. Per device,
31819
+ * an ADVISORY session cap. Writes nothing.
31820
+ */
31821
+ suggestShares: method(SuggestSharesInputSchema, SuggestSharesResultSchema, { auth: "admin" }),
31822
+ /**
31823
+ * Load balancing (D750) — the shares placement reads now: the source
31824
+ * (automatic capacity shares or the operator's sliders), each node's and
31825
+ * device's configured share, and the effective share after a node or
31826
+ * device that cannot take sessions gave its share to the others.
31827
+ */
31828
+ getEffectiveShares: method(_void(), EffectiveSharesSchema, { auth: "admin" }),
31829
+ /**
31830
+ * Load balancing (D750, D755) — switch the share source: `hardware`
31831
+ * (automatic, from static capacity), `benchmark` (automatic, from node
31832
+ * benchmark results) or `manual`. Going manual seeds the sliders with the
31833
+ * current automatic shares (one atomic write), so nothing jumps; going
31834
+ * to an automatic source recomputes at once.
31835
+ */
31836
+ setShareSource: method(SetShareSourceInputSchema, object({ success: literal(true) }), {
31837
+ kind: "mutation",
31838
+ auth: "admin"
31839
+ }),
31561
31840
  /** Read one camera's settings. Null when never touched (inherits agent defaults fully). */
31562
31841
  getCameraSettings: method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()),
31563
31842
  /** Set or clear the 3-state toggle for one (camera, addonId). Pass `enabled: null` to clear and revert to agent default. */
@@ -31587,6 +31866,22 @@ var pipelineOrchestratorCapability = {
31587
31866
  kind: "mutation",
31588
31867
  auth: "admin"
31589
31868
  }),
31869
+ /**
31870
+ * Write or clear one step's CAMERA-WIDE settings (D754) — the fields this
31871
+ * camera overrides on every accelerator it runs on. `settings` is the
31872
+ * whole field-level bag for that step (only the overridden keys; a
31873
+ * model-bound field travels with its binding key); `null` or `{}` clears
31874
+ * it. Merged at dispatch between the node base and the per-(node,device)
31875
+ * override, key by key.
31876
+ */
31877
+ setCameraStepSettings: method(object({
31878
+ deviceId: number(),
31879
+ addonId: string(),
31880
+ settings: record(string(), unknown()).nullable()
31881
+ }), object({ success: literal(true) }), {
31882
+ kind: "mutation",
31883
+ auth: "admin"
31884
+ }),
31590
31885
  /** Write or clear the wholesale per-agent pipeline override. Pass `pipeline: null` to drop the override. */
31591
31886
  setCameraPipelineForAgent: method(object({
31592
31887
  deviceId: number(),
@@ -31702,33 +31997,7 @@ var pipelineOrchestratorCapability = {
31702
31997
  auth: "admin"
31703
31998
  }),
31704
31999
  /** Snapshot of the in-flight or last disk-wins fleet reconcile. */
31705
- getReconcileFromDiskStatus: method(_void(), DiskReconcileJobSchema, { auth: "admin" }),
31706
- /** List every template the operator has saved. */
31707
- listTemplates: method(_void(), array(PipelineTemplateSchema).readonly()),
31708
- /** Create a new named preset from a given CameraPipelineConfig. */
31709
- saveTemplate: method(object({
31710
- name: string(),
31711
- description: string().optional(),
31712
- config: CameraPipelineConfigSchema
31713
- }), PipelineTemplateSchema, {
31714
- kind: "mutation",
31715
- auth: "admin"
31716
- }),
31717
- /** Partial update of a template. Any omitted field is preserved. */
31718
- updateTemplate: method(object({
31719
- id: string(),
31720
- name: string().optional(),
31721
- description: string().optional(),
31722
- config: CameraPipelineConfigSchema.optional()
31723
- }), PipelineTemplateSchema, {
31724
- kind: "mutation",
31725
- auth: "admin"
31726
- }),
31727
- /** Remove a template. Camera configs that were seeded from it keep a copy. */
31728
- deleteTemplate: method(object({ id: string() }), object({ success: literal(true) }), {
31729
- kind: "mutation",
31730
- auth: "admin"
31731
- })
32000
+ getReconcileFromDiskStatus: method(_void(), DiskReconcileJobSchema, { auth: "admin" })
31732
32001
  }
31733
32002
  };
31734
32003
  /**
@@ -34700,8 +34969,6 @@ var WebrtcStreamChoiceSchema = object({
34700
34969
  ]).nullable(),
34701
34970
  /** Input FPS from the camera (null for adaptive). */
34702
34971
  inputFps: number().nullable(),
34703
- /** Decoded FPS (null for adaptive). */
34704
- decodeFps: number().nullable(),
34705
34972
  /** Bitrate in kbps (null for adaptive). */
34706
34973
  bitrateKbps: number().nullable()
34707
34974
  });
@@ -47727,6 +47994,16 @@ var zoneRulesCapability = {
47727
47994
  durability: "restored"
47728
47995
  };
47729
47996
  SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
47997
+ Object.freeze({
47998
+ person: .5,
47999
+ vehicle: .5,
48000
+ animal: .5
48001
+ });
48002
+ Object.freeze({
48003
+ person: .65,
48004
+ vehicle: .65,
48005
+ animal: .65
48006
+ });
47730
48007
  /**
47731
48008
  * Most specific first. Extending this list is how a new device kind becomes
47732
48009
  * gateable; nothing else needs to change.
@@ -50183,90 +50460,18 @@ Object.freeze({
50183
50460
  addonId: null,
50184
50461
  access: "create"
50185
50462
  },
50186
- "decoder.createSession": {
50187
- capName: "decoder",
50188
- capScope: "system",
50189
- addonId: null,
50190
- access: "view"
50191
- },
50192
- "decoder.destroySession": {
50193
- capName: "decoder",
50194
- capScope: "system",
50195
- addonId: null,
50196
- access: "delete"
50197
- },
50198
- "decoder.getFrame": {
50199
- capName: "decoder",
50200
- capScope: "system",
50201
- addonId: null,
50202
- access: "view"
50203
- },
50204
50463
  "decoder.getInfo": {
50205
50464
  capName: "decoder",
50206
50465
  capScope: "system",
50207
50466
  addonId: null,
50208
50467
  access: "view"
50209
50468
  },
50210
- "decoder.getShmStats": {
50211
- capName: "decoder",
50212
- capScope: "system",
50213
- addonId: null,
50214
- access: "view"
50215
- },
50216
- "decoder.getStats": {
50217
- capName: "decoder",
50218
- capScope: "system",
50219
- addonId: null,
50220
- access: "view"
50221
- },
50222
- "decoder.listActiveSessions": {
50223
- capName: "decoder",
50224
- capScope: "system",
50225
- addonId: null,
50226
- access: "view"
50227
- },
50228
- "decoder.openStream": {
50229
- capName: "decoder",
50230
- capScope: "system",
50231
- addonId: null,
50232
- access: "view"
50233
- },
50234
- "decoder.pullFrames": {
50235
- capName: "decoder",
50236
- capScope: "system",
50237
- addonId: null,
50238
- access: "view"
50239
- },
50240
- "decoder.pullHandles": {
50241
- capName: "decoder",
50242
- capScope: "system",
50243
- addonId: null,
50244
- access: "view"
50245
- },
50246
- "decoder.pushPacket": {
50247
- capName: "decoder",
50248
- capScope: "system",
50249
- addonId: null,
50250
- access: "view"
50251
- },
50252
50469
  "decoder.reprobeHwaccel": {
50253
50470
  capName: "decoder",
50254
50471
  capScope: "system",
50255
50472
  addonId: null,
50256
50473
  access: "create"
50257
50474
  },
50258
- "decoder.supportsCodec": {
50259
- capName: "decoder",
50260
- capScope: "system",
50261
- addonId: null,
50262
- access: "view"
50263
- },
50264
- "decoder.updateConfig": {
50265
- capName: "decoder",
50266
- capScope: "system",
50267
- addonId: null,
50268
- access: "view"
50269
- },
50270
50475
  "detectionPipeline.applyDeviceSettingsPatch": {
50271
50476
  capName: "detection-pipeline",
50272
50477
  capScope: "device",
@@ -53345,13 +53550,13 @@ Object.freeze({
53345
53550
  addonId: null,
53346
53551
  access: "delete"
53347
53552
  },
53348
- "pipelineExecutor.deleteModel": {
53553
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
53349
53554
  capName: "pipeline-executor",
53350
53555
  capScope: "system",
53351
53556
  addonId: null,
53352
53557
  access: "delete"
53353
53558
  },
53354
- "pipelineExecutor.deleteTemplate": {
53559
+ "pipelineExecutor.deleteModel": {
53355
53560
  capName: "pipeline-executor",
53356
53561
  capScope: "system",
53357
53562
  addonId: null,
@@ -53495,12 +53700,6 @@ Object.freeze({
53495
53700
  addonId: null,
53496
53701
  access: "view"
53497
53702
  },
53498
- "pipelineExecutor.listTemplates": {
53499
- capName: "pipeline-executor",
53500
- capScope: "system",
53501
- addonId: null,
53502
- access: "view"
53503
- },
53504
53703
  "pipelineExecutor.rearmInferenceDevice": {
53505
53704
  capName: "pipeline-executor",
53506
53705
  capScope: "system",
@@ -53525,12 +53724,6 @@ Object.freeze({
53525
53724
  addonId: null,
53526
53725
  access: "create"
53527
53726
  },
53528
- "pipelineExecutor.saveTemplate": {
53529
- capName: "pipeline-executor",
53530
- capScope: "system",
53531
- addonId: null,
53532
- access: "create"
53533
- },
53534
53727
  "pipelineExecutor.setVideoPipelineSteps": {
53535
53728
  capName: "pipeline-executor",
53536
53729
  capScope: "system",
@@ -53549,41 +53742,35 @@ Object.freeze({
53549
53742
  addonId: null,
53550
53743
  access: "create"
53551
53744
  },
53552
- "pipelineExecutor.updateTemplate": {
53553
- capName: "pipeline-executor",
53554
- capScope: "system",
53555
- addonId: null,
53556
- access: "create"
53557
- },
53558
53745
  "pipelineExecutor.validatePipeline": {
53559
53746
  capName: "pipeline-executor",
53560
53747
  capScope: "system",
53561
53748
  addonId: null,
53562
53749
  access: "view"
53563
53750
  },
53564
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
53751
+ "pipelineOrchestrator.applyAutoTune": {
53565
53752
  capName: "pipeline-orchestrator",
53566
53753
  capScope: "system",
53567
53754
  addonId: null,
53568
53755
  access: "create"
53569
53756
  },
53570
- "pipelineOrchestrator.assignAudio": {
53757
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
53571
53758
  capName: "pipeline-orchestrator",
53572
53759
  capScope: "system",
53573
53760
  addonId: null,
53574
53761
  access: "create"
53575
53762
  },
53576
- "pipelineOrchestrator.assignPipeline": {
53763
+ "pipelineOrchestrator.assignAudio": {
53577
53764
  capName: "pipeline-orchestrator",
53578
53765
  capScope: "system",
53579
53766
  addonId: null,
53580
53767
  access: "create"
53581
53768
  },
53582
- "pipelineOrchestrator.deleteTemplate": {
53769
+ "pipelineOrchestrator.assignPipeline": {
53583
53770
  capName: "pipeline-orchestrator",
53584
53771
  capScope: "system",
53585
53772
  addonId: null,
53586
- access: "delete"
53773
+ access: "create"
53587
53774
  },
53588
53775
  "pipelineOrchestrator.getAgentLoad": {
53589
53776
  capName: "pipeline-orchestrator",
@@ -53675,6 +53862,12 @@ Object.freeze({
53675
53862
  addonId: null,
53676
53863
  access: "view"
53677
53864
  },
53865
+ "pipelineOrchestrator.getEffectiveShares": {
53866
+ capName: "pipeline-orchestrator",
53867
+ capScope: "system",
53868
+ addonId: null,
53869
+ access: "view"
53870
+ },
53678
53871
  "pipelineOrchestrator.getGlobalMetrics": {
53679
53872
  capName: "pipeline-orchestrator",
53680
53873
  capScope: "system",
@@ -53711,19 +53904,19 @@ Object.freeze({
53711
53904
  addonId: null,
53712
53905
  access: "view"
53713
53906
  },
53714
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
53907
+ "pipelineOrchestrator.getPlacementStats": {
53715
53908
  capName: "pipeline-orchestrator",
53716
53909
  capScope: "system",
53717
53910
  addonId: null,
53718
53911
  access: "view"
53719
53912
  },
53720
- "pipelineOrchestrator.listAgentSettings": {
53913
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
53721
53914
  capName: "pipeline-orchestrator",
53722
53915
  capScope: "system",
53723
53916
  addonId: null,
53724
53917
  access: "view"
53725
53918
  },
53726
- "pipelineOrchestrator.listTemplates": {
53919
+ "pipelineOrchestrator.listAgentSettings": {
53727
53920
  capName: "pipeline-orchestrator",
53728
53921
  capScope: "system",
53729
53922
  addonId: null,
@@ -53735,6 +53928,12 @@ Object.freeze({
53735
53928
  addonId: null,
53736
53929
  access: "create"
53737
53930
  },
53931
+ "pipelineOrchestrator.planAutoTune": {
53932
+ capName: "pipeline-orchestrator",
53933
+ capScope: "system",
53934
+ addonId: null,
53935
+ access: "view"
53936
+ },
53738
53937
  "pipelineOrchestrator.rebalance": {
53739
53938
  capName: "pipeline-orchestrator",
53740
53939
  capScope: "system",
@@ -53777,12 +53976,6 @@ Object.freeze({
53777
53976
  addonId: null,
53778
53977
  access: "create"
53779
53978
  },
53780
- "pipelineOrchestrator.saveTemplate": {
53781
- capName: "pipeline-orchestrator",
53782
- capScope: "system",
53783
- addonId: null,
53784
- access: "create"
53785
- },
53786
53979
  "pipelineOrchestrator.setAgentCapabilities": {
53787
53980
  capName: "pipeline-orchestrator",
53788
53981
  capScope: "system",
@@ -53795,12 +53988,6 @@ Object.freeze({
53795
53988
  addonId: null,
53796
53989
  access: "create"
53797
53990
  },
53798
- "pipelineOrchestrator.setAgentDetectWeight": {
53799
- capName: "pipeline-orchestrator",
53800
- capScope: "system",
53801
- addonId: null,
53802
- access: "create"
53803
- },
53804
53991
  "pipelineOrchestrator.setAgentInferenceDevices": {
53805
53992
  capName: "pipeline-orchestrator",
53806
53993
  capScope: "system",
@@ -53837,6 +54024,12 @@ Object.freeze({
53837
54024
  addonId: null,
53838
54025
  access: "create"
53839
54026
  },
54027
+ "pipelineOrchestrator.setCameraStepSettings": {
54028
+ capName: "pipeline-orchestrator",
54029
+ capScope: "system",
54030
+ addonId: null,
54031
+ access: "create"
54032
+ },
53840
54033
  "pipelineOrchestrator.setCameraStepToggle": {
53841
54034
  capName: "pipeline-orchestrator",
53842
54035
  capScope: "system",
@@ -53855,25 +54048,37 @@ Object.freeze({
53855
54048
  addonId: null,
53856
54049
  access: "create"
53857
54050
  },
54051
+ "pipelineOrchestrator.setLoadBalancingShares": {
54052
+ capName: "pipeline-orchestrator",
54053
+ capScope: "system",
54054
+ addonId: null,
54055
+ access: "create"
54056
+ },
53858
54057
  "pipelineOrchestrator.setPipelineDevicePin": {
53859
54058
  capName: "pipeline-orchestrator",
53860
54059
  capScope: "system",
53861
54060
  addonId: null,
53862
54061
  access: "create"
53863
54062
  },
53864
- "pipelineOrchestrator.unassignAudio": {
54063
+ "pipelineOrchestrator.setShareSource": {
53865
54064
  capName: "pipeline-orchestrator",
53866
54065
  capScope: "system",
53867
54066
  addonId: null,
53868
54067
  access: "create"
53869
54068
  },
53870
- "pipelineOrchestrator.unassignPipeline": {
54069
+ "pipelineOrchestrator.suggestShares": {
54070
+ capName: "pipeline-orchestrator",
54071
+ capScope: "system",
54072
+ addonId: null,
54073
+ access: "view"
54074
+ },
54075
+ "pipelineOrchestrator.unassignAudio": {
53871
54076
  capName: "pipeline-orchestrator",
53872
54077
  capScope: "system",
53873
54078
  addonId: null,
53874
54079
  access: "create"
53875
54080
  },
53876
- "pipelineOrchestrator.updateTemplate": {
54081
+ "pipelineOrchestrator.unassignPipeline": {
53877
54082
  capName: "pipeline-orchestrator",
53878
54083
  capScope: "system",
53879
54084
  addonId: null,
@@ -55313,12 +55518,6 @@ Object.freeze({
55313
55518
  addonId: null,
55314
55519
  access: "view"
55315
55520
  },
55316
- "streamBroker.pullFrameHandles": {
55317
- capName: "stream-broker",
55318
- capScope: "system",
55319
- addonId: null,
55320
- access: "view"
55321
- },
55322
55521
  "streamBroker.regenerateRtspToken": {
55323
55522
  capName: "stream-broker",
55324
55523
  capScope: "system",
@@ -55385,12 +55584,6 @@ Object.freeze({
55385
55584
  addonId: null,
55386
55585
  access: "create"
55387
55586
  },
55388
- "streamBroker.subscribeFrames": {
55389
- capName: "stream-broker",
55390
- capScope: "system",
55391
- addonId: null,
55392
- access: "create"
55393
- },
55394
55587
  "streamBroker.unassignProfile": {
55395
55588
  capName: "stream-broker",
55396
55589
  capScope: "system",
@@ -55403,12 +55596,6 @@ Object.freeze({
55403
55596
  addonId: null,
55404
55597
  access: "create"
55405
55598
  },
55406
- "streamBroker.unsubscribeFrames": {
55407
- capName: "stream-broker",
55408
- capScope: "system",
55409
- addonId: null,
55410
- access: "create"
55411
- },
55412
55599
  "streamCatalog.getCatalog": {
55413
55600
  capName: "stream-catalog",
55414
55601
  capScope: "device",
@@ -58098,11 +58285,6 @@ Object.freeze({
58098
58285
  form: "single",
58099
58286
  optional: false
58100
58287
  }],
58101
- "decoder.createSession": [{
58102
- name: "deviceId",
58103
- form: "single",
58104
- optional: true
58105
- }],
58106
58288
  "detectionPipeline.applyDeviceSettingsPatch": [{
58107
58289
  name: "deviceId",
58108
58290
  form: "single",
@@ -59333,6 +59515,11 @@ Object.freeze({
59333
59515
  form: "single",
59334
59516
  optional: false
59335
59517
  }],
59518
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
59519
+ name: "deviceIds",
59520
+ form: "array",
59521
+ optional: true
59522
+ }],
59336
59523
  "pipelineExecutor.runPipeline": [{
59337
59524
  name: "deviceId",
59338
59525
  form: "single",
@@ -59438,6 +59625,11 @@ Object.freeze({
59438
59625
  form: "single",
59439
59626
  optional: false
59440
59627
  }],
59628
+ "pipelineOrchestrator.setCameraStepSettings": [{
59629
+ name: "deviceId",
59630
+ form: "single",
59631
+ optional: false
59632
+ }],
59441
59633
  "pipelineOrchestrator.setCameraStepToggle": [{
59442
59634
  name: "deviceId",
59443
59635
  form: "single",