@camstack/addon-terminal 0.1.118 → 0.1.120

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-GU_us3DG.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,118 @@ 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. The device page is
29074
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
29075
+ * and this cap carries its section the way `recording` does, by RETURNING it
29076
+ * from `getDeviceSettingsContribution`.
29077
+ *
29078
+ * Seven other widgets are still declared the other way, through a
29079
+ * `deviceConfig.ui` block the framework derives a section from. That route
29080
+ * gives the addon no say in where its own panel lands and no way to decline
29081
+ * for a device the panel does not suit, which is why this one does not use it.
29082
+ *
29083
+ * ## Why one addon may implement it
29084
+ *
29085
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29086
+ * itself. Nothing else declares a composite camera, so nothing else has a
29087
+ * layout — and the device-scoped route means the widget asks THE camera, not
29088
+ * "the camera-grid addon", which is what let the old custom-action pair be
29089
+ * reached only by a caller that already knew the addon id.
29090
+ *
29091
+ * ## The tab
29092
+ *
29093
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29094
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29095
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29096
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29097
+ * next to "PTZ").
29098
+ */
29099
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29100
+ var GridNormalizedRectSchema = object({
29101
+ x: number().min(0).max(1),
29102
+ y: number().min(0).max(1),
29103
+ width: number().gt(0).max(1),
29104
+ height: number().gt(0).max(1)
29105
+ });
29106
+ /**
29107
+ * One source camera, the part of its picture taken, and where that part lands.
29108
+ *
29109
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29110
+ * — a profile switch, a firmware update, a substream that comes back different
29111
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29112
+ * which is the class of bug nobody files.
29113
+ */
29114
+ var GridLayoutCellSchema = object({
29115
+ deviceId: number().int().positive(),
29116
+ /** The part of the SOURCE taken, normalized against the source. */
29117
+ source: GridNormalizedRectSchema,
29118
+ /** Where it lands, normalized against the CANVAS. */
29119
+ cell: GridNormalizedRectSchema
29120
+ });
29121
+ /**
29122
+ * Which profiles this grid can actually compose, and why not.
29123
+ *
29124
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29125
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29126
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29127
+ * low" is, and it is the one an operator can act on.
29128
+ */
29129
+ var GridProfileOfferSchema = object({
29130
+ profile: _enum([
29131
+ "high",
29132
+ "mid",
29133
+ "low"
29134
+ ]),
29135
+ offered: boolean(),
29136
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29137
+ missingSources: array(number().int().positive())
29138
+ });
29139
+ var GridLayoutViewSchema = object({
29140
+ /** The persisted grid row this camera was declared from. */
29141
+ instanceId: string(),
29142
+ deviceId: number().int().nonnegative(),
29143
+ name: string(),
29144
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29145
+ width: number().int(),
29146
+ height: number().int(),
29147
+ fps: number().int(),
29148
+ cells: array(GridLayoutCellSchema),
29149
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29150
+ profiles: array(GridProfileOfferSchema)
29151
+ });
29152
+ var GridLayoutPatchSchema = object({
29153
+ deviceId: number().int().nonnegative(),
29154
+ name: string().min(1).max(160).optional(),
29155
+ width: number().int().min(160).max(7680).optional(),
29156
+ height: number().int().min(120).max(4320).optional(),
29157
+ fps: number().int().min(1).max(60).optional(),
29158
+ /**
29159
+ * The whole cell list at once. A per-cell patch would need an ordering the
29160
+ * editor does not have, and a half-applied layout is a picture nobody asked
29161
+ * for.
29162
+ */
29163
+ cells: array(GridLayoutCellSchema).max(16)
29164
+ });
29165
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29166
+ kind: "mutation",
29167
+ auth: "admin"
29168
+ });
29169
+ /**
29040
29170
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29041
29171
  * on-camera motion-detection mask is a single `grid` region (a row-major
29042
29172
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36345,6 +36475,18 @@ Object.freeze({
36345
36475
  addonId: null,
36346
36476
  access: "view"
36347
36477
  },
36478
+ "cameraGridLayout.getLayout": {
36479
+ capName: "camera-grid-layout",
36480
+ capScope: "device",
36481
+ addonId: null,
36482
+ access: "view"
36483
+ },
36484
+ "cameraGridLayout.saveLayout": {
36485
+ capName: "camera-grid-layout",
36486
+ capScope: "device",
36487
+ addonId: null,
36488
+ access: "create"
36489
+ },
36348
36490
  "cameraStreams.getBrokerStreams": {
36349
36491
  capName: "camera-streams",
36350
36492
  capScope: "device",
@@ -42044,6 +42186,21 @@ Object.freeze({
42044
42186
  form: "single",
42045
42187
  optional: false
42046
42188
  }],
42189
+ "cameraGridLayout.getLayout": [{
42190
+ name: "deviceId",
42191
+ form: "single",
42192
+ optional: false
42193
+ }],
42194
+ "cameraGridLayout.saveLayout": [{
42195
+ name: "cells",
42196
+ form: "object-array",
42197
+ optional: false,
42198
+ itemField: "deviceId"
42199
+ }, {
42200
+ name: "deviceId",
42201
+ form: "single",
42202
+ optional: false
42203
+ }],
42047
42204
  "cameraStreams.getBrokerStreams": [{
42048
42205
  name: "deviceId",
42049
42206
  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-GU_us3DG.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,118 @@ 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. The device page is
29051
+ * BINDING-driven (D12), so the way in is a capability bound to the device —
29052
+ * and this cap carries its section the way `recording` does, by RETURNING it
29053
+ * from `getDeviceSettingsContribution`.
29054
+ *
29055
+ * Seven other widgets are still declared the other way, through a
29056
+ * `deviceConfig.ui` block the framework derives a section from. That route
29057
+ * gives the addon no say in where its own panel lands and no way to decline
29058
+ * for a device the panel does not suit, which is why this one does not use it.
29059
+ *
29060
+ * ## Why one addon may implement it
29061
+ *
29062
+ * It is a device-scoped NATIVE cap, registered by the grid camera device
29063
+ * itself. Nothing else declares a composite camera, so nothing else has a
29064
+ * layout — and the device-scoped route means the widget asks THE camera, not
29065
+ * "the camera-grid addon", which is what let the old custom-action pair be
29066
+ * reached only by a caller that already knew the addon id.
29067
+ *
29068
+ * ## The tab
29069
+ *
29070
+ * `streaming`, not a top-tab of its own. A grid's geometry IS what its stream
29071
+ * is, so the Streaming tab is where it belongs; a `grid` top-tab would need an
29072
+ * entry in `WELL_KNOWN_TAB_MAP` or the device page renders the raw id as the
29073
+ * label (measured on the robot camera, 2026-09-06 — a tab called "navigation"
29074
+ * next to "PTZ").
29075
+ */
29076
+ /** A rectangle in normalized [0,1] coordinates of whatever contains it. */
29077
+ var GridNormalizedRectSchema = object({
29078
+ x: number().min(0).max(1),
29079
+ y: number().min(0).max(1),
29080
+ width: number().gt(0).max(1),
29081
+ height: number().gt(0).max(1)
29082
+ });
29083
+ /**
29084
+ * One source camera, the part of its picture taken, and where that part lands.
29085
+ *
29086
+ * Both rectangles are NORMALIZED (D519): a source camera can change resolution
29087
+ * — a profile switch, a firmware update, a substream that comes back different
29088
+ * — and a stored PIXEL rectangle would quietly start cutting the wrong region,
29089
+ * which is the class of bug nobody files.
29090
+ */
29091
+ var GridLayoutCellSchema = object({
29092
+ deviceId: number().int().positive(),
29093
+ /** The part of the SOURCE taken, normalized against the source. */
29094
+ source: GridNormalizedRectSchema,
29095
+ /** Where it lands, normalized against the CANVAS. */
29096
+ cell: GridNormalizedRectSchema
29097
+ });
29098
+ /**
29099
+ * Which profiles this grid can actually compose, and why not.
29100
+ *
29101
+ * A grid's `high` composes its sources' `high` and its `low` their `low`, so a
29102
+ * profile is on offer only when EVERY source can serve it. The refusal NAMES
29103
+ * the sources, because "this grid has no low" is not a finding — "615 has no
29104
+ * low" is, and it is the one an operator can act on.
29105
+ */
29106
+ var GridProfileOfferSchema = object({
29107
+ profile: _enum([
29108
+ "high",
29109
+ "mid",
29110
+ "low"
29111
+ ]),
29112
+ offered: boolean(),
29113
+ /** Sources that cannot serve it. Empty when it is offered, or when there are no cells. */
29114
+ missingSources: array(number().int().positive())
29115
+ });
29116
+ var GridLayoutViewSchema = object({
29117
+ /** The persisted grid row this camera was declared from. */
29118
+ instanceId: string(),
29119
+ deviceId: number().int().nonnegative(),
29120
+ name: string(),
29121
+ /** The canvas the operator laid out — this grid's `high`. mid/low are scaled from it. */
29122
+ width: number().int(),
29123
+ height: number().int(),
29124
+ fps: number().int(),
29125
+ cells: array(GridLayoutCellSchema),
29126
+ /** What the catalog will publish, and what it refuses to. Read-only. */
29127
+ profiles: array(GridProfileOfferSchema)
29128
+ });
29129
+ var GridLayoutPatchSchema = object({
29130
+ deviceId: number().int().nonnegative(),
29131
+ name: string().min(1).max(160).optional(),
29132
+ width: number().int().min(160).max(7680).optional(),
29133
+ height: number().int().min(120).max(4320).optional(),
29134
+ fps: number().int().min(1).max(60).optional(),
29135
+ /**
29136
+ * The whole cell list at once. A per-cell patch would need an ordering the
29137
+ * editor does not have, and a half-applied layout is a picture nobody asked
29138
+ * for.
29139
+ */
29140
+ cells: array(GridLayoutCellSchema).max(16)
29141
+ });
29142
+ DeviceType.Camera, method(object({ deviceId: number().int().nonnegative() }), GridLayoutViewSchema.nullable(), { auth: "admin" }), method(GridLayoutPatchSchema, GridLayoutViewSchema, {
29143
+ kind: "mutation",
29144
+ auth: "admin"
29145
+ });
29146
+ /**
29017
29147
  * Motion-zones share the same MaskShape vocabulary as privacy-mask — the
29018
29148
  * on-camera motion-detection mask is a single `grid` region (a row-major
29019
29149
  * boolean cell lattice the camera's onboard VMD evaluates). Composing it as
@@ -36322,6 +36452,18 @@ Object.freeze({
36322
36452
  addonId: null,
36323
36453
  access: "view"
36324
36454
  },
36455
+ "cameraGridLayout.getLayout": {
36456
+ capName: "camera-grid-layout",
36457
+ capScope: "device",
36458
+ addonId: null,
36459
+ access: "view"
36460
+ },
36461
+ "cameraGridLayout.saveLayout": {
36462
+ capName: "camera-grid-layout",
36463
+ capScope: "device",
36464
+ addonId: null,
36465
+ access: "create"
36466
+ },
36325
36467
  "cameraStreams.getBrokerStreams": {
36326
36468
  capName: "camera-streams",
36327
36469
  capScope: "device",
@@ -42021,6 +42163,21 @@ Object.freeze({
42021
42163
  form: "single",
42022
42164
  optional: false
42023
42165
  }],
42166
+ "cameraGridLayout.getLayout": [{
42167
+ name: "deviceId",
42168
+ form: "single",
42169
+ optional: false
42170
+ }],
42171
+ "cameraGridLayout.saveLayout": [{
42172
+ name: "cells",
42173
+ form: "object-array",
42174
+ optional: false,
42175
+ itemField: "deviceId"
42176
+ }, {
42177
+ name: "deviceId",
42178
+ form: "single",
42179
+ optional: false
42180
+ }],
42024
42181
  "cameraStreams.getBrokerStreams": [{
42025
42182
  name: "deviceId",
42026
42183
  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.120",
4
4
  "description": "Interactive terminal sessions (pty + xterm) as a CamStack addon",
5
5
  "keywords": [
6
6
  "camstack",