@camstack/addon-osd-manager 0.1.185 → 0.1.187

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 (19) hide show
  1. package/dist/{MotionZonesSettings-DBooRvoC.mjs → MotionZonesSettings-DExh7cfG.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-BOI23HW8.mjs → PrivacyMaskSettings-D7DD3Bjn.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-Bh3b6fEU.mjs → SceneMonitorEditor-CSGICuxL.mjs} +3 -3
  4. package/dist/_stub.js +3700 -3402
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-CKsdRf-b.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-CqKqHB_X.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-xwBgquo5.mjs +26 -0
  7. package/dist/addon-osd-manager.css +1 -1
  8. package/dist/{hostInit-CBABPQis.mjs → hostInit-B0_eqBVt.mjs} +3 -3
  9. package/dist/index.js +41 -481
  10. package/dist/index.mjs +41 -481
  11. package/dist/{player-overlays-Do8k8gA2.mjs → player-overlays-BIS82ltZ.mjs} +1 -1
  12. package/dist/remoteEntry.js +1 -1
  13. package/dist/{responsive-yiWJoiT1.mjs → responsive-B3EaDJYd.mjs} +1 -1
  14. package/dist/{scene-monitor-copy-6bTPHwxW.mjs → scene-monitor-copy-b6ZWnJc9.mjs} +1 -1
  15. package/dist/{square-ClXZfZgc.mjs → square-DnMZ8-h0.mjs} +1 -1
  16. package/dist/{trash-2-Cm-45fYx.mjs → trash-2-Cd7WoJCB.mjs} +1 -1
  17. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-BfGWacqv.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CbqzvZt_.mjs} +1 -1
  18. package/package.json +1 -1
  19. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CTH5s3ZX.mjs +0 -26
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- //#region ../types/dist/event-category-BGmz_oxW.mjs
1
+ //#region ../types/dist/event-category-B_0XEcLF.mjs
2
2
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
3
3
  EventCategory["SystemBoot"] = "system.boot";
4
4
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -499,15 +499,6 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
499
499
  EventCategory["AgentWsDisconnected"] = "agent.ws.disconnected";
500
500
  EventCategory["AgentBackupActivated"] = "agent.backup.activated";
501
501
  EventCategory["OrchestrationSettingsUpdated"] = "orchestration.settings-updated";
502
- /**
503
- * Per-agent hwaccel preference changed (user override set, cleared, or
504
- * re-probed). Observability event — decoders pull the current pref at
505
- * `createSession`, so running sessions keep their current backend until
506
- * they rotate naturally (camera add/remove, stream restart). Future
507
- * work can wire a listener in stream-broker that force-rotates live
508
- * sessions; for now this event powers logs + admin-UI toast feedback.
509
- */
510
- EventCategory["PipelineAgentHwaccelChanged"] = "pipeline.agent-hwaccel-changed";
511
502
  EventCategory["MotionAnalysis"] = "detection.motion-analysis";
512
503
  /** All raw motion zones from CCL before minArea filter — for UI debug overlay. */
513
504
  EventCategory["MotionZonesRaw"] = "detection.motion-zones-raw";
