@camstack/addon-post-analysis 1.2.340 → 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 (15) hide show
  1. package/dist/{clip-model-registry-BFG-v_BV.js → clip-model-registry-BOAYW16o.js} +668 -498
  2. package/dist/{clip-model-registry-vdRtJheb.mjs → clip-model-registry-BP-BF3CK.mjs} +668 -498
  3. package/dist/embedding-encoder/index.js +1 -1
  4. package/dist/embedding-encoder/index.mjs +1 -1
  5. package/dist/pipeline-analytics/_stub.js +2 -2
  6. package/dist/pipeline-analytics/{_virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-fwdB-r5e.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_pipeline_analytics_widgets-B2hR0cv6.mjs} +3 -3
  7. 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
  8. 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
  9. package/dist/pipeline-analytics/{hostInit-Dj8fTEiq.mjs → hostInit-BgudaQ7W.mjs} +3 -3
  10. package/dist/pipeline-analytics/index.js +14 -14
  11. package/dist/pipeline-analytics/index.mjs +14 -14
  12. package/dist/pipeline-analytics/remoteEntry.js +1 -1
  13. package/package.json +1 -1
  14. package/dist/pipeline-analytics/_virtual_mf___mfe_internal__addon_pipeline_analytics_widgets__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-BoenPUt7.mjs +0 -26
  15. 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.
@@ -11614,7 +11466,53 @@ var ModelFormatEntrySchema = object({
11614
11466
  /** Multi-file payload (directory members or sibling files). */
11615
11467
  files: array(string()).readonly().optional(),
11616
11468
  /** Runtime(s) that can use this format. If omitted, inferred from ModelFormat key */
11617
- 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()
11618
11516
  });
11619
11517
  /**
11620
11518
  * Extra file that must be downloaded alongside the model (e.g., labels JSON, dict.txt).
@@ -11823,6 +11721,35 @@ var ModelCatalogEntrySchema = object({
11823
11721
  */
11824
11722
  defaultConfidence: number().min(0).max(1).optional(),
11825
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
+ /**
11826
11753
  * When true, the executor produces a landmark-aligned crop (similarity warp
11827
11754
  * onto the canonical template) before this step runs, instead of a plain
11828
11755
  * axis-aligned bbox crop. Required for face-recognition embedders (ArcFace):
@@ -13952,13 +13879,6 @@ var BrokerRtspClientSchema = object({
13952
13879
  lastRtpAt: number(),
13953
13880
  bytesSent: number()
13954
13881
  });
13955
- var BrokerDecodedClientSchema = object({
13956
- tag: string(),
13957
- subscribedAt: number(),
13958
- maxFps: number(),
13959
- framesDelivered: number(),
13960
- framesDropped: number()
13961
- });
13962
13882
  var BrokerAudioClientSchema = object({
13963
13883
  tag: string(),
13964
13884
  subscribedAt: number(),
@@ -14050,7 +13970,6 @@ var BrokerEncodedClientSchema = object({
14050
13970
  });
14051
13971
  var BrokerClientsSchema = object({
14052
13972
  rtsp: array(BrokerRtspClientSchema).readonly(),
14053
- decoded: array(BrokerDecodedClientSchema).readonly(),
14054
13973
  audio: array(BrokerAudioClientSchema).readonly(),
14055
13974
  encoded: array(BrokerEncodedClientSchema).readonly(),
14056
13975
  pipeClients: number(),
@@ -14542,11 +14461,7 @@ var streamBrokerCapability = {
14542
14461
  listClients: method(object({ brokerId: string() }), BrokerClientsSchema),
14543
14462
  killClient: method(object({
14544
14463
  brokerId: string(),
14545
- channel: _enum([
14546
- "rtsp",
14547
- "decoded",
14548
- "audio"
14549
- ]),
14464
+ channel: _enum(["rtsp", "audio"]),
14550
14465
  handle: string()
14551
14466
  }), object({ killed: boolean() }), {
14552
14467
  kind: "mutation",
@@ -14645,31 +14560,6 @@ var streamBrokerCapability = {
14645
14560
  maxCount: number().int().positive().default(8)
14646
14561
  }), array(DecodedAudioChunkSchema).readonly()),
14647
14562
  unsubscribeAudioChunks: method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }),
14648
- /**
14649
- * ── Shared-memory frame plane (Phase 5 / D9) ──────────────────────
14650
- *
14651
- * The handle-based replacement for the live-object `IStreamBroker.
14652
- * onDecodedFrame` callback path. A consumer:
14653
- *
14654
- * 1. `subscribeFrames({ brokerId, format })` — the broker spins up
14655
- * (or reuses) a `frameSink: 'shm'` decoder session producing that
14656
- * `format` and returns a `subscriptionId`.
14657
- * 2. polls `pullFrameHandles({ subscriptionId, maxCount })` — drains
14658
- * zero-pixel `FrameHandle[]`; each handle is fed to a
14659
- * `FrameRingReader` that opens the named shm segment and reads the
14660
- * pixels back zero-copy.
14661
- * 3. `unsubscribeFrames({ subscriptionId })` on teardown.
14662
- *
14663
- * The broker keeps one shm ring per `(brokerId, format)` actually
14664
- * requested — no broker-side `sharp` conversion. fps throttling is
14665
- * implicit (latest-wins ring reads drop frames for a slow consumer).
14666
- */
14667
- subscribeFrames: method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }),
14668
- pullFrameHandles: method(object({
14669
- subscriptionId: string(),
14670
- maxCount: number().int().positive().default(4)
14671
- }), array(FrameHandleSchema).readonly()),
14672
- unsubscribeFrames: method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }),
14673
14563
  setPreBufferDuration: method(object({
14674
14564
  brokerId: string(),
14675
14565
  seconds: number().min(0).max(30)
@@ -16396,72 +16286,18 @@ id: union([string(), number()]) }), {
16396
16286
  })
