@camstack/addon-training 0.1.92 → 0.1.93
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-Cli21_S4.mjs → MotionZonesSettings-BDIz0ADl.mjs} +2 -2
- package/dist/{PrivacyMaskSettings-BqMnLgR4.mjs → PrivacyMaskSettings-Cz_1itEY.mjs} +2 -2
- package/dist/{SceneMonitorEditor-TOlMkkSx.mjs → SceneMonitorEditor-DxdQN6e5.mjs} +119 -120
- package/dist/_stub.js +5295 -5310
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-Ki3rRnXi.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_training_page-BZNWvnmy.mjs} +3 -3
- package/dist/{_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-COkV6wxS.mjs → _virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-B6wwfPOo.mjs} +1 -1
- package/dist/addon-training.css +1 -1
- package/dist/{dist-BLeIfxL-.mjs → dist-Bna6QSX9.mjs} +37 -6
- package/dist/{dist-BYGiAfO5.js → dist-Cv8pFcIo.js} +37 -6
- package/dist/{hostInit-SSLNnzqp.mjs → hostInit-BsH6KoQn.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-CpnLw8Tf.mjs → player-overlays-ClwLHxNP.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-wZ7jMF7F.mjs → responsive-Cx4quvGq.mjs} +1 -1
- package/dist/{scene-monitor-copy-Cqfs4Vng.mjs → scene-monitor-copy-DIJUg8Ro.mjs} +63 -46
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-CG3LeBz1.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_training_page__remoteEntry_js-C-gbqU_M.mjs} +1 -1
- package/package.json +1 -1
|
@@ -17403,7 +17403,22 @@ var BrokerProviderInfoSchema = object({
|
|
|
17403
17403
|
*/
|
|
17404
17404
|
interactiveConnectPath: string().min(1).optional(),
|
|
17405
17405
|
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
17406
|
-
interactiveDisconnectPath: string().min(1).optional()
|
|
17406
|
+
interactiveDisconnectPath: string().min(1).optional(),
|
|
17407
|
+
/**
|
|
17408
|
+
* The kind signs in through a server-held interactive session instead of
|
|
17409
|
+
* (or before) typed credentials. `basePath` is a hub-relative route set
|
|
17410
|
+
* served by the owning addon (`/addon/<id>/...`) speaking the sign-in
|
|
17411
|
+
* contract: `POST {basePath}/start` (body: the form's settings) answers
|
|
17412
|
+
* `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
|
|
17413
|
+
* `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
|
|
17414
|
+
* 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
|
|
17415
|
+
* (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
|
|
17416
|
+
* existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
|
|
17417
|
+
* (`{ sessionId }`) drops the session. The dialog that edits a broker
|
|
17418
|
+
* offers it as the default path; the fields the session fills are
|
|
17419
|
+
* marked `filledBySignIn` in the kind's settings schema.
|
|
17420
|
+
*/
|
|
17421
|
+
signIn: object({ basePath: string().min(1) }).optional()
|
|
17407
17422
|
}))
|
|
17408
17423
|
});
|
|
17409
17424
|
var ListInputSchema = object({
|
|
@@ -57150,7 +57165,7 @@ var BatteryStatusSchema = object({
|
|
|
57150
57165
|
*/
|
|
57151
57166
|
binary: boolean().optional().meta({ label: "Binary indicator" })
|
|
57152
57167
|
});
|
|
57153
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat;
|
|
57168
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter;
|
|
57154
57169
|
method(object({
|
|
57155
57170
|
deviceId: number(),
|
|
57156
57171
|
/** Bound on the wait. Sensible range 3000–10000ms. */
|
|
@@ -61752,9 +61767,9 @@ object({
|
|
|
61752
61767
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
61753
61768
|
kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
|
|
61754
61769
|
/** Voltage in volts. */
|
|
61755
|
-
volts: number().optional().meta(readingMeta("voltage")),
|
|
61770
|
+
volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
|
|
61756
61771
|
/** Current in amperes. */
|
|
61757
|
-
amps: number().optional().meta(readingMeta("current")),
|
|
61772
|
+
amps: number().optional().meta(readingMeta("current", { label: "Current" })),
|
|
61758
61773
|
/** Apparent power in volt-amperes. */
|
|
61759
61774
|
va: number().optional().meta(readingMeta("apparent-power")),
|
|
61760
61775
|
/** Power factor (0..1) if reported. */
|
|
@@ -61762,7 +61777,23 @@ object({
|
|
|
61762
61777
|
/** Ms epoch when the slice was last updated. */
|
|
61763
61778
|
lastFetchedAt: number()
|
|
61764
61779
|
});
|
|
61765
|
-
|
|
61780
|
+
[
|
|
61781
|
+
DeviceType.Sensor,
|
|
61782
|
+
DeviceType.Switch,
|
|
61783
|
+
DeviceType.Light,
|
|
61784
|
+
DeviceType.Fan,
|
|
61785
|
+
DeviceType.Climate,
|
|
61786
|
+
DeviceType.Thermostat,
|
|
61787
|
+
DeviceType.Humidifier,
|
|
61788
|
+
DeviceType.WaterHeater,
|
|
61789
|
+
DeviceType.MediaPlayer,
|
|
61790
|
+
DeviceType.Washer,
|
|
61791
|
+
DeviceType.Dryer,
|
|
61792
|
+
DeviceType.Dishwasher,
|
|
61793
|
+
DeviceType.Vacuum,
|
|
61794
|
+
DeviceType.LawnMower,
|
|
61795
|
+
DeviceType.PetFeeder
|
|
61796
|
+
].filter((type) => type !== DeviceType.Sensor);
|
|
61766
61797
|
/**
|
|
61767
61798
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
61768
61799
|
* on `DeviceType.Presence`. Read-only — no setters: presence is
|
|
@@ -66044,7 +66075,7 @@ var trainingCapability = {
|
|
|
66044
66075
|
};
|
|
66045
66076
|
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
66046
66077
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
66047
|
-
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.Washer, DeviceType.Dryer, DeviceType.Camera, DeviceType.Camera, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
|
|
66078
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, 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.Washer, DeviceType.Dryer, DeviceType.Camera, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
|
|
66048
66079
|
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
66049
66080
|
DeviceRole.BinarySensor, DeviceRole.MotionSensor;
|
|
66050
66081
|
new Set(CAP_NAMES);
|
|
@@ -17436,7 +17436,22 @@ var BrokerProviderInfoSchema = object({
|
|
|
17436
17436
|
*/
|
|
17437
17437
|
interactiveConnectPath: string().min(1).optional(),
|
|
17438
17438
|
/** Relative hub path to disconnect the linked account (same popup pattern). */
|
|
17439
|
-
interactiveDisconnectPath: string().min(1).optional()
|
|
17439
|
+
interactiveDisconnectPath: string().min(1).optional(),
|
|
17440
|
+
/**
|
|
17441
|
+
* The kind signs in through a server-held interactive session instead of
|
|
17442
|
+
* (or before) typed credentials. `basePath` is a hub-relative route set
|
|
17443
|
+
* served by the owning addon (`/addon/<id>/...`) speaking the sign-in
|
|
17444
|
+
* contract: `POST {basePath}/start` (body: the form's settings) answers
|
|
17445
|
+
* `{ sessionId, loginUrl }`; `GET {basePath}/status?sessionId=` answers
|
|
17446
|
+
* `{ phase: 'starting' | 'awaiting-login' | 'captured' | 'error' |
|
|
17447
|
+
* 'cancelled', loginUrl, error }`; `POST {basePath}/commit`
|
|
17448
|
+
* (`{ sessionId, name, brokerId? }`) stores the credentials on a new or
|
|
17449
|
+
* existing broker and answers `{ brokerId }`; `POST {basePath}/cancel`
|
|
17450
|
+
* (`{ sessionId }`) drops the session. The dialog that edits a broker
|
|
17451
|
+
* offers it as the default path; the fields the session fills are
|
|
17452
|
+
* marked `filledBySignIn` in the kind's settings schema.
|
|
17453
|
+
*/
|
|
17454
|
+
signIn: object({ basePath: string().min(1) }).optional()
|
|
17440
17455
|
}))
|
|
17441
17456
|
});
|
|
17442
17457
|
var ListInputSchema = object({
|
|
@@ -57183,7 +57198,7 @@ var BatteryStatusSchema = object({
|
|
|
57183
57198
|
*/
|
|
57184
57199
|
binary: boolean().optional().meta({ label: "Binary indicator" })
|
|
57185
57200
|
});
|
|
57186
|
-
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat;
|
|
57201
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter;
|
|
57187
57202
|
method(object({
|
|
57188
57203
|
deviceId: number(),
|
|
57189
57204
|
/** Bound on the wait. Sensible range 3000–10000ms. */
|
|
@@ -61785,9 +61800,9 @@ object({
|
|
|
61785
61800
|
/** Cumulative energy in kilowatt-hours since the meter was reset. */
|
|
61786
61801
|
kwhTotal: number().optional().meta(readingMeta("energy", { label: "Energy" })),
|
|
61787
61802
|
/** Voltage in volts. */
|
|
61788
|
-
volts: number().optional().meta(readingMeta("voltage")),
|
|
61803
|
+
volts: number().optional().meta(readingMeta("voltage", { label: "Voltage" })),
|
|
61789
61804
|
/** Current in amperes. */
|
|
61790
|
-
amps: number().optional().meta(readingMeta("current")),
|
|
61805
|
+
amps: number().optional().meta(readingMeta("current", { label: "Current" })),
|
|
61791
61806
|
/** Apparent power in volt-amperes. */
|
|
61792
61807
|
va: number().optional().meta(readingMeta("apparent-power")),
|
|
61793
61808
|
/** Power factor (0..1) if reported. */
|
|
@@ -61795,7 +61810,23 @@ object({
|
|
|
61795
61810
|
/** Ms epoch when the slice was last updated. */
|
|
61796
61811
|
lastFetchedAt: number()
|
|
61797
61812
|
});
|
|
61798
|
-
|
|
61813
|
+
[
|
|
61814
|
+
DeviceType.Sensor,
|
|
61815
|
+
DeviceType.Switch,
|
|
61816
|
+
DeviceType.Light,
|
|
61817
|
+
DeviceType.Fan,
|
|
61818
|
+
DeviceType.Climate,
|
|
61819
|
+
DeviceType.Thermostat,
|
|
61820
|
+
DeviceType.Humidifier,
|
|
61821
|
+
DeviceType.WaterHeater,
|
|
61822
|
+
DeviceType.MediaPlayer,
|
|
61823
|
+
DeviceType.Washer,
|
|
61824
|
+
DeviceType.Dryer,
|
|
61825
|
+
DeviceType.Dishwasher,
|
|
61826
|
+
DeviceType.Vacuum,
|
|
61827
|
+
DeviceType.LawnMower,
|
|
61828
|
+
DeviceType.PetFeeder
|
|
61829
|
+
].filter((type) => type !== DeviceType.Sensor);
|
|
61799
61830
|
/**
|
|
61800
61831
|
* Presence cap. Models HA `person.*` and `device_tracker.*` entities
|
|
61801
61832
|
* on `DeviceType.Presence`. Read-only — no setters: presence is
|
|
@@ -66077,7 +66108,7 @@ var trainingCapability = {
|
|
|
66077
66108
|
};
|
|
66078
66109
|
DeviceFeature.FanSpeed, DeviceFeature.FanPreset, DeviceFeature.FanDirection, DeviceFeature.FanOscillating, DeviceFeature.CoverPositionable, DeviceFeature.CoverTilt, DeviceFeature.ValvePositionable, DeviceFeature.MediaPlayerVolume, DeviceFeature.ClimateFanMode;
|
|
66079
66110
|
SOURCE_CAPS.filter((cap) => cap !== "switch" && cap !== "motion");
|
|
66080
|
-
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.Washer, DeviceType.Dryer, DeviceType.Camera, DeviceType.Camera, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
|
|
66111
|
+
DeviceType.Camera, DeviceType.Sensor, DeviceType.Button, DeviceType.Switch, DeviceType.PetFeeder, DeviceType.Container, DeviceType.Thermostat, DeviceType.EventEmitter, 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.Washer, DeviceType.Dryer, DeviceType.Camera, DeviceType.Camera, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Switch, DeviceType.Light, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.MediaPlayer, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.PetFeeder, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder;
|
|
66081
66112
|
String.raw`rose\(active(\d+), changed(\d+), (\d+(?:\.\d+)?)\)`;
|
|
66082
66113
|
DeviceRole.BinarySensor, DeviceRole.MotionSensor;
|
|
66083
66114
|
new Set(CAP_NAMES);
|
|
@@ -36,7 +36,7 @@ async function r() {
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"@camstack/types": {
|
|
39
|
-
version: "1.2.
|
|
39
|
+
version: "1.2.427",
|
|
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.336",
|
|
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-Cv8pFcIo.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-Cv8pFcIo.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-Bna6QSX9.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 { g as l } from "./responsive-
|
|
4
|
+
import { g as l } from "./responsive-Cx4quvGq.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-Cv8pFcIo.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-Bna6QSX9.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-C-gbqU_M.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 { O as c } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-
|
|
3
|
+
import { O as c } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare___mf_0_camstack_mf_1_types__loadShare__.js-B6wwfPOo.mjs";
|
|
4
4
|
//#region ../ui-library/src/lib/shared-context.ts
|
|
5
5
|
o();
|
|
6
6
|
function l(e, t) {
|
|
@@ -1,52 +1,69 @@
|
|
|
1
|
-
import { g as e, l as t,
|
|
2
|
-
import
|
|
1
|
+
import { g as e, l as t, u as n, w as r, y as i } from "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react__loadShare__.js-CEvdvp1T.mjs";
|
|
2
|
+
import "./_virtual_mf___mfe_internal__addon_training_page__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-DnrbBvrw.mjs";
|
|
3
|
+
import { n as a } from "./ui-text-CqJgUCKX.mjs";
|
|
4
|
+
import { g as o } from "./responsive-Cx4quvGq.mjs";
|
|
5
|
+
//#region ../ui-library/src/composites/confirm-dialog.tsx
|
|
6
|
+
r();
|
|
7
|
+
var s = o("camstack:confirm-dialog", null);
|
|
8
|
+
function c() {
|
|
9
|
+
let e = n(s);
|
|
10
|
+
if (!e) throw Error("useConfirm must be used within ConfirmDialogProvider");
|
|
11
|
+
return e;
|
|
12
|
+
}
|
|
13
|
+
function l() {
|
|
14
|
+
return c().confirm;
|
|
15
|
+
}
|
|
16
|
+
function u() {
|
|
17
|
+
return c().prompt;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
3
20
|
//#region ../ui-library/src/lib/hub-mount.ts
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function c(e) {
|
|
21
|
+
var d = "camstack-mount", f = /^\/(?:[A-Za-z0-9_\-.]+\/)*$/, p = null;
|
|
22
|
+
function m(e) {
|
|
7
23
|
if (e == null || e === "") return null;
|
|
8
24
|
let t = e.endsWith("/") ? e : `${e}/`;
|
|
9
|
-
return !
|
|
25
|
+
return !f.test(t) || t.includes("/../") || t.includes("/./") ? null : t;
|
|
10
26
|
}
|
|
11
|
-
function
|
|
27
|
+
function h() {
|
|
12
28
|
if (typeof document > "u") return "/";
|
|
13
|
-
let e =
|
|
29
|
+
let e = m(document.querySelector(`meta[name="${d}"]`)?.getAttribute("content"));
|
|
14
30
|
if (e !== null) return e;
|
|
15
31
|
if (document.querySelector("base[href]") !== null) try {
|
|
16
32
|
let e = new URL(document.baseURI);
|
|
17
33
|
if (e.origin === window.location.origin) {
|
|
18
|
-
let t =
|
|
34
|
+
let t = m(e.pathname);
|
|
19
35
|
if (t !== null) return t;
|
|
20
36
|
}
|
|
21
37
|
} catch {}
|
|
22
38
|
return "/";
|
|
23
39
|
}
|
|
24
|
-
function
|
|
25
|
-
return
|
|
40
|
+
function g() {
|
|
41
|
+
return p === null && (p = h()), p;
|
|
26
42
|
}
|
|
27
|
-
function
|
|
28
|
-
return
|
|
43
|
+
function _() {
|
|
44
|
+
return g().replace(/\/$/, "");
|
|
29
45
|
}
|
|
30
|
-
function
|
|
46
|
+
function v(e) {
|
|
31
47
|
return /^[a-z][a-z0-9+.-]*:/i.test(e) || e.startsWith("//");
|
|
32
48
|
}
|
|
33
|
-
function
|
|
34
|
-
if (
|
|
35
|
-
let t =
|
|
36
|
-
return t !== "/" && (e ===
|
|
49
|
+
function y(e) {
|
|
50
|
+
if (v(e)) return e;
|
|
51
|
+
let t = g(), n = e.replace(/^\/+/, "");
|
|
52
|
+
return t !== "/" && (e === _() || e.startsWith(t)) ? e : `${t}${n}`;
|
|
37
53
|
}
|
|
38
54
|
//#endregion
|
|
39
55
|
//#region ../ui-library/src/hooks/use-device-snapshot.ts
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
56
|
+
r();
|
|
57
|
+
var b = "/addon/snapshot/media";
|
|
58
|
+
function x(n, r = {}) {
|
|
59
|
+
let { width: a, baseUrl: o } = r, [s, c] = i(0);
|
|
43
60
|
return {
|
|
44
61
|
src: e(() => {
|
|
45
62
|
if (n === null || n <= 0) return null;
|
|
46
|
-
let e = o === void 0 ?
|
|
63
|
+
let e = o === void 0 ? _() : o.replace(/\/+$/, ""), t = new URLSearchParams();
|
|
47
64
|
a !== void 0 && Number.isInteger(a) && a > 0 && t.set("w", String(a)), s > 0 && (t.set("force", "1"), t.set("r", String(s)));
|
|
48
65
|
let r = t.toString();
|
|
49
|
-
return `${e}${
|
|
66
|
+
return `${e}${b}/${String(n)}.jpg${r.length > 0 ? `?${r}` : ""}`;
|
|
50
67
|
}, [
|
|
51
68
|
n,
|
|
52
69
|
a,
|
|
@@ -61,7 +78,7 @@ function h(n, i = {}) {
|
|
|
61
78
|
}
|
|
62
79
|
//#endregion
|
|
63
80
|
//#region ../ui-library/src/composites/cap-settings/scene-monitor-copy.ts
|
|
64
|
-
var
|
|
81
|
+
var S = ["day", "ir"], C = {
|
|
65
82
|
day: {
|
|
66
83
|
labelKey: "uiLibrary.sceneMonitor.variant.day",
|
|
67
84
|
labelFallback: "Daylight"
|
|
@@ -83,17 +100,17 @@ var g = ["day", "ir"], _ = {
|
|
|
83
100
|
labelFallback: "Dusk"
|
|
84
101
|
}
|
|
85
102
|
};
|
|
86
|
-
function
|
|
87
|
-
let n =
|
|
103
|
+
function w(e, t = a) {
|
|
104
|
+
let n = C[e];
|
|
88
105
|
return n === void 0 ? e : t(n.labelKey, n.labelFallback);
|
|
89
106
|
}
|
|
90
|
-
function
|
|
91
|
-
let n = new Set(e.coveredConditions), r =
|
|
92
|
-
for (let e of
|
|
93
|
-
let o =
|
|
107
|
+
function T(e, t = a) {
|
|
108
|
+
let n = new Set(e.coveredConditions), r = S.map((e) => `${w(e, t)} ${n.has(e) ? "✓" : "✗"}`), i = [...n].filter((e) => !S.some((t) => t === e));
|
|
109
|
+
for (let e of i) r.push(`${w(e, t)} ✓`);
|
|
110
|
+
let o = S.filter((e) => !n.has(e));
|
|
94
111
|
if (o.length === 0) return r.join(" · ");
|
|
95
112
|
if (n.size === 0) return t("uiLibrary.sceneMonitor.coverage.empty", "{{parts}} — nothing captured yet, so this scene is not watching.", { parts: r.join(" · ") });
|
|
96
|
-
let [s = "", c] = o.map((e) =>
|
|
113
|
+
let [s = "", c] = o.map((e) => w(e, t).toLowerCase()), l = c === void 0 ? s : t("uiLibrary.sceneMonitor.coverage.namesJoin", "{{first}} and {{second}}", {
|
|
97
114
|
first: s,
|
|
98
115
|
second: c
|
|
99
116
|
}), u = {
|
|
@@ -102,10 +119,10 @@ function y(e, t = i) {
|
|
|
102
119
|
};
|
|
103
120
|
return e.onUncoveredCondition === "judge-anyway" ? t("uiLibrary.sceneMonitor.coverage.judgeAnyway", "{{parts}} — {{names}} judged against the references you do have.", u) : t("uiLibrary.sceneMonitor.coverage.skip", "{{parts}} — optional; checks in {{names}} are skipped.", u);
|
|
104
121
|
}
|
|
105
|
-
function
|
|
106
|
-
return e.suspendedCondition === null ? null : t("uiLibrary.sceneMonitor.suspension", "Paused — nothing was captured in {{light}}, so checks are on hold until the light changes back. Capture {{light}} if you want it watched around the clock.", { light:
|
|
122
|
+
function E(e, t = a) {
|
|
123
|
+
return e.suspendedCondition === null ? null : t("uiLibrary.sceneMonitor.suspension", "Paused — nothing was captured in {{light}}, so checks are on hold until the light changes back. Capture {{light}} if you want it watched around the clock.", { light: w(e.suspendedCondition, t).toLowerCase() });
|
|
107
124
|
}
|
|
108
|
-
var
|
|
125
|
+
var D = {
|
|
109
126
|
"no-reference-for-condition": {
|
|
110
127
|
key: "uiLibrary.sceneMonitor.unavailable.no_reference_for_condition",
|
|
111
128
|
fallback: "can’t tell — nothing has been captured for this scene yet. Press “Capture daylight” to photograph what normal looks like."
|
|
@@ -127,19 +144,19 @@ var x = {
|
|
|
127
144
|
fallback: "can’t tell — this camera did not return a frame."
|
|
128
145
|
}
|
|
129
146
|
};
|
|
130
|
-
function
|
|
147
|
+
function O(e, t, n = a) {
|
|
131
148
|
if (e.states.length === 0) return n("uiLibrary.sceneMonitor.status.notArmed", "Not armed yet — capture the initial state to start watching.");
|
|
132
149
|
if (e.verdict === "unknown") {
|
|
133
150
|
if (e.unavailable === null) return n("uiLibrary.sceneMonitor.status.cantTellNow", "can’t tell right now.");
|
|
134
|
-
let t =
|
|
151
|
+
let t = D[e.unavailable];
|
|
135
152
|
return n(t.key, t.fallback);
|
|
136
153
|
}
|
|
137
|
-
let r = e.verdict === "diverged" ? e.divergedAt : e.armedAt,
|
|
138
|
-
if (e.latched) return e.verdict === "diverged" ? n("uiLibrary.sceneMonitor.status.changedLatched", "CHANGED{{held}} — press Reset when you have dealt with it.", { held:
|
|
139
|
-
let o =
|
|
140
|
-
return o === null ? e.verdict === "diverged" ? n("uiLibrary.sceneMonitor.status.changed", "CHANGED{{held}}", { held:
|
|
154
|
+
let r = e.verdict === "diverged" ? e.divergedAt : e.armedAt, i = r === null ? "" : ` ${n("uiLibrary.sceneMonitor.status.heldFor", "for {{duration}}", { duration: M(Math.max(0, t - r)) })}`;
|
|
155
|
+
if (e.latched) return e.verdict === "diverged" ? n("uiLibrary.sceneMonitor.status.changedLatched", "CHANGED{{held}} — press Reset when you have dealt with it.", { held: i }) : n("uiLibrary.sceneMonitor.status.backToNormal", "Back to normal, but still flagged as changed{{held}}. Press Reset to clear it.", { held: i });
|
|
156
|
+
let o = E(e, n);
|
|
157
|
+
return o === null ? e.verdict === "diverged" ? n("uiLibrary.sceneMonitor.status.changed", "CHANGED{{held}}", { held: i }) : n("uiLibrary.sceneMonitor.status.normal", "Normal{{held}}", { held: i }) : o;
|
|
141
158
|
}
|
|
142
|
-
function
|
|
159
|
+
function k(e, t = a) {
|
|
143
160
|
return e.states.length === 0 ? {
|
|
144
161
|
text: t("uiLibrary.sceneMonitor.badge.notArmed", "Not armed"),
|
|
145
162
|
tone: "unknown"
|
|
@@ -160,11 +177,11 @@ function C(e, t = i) {
|
|
|
160
177
|
tone: "unknown"
|
|
161
178
|
};
|
|
162
179
|
}
|
|
163
|
-
var
|
|
164
|
-
function
|
|
165
|
-
return e.width * e.height >
|
|
180
|
+
var A = .4;
|
|
181
|
+
function j(e) {
|
|
182
|
+
return e.width * e.height > A;
|
|
166
183
|
}
|
|
167
|
-
function
|
|
184
|
+
function M(e) {
|
|
168
185
|
let t = Math.floor(e / 1e3);
|
|
169
186
|
if (t < 60) return `${t}s`;
|
|
170
187
|
let n = Math.floor(t / 60);
|
|
@@ -173,4 +190,4 @@ function E(e) {
|
|
|
173
190
|
return r < 48 ? `${r}h` : `${Math.floor(r / 24)}d`;
|
|
174
191
|
}
|
|
175
192
|
//#endregion
|
|
176
|
-
export {
|
|
193
|
+
export { O as a, y as c, j as i, l, k as n, w as o, T as r, x as s, S as t, u };
|
|
@@ -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-BZNWvnmy.mjs")).catch((e) => {
|
|
2766
2766
|
throw ir = void 0, e;
|
|
2767
2767
|
}), ir;
|
|
2768
2768
|
}
|
package/package.json
CHANGED