@@ -5378,7 +5369,7 @@ var ZodIssueCode = {
5378
5369
  var ZodFirstPartyTypeKind;
5379
5370
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5380
5371
  //#endregion
5381
- //#region ../types/dist/sleep-DAJ9Er57.mjs
5372
+ //#region ../types/dist/sleep-BNeXenvr.mjs
5382
5373
  /**
5383
5374
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5384
5375
  * window to float samples (D455).
@@ -6744,32 +6735,12 @@ object({
6744
6735
  audioCodec: string().optional(),
6745
6736
  metadata: record(string(), unknown()).readonly().optional()
6746
6737
  });
6747
- var EncodedPacketSchema = object({
6748
- type: _enum(["video", "audio"]),
6749
- data: _instanceof(Uint8Array),
6750
- pts: number(),
6751
- dts: number(),
6752
- keyframe: boolean(),
6753
- codec: string()
6754
- });
6755
- var DecodedFrameSchema = object({
6756
- data: _instanceof(Uint8Array),
6757
- width: number(),
6758
- height: number(),
6759
- format: _enum([
6760
- "jpeg",
6761
- "rgb",
6762
- "bgr",
6763
- "yuv420",
6764
- "gray"
6765
- ]),
6766
- timestamp: number()
6767
- });
6768
6738
  /**
6769
6739
  * Wire schema for `FrameHandle` — a zero-pixel, serialisable reference to a
6770
6740
  * frame in a shared-memory ring (Phase 5 / D9). Mirrors the `FrameHandle` TS
6771
- * interface in `interfaces/frame-handle.ts` field-for-field so a decoder cap
6772
- * method (`pullHandles`) can carry handles over tRPC / Moleculer.
6741
+ * interface in `interfaces/frame-handle.ts` field-for-field so a cap method
6742
+ * (the runner's native-crop and pipeline-executor inputs) can carry handles
6743
+ * over tRPC / Moleculer.
6773
6744
  *
6774
6745
  * The `satisfies` assertion below pins this schema to the interface: if a
6775
6746
  * field is added to / removed from `FrameHandle` without a matching schema
@@ -6795,50 +6766,6 @@ var FrameHandleSchema = object({
6795
6766
  slotCount: number().int().positive()
6796
6767
  });
6797
6768
  /**
6798
- * Pixel format a frame-handle subscriber can request from the broker
6799
- * (Phase 5 / D9). The packed, raster subset of `FrameFormat` — the formats a
6800
- * `frameSink: 'shm'` decoder session can write into a `FrameRing` slot.
6801
- * `jpeg` is excluded: a variable-length stream is not a fixed-stride ring
6802
- * payload, and no decoded-frame consumer requests it over the shm plane.
6803
- */
6804
- var FrameHandleFormatSchema = _enum([
6805
- "rgb",
6806
- "bgr",
6807
- "yuv420",
6808
- "gray"
6809
- ]);
6810
- /**
6811
- * Input for `stream-broker.subscribeFrames` (Phase 5 / D9). A consumer asks the
6812
- * broker for a `FrameHandle` stream of one `format`; the broker maintains one
6813
- * shared-memory ring per `(brokerId, format)` actually requested, so a `gray`
6814
- * subscriber (motion) and an `rgb` subscriber (detection) each read the format
6815
- * they asked for with no broker-side conversion.
6816
- */
6817
- var SubscribeFramesInputSchema = object({
6818
- brokerId: string(),
6819
- format: FrameHandleFormatSchema,
6820
- /**
6821
- * Optional reader-side cadence hint in frames per second. The broker does
6822
- * NOT throttle — latest-wins ring reads drop frames implicitly for a slow
6823
- * consumer. The value is echoed back in `SubscribeFramesResult.maxFps` so
6824
- * the consumer can pace its own `pullFrameHandles` polling.
6825
- */
6826
- maxFps: number().positive().optional(),
6827
- /** Short caller-identity tag (`motion`, `detection`, …) for diagnostics. */
6828
- tag: string().optional()
6829
- });
6830
- /**
6831
- * Result of `stream-broker.subscribeFrames`. The consumer then polls
6832
- * `pullFrameHandles({ subscriptionId, maxCount })` and feeds each returned
6833
- * `FrameHandle` to a `FrameRingReader`.
6834
- */
6835
- var SubscribeFramesResultSchema = object({
6836
- /** Opaque id the consumer passes to `pullFrameHandles` / `unsubscribeFrames`. */
6837
- subscriptionId: string(),
6838
- /** Reader-side cadence hint (frames/s) — echoes `SubscribeFramesInput.maxFps`. */
6839
- maxFps: number().nonnegative()
6840
- });
6841
- /**
6842
6769
  * Wire schema for a decoded audio chunk (Phase 5 / D9). Mirrors the
6843
6770
  * `DecodedAudioChunk` TS interface in `interfaces/stream-broker.ts`: PCM
6844
6771
  * sample bytes plus the track parameters a consumer needs to interpret them.
@@ -6846,8 +6773,8 @@ var SubscribeFramesResultSchema = object({
6846
6773
  * Audio chunks are tiny (a ~500ms AudioCodecSession window is a few KB of
6847
6774
  * Float32 PCM), so unlike video frames they ship their bytes INLINE over
6848
6775
  * tRPC / Moleculer — no shared-memory plane. `data` is typed `Uint8Array`
6849
- * (the wire-serialisable supertype of `Buffer`) to match `DecodedFrameSchema`
6850
- * / `EncodedPacketSchema`'s precedent; a `Buffer` is assignable to it.
6776
+ * (the wire-serialisable supertype of `Buffer`); a `Buffer` is assignable to
6777
+ * it.
6851
6778
  */
6852
6779
  var AudioChunkFormatSchema = _enum(AUDIO_CHUNK_FORMATS);
6853
6780
  var DecodedAudioChunkSchema = object({
@@ -6865,11 +6792,10 @@ var DecodedAudioChunkSchema = object({
6865
6792
  format: AudioChunkFormatSchema.optional()
6866
6793
  });
6867
6794
  /**
6868
- * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). The
6869
- * handle-free, ship-bytes-inline analogue of `subscribeFrames`: a consumer
6870
- * asks the broker for the decoded audio-chunk stream of one broker; the
6871
- * broker keeps a per-subscription bounded FIFO queue the consumer drains via
6872
- * `pullAudioChunks`.
6795
+ * Input for `stream-broker.subscribeAudioChunks` (Phase 5 / D9). Audio ships
6796
+ * its bytes inline: a consumer asks the broker for the decoded audio-chunk
6797
+ * stream of one broker; the broker keeps a per-subscription bounded FIFO queue
6798
+ * the consumer drains via `pullAudioChunks`.
6873
6799
  */
6874
6800
  var SubscribeAudioChunksInputSchema = object({
6875
6801
  brokerId: string(),
@@ -6900,9 +6826,7 @@ var BrokerStatsSchema = object({
6900
6826
  "stopped"
6901
6827
  ]),
6902
6828
  inputFps: number(),
6903
- decodeFps: number(),
6904
6829
  encodedSubscribers: number(),
6905
- decodedSubscribers: number(),
6906
6830
  uptimeMs: number(),
6907
6831
  bitrateKbps: number(),
6908
6832
  idrIntervalMs: number(),
@@ -6915,14 +6839,6 @@ var BrokerStatsSchema = object({
6915
6839
  preBufferMs: number(),
6916
6840
  preBufferPackets: number(),
6917
6841
  /**
6918
- * Moleculer node id of the decoder provider currently servicing this
6919
- * stream's decoded subscribers. `null` until the deferred decoder is
6920
- * created (no decoded clients yet, or codec not detected). Surfaces the
6921
- * runtime decoder placement so the UI can show "Decoder: <agent>" without
6922
- * a separate cap call per broker.
6923
- */
6924
- decoderNodeId: string().nullable(),
6925
- /**
6926
6842
  * Detected audio track parameters from the RTSP DESCRIBE / SDP. `null`
6927
6843
  * when the stream has no audio track or the broker is in cold start.
6928
6844
  * `supported = false` means the codec was detected but the local
@@ -10356,70 +10272,6 @@ var StorageLocationDeclarationSchema = object({
10356
10272
  "backup"
10357
10273
  ]).optional()
10358
10274
  });
10359
- var DecoderStatsSchema = object({
10360
- inputFps: number(),
10361
- outputFps: number(),
10362
- avgDecodeTimeMs: number(),
10363
- droppedFrames: number(),
10364
- /**
10365
- * Pull-mode adaptive-fps telemetry (optional — only pull sessions run the
10366
- * lag-driven controller; push sessions omit these). `lagMs` is the EWMA of
10367
- * the decoder's real-time drift (rising = falling behind live); `adaptiveFps`
10368
- * is the current lag-throttled emit rate (≤ `effectiveFps` ceiling).
10369
- */
10370
- lagMs: number().optional(),
10371
- effectiveFps: number().optional(),
10372
- adaptiveFps: number().optional()
10373
- });
10374
- var DecoderSessionConfigSchema = object({
10375
- codec: string(),
10376
- maxFps: number().default(0),
10377
- outputFormat: _enum([
10378
- "jpeg",
10379
- "rgb",
10380
- "bgr",
10381
- "yuv420",
10382
- "gray"
10383
- ]).default("jpeg"),
10384
- scale: number().default(1),
10385
- width: number().optional(),
10386
- height: number().optional(),
10387
- /**
10388
- * Identifier of the camera this decoder session serves. Optional
10389
- * because the cap is generic (any caller could request decode), but
10390
- * stream-broker passes it so decoder logs include `deviceId` for
10391
- * per-camera filtering when diagnosing failures (e.g. node-av
10392
- * sendPacket errors on a single hung camera).
10393
- */
10394
- deviceId: number().int().nonnegative().optional(),
10395
- /**
10396
- * Free-form tag for log scoping. Stream-broker uses
10397
- * `broker:<deviceId>/<profile>`. Decoder session logger surfaces it
10398
- * on every line so `grep tag=broker:5/high` filters one camera
10399
- * profile cleanly.
10400
- */
10401
- tag: string().optional(),
10402
- /**
10403
- * Where the session delivers decoded frames (Phase 5 / D9):
10404
- *
10405
- * - `'callback'` (default) — the legacy pixel path: decoded frames are
10406
- * buffered as `DecodedFrame`s and drained via `pullFrames`.
10407
- * - `'shm'` — the shared-memory frame plane: decoded frames are written
10408
- * into an OS shared-memory ring and drained as zero-pixel
10409
- * `FrameHandle`s via `pullHandles`. A session is one mode or the
10410
- * other — `pullFrames` returns nothing for an `'shm'` session and
10411
- * `pullHandles` returns nothing for a `'callback'` session.
10412
- */
10413
- frameSink: _enum(["callback", "shm"]).default("callback"),
10414
- /**
10415
- * Per-camera decoder DEBUG facility. When `true`, a pull-mode session emits
10416
- * a throttled (~1Hz) structured `decoder debug` line (effective/adaptive fps,
10417
- * real-time lag, dropped-frame delta, avg decode time, hwaccel). Mirrors the
10418
- * stream-broker's `streamingDebug` gate — off by default so production logs
10419
- * stay quiet and the emit path pays zero per-frame cost when disabled.
10420
- */
10421
- debug: boolean().optional()
10422
- });
10423
10275
  /**
10424
10276
  * Per-component log CHANNELS — the gate a hot path consults, and the registry
10425
10277
  * an addon declares its channels in.
@@ -13023,13 +12875,6 @@ var BrokerRtspClientSchema = object({
13023
12875
  lastRtpAt: number(),
13024
12876
  bytesSent: number()
13025
12877
  });
13026
- var BrokerDecodedClientSchema = object({
13027
- tag: string(),
13028
- subscribedAt: number(),
13029
- maxFps: number(),
13030
- framesDelivered: number(),
13031
- framesDropped: number()
13032
- });
13033
12878
  var BrokerAudioClientSchema = object({
13034
12879
  tag: string(),
13035
12880
  subscribedAt: number(),
@@ -13121,7 +12966,6 @@ var BrokerEncodedClientSchema = object({
13121
12966
  });
13122
12967
  var BrokerClientsSchema = object({
13123
12968
  rtsp: array(BrokerRtspClientSchema).readonly(),
13124
- decoded: array(BrokerDecodedClientSchema).readonly(),
13125
12969
  audio: array(BrokerAudioClientSchema).readonly(),
13126
12970
  encoded: array(BrokerEncodedClientSchema).readonly(),
13127
12971
  pipeClients: number(),
@@ -13613,11 +13457,7 @@ var streamBrokerCapability = {
13613
13457
  listClients: method(object({ brokerId: string() }), BrokerClientsSchema),
13614
13458
  killClient: method(object({
13615
13459
  brokerId: string(),
13616
- channel: _enum([
13617
- "rtsp",
13618
- "decoded",
13619
- "audio"
13620
- ]),
13460
+ channel: _enum(["rtsp", "audio"]),
13621
13461
  handle: string()
13622
13462
  }), object({ killed: boolean() }), {
13623
13463
  kind: "mutation",
@@ -13716,31 +13556,6 @@ var streamBrokerCapability = {
13716
13556
  maxCount: number().int().positive().default(8)
13717
13557
  }), array(DecodedAudioChunkSchema).readonly()),
13718
13558
  unsubscribeAudioChunks: method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }),
13719
- /**
13720
- * ── Shared-memory frame plane (Phase 5 / D9) ──────────────────────
13721
- *
13722
- * The handle-based replacement for the live-object `IStreamBroker.
13723
- * onDecodedFrame` callback path. A consumer:
13724
- *
13725
- * 1. `subscribeFrames({ brokerId, format })` — the broker spins up
13726
- * (or reuses) a `frameSink: 'shm'` decoder session producing that
13727
- * `format` and returns a `subscriptionId`.
13728
- * 2. polls `pullFrameHandles({ subscriptionId, maxCount })` — drains
13729
- * zero-pixel `FrameHandle[]`; each handle is fed to a
13730
- * `FrameRingReader` that opens the named shm segment and reads the
13731
- * pixels back zero-copy.
13732
- * 3. `unsubscribeFrames({ subscriptionId })` on teardown.
13733
- *
13734
- * The broker keeps one shm ring per `(brokerId, format)` actually
13735
- * requested — no broker-side `sharp` conversion. fps throttling is
13736
- * implicit (latest-wins ring reads drop frames for a slow consumer).
13737
- */
13738
- subscribeFrames: method(SubscribeFramesInputSchema, SubscribeFramesResultSchema, { kind: "mutation" }),
13739
- pullFrameHandles: method(object({
13740
- subscriptionId: string(),
13741
- maxCount: number().int().positive().default(4)
13742
- }), array(FrameHandleSchema).readonly()),
13743
- unsubscribeFrames: method(object({ subscriptionId: string() }), object({ released: boolean() }), { kind: "mutation" }),
13744
13559
  setPreBufferDuration: method(object({
13745
13560
  brokerId: string(),
13746
13561
  seconds: number().min(0).max(30)
@@ -15456,72 +15271,18 @@ id: union([string(), number()]) }), {
15456
15271
  })
15457
15272
  }
15458
15273
  };
15459
- /**
15460
- * shm ring usage stats for a `frameSink: 'shm'` decoder session —
15461
- * exposed via `decoder.getShmStats` so downstream consumers can
15462
- * observe ring pressure (slot count, byte budget, hit/miss ratio).
15463
- */
15464
- var ShmRingStatsSchema = object({
15465
- sessionId: string(),
15466
- slotCount: number().int(),
15467
- slotByteLength: number().int(),
15468
- segmentBytes: number().int(),
15469
- budgetMb: number().int(),
15470
- framesWritten: number().int(),
15471
- getFrameHits: number().int(),
15472
- getFrameMisses: number().int()
15473
- });
15474
15274
  var decoderCapability = {
15475
15275
  name: "decoder",
15476
15276
  scope: "system",
15477
15277
  mode: "singleton",
15478
15278
  preferredProvider: "decoder-nodeav",
15479
15279
  methods: {
15480
- supportsCodec: method(object({ codec: string() }), boolean()),
15481
15280
  getInfo: method(_void(), object({
15482
15281
  id: string(),
15483
15282
  name: string(),
15484
- isPullMode: boolean().optional(),
15485
- priority: number().optional(),
15486
15283
  hwaccel: string().optional(),
15487
15284
  probedBestHwaccel: string().optional()
15488
15285
  })),
15489
- createSession: method(DecoderSessionConfigSchema, object({
15490
- sessionId: string(),
15491
- nodeId: string()
15492
- })),
15493
- destroySession: method(object({ sessionId: string() }), _void()),
15494
- pushPacket: method(object({
15495
- sessionId: string(),
15496
- packet: EncodedPacketSchema
15497
- }), _void()),
15498
- openStream: method(object({
15499
- sessionId: string(),
15500
- url: string()
15501
- }), _void()),
15502
- pullFrames: method(object({
15503
- sessionId: string(),
15504
- maxCount: number().default(1),
15505
- waitMs: number().optional()
15506
- }), array(DecodedFrameSchema)),
15507
- pullHandles: method(object({
15508
- sessionId: string(),
15509
- maxCount: number().default(1),
15510
- waitMs: number().optional()
15511
- }), array(FrameHandleSchema)),
15512
- getFrame: method(object({ handle: FrameHandleSchema }), DecodedFrameSchema.nullable()),
15513
- getShmStats: method(object({ sessionId: string() }), ShmRingStatsSchema.nullable()),
15514
- updateConfig: method(object({
15515
- sessionId: string(),
15516
- config: DecoderSessionConfigSchema.partial()
15517
- }), _void()),
15518
- getStats: method(object({ sessionId: string() }), DecoderStatsSchema),
15519
- listActiveSessions: method(_void(), array(object({
15520
- sessionId: string(),
15521
- codec: string(),
15522
- outputFormat: string(),
15523
- createdAtMs: number()
15524
- })).readonly()),
15525
15286
  /**
15526
15287
  * Re-run the host platform-probe for the decoder's hwaccel backend
15527
15288
  * and write the detected value into the addon's own global
@@ -24763,8 +24524,8 @@ Object.freeze(Object.fromEntries([{
24763
24524
  var CLUSTER_STEP_SETTING_FIELDS = [{
24764
24525
  stepId: "face-embedding",
24765
24526
  key: "minLandmarkFaceSize",
24766
- label: "Min face size for recognition (detection px)",
24767
- 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.",
24527
+ label: "Min face size to embed (detection-frame px)",
24528
+ 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.",
24768
24529
  type: "slider",
24769
24530
  min: 0,
24770
24531
  max: 64,
@@ -27476,21 +27237,6 @@ var PipelineDefaultStepSchema = lazy(() => object({
27476
27237
  group: string().optional(),
27477
27238
  settings: record(string(), unknown()).optional()
27478
27239
  }));
27479
- var PipelineTemplateStepSchema = lazy(() => object({
27480
- addonId: string(),
27481
- enabled: boolean(),
27482
- modelId: string(),
27483
- children: array(PipelineTemplateStepSchema).readonly(),
27484
- settings: record(string(), unknown()).optional()
27485
- }));
27486
- var PipelineTemplateSchema$1 = object({
27487
- id: string(),
27488
- name: string(),
27489
- createdAt: string(),
27490
- updatedAt: string(),
27491
- engine: PipelineEngineChoiceSchema,
27492
- steps: array(PipelineTemplateStepSchema).readonly()
27493
- });
27494
27240
  var PipelineModelOptionSchema = object({
27495
27241
  id: string(),
27496
27242
  name: string(),
@@ -27812,18 +27558,6 @@ var pipelineExecutorCapability = {
27812
27558
  steps: array(PipelineStepInputSchema),
27813
27559
  deviceKey: string().optional()
27814
27560
  }), PipelineValidationResultSchema),
27815
- listTemplates: method(_void(), array(PipelineTemplateSchema$1).readonly()),
27816
- saveTemplate: method(object({
27817
- name: string(),
27818
- steps: array(PipelineTemplateStepSchema).readonly(),
27819
- engine: PipelineEngineChoiceSchema
27820
- }), PipelineTemplateSchema$1, { kind: "mutation" }),
27821
- updateTemplate: method(object({
27822
- id: string(),
27823
- name: string().optional(),
27824
- steps: array(PipelineTemplateStepSchema).readonly().optional()
27825
- }), PipelineTemplateSchema$1, { kind: "mutation" }),
27826
- deleteTemplate: method(object({ id: string() }), _void(), { kind: "mutation" }),
27827
27561
  getCapabilities: method(_void(), InferenceCapabilitiesBridge),
27828
27562
  getAddonModels: method(object({ addonId: string() }), ModelAvailabilityListBridge),
27829
27563
  downloadModel: method(object({
@@ -29366,14 +29100,15 @@ var RunnerLocalLoadSchema = object({
29366
29100
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
29367
29101
  * this runner currently has attached cameras on, so the orchestrator's second
29368
29102
  * `balance()` pass (over a node's devices) weights on real per-pool session
29369
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
29370
- * per device is 0 until the pool backlog gets a public accessor (follow-up).
29103
+ * counts. Empty on single-device / pre-multi-device runners. There is no
29104
+ * per-device queue depth: the inference pool's backlog has no accessor, and
29105
+ * a field that always read 0 was removed rather than shown as a measurement
29106
+ * (D762).
29371
29107
  */
29372
29108
  devices: array(object({
29373
29109
  deviceKey: string(),
29374
29110
  backend: string(),
29375
- attachedCameras: number(),
29376
- queueDepthTotal: number()
29111
+ attachedCameras: number()
29377
29112
  })).default([]),
29378
29113
  /** Hardware capability flags reported by this node. */
29379
29114
  hardware: object({
@@ -29779,14 +29514,6 @@ var CameraPipelineConfigSchema = object({
29779
29514
  settings: record(string(), unknown()).readonly().optional()
29780
29515
  }).nullable().optional()
29781
29516
  });
29782
- var PipelineTemplateSchema = object({
29783
- id: string(),
29784
- name: string(),
29785
- description: string().optional(),
29786
- config: CameraPipelineConfigSchema,
29787
- createdAt: string(),
29788
- updatedAt: string()
29789
- });
29790
29517
  var DeviceStepConfigSchema = object({
29791
29518
  modelId: string().optional(),
29792
29519
  settings: record(string(), unknown()).optional(),
@@ -29896,7 +29623,10 @@ var PipelineAssignmentSchema = object({
29896
29623
  });
29897
29624
  /**
29898
29625
  * Per-agent load summary surfaced to the load balancer + dashboards.
29899
- * Aggregated from each runner's `getLocalLoad` cap call.
29626
+ * Aggregated from each runner's `getLocalLoad` cap call. In the
29627
+ * `getAgentLoad` report, a single-device node's default-pool sessions (no
29628
+ * `deviceKey`) are credited to its one eligible device in `load.devices` —
29629
+ * the default pool IS that device (D745); the balancer's census stays raw.
29900
29630
  */
29901
29631
  var AgentLoadSummarySchema = object({
29902
29632
  nodeId: string(),
@@ -29985,26 +29715,27 @@ var CameraBrokerStatusSchema = object({
29985
29715
  width: number(),
29986
29716
  height: number(),
29987
29717
  subscribers: number(),
29988
- inFps: number(),
29989
- outFps: number()
29718
+ /**
29719
+ * Encoded packets/s the broker receives from the camera. null when the
29720
+ * broker's stats read failed — unknown, never 0 (a 0 here reads as a stall).
29721
+ * There is no output rate: decoding runs in the session decode workers, not
29722
+ * in the broker, so the broker's own decoded-frame rate is 0 on every live
29723
+ * camera and is not served (D758).
29724
+ */
29725
+ inFps: number().nullable()
29990
29726
  })).readonly(),
29991
29727
  webrtcSessions: number(),
29992
29728
  rtspRestream: boolean()
29993
29729
  });
29994
- /** Shared-memory ring statistics within the decoder block. */
29995
- var CameraDecoderShmSchema = object({
29996
- framesWritten: number(),
29997
- getFrameHits: number(),
29998
- getFrameMisses: number(),
29999
- budgetMb: number()
30000
- });
30001
- /** Decoder block — null when the decoder stage is unreachable or inactive. */
30002
- var CameraDecoderStatusSchema = object({
30003
- nodeId: string(),
30004
- formats: array(string()).readonly(),
30005
- sessionCount: number(),
30006
- shm: CameraDecoderShmSchema
30007
- });
29730
+ /**
29731
+ * Decoder block — WHERE decode runs (co-located with the detection node by
29732
+ * construction); null when the camera has no detection node. It carries no
29733
+ * frame counter: the shared-memory plane whose counters it used to serve is
29734
+ * gone, and those fields read 0 forever. Whether frames actually flow is read
29735
+ * from `detection.actualFps` (frames delivered to and processed by the
29736
+ * detector), never from a counter nothing feeds.
29737
+ */
29738
+ var CameraDecoderStatusSchema = object({ nodeId: string() });
30008
29739
  /** Motion block — null when motion detection is not active for this device. */
30009
29740
  var CameraMotionStatusSchema = object({
30010
29741
  enabled: boolean(),
@@ -30858,33 +30589,7 @@ var pipelineOrchestratorCapability = {
30858
30589
  auth: "admin"
30859
30590
  }),
30860
30591
  /** Snapshot of the in-flight or last disk-wins fleet reconcile. */
30861
- getReconcileFromDiskStatus: method(_void(), DiskReconcileJobSchema, { auth: "admin" }),
30862
- /** List every template the operator has saved. */
30863
- listTemplates: method(_void(), array(PipelineTemplateSchema).readonly()),
30864
- /** Create a new named preset from a given CameraPipelineConfig. */
30865
- saveTemplate: method(object({
30866
- name: string(),
30867
- description: string().optional(),
30868
- config: CameraPipelineConfigSchema
30869
- }), PipelineTemplateSchema, {
30870
- kind: "mutation",
30871
- auth: "admin"
30872
- }),
30873
- /** Partial update of a template. Any omitted field is preserved. */
30874
- updateTemplate: method(object({
30875
- id: string(),
30876
- name: string().optional(),
30877
- description: string().optional(),
30878
- config: CameraPipelineConfigSchema.optional()
30879
- }), PipelineTemplateSchema, {
30880
- kind: "mutation",
30881
- auth: "admin"
30882
- }),
30883
- /** Remove a template. Camera configs that were seeded from it keep a copy. */
30884
- deleteTemplate: method(object({ id: string() }), object({ success: literal(true) }), {
30885
- kind: "mutation",
30886
- auth: "admin"
30887
- })
30592
+ getReconcileFromDiskStatus: method(_void(), DiskReconcileJobSchema, { auth: "admin" })
30888
30593
  }
30889
30594
  };
30890
30595
  /**
@@ -33814,8 +33519,6 @@ var WebrtcStreamChoiceSchema = object({
33814
33519
  ]).nullable(),
33815
33520
  /** Input FPS from the camera (null for adaptive). */
33816
33521
  inputFps: number().nullable(),
33817
- /** Decoded FPS (null for adaptive). */
33818
- decodeFps: number().nullable(),
33819
33522
  /** Bitrate in kbps (null for adaptive). */
33820
33523
  bitrateKbps: number().nullable()
33821
33524
  });
@@ -48405,90 +48108,18 @@ Object.freeze({
48405
48108
  addonId: null,
48406
48109
  access: "create"
48407
48110
  },
48408
- "decoder.createSession": {
48409
- capName: "decoder",
48410
- capScope: "system",
48411
- addonId: null,
48412
- access: "view"
48413
- },
48414
- "decoder.destroySession": {
48415
- capName: "decoder",
48416
- capScope: "system",
48417
- addonId: null,
48418
- access: "delete"
48419
- },
48420
- "decoder.getFrame": {
48421
- capName: "decoder",
48422
- capScope: "system",
48423
- addonId: null,
48424
- access: "view"
48425
- },
48426
48111
  "decoder.getInfo": {
48427
48112
  capName: "decoder",
48428
48113
  capScope: "system",
48429
48114
  addonId: null,
48430
48115
  access: "view"
48431
48116
  },
48432
- "decoder.getShmStats": {
48433
- capName: "decoder",
48434
- capScope: "system",
48435
- addonId: null,
48436
- access: "view"
48437
- },
48438
- "decoder.getStats": {
48439
- capName: "decoder",
48440
- capScope: "system",
48441
- addonId: null,
48442
- access: "view"
48443
- },
48444
- "decoder.listActiveSessions": {
48445
- capName: "decoder",
48446
- capScope: "system",
48447
- addonId: null,
48448
- access: "view"
48449
- },
48450
- "decoder.openStream": {
48451
- capName: "decoder",
48452
- capScope: "system",
48453
- addonId: null,
48454
- access: "view"
48455
- },
48456
- "decoder.pullFrames": {
48457
- capName: "decoder",
48458
- capScope: "system",
48459
- addonId: null,
48460
- access: "view"
48461
- },
48462
- "decoder.pullHandles": {
48463
- capName: "decoder",
48464
- capScope: "system",
48465
- addonId: null,
48466
- access: "view"
48467
- },
48468
- "decoder.pushPacket": {
48469
- capName: "decoder",
48470
- capScope: "system",
48471
- addonId: null,
48472
- access: "view"
48473
- },
48474
48117
  "decoder.reprobeHwaccel": {
48475
48118
  capName: "decoder",
48476
48119
  capScope: "system",
48477
48120
  addonId: null,
48478
48121
  access: "create"
48479
48122
  },
48480
- "decoder.supportsCodec": {
48481
- capName: "decoder",
48482
- capScope: "system",
48483
- addonId: null,
48484
- access: "view"
48485
- },
48486
- "decoder.updateConfig": {
48487
- capName: "decoder",
48488
- capScope: "system",
48489
- addonId: null,
48490
- access: "view"
48491
- },
48492
48123
  "detectionPipeline.applyDeviceSettingsPatch": {
48493
48124
  capName: "detection-pipeline",
48494
48125
  capScope: "device",
@@ -51579,12 +51210,6 @@ Object.freeze({
51579
51210
  addonId: null,
51580
51211
  access: "delete"
51581
51212
  },
51582
- "pipelineExecutor.deleteTemplate": {
51583
- capName: "pipeline-executor",
51584
- capScope: "system",
51585
- addonId: null,
51586
- access: "delete"
51587
- },
51588
51213
  "pipelineExecutor.downloadModel": {
51589
51214
  capName: "pipeline-executor",
51590
51215
  capScope: "system",
@@ -51723,12 +51348,6 @@ Object.freeze({
51723
51348
  addonId: null,
51724
51349
  access: "view"
51725
51350
  },
51726
- "pipelineExecutor.listTemplates": {
51727
- capName: "pipeline-executor",
51728
- capScope: "system",
51729
- addonId: null,
51730
- access: "view"
51731
- },
51732
51351
  "pipelineExecutor.rearmInferenceDevice": {
51733
51352
  capName: "pipeline-executor",
51734
51353
  capScope: "system",
@@ -51753,12 +51372,6 @@ Object.freeze({
51753
51372
  addonId: null,
51754
51373
  access: "create"
51755
51374
  },
51756
- "pipelineExecutor.saveTemplate": {
51757
- capName: "pipeline-executor",
51758
- capScope: "system",
51759
- addonId: null,
51760
- access: "create"
51761
- },
51762
51375
  "pipelineExecutor.setVideoPipelineSteps": {
51763
51376
  capName: "pipeline-executor",
51764
51377
  capScope: "system",
@@ -51777,12 +51390,6 @@ Object.freeze({
51777
51390
  addonId: null,
51778
51391
  access: "create"
51779
51392
  },
51780
- "pipelineExecutor.updateTemplate": {
51781
- capName: "pipeline-executor",
51782
- capScope: "system",
51783
- addonId: null,
51784
- access: "create"
51785
- },
51786
51393
  "pipelineExecutor.validatePipeline": {
51787
51394
  capName: "pipeline-executor",
51788
51395
  capScope: "system",
@@ -51813,12 +51420,6 @@ Object.freeze({
51813
51420
  addonId: null,
51814
51421
  access: "create"
51815
51422
  },
51816
- "pipelineOrchestrator.deleteTemplate": {
51817
- capName: "pipeline-orchestrator",
51818
- capScope: "system",
51819
- addonId: null,
51820
- access: "delete"
51821
- },
51822
51423
  "pipelineOrchestrator.getAgentLoad": {
51823
51424
  capName: "pipeline-orchestrator",
51824
51425
  capScope: "system",
@@ -51969,12 +51570,6 @@ Object.freeze({
51969
51570
  addonId: null,
51970
51571
  access: "view"
51971
51572
  },
51972
- "pipelineOrchestrator.listTemplates": {
51973
- capName: "pipeline-orchestrator",
51974
- capScope: "system",
51975
- addonId: null,
51976
- access: "view"
51977
- },
51978
51573
  "pipelineOrchestrator.pauseForStorageMigration": {
51979
51574
  capName: "pipeline-orchestrator",
51980
51575
  capScope: "system",
@@ -52029,12 +51624,6 @@ Object.freeze({
52029
51624
  addonId: null,
52030
51625
  access: "create"
52031
51626
  },
52032
- "pipelineOrchestrator.saveTemplate": {
52033
- capName: "pipeline-orchestrator",
52034
- capScope: "system",
52035
- addonId: null,
52036
- access: "create"
52037
- },
52038
51627
  "pipelineOrchestrator.setAgentCapabilities": {
52039
51628
  capName: "pipeline-orchestrator",
52040
51629
  capScope: "system",
@@ -52143,12 +51732,6 @@ Object.freeze({
52143
51732
  addonId: null,
52144
51733
  access: "create"
52145
51734
  },
52146
- "pipelineOrchestrator.updateTemplate": {
52147
- capName: "pipeline-orchestrator",
52148
- capScope: "system",
52149
- addonId: null,
52150
- access: "create"
52151
- },
52152
51735
  "pipelineRunner.attachCamera": {
52153
51736
  capName: "pipeline-runner",
52154
51737
  capScope: "system",
@@ -53583,12 +53166,6 @@ Object.freeze({
53583
53166
  addonId: null,
53584
53167
  access: "view"
53585
53168
  },
53586
- "streamBroker.pullFrameHandles": {
53587
- capName: "stream-broker",
53588
- capScope: "system",
53589
- addonId: null,
53590
- access: "view"
53591
- },
53592
53169
  "streamBroker.regenerateRtspToken": {
53593
53170
  capName: "stream-broker",
53594
53171
  capScope: "system",
@@ -53655,12 +53232,6 @@ Object.freeze({
53655
53232
  addonId: null,
53656
53233
  access: "create"
53657
53234
  },
53658
- "streamBroker.subscribeFrames": {
53659
- capName: "stream-broker",
53660
- capScope: "system",
53661
- addonId: null,
53662
- access: "create"
53663
- },
53664
53235
  "streamBroker.unassignProfile": {
53665
53236
  capName: "stream-broker",
53666
53237
  capScope: "system",
@@ -53673,12 +53244,6 @@ Object.freeze({
53673
53244
  addonId: null,
53674
53245
  access: "create"
53675
53246
  },
53676
- "streamBroker.unsubscribeFrames": {
53677
- capName: "stream-broker",
53678
- capScope: "system",
53679
- addonId: null,
53680
- access: "create"
53681
- },
53682
53247
  "streamCatalog.getCatalog": {
53683
53248
  capName: "stream-catalog",
53684
53249
  capScope: "device",
@@ -56368,11 +55933,6 @@ Object.freeze({
56368
55933
  form: "single",
56369
55934
  optional: false
56370
55935
  }],
56371
- "decoder.createSession": [{
56372
- name: "deviceId",
56373
- form: "single",
56374
- optional: true
56375
- }],
56376
55936
  "detectionPipeline.applyDeviceSettingsPatch": [{
56377
55937
  name: "deviceId",
56378
55938
  form: "single",