@camstack/addon-osd-manager 0.1.186 → 0.1.188

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-Dp0R0q3Z.mjs → MotionZonesSettings-DO_aSGvS.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-IPP5tsg4.mjs → PrivacyMaskSettings-Dz9m4TPF.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-wh-xCA6m.mjs → SceneMonitorEditor-B3c9J7f3.mjs} +3 -3
  4. package/dist/_stub.js +44 -37
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-Cr3qSOlj.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-DmGUOsEt.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-elInKoqy.mjs +26 -0
  7. package/dist/addon-osd-manager.css +1 -1
  8. package/dist/{hostInit-Byg5VNXi.mjs → hostInit-CWYNKBoP.mjs} +3 -3
  9. package/dist/index.js +112 -358
  10. package/dist/index.mjs +112 -358
  11. package/dist/{player-overlays-C2udddNf.mjs → player-overlays-CYJONP8_.mjs} +1 -1
  12. package/dist/remoteEntry.js +1 -1
  13. package/dist/{responsive-Bef0FhzN.mjs → responsive-CLeY6HgJ.mjs} +1 -1
  14. package/dist/{scene-monitor-copy-OXVinJYb.mjs → scene-monitor-copy-CAiAEjTG.mjs} +1 -1
  15. package/dist/{square-ClhvKotL.mjs → square-94BJB2Ov.mjs} +1 -1
  16. package/dist/{trash-2-DtyxSKWI.mjs → trash-2-CSe4YYX5.mjs} +1 -1
  17. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-2lDHA88N.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-DrK1e36i.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-fuPdAfsY.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,
