@camstack/addon-terminal 0.1.131 → 0.1.132
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 +60 -3
- package/dist/addon.mjs +60 -3
- package/package.json +1 -1
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-
|
|
34
|
+
//#region ../types/dist/event-category-C4hVnRo8.mjs
|
|
35
35
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
36
36
|
EventCategory["SystemBoot"] = "system.boot";
|
|
37
37
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -250,7 +250,17 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
250
250
|
EventCategory["RecordingStopped"] = "recording.stopped";
|
|
251
251
|
EventCategory["RecordingError"] = "recording.error";
|
|
252
252
|
EventCategory["RecordingHealthDegraded"] = "recording.health.degraded";
|
|
253
|
+
/** Recording enabled but no segment finalized for the NC stall window. */
|
|
254
|
+
EventCategory["RecordingHealthStalled"] = "recording.health.stalled";
|
|
255
|
+
/** Recovery from {@link RecordingHealthStalled}. */
|
|
256
|
+
EventCategory["RecordingHealthOk"] = "recording.health.ok";
|
|
253
257
|
EventCategory["RecordingStorageCritical"] = "recording.storage.critical";
|
|
258
|
+
/** Free space on a storage location crossed the warn bar. */
|
|
259
|
+
EventCategory["StorageLocationLow"] = "storage.location.low";
|
|
260
|
+
/** Free space at/under the critical bar, or capacity probe failed (`null`). */
|
|
261
|
+
EventCategory["StorageLocationCritical"] = "storage.location.critical";
|
|
262
|
+
/** Recovery from low/critical on a storage location. */
|
|
263
|
+
EventCategory["StorageLocationOk"] = "storage.location.ok";
|
|
254
264
|
EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
|
|
255
265
|
EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
|
|
256
266
|
EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
|
|
@@ -5409,7 +5419,7 @@ var ZodIssueCode = {
|
|
|
5409
5419
|
var ZodFirstPartyTypeKind;
|
|
5410
5420
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5411
5421
|
//#endregion
|
|
5412
|
-
//#region ../types/dist/sleep-
|
|
5422
|
+
//#region ../types/dist/sleep-Tkp9dHXv.mjs
|
|
5413
5423
|
/**
|
|
5414
5424
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5415
5425
|
* window to float samples (D455).
|
|
@@ -13726,7 +13736,14 @@ var BrokerProviderInfoSchema = object({
|
|
|
13726
13736
|
/** Broker kinds this provider can create, with a display label. */
|
|
13727
13737
|
kinds: array(object({
|
|
13728
13738
|
kind: string(),
|
|
13729
|
-
label: string()
|
|
13739
|
+
label: string(),
|
|
13740
|
+
/**
|
|
13741
|
+
* Relative hub path to start an interactive account link (OAuth popup).
|
|
13742
|
+
* May include `{{brokerId}}`; admin-ui substitutes and appends `?popup=1`.
|
|
13743
|
+
*/
|
|
13744
|
+
interactiveConnectPath: string().min(1).optional(),
|
|
13745
|
+
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
13746
|
+
interactiveDisconnectPath: string().min(1).optional()
|
|
13730
13747
|
}))
|
|
13731
13748
|
});
|
|
13732
13749
|
var ListInputSchema = object({
|
|
@@ -20586,6 +20603,12 @@ var NcSystemEventKindSchema = _enum([
|
|
|
20586
20603
|
"node-updating",
|
|
20587
20604
|
"node-inference-unavailable",
|
|
20588
20605
|
"detection-blind",
|
|
20606
|
+
"recording-stalled",
|
|
20607
|
+
"recording-healthy",
|
|
20608
|
+
"recording-degraded",
|
|
20609
|
+
"storage-location-low",
|
|
20610
|
+
"storage-location-critical",
|
|
20611
|
+
"storage-location-ok",
|
|
20589
20612
|
"addon-crash-loop",
|
|
20590
20613
|
"addon-update-available",
|
|
20591
20614
|
"server-update-available",
|
|
@@ -56138,6 +56161,9 @@ new Map(Object.entries({
|
|
|
56138
56161
|
"stream-online": "device-events",
|
|
56139
56162
|
"stream-offline": "device-events",
|
|
56140
56163
|
"detection-blind": "device-events",
|
|
56164
|
+
"recording-stalled": "device-events",
|
|
56165
|
+
"recording-healthy": "device-events",
|
|
56166
|
+
"recording-degraded": "device-events",
|
|
56141
56167
|
"node-online": "system",
|
|
56142
56168
|
"node-offline": "system",
|
|
56143
56169
|
"node-restarting": "system",
|
|
@@ -56151,6 +56177,9 @@ new Map(Object.entries({
|
|
|
56151
56177
|
"wrapper-update-available": "system",
|
|
56152
56178
|
"backup-completed": "system",
|
|
56153
56179
|
"export-completed": "system",
|
|
56180
|
+
"storage-location-low": "system",
|
|
56181
|
+
"storage-location-critical": "system",
|
|
56182
|
+
"storage-location-ok": "system",
|
|
56154
56183
|
"alarm-triggered": "alarm",
|
|
56155
56184
|
"alarm-armed": "alarm",
|
|
56156
56185
|
"alarm-disarmed": "alarm",
|
|
@@ -56212,6 +56241,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
56212
56241
|
label: "Detecting nothing",
|
|
56213
56242
|
kinds: ["detection-blind"]
|
|
56214
56243
|
},
|
|
56244
|
+
{
|
|
56245
|
+
id: "recording",
|
|
56246
|
+
family: "device-events",
|
|
56247
|
+
label: "Recording",
|
|
56248
|
+
kinds: [
|
|
56249
|
+
"recording-stalled",
|
|
56250
|
+
"recording-healthy",
|
|
56251
|
+
"recording-degraded"
|
|
56252
|
+
]
|
|
56253
|
+
},
|
|
56215
56254
|
{
|
|
56216
56255
|
id: "nodes",
|
|
56217
56256
|
family: "system",
|
|
@@ -56252,6 +56291,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
56252
56291
|
label: "Backups & exports",
|
|
56253
56292
|
kinds: ["backup-completed", "export-completed"]
|
|
56254
56293
|
},
|
|
56294
|
+
{
|
|
56295
|
+
id: "storage",
|
|
56296
|
+
family: "system",
|
|
56297
|
+
label: "Storage locations",
|
|
56298
|
+
kinds: [
|
|
56299
|
+
"storage-location-low",
|
|
56300
|
+
"storage-location-critical",
|
|
56301
|
+
"storage-location-ok"
|
|
56302
|
+
]
|
|
56303
|
+
},
|
|
56255
56304
|
{
|
|
56256
56305
|
id: "alarm",
|
|
56257
56306
|
family: "alarm",
|
|
@@ -56334,6 +56383,9 @@ var DEVICE_EVENTS = [
|
|
|
56334
56383
|
"stream-online",
|
|
56335
56384
|
"stream-offline",
|
|
56336
56385
|
"detection-blind",
|
|
56386
|
+
"recording-stalled",
|
|
56387
|
+
"recording-healthy",
|
|
56388
|
+
"recording-degraded",
|
|
56337
56389
|
...ALARM
|
|
56338
56390
|
];
|
|
56339
56391
|
/** Every kind a summary may speak about — the two summarisable families. */
|
|
@@ -56501,6 +56553,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
56501
56553
|
[...RULE_TEXT],
|
|
56502
56554
|
[...RULE_TEXT],
|
|
56503
56555
|
[...RULE_TEXT],
|
|
56556
|
+
[...RULE_TEXT],
|
|
56557
|
+
[...RULE_TEXT],
|
|
56558
|
+
[...RULE_TEXT],
|
|
56559
|
+
[...RULE_TEXT],
|
|
56560
|
+
[...RULE_TEXT],
|
|
56504
56561
|
([...RULE_TEXT], [...UPDATES]),
|
|
56505
56562
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
56506
56563
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
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-
|
|
11
|
+
//#region ../types/dist/event-category-C4hVnRo8.mjs
|
|
12
12
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
13
13
|
EventCategory["SystemBoot"] = "system.boot";
|
|
14
14
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -227,7 +227,17 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
227
227
|
EventCategory["RecordingStopped"] = "recording.stopped";
|
|
228
228
|
EventCategory["RecordingError"] = "recording.error";
|
|
229
229
|
EventCategory["RecordingHealthDegraded"] = "recording.health.degraded";
|
|
230
|
+
/** Recording enabled but no segment finalized for the NC stall window. */
|
|
231
|
+
EventCategory["RecordingHealthStalled"] = "recording.health.stalled";
|
|
232
|
+
/** Recovery from {@link RecordingHealthStalled}. */
|
|
233
|
+
EventCategory["RecordingHealthOk"] = "recording.health.ok";
|
|
230
234
|
EventCategory["RecordingStorageCritical"] = "recording.storage.critical";
|
|
235
|
+
/** Free space on a storage location crossed the warn bar. */
|
|
236
|
+
EventCategory["StorageLocationLow"] = "storage.location.low";
|
|
237
|
+
/** Free space at/under the critical bar, or capacity probe failed (`null`). */
|
|
238
|
+
EventCategory["StorageLocationCritical"] = "storage.location.critical";
|
|
239
|
+
/** Recovery from low/critical on a storage location. */
|
|
240
|
+
EventCategory["StorageLocationOk"] = "storage.location.ok";
|
|
231
241
|
EventCategory["RecordingSegmentWritten"] = "recording.segment.written";
|
|
232
242
|
EventCategory["RecordingPolicyFallback"] = "recording.policy.fallback";
|
|
233
243
|
EventCategory["RecordingRetentionCompleted"] = "recording.retention.completed";
|
|
@@ -5386,7 +5396,7 @@ var ZodIssueCode = {
|
|
|
5386
5396
|
var ZodFirstPartyTypeKind;
|
|
5387
5397
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5388
5398
|
//#endregion
|
|
5389
|
-
//#region ../types/dist/sleep-
|
|
5399
|
+
//#region ../types/dist/sleep-Tkp9dHXv.mjs
|
|
5390
5400
|
/**
|
|
5391
5401
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5392
5402
|
* window to float samples (D455).
|
|
@@ -13703,7 +13713,14 @@ var BrokerProviderInfoSchema = object({
|
|
|
13703
13713
|
/** Broker kinds this provider can create, with a display label. */
|
|
13704
13714
|
kinds: array(object({
|
|
13705
13715
|
kind: string(),
|
|
13706
|
-
label: string()
|
|
13716
|
+
label: string(),
|
|
13717
|
+
/**
|
|
13718
|
+
* Relative hub path to start an interactive account link (OAuth popup).
|
|
13719
|
+
* May include `{{brokerId}}`; admin-ui substitutes and appends `?popup=1`.
|
|
13720
|
+
*/
|
|
13721
|
+
interactiveConnectPath: string().min(1).optional(),
|
|
13722
|
+
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
13723
|
+
interactiveDisconnectPath: string().min(1).optional()
|
|
13707
13724
|
}))
|
|
13708
13725
|
});
|
|
13709
13726
|
var ListInputSchema = object({
|
|
@@ -20563,6 +20580,12 @@ var NcSystemEventKindSchema = _enum([
|
|
|
20563
20580
|
"node-updating",
|
|
20564
20581
|
"node-inference-unavailable",
|
|
20565
20582
|
"detection-blind",
|
|
20583
|
+
"recording-stalled",
|
|
20584
|
+
"recording-healthy",
|
|
20585
|
+
"recording-degraded",
|
|
20586
|
+
"storage-location-low",
|
|
20587
|
+
"storage-location-critical",
|
|
20588
|
+
"storage-location-ok",
|
|
20566
20589
|
"addon-crash-loop",
|
|
20567
20590
|
"addon-update-available",
|
|
20568
20591
|
"server-update-available",
|
|
@@ -56115,6 +56138,9 @@ new Map(Object.entries({
|
|
|
56115
56138
|
"stream-online": "device-events",
|
|
56116
56139
|
"stream-offline": "device-events",
|
|
56117
56140
|
"detection-blind": "device-events",
|
|
56141
|
+
"recording-stalled": "device-events",
|
|
56142
|
+
"recording-healthy": "device-events",
|
|
56143
|
+
"recording-degraded": "device-events",
|
|
56118
56144
|
"node-online": "system",
|
|
56119
56145
|
"node-offline": "system",
|
|
56120
56146
|
"node-restarting": "system",
|
|
@@ -56128,6 +56154,9 @@ new Map(Object.entries({
|
|
|
56128
56154
|
"wrapper-update-available": "system",
|
|
56129
56155
|
"backup-completed": "system",
|
|
56130
56156
|
"export-completed": "system",
|
|
56157
|
+
"storage-location-low": "system",
|
|
56158
|
+
"storage-location-critical": "system",
|
|
56159
|
+
"storage-location-ok": "system",
|
|
56131
56160
|
"alarm-triggered": "alarm",
|
|
56132
56161
|
"alarm-armed": "alarm",
|
|
56133
56162
|
"alarm-disarmed": "alarm",
|
|
@@ -56189,6 +56218,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
56189
56218
|
label: "Detecting nothing",
|
|
56190
56219
|
kinds: ["detection-blind"]
|
|
56191
56220
|
},
|
|
56221
|
+
{
|
|
56222
|
+
id: "recording",
|
|
56223
|
+
family: "device-events",
|
|
56224
|
+
label: "Recording",
|
|
56225
|
+
kinds: [
|
|
56226
|
+
"recording-stalled",
|
|
56227
|
+
"recording-healthy",
|
|
56228
|
+
"recording-degraded"
|
|
56229
|
+
]
|
|
56230
|
+
},
|
|
56192
56231
|
{
|
|
56193
56232
|
id: "nodes",
|
|
56194
56233
|
family: "system",
|
|
@@ -56229,6 +56268,16 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
56229
56268
|
label: "Backups & exports",
|
|
56230
56269
|
kinds: ["backup-completed", "export-completed"]
|
|
56231
56270
|
},
|
|
56271
|
+
{
|
|
56272
|
+
id: "storage",
|
|
56273
|
+
family: "system",
|
|
56274
|
+
label: "Storage locations",
|
|
56275
|
+
kinds: [
|
|
56276
|
+
"storage-location-low",
|
|
56277
|
+
"storage-location-critical",
|
|
56278
|
+
"storage-location-ok"
|
|
56279
|
+
]
|
|
56280
|
+
},
|
|
56232
56281
|
{
|
|
56233
56282
|
id: "alarm",
|
|
56234
56283
|
family: "alarm",
|
|
@@ -56311,6 +56360,9 @@ var DEVICE_EVENTS = [
|
|
|
56311
56360
|
"stream-online",
|
|
56312
56361
|
"stream-offline",
|
|
56313
56362
|
"detection-blind",
|
|
56363
|
+
"recording-stalled",
|
|
56364
|
+
"recording-healthy",
|
|
56365
|
+
"recording-degraded",
|
|
56314
56366
|
...ALARM
|
|
56315
56367
|
];
|
|
56316
56368
|
/** Every kind a summary may speak about — the two summarisable families. */
|
|
@@ -56478,6 +56530,11 @@ var STATE_SUMMARY_VARS = [
|
|
|
56478
56530
|
[...RULE_TEXT],
|
|
56479
56531
|
[...RULE_TEXT],
|
|
56480
56532
|
[...RULE_TEXT],
|
|
56533
|
+
[...RULE_TEXT],
|
|
56534
|
+
[...RULE_TEXT],
|
|
56535
|
+
[...RULE_TEXT],
|
|
56536
|
+
[...RULE_TEXT],
|
|
56537
|
+
[...RULE_TEXT],
|
|
56481
56538
|
([...RULE_TEXT], [...UPDATES]),
|
|
56482
56539
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|
|
56483
56540
|
([...RULE_TEXT], [...PACKAGE_UPDATES]),
|