@camstack/addon-terminal 0.1.145 → 0.1.147

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
@@ -31,7 +31,7 @@ let node_module = require("node:module");
31
31
  let sharp = require("sharp");
32
32
  sharp = __toESM(sharp);
33
33
  let node_http = require("node:http");
34
- //#region ../types/dist/event-category-DOl51-Ij.mjs
34
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
35
35
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
36
36
  EventCategory["SystemBoot"] = "system.boot";
37
37
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -719,6 +719,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
719
719
  EventCategory["BackupRestored"] = "backup.restored";
720
720
  EventCategory["NotificationDispatched"] = "notification.dispatched";
721
721
  EventCategory["NotificationFailed"] = "notification.failed";
722
+ /**
723
+ * A notification rule that cannot work (D905): its stored row does not load,
724
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
725
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
726
+ */
727
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
728
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
729
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
722
730
  EventCategory["DeviceUpdated"] = "device.updated";
723
731
  /**
724
732
  * Transport-level connectivity. Emitted by the device driver when
@@ -5446,7 +5454,7 @@ var ZodIssueCode = {
5446
5454
  var ZodFirstPartyTypeKind;
5447
5455
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5448
5456
  //#endregion
5449
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5457
+ //#region ../types/dist/sleep-CueztlR1.mjs
5450
5458
  /**
5451
5459
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5452
5460
  * window to float samples (D455).
@@ -42417,6 +42425,8 @@ var NcSystemEventKindSchema = _enum([
42417
42425
  "alert-critical",
42418
42426
  "alert-error",
42419
42427
  "alert-critical-resolved",
42428
+ "rule-broken",
42429
+ "rule-repaired",
42420
42430
  "camera-online",
42421
42431
  "camera-offline",
42422
42432
  "camera-disabled",
@@ -78358,6 +78368,8 @@ new Map(Object.entries({
78358
78368
  "alert-critical": "system",
78359
78369
  "alert-error": "system",
78360
78370
  "alert-critical-resolved": "system",
78371
+ "rule-broken": "system",
78372
+ "rule-repaired": "system",
78361
78373
  "storage-location-low": "system",
78362
78374
  "storage-location-critical": "system",
78363
78375
  "storage-location-ok": "system",
@@ -78492,6 +78504,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78492
78504
  "alert-critical-resolved"
78493
78505
  ]
78494
78506
  },
78507
+ {
78508
+ id: "rule-health",
78509
+ family: "system",
78510
+ label: "Notification rules",
78511
+ kinds: ["rule-broken", "rule-repaired"]
78512
+ },
78495
78513
  {
78496
78514
  id: "alarm",
78497
78515
  family: "alarm",
@@ -78769,6 +78787,10 @@ var STATE_SUMMARY_VARS = [
78769
78787
  [...RULE_TEXT],
78770
78788
  [...RULE_TEXT],
78771
78789
  [...RULE_TEXT],
78790
+ [...RULE_TEXT],
78791
+ [...RULE_TEXT],
78792
+ [...RULE_TEXT],
78793
+ [...RULE_TEXT],
78772
78794
  ([...RULE_TEXT], [...UPDATES]),
78773
78795
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
78774
78796
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -78807,6 +78829,107 @@ var STATE_SUMMARY_VARS = [
78807
78829
  [...RULE_TEXT],
78808
78830
  ...STATE_SUMMARY_VARS
78809
78831
  ];
78832
+ new Map([
78833
+ {
78834
+ id: "device-connectivity",
78835
+ family: "device-events",
78836
+ label: "Device connectivity (offline / back online)",
78837
+ bad: ["device-offline"],
78838
+ recovery: ["device-online"],
78839
+ snapshotLabel: "Devices offline now",
78840
+ snapshotSection: "device-state"
78841
+ },
78842
+ {
78843
+ id: "device-switch",
78844
+ family: "device-events",
78845
+ label: "Device switched off / back on",
78846
+ bad: ["device-disabled"],
78847
+ recovery: ["device-enabled"],
78848
+ snapshotLabel: "Devices switched off now",
78849
+ snapshotSection: "device-state"
78850
+ },
78851
+ {
78852
+ id: "stream-connectivity",
78853
+ family: "device-events",
78854
+ label: "Stream connectivity (offline / back online)",
78855
+ bad: ["stream-offline"],
78856
+ recovery: ["stream-online"],
78857
+ snapshotLabel: "Streams offline now",
78858
+ snapshotSection: "streams"
78859
+ },
78860
+ {
78861
+ id: "battery",
78862
+ family: "device-events",
78863
+ label: "Battery (low / back to normal)",
78864
+ bad: ["device-battery-low"],
78865
+ recovery: ["device-battery-normal"],
78866
+ snapshotLabel: "Batteries low now",
78867
+ snapshotSection: "battery"
78868
+ },
78869
+ {
78870
+ id: "consumables",
78871
+ family: "device-events",
78872
+ label: "Consumables (low / replaced)",
78873
+ bad: ["device-consumable-low"],
78874
+ recovery: ["device-consumable-normal"],
78875
+ snapshotLabel: "Consumables low now",
78876
+ snapshotSection: "consumables"
78877
+ },
78878
+ {
78879
+ id: "tanks",
78880
+ family: "device-events",
78881
+ label: "Tanks (low or full / back to normal)",
78882
+ bad: ["device-tank-low", "device-tank-full"],
78883
+ recovery: ["device-tank-normal"],
78884
+ snapshotLabel: "Tanks low or full now",
78885
+ snapshotSection: "tanks"
78886
+ },
78887
+ {
78888
+ id: "recording-health",
78889
+ family: "device-events",
78890
+ label: "Recording health (stalled or degraded / recording again)",
78891
+ bad: ["recording-stalled", "recording-degraded"],
78892
+ recovery: ["recording-healthy"],
78893
+ snapshotLabel: "Recordings stalled now",
78894
+ snapshotSection: null
78895
+ },
78896
+ {
78897
+ id: "node-connectivity",
78898
+ family: "system",
78899
+ label: "Node connectivity (offline / back online)",
78900
+ bad: ["node-offline"],
78901
+ recovery: ["node-online"],
78902
+ snapshotLabel: "Nodes offline now",
78903
+ snapshotSection: "nodes"
78904
+ },
78905
+ {
78906
+ id: "storage-space",
78907
+ family: "system",
78908
+ label: "Storage space (low or critical / ok again)",
78909
+ bad: ["storage-location-low", "storage-location-critical"],
78910
+ recovery: ["storage-location-ok"],
78911
+ snapshotLabel: "Storage locations low now",
78912
+ snapshotSection: null
78913
+ },
78914
+ {
78915
+ id: "critical-alerts",
78916
+ family: "system",
78917
+ label: "Critical alerts (raised / resolved)",
78918
+ bad: ["alert-critical"],
78919
+ recovery: ["alert-critical-resolved"],
78920
+ snapshotLabel: "Critical alerts open now",
78921
+ snapshotSection: null
78922
+ },
78923
+ {
78924
+ id: "rule-health",
78925
+ family: "system",
78926
+ label: "Rule health (broken / repaired)",
78927
+ bad: ["rule-broken"],
78928
+ recovery: ["rule-repaired"],
78929
+ snapshotLabel: "Notification rules broken now",
78930
+ snapshotSection: null
78931
+ }
78932
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
78810
78933
  new Set([
78811
78934
  "disarmed",
78812
78935
  "armed_home",
package/dist/addon.mjs CHANGED
@@ -8,7 +8,7 @@ import { createServer } from "node:http";
8
8
  //#region \0rolldown/runtime.js
9
9
  var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
10
10
  //#endregion
11
- //#region ../types/dist/event-category-DOl51-Ij.mjs
11
+ //#region ../types/dist/event-category-7pZEBmVg.mjs
12
12
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
13
13
  EventCategory["SystemBoot"] = "system.boot";
14
14
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -696,6 +696,14 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
696
696
  EventCategory["BackupRestored"] = "backup.restored";
697
697
  EventCategory["NotificationDispatched"] = "notification.dispatched";
698
698
  EventCategory["NotificationFailed"] = "notification.failed";
699
+ /**
700
+ * A notification rule that cannot work (D905): its stored row does not load,
701
+ * or it still names a device / delivery target the prune CONFIRMED deleted.
702
+ * One edge per rule per distinct set of reasons; never on an unanswered read.
703
+ */
704
+ EventCategory["NotificationRuleBroken"] = "notification.rule-broken";
705
+ /** The clear of {@link NotificationRuleBroken}: the rule loads and names nothing deleted. */
706
+ EventCategory["NotificationRuleRepaired"] = "notification.rule-repaired";
699
707
  EventCategory["DeviceUpdated"] = "device.updated";