16397
16287
  }
16398
16288
  };
16399
- /**
16400
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
16401
- * exposed via `decoder.getShmStats` so downstream consumers can
16402
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
16403
- */
16404
- var ShmRingStatsSchema = object({
16405
- sessionId: string(),
16406
- slotCount: number().int(),
16407
- slotByteLength: number().int(),
16408
- segmentBytes: number().int(),
16409
- budgetMb: number().int(),
16410
- framesWritten: number().int(),
16411
- getFrameHits: number().int(),
16412
- getFrameMisses: number().int()
16413
- });
16414
16289
  var decoderCapability = {
16415
16290
  name: "decoder",
16416
16291
  scope: "system",
16417
16292
  mode: "singleton",
16418
16293
  preferredProvider: "decoder-nodeav",
16419
16294
  methods: {
16420
- supportsCodec: method(object({ codec: string() }), boolean()),
16421
16295
  getInfo: method(_void(), object({
16422
16296
  id: string(),
16423
16297
  name: string(),
16424
- isPullMode: boolean().optional(),
16425
- priority: number().optional(),
16426
16298
  hwaccel: string().optional(),
16427
16299
  probedBestHwaccel: string().optional()
16428
16300
  })),
16429
- createSession: method(DecoderSessionConfigSchema, object({
16430
- sessionId: string(),
16431
- nodeId: string()
16432
- })),
16433
- destroySession: method(object({ sessionId: string() }), _void()),
16434
- pushPacket: method(object({
16435
- sessionId: string(),
16436
- packet: EncodedPacketSchema
16437
- }), _void()),
16438
- openStream: method(object({
16439
- sessionId: string(),
16440
- url: string()
16441
- }), _void()),
16442
- pullFrames: method(object({
16443
- sessionId: string(),
16444
- maxCount: number().default(1),
16445
- waitMs: number().optional()
16446
- }), array(DecodedFrameSchema)),
16447
- pullHandles: method(object({
16448
- sessionId: string(),
16449
- maxCount: number().default(1),
16450
- waitMs: number().optional()
16451
- }), array(FrameHandleSchema)),
16452
- getFrame: method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()),
16453
- getShmStats: method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()),
16454
- updateConfig: method(object({
16455
- sessionId: string(),
16456
- config: DecoderSessionConfigSchema.partial()
16457
- }), _void()),
16458
- getStats: method(object({ sessionId: string() }), DecoderStatsSchema),
16459
- listActiveSessions: method(_void(), array(object({
16460
- sessionId: string(),
16461
- codec: string(),
16462
- outputFormat: string(),
16463
- createdAtMs: number()
16464
- })).readonly()),
16465
16301
  /**
16466
16302
  * Re-run the host platform-probe for the decoder's hwaccel backend
16467
16303
  * and write the detected value into the addon's own global
@@ -26066,8 +25902,8 @@ function flattenHydratedView(view, wanted) {
26066
25902
  var CLUSTER_STEP_SETTING_FIELDS = [{
26067
25903
  stepId: "face-embedding",
26068
25904
  key: "minLandmarkFaceSize",
26069
- label: "Min face size for recognition (detection px)",
26070
- 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.",
26071
25907
  type: "slider",
26072
25908
  min: 0,
26073
25909
  max: 64,
@@ -28752,7 +28588,7 @@ var FrameRefSchema = object({
28752
28588
  timestamp: number(),
28753
28589
  capturedAt: number().optional()
28754
28590
  });
28755
- var ModelFormatSchema$1 = _enum([
28591
+ var ModelFormatSchema$2 = _enum([
28756
28592
  "onnx",
28757
28593
  "coreml",
28758
28594
  "openvino",
@@ -28770,7 +28606,7 @@ var PipelineSlotSchema = _enum([
28770
28606
  var PipelineEngineChoiceSchema = object({
28771
28607
  runtime: literal("python"),
28772
28608
  backend: string(),
28773
- format: ModelFormatSchema$1,
28609
+ format: ModelFormatSchema$2,
28774
28610
  device: string().optional()
28775
28611
  });
28776
28612
  /**
@@ -28809,28 +28645,10 @@ var PipelineDefaultStepSchema = lazy(() => object({
28809
28645
  group: string().optional(),
28810
28646
  settings: record(string(), unknown()).optional()
28811
28647
  }));
28812
- var PipelineTemplateStepSchema = lazy(() => object({
28813
- addonId: string(),
28814
- enabled: boolean(),
28815
- modelId: string(),
28816
- children: array(PipelineTemplateStepSchema).readonly(),
28817
- settings: record(string(), unknown()).optional()
28818
- }));
28819
- var PipelineTemplateSchema$1 = object({
28820
- id: string(),
28821
- name: string(),
28822
- createdAt: string(),
28823
- updatedAt: string(),
28824
- engine: PipelineEngineChoiceSchema,
28825
- steps: array(PipelineTemplateStepSchema).readonly()
28826
- });
28827
28648
  var PipelineModelOptionSchema = object({
28828
28649
  id: string(),
28829
28650
  name: string(),
28830
- formats: record(string(), object({
28831
- downloaded: boolean(),
28832
- sizeMB: number()
28833
- })),
28651
+ formats: record(string(), PipelineModelFormatStatusSchema),
28834
28652
  group: ModelVariantGroupSchema.optional(),
28835
28653
  legacy: boolean().optional(),
28836
28654
  provider: ModelProviderIdSchema.optional(),
@@ -29045,6 +28863,32 @@ var pipelineExecutorCapability = {
29045
28863
  auth: "admin"
29046
28864
  }),
29047
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
+ /**
29048
28892
  * Which of THIS node's inference devices the executor currently refuses,
29049
28893
  * and why. `nodeId` is the ROUTING key (stripped by the generated router).
29050
28894
  *
@@ -29122,29 +28966,17 @@ var pipelineExecutorCapability = {
29122
28966
  steps: array(PipelineStepInputSchema),
29123
28967
  deviceKey: string().optional()
29124
28968
  }), PipelineValidationResultSchema),
29125
- listTemplates: method(_void(), array(PipelineTemplateSchema$1).readonly()),
29126
- saveTemplate: method(object({
29127
- name: string(),
29128
- steps: array(PipelineTemplateStepSchema).readonly(),
29129
- engine: PipelineEngineChoiceSchema
29130
- }), PipelineTemplateSchema$1, { kind: "mutation" }),
29131
- updateTemplate: method(object({
29132
- id: string(),
29133
- name: string().optional(),
29134
- steps: array(PipelineTemplateStepSchema).readonly().optional()
29135
- }), PipelineTemplateSchema$1, { kind: "mutation" }),
29136
- deleteTemplate: method(object({ id: string() }), _void(), { kind: "mutation" }),
29137
28969
  getCapabilities: method(_void(), InferenceCapabilitiesBridge),
29138
28970
  getAddonModels: method(object({ addonId: string() }), ModelAvailabilityListBridge),
29139
28971
  downloadModel: method(object({
29140
28972
  addonId: string(),
29141
28973
  modelId: string(),
29142
- format: ModelFormatSchema$1
28974
+ format: ModelFormatSchema$2
29143
28975
  }), DownloadModelResultSchema, { kind: "mutation" }),
29144
28976
  deleteModel: method(object({
29145
28977
  addonId: string(),
29146
28978
  modelId: string(),
29147
- format: ModelFormatSchema$1
28979
+ format: ModelFormatSchema$2
29148
28980
  }), object({ success: literal(true) }), { kind: "mutation" }),
29149
28981
  /**
29150
28982
  * Stateless single-frame execution. Callers (runner, benchmark) pass
@@ -29390,6 +29222,375 @@ var pipelineExecutorCapability = {
29390
29222
  getDetectionConfigSchema: method(_void(), ConfigUISchemaNullableBridge)
29391
29223
  }
29392
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
+ });
29393
29594
  object({
29394
29595
  activeCameras: number(),
29395
29596
  throttledCameras: number(),
@@ -30307,14 +30508,15 @@ var RunnerLocalLoadSchema = object({
30307
30508
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
30308
30509
  * this runner currently has attached cameras on, so the orchestrator's second
30309
30510
  * `balance()` pass (over a node's devices) weights on real per-pool session
30310
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
30311
- * 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).
30312
30515
  */
