@camstack/addon-terminal 0.1.110 → 0.1.112

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
@@ -13578,6 +13578,107 @@ var ExposeInputSchema = object({
13578
13578
  });
13579
13579
  var UnexposeInputSchema = object({ deviceId: string() });
13580
13580
  method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
13581
+ /** Wire/storage schema for one icon id. */
13582
+ var LocationIconIdSchema = _enum([
13583
+ "map-pin",
13584
+ "house",
13585
+ "door-open",
13586
+ "sofa",
13587
+ "utensils",
13588
+ "bed-double",
13589
+ "bath",
13590
+ "briefcase",
13591
+ "car",
13592
+ "circle-parking",
13593
+ "route",
13594
+ "trees",
13595
+ "umbrella",
13596
+ "waves-ladder",
13597
+ "fence",
13598
+ "package",
13599
+ "warehouse",
13600
+ "store",
13601
+ "sun",
13602
+ "radar"
13603
+ ]);
13604
+ /**
13605
+ * One (location, icon) assignment as it travels.
13606
+ *
13607
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13608
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13609
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13610
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13611
+ * map keyed on the displayed casing would orphan its entry on exactly that
13612
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13613
+ */
13614
+ var LocationIconAssignmentSchema = object({
13615
+ locationKey: string(),
13616
+ icon: LocationIconIdSchema
13617
+ });
13618
+ /**
13619
+ * One (location, description) assignment as it travels.
13620
+ *
13621
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
13622
+ * reason: this lived for a while in the post-analysis addon's own settings,
13623
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
13624
+ * the Locations page carried the icon and silently orphaned the description —
13625
+ * two authorities for one thing, joined by two different rules. Now both hang
13626
+ * off the location itself, on `locationIconKey`.
13627
+ */
13628
+ var LocationDescriptionAssignmentSchema = object({
13629
+ locationKey: string(),
13630
+ description: string()
13631
+ });
13632
+ /**
13633
+ * A SITE ZONE — a named part of the property that several locations belong to.
13634
+ *
13635
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
13636
+ * kitchen. A camera belongs to exactly one location, and a location to at most
13637
+ * one zone, so a camera's zone is derived and never stored on the device: the
13638
+ * whole point of this entity is that grouping rooms touches no device row.
13639
+ *
13640
+ * ## Why not `zone`
13641
+ *
13642
+ * Because `zone` is already the most loaded word in this product: 612 source
13643
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
13644
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
13645
+ * set of rooms — and a reader who confuses them will look for a camera's
13646
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
13647
+ * word by calling the drawn one what it actually is: a detection zone.
13648
+ *
13649
+ * ## The key
13650
+ *
13651
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
13652
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
13653
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
13654
+ * silently-dropped location description.
13655
+ *
13656
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
13657
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
13658
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
13659
+ */
13660
+ /**
13661
+ * One zone as it travels: its key, the label the operator typed, its icon and
13662
+ * the locations inside it.
13663
+ *
13664
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
13665
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
13666
+ * here, rather than left to a second call, because every consumer wants both
13667
+ * at once and a viewer that asked twice could render a zone whose membership
13668
+ * it has not fetched yet.
13669
+ *
13670
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
13671
+ * of those two is a choice, and a picker has to draw them differently.
13672
+ */
13673
+ var SiteZoneSchema = object({
13674
+ zoneKey: string(),
13675
+ label: string(),
13676
+ icon: LocationIconIdSchema.nullable(),
13677
+ /** Folded location keys, sorted. A location listed here need not be
13678
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
13679
+ * the ones that most want grouping. */
13680
+ locationKeys: array(string())
13681
+ });
13581
13682
  var ProviderStatusSchema = object({
13582
13683
  connected: boolean(),
13583
13684
  deviceCount: number(),
@@ -14089,6 +14190,39 @@ method(object({
14089
14190
  }), object({ moved: number() }), {
14090
14191
  kind: "mutation",
14091
14192
  auth: "admin"
14193
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
14194
+ location: string(),
14195
+ icon: LocationIconIdSchema.nullable()
14196
+ }), _void(), {
14197
+ kind: "mutation",
14198
+ auth: "admin"
14199
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
14200
+ location: string(),
14201
+ description: string().max(400).nullable()
14202
+ }), _void(), {
14203
+ kind: "mutation",
14204
+ auth: "admin"
14205
+ }), method(_void(), array(SiteZoneSchema)), method(object({
14206
+ name: string(),
14207
+ icon: LocationIconIdSchema.nullable().optional()
14208
+ }), _void(), {
14209
+ kind: "mutation",
14210
+ auth: "admin"
14211
+ }), method(object({ name: string() }), _void(), {
14212
+ kind: "mutation",
14213
+ auth: "admin"
14214
+ }), method(object({
14215
+ from: string(),
14216
+ to: string()
14217
+ }), _void(), {
14218
+ kind: "mutation",
14219
+ auth: "admin"
14220
+ }), method(object({
14221
+ location: string(),
14222
+ zone: string().nullable()
14223
+ }), _void(), {
14224
+ kind: "mutation",
14225
+ auth: "admin"
14092
14226
  }), method(object({
14093
14227
  deviceId: number(),
14094
14228
  disabled: boolean()
@@ -36729,6 +36863,18 @@ Object.freeze({
36729
36863
  addonId: null,
36730
36864
  access: "view"
36731
36865
  },
36866
+ "deviceManager.listLocationDescriptions": {
36867
+ capName: "device-manager",
36868
+ capScope: "system",
36869
+ addonId: null,
36870
+ access: "view"
36871
+ },
36872
+ "deviceManager.listLocationIcons": {
36873
+ capName: "device-manager",
36874
+ capScope: "system",
36875
+ addonId: null,
36876
+ access: "view"
36877
+ },
36732
36878
  "deviceManager.listLocations": {
36733
36879
  capName: "device-manager",
36734
36880
  capScope: "system",
@@ -36741,6 +36887,12 @@ Object.freeze({
36741
36887
  addonId: null,
36742
36888
  access: "view"
36743
36889
  },
36890
+ "deviceManager.listSiteZones": {
36891
+ capName: "device-manager",
36892
+ capScope: "system",
36893
+ addonId: null,
36894
+ access: "view"
36895
+ },
36744
36896
  "deviceManager.listWrappersForCap": {
36745
36897
  capName: "device-manager",
36746
36898
  capScope: "system",
@@ -36825,12 +36977,24 @@ Object.freeze({
36825
36977
  addonId: null,
36826
36978
  access: "delete"
36827
36979
  },
36980
+ "deviceManager.removeSiteZone": {
36981
+ capName: "device-manager",
36982
+ capScope: "system",
36983
+ addonId: null,
36984
+ access: "delete"
36985
+ },
36828
36986
  "deviceManager.renameLocation": {
36829
36987
  capName: "device-manager",
36830
36988
  capScope: "system",
36831
36989
  addonId: null,
36832
36990
  access: "create"
36833
36991
  },
36992
+ "deviceManager.renameSiteZone": {
36993
+ capName: "device-manager",
36994
+ capScope: "system",
36995
+ addonId: null,
36996
+ access: "create"
36997
+ },
36834
36998
  "deviceManager.runDeviceAction": {
36835
36999
  capName: "device-manager",
36836
37000
  capScope: "system",
@@ -36873,6 +37037,24 @@ Object.freeze({
36873
37037
  addonId: null,
36874
37038
  access: "create"
36875
37039
  },
37040
+ "deviceManager.setLocationDescription": {
37041
+ capName: "device-manager",
37042
+ capScope: "system",
37043
+ addonId: null,
37044
+ access: "create"
37045
+ },
37046
+ "deviceManager.setLocationIcon": {
37047
+ capName: "device-manager",
37048
+ capScope: "system",
37049
+ addonId: null,
37050
+ access: "create"
37051
+ },
37052
+ "deviceManager.setLocationZone": {
37053
+ capName: "device-manager",
37054
+ capScope: "system",
37055
+ addonId: null,
37056
+ access: "create"
37057
+ },
36876
37058
  "deviceManager.setMetadata": {
36877
37059
  capName: "device-manager",
36878
37060
  capScope: "system",
@@ -36903,6 +37085,12 @@ Object.freeze({
36903
37085
  addonId: null,
36904
37086
  access: "create"
36905
37087
  },
37088
+ "deviceManager.setSiteZone": {
37089
+ capName: "device-manager",
37090
+ capScope: "system",
37091
+ addonId: null,
37092
+ access: "create"
37093
+ },
36906
37094
  "deviceManager.setStreamProfileMap": {
36907
37095
  capName: "device-manager",
36908
37096
  capScope: "system",
package/dist/addon.mjs CHANGED
@@ -13555,6 +13555,107 @@ var ExposeInputSchema = object({
13555
13555
  });
13556
13556
  var UnexposeInputSchema = object({ deviceId: string() });
13557
13557
  method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
13558
+ /** Wire/storage schema for one icon id. */
13559
+ var LocationIconIdSchema = _enum([
13560
+ "map-pin",
13561
+ "house",
13562
+ "door-open",
13563
+ "sofa",
13564
+ "utensils",
13565
+ "bed-double",
13566
+ "bath",
13567
+ "briefcase",
13568
+ "car",
13569
+ "circle-parking",
13570
+ "route",
13571
+ "trees",
13572
+ "umbrella",
13573
+ "waves-ladder",
13574
+ "fence",
13575
+ "package",
13576
+ "warehouse",
13577
+ "store",
13578
+ "sun",
13579
+ "radar"
13580
+ ]);
13581
+ /**
13582
+ * One (location, icon) assignment as it travels.
13583
+ *
13584
+ * `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
13585
+ * operator's casing. The registry matches labels trimmed + case-insensitively
13586
+ * everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
13587
+ * case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
13588
+ * map keyed on the displayed casing would orphan its entry on exactly that
13589
+ * edit. Consumers join by keying their own label through `locationIconKey`.
13590
+ */
13591
+ var LocationIconAssignmentSchema = object({
13592
+ locationKey: string(),
13593
+ icon: LocationIconIdSchema
13594
+ });
13595
+ /**
13596
+ * One (location, description) assignment as it travels.
13597
+ *
13598
+ * Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
13599
+ * reason: this lived for a while in the post-analysis addon's own settings,
13600
+ * keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
13601
+ * the Locations page carried the icon and silently orphaned the description —
13602
+ * two authorities for one thing, joined by two different rules. Now both hang
13603
+ * off the location itself, on `locationIconKey`.
13604
+ */
13605
+ var LocationDescriptionAssignmentSchema = object({
13606
+ locationKey: string(),
13607
+ description: string()
13608
+ });
13609
+ /**
13610
+ * A SITE ZONE — a named part of the property that several locations belong to.
13611
+ *
13612
+ * "Zona notte" holds every bedroom; "Zona giorno" the living room and the
13613
+ * kitchen. A camera belongs to exactly one location, and a location to at most
13614
+ * one zone, so a camera's zone is derived and never stored on the device: the
13615
+ * whole point of this entity is that grouping rooms touches no device row.
13616
+ *
13617
+ * ## Why not `zone`
13618
+ *
13619
+ * Because `zone` is already the most loaded word in this product: 612 source
13620
+ * files and 24 Italian strings where it means a DETECTION zone drawn on a
13621
+ * camera. The two are unrelated — one is a polygon in a frame, the other is a
13622
+ * set of rooms — and a reader who confuses them will look for a camera's
13623
+ * bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
13624
+ * word by calling the drawn one what it actually is: a detection zone.
13625
+ *
13626
+ * ## The key
13627
+ *
13628
+ * `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
13629
+ * use (`locationIconKey`). Membership and the icon both hang off it, so a
13630
+ * case-only rename keeps them, which is exactly the orphaning that cost us a
13631
+ * silently-dropped location description.
13632
+ *
13633
+ * The icon vocabulary is the location one, unchanged: a zone is drawn on the
13634
+ * same two surfaces by the same glyph map, so a second vocabulary would be a
13635
+ * second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
13636
+ */
13637
+ /**
13638
+ * One zone as it travels: its key, the label the operator typed, its icon and
13639
+ * the locations inside it.
13640
+ *
13641
+ * The LABEL is carried alongside the key because the key is lossy on purpose —
13642
+ * a surface must show "Zona notte", not "zona notte". Locations are carried
13643
+ * here, rather than left to a second call, because every consumer wants both
13644
+ * at once and a viewer that asked twice could render a zone whose membership
13645
+ * it has not fetched yet.
13646
+ *
13647
+ * `icon: null` means nobody chose one, which is NOT the fallback pin: only one
13648
+ * of those two is a choice, and a picker has to draw them differently.
13649
+ */
13650
+ var SiteZoneSchema = object({
13651
+ zoneKey: string(),
13652
+ label: string(),
13653
+ icon: LocationIconIdSchema.nullable(),
13654
+ /** Folded location keys, sorted. A location listed here need not be
13655
+ * REGISTERED — devices carry labels nobody registered, and those rooms are
13656
+ * the ones that most want grouping. */
13657
+ locationKeys: array(string())
13658
+ });
13558
13659
  var ProviderStatusSchema = object({
13559
13660
  connected: boolean(),
13560
13661
  deviceCount: number(),
@@ -14066,6 +14167,39 @@ method(object({
14066
14167
  }), object({ moved: number() }), {
14067
14168
  kind: "mutation",
14068
14169
  auth: "admin"
14170
+ }), method(_void(), array(LocationIconAssignmentSchema)), method(object({
14171
+ location: string(),
14172
+ icon: LocationIconIdSchema.nullable()
14173
+ }), _void(), {
14174
+ kind: "mutation",
14175
+ auth: "admin"
14176
+ }), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
14177
+ location: string(),
14178
+ description: string().max(400).nullable()
14179
+ }), _void(), {
14180
+ kind: "mutation",
14181
+ auth: "admin"
14182
+ }), method(_void(), array(SiteZoneSchema)), method(object({
14183
+ name: string(),
14184
+ icon: LocationIconIdSchema.nullable().optional()
14185
+ }), _void(), {
14186
+ kind: "mutation",
14187
+ auth: "admin"
14188
+ }), method(object({ name: string() }), _void(), {
14189
+ kind: "mutation",
14190
+ auth: "admin"
14191
+ }), method(object({
14192
+ from: string(),
14193
+ to: string()
14194
+ }), _void(), {
14195
+ kind: "mutation",
14196
+ auth: "admin"
14197
+ }), method(object({
14198
+ location: string(),
14199
+ zone: string().nullable()
14200
+ }), _void(), {
14201
+ kind: "mutation",
14202
+ auth: "admin"
14069
14203
  }), method(object({
14070
14204
  deviceId: number(),
14071
14205
  disabled: boolean()
@@ -36706,6 +36840,18 @@ Object.freeze({
36706
36840
  addonId: null,
36707
36841
  access: "view"
36708
36842
  },
36843
+ "deviceManager.listLocationDescriptions": {
36844
+ capName: "device-manager",
36845
+ capScope: "system",
36846
+ addonId: null,
36847
+ access: "view"
36848
+ },
36849
+ "deviceManager.listLocationIcons": {
36850
+ capName: "device-manager",
36851
+ capScope: "system",
36852
+ addonId: null,
36853
+ access: "view"
36854
+ },
36709
36855
  "deviceManager.listLocations": {
36710
36856
  capName: "device-manager",
36711
36857
  capScope: "system",
@@ -36718,6 +36864,12 @@ Object.freeze({
36718
36864
  addonId: null,
36719
36865
  access: "view"
36720
36866
  },
36867
+ "deviceManager.listSiteZones": {
36868
+ capName: "device-manager",
36869
+ capScope: "system",
36870
+ addonId: null,
36871
+ access: "view"
36872
+ },
36721
36873
  "deviceManager.listWrappersForCap": {
36722
36874
  capName: "device-manager",
36723
36875
  capScope: "system",
@@ -36802,12 +36954,24 @@ Object.freeze({
36802
36954
  addonId: null,
36803
36955
  access: "delete"
36804
36956
  },
36957
+ "deviceManager.removeSiteZone": {
36958
+ capName: "device-manager",
36959
+ capScope: "system",
36960
+ addonId: null,
36961
+ access: "delete"
36962
+ },
36805
36963
  "deviceManager.renameLocation": {
36806
36964
  capName: "device-manager",
36807
36965
  capScope: "system",
36808
36966
  addonId: null,
36809
36967
  access: "create"
36810
36968
  },
36969
+ "deviceManager.renameSiteZone": {
36970
+ capName: "device-manager",
36971
+ capScope: "system",
36972
+ addonId: null,
36973
+ access: "create"
36974
+ },
36811
36975
  "deviceManager.runDeviceAction": {
36812
36976
  capName: "device-manager",
36813
36977
  capScope: "system",
@@ -36850,6 +37014,24 @@ Object.freeze({
36850
37014
  addonId: null,
36851
37015
  access: "create"
36852
37016
  },
37017
+ "deviceManager.setLocationDescription": {
37018
+ capName: "device-manager",
37019
+ capScope: "system",
37020
+ addonId: null,
37021
+ access: "create"
37022
+ },
37023
+ "deviceManager.setLocationIcon": {
37024
+ capName: "device-manager",
37025
+ capScope: "system",
37026
+ addonId: null,
37027
+ access: "create"
37028
+ },
37029
+ "deviceManager.setLocationZone": {
37030
+ capName: "device-manager",
37031
+ capScope: "system",
37032
+ addonId: null,
37033
+ access: "create"
37034
+ },
36853
37035
  "deviceManager.setMetadata": {
36854
37036
  capName: "device-manager",
36855
37037
  capScope: "system",
@@ -36880,6 +37062,12 @@ Object.freeze({
36880
37062
  addonId: null,
36881
37063
  access: "create"
36882
37064
  },
37065
+ "deviceManager.setSiteZone": {
37066
+ capName: "device-manager",
37067
+ capScope: "system",
37068
+ addonId: null,
37069
+ access: "create"
37070
+ },
36883
37071
  "deviceManager.setStreamProfileMap": {
36884
37072
  capName: "device-manager",
36885
37073
  capScope: "system",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-terminal",
3
- "version": "0.1.110",
3
+ "version": "0.1.112",
4
4
  "description": "Interactive terminal sessions (pty + xterm) as a CamStack addon",
5
5
  "keywords": [
6
6
  "camstack",