@camstack/types 1.2.86 → 1.2.87
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 +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/capabilities/notification-rules.cap.d.ts +16 -0
- package/dist/capabilities/osd-manager.cap.d.ts +6 -0
- package/dist/enums/event-category.d.ts +16 -0
- package/dist/enums.js +1 -1
- package/dist/enums.mjs +1 -1
- package/dist/{event-category-DBHdQVIy.js → event-category-CRPORAAz.js} +16 -0
- package/dist/{event-category-C0lyLd5U.mjs → event-category-XfKNtfCc.mjs} +16 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +317 -3
- package/dist/index.mjs +308 -4
- package/dist/interfaces/event-bus.d.ts +17 -0
- package/dist/{sleep-DZAjGv1f.js → sleep-CMRLJj2e.js} +1 -1
- package/dist/{sleep-oYerbR6F.mjs → sleep-zMxKWD0M.mjs} +1 -1
- package/dist/utils/pool-memory-watchdog.d.ts +178 -0
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_event_category = require("./event-category-
|
|
3
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_event_category = require("./event-category-CRPORAAz.js");
|
|
3
|
+
const require_sleep = require("./sleep-CMRLJj2e.js");
|
|
4
4
|
const require_err_msg = require("./err-msg-COpsHMw2.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
|
6
6
|
/**
|
package/dist/addon.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as EventCategory } from "./event-category-
|
|
2
|
-
import { A as expandCapMethods, B as ReadinessTimeoutError, I as nodePin, L as readNodePin, T as adminUiCapability, U as scopeKey, _t as BaseAddon, a as asJsonObject, b as viewerUiCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, gt as DisposerChain, ht as DATAPLANE_SECRET_HEADER, m as createDeviceProxy, p as isDeviceScopedCap, s as asString, t as sleep, u as parseJsonUnknown, vt as normalizeAddonInitResult, w as DeviceType, xt as emitReadiness, y as deviceOpsCapability, z as ReadinessRegistry } from "./sleep-
|
|
1
|
+
import { t as EventCategory } from "./event-category-XfKNtfCc.mjs";
|
|
2
|
+
import { A as expandCapMethods, B as ReadinessTimeoutError, I as nodePin, L as readNodePin, T as adminUiCapability, U as scopeKey, _t as BaseAddon, a as asJsonObject, b as viewerUiCapability, d as BOOT_RECOVERY_BACKOFF_MS, f as DEVICE_SCOPED_CAPS, gt as DisposerChain, ht as DATAPLANE_SECRET_HEADER, m as createDeviceProxy, p as isDeviceScopedCap, s as asString, t as sleep, u as parseJsonUnknown, vt as normalizeAddonInitResult, w as DeviceType, xt as emitReadiness, y as deviceOpsCapability, z as ReadinessRegistry } from "./sleep-zMxKWD0M.mjs";
|
|
3
3
|
import { t as errMsg } from "./err-msg-IQTHeDzc.mjs";
|
|
4
4
|
//#region src/generated/cap-input-defaults.ts
|
|
5
5
|
/**
|
|
@@ -76,6 +76,7 @@ export declare const NcSystemEventKindSchema: z.ZodEnum<{
|
|
|
76
76
|
"node-offline": "node-offline";
|
|
77
77
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
78
78
|
"detection-blind": "detection-blind";
|
|
79
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
79
80
|
"addon-update-available": "addon-update-available";
|
|
80
81
|
"server-update-available": "server-update-available";
|
|
81
82
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -128,6 +129,7 @@ export declare const NcSystemEventConditionSchema: z.ZodObject<{
|
|
|
128
129
|
"node-offline": "node-offline";
|
|
129
130
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
130
131
|
"detection-blind": "detection-blind";
|
|
132
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
131
133
|
"addon-update-available": "addon-update-available";
|
|
132
134
|
"server-update-available": "server-update-available";
|
|
133
135
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -596,6 +598,7 @@ export declare const NcConditionsSchema: z.ZodObject<{
|
|
|
596
598
|
"node-offline": "node-offline";
|
|
597
599
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
598
600
|
"detection-blind": "detection-blind";
|
|
601
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
599
602
|
"addon-update-available": "addon-update-available";
|
|
600
603
|
"server-update-available": "server-update-available";
|
|
601
604
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -877,6 +880,7 @@ export declare const NcRuleInputSchema: z.ZodObject<{
|
|
|
877
880
|
"node-offline": "node-offline";
|
|
878
881
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
879
882
|
"detection-blind": "detection-blind";
|
|
883
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
880
884
|
"addon-update-available": "addon-update-available";
|
|
881
885
|
"server-update-available": "server-update-available";
|
|
882
886
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -1222,6 +1226,7 @@ export declare const NcRulePatchSchema: z.ZodObject<{
|
|
|
1222
1226
|
"node-offline": "node-offline";
|
|
1223
1227
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
1224
1228
|
"detection-blind": "detection-blind";
|
|
1229
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
1225
1230
|
"addon-update-available": "addon-update-available";
|
|
1226
1231
|
"server-update-available": "server-update-available";
|
|
1227
1232
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -1384,6 +1389,7 @@ export declare const NcRuleSchema: z.ZodObject<{
|
|
|
1384
1389
|
"node-offline": "node-offline";
|
|
1385
1390
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
1386
1391
|
"detection-blind": "detection-blind";
|
|
1392
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
1387
1393
|
"addon-update-available": "addon-update-available";
|
|
1388
1394
|
"server-update-available": "server-update-available";
|
|
1389
1395
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -1688,6 +1694,7 @@ export declare const NcHistorySubjectSchema: z.ZodObject<{
|
|
|
1688
1694
|
"node-offline": "node-offline";
|
|
1689
1695
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
1690
1696
|
"detection-blind": "detection-blind";
|
|
1697
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
1691
1698
|
"addon-update-available": "addon-update-available";
|
|
1692
1699
|
"server-update-available": "server-update-available";
|
|
1693
1700
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -1770,6 +1777,7 @@ export declare const NcHistoryEntrySchema: z.ZodObject<{
|
|
|
1770
1777
|
"node-offline": "node-offline";
|
|
1771
1778
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
1772
1779
|
"detection-blind": "detection-blind";
|
|
1780
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
1773
1781
|
"addon-update-available": "addon-update-available";
|
|
1774
1782
|
"server-update-available": "server-update-available";
|
|
1775
1783
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -2068,6 +2076,7 @@ export declare const notificationRulesCapability: {
|
|
|
2068
2076
|
"node-offline": "node-offline";
|
|
2069
2077
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
2070
2078
|
"detection-blind": "detection-blind";
|
|
2079
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
2071
2080
|
"addon-update-available": "addon-update-available";
|
|
2072
2081
|
"server-update-available": "server-update-available";
|
|
2073
2082
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -2324,6 +2333,7 @@ export declare const notificationRulesCapability: {
|
|
|
2324
2333
|
"node-offline": "node-offline";
|
|
2325
2334
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
2326
2335
|
"detection-blind": "detection-blind";
|
|
2336
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
2327
2337
|
"addon-update-available": "addon-update-available";
|
|
2328
2338
|
"server-update-available": "server-update-available";
|
|
2329
2339
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -2578,6 +2588,7 @@ export declare const notificationRulesCapability: {
|
|
|
2578
2588
|
"node-offline": "node-offline";
|
|
2579
2589
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
2580
2590
|
"detection-blind": "detection-blind";
|
|
2591
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
2581
2592
|
"addon-update-available": "addon-update-available";
|
|
2582
2593
|
"server-update-available": "server-update-available";
|
|
2583
2594
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -2826,6 +2837,7 @@ export declare const notificationRulesCapability: {
|
|
|
2826
2837
|
"node-offline": "node-offline";
|
|
2827
2838
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
2828
2839
|
"detection-blind": "detection-blind";
|
|
2840
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
2829
2841
|
"addon-update-available": "addon-update-available";
|
|
2830
2842
|
"server-update-available": "server-update-available";
|
|
2831
2843
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -3171,6 +3183,7 @@ export declare const notificationRulesCapability: {
|
|
|
3171
3183
|
"node-offline": "node-offline";
|
|
3172
3184
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
3173
3185
|
"detection-blind": "detection-blind";
|
|
3186
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
3174
3187
|
"addon-update-available": "addon-update-available";
|
|
3175
3188
|
"server-update-available": "server-update-available";
|
|
3176
3189
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -3332,6 +3345,7 @@ export declare const notificationRulesCapability: {
|
|
|
3332
3345
|
"node-offline": "node-offline";
|
|
3333
3346
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
3334
3347
|
"detection-blind": "detection-blind";
|
|
3348
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
3335
3349
|
"addon-update-available": "addon-update-available";
|
|
3336
3350
|
"server-update-available": "server-update-available";
|
|
3337
3351
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -3634,6 +3648,7 @@ export declare const notificationRulesCapability: {
|
|
|
3634
3648
|
"node-offline": "node-offline";
|
|
3635
3649
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
3636
3650
|
"detection-blind": "detection-blind";
|
|
3651
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
3637
3652
|
"addon-update-available": "addon-update-available";
|
|
3638
3653
|
"server-update-available": "server-update-available";
|
|
3639
3654
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -3983,6 +3998,7 @@ export declare const notificationRulesCapability: {
|
|
|
3983
3998
|
"node-offline": "node-offline";
|
|
3984
3999
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
3985
4000
|
"detection-blind": "detection-blind";
|
|
4001
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
3986
4002
|
"addon-update-available": "addon-update-available";
|
|
3987
4003
|
"server-update-available": "server-update-available";
|
|
3988
4004
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -155,6 +155,7 @@ export declare const OsdSlotBindingSchema: z.ZodObject<{
|
|
|
155
155
|
"node-offline": "node-offline";
|
|
156
156
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
157
157
|
"detection-blind": "detection-blind";
|
|
158
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
158
159
|
"addon-update-available": "addon-update-available";
|
|
159
160
|
"server-update-available": "server-update-available";
|
|
160
161
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -317,6 +318,7 @@ export declare const OsdSlotViewSchema: z.ZodObject<{
|
|
|
317
318
|
"node-offline": "node-offline";
|
|
318
319
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
319
320
|
"detection-blind": "detection-blind";
|
|
321
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
320
322
|
"addon-update-available": "addon-update-available";
|
|
321
323
|
"server-update-available": "server-update-available";
|
|
322
324
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -551,6 +553,7 @@ export declare const osdManagerCapability: {
|
|
|
551
553
|
"node-offline": "node-offline";
|
|
552
554
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
553
555
|
"detection-blind": "detection-blind";
|
|
556
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
554
557
|
"addon-update-available": "addon-update-available";
|
|
555
558
|
"server-update-available": "server-update-available";
|
|
556
559
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -802,6 +805,7 @@ export declare const osdManagerCapability: {
|
|
|
802
805
|
"node-offline": "node-offline";
|
|
803
806
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
804
807
|
"detection-blind": "detection-blind";
|
|
808
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
805
809
|
"addon-update-available": "addon-update-available";
|
|
806
810
|
"server-update-available": "server-update-available";
|
|
807
811
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -963,6 +967,7 @@ export declare const osdManagerCapability: {
|
|
|
963
967
|
"node-offline": "node-offline";
|
|
964
968
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
965
969
|
"detection-blind": "detection-blind";
|
|
970
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
966
971
|
"addon-update-available": "addon-update-available";
|
|
967
972
|
"server-update-available": "server-update-available";
|
|
968
973
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -1156,6 +1161,7 @@ export declare const osdManagerCapability: {
|
|
|
1156
1161
|
"node-offline": "node-offline";
|
|
1157
1162
|
"node-inference-unavailable": "node-inference-unavailable";
|
|
1158
1163
|
"detection-blind": "detection-blind";
|
|
1164
|
+
"addon-crash-loop": "addon-crash-loop";
|
|
1159
1165
|
"addon-update-available": "addon-update-available";
|
|
1160
1166
|
"server-update-available": "server-update-available";
|
|
1161
1167
|
"alarm-triggered": "alarm-triggered";
|
|
@@ -36,6 +36,22 @@ export declare enum EventCategory {
|
|
|
36
36
|
AddonInstalled = "addon.installed",
|
|
37
37
|
AddonUninstalled = "addon.uninstalled",
|
|
38
38
|
AddonCrashed = "addon.crashed",
|
|
39
|
+
/**
|
|
40
|
+
* A RUNNER the D6 crash circuit-breaker gave up on — terminal.
|
|
41
|
+
*
|
|
42
|
+
* `AddonCrashed` is the routine, self-healing fact ("it crashed; it is being
|
|
43
|
+
* respawned"); this is the one that never resolves itself. Emitted exactly
|
|
44
|
+
* once per trip, by `process-service.ts`, carrying the node, the runner, the
|
|
45
|
+
* addons it hosted and the crash count that tripped the breaker.
|
|
46
|
+
*
|
|
47
|
+
* It exists because a runner marked terminally `failed` used to be SILENT:
|
|
48
|
+
* on 2026-08-18 the `recorder` runner died of three unhandled ffmpeg spawn
|
|
49
|
+
* errors, the breaker stopped respawning it (correctly), `/health` kept
|
|
50
|
+
* returning 200, and fleet-wide recording was gone for 3h15 before the
|
|
51
|
+
* operator's phone told him. The Notification Center's system-event intake
|
|
52
|
+
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
53
|
+
*/
|
|
54
|
+
AddonRunnerFailed = "addon.runner-failed",
|
|
39
55
|
AddonError = "addon.error",
|
|
40
56
|
AddonPageReady = "addon.page-ready",
|
|
41
57
|
AddonWidgetReady = "addon.widget-ready",
|
package/dist/enums.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_event_category = require("./event-category-
|
|
2
|
+
const require_event_category = require("./event-category-CRPORAAz.js");
|
|
3
3
|
//#region src/enums/event-source-type.ts
|
|
4
4
|
var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
|
|
5
5
|
EventSourceType["Addon"] = "addon";
|
package/dist/enums.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as EventCategory } from "./event-category-
|
|
1
|
+
import { t as EventCategory } from "./event-category-XfKNtfCc.mjs";
|
|
2
2
|
//#region src/enums/event-source-type.ts
|
|
3
3
|
var EventSourceType = /* @__PURE__ */ function(EventSourceType) {
|
|
4
4
|
EventSourceType["Addon"] = "addon";
|
|
@@ -37,6 +37,22 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
37
37
|
EventCategory["AddonInstalled"] = "addon.installed";
|
|
38
38
|
EventCategory["AddonUninstalled"] = "addon.uninstalled";
|
|
39
39
|
EventCategory["AddonCrashed"] = "addon.crashed";
|
|
40
|
+
/**
|
|
41
|
+
* A RUNNER the D6 crash circuit-breaker gave up on — terminal.
|
|
42
|
+
*
|
|
43
|
+
* `AddonCrashed` is the routine, self-healing fact ("it crashed; it is being
|
|
44
|
+
* respawned"); this is the one that never resolves itself. Emitted exactly
|
|
45
|
+
* once per trip, by `process-service.ts`, carrying the node, the runner, the
|
|
46
|
+
* addons it hosted and the crash count that tripped the breaker.
|
|
47
|
+
*
|
|
48
|
+
* It exists because a runner marked terminally `failed` used to be SILENT:
|
|
49
|
+
* on 2026-08-18 the `recorder` runner died of three unhandled ffmpeg spawn
|
|
50
|
+
* errors, the breaker stopped respawning it (correctly), `/health` kept
|
|
51
|
+
* returning 200, and fleet-wide recording was gone for 3h15 before the
|
|
52
|
+
* operator's phone told him. The Notification Center's system-event intake
|
|
53
|
+
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
54
|
+
*/
|
|
55
|
+
EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
|
|
40
56
|
EventCategory["AddonError"] = "addon.error";
|
|
41
57
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
42
58
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
|
@@ -37,6 +37,22 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
37
37
|
EventCategory["AddonInstalled"] = "addon.installed";
|
|
38
38
|
EventCategory["AddonUninstalled"] = "addon.uninstalled";
|
|
39
39
|
EventCategory["AddonCrashed"] = "addon.crashed";
|
|
40
|
+
/**
|
|
41
|
+
* A RUNNER the D6 crash circuit-breaker gave up on — terminal.
|
|
42
|
+
*
|
|
43
|
+
* `AddonCrashed` is the routine, self-healing fact ("it crashed; it is being
|
|
44
|
+
* respawned"); this is the one that never resolves itself. Emitted exactly
|
|
45
|
+
* once per trip, by `process-service.ts`, carrying the node, the runner, the
|
|
46
|
+
* addons it hosted and the crash count that tripped the breaker.
|
|
47
|
+
*
|
|
48
|
+
* It exists because a runner marked terminally `failed` used to be SILENT:
|
|
49
|
+
* on 2026-08-18 the `recorder` runner died of three unhandled ffmpeg spawn
|
|
50
|
+
* errors, the breaker stopped respawning it (correctly), `/health` kept
|
|
51
|
+
* returning 200, and fleet-wide recording was gone for 3h15 before the
|
|
52
|
+
* operator's phone told him. The Notification Center's system-event intake
|
|
53
|
+
* consumes this category and maps it to the `addon-crash-loop` kind.
|
|
54
|
+
*/
|
|
55
|
+
EventCategory["AddonRunnerFailed"] = "addon.runner-failed";
|
|
40
56
|
EventCategory["AddonError"] = "addon.error";
|
|
41
57
|
EventCategory["AddonPageReady"] = "addon.page-ready";
|
|
42
58
|
EventCategory["AddonWidgetReady"] = "addon.widget-ready";
|
package/dist/index.d.ts
CHANGED
|
@@ -215,6 +215,7 @@ export { errMsg } from './utils/err-msg.js';
|
|
|
215
215
|
export { hfModelUrl } from './utils/hf-url.js';
|
|
216
216
|
export { asBoolean, asJsonArray, asJsonObject, asNumber, asString, parseJsonArray, parseJsonObject, parseJsonUnknown, } from './utils/json-safe.js';
|
|
217
217
|
export { maskUrlCredentials } from './utils/mask-url.js';
|
|
218
|
+
export { DEFAULT_POOL_MEMORY_POLICY, PoolMemoryWatchdog, commitWatchdogRestart, evaluatePoolMemory, initialPoolMemoryState, parseProcStatus, pickRestartCandidate, poolMemoryThreshold, resetPoolBaseline, resolvePoolMemoryPolicy, type PoolMemoryAction, type PoolMemoryPolicy, type PoolMemoryState, type PoolMemoryTelemetry, type PoolMemoryVerdict, type PoolMemoryWatchdogOptions, type ProcMemory, type RestartCandidate, } from './utils/pool-memory-watchdog.js';
|
|
218
219
|
export { cellsToRects, type NormRect, rectsToCells } from './utils/privacy-grid-raster.js';
|
|
219
220
|
export { RingBuffer } from './utils/ring-buffer.js';
|
|
220
221
|
export type { InferenceStepResult } from './utils/run-inference-step.js';
|