@camstack/addon-import-alexa 0.2.62 → 0.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
@@ -13170,6 +13170,24 @@ var deviceProviderCapability = {
13170
13170
  })
13171
13171
  }
13172
13172
  };
13173
+ /**
13174
+ * Device Manager capability — hub-side singleton that unifies device persistence,
13175
+ * live registry access, and all management operations into a single tRPC surface.
13176
+ *
13177
+ * Replaces:
13178
+ * - `device-persistence` capability (persistence methods absorbed here)
13179
+ * - `device-management.router.ts` (deleted in Phase 2)
13180
+ * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
13181
+ *
13182
+ * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
13183
+ * fork into separate processes but never run on remote cluster agents. Therefore:
13184
+ * - No nodeId routing needed — this is a pure hub singleton.
13185
+ * - The hub's DeviceRegistry is the single source of truth for all live devices.
13186
+ * - No shadow registry or cross-node aggregation required.
13187
+ *
13188
+ * Forked workers register devices back to the hub via `ctx.devices`
13189
+ * (DeviceManagerApi → ctx.api.deviceManager.registerDevice), same as today.
13190
+ */
13173
13191
  /** One child-placement directive on a container's `childLayout`. Structurally
13174
13192
  * identical to `ChildLayoutEntry` in `device-management.ts` — the cap wire
13175
13193
  * shape for the same field. The child is identified by its re-sync-stable
@@ -18896,6 +18914,9 @@ var RetrainStatusSchema = _enum([
18896
18914
  *
18897
18915
  * `debug` does NOT pin; it is attention, not durability.
18898
18916
  *
18917
+ * `debugNote` is the operator's own words about WHAT should be checked on this
18918
+ * track, and it lives and dies with `debug` — see {@link MAX_TRACK_DEBUG_NOTE_LEN}.
18919
+ *
18899
18920
  * `favourited` IS a BOOLEAN pin (durability bit), not a retrain lifecycle.
18900
18921
  * A favourited track is skipped by retention the same way `staging` is, but
18901
18922
  * it does not enter `none|staging|trained` and has no staging budget.
@@ -18906,6 +18927,21 @@ var TrackFlagFields = {
18906
18927
  markForTrain: boolean().optional(),
18907
18928
  /** Operator marked this track for diagnostic attention. */
18908
18929
  debug: boolean().optional(),
18930
+ /**
18931
+ * What the operator wants CHECKED on this track, in their own words.
18932
+ *
18933
+ * The flag alone says "look at this" and nothing about what for; a debug set
18934
+ * reviewed hours later is a list of tracks with no question attached. Bound
18935
+ * to `debug` on the WRITE side — the body clears it when `debug` goes off,
18936
+ * and refuses it on a track whose debug is off — so a note can never outlive
18937
+ * the attention it belongs to.
18938
+ *
18939
+ * `''` is a real value ("marked, nothing to add"); the ABSENT key means
18940
+ * "leave whatever is stored alone", which is what lets a surface turn debug
18941
+ * on without a note (a cancelled prompt) and what lets it edit the note
18942
+ * without touching the flag.
18943
+ */
18944
+ debugNote: string().max(500).optional(),
18909
18945
  /** Operator favourited this track. Pins it against pruning. */
18910
18946
  favourited: boolean().optional()
18911
18947
  };