30313
30516
  devices: array(object({
30314
30517
  deviceKey: string(),
30315
30518
  backend: string(),
30316
- attachedCameras: number(),
30317
- queueDepthTotal: number()
30519
+ attachedCameras: number()
30318
30520
  })).default([]),
30319
30521
  /** Hardware capability flags reported by this node. */
30320
30522
  hardware: object({
@@ -30720,14 +30922,6 @@ var CameraPipelineConfigSchema = object({
30720
30922
  settings: record(string(), unknown()).readonly().optional()
30721
30923
  }).nullable().optional()
30722
30924
  });
30723
- var PipelineTemplateSchema = object({
30724
- id: string(),
30725
- name: string(),
30726
- description: string().optional(),
30727
- config: CameraPipelineConfigSchema,
30728
- createdAt: string(),
30729
- updatedAt: string()
30730
- });
30731
30925
  var DeviceStepConfigSchema = object({
30732
30926
  modelId: string().optional(),
30733
30927
  settings: record(string(), unknown()).optional(),
@@ -30801,9 +30995,10 @@ var CameraStepOverridePatchSchema = object({
30801
30995
  modelId: string().optional(),
30802
30996
  settings: record(string(), unknown()).readonly().optional()
30803
30997
  });
30998
+ var CameraStepSettingsSchema = record(string(), record(string(), unknown()).readonly());
30804
30999
  var CameraPipelineSettingsSchema = object({
30805
- pinnedAgentNodeId: string().optional(),
30806
31000
  stepToggles: record(string(), boolean()).optional(),
31001
+ stepSettings: CameraStepSettingsSchema.optional(),
30807
31002
  stepOverridesByDevice: record(string(), record(string(), record(string(), CameraStepOverridePatchSchema))).optional(),
30808
31003
  pipelineByAgent: record(string(), CameraPipelineForAgentSchema).optional()
30809
31004
  });
@@ -30836,7 +31031,10 @@ var PipelineAssignmentSchema = object({
30836
31031
  });
30837
31032
  /**
30838
31033
  * Per-agent load summary surfaced to the load balancer + dashboards.
30839
- * 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.
30840
31038
  */
30841
31039
  var AgentLoadSummarySchema = object({
30842
31040
  nodeId: string(),
@@ -30925,26 +31123,27 @@ var CameraBrokerStatusSchema = object({
30925
31123
  width: number(),
30926
31124
  height: number(),
30927
31125
  subscribers: number(),
30928
- inFps: number(),
30929
- 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()
30930
31134
  })).readonly(),
30931
31135
  webrtcSessions: number(),
30932
31136
  rtspRestream: boolean()
30933
31137
  });
30934
- /** Shared-memory ring statistics within the decoder block. */
30935
- var CameraDecoderShmSchema = object({
30936
- framesWritten: number(),
30937
- getFrameHits: number(),
30938
- getFrameMisses: number(),
30939
- budgetMb: number()
30940
- });
30941
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
30942
- var CameraDecoderStatusSchema = object({
30943
- nodeId: string(),
30944
- formats: array(string()).readonly(),
30945
- sessionCount: number(),
30946
- shm: CameraDecoderShmSchema
30947
- });
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() });
30948
31147
  /** Motion block — null when motion detection is not active for this device. */
