@camstack/addon-training 0.1.77 → 0.1.79
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/{MotionZonesSettings-DW358mxE.mjs → MotionZonesSettings-CHoUtlZU.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-8OQfCROj.mjs → PrivacyMaskSettings-DfxPrf-U.mjs} +2 -2
- package/dist/{SceneMonitorEditor-D8KPyVBc.mjs → SceneMonitorEditor-B32hWMGP.mjs} +1 -1
- package/dist/_stub.js +5551 -5310
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-pvaNdWyD.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-GwANcGcn.mjs} +3 -3
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-ff_0UQsH.mjs +26 -0
- package/dist/addon-training.css +1 -1
- package/dist/{dist-0l-u0kED.js → dist-DuaaneP-.js} +189 -90
- package/dist/{dist--WYP29ef.mjs → dist-we-Yi15l.mjs} +189 -90
- package/dist/{hostInit-C8nnpFIy.mjs → hostInit-OSodFHgq.mjs} +2 -2
- package/dist/index.js +1 -1
- package/dist/orchestrator/training.addon.js +1 -1
- package/dist/orchestrator/training.addon.mjs +1 -1
- package/dist/{player-overlays-DUX0-57y.mjs → player-overlays-CN0bZ_0v.mjs} +1 -1
- package/dist/providers/modal/training-modal.addon.js +1 -1
- package/dist/providers/modal/training-modal.addon.mjs +1 -1
- package/dist/remoteEntry.js +1 -1
- package/dist/{responsive-LBIGYpcj.mjs → responsive-wQi9hajb.mjs} +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-CMBXXfj3.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-CbTZ0yvt.mjs} +1 -1
- package/package.json +1 -1
- package/dist/_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-qjGlK6dB.mjs +0 -26
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "node:crypto";
|
|
2
|
-
//#region ../types/dist/event-category-
|
|
2
|
+
//#region ../types/dist/event-category-Ceif8n-v.mjs
|
|
3
3
|
var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
4
4
|
EventCategory["SystemBoot"] = "system.boot";
|
|
5
5
|
EventCategory["SystemAddonsReady"] = "system.addons-ready";
|
|
@@ -471,6 +471,10 @@ var EventCategory = /* @__PURE__ */ function(EventCategory) {
|
|
|
471
471
|
* on the device detail page.
|
|
472
472
|
*/
|
|
473
473
|
EventCategory["DoorbellOnPressed"] = "doorbell.onPressed";
|
|
474
|
+
/** Mirrors `runningStateCapability.events.onStarted`. */
|
|
475
|
+
EventCategory["RunningStarted"] = "running.started";
|
|
476
|
+
/** Mirrors `runningStateCapability.events.onFinished`. */
|
|
477
|
+
EventCategory["RunningFinished"] = "running.finished";
|
|
474
478
|
/**
|
|
475
479
|
* Cap event fired by every device that registers the `event-emitter`
|
|
476
480
|
* capability. Mirrors `eventEmitterCapability.events.onEvent`. Carries
|
|
@@ -5563,7 +5567,7 @@ var ZodIssueCode = {
|
|
|
5563
5567
|
var ZodFirstPartyTypeKind;
|
|
5564
5568
|
ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
|
|
5565
5569
|
//#endregion
|
|
5566
|
-
//#region ../types/dist/sleep-
|
|
5570
|
+
//#region ../types/dist/sleep-CYfIZzGv.mjs
|
|
5567
5571
|
/**
|
|
5568
5572
|
* The audio chunk plane's byte format, and the ONE expansion from a coded
|
|
5569
5573
|
* window to float samples (D455).
|
|
@@ -5902,7 +5906,7 @@ Object.fromEntries([
|
|
|
5902
5906
|
* `hydrateSchema` to skip the `value` injection for structural-only fields.
|
|
5903
5907
|
*/
|
|
5904
5908
|
function isValuelessField(field) {
|
|
5905
|
-
return field.type === "separator" || field.type === "info" || field.type === "qr-code" || field.type === "button" || field.type === "object-array" || field.type === "widget" || field.type === "addon-action-button" || field.type === "device-action-button";
|
|
5909
|
+
return field.type === "separator" || field.type === "info" || field.type === "qr-code" || field.type === "button" || field.type === "object-array" || field.type === "widget" || field.type === "addon-action-button" || field.type === "device-action-button" || field.type === "account-sign-in" || field.type === "secret-presence";
|
|
5906
5910
|
}
|
|
5907
5911
|
function hydrateSchema(schema, values, options = {}) {
|
|
5908
5912
|
return {
|
|
@@ -9111,7 +9115,7 @@ var DeviceRole = /* @__PURE__ */ function(DeviceRole) {
|
|
|
9111
9115
|
return DeviceRole;
|
|
9112
9116
|
}({});
|
|
9113
9117
|
//#endregion
|
|
9114
|
-
//#region ../types/dist/composition-
|
|
9118
|
+
//#region ../types/dist/composition-BJ8iAZb3.mjs
|
|
9115
9119
|
/**
|
|
9116
9120
|
* The ffmpeg build every CamStack node downloads, per platform and arch.
|
|
9117
9121
|
*
|
|
@@ -9171,7 +9175,7 @@ portable("linux64"), portable("linuxarm64"), portable("macarm64"), portable("mac
|
|
|
9171
9175
|
* ONE table for everyone who asks "is this device HIGH?": the
|
|
9172
9176
|
* recorder's `RecordingTriggers.sensorDeviceIds` trigger, the post-analysis
|
|
9173
9177
|
* sensor markers, the orchestrator's camera-sensors bridge and
|
|
9174
|
-
* the sources of a
|
|
9178
|
+
* the sources of a pulse (`compilePulseOverride`, D936).
|
|
9175
9179
|
* A second copy would diverge at the first cap added, and the symptom — "the
|
|
9176
9180
|
* sensor rings the doorbell but does not record" — is exactly D62.
|
|
9177
9181
|
*
|
|
@@ -9412,6 +9416,20 @@ var table = {
|
|
|
9412
9416
|
apply: () => {
|
|
9413
9417
|
throw new ExpressionEvalError("count: stateful evaluation context is required");
|
|
9414
9418
|
}
|
|
9419
|
+
},
|
|
9420
|
+
dwell: {
|
|
9421
|
+
minArgs: 3,
|
|
9422
|
+
maxArgs: 3,
|
|
9423
|
+
apply: () => {
|
|
9424
|
+
throw new ExpressionEvalError("dwell: stateful evaluation context is required");
|
|
9425
|
+
}
|
|
9426
|
+
},
|
|
9427
|
+
latchedAt: {
|
|
9428
|
+
minArgs: 1,
|
|
9429
|
+
maxArgs: 1,
|
|
9430
|
+
apply: () => {
|
|
9431
|
+
throw new ExpressionEvalError("latchedAt: stateful evaluation context is required");
|
|
9432
|
+
}
|
|
9415
9433
|
}
|
|
9416
9434
|
};
|
|
9417
9435
|
Object.freeze(Object.assign(Object.create(null), table));
|
|
@@ -16290,7 +16308,15 @@ Object.freeze({
|
|
|
16290
16308
|
kind: "fixed",
|
|
16291
16309
|
result: ["number", "null"]
|
|
16292
16310
|
},
|
|
16293
|
-
count: NUMBER
|
|
16311
|
+
count: NUMBER,
|
|
16312
|
+
dwell: {
|
|
16313
|
+
kind: "fixed",
|
|
16314
|
+
result: ["boolean", "null"]
|
|
16315
|
+
},
|
|
16316
|
+
latchedAt: {
|
|
16317
|
+
kind: "fixed",
|
|
16318
|
+
result: ["number", "null"]
|
|
16319
|
+
}
|
|
16294
16320
|
});
|
|
16295
16321
|
`${COMPOSED_DEVICE_STABLE_ID_PREFIX}`;
|
|
16296
16322
|
/**
|
|
@@ -42484,9 +42510,6 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42484
42510
|
"device-battery-normal",
|
|
42485
42511
|
"device-consumable-low",
|
|
42486
42512
|
"device-consumable-normal",
|
|
42487
|
-
"device-tank-low",
|
|
42488
|
-
"device-tank-full",
|
|
42489
|
-
"device-tank-normal",
|
|
42490
42513
|
"stream-online",
|
|
42491
42514
|
"stream-offline",
|
|
42492
42515
|
"node-online",
|
|
@@ -42533,13 +42556,14 @@ var NcSystemEventKindSchema = _enum([
|
|
|
42533
42556
|
"camera-enabled"
|
|
42534
42557
|
]);
|
|
42535
42558
|
/** The legacy tail of {@link NcSystemEventKindSchema} — see its docblock. */
|
|
42536
|
-
var NC_LEGACY_SYSTEM_EVENT_KINDS =
|
|
42559
|
+
var NC_LEGACY_SYSTEM_EVENT_KINDS = [
|
|
42537
42560
|
"camera-online",
|
|
42538
42561
|
"camera-offline",
|
|
42539
42562
|
"camera-disabled",
|
|
42540
42563
|
"camera-enabled"
|
|
42541
|
-
]
|
|
42542
|
-
|
|
42564
|
+
];
|
|
42565
|
+
var NC_LEGACY_SYSTEM_EVENT_KIND_SET = new Set(NC_LEGACY_SYSTEM_EVENT_KINDS);
|
|
42566
|
+
NcSystemEventKindSchema.options.filter((kind) => !NC_LEGACY_SYSTEM_EVENT_KIND_SET.has(kind));
|
|
42543
42567
|
/**
|
|
42544
42568
|
* The panel's transitions, as ONE list.
|
|
42545
42569
|
*
|
|
@@ -43658,18 +43682,11 @@ var NcRuleSchema = NcRuleInputSchema.extend({
|
|
|
43658
43682
|
*/
|
|
43659
43683
|
disabledTargetIds: array(string()).default([])
|
|
43660
43684
|
});
|
|
43661
|
-
/**
|
|
43662
|
-
* The state-summary SECTIONS (D647 / D698 / D708): the D637 kind groups that
|
|
43663
|
-
* report a still-true state. `addons` is the crash-looped addons only and
|
|
43664
|
-
* `addon-updates` the addons that are behind (D708 split them). `backups-exports` and `alarm` are not sections — a completed
|
|
43665
|
-
* job is not an open state, and the alarm stays instant.
|
|
43666
|
-
*/
|
|
43667
43685
|
var NcStateSummarySectionIdSchema = _enum([
|
|
43668
43686
|
"device-state",
|
|
43669
43687
|
"streams",
|
|
43670
43688
|
"battery",
|
|
43671
43689
|
"consumables",
|
|
43672
|
-
"tanks",
|
|
43673
43690
|
"detection-blind",
|
|
43674
43691
|
"nodes",
|
|
43675
43692
|
"addons",
|
|
@@ -54033,7 +54050,8 @@ var BatteryStatusSchema = object({
|
|
|
54033
54050
|
*/
|
|
54034
54051
|
binary: boolean().optional()
|
|
54035
54052
|
});
|
|
54036
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat
|
|
54053
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat;
|
|
54054
|
+
method(object({
|
|
54037
54055
|
deviceId: number(),
|
|
54038
54056
|
/** Bound on the wait. Sensible range 3000–10000ms. */
|
|
54039
54057
|
timeoutMs: number().int().min(500).max(3e4).default(8e3)
|
|
@@ -54742,6 +54760,7 @@ var ConsumablesStatusSchema = object({
|
|
|
54742
54760
|
})),
|
|
54743
54761
|
lastChangedAt: number()
|
|
54744
54762
|
});
|
|
54763
|
+
Object.values(DeviceType), [...ConsumableRemainingUnitSchema.options], [...ConsumableStatusSchema.options], [...ConsumableKindSchema.options], [...ConsumableFormSchema.options];
|
|
54745
54764
|
Object.values(DeviceType), method(object({
|
|
54746
54765
|
deviceId: number().int().nonnegative(),
|
|
54747
54766
|
key: string().min(1)
|
|
@@ -55213,6 +55232,7 @@ DeviceType.Dishwasher, method(object({
|
|
|
55213
55232
|
kind: "mutation",
|
|
55214
55233
|
auth: "protected"
|
|
55215
55234
|
}), method(object({ deviceId: DeviceIdSchema }), DishwasherOptionsSchema, { auth: "protected" });
|
|
55235
|
+
DeviceType.Camera;
|
|
55216
55236
|
object({
|
|
55217
55237
|
/** Ms epoch of the last press. null = never observed since this provider started. */
|
|
55218
55238
|
lastPressedAt: number().nullable(),
|
|
@@ -57005,6 +57025,7 @@ authKey: string().optional() }), object({
|
|
|
57005
57025
|
/** Human-readable error when `ok: false`. */
|
|
57006
57026
|
error: string().optional()
|
|
57007
57027
|
}), { kind: "mutation" });
|
|
57028
|
+
DeviceType.Camera;
|
|
57008
57029
|
object({
|
|
57009
57030
|
detected: boolean(),
|
|
57010
57031
|
/** Ms epoch of the last detected-true observation. Null if never detected. */
|
|
@@ -59068,6 +59089,24 @@ DeviceType.Camera, method(object({ deviceId: number() }), PtzAutotrackStatusSche
|
|
|
59068
59089
|
deviceId: number(),
|
|
59069
59090
|
status: PtzAutotrackStatusSchema
|
|
59070
59091
|
});
|
|
59092
|
+
var RunningStateSourceSchema = _enum(["native", "assigned"]);
|
|
59093
|
+
object({
|
|
59094
|
+
/** null = unknown — never coerced to false (D393). */
|
|
59095
|
+
running: boolean().nullable(),
|
|
59096
|
+
/** Epoch ms the current boolean began; null while `running` is null. */
|
|
59097
|
+
since: number().nullable(),
|
|
59098
|
+
source: RunningStateSourceSchema,
|
|
59099
|
+
phase: string().nullable(),
|
|
59100
|
+
/** null until a reading has been published (D393). */
|
|
59101
|
+
lastFetchedAt: number().nullable()
|
|
59102
|
+
});
|
|
59103
|
+
object({
|
|
59104
|
+
deviceId: number(),
|
|
59105
|
+
since: number().nullable(),
|
|
59106
|
+
phase: string().nullable()
|
|
59107
|
+
});
|
|
59108
|
+
Object.values(DeviceType);
|
|
59109
|
+
DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
|
|
59071
59110
|
DeviceType.Camera, DeviceType.Sensor, DeviceType.Switch, method(object({ deviceId: number().int().nonnegative() }), object({ success: literal(true) }), {
|
|
59072
59111
|
kind: "mutation",
|
|
59073
59112
|
auth: "admin"
|
|
@@ -70464,6 +70503,13 @@ Object.freeze({
|
|
|
70464
70503
|
access: "create",
|
|
70465
70504
|
role: "admin"
|
|
70466
70505
|
},
|
|
70506
|
+
"runningState.getStatus": {
|
|
70507
|
+
capName: "running-state",
|
|
70508
|
+
capScope: "device",
|
|
70509
|
+
addonId: null,
|
|
70510
|
+
access: "view",
|
|
70511
|
+
role: "viewer"
|
|
70512
|
+
},
|
|
70467
70513
|
"sceneMonitor.captureReference": {
|
|
70468
70514
|
capName: "scene-monitor",
|
|
70469
70515
|
capScope: "device",
|
|
@@ -75178,6 +75224,32 @@ var APPLIANCE_CAP_VOCABULARY = {
|
|
|
75178
75224
|
}],
|
|
75179
75225
|
events: { onSent: { notOperatorFacing: "a delivery receipt of a send this system made — not a fact about the world" } }
|
|
75180
75226
|
},
|
|
75227
|
+
"running-state": {
|
|
75228
|
+
scope: "device",
|
|
75229
|
+
noun: t("Running", "In funzione"),
|
|
75230
|
+
state: [{
|
|
75231
|
+
kind: "boolean",
|
|
75232
|
+
field: "running",
|
|
75233
|
+
label: t("Running", "In funzione"),
|
|
75234
|
+
whenTrue: t("When {device} starts", "Quando {device} inizia"),
|
|
75235
|
+
whenFalse: t("When {device} finishes", "Quando {device} finisce"),
|
|
75236
|
+
icon: "play"
|
|
75237
|
+
}],
|
|
75238
|
+
events: {
|
|
75239
|
+
onStarted: {
|
|
75240
|
+
category: EventCategory.RunningStarted,
|
|
75241
|
+
label: t("Started running", "Ha iniziato a funzionare"),
|
|
75242
|
+
phrase: t("When {device} starts running", "Quando {device} inizia a funzionare"),
|
|
75243
|
+
icon: "play"
|
|
75244
|
+
},
|
|
75245
|
+
onFinished: {
|
|
75246
|
+
category: EventCategory.RunningFinished,
|
|
75247
|
+
label: t("Finished", "Ha finito"),
|
|
75248
|
+
phrase: t("When {device} finishes", "Quando {device} finisce"),
|
|
75249
|
+
icon: "square"
|
|
75250
|
+
}
|
|
75251
|
+
}
|
|
75252
|
+
},
|
|
75181
75253
|
update: {
|
|
75182
75254
|
scope: "device",
|
|
75183
75255
|
noun: t("Firmware update", "Aggiornamento firmware"),
|
|
@@ -78718,6 +78790,11 @@ Object.freeze({
|
|
|
78718
78790
|
form: "single",
|
|
78719
78791
|
optional: true
|
|
78720
78792
|
}],
|
|
78793
|
+
"runningState.getStatus": [{
|
|
78794
|
+
name: "deviceId",
|
|
78795
|
+
form: "single",
|
|
78796
|
+
optional: false
|
|
78797
|
+
}],
|
|
78721
78798
|
"sceneMonitor.captureReference": [{
|
|
78722
78799
|
name: "deviceId",
|
|
78723
78800
|
form: "single",
|
|
@@ -79216,6 +79293,96 @@ Object.freeze({
|
|
|
79216
79293
|
"smtp-provider": "email"
|
|
79217
79294
|
});
|
|
79218
79295
|
DeviceType.Camera;
|
|
79296
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Thermostat, DeviceType.Climate, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.Dishwasher, DeviceType.Camera, DeviceType.Camera, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
|
|
79297
|
+
/**
|
|
79298
|
+
* A saved Customize assignment (D936). The schema is the type: callers use
|
|
79299
|
+
* `z.infer`, they do not restate the shape.
|
|
79300
|
+
*/
|
|
79301
|
+
var OverrideSourceSchema = object({
|
|
79302
|
+
addonId: string().min(1),
|
|
79303
|
+
stableId: string().min(1),
|
|
79304
|
+
cap: string().min(1),
|
|
79305
|
+
fieldPath: string().min(1)
|
|
79306
|
+
});
|
|
79307
|
+
var CustomizeTransformDraftSchema = discriminatedUnion("kind", [
|
|
79308
|
+
object({ kind: literal("identity") }),
|
|
79309
|
+
object({ kind: literal("invert") }),
|
|
79310
|
+
object({
|
|
79311
|
+
kind: literal("threshold"),
|
|
79312
|
+
comparison: _enum(["gte", "lte"]),
|
|
79313
|
+
threshold: number(),
|
|
79314
|
+
startDwellMs: number().nonnegative(),
|
|
79315
|
+
stopDwellMs: number().nonnegative()
|
|
79316
|
+
}),
|
|
79317
|
+
object({
|
|
79318
|
+
kind: literal("linear"),
|
|
79319
|
+
scale: number(),
|
|
79320
|
+
offset: number(),
|
|
79321
|
+
clampMin: number().optional(),
|
|
79322
|
+
clampMax: number().optional()
|
|
79323
|
+
}),
|
|
79324
|
+
object({
|
|
79325
|
+
kind: literal("enum-map"),
|
|
79326
|
+
mapping: record(string(), string().nullable())
|
|
79327
|
+
}),
|
|
79328
|
+
object({ kind: literal("number") })
|
|
79329
|
+
]);
|
|
79330
|
+
var ScalarOverrideDraftSchema = object({
|
|
79331
|
+
kind: literal("scalar"),
|
|
79332
|
+
cap: string().min(1),
|
|
79333
|
+
targetId: string().min(1),
|
|
79334
|
+
source: OverrideSourceSchema,
|
|
79335
|
+
transform: CustomizeTransformDraftSchema
|
|
79336
|
+
});
|
|
79337
|
+
var KeyedArrayOverrideDraftSchema = object({
|
|
79338
|
+
kind: literal("keyedArray"),
|
|
79339
|
+
cap: string().min(1),
|
|
79340
|
+
targetId: string().min(1),
|
|
79341
|
+
key: string().min(1),
|
|
79342
|
+
label: string().min(1),
|
|
79343
|
+
fieldPath: string().min(1),
|
|
79344
|
+
source: OverrideSourceSchema,
|
|
79345
|
+
transform: CustomizeTransformDraftSchema
|
|
79346
|
+
});
|
|
79347
|
+
var PulseOverrideDraftSchema = object({
|
|
79348
|
+
kind: literal("pulse"),
|
|
79349
|
+
cap: string().min(1),
|
|
79350
|
+
targetId: string().min(1),
|
|
79351
|
+
enabled: boolean(),
|
|
79352
|
+
debounceMs: number().nonnegative(),
|
|
79353
|
+
sources: array(OverrideSourceSchema).min(1)
|
|
79354
|
+
});
|
|
79355
|
+
var SpanSourceDraftSchema = OverrideSourceSchema.extend({ mode: _enum([
|
|
79356
|
+
"in-addition",
|
|
79357
|
+
"confirm",
|
|
79358
|
+
"replace"
|
|
79359
|
+
]).optional() });
|
|
79360
|
+
discriminatedUnion("kind", [
|
|
79361
|
+
ScalarOverrideDraftSchema,
|
|
79362
|
+
KeyedArrayOverrideDraftSchema,
|
|
79363
|
+
PulseOverrideDraftSchema,
|
|
79364
|
+
object({
|
|
79365
|
+
kind: literal("span"),
|
|
79366
|
+
cap: string().min(1),
|
|
79367
|
+
targetId: string().min(1),
|
|
79368
|
+
timeoutMs: number().nonnegative(),
|
|
79369
|
+
cooldownMs: number().nonnegative().optional(),
|
|
79370
|
+
sources: array(SpanSourceDraftSchema)
|
|
79371
|
+
})
|
|
79372
|
+
]);
|
|
79373
|
+
object({
|
|
79374
|
+
targetId: string().min(1),
|
|
79375
|
+
configured: boolean(),
|
|
79376
|
+
source: _enum(["native", "assigned"]),
|
|
79377
|
+
state: _enum([
|
|
79378
|
+
"active",
|
|
79379
|
+
"stale",
|
|
79380
|
+
"released",
|
|
79381
|
+
"unavailable"
|
|
79382
|
+
]),
|
|
79383
|
+
reason: string().nullable()
|
|
79384
|
+
});
|
|
79385
|
+
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
79219
79386
|
var G711_SCALE_CORRECTION_DB = {
|
|
79220
79387
|
PCMU: 20 * Math.log10(4),
|
|
79221
79388
|
PCMA: 20 * Math.log10(8)
|
|
@@ -79268,40 +79435,7 @@ var NC_AUDIO_DEFAULTS = {
|
|
|
79268
79435
|
samplingSeconds: 10
|
|
79269
79436
|
};
|
|
79270
79437
|
new Set(["devices", "classes"]);
|
|
79271
|
-
|
|
79272
|
-
* WHICH narrowing filter speaks about WHICH system-event kind — one predicate,
|
|
79273
|
-
* consumed by the rule ENGINE and by every rule EDITOR.
|
|
79274
|
-
*
|
|
79275
|
-
* ── The failure this file exists for ───────────────────────────────────────
|
|
79276
|
-
* `NcSystemEventConditionSchema` carries four optional narrowing lists
|
|
79277
|
-
* (`deviceIds`, `deviceTypes`, `nodeIds`, `packageNames`) beside a required
|
|
79278
|
-
* `kinds` gate. They are not four filters over one vocabulary: each belongs to
|
|
79279
|
-
* a FAMILY of kinds and is meaningless outside it. A node going away has no
|
|
79280
|
-
* device type; a completed export has no package; `stream-offline` deliberately
|
|
79281
|
-
* carries no device type at all (a stream belongs to a camera by construction).
|
|
79282
|
-
*
|
|
79283
|
-
* The engine applied all four to every kind, so a filter from one family failed
|
|
79284
|
-
* a kind from another family CLOSED. The operator's live rule "Eventi di
|
|
79285
|
-
* sistema" selected eleven kinds and set `deviceTypes: ['camera']` — the only
|
|
79286
|
-
* way to say "only my cameras" about the two liveness kinds — and NINE of the
|
|
79287
|
-
* eleven silently stopped being deliverable. Four days of history contained
|
|
79288
|
-
* `device-online` and `device-offline` and nothing else, across a window in
|
|
79289
|
-
* which agents were restarted and addons were updated.
|
|
79290
|
-
*
|
|
79291
|
-
* Both editors already computed this scoping, to decide which filter boxes to
|
|
79292
|
-
* render; the cap's own docblock already promised it ("Narrow a `device-*` kind
|
|
79293
|
-
* to these device TYPES"). Only the engine disagreed, and it disagreed in the
|
|
79294
|
-
* destructive direction. So the rule is stated ONCE, here, and the engine and
|
|
79295
|
-
* the editors are readers of it rather than three independent authors.
|
|
79296
|
-
*
|
|
79297
|
-
* ── The direction ─────────────────────────────────────────────────────────
|
|
79298
|
-
* Out of family ⇒ the filter is IGNORED, never fail-closed. An editor that
|
|
79299
|
-
* hides a box has already told the operator this filter does not speak about
|
|
79300
|
-
* these kinds, so honouring it as an exclusion contradicts the only
|
|
79301
|
-
* explanation the operator was ever given. Inside its family the filter still
|
|
79302
|
-
* narrows, and still fails CLOSED on a subject that cannot produce the identity
|
|
79303
|
-
* it tests (a device the mirror cannot name is not evidence of a camera).
|
|
79304
|
-
*/
|
|
79438
|
+
new Set(NC_LEGACY_SYSTEM_EVENT_KINDS);
|
|
79305
79439
|
/**
|
|
79306
79440
|
* Every filter, for the callers that must cover all of them (guards, tests).
|
|
79307
79441
|
*
|
|
@@ -79327,9 +79461,6 @@ new Map(Object.entries({
|
|
|
79327
79461
|
"device-battery-normal": "device-events",
|
|
79328
79462
|
"device-consumable-low": "device-events",
|
|
79329
79463
|
"device-consumable-normal": "device-events",
|
|
79330
|
-
"device-tank-low": "device-events",
|
|
79331
|
-
"device-tank-full": "device-events",
|
|
79332
|
-
"device-tank-normal": "device-events",
|
|
79333
79464
|
"stream-online": "device-events",
|
|
79334
79465
|
"stream-offline": "device-events",
|
|
79335
79466
|
"detection-blind": "device-events",
|
|
@@ -79406,16 +79537,6 @@ var NC_SYSTEM_EVENT_KIND_GROUP_SPECS = [
|
|
|
79406
79537
|
label: "Consumables",
|
|
79407
79538
|
kinds: ["device-consumable-low", "device-consumable-normal"]
|
|
79408
79539
|
},
|
|
79409
|
-
{
|
|
79410
|
-
id: "tanks",
|
|
79411
|
-
family: "device-events",
|
|
79412
|
-
label: "Tanks",
|
|
79413
|
-
kinds: [
|
|
79414
|
-
"device-tank-low",
|
|
79415
|
-
"device-tank-full",
|
|
79416
|
-
"device-tank-normal"
|
|
79417
|
-
]
|
|
79418
|
-
},
|
|
79419
79540
|
{
|
|
79420
79541
|
id: "detection-blind",
|
|
79421
79542
|
family: "device-events",
|
|
@@ -79573,11 +79694,6 @@ var RULE_BODY_ONLY = ["body"];
|
|
|
79573
79694
|
var RULE_TEXT = ["title", "body"];
|
|
79574
79695
|
var BATTERY = ["device-battery-low", "device-battery-normal"];
|
|
79575
79696
|
var CONSUMABLE = ["device-consumable-low", "device-consumable-normal"];
|
|
79576
|
-
var TANK = [
|
|
79577
|
-
"device-tank-low",
|
|
79578
|
-
"device-tank-full",
|
|
79579
|
-
"device-tank-normal"
|
|
79580
|
-
];
|
|
79581
79697
|
var ALERT_EPISODE = [
|
|
79582
79698
|
"alert-critical",
|
|
79583
79699
|
"alert-error",
|
|
@@ -79609,7 +79725,6 @@ var DEVICE_EVENTS = [
|
|
|
79609
79725
|
"device-enabled",
|
|
79610
79726
|
...BATTERY,
|
|
79611
79727
|
...CONSUMABLE,
|
|
79612
|
-
...TANK,
|
|
79613
79728
|
"stream-online",
|
|
79614
79729
|
"stream-offline",
|
|
79615
79730
|
"detection-blind",
|
|
@@ -79655,12 +79770,6 @@ var STATE_SUMMARY_SECTION_VARS = [
|
|
|
79655
79770
|
example: "Robot — filter 10 %",
|
|
79656
79771
|
kinds: CONSUMABLE
|
|
79657
79772
|
},
|
|
79658
|
-
{
|
|
79659
|
-
name: "summaryTanks",
|
|
79660
|
-
label: "Summary: tanks",
|
|
79661
|
-
example: "Robot — clean water low",
|
|
79662
|
-
kinds: TANK
|
|
79663
|
-
},
|
|
79664
79773
|
{
|
|
79665
79774
|
name: "summaryDetection",
|
|
79666
79775
|
label: "Summary: cameras detecting nothing",
|
|
@@ -79776,8 +79885,7 @@ var STATE_SUMMARY_VARS = [
|
|
|
79776
79885
|
([...RULE_TEXT], [...COMBINED_ALARM]),
|
|
79777
79886
|
([...RULE_TEXT], [...DEVICE_EVENTS]),
|
|
79778
79887
|
([...RULE_TEXT], [...BATTERY, ...CONSUMABLE]),
|
|
79779
|
-
([...RULE_TEXT], [...CONSUMABLE
|
|
79780
|
-
([...RULE_TEXT], [...TANK]),
|
|
79888
|
+
([...RULE_TEXT], [...CONSUMABLE]),
|
|
79781
79889
|
[...RULE_TEXT],
|
|
79782
79890
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
79783
79891
|
([...RULE_TEXT], [...UPDATES, ...ALERT_EPISODE]),
|
|
@@ -79881,15 +79989,6 @@ new Map([
|
|
|
79881
79989
|
snapshotLabel: "Consumables low now",
|
|
79882
79990
|
snapshotSection: "consumables"
|
|
79883
79991
|
},
|
|
79884
|
-
{
|
|
79885
|
-
id: "tanks",
|
|
79886
|
-
family: "device-events",
|
|
79887
|
-
label: "Tanks (low or full / back to normal)",
|
|
79888
|
-
bad: ["device-tank-low", "device-tank-full"],
|
|
79889
|
-
recovery: ["device-tank-normal"],
|
|
79890
|
-
snapshotLabel: "Tanks low or full now",
|
|
79891
|
-
snapshotSection: "tanks"
|
|
79892
|
-
},
|
|
79893
79992
|
{
|
|
79894
79993
|
id: "motion-noise",
|
|
79895
79994
|
family: "device-events",
|
|
@@ -36,7 +36,7 @@ async function r() {
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"@camstack/types": {
|
|
39
|
-
version: "1.2.
|
|
39
|
+
version: "1.2.407",
|
|
40
40
|
scope: "default",
|
|
41
41
|
shareConfig: {
|
|
42
42
|
singleton: !0,
|
|
@@ -81,7 +81,7 @@ async function r() {
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"@camstack/ui-library": {
|
|
84
|
-
version: "1.2.
|
|
84
|
+
version: "1.2.322",
|
|
85
85
|
scope: "default",
|
|
86
86
|
shareConfig: {
|
|
87
87
|
singleton: !0,
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
require("./dist-
|
|
2
|
+
require("./dist-DuaaneP-.js");
|
|
3
3
|
const require_orchestrator_training_addon = require("./orchestrator/training.addon.js");
|
|
4
4
|
const require_providers_modal_training_modal_addon = require("./providers/modal/training-modal.addon.js");
|
|
5
5
|
//#region src/providers/fake/fake-provider.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("../dist-
|
|
2
|
+
const require_dist = require("../dist-DuaaneP-.js");
|
|
3
3
|
let node_path = require("node:path");
|
|
4
4
|
node_path = require_dist.__toESM(node_path);
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as addonPagesSourceCapability, i as TrainingResultSchema, l as BaseAddon, m as defineRecordKinds, n as TrainingJobSchema, o as parseTrainingEventLine, r as TrainingJobSpecSchema, s as trainingCapability, t as TRAINING_JOB_SCHEMA, u as RECORD_MAX_DATA_BYTES } from "../dist
|
|
1
|
+
import { a as addonPagesSourceCapability, i as TrainingResultSchema, l as BaseAddon, m as defineRecordKinds, n as TrainingJobSchema, o as parseTrainingEventLine, r as TrainingJobSpecSchema, s as trainingCapability, t as TRAINING_JOB_SCHEMA, u as RECORD_MAX_DATA_BYTES } from "../dist-we-Yi15l.mjs";
|
|
2
2
|
import path from "node:path";
|
|
3
3
|
import { createHash } from "node:crypto";
|
|
4
4
|
import { createReadStream } from "node:fs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as e, u as t, w as n, y as r } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react__loadShare__.js-CEvdvp1T.mjs";
|
|
2
2
|
import { n as i, r as a, t as o } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DnrbBvrw.mjs";
|
|
3
3
|
import { n as s, t as c } from "./chevron-right-cA8Hucbi.mjs";
|
|
4
|
-
import { h as l } from "./responsive-
|
|
4
|
+
import { h as l } from "./responsive-wQi9hajb.mjs";
|
|
5
5
|
//#region ../ui-library/src/composites/widget-panel.tsx
|
|
6
6
|
n();
|
|
7
7
|
function u({ title: e, icon: t, headerRight: n, collapsible: l = !1, defaultOpen: u = !0, open: d, onOpenChange: f, bodyClassName: p = "p-3", children: m }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("../../dist-
|
|
2
|
+
const require_dist = require("../../dist-DuaaneP-.js");
|
|
3
3
|
let node_path = require("node:path");
|
|
4
4
|
node_path = require_dist.__toESM(node_path, 1);
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as record, S as object, _ as isSecretClear, b as boolean, c as trainingProviderCapability, d as SECRET_CLEAR, f as arrayItemFieldPath, g as globalSecretScope, h as entryBody, l as BaseAddon, p as defineEntryKind, v as isSecretMarker, w as string, x as number, y as toSecretFieldView } from "../../dist
|
|
1
|
+
import { C as record, S as object, _ as isSecretClear, b as boolean, c as trainingProviderCapability, d as SECRET_CLEAR, f as arrayItemFieldPath, g as globalSecretScope, h as entryBody, l as BaseAddon, p as defineEntryKind, v as isSecretMarker, w as string, x as number, y as toSecretFieldView } from "../../dist-we-Yi15l.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import path, { dirname, posix } from "node:path";
|
|
4
4
|
import { createHash, createPrivateKey, createPublicKey, createSign, randomBytes, randomUUID } from "node:crypto";
|
package/dist/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-
|
|
1
|
+
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-CbTZ0yvt.mjs";
|
|
2
2
|
export { t as get, e as init };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as e, d as t, g as n, l as r, n as i, u as a, w as o, y as s } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react__loadShare__.js-CEvdvp1T.mjs";
|
|
2
2
|
import "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DnrbBvrw.mjs";
|
|
3
|
-
import { C as c } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-
|
|
3
|
+
import { C as c } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-ff_0UQsH.mjs";
|
|
4
4
|
//#region ../ui-library/src/lib/shared-context.ts
|
|
5
5
|
o();
|
|
6
6
|
function l(e, t) {
|
|
@@ -2762,7 +2762,7 @@ async function or(e) {
|
|
|
2762
2762
|
}
|
|
2763
2763
|
}
|
|
2764
2764
|
async function sr() {
|
|
2765
|
-
return ir ||= or(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-
|
|
2765
|
+
return ir ||= or(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-GwANcGcn.mjs")).catch((e) => {
|
|
2766
2766
|
throw ir = void 0, e;
|
|
2767
2767
|
}), ir;
|
|
2768
2768
|
}
|
package/package.json
CHANGED