@camstack/addon-osd-manager 0.1.25 → 0.1.27

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 (18) hide show
  1. package/dist/{MotionZonesSettings-DGzuM4Vl.mjs → MotionZonesSettings-BaHVcJbF.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-CQaB7b2N.mjs → PrivacyMaskSettings-Bp4jWnFG.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-Bg7JG--H.mjs → SceneMonitorEditor-VaKlqiGB.mjs} +3 -3
  4. package/dist/_stub.js +2392 -2392
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-DxHl-19u.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-Dsmn7JiI.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Dcc73wc4.mjs +26 -0
  7. package/dist/{hostInit-0Chwaz22.mjs → hostInit-BBu1Mgkm.mjs} +3 -3
  8. package/dist/index.js +488 -29
  9. package/dist/index.mjs +488 -29
  10. package/dist/{player-overlays-CRBryJon.mjs → player-overlays-DgLOOYci.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-D6d5-RK_.mjs → responsive-C-8_bIDl.mjs} +1 -1
  13. package/dist/{square-DnuLIdPc.mjs → square-CavMCLRh.mjs} +1 -1
  14. package/dist/{trash-2-BFV0PX5_.mjs → trash-2-DCAcPlaj.mjs} +1 -1
  15. package/dist/{use-device-snapshot-DKPoplKG.mjs → use-device-snapshot-Ji1nLnaC.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-dxCYIXHg.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CvAo2VBZ.mjs} +1 -1
  17. package/package.json +1 -1
  18. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-B-12WGia.mjs +0 -26
package/dist/index.mjs CHANGED
@@ -7563,6 +7563,111 @@ var CameraSwitchGroupSchema = object({
7563
7563
  fetchedAt: number()
7564
7564
  });