@@ -18932,6 +18968,12 @@ var TrackFlagsSchema = object({
18932
18968
  trackId: string(),
18933
18969
  markForTrain: boolean(),
18934
18970
  debug: boolean(),
18971
+ /** The note as it STANDS after the write — never absent here (a track with no
18972
+ * note reports `''`), for the same reason the booleans are required: a
18973
+ * surface that has just written must be able to render the note it now owns
18974
+ * without a re-fetch, and an absent key would read as "unchanged" on a
18975
+ * screen that has no previous value to keep. */
18976
+ debugNote: string(),
18935
18977
  favourited: boolean(),
18936
18978
  /** The lifecycle state the boolean was derived from. Required here (unlike on
18937
18979
  * a track row) because this shape is only ever produced by the write body,
package/dist/addon.mjs CHANGED
@@ -13170,6 +13170,24 @@ var deviceProviderCapability = {
13170
13170
  })
13171
13171
  }
13172
13172
  };
13173
+ /**
13174
+ * Device Manager capability — hub-side singleton that unifies device persistence,
13175
+ * live registry access, and all management operations into a single tRPC surface.
13176
+ *
13177
+ * Replaces:
13178
+ * - `device-persistence` capability (persistence methods absorbed here)
13179
+ * - `device-management.router.ts` (deleted in Phase 2)
13180
+ * - `device-ops.router.ts` (compat layer — deleted; device-provider ops absorbed here)
13181
+ *
13182
+ * All device provider addons (rtsp, onvif, frigate, …) are hub-local: they may
13183
+ * fork into separate processes but never run on remote cluster agents. Therefore:
13184
+ * - No nodeId routing needed — this is a pure hub singleton.
13185
+ * - The hub's DeviceRegistry is the single source of truth for all live devices.
13186
+ * - No shadow registry or cross-node aggregation required.
13187
+ *
13188
+ * Forked workers register devices back to the hub via `ctx.devices`
13189
+ * (DeviceManagerApi → ctx.api.deviceManager.registerDevice), same as today.
13190
+ */
13173
13191
  /** One child-placement directive on a container's `childLayout`. Structurally
13174
13192
  * identical to `ChildLayoutEntry` in `device-management.ts` — the cap wire
13175
13193
  * shape for the same field. The child is identified by its re-sync-stable
@@ -18896,6 +18914,9 @@ var RetrainStatusSchema = _enum([
18896
18914
  *
18897
18915
  * `debug` does NOT pin; it is attention, not durability.
18898
18916
  *
18917
+ * `debugNote` is the operator's own words about WHAT should be checked on this
18918
+ * track, and it lives and dies with `debug` — see {@link MAX_TRACK_DEBUG_NOTE_LEN}.
18919
+ *
18899
18920
  * `favourited` IS a BOOLEAN pin (durability bit), not a retrain lifecycle.
18900
18921
  * A favourited track is skipped by retention the same way `staging` is, but
18901
18922
  * it does not enter `none|staging|trained` and has no staging budget.
@@ -18906,6 +18927,21 @@ var TrackFlagFields = {
18906
18927
  markForTrain: boolean().optional(),
18907
18928
  /** Operator marked this track for diagnostic attention. */
18908
18929
  debug: boolean().optional(),
18930
+ /**
18931
+ * What the operator wants CHECKED on this track, in their own words.
18932
+ *
18933
+ * The flag alone says "look at this" and nothing about what for; a debug set
18934
+ * reviewed hours later is a list of tracks with no question attached. Bound
18935
+ * to `debug` on the WRITE side — the body clears it when `debug` goes off,
18936
+ * and refuses it on a track whose debug is off — so a note can never outlive
18937
+ * the attention it belongs to.
18938
+ *
18939
+ * `''` is a real value ("marked, nothing to add"); the ABSENT key means
18940
+ * "leave whatever is stored alone", which is what lets a surface turn debug
18941
+ * on without a note (a cancelled prompt) and what lets it edit the note
18942
+ * without touching the flag.
18943
+ */
18944
+ debugNote: string().max(500).optional(),
18909
18945
  /** Operator favourited this track. Pins it against pruning. */
18910
18946
  favourited: boolean().optional()
18911
18947
  };
@@ -18932,6 +18968,12 @@ var TrackFlagsSchema = object({
18932
18968
  trackId: string(),
18933
18969
  markForTrain: boolean(),
18934
18970
  debug: boolean(),
18971
+ /** The note as it STANDS after the write — never absent here (a track with no
18972
+ * note reports `''`), for the same reason the booleans are required: a
18973
+ * surface that has just written must be able to render the note it now owns
18974
+ * without a re-fetch, and an absent key would read as "unchanged" on a
18975
+ * screen that has no previous value to keep. */
18976
+ debugNote: string(),
18935
18977
  favourited: boolean(),
18936
18978
  /** The lifecycle state the boolean was derived from. Required here (unlike on
18937
18979
  * 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-import-alexa",
3
- "version": "0.2.62",
3
+ "version": "0.2.63",
4
4
  "description": "Alexa device-import provider for CamStack — imports the smart-home devices in a user's Alexa account via the unofficial alexa-remote2 cookie/token client (the inverse of the Alexa exporter)",
5
5
  "keywords": [
6
6
  "camstack",