700
708
  /**
701
709
  * Transport-level connectivity. Emitted by the device driver when
@@ -5423,7 +5431,7 @@ var ZodIssueCode = {
5423
5431
  var ZodFirstPartyTypeKind;
5424
5432
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
5425
5433
  //#endregion
5426
- //#region ../types/dist/sleep-_sV1BE2f.mjs
5434
+ //#region ../types/dist/sleep-CueztlR1.mjs
5427
5435
  /**
5428
5436
  * The audio chunk plane's byte format, and the ONE expansion from a coded
5429
5437
  * window to float samples (D455).
@@ -42394,6 +42402,8 @@ var NcSystemEventKindSchema = _enum([
42394
42402
  "alert-critical",
42395
42403
  "alert-error",
42396
42404
  "alert-critical-resolved",
42405
+ "rule-broken",
42406
+ "rule-repaired",
42397
42407
  "camera-online",
42398
42408
  "camera-offline",
42399
42409
  "camera-disabled",
@@ -78335,6 +78345,8 @@ new Map(Object.entries({
78335
78345
  "alert-critical": "system",
78336
78346
  "alert-error": "system",
78337
78347
  "alert-critical-resolved": "system",
78348
+ "rule-broken": "system",
78349
+ "rule-repaired": "system",
78338
78350
  "storage-location-low": "system",
78339
78351
  "storage-location-critical": "system",
78340
78352
  "storage-location-ok": "system",
@@ -78469,6 +78481,12 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
78469
78481
  "alert-critical-resolved"
78470
78482
  ]
78471
78483
  },
78484
+ {
78485
+ id: "rule-health",
78486
+ family: "system",
78487
+ label: "Notification rules",
78488
+ kinds: ["rule-broken", "rule-repaired"]
78489
+ },
78472
78490
  {
78473
78491
  id: "alarm",
78474
78492
  family: "alarm",
@@ -78746,6 +78764,10 @@ var STATE_SUMMARY_VARS = [
78746
78764
  [...RULE_TEXT],
78747
78765
  [...RULE_TEXT],
78748
78766
  [...RULE_TEXT],
78767
+ [...RULE_TEXT],
78768
+ [...RULE_TEXT],
78769
+ [...RULE_TEXT],
78770
+ [...RULE_TEXT],
78749
78771
  ([...RULE_TEXT], [...UPDATES]),
78750
78772
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
78751
78773
  ([...RULE_TEXT], [...PACKAGE_UPDATES]),
@@ -78784,6 +78806,107 @@ var STATE_SUMMARY_VARS = [
78784
78806
  [...RULE_TEXT],
78785
78807
  ...STATE_SUMMARY_VARS
78786
78808
  ];
78809
+ new Map([
78810
+ {
78811
+ id: "device-connectivity",
78812
+ family: "device-events",
78813
+ label: "Device connectivity (offline / back online)",
78814
+ bad: ["device-offline"],
78815
+ recovery: ["device-online"],
78816
+ snapshotLabel: "Devices offline now",
78817
+ snapshotSection: "device-state"
78818
+ },
78819
+ {
78820
+ id: "device-switch",
78821
+ family: "device-events",
78822
+ label: "Device switched off / back on",
78823
+ bad: ["device-disabled"],
78824
+ recovery: ["device-enabled"],
78825
+ snapshotLabel: "Devices switched off now",
78826
+ snapshotSection: "device-state"
78827
+ },
78828
+ {
78829
+ id: "stream-connectivity",
78830
+ family: "device-events",
78831
+ label: "Stream connectivity (offline / back online)",
78832
+ bad: ["stream-offline"],
78833
+ recovery: ["stream-online"],
78834
+ snapshotLabel: "Streams offline now",
78835
+ snapshotSection: "streams"
78836
+ },
78837
+ {
78838
+ id: "battery",
78839
+ family: "device-events",
78840
+ label: "Battery (low / back to normal)",
78841
+ bad: ["device-battery-low"],
78842
+ recovery: ["device-battery-normal"],
78843
+ snapshotLabel: "Batteries low now",
78844
+ snapshotSection: "battery"
78845
+ },
78846
+ {
78847
+ id: "consumables",
78848
+ family: "device-events",
78849
+ label: "Consumables (low / replaced)",
78850
+ bad: ["device-consumable-low"],
78851
+ recovery: ["device-consumable-normal"],
78852
+ snapshotLabel: "Consumables low now",
78853
+ snapshotSection: "consumables"
78854
+ },
78855
+ {
78856
+ id: "tanks",
78857
+ family: "device-events",
78858
+ label: "Tanks (low or full / back to normal)",
78859
+ bad: ["device-tank-low", "device-tank-full"],
78860
+ recovery: ["device-tank-normal"],
78861
+ snapshotLabel: "Tanks low or full now",
78862
+ snapshotSection: "tanks"
78863
+ },
78864
+ {
78865
+ id: "recording-health",
78866
+ family: "device-events",
78867
+ label: "Recording health (stalled or degraded / recording again)",
78868
+ bad: ["recording-stalled", "recording-degraded"],
78869
+ recovery: ["recording-healthy"],
78870
+ snapshotLabel: "Recordings stalled now",
78871
+ snapshotSection: null
78872
+ },
78873
+ {
78874
+ id: "node-connectivity",
78875
+ family: "system",
78876
+ label: "Node connectivity (offline / back online)",
78877
+ bad: ["node-offline"],
78878
+ recovery: ["node-online"],
78879
+ snapshotLabel: "Nodes offline now",
78880
+ snapshotSection: "nodes"
78881
+ },
78882
+ {
78883
+ id: "storage-space",
78884
+ family: "system",
78885
+ label: "Storage space (low or critical / ok again)",
78886
+ bad: ["storage-location-low", "storage-location-critical"],
78887
+ recovery: ["storage-location-ok"],
78888
+ snapshotLabel: "Storage locations low now",
78889
+ snapshotSection: null
78890
+ },
78891
+ {
78892
+ id: "critical-alerts",
78893
+ family: "system",
78894
+ label: "Critical alerts (raised / resolved)",
78895
+ bad: ["alert-critical"],
78896
+ recovery: ["alert-critical-resolved"],
78897
+ snapshotLabel: "Critical alerts open now",
78898
+ snapshotSection: null
78899
+ },
78900
+ {
78901
+ id: "rule-health",
78902
+ family: "system",
78903
+ label: "Rule health (broken / repaired)",
78904
+ bad: ["rule-broken"],
78905
+ recovery: ["rule-repaired"],
78906
+ snapshotLabel: "Notification rules broken now",
78907
+ snapshotSection: null
78908
+ }
78909
+ ].flatMap((spec) => [...spec.bad, ...spec.recovery].map((kind) => [kind, spec])));
78787
78910
  new Set([
78788
78911
  "disarmed",
78789
78912
  "armed_home",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-terminal",
3
- "version": "0.1.145",
3
+ "version": "0.1.147",
4
4
  "description": "Interactive terminal sessions (pty + xterm) as a CamStack addon",
5
5
  "keywords": [
6
6
  "camstack",