@camstack/types 1.2.563 → 1.2.565
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/CHANGELOG.md +18 -0
- package/dist/addon/base-addon.d.ts +6 -0
- package/dist/addon.js +2 -2
- package/dist/addon.mjs +2 -2
- package/dist/capabilities/device-manager.cap.d.ts +16 -16
- package/dist/capabilities/device-provider.cap.d.ts +7 -7
- package/dist/capabilities/device-search.d.ts +4 -4
- package/dist/capabilities/energy-system.cap.d.ts +10 -0
- package/dist/capabilities/media-player.cap.d.ts +3 -0
- package/dist/capabilities/migrations.cap.d.ts +1 -0
- package/dist/capabilities/remote.cap.d.ts +1 -0
- package/dist/client.js +2 -3
- package/dist/client.mjs +2 -3
- package/dist/{composed-stable-id-Bp33yrYi.js → composed-stable-id-BzXh1Swk.js} +0 -2
- package/dist/{composed-stable-id-B3wcvtvW.mjs → composed-stable-id-COP6zOXx.mjs} +0 -2
- package/dist/{convert-BmtM6K-5.js → convert-BI8iTXn6.js} +15 -0
- package/dist/{convert-BAzH15HU.mjs → convert-BwMfbk5b.mjs} +15 -0
- package/dist/device/device-control-resolution.d.ts +1 -1
- package/dist/device/device-icon.d.ts +0 -1
- package/dist/device/device-type.d.ts +0 -2
- package/dist/device/hero/build-hero-model.d.ts +3 -0
- package/dist/device/hero/hero-fragment.d.ts +3 -0
- package/dist/device/hero/hero-layout.d.ts +0 -1
- package/dist/device/hero/hero-look.d.ts +0 -6
- package/dist/device/hero/hero-row.d.ts +1 -1
- package/dist/device/hero/hero-scene.d.ts +0 -1
- package/dist/device/hero/media-player-view.d.ts +2 -1
- package/dist/device/source-info.d.ts +1 -1
- package/dist/generated/addon-cap-facts.d.ts +1 -1
- package/dist/generated/customize-catalog.d.ts +1 -1
- package/dist/generated/history-catalog.d.ts +1 -1
- package/dist/{implemented-methods-CgUBu6uM.mjs → implemented-methods-0xxMOekw.mjs} +1 -1
- package/dist/{implemented-methods-CDYOCn9a.js → implemented-methods-D4F6RWkO.js} +1 -1
- package/dist/index.js +57 -26
- package/dist/index.mjs +57 -26
- package/dist/migrations/addon-migration.d.ts +5 -0
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/dist/{sleep-BCWQQG52.mjs → sleep-B5XPl2YP.mjs} +28 -3
- package/dist/{sleep-RUgd-FgK.js → sleep-mEzgbYFJ.js} +28 -3
- package/dist/units/quantity.d.ts +1 -1
- package/dist/units/unit-table.d.ts +1 -1
- package/dist/units-lean.js +1 -1
- package/dist/units-lean.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_sleep = require("./sleep-
|
|
2
|
+
const require_sleep = require("./sleep-mEzgbYFJ.js");
|
|
3
3
|
const require_event_category = require("./event-category-Ps2LC8dN.js");
|
|
4
|
-
const require_composed_stable_id = require("./composed-stable-id-
|
|
5
|
-
const require_implemented_methods = require("./implemented-methods-
|
|
4
|
+
const require_composed_stable_id = require("./composed-stable-id-BzXh1Swk.js");
|
|
5
|
+
const require_implemented_methods = require("./implemented-methods-D4F6RWkO.js");
|
|
6
6
|
const require_node_color = require("./node-color.js");
|
|
7
|
-
const require_convert = require("./convert-
|
|
7
|
+
const require_convert = require("./convert-BI8iTXn6.js");
|
|
8
8
|
const require_enums = require("./enums.js");
|
|
9
9
|
let zod = require("zod");
|
|
10
10
|
let node_crypto = require("node:crypto");
|
|
@@ -48189,6 +48189,12 @@ var MediaPlayerStatusSchema = zod.z.object({
|
|
|
48189
48189
|
/** Mute toggle distinct from volume=0. Null when no mute surface.
|
|
48190
48190
|
* Pair with `DeviceFeature.MediaPlayerMute`. */
|
|
48191
48191
|
isMuted: zod.z.boolean().nullable(),
|
|
48192
|
+
/**
|
|
48193
|
+
* True only when the provider READS the mute state back from the device.
|
|
48194
|
+
* Absent or false: mute is a momentary key. A non-null `isMuted` is not a
|
|
48195
|
+
* reading on its own — an infrared send can leave a value without this flag.
|
|
48196
|
+
*/
|
|
48197
|
+
muteReadback: zod.z.boolean().optional(),
|
|
48192
48198
|
/** Active source / input. Empty when no source surface. */
|
|
48193
48199
|
source: zod.z.string(),
|
|
48194
48200
|
/** Selectable sources. Empty when no source surface.
|
|
@@ -48702,7 +48708,6 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
48702
48708
|
cardinality: "keyedArray",
|
|
48703
48709
|
deviceTypes: [
|
|
48704
48710
|
require_composed_stable_id.DeviceType.Camera,
|
|
48705
|
-
require_composed_stable_id.DeviceType.Hub,
|
|
48706
48711
|
require_composed_stable_id.DeviceType.Light,
|
|
48707
48712
|
require_composed_stable_id.DeviceType.Siren,
|
|
48708
48713
|
require_composed_stable_id.DeviceType.Switch,
|
|
@@ -50568,7 +50573,7 @@ function groupTemplate(id) {
|
|
|
50568
50573
|
//#region src/generated/history-catalog.ts
|
|
50569
50574
|
/**
|
|
50570
50575
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
50571
|
-
* 45 caps with series (
|
|
50576
|
+
* 45 caps with series (104 series), 37 caps answered `'none'`.
|
|
50572
50577
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
50573
50578
|
*/
|
|
50574
50579
|
var HISTORY_CATALOG = {
|
|
@@ -50789,6 +50794,12 @@ var HISTORY_CATALOG = {
|
|
|
50789
50794
|
kind: "counter",
|
|
50790
50795
|
unit: "kWh",
|
|
50791
50796
|
displayName: "Storage discharged"
|
|
50797
|
+
},
|
|
50798
|
+
"storage.healthPct": {
|
|
50799
|
+
kind: "gauge",
|
|
50800
|
+
unit: "%",
|
|
50801
|
+
deadband: 1,
|
|
50802
|
+
displayName: "Storage health"
|
|
50792
50803
|
}
|
|
50793
50804
|
},
|
|
50794
50805
|
"enum-sensor": { "value": {
|
|
@@ -58588,7 +58599,7 @@ var deviceTransitionsCapability = {
|
|
|
58588
58599
|
mode: "singleton",
|
|
58589
58600
|
kind: "wrapper",
|
|
58590
58601
|
defaultActive: true,
|
|
58591
|
-
deviceTypes: Object.values(require_composed_stable_id.DeviceType).filter((type) => type !== require_composed_stable_id.DeviceType.
|
|
58602
|
+
deviceTypes: Object.values(require_composed_stable_id.DeviceType).filter((type) => type !== require_composed_stable_id.DeviceType.Container),
|
|
58592
58603
|
methods: {
|
|
58593
58604
|
/**
|
|
58594
58605
|
* Transitions of a device, newest first. `limit` is bounded; page with `cursor`.
|
|
@@ -60304,7 +60315,9 @@ var EnergyStorageSchema = zod.z.object({
|
|
|
60304
60315
|
/** Lifetime discharged, kWh. */
|
|
60305
60316
|
dischargedKwh: zod.z.number().nullable().meta(require_sleep.readingMeta("energy")),
|
|
60306
60317
|
chargedTodayKwh: zod.z.number().nullable().meta(require_sleep.readingMeta("energy")),
|
|
60307
|
-
dischargedTodayKwh: zod.z.number().nullable().meta(require_sleep.readingMeta("energy"))
|
|
60318
|
+
dischargedTodayKwh: zod.z.number().nullable().meta(require_sleep.readingMeta("energy")),
|
|
60319
|
+
/** State of health, 0..100. Null when the system did not report it. */
|
|
60320
|
+
healthPct: zod.z.number().nullable().meta(require_sleep.readingMeta("percentage"))
|
|
60308
60321
|
});
|
|
60309
60322
|
var EnergySystemStatusSchema = zod.z.object({
|
|
60310
60323
|
solar: EnergySolarSchema.nullable(),
|
|
@@ -60427,6 +60440,12 @@ var energySystemCapability = {
|
|
|
60427
60440
|
kind: "counter",
|
|
60428
60441
|
unit: "kWh",
|
|
60429
60442
|
displayName: "Storage discharged"
|
|
60443
|
+
},
|
|
60444
|
+
"storage.healthPct": {
|
|
60445
|
+
kind: "gauge",
|
|
60446
|
+
unit: "%",
|
|
60447
|
+
deadband: 1,
|
|
60448
|
+
displayName: "Storage health"
|
|
60430
60449
|
}
|
|
60431
60450
|
} },
|
|
60432
60451
|
volatileStateFields: ["lastFetchedAt"],
|
|
@@ -63340,7 +63359,6 @@ var HeroSceneSchema = zod.z.object({
|
|
|
63340
63359
|
});
|
|
63341
63360
|
var HERO_SCENE_BY_TYPE = {
|
|
63342
63361
|
[require_composed_stable_id.DeviceType.Camera]: "camera",
|
|
63343
|
-
[require_composed_stable_id.DeviceType.Hub]: "gateway",
|
|
63344
63362
|
[require_composed_stable_id.DeviceType.Light]: "light",
|
|
63345
63363
|
[require_composed_stable_id.DeviceType.Siren]: "siren",
|
|
63346
63364
|
[require_composed_stable_id.DeviceType.Switch]: "plug",
|
|
@@ -63926,7 +63944,7 @@ var HeroModelSchema = zod.z.object({
|
|
|
63926
63944
|
*
|
|
63927
63945
|
* - `extras` are the further inline controls of the types that carry more than one
|
|
63928
63946
|
* ({@link ROW_EXTRAS_BY_TYPE}): climate setpoint, a robot's return to base,
|
|
63929
|
-
* a player's volume and remote. Each is a control the model already has, named by id,
|
|
63947
|
+
* a player's volume and remote, an automation's enabled switch. Each is a control the model already has, named by id,
|
|
63930
63948
|
* in that order and at most {@link ROW_EXTRAS_MAX}; one the model lacks, or lists in
|
|
63931
63949
|
* `gated`, is absent, and the one `primary` already is never repeats. Empty = the
|
|
63932
63950
|
* row of an older server: `primary` alone.
|
|
@@ -64042,7 +64060,8 @@ var ROW_EXTRAS_BY_TYPE = {
|
|
|
64042
64060
|
[require_composed_stable_id.DeviceType.Climate]: ["climate.target"],
|
|
64043
64061
|
[require_composed_stable_id.DeviceType.Vacuum]: ["vacuum.base"],
|
|
64044
64062
|
[require_composed_stable_id.DeviceType.LawnMower]: ["mower.dock"],
|
|
64045
|
-
[require_composed_stable_id.DeviceType.MediaPlayer]: ["volume.level", REMOTE_OPEN_ACTION_ID]
|
|
64063
|
+
[require_composed_stable_id.DeviceType.MediaPlayer]: ["volume.level", REMOTE_OPEN_ACTION_ID],
|
|
64064
|
+
[require_composed_stable_id.DeviceType.Automation]: ["automation.enabled"]
|
|
64046
64065
|
};
|
|
64047
64066
|
var controlId = (c) => c.kind === "action" ? c.action.id : c.id;
|
|
64048
64067
|
function extraOf(model, id) {
|
|
@@ -70010,7 +70029,9 @@ var migrationsCapability = {
|
|
|
70010
70029
|
*/
|
|
70011
70030
|
declareOwner: require_sleep.method(zod.z.object({
|
|
70012
70031
|
owner: zod.z.string().min(1),
|
|
70013
|
-
metas: zod.z.array(MigrationMetaSchema)
|
|
70032
|
+
metas: zod.z.array(MigrationMetaSchema),
|
|
70033
|
+
/** Ids the owner deliberately removed: an applied row of one is fine, never "newer". */
|
|
70034
|
+
retired: zod.z.array(zod.z.string().min(1)).optional()
|
|
70014
70035
|
}), zod.z.object({
|
|
70015
70036
|
bootId: zod.z.string(),
|
|
70016
70037
|
snapshot: zod.z.enum([
|
|
@@ -111534,7 +111555,7 @@ function widenDeviceConstructor(ctor) {
|
|
|
111534
111555
|
/**
|
|
111535
111556
|
* Exhaustive `DeviceType` → `DeviceControlKind` map. Omitting a new enum member
|
|
111536
111557
|
* fails the build here (the single place the type→kind decision is encoded).
|
|
111537
|
-
* `'dummy'` marks types with no interactive control (Camera/
|
|
111558
|
+
* `'dummy'` marks types with no interactive control (Camera/Generic and the
|
|
111538
111559
|
* placeholder HA types whose inline control renders a dash).
|
|
111539
111560
|
*/
|
|
111540
111561
|
var DEVICE_TYPE_CONTROL_KIND = {
|
|
@@ -111545,7 +111566,6 @@ var DEVICE_TYPE_CONTROL_KIND = {
|
|
|
111545
111566
|
[require_composed_stable_id.DeviceType.HeatPump]: "dummy",
|
|
111546
111567
|
[require_composed_stable_id.DeviceType.EnergySystem]: "energy-system",
|
|
111547
111568
|
[require_composed_stable_id.DeviceType.Camera]: "dummy",
|
|
111548
|
-
[require_composed_stable_id.DeviceType.Hub]: "dummy",
|
|
111549
111569
|
[require_composed_stable_id.DeviceType.Switch]: "switch",
|
|
111550
111570
|
[require_composed_stable_id.DeviceType.Siren]: "switch",
|
|
111551
111571
|
[require_composed_stable_id.DeviceType.Light]: "light",
|
|
@@ -113408,7 +113428,11 @@ var temperatureContribution = contribution("temperature-sensor", TemperatureSens
|
|
|
113408
113428
|
var humidityContribution = contribution("humidity-sensor", HumiditySensorStatusSchema, (slice) => measured(sensorFragment(slice?.humidity ?? null, "humidity", "droplets", "Humidity", "Umidità", `${Math.round(slice?.humidity ?? 0)}%`), slice?.humidity == null ? emptyMeasurement("humidity") : humidityMeasurement(slice.humidity, slice.lastFetchedAt)));
|
|
113409
113429
|
var pressureContribution = contribution("pressure-sensor", PressureSensorStatusSchema, (slice) => sensorFragment(slice?.pressure ?? null, "pressure", "gauge", "Pressure", "Pressione", `${Math.round(slice?.pressure ?? 0)} hPa`));
|
|
113410
113430
|
var illuminanceContribution = contribution("ambient-light-sensor", AmbientLightSensorStatusSchema, (slice) => sensorFragment(slice?.illuminance ?? null, "illuminance", "sun", "Light", "Luce", `${Math.round(slice?.illuminance ?? 0)} lx`));
|
|
113411
|
-
var numericContribution = contribution("numeric-sensor", NumericSensorStatusSchema, (slice) =>
|
|
113431
|
+
var numericContribution = contribution("numeric-sensor", NumericSensorStatusSchema, (slice, ctx) => {
|
|
113432
|
+
const unit = ctx.quantity == null ? void 0 : require_sleep.baseUnitOf(ctx.quantity);
|
|
113433
|
+
const text = String(Number((slice?.value ?? 0).toFixed(2)));
|
|
113434
|
+
return sensorFragment(slice?.value ?? null, "reading", "gauge", "Value", "Valore", unit === void 0 ? text : `${text} ${unit}`);
|
|
113435
|
+
});
|
|
113412
113436
|
var enumContribution = contribution("enum-sensor", EnumSensorStatusSchema, (slice) => {
|
|
113413
113437
|
if (slice === void 0 || slice.value === "") return measured({ reading: reading("sensor", "unknown") }, emptyMeasurement("text"));
|
|
113414
113438
|
if (slice.timestamp === true) return { reading: reading("sensor", "on") };
|
|
@@ -113909,7 +113933,7 @@ function deriveFromStatus(status, features) {
|
|
|
113909
113933
|
volume,
|
|
113910
113934
|
mute: has(require_composed_stable_id.DeviceFeature.MediaPlayerMute) || volume === "slider" && status.isMuted !== null,
|
|
113911
113935
|
volumeKnown: status.volumeLevel !== null,
|
|
113912
|
-
muteKnown: status.
|
|
113936
|
+
muteKnown: status.muteReadback === true,
|
|
113913
113937
|
artworkUrl: artworkOf(status),
|
|
113914
113938
|
source: hasSource ? {
|
|
113915
113939
|
current: sourceName,
|
|
@@ -114323,11 +114347,15 @@ function volumeControls(view, volumeLevel, muted) {
|
|
|
114323
114347
|
valueArg: "volumeLevel"
|
|
114324
114348
|
});
|
|
114325
114349
|
if (view.volume === "steps") controls.push(asAction(action("volume.down", require_sleep.t("Volume down", "Volume giù"), "volume-1", "media-player", "volumeDown")), asAction(action("volume.up", require_sleep.t("Volume up", "Volume su"), "volume-2", "media-player", "volumeUp")));
|
|
114326
|
-
if (view.mute) controls.push({
|
|
114350
|
+
if (view.mute && !view.muteKnown) controls.push({
|
|
114351
|
+
kind: "action",
|
|
114352
|
+
action: action("volume.mute", require_sleep.t("Mute", "Muto"), "volume-x", "media-player", "setMute", { muted: true })
|
|
114353
|
+
});
|
|
114354
|
+
else if (view.mute) controls.push({
|
|
114327
114355
|
kind: "toggle",
|
|
114328
114356
|
id: "volume.mute",
|
|
114329
114357
|
label: require_sleep.t("Mute", "Muto"),
|
|
114330
|
-
on:
|
|
114358
|
+
on: muted,
|
|
114331
114359
|
turnOn: action("volume.mute", require_sleep.t("Mute", "Muto"), "volume-x", "media-player", "setMute", { muted: true }),
|
|
114332
114360
|
turnOff: action("volume.unmute", require_sleep.t("Unmute", "Riattiva"), "volume-2", "media-player", "setMute", { muted: false })
|
|
114333
114361
|
});
|
|
@@ -114561,7 +114589,6 @@ var CONTROL_LAYOUT = { rows: ["control"] };
|
|
|
114561
114589
|
var BUTTON_LAYOUT = { rows: ["button"] };
|
|
114562
114590
|
var HERO_LAYOUT_BY_TYPE = {
|
|
114563
114591
|
[require_composed_stable_id.DeviceType.Camera]: HERO_LAYOUT_DEFAULT,
|
|
114564
|
-
[require_composed_stable_id.DeviceType.Hub]: HERO_LAYOUT_DEFAULT,
|
|
114565
114592
|
[require_composed_stable_id.DeviceType.Light]: LIGHT_LAYOUT,
|
|
114566
114593
|
[require_composed_stable_id.DeviceType.Siren]: HERO_LAYOUT_DEFAULT,
|
|
114567
114594
|
[require_composed_stable_id.DeviceType.Switch]: SWITCH_LAYOUT,
|
|
@@ -115287,7 +115314,6 @@ var HERO_MODE_LOOK = {
|
|
|
115287
115314
|
var MODE_LOOK_TYPES = [require_composed_stable_id.DeviceType.Climate];
|
|
115288
115315
|
var HERO_LOOK_BY_TYPE = {
|
|
115289
115316
|
[require_composed_stable_id.DeviceType.Camera]: CAMERA_LOOK,
|
|
115290
|
-
[require_composed_stable_id.DeviceType.Hub]: HERO_LOOK_DEFAULT,
|
|
115291
115317
|
[require_composed_stable_id.DeviceType.Light]: LIGHT_LOOK,
|
|
115292
115318
|
[require_composed_stable_id.DeviceType.Siren]: HERO_LOOK_DEFAULT,
|
|
115293
115319
|
[require_composed_stable_id.DeviceType.Switch]: SWITCH_LOOK,
|
|
@@ -115583,14 +115609,17 @@ function historyLabelOf(type) {
|
|
|
115583
115609
|
}
|
|
115584
115610
|
/**
|
|
115585
115611
|
* A sensor that measures exactly ONE thing is drawn as that reading. Two measuring
|
|
115586
|
-
* caps (a temperature and a humidity on one device) keep today's card
|
|
115587
|
-
*
|
|
115612
|
+
* caps (a temperature and a humidity on one device) keep today's card. An offline
|
|
115613
|
+
* device keeps the measurement but with NO value: its last reading is no longer
|
|
115614
|
+
* current, so the card draws its normal self with an empty "—" (D393), never a
|
|
115615
|
+
* stale number and never a 0.
|
|
115588
115616
|
*/
|
|
115589
115617
|
function measurementOf(input, fragments) {
|
|
115590
|
-
if (input.device.type !== require_composed_stable_id.DeviceType.Sensor
|
|
115618
|
+
if (input.device.type !== require_composed_stable_id.DeviceType.Sensor) return void 0;
|
|
115591
115619
|
const measured = fragments.flatMap((f) => f.measurement === void 0 ? [] : [f.measurement]);
|
|
115592
115620
|
const only = measured.length === 1 ? measured[0] : void 0;
|
|
115593
|
-
|
|
115621
|
+
if (only === void 0 || !measurementFitsRole(only, input.device.role)) return void 0;
|
|
115622
|
+
return input.device.online ? only : emptyMeasurement(only.quantity);
|
|
115594
115623
|
}
|
|
115595
115624
|
function sceneOf(role, type, fragments) {
|
|
115596
115625
|
const parts = fragments.flatMap((f) => f.scene === void 0 ? [] : [f.scene]);
|
|
@@ -115610,7 +115639,8 @@ function buildHeroModel(input) {
|
|
|
115610
115639
|
now: input.now,
|
|
115611
115640
|
running: runningOf(input),
|
|
115612
115641
|
remoteCommands: input.remoteCommands,
|
|
115613
|
-
caps: input.caps
|
|
115642
|
+
caps: input.caps,
|
|
115643
|
+
quantity: device.quantity ?? null
|
|
115614
115644
|
};
|
|
115615
115645
|
const contributed = HERO_CAP_CONTRIBUTIONS.filter((c) => input.caps.includes(c.cap)).map((c) => ({
|
|
115616
115646
|
cap: c.cap,
|
|
@@ -127225,7 +127255,6 @@ function applianceExport(ecosystem, deviceType) {
|
|
|
127225
127255
|
/** The icon of each device type. */
|
|
127226
127256
|
var DEVICE_TYPE_ICON = {
|
|
127227
127257
|
[require_composed_stable_id.DeviceType.Camera]: "camera",
|
|
127228
|
-
[require_composed_stable_id.DeviceType.Hub]: "network",
|
|
127229
127258
|
[require_composed_stable_id.DeviceType.Light]: "lightbulb",
|
|
127230
127259
|
[require_composed_stable_id.DeviceType.Siren]: "siren",
|
|
127231
127260
|
[require_composed_stable_id.DeviceType.Switch]: "toggle-left",
|
|
@@ -143060,6 +143089,8 @@ var DIMENSION_QUANTITY = {
|
|
|
143060
143089
|
angle: "angle",
|
|
143061
143090
|
"sound-level": "sound-level",
|
|
143062
143091
|
"signal-level": "signal-level",
|
|
143092
|
+
"signal-ratio": "signal-ratio",
|
|
143093
|
+
frequency: "frequency",
|
|
143063
143094
|
"colour-temperature": "colour-temperature",
|
|
143064
143095
|
bitrate: "bitrate",
|
|
143065
143096
|
rate: "rate"
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $ as DEVICE_CHILDREN_BATCH_MAX, $i as runAddonMigrations, $n as isZodSecret, $r as recordSecretRef, $t as QUANTITY_BASE, Aa as expandAudioChunkToF32le, Ai as InvalidRecordError, An as PEER_BYTES_CHUNK_BYTES, Ar as collectSecretMarkerRefs, At as AudioStreamPickSchema, B as CAP_COMMAND_ORIGIN_CONTEXT_KEY, Bi as TransactRefusedError, Bn as entryBody, Br as moveRegistrySwitchToBody, Bt as ProfileRtspEntrySchema, C as auditedFields, Ca as isSecretConfigField, Ci as linkField, Cn as MIN_SCRUBBED_LENGTH, Cr as migrationSet, Ct as DebugInterest, D as HF_BASE_URL, Da as findMigrationsBlocked, Di as DeclarationRefusedError, Dn as registerKnownSecret, Dr as secretTreeFromPaths, Dt as getDebugInterest, E as DEFAULT_TOKEN_EXPIRY, Ea as AddonMigrationsBlockedError, Ei as BatchTooLargeError, En as knownSecretCount, Er as parseSecretStatePath, Et as createDebugEmitter, F as withoutCallerStamp, Fi as RecordSecretUnavailableError, Fn as CALLER_USERNAME_HEADER, Fr as nodeIdOfScopedKey, Ft as CamStreamKindSchema, G as readNodePin, Gi as defaultIntegrationDepsOver, Gn as RecordKindNameSchema, Gr as isInstanceEnabled, Gt as SubscribeAudioChunksInputSchema, H as commandOrigin, Hi as UnknownRecordKindError, Hn as RecordFieldPathSchema, Hr as registrySwitchToBodyId, Ht as ProfileSlotStatusSchema, I as customAction, Ii as RecordTooLargeError, In as DATAPLANE_SECRET_HEADER, Ir as resolveDeviceSettings, It as CamStreamResolutionSchema, J as PipelineRunResultBridge, Ji as rowsDepsOver, Jn as assertValidDeclaration, Jr as collectSecretLeaves, Jt as makeSourceBrokerId, K as toNodeId, Ki as integrationRowsApiOver, Kn as RecordRetentionSchema, Kr as secretViewsOf, Kt as SubscribeAudioChunksResultSchema, L as defineCustomActions, Li as RecordUniqueViolationError, Ln as SHARE_VIEW_KINDS, Lr as resolvedValues, Lt as CameraStreamSchema, M as CAP_NAMES, Mi as PlaintextSecretError, Mn as PEER_BYTES_STALL_MS, Mr as resolveSecretMarkers, Mt as BrokerStatusSchema, Ni as RECORDS_ERROR_CODES, Nn as PEER_BYTES_TICKET_TTL_MS, Nr as transformSecretWrite, Nt as CAM_PROFILE_ORDER, O as HF_REPO, Oa as AUDIO_CHUNK_FORMATS, Oi as FilterRequiredError, On as scrubKnownSecrets, Or as secretTreeFromSchema, Ot as isDebugChannelName, P as CALLER_STAMPED_CAPABILITIES, Pi as RecordNotFoundError, Pn as PeerBytesTicketSchema, Pr as SCOPED_SETTINGS_SCOPES, Pt as CamProfileSchema, Q as deviceOpsCapability, Qi as defineAddonMigrations, Qn as collectZodSecretPaths, Qr as recordSecretCollection, Qt as DISPLAY_PREFERENCES, R as describeCustomActions, Ri as RecordsError, Rn as DisposerChain, Rr as normalizeNodeId, Rt as DecodedAudioChunkSchema, S as createSliceHandle, Sa as isKeychainStoredField, Si as parseSecretRef, Sn as createSecretsAccess, Sr as classifyStoreError, St as DEBUG_WATCH_WINDOW_MS, T as isCommand, Ta as schemaDeclaresAnyField, Ti as optionalLinkField, Tn as forgetKnownSecret, Tr as mergeSecretStatePaths, Tt as __resetDebugInterestForTests, U as nodePin, Ui as asRecordsError, Un as RecordIndexSchema, Ur as registrySwitchToBodyMigration, Ut as StreamSourceEntrySchema, V as CAP_NODE_PIN_CONTEXT_KEY, Vi as UnindexedFilterError, Vn as EntryDescriptorSchema, Vr as registrySwitchPortsOver, Vt as ProfileSlotSchema, W as readCommandOrigin, Wi as recordsErrorFromMessage, Wn as RecordKindDeclarationSchema, Wr as RecordIntegrationInstances, Wt as StreamSourceSchema, X as MIGRATION_API_VERSION, Xi as switchRecordsOverMigrationApi, Xn as defineRecordKinds, Xr as parseSecretPath, Xt as selectAssignedProfileSlots, Y as PipelineStepInputSchema, Yi as secretsOverMigrationApi, Yn as declarationsOf, Yr as mapSecretLeaves, Yt as parseProfileBrokerId, Z as RawStateResultSchema, Zi as AddonMigrationDefinitionError, Zn as SECRET_META, Zr as recordArrayItemPath, Zt as DEFAULT_DISPLAY_PREFERENCE, _ as invokeTrpcLeaf, _a as makeSecretMarker, _i as buildSecretRef, _n as makeInMemoryRecords, _r as FORBIDDEN_MESSAGE_PREFIX, _t as readinessKey, a as asJsonArray, aa as collectHydratedFieldEntries, ai as RECORD_DEFAULT_MAX_DATA_BYTES, an as readingMeta, ar as PROVIDER_PIN_FIELD, at as actionEffect, b as createLazyTrpcSource, ba as collectKeychainStoredKeys, bi as isSecretRef, bn as resolveSecretViewsIn, br as userError, bt as DEBUG_WATCH_HARD_CAP_MS, c as asString, ca as dehydrateSchema, ci as RECORD_MAX_DATA_BYTES, cn as DeviceTransitionSchema, cr as historyItemFieldPath, ct as findVocabAction, d as parseJsonUnknown, da as SECRET_CLEAR, di as RECORD_QUERY_MAX, dn as TransitionCommandSchema, dr as optionalMethod, dt as CAP_VOCABULARY_BY_NAME, ea as createEvent, ei as secretArrayPrefixes, en as ReadingQuantitySchema, er as DEFAULT_RUNTIME_STATE_DURABILITY, et as adminUiCapability, f as hfModelUrl, fa as classifySecretWrite, fi as RECORD_SECRET_COLLECTION_PREFIX, fn as TransitionOutcomeSchema, fr as resolveCapMount, ft as CAP_VOCABULARY, g as createDeviceProxy, ga as isSecretMarkerLike, gi as arrayItemFieldPath, gn as ruleFireOfClaim, gr as ErrorI18nPayloadSchema, gt as emitDownForOwnedCaps, h as isDeviceScopedCap, ha as isSecretMarker, hi as SECRET_REF_SCHEME, hn as RuleFireOriginSchema, hr as ErrorCodeSchema, ht as ReadinessTimeoutError, i as asBoolean, ia as WELL_KNOWN_TAB_MAP, ii as RECORD_DATABASES, in as isReadingQuantity, ir as HISTORY_UNIT_LABELS, it as VocabActionError, ja as isAudioChunkFormat, ji as NoCallerError, jn as PEER_BYTES_MAX_OUTSTANDING, jr as isSecretRefOwnedBy, jt as BrokerStatsSchema, k as RUNTIME_DEFAULTS, ka as audioChunkBytesPerSample, ki as ForeignSecretMarkerError, kn as shortSecretRefHash, kr as KeychainWriteRefusedError, kt as AudioChunkFormatSchema, l as parseJsonArray, la as hydrateSchema, li as RECORD_MAX_INDEXES, ln as TransitionActorKindSchema, lr as isDeviceConfigCap, lt as vocabActionIdFor, m as DEVICE_SCOPED_CAPS, ma as isSecretFieldView, mi as RECORD_SWEEP_INTERVAL_MS, mn as CommandOriginClaimSchema, mr as CamstackError, mt as ReadinessRegistry, n as sleepCancellable, na as isEvent, ni as RECORD_BATCH_MAX_BYTES, nn as displayUnitFor, nr as DEVICE_STATUS_METHOD, nt as addonPagesSourceCapability, o as asJsonObject, oa as collectHydratedFieldValues, oi as RECORD_DELETE_BATCH, on as NOT_A_DEVICE, or as event, ot as allVocabActions, p as BOOT_RECOVERY_BACKOFF_MS, pa as isSecretClear, pi as RECORD_SETTINGS_MAX_ROWS, pn as TransitionValueSchema, pr as systemMethod, pt as MODEL_FORMATS, q as viewerUiCapability, qi as recordsOverMigrationApi, qn as StoredRecordKindDeclarationSchema, qr as REMOVE_LEAF, qt as makeProfileBrokerId, r as maskUrlCredentials, ra as WELL_KNOWN_TABS, ri as RECORD_CLASSES, rn as historyUnitFor, rr as HISTORY_DEFAULT_MIN_INTERVAL_MS, rt as t, s as asNumber, sa as dehydrateConfigField, si as RECORD_ID_MAX_LENGTH, sn as DeviceCommandSettledEventSchema, sr as expandCapMethods, st as assertDeviceOffers, t as sleep, ta as emitReadiness, ti as RECORD_BATCH_MAX, tn as baseUnitOf, tr as DEVICE_SETTINGS_CONTRIBUTION_METHODS, tt as AddonPageDeclarationSchema, u as parseJsonObject, ua as resolveHydratedFieldValue, ui as RECORD_MAX_INDEX_FIELDS, un as TransitionActorSchema, ur as method, ut as vocabCall, va as toSecretFieldView, vi as formatSecretScope, vn as createRecordsAccess, vr as forbiddenError, vt as scopeKey, w as commandEffect, wa as omitTransientConfig, wi as linksOfKind, wn as clearKnownSecrets, wr as normalizeAddonInitResult, wt as DebugWatchTable, x as createMirrorSource, xa as collectSecretConfigKeys, xi as normalizeSecretOwner, xn as REVALIDATE_AFTER_MS, xr as BaseAddon, xt as DEBUG_WATCH_REARM_EVERY_MS, y as createEventBusSliceSource, ya as REDACTED_SECRET, yi as globalSecretScope, yn as assertTransactScope, yr as readErrorI18n, yt as DEBUG_CHANNEL_PREFIX, z as deviceCustomAction, zi as RevConflictError, zn as defineEntryKind, zr as createDurableState, zt as FrameHandleSchema } from "./sleep-
|
|
1
|
+
import { $ as DEVICE_CHILDREN_BATCH_MAX, $i as runAddonMigrations, $n as isZodSecret, $r as recordSecretRef, $t as QUANTITY_BASE, Aa as expandAudioChunkToF32le, Ai as InvalidRecordError, An as PEER_BYTES_CHUNK_BYTES, Ar as collectSecretMarkerRefs, At as AudioStreamPickSchema, B as CAP_COMMAND_ORIGIN_CONTEXT_KEY, Bi as TransactRefusedError, Bn as entryBody, Br as moveRegistrySwitchToBody, Bt as ProfileRtspEntrySchema, C as auditedFields, Ca as isSecretConfigField, Ci as linkField, Cn as MIN_SCRUBBED_LENGTH, Cr as migrationSet, Ct as DebugInterest, D as HF_BASE_URL, Da as findMigrationsBlocked, Di as DeclarationRefusedError, Dn as registerKnownSecret, Dr as secretTreeFromPaths, Dt as getDebugInterest, E as DEFAULT_TOKEN_EXPIRY, Ea as AddonMigrationsBlockedError, Ei as BatchTooLargeError, En as knownSecretCount, Er as parseSecretStatePath, Et as createDebugEmitter, F as withoutCallerStamp, Fi as RecordSecretUnavailableError, Fn as CALLER_USERNAME_HEADER, Fr as nodeIdOfScopedKey, Ft as CamStreamKindSchema, G as readNodePin, Gi as defaultIntegrationDepsOver, Gn as RecordKindNameSchema, Gr as isInstanceEnabled, Gt as SubscribeAudioChunksInputSchema, H as commandOrigin, Hi as UnknownRecordKindError, Hn as RecordFieldPathSchema, Hr as registrySwitchToBodyId, Ht as ProfileSlotStatusSchema, I as customAction, Ii as RecordTooLargeError, In as DATAPLANE_SECRET_HEADER, Ir as resolveDeviceSettings, It as CamStreamResolutionSchema, J as PipelineRunResultBridge, Ji as rowsDepsOver, Jn as assertValidDeclaration, Jr as collectSecretLeaves, Jt as makeSourceBrokerId, K as toNodeId, Ki as integrationRowsApiOver, Kn as RecordRetentionSchema, Kr as secretViewsOf, Kt as SubscribeAudioChunksResultSchema, L as defineCustomActions, Li as RecordUniqueViolationError, Ln as SHARE_VIEW_KINDS, Lr as resolvedValues, Lt as CameraStreamSchema, M as CAP_NAMES, Mi as PlaintextSecretError, Mn as PEER_BYTES_STALL_MS, Mr as resolveSecretMarkers, Mt as BrokerStatusSchema, Ni as RECORDS_ERROR_CODES, Nn as PEER_BYTES_TICKET_TTL_MS, Nr as transformSecretWrite, Nt as CAM_PROFILE_ORDER, O as HF_REPO, Oa as AUDIO_CHUNK_FORMATS, Oi as FilterRequiredError, On as scrubKnownSecrets, Or as secretTreeFromSchema, Ot as isDebugChannelName, P as CALLER_STAMPED_CAPABILITIES, Pi as RecordNotFoundError, Pn as PeerBytesTicketSchema, Pr as SCOPED_SETTINGS_SCOPES, Pt as CamProfileSchema, Q as deviceOpsCapability, Qi as defineAddonMigrations, Qn as collectZodSecretPaths, Qr as recordSecretCollection, Qt as DISPLAY_PREFERENCES, R as describeCustomActions, Ri as RecordsError, Rn as DisposerChain, Rr as normalizeNodeId, Rt as DecodedAudioChunkSchema, S as createSliceHandle, Sa as isKeychainStoredField, Si as parseSecretRef, Sn as createSecretsAccess, Sr as classifyStoreError, St as DEBUG_WATCH_WINDOW_MS, T as isCommand, Ta as schemaDeclaresAnyField, Ti as optionalLinkField, Tn as forgetKnownSecret, Tr as mergeSecretStatePaths, Tt as __resetDebugInterestForTests, U as nodePin, Ui as asRecordsError, Un as RecordIndexSchema, Ur as registrySwitchToBodyMigration, Ut as StreamSourceEntrySchema, V as CAP_NODE_PIN_CONTEXT_KEY, Vi as UnindexedFilterError, Vn as EntryDescriptorSchema, Vr as registrySwitchPortsOver, Vt as ProfileSlotSchema, W as readCommandOrigin, Wi as recordsErrorFromMessage, Wn as RecordKindDeclarationSchema, Wr as RecordIntegrationInstances, Wt as StreamSourceSchema, X as MIGRATION_API_VERSION, Xi as switchRecordsOverMigrationApi, Xn as defineRecordKinds, Xr as parseSecretPath, Xt as selectAssignedProfileSlots, Y as PipelineStepInputSchema, Yi as secretsOverMigrationApi, Yn as declarationsOf, Yr as mapSecretLeaves, Yt as parseProfileBrokerId, Z as RawStateResultSchema, Zi as AddonMigrationDefinitionError, Zn as SECRET_META, Zr as recordArrayItemPath, Zt as DEFAULT_DISPLAY_PREFERENCE, _ as invokeTrpcLeaf, _a as makeSecretMarker, _i as buildSecretRef, _n as makeInMemoryRecords, _r as FORBIDDEN_MESSAGE_PREFIX, _t as readinessKey, a as asJsonArray, aa as collectHydratedFieldEntries, ai as RECORD_DEFAULT_MAX_DATA_BYTES, an as readingMeta, ar as PROVIDER_PIN_FIELD, at as actionEffect, b as createLazyTrpcSource, ba as collectKeychainStoredKeys, bi as isSecretRef, bn as resolveSecretViewsIn, br as userError, bt as DEBUG_WATCH_HARD_CAP_MS, c as asString, ca as dehydrateSchema, ci as RECORD_MAX_DATA_BYTES, cn as DeviceTransitionSchema, cr as historyItemFieldPath, ct as findVocabAction, d as parseJsonUnknown, da as SECRET_CLEAR, di as RECORD_QUERY_MAX, dn as TransitionCommandSchema, dr as optionalMethod, dt as CAP_VOCABULARY_BY_NAME, ea as createEvent, ei as secretArrayPrefixes, en as ReadingQuantitySchema, er as DEFAULT_RUNTIME_STATE_DURABILITY, et as adminUiCapability, f as hfModelUrl, fa as classifySecretWrite, fi as RECORD_SECRET_COLLECTION_PREFIX, fn as TransitionOutcomeSchema, fr as resolveCapMount, ft as CAP_VOCABULARY, g as createDeviceProxy, ga as isSecretMarkerLike, gi as arrayItemFieldPath, gn as ruleFireOfClaim, gr as ErrorI18nPayloadSchema, gt as emitDownForOwnedCaps, h as isDeviceScopedCap, ha as isSecretMarker, hi as SECRET_REF_SCHEME, hn as RuleFireOriginSchema, hr as ErrorCodeSchema, ht as ReadinessTimeoutError, i as asBoolean, ia as WELL_KNOWN_TAB_MAP, ii as RECORD_DATABASES, in as isReadingQuantity, ir as HISTORY_UNIT_LABELS, it as VocabActionError, ja as isAudioChunkFormat, ji as NoCallerError, jn as PEER_BYTES_MAX_OUTSTANDING, jr as isSecretRefOwnedBy, jt as BrokerStatsSchema, k as RUNTIME_DEFAULTS, ka as audioChunkBytesPerSample, ki as ForeignSecretMarkerError, kn as shortSecretRefHash, kr as KeychainWriteRefusedError, kt as AudioChunkFormatSchema, l as parseJsonArray, la as hydrateSchema, li as RECORD_MAX_INDEXES, ln as TransitionActorKindSchema, lr as isDeviceConfigCap, lt as vocabActionIdFor, m as DEVICE_SCOPED_CAPS, ma as isSecretFieldView, mi as RECORD_SWEEP_INTERVAL_MS, mn as CommandOriginClaimSchema, mr as CamstackError, mt as ReadinessRegistry, n as sleepCancellable, na as isEvent, ni as RECORD_BATCH_MAX_BYTES, nn as displayUnitFor, nr as DEVICE_STATUS_METHOD, nt as addonPagesSourceCapability, o as asJsonObject, oa as collectHydratedFieldValues, oi as RECORD_DELETE_BATCH, on as NOT_A_DEVICE, or as event, ot as allVocabActions, p as BOOT_RECOVERY_BACKOFF_MS, pa as isSecretClear, pi as RECORD_SETTINGS_MAX_ROWS, pn as TransitionValueSchema, pr as systemMethod, pt as MODEL_FORMATS, q as viewerUiCapability, qi as recordsOverMigrationApi, qn as StoredRecordKindDeclarationSchema, qr as REMOVE_LEAF, qt as makeProfileBrokerId, r as maskUrlCredentials, ra as WELL_KNOWN_TABS, ri as RECORD_CLASSES, rn as historyUnitFor, rr as HISTORY_DEFAULT_MIN_INTERVAL_MS, rt as t, s as asNumber, sa as dehydrateConfigField, si as RECORD_ID_MAX_LENGTH, sn as DeviceCommandSettledEventSchema, sr as expandCapMethods, st as assertDeviceOffers, t as sleep, ta as emitReadiness, ti as RECORD_BATCH_MAX, tn as baseUnitOf, tr as DEVICE_SETTINGS_CONTRIBUTION_METHODS, tt as AddonPageDeclarationSchema, u as parseJsonObject, ua as resolveHydratedFieldValue, ui as RECORD_MAX_INDEX_FIELDS, un as TransitionActorSchema, ur as method, ut as vocabCall, va as toSecretFieldView, vi as formatSecretScope, vn as createRecordsAccess, vr as forbiddenError, vt as scopeKey, w as commandEffect, wa as omitTransientConfig, wi as linksOfKind, wn as clearKnownSecrets, wr as normalizeAddonInitResult, wt as DebugWatchTable, x as createMirrorSource, xa as collectSecretConfigKeys, xi as normalizeSecretOwner, xn as REVALIDATE_AFTER_MS, xr as BaseAddon, xt as DEBUG_WATCH_REARM_EVERY_MS, y as createEventBusSliceSource, ya as REDACTED_SECRET, yi as globalSecretScope, yn as assertTransactScope, yr as readErrorI18n, yt as DEBUG_CHANNEL_PREFIX, z as deviceCustomAction, zi as RevConflictError, zn as defineEntryKind, zr as createDurableState, zt as FrameHandleSchema } from "./sleep-B5XPl2YP.mjs";
|
|
2
2
|
import { i as publicEventCategories, n as OWNER_ONLY_EVENT_CATEGORIES, r as isOwnerOnlyEventCategory, t as EventCategory } from "./event-category-Dv-Gcv1f.mjs";
|
|
3
|
-
import { a as DeviceType, i as DeviceRole, n as ChargingStatus, o as featuresOfBoundCaps, r as DeviceFeature, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-
|
|
4
|
-
import { $ as EXPRESSION_OUTPUTS, $n as buildAudioArgs, $t as createExpressionScope, A as MAX_COMPOSITION_FIELDS_PER_FEATURE, An as sliceActiveValue, At as integralCadenceMs, B as featureFieldEntries, Bn as isSwitchHeater, Bt as STATISTIC_STATS, C as CompositionPassthroughFeatureSchema, Cn as SOURCE_CAPS, Ct as MINUTE_MS, D as FORWARD_INPUT_KEY, Dn as evaluateSensorEdge, Dt as RollingWindowSchema, E as CompositionTargetSchema, En as SOURCE_DEVICE_TYPES, Et as ROLLING_SPANS, F as compositionFeatureEnabled, Fn as capAppliesToDeviceKind, Ft as planResetTier, G as AGGREGATE_REDUCERS, Gt as wattMillisecondsToKwh, H as fieldReads, Hn as FFMPEG_PATH_ENV, Ht as evaluateStatistic, I as compositionItemFieldPath, In as climateRoleOf, It as planStatisticTier, J as AggregateReducerSchema, Jn as canonicalHash, Jt as createStatefulExpressionMemory, K as ARITHMETIC_OPS, Kt as EXPRESSION_INJECTED_NOW, L as compositionReadKey, Ln as isAirConditioner, Lt as rollingDurationMs, M as canonicalStoredBlockTarget, Mn as CLIMATE_ROLES, Mt as nextLocalMidnight, N as composedDeviceRef, Nn as StoredDeviceTypeSchema, Nt as openReset, O as MAX_COMPOSITION_CODE_LENGTH, On as evaluateSensorLevelEdge, Ot as StatisticWindowSchema, P as composedDeviceStableId, Pn as canonicalStoredDeviceType, Pt as openStatistic, Q as DerivativeHelperSpecSchema, Qn as audioPlanFromEncodeProfile, Qt as validateExpressionSource, R as compositionSliceKey, Rn as isOutlet, Rt as statisticCadenceMs, S as CompositionNewTargetSchema, Sn as DEFAULT_FIRST_SIGHTING_FRESHNESS_MS, St as HOUR_MS, T as CompositionSeriesSourceSchema, Tn as SOURCE_CAP_CHANGED_AT_FIELD, Tt as RESET_PERIODS, U as isForwardInputRef, Ut as integrateReading, V as featureSources, Vn as isSwitchLight, Vt as evaluateDerivative, W as ACTIVE_CRITERIA, Wt as KWH_PER_WATT_MS, X as BINARY_AGGREGATES, Xn as AUDIO_PRESETS, Xt as evaluateStatefulExpressionCall, Y as ArithmeticHelperSpecSchema, Yn as Fmp4BoxSplitter, Yt as evaluateExpressionSource, Z as DERIVATIVE_UNITS, Zn as RESTREAM_INPUT_PROBE, Zt as toExpressionValue, _ as CompositionForwardArgSchema, _n as evaluateDwell, _t as DAY_MS, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, an as EXPRESSION_COMPILE_CACHE_CAPACITY, ar as logBannerArgs, at as HelperSpecSchema, b as CompositionItemEntrySchema, bn as ExpressionEvalError, bt as HISTORY_SLOW_MS, c as CompositionCodeSourceSchema, cn as MAX_EXPRESSION_BINDINGS, ct as MAX_HELPER_MEMBERS, d as CompositionExpressionSourceSchema, dn as MAX_EXPRESSION_SOURCE_LENGTH, dt as ThresholdHelperSpecSchema, en as evaluateAst, er as buildFfmpegArgs, et as ExpressionHelperSpecSchema, f as CompositionExtensionCommandSchema, fn as RESERVED_BINDING_NAMES, ft as helperMembers, g as CompositionFieldsFeatureSchema, gn as evaluateCount, gt as CalendarWindowSchema, h as CompositionFieldSourceSchema, hn as disarmRoseMemory, ht as CALENDAR_PERIODS, i as COMPOSITION_ITEM_KEY_RE, in as tokenize, ir as isSoftwareDecode, it as HelperMemberSchema, j as MAX_COMPOSITION_ITEMS, jn as sliceChangedAt, jt as maxDurationMs, k as MAX_COMPOSITION_FEATURES, kn as isSourceCap, kt as historyRetentionFromSettings, l as CompositionCommandTargetSchema, ln as MAX_EXPRESSION_CALL_ARGS, lt as NUMERIC_AGGREGATES, m as CompositionFieldReadSchema, mn as EXPRESSION_BUILTIN_NAMES, mt as CompositionSourceRefSchema, n as COMPOSER_ADDON_ID, nn as compileExpressionSafe, nr as buildVideoArgs, nt as GroupHelperSpecSchema, o as CompositionAggregateSourceSchema, on as EXPRESSION_IDENTIFIER_RE, or as pickVideoEncoder, ot as INTEGRAL_OUTPUTS, p as CompositionFeatureSchema, pn as EXPRESSION_BUILTINS, pt as isHistoryHelper, q as ActiveCriterionSchema, qt as cloneStatefulExpressionMemory, r as COMPOSITION_ITEM_ARRAY_PATH, rn as parseExpression, rr as invocationFromEncodeProfile, rt as GroupTemplateIdSchema, s as CompositionBindingSchema, sn as MAX_EXPRESSION_AST_NODES, sr as resolveStreamMaps, st as IntegralHelperSpecSchema, t as implementedMethodsOf, tn as compileExpression, tr as buildInputArgs, tt as GROUP_TEMPLATE_IDS, u as CompositionExistingTargetSchema, un as MAX_EXPRESSION_EVAL_STEPS, ut as StatisticHelperSpecSchema, v as CompositionForwardCommandSchema, vn as evaluateRose, vt as DEFAULT_HISTORY_RETENTION, w as CompositionSchema, wn as SOURCE_CAP_ACTIVE_FIELD, wt as MIN_CUSTOM_MINUTES, x as CompositionLiteralBindingSchema, xn as ExpressionParseError, xt as HISTORY_TIERS, y as CompositionFromSourceSchema, yn as isStatefulBuiltin, yt as HISTORY_FAST_MS, z as compositionSourceKey, zn as isSwitchFan, zt as SERIES_KINDS } from "./implemented-methods-
|
|
3
|
+
import { a as DeviceType, i as DeviceRole, n as ChargingStatus, o as featuresOfBoundCaps, r as DeviceFeature, s as errMsg, t as COMPOSED_DEVICE_STABLE_ID_PREFIX } from "./composed-stable-id-COP6zOXx.mjs";
|
|
4
|
+
import { $ as EXPRESSION_OUTPUTS, $n as buildAudioArgs, $t as createExpressionScope, A as MAX_COMPOSITION_FIELDS_PER_FEATURE, An as sliceActiveValue, At as integralCadenceMs, B as featureFieldEntries, Bn as isSwitchHeater, Bt as STATISTIC_STATS, C as CompositionPassthroughFeatureSchema, Cn as SOURCE_CAPS, Ct as MINUTE_MS, D as FORWARD_INPUT_KEY, Dn as evaluateSensorEdge, Dt as RollingWindowSchema, E as CompositionTargetSchema, En as SOURCE_DEVICE_TYPES, Et as ROLLING_SPANS, F as compositionFeatureEnabled, Fn as capAppliesToDeviceKind, Ft as planResetTier, G as AGGREGATE_REDUCERS, Gt as wattMillisecondsToKwh, H as fieldReads, Hn as FFMPEG_PATH_ENV, Ht as evaluateStatistic, I as compositionItemFieldPath, In as climateRoleOf, It as planStatisticTier, J as AggregateReducerSchema, Jn as canonicalHash, Jt as createStatefulExpressionMemory, K as ARITHMETIC_OPS, Kt as EXPRESSION_INJECTED_NOW, L as compositionReadKey, Ln as isAirConditioner, Lt as rollingDurationMs, M as canonicalStoredBlockTarget, Mn as CLIMATE_ROLES, Mt as nextLocalMidnight, N as composedDeviceRef, Nn as StoredDeviceTypeSchema, Nt as openReset, O as MAX_COMPOSITION_CODE_LENGTH, On as evaluateSensorLevelEdge, Ot as StatisticWindowSchema, P as composedDeviceStableId, Pn as canonicalStoredDeviceType, Pt as openStatistic, Q as DerivativeHelperSpecSchema, Qn as audioPlanFromEncodeProfile, Qt as validateExpressionSource, R as compositionSliceKey, Rn as isOutlet, Rt as statisticCadenceMs, S as CompositionNewTargetSchema, Sn as DEFAULT_FIRST_SIGHTING_FRESHNESS_MS, St as HOUR_MS, T as CompositionSeriesSourceSchema, Tn as SOURCE_CAP_CHANGED_AT_FIELD, Tt as RESET_PERIODS, U as isForwardInputRef, Ut as integrateReading, V as featureSources, Vn as isSwitchLight, Vt as evaluateDerivative, W as ACTIVE_CRITERIA, Wt as KWH_PER_WATT_MS, X as BINARY_AGGREGATES, Xn as AUDIO_PRESETS, Xt as evaluateStatefulExpressionCall, Y as ArithmeticHelperSpecSchema, Yn as Fmp4BoxSplitter, Yt as evaluateExpressionSource, Z as DERIVATIVE_UNITS, Zn as RESTREAM_INPUT_PROBE, Zt as toExpressionValue, _ as CompositionForwardArgSchema, _n as evaluateDwell, _t as DAY_MS, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, an as EXPRESSION_COMPILE_CACHE_CAPACITY, ar as logBannerArgs, at as HelperSpecSchema, b as CompositionItemEntrySchema, bn as ExpressionEvalError, bt as HISTORY_SLOW_MS, c as CompositionCodeSourceSchema, cn as MAX_EXPRESSION_BINDINGS, ct as MAX_HELPER_MEMBERS, d as CompositionExpressionSourceSchema, dn as MAX_EXPRESSION_SOURCE_LENGTH, dt as ThresholdHelperSpecSchema, en as evaluateAst, er as buildFfmpegArgs, et as ExpressionHelperSpecSchema, f as CompositionExtensionCommandSchema, fn as RESERVED_BINDING_NAMES, ft as helperMembers, g as CompositionFieldsFeatureSchema, gn as evaluateCount, gt as CalendarWindowSchema, h as CompositionFieldSourceSchema, hn as disarmRoseMemory, ht as CALENDAR_PERIODS, i as COMPOSITION_ITEM_KEY_RE, in as tokenize, ir as isSoftwareDecode, it as HelperMemberSchema, j as MAX_COMPOSITION_ITEMS, jn as sliceChangedAt, jt as maxDurationMs, k as MAX_COMPOSITION_FEATURES, kn as isSourceCap, kt as historyRetentionFromSettings, l as CompositionCommandTargetSchema, ln as MAX_EXPRESSION_CALL_ARGS, lt as NUMERIC_AGGREGATES, m as CompositionFieldReadSchema, mn as EXPRESSION_BUILTIN_NAMES, mt as CompositionSourceRefSchema, n as COMPOSER_ADDON_ID, nn as compileExpressionSafe, nr as buildVideoArgs, nt as GroupHelperSpecSchema, o as CompositionAggregateSourceSchema, on as EXPRESSION_IDENTIFIER_RE, or as pickVideoEncoder, ot as INTEGRAL_OUTPUTS, p as CompositionFeatureSchema, pn as EXPRESSION_BUILTINS, pt as isHistoryHelper, q as ActiveCriterionSchema, qt as cloneStatefulExpressionMemory, r as COMPOSITION_ITEM_ARRAY_PATH, rn as parseExpression, rr as invocationFromEncodeProfile, rt as GroupTemplateIdSchema, s as CompositionBindingSchema, sn as MAX_EXPRESSION_AST_NODES, sr as resolveStreamMaps, st as IntegralHelperSpecSchema, t as implementedMethodsOf, tn as compileExpression, tr as buildInputArgs, tt as GROUP_TEMPLATE_IDS, u as CompositionExistingTargetSchema, un as MAX_EXPRESSION_EVAL_STEPS, ut as StatisticHelperSpecSchema, v as CompositionForwardCommandSchema, vn as evaluateRose, vt as DEFAULT_HISTORY_RETENTION, w as CompositionSchema, wn as SOURCE_CAP_ACTIVE_FIELD, wt as MIN_CUSTOM_MINUTES, x as CompositionLiteralBindingSchema, xn as ExpressionParseError, xt as HISTORY_TIERS, y as CompositionFromSourceSchema, yn as isStatefulBuiltin, yt as HISTORY_FAST_MS, z as compositionSourceKey, zn as isSwitchFan, zt as SERIES_KINDS } from "./implemented-methods-0xxMOekw.mjs";
|
|
5
5
|
import { NODE_COLOR_IDS, NodeColorIdSchema, assignNodeColorId } from "./node-color.mjs";
|
|
6
|
-
import { a as tryConvertUnit, c as UNIT_TABLE, i as tryConvertDelta, n as canConvertUnit, o as unitDimension, r as convertUnit, s as unitsForDimension, t as UnitConversionError } from "./convert-
|
|
6
|
+
import { a as tryConvertUnit, c as UNIT_TABLE, i as tryConvertDelta, n as canConvertUnit, o as unitDimension, r as convertUnit, s as unitsForDimension, t as UnitConversionError } from "./convert-BwMfbk5b.mjs";
|
|
7
7
|
import { EventSourceType } from "./enums.mjs";
|
|
8
8
|
import { z } from "zod";
|
|
9
9
|
import { createHash } from "node:crypto";
|
|
@@ -48188,6 +48188,12 @@ var MediaPlayerStatusSchema = z.object({
|
|
|
48188
48188
|
/** Mute toggle distinct from volume=0. Null when no mute surface.
|
|
48189
48189
|
* Pair with `DeviceFeature.MediaPlayerMute`. */
|
|
48190
48190
|
isMuted: z.boolean().nullable(),
|
|
48191
|
+
/**
|
|
48192
|
+
* True only when the provider READS the mute state back from the device.
|
|
48193
|
+
* Absent or false: mute is a momentary key. A non-null `isMuted` is not a
|
|
48194
|
+
* reading on its own — an infrared send can leave a value without this flag.
|
|
48195
|
+
*/
|
|
48196
|
+
muteReadback: z.boolean().optional(),
|
|
48191
48197
|
/** Active source / input. Empty when no source surface. */
|
|
48192
48198
|
source: z.string(),
|
|
48193
48199
|
/** Selectable sources. Empty when no source surface.
|
|
@@ -48701,7 +48707,6 @@ var CAP_CUSTOMIZE_CATALOG = {
|
|
|
48701
48707
|
cardinality: "keyedArray",
|
|
48702
48708
|
deviceTypes: [
|
|
48703
48709
|
DeviceType.Camera,
|
|
48704
|
-
DeviceType.Hub,
|
|
48705
48710
|
DeviceType.Light,
|
|
48706
48711
|
DeviceType.Siren,
|
|
48707
48712
|
DeviceType.Switch,
|
|
@@ -50567,7 +50572,7 @@ function groupTemplate(id) {
|
|
|
50567
50572
|
//#region src/generated/history-catalog.ts
|
|
50568
50573
|
/**
|
|
50569
50574
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
50570
|
-
* 45 caps with series (
|
|
50575
|
+
* 45 caps with series (104 series), 37 caps answered `'none'`.
|
|
50571
50576
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
50572
50577
|
*/
|
|
50573
50578
|
var HISTORY_CATALOG = {
|
|
@@ -50788,6 +50793,12 @@ var HISTORY_CATALOG = {
|
|
|
50788
50793
|
kind: "counter",
|
|
50789
50794
|
unit: "kWh",
|
|
50790
50795
|
displayName: "Storage discharged"
|
|
50796
|
+
},
|
|
50797
|
+
"storage.healthPct": {
|
|
50798
|
+
kind: "gauge",
|
|
50799
|
+
unit: "%",
|
|
50800
|
+
deadband: 1,
|
|
50801
|
+
displayName: "Storage health"
|
|
50791
50802
|
}
|
|
50792
50803
|
},
|
|
50793
50804
|
"enum-sensor": { "value": {
|
|
@@ -58587,7 +58598,7 @@ var deviceTransitionsCapability = {
|
|
|
58587
58598
|
mode: "singleton",
|
|
58588
58599
|
kind: "wrapper",
|
|
58589
58600
|
defaultActive: true,
|
|
58590
|
-
deviceTypes: Object.values(DeviceType).filter((type) => type !== DeviceType.
|
|
58601
|
+
deviceTypes: Object.values(DeviceType).filter((type) => type !== DeviceType.Container),
|
|
58591
58602
|
methods: {
|
|
58592
58603
|
/**
|
|
58593
58604
|
* Transitions of a device, newest first. `limit` is bounded; page with `cursor`.
|
|
@@ -60303,7 +60314,9 @@ var EnergyStorageSchema = z.object({
|
|
|
60303
60314
|
/** Lifetime discharged, kWh. */
|
|
60304
60315
|
dischargedKwh: z.number().nullable().meta(readingMeta("energy")),
|
|
60305
60316
|
chargedTodayKwh: z.number().nullable().meta(readingMeta("energy")),
|
|
60306
|
-
dischargedTodayKwh: z.number().nullable().meta(readingMeta("energy"))
|
|
60317
|
+
dischargedTodayKwh: z.number().nullable().meta(readingMeta("energy")),
|
|
60318
|
+
/** State of health, 0..100. Null when the system did not report it. */
|
|
60319
|
+
healthPct: z.number().nullable().meta(readingMeta("percentage"))
|
|
60307
60320
|
});
|
|
60308
60321
|
var EnergySystemStatusSchema = z.object({
|
|
60309
60322
|
solar: EnergySolarSchema.nullable(),
|
|
@@ -60426,6 +60439,12 @@ var energySystemCapability = {
|
|
|
60426
60439
|
kind: "counter",
|
|
60427
60440
|
unit: "kWh",
|
|
60428
60441
|
displayName: "Storage discharged"
|
|
60442
|
+
},
|
|
60443
|
+
"storage.healthPct": {
|
|
60444
|
+
kind: "gauge",
|
|
60445
|
+
unit: "%",
|
|
60446
|
+
deadband: 1,
|
|
60447
|
+
displayName: "Storage health"
|
|
60429
60448
|
}
|
|
60430
60449
|
} },
|
|
60431
60450
|
volatileStateFields: ["lastFetchedAt"],
|
|
@@ -63339,7 +63358,6 @@ var HeroSceneSchema = z.object({
|
|
|
63339
63358
|
});
|
|
63340
63359
|
var HERO_SCENE_BY_TYPE = {
|
|
63341
63360
|
[DeviceType.Camera]: "camera",
|
|
63342
|
-
[DeviceType.Hub]: "gateway",
|
|
63343
63361
|
[DeviceType.Light]: "light",
|
|
63344
63362
|
[DeviceType.Siren]: "siren",
|
|
63345
63363
|
[DeviceType.Switch]: "plug",
|
|
@@ -63925,7 +63943,7 @@ var HeroModelSchema = z.object({
|
|
|
63925
63943
|
*
|
|
63926
63944
|
* - `extras` are the further inline controls of the types that carry more than one
|
|
63927
63945
|
* ({@link ROW_EXTRAS_BY_TYPE}): climate setpoint, a robot's return to base,
|
|
63928
|
-
* a player's volume and remote. Each is a control the model already has, named by id,
|
|
63946
|
+
* a player's volume and remote, an automation's enabled switch. Each is a control the model already has, named by id,
|
|
63929
63947
|
* in that order and at most {@link ROW_EXTRAS_MAX}; one the model lacks, or lists in
|
|
63930
63948
|
* `gated`, is absent, and the one `primary` already is never repeats. Empty = the
|
|
63931
63949
|
* row of an older server: `primary` alone.
|
|
@@ -64041,7 +64059,8 @@ var ROW_EXTRAS_BY_TYPE = {
|
|
|
64041
64059
|
[DeviceType.Climate]: ["climate.target"],
|
|
64042
64060
|
[DeviceType.Vacuum]: ["vacuum.base"],
|
|
64043
64061
|
[DeviceType.LawnMower]: ["mower.dock"],
|
|
64044
|
-
[DeviceType.MediaPlayer]: ["volume.level", REMOTE_OPEN_ACTION_ID]
|
|
64062
|
+
[DeviceType.MediaPlayer]: ["volume.level", REMOTE_OPEN_ACTION_ID],
|
|
64063
|
+
[DeviceType.Automation]: ["automation.enabled"]
|
|
64045
64064
|
};
|
|
64046
64065
|
var controlId = (c) => c.kind === "action" ? c.action.id : c.id;
|
|
64047
64066
|
function extraOf(model, id) {
|
|
@@ -70009,7 +70028,9 @@ var migrationsCapability = {
|
|
|
70009
70028
|
*/
|
|
70010
70029
|
declareOwner: method(z.object({
|
|
70011
70030
|
owner: z.string().min(1),
|
|
70012
|
-
metas: z.array(MigrationMetaSchema)
|
|
70031
|
+
metas: z.array(MigrationMetaSchema),
|
|
70032
|
+
/** Ids the owner deliberately removed: an applied row of one is fine, never "newer". */
|
|
70033
|
+
retired: z.array(z.string().min(1)).optional()
|
|
70013
70034
|
}), z.object({
|
|
70014
70035
|
bootId: z.string(),
|
|
70015
70036
|
snapshot: z.enum([
|
|
@@ -111533,7 +111554,7 @@ function widenDeviceConstructor(ctor) {
|
|
|
111533
111554
|
/**
|
|
111534
111555
|
* Exhaustive `DeviceType` → `DeviceControlKind` map. Omitting a new enum member
|
|
111535
111556
|
* fails the build here (the single place the type→kind decision is encoded).
|
|
111536
|
-
* `'dummy'` marks types with no interactive control (Camera/
|
|
111557
|
+
* `'dummy'` marks types with no interactive control (Camera/Generic and the
|
|
111537
111558
|
* placeholder HA types whose inline control renders a dash).
|
|
111538
111559
|
*/
|
|
111539
111560
|
var DEVICE_TYPE_CONTROL_KIND = {
|
|
@@ -111544,7 +111565,6 @@ var DEVICE_TYPE_CONTROL_KIND = {
|
|
|
111544
111565
|
[DeviceType.HeatPump]: "dummy",
|
|
111545
111566
|
[DeviceType.EnergySystem]: "energy-system",
|
|
111546
111567
|
[DeviceType.Camera]: "dummy",
|
|
111547
|
-
[DeviceType.Hub]: "dummy",
|
|
111548
111568
|
[DeviceType.Switch]: "switch",
|
|
111549
111569
|
[DeviceType.Siren]: "switch",
|
|
111550
111570
|
[DeviceType.Light]: "light",
|
|
@@ -113407,7 +113427,11 @@ var temperatureContribution = contribution("temperature-sensor", TemperatureSens
|
|
|
113407
113427
|
var humidityContribution = contribution("humidity-sensor", HumiditySensorStatusSchema, (slice) => measured(sensorFragment(slice?.humidity ?? null, "humidity", "droplets", "Humidity", "Umidità", `${Math.round(slice?.humidity ?? 0)}%`), slice?.humidity == null ? emptyMeasurement("humidity") : humidityMeasurement(slice.humidity, slice.lastFetchedAt)));
|
|
113408
113428
|
var pressureContribution = contribution("pressure-sensor", PressureSensorStatusSchema, (slice) => sensorFragment(slice?.pressure ?? null, "pressure", "gauge", "Pressure", "Pressione", `${Math.round(slice?.pressure ?? 0)} hPa`));
|
|
113409
113429
|
var illuminanceContribution = contribution("ambient-light-sensor", AmbientLightSensorStatusSchema, (slice) => sensorFragment(slice?.illuminance ?? null, "illuminance", "sun", "Light", "Luce", `${Math.round(slice?.illuminance ?? 0)} lx`));
|
|
113410
|
-
var numericContribution = contribution("numeric-sensor", NumericSensorStatusSchema, (slice) =>
|
|
113430
|
+
var numericContribution = contribution("numeric-sensor", NumericSensorStatusSchema, (slice, ctx) => {
|
|
113431
|
+
const unit = ctx.quantity == null ? void 0 : baseUnitOf(ctx.quantity);
|
|
113432
|
+
const text = String(Number((slice?.value ?? 0).toFixed(2)));
|
|
113433
|
+
return sensorFragment(slice?.value ?? null, "reading", "gauge", "Value", "Valore", unit === void 0 ? text : `${text} ${unit}`);
|
|
113434
|
+
});
|
|
113411
113435
|
var enumContribution = contribution("enum-sensor", EnumSensorStatusSchema, (slice) => {
|
|
113412
113436
|
if (slice === void 0 || slice.value === "") return measured({ reading: reading("sensor", "unknown") }, emptyMeasurement("text"));
|
|
113413
113437
|
if (slice.timestamp === true) return { reading: reading("sensor", "on") };
|
|
@@ -113908,7 +113932,7 @@ function deriveFromStatus(status, features) {
|
|
|
113908
113932
|
volume,
|
|
113909
113933
|
mute: has(DeviceFeature.MediaPlayerMute) || volume === "slider" && status.isMuted !== null,
|
|
113910
113934
|
volumeKnown: status.volumeLevel !== null,
|
|
113911
|
-
muteKnown: status.
|
|
113935
|
+
muteKnown: status.muteReadback === true,
|
|
113912
113936
|
artworkUrl: artworkOf(status),
|
|
113913
113937
|
source: hasSource ? {
|
|
113914
113938
|
current: sourceName,
|
|
@@ -114322,11 +114346,15 @@ function volumeControls(view, volumeLevel, muted) {
|
|
|
114322
114346
|
valueArg: "volumeLevel"
|
|
114323
114347
|
});
|
|
114324
114348
|
if (view.volume === "steps") controls.push(asAction(action("volume.down", t("Volume down", "Volume giù"), "volume-1", "media-player", "volumeDown")), asAction(action("volume.up", t("Volume up", "Volume su"), "volume-2", "media-player", "volumeUp")));
|
|
114325
|
-
if (view.mute) controls.push({
|
|
114349
|
+
if (view.mute && !view.muteKnown) controls.push({
|
|
114350
|
+
kind: "action",
|
|
114351
|
+
action: action("volume.mute", t("Mute", "Muto"), "volume-x", "media-player", "setMute", { muted: true })
|
|
114352
|
+
});
|
|
114353
|
+
else if (view.mute) controls.push({
|
|
114326
114354
|
kind: "toggle",
|
|
114327
114355
|
id: "volume.mute",
|
|
114328
114356
|
label: t("Mute", "Muto"),
|
|
114329
|
-
on:
|
|
114357
|
+
on: muted,
|
|
114330
114358
|
turnOn: action("volume.mute", t("Mute", "Muto"), "volume-x", "media-player", "setMute", { muted: true }),
|
|
114331
114359
|
turnOff: action("volume.unmute", t("Unmute", "Riattiva"), "volume-2", "media-player", "setMute", { muted: false })
|
|
114332
114360
|
});
|
|
@@ -114560,7 +114588,6 @@ var CONTROL_LAYOUT = { rows: ["control"] };
|
|
|
114560
114588
|
var BUTTON_LAYOUT = { rows: ["button"] };
|
|
114561
114589
|
var HERO_LAYOUT_BY_TYPE = {
|
|
114562
114590
|
[DeviceType.Camera]: HERO_LAYOUT_DEFAULT,
|
|
114563
|
-
[DeviceType.Hub]: HERO_LAYOUT_DEFAULT,
|
|
114564
114591
|
[DeviceType.Light]: LIGHT_LAYOUT,
|
|
114565
114592
|
[DeviceType.Siren]: HERO_LAYOUT_DEFAULT,
|
|
114566
114593
|
[DeviceType.Switch]: SWITCH_LAYOUT,
|
|
@@ -115286,7 +115313,6 @@ var HERO_MODE_LOOK = {
|
|
|
115286
115313
|
var MODE_LOOK_TYPES = [DeviceType.Climate];
|
|
115287
115314
|
var HERO_LOOK_BY_TYPE = {
|
|
115288
115315
|
[DeviceType.Camera]: CAMERA_LOOK,
|
|
115289
|
-
[DeviceType.Hub]: HERO_LOOK_DEFAULT,
|
|
115290
115316
|
[DeviceType.Light]: LIGHT_LOOK,
|
|
115291
115317
|
[DeviceType.Siren]: HERO_LOOK_DEFAULT,
|
|
115292
115318
|
[DeviceType.Switch]: SWITCH_LOOK,
|
|
@@ -115582,14 +115608,17 @@ function historyLabelOf(type) {
|
|
|
115582
115608
|
}
|
|
115583
115609
|
/**
|
|
115584
115610
|
* A sensor that measures exactly ONE thing is drawn as that reading. Two measuring
|
|
115585
|
-
* caps (a temperature and a humidity on one device) keep today's card
|
|
115586
|
-
*
|
|
115611
|
+
* caps (a temperature and a humidity on one device) keep today's card. An offline
|
|
115612
|
+
* device keeps the measurement but with NO value: its last reading is no longer
|
|
115613
|
+
* current, so the card draws its normal self with an empty "—" (D393), never a
|
|
115614
|
+
* stale number and never a 0.
|
|
115587
115615
|
*/
|
|
115588
115616
|
function measurementOf(input, fragments) {
|
|
115589
|
-
if (input.device.type !== DeviceType.Sensor
|
|
115617
|
+
if (input.device.type !== DeviceType.Sensor) return void 0;
|
|
115590
115618
|
const measured = fragments.flatMap((f) => f.measurement === void 0 ? [] : [f.measurement]);
|
|
115591
115619
|
const only = measured.length === 1 ? measured[0] : void 0;
|
|
115592
|
-
|
|
115620
|
+
if (only === void 0 || !measurementFitsRole(only, input.device.role)) return void 0;
|
|
115621
|
+
return input.device.online ? only : emptyMeasurement(only.quantity);
|
|
115593
115622
|
}
|
|
115594
115623
|
function sceneOf(role, type, fragments) {
|
|
115595
115624
|
const parts = fragments.flatMap((f) => f.scene === void 0 ? [] : [f.scene]);
|
|
@@ -115609,7 +115638,8 @@ function buildHeroModel(input) {
|
|
|
115609
115638
|
now: input.now,
|
|
115610
115639
|
running: runningOf(input),
|
|
115611
115640
|
remoteCommands: input.remoteCommands,
|
|
115612
|
-
caps: input.caps
|
|
115641
|
+
caps: input.caps,
|
|
115642
|
+
quantity: device.quantity ?? null
|
|
115613
115643
|
};
|
|
115614
115644
|
const contributed = HERO_CAP_CONTRIBUTIONS.filter((c) => input.caps.includes(c.cap)).map((c) => ({
|
|
115615
115645
|
cap: c.cap,
|
|
@@ -127224,7 +127254,6 @@ function applianceExport(ecosystem, deviceType) {
|
|
|
127224
127254
|
/** The icon of each device type. */
|
|
127225
127255
|
var DEVICE_TYPE_ICON = {
|
|
127226
127256
|
[DeviceType.Camera]: "camera",
|
|
127227
|
-
[DeviceType.Hub]: "network",
|
|
127228
127257
|
[DeviceType.Light]: "lightbulb",
|
|
127229
127258
|
[DeviceType.Siren]: "siren",
|
|
127230
127259
|
[DeviceType.Switch]: "toggle-left",
|
|
@@ -143059,6 +143088,8 @@ var DIMENSION_QUANTITY = {
|
|
|
143059
143088
|
angle: "angle",
|
|
143060
143089
|
"sound-level": "sound-level",
|
|
143061
143090
|
"signal-level": "signal-level",
|
|
143091
|
+
"signal-ratio": "signal-ratio",
|
|
143092
|
+
frequency: "frequency",
|
|
143062
143093
|
"colour-temperature": "colour-temperature",
|
|
143063
143094
|
bitrate: "bitrate",
|
|
143064
143095
|
rate: "rate"
|
|
@@ -77,6 +77,11 @@ export interface AddonMigrationRunOptions {
|
|
|
77
77
|
* untouched, neither started nor reported — a later call runs them.
|
|
78
78
|
*/
|
|
79
79
|
readonly only?: readonly string[];
|
|
80
|
+
/**
|
|
81
|
+
* Ids this owner deliberately REMOVED from its catalogue. They are never run; an applied
|
|
82
|
+
* ledger row of one is reported `applied`, not `skipped-newer`, and raises no alert.
|
|
83
|
+
*/
|
|
84
|
+
readonly retired?: readonly string[];
|
|
80
85
|
}
|
|
81
86
|
/**
|
|
82
87
|
* Offer `migrations` to the engine and run what it says to run, in its order. Never
|
package/dist/node.js
CHANGED
|
@@ -21,8 +21,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
21
21
|
enumerable: true
|
|
22
22
|
}) : target, mod));
|
|
23
23
|
//#endregion
|
|
24
|
-
const require_composed_stable_id = require("./composed-stable-id-
|
|
25
|
-
const require_implemented_methods = require("./implemented-methods-
|
|
24
|
+
const require_composed_stable_id = require("./composed-stable-id-BzXh1Swk.js");
|
|
25
|
+
const require_implemented_methods = require("./implemented-methods-D4F6RWkO.js");
|
|
26
26
|
let node_crypto = require("node:crypto");
|
|
27
27
|
let node_fs = require("node:fs");
|
|
28
28
|
node_fs = __toESM(node_fs);
|
package/dist/node.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as errMsg } from "./composed-stable-id-
|
|
2
|
-
import { Gn as FFMPEG_RELEASE, Hn as FFMPEG_PATH_ENV, Jn as canonicalHash, Kn as getFfmpegArtifact, Un as chooseFfmpegBinary, Wn as ffmpegBinaryName, Yn as Fmp4BoxSplitter, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, er as buildFfmpegArgs, ir as isSoftwareDecode, qn as getFfmpegDownloadUrl, t as implementedMethodsOf, z as compositionSourceKey } from "./implemented-methods-
|
|
1
|
+
import { s as errMsg } from "./composed-stable-id-COP6zOXx.mjs";
|
|
2
|
+
import { Gn as FFMPEG_RELEASE, Hn as FFMPEG_PATH_ENV, Jn as canonicalHash, Kn as getFfmpegArtifact, Un as chooseFfmpegBinary, Wn as ffmpegBinaryName, Yn as Fmp4BoxSplitter, a as CUSTOMIZATION_BLOCK_NAME_PREFIX, er as buildFfmpegArgs, ir as isSoftwareDecode, qn as getFfmpegDownloadUrl, t as implementedMethodsOf, z as compositionSourceKey } from "./implemented-methods-0xxMOekw.mjs";
|
|
3
3
|
import { createHash, createHmac, randomUUID, timingSafeEqual } from "node:crypto";
|
|
4
4
|
import * as fs from "node:fs";
|
|
5
5
|
import { chmodSync, copyFileSync, createWriteStream, existsSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|