@camstack/types 1.2.563 → 1.2.564
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 +11 -0
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- 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/remote.cap.d.ts +1 -0
- package/dist/client.js +2 -0
- package/dist/client.mjs +2 -0
- package/dist/{convert-BmtM6K-5.js → convert-BI8iTXn6.js} +15 -0
- package/dist/{convert-BAzH15HU.mjs → convert-BwMfbk5b.mjs} +15 -0
- 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-row.d.ts +1 -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/history-catalog.d.ts +1 -1
- package/dist/index.js +50 -15
- package/dist/index.mjs +50 -15
- package/dist/{sleep-RUgd-FgK.js → sleep-B1IED7ED.js} +12 -0
- package/dist/{sleep-BCWQQG52.mjs → sleep-D7hCDd7y.mjs} +12 -0
- 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
|
@@ -331,6 +331,21 @@ var UNIT_TABLE = {
|
|
|
331
331
|
factor: 1,
|
|
332
332
|
offset: 0
|
|
333
333
|
},
|
|
334
|
+
dB: {
|
|
335
|
+
dimension: "signal-ratio",
|
|
336
|
+
factor: 1,
|
|
337
|
+
offset: 0
|
|
338
|
+
},
|
|
339
|
+
Hz: {
|
|
340
|
+
dimension: "frequency",
|
|
341
|
+
factor: 1,
|
|
342
|
+
offset: 0
|
|
343
|
+
},
|
|
344
|
+
kHz: {
|
|
345
|
+
dimension: "frequency",
|
|
346
|
+
factor: 1e3,
|
|
347
|
+
offset: 0
|
|
348
|
+
},
|
|
334
349
|
mired: {
|
|
335
350
|
dimension: "colour-temperature",
|
|
336
351
|
factor: 1,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ReadingQuantity } from '../../units/quantity.js';
|
|
1
2
|
import type { HeroModel } from './hero-model.js';
|
|
2
3
|
export interface HeroModelInput {
|
|
3
4
|
readonly device: {
|
|
@@ -8,6 +9,8 @@ export interface HeroModelInput {
|
|
|
8
9
|
readonly online: boolean;
|
|
9
10
|
/** The integration or brand the device comes from ("Midea"); drawn as a chip when known. */
|
|
10
11
|
readonly integration?: string | null;
|
|
12
|
+
/** What a numeric-sensor measures; names the unit its reading shows. */
|
|
13
|
+
readonly quantity?: ReadingQuantity | null;
|
|
11
14
|
};
|
|
12
15
|
/** Kebab cap names the device is bound to. */
|
|
13
16
|
readonly caps: readonly string[];
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* What ONE capability adds to a hero (D1023), and the context it reads.
|
|
3
3
|
* Contributions return a fragment; `buildHeroModel` merges the fragments.
|
|
4
4
|
*/
|
|
5
|
+
import type { ReadingQuantity } from '../../units/quantity.js';
|
|
5
6
|
import type { HeroBadge, HeroConsumablesSlot, HeroConsumptionSlot, HeroFact, HeroOwnPowerSlot, HeroPowerSupplySlot, HeroRemoteSlot, HeroRow, HeroSideTile, HeroTimedRunSlot } from './hero-model.js';
|
|
6
7
|
import type { HeroMeasurement } from './hero-measurement.js';
|
|
7
8
|
import type { HeroSceneMode } from './hero-scene.js';
|
|
@@ -33,6 +34,8 @@ export interface HeroContext {
|
|
|
33
34
|
readonly remoteCommands: number | null;
|
|
34
35
|
/** The caps the device is bound to: a contribution that overlaps another cap's fact yields to it. */
|
|
35
36
|
readonly caps: readonly string[];
|
|
37
|
+
/** What a numeric-sensor measures (stored at adopt); `null`/absent = unknown, the number shows bare. */
|
|
38
|
+
readonly quantity?: ReadingQuantity | null;
|
|
36
39
|
}
|
|
37
40
|
export interface HeroFragment {
|
|
38
41
|
readonly reading?: StateReading;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*
|
|
24
24
|
* - `extras` are the further inline controls of the types that carry more than one
|
|
25
25
|
* ({@link ROW_EXTRAS_BY_TYPE}): climate setpoint, a robot's return to base,
|
|
26
|
-
* a player's volume and remote. Each is a control the model already has, named by id,
|
|
26
|
+
* a player's volume and remote, an automation's enabled switch. Each is a control the model already has, named by id,
|
|
27
27
|
* in that order and at most {@link ROW_EXTRAS_MAX}; one the model lacks, or lists in
|
|
28
28
|
* `gated`, is absent, and the one `primary` already is never repeats. Empty = the
|
|
29
29
|
* row of an older server: `primary` alone.
|
|
@@ -86,10 +86,11 @@ export interface MediaPlayerView {
|
|
|
86
86
|
readonly volume: VolumeView;
|
|
87
87
|
/** The device reported a level; false draws the slider as unknown. */
|
|
88
88
|
readonly volumeKnown: boolean;
|
|
89
|
+
/** True only when the status sets `muteReadback`. Absent or false is not a reading. */
|
|
89
90
|
readonly muteKnown: boolean;
|
|
90
91
|
/** Artwork of what is playing; null when there is none. */
|
|
91
92
|
readonly artworkUrl: string | null;
|
|
92
|
-
/** A mute toggle
|
|
93
|
+
/** A mute control is offered; a toggle only when `muteKnown`, else a momentary key. */
|
|
93
94
|
readonly mute: boolean;
|
|
94
95
|
readonly source: SourceView | null;
|
|
95
96
|
/** Channel up / down is offered; null when the device does not declare channel stepping. */
|
|
@@ -32,7 +32,7 @@ export declare const SourceInfoSchema: z.ZodObject<{
|
|
|
32
32
|
id: z.ZodString;
|
|
33
33
|
system: z.ZodString;
|
|
34
34
|
uniqueId: z.ZodOptional<z.ZodString>;
|
|
35
|
-
quantity: z.ZodOptional<z.ZodType<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown, z.core.$ZodTypeInternals<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown>>>;
|
|
35
|
+
quantity: z.ZodOptional<z.ZodType<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "frequency" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "signal-ratio" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown, z.core.$ZodTypeInternals<"angle" | "apparent-power" | "area" | "bitrate" | "colour-temperature" | "concentration-mass" | "concentration-ppb" | "concentration-volume" | "count" | "current" | "device" | "duration" | "duration-ms" | "energy" | "frequency" | "humidity" | "illuminance" | "index" | "information" | "irradiance" | "length" | "mass" | "none" | "percentage" | "power" | "precipitation" | "precipitation-rate" | "pressure" | "rate" | "ratio" | "signal-level" | "signal-ratio" | "sound-level" | "speed" | "temperature" | "voltage" | "volume", unknown>>>;
|
|
36
36
|
dateTimeShape: z.ZodOptional<z.ZodEnum<{
|
|
37
37
|
date: "date";
|
|
38
38
|
datetime: "datetime";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `ALL_CAPABILITY_DEFINITIONS` (the whole Zod schema graph, ~+100 MB heap per
|
|
6
6
|
* runner). See docs/decisions/adr-0028.md.
|
|
7
7
|
*
|
|
8
|
-
* Coverage: 1 advance-derived caps, 84 caps with
|
|
8
|
+
* Coverage: 1 advance-derived caps, 84 caps with 418 state leaves, 15 caps with a declared method timeout.
|
|
9
9
|
*/
|
|
10
10
|
/** A bindable scalar in a capability's runtime state. */
|
|
11
11
|
export interface CapStateLeaf {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CapabilityHistoryField, CapabilityHistoryItems } from '../capabilities/capability-definition.js';
|
|
2
2
|
/**
|
|
3
3
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
4
|
-
* 45 caps with series (
|
|
4
|
+
* 45 caps with series (104 series), 37 caps answered `'none'`.
|
|
5
5
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
6
6
|
*/
|
|
7
7
|
export declare const HISTORY_CATALOG: Readonly<Record<string, Readonly<Record<string, CapabilityHistoryField>>>>;
|
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-B1IED7ED.js");
|
|
3
3
|
const require_event_category = require("./event-category-Ps2LC8dN.js");
|
|
4
4
|
const require_composed_stable_id = require("./composed-stable-id-Bp33yrYi.js");
|
|
5
5
|
const require_implemented_methods = require("./implemented-methods-CDYOCn9a.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.
|
|
@@ -50568,7 +50574,7 @@ function groupTemplate(id) {
|
|
|
50568
50574
|
//#region src/generated/history-catalog.ts
|
|
50569
50575
|
/**
|
|
50570
50576
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
50571
|
-
* 45 caps with series (
|
|
50577
|
+
* 45 caps with series (104 series), 37 caps answered `'none'`.
|
|
50572
50578
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
50573
50579
|
*/
|
|
50574
50580
|
var HISTORY_CATALOG = {
|
|
@@ -50789,6 +50795,12 @@ var HISTORY_CATALOG = {
|
|
|
50789
50795
|
kind: "counter",
|
|
50790
50796
|
unit: "kWh",
|
|
50791
50797
|
displayName: "Storage discharged"
|
|
50798
|
+
},
|
|
50799
|
+
"storage.healthPct": {
|
|
50800
|
+
kind: "gauge",
|
|
50801
|
+
unit: "%",
|
|
50802
|
+
deadband: 1,
|
|
50803
|
+
displayName: "Storage health"
|
|
50792
50804
|
}
|
|
50793
50805
|
},
|
|
50794
50806
|
"enum-sensor": { "value": {
|
|
@@ -60304,7 +60316,9 @@ var EnergyStorageSchema = zod.z.object({
|
|
|
60304
60316
|
/** Lifetime discharged, kWh. */
|
|
60305
60317
|
dischargedKwh: zod.z.number().nullable().meta(require_sleep.readingMeta("energy")),
|
|
60306
60318
|
chargedTodayKwh: zod.z.number().nullable().meta(require_sleep.readingMeta("energy")),
|
|
60307
|
-
dischargedTodayKwh: zod.z.number().nullable().meta(require_sleep.readingMeta("energy"))
|
|
60319
|
+
dischargedTodayKwh: zod.z.number().nullable().meta(require_sleep.readingMeta("energy")),
|
|
60320
|
+
/** State of health, 0..100. Null when the system did not report it. */
|
|
60321
|
+
healthPct: zod.z.number().nullable().meta(require_sleep.readingMeta("percentage"))
|
|
60308
60322
|
});
|
|
60309
60323
|
var EnergySystemStatusSchema = zod.z.object({
|
|
60310
60324
|
solar: EnergySolarSchema.nullable(),
|
|
@@ -60427,6 +60441,12 @@ var energySystemCapability = {
|
|
|
60427
60441
|
kind: "counter",
|
|
60428
60442
|
unit: "kWh",
|
|
60429
60443
|
displayName: "Storage discharged"
|
|
60444
|
+
},
|
|
60445
|
+
"storage.healthPct": {
|
|
60446
|
+
kind: "gauge",
|
|
60447
|
+
unit: "%",
|
|
60448
|
+
deadband: 1,
|
|
60449
|
+
displayName: "Storage health"
|
|
60430
60450
|
}
|
|
60431
60451
|
} },
|
|
60432
60452
|
volatileStateFields: ["lastFetchedAt"],
|
|
@@ -63926,7 +63946,7 @@ var HeroModelSchema = zod.z.object({
|
|
|
63926
63946
|
*
|
|
63927
63947
|
* - `extras` are the further inline controls of the types that carry more than one
|
|
63928
63948
|
* ({@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,
|
|
63949
|
+
* a player's volume and remote, an automation's enabled switch. Each is a control the model already has, named by id,
|
|
63930
63950
|
* in that order and at most {@link ROW_EXTRAS_MAX}; one the model lacks, or lists in
|
|
63931
63951
|
* `gated`, is absent, and the one `primary` already is never repeats. Empty = the
|
|
63932
63952
|
* row of an older server: `primary` alone.
|
|
@@ -64042,7 +64062,8 @@ var ROW_EXTRAS_BY_TYPE = {
|
|
|
64042
64062
|
[require_composed_stable_id.DeviceType.Climate]: ["climate.target"],
|
|
64043
64063
|
[require_composed_stable_id.DeviceType.Vacuum]: ["vacuum.base"],
|
|
64044
64064
|
[require_composed_stable_id.DeviceType.LawnMower]: ["mower.dock"],
|
|
64045
|
-
[require_composed_stable_id.DeviceType.MediaPlayer]: ["volume.level", REMOTE_OPEN_ACTION_ID]
|
|
64065
|
+
[require_composed_stable_id.DeviceType.MediaPlayer]: ["volume.level", REMOTE_OPEN_ACTION_ID],
|
|
64066
|
+
[require_composed_stable_id.DeviceType.Automation]: ["automation.enabled"]
|
|
64046
64067
|
};
|
|
64047
64068
|
var controlId = (c) => c.kind === "action" ? c.action.id : c.id;
|
|
64048
64069
|
function extraOf(model, id) {
|
|
@@ -113408,7 +113429,11 @@ var temperatureContribution = contribution("temperature-sensor", TemperatureSens
|
|
|
113408
113429
|
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
113430
|
var pressureContribution = contribution("pressure-sensor", PressureSensorStatusSchema, (slice) => sensorFragment(slice?.pressure ?? null, "pressure", "gauge", "Pressure", "Pressione", `${Math.round(slice?.pressure ?? 0)} hPa`));
|
|
113410
113431
|
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) =>
|
|
113432
|
+
var numericContribution = contribution("numeric-sensor", NumericSensorStatusSchema, (slice, ctx) => {
|
|
113433
|
+
const unit = ctx.quantity == null ? void 0 : require_sleep.baseUnitOf(ctx.quantity);
|
|
113434
|
+
const text = String(Number((slice?.value ?? 0).toFixed(2)));
|
|
113435
|
+
return sensorFragment(slice?.value ?? null, "reading", "gauge", "Value", "Valore", unit === void 0 ? text : `${text} ${unit}`);
|
|
113436
|
+
});
|
|
113412
113437
|
var enumContribution = contribution("enum-sensor", EnumSensorStatusSchema, (slice) => {
|
|
113413
113438
|
if (slice === void 0 || slice.value === "") return measured({ reading: reading("sensor", "unknown") }, emptyMeasurement("text"));
|
|
113414
113439
|
if (slice.timestamp === true) return { reading: reading("sensor", "on") };
|
|
@@ -113909,7 +113934,7 @@ function deriveFromStatus(status, features) {
|
|
|
113909
113934
|
volume,
|
|
113910
113935
|
mute: has(require_composed_stable_id.DeviceFeature.MediaPlayerMute) || volume === "slider" && status.isMuted !== null,
|
|
113911
113936
|
volumeKnown: status.volumeLevel !== null,
|
|
113912
|
-
muteKnown: status.
|
|
113937
|
+
muteKnown: status.muteReadback === true,
|
|
113913
113938
|
artworkUrl: artworkOf(status),
|
|
113914
113939
|
source: hasSource ? {
|
|
113915
113940
|
current: sourceName,
|
|
@@ -114323,11 +114348,15 @@ function volumeControls(view, volumeLevel, muted) {
|
|
|
114323
114348
|
valueArg: "volumeLevel"
|
|
114324
114349
|
});
|
|
114325
114350
|
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({
|
|
114351
|
+
if (view.mute && !view.muteKnown) controls.push({
|
|
114352
|
+
kind: "action",
|
|
114353
|
+
action: action("volume.mute", require_sleep.t("Mute", "Muto"), "volume-x", "media-player", "setMute", { muted: true })
|
|
114354
|
+
});
|
|
114355
|
+
else if (view.mute) controls.push({
|
|
114327
114356
|
kind: "toggle",
|
|
114328
114357
|
id: "volume.mute",
|
|
114329
114358
|
label: require_sleep.t("Mute", "Muto"),
|
|
114330
|
-
on:
|
|
114359
|
+
on: muted,
|
|
114331
114360
|
turnOn: action("volume.mute", require_sleep.t("Mute", "Muto"), "volume-x", "media-player", "setMute", { muted: true }),
|
|
114332
114361
|
turnOff: action("volume.unmute", require_sleep.t("Unmute", "Riattiva"), "volume-2", "media-player", "setMute", { muted: false })
|
|
114333
114362
|
});
|
|
@@ -115583,14 +115612,17 @@ function historyLabelOf(type) {
|
|
|
115583
115612
|
}
|
|
115584
115613
|
/**
|
|
115585
115614
|
* 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
|
-
*
|
|
115615
|
+
* caps (a temperature and a humidity on one device) keep today's card. An offline
|
|
115616
|
+
* device keeps the measurement but with NO value: its last reading is no longer
|
|
115617
|
+
* current, so the card draws its normal self with an empty "—" (D393), never a
|
|
115618
|
+
* stale number and never a 0.
|
|
115588
115619
|
*/
|
|
115589
115620
|
function measurementOf(input, fragments) {
|
|
115590
|
-
if (input.device.type !== require_composed_stable_id.DeviceType.Sensor
|
|
115621
|
+
if (input.device.type !== require_composed_stable_id.DeviceType.Sensor) return void 0;
|
|
115591
115622
|
const measured = fragments.flatMap((f) => f.measurement === void 0 ? [] : [f.measurement]);
|
|
115592
115623
|
const only = measured.length === 1 ? measured[0] : void 0;
|
|
115593
|
-
|
|
115624
|
+
if (only === void 0 || !measurementFitsRole(only, input.device.role)) return void 0;
|
|
115625
|
+
return input.device.online ? only : emptyMeasurement(only.quantity);
|
|
115594
115626
|
}
|
|
115595
115627
|
function sceneOf(role, type, fragments) {
|
|
115596
115628
|
const parts = fragments.flatMap((f) => f.scene === void 0 ? [] : [f.scene]);
|
|
@@ -115610,7 +115642,8 @@ function buildHeroModel(input) {
|
|
|
115610
115642
|
now: input.now,
|
|
115611
115643
|
running: runningOf(input),
|
|
115612
115644
|
remoteCommands: input.remoteCommands,
|
|
115613
|
-
caps: input.caps
|
|
115645
|
+
caps: input.caps,
|
|
115646
|
+
quantity: device.quantity ?? null
|
|
115614
115647
|
};
|
|
115615
115648
|
const contributed = HERO_CAP_CONTRIBUTIONS.filter((c) => input.caps.includes(c.cap)).map((c) => ({
|
|
115616
115649
|
cap: c.cap,
|
|
@@ -143060,6 +143093,8 @@ var DIMENSION_QUANTITY = {
|
|
|
143060
143093
|
angle: "angle",
|
|
143061
143094
|
"sound-level": "sound-level",
|
|
143062
143095
|
"signal-level": "signal-level",
|
|
143096
|
+
"signal-ratio": "signal-ratio",
|
|
143097
|
+
frequency: "frequency",
|
|
143063
143098
|
"colour-temperature": "colour-temperature",
|
|
143064
143099
|
bitrate: "bitrate",
|
|
143065
143100
|
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-D7hCDd7y.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
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-B3wcvtvW.mjs";
|
|
4
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-CgUBu6uM.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.
|
|
@@ -50567,7 +50573,7 @@ function groupTemplate(id) {
|
|
|
50567
50573
|
//#region src/generated/history-catalog.ts
|
|
50568
50574
|
/**
|
|
50569
50575
|
* Cap history catalog, projected from every `*.cap.ts` `history` block.
|
|
50570
|
-
* 45 caps with series (
|
|
50576
|
+
* 45 caps with series (104 series), 37 caps answered `'none'`.
|
|
50571
50577
|
* Field keys are `runtimeState` paths (`a.b` into fixed objects only).
|
|
50572
50578
|
*/
|
|
50573
50579
|
var HISTORY_CATALOG = {
|
|
@@ -50788,6 +50794,12 @@ var HISTORY_CATALOG = {
|
|
|
50788
50794
|
kind: "counter",
|
|
50789
50795
|
unit: "kWh",
|
|
50790
50796
|
displayName: "Storage discharged"
|
|
50797
|
+
},
|
|
50798
|
+
"storage.healthPct": {
|
|
50799
|
+
kind: "gauge",
|
|
50800
|
+
unit: "%",
|
|
50801
|
+
deadband: 1,
|
|
50802
|
+
displayName: "Storage health"
|
|
50791
50803
|
}
|
|
50792
50804
|
},
|
|
50793
50805
|
"enum-sensor": { "value": {
|
|
@@ -60303,7 +60315,9 @@ var EnergyStorageSchema = z.object({
|
|
|
60303
60315
|
/** Lifetime discharged, kWh. */
|
|
60304
60316
|
dischargedKwh: z.number().nullable().meta(readingMeta("energy")),
|
|
60305
60317
|
chargedTodayKwh: z.number().nullable().meta(readingMeta("energy")),
|
|
60306
|
-
dischargedTodayKwh: z.number().nullable().meta(readingMeta("energy"))
|
|
60318
|
+
dischargedTodayKwh: z.number().nullable().meta(readingMeta("energy")),
|
|
60319
|
+
/** State of health, 0..100. Null when the system did not report it. */
|
|
60320
|
+
healthPct: z.number().nullable().meta(readingMeta("percentage"))
|
|
60307
60321
|
});
|
|
60308
60322
|
var EnergySystemStatusSchema = z.object({
|
|
60309
60323
|
solar: EnergySolarSchema.nullable(),
|
|
@@ -60426,6 +60440,12 @@ var energySystemCapability = {
|
|
|
60426
60440
|
kind: "counter",
|
|
60427
60441
|
unit: "kWh",
|
|
60428
60442
|
displayName: "Storage discharged"
|
|
60443
|
+
},
|
|
60444
|
+
"storage.healthPct": {
|
|
60445
|
+
kind: "gauge",
|
|
60446
|
+
unit: "%",
|
|
60447
|
+
deadband: 1,
|
|
60448
|
+
displayName: "Storage health"
|
|
60429
60449
|
}
|
|
60430
60450
|
} },
|
|
60431
60451
|
volatileStateFields: ["lastFetchedAt"],
|
|
@@ -63925,7 +63945,7 @@ var HeroModelSchema = z.object({
|
|
|
63925
63945
|
*
|
|
63926
63946
|
* - `extras` are the further inline controls of the types that carry more than one
|
|
63927
63947
|
* ({@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,
|
|
63948
|
+
* a player's volume and remote, an automation's enabled switch. Each is a control the model already has, named by id,
|
|
63929
63949
|
* in that order and at most {@link ROW_EXTRAS_MAX}; one the model lacks, or lists in
|
|
63930
63950
|
* `gated`, is absent, and the one `primary` already is never repeats. Empty = the
|
|
63931
63951
|
* row of an older server: `primary` alone.
|
|
@@ -64041,7 +64061,8 @@ var ROW_EXTRAS_BY_TYPE = {
|
|
|
64041
64061
|
[DeviceType.Climate]: ["climate.target"],
|
|
64042
64062
|
[DeviceType.Vacuum]: ["vacuum.base"],
|
|
64043
64063
|
[DeviceType.LawnMower]: ["mower.dock"],
|
|
64044
|
-
[DeviceType.MediaPlayer]: ["volume.level", REMOTE_OPEN_ACTION_ID]
|
|
64064
|
+
[DeviceType.MediaPlayer]: ["volume.level", REMOTE_OPEN_ACTION_ID],
|
|
64065
|
+
[DeviceType.Automation]: ["automation.enabled"]
|
|
64045
64066
|
};
|
|
64046
64067
|
var controlId = (c) => c.kind === "action" ? c.action.id : c.id;
|
|
64047
64068
|
function extraOf(model, id) {
|
|
@@ -113407,7 +113428,11 @@ var temperatureContribution = contribution("temperature-sensor", TemperatureSens
|
|
|
113407
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)));
|
|
113408
113429
|
var pressureContribution = contribution("pressure-sensor", PressureSensorStatusSchema, (slice) => sensorFragment(slice?.pressure ?? null, "pressure", "gauge", "Pressure", "Pressione", `${Math.round(slice?.pressure ?? 0)} hPa`));
|
|
113409
113430
|
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) =>
|
|
113431
|
+
var numericContribution = contribution("numeric-sensor", NumericSensorStatusSchema, (slice, ctx) => {
|
|
113432
|
+
const unit = ctx.quantity == null ? void 0 : 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
|
+
});
|
|
113411
113436
|
var enumContribution = contribution("enum-sensor", EnumSensorStatusSchema, (slice) => {
|
|
113412
113437
|
if (slice === void 0 || slice.value === "") return measured({ reading: reading("sensor", "unknown") }, emptyMeasurement("text"));
|
|
113413
113438
|
if (slice.timestamp === true) return { reading: reading("sensor", "on") };
|
|
@@ -113908,7 +113933,7 @@ function deriveFromStatus(status, features) {
|
|
|
113908
113933
|
volume,
|
|
113909
113934
|
mute: has(DeviceFeature.MediaPlayerMute) || volume === "slider" && status.isMuted !== null,
|
|
113910
113935
|
volumeKnown: status.volumeLevel !== null,
|
|
113911
|
-
muteKnown: status.
|
|
113936
|
+
muteKnown: status.muteReadback === true,
|
|
113912
113937
|
artworkUrl: artworkOf(status),
|
|
113913
113938
|
source: hasSource ? {
|
|
113914
113939
|
current: sourceName,
|
|
@@ -114322,11 +114347,15 @@ function volumeControls(view, volumeLevel, muted) {
|
|
|
114322
114347
|
valueArg: "volumeLevel"
|
|
114323
114348
|
});
|
|
114324
114349
|
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({
|
|
114350
|
+
if (view.mute && !view.muteKnown) controls.push({
|
|
114351
|
+
kind: "action",
|
|
114352
|
+
action: action("volume.mute", t("Mute", "Muto"), "volume-x", "media-player", "setMute", { muted: true })
|
|
114353
|
+
});
|
|
114354
|
+
else if (view.mute) controls.push({
|
|
114326
114355
|
kind: "toggle",
|
|
114327
114356
|
id: "volume.mute",
|
|
114328
114357
|
label: t("Mute", "Muto"),
|
|
114329
|
-
on:
|
|
114358
|
+
on: muted,
|
|
114330
114359
|
turnOn: action("volume.mute", t("Mute", "Muto"), "volume-x", "media-player", "setMute", { muted: true }),
|
|
114331
114360
|
turnOff: action("volume.unmute", t("Unmute", "Riattiva"), "volume-2", "media-player", "setMute", { muted: false })
|
|
114332
114361
|
});
|
|
@@ -115582,14 +115611,17 @@ function historyLabelOf(type) {
|
|
|
115582
115611
|
}
|
|
115583
115612
|
/**
|
|
115584
115613
|
* 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
|
-
*
|
|
115614
|
+
* caps (a temperature and a humidity on one device) keep today's card. An offline
|
|
115615
|
+
* device keeps the measurement but with NO value: its last reading is no longer
|
|
115616
|
+
* current, so the card draws its normal self with an empty "—" (D393), never a
|
|
115617
|
+
* stale number and never a 0.
|
|
115587
115618
|
*/
|
|
115588
115619
|
function measurementOf(input, fragments) {
|
|
115589
|
-
if (input.device.type !== DeviceType.Sensor
|
|
115620
|
+
if (input.device.type !== DeviceType.Sensor) return void 0;
|
|
115590
115621
|
const measured = fragments.flatMap((f) => f.measurement === void 0 ? [] : [f.measurement]);
|
|
115591
115622
|
const only = measured.length === 1 ? measured[0] : void 0;
|
|
115592
|
-
|
|
115623
|
+
if (only === void 0 || !measurementFitsRole(only, input.device.role)) return void 0;
|
|
115624
|
+
return input.device.online ? only : emptyMeasurement(only.quantity);
|
|
115593
115625
|
}
|
|
115594
115626
|
function sceneOf(role, type, fragments) {
|
|
115595
115627
|
const parts = fragments.flatMap((f) => f.scene === void 0 ? [] : [f.scene]);
|
|
@@ -115609,7 +115641,8 @@ function buildHeroModel(input) {
|
|
|
115609
115641
|
now: input.now,
|
|
115610
115642
|
running: runningOf(input),
|
|
115611
115643
|
remoteCommands: input.remoteCommands,
|
|
115612
|
-
caps: input.caps
|
|
115644
|
+
caps: input.caps,
|
|
115645
|
+
quantity: device.quantity ?? null
|
|
115613
115646
|
};
|
|
115614
115647
|
const contributed = HERO_CAP_CONTRIBUTIONS.filter((c) => input.caps.includes(c.cap)).map((c) => ({
|
|
115615
115648
|
cap: c.cap,
|
|
@@ -143059,6 +143092,8 @@ var DIMENSION_QUANTITY = {
|
|
|
143059
143092
|
angle: "angle",
|
|
143060
143093
|
"sound-level": "sound-level",
|
|
143061
143094
|
"signal-level": "signal-level",
|
|
143095
|
+
"signal-ratio": "signal-ratio",
|
|
143096
|
+
frequency: "frequency",
|
|
143062
143097
|
"colour-temperature": "colour-temperature",
|
|
143063
143098
|
bitrate: "bitrate",
|
|
143064
143099
|
rate: "rate"
|
|
@@ -6850,6 +6850,8 @@ var READING_QUANTITIES = [
|
|
|
6850
6850
|
"information",
|
|
6851
6851
|
"sound-level",
|
|
6852
6852
|
"signal-level",
|
|
6853
|
+
"signal-ratio",
|
|
6854
|
+
"frequency",
|
|
6853
6855
|
"colour-temperature",
|
|
6854
6856
|
"angle",
|
|
6855
6857
|
"bitrate",
|
|
@@ -6896,6 +6898,8 @@ var QUANTITY_BASE = {
|
|
|
6896
6898
|
information: "B",
|
|
6897
6899
|
"sound-level": "dBFS",
|
|
6898
6900
|
"signal-level": "dBm",
|
|
6901
|
+
"signal-ratio": "dB",
|
|
6902
|
+
frequency: "Hz",
|
|
6899
6903
|
"colour-temperature": "mired",
|
|
6900
6904
|
angle: "°",
|
|
6901
6905
|
bitrate: "kbps",
|
|
@@ -18002,6 +18006,10 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
18002
18006
|
{
|
|
18003
18007
|
"path": "storage.dischargedTodayKwh",
|
|
18004
18008
|
"valueType": "number"
|
|
18009
|
+
},
|
|
18010
|
+
{
|
|
18011
|
+
"path": "storage.healthPct",
|
|
18012
|
+
"valueType": "number"
|
|
18005
18013
|
}
|
|
18006
18014
|
],
|
|
18007
18015
|
"enum-sensor": [{
|
|
@@ -18382,6 +18390,10 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
18382
18390
|
"path": "isMuted",
|
|
18383
18391
|
"valueType": "boolean"
|
|
18384
18392
|
},
|
|
18393
|
+
{
|
|
18394
|
+
"path": "muteReadback",
|
|
18395
|
+
"valueType": "boolean"
|
|
18396
|
+
},
|
|
18385
18397
|
{
|
|
18386
18398
|
"path": "source",
|
|
18387
18399
|
"valueType": "string"
|
|
@@ -6850,6 +6850,8 @@ var READING_QUANTITIES = [
|
|
|
6850
6850
|
"information",
|
|
6851
6851
|
"sound-level",
|
|
6852
6852
|
"signal-level",
|
|
6853
|
+
"signal-ratio",
|
|
6854
|
+
"frequency",
|
|
6853
6855
|
"colour-temperature",
|
|
6854
6856
|
"angle",
|
|
6855
6857
|
"bitrate",
|
|
@@ -6896,6 +6898,8 @@ var QUANTITY_BASE = {
|
|
|
6896
6898
|
information: "B",
|
|
6897
6899
|
"sound-level": "dBFS",
|
|
6898
6900
|
"signal-level": "dBm",
|
|
6901
|
+
"signal-ratio": "dB",
|
|
6902
|
+
frequency: "Hz",
|
|
6899
6903
|
"colour-temperature": "mired",
|
|
6900
6904
|
angle: "°",
|
|
6901
6905
|
bitrate: "kbps",
|
|
@@ -18002,6 +18006,10 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
18002
18006
|
{
|
|
18003
18007
|
"path": "storage.dischargedTodayKwh",
|
|
18004
18008
|
"valueType": "number"
|
|
18009
|
+
},
|
|
18010
|
+
{
|
|
18011
|
+
"path": "storage.healthPct",
|
|
18012
|
+
"valueType": "number"
|
|
18005
18013
|
}
|
|
18006
18014
|
],
|
|
18007
18015
|
"enum-sensor": [{
|
|
@@ -18382,6 +18390,10 @@ var CAP_STATE_LEAVES = Object.freeze({
|
|
|
18382
18390
|
"path": "isMuted",
|
|
18383
18391
|
"valueType": "boolean"
|
|
18384
18392
|
},
|
|
18393
|
+
{
|
|
18394
|
+
"path": "muteReadback",
|
|
18395
|
+
"valueType": "boolean"
|
|
18396
|
+
},
|
|
18385
18397
|
{
|
|
18386
18398
|
"path": "source",
|
|
18387
18399
|
"valueType": "string"
|
package/dist/units/quantity.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* numeric control): the quantity is chosen once, on the device, at adopt.
|
|
10
10
|
*/
|
|
11
11
|
import { z } from 'zod';
|
|
12
|
-
declare const READING_QUANTITY_VALUES: readonly ['temperature', 'pressure', 'speed', 'precipitation', 'precipitation-rate', 'length', 'area', 'illuminance', 'irradiance', 'power', 'energy', 'voltage', 'current', 'apparent-power', 'humidity', 'percentage', 'concentration-volume', 'concentration-mass', 'concentration-ppb', 'volume', 'duration', 'duration-ms', 'information', 'sound-level', 'signal-level', 'colour-temperature', 'angle', 'bitrate', 'rate', 'mass', 'index', 'ratio', 'count', 'none', 'device'];
|
|
12
|
+
declare const READING_QUANTITY_VALUES: readonly ['temperature', 'pressure', 'speed', 'precipitation', 'precipitation-rate', 'length', 'area', 'illuminance', 'irradiance', 'power', 'energy', 'voltage', 'current', 'apparent-power', 'humidity', 'percentage', 'concentration-volume', 'concentration-mass', 'concentration-ppb', 'volume', 'duration', 'duration-ms', 'information', 'sound-level', 'signal-level', 'signal-ratio', 'frequency', 'colour-temperature', 'angle', 'bitrate', 'rate', 'mass', 'index', 'ratio', 'count', 'none', 'device'];
|
|
13
13
|
export declare const READING_QUANTITIES: typeof READING_QUANTITY_VALUES;
|
|
14
14
|
export type ReadingQuantity = (typeof READING_QUANTITIES)[number];
|
|
15
15
|
export declare const ReadingQuantitySchema: z.ZodType<ReadingQuantity>;
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* conversion stays refused.
|
|
24
24
|
*/
|
|
25
25
|
/** The physical dimensions CamStack surfaces across HA + Ecowitt + vendors. */
|
|
26
|
-
export type UnitDimension = 'temperature' | 'pressure' | 'speed' | 'precipitation-rate' | 'length' | 'area' | 'illuminance' | 'irradiance' | 'power' | 'apparent-power' | 'energy' | 'voltage' | 'current' | 'concentration-volume' | 'concentration-mass' | 'mass' | 'percentage' | 'volume' | 'duration' | 'information' | 'angle' | 'sound-level' | 'signal-level' | 'colour-temperature' | 'bitrate' | 'rate';
|
|
26
|
+
export type UnitDimension = 'temperature' | 'pressure' | 'speed' | 'precipitation-rate' | 'length' | 'area' | 'illuminance' | 'irradiance' | 'power' | 'apparent-power' | 'energy' | 'voltage' | 'current' | 'concentration-volume' | 'concentration-mass' | 'mass' | 'percentage' | 'volume' | 'duration' | 'information' | 'angle' | 'sound-level' | 'signal-level' | 'signal-ratio' | 'frequency' | 'colour-temperature' | 'bitrate' | 'rate';
|
|
27
27
|
/**
|
|
28
28
|
* Linear conversion spec: `canonical = value * factor + offset`. Temperature is
|
|
29
29
|
* the ONLY family using a non-zero `offset`.
|
package/dist/units-lean.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_convert = require("./convert-
|
|
2
|
+
const require_convert = require("./convert-BI8iTXn6.js");
|
|
3
3
|
exports.UNIT_TABLE = require_convert.UNIT_TABLE;
|
|
4
4
|
exports.tryConvertUnit = require_convert.tryConvertUnit;
|
|
5
5
|
exports.unitDimension = require_convert.unitDimension;
|
package/dist/units-lean.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as tryConvertUnit, c as UNIT_TABLE, o as unitDimension } from "./convert-
|
|
1
|
+
import { a as tryConvertUnit, c as UNIT_TABLE, o as unitDimension } from "./convert-BwMfbk5b.mjs";
|
|
2
2
|
export { UNIT_TABLE, tryConvertUnit, unitDimension };
|