@camstack/addon-provider-onvif 1.2.62 → 1.2.63

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/addon.js CHANGED
@@ -12717,6 +12717,24 @@ var deviceProviderCapability = {
12717
12717
  })
12718
12718
  }
12719
12719
  };
12720
+ /**
12721
+ * Device Manager capability — hub-side singleton that unifies device persistence,
12722
+ * live registry access, and all management operations into a single tRPC surface.
12723
+ *
12724
+ * Replaces:
12725
+ * - `device-persistence` capability (persistence methods absorbed here)
12726
+ * - `device-management.router.ts` (deleted in Phase 2)
12727
+ * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
12728
+ *
12729
+ * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
12730
+ * fork into separate processes but never run on remote cluster agents. Therefore:
12731
+ * - No nodeId routing needed — this is a pure hub singleton.
12732
+ * - The hub's DeviceRegistry is the single source of truth for all live devices.
12733
+ * - No shadow registry or cross-node aggregation required.
12734
+ *
12735
+ * Forked workers register devices back to the hub via `ctx.devices`
12736
+ * (DeviceManagerApi → ctx.api.deviceManager.registerDevice), same as today.
12737
+ */
12720
12738
  /** One child-placement directive on a container's `childLayout`. Structurally
12721
12739
  * identical to `ChildLayoutEntry` in `device-management.ts` — the cap wire
12722
12740
  * shape for the same field. The child is identified by its re-sync-stable
@@ -18365,6 +18383,9 @@ var RetrainStatusSchema = _enum([
18365
18383
  *
18366
18384
  * `debug` does NOT pin; it is attention, not durability.
18367
18385
  *
18386
+ * `debugNote` is the operator's own words about WHAT should be checked on this
18387
+ * track, and it lives and dies with `debug` — see {@link MAX_TRACK_DEBUG_NOTE_LEN}.
18388
+ *
18368
18389
  * `favourited` IS a BOOLEAN pin (durability bit), not a retrain lifecycle.
18369
18390
  * A favourited track is skipped by retention the same way `staging` is, but
18370
18391
  * it does not enter `none|staging|trained` and has no staging budget.
@@ -18375,6 +18396,21 @@ var TrackFlagFields = {
18375
18396
  markForTrain: boolean().optional(),
18376
18397
  /** Operator marked this track for diagnostic attention. */
18377
18398
  debug: boolean().optional(),
18399
+ /**
18400
+ * What the operator wants CHECKED on this track, in their own words.
18401
+ *
18402
+ * The flag alone says "look at this" and nothing about what for; a debug set
18403
+ * reviewed hours later is a list of tracks with no question attached. Bound
18404
+ * to `debug` on the WRITE side — the body clears it when `debug` goes off,
18405
+ * and refuses it on a track whose debug is off — so a note can never outlive
18406
+ * the attention it belongs to.
18407
+ *
18408
+ * `''` is a real value ("marked, nothing to add"); the ABSENT key means
18409
+ * "leave whatever is stored alone", which is what lets a surface turn debug
18410
+ * on without a note (a cancelled prompt) and what lets it edit the note
18411
+ * without touching the flag.
18412
+ */
18413
+ debugNote: string().max(500).optional(),
18378
18414
  /** Operator favourited this track. Pins it against pruning. */
18379
18415
  favourited: boolean().optional()
18380
18416
  };