30949
31148
  var CameraMotionStatusSchema = object({
30950
31149
  enabled: boolean(),
@@ -31450,18 +31649,6 @@ var pipelineOrchestratorCapability = {
31450
31649
  auth: "admin"
31451
31650
  }),
31452
31651
  /**
31453
- * Set a node's detection WEIGHT (relative share for the quota balancer).
31454
- * `null` clears it (back to the implicit weight 1). Unpinned cameras
31455
- * distribute proportionally to weight; `maxCameras` still clamps on top.
31456
- */
31457
- setAgentDetectWeight: method(object({
31458
- agentNodeId: string(),
31459
- detectWeight: number().positive().nullable()
31460
- }), object({ success: literal(true) }), {
31461
- kind: "mutation",
31462
- auth: "admin"
31463
- }),
31464
- /**
31465
31652
  * Set one node's placement CAPABILITIES — the per-node record that
31466
31653
  * replaced the four flat orchestrator lists (`enabledNodes`,
31467
31654
  * `enabledDecoderNodes`, `enabledAudioNodes`, `remoteSourcingNodes`).
@@ -31580,6 +31767,76 @@ var pipelineOrchestratorCapability = {
31580
31767
  kind: "mutation",
31581
31768
  auth: "admin"
31582
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
+ }),
31583
31840
  /** Read one camera's settings. Null when never touched (inherits agent defaults fully). */
31584
31841
  getCameraSettings: method(object({ deviceId: number() }), CameraPipelineSettingsSchema.nullable()),
31585
31842
  /** Set or clear the 3-state toggle for one (camera, addonId). Pass `enabled: null` to clear and revert to agent default. */
@@ -31609,6 +31866,22 @@ var pipelineOrchestratorCapability = {
31609
31866
  kind: "mutation",
31610
31867
  auth: "admin"
31611
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
+ }),
31612
31885
  /** Write or clear the wholesale per-agent pipeline override. Pass `pipeline: null` to drop the override. */
