@camstack/addon-osd-manager 0.1.26 → 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.
- package/dist/{MotionZonesSettings-Dy_h9EA1.mjs → MotionZonesSettings-BaHVcJbF.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-CaWxq05R.mjs → PrivacyMaskSettings-Bp4jWnFG.mjs} +4 -4
- package/dist/{SceneMonitorEditor-8hN2YKuj.mjs → SceneMonitorEditor-VaKlqiGB.mjs} +3 -3
- package/dist/_stub.js +2392 -2393
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-kjdb00lx.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-Dsmn7JiI.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Dcc73wc4.mjs +26 -0
- package/dist/{hostInit-BDUiCsCj.mjs → hostInit-BBu1Mgkm.mjs} +3 -3
- package/dist/index.js +401 -24
- package/dist/index.mjs +401 -24
- package/dist/{player-overlays-COKQa37c.mjs → player-overlays-DgLOOYci.mjs} +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-BPlFvtSt.mjs → responsive-C-8_bIDl.mjs} +1 -1
- package/dist/{square-BhmFshyv.mjs → square-CavMCLRh.mjs} +1 -1
- package/dist/{trash-2-Bfyk6oRp.mjs → trash-2-DCAcPlaj.mjs} +1 -1
- package/dist/{use-device-snapshot-CbUEtNq7.mjs → use-device-snapshot-Ji1nLnaC.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CKsyFdWi.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CvAo2VBZ.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-DwVNeYGJ.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",
|
|
@@ -33354,10 +33612,11 @@ var DiagnosticIdSchema = _enum(["request-census"]);
|
|
|
33354
33612
|
* The layers of the level hierarchy, general → specific. The most specific
|
|
33355
33613
|
* layer that carries an explicit value wins.
|
|
33356
33614
|
*
|
|
33357
|
-
* `component`
|
|
33358
|
-
*
|
|
33359
|
-
*
|
|
33360
|
-
*
|
|
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.
|
|
33361
33620
|
*/
|
|
33362
33621
|
var LoggingScopeKindSchema = _enum([
|
|
33363
33622
|
"cluster",
|
|
@@ -33384,6 +33643,14 @@ var LoggingLevelLayerSchema = object({
|
|
|
33384
33643
|
scope: LoggingScopeKindSchema,
|
|
33385
33644
|
/** The node this layer speaks for; `null` on the cluster layer. */
|
|
33386
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(),
|
|
33387
33654
|
/** Explicitly set here, or `null` when this layer inherits. */
|
|
33388
33655
|
level: LogLevelSchema$1.nullable()
|
|
33389
33656
|
});
|
|
@@ -33425,6 +33692,49 @@ var DiagnosticWindowPatchSchema = object({
|
|
|
33425
33692
|
reportEveryMs: number().int().positive().optional()
|
|
33426
33693
|
});
|
|
33427
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
|
+
/**
|
|
33428
33738
|
* A PATCH, and patches MERGE.
|
|
33429
33739
|
*
|
|
33430
33740
|
* A field absent from the patch is left exactly as it was — arming a
|
|
@@ -33443,7 +33753,14 @@ var LoggingSettingsPatchSchema = object({
|
|
|
33443
33753
|
* Only the diagnostics NAMED here change. An armed window that is not listed
|
|
33444
33754
|
* keeps running — a patch is never a full replacement.
|
|
33445
33755
|
*/
|
|
33446
|
-
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()
|
|
33447
33764
|
});
|
|
33448
33765
|
/**
|
|
33449
33766
|
* Which LAYER of the hierarchy is addressed. Absent = the cluster layer.
|
|
@@ -33456,9 +33773,22 @@ var LoggingSettingsPatchSchema = object({
|
|
|
33456
33773
|
* authority over the whole hierarchy and answers for every layer, so the
|
|
33457
33774
|
* layer selector needs a name the transport does not already own.
|
|
33458
33775
|
*/
|
|
33459
|
-
var GetLoggingSettingsInputSchema = object({
|
|
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
|
+
});
|
|
33460
33789
|
var SetLoggingSettingsInputSchema = object({
|
|
33461
33790
|
scopeNodeId: string().optional(),
|
|
33791
|
+
scopeComponent: string().optional(),
|
|
33462
33792
|
patch: LoggingSettingsPatchSchema
|
|
33463
33793
|
});
|
|
33464
33794
|
/**
|
|
@@ -33473,9 +33803,20 @@ var SetLoggingSettingsInputSchema = object({
|
|
|
33473
33803
|
var LoggingSettingsStateSchema = object({
|
|
33474
33804
|
/** The layer this document was read at. `null` = the cluster layer. */
|
|
33475
33805
|
scopeNodeId: string().nullable(),
|
|
33806
|
+
/** The channel this document was read at. `null` = no component layer. */
|
|
33807
|
+
scopeComponent: string().nullable(),
|
|
33476
33808
|
effective: LoggingEffectiveSchema,
|
|
33477
33809
|
explicit: LoggingExplicitSchema,
|
|
33478
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(),
|
|
33479
33820
|
persisted: boolean()
|
|
33480
33821
|
});
|
|
33481
33822
|
var systemCapability = {
|
|
@@ -34784,6 +35125,7 @@ var ALL_CAPABILITY_DEFINITIONS = [
|
|
|
34784
35125
|
llmRuntimeCapability,
|
|
34785
35126
|
localNetworkCapability,
|
|
34786
35127
|
lockControlCapability,
|
|
35128
|
+
logChannelsCapability,
|
|
34787
35129
|
logDestinationCapability,
|
|
34788
35130
|
loginMethodCapability,
|
|
34789
35131
|
mediaPlayerCapability,
|
|
@@ -35750,6 +36092,12 @@ Object.freeze({
|
|
|
35750
36092
|
addonId: null,
|
|
35751
36093
|
access: "view"
|
|
35752
36094
|
},
|
|
36095
|
+
"dataStoreProvider.aggregate": {
|
|
36096
|
+
capName: "data-store-provider",
|
|
36097
|
+
capScope: "system",
|
|
36098
|
+
addonId: null,
|
|
36099
|
+
access: "view"
|
|
36100
|
+
},
|
|
35753
36101
|
"dataStoreProvider.count": {
|
|
35754
36102
|
capName: "data-store-provider",
|
|
35755
36103
|
capScope: "system",
|
|
@@ -36164,6 +36512,12 @@ Object.freeze({
|
|
|
36164
36512
|
addonId: null,
|
|
36165
36513
|
access: "view"
|
|
36166
36514
|
},
|
|
36515
|
+
"deviceManager.getChildrenBatch": {
|
|
36516
|
+
capName: "device-manager",
|
|
36517
|
+
capScope: "system",
|
|
36518
|
+
addonId: null,
|
|
36519
|
+
access: "view"
|
|
36520
|
+
},
|
|
36167
36521
|
"deviceManager.getConfigSchema": {
|
|
36168
36522
|
capName: "device-manager",
|
|
36169
36523
|
capScope: "system",
|
|
@@ -37214,6 +37568,18 @@ Object.freeze({
|
|
|
37214
37568
|
addonId: null,
|
|
37215
37569
|
access: "create"
|
|
37216
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
|
+
},
|
|
37217
37583
|
"logDestination.query": {
|
|
37218
37584
|
capName: "log-destination",
|
|
37219
37585
|
capScope: "system",
|
|
@@ -39368,6 +39734,12 @@ Object.freeze({
|
|
|
39368
39734
|
addonId: null,
|
|
39369
39735
|
access: "create"
|
|
39370
39736
|
},
|
|
39737
|
+
"settingsStore.aggregate": {
|
|
39738
|
+
capName: "settings-store",
|
|
39739
|
+
capScope: "system",
|
|
39740
|
+
addonId: null,
|
|
39741
|
+
access: "view"
|
|
39742
|
+
},
|
|
39371
39743
|
"settingsStore.count": {
|
|
39372
39744
|
capName: "settings-store",
|
|
39373
39745
|
capScope: "system",
|
|
@@ -40947,6 +41319,11 @@ Object.freeze({
|
|
|
40947
41319
|
form: "single",
|
|
40948
41320
|
optional: false
|
|
40949
41321
|
}],
|
|
41322
|
+
"deviceManager.getChildrenBatch": [{
|
|
41323
|
+
name: "parentDeviceIds",
|
|
41324
|
+
form: "array",
|
|
41325
|
+
optional: false
|
|
41326
|
+
}],
|
|
40950
41327
|
"deviceManager.getConfigSchema": [{
|
|
40951
41328
|
name: "deviceId",
|
|
40952
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-
|
|
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",
|
package/dist/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-
|
|
1
|
+
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-CvAo2VBZ.mjs";
|
|
2
2
|
export { t as get, e as init };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as e, g as t, h as n, l as r, n as i, p as a, r as o, t as s, u as c, y as l } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs";
|
|
2
2
|
import "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DalfdIDw.mjs";
|
|
3
|
-
import { n as u } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-
|
|
3
|
+
import { n as u } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-Dcc73wc4.mjs";
|
|
4
4
|
//#region ../ui-library/node_modules/lucide-react/dist/esm/shared/src/utils/mergeClasses.js
|
|
5
5
|
l();
|
|
6
6
|
var d = (...e) => e.filter((e, t, n) => !!e && e.trim() !== "" && n.indexOf(e) === t).join(" ").trim(), f = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), p = (e) => e.replace(/^([A-Z])|[\s-_]+(\w)/g, (e, t, n) => n ? n.toUpperCase() : t.toLowerCase()), m = (e) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as e, h as t, p as n, y as r } from "./_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare__react__loadShare__.js-Bs1t18EM.mjs";
|
|
2
|
-
import { s as i } from "./responsive-
|
|
2
|
+
import { s as i } from "./responsive-C-8_bIDl.mjs";
|
|
3
3
|
var a = i("camera", [["path", {
|
|
4
4
|
d: "M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",
|
|
5
5
|
key: "18u6gg"
|
|
@@ -2753,7 +2753,7 @@ async function rr(e) {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
2755
|
async function ir() {
|
|
2756
|
-
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-
|
|
2756
|
+
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-Dsmn7JiI.mjs")).catch((e) => {
|
|
2757
2757
|
throw tr = void 0, e;
|
|
2758
2758
|
}), tr;
|
|
2759
2759
|
}
|