@camstack/server 1.2.852 → 1.2.854
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 +12 -0
- package/package.json +7 -14
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-pages-aggregator/addon-pages-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.js +1 -1
- package/system/dist/builtins/addon-widgets-aggregator/addon-widgets-aggregator.addon.mjs +1 -1
- package/system/dist/builtins/alerts/alerts.addon.js +1 -1
- package/system/dist/builtins/alerts/alerts.addon.mjs +1 -1
- package/system/dist/builtins/autotrack/index.js +1 -1
- package/system/dist/builtins/autotrack/index.mjs +1 -1
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.js +2 -2
- package/system/dist/builtins/backup-orchestrator/backup-orchestrator.addon.mjs +2 -2
- package/system/dist/builtins/calendars/calendars.addon.js +1 -1
- package/system/dist/builtins/calendars/calendars.addon.mjs +1 -1
- package/system/dist/builtins/camera-grid/index.js +1 -1
- package/system/dist/builtins/camera-grid/index.mjs +1 -1
- package/system/dist/builtins/composer/composer.addon.js +4 -4
- package/system/dist/builtins/composer/composer.addon.mjs +4 -4
- package/system/dist/builtins/console-logging/index.js +1 -1
- package/system/dist/builtins/console-logging/index.mjs +1 -1
- package/system/dist/builtins/core-blocks/core-blocks.addon.js +3 -3
- package/system/dist/builtins/core-blocks/core-blocks.addon.mjs +3 -3
- package/system/dist/builtins/device-history/device-history.addon.js +2 -2
- package/system/dist/builtins/device-history/device-history.addon.mjs +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.js +2 -2
- package/system/dist/builtins/device-manager/device-manager.addon.mjs +2 -2
- package/system/dist/builtins/hub-forwarder/index.js +1 -1
- package/system/dist/builtins/hub-forwarder/index.mjs +1 -1
- package/system/dist/builtins/keychain/index.js +4 -4
- package/system/dist/builtins/keychain/index.mjs +4 -4
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.js +1 -1
- package/system/dist/builtins/liveness-monitor/liveness-monitor.addon.mjs +1 -1
- package/system/dist/builtins/local-auth/local-auth.addon.js +2 -2
- package/system/dist/builtins/local-auth/local-auth.addon.mjs +2 -2
- package/system/dist/builtins/local-network/local-network.addon.js +3 -3
- package/system/dist/builtins/local-network/local-network.addon.mjs +3 -3
- package/system/dist/builtins/loki-logging/index.js +1 -1
- package/system/dist/builtins/loki-logging/index.mjs +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.js +1 -1
- package/system/dist/builtins/native-metrics/native-metrics.addon.mjs +1 -1
- package/system/dist/builtins/platform-probe/index.js +1 -1
- package/system/dist/builtins/platform-probe/index.mjs +1 -1
- package/system/dist/builtins/record-entries/index.js +1 -1
- package/system/dist/builtins/record-entries/index.mjs +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.js +1 -1
- package/system/dist/builtins/remote-access-orchestrator/remote-access-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/snapshot/index.js +1 -1
- package/system/dist/builtins/snapshot/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.js +1 -1
- package/system/dist/builtins/sqlite-storage/filesystem-storage.addon.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/index.js +1 -1
- package/system/dist/builtins/sqlite-storage/index.mjs +1 -1
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.js +3 -3
- package/system/dist/builtins/sqlite-storage/sqlite-settings.addon.mjs +3 -3
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.js +1 -1
- package/system/dist/builtins/storage-orchestrator/storage-orchestrator.addon.mjs +1 -1
- package/system/dist/builtins/system-config/system-config.addon.js +3 -3
- package/system/dist/builtins/system-config/system-config.addon.mjs +3 -3
- package/system/dist/builtins/winston-logging/index.js +1 -1
- package/system/dist/builtins/winston-logging/index.mjs +1 -1
- package/system/dist/{capture-engine-DIFdnnDL.mjs → capture-engine-BPz4ejJj.mjs} +1 -1
- package/system/dist/{capture-engine-TBNa5CV-.js → capture-engine-Bj7UIRm8.js} +1 -1
- package/system/dist/{composition-sources-Bi2EZImz.js → composition-sources-BKTc629o.js} +1 -1
- package/system/dist/{composition-sources-D0UJa_AU.mjs → composition-sources-Crz0fywh.mjs} +1 -1
- package/system/dist/{constants-Duw2_YIV.js → constants-Cmlov8uj.js} +1 -1
- package/system/dist/{constants-JM88FVOx.mjs → constants-Lp7Vr4-r.mjs} +1 -1
- package/system/dist/{device-ca-B_xUPRFF.mjs → device-ca-BgIrp4CF.mjs} +1 -1
- package/system/dist/{device-ca-BlweXw6w.js → device-ca-Dr6H7uBQ.js} +1 -1
- package/system/dist/{dist-CEgTDFFA.js → dist-CBSKYKwq.js} +96 -28
- package/system/dist/{dist-C2KTaXHT.mjs → dist-CahntDDE.mjs} +96 -28
- package/system/dist/file-host-worker.js +1 -1
- package/system/dist/file-host-worker.mjs +1 -1
- package/system/dist/{hub-identity-DOfYNOCc.js → hub-identity-CFQa7ECA.js} +1 -1
- package/system/dist/{hub-identity-DCS1EU6B.mjs → hub-identity-Vp3W2gbI.mjs} +1 -1
- package/system/dist/{hub-mdns-ciao-Dzug_qHK.js → hub-mdns-ciao-Bimi2gP6.js} +2 -2
- package/system/dist/{hub-mdns-ciao-BjB-iim0.mjs → hub-mdns-ciao-DZNHJrVS.mjs} +2 -2
- package/system/dist/index.js +8 -8
- package/system/dist/index.mjs +8 -8
- package/system/dist/{legacy-integration-rows-door-BEBSqcfe.js → legacy-integration-rows-door-DKSreg4e.js} +1 -1
- package/system/dist/{legacy-integration-rows-door--f2MPFmB.mjs → legacy-integration-rows-door-f1SeDqI4.mjs} +1 -1
- package/system/dist/{rename-composition-block-DjiX4Eq4.js → rename-composition-block-BsfC8uTI.js} +1 -1
- package/system/dist/{rename-composition-block-GL_gHhlg.mjs → rename-composition-block-QJrduoIS.mjs} +1 -1
- package/system/dist/{restore-archive-kiReCKLQ.js → restore-archive-Cu1-Aptf.js} +1 -1
- package/system/dist/{restore-archive-DXFheF5h.mjs → restore-archive-D0F1Cn_F.mjs} +1 -1
- package/system/dist/{wal-maintenance-SwjZc-98.mjs → wal-maintenance-BF9svCua.mjs} +0 -0
- package/system/dist/{wal-maintenance-uYxKYhvI.js → wal-maintenance-Cq52zXhg.js} +0 -0
- package/system/package.json +1 -1
|
@@ -66785,6 +66785,15 @@ var HeroTextSchema = z.object({
|
|
|
66785
66785
|
it: z.string()
|
|
66786
66786
|
});
|
|
66787
66787
|
/**
|
|
66788
|
+
* What a device that has not reported says in place of its value: an empty "—",
|
|
66789
|
+
* never a word like "Unknown" and never a 0 (D393). The card stays its normal
|
|
66790
|
+
* self; only the value is empty.
|
|
66791
|
+
*/
|
|
66792
|
+
var NOT_REPORTED = {
|
|
66793
|
+
en: "—",
|
|
66794
|
+
it: "—"
|
|
66795
|
+
};
|
|
66796
|
+
/**
|
|
66788
66797
|
* The ONE measurement a simple sensor shows (card wave, phase 1).
|
|
66789
66798
|
*
|
|
66790
66799
|
* A sensor that measures a single quantity (a temperature, a humidity, a power,
|
|
@@ -66939,6 +66948,62 @@ function textMeasurement(text, since) {
|
|
|
66939
66948
|
historyKey: null
|
|
66940
66949
|
};
|
|
66941
66950
|
}
|
|
66951
|
+
/** What each quantity draws beside its value, reported or not. */
|
|
66952
|
+
var QUANTITY_FACE = {
|
|
66953
|
+
temperature: {
|
|
66954
|
+
icon: "thermometer",
|
|
66955
|
+
unit: "°C",
|
|
66956
|
+
sinceKind: "updated",
|
|
66957
|
+
historyKey: "cap:temperature-sensor.temperature"
|
|
66958
|
+
},
|
|
66959
|
+
humidity: {
|
|
66960
|
+
icon: "droplets",
|
|
66961
|
+
unit: "%",
|
|
66962
|
+
sinceKind: "updated",
|
|
66963
|
+
historyKey: "cap:humidity-sensor.humidity"
|
|
66964
|
+
},
|
|
66965
|
+
power: {
|
|
66966
|
+
icon: "zap",
|
|
66967
|
+
unit: "W",
|
|
66968
|
+
sinceKind: "updated",
|
|
66969
|
+
historyKey: "cap:power-meter.power"
|
|
66970
|
+
},
|
|
66971
|
+
contact: {
|
|
66972
|
+
icon: null,
|
|
66973
|
+
unit: null,
|
|
66974
|
+
sinceKind: "changed",
|
|
66975
|
+
historyKey: null
|
|
66976
|
+
},
|
|
66977
|
+
text: {
|
|
66978
|
+
icon: null,
|
|
66979
|
+
unit: null,
|
|
66980
|
+
sinceKind: "updated",
|
|
66981
|
+
historyKey: null
|
|
66982
|
+
}
|
|
66983
|
+
};
|
|
66984
|
+
/**
|
|
66985
|
+
* The measurement of a sensor that has not reported yet: its normal card with
|
|
66986
|
+
* an empty "—" value and its unit — never a placeholder, never a 0 (D393). The
|
|
66987
|
+
* reading is `null` (nothing to format), the scene does not move, and nothing
|
|
66988
|
+
* claims a moment.
|
|
66989
|
+
*/
|
|
66990
|
+
function emptyMeasurement(quantity) {
|
|
66991
|
+
const face = QUANTITY_FACE[quantity];
|
|
66992
|
+
return {
|
|
66993
|
+
quantity,
|
|
66994
|
+
reading: null,
|
|
66995
|
+
icon: face.icon,
|
|
66996
|
+
value: NOT_REPORTED,
|
|
66997
|
+
unit: face.unit,
|
|
66998
|
+
band: null,
|
|
66999
|
+
level: null,
|
|
67000
|
+
word: NOT_REPORTED,
|
|
67001
|
+
tone: "muted",
|
|
67002
|
+
since: null,
|
|
67003
|
+
sinceKind: face.sinceKind,
|
|
67004
|
+
historyKey: face.historyKey
|
|
67005
|
+
};
|
|
67006
|
+
}
|
|
66942
67007
|
/**
|
|
66943
67008
|
* Roles whose reading is ANOTHER field of the slice a measurement comes from: an
|
|
66944
67009
|
* energy, voltage or current sensor rides the `power-meter` slice, which also carries
|
|
@@ -67113,17 +67178,17 @@ var HERO_SCENE_BY_ROLE = {
|
|
|
67113
67178
|
[DeviceRole.GenericNotifier]: "inherit",
|
|
67114
67179
|
[DeviceRole.IrTransmitter]: "inherit"
|
|
67115
67180
|
};
|
|
67116
|
-
function isDeviceType$
|
|
67181
|
+
function isDeviceType$3(type) {
|
|
67117
67182
|
return Object.values(DeviceType).includes(type);
|
|
67118
67183
|
}
|
|
67119
|
-
function isDeviceRole$
|
|
67184
|
+
function isDeviceRole$2(role) {
|
|
67120
67185
|
return Object.values(DeviceRole).includes(role);
|
|
67121
67186
|
}
|
|
67122
67187
|
/** The scene id of a (role, type) pair. Role beats type; a type this build does not know gets the terminal. */
|
|
67123
67188
|
function resolveHeroSceneId(role, type) {
|
|
67124
|
-
const byRole = role !== null && isDeviceRole$
|
|
67189
|
+
const byRole = role !== null && isDeviceRole$2(role) ? HERO_SCENE_BY_ROLE[role] : void 0;
|
|
67125
67190
|
if (byRole !== void 0 && byRole !== "inherit") return byRole;
|
|
67126
|
-
return isDeviceType$
|
|
67191
|
+
return isDeviceType$3(type) ? HERO_SCENE_BY_TYPE[type] : "generic";
|
|
67127
67192
|
}
|
|
67128
67193
|
var HeroRowIdSchema = z.enum([
|
|
67129
67194
|
"progress",
|
|
@@ -101695,7 +101760,7 @@ var lockContribution = contribution("lock-control", LockControlStatusSchema, (sl
|
|
|
101695
101760
|
const state = slice?.state ?? null;
|
|
101696
101761
|
const words = state === null ? null : LOCK_WORDS[state];
|
|
101697
101762
|
const since = slice === void 0 ? null : elapsedText(slice.lastChangedAt, ctx.now);
|
|
101698
|
-
const title = words?.title ??
|
|
101763
|
+
const title = words?.title ?? NOT_REPORTED;
|
|
101699
101764
|
return {
|
|
101700
101765
|
reading: reading("lock-control", words?.state ?? "unknown", false, words?.title),
|
|
101701
101766
|
rows: [row$1("lock", state === "locked" || state === "locking" ? "lock" : "lock-open", joinText([title, since]), lockControls(state, ctx.features.includes(DeviceFeature.LockOpen)))],
|
|
@@ -101787,7 +101852,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
|
|
|
101787
101852
|
const modes = slice === void 0 ? ALARM_MODES : slice.availableModes;
|
|
101788
101853
|
return {
|
|
101789
101854
|
reading: reading("alarm-panel", words?.state ?? "unknown", false, words?.title),
|
|
101790
|
-
rows: [row$1("alarm", state === "triggered" ? "shield-alert" : state === "disarmed" ? "shield-off" : "shield-check", joinText([words?.title ??
|
|
101855
|
+
rows: [row$1("alarm", state === "triggered" ? "shield-alert" : state === "disarmed" ? "shield-off" : "shield-check", joinText([words?.title ?? NOT_REPORTED, since]), alarmControls(state, modes, slice?.requiresCode ?? false))],
|
|
101791
101856
|
...since === null || words === null ? {} : { facts: [fact("since", "clock", since, state === "triggered" ? "danger" : "muted")] },
|
|
101792
101857
|
...words === null ? {} : { tiles: {
|
|
101793
101858
|
left: [{
|
|
@@ -101818,7 +101883,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
|
|
|
101818
101883
|
return {
|
|
101819
101884
|
reading: reading("automation-control", state, false, title),
|
|
101820
101885
|
rows: [row$1("automation", "workflow", joinText([
|
|
101821
|
-
title ??
|
|
101886
|
+
title ?? NOT_REPORTED,
|
|
101822
101887
|
last === null ? null : t(`Ran ${last.en}`, `Eseguita ${last.it}`),
|
|
101823
101888
|
slice?.lastError == null ? null : t(slice.lastError, slice.lastError)
|
|
101824
101889
|
]), [asAction(run), toggle])],
|
|
@@ -101834,7 +101899,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
|
|
|
101834
101899
|
return {
|
|
101835
101900
|
reading: reading("script-runner", state, false, title),
|
|
101836
101901
|
rows: [row$1("script", "scroll-text", joinText([
|
|
101837
|
-
title ??
|
|
101902
|
+
title ?? NOT_REPORTED,
|
|
101838
101903
|
last === null ? null : t(`Ran ${last.en}`, `Eseguito ${last.it}`),
|
|
101839
101904
|
slice?.lastError == null ? null : t(slice.lastError, slice.lastError)
|
|
101840
101905
|
]), [asAction(control)])],
|
|
@@ -101843,7 +101908,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
|
|
|
101843
101908
|
}),
|
|
101844
101909
|
"do-not-disturb": contribution("do-not-disturb", DoNotDisturbStatusSchema, (slice) => {
|
|
101845
101910
|
const on = slice?.enabled ?? null;
|
|
101846
|
-
return { rows: [row$1("do-not-disturb", "bell-off", on === null ?
|
|
101911
|
+
return { rows: [row$1("do-not-disturb", "bell-off", on === null ? NOT_REPORTED : on ? t("Do not disturb on", "Non disturbare attivo") : t("Do not disturb off", "Non disturbare spento"), [{
|
|
101847
101912
|
kind: "toggle",
|
|
101848
101913
|
id: "do-not-disturb.toggle",
|
|
101849
101914
|
label: t("Do not disturb", "Non disturbare"),
|
|
@@ -101861,7 +101926,7 @@ var ACCESS_FAMILY_CONTRIBUTIONS = {
|
|
|
101861
101926
|
* is absent from the facts, never a zero (D393).
|
|
101862
101927
|
*/
|
|
101863
101928
|
var has$3 = (ctx, f) => ctx.features.includes(f);
|
|
101864
|
-
var unknownText =
|
|
101929
|
+
var unknownText = NOT_REPORTED;
|
|
101865
101930
|
var pct$2 = (n) => t(`${Math.round(n)}%`, `${Math.round(n)}%`);
|
|
101866
101931
|
var unit = (n) => Math.min(1, Math.max(0, n / 100));
|
|
101867
101932
|
/** Battery as a fact, unless the device is also bound to the `battery` cap (it already says so). */
|
|
@@ -103267,13 +103332,13 @@ function sensorFragment(value, id, icon, en, it, text) {
|
|
|
103267
103332
|
tiles: { right: [tile$1(en, it, text)] }
|
|
103268
103333
|
};
|
|
103269
103334
|
}
|
|
103270
|
-
var temperatureContribution = contribution("temperature-sensor", TemperatureSensorStatusSchema, (slice) => measured(sensorFragment(slice?.temperature ?? null, "temperature", "thermometer", "Temperature", "Temperatura", formatDegrees(slice?.temperature ?? 0)), slice?.temperature == null ?
|
|
103271
|
-
var humidityContribution = contribution("humidity-sensor", HumiditySensorStatusSchema, (slice) => measured(sensorFragment(slice?.humidity ?? null, "humidity", "droplets", "Humidity", "Umidità", `${Math.round(slice?.humidity ?? 0)}%`), slice?.humidity == null ?
|
|
103335
|
+
var temperatureContribution = contribution("temperature-sensor", TemperatureSensorStatusSchema, (slice) => measured(sensorFragment(slice?.temperature ?? null, "temperature", "thermometer", "Temperature", "Temperatura", formatDegrees(slice?.temperature ?? 0)), slice?.temperature == null ? emptyMeasurement("temperature") : temperatureMeasurement(slice.temperature, slice.lastFetchedAt)));
|
|
103336
|
+
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)));
|
|
103272
103337
|
var pressureContribution = contribution("pressure-sensor", PressureSensorStatusSchema, (slice) => sensorFragment(slice?.pressure ?? null, "pressure", "gauge", "Pressure", "Pressione", `${Math.round(slice?.pressure ?? 0)} hPa`));
|
|
103273
103338
|
var illuminanceContribution = contribution("ambient-light-sensor", AmbientLightSensorStatusSchema, (slice) => sensorFragment(slice?.illuminance ?? null, "illuminance", "sun", "Light", "Luce", `${Math.round(slice?.illuminance ?? 0)} lx`));
|
|
103274
103339
|
var numericContribution = contribution("numeric-sensor", NumericSensorStatusSchema, (slice) => sensorFragment(slice?.value ?? null, "reading", "gauge", "Value", "Valore", String(Number((slice?.value ?? 0).toFixed(2)))));
|
|
103275
103340
|
var enumContribution = contribution("enum-sensor", EnumSensorStatusSchema, (slice) => {
|
|
103276
|
-
if (slice === void 0 || slice.value === "") return { reading: reading("sensor", "unknown") };
|
|
103341
|
+
if (slice === void 0 || slice.value === "") return measured({ reading: reading("sensor", "unknown") }, emptyMeasurement("text"));
|
|
103277
103342
|
if (slice.timestamp === true) return { reading: reading("sensor", "on") };
|
|
103278
103343
|
return measured(sensorFragment(slice.value, "reading", "gauge", "State", "Stato", slice.value), textMeasurement(slice.value, slice.lastFetchedAt));
|
|
103279
103344
|
});
|
|
@@ -103397,7 +103462,7 @@ function circuitControl(circuit) {
|
|
|
103397
103462
|
return picker(`heat-pump.${circuit.id}.mode`, t("Mode", "Modalità"), circuit.operationMode, method, args);
|
|
103398
103463
|
}
|
|
103399
103464
|
/** A circuit with no reading is still a row: it shows that nothing is known, not nothing. */
|
|
103400
|
-
var UNKNOWN_STATUS =
|
|
103465
|
+
var UNKNOWN_STATUS = NOT_REPORTED;
|
|
103401
103466
|
function circuitRow(circuit) {
|
|
103402
103467
|
const control = circuitControl(circuit);
|
|
103403
103468
|
const status = thermalStatusText(circuit.targetTemp, circuit.currentTemp) ?? UNKNOWN_STATUS;
|
|
@@ -103840,7 +103905,7 @@ var runningStateContribution = contribution("running-state", RunningStateStatusS
|
|
|
103840
103905
|
};
|
|
103841
103906
|
});
|
|
103842
103907
|
var powerMeterContribution = contribution("power-meter", PowerMeterStatusSchema, (slice) => {
|
|
103843
|
-
if (slice?.power === void 0) return {};
|
|
103908
|
+
if (slice?.power === void 0) return { measurement: emptyMeasurement("power") };
|
|
103844
103909
|
const detail = [];
|
|
103845
103910
|
if (slice.energy !== void 0) detail.push({
|
|
103846
103911
|
label: t("Energy", "Energia"),
|
|
@@ -103928,14 +103993,14 @@ var contactContribution = contribution("contact", ContactStatusSchema, (slice) =
|
|
|
103928
103993
|
const row = {
|
|
103929
103994
|
id: "contact",
|
|
103930
103995
|
icon: slice?.entryOpen === true ? "door-open" : "door-closed",
|
|
103931
|
-
status: slice === void 0 ?
|
|
103996
|
+
status: slice === void 0 ? NOT_REPORTED : slice.entryOpen ? t("Open", "Aperto") : t("Closed", "Chiuso"),
|
|
103932
103997
|
controls: []
|
|
103933
103998
|
};
|
|
103934
103999
|
return measured({
|
|
103935
104000
|
reading: reading("contact", slice === void 0 ? "unknown" : slice.entryOpen ? "on" : "off"),
|
|
103936
104001
|
rows: [row],
|
|
103937
104002
|
...slice === void 0 ? {} : { scene: { mode: slice.entryOpen ? "open" : "closed" } }
|
|
103938
|
-
}, slice === void 0 ?
|
|
104003
|
+
}, slice === void 0 ? emptyMeasurement("contact") : contactMeasurement(slice.entryOpen, slice.lastChangedAt > 0 ? slice.lastChangedAt : null));
|
|
103939
104004
|
});
|
|
103940
104005
|
var motionTriggerContribution = contribution("motion-trigger", MotionTriggerStatusSchema, (slice) => {
|
|
103941
104006
|
const on = slice?.enabled ?? null;
|
|
@@ -103950,7 +104015,7 @@ var motionTriggerContribution = contribution("motion-trigger", MotionTriggerStat
|
|
|
103950
104015
|
return { rows: [{
|
|
103951
104016
|
id: "motion-trigger",
|
|
103952
104017
|
icon: "activity",
|
|
103953
|
-
status: on === null ?
|
|
104018
|
+
status: on === null ? NOT_REPORTED : on ? t("Follows motion", "Segue il movimento") : t("Ignores motion", "Ignora il movimento"),
|
|
103954
104019
|
controls: [toggle]
|
|
103955
104020
|
}] };
|
|
103956
104021
|
});
|
|
@@ -104437,14 +104502,14 @@ var HERO_LAYOUT_BY_TYPE = {
|
|
|
104437
104502
|
[DeviceType.Dryer]: APPLIANCE_LAYOUT,
|
|
104438
104503
|
[DeviceType.Gateway]: HERO_LAYOUT_DEFAULT
|
|
104439
104504
|
};
|
|
104440
|
-
function isDeviceType$
|
|
104505
|
+
function isDeviceType$2(type) {
|
|
104441
104506
|
return Object.values(DeviceType).includes(type);
|
|
104442
104507
|
}
|
|
104443
104508
|
/** The layout of a type; a type this build does not know gets the default. */
|
|
104444
104509
|
function resolveHeroLayout(type, role = null) {
|
|
104445
104510
|
if (type === DeviceType.Switch && role === DeviceRole.SwitchHeater) return HEATER_LAYOUT;
|
|
104446
104511
|
const live = canonicalStoredDeviceType(type);
|
|
104447
|
-
return isDeviceType$
|
|
104512
|
+
return isDeviceType$2(live) ? HERO_LAYOUT_BY_TYPE[live] : HERO_LAYOUT_DEFAULT;
|
|
104448
104513
|
}
|
|
104449
104514
|
/**
|
|
104450
104515
|
* Who looks like what (D1023). One look per {@link DeviceType}, refined by a
|
|
@@ -104468,9 +104533,8 @@ function look(icon, tone, background, animation) {
|
|
|
104468
104533
|
animation
|
|
104469
104534
|
};
|
|
104470
104535
|
}
|
|
104471
|
-
/**
|
|
104536
|
+
/** Unreachable: identical for every look. */
|
|
104472
104537
|
var OFFLINE = look("wifi-off", "muted", "plain", "none");
|
|
104473
|
-
var UNKNOWN = look("circle-question-mark", "muted", "plain", "none");
|
|
104474
104538
|
var ALERT = look("triangle-alert", "danger", "alert-wash", "pulse");
|
|
104475
104539
|
function lookOf(spec) {
|
|
104476
104540
|
const at = (s) => look(spec.icon, s[0], s[1], s[2]);
|
|
@@ -104482,7 +104546,7 @@ function lookOf(spec) {
|
|
|
104482
104546
|
standby: at(spec.standby),
|
|
104483
104547
|
alert: spec.alert ?? ALERT,
|
|
104484
104548
|
offline: OFFLINE,
|
|
104485
|
-
unknown:
|
|
104549
|
+
unknown: look(spec.icon, "muted", "plain", "none")
|
|
104486
104550
|
};
|
|
104487
104551
|
}
|
|
104488
104552
|
var MUTED = [
|
|
@@ -105231,10 +105295,10 @@ var HERO_LOOK_BY_ROLE = {
|
|
|
105231
105295
|
[DeviceRole.GenericNotifier]: "inherit",
|
|
105232
105296
|
[DeviceRole.IrTransmitter]: "inherit"
|
|
105233
105297
|
};
|
|
105234
|
-
function isDeviceType(type) {
|
|
105298
|
+
function isDeviceType$1(type) {
|
|
105235
105299
|
return Object.values(DeviceType).includes(type);
|
|
105236
105300
|
}
|
|
105237
|
-
function isDeviceRole(role) {
|
|
105301
|
+
function isDeviceRole$1(role) {
|
|
105238
105302
|
return Object.values(DeviceRole).includes(role);
|
|
105239
105303
|
}
|
|
105240
105304
|
/**
|
|
@@ -105242,14 +105306,14 @@ function isDeviceRole(role) {
|
|
|
105242
105306
|
* A climate device that is on draws its MODE (`mode` is the scene's); a role never loses to it.
|
|
105243
105307
|
*/
|
|
105244
105308
|
function resolveHeroLook(role, type, state, mode = null) {
|
|
105245
|
-
const byRole = role !== null && isDeviceRole(role) ? HERO_LOOK_BY_ROLE[role] : void 0;
|
|
105309
|
+
const byRole = role !== null && isDeviceRole$1(role) ? HERO_LOOK_BY_ROLE[role] : void 0;
|
|
105246
105310
|
if (byRole !== void 0 && byRole !== "inherit") return byRole[state];
|
|
105247
105311
|
if (mode !== null && (state === "on" || state === "running") && MODE_LOOK_TYPES.includes(type)) {
|
|
105248
105312
|
const byMode = HERO_MODE_LOOK[mode];
|
|
105249
105313
|
if (byMode !== null) return byMode;
|
|
105250
105314
|
}
|
|
105251
105315
|
if (isAirConditioner(type, role)) return CLIMATE_LOOK[state];
|
|
105252
|
-
return ((isDeviceType(type) ? HERO_LOOK_BY_TYPE[type] : void 0) ?? HERO_LOOK_DEFAULT)[state];
|
|
105316
|
+
return ((isDeviceType$1(type) ? HERO_LOOK_BY_TYPE[type] : void 0) ?? HERO_LOOK_DEFAULT)[state];
|
|
105253
105317
|
}
|
|
105254
105318
|
/** The media player's offer outranks a bound switch: the player's own state is the device's. */
|
|
105255
105319
|
var OWN_POWER_SOURCE_ORDER = [
|
|
@@ -105322,7 +105386,7 @@ var STATE_TEXT = {
|
|
|
105322
105386
|
standby: t("Standby", "In standby"),
|
|
105323
105387
|
alert: t("Alert", "Allarme"),
|
|
105324
105388
|
offline: t("Offline", "Non raggiungibile"),
|
|
105325
|
-
unknown:
|
|
105389
|
+
unknown: NOT_REPORTED
|
|
105326
105390
|
};
|
|
105327
105391
|
function pickReading(readings) {
|
|
105328
105392
|
for (const source of STATE_SOURCE_ORDER) {
|
|
@@ -116134,6 +116198,10 @@ function offered(received) {
|
|
|
116134
116198
|
};
|
|
116135
116199
|
}
|
|
116136
116200
|
offered(HA_AS), withheld(HOMEKIT_REASON), withheld(ALEXA_REASON), withheld(GOOGLE_REASON), withheld(MATTER_REASON);
|
|
116201
|
+
DeviceType.Camera, DeviceType.Hub, DeviceType.Light, DeviceType.Siren, DeviceType.Switch, DeviceType.Sensor, DeviceType.Climate, DeviceType.HeatPump, DeviceType.Button, DeviceType.EventEmitter, DeviceType.Update, DeviceType.Generic, DeviceType.Notifier, DeviceType.Script, DeviceType.Automation, DeviceType.Lock, DeviceType.Cover, DeviceType.Valve, DeviceType.Humidifier, DeviceType.WaterHeater, DeviceType.Fan, DeviceType.MediaPlayer, DeviceType.AlarmPanel, DeviceType.Control, DeviceType.Presence, DeviceType.Weather, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.Container, DeviceType.Image, DeviceType.PetFeeder, DeviceType.PetFountain, DeviceType.Dishwasher, DeviceType.Washer, DeviceType.Dryer, DeviceType.Gateway;
|
|
116202
|
+
DeviceRole.Siren, DeviceRole.Floodlight, DeviceRole.Spotlight, DeviceRole.PirSensor, DeviceRole.Chime, DeviceRole.Autotrack, DeviceRole.Nightvision, DeviceRole.PrivacyMask, DeviceRole.Doorbell, DeviceRole.CoverBlind, DeviceRole.CoverShutter, DeviceRole.CoverAwning, DeviceRole.CoverCurtain, DeviceRole.CoverGarage, DeviceRole.CoverGate, DeviceRole.CoverDoor, DeviceRole.CoverWindow, DeviceRole.BinaryHelper, DeviceRole.Outlet, DeviceRole.SwitchHeater, DeviceRole.SwitchFan, DeviceRole.SwitchLight, DeviceRole.ClimateAc, DeviceRole.ClimateThermostat, DeviceRole.ClimateFloor, DeviceRole.ClimateRadiator, DeviceRole.ClimateHeater, DeviceRole.ClimateHeatPumpCircuit, DeviceRole.MotionSensor, DeviceRole.ContactSensor, DeviceRole.LeakSensor, DeviceRole.SmokeSensor, DeviceRole.COSensor, DeviceRole.GasSensor, DeviceRole.TamperSensor, DeviceRole.VibrationSensor, DeviceRole.ConnectivitySensor, DeviceRole.SoundSensor, DeviceRole.BinarySensor, DeviceRole.TemperatureSensor, DeviceRole.HumiditySensor, DeviceRole.AmbientLightSensor, DeviceRole.PressureSensor, DeviceRole.WindSensor, DeviceRole.RainSensor, DeviceRole.UvSensor, DeviceRole.SolarRadiationSensor, DeviceRole.SoilMoistureSensor, DeviceRole.PowerSensor, DeviceRole.EnergySensor, DeviceRole.VoltageSensor, DeviceRole.CurrentSensor, DeviceRole.AirQualitySensor, DeviceRole.BatterySensor, DeviceRole.NumericSensor, DeviceRole.EnumSensor, DeviceRole.DateTimeSensor, DeviceRole.GenericSensor, DeviceRole.NumericControl, DeviceRole.SelectControl, DeviceRole.TextControl, DeviceRole.DateTimeControl, DeviceRole.MobilePushNotifier, DeviceRole.MessagingNotifier, DeviceRole.EmailNotifier, DeviceRole.GenericNotifier, DeviceRole.IrTransmitter;
|
|
116203
|
+
new Set(Object.values(DeviceType));
|
|
116204
|
+
new Set(Object.values(DeviceRole));
|
|
116137
116205
|
/**
|
|
116138
116206
|
* Runtime list of cap names with status. Used by the settings
|
|
116139
116207
|
* aggregator to enumerate caps whose `status` should be polled +
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
2
|
+
const require_wal_maintenance = require("./wal-maintenance-Cq52zXhg.js");
|
|
3
3
|
let node_worker_threads = require("node:worker_threads");
|
|
4
4
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-
|
|
1
|
+
import { A as callRecords, C as isFileHostWorkerData, D as RecordsEngine, M as controlTargetOf, O as callControl, S as isFileHostRequest, a as WalMaintenance, b as collectTransferables, d as callMigrate, f as migrateTargetOf, j as callVector, k as callData, l as SqliteSettingsBackend, o as createVectorIndex, s as vectorProviderOf, u as HUB_MIGRATIONS, v as serializeError, w as trustInput } from "./wal-maintenance-BF9svCua.mjs";
|
|
2
2
|
import { parentPort, threadId, workerData } from "node:worker_threads";
|
|
3
3
|
//#region src/builtins/sqlite-storage/file-host-worker.ts
|
|
4
4
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-CBSKYKwq.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
4
|
let zod = require("zod");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ec as defineRecordKinds } from "./dist-
|
|
1
|
+
import { Ec as defineRecordKinds } from "./dist-CahntDDE.mjs";
|
|
2
2
|
import { C as backdatedNotBefore, S as withUtcTimeEncoding, _ as NameConstraints, a as KeyUsageFlags, c as Pkcs10CertificateRequest, d as SubjectKeyIdentifierExtension, f as X509Certificate$1, g as GeneralSubtrees, h as GeneralSubtree, i as Extension, l as Pkcs10CertificateRequestGenerator, m as cryptoProvider, n as BasicConstraintsExtension, o as KeyUsagesExtension, p as X509CertificateGenerator, r as ExtendedKeyUsageExtension, s as PemConverter, t as AuthorityKeyIdentifierExtension, u as SubjectAlternativeNameExtension, v as GeneralName, x as AsnConvert } from "./x509.es-BRiJgOvu.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { X509Certificate, createHash, createPrivateKey, randomBytes, webcrypto } from "node:crypto";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
2
|
-
const require_dist = require("./dist-
|
|
2
|
+
const require_dist = require("./dist-CBSKYKwq.js");
|
|
3
3
|
const require_x509_es = require("./x509.es-WtnRNyYS.js");
|
|
4
|
-
const require_hub_identity = require("./hub-identity-
|
|
4
|
+
const require_hub_identity = require("./hub-identity-CFQa7ECA.js");
|
|
5
5
|
let node_crypto = require("node:crypto");
|
|
6
6
|
let _camstack_types_node = require("@camstack/types/node");
|
|
7
7
|
let node_fs = require("node:fs");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { o as __toESM } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { gl as userError } from "./dist-
|
|
2
|
+
import { gl as userError } from "./dist-CahntDDE.mjs";
|
|
3
3
|
import { f as X509Certificate$1 } from "./x509.es-BRiJgOvu.mjs";
|
|
4
|
-
import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-
|
|
4
|
+
import { A as evaluateExistingCert, C as localCaCommonName, F as isConstrainedCa, L as permitsIdentity, S as loadCa, b as generateCa, j as reasonRequiresNewCa, w as collectCertIdentity, x as issueLeaf, z as readNameConstraints } from "./hub-identity-Vp3W2gbI.mjs";
|
|
5
5
|
import { X509Certificate, createPrivateKey } from "node:crypto";
|
|
6
6
|
import { writeOwnerOnlyFileSync } from "@camstack/types/node";
|
|
7
7
|
import { copyFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
package/system/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("./chunk-Cek0wNdY.js");
|
|
3
|
-
const require_dist = require("./dist-
|
|
4
|
-
const require_device_ca = require("./device-ca-
|
|
3
|
+
const require_dist = require("./dist-CBSKYKwq.js");
|
|
4
|
+
const require_device_ca = require("./device-ca-Dr6H7uBQ.js");
|
|
5
5
|
const require_read_all_rows$1 = require("./read-all-rows-CVoO1ONM.js");
|
|
6
6
|
const require_log_redactor = require("./log-redactor-BhIEMaG9.js");
|
|
7
7
|
const require_builtins_alerts_alerts_addon = require("./builtins/alerts/alerts.addon.js");
|
|
@@ -28,22 +28,22 @@ const require_builtins_loki_logging_index = require("./builtins/loki-logging/ind
|
|
|
28
28
|
const require_builtins_native_metrics_native_metrics_addon = require("./builtins/native-metrics/native-metrics.addon.js");
|
|
29
29
|
const require_builtins_device_history_device_history_addon = require("./builtins/device-history/device-history.addon.js");
|
|
30
30
|
const require_builtins_sqlite_storage_filesystem_storage_addon = require("./builtins/sqlite-storage/filesystem-storage.addon.js");
|
|
31
|
-
const require_wal_maintenance = require("./wal-maintenance-
|
|
32
|
-
const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-
|
|
31
|
+
const require_wal_maintenance = require("./wal-maintenance-Cq52zXhg.js");
|
|
32
|
+
const require_legacy_integration_rows_door = require("./legacy-integration-rows-door-DKSreg4e.js");
|
|
33
33
|
const require_builtins_sqlite_storage_sqlite_settings_addon = require("./builtins/sqlite-storage/sqlite-settings.addon.js");
|
|
34
34
|
const require_builtins_sqlite_storage_index = require("./builtins/sqlite-storage/index.js");
|
|
35
35
|
const require_builtins_storage_orchestrator_storage_orchestrator_addon = require("./builtins/storage-orchestrator/storage-orchestrator.addon.js");
|
|
36
36
|
require("./builtins/storage-orchestrator/index.js");
|
|
37
|
-
const require_hub_identity = require("./hub-identity-
|
|
38
|
-
const require_constants = require("./constants-
|
|
37
|
+
const require_hub_identity = require("./hub-identity-CFQa7ECA.js");
|
|
38
|
+
const require_constants = require("./constants-Cmlov8uj.js");
|
|
39
39
|
const require_builtins_system_config_system_config_addon = require("./builtins/system-config/system-config.addon.js");
|
|
40
40
|
require("./builtins/system-config/index.js");
|
|
41
41
|
const require_builtins_winston_logging_index = require("./builtins/winston-logging/index.js");
|
|
42
42
|
const require_custom_action_registry = require("./custom-action-registry-CmWpSeMS.js");
|
|
43
|
-
const require_hub_mdns_ciao = require("./hub-mdns-ciao-
|
|
43
|
+
const require_hub_mdns_ciao = require("./hub-mdns-ciao-Bimi2gP6.js");
|
|
44
44
|
const require_platform_key_source = require("./platform-key-source-Di7HrlGR.js");
|
|
45
45
|
const require_resource_monitor = require("./resource-monitor-mio9dSCT.js");
|
|
46
|
-
const require_restore_archive = require("./restore-archive-
|
|
46
|
+
const require_restore_archive = require("./restore-archive-Cu1-Aptf.js");
|
|
47
47
|
const require_coral_accelerators = require("./coral-accelerators-BSVsBVzt.js");
|
|
48
48
|
let zod = require("zod");
|
|
49
49
|
let node_crypto = require("node:crypto");
|
package/system/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require } from "./chunk-CNf5ZN-e.mjs";
|
|
2
|
-
import { $i as objectInputDeclaresRequiredDeviceId, Ac as expandCapMethods, Bt as PackageRequiresSchema, Cr as describeUnmet, Dc as emitDownForOwnedCaps, Di as lifecycleJobSchema, Do as unmetRequirements, Ds as DATAPLANE_SECRET_HEADER$1, Ec as defineRecordKinds, El as EventCategory$1, Es as CALLER_STAMPED_CAPABILITIES$1, Fi as looseSchema, Gs as RUNTIME_DEFAULTS, Hr as extractNestedAddonId, Ks as ReadinessRegistry, La as resolveMethodAuth, Lc as isDebugChannelName, Mc as getDebugInterest, Mn as bareAddonId, O as CatalogFileSchema, Os as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Ot as LOG_LEVEL_RANK, Pi as logLevelAtMost, Qi as objectInputDeclaresAddonId, Si as kebabToCamel$1, Sn as addonSettingsCapability, Xa as scopesAllowDeviceCap, Ya as scopesAllowAddon, _c as collectSecretMarkerRefs, _o as supportedRuntimes, a as AGENT_MDNS_SERVICE_TYPE, al as resolveCapMount, cc as asJsonObject$1, ci as isAddonInstanceId, cl as scopeKey, co as splitTranslationRef, el as parseJsonObject, er as compareVersions, fi as isArrayOutputSchema, gl as userError, ha as procedureAuthKey, ks as DEVICE_STATUS_METHOD, kt as METHOD_ACCESS_MAP, lc as asNumber, o as AGENT_MDNS_TXT_KEYS, pi as isCollectionArrayMethod, qs as ReadinessTimeoutError, rl as readinessKey, s as ALL_CAPABILITY_DEFINITIONS, si as interpolate, tl as parseJsonUnknown, uc as asString$1, wl as errMsg$1, x as CATALOG_LANGS, xc as createEvent$1, xi as isVoidInput, yi as isObjectInput, yl as withoutCallerStamp } from "./dist-
|
|
3
|
-
import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-
|
|
2
|
+
import { $i as objectInputDeclaresRequiredDeviceId, Ac as expandCapMethods, Bt as PackageRequiresSchema, Cr as describeUnmet, Dc as emitDownForOwnedCaps, Di as lifecycleJobSchema, Do as unmetRequirements, Ds as DATAPLANE_SECRET_HEADER$1, Ec as defineRecordKinds, El as EventCategory$1, Es as CALLER_STAMPED_CAPABILITIES$1, Fi as looseSchema, Gs as RUNTIME_DEFAULTS, Hr as extractNestedAddonId, Ks as ReadinessRegistry, La as resolveMethodAuth, Lc as isDebugChannelName, Mc as getDebugInterest, Mn as bareAddonId, O as CatalogFileSchema, Os as DEVICE_SETTINGS_CONTRIBUTION_METHODS, Ot as LOG_LEVEL_RANK, Pi as logLevelAtMost, Qi as objectInputDeclaresAddonId, Si as kebabToCamel$1, Sn as addonSettingsCapability, Xa as scopesAllowDeviceCap, Ya as scopesAllowAddon, _c as collectSecretMarkerRefs, _o as supportedRuntimes, a as AGENT_MDNS_SERVICE_TYPE, al as resolveCapMount, cc as asJsonObject$1, ci as isAddonInstanceId, cl as scopeKey, co as splitTranslationRef, el as parseJsonObject, er as compareVersions, fi as isArrayOutputSchema, gl as userError, ha as procedureAuthKey, ks as DEVICE_STATUS_METHOD, kt as METHOD_ACCESS_MAP, lc as asNumber, o as AGENT_MDNS_TXT_KEYS, pi as isCollectionArrayMethod, qs as ReadinessTimeoutError, rl as readinessKey, s as ALL_CAPABILITY_DEFINITIONS, si as interpolate, tl as parseJsonUnknown, uc as asString$1, wl as errMsg$1, x as CATALOG_LANGS, xc as createEvent$1, xi as isVoidInput, yi as isObjectInput, yl as withoutCallerStamp } from "./dist-CahntDDE.mjs";
|
|
3
|
+
import { d as JWT_SIGNING_KEY_REF, f as JwtSigningKeyUnavailableError, g as processJwtSigningKey, i as generateDeviceCa, l as verifyDeviceLeaf, m as getProcessJwtSigningKeyState, n as DEVICE_CA_KEY_REF, o as issueDeviceLeaf, p as SYSTEM_SECRET_OWNER, s as loadDeviceCa, u as verifyDeviceSignature, v as staticJwtSigningKey } from "./device-ca-BgIrp4CF.mjs";
|
|
4
4
|
import { t as require_read_all_rows } from "./read-all-rows-TaPqdWNF.mjs";
|
|
5
5
|
import { a as redactLogText, i as redactLogMeta, r as redactLogEntry, t as isCredentialKeyName } from "./log-redactor-XLDrPzOi.mjs";
|
|
6
6
|
import { AlertCenterAddon, n as lastCauseAfterChunk, r as readRunnerDisplayName, t as CRASH_BREAKER_ERROR_PREFIX } from "./builtins/alerts/alerts.addon.mjs";
|
|
@@ -27,22 +27,22 @@ import { LokiDestination, LokiLoggingAddon } from "./builtins/loki-logging/index
|
|
|
27
27
|
import NativeMetricsAddon, { a as NativeMetricsProvider, i as parseProcStatusRss, n as nodeProcReader, r as parseProcStat } from "./builtins/native-metrics/native-metrics.addon.mjs";
|
|
28
28
|
import { DeviceHistoryAddon } from "./builtins/device-history/device-history.addon.mjs";
|
|
29
29
|
import { FilesystemStorageAddon, t as FilesystemStorageProvider } from "./builtins/sqlite-storage/filesystem-storage.addon.mjs";
|
|
30
|
-
import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-
|
|
31
|
-
import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door
|
|
30
|
+
import { D as RecordsEngine, l as SqliteSettingsBackend } from "./wal-maintenance-BF9svCua.mjs";
|
|
31
|
+
import { n as clearLegacyIntegrationRows, o as readLegacyIntegrationRows } from "./legacy-integration-rows-door-f1SeDqI4.mjs";
|
|
32
32
|
import { SqliteSettingsAddon } from "./builtins/sqlite-storage/sqlite-settings.addon.mjs";
|
|
33
33
|
import { ConfigStore, DeviceStore } from "./builtins/sqlite-storage/index.mjs";
|
|
34
34
|
import { StorageOrchestratorAddon, a as createHubCapForwardService, i as HUB_CAP_FWD_SERVICE, o as stripForwardedCaller, r as HUB_CAP_FWD_ACTION, s as buildStorageLocationRegistry, t as StorageOrchestratorService, u as storageOrchestratorRecordKinds } from "./builtins/storage-orchestrator/storage-orchestrator.addon.mjs";
|
|
35
35
|
import "./builtins/storage-orchestrator/index.mjs";
|
|
36
|
-
import { A as evaluateExistingCert, B as AGENT_HTTPS_NAMES_COLLECTION, C as localCaCommonName, D as LEAF_RENEWAL_WINDOW_DAYS, E as CA_VALIDITY_DAYS, F as isConstrainedCa, H as AgentHttpsNames, I as isLocalOnlyHostname, L as permitsIdentity, M as PERMITTED_DNS_SUFFIXES, N as PERMITTED_IP_RANGES, O as MAX_LEAF_VALIDITY_DAYS, P as buildNameConstraintSet, R as permitsName, T as systemHostFacts, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, _ as pemDigest, a as AgentHttpsInstallError, c as certificateNames, d as describeHttpsLeaf, f as installAgentHttps, g as loadAgentHttps, h as issueAgentHttpsLeaf, i as loadOrCreateHubId, k as SERVER_AUTH_OID, l as collectAgentNames, m as isPrivateAddress, n as HUB_IDENTITY_RELATIVE, o as acceptAgentSans, p as isContainerBridgeAddress, r as isAnnouncedHubId, s as agentHttpsPaths, t as HUB_IDENTITY_FILE, u as createAgentHttpsRequest, v as pinnedHttpsCaFingerprint, w as collectCertIdentity, y as CA_COMMON_NAME, z as readNameConstraints } from "./hub-identity-
|
|
37
|
-
import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "./constants-
|
|
36
|
+
import { A as evaluateExistingCert, B as AGENT_HTTPS_NAMES_COLLECTION, C as localCaCommonName, D as LEAF_RENEWAL_WINDOW_DAYS, E as CA_VALIDITY_DAYS, F as isConstrainedCa, H as AgentHttpsNames, I as isLocalOnlyHostname, L as permitsIdentity, M as PERMITTED_DNS_SUFFIXES, N as PERMITTED_IP_RANGES, O as MAX_LEAF_VALIDITY_DAYS, P as buildNameConstraintSet, R as permitsName, T as systemHostFacts, U as getProcessAgentHttpsNames, V as AGENT_HTTPS_NAMES_COLUMNS, W as setProcessAgentHttpsNames, _ as pemDigest, a as AgentHttpsInstallError, c as certificateNames, d as describeHttpsLeaf, f as installAgentHttps, g as loadAgentHttps, h as issueAgentHttpsLeaf, i as loadOrCreateHubId, k as SERVER_AUTH_OID, l as collectAgentNames, m as isPrivateAddress, n as HUB_IDENTITY_RELATIVE, o as acceptAgentSans, p as isContainerBridgeAddress, r as isAnnouncedHubId, s as agentHttpsPaths, t as HUB_IDENTITY_FILE, u as createAgentHttpsRequest, v as pinnedHttpsCaFingerprint, w as collectCertIdentity, y as CA_COMMON_NAME, z as readNameConstraints } from "./hub-identity-Vp3W2gbI.mjs";
|
|
37
|
+
import { a as MESH_CA_KEY_REF, i as MESH_CA_FIELD, n as DEFAULT_HUB_TLS_TCP_PORT, o as MESH_CA_SETTINGS_KEY } from "./constants-Lp7Vr4-r.mjs";
|
|
38
38
|
import { $ as caFingerprint, A as emitProcessNodeRegistered, B as setProcessMeshTlsListenerState, C as verifyMembershipAnswer, Ct as parseOriginList, D as ServiceBroker, Dt as parseCidrList, E as Errors, Et as normalizeIp, F as setProcessMeshPeerTransportLookup, G as describeMeshLeaf, H as MESH_NODE_CERTIFICATES_COLUMNS, I as renewMeshCertificate, J as MeshCrl, K as getProcessMeshCertificateRegistry, L as revokeMeshCertificate, M as getProcessPeerLeaf, N as isProcessVerifiedMeshPeer, O as setProcessMeshTlsEnabler, Ot as readCidrSetting, P as onProcessNodeRegistered, Q as requireProcessMeshCa, R as getProcessMeshTlsListenerState, S as signMembershipProof, St as normalizeOrigin, SystemConfigAddon, T as TlsTcpTransporter, Tt as createCidrMatcher, U as MeshCertificateRegistry, V as MESH_NODE_CERTIFICATES_COLLECTION, W as RENEWAL_ABANDONED, X as MeshCaKeeper, Y as processMeshCrl, Z as getProcessMeshCaState, _ as keyFingerprintShort, _t as parseAgentDashboardOrigins, a as dialableHubHost, at as isValidAgentNodeId, b as MEMBERSHIP_PATHS, bt as OPAQUE_ORIGIN, c as PAIRING_MAX_CODE_ATTEMPTS, ct as loadMeshCa, d as PAIRING_PIN_DIGITS, dt as AGENT_UI_UNLOCK_TYP, et as caFingerprintCompact, f as PAIRING_PROTOCOL, ft as AGENT_UI_UNLOCK_USE, g as describeCsr, gt as mintAgentUiUnlockTicket, h as computePairingSas, ht as isAllowedAgentDashboardReturnTo, i as AgentPairing, it as generateMeshKeyPair, j as getProcessNodeMeshTransport, k as dropProcessPeer, l as PAIRING_MAX_SESSIONS, lt as AGENT_DASHBOARD_ORIGINS_FIELD, m as computePairingCommitment, mt as UnlockTicketJtiStore, n as HubPairing, nt as exportMeshPrivateKeyPem, o as hubHostFromMeshAddress, ot as issueMeshLeafForNode, p as PAIRING_TTL_MS, pt as AGENT_UI_UNLOCK_VERSION, q as setProcessMeshCertificateRegistry, r as PairingHttpError, rt as generateMeshCa, s as PAIRING_CODE_DIGITS, st as issueMeshLeafFromCsr, tt as createMeshCsrPem, u as PAIRING_PATHS, ut as AGENT_UI_UNLOCK_TTL_MS, v as signPairingProof, vt as verifyAgentUiUnlockTicket, w as MESH_TLS_PORT_HELLO_FIELD, wt as readOriginSetting, x as MembershipResponder, xt as isInsecureOrigin, y as verifyPairingProof, yt as InvalidCorsOriginError, z as openMeshTlsWhenRevocationsLoaded } from "./builtins/system-config/system-config.addon.mjs";
|
|
39
39
|
import "./builtins/system-config/index.mjs";
|
|
40
40
|
import { WinstonDestination, WinstonLoggingAddon } from "./builtins/winston-logging/index.mjs";
|
|
41
41
|
import { C as isModelDownloaded, E as setHuggingFaceReachabilityObserver, T as revisionWeightUrl, _ as downloadFile, a as startEventLoopStallMonitor, b as fetchJson, c as createAuthenticatedFileServer, d as resolveFilePath, f as ModelDownloadService, g as deleteModelFromDisk, h as collectModelFiles, i as attributeStall, l as parseRangeHeader, m as adoptModelRevisions, n as STALL_REPORT_MS, o as createFileDataPlaneHandler, r as STALL_TICK_MS, s as contentTypeFor, t as CustomActionRegistry, u as parseTokenizedUrl, v as downloadModel, w as resolveFormatRevision, x as getModelFilePath, y as ensureModel } from "./custom-action-registry-B9zFBNVa.mjs";
|
|
42
|
-
import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-
|
|
42
|
+
import { A as retirePreviousLocalCa, C as checkUploadedCa, D as loadTlsCert, E as ensureTlsCert, F as closeLanHttp, I as readLanHttpState, L as registerLanHttpHandler, M as allFamiliesListenHost, N as applyLanHttp, O as reissueTlsLeaf, P as bindPendingLanHttp, S as chainsToPublicRoot, T as caReplacementMarkerFile, _ as readTlsMode, a as storeUploadedCertificate, b as writeTlsEnabled, c as leafFingerprintOf, d as servedHttpsLeafFingerprint, f as prepareBootTls, g as readTlsEnabled, h as readTlsAccessStatus, i as revertToGeneratedCertificate, j as DEFAULT_LAN_HTTP_PORT, k as replaceUnconstrainedLocalCa, l as registerHttpsListener, m as readExtraSans, n as applyCertificateToListener, o as useStoredUploadedCertificate, p as UPLOADED_CA_FILE, r as regenerateCertificate, s as clearHttpsListener, t as createCiaoPublisher, u as reloadHttpsListener, v as splitPemCertificates, w as validateUploadedTls, x as writeTlsMode, y as writeExtraSans } from "./hub-mdns-ciao-DZNHJrVS.mjs";
|
|
43
43
|
import { n as getPlatformKeychainKey, r as setPlatformKeychainKey, t as clearPlatformKeychainKey } from "./platform-key-source-BWlq0jjn.mjs";
|
|
44
44
|
import { n as getSinglePidStats, t as getPidStats } from "./resource-monitor-Di9daRwI.mjs";
|
|
45
|
-
import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-
|
|
45
|
+
import { _ as backupRecordStoresOf, c as BackupDecryptError, f as generateBackupKeyPair, g as backupOrchestratorRecordKinds, h as readBackupEncryptionHeader, l as BackupKeyFormatError, r as prepareRestoreArchive, s as SystemBackupService, t as BackupKeyRequiredError, u as BackupKeyMismatchError } from "./restore-archive-D0F1Cn_F.mjs";
|
|
46
46
|
import { r as nodeCoralFs, t as classifyCoralAccelerator } from "./coral-accelerators-DBlgWB8k.mjs";
|
|
47
47
|
import { z } from "zod";
|
|
48
48
|
import * as crypto$1 from "node:crypto";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _c as collectSecretMarkerRefs } from "./dist-
|
|
1
|
+
import { _c as collectSecretMarkerRefs } from "./dist-CahntDDE.mjs";
|
|
2
2
|
//#region src/builtins/sqlite-storage/migrations/legacy-integration-rows-door.ts
|
|
3
3
|
/**
|
|
4
4
|
* Migration-only door for the leftover integration rows (planning#416).
|
package/system/dist/{rename-composition-block-GL_gHhlg.mjs → rename-composition-block-QJrduoIS.mjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bl as COMPOSED_DEVICE_STABLE_ID_PREFIX, wl as errMsg } from "./dist-
|
|
1
|
+
import { bl as COMPOSED_DEVICE_STABLE_ID_PREFIX, wl as errMsg } from "./dist-CahntDDE.mjs";
|
|
2
2
|
//#region src/builtins/core-blocks/rename-composition-block.ts
|
|
3
3
|
/**
|
|
4
4
|
* An operator rename of a composed device writes the composition block's
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ec as defineRecordKinds, P as DATABASE_SNAPSHOT_SUFFIX, Q as DataStoreDatabaseSchema } from "./dist-
|
|
1
|
+
import { Ec as defineRecordKinds, P as DATABASE_SNAPSHOT_SUFFIX, Q as DataStoreDatabaseSchema } from "./dist-CahntDDE.mjs";
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { createCipheriv, createDecipheriv, createHash, createPrivateKey, createPublicKey, diffieHellman, generateKeyPairSync, hkdfSync, randomBytes } from "node:crypto";
|
|
4
4
|
import { Buffer as Buffer$1 } from "buffer";
|
|
Binary file
|
|
Binary file
|