31613
31886
  setCameraPipelineForAgent: method(object({
31614
31887
  deviceId: number(),
@@ -31724,33 +31997,7 @@ var pipelineOrchestratorCapability = {
31724
31997
  auth: "admin"
31725
31998
  }),
31726
31999
  /** Snapshot of the in-flight or last disk-wins fleet reconcile. */
31727
- getReconcileFromDiskStatus: method(_void(), DiskReconcileJobSchema, { auth: "admin" }),
31728
- /** List every template the operator has saved. */
31729
- listTemplates: method(_void(), array(PipelineTemplateSchema).readonly()),
31730
- /** Create a new named preset from a given CameraPipelineConfig. */
31731
- saveTemplate: method(object({
31732
- name: string(),
31733
- description: string().optional(),
31734
- config: CameraPipelineConfigSchema
31735
- }), PipelineTemplateSchema, {
31736
- kind: "mutation",
31737
- auth: "admin"
31738
- }),
31739
- /** Partial update of a template. Any omitted field is preserved. */
31740
- updateTemplate: method(object({
31741
- id: string(),
31742
- name: string().optional(),
31743
- description: string().optional(),
31744
- config: CameraPipelineConfigSchema.optional()
31745
- }), PipelineTemplateSchema, {
31746
- kind: "mutation",
31747
- auth: "admin"
31748
- }),
31749
- /** Remove a template. Camera configs that were seeded from it keep a copy. */
31750
- deleteTemplate: method(object({ id: string() }), object({ success: literal(true) }), {
31751
- kind: "mutation",
31752
- auth: "admin"
31753
- })
32000
+ getReconcileFromDiskStatus: method(_void(), DiskReconcileJobSchema, { auth: "admin" })
31754
32001
  }
31755
32002
  };
31756
32003
  /**
@@ -34722,8 +34969,6 @@ var WebrtcStreamChoiceSchema = object({
34722
34969
  ]).nullable(),
34723
34970
  /** Input FPS from the camera (null for adaptive). */
34724
34971
  inputFps: number().nullable(),
34725
- /** Decoded FPS (null for adaptive). */
34726
- decodeFps: number().nullable(),
34727
34972
  /** Bitrate in kbps (null for adaptive). */
34728
34973
  bitrateKbps: number().nullable()
34729
34974
  });
@@ -47749,6 +47994,16 @@ var zoneRulesCapability = {
47749
47994
  durability: "restored"
47750
47995
  };
