@camstack/addon-terminal 0.1.68 → 0.1.69

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
@@ -12945,6 +12945,24 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12945
12945
  kind: "mutation",
12946
12946
  auth: "admin"
12947
12947
  });
12948
+ /**
12949
+ * Device Manager capability — hub-side singleton that unifies device persistence,
12950
+ * live registry access, and all management operations into a single tRPC surface.
12951
+ *
12952
+ * Replaces:
12953
+ * - `device-persistence` capability (persistence methods absorbed here)
12954
+ * - `device-management.router.ts` (deleted in Phase 2)
12955
+ * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
12956
+ *
12957
+ * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
12958
+ * fork into separate processes but never run on remote cluster agents. Therefore:
12959
+ * - No nodeId routing needed — this is a pure hub singleton.
12960
+ * - The hub's DeviceRegistry is the single source of truth for all live devices.
12961
+ * - No shadow registry or cross-node aggregation required.
12962
+ *
12963
+ * Forked workers register devices back to the hub via `ctx.devices`
12964
+ * (DeviceManagerApi → ctx.api.deviceManager.registerDevice), same as today.
12965
+ */
12948
12966
  /** One child-placement directive on a container's `childLayout`. Structurally
12949
12967
  * identical to `ChildLayoutEntry` in `device-management.ts` — the cap wire
12950
12968
  * shape for the same field. The child is identified by its re-sync-stable
@@ -18671,6 +18689,9 @@ var RetrainStatusSchema = _enum([
18671
18689
  *
18672
18690
  * `debug` does NOT pin; it is attention, not durability.
18673
18691
  *
18692
+ * `debugNote` is the operator's own words about WHAT should be checked on this
18693
+ * track, and it lives and dies with `debug` — see {@link MAX_TRACK_DEBUG_NOTE_LEN}.
18694
+ *
18674
18695
  * `favourited` IS a BOOLEAN pin (durability bit), not a retrain lifecycle.
18675
18696
  * A favourited track is skipped by retention the same way `staging` is, but
18676
18697
  * it does not enter `none|staging|trained` and has no staging budget.
@@ -18681,6 +18702,21 @@ var TrackFlagFields = {
18681
18702
  markForTrain: boolean().optional(),
18682
18703
  /** Operator marked this track for diagnostic attention. */
18683
18704
  debug: boolean().optional(),
18705
+ /**
18706
+ * What the operator wants CHECKED on this track, in their own words.
18707
+ *
18708
+ * The flag alone says "look at this" and nothing about what for; a debug set
18709
+ * reviewed hours later is a list of tracks with no question attached. Bound
18710
+ * to `debug` on the WRITE side — the body clears it when `debug` goes off,
18711
+ * and refuses it on a track whose debug is off — so a note can never outlive
18712
+ * the attention it belongs to.
18713
+ *
18714
+ * `''` is a real value ("marked, nothing to add"); the ABSENT key means
18715
+ * "leave whatever is stored alone", which is what lets a surface turn debug
18716
+ * on without a note (a cancelled prompt) and what lets it edit the note
18717
+ * without touching the flag.
18718
+ */
18719
+ debugNote: string().max(500).optional(),
18684
18720
  /** Operator favourited this track. Pins it against pruning. */
18685
18721
  favourited: boolean().optional()
18686
18722
  };