@@ -29339,14 +29100,15 @@ var RunnerLocalLoadSchema = object({
29339
29100
  * Per-inference-device live load (multi-device C4). One entry per deviceKey
29340
29101
  * this runner currently has attached cameras on, so the orchestrator's second
29341
29102
  * `balance()` pass (over a node's devices) weights on real per-pool session
29342
- * counts. Empty on single-device / pre-multi-device runners. `queueDepthTotal`
29343
- * 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).
29344
29107
  */
29345
29108
  devices: array(object({
29346
29109
  deviceKey: string(),
29347
29110
  backend: string(),
29348
- attachedCameras: number(),
29349
- queueDepthTotal: number()
29111
+ attachedCameras: number()
29350
29112
  })).default([]),
29351
29113
  /** Hardware capability flags reported by this node. */
29352
29114
  hardware: object({
@@ -29861,7 +29623,10 @@ var PipelineAssignmentSchema = object({
29861
29623
  });
29862
29624
  /**
29863
29625
  * Per-agent load summary surfaced to the load balancer + dashboards.
29864
- * 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.
29865
29630
  */
29866
29631
  var AgentLoadSummarySchema = object({
29867
29632
  nodeId: string(),
@@ -29950,8 +29715,14 @@ var CameraBrokerStatusSchema = object({
29950
29715
  width: number(),
29951
29716
  height: number(),
29952
29717
  subscribers: number(),
29953
- inFps: number(),
29954
- 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()
29955
29726
  })).readonly(),
29956
29727
  webrtcSessions: number(),
29957
29728
  rtspRestream: boolean()
@@ -33748,8 +33519,6 @@ var WebrtcStreamChoiceSchema = object({
33748
33519
  ]).nullable(),
33749
33520
  /** Input FPS from the camera (null for adaptive). */
33750
33521
  inputFps: number().nullable(),
33751
- /** Decoded FPS (null for adaptive). */
33752
- decodeFps: number().nullable(),
33753
33522
  /** Bitrate in kbps (null for adaptive). */
33754
33523
  bitrateKbps: number().nullable()
33755
33524
  });
@@ -34518,6 +34287,59 @@ var AddonAutoUpdateSchema = ChannelWithInheritSchema;
34518
34287
  var RestartAddonResultSchema = unknown();
34519
34288
  var InstallPackageResultSchema = unknown();
34520
34289
  var ReloadPackagesResultSchema = unknown();
34290
+ /**
34291
+ * What an uninstall did on ONE node.
34292
+ * - `uninstalled` — removed: runner(s) stopped, caps gone, code deleted.
34293
+ * - `not-installed` — the node did not have it (nothing to do).
34294
+ * - `refused` — protected / bootstrap package; nothing touched.
34295
+ * - `failed` — attempted and did not complete; `error` says why.
34296
+ * - `pending-reconnect` — the node is OFFLINE: its record was pruned so the
34297
+ * back-fill never returns the package, and the stale-addon sweep removes the
34298
+ * copy when the node registers again (only once the hub no longer has it).
34299
+ */
34300
+ var UninstallNodeOutcomeSchema = _enum([
34301
+ "uninstalled",
34302
+ "not-installed",
34303
+ "refused",
34304
+ "failed",
34305
+ "pending-reconnect"
34306
+ ]);
34307
+ var UninstallNodeResultSchema = object({
34308
+ nodeId: string(),
34309
+ outcome: UninstallNodeOutcomeSchema,
34310
+ error: string().optional(),
34311
+ addonIds: array(string()).readonly(),
34312
+ runnersStopped: array(string()).readonly(),
34313
+ warnings: array(string()).readonly()
34314
+ });
34315
+ var UninstallPackageResultSchema = object({
34316
+ /** Every targeted node ended `uninstalled`, `not-installed` or `pending-reconnect`. */
34317
+ success: boolean(),
34318
+ packageName: string(),
34319
+ results: array(UninstallNodeResultSchema).readonly()
34320
+ });
34321
+ /**
34322
+ * `unreachable` lists online agents whose status read FAILED — absence from
34323
+ * `installations` is only "not installed" for a node that answered (D315).
34324
+ */
34325
+ var PackageInstallationsSchema = object({
34326
+ installations: array(object({
34327
+ packageName: string(),
34328
+ nodeId: string(),
34329
+ nodeName: string(),
34330
+ isHub: boolean(),
34331
+ isOnline: boolean(),
34332
+ version: string().nullable(),
34333
+ addonIds: array(string()).readonly(),
34334
+ source: _enum(["live", "recorded"]),
34335
+ /** The hub installs this package too. `false` on an agent row = an orphan. */
34336
+ onHub: boolean()
34337
+ })).readonly(),
34338
+ unreachable: array(object({
34339
+ nodeId: string(),
34340
+ error: string()
34341
+ })).readonly()
34342
+ });
34521
34343
  var BulkUpdateItemStatusSchema = _enum([
34522
34344
  "queued",
34523
34345
  "updating",
@@ -34626,10 +34448,31 @@ var addonsCapability = {
34626
34448
  }),
34627
34449
  isWorkspaceAvailable: method(_void(), boolean()),
34628
34450
  listWorkspacePackages: method(_void(), array(unknown()).readonly()),
34629
- uninstallPackage: method(object({ packageName: string() }), unknown(), {
34451
+ /**
34452
+ * Uninstall a package. `nodeId` omitted (or `'hub'`) uninstalls on the hub
34453
+ * — the original behaviour, which still THROWS on failure. An agent
34454
+ * `nodeId` removes it from that agent through `$agent.undeploy`
34455
+ * (runners stopped, caps deregistered, code deleted) and prunes the node's
34456
+ * declared roster so the back-fill never returns it. `everywhere: true`
34457
+ * does both for every node that has it (agents first, hub last); offline
34458
+ * nodes answer `pending-reconnect`. Node-level failures in those two modes
34459
+ * are REPORTED per node, never thrown. Protected packages are refused.
34460
+ */
34461
+ uninstallPackage: method(object({
34462
+ packageName: string().min(1),
34463
+ nodeId: string().optional(),
34464
+ everywhere: boolean().optional()
34465
+ }), UninstallPackageResultSchema, {
34630
34466
  kind: "mutation",
34631
34467
  auth: "admin"
34632
34468
  }),
34469
+ /**
34470
+ * Which nodes have a package (or, with no `packageName`, every package on
34471
+ * every node). Hub from its installer, online agents from `$agent.status`
34472
+ * (in parallel, bounded), offline agents from their declared roster.
34473
+ * Drives the uninstall confirm and the Addons page's "not on the hub" list.
34474
+ */
34475
+ listInstallations: method(object({ packageName: string().optional() }), PackageInstallationsSchema, { auth: "admin" }),
34633
34476
  reloadPackages: method(_void(), ReloadPackagesResultSchema, {
34634
34477
  kind: "mutation",
34635
34478
  auth: "admin"
@@ -47157,6 +47000,12 @@ Object.freeze({
47157
47000
  addonId: null,
47158
47001
  access: "view"
47159
47002
  },
47003
+ "addons.listInstallations": {
47004
+ capName: "addons",
47005
+ capScope: "system",
47006
+ addonId: null,
47007
+ access: "view"
47008
+ },
47160
47009
  "addons.listJobs": {
47161
47010
  capName: "addons",
47162
47011
  capScope: "system",
@@ -48339,90 +48188,18 @@ Object.freeze({
48339
48188
  addonId: null,
48340
48189
  access: "create"
48341
48190
  },
48342
- "decoder.createSession": {
48343
- capName: "decoder",
48344
- capScope: "system",
48345
- addonId: null,
48346
- access: "view"
48347
- },
48348
- "decoder.destroySession": {
48349
- capName: "decoder",
48350
- capScope: "system",
48351
- addonId: null,
48352
- access: "delete"
48353
- },
48354
- "decoder.getFrame": {
48355
- capName: "decoder",
48356
- capScope: "system",
48357
- addonId: null,
48358
- access: "view"
48359
- },
48360
48191
  "decoder.getInfo": {
48361
48192
  capName: "decoder",
48362
48193
  capScope: "system",
48363
48194
  addonId: null,
48364
48195
  access: "view"
48365
48196
  },
48366
- "decoder.getShmStats": {
48367
- capName: "decoder",
48368
- capScope: "system",
48369
- addonId: null,
48370
- access: "view"
48371
- },
48372
- "decoder.getStats": {
48373
- capName: "decoder",
48374
- capScope: "system",
48375
- addonId: null,
48376
- access: "view"
48377
- },
48378
- "decoder.listActiveSessions": {
48379
- capName: "decoder",
48380
- capScope: "system",
48381
- addonId: null,
48382
- access: "view"
48383
- },
48384
- "decoder.openStream": {
48385
- capName: "decoder",
48386
- capScope: "system",
48387
- addonId: null,
48388
- access: "view"
48389
- },
48390
- "decoder.pullFrames": {
48391
- capName: "decoder",
48392
- capScope: "system",
48393
- addonId: null,
48394
- access: "view"
48395
- },
48396
- "decoder.pullHandles": {
48397
- capName: "decoder",
48398
- capScope: "system",
48399
- addonId: null,
48400
- access: "view"
48401
- },
48402
- "decoder.pushPacket": {
48403
- capName: "decoder",
48404
- capScope: "system",
48405
- addonId: null,
48406
- access: "view"
48407
- },
48408
48197
  "decoder.reprobeHwaccel": {
48409
48198
  capName: "decoder",
48410
48199
  capScope: "system",
48411
48200
  addonId: null,
48412
48201
  access: "create"
48413
48202
  },
48414
- "decoder.supportsCodec": {
48415
- capName: "decoder",
48416
- capScope: "system",
48417
- addonId: null,
48418
- access: "view"
48419
- },
48420
- "decoder.updateConfig": {
48421
- capName: "decoder",
48422
- capScope: "system",
48423
- addonId: null,
48424
- access: "view"
48425
- },
48426
48203
  "detectionPipeline.applyDeviceSettingsPatch": {
48427
48204
  capName: "detection-pipeline",
48428
48205
  capScope: "device",
@@ -53469,12 +53246,6 @@ Object.freeze({
53469
53246
  addonId: null,
53470
53247
  access: "view"
53471
53248
  },
53472
- "streamBroker.pullFrameHandles": {
53473
- capName: "stream-broker",
53474
- capScope: "system",
53475
- addonId: null,
53476
- access: "view"
53477
- },
53478
53249
  "streamBroker.regenerateRtspToken": {
53479
53250
  capName: "stream-broker",
53480
53251
  capScope: "system",
@@ -53541,12 +53312,6 @@ Object.freeze({
53541
53312
  addonId: null,
53542
53313
  access: "create"
53543
53314
  },
53544
- "streamBroker.subscribeFrames": {
53545
- capName: "stream-broker",
53546
- capScope: "system",
53547
- addonId: null,
53548
- access: "create"
53549
- },
53550
53315
  "streamBroker.unassignProfile": {
53551
53316
  capName: "stream-broker",
53552
53317
  capScope: "system",
@@ -53559,12 +53324,6 @@ Object.freeze({
53559
53324
  addonId: null,
53560
53325
  access: "create"
53561
53326
  },
53562
- "streamBroker.unsubscribeFrames": {
53563
- capName: "stream-broker",
53564
- capScope: "system",
53565
- addonId: null,
53566
- access: "create"
53567
- },
53568
53327
  "streamCatalog.getCatalog": {
53569
53328
  capName: "stream-catalog",
53570
53329
  capScope: "device",
@@ -56254,11 +56013,6 @@ Object.freeze({
56254
56013
  form: "single",
56255
56014
  optional: false
56256
56015
  }],
56257
- "decoder.createSession": [{
56258
- name: "deviceId",
56259
- form: "single",
56260
- optional: true
56261
- }],
56262
56016
  "detectionPipeline.applyDeviceSettingsPatch": [{
56263
56017
  name: "deviceId",
56264
56018
  form: "single",
@@ -1,5 +1,5 @@
1
1
  import { _ as e, l as t, u as n, x as r } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-D7xZfSHZ.mjs";
2
- import { c as i, s as a } from "./responsive-Bef0FhzN.mjs";
2
+ import { c as i, s as a } from "./responsive-CLeY6HgJ.mjs";
3
3
  import { n as o, r as s, t as c } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
4
4
  var l = i("chevron-down", [["path", {
5
5
  d: "m6 9 6 6 6-6",