@camstack/addon-terminal 0.1.118 → 0.1.119

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
@@ -5392,7 +5392,7 @@ var ZodIssueCode = {
5392
5392
  var ZodFirstPartyTypeKind;
5393
5393
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5394
5394
  //#endregion
5395
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5395
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
5396
5396
  /**
5397
5397
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5398
5398
  * window to float samples (D455).
@@ -11949,6 +11949,24 @@ var GetStreamWithCodecInputSchema = object({
11949
11949
  });
11950
11950
  var RtpSourceSchema = object({
11951
11951
  url: string(),
11952
+ /**
11953
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11954
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11955
+ *
11956
+ * The broker answers it because the broker is the only thing that can:
11957
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11958
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11959
+ * cap bindings would be a second authority, and two authorities on the same
11960
+ * question is how a composite camera ends up dialling a sleeping camera
11961
+ * because its own copy of the rule was a release behind.
11962
+ *
11963
+ * `null` is a real answer and is never a live url in disguise: a consumer
11964
+ * that silently fell back to {@link url} would perform exactly the wake this
11965
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11966
+ * transcode hands back an egress the broker is feeding itself, which has no
11967
+ * sentry counterpart.
11968
+ */
11969
+ sentryUrl: string().nullable().optional(),
11952
11970
  videoCodec: _enum(["H264", "H265"]),
11953
11971
  audioCodec: string(),
11954
11972
  resolution: object({
@@ -29037,6 +29055,114 @@ var motionTriggerCapability = {
29037
29055
  durability: "session"
29038
29056
  };
29039
29057
  /**
29058
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
29059
+ * page.
29060
+ *
29061
+ * ## Why this is a capability and not an addon settings schema
29062
+ *
29063
+ * It was one, and it did not render. The addon declared the editor as a
29064
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
29065
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
29066
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
29067
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
29068
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
29069
+ * not on it "falls off silently".
29070
+ *
29071
+ * Adding a fifth name to that list would have been the wrong fix twice over:
29072
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
29073
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
29074
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
29075
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
29076
+ * all use it): the framework emits the structural section and the widget
29077
+ * self-persists through the cap's own mutations.
29078
+ *
29079
+ * ## Why one addon may implement it
29080
+ *
29081
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29082
+ * itself. Nothing else declares a composite camera, so nothing else has a
29083
+ * layout — and the device-scoped route means the widget asks THE camera, not
29084
+ * "the camera-grid addon", which is what let the old custom-action pair be
29085
+ * reached only by a caller that already knew the addon id.
29086
+ *
29087
+ * ## The tab
29088
+ *
29089
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29090
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29091
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29092
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29093
+ * next to "PTZ").
29094
+ */
29095
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29096
+ var GridNormalizedRectSchema = object({
29097
+ x: number().min(0).max(1),
29098
+ y: number().min(0).max(1),
29099
+ width: number().gt(0).max(1),
29100
+ height: number().gt(0).max(1)
29101
+ });
29102
+ /**
29103
+ * One source camera, the part of its picture taken, and where that part lands.
29104
+ *
29105
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29106
+ * — a profile switch, a firmware update, a substream that comes back different
29107
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29108
+ * which is the class of bug nobody files.
29109
+ */
29110
+ var GridLayoutCellSchema = object({
29111
+ deviceId: number().int().positive(),
29112
+ /** The part of the SOURCE taken, normalized against the source. */
29113
+ source: GridNormalizedRectSchema,
29114
+ /** Where it lands, normalized against the CANVAS. */
29115
+ cell: GridNormalizedRectSchema
29116
+ });
29117
+ /**
29118
+ * Which profiles this grid can actually compose, and why not.
29119
+ *
29120
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29121
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29122
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29123
+ * low" is, and it is the one an operator can act on.
29124
+ */
29125
+ var GridProfileOfferSchema = object({
29126
+ profile: _enum([
29127
+ "high",
29128
+ "mid",
29129
+ "low"
29130
+ ]),
29131
+ offered: boolean(),
29132
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29133
+ missingSources: array(number().int().positive())
29134
+ });
29135
+ var GridLayoutViewSchema = object({
29136
+ /** The persisted grid row this camera was declared from. */
29137
+ instanceId: string(),
29138
+ deviceId: number().int().nonnegative(),
29139
+ name: string(),
29140
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29141
+ width: number().int(),
29142
+ height: number().int(),
29143
+ fps: number().int(),
29144
+ cells: array(GridLayoutCellSchema),
29145
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29146
+ profiles: array(GridProfileOfferSchema)
29147
+ });
29148
+ var GridLayoutPatchSchema = object({
29149
+ deviceId: number().int().nonnegative(),
29150
+ name: string().min(1).max(160).optional(),
29151
+ width: number().int().min(160).max(7680).optional(),
29152
+ height: number().int().min(120).max(4320).optional(),
29153
+ fps: number().int().min(1).max(60).optional(),
29154
+ /**
29155
+ * The whole cell list at once. A per-cell patch would need an ordering the
29156
+ * editor does not have, and a half-applied layout is a picture nobody asked
29157
+ * for.
29158
+ */
29159
+ cells: array(GridLayoutCellSchema).max(16)
29160
+ });
29161
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29162
+ kind: "mutation",
29163
+ auth: "admin"
29164
+ });
29165
+ /**
29040
29166
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29041
29167
  * on-camera motion-detection mask is a single `grid` region (a row-major
29042
29168
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36345,6 +36471,18 @@ Object.freeze({
36345
36471
  addonId: null,
36346
36472
  access: "view"
36347
36473
  },
36474
+ "cameraGridLayout.getLayout": {
36475
+ capName: "camera-grid-layout",
36476
+ capScope: "device",
36477
+ addonId: null,
36478
+ access: "view"
36479
+ },
36480
+ "cameraGridLayout.saveLayout": {
36481
+ capName: "camera-grid-layout",
36482
+ capScope: "device",
36483
+ addonId: null,
36484
+ access: "create"
36485
+ },
36348
36486
  "cameraStreams.getBrokerStreams": {
36349
36487
  capName: "camera-streams",
36350
36488
  capScope: "device",
@@ -42044,6 +42182,21 @@ Object.freeze({
42044
42182
  form: "single",
42045
42183
  optional: false
42046
42184
  }],
42185
+ "cameraGridLayout.getLayout": [{
42186
+ name: "deviceId",
42187
+ form: "single",
42188
+ optional: false
42189
+ }],
42190
+ "cameraGridLayout.saveLayout": [{
42191
+ name: "cells",
42192
+ form: "object-array",
42193
+ optional: false,
42194
+ itemField: "deviceId"
42195
+ }, {
42196
+ name: "deviceId",
42197
+ form: "single",
42198
+ optional: false
42199
+ }],
42047
42200
  "cameraStreams.getBrokerStreams": [{
42048
42201
  name: "deviceId",
42049
42202
  form: "single",
package/dist/addon.mjs CHANGED
@@ -5369,7 +5369,7 @@ var ZodIssueCode = {
5369
5369
  var ZodFirstPartyTypeKind;
5370
5370
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5371
5371
  //#endregion
5372
- //#region ../types/dist/sleep-Dk-BdnBf.mjs
5372
+ //#region ../types/dist/sleep-Bs3xPtSh.mjs
5373
5373
  /**
5374
5374
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5375
5375
  * window to float samples (D455).
@@ -11926,6 +11926,24 @@ var GetStreamWithCodecInputSchema = object({
11926
11926
  });
11927
11927
  var RtpSourceSchema = object({
11928
11928
  url: string(),
11929
+ /**
11930
+ * The SENTRY counterpart of {@link url} — the dial that asks for the stream
11931
+ * WITHOUT asking for the camera — or `null` when this camera offers none.
11932
+ *
11933
+ * The broker answers it because the broker is the only thing that can:
11934
+ * eligibility is `sentryEligible` (a BATTERY camera that DECLARES the signals
11935
+ * cap), asked of facts only the broker holds. A consumer re-deriving it from
11936
+ * cap bindings would be a second authority, and two authorities on the same
11937
+ * question is how a composite camera ends up dialling a sleeping camera
11938
+ * because its own copy of the rule was a release behind.
11939
+ *
11940
+ * `null` is a real answer and is never a live url in disguise: a consumer
11941
+ * that silently fell back to {@link url} would perform exactly the wake this
11942
+ * field exists to prevent. Only a PASSTHROUGH acquisition can offer one — a
11943
+ * transcode hands back an egress the broker is feeding itself, which has no
11944
+ * sentry counterpart.
11945
+ */
11946
+ sentryUrl: string().nullable().optional(),
11929
11947
  videoCodec: _enum(["H264", "H265"]),
11930
11948
  audioCodec: string(),
11931
11949
  resolution: object({
@@ -29014,6 +29032,114 @@ var motionTriggerCapability = {
29014
29032
  durability: "session"
29015
29033
  };
29016
29034
  /**
29035
+ * camera-grid-layout — the geometry of a COMPOSITE camera, on the camera's own
29036
+ * page.
29037
+ *
29038
+ * ## Why this is a capability and not an addon settings schema
29039
+ *
29040
+ * It was one, and it did not render. The addon declared the editor as a
29041
+ * `type: 'widget'` field inside its own `deviceSettingsSchema()`; the hub
29042
+ * returned that section correctly and `ConfigFormField` renders `type:'widget'`
29043
+ * perfectly well — and nothing ever asked camera-grid for it. The Cluster →
29044
+ * Pipeline → Device Overrides page interrogates a HAND-WRITTEN list of four
29045
+ * addons (`PIPELINE_CLUSTER_DEVICE_ADDONS`), whose own comment says an addon
29046
+ * not on it "falls off silently".
29047
+ *
29048
+ * Adding a fifth name to that list would have been the wrong fix twice over:
29049
+ * that page is per-camera DETECTION tuning, and a grid's geometry belongs
29050
+ * beside PTZ and motion zones on the camera itself — which is exactly where the
29051
+ * framework already puts a widget, when the widget is declared on a CAPABILITY.
29052
+ * `deviceConfig.ui` is the mechanism (`motion-zones`, `ptz`, `ptz-autotrack`
29053
+ * all use it): the framework emits the structural section and the widget
29054
+ * self-persists through the cap's own mutations.
29055
+ *
29056
+ * ## Why one addon may implement it
29057
+ *
29058
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29059
+ * itself. Nothing else declares a composite camera, so nothing else has a
29060
+ * layout — and the device-scoped route means the widget asks THE camera, not
29061
+ * "the camera-grid addon", which is what let the old custom-action pair be
29062
+ * reached only by a caller that already knew the addon id.
29063
+ *
29064
+ * ## The tab
29065
+ *
29066
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29067
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29068
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29069
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29070
+ * next to "PTZ").
29071
+ */
29072
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29073
+ var GridNormalizedRectSchema = object({
29074
+ x: number().min(0).max(1),
29075
+ y: number().min(0).max(1),
29076
+ width: number().gt(0).max(1),
29077
+ height: number().gt(0).max(1)
29078
+ });
29079
+ /**
29080
+ * One source camera, the part of its picture taken, and where that part lands.
29081
+ *
29082
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29083
+ * — a profile switch, a firmware update, a substream that comes back different
29084
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29085
+ * which is the class of bug nobody files.
29086
+ */
29087
+ var GridLayoutCellSchema = object({
29088
+ deviceId: number().int().positive(),
29089
+ /** The part of the SOURCE taken, normalized against the source. */
29090
+ source: GridNormalizedRectSchema,
29091
+ /** Where it lands, normalized against the CANVAS. */
29092
+ cell: GridNormalizedRectSchema
29093
+ });
29094
+ /**
29095
+ * Which profiles this grid can actually compose, and why not.
29096
+ *
29097
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29098
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29099
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29100
+ * low" is, and it is the one an operator can act on.
29101
+ */
29102
+ var GridProfileOfferSchema = object({
29103
+ profile: _enum([
29104
+ "high",
29105
+ "mid",
29106
+ "low"
29107
+ ]),
29108
+ offered: boolean(),
29109
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29110
+ missingSources: array(number().int().positive())
29111
+ });
29112
+ var GridLayoutViewSchema = object({
29113
+ /** The persisted grid row this camera was declared from. */
29114
+ instanceId: string(),
29115
+ deviceId: number().int().nonnegative(),
29116
+ name: string(),
29117
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29118
+ width: number().int(),
29119
+ height: number().int(),
29120
+ fps: number().int(),
29121
+ cells: array(GridLayoutCellSchema),
29122
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29123
+ profiles: array(GridProfileOfferSchema)
29124
+ });
29125
+ var GridLayoutPatchSchema = object({
29126
+ deviceId: number().int().nonnegative(),
29127
+ name: string().min(1).max(160).optional(),
29128
+ width: number().int().min(160).max(7680).optional(),
29129
+ height: number().int().min(120).max(4320).optional(),
29130
+ fps: number().int().min(1).max(60).optional(),
29131
+ /**
29132
+ * The whole cell list at once. A per-cell patch would need an ordering the
29133
+ * editor does not have, and a half-applied layout is a picture nobody asked
29134
+ * for.
29135
+ */
29136
+ cells: array(GridLayoutCellSchema).max(16)
29137
+ });
29138
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29139
+ kind: "mutation",
29140
+ auth: "admin"
29141
+ });
29142
+ /**
29017
29143
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29018
29144
  * on-camera motion-detection mask is a single `grid` region (a row-major
29019
29145
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36322,6 +36448,18 @@ Object.freeze({
36322
36448
  addonId: null,
36323
36449
  access: "view"
36324
36450
  },
36451
+ "cameraGridLayout.getLayout": {
36452
+ capName: "camera-grid-layout",
36453
+ capScope: "device",
36454
+ addonId: null,
36455
+ access: "view"
36456
+ },
36457
+ "cameraGridLayout.saveLayout": {
36458
+ capName: "camera-grid-layout",
36459
+ capScope: "device",
36460
+ addonId: null,
36461
+ access: "create"
36462
+ },
36325
36463
  "cameraStreams.getBrokerStreams": {
36326
36464
  capName: "camera-streams",
36327
36465
  capScope: "device",
@@ -42021,6 +42159,21 @@ Object.freeze({
42021
42159
  form: "single",
42022
42160
  optional: false
42023
42161
  }],
42162
+ "cameraGridLayout.getLayout": [{
42163
+ name: "deviceId",
42164
+ form: "single",
42165
+ optional: false
42166
+ }],
42167
+ "cameraGridLayout.saveLayout": [{
42168
+ name: "cells",
42169
+ form: "object-array",
42170
+ optional: false,
42171
+ itemField: "deviceId"
42172
+ }, {
42173
+ name: "deviceId",
42174
+ form: "single",
42175
+ optional: false
42176
+ }],
42024
42177
  "cameraStreams.getBrokerStreams": [{
42025
42178
  name: "deviceId",
42026
42179
  form: "single",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-terminal",
3
- "version": "0.1.118",
3
+ "version": "0.1.119",
4
4
  "description": "Interactive terminal sessions (pty + xterm) as a CamStack addon",
5
5
  "keywords": [
6
6
  "camstack",