7565
7565
  /**
7566
+ * Per-component log CHANNELS — the gate a hot path consults, and the registry
7567
+ * an addon declares its channels in.
7568
+ *
7569
+ * ## Two axes, deliberately separated
7570
+ *
7571
+ * - **DECLARATION** — which channels exist. Only the addon knows:
7572
+ * `stream-broker` knows webrtc/ICE/RTP, `provider-reolink` knows
7573
+ * baichuan/handshake. A hand-wired central list rots at the first addition,
7574
+ * and rots silently. So a channel is declared where it is consulted, and the
7575
+ * `log-channels` capability enumerates the declarations.
7576
+ * - **VALUE** — at which level, for which scope, until when. That stays ONE
7577
+ * thing: the logging settings document on the `system` cap. Two authorities
7578
+ * over the values is the exact defect
7579
+ * `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
7580
+ * remove; re-introducing it from the cure side would be grotesque.
7581
+ *
7582
+ * Nothing in this file reads a clock, an env var or a store. The registry is
7583
+ * a MIRROR: it is moved only by {@link LogChannelRegistry.apply}, called off
7584
+ * the hot path with a value somebody actually read, and by
7585
+ * {@link LogChannelRegistry.tick}, called on a timer. A store read that fails
7586
+ * never reaches here, so it can neither disarm an armed channel nor arm a
7587
+ * disarmed one (D49).
7588
+ *
7589
+ * ## The canonical call shape
7590
+ *
7591
+ * ```ts
7592
+ * if (CH_RTP.on && CH_RTP.wants(deviceId)) {
7593
+ * CH_RTP.log(logger, 'rtp subscriber added', { tags: { deviceId }, meta: { ssrc } })
7594
+ * }
7595
+ * ```
7596
+ *
7597
+ * `on` is a plain boolean FIELD — never a getter — and it is the FIRST thing
7598
+ * read. Disarmed, a call site costs one load and one branch, and the `extras`
7599
+ * object literal is never constructed because it lives inside the branch. It
7600
+ * is the same shape already proven in production at `stream-broker.ts:1650`,
7601
+ * and the same discipline `LoggingGate.allowsDestination` uses for the
7602
+ * destination floor (measured at 1.93 ns/call when off).
7603
+ *
7604
+ * ## Why a channel emits at `info`
7605
+ *
7606
+ * `loki-logging.addon.ts` pins the destination default at `info` and
7607
+ * `loki-destination.ts` drops everything below it, so a line emitted at
7608
+ * `debug` never reaches Loki and the hub's in-memory ring only holds ~35
7609
+ * minutes. A diagnostic that cannot be read an hour later is worse than no
7610
+ * diagnostic, because it looks done. {@link LogChannelGate.log} therefore
7611
+ * emits at the channel's declared level, whose schema floor is `info`.
7612
+ */
7613
+ /**
7614
+ * The level a channel writes at once armed.
7615
+ *
7616
+ * `debug` is absent ON PURPOSE and not by omission: below `info` the line does
7617
+ * not leave the process for Loki, and the whole point of arming a channel is
7618
+ * to read it later.
7619
+ */
7620
+ var LogChannelLevelSchema = _enum([
7621
+ "info",
7622
+ "warn",
7623
+ "error"
7624
+ ]);
7625
+ /**
7626
+ * What an addon declares about one channel. No value, no state — a
7627
+ * declaration is inert.
7628
+ */
7629
+ var LogChannelDescriptorSchema = object({
7630
+ /**
7631
+ * Dotted `area.thing`, unique across the workspace. `area` is conventionally
7632
+ * the addon's short name so an operator reading a channel list can tell who
7633
+ * owns it without a second lookup.
7634
+ */
7635
+ name: string().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/, "a channel name is dotted lower-kebab, e.g. area.thing"),
7636
+ /** One sentence: what the operator will SEE after arming it. */
7637
+ description: string().min(1),
7638
+ /** The level its lines are emitted at. Never below `info`. */
7639
+ defaultLevel: LogChannelLevelSchema,
7640
+ /**
7641
+ * Whether this channel can be narrowed to a camera.
7642
+ *
7643
+ * `true` is a PROMISE with two halves, and both must hold: the gate is
7644
+ * consulted with the numeric device id, AND every line the channel admits
7645
+ * carries `tags: { deviceId }` with that same numeric id. The second half is
7646
+ * what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
7647
+ * keeps `deviceId` out of the stream labels for cardinality, so the tag in
7648
+ * the body is the only way to filter.
7649
+ *
7650
+ * A channel whose lines carry the device only in `meta` (or not at all) is
7651
+ * declared `false`. Declaring it `true` anyway would be a lie the UI repeats:
7652
+ * the operator narrows to one camera, sees nothing, and concludes the code
7653
+ * path was never taken.
7654
+ */
7655
+ perDevice: boolean()
7656
+ });
7657
+ /**
7658
+ * An armed window over one channel, as the document hands it to a mirror.
7659
+ *
7660
+ * A window is a DEADLINE, never a flag (ADR-0244): a channel somebody forgot
7661
+ * expires by itself, which is the one failure a boolean cannot avoid.
7662
+ */
7663
+ var LogChannelWindowSchema = object({
7664
+ channel: string().min(1),
7665
+ /** Epoch ms the window closes at. */
7666
+ armedUntilMs: number(),
7667
+ /** `null` = every camera. A non-empty list narrows to those numeric ids. */
7668
+ deviceIds: array(number().int()).readonly().nullable()
7669
+ });
7670
+ /**
7566
7671
  * Ops-log — the durable, append-only operations audit shared by the
7567
7672
  * recordings and events management surfaces.
7568
7673
  *
@@ -11830,6 +11935,35 @@ var MutationFilterSchema = object({
11830
11935
  whereBetween: record(string(), tuple([unknown(), unknown()])).optional(),
11831
11936
  whereNot: record(string(), unknown()).optional()
11832
11937
  });
11938
+ /**
11939
+ * One scalar an {@link settingsStoreCapability.methods.aggregate} call asks for.
11940
+ *
11941
+ * `as` names the slot in the result, so the SAME column may be asked twice with
11942
+ * two operations (`MIN(startMs)` and `MAX(startMs)` in one round trip) — which
11943
+ * a `Record<column, op>` shape could not express.
11944
+ */
11945
+ var AggregateFieldSchema = object({
11946
+ /** Result key. */
11947
+ as: string().min(1),
11948
+ /** Column to aggregate. Must be a real column of a declared collection. */
11949
+ field: string().min(1),
11950
+ op: _enum([
11951
+ "sum",
11952
+ "min",
11953
+ "max"
11954
+ ])
11955
+ });
11956
+ /**
11957
+ * `COUNT(*)` plus one number per requested field.
11958
+ *
11959
+ * `null` means NO ROW MATCHED, never zero: a `SUM` over an empty set and a sum
11960
+ * that really is 0 are different facts, and an accounting caller that renders
11961
+ * "0 bytes, oldest = 0" for "nothing here" reports a lie about a disk.
11962
+ */
11963
+ var AggregateResultSchema = object({
11964
+ count: number().int(),
11965
+ values: record(string(), number().nullable())
11966
+ });
11833
11967
  /** A single stored record: `{ id, data }`. */
11834
11968
  var SettingsRecordSchema = object({
11835
11969
  id: string(),
@@ -11997,6 +12131,32 @@ var settingsStoreCapability = {
11997
12131
  collection: string(),
11998
12132
  filter: QueryFilterSchema.optional()
11999
12133
  }), number()),