@@ -18401,6 +18437,12 @@ var TrackFlagsSchema = object({
18401
18437
  trackId: string(),
18402
18438
  markForTrain: boolean(),
18403
18439
  debug: boolean(),
18440
+ /** The note as it STANDS after the write — never absent here (a track with no
18441
+ * note reports `''`), for the same reason the booleans are required: a
18442
+ * surface that has just written must be able to render the note it now owns
18443
+ * without a re-fetch, and an absent key would read as "unchanged" on a
18444
+ * screen that has no previous value to keep. */
18445
+ debugNote: string(),
18404
18446
  favourited: boolean(),
18405
18447
  /** The lifecycle state the boolean was derived from. Required here (unlike on
18406
18448
  * a track row) because this shape is only ever produced by the write body,
package/dist/addon.mjs CHANGED
@@ -12718,6 +12718,24 @@ var deviceProviderCapability = {
12718
12718
  })
12719
12719
  }
12720
12720
  };
12721
+ /**
12722
+ * Device Manager capability — hub-side singleton that unifies device persistence,
12723
+ * live registry access, and all management operations into a single tRPC surface.
12724
+ *
12725
+ * Replaces:
12726
+ * - `device-persistence` capability (persistence methods absorbed here)
12727
+ * - `device-management.router.ts` (deleted in Phase 2)
12728
+ * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
12729
+ *
12730
+ * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
12731
+ * fork into separate processes but never run on remote cluster agents. Therefore:
12732
+ * - No nodeId routing needed — this is a pure hub singleton.
12733
+ * - The hub's DeviceRegistry is the single source of truth for all live devices.
12734
+ * - No shadow registry or cross-node aggregation required.
12735
+ *
12736
+ * Forked workers register devices back to the hub via `ctx.devices`
12737
+ * (DeviceManagerApi → ctx.api.deviceManager.registerDevice), same as today.
12738
+ */
12721
12739
  /** One child-placement directive on a container's `childLayout`. Structurally
12722
12740
  * identical to `ChildLayoutEntry` in `device-management.ts` — the cap wire
12723
12741
  * shape for the same field. The child is identified by its re-sync-stable
@@ -18366,6 +18384,9 @@ var RetrainStatusSchema = _enum([
18366
18384
  *
18367
18385
  * `debug` does NOT pin; it is attention, not durability.
18368
18386
  *
18387
+ * `debugNote` is the operator's own words about WHAT should be checked on this
18388
+ * track, and it lives and dies with `debug` — see {@link MAX_TRACK_DEBUG_NOTE_LEN}.
18389
+ *
18369
18390
  * `favourited` IS a BOOLEAN pin (durability bit), not a retrain lifecycle.
18370
18391
  * A favourited track is skipped by retention the same way `staging` is, but
18371
18392
  * it does not enter `none|staging|trained` and has no staging budget.
@@ -18376,6 +18397,21 @@ var TrackFlagFields = {
18376
18397
  markForTrain: boolean().optional(),
18377
18398
  /** Operator marked this track for diagnostic attention. */
18378
18399
  debug: boolean().optional(),
18400
+ /**
18401
+ * What the operator wants CHECKED on this track, in their own words.
18402
+ *
18403
+ * The flag alone says "look at this" and nothing about what for; a debug set
18404
+ * reviewed hours later is a list of tracks with no question attached. Bound
18405
+ * to `debug` on the WRITE side — the body clears it when `debug` goes off,
18406
+ * and refuses it on a track whose debug is off — so a note can never outlive
18407
+ * the attention it belongs to.
18408
+ *
18409
+ * `''` is a real value ("marked, nothing to add"); the ABSENT key means
18410
+ * "leave whatever is stored alone", which is what lets a surface turn debug
18411
+ * on without a note (a cancelled prompt) and what lets it edit the note
18412
+ * without touching the flag.
18413
+ */
18414
+ debugNote: string().max(500).optional(),
18379
18415
  /** Operator favourited this track. Pins it against pruning. */
18380
18416
  favourited: boolean().optional()
18381
18417
  };
@@ -18402,6 +18438,12 @@ var TrackFlagsSchema = object({
18402
18438
  trackId: string(),
18403
18439
  markForTrain: boolean(),
18404
18440
  debug: boolean(),
18441
+ /** The note as it STANDS after the write — never absent here (a track with no
18442
+ * note reports `''`), for the same reason the booleans are required: a
18443
+ * surface that has just written must be able to render the note it now owns
18444
+ * without a re-fetch, and an absent key would read as "unchanged" on a
18445
+ * screen that has no previous value to keep. */
18446
+ debugNote: string(),
18405
18447
  favourited: boolean(),
18406
18448
  /** The lifecycle state the boolean was derived from. Required here (unlike on
18407
18449
  * a track row) because this shape is only ever produced by the write body,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-provider-onvif",
3
- "version": "1.2.62",
3
+ "version": "1.2.63",
4
4
  "description": "ONVIF camera device provider addon for CamStack",
5
5
  "keywords": [
6
6
  "camstack",