@@ -18707,6 +18743,12 @@ var TrackFlagsSchema = object({
18707
18743
  trackId: string(),
18708
18744
  markForTrain: boolean(),
18709
18745
  debug: boolean(),
18746
+ /** The note as it STANDS after the write — never absent here (a track with no
18747
+ * note reports `''`), for the same reason the booleans are required: a
18748
+ * surface that has just written must be able to render the note it now owns
18749
+ * without a re-fetch, and an absent key would read as "unchanged" on a
18750
+ * screen that has no previous value to keep. */
18751
+ debugNote: string(),
18710
18752
  favourited: boolean(),
18711
18753
  /** The lifecycle state the boolean was derived from. Required here (unlike on
18712
18754
  * a track row) because this shape is only ever produced by the write body,
package/dist/addon.mjs CHANGED
@@ -12922,6 +12922,24 @@ method(_void(), _void(), { kind: "mutation" }), method(_void(), _void(), { kind:
12922
12922
  kind: "mutation",
12923
12923
  auth: "admin"
12924
12924
  });
12925
+ /**
12926
+ * Device Manager capability — hub-side singleton that unifies device persistence,
12927
+ * live registry access, and all management operations into a single tRPC surface.
12928
+ *
12929
+ * Replaces:
12930
+ * - `device-persistence` capability (persistence methods absorbed here)
12931
+ * - `device-management.router.ts` (deleted in Phase 2)
12932
+ * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
12933
+ *
12934
+ * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
12935
+ * fork into separate processes but never run on remote cluster agents. Therefore:
12936
+ * - No nodeId routing needed — this is a pure hub singleton.
12937
+ * - The hub's DeviceRegistry is the single source of truth for all live devices.
12938
+ * - No shadow registry or cross-node aggregation required.
12939
+ *
12940
+ * Forked workers register devices back to the hub via `ctx.devices`
12941
+ * (DeviceManagerApi → ctx.api.deviceManager.registerDevice), same as today.
12942
+ */
12925
12943
  /** One child-placement directive on a container's `childLayout`. Structurally
12926
12944
  * identical to `ChildLayoutEntry` in `device-management.ts` — the cap wire
12927
12945
  * shape for the same field. The child is identified by its re-sync-stable
@@ -18648,6 +18666,9 @@ var RetrainStatusSchema = _enum([
18648
18666
  *
18649
18667
  * `debug` does NOT pin; it is attention, not durability.
18650
18668
  *
18669
+ * `debugNote` is the operator's own words about WHAT should be checked on this
18670
+ * track, and it lives and dies with `debug` — see {@link MAX_TRACK_DEBUG_NOTE_LEN}.
18671
+ *
18651
18672
  * `favourited` IS a BOOLEAN pin (durability bit), not a retrain lifecycle.
18652
18673
  * A favourited track is skipped by retention the same way `staging` is, but
18653
18674
  * it does not enter `none|staging|trained` and has no staging budget.
@@ -18658,6 +18679,21 @@ var TrackFlagFields = {
18658
18679
  markForTrain: boolean().optional(),
18659
18680
  /** Operator marked this track for diagnostic attention. */
18660
18681
  debug: boolean().optional(),
18682
+ /**
18683
+ * What the operator wants CHECKED on this track, in their own words.
18684
+ *
18685
+ * The flag alone says "look at this" and nothing about what for; a debug set
18686
+ * reviewed hours later is a list of tracks with no question attached. Bound
18687
+ * to `debug` on the WRITE side — the body clears it when `debug` goes off,
18688
+ * and refuses it on a track whose debug is off — so a note can never outlive
18689
+ * the attention it belongs to.
18690
+ *
18691
+ * `''` is a real value ("marked, nothing to add"); the ABSENT key means
18692
+ * "leave whatever is stored alone", which is what lets a surface turn debug
18693
+ * on without a note (a cancelled prompt) and what lets it edit the note
18694
+ * without touching the flag.
18695
+ */
18696
+ debugNote: string().max(500).optional(),
18661
18697
  /** Operator favourited this track. Pins it against pruning. */
18662
18698
  favourited: boolean().optional()
18663
18699
  };
@@ -18684,6 +18720,12 @@ var TrackFlagsSchema = object({
18684
18720
  trackId: string(),
18685
18721
  markForTrain: boolean(),
18686
18722
  debug: boolean(),
18723
+ /** The note as it STANDS after the write — never absent here (a track with no
18724
+ * note reports `''`), for the same reason the booleans are required: a
18725
+ * surface that has just written must be able to render the note it now owns
18726
+ * without a re-fetch, and an absent key would read as "unchanged" on a
18727
+ * screen that has no previous value to keep. */
18728
+ debugNote: string(),
18687
18729
  favourited: boolean(),
18688
18730
  /** The lifecycle state the boolean was derived from. Required here (unlike on
18689
18731
  * 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-terminal",
3
- "version": "0.1.68",
3
+ "version": "0.1.69",
4
4
  "description": "Interactive terminal sessions (pty + xterm) as a CamStack addon",
5
5
  "keywords": [
6
6
  "camstack",