12134
+ /**
12135
+ * `COUNT(*)` and one `SUM` / `MIN` / `MAX` per requested field, in ONE
12136
+ * statement, over the rows `filter` selects.
12137
+ *
12138
+ * Exists because "how much is there" was being answered by materialising
12139
+ * "what is there". The recorder's storage-pressure sweep asked its in-RAM
12140
+ * footage index for bytes/count/oldest/newest across a set of storage
12141
+ * locations twice a minute, and the only way to answer that from a map is
12142
+ * to visit every row — 7.1 M of them on the live hub, ~15 M row visits a
12143
+ * minute on the main thread, which is also why the whole archive had to
12144
+ * stay resident to be visited. The question is a sum; nothing needs to be
12145
+ * materialised to answer it.
12146
+ *
12147
+ * **The engine REFUSES a field it cannot serve**, exactly as
12148
+ * `query.columns` does and unlike a PREDICATE, which is skipped when
12149
+ * unresolvable. A dropped predicate over-matches and the caller sees extra
12150
+ * rows; a dropped aggregate returns a NUMBER that is wrong and looks
12151
+ * exactly like a real one. That asymmetry is what this repo has already
12152
+ * paid for once in `count`.
12153
+ */
12154
+ aggregate: method(object({
12155
+ namespace: string().optional(),
12156
+ collection: string(),
12157
+ fields: array(AggregateFieldSchema).readonly(),
12158
+ filter: QueryFilterSchema.optional()
12159
+ }), AggregateResultSchema),
12000
12160
  /** Grouped counts per ((field-origin)/bucketSize) bucket, filtered. */
