@camstack/addon-osd-manager 0.1.74 → 0.1.76

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-C7jRsout.mjs → MotionZonesSettings-CItDvEc5.mjs} +2 -2
  2. package/dist/{PrivacyMaskSettings-BdztqQd2.mjs → PrivacyMaskSettings-VeNNRVMu.mjs} +4 -4
  3. package/dist/{SceneMonitorEditor-Cg47gSZn.mjs → SceneMonitorEditor-BnVVp8sl.mjs} +3 -3
  4. package/dist/_stub.js +10 -10
  5. package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-CmPl5hdU.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_osd_manager_page-CHwKOVWZ.mjs} +4 -4
  6. package/dist/_virtual_mf___mfe_internal__addon_osd_manager_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-CDiViHE5.mjs +26 -0
  7. package/dist/{hostInit-DU92Esx8.mjs → hostInit-CY_6sAcM.mjs} +3 -3
  8. package/dist/index.js +157 -141
  9. package/dist/index.mjs +157 -141
  10. package/dist/{player-overlays-o65lZSbk.mjs → player-overlays-xYmIawDd.mjs} +1 -1
  11. package/dist/remoteEntry.js +1 -1
  12. package/dist/{responsive-DbTv1Tw_.mjs → responsive-D9gHzlvL.mjs} +1 -1
  13. package/dist/{square-3lb1NRdx.mjs → square-Ck1Vpfun.mjs} +1 -1
  14. package/dist/{trash-2-C80GFjip.mjs → trash-2-CblWdY3m.mjs} +1 -1
  15. package/dist/{use-device-snapshot-C6nbTUeb.mjs → use-device-snapshot-0nA-SEes.mjs} +1 -1
  16. package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-oBAgNGM4.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_osd_manager_page__remoteEntry_js-fV9ZdWgn.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-bYmvh4b8.mjs +0 -26
package/dist/index.js CHANGED
@@ -7714,111 +7714,6 @@ var CameraSwitchGroupSchema = object({
7714
7714
  fetchedAt: number()
7715
7715
  });
