@camstack/addon-ai 0.4.111 → 0.4.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 +133 -0
- package/dist/addon.mjs +133 -0
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -13481,6 +13481,70 @@ var LocationIconAssignmentSchema = object({
|
|
|
13481
13481
|
locationKey: string(),
|
|
13482
13482
|
icon: LocationIconIdSchema
|
|
13483
13483
|
});
|
|
13484
|
+
/**
|
|
13485
|
+
* One (location, description) assignment as it travels.
|
|
13486
|
+
*
|
|
13487
|
+
* Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
|
|
13488
|
+
* reason: this lived for a while in the post-analysis addon's own settings,
|
|
13489
|
+
* keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
|
|
13490
|
+
* the Locations page carried the icon and silently orphaned the description —
|
|
13491
|
+
* two authorities for one thing, joined by two different rules. Now both hang
|
|
13492
|
+
* off the location itself, on `locationIconKey`.
|
|
13493
|
+
*/
|
|
13494
|
+
var LocationDescriptionAssignmentSchema = object({
|
|
13495
|
+
locationKey: string(),
|
|
13496
|
+
description: string()
|
|
13497
|
+
});
|
|
13498
|
+
/**
|
|
13499
|
+
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
13500
|
+
*
|
|
13501
|
+
* "Zona notte" holds every bedroom; "Zona giorno" the living room and the
|
|
13502
|
+
* kitchen. A camera belongs to exactly one location, and a location to at most
|
|
13503
|
+
* one zone, so a camera's zone is derived and never stored on the device: the
|
|
13504
|
+
* whole point of this entity is that grouping rooms touches no device row.
|
|
13505
|
+
*
|
|
13506
|
+
* ## Why not `zone`
|
|
13507
|
+
*
|
|
13508
|
+
* Because `zone` is already the most loaded word in this product: 612 source
|
|
13509
|
+
* files and 24 Italian strings where it means a DETECTION zone drawn on a
|
|
13510
|
+
* camera. The two are unrelated — one is a polygon in a frame, the other is a
|
|
13511
|
+
* set of rooms — and a reader who confuses them will look for a camera's
|
|
13512
|
+
* bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
|
|
13513
|
+
* word by calling the drawn one what it actually is: a detection zone.
|
|
13514
|
+
*
|
|
13515
|
+
* ## The key
|
|
13516
|
+
*
|
|
13517
|
+
* `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
|
|
13518
|
+
* use (`locationIconKey`). Membership and the icon both hang off it, so a
|
|
13519
|
+
* case-only rename keeps them, which is exactly the orphaning that cost us a
|
|
13520
|
+
* silently-dropped location description.
|
|
13521
|
+
*
|
|
13522
|
+
* The icon vocabulary is the location one, unchanged: a zone is drawn on the
|
|
13523
|
+
* same two surfaces by the same glyph map, so a second vocabulary would be a
|
|
13524
|
+
* second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
|
|
13525
|
+
*/
|
|
13526
|
+
/**
|
|
13527
|
+
* One zone as it travels: its key, the label the operator typed, its icon and
|
|
13528
|
+
* the locations inside it.
|
|
13529
|
+
*
|
|
13530
|
+
* The LABEL is carried alongside the key because the key is lossy on purpose —
|
|
13531
|
+
* a surface must show "Zona notte", not "zona notte". Locations are carried
|
|
13532
|
+
* here, rather than left to a second call, because every consumer wants both
|
|
13533
|
+
* at once and a viewer that asked twice could render a zone whose membership
|
|
13534
|
+
* it has not fetched yet.
|
|
13535
|
+
*
|
|
13536
|
+
* `icon: null` means nobody chose one, which is NOT the fallback pin: only one
|
|
13537
|
+
* of those two is a choice, and a picker has to draw them differently.
|
|
13538
|
+
*/
|
|
13539
|
+
var SiteZoneSchema = object({
|
|
13540
|
+
zoneKey: string(),
|
|
13541
|
+
label: string(),
|
|
13542
|
+
icon: LocationIconIdSchema.nullable(),
|
|
13543
|
+
/** Folded location keys, sorted. A location listed here need not be
|
|
13544
|
+
* REGISTERED — devices carry labels nobody registered, and those rooms are
|
|
13545
|
+
* the ones that most want grouping. */
|
|
13546
|
+
locationKeys: array(string())
|
|
13547
|
+
});
|
|
13484
13548
|
var ProviderStatusSchema = object({
|
|
13485
13549
|
connected: boolean(),
|
|
13486
13550
|
deviceCount: number$1(),
|
|
@@ -13998,6 +14062,33 @@ method(object({
|
|
|
13998
14062
|
}), _void(), {
|
|
13999
14063
|
kind: "mutation",
|
|
14000
14064
|
auth: "admin"
|
|
14065
|
+
}), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
|
|
14066
|
+
location: string(),
|
|
14067
|
+
description: string().max(400).nullable()
|
|
14068
|
+
}), _void(), {
|
|
14069
|
+
kind: "mutation",
|
|
14070
|
+
auth: "admin"
|
|
14071
|
+
}), method(_void(), array(SiteZoneSchema)), method(object({
|
|
14072
|
+
name: string(),
|
|
14073
|
+
icon: LocationIconIdSchema.nullable().optional()
|
|
14074
|
+
}), _void(), {
|
|
14075
|
+
kind: "mutation",
|
|
14076
|
+
auth: "admin"
|
|
14077
|
+
}), method(object({ name: string() }), _void(), {
|
|
14078
|
+
kind: "mutation",
|
|
14079
|
+
auth: "admin"
|
|
14080
|
+
}), method(object({
|
|
14081
|
+
from: string(),
|
|
14082
|
+
to: string()
|
|
14083
|
+
}), _void(), {
|
|
14084
|
+
kind: "mutation",
|
|
14085
|
+
auth: "admin"
|
|
14086
|
+
}), method(object({
|
|
14087
|
+
location: string(),
|
|
14088
|
+
zone: string().nullable()
|
|
14089
|
+
}), _void(), {
|
|
14090
|
+
kind: "mutation",
|
|
14091
|
+
auth: "admin"
|
|
14001
14092
|
}), method(object({
|
|
14002
14093
|
deviceId: number$1(),
|
|
14003
14094
|
disabled: boolean()
|
|
@@ -32915,6 +33006,12 @@ Object.freeze({
|
|
|
32915
33006
|
addonId: null,
|
|
32916
33007
|
access: "view"
|
|
32917
33008
|
},
|
|
33009
|
+
"deviceManager.listLocationDescriptions": {
|
|
33010
|
+
capName: "device-manager",
|
|
33011
|
+
capScope: "system",
|
|
33012
|
+
addonId: null,
|
|
33013
|
+
access: "view"
|
|
33014
|
+
},
|
|
32918
33015
|
"deviceManager.listLocationIcons": {
|
|
32919
33016
|
capName: "device-manager",
|
|
32920
33017
|
capScope: "system",
|
|
@@ -32933,6 +33030,12 @@ Object.freeze({
|
|
|
32933
33030
|
addonId: null,
|
|
32934
33031
|
access: "view"
|
|
32935
33032
|
},
|
|
33033
|
+
"deviceManager.listSiteZones": {
|
|
33034
|
+
capName: "device-manager",
|
|
33035
|
+
capScope: "system",
|
|
33036
|
+
addonId: null,
|
|
33037
|
+
access: "view"
|
|
33038
|
+
},
|
|
32936
33039
|
"deviceManager.listWrappersForCap": {
|
|
32937
33040
|
capName: "device-manager",
|
|
32938
33041
|
capScope: "system",
|
|
@@ -33017,12 +33120,24 @@ Object.freeze({
|
|
|
33017
33120
|
addonId: null,
|
|
33018
33121
|
access: "delete"
|
|
33019
33122
|
},
|
|
33123
|
+
"deviceManager.removeSiteZone": {
|
|
33124
|
+
capName: "device-manager",
|
|
33125
|
+
capScope: "system",
|
|
33126
|
+
addonId: null,
|
|
33127
|
+
access: "delete"
|
|
33128
|
+
},
|
|
33020
33129
|
"deviceManager.renameLocation": {
|
|
33021
33130
|
capName: "device-manager",
|
|
33022
33131
|
capScope: "system",
|
|
33023
33132
|
addonId: null,
|
|
33024
33133
|
access: "create"
|
|
33025
33134
|
},
|
|
33135
|
+
"deviceManager.renameSiteZone": {
|
|
33136
|
+
capName: "device-manager",
|
|
33137
|
+
capScope: "system",
|
|
33138
|
+
addonId: null,
|
|
33139
|
+
access: "create"
|
|
33140
|
+
},
|
|
33026
33141
|
"deviceManager.runDeviceAction": {
|
|
33027
33142
|
capName: "device-manager",
|
|
33028
33143
|
capScope: "system",
|
|
@@ -33065,12 +33180,24 @@ Object.freeze({
|
|
|
33065
33180
|
addonId: null,
|
|
33066
33181
|
access: "create"
|
|
33067
33182
|
},
|
|
33183
|
+
"deviceManager.setLocationDescription": {
|
|
33184
|
+
capName: "device-manager",
|
|
33185
|
+
capScope: "system",
|
|
33186
|
+
addonId: null,
|
|
33187
|
+
access: "create"
|
|
33188
|
+
},
|
|
33068
33189
|
"deviceManager.setLocationIcon": {
|
|
33069
33190
|
capName: "device-manager",
|
|
33070
33191
|
capScope: "system",
|
|
33071
33192
|
addonId: null,
|
|
33072
33193
|
access: "create"
|
|
33073
33194
|
},
|
|
33195
|
+
"deviceManager.setLocationZone": {
|
|
33196
|
+
capName: "device-manager",
|
|
33197
|
+
capScope: "system",
|
|
33198
|
+
addonId: null,
|
|
33199
|
+
access: "create"
|
|
33200
|
+
},
|
|
33074
33201
|
"deviceManager.setMetadata": {
|
|
33075
33202
|
capName: "device-manager",
|
|
33076
33203
|
capScope: "system",
|
|
@@ -33101,6 +33228,12 @@ Object.freeze({
|
|
|
33101
33228
|
addonId: null,
|
|
33102
33229
|
access: "create"
|
|
33103
33230
|
},
|
|
33231
|
+
"deviceManager.setSiteZone": {
|
|
33232
|
+
capName: "device-manager",
|
|
33233
|
+
capScope: "system",
|
|
33234
|
+
addonId: null,
|
|
33235
|
+
access: "create"
|
|
33236
|
+
},
|
|
33104
33237
|
"deviceManager.setStreamProfileMap": {
|
|
33105
33238
|
capName: "device-manager",
|
|
33106
33239
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -13508,6 +13508,70 @@ var LocationIconAssignmentSchema = object({
|
|
|
13508
13508
|
locationKey: string(),
|
|
13509
13509
|
icon: LocationIconIdSchema
|
|
13510
13510
|
});
|
|
13511
|
+
/**
|
|
13512
|
+
* One (location, description) assignment as it travels.
|
|
13513
|
+
*
|
|
13514
|
+
* Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
|
|
13515
|
+
* reason: this lived for a while in the post-analysis addon's own settings,
|
|
13516
|
+
* keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
|
|
13517
|
+
* the Locations page carried the icon and silently orphaned the description —
|
|
13518
|
+
* two authorities for one thing, joined by two different rules. Now both hang
|
|
13519
|
+
* off the location itself, on `locationIconKey`.
|
|
13520
|
+
*/
|
|
13521
|
+
var LocationDescriptionAssignmentSchema = object({
|
|
13522
|
+
locationKey: string(),
|
|
13523
|
+
description: string()
|
|
13524
|
+
});
|
|
13525
|
+
/**
|
|
13526
|
+
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
13527
|
+
*
|
|
13528
|
+
* "Zona notte" holds every bedroom; "Zona giorno" the living room and the
|
|
13529
|
+
* kitchen. A camera belongs to exactly one location, and a location to at most
|
|
13530
|
+
* one zone, so a camera's zone is derived and never stored on the device: the
|
|
13531
|
+
* whole point of this entity is that grouping rooms touches no device row.
|
|
13532
|
+
*
|
|
13533
|
+
* ## Why not `zone`
|
|
13534
|
+
*
|
|
13535
|
+
* Because `zone` is already the most loaded word in this product: 612 source
|
|
13536
|
+
* files and 24 Italian strings where it means a DETECTION zone drawn on a
|
|
13537
|
+
* camera. The two are unrelated — one is a polygon in a frame, the other is a
|
|
13538
|
+
* set of rooms — and a reader who confuses them will look for a camera's
|
|
13539
|
+
* bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
|
|
13540
|
+
* word by calling the drawn one what it actually is: a detection zone.
|
|
13541
|
+
*
|
|
13542
|
+
* ## The key
|
|
13543
|
+
*
|
|
13544
|
+
* `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
|
|
13545
|
+
* use (`locationIconKey`). Membership and the icon both hang off it, so a
|
|
13546
|
+
* case-only rename keeps them, which is exactly the orphaning that cost us a
|
|
13547
|
+
* silently-dropped location description.
|
|
13548
|
+
*
|
|
13549
|
+
* The icon vocabulary is the location one, unchanged: a zone is drawn on the
|
|
13550
|
+
* same two surfaces by the same glyph map, so a second vocabulary would be a
|
|
13551
|
+
* second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
|
|
13552
|
+
*/
|
|
13553
|
+
/**
|
|
13554
|
+
* One zone as it travels: its key, the label the operator typed, its icon and
|
|
13555
|
+
* the locations inside it.
|
|
13556
|
+
*
|
|
13557
|
+
* The LABEL is carried alongside the key because the key is lossy on purpose —
|
|
13558
|
+
* a surface must show "Zona notte", not "zona notte". Locations are carried
|
|
13559
|
+
* here, rather than left to a second call, because every consumer wants both
|
|
13560
|
+
* at once and a viewer that asked twice could render a zone whose membership
|
|
13561
|
+
* it has not fetched yet.
|
|
13562
|
+
*
|
|
13563
|
+
* `icon: null` means nobody chose one, which is NOT the fallback pin: only one
|
|
13564
|
+
* of those two is a choice, and a picker has to draw them differently.
|
|
13565
|
+
*/
|
|
13566
|
+
var SiteZoneSchema = object({
|
|
13567
|
+
zoneKey: string(),
|
|
13568
|
+
label: string(),
|
|
13569
|
+
icon: LocationIconIdSchema.nullable(),
|
|
13570
|
+
/** Folded location keys, sorted. A location listed here need not be
|
|
13571
|
+
* REGISTERED — devices carry labels nobody registered, and those rooms are
|
|
13572
|
+
* the ones that most want grouping. */
|
|
13573
|
+
locationKeys: array(string())
|
|
13574
|
+
});
|
|
13511
13575
|
var ProviderStatusSchema = object({
|
|
13512
13576
|
connected: boolean(),
|
|
13513
13577
|
deviceCount: number$1(),
|
|
@@ -14025,6 +14089,33 @@ method(object({
|
|
|
14025
14089
|
}), _void(), {
|
|
14026
14090
|
kind: "mutation",
|
|
14027
14091
|
auth: "admin"
|
|
14092
|
+
}), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
|
|
14093
|
+
location: string(),
|
|
14094
|
+
description: string().max(400).nullable()
|
|
14095
|
+
}), _void(), {
|
|
14096
|
+
kind: "mutation",
|
|
14097
|
+
auth: "admin"
|
|
14098
|
+
}), method(_void(), array(SiteZoneSchema)), method(object({
|
|
14099
|
+
name: string(),
|
|
14100
|
+
icon: LocationIconIdSchema.nullable().optional()
|
|
14101
|
+
}), _void(), {
|
|
14102
|
+
kind: "mutation",
|
|
14103
|
+
auth: "admin"
|
|
14104
|
+
}), method(object({ name: string() }), _void(), {
|
|
14105
|
+
kind: "mutation",
|
|
14106
|
+
auth: "admin"
|
|
14107
|
+
}), method(object({
|
|
14108
|
+
from: string(),
|
|
14109
|
+
to: string()
|
|
14110
|
+
}), _void(), {
|
|
14111
|
+
kind: "mutation",
|
|
14112
|
+
auth: "admin"
|
|
14113
|
+
}), method(object({
|
|
14114
|
+
location: string(),
|
|
14115
|
+
zone: string().nullable()
|
|
14116
|
+
}), _void(), {
|
|
14117
|
+
kind: "mutation",
|
|
14118
|
+
auth: "admin"
|
|
14028
14119
|
}), method(object({
|
|
14029
14120
|
deviceId: number$1(),
|
|
14030
14121
|
disabled: boolean()
|
|
@@ -32942,6 +33033,12 @@ Object.freeze({
|
|
|
32942
33033
|
addonId: null,
|
|
32943
33034
|
access: "view"
|
|
32944
33035
|
},
|
|
33036
|
+
"deviceManager.listLocationDescriptions": {
|
|
33037
|
+
capName: "device-manager",
|
|
33038
|
+
capScope: "system",
|
|
33039
|
+
addonId: null,
|
|
33040
|
+
access: "view"
|
|
33041
|
+
},
|
|
32945
33042
|
"deviceManager.listLocationIcons": {
|
|
32946
33043
|
capName: "device-manager",
|
|
32947
33044
|
capScope: "system",
|
|
@@ -32960,6 +33057,12 @@ Object.freeze({
|
|
|
32960
33057
|
addonId: null,
|
|
32961
33058
|
access: "view"
|
|
32962
33059
|
},
|
|
33060
|
+
"deviceManager.listSiteZones": {
|
|
33061
|
+
capName: "device-manager",
|
|
33062
|
+
capScope: "system",
|
|
33063
|
+
addonId: null,
|
|
33064
|
+
access: "view"
|
|
33065
|
+
},
|
|
32963
33066
|
"deviceManager.listWrappersForCap": {
|
|
32964
33067
|
capName: "device-manager",
|
|
32965
33068
|
capScope: "system",
|
|
@@ -33044,12 +33147,24 @@ Object.freeze({
|
|
|
33044
33147
|
addonId: null,
|
|
33045
33148
|
access: "delete"
|
|
33046
33149
|
},
|
|
33150
|
+
"deviceManager.removeSiteZone": {
|
|
33151
|
+
capName: "device-manager",
|
|
33152
|
+
capScope: "system",
|
|
33153
|
+
addonId: null,
|
|
33154
|
+
access: "delete"
|
|
33155
|
+
},
|
|
33047
33156
|
"deviceManager.renameLocation": {
|
|
33048
33157
|
capName: "device-manager",
|
|
33049
33158
|
capScope: "system",
|
|
33050
33159
|
addonId: null,
|
|
33051
33160
|
access: "create"
|
|
33052
33161
|
},
|
|
33162
|
+
"deviceManager.renameSiteZone": {
|
|
33163
|
+
capName: "device-manager",
|
|
33164
|
+
capScope: "system",
|
|
33165
|
+
addonId: null,
|
|
33166
|
+
access: "create"
|
|
33167
|
+
},
|
|
33053
33168
|
"deviceManager.runDeviceAction": {
|
|
33054
33169
|
capName: "device-manager",
|
|
33055
33170
|
capScope: "system",
|
|
@@ -33092,12 +33207,24 @@ Object.freeze({
|
|
|
33092
33207
|
addonId: null,
|
|
33093
33208
|
access: "create"
|
|
33094
33209
|
},
|
|
33210
|
+
"deviceManager.setLocationDescription": {
|
|
33211
|
+
capName: "device-manager",
|
|
33212
|
+
capScope: "system",
|
|
33213
|
+
addonId: null,
|
|
33214
|
+
access: "create"
|
|
33215
|
+
},
|
|
33095
33216
|
"deviceManager.setLocationIcon": {
|
|
33096
33217
|
capName: "device-manager",
|
|
33097
33218
|
capScope: "system",
|
|
33098
33219
|
addonId: null,
|
|
33099
33220
|
access: "create"
|
|
33100
33221
|
},
|
|
33222
|
+
"deviceManager.setLocationZone": {
|
|
33223
|
+
capName: "device-manager",
|
|
33224
|
+
capScope: "system",
|
|
33225
|
+
addonId: null,
|
|
33226
|
+
access: "create"
|
|
33227
|
+
},
|
|
33101
33228
|
"deviceManager.setMetadata": {
|
|
33102
33229
|
capName: "device-manager",
|
|
33103
33230
|
capScope: "system",
|
|
@@ -33128,6 +33255,12 @@ Object.freeze({
|
|
|
33128
33255
|
addonId: null,
|
|
33129
33256
|
access: "create"
|
|
33130
33257
|
},
|
|
33258
|
+
"deviceManager.setSiteZone": {
|
|
33259
|
+
capName: "device-manager",
|
|
33260
|
+
capScope: "system",
|
|
33261
|
+
addonId: null,
|
|
33262
|
+
access: "create"
|
|
33263
|
+
},
|
|
33131
33264
|
"deviceManager.setStreamProfileMap": {
|
|
33132
33265
|
capName: "device-manager",
|
|
33133
33266
|
capScope: "system",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-ai",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.112",
|
|
4
4
|
"description": "AI addon for CamStack — the `llm` collection provider (cloud, LAN, and camstack-managed local llama.cpp profiles) plus the per-node `llm-runtime` managed executor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|