12001
12161
  histogram: method(object({
12002
12162
  namespace: string().optional(),
@@ -12203,6 +12363,15 @@ var dataStoreProviderCapability = {
12203
12363
  collection: string(),
12204
12364
  filter: QueryFilterSchema.optional()
12205
12365
  }), number(), { auth: "admin" }),
12366
+ /** `COUNT(*)` plus one SUM/MIN/MAX per field, in one statement. Mirror of
12367
+ * `settings-store.aggregate` — see it for why an unresolvable field is
12368
+ * refused rather than dropped. */
12369
+ aggregate: method(object({
12370
+ namespace: string().optional(),
12371
+ collection: string(),
12372
+ fields: array(AggregateFieldSchema).readonly(),
12373
+ filter: QueryFilterSchema.optional()
12374
+ }), AggregateResultSchema, { auth: "admin" }),
12206
12375
  /** Grouped counts per ((field-origin)/bucketSize) bucket, filtered. */
12207
12376
  histogram: method(object({
12208
12377
  namespace: string().optional(),
@@ -12980,24 +13149,6 @@ var deviceProviderCapability = {
12980
13149
  })
12981
13150
  }
12982
13151
  };
12983
- /**
12984
- * Device Manager capability — hub-side singleton that unifies device persistence,
12985
- * live registry access, and all management operations into a single tRPC surface.
12986
- *
12987
- * Replaces:
12988
- * - `device-persistence` capability (persistence methods absorbed here)
12989
- * - `device-management.router.ts` (deleted in Phase 2)
12990
- * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
12991
- *
12992
- * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
12993
- * fork into separate processes but never run on remote cluster agents. Therefore:
12994
- * - No nodeId routing needed — this is a pure hub singleton.
12995
- * - The hub's DeviceRegistry is the single source of truth for all live devices.
12996
- * - No shadow registry or cross-node aggregation required.
12997
- *
12998
- * Forked workers register devices back to the hub via `ctx.devices`
12999
- * (DeviceManagerApi → ctx.api.deviceManager.registerDevice), same as today.
13000
- */
13001
13152
  /** One child-placement directive on a container's `childLayout`. Structurally
13002
13153
  * identical to `ChildLayoutEntry` in `device-management.ts` — the cap wire
13003
13154
  * shape for the same field. The child is identified by its re-sync-stable
@@ -13509,6 +13660,39 @@ var deviceManagerCapability = {
13509
13660
  /** List children of a parent device (by parent numeric id). */
13510
13661
  getChildren: method(object({ parentDeviceId: number() }), array(DeviceInfoSchema)),
13511
13662
  /**
13663
+ * `getChildren` for a NAMED SET of parents, in one call.
13664
+ *
13665
+ * The accessory reconcile in `device-cap-proxy.ts` asks this question once
13666
+ * per registered device — every `BaseDevice` inherits a
13667
+ * `getAccessoryChildren()` that returns `[]`, so even a leaf accessory
13668
+ * pays a round-trip to learn it has nothing to prune. Measured on the live
13669
+ * hub 2026-08-27 over a 120-second boot window, fleet of 1 017 devices:
13670
+ * `DeviceRowStore.list < DeviceRowStore.listByParent < getChildren` at
13671
+ * **1 024 calls** returning **919 rows in total** — 1 024 RPCs and 1 024
13672
+ * indexed scans to move less than one row each. `listByParentMany`
13673
+ * collapses the scans; this collapses the RPCs.
13674
+ *
13675
+ * Keyed by parent id as a STRING — a JSON object cannot key by number
13676
+ * (same reason as `getDeviceStatusAggregateBatch`). The per-parent value
13677
+ * is exactly what `getChildren` returns for that parent.
13678
+ *
13679
+ * A parent with no children — or one the fleet does not know — is ABSENT
13680
+ * from the record, never an invented empty row: the same contract as
13681
+ * `DeviceRowStore.getMany`/`listByParentMany`. An EMPTY `parentDeviceIds`
13682
+ * reads nothing at all rather than degrading to "every device".
13683
+ *
13684
+ * `parentDeviceIds` is capped at {@link DEVICE_CHILDREN_BATCH_MAX} — see
13685
+ * that constant for why. A caller with more parents than that sends more
13686
+ * than one call; it never sends one pathological one.
13687
+ *
13688
+ * Version skew: this is a NEW method, not a new field on `getChildren`, so
13689
+ * a hub that predates it answers NOT_FOUND rather than silently stripping
13690
+ * an unknown input key and answering a DIFFERENT question. The kernel-side
13691
+ * loader degrades to per-parent `getChildren` on that error — see
13692
+ * `children-batch-loader.ts`.
13693
+ */
13694
+ getChildrenBatch: method(object({ parentDeviceIds: array(number()).max(256) }), record(string(), array(DeviceInfoSchema))),
13695
+ /**
13512
13696
  * Resolve the devices LINKED to a camera — the single policy authority
13513
13697
  * both consumers call (viewer devices panel + pipeline-analytics event
13514
13698
  * kinds/ingest). Device-tree children are ALWAYS included; mode 'auto'
@@ -14656,6 +14840,80 @@ var llmCapability = {
14656
14840
  })
14657
14841
  }
14658
14842
  };
14843
+ /**
14844
+ * `log-channels` — the capability an addon DECLARES its diagnostic channels
14845
+ * through. It stores nothing.
14846
+ *
14847
+ * ## Why a capability at all, and why this shape
14848
+ *
14849
+ * Which channels exist is knowledge only the addon has: `stream-broker` knows
14850
+ * webrtc/ICE/RTP, `provider-reolink` knows baichuan/handshake. A central list
14851
+ * maintained by hand rots at the first addition and rots INVISIBLY — nothing
14852
+ * fails, an operator just never sees the channel somebody added. So the list
14853
+ * is assembled from declarations at runtime.
14854
+ *
14855
+ * The shape is copied from `log-destination.cap.ts`, which already does
14856
+ * exactly this job: `mode: 'collection'`, `internal: true`,
14857
+ * `mount: { kind: 'skip' }` — no tRPC route, no generated hooks — while
14858
+ * `addons.listCapabilityProviders` still enumerates it, and the hub's
14859
+ * `CapabilityRegistry` still holds an RPC proxy per provider so a forked
14860
+ * runner's declarations reach hub-main over the transport that already exists.
14861
+ * No new UDS message, no second registry.
14862
+ *
14863
+ * ## What it deliberately does NOT own
14864
+ *
14865
+ * The VALUES — which channel is armed, for which cameras, until when — live in
14866
+ * ONE place: the logging settings document on the `system` cap
14867
+ * (`getLoggingSettings` / `setLoggingSettings`). Two authorities over the same
14868
+ * value is the defect the plan behind this work exists to remove, and
14869
+ * `setRequestCensus` was retired (D245) rather than allowed to be a second
14870
+ * one. {@link logChannelsCapability} therefore has no getter for a level, no
14871
+ * setter for a window and no persistence of any kind.
14872
+ *
14873
+ * ## Why `apply` is here even so
14874
+ *
14875
+ * The gate lives in the addon's PROCESS; the document lives in hub-main. Some
14876
+ * seam has to carry the value from the authority to the mirror, and a channel
14877
+ * that cannot be reached is precisely the dead knob this whole slice exists to
14878
+ * make impossible (D62 — `audioThresholdDbfs`, the HA entities with no source).
14879
+ * `apply` is that seam and nothing more: it writes an in-memory mirror, it
14880
+ * persists nothing, it is never the source of a value, and it is called only
14881
+ * with a set the hub actually read (D49 — a read that fails does not call it
14882
+ * at all, so no channel is silently disarmed by a bad read).
14883
+ */
14884
+ /** What `apply` reports back — enough to log, not enough to be a second state. */
14885
+ var LogChannelApplyResultSchema = object({
14886
+ /** How many declared channels are armed in this process after the call. */
14887
+ armed: number().int().min(0),
14888
+ /**
14889
+ * Names the document armed that this process does not declare. Reported
14890
+ * rather than swallowed: a name here is either a typo or an addon that has
14891
+ * not booted, and both deserve a line instead of silence.
14892
+ */
14893
+ unknown: array(string()).readonly()
14894
+ });
14895
+ var logChannelsCapability = {
14896
+ name: "log-channels",
14897
+ scope: "system",
14898
+ mode: "collection",
14899
+ internal: true,
14900
+ methods: {
14901
+ /** The channels this addon declares. Inert: no value, no state. */
14902
+ list: method(_void(), array(LogChannelDescriptorSchema).readonly()),
14903
+ /**
14904
+ * Refresh this process's mirror from the document's FULL set of armed
14905
+ * windows.
14906
+ *
14907
+ * Full and not incremental on purpose: the document is the authority, so a
14908
+ * channel it does not name is disarmed here. An incremental apply would
14909
+ * let a disarm get lost in transit and leave a channel running that
14910
+ * nobody can see is running.
14911
+ */
14912
+ apply: method(object({ windows: array(LogChannelWindowSchema).readonly() }), LogChannelApplyResultSchema, { kind: "mutation" })
14913
+ },
14914
+ /** In-process only — enumerated through `addons.listCapabilityProviders`. */
14915
+ mount: { kind: "skip" }
14916
+ };
14659
14917
  var LogLevelSchema = _enum([
14660
14918
  "debug",
14661
14919
  "info",
@@ -33192,17 +33450,60 @@ var SetSiteLocationInputSchema = object({
33192
33450
  longitude: number().min(-180).max(180)
33193
33451
  }).nullable();
33194
33452
  /**
33195
- * One `(procedure, user-agent, ip, principal)` tuple of the HTTP request
33453
+ * The TRANSPORT a call arrived on.
33454
+ *
33455
+ * Every counted call carries exactly one of these, and `unknown` is a PLANE
33456
+ * rather than a gap: a plane that cannot attribute a call declares it here, so
33457
+ * the call lands in a named bucket instead of vanishing. `planes` summing to
33458
+ * `procedureCalls` is what makes "the sum of the planes explains the total"
33459
+ * checkable rather than asserted.
33460
+ *
33461
+ * - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
33462
+ * - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
33463
+ * connection; the viewer talks to the hub over `wsLink`
33464
+ * exclusively, so this is the plane the HTTP census could not see.
33465
+ * - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
33466
+ * never touches a socket and therefore never touched a census.
33467
+ * - `unknown` — counted, plane undecidable. No hook produces it today, and
33468
+ * that is exactly what its `0` asserts: every plane the hub has can name
33469
+ * itself. It is an output bucket, never a knob — a call that arrives on a
33470
+ * plane nobody instrumented lands here instead of vanishing from the total.
33471
+ */
33472
+ var TransportPlaneSchema = _enum([
33473
+ "http",
33474
+ "ws",
33475
+ "mesh",
33476
+ "unknown"
33477
+ ]);
33478
+ /**
33479
+ * Calls per plane. Every key is always present, `0` included — an absent plane
33480
+ * reads as "not instrumented", which is the one thing this census must never
33481
+ * make an operator wonder about.
33482
+ */
33483
+ var TransportPlaneCountsSchema = object({
33484
+ http: number(),
33485
+ ws: number(),
33486
+ mesh: number(),
33487
+ unknown: number()
33488
+ });
33489
+ /**
33490
+ * One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
33196
33491
  * census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
33197
33492
  * `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
33198
33493
  * already prints - never a token, never an `Authorization` header.
33494
+ *
33495
+ * `subscriptions` is counted APART from `calls`: a subscription is opened once
33496
+ * and lives for hours, so folding it into a call count makes one long-lived
33497
+ * stream look like a storm.
33199
33498
  */
33200
33499
  var RequestCensusGroupSchema = object({
33500
+ plane: TransportPlaneSchema,
33201
33501
  procedure: string(),
33202
33502
  userAgent: string(),
33203
33503
  ip: string(),
33204
33504
  principal: string(),
33205
33505
  calls: number(),
33506
+ subscriptions: number(),
33206
33507
  perMin: number()
33207
33508
  });
33208
33509
  /**
@@ -33215,6 +33516,14 @@ var RequestCensusGroupSchema = object({
33215
33516
  var RequestCensusProcedureSchema = object({
33216
33517
  procedure: string(),
33217
33518
  calls: number(),
33519
+ /**
33520
+ * The same total, split by transport. THIS is the row that answers the
33521
+ * question the census exists for: one look at `deviceManager.listAll` says
33522
+ * which plane carried the 4 960, without joining two log lines by eye.
33523
+ */
33524
+ planes: TransportPlaneCountsSchema,
33525
+ /** Subscription STARTS on this procedure. Never folded into `calls`. */
33526
+ subscriptions: number(),
33218
33527
  perMin: number()
33219
33528
  });
33220
33529
  /**
@@ -33242,14 +33551,45 @@ var RequestCensusStatusSchema = object({
33242
33551
  */
33243
33552
  procedureCalls: number(),
33244
33553
  /**
33554
+ * `procedureCalls` split by transport. The four keys sum to
33555
+ * `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
33556
+ * `planesExplainTotal` is that identity, checked rather than assumed.
33557
+ */
33558
+ planes: TransportPlaneCountsSchema,
33559
+ /**
33560
+ * True iff `planes` sums to `procedureCalls`. False means a call was counted
33561
+ * on no plane at all - which is a RESULT (a plane is missing from the
33562
+ * instrument), not a failure, and it has to be visible to be read as one.
33563
+ */
33564
+ planesExplainTotal: boolean(),
33565
+ /**
33245
33566
  * tRPC WebSocket connections opened during the window. NOT calls - the WS
33246
- * transport resolves one context per connection - but the number that says
33247
- * whether a plane this census cannot see was busy while HTTP was quiet.
33567
+ * adapter resolves one context per connection - kept because a plane's call
33568
+ * count of zero against 37 open connections says something different from a
33569
+ * plane with no connections at all.
33248
33570
  */
33249
33571
  wsConnections: number(),
33572
+ /**
33573
+ * Client frames the WS plane looked at. `wsMessages` far above
33574
+ * `planes.ws + subscriptions` means most traffic is not operations
33575
+ * (keepalives, connection params) - which is itself an answer.
33576
+ */
33577
+ wsMessages: number(),
33578
+ /**
33579
+ * Subscription STARTS across every plane, excluded from `procedureCalls` on
33580
+ * purpose: one live-events stream opened at boot and held for six hours is
33581
+ * one subscription, and counting it as a call would let a quiet plane
33582
+ * masquerade as the storm.
33583
+ */
33584
+ subscriptions: number(),
33585
+ /** `subscription.stop` frames. Starts minus stops is what is still open. */
33586
+ subscriptionStops: number(),
33250
33587
  distinctGroups: number(),
33251
- /** Calls counted in the totals whose group attribution was shed at the
33252
- * cardinality bound. */
33588
+ /**
33589
+ * Operations counted in the totals whose CALLER attribution was shed at the
33590
+ * cardinality bound. Unrelated to the `unknown` PLANE: these calls know
33591
+ * which transport they arrived on, they just lost their group row.
33592
+ */
33253
33593
  unattributedCalls: number(),
33254
33594
  procedures: array(RequestCensusProcedureSchema).readonly(),
33255
33595
  groups: array(RequestCensusGroupSchema).readonly()
@@ -33272,10 +33612,11 @@ var DiagnosticIdSchema = _enum(["request-census"]);
33272
33612
  * The layers of the level hierarchy, general → specific. The most specific
33273
33613
  * layer that carries an explicit value wins.
33274
33614
  *
33275
- * `component` is DECLARED and not yet resolvable: the per-component channels
33276
- * are a later slice of the same plan, and a `levelSource` enum that has to
33277
- * grow later would force every consumer of this document to change with it.
33278
- * Nothing returns `component` today.
33615
+ * `component` became RESOLVABLE on 2026-08-27: a component is a declared log
33616
+ * CHANNEL (`stream-broker.webrtc`, `provider-reolink.baichuan`), named by
33617
+ * `scopeComponent`. It was declared-but-dark in the first slice precisely so
33618
+ * that turning it on would not force every consumer of this document to widen
33619
+ * a `levelSource` enum — which is what has now not happened.
33279
33620
  */
33280
33621
  var LoggingScopeKindSchema = _enum([
33281
33622
  "cluster",
@@ -33302,6 +33643,14 @@ var LoggingLevelLayerSchema = object({
33302
33643
  scope: LoggingScopeKindSchema,
33303
33644
  /** The node this layer speaks for; `null` on the cluster layer. */
33304
33645
  nodeId: string().nullable(),
33646
+ /**
33647
+ * The declared channel this layer speaks for; `null` on every layer but
33648
+ * `component`. Never folded into `nodeId`: a component level is CLUSTER-WIDE
33649
+ * by design — the convention this repo settled on is one orchestrator-wide
33650
+ * setting, never per node (D52) — so a component layer that carried a node
33651
+ * would invite a per-node copy of a value that has no per-node meaning.
33652
+ */
33653
+ component: string().nullable(),
33305
33654
  /** Explicitly set here, or `null` when this layer inherits. */
33306
33655
  level: LogLevelSchema$1.nullable()
33307
33656
  });
@@ -33343,6 +33692,49 @@ var DiagnosticWindowPatchSchema = object({
33343
33692
  reportEveryMs: number().int().positive().optional()
33344
33693
  });
33345
33694
  /**
33695
+ * A channel ARMED, as the document reports it.
33696
+ *
33697
+ * `armMs` is not echoed back: what an operator needs to see is the deadline
33698
+ * and the time left, because a diagnostic left running is itself an incident
33699
+ * and "armed for 10 minutes" said an hour ago is not an answer.
33700
+ */
33701
+ var LogChannelWindowStateSchema = object({
33702
+ channel: string(),
33703
+ armed: boolean(),
33704
+ /** Epoch ms the window closes at. 0 when disarmed. */
33705
+ armedUntilMs: number(),
33706
+ /** Ms left before it expires on its own. 0 when disarmed. */
33707
+ remainingMs: number(),
33708
+ /**
33709
+ * The cameras it is narrowed to, or `null` for every camera.
33710
+ *
33711
+ * A channel declared `perDevice: false` can only ever report `null` here:
33712
+ * its lines do not carry `tags: { deviceId }`, so narrowing them would
33713
+ * produce a filter that silently matches nothing. The server REFUSES such a
33714
+ * patch rather than quietly widening it — ignoring the request would teach
33715
+ * the operator that per-camera filtering works on that channel when it does
33716
+ * not.
33717
+ */
33718
+ deviceIds: array(number().int()).readonly().nullable()
33719
+ });
33720
+ /**
33721
+ * `armMs: 0` DISARMS. Same grammar as {@link DiagnosticWindowPatchSchema}, and
33722
+ * for the same reason: a channel is a window with a deadline, never a switch.
33723
+ */
33724
+ var LogChannelWindowPatchSchema = object({
33725
+ channel: string().min(1),
33726
+ armMs: number().int().min(0),
33727
+ /**
33728
+ * Narrow to these numeric device ids. Absent or `null` = every camera.
33729
+ *
33730
+ * Numeric because the repo's own rule makes it possible: every log line
33731
+ * about a device carries `tags: { deviceId }` with the numeric id. That rule
33732
+ * was paid for with a 22% thumbnail gap and a 3-hour media blackout both
33733
+ * diagnosed by hand, and this is the first thing that collects on it.
33734
+ */
33735
+ deviceIds: array(number().int()).readonly().nullable().optional()
33736
+ });
33737
+ /**
33346
33738
  * A PATCH, and patches MERGE.
33347
33739
  *
33348
33740
  * A field absent from the patch is left exactly as it was — arming a
@@ -33361,7 +33753,14 @@ var LoggingSettingsPatchSchema = object({
33361
33753
  * Only the diagnostics NAMED here change. An armed window that is not listed
33362
33754
  * keeps running — a patch is never a full replacement.
33363
33755
  */
33364
- diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional()
33756
+ diagnostics: array(DiagnosticWindowPatchSchema).readonly().optional(),
33757
+ /**
33758
+ * Only the channels NAMED here change. An armed channel that is not listed
33759
+ * keeps running — same rule as `diagnostics`, because a patch that silently
33760
+ * disarmed the channels it did not mention would make the Levels page and
33761
+ * the Diagnostics page fight over the same value.
33762
+ */
33763
+ channels: array(LogChannelWindowPatchSchema).readonly().optional()
33365
33764
  });
33366
33765
  /**
33367
33766
  * Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
@@ -33374,9 +33773,22 @@ var LoggingSettingsPatchSchema = object({
33374
33773
  * authority over the whole hierarchy and answers for every layer, so the
33375
33774
  * layer selector needs a name the transport does not already own.
33376
33775
  */
33377
- var GetLoggingSettingsInputSchema = object({ scopeNodeId: string().optional() });
33776
+ var GetLoggingSettingsInputSchema = object({
33777
+ scopeNodeId: string().optional(),
33778
+ /**
33779
+ * The declared CHANNEL this document is addressed at, when the caller wants
33780
+ * the `component` layer. Absent = the node/cluster hierarchy only.
33781
+ *
33782
+ * Naming it separately rather than overloading `scopeNodeId` keeps the two
33783
+ * axes from collapsing: a component level is cluster-wide, a node level is
33784
+ * not, and one selector for both would make "which of these two did I just
33785
+ * set" unanswerable — the exact ambiguity `explicit` exists to remove.
33786
+ */
33787
+ scopeComponent: string().optional()
33788
+ });
33378
33789
  var SetLoggingSettingsInputSchema = object({
33379
33790
  scopeNodeId: string().optional(),
33791
+ scopeComponent: string().optional(),
33380
33792
  patch: LoggingSettingsPatchSchema
33381
33793
  });
33382
33794
  /**
@@ -33391,9 +33803,20 @@ var SetLoggingSettingsInputSchema = object({
33391
33803
  var LoggingSettingsStateSchema = object({
33392
33804
  /** The layer this document was read at. `null` = the cluster layer. */
33393
33805
  scopeNodeId: string().nullable(),
33806
+ /** The channel this document was read at. `null` = no component layer. */
33807
+ scopeComponent: string().nullable(),
33394
33808
  effective: LoggingEffectiveSchema,
33395
33809
  explicit: LoggingExplicitSchema,
33396
33810
  activeWindows: array(DiagnosticWindowSchema).readonly(),
33811
+ /**
33812
+ * Every channel the cluster's addons DECLARE, gathered from the
33813
+ * `log-channels` providers. Not stored anywhere: assembled per read, so a
33814
+ * channel added by a redeployed addon appears without anybody editing a
33815
+ * list, and a channel whose addon is gone stops being offered.
33816
+ */
33817
+ channels: array(LogChannelDescriptorSchema).readonly(),
33818
+ /** The channels ARMED right now, each with its deadline. */
33819
+ activeChannels: array(LogChannelWindowStateSchema).readonly(),
33397
33820
  persisted: boolean()
33398
33821
  });