7716
7716
  /**
7717
- * Per-component log CHANNELS — the gate a hot path consults, and the registry
7718
- * an addon declares its channels in.
7719
- *
7720
- * ## Two axes, deliberately separated
7721
- *
7722
- * - **DECLARATION** — which channels exist. Only the addon knows:
7723
- * `stream-broker` knows webrtc/ICE/RTP, `provider-reolink` knows
7724
- * baichuan/handshake. A hand-wired central list rots at the first addition,
7725
- * and rots silently. So a channel is declared where it is consulted, and the
7726
- * `log-channels` capability enumerates the declarations.
7727
- * - **VALUE** — at which level, for which scope, until when. That stays ONE
7728
- * thing: the logging settings document on the `system` cap. Two authorities
7729
- * over the values is the exact defect
7730
- * `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
7731
- * remove; re-introducing it from the cure side would be grotesque.
7732
- *
7733
- * Nothing in this file reads a clock, an env var or a store. The registry is
7734
- * a MIRROR: it is moved only by {@link LogChannelRegistry.apply}, called off
7735
- * the hot path with a value somebody actually read, and by
7736
- * {@link LogChannelRegistry.tick}, called on a timer. A store read that fails
7737
- * never reaches here, so it can neither disarm an armed channel nor arm a
7738
- * disarmed one (D49).
7739
- *
7740
- * ## The canonical call shape
7741
- *
7742
- * ```ts
7743
- * if (CH_RTP.on && CH_RTP.wants(deviceId)) {
7744
- * CH_RTP.log(logger, 'rtp subscriber added', { tags: { deviceId }, meta: { ssrc } })
7745
- * }
7746
- * ```
7747
- *
7748
- * `on` is a plain boolean FIELD — never a getter — and it is the FIRST thing
7749
- * read. Disarmed, a call site costs one load and one branch, and the `extras`
7750
- * object literal is never constructed because it lives inside the branch. It
7751
- * is the same shape already proven in production at `stream-broker.ts:1650`,
7752
- * and the same discipline `LoggingGate.allowsDestination` uses for the
7753
- * destination floor (measured at 1.93 ns/call when off).
7754
- *
7755
- * ## Why a channel emits at `info`
7756
- *
7757
- * `loki-logging.addon.ts` pins the destination default at `info` and
7758
- * `loki-destination.ts` drops everything below it, so a line emitted at
7759
- * `debug` never reaches Loki and the hub's in-memory ring only holds ~35
7760
- * minutes. A diagnostic that cannot be read an hour later is worse than no
7761
- * diagnostic, because it looks done. {@link LogChannelGate.log} therefore
7762
- * emits at the channel's declared level, whose schema floor is `info`.
7763
- */
7764
- /**
7765
- * The level a channel writes at once armed.
7766
- *
7767
- * `debug` is absent ON PURPOSE and not by omission: below `info` the line does
7768
- * not leave the process for Loki, and the whole point of arming a channel is
7769
- * to read it later.
7770
- */
7771
- var LogChannelLevelSchema = _enum([
7772
- "info",
7773
- "warn",
7774
- "error"
7775
- ]);
7776
- /**
7777
- * What an addon declares about one channel. No value, no state — a
7778
- * declaration is inert.
7779
- */
7780
- var LogChannelDescriptorSchema = object({
7781
- /**
7782
- * Dotted `area.thing`, unique across the workspace. `area` is conventionally
7783
- * the addon's short name so an operator reading a channel list can tell who
7784
- * owns it without a second lookup.
7785
- */
7786
- name: string().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/, "a channel name is dotted lower-kebab, e.g. area.thing"),
7787
- /** One sentence: what the operator will SEE after arming it. */
7788
- description: string().min(1),
7789
- /** The level its lines are emitted at. Never below `info`. */
7790
- defaultLevel: LogChannelLevelSchema,
7791
- /**
7792
- * Whether this channel can be narrowed to a camera.
7793
- *
7794
- * `true` is a PROMISE with two halves, and both must hold: the gate is
7795
- * consulted with the numeric device id, AND every line the channel admits
7796
- * carries `tags: { deviceId }` with that same numeric id. The second half is
7797
- * what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
7798
- * keeps `deviceId` out of the stream labels for cardinality, so the tag in
7799
- * the body is the only way to filter.
7800
- *
7801
- * A channel whose lines carry the device only in `meta` (or not at all) is
7802
- * declared `false`. Declaring it `true` anyway would be a lie the UI repeats:
7803
- * the operator narrows to one camera, sees nothing, and concludes the code
7804
- * path was never taken.
7805
- */
7806
- perDevice: boolean()
7807
- });
7808
- /**
7809
- * An armed window over one channel, as the document hands it to a mirror.
7810
- *
7811
- * A window is a DEADLINE, never a flag (ADR-0244): a channel somebody forgot
7812
- * expires by itself, which is the one failure a boolean cannot avoid.
7813
- */
7814
- var LogChannelWindowSchema = object({
7815
- channel: string().min(1),
7816
- /** Epoch ms the window closes at. */
7817
- armedUntilMs: number(),
7818
- /** `null` = every camera. A non-empty list narrows to those numeric ids. */
7819
- deviceIds: array(number().int()).readonly().nullable()
7820
- });
7821
- /**
7822
7717
  * Ops-log — the durable, append-only operations audit shared by the
7823
7718
  * recordings and events management surfaces.
7824
7719
  *
@@ -8764,8 +8659,11 @@ var StorageLocationTypeSchema = string().regex(/^[a-z][a-zA-Z0-9-]*$/);
8764
8659
  * `STORAGE_LOCATION_CARDINALITY` map has been removed.
8765
8660
  *
8766
8661
  * `id` is a stable namespaced string of the form `<type>:<slug>`.
8767
- * The default location for a type uses `id === <type>:default` by
8768
- * convention (the bare type ref like `'backups'` resolves to it).
8662
+ * The seed names its first instance `<type>:default` — a NAME, not a flag.
8663
+ * There is no default location any more (D383): `enabled` is the whole write
8664
+ * model, and a bare type ref resolves to the sole location of the type, or —
8665
+ * transitionally, only while legacy NULL-stamped rows exist — to the row whose
8666
+ * slug is `default`.
8769
8667
  *
8770
8668
  * `isSystem` is a legacy persisted flag. Seed still creates the initial
8771
8669
  * `<type>:default` locations; the flag is no longer a lock, a badge, or a
@@ -8786,21 +8684,20 @@ var StorageLocationSchema = object({
8786
8684
  * flag at upsert time, not here (the schema is provider-agnostic).
8787
8685
  */
8788
8686
  nodeId: string().optional(),
8789
- isDefault: boolean().default(false),
8790
8687
  isSystem: boolean().default(false),