47751
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
+ });
47752
48007
  /**
47753
48008
  * Most specific first. Extending this list is how a new device kind becomes
47754
48009
  * gateable; nothing else needs to change.
@@ -50205,90 +50460,18 @@ Object.freeze({
50205
50460
  addonId: null,
50206
50461
  access: "create"
50207
50462
  },
50208
- "decoder.createSession": {
50209
- capName: "decoder",
50210
- capScope: "system",
50211
- addonId: null,
50212
- access: "view"
50213
- },
50214
- "decoder.destroySession": {
50215
- capName: "decoder",
50216
- capScope: "system",
50217
- addonId: null,
50218
- access: "delete"
50219
- },
50220
- "decoder.getFrame": {
50221
- capName: "decoder",
50222
- capScope: "system",
50223
- addonId: null,
50224
- access: "view"
50225
- },
50226
50463
  "decoder.getInfo": {
50227
50464
  capName: "decoder",
50228
50465
  capScope: "system",
50229
50466
  addonId: null,
50230
50467
  access: "view"
50231
50468
  },
50232
- "decoder.getShmStats": {
50233
- capName: "decoder",
50234
- capScope: "system",
50235
- addonId: null,
50236
- access: "view"
50237
- },
50238
- "decoder.getStats": {
50239
- capName: "decoder",
50240
- capScope: "system",
50241
- addonId: null,
50242
- access: "view"
50243
- },
50244
- "decoder.listActiveSessions": {
50245
- capName: "decoder",
50246
- capScope: "system",
50247
- addonId: null,
50248
- access: "view"
50249
- },
50250
- "decoder.openStream": {
50251
- capName: "decoder",
50252
- capScope: "system",
50253
- addonId: null,
50254
- access: "view"
50255
- },
50256
- "decoder.pullFrames": {
50257
- capName: "decoder",
50258
- capScope: "system",
50259
- addonId: null,
50260
- access: "view"
50261
- },
50262
- "decoder.pullHandles": {
50263
- capName: "decoder",
50264
- capScope: "system",
50265
- addonId: null,
50266
- access: "view"
50267
- },
50268
- "decoder.pushPacket": {
50269
- capName: "decoder",
50270
- capScope: "system",
50271
- addonId: null,
50272
- access: "view"
50273
- },
50274
50469
  "decoder.reprobeHwaccel": {
50275
50470
  capName: "decoder",
50276
50471
  capScope: "system",
50277
50472
  addonId: null,
50278
50473
  access: "create"
50279
50474
  },
50280
- "decoder.supportsCodec": {
50281
- capName: "decoder",
50282
- capScope: "system",
50283
- addonId: null,
50284
- access: "view"
50285
- },
50286
- "decoder.updateConfig": {
50287
- capName: "decoder",
50288
- capScope: "system",
50289
- addonId: null,
50290
- access: "view"
50291
- },
50292
50475
  "detectionPipeline.applyDeviceSettingsPatch": {
50293
50476
  capName: "detection-pipeline",
50294
50477
  capScope: "device",
@@ -53367,13 +53550,13 @@ Object.freeze({
53367
53550
  addonId: null,
53368
53551
  access: "delete"
53369
53552
  },
53370
- "pipelineExecutor.deleteModel": {
53553
+ "pipelineExecutor.clearModelBoundDeviceOverrides": {
53371
53554
  capName: "pipeline-executor",
53372
53555
  capScope: "system",
53373
53556
  addonId: null,
53374
53557
  access: "delete"
53375
53558
  },
53376
- "pipelineExecutor.deleteTemplate": {
53559
+ "pipelineExecutor.deleteModel": {
53377
53560
  capName: "pipeline-executor",
53378
53561
  capScope: "system",
53379
53562
  addonId: null,
@@ -53517,12 +53700,6 @@ Object.freeze({
53517
53700
  addonId: null,
53518
53701
  access: "view"
53519
53702
  },
53520
- "pipelineExecutor.listTemplates": {
53521
- capName: "pipeline-executor",
53522
- capScope: "system",
53523
- addonId: null,
53524
- access: "view"
53525
- },
53526
53703
  "pipelineExecutor.rearmInferenceDevice": {
53527
53704
  capName: "pipeline-executor",
53528
53705
  capScope: "system",
@@ -53547,12 +53724,6 @@ Object.freeze({
53547
53724
  addonId: null,
53548
53725
  access: "create"
53549
53726
  },
53550
- "pipelineExecutor.saveTemplate": {
53551
- capName: "pipeline-executor",
53552
- capScope: "system",
53553
- addonId: null,
53554
- access: "create"
53555
- },
53556
53727
  "pipelineExecutor.setVideoPipelineSteps": {
53557
53728
  capName: "pipeline-executor",
53558
53729
  capScope: "system",
@@ -53571,41 +53742,35 @@ Object.freeze({
53571
53742
  addonId: null,
53572
53743
  access: "create"
53573
53744
  },
53574
- "pipelineExecutor.updateTemplate": {
53575
- capName: "pipeline-executor",
53576
- capScope: "system",
53577
- addonId: null,
53578
- access: "create"
53579
- },
53580
53745
  "pipelineExecutor.validatePipeline": {
53581
53746
  capName: "pipeline-executor",
53582
53747
  capScope: "system",
53583
53748
  addonId: null,
53584
53749
  access: "view"
53585
53750
  },
53586
- "pipelineOrchestrator.applyDeviceSettingsPatch": {
53751
+ "pipelineOrchestrator.applyAutoTune": {
53587
53752
  capName: "pipeline-orchestrator",
53588
53753
  capScope: "system",
53589
53754
  addonId: null,
53590
53755
  access: "create"
53591
53756
  },
53592
- "pipelineOrchestrator.assignAudio": {
53757
+ "pipelineOrchestrator.applyDeviceSettingsPatch": {
53593
53758
  capName: "pipeline-orchestrator",
53594
53759
  capScope: "system",
53595
53760
  addonId: null,
53596
53761
  access: "create"
53597
53762
  },
53598
- "pipelineOrchestrator.assignPipeline": {
53763
+ "pipelineOrchestrator.assignAudio": {
53599
53764
  capName: "pipeline-orchestrator",
53600
53765
  capScope: "system",
53601
53766
  addonId: null,
53602
53767
  access: "create"
53603
53768
  },
53604
- "pipelineOrchestrator.deleteTemplate": {
53769
+ "pipelineOrchestrator.assignPipeline": {
53605
53770
  capName: "pipeline-orchestrator",
53606
53771
  capScope: "system",
53607
53772
  addonId: null,
53608
- access: "delete"
53773
+ access: "create"
53609
53774
  },
53610
53775
  "pipelineOrchestrator.getAgentLoad": {
53611
53776
  capName: "pipeline-orchestrator",
@@ -53697,6 +53862,12 @@ Object.freeze({
53697
53862
  addonId: null,
53698
53863
  access: "view"
53699
53864
  },
53865
+ "pipelineOrchestrator.getEffectiveShares": {
53866
+ capName: "pipeline-orchestrator",
53867
+ capScope: "system",
53868
+ addonId: null,
53869
+ access: "view"
53870
+ },
53700
53871
  "pipelineOrchestrator.getGlobalMetrics": {
53701
53872
  capName: "pipeline-orchestrator",
53702
53873
  capScope: "system",
@@ -53733,19 +53904,19 @@ Object.freeze({
53733
53904
  addonId: null,
53734
53905
  access: "view"
53735
53906
  },
53736
- "pipelineOrchestrator.getReconcileFromDiskStatus": {
53907
+ "pipelineOrchestrator.getPlacementStats": {
53737
53908
  capName: "pipeline-orchestrator",
53738
53909
  capScope: "system",
53739
53910
  addonId: null,
53740
53911
  access: "view"
53741
53912
  },
53742
- "pipelineOrchestrator.listAgentSettings": {
53913
+ "pipelineOrchestrator.getReconcileFromDiskStatus": {
53743
53914
  capName: "pipeline-orchestrator",
53744
53915
  capScope: "system",
53745
53916
  addonId: null,
53746
53917
  access: "view"
53747
53918
  },
53748
- "pipelineOrchestrator.listTemplates": {
53919
+ "pipelineOrchestrator.listAgentSettings": {
53749
53920
  capName: "pipeline-orchestrator",
53750
53921
  capScope: "system",
53751
53922
  addonId: null,
@@ -53757,6 +53928,12 @@ Object.freeze({
53757
53928
  addonId: null,
53758
53929
  access: "create"
53759
53930
  },
53931
+ "pipelineOrchestrator.planAutoTune": {
53932
+ capName: "pipeline-orchestrator",
53933
+ capScope: "system",
53934
+ addonId: null,
53935
+ access: "view"
53936
+ },
53760
53937
  "pipelineOrchestrator.rebalance": {
53761
53938
  capName: "pipeline-orchestrator",
53762
53939
  capScope: "system",
@@ -53799,12 +53976,6 @@ Object.freeze({
53799
53976
  addonId: null,
53800
53977
  access: "create"
53801
53978
  },
53802
- "pipelineOrchestrator.saveTemplate": {
53803
- capName: "pipeline-orchestrator",
53804
- capScope: "system",
53805
- addonId: null,
53806
- access: "create"
53807
- },
53808
53979
  "pipelineOrchestrator.setAgentCapabilities": {
53809
53980
  capName: "pipeline-orchestrator",
53810
53981
  capScope: "system",
@@ -53817,12 +53988,6 @@ Object.freeze({
53817
53988
  addonId: null,
53818
53989
  access: "create"
53819
53990
  },
53820
- "pipelineOrchestrator.setAgentDetectWeight": {
53821
- capName: "pipeline-orchestrator",
53822
- capScope: "system",
53823
- addonId: null,
53824
- access: "create"
53825
- },
53826
53991
  "pipelineOrchestrator.setAgentInferenceDevices": {
53827
53992
  capName: "pipeline-orchestrator",
53828
53993
  capScope: "system",
@@ -53859,6 +54024,12 @@ Object.freeze({
53859
54024
  addonId: null,
53860
54025
  access: "create"
53861
54026
  },
54027
+ "pipelineOrchestrator.setCameraStepSettings": {
54028
+ capName: "pipeline-orchestrator",
54029
+ capScope: "system",
54030
+ addonId: null,
54031
+ access: "create"
54032
+ },
53862
54033
  "pipelineOrchestrator.setCameraStepToggle": {
53863
54034
  capName: "pipeline-orchestrator",
53864
54035
  capScope: "system",
@@ -53877,25 +54048,37 @@ Object.freeze({
53877
54048
  addonId: null,
53878
54049
  access: "create"
53879
54050
  },
54051
+ "pipelineOrchestrator.setLoadBalancingShares": {
54052
+ capName: "pipeline-orchestrator",
54053
+ capScope: "system",
54054
+ addonId: null,
54055
+ access: "create"
54056
+ },
53880
54057
  "pipelineOrchestrator.setPipelineDevicePin": {
53881
54058
  capName: "pipeline-orchestrator",
53882
54059
  capScope: "system",
53883
54060
  addonId: null,
53884
54061
  access: "create"
53885
54062
  },
53886
- "pipelineOrchestrator.unassignAudio": {
54063
+ "pipelineOrchestrator.setShareSource": {
53887
54064
  capName: "pipeline-orchestrator",
53888
54065
  capScope: "system",
53889
54066
  addonId: null,
53890
54067
  access: "create"
53891
54068
  },
53892
- "pipelineOrchestrator.unassignPipeline": {
54069
+ "pipelineOrchestrator.suggestShares": {
54070
+ capName: "pipeline-orchestrator",
54071
+ capScope: "system",
54072
+ addonId: null,
54073
+ access: "view"
54074
+ },
54075
+ "pipelineOrchestrator.unassignAudio": {
53893
54076
  capName: "pipeline-orchestrator",
53894
54077
  capScope: "system",
53895
54078
  addonId: null,
53896
54079
  access: "create"
53897
54080
  },
53898
- "pipelineOrchestrator.updateTemplate": {
54081
+ "pipelineOrchestrator.unassignPipeline": {
53899
54082
  capName: "pipeline-orchestrator",
53900
54083
  capScope: "system",
53901
54084
  addonId: null,
@@ -55335,12 +55518,6 @@ Object.freeze({
55335
55518
  addonId: null,
55336
55519
  access: "view"
55337
55520
  },
55338
- "streamBroker.pullFrameHandles": {
55339
- capName: "stream-broker",
55340
- capScope: "system",
55341
- addonId: null,
55342
- access: "view"
55343
- },
55344
55521
  "streamBroker.regenerateRtspToken": {
55345
55522
  capName: "stream-broker",
55346
55523
  capScope: "system",
@@ -55407,12 +55584,6 @@ Object.freeze({
55407
55584
  addonId: null,
55408
55585
  access: "create"
55409
55586
  },
55410
- "streamBroker.subscribeFrames": {
55411
- capName: "stream-broker",
55412
- capScope: "system",
55413
- addonId: null,
55414
- access: "create"
55415
- },
55416
55587
  "streamBroker.unassignProfile": {
55417
55588
  capName: "stream-broker",
55418
55589
  capScope: "system",
@@ -55425,12 +55596,6 @@ Object.freeze({
55425
55596
  addonId: null,
55426
55597
  access: "create"
55427
55598
  },
55428
- "streamBroker.unsubscribeFrames": {
55429
- capName: "stream-broker",
55430
- capScope: "system",
55431
- addonId: null,
55432
- access: "create"
55433
- },
55434
55599
  "streamCatalog.getCatalog": {
55435
55600
  capName: "stream-catalog",
55436
55601
  capScope: "device",
@@ -58120,11 +58285,6 @@ Object.freeze({
58120
58285
  form: "single",
58121
58286
  optional: false
58122
58287
  }],
58123
- "decoder.createSession": [{
58124
- name: "deviceId",
58125
- form: "single",
58126
- optional: true
58127
- }],
58128
58288
  "detectionPipeline.applyDeviceSettingsPatch": [{
58129
58289
  name: "deviceId",
58130
58290
  form: "single",
@@ -59355,6 +59515,11 @@ Object.freeze({
59355
59515
  form: "single",
59356
59516
  optional: false
59357
59517
  }],
59518
+ "pipelineExecutor.clearModelBoundDeviceOverrides": [{
59519
+ name: "deviceIds",
59520
+ form: "array",
59521
+ optional: true
59522
+ }],
59358
59523
  "pipelineExecutor.runPipeline": [{
59359
59524
  name: "deviceId",
59360
59525
  form: "single",
@@ -59460,6 +59625,11 @@ Object.freeze({
59460
59625
  form: "single",
59461
59626
  optional: false
59462
59627
  }],
59628
+ "pipelineOrchestrator.setCameraStepSettings": [{
59629
+ name: "deviceId",
59630
+ form: "single",
59631
+ optional: false
59632
+ }],
59463
59633
  "pipelineOrchestrator.setCameraStepToggle": [{
59464
59634
  name: "deviceId",
59465
59635
  form: "single",