@camstack/addon-terminal 0.1.19 → 0.1.20
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 +76 -8
- package/dist/addon.mjs +76 -8
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -13245,11 +13245,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13245
13245
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13246
13246
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13247
13247
|
* differently.
|
|
13248
|
+
*
|
|
13249
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13250
|
+
*
|
|
13251
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13252
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13253
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13254
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13255
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13256
|
+
* honestly.
|
|
13257
|
+
*
|
|
13258
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13259
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13260
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13261
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13262
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13263
|
+
*
|
|
13264
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13265
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13266
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13267
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13268
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13248
13269
|
*/
|
|
13249
13270
|
var NotificationActionIconSchema = _enum([
|
|
13250
13271
|
"acknowledge",
|
|
13251
13272
|
"dismiss",
|
|
13252
13273
|
"silence",
|
|
13274
|
+
"snooze",
|
|
13253
13275
|
"view",
|
|
13254
13276
|
"play",
|
|
13255
13277
|
"open",
|
|
@@ -13257,9 +13279,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13257
13279
|
"lock",
|
|
13258
13280
|
"unlock",
|
|
13259
13281
|
"arm",
|
|
13282
|
+
"arm-home",
|
|
13283
|
+
"arm-away",
|
|
13284
|
+
"arm-night",
|
|
13260
13285
|
"disarm",
|
|
13261
13286
|
"light",
|
|
13262
|
-
"alert"
|
|
13287
|
+
"alert",
|
|
13288
|
+
"camera"
|
|
13263
13289
|
]);
|
|
13264
13290
|
/** A single tap-through action button. */
|
|
13265
13291
|
var NotificationActionSchema = object({
|
|
@@ -13459,6 +13485,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13459
13485
|
targetId: string(),
|
|
13460
13486
|
enabled: boolean()
|
|
13461
13487
|
}), _void(), { kind: "mutation" });
|
|
13488
|
+
new Set([
|
|
13489
|
+
{
|
|
13490
|
+
id: "person",
|
|
13491
|
+
name: "Person"
|
|
13492
|
+
},
|
|
13493
|
+
{
|
|
13494
|
+
id: "vehicle",
|
|
13495
|
+
name: "Vehicle"
|
|
13496
|
+
},
|
|
13497
|
+
{
|
|
13498
|
+
id: "animal",
|
|
13499
|
+
name: "Animal"
|
|
13500
|
+
},
|
|
13501
|
+
{
|
|
13502
|
+
id: "package",
|
|
13503
|
+
name: "Package"
|
|
13504
|
+
}
|
|
13505
|
+
].map((l) => l.id));
|
|
13462
13506
|
var COCO_TO_MACRO = {
|
|
13463
13507
|
mapping: {
|
|
13464
13508
|
person: "person",
|
|
@@ -14294,6 +14338,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14294
14338
|
"alarm-triggered",
|
|
14295
14339
|
"alarm-armed",
|
|
14296
14340
|
"alarm-disarmed",
|
|
14341
|
+
"alarm-arming",
|
|
14342
|
+
"alarm-arm-refused",
|
|
14297
14343
|
"camera-online",
|
|
14298
14344
|
"camera-offline",
|
|
14299
14345
|
"camera-disabled",
|
|
@@ -17566,6 +17612,22 @@ var detectionFpsField = {
|
|
|
17566
17612
|
default: 10,
|
|
17567
17613
|
step: 1
|
|
17568
17614
|
};
|
|
17615
|
+
/**
|
|
17616
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17617
|
+
*
|
|
17618
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17619
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17620
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17621
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17622
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17623
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17624
|
+
*
|
|
17625
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17626
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17627
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17628
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17629
|
+
* that ships with an addon deploy.
|
|
17630
|
+
*/
|
|
17569
17631
|
var occupancyRecheckSecField = {
|
|
17570
17632
|
min: 0,
|
|
17571
17633
|
max: 300,
|
|
@@ -17767,15 +17829,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17767
17829
|
*/
|
|
17768
17830
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17769
17831
|
/**
|
|
17770
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17771
|
-
*
|
|
17772
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17773
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17774
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17832
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17833
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17775
17834
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17776
17835
|
* (and only render) when this is enabled.
|
|
17777
|
-
|
|
17778
|
-
|
|
17836
|
+
*
|
|
17837
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17838
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17839
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17840
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17841
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17842
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17843
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17844
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17845
|
+
*/
|
|
17846
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17779
17847
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17780
17848
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17781
17849
|
/**
|
package/dist/addon.mjs
CHANGED
|
@@ -13222,11 +13222,33 @@ var NotificationFormatSchema = _enum([
|
|
|
13222
13222
|
* Named by INTENT, never by glyph. "check" would tie the vocabulary to one
|
|
13223
13223
|
* renderer's icon set; "acknowledge" survives an adapter that draws it
|
|
13224
13224
|
* differently.
|
|
13225
|
+
*
|
|
13226
|
+
* ── A TOKEN IS NOT A WIRE VALUE ─────────────────────────────────────
|
|
13227
|
+
*
|
|
13228
|
+
* These names are for US. **No adapter may forward one verbatim.** Each maps
|
|
13229
|
+
* the whole set onto its own renderer's vocabulary through a
|
|
13230
|
+
* `Record<NotificationActionIcon, string>` — a Record, never a lookup with a
|
|
13231
|
+
* fallback, so adding a member here fails every adapter's build until someone
|
|
13232
|
+
* decides its glyph, which is the only place that decision can be made
|
|
13233
|
+
* honestly.
|
|
13234
|
+
*
|
|
13235
|
+
* This paragraph is the bug. Zentik declared `actionIcons: true` and passed
|
|
13236
|
+
* `disarm` straight through; iOS feeds that string to
|
|
13237
|
+
* `UNNotificationActionIcon(systemImageName:)`, `disarm` is not an SF Symbol,
|
|
13238
|
+
* and every snooze and alarm button arrived BLANK. A pass-through is not a
|
|
13239
|
+
* mapping, and "the field is documented" is not "the value renders".
|
|
13240
|
+
*
|
|
13241
|
+
* Adding a member is TRAIN-BOUND. The enum lives in the published
|
|
13242
|
+
* `@camstack/server` closure and the cap seam validates against the HUB's copy,
|
|
13243
|
+
* so an addon that emits a token the running hub does not know does not lose an
|
|
13244
|
+
* icon — its whole `send` fails Zod validation and the notification never
|
|
13245
|
+
* arrives. Never emit a new token from an addon before the train carrying it.
|
|
13225
13246
|
*/
|
|
13226
13247
|
var NotificationActionIconSchema = _enum([
|
|
13227
13248
|
"acknowledge",
|
|
13228
13249
|
"dismiss",
|
|
13229
13250
|
"silence",
|
|
13251
|
+
"snooze",
|
|
13230
13252
|
"view",
|
|
13231
13253
|
"play",
|
|
13232
13254
|
"open",
|
|
@@ -13234,9 +13256,13 @@ var NotificationActionIconSchema = _enum([
|
|
|
13234
13256
|
"lock",
|
|
13235
13257
|
"unlock",
|
|
13236
13258
|
"arm",
|
|
13259
|
+
"arm-home",
|
|
13260
|
+
"arm-away",
|
|
13261
|
+
"arm-night",
|
|
13237
13262
|
"disarm",
|
|
13238
13263
|
"light",
|
|
13239
|
-
"alert"
|
|
13264
|
+
"alert",
|
|
13265
|
+
"camera"
|
|
13240
13266
|
]);
|
|
13241
13267
|
/** A single tap-through action button. */
|
|
13242
13268
|
var NotificationActionSchema = object({
|
|
@@ -13436,6 +13462,24 @@ method(object({}), array(TargetKindSchema)), method(object({}), array(TargetSche
|
|
|
13436
13462
|
targetId: string(),
|
|
13437
13463
|
enabled: boolean()
|
|
13438
13464
|
}), _void(), { kind: "mutation" });
|
|
13465
|
+
new Set([
|
|
13466
|
+
{
|
|
13467
|
+
id: "person",
|
|
13468
|
+
name: "Person"
|
|
13469
|
+
},
|
|
13470
|
+
{
|
|
13471
|
+
id: "vehicle",
|
|
13472
|
+
name: "Vehicle"
|
|
13473
|
+
},
|
|
13474
|
+
{
|
|
13475
|
+
id: "animal",
|
|
13476
|
+
name: "Animal"
|
|
13477
|
+
},
|
|
13478
|
+
{
|
|
13479
|
+
id: "package",
|
|
13480
|
+
name: "Package"
|
|
13481
|
+
}
|
|
13482
|
+
].map((l) => l.id));
|
|
13439
13483
|
var COCO_TO_MACRO = {
|
|
13440
13484
|
mapping: {
|
|
13441
13485
|
person: "person",
|
|
@@ -14271,6 +14315,8 @@ var NcSystemEventKindSchema = _enum([
|
|
|
14271
14315
|
"alarm-triggered",
|
|
14272
14316
|
"alarm-armed",
|
|
14273
14317
|
"alarm-disarmed",
|
|
14318
|
+
"alarm-arming",
|
|
14319
|
+
"alarm-arm-refused",
|
|
14274
14320
|
"camera-online",
|
|
14275
14321
|
"camera-offline",
|
|
14276
14322
|
"camera-disabled",
|
|
@@ -17543,6 +17589,22 @@ var detectionFpsField = {
|
|
|
17543
17589
|
default: 10,
|
|
17544
17590
|
step: 1
|
|
17545
17591
|
};
|
|
17592
|
+
/**
|
|
17593
|
+
* The occupancy re-check interval. DEFAULT 300 s (2026-08-13 — was 30 s).
|
|
17594
|
+
*
|
|
17595
|
+
* The recheck is now on by default (a parked car is invisible to occupancy
|
|
17596
|
+
* rules until the stationary registry has been rebuilt by motion, which after a
|
|
17597
|
+
* restart may be never on a quiet camera). Each cycle re-subscribes a detection
|
|
17598
|
+
* session — an RTSP re-dial — so the switch is only affordable at a WIDE
|
|
17599
|
+
* interval: 300 s is ~12 re-dials an hour per camera, against 120 at the old
|
|
17600
|
+
* 30 s. A parked car is therefore counted within 5 minutes of a restart.
|
|
17601
|
+
*
|
|
17602
|
+
* Why not wider: `max` is 300 and raising it is TRAIN-BOUND, not addon-bound —
|
|
17603
|
+
* the host validates `attachCamera` against ITS copy of this schema, so a
|
|
17604
|
+
* runner asked for 600 would be rejected by the hub until a `@camstack/server`
|
|
17605
|
+
* carrying the wider bound is installed everywhere. 300 is the widest value
|
|
17606
|
+
* that ships with an addon deploy.
|
|
17607
|
+
*/
|
|
17546
17608
|
var occupancyRecheckSecField = {
|
|
17547
17609
|
min: 0,
|
|
17548
17610
|
max: 300,
|
|
@@ -17744,15 +17806,21 @@ var RunnerCameraConfigSchema = object({
|
|
|
17744
17806
|
*/
|
|
17745
17807
|
onboardMotionDrivesAnalyzer: boolean().default(true),
|
|
17746
17808
|
/**
|
|
17747
|
-
* Master toggle for the occupancy re-check. When `false`
|
|
17748
|
-
*
|
|
17749
|
-
* this is off by default because the recheck re-subscribes a detection session
|
|
17750
|
-
* every N seconds while `watching`, a major source of pull-decoder re-dial
|
|
17751
|
-
* churn (each cycle creates+tears a session → RTSP re-dial → latency). The
|
|
17809
|
+
* Master toggle for the occupancy re-check. When `false` the runner never arms
|
|
17810
|
+
* the periodic recheck timer, regardless of `occupancyRecheckSec`; the
|
|
17752
17811
|
* `occupancyRecheckSec` / `occupancyRecheckFrames` sliders only take effect
|
|
17753
17812
|
* (and only render) when this is enabled.
|
|
17754
|
-
|
|
17755
|
-
|
|
17813
|
+
*
|
|
17814
|
+
* DEFAULT `true` since 2026-08-13 (was `false`). It was off because the
|
|
17815
|
+
* recheck re-subscribes a detection session every N seconds while `watching`
|
|
17816
|
+
* — each cycle creates+tears a session ⇒ an RTSP re-dial ⇒ latency, a major
|
|
17817
|
+
* pull-decoder churn source. What that bought was a blind spot: a STATIONARY
|
|
17818
|
+
* object is counted only while the stationary registry holds it, and the
|
|
17819
|
+
* registry rebuilds from motion, so after a restart a parked car was invisible
|
|
17820
|
+
* to every occupancy rule until something moved in front of it. The churn is
|
|
17821
|
+
* now paid on the interval instead — see `occupancyRecheckSecField`.
|
|
17822
|
+
*/
|
|
17823
|
+
occupancyRecheckEnabled: boolean().default(true),
|
|
17756
17824
|
occupancyRecheckSec: number().min(occupancyRecheckSecField.min).max(occupancyRecheckSecField.max).default(occupancyRecheckSecField.default),
|
|
17757
17825
|
occupancyRecheckFrames: number().min(occupancyRecheckFramesField.min).max(occupancyRecheckFramesField.max).default(occupancyRecheckFramesField.default),
|
|
17758
17826
|
/**
|