8791
8688
  /**
8792
- * Operator opt-in: whether consumers that BALANCE across several locations
8793
- * of a type may write here. Recordings reads it today; event media and
8794
- * backups are the next consumers, which is why the flag lives on the
8795
- * location rather than in any one addon's store nothing has to be
8796
- * extended to add the next consumer.
8689
+ * THE write switch, and the only one (D383). `enabled: true` means every
8690
+ * consumer that chooses a write target for this type may write here, and all
8691
+ * enabled locations of a type are used TOGETHER; `false` means read-only
8692
+ * still read, still played back, still age-swept, still drained, never
8693
+ * written.
8797
8694
  *
8798
- * OPTIONAL, and ABSENT MEANS ACTIVE. Every location persisted before the
8799
- * flag existed reads back with no flag and keeps working exactly as before;
8800
- * that is the whole compat story, and it is why no migration ships with it.
8801
- * A newly CREATED sibling is stamped `false` by the orchestrator (creating a
8802
- * disk must not silently start writing to it); the default of a type is
8803
- * always stamped `true`.
8695
+ * OPTIONAL only for the wire: an upsert that omits it means "leave what is
8696
+ * stored" on an update and "born inert unless it is the first location of its
8697
+ * type" on a create. On a PERSISTED row absence is legacy and it means
8698
+ * enabled {@link isLocationEnabled} is the one place that says so, and the
8699
+ * orchestrator stamps every flagless row `true` once at hydrate so absence
8700
+ * stops existing rather than being re-derived on every read.
8804
8701
  */
8805
8702
  enabled: boolean().optional(),
8806
8703
  /** COMPUTED at read time by the orchestrator (statfs of the backing volume
@@ -8813,10 +8710,12 @@ var StorageLocationSchema = object({
8813
8710
  createdAt: number(),
8814
8711
  updatedAt: number()
8815
8712
  });
8713
+ object({ isDefault: boolean().optional() });
8816
8714
  /**
8817
8715
  * Reference accepted by consumer-facing `api.storage.*` calls.
8818
8716
  * Either:
8819
- * - a `StorageLocationType` (e.g. `'backups'`) → orchestrator resolves to the default of that type
8717
+ * - a `StorageLocationType` (e.g. `'backups'`) → the sole location of that type
8718
+ * (transitionally, the `<type>:default`-slugged row when several exist)
8820
8719
  * - a fully-qualified id (e.g. `'backups:nas-01'`) → addresses a specific instance
8821
8720
  *
8822
8721
  * The orchestrator's `resolveRef(ref)` handles both cases.
@@ -8992,6 +8891,111 @@ var DecoderSessionConfigSchema = object({
8992
8891
  */
8993
8892
  debug: boolean().optional()
8994
8893
  });
8894
+ /**
8895
+ * Per-component log CHANNELS — the gate a hot path consults, and the registry
8896
+ * an addon declares its channels in.
8897
+ *
8898
+ * ## Two axes, deliberately separated
8899
+ *
8900
+ * - **DECLARATION** — which channels exist. Only the addon knows:
8901
+ * `stream-broker` knows webrtc/ICE/RTP, `provider-reolink` knows
8902
+ * baichuan/handshake. A hand-wired central list rots at the first addition,
8903
+ * and rots silently. So a channel is declared where it is consulted, and the
8904
+ * `log-channels` capability enumerates the declarations.
8905
+ * - **VALUE** — at which level, for which scope, until when. That stays ONE
8906
+ * thing: the logging settings document on the `system` cap. Two authorities
8907
+ * over the values is the exact defect
8908
+ * `docs/design/plans/2026-08-26-logging-per-componente.md` was written to
8909
+ * remove; re-introducing it from the cure side would be grotesque.
8910
+ *
8911
+ * Nothing in this file reads a clock, an env var or a store. The registry is
8912
+ * a MIRROR: it is moved only by {@link LogChannelRegistry.apply}, called off
8913
+ * the hot path with a value somebody actually read, and by
8914
+ * {@link LogChannelRegistry.tick}, called on a timer. A store read that fails
8915
+ * never reaches here, so it can neither disarm an armed channel nor arm a
8916
+ * disarmed one (D49).
8917
+ *
8918
+ * ## The canonical call shape
8919
+ *
8920
+ * ```ts
8921
+ * if (CH_RTP.on && CH_RTP.wants(deviceId)) {
8922
+ * CH_RTP.log(logger, 'rtp subscriber added', { tags: { deviceId }, meta: { ssrc } })
8923
+ * }
8924
+ * ```
8925
+ *
8926
+ * `on` is a plain boolean FIELD — never a getter — and it is the FIRST thing
8927
+ * read. Disarmed, a call site costs one load and one branch, and the `extras`
8928
+ * object literal is never constructed because it lives inside the branch. It
8929
+ * is the same shape already proven in production at `stream-broker.ts:1650`,
8930
+ * and the same discipline `LoggingGate.allowsDestination` uses for the
8931
+ * destination floor (measured at 1.93 ns/call when off).
8932
+ *
8933
+ * ## Why a channel emits at `info`
8934
+ *
8935
+ * `loki-logging.addon.ts` pins the destination default at `info` and
8936
+ * `loki-destination.ts` drops everything below it, so a line emitted at
8937
+ * `debug` never reaches Loki and the hub's in-memory ring only holds ~35
8938
+ * minutes. A diagnostic that cannot be read an hour later is worse than no
8939
+ * diagnostic, because it looks done. {@link LogChannelGate.log} therefore
8940
+ * emits at the channel's declared level, whose schema floor is `info`.
8941
+ */
8942
+ /**
8943
+ * The level a channel writes at once armed.
8944
+ *
8945
+ * `debug` is absent ON PURPOSE and not by omission: below `info` the line does
8946
+ * not leave the process for Loki, and the whole point of arming a channel is
8947
+ * to read it later.
8948
+ */
8949
+ var LogChannelLevelSchema = _enum([
8950
+ "info",
8951
+ "warn",
8952
+ "error"
8953
+ ]);
8954
+ /**
8955
+ * What an addon declares about one channel. No value, no state — a
8956
+ * declaration is inert.
8957
+ */
8958
+ var LogChannelDescriptorSchema = object({
8959
+ /**
8960
+ * Dotted `area.thing`, unique across the workspace. `area` is conventionally
8961
+ * the addon's short name so an operator reading a channel list can tell who
8962
+ * owns it without a second lookup.
8963
+ */
8964
+ name: string().min(3).regex(/^[a-z0-9-]+(\.[a-z0-9-]+)+$/, "a channel name is dotted lower-kebab, e.g. area.thing"),
8965
+ /** One sentence: what the operator will SEE after arming it. */
8966
+ description: string().min(1),
8967
+ /** The level its lines are emitted at. Never below `info`. */
8968
+ defaultLevel: LogChannelLevelSchema,
8969
+ /**
8970
+ * Whether this channel can be narrowed to a camera.
8971
+ *
8972
+ * `true` is a PROMISE with two halves, and both must hold: the gate is
8973
+ * consulted with the numeric device id, AND every line the channel admits
8974
+ * carries `tags: { deviceId }` with that same numeric id. The second half is
8975
+ * what makes `| json | deviceId="617"` work in Loki — `loki-payload.ts`
8976
+ * keeps `deviceId` out of the stream labels for cardinality, so the tag in
8977
+ * the body is the only way to filter.
8978
+ *
8979
+ * A channel whose lines carry the device only in `meta` (or not at all) is
8980
+ * declared `false`. Declaring it `true` anyway would be a lie the UI repeats:
8981
+ * the operator narrows to one camera, sees nothing, and concludes the code
8982
+ * path was never taken.
8983
+ */
8984
+ perDevice: boolean()
8985
+ });
8986
+ /**
8987
+ * An armed window over one channel, as the document hands it to a mirror.
8988
+ *
8989
+ * A window is a DEADLINE, never a flag (ADR-0244): a channel somebody forgot
8990
+ * expires by itself, which is the one failure a boolean cannot avoid.
8991
+ */
8992
+ var LogChannelWindowSchema = object({
8993
+ channel: string().min(1),
8994
+ /** Epoch ms the window closes at. */
8995
+ armedUntilMs: number(),
8996
+ /** `null` = every camera. A non-empty list narrows to those numeric ids. */
8997
+ deviceIds: array(number().int()).readonly().nullable()
8998
+ });
8995
8999
  var MODEL_FORMATS = [
8996
9000
  "onnx",
8997
9001
  "coreml",
@@ -10865,12 +10869,30 @@ var BackupDestinationInfoSchema = object({
10865
10869
  lastSuccessAt: number().optional(),
10866
10870
  /** Newest-archive size from `manifests.json`, or undefined. */
10867
10871
  lastSuccessSizeBytes: number().optional(),
10868
- /** Per-destination cron expression. Empty = manual-only (no schedule). */
10872
+ /**
10873
+ * Cron cadence(s) of the ENABLED schedules that fan out to this
10874
+ * destination, comma-joined. Absent when no enabled schedule targets it
10875
+ * — a destination nothing is scheduled to write to must not advertise a
10876
+ * cadence (D384). This is never the `backup_destination_policies.cron`
10877
+ * column: that per-location cron has scheduled nothing since 2026-07-28
10878
+ * and reading it made a destination with a DISABLED schedule claim a
10879
+ * nightly run.
10880
+ */
10869
10881
  cron: string().optional(),
10870
- /** ms-epoch of next computed firing for this destination's cron, if any. */
10882
+ /** ms-epoch of the next firing across those schedules (earliest), if any. */
10871
10883
  nextRunAt: number().optional(),
10872
- /** ms-epoch of last successful scheduled run (mirrors policy.lastRunAt). */
10873
- lastRunAt: number().optional()
10884
+ /**
10885
+ * ms-epoch of the last time a run ATTEMPTED to write here — success or
10886
+ * failure. Never a success stamp: pair it with `lastSuccessAt` (the
10887
+ * newest archive that actually landed) and `lastError`.
10888
+ */
10889
+ lastAttemptAt: number().optional(),
10890
+ /**
10891
+ * Why the last attempt failed, verbatim. Absent when the last attempt
10892
+ * landed the archive. A destination that has never been written to has
10893
+ * neither this nor `lastAttemptAt`.
10894
+ */
10895
+ lastError: string().optional()
10874
10896
  });
10875
10897
  /**
10876
10898
  * Per-archive entry returned by `backup.listArchives({ destinationId })`.
@@ -11033,8 +11055,16 @@ var BackupScheduleSchema = object({
11033
11055
  retentionCount: number().int().min(1).max(1e3),
11034
11056
  /** Optional subset of source locations to include; omitted = all. */
11035
11057
  dataSources: array(string()).readonly().optional(),
11036
- /** ms-epoch of last successful run. */
11037
- lastRunAt: number().optional(),
11058
+ /**
11059
+ * ms-epoch of the last tick that FIRED this schedule. Stamped before the
11060
+ * archive runs (it is the dedupe anchor), so it says "attempted", never
11061
+ * "succeeded" — a run refused by every destination stamps it too.
11062
+ */
11063
+ lastAttemptAt: number().optional(),
11064
+ /** ms-epoch of the last run of this schedule that landed at ≥1 destination. */
11065
+ lastSuccessAt: number().optional(),
11066
+ /** Why the last fired run failed, verbatim. Absent when it succeeded. */
11067
+ lastError: string().optional(),
11038
11068
  /** ms-epoch of next computed firing (read-only, filled on list). */
11039
11069
  nextRunAt: number().optional()
11040
11070
  });