33399
33822
  var systemCapability = {
@@ -34702,6 +35125,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
34702
35125
  llmRuntimeCapability,
34703
35126
  localNetworkCapability,
34704
35127
  lockControlCapability,
35128
+ logChannelsCapability,
34705
35129
  logDestinationCapability,
34706
35130
  loginMethodCapability,
34707
35131
  mediaPlayerCapability,
@@ -35668,6 +36092,12 @@ Object.freeze({
35668
36092
  addonId: null,
35669
36093
  access: "view"
35670
36094
  },
36095
+ "dataStoreProvider.aggregate": {
36096
+ capName: "data-store-provider",
36097
+ capScope: "system",
36098
+ addonId: null,
36099
+ access: "view"
36100
+ },
35671
36101
  "dataStoreProvider.count": {
35672
36102
  capName: "data-store-provider",
35673
36103
  capScope: "system",
@@ -36082,6 +36512,12 @@ Object.freeze({
36082
36512
  addonId: null,
36083
36513
  access: "view"
36084
36514
  },
36515
+ "deviceManager.getChildrenBatch": {
36516
+ capName: "device-manager",
36517
+ capScope: "system",
36518
+ addonId: null,
36519
+ access: "view"
36520
+ },
36085
36521
  "deviceManager.getConfigSchema": {
36086
36522
  capName: "device-manager",
36087
36523
  capScope: "system",
@@ -37132,6 +37568,18 @@ Object.freeze({
37132
37568
  addonId: null,
37133
37569
  access: "create"
37134
37570
  },
37571
+ "logChannels.apply": {
37572
+ capName: "log-channels",
37573
+ capScope: "system",
37574
+ addonId: null,
37575
+ access: "create"
37576
+ },
37577
+ "logChannels.list": {
37578
+ capName: "log-channels",
37579
+ capScope: "system",
37580
+ addonId: null,
37581
+ access: "view"
37582
+ },
37135
37583
  "logDestination.query": {
37136
37584
  capName: "log-destination",
37137
37585
  capScope: "system",
@@ -39286,6 +39734,12 @@ Object.freeze({
39286
39734
  addonId: null,
39287
39735
  access: "create"
39288
39736
  },
39737
+ "settingsStore.aggregate": {
39738
+ capName: "settings-store",
39739
+ capScope: "system",
39740
+ addonId: null,
39741
+ access: "view"
39742
+ },
39289
39743
  "settingsStore.count": {
39290
39744
  capName: "settings-store",
39291
39745
  capScope: "system",
@@ -40865,6 +41319,11 @@ Object.freeze({
40865
41319
  form: "single",
40866
41320
  optional: false
40867
41321
  }],
41322
+ "deviceManager.getChildrenBatch": [{
41323
+ name: "parentDeviceIds",
41324
+ form: "array",
41325
+ optional: false
41326
+ }],
40868
41327
  "deviceManager.getConfigSchema": [{
40869
41328
  name: "deviceId",
40870
41329
  form: "single",
@@ -1,5 +1,5 @@
1
1
  import { h as e, l as t, u as n, y as r } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs";
2
- import { o as i, s as a } from "./responsive-D6d5-RK_.mjs";
2
+ import { o as i, s as a } from "./responsive-C-8_bIDl.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 = a("chevron-down", [["path", {
5
5
  d: "m6 9 6 6 6-6",