@@ -11163,14 +11193,7 @@ var backupCapability = {
11163
11193
  locationId: string(),
11164
11194
  enabled: boolean(),
11165
11195
  retentionCount: number().int().min(1).max(1e3),
11166
- label: string().optional(),
11167
- /**
11168
- * Per-destination cron expression. Empty string clears the
11169
- * schedule (manual-only). Validated server-side via croner;
11170
- * malformed expressions reject the upsert with an actionable
11171
- * message.
11172
- */
11173
- cron: string().optional()
11196
+ label: string().optional()
11174
11197
  }), _void(), {
11175
11198
  kind: "mutation",
11176
11199
  auth: "admin"
@@ -25829,7 +25852,6 @@ var storageCapability = {
25829
25852
  }), _instanceof(Uint8Array)),
25830
25853
  endDownload: method(object({ downloadId: string() }), _void(), { kind: "mutation" }),
25831
25854
  listLocations: method(object({ type: StorageLocationTypeSchema.optional() }), array(StorageLocationSchema).readonly()),
25832
- getDefaultLocation: method(object({ type: StorageLocationTypeSchema }), StorageLocationSchema.nullable()),
25833
25855
  listLocationDeclarations: method(_void(), array(StorageLocationDeclarationSchema).readonly()),
25834
25856
  upsertLocation: method(StorageLocationSchema.omit({
25835
25857
  createdAt: true,
@@ -42948,12 +42970,6 @@ Object.freeze({
42948
42970
  addonId: null,
42949
42971
  access: "view"
42950
42972
  },
42951
- "storage.getDefaultLocation": {
42952
- capName: "storage",
42953
- capScope: "system",
42954
- addonId: null,
42955
- access: "view"
42956
- },
42957
42973
  "storage.list": {
42958
42974
  capName: "storage",
42959
42975
  capScope: "system",