iobroker.eos-admin 9.0.20 → 9.0.21
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/NEXOWATT_EOS_BUILD_INFO.json +3 -3
- package/README.md +5 -3
- package/adminWww/.vite/manifest.json +39 -39
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +107 -107
- package/adminWww/assets/{AdapterUpdateDialog-CRD3XVom.js → AdapterUpdateDialog-Dxl_b7Op.js} +1 -1
- package/adminWww/assets/{Adapters-Cuf0X0CU.js → Adapters-CVKKhXmI.js} +1 -1
- package/adminWww/assets/{ConfigManager-B8ycQt1C.js → ConfigManager-Bf6nTAkL.js} +1 -1
- package/adminWww/assets/{Enums-CctVCgZX.js → Enums-CJHVJY7t.js} +1 -1
- package/adminWww/assets/{Fields-onm4DfoO.js → Fields-DWHbZKvm.js} +1 -1
- package/adminWww/assets/{Files-OLP3Rwc7.js → Files-a6owMTXA.js} +1 -1
- package/adminWww/assets/{Hosts-C31oqMcW.js → Hosts-LtEMeXpV.js} +1 -1
- package/adminWww/assets/{Instances-DFdvJ9pa.js → Instances-DhChziA1.js} +1 -1
- package/adminWww/assets/{Intro-DvsFJxU0.js → Intro-Cyq9gVDC.js} +1 -1
- package/adminWww/assets/{Logs-Zqg2Bqv6.js → Logs-wcramXsg.js} +1 -1
- package/adminWww/assets/{Objects-CpWZp6yp.js → Objects-DINVHd_e.js} +1 -1
- package/adminWww/assets/{Overview-BsKUo298.js → Overview-DK4R41zR.js} +1 -1
- package/adminWww/assets/{State-D_xwlhhb.js → State-DcEACXzL.js} +1 -1
- package/adminWww/assets/{UsedResources-C79N6yZx.js → UsedResources-C1LcM0Rb.js} +1 -1
- package/adminWww/assets/{Users-WgC0O8P0.js → Users-DvDdSyDY.js} +1 -1
- package/adminWww/assets/{bootstrap-BcfBoIoa.js → bootstrap-Dbj_GbnP.js} +3 -3
- package/adminWww/assets/{hostInit-B7bBV7cH.js → hostInit-BNFIx0-f.js} +1 -1
- package/adminWww/assets/{icons-material-D1JYmRTj.js → icons-material-DVbdXNgr.js} +1 -1
- package/adminWww/assets/{index-DbiuoDjo.js → index-CoKP1NSA.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-BAY-Pzp-.js → installSVGRenderer-CMvku1F1.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-33384c20.js → mf-entry-bootstrap-0-ac330bce.js} +2 -2
- package/adminWww/index.html +23 -23
- package/adminWww/mf-manifest.json +1 -1
- package/adminWww/mf-stats.json +1 -1
- package/adminWww/remoteEntry-eos-9.0.21.js +12 -0
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosCustomerUpdateHttp.js +203 -0
- package/build/lib/eosCustomerUpdateHttp.js.map +1 -0
- package/build/lib/eosCustomerUpdateTransport.js +472 -0
- package/build/lib/eosCustomerUpdateTransport.js.map +1 -0
- package/build/lib/eosCustomerUpdateWorker.js +567 -0
- package/build/lib/eosCustomerUpdateWorker.js.map +1 -0
- package/build/lib/eosCustomerUpdates.js +631 -0
- package/build/lib/eosCustomerUpdates.js.map +1 -0
- package/build/lib/eosModuleConfigStore.js +12 -1
- package/build/lib/eosModuleConfigStore.js.map +1 -1
- package/build/lib/eosModuleHost.js +41 -26
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/eosModuleHttp.js +8 -2
- package/build/lib/eosModuleHttp.js.map +1 -1
- package/build/lib/eosUpdateSnapshot.js +290 -0
- package/build/lib/eosUpdateSnapshot.js.map +1 -0
- package/build/lib/eosUploadGuard.js +124 -81
- package/build/lib/eosUploadGuard.js.map +1 -1
- package/build/lib/web.js +80 -0
- package/build/lib/web.js.map +1 -1
- package/io-package.json +8 -8
- package/modules/backup/admin/index.js +4 -1
- package/modules/devices/admin/host-bridge.js +5 -1
- package/modules/devices/lib/deviceRuntime.js +27 -4
- package/modules/devices/lib/drivers/mqtt.js +204 -82
- package/modules/devices/lib/drivers/mqttPendingOperations.js +119 -0
- package/modules/devices/test/mqttCommandLifecycle.test.js +255 -0
- package/modules/devices/test/mqttResourceBounds.test.js +98 -0
- package/modules/devices/test/mqttRuntimeSession.test.js +109 -0
- package/modules/devices/tsconfig.mqtt-lifecycle.json +20 -0
- package/modules/eebus/admin/index.js +6 -3
- package/package.json +4 -4
- package/release-manifests/unified/build-environment.cdx.json +6 -6
- package/release-manifests/unified/files.json +363 -95
- package/release-manifests/unified/frontend.cdx.json +6 -6
- package/release-manifests/unified/installer.cdx.json +6 -6
- package/release-manifests/unified/obsolete-admin-assets.json +66 -0
- package/release-manifests/unified/runtime.cdx.json +25 -25
- package/release-manifests/unified/validation.json +15 -15
- package/tools/eos-release-manifest.cjs +3 -3
- package/ui/docs/security/eslint-reviewed-findings.json +83 -27
- package/ui/ems/engine.js +14 -3
- package/ui/ems/modules/tariff-provider.js +34 -10
- package/ui/ems/services/tariff-provider-registry.js +18 -8
- package/ui/io-package.json +1 -1
- package/ui/main.js +65 -34
- package/ui/package.json +1 -1
- package/ui/www/app.js +3 -2
- package/ui/www/eos-updates.css +15 -0
- package/ui/www/eos-updates.js +351 -0
- package/ui/www/index.html +2 -0
- package/ui/www/manifest.webmanifest +3 -3
- package/ui/www/settings.html +34 -0
- package/adminWww/remoteEntry-eos-9.0.20.js +0 -12
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Real MQTT.js and TCP fault tests. Only the localhost broker and ioBroker state
|
|
4
|
+
// sink are simulated; no live device or physical actuator is contacted.
|
|
5
|
+
const test = require('node:test');
|
|
6
|
+
const assert = require('node:assert/strict');
|
|
7
|
+
const net = require('node:net');
|
|
8
|
+
const { once } = require('node:events');
|
|
9
|
+
const { createRequire } = require('node:module');
|
|
10
|
+
const path = require('node:path');
|
|
11
|
+
const req = createRequire(path.join(process.env.EOS_TEST_ROOT || path.resolve(__dirname, '../../..'), 'package.json'));
|
|
12
|
+
const packets = req('mqtt-packet');
|
|
13
|
+
const { MqttDriver } = req('./modules/devices/lib/drivers/mqtt');
|
|
14
|
+
const { guardDriver } = req('./modules/devices/operation-guard');
|
|
15
|
+
|
|
16
|
+
async function until(predicate, message, timeout = 2500) {
|
|
17
|
+
const deadline = Date.now() + timeout;
|
|
18
|
+
while (!predicate()) {
|
|
19
|
+
if (Date.now() >= deadline) throw new Error(message);
|
|
20
|
+
await new Promise(resolve => setTimeout(resolve, 10));
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
async function broker(t, { acknowledge = false, subscribe = true } = {}) {
|
|
25
|
+
const sockets = new Set();
|
|
26
|
+
const publications = [];
|
|
27
|
+
let connections = 0;
|
|
28
|
+
let allowed = true;
|
|
29
|
+
let acknowledgePublishes = acknowledge;
|
|
30
|
+
const server = net.createServer(socket => {
|
|
31
|
+
sockets.add(socket);
|
|
32
|
+
socket.on('error', () => {});
|
|
33
|
+
socket.on('close', () => sockets.delete(socket));
|
|
34
|
+
const parser = packets.parser();
|
|
35
|
+
socket.on('data', data => parser.parse(data));
|
|
36
|
+
parser.on('packet', packet => {
|
|
37
|
+
if (packet.cmd === 'connect') {
|
|
38
|
+
connections += 1;
|
|
39
|
+
socket.write(packets.generate({ cmd: 'connack', returnCode: 0, sessionPresent: false }));
|
|
40
|
+
}
|
|
41
|
+
if (packet.cmd === 'subscribe' && subscribe) {
|
|
42
|
+
socket.write(packets.generate({ cmd: 'suback', messageId: packet.messageId, granted: packet.subscriptions.map(() => 0) }));
|
|
43
|
+
}
|
|
44
|
+
if (packet.cmd === 'publish') {
|
|
45
|
+
publications.push({ value: packet.payload.toString(), connection: connections, authorized: allowed });
|
|
46
|
+
if (acknowledgePublishes && packet.qos === 1) socket.write(packets.generate({ cmd: 'puback', messageId: packet.messageId }));
|
|
47
|
+
}
|
|
48
|
+
if (packet.cmd === 'pingreq') socket.write(packets.generate({ cmd: 'pingresp' }));
|
|
49
|
+
if (packet.cmd === 'disconnect') socket.end();
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
server.listen(0, '127.0.0.1');
|
|
53
|
+
await once(server, 'listening');
|
|
54
|
+
t.after(async () => {
|
|
55
|
+
for (const socket of sockets) socket.destroy();
|
|
56
|
+
await new Promise(resolve => server.close(resolve));
|
|
57
|
+
});
|
|
58
|
+
return {
|
|
59
|
+
url: `mqtt://127.0.0.1:${server.address().port}`,
|
|
60
|
+
publications,
|
|
61
|
+
get connections() { return connections; },
|
|
62
|
+
get sockets() { return sockets.size; },
|
|
63
|
+
get allowed() { return allowed; },
|
|
64
|
+
set allowed(value) { allowed = value; },
|
|
65
|
+
acknowledge() { acknowledgePublishes = true; },
|
|
66
|
+
drop() { for (const socket of sockets) socket.destroy(); },
|
|
67
|
+
broadcast(topic, data) {
|
|
68
|
+
for (const socket of sockets) socket.write(packets.generate({ cmd: 'publish', topic, payload: JSON.stringify(data), qos: 0, retain: false }));
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
function harness(t, broker, templateExtra = {}, connectionExtra = {}) {
|
|
74
|
+
const command = { id: 'command', type: 'number', rw: 'wo', source: { kind: 'mqtt', topic: 'control/power', qos: 1 } };
|
|
75
|
+
const template = {
|
|
76
|
+
datapoints: [{ id: 'power', type: 'number', rw: 'ro', source: { kind: 'mqtt', topic: 'meter/power' } }, command],
|
|
77
|
+
...templateExtra,
|
|
78
|
+
};
|
|
79
|
+
const adapter = { namespace: 'eos-admin.0', log: { info() {}, debug() {}, warn() {}, error() {} }, async setStateAsync() {} };
|
|
80
|
+
const driver = guardDriver(new MqttDriver(adapter, {
|
|
81
|
+
id: 'mqtt-lifecycle-test', connection: { url: broker.url, reconnectPeriodMs: 50, ...connectionExtra },
|
|
82
|
+
}, template, {}, dp => dp.id, () => null), () => broker.allowed);
|
|
83
|
+
t.after(async () => { await driver.disconnect(); });
|
|
84
|
+
return { driver, command };
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
for (const revoked of [false, true]) {
|
|
88
|
+
test(`unacknowledged MQTT power command is not replayed on reconnect${revoked ? ' after authorization revocation' : ''}`,
|
|
89
|
+
{ timeout: 9000 }, async t => {
|
|
90
|
+
const b = await broker(t);
|
|
91
|
+
const { driver, command } = harness(t, b);
|
|
92
|
+
await driver.connect();
|
|
93
|
+
await until(() => driver.connected, 'broker did not connect');
|
|
94
|
+
const previous = driver.writeDatapoint(command, 681).then(() => ({ ok: true }), error => ({ ok: false, error }));
|
|
95
|
+
await until(() => b.publications.length === 1, 'first command did not arrive');
|
|
96
|
+
if (revoked) b.allowed = false;
|
|
97
|
+
b.drop();
|
|
98
|
+
await new Promise(resolve => setTimeout(resolve, 250));
|
|
99
|
+
assert.deepEqual(b.publications.map(p => p.value), ['681'], 'a reconnect must not resend an old actuator command');
|
|
100
|
+
assert.equal((await previous).ok, false, 'lost acknowledgement is not success');
|
|
101
|
+
if (revoked) assert.equal(b.connections, 1, 'no new connection without current authorization');
|
|
102
|
+
b.allowed = true;
|
|
103
|
+
b.acknowledge();
|
|
104
|
+
await until(() => driver.connected && b.connections >= 2, 'new authorized session did not connect');
|
|
105
|
+
await driver.writeDatapoint(command, 420);
|
|
106
|
+
await until(() => b.publications.length === 2, 'fresh command did not arrive');
|
|
107
|
+
assert.deepEqual(b.publications.map(p => p.value), ['681', '420']);
|
|
108
|
+
await driver.disconnect();
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
test('offline commands fail instead of being queued for a later MQTT session', { timeout: 9000 }, async t => {
|
|
113
|
+
const b = await broker(t, { acknowledge: true });
|
|
114
|
+
const { driver, command } = harness(t, b, {}, { reconnectPeriodMs: 300 });
|
|
115
|
+
await driver.connect();
|
|
116
|
+
await until(() => driver.connected, 'not connected');
|
|
117
|
+
b.drop();
|
|
118
|
+
await until(() => !driver.connected, 'disconnect not observed');
|
|
119
|
+
await assert.rejects(driver.writeDatapoint(command, 950), /not connected/);
|
|
120
|
+
await until(() => driver.connected && b.connections === 2, 'did not reconnect');
|
|
121
|
+
assert.equal(b.publications.length, 0);
|
|
122
|
+
await driver.writeDatapoint(command, 100);
|
|
123
|
+
assert.deepEqual(b.publications.map(p => p.value), ['100']);
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
test('missing PUBACK reaches deadline and closes actual transport before fresh reconnect', { timeout: 10000 }, async t => {
|
|
127
|
+
const b = await broker(t);
|
|
128
|
+
const { driver, command } = harness(t, b);
|
|
129
|
+
await driver.connect();
|
|
130
|
+
await until(() => driver.connected, 'not connected');
|
|
131
|
+
const began = Date.now();
|
|
132
|
+
await assert.rejects(driver.writeDatapoint(command, 700), /E_MQTT_PUBLISH_TIMEOUT/);
|
|
133
|
+
assert.ok(Date.now() - began < 5800, 'publish exceeded its total deadline');
|
|
134
|
+
b.acknowledge();
|
|
135
|
+
await until(() => driver.connected && b.connections === 2, 'fresh client did not reconnect');
|
|
136
|
+
assert.deepEqual(b.publications.map(p => p.value), ['700'], 'timed out command was retained');
|
|
137
|
+
await driver.writeDatapoint(command, 20);
|
|
138
|
+
assert.deepEqual(b.publications.map(p => p.value), ['700', '20']);
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
test('missing SUBACK is bounded and does not block stop or next session', { timeout: 10000 }, async t => {
|
|
142
|
+
const b = await broker(t, { subscribe: false });
|
|
143
|
+
const { driver } = harness(t, b);
|
|
144
|
+
await driver.connect();
|
|
145
|
+
await until(() => driver.connected, 'not connected');
|
|
146
|
+
await until(() => b.connections === 2 && driver.connected && driver._pendingOperations.size === 1, 'subscription deadline did not replace broken session', 6500);
|
|
147
|
+
assert.equal(driver._pendingOperations.size, 1, 'old subscription remains pending');
|
|
148
|
+
await driver.disconnect();
|
|
149
|
+
assert.equal(driver._pendingOperations.size, 0);
|
|
150
|
+
await until(() => b.sockets === 0, 'stop did not close actual socket');
|
|
151
|
+
});
|
|
152
|
+
|
|
153
|
+
test('controlled stop shares one deadline across three safe QoS1 shutdown groups', { timeout: 8000 }, async t => {
|
|
154
|
+
const b = await broker(t);
|
|
155
|
+
const { driver } = harness(t, b, {
|
|
156
|
+
datapoints: [1, 2, 3].map(n => ({ id: `safe${n}`, type: 'number', rw: 'wo', source: { kind: 'mqtt', topic: `control/power${n}`, writeGroup: `power${n}` } })),
|
|
157
|
+
driverHints: { mqtt: { writeGroups: Object.fromEntries([1, 2, 3].map(n => [`power${n}`, { topic: `control/power${n}`, qos: 1, safeOnDisconnect: true, safeOnInitialConnect: false, refreshIntervalMs: 60000, safeValue: 0, fields: { Power: { dpId: `safe${n}` } } }])) } },
|
|
158
|
+
});
|
|
159
|
+
await driver.connect();
|
|
160
|
+
await until(() => driver.connected && driver.writeGroupStates.size === 3, 'write groups not initialized');
|
|
161
|
+
const started = Date.now();
|
|
162
|
+
await driver.disconnect();
|
|
163
|
+
assert.ok(Date.now() - started < 3500, 'safe publish prevents bounded stop');
|
|
164
|
+
await until(() => b.sockets === 0, 'actual socket remains open');
|
|
165
|
+
assert.equal(driver.writeGroupTimers.size, 0);
|
|
166
|
+
assert.equal(driver._pendingOperations.size, 0);
|
|
167
|
+
await new Promise(resolve => setTimeout(resolve, 150));
|
|
168
|
+
assert.equal(b.connections, 1, 'stop reconnected transport');
|
|
169
|
+
assert.deepEqual(b.publications.map(p => JSON.parse(p.value)), [{ Power: 0 }]);
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
test('parallel connect calls share one MQTT client', { timeout: 5000 }, async t => {
|
|
173
|
+
const b = await broker(t, { acknowledge: true });
|
|
174
|
+
const { driver } = harness(t, b);
|
|
175
|
+
await Promise.all([driver.connect(), driver.connect(), driver.connect()]);
|
|
176
|
+
await until(() => driver.connected, 'not connected');
|
|
177
|
+
assert.equal(b.connections, 1);
|
|
178
|
+
await driver.disconnect();
|
|
179
|
+
await until(() => b.sockets === 0, 'orphan socket after stop');
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
test('a delayed old MQTT sample cannot revive aliases or finish multi-value updates in a new session', { timeout: 9000 }, async t => {
|
|
184
|
+
const b = await broker(t, { acknowledge: true });
|
|
185
|
+
const states = new Map();
|
|
186
|
+
const snapshots = [];
|
|
187
|
+
let release;
|
|
188
|
+
const blocked = new Promise(resolve => { release = resolve; });
|
|
189
|
+
let firstPending = false;
|
|
190
|
+
const adapter = {
|
|
191
|
+
namespace: 'eos-admin.0', log: { info() {}, debug() {}, warn() {}, error() {} },
|
|
192
|
+
async setStateAsync(id, state) {
|
|
193
|
+
states.set(id, state.val);
|
|
194
|
+
if (id === 'first' && state.val === 123) { firstPending = true; await blocked; }
|
|
195
|
+
},
|
|
196
|
+
};
|
|
197
|
+
const template = { datapoints: ['first', 'second'].map(id => ({
|
|
198
|
+
id, type: 'number', rw: 'ro', source: { kind: 'mqtt', topic: 'meter/pair', format: 'json', jsonPath: id },
|
|
199
|
+
})) };
|
|
200
|
+
const driver = guardDriver(new MqttDriver(adapter, { id: 'old-message', connection: { url: b.url, reconnectPeriodMs: 50 } },
|
|
201
|
+
template, {}, dp => dp.id, () => null, null, values => snapshots.push(values)), () => b.allowed);
|
|
202
|
+
t.after(async () => { release(); await driver.disconnect(); });
|
|
203
|
+
await driver.connect();
|
|
204
|
+
await until(() => driver.connected && driver.subscriptionResults.size > 0, 'first subscriptions missing');
|
|
205
|
+
b.broadcast('meter/pair', { first: 123, second: 456 });
|
|
206
|
+
await until(() => firstPending, 'state sink did not block first sample');
|
|
207
|
+
b.drop();
|
|
208
|
+
await until(() => !driver.connected, 'old session did not disconnect');
|
|
209
|
+
await new Promise(resolve => setTimeout(resolve, 100));
|
|
210
|
+
assert.equal(b.connections, 1, 'replacement must wait for the old submitted DB write');
|
|
211
|
+
release();
|
|
212
|
+
await driver._messageQueue;
|
|
213
|
+
await until(() => driver.connected && b.connections === 2 && driver.subscriptionResults.size > 0, 'replacement session missing after drain');
|
|
214
|
+
assert.equal(states.has('second'), false, 'obsolete second field crossed the reconnect boundary');
|
|
215
|
+
assert.equal(snapshots.length, 0, 'old sample revived live aliases');
|
|
216
|
+
b.broadcast('meter/pair', { first: 7, second: 8 });
|
|
217
|
+
await until(() => states.get('second') === 8 && snapshots.length === 1, 'new live sample not delivered');
|
|
218
|
+
assert.deepEqual(snapshots[0], { first: 7, second: 8 });
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
test('unconfirmed MQTT transport cleanup does not start a second client', { timeout: 5000 }, async t => {
|
|
223
|
+
const b = await broker(t, { acknowledge: true });
|
|
224
|
+
const { driver } = harness(t, b);
|
|
225
|
+
await driver.connect();
|
|
226
|
+
await until(() => driver.connected, 'not connected');
|
|
227
|
+
const client = driver.client;
|
|
228
|
+
const end = client.end;
|
|
229
|
+
client.end = () => { throw new Error('controlled end failure'); };
|
|
230
|
+
try {
|
|
231
|
+
b.drop();
|
|
232
|
+
await until(() => !driver.connected, 'disconnect not observed');
|
|
233
|
+
await new Promise(resolve => setTimeout(resolve, 180));
|
|
234
|
+
assert.equal(b.connections, 1, 'replacement started without confirmed cleanup');
|
|
235
|
+
assert.equal(driver.client, client, 'unconfirmed transport became unreachable for stop retry');
|
|
236
|
+
assert.match(driver._lastPrimaryConnectionError, /E_MQTT_STOP_UNCONFIRMED/);
|
|
237
|
+
} finally {
|
|
238
|
+
client.end = end;
|
|
239
|
+
await driver.disconnect();
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
|
|
243
|
+
test('safe shutdown never bypasses revoked device authority', { timeout: 5000 }, async t => {
|
|
244
|
+
const b = await broker(t, { acknowledge: true });
|
|
245
|
+
const { driver } = harness(t, b, {
|
|
246
|
+
datapoints: [{ id: 'safe', type: 'number', rw: 'wo', source: { kind: 'mqtt', topic: 'control/power', writeGroup: 'power' } }],
|
|
247
|
+
driverHints: { mqtt: { writeGroups: { power: { topic: 'control/power', qos: 1, safeOnDisconnect: true, safeOnInitialConnect: false, refreshIntervalMs: 60000, safeValue: 0, fields: { Power: { dpId: 'safe' } } } } } },
|
|
248
|
+
});
|
|
249
|
+
await driver.connect();
|
|
250
|
+
await until(() => driver.connected && driver.writeGroupStates.size === 1, 'write group not initialized');
|
|
251
|
+
b.allowed = false;
|
|
252
|
+
await driver.disconnect();
|
|
253
|
+
await until(() => b.sockets === 0, 'socket did not close after authority loss');
|
|
254
|
+
assert.equal(b.publications.length, 0, 'safe value was used to bypass authority');
|
|
255
|
+
});
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const test = require('node:test');
|
|
3
|
+
const assert = require('node:assert/strict');
|
|
4
|
+
const net = require('node:net');
|
|
5
|
+
const path = require('node:path');
|
|
6
|
+
const { once } = require('node:events');
|
|
7
|
+
const { createRequire } = require('node:module');
|
|
8
|
+
const req = createRequire(path.join(process.env.EOS_TEST_ROOT || path.resolve(__dirname, '../../..'), 'package.json'));
|
|
9
|
+
const packets = req('mqtt-packet');
|
|
10
|
+
const { MqttDriver } = req('./modules/devices/lib/drivers/mqtt');
|
|
11
|
+
async function until(fn, message, limit = 2500) {
|
|
12
|
+
const deadline = Date.now() + limit;
|
|
13
|
+
while (!fn()) {
|
|
14
|
+
if (Date.now() >= deadline) throw new Error(message);
|
|
15
|
+
await new Promise(resolve => setTimeout(resolve, 5));
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
async function harness(t, holdFirst = false) {
|
|
19
|
+
const sockets = new Set(); const values = []; const warnings = [];
|
|
20
|
+
let connections = 0; let entered = false; let release;
|
|
21
|
+
const held = new Promise(resolve => { release = resolve; });
|
|
22
|
+
const server = net.createServer(socket => {
|
|
23
|
+
sockets.add(socket); socket.on('error', () => {}); socket.on('close', () => sockets.delete(socket));
|
|
24
|
+
const parser = packets.parser(); socket.on('data', data => parser.parse(data));
|
|
25
|
+
parser.on('packet', packet => {
|
|
26
|
+
if (packet.cmd === 'connect') { connections += 1; socket.write(packets.generate({ cmd: 'connack', returnCode: 0, sessionPresent: false })); }
|
|
27
|
+
if (packet.cmd === 'subscribe') socket.write(packets.generate({ cmd: 'suback', messageId: packet.messageId, granted: packet.subscriptions.map(() => 0) }));
|
|
28
|
+
if (packet.cmd === 'disconnect') socket.end();
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
server.listen(0, '127.0.0.1'); await once(server, 'listening');
|
|
32
|
+
const adapter = {
|
|
33
|
+
namespace: 'eos-admin.0', log: { info() {}, debug() {}, error() {}, warn(message) { warnings.push(message); } },
|
|
34
|
+
async setStateAsync(id, state) {
|
|
35
|
+
if (id === 'power') {
|
|
36
|
+
if (holdFirst && state.val === 1) { entered = true; await held; }
|
|
37
|
+
values.push(state.val);
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
const driver = new MqttDriver(adapter, { id: 'limits', connection: { url: `mqtt://127.0.0.1:${server.address().port}`, reconnectPeriodMs: 50 } }, {
|
|
42
|
+
datapoints: [{ id: 'power', type: 'number', rw: 'ro', source: { kind: 'mqtt', topic: 'meter/power', format: 'json', jsonPath: 'power' } }],
|
|
43
|
+
driverHints: { mqtt: { subscriptionFilters: [{ topic: '#' }] } },
|
|
44
|
+
}, {}, dp => dp.id, () => null);
|
|
45
|
+
t.after(async () => { release(); await driver.disconnect(); for (const socket of sockets) socket.destroy(); await new Promise(resolve => server.close(resolve)); });
|
|
46
|
+
await driver.connect();
|
|
47
|
+
await until(() => driver.connected && driver.subscriptionResults.size > 0, 'MQTT subscription did not complete');
|
|
48
|
+
return {
|
|
49
|
+
driver, values, warnings, release,
|
|
50
|
+
get entered() { return entered; }, get connections() { return connections; }, get sockets() { return sockets.size; },
|
|
51
|
+
send(topic, payload) { for (const socket of sockets) socket.write(packets.generate({ cmd: 'publish', topic, payload: JSON.stringify(payload), qos: 0, retain: false })); },
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
for (const [name, count, pad] of [['message count', 300, ''], ['queued payload bytes', 80, 'x'.repeat(64 * 1024)]]) {
|
|
56
|
+
test(`real MQTT backpressure bounds ${name} and reconnects only after the old DB write drains`, { timeout: 8000 }, async t => {
|
|
57
|
+
const h = await harness(t, true);
|
|
58
|
+
h.send('meter/power', { power: 1 });
|
|
59
|
+
await until(() => h.entered, 'first real MQTT sample did not reach blocked DB sink');
|
|
60
|
+
for (let i = 0; i < count; i++) h.send('meter/power', { power: 2, pad });
|
|
61
|
+
await until(() => !h.driver.connected, 'MQTT backlog was not bounded');
|
|
62
|
+
await until(() => h.sockets === 0, 'overloaded actual TCP socket stayed open');
|
|
63
|
+
assert.ok(h.driver._messageBacklog.count <= 256);
|
|
64
|
+
assert.ok(h.driver._messageBacklog.bytes <= 4 * 1024 * 1024);
|
|
65
|
+
assert.ok(h.warnings.some(message => message.includes('E_MQTT_BACKLOG_LIMIT')));
|
|
66
|
+
await new Promise(resolve => setTimeout(resolve, 100));
|
|
67
|
+
assert.equal(h.connections, 1, 'replacement started before old write drained');
|
|
68
|
+
h.release();
|
|
69
|
+
await until(() => h.connections === 2 && h.driver.connected && h.driver.subscriptionResults.size > 0, 'controlled retry did not recover');
|
|
70
|
+
assert.deepEqual(h.values, [1], 'old queued samples were silently replayed as fresh');
|
|
71
|
+
assert.equal(h.driver._messageBacklog.count, 0);
|
|
72
|
+
h.send('meter/power', { power: 99 });
|
|
73
|
+
await until(() => h.values.includes(99), 'fresh telemetry did not recover');
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
test('MQTT single payload exceeding one MiB is rejected visibly before application state writes', { timeout: 6000 }, async t => {
|
|
78
|
+
const h = await harness(t);
|
|
79
|
+
h.send('meter/power', { power: 999, pad: 'x'.repeat(1024 * 1024) });
|
|
80
|
+
await until(() => h.warnings.some(message => message.includes('E_MQTT_PAYLOAD_LIMIT')), 'oversized payload was not rejected');
|
|
81
|
+
await until(() => h.connections === 2 && h.driver.connected, 'fresh session not opened');
|
|
82
|
+
assert.deepEqual(h.values, []);
|
|
83
|
+
assert.equal(h.driver._messageBacklog.bytes, 0);
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
test('MQTT wildcard topic discovery is capped per session with an explicit transport error', { timeout: 8000 }, async t => {
|
|
87
|
+
const h = await harness(t);
|
|
88
|
+
for (let n = 0; n < 512; n += 16) {
|
|
89
|
+
for (let i = n; i < n + 16; i++) h.send(`unknown/${i}`, { value: i });
|
|
90
|
+
await until(() => h.driver.messageCount >= n + 16, 'controlled discovery batch did not drain');
|
|
91
|
+
await h.driver._messageQueue;
|
|
92
|
+
}
|
|
93
|
+
h.send('unknown/512', { value: 512 });
|
|
94
|
+
await until(() => h.warnings.some(message => message.includes('E_MQTT_DISCOVERED_TOPIC_LIMIT')), 'wildcard discovery grows without bound');
|
|
95
|
+
assert.ok(h.driver.discoveredTopics.size <= 512);
|
|
96
|
+
await until(() => h.connections === 2 && h.driver.connected, 'topic-limit retry did not recover');
|
|
97
|
+
assert.equal(h.driver.discoveredTopics.size, 0, 'new session still holds obsolete discovery names');
|
|
98
|
+
});
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/** Independent review regression: actual DeviceRuntime callbacks and queue;
|
|
3
|
+
* database completion and driver transport shutdown are controlled fixtures. */
|
|
4
|
+
const test = require('node:test');
|
|
5
|
+
const assert = require('node:assert/strict');
|
|
6
|
+
const path = require('node:path');
|
|
7
|
+
const { createRequire } = require('node:module');
|
|
8
|
+
const root = path.resolve(__dirname, '../../..');
|
|
9
|
+
const req = createRequire(path.join(process.env.EOS_MQTT_RUNTIME_ROOT || root, 'package.json'));
|
|
10
|
+
const { DeviceRuntime } = req('./modules/devices/lib/deviceRuntime');
|
|
11
|
+
const { MqttCallbackQueue, runMqttMessageSession } = require('../lib/drivers/mqttPendingOperations');
|
|
12
|
+
const template = req('./modules/devices/lib/templates.json').templates.find(row => row.id === 'ess.tesvolt.iotGateway.mqttV2');
|
|
13
|
+
const deferred = () => { let resolve; const promise = new Promise(done => { resolve = done; }); return { promise, resolve }; };
|
|
14
|
+
|
|
15
|
+
function fixture() {
|
|
16
|
+
const held = deferred(); const entered = deferred(); const writes = [];
|
|
17
|
+
let first = true; let current = true;
|
|
18
|
+
const adapter = { log: { debug() {}, info() {}, warn() {}, error() {} }, async setStateAsync(id, state) {
|
|
19
|
+
if (id.endsWith('.info.connection') && state.val === true && first) {
|
|
20
|
+
first = false; entered.resolve(); await held.promise;
|
|
21
|
+
}
|
|
22
|
+
writes.push({ id, ...state });
|
|
23
|
+
} };
|
|
24
|
+
const runtime = new DeviceRuntime(adapter, { id: 'session-review', category: template.category, protocol: 'mqtt', connection: {} }, template, {});
|
|
25
|
+
for (const dp of template.datapoints) runtime.dpById.set(dp.id, dp);
|
|
26
|
+
runtime.aliasDefs = runtime._buildAliasDefinitions();
|
|
27
|
+
return { runtime, writes, held, entered, current: () => current, invalidate: () => { current = false; },
|
|
28
|
+
last: suffix => writes.findLast(row => row.id.endsWith(suffix))?.val };
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
for (const reconnect of [false, true]) test(`old MQTT callback cannot publish aliases beyond offline${reconnect ? ' and a following connection' : ''}`, { timeout: 2000 }, async t => {
|
|
32
|
+
const f = fixture(); t.after(() => f.held.resolve());
|
|
33
|
+
const old = runMqttMessageSession(f.current, () => f.runtime._handleMqttSnapshot({ aCTIVE_POWER: 12, bATTERY_SOC: 80 }, { connected: true }));
|
|
34
|
+
const oldResult = old.then(() => 'completed', error => error.message);
|
|
35
|
+
await f.entered.promise; f.invalidate();
|
|
36
|
+
let offlineFinished = false;
|
|
37
|
+
const offline = f.runtime._handleMqttConnectionState(false, 'test disconnect').then(() => { offlineFinished = true; });
|
|
38
|
+
const newConnection = reconnect ? f.runtime._handleMqttConnectionState(true, '') : Promise.resolve();
|
|
39
|
+
await new Promise(resolve => setImmediate(resolve));
|
|
40
|
+
const offlineFinishedBeforeOldWrite = offlineFinished;
|
|
41
|
+
f.held.resolve();
|
|
42
|
+
const result = await oldResult; await Promise.all([offline, newConnection]);
|
|
43
|
+
assert.equal(offlineFinishedBeforeOldWrite, false, 'offline completion must wait for already-submitted old DB write');
|
|
44
|
+
assert.equal(result, 'E_MQTT_MESSAGE_SESSION_ENDED');
|
|
45
|
+
assert.equal(f.last('.info.connection'), reconnect);
|
|
46
|
+
assert.equal(f.last('.aliases.v1.comm.connected'), reconnect);
|
|
47
|
+
assert.equal(f.writes.some(row => row.id.endsWith('.aliases.v1.r.power') && row.val === 12), false);
|
|
48
|
+
assert.equal(f.writes.some(row => row.id.endsWith('.aliases.v1.r.soc') && row.val === 80), false);
|
|
49
|
+
assert.equal(f.runtime._mqttCallbacks.pendingCount, 0);
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
test('nested offline callback can publish diagnostic aliases without a FIFO deadlock', { timeout: 2000 }, async () => {
|
|
53
|
+
const f = fixture();
|
|
54
|
+
f.runtime.driver = { handleOffline: async () => f.runtime._handleMqttSnapshot({}, { connected: false, diagnosticsOnly: true }) };
|
|
55
|
+
await f.runtime._handleMqttConnectionState(false, 'test nested offline');
|
|
56
|
+
await f.runtime._mqttCallbacks.drain();
|
|
57
|
+
assert.equal(f.last('.aliases.v1.comm.connected'), false);
|
|
58
|
+
assert.equal(f.runtime._mqttCallbacks.pendingCount, 0);
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
test('telemetry backlog is bounded while the final offline barrier remains ordered and observable', { timeout: 2000 }, async t => {
|
|
62
|
+
const queue = new MqttCallbackQueue(); const held = deferred(); const order = [];
|
|
63
|
+
t.after(() => held.resolve());
|
|
64
|
+
const actions = [queue.run(async () => { await held.promise; order.push('first'); })];
|
|
65
|
+
for (let i = 1; i < 32; i++) actions.push(queue.run(async () => { order.push(i); }));
|
|
66
|
+
await assert.rejects(queue.run(async () => { order.push('overflow'); }), /E_MQTT_CALLBACK_BACKLOG/);
|
|
67
|
+
const offline = queue.run(async () => { order.push('offline'); }, 'barrier');
|
|
68
|
+
assert.equal(queue.pendingCount, 33);
|
|
69
|
+
held.resolve(); await Promise.all([...actions, offline]); await queue.drain();
|
|
70
|
+
assert.equal(order.length, 33); assert.equal(order.at(-1), 'offline');
|
|
71
|
+
assert.equal(queue.pendingCount, 0);
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
test('an inherited async context from a completed callback cannot bypass the current FIFO owner', { timeout: 2000 }, async t => {
|
|
75
|
+
const queue = new MqttCallbackQueue(); const held = deferred(); const entered = deferred(); const scheduled = deferred();
|
|
76
|
+
const order = []; let inherited;
|
|
77
|
+
t.after(() => held.resolve());
|
|
78
|
+
await queue.run(async () => {
|
|
79
|
+
setTimeout(() => {
|
|
80
|
+
inherited = queue.run(async () => { order.push('inherited'); });
|
|
81
|
+
scheduled.resolve();
|
|
82
|
+
}, 0);
|
|
83
|
+
});
|
|
84
|
+
const active = queue.run(async () => { entered.resolve(); await held.promise; order.push('current'); });
|
|
85
|
+
await entered.promise; await scheduled.promise;
|
|
86
|
+
await new Promise(resolve => setImmediate(resolve));
|
|
87
|
+
const bypassed = order.includes('inherited');
|
|
88
|
+
held.resolve(); await Promise.all([active, inherited]); await queue.drain();
|
|
89
|
+
assert.equal(bypassed, false, 'a stale ALS token must not admit concurrent callbacks');
|
|
90
|
+
assert.deepEqual(order, ['current', 'inherited']);
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
test('runtime stop invalidates MQTT first and awaits the callback DB write before reporting stopped', { timeout: 2000 }, async t => {
|
|
94
|
+
const f = fixture(); t.after(() => f.held.resolve()); f.runtime.started = true;
|
|
95
|
+
f.runtime.driver = { disconnect: async () => { f.invalidate(); await f.runtime._handleMqttConnectionState(false, 'test stop'); } };
|
|
96
|
+
const old = runMqttMessageSession(f.current, () => f.runtime._handleMqttSnapshot({ aCTIVE_POWER: 12 }, { connected: true }));
|
|
97
|
+
const oldResult = old.then(() => 'completed', error => error.message);
|
|
98
|
+
await f.entered.promise;
|
|
99
|
+
let stopped = false;
|
|
100
|
+
const stopping = f.runtime.stop().then(() => { stopped = true; });
|
|
101
|
+
await new Promise(resolve => setImmediate(resolve));
|
|
102
|
+
const stoppedBeforeWriteSettled = stopped;
|
|
103
|
+
f.held.resolve(); await stopping;
|
|
104
|
+
assert.equal(stoppedBeforeWriteSettled, false);
|
|
105
|
+
assert.equal(await oldResult, 'E_MQTT_MESSAGE_SESSION_ENDED');
|
|
106
|
+
assert.equal(f.runtime.driver, null); assert.equal(f.runtime.started, false);
|
|
107
|
+
assert.equal(f.last('.info.connection'), false); assert.equal(f.last('.aliases.v1.comm.connected'), false);
|
|
108
|
+
assert.equal(f.writes.some(row => row.id.endsWith('.aliases.v1.r.power') && row.val === 12), false);
|
|
109
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"allowJs": true,
|
|
4
|
+
"checkJs": true,
|
|
5
|
+
"noEmit": true,
|
|
6
|
+
"target": "ES2022",
|
|
7
|
+
"module": "node16",
|
|
8
|
+
"moduleResolution": "node16",
|
|
9
|
+
"types": ["node"],
|
|
10
|
+
"strict": true,
|
|
11
|
+
"noUncheckedIndexedAccess": true,
|
|
12
|
+
"exactOptionalPropertyTypes": true,
|
|
13
|
+
"noImplicitOverride": true,
|
|
14
|
+
"noImplicitReturns": true,
|
|
15
|
+
"noFallthroughCasesInSwitch": true,
|
|
16
|
+
"forceConsistentCasingInFileNames": true,
|
|
17
|
+
"skipLibCheck": true
|
|
18
|
+
},
|
|
19
|
+
"files": ["lib/drivers/mqttPendingOperations.js"]
|
|
20
|
+
}
|
|
@@ -9,12 +9,13 @@
|
|
|
9
9
|
/** @typedef {[string, string, 'checkbox'|'number'|'text'|'password', boolean|number|string, number?, number?]} Field */
|
|
10
10
|
/** @typedef {{id:string,name:string,ski:string,fingerprint:string,trusted:boolean,state:string}} Device */
|
|
11
11
|
/** @typedef {{running:boolean,shipPort:number|undefined,commandDryRun:boolean,localSki:string,certificateFingerprint:string,devices:Device[]}} Details */
|
|
12
|
-
/** @typedef {{csrfToken?:string,config:Record<string,unknown>,status:{reason:string,state:string,details:Details}}} ApiData */
|
|
12
|
+
/** @typedef {{csrfToken?:string,configurationRevision?:string,config:Record<string,unknown>,status:{reason:string,state:string,details:Details}}} ApiData */
|
|
13
13
|
/** @param {unknown} value @returns {value is Record<string,unknown>} */
|
|
14
14
|
const record = value => !!value && typeof value === 'object' && !Array.isArray(value);
|
|
15
15
|
/** @param {unknown} raw @returns {ApiData} */
|
|
16
16
|
function parseData(raw) {
|
|
17
17
|
if (!record(raw)) throw new Error('EEBUS_API_RESPONSE');
|
|
18
|
+
if (raw.error === 'EOS_MODULE_CONFIG_CONFLICT') throw new Error('Die EEBus-Einstellungen wurden inzwischen geändert. Deine Eingaben bleiben erhalten. Seite neu laden und Änderungen mit dem gespeicherten Stand abgleichen.');
|
|
18
19
|
if (raw.error) throw new Error(typeof raw.error === 'string' ? raw.error : 'EEBUS_API_ERROR');
|
|
19
20
|
const status = record(raw.status) ? raw.status : {};
|
|
20
21
|
const data = record(status.details) ? status.details : status;
|
|
@@ -22,12 +23,14 @@
|
|
|
22
23
|
id: String(device.id || ''), name: String(device.name || ''), ski: String(device.ski || ''),
|
|
23
24
|
fingerprint: String(device.fingerprint || ''), trusted: device.trusted === true, state: String(device.state || '') }));
|
|
24
25
|
return { csrfToken: typeof raw.csrfToken === 'string' ? raw.csrfToken : undefined,
|
|
26
|
+
configurationRevision: typeof raw.configurationRevision === 'string' ? raw.configurationRevision : undefined,
|
|
25
27
|
config: record(raw.config) ? raw.config : {}, status: { reason: String(status.reason || ''), state: String(status.state || ''),
|
|
26
28
|
details: { running: data.running === true, shipPort: typeof data.shipPort === 'number' ? data.shipPort : undefined,
|
|
27
29
|
commandDryRun: data.commandDryRun !== false, localSki: String(data.localSki || ''),
|
|
28
30
|
certificateFingerprint: String(data.certificateFingerprint || ''), devices } } };
|
|
29
31
|
}
|
|
30
32
|
let token = '';
|
|
33
|
+
let configurationRevision = '';
|
|
31
34
|
let busy = false;
|
|
32
35
|
let initial = true;
|
|
33
36
|
/** @type {Field[]} */
|
|
@@ -117,7 +120,7 @@
|
|
|
117
120
|
row(status, 'Steuerbefehle', details.commandDryRun !== false ? 'Testmodus – keine Ausgabe' : 'Ausgabe freigegeben');
|
|
118
121
|
row(status, 'Eigener SKI', details.localSki || 'Wird beim ersten Start angelegt');
|
|
119
122
|
row(status, 'Zertifikat-Fingerabdruck', details.certificateFingerprint || '–');
|
|
120
|
-
if (initial || replaceConfig) { showConfig(data.config || {}); initial = false; }
|
|
123
|
+
if (initial || replaceConfig) { showConfig(data.config || {}); configurationRevision = data.configurationRevision || ''; initial = false; }
|
|
121
124
|
const list = element('devices'); list.replaceChildren();
|
|
122
125
|
if (!Array.isArray(details.devices) || !details.devices.length) list.textContent = 'Noch keine Geräte erkannt. Aktivierung, Netzwerk und EEBus an der Gegenstelle prüfen.';
|
|
123
126
|
for (const device of (Array.isArray(details.devices) ? details.devices : [])) {
|
|
@@ -148,7 +151,7 @@
|
|
|
148
151
|
element('refresh').addEventListener('click', () => operation(async () => { await render(); message('Status aktualisiert.'); }));
|
|
149
152
|
element('save').addEventListener('click', () => operation(async () => {
|
|
150
153
|
const config = readConfig();
|
|
151
|
-
await request('', 'PUT', { config }); await render(true); message('Konfiguration gespeichert.');
|
|
154
|
+
await request('', 'PUT', { config, expectedConfigurationRevision: configurationRevision }); await render(true); message('Konfiguration gespeichert.');
|
|
152
155
|
}));
|
|
153
156
|
element('import').addEventListener('click', () => operation(async () => {
|
|
154
157
|
const instance = inputElement('legacy').value.trim();
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iobroker.eos-admin",
|
|
3
3
|
"description": "NexoWatt EOS: licensed local energy management, dashboard and ioBroker system administration in one adapter.",
|
|
4
|
-
"version": "9.0.
|
|
4
|
+
"version": "9.0.21",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"bluefox <dogafox@gmail.com>",
|
|
7
7
|
"apollon77",
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
"build:ui-runtime": "node ui/scripts/build-smarthome-markdown.cjs && node ui/scripts/build-ts-runtime-executables.js",
|
|
215
215
|
"lint-backend": "eslint -c eslint.config.mjs src && npm run lint:unified",
|
|
216
216
|
"lint": "npm run lint-backend && cd src-admin && npm run lint",
|
|
217
|
-
"test:unified": "node --test test/eos-idle*.test.cjs test/eos-unified*.test.cjs test/eos-hosted-boundary-http.test.cjs test/eos-license*.test.cjs ui/test/unified/*.test.cjs test/eos-access-diagnostics.test.cjs test/eos-ingress-renderer.test.cjs test/eos-sbom-vendored.test.cjs test/eos-system-license-ui.test.cjs test/eos-history-deadline.test.cjs test/eos-socket-threshold.test.cjs test/eos-history-api-stability.test.cjs test/eos-ephemeral-cache.test.cjs test/eos-tls-management.test.cjs test/eos-tls-issuer-files.test.cjs test/eos-publish-prepare.test.cjs test/eos-publish-prepare-security.test.cjs test/eos-release-evidence.test.cjs test/eos-parallel-admin-objects.test.cjs test/eos-coexistence-recovery.test.cjs test/eos-socket-secret.test.cjs test/eos-role-policy.test.cjs test/eos-device-ems*.test.cjs test/eos-installer-lifecycle.test.cjs test/eos-customer-tariff*.test.cjs test/eos-ems-reconfiguration.test.cjs test/eos-power-measurements.test.cjs test/eos-mennekes-control.test.cjs test/eos-devices-start-lifecycle.test.cjs test/eos-storage-farm-overview.test.cjs test/eos-storagefarm-overview-ui.test.cjs test/eos-storagefarm-review.test.cjs test/eos-tariff*.test.cjs test/eos-history-measurement-integrity.test.cjs test/eos-ems-failed-init.test.cjs test/eos-live-display-regression.test.cjs test/eos-history-chart-gaps.test.cjs test/eos-history-negative-pricing.test.cjs test/eos-storagefarm-dispatch-diagnostics.test.cjs test/eos-storagefarm-controller-dispatch.test.cjs test/eos-storagefarm-dispatch-ui.test.cjs test/eos-storage-command-ack.test.cjs test/eos-device-command-subscriptions.test.cjs test/eos-influx*.test.cjs test/eos-history-setup-ui.test.cjs test/eos-login-pwa-branding.test.cjs test/eos-pwa-anonymous-https.test.cjs",
|
|
217
|
+
"test:unified": "node --test test/eos-idle*.test.cjs test/eos-unified*.test.cjs test/eos-hosted-boundary-http.test.cjs test/eos-license*.test.cjs ui/test/unified/*.test.cjs test/eos-access-diagnostics.test.cjs test/eos-ingress-renderer.test.cjs test/eos-sbom-vendored.test.cjs test/eos-system-license-ui.test.cjs test/eos-history-deadline.test.cjs test/eos-socket-threshold.test.cjs test/eos-history-api-stability.test.cjs test/eos-ephemeral-cache.test.cjs test/eos-tls-management.test.cjs test/eos-tls-issuer-files.test.cjs test/eos-publish-prepare.test.cjs test/eos-publish-prepare-security.test.cjs test/eos-release-evidence.test.cjs test/eos-parallel-admin-objects.test.cjs test/eos-coexistence-recovery.test.cjs test/eos-socket-secret.test.cjs test/eos-role-policy.test.cjs test/eos-device-ems*.test.cjs test/eos-installer-lifecycle.test.cjs test/eos-customer-tariff*.test.cjs test/eos-ems-reconfiguration.test.cjs test/eos-power-measurements.test.cjs test/eos-mennekes-control.test.cjs test/eos-devices-start-lifecycle.test.cjs test/eos-storage-farm-overview.test.cjs test/eos-storagefarm-overview-ui.test.cjs test/eos-storagefarm-review.test.cjs test/eos-tariff*.test.cjs test/eos-history-measurement-integrity.test.cjs test/eos-ems-failed-init.test.cjs test/eos-live-display-regression.test.cjs test/eos-history-chart-gaps.test.cjs test/eos-history-negative-pricing.test.cjs test/eos-storagefarm-dispatch-diagnostics.test.cjs test/eos-storagefarm-controller-dispatch.test.cjs test/eos-storagefarm-dispatch-ui.test.cjs test/eos-storage-command-ack.test.cjs test/eos-device-command-subscriptions.test.cjs test/eos-influx*.test.cjs test/eos-history-setup-ui.test.cjs test/eos-login-pwa-branding.test.cjs test/eos-pwa-anonymous-https.test.cjs test/eos-upload-admission.test.cjs test/eos-ems-nvp-recovery.test.cjs test/eos-storagefarm-concurrency.test.cjs test/eos-customer-update*.test.cjs",
|
|
218
218
|
"check:unified": "node tools/eos-release-check.cjs",
|
|
219
219
|
"seal:unified": "node tools/eos-release-manifest.cjs --write",
|
|
220
220
|
"prepack": "node tools/eos-prepare-publish.cjs && node tools/eos-release-check.cjs",
|
|
@@ -224,10 +224,10 @@
|
|
|
224
224
|
"test:retained": "node --test test/eos-session-security.test.cjs test/eos-web-resources.test.cjs test/eos-auth-regressions.test.cjs",
|
|
225
225
|
"test:package": "node --test test/eos-unified-metadata.test.cjs",
|
|
226
226
|
"test:integration": "mocha test/integration-unified.cjs --exit",
|
|
227
|
-
"typecheck": "tsc -p tsconfig.build.json --noEmit && tsc -p ui/tsconfig.ephemeral-cache.json && tsc -p ui/tsconfig.hosted-adapter.json && tsc -p modules/eebus/tsconfig.json --noEmit && tsc -p modules/backup/tsconfig.json --noEmit && tsc -p ui/tsconfig.smarthome-activation.json && tsc -p ui/tsconfig.ui-auth-frontend.json && tsc -p ui/tsconfig.preserved-ui-config.json && tsc -p ui/tsconfig.smarthome-feedback.json && tsc -p ui/tsconfig.smarthome-touch.json && tsc -p ui/tsconfig.smarthome-presentation.json && tsc -p ui/tsconfig.smarthome-device-controls.json && tsc -p ui/tsconfig.smarthome-device-api.json && tsc -p ui/tsconfig.smarthome-device-detection.json && tsc -p ui/tsconfig.smarthome-device-config.json && tsc -p ui/tsconfig.smarthome-device-controls-browser.json && tsc -p ui/tsconfig.smarthome-custom-views.json && tsc -p ui/tsconfig.smarthome-custom-contract.json && tsc -p ui/tsconfig.smarthome-custom-config.json && tsc -p ui/tsconfig.smarthome-device-legacy.json && tsc -p ui/tsconfig.smarthome-device-aliases.json && tsc -p ui/tsconfig.smarthome-alias-config.json && tsc -p ui/tsconfig.smarthome-device-categories.json && tsc -p ui/tsconfig.smarthome-layout-editor.json && tsc -p ui/tsconfig.hosted-runtime-stop.json && tsc -p ui/tsconfig.smarthome-setup.json && tsc -p ui/tsconfig.hosted-startup-status.json && tsc -p tsconfig.eos-device-ems.json && tsc -p modules/devices/tsconfig.ems-ui.json && tsc -p ui/tsconfig.installer-lifecycle.json && tsc -p ui/tsconfig.customer-tariff.json && tsc -p ui/tsconfig.customer-tariff-ui.json && tsc -p modules/devices/tsconfig.alias-semantics.json && tsc -p ui/tsconfig.power-measurements.json && tsc -p ui/tsconfig.storagefarm-summary-ui.json && tsc -p ui/tsconfig.tariff-display-ui.json && tsc -p ui/tsconfig.live-display-ui.json && tsc -p modules/devices/tsconfig.serial-lifecycle.json && tsc -p ui/tsconfig.storagefarm-dispatch-ui.json && tsc -p ui/tsconfig.influx-direct.json && tsc -p ui/tsconfig.influx-security.json && tsc -p ui/tsconfig.influx-history-runtime.json && tsc -p ui/src-admin-tab/tsconfig.json",
|
|
227
|
+
"typecheck": "tsc -p tsconfig.build.json --noEmit && tsc -p ui/tsconfig.ephemeral-cache.json && tsc -p ui/tsconfig.hosted-adapter.json && tsc -p modules/eebus/tsconfig.json --noEmit && tsc -p modules/backup/tsconfig.json --noEmit && tsc -p ui/tsconfig.smarthome-activation.json && tsc -p ui/tsconfig.ui-auth-frontend.json && tsc -p ui/tsconfig.preserved-ui-config.json && tsc -p ui/tsconfig.smarthome-feedback.json && tsc -p ui/tsconfig.smarthome-touch.json && tsc -p ui/tsconfig.smarthome-presentation.json && tsc -p ui/tsconfig.smarthome-device-controls.json && tsc -p ui/tsconfig.smarthome-device-api.json && tsc -p ui/tsconfig.smarthome-device-detection.json && tsc -p ui/tsconfig.smarthome-device-config.json && tsc -p ui/tsconfig.smarthome-device-controls-browser.json && tsc -p ui/tsconfig.smarthome-custom-views.json && tsc -p ui/tsconfig.smarthome-custom-contract.json && tsc -p ui/tsconfig.smarthome-custom-config.json && tsc -p ui/tsconfig.smarthome-device-legacy.json && tsc -p ui/tsconfig.smarthome-device-aliases.json && tsc -p ui/tsconfig.smarthome-alias-config.json && tsc -p ui/tsconfig.smarthome-device-categories.json && tsc -p ui/tsconfig.smarthome-layout-editor.json && tsc -p ui/tsconfig.hosted-runtime-stop.json && tsc -p ui/tsconfig.smarthome-setup.json && tsc -p ui/tsconfig.hosted-startup-status.json && tsc -p tsconfig.eos-device-ems.json && tsc -p modules/devices/tsconfig.ems-ui.json && tsc -p ui/tsconfig.installer-lifecycle.json && tsc -p ui/tsconfig.customer-tariff.json && tsc -p ui/tsconfig.customer-tariff-ui.json && tsc -p modules/devices/tsconfig.alias-semantics.json && tsc -p ui/tsconfig.power-measurements.json && tsc -p ui/tsconfig.storagefarm-summary-ui.json && tsc -p ui/tsconfig.tariff-display-ui.json && tsc -p ui/tsconfig.live-display-ui.json && tsc -p modules/devices/tsconfig.serial-lifecycle.json && tsc -p ui/tsconfig.storagefarm-dispatch-ui.json && tsc -p ui/tsconfig.influx-direct.json && tsc -p ui/tsconfig.influx-security.json && tsc -p ui/tsconfig.influx-history-runtime.json && tsc -p ui/src-admin-tab/tsconfig.json && tsc -p modules/devices/tsconfig.mqtt-lifecycle.json && tsc -p ui/tsconfig.eos-updates-ui.json && tsc -p tsconfig.eos-customer-updates.json",
|
|
228
228
|
"build:installer": "npm --prefix ui/src-admin-tab run build",
|
|
229
229
|
"sbom": "npm sbom --sbom-format=cyclonedx > release-manifests/unified/build-environment.cdx.json && node tools/eos-sbom-vendored.cjs",
|
|
230
|
-
"lint:unified": "eslint -c eslint.unified.config.mjs src/lib/eosUnifiedBoundary.js src/lib/eosSessionSecurity.js src/lib/eosCookieNamespace.js src/lib/eosNewsSecurity.js src/lib/eosRolePolicy.js src/lib/eosSocketSecret.js src/lib/eosUnifiedOwnership.js src/lib/eosLicenseCore.js src/lib/eosLicensePolicy.js src/lib/eosLicenseService.js src/lib/eosLicenseTrust.js src/lib/eosLicenseHttp.js tools/eos-release-check.cjs tools/eos-prepare-publish.cjs tools/eos-release-evidence.cjs tools/eos-release-manifest.cjs tools/eos-migration-plan.cjs tools/eos-access-diagnostics.cjs tools/eos-coexistence-recovery.cjs deploy/render-ingress.cjs tools/eos-sbom-vendored.cjs src/lib/eosDeviceEmsPlan.js src/lib/eosDeviceEmsService.js src/lib/eosModuleHost.js src/lib/eosModuleHttp.js src/lib/eosModuleConfigStore.js src/lib/eosLegacyMigration.js tools/eos-tls-issuer.cjs && eslint -c modules/backup/eslint.config.mjs modules/backup/src && eslint -c ui/eslint.smarthome-activation.config.mjs ui/src-ts/runtime-executables/lib/smarthome-activation.ts && eslint -c ui/eslint.preserved-ui-config.config.mjs ui/src-ts/runtime-executables/lib/preserved-ui-config.ts && eslint -c ui/eslint.smarthome-feedback.config.mjs ui/src-ts/runtime-executables/www/smarthome-feedback.ts && eslint -c ui/eslint.smarthome-touch.config.mjs ui/src-ts/runtime-executables/www/smarthome-touch.ts && eslint -c ui/eslint.smarthome-presentation.config.mjs ui/src-ts/runtime-executables/www/smarthome-presentation.ts && eslint -c ui/eslint.smarthome-device-controls.config.mjs ui/src-ts/runtime-executables/lib/smarthome-device-controls.ts && eslint -c ui/eslint.smarthome-device-api.config.mjs ui/src-ts/runtime-executables/lib/smarthome-device-api.ts && eslint -c ui/eslint.smarthome-device-detection.config.mjs ui/src-ts/runtime-executables/lib/smarthome-device-detection.ts && eslint -c ui/eslint.smarthome-device-config.config.mjs ui/src-ts/runtime-executables/www/smarthome-device-config.ts && eslint -c ui/eslint.smarthome-device-controls-browser.config.mjs ui/src-ts/runtime-executables/www/smarthome-device-controls.ts && eslint -c ui/eslint.smarthome-custom-views.config.mjs ui/src-ts/runtime-executables/www/smarthome-custom-views.ts && eslint -c ui/eslint.smarthome-custom-contract.config.mjs ui/src-ts/runtime-executables/lib/smarthome-custom-contract.ts && eslint -c ui/eslint.smarthome-custom-config.config.mjs ui/src-ts/runtime-executables/www/smarthome-custom-config.ts && eslint -c ui/eslint.smarthome-device-legacy.config.mjs ui/src-ts/runtime-executables/lib/smarthome-device-legacy.ts && eslint -c ui/eslint.smarthome-device-aliases.config.mjs ui/src-ts/runtime-executables/lib/smarthome-device-aliases.ts && eslint -c ui/eslint.smarthome-alias-config.config.mjs ui/src-ts/runtime-executables/www/smarthome-alias-config.ts && eslint -c ui/eslint.smarthome-device-categories.config.mjs ui/src-ts/runtime-executables/www/smarthome-device-categories.ts && eslint -c ui/eslint.smarthome-layout-editor.config.mjs ui/src-ts/runtime-executables/www/smarthome-layout-editor.ts && eslint -c ui/eslint.hosted-runtime-stop.config.mjs ui/src-ts/runtime-executables/lib/hosted-runtime-stop.ts && eslint -c ui/eslint.hosted-adapter.config.mjs ui/src-ts/runtime-executables/lib/hosted-adapter.ts && eslint -c ui/eslint.smarthome-setup.config.mjs ui/src-ts/runtime-executables/www/smarthome-setup.ts && eslint -c ui/eslint.hosted-startup-status.config.mjs ui/src-ts/runtime-executables/lib/hosted-startup-status.ts && eslint -c ui/eslint.eos-session-idle.config.mjs ui/src-ts/runtime-executables/www/eos-session-idle.ts && eslint -c modules/devices/eslint.hosted.config.mjs modules/devices/admin/ems-assignment.js && eslint -c ui/eslint.installer-lifecycle.config.mjs ui/src-ts/runtime-executables/lib/installer-lifecycle.ts ui/src-ts/runtime-executables/lib/storage-farm-overview.ts ui/src-ts/runtime-executables/lib/tariff-price.ts && eslint -c ui/eslint.customer-tariff.config.mjs ui/src-ts/runtime-executables/lib/customer-tariff.ts && eslint -c ui/eslint.customer-tariff-ui.config.mjs ui/src-ts/runtime-executables/www/customer-tariff.ts && eslint -c modules/devices/eslint.hosted.config.mjs modules/devices/lib/deviceAliasSemantics.js modules/devices/lib/deviceAliasFreshness.js && eslint -c ui/eslint.power-measurements.config.mjs ui/src-ts/runtime-executables/www/power-measurements.ts && eslint -c ui/eslint.storagefarm-summary-ui.config.mjs ui/src-ts/runtime-executables/www/storagefarm-summary.ts && eslint -c ui/eslint.tariff-display-ui.config.mjs ui/src-ts/runtime-executables/www/tariff-display.ts && eslint -c ui/eslint.live-display-ui.config.mjs ui/src-ts/runtime-executables/www/live-display.ts && eslint -c modules/devices/eslint.hosted.config.mjs modules/devices/lib/drivers/modbusSerialLease.js modules/devices/lib/drivers/modbusRtuBus.js modules/devices/lib/drivers/modbusAsciiBus.js && eslint -c ui/eslint.storagefarm-dispatch-ui.config.mjs ui/src-ts/runtime-executables/www/storagefarm-dispatch.ts && eslint -c ui/eslint.influx-direct.config.mjs ui/src-ts/runtime-executables/lib/influx-direct.ts && eslint -c ui/eslint.influx-security.config.mjs ui/src-ts/runtime-executables/lib/influx-config.ts ui/src-ts/runtime-executables/lib/influx-network-policy.ts && eslint -c ui/eslint.history-setup-ui.config.mjs ui/src-admin-tab/src/lib/historySetup.ts ui/src-admin-tab/src/pages/HistorySetupPage.tsx && eslint -c ui/eslint.influx-history-runtime.config.mjs ui/src-ts/runtime-executables/lib/influx-history-runtime.ts",
|
|
230
|
+
"lint:unified": "eslint -c eslint.unified.config.mjs src/lib/eosUnifiedBoundary.js src/lib/eosSessionSecurity.js src/lib/eosCookieNamespace.js src/lib/eosNewsSecurity.js src/lib/eosRolePolicy.js src/lib/eosSocketSecret.js src/lib/eosUnifiedOwnership.js src/lib/eosLicenseCore.js src/lib/eosLicensePolicy.js src/lib/eosLicenseService.js src/lib/eosLicenseTrust.js src/lib/eosLicenseHttp.js tools/eos-release-check.cjs tools/eos-prepare-publish.cjs tools/eos-release-evidence.cjs tools/eos-release-manifest.cjs tools/eos-migration-plan.cjs tools/eos-access-diagnostics.cjs tools/eos-coexistence-recovery.cjs deploy/render-ingress.cjs tools/eos-sbom-vendored.cjs src/lib/eosDeviceEmsPlan.js src/lib/eosDeviceEmsService.js src/lib/eosModuleHost.js src/lib/eosModuleHttp.js src/lib/eosModuleConfigStore.js src/lib/eosLegacyMigration.js tools/eos-tls-issuer.cjs && eslint -c modules/backup/eslint.config.mjs modules/backup/src && eslint -c ui/eslint.smarthome-activation.config.mjs ui/src-ts/runtime-executables/lib/smarthome-activation.ts && eslint -c ui/eslint.preserved-ui-config.config.mjs ui/src-ts/runtime-executables/lib/preserved-ui-config.ts && eslint -c ui/eslint.smarthome-feedback.config.mjs ui/src-ts/runtime-executables/www/smarthome-feedback.ts && eslint -c ui/eslint.smarthome-touch.config.mjs ui/src-ts/runtime-executables/www/smarthome-touch.ts && eslint -c ui/eslint.smarthome-presentation.config.mjs ui/src-ts/runtime-executables/www/smarthome-presentation.ts && eslint -c ui/eslint.smarthome-device-controls.config.mjs ui/src-ts/runtime-executables/lib/smarthome-device-controls.ts && eslint -c ui/eslint.smarthome-device-api.config.mjs ui/src-ts/runtime-executables/lib/smarthome-device-api.ts && eslint -c ui/eslint.smarthome-device-detection.config.mjs ui/src-ts/runtime-executables/lib/smarthome-device-detection.ts && eslint -c ui/eslint.smarthome-device-config.config.mjs ui/src-ts/runtime-executables/www/smarthome-device-config.ts && eslint -c ui/eslint.smarthome-device-controls-browser.config.mjs ui/src-ts/runtime-executables/www/smarthome-device-controls.ts && eslint -c ui/eslint.smarthome-custom-views.config.mjs ui/src-ts/runtime-executables/www/smarthome-custom-views.ts && eslint -c ui/eslint.smarthome-custom-contract.config.mjs ui/src-ts/runtime-executables/lib/smarthome-custom-contract.ts && eslint -c ui/eslint.smarthome-custom-config.config.mjs ui/src-ts/runtime-executables/www/smarthome-custom-config.ts && eslint -c ui/eslint.smarthome-device-legacy.config.mjs ui/src-ts/runtime-executables/lib/smarthome-device-legacy.ts && eslint -c ui/eslint.smarthome-device-aliases.config.mjs ui/src-ts/runtime-executables/lib/smarthome-device-aliases.ts && eslint -c ui/eslint.smarthome-alias-config.config.mjs ui/src-ts/runtime-executables/www/smarthome-alias-config.ts && eslint -c ui/eslint.smarthome-device-categories.config.mjs ui/src-ts/runtime-executables/www/smarthome-device-categories.ts && eslint -c ui/eslint.smarthome-layout-editor.config.mjs ui/src-ts/runtime-executables/www/smarthome-layout-editor.ts && eslint -c ui/eslint.hosted-runtime-stop.config.mjs ui/src-ts/runtime-executables/lib/hosted-runtime-stop.ts && eslint -c ui/eslint.hosted-adapter.config.mjs ui/src-ts/runtime-executables/lib/hosted-adapter.ts && eslint -c ui/eslint.smarthome-setup.config.mjs ui/src-ts/runtime-executables/www/smarthome-setup.ts && eslint -c ui/eslint.hosted-startup-status.config.mjs ui/src-ts/runtime-executables/lib/hosted-startup-status.ts && eslint -c ui/eslint.eos-session-idle.config.mjs ui/src-ts/runtime-executables/www/eos-session-idle.ts && eslint -c modules/devices/eslint.hosted.config.mjs modules/devices/admin/ems-assignment.js && eslint -c ui/eslint.installer-lifecycle.config.mjs ui/src-ts/runtime-executables/lib/installer-lifecycle.ts ui/src-ts/runtime-executables/lib/storage-farm-overview.ts ui/src-ts/runtime-executables/lib/tariff-price.ts && eslint -c ui/eslint.customer-tariff.config.mjs ui/src-ts/runtime-executables/lib/customer-tariff.ts && eslint -c ui/eslint.customer-tariff-ui.config.mjs ui/src-ts/runtime-executables/www/customer-tariff.ts && eslint -c modules/devices/eslint.hosted.config.mjs modules/devices/lib/deviceAliasSemantics.js modules/devices/lib/deviceAliasFreshness.js && eslint -c ui/eslint.power-measurements.config.mjs ui/src-ts/runtime-executables/www/power-measurements.ts && eslint -c ui/eslint.storagefarm-summary-ui.config.mjs ui/src-ts/runtime-executables/www/storagefarm-summary.ts && eslint -c ui/eslint.tariff-display-ui.config.mjs ui/src-ts/runtime-executables/www/tariff-display.ts && eslint -c ui/eslint.live-display-ui.config.mjs ui/src-ts/runtime-executables/www/live-display.ts && eslint -c modules/devices/eslint.hosted.config.mjs modules/devices/lib/drivers/modbusSerialLease.js modules/devices/lib/drivers/modbusRtuBus.js modules/devices/lib/drivers/modbusAsciiBus.js && eslint -c ui/eslint.storagefarm-dispatch-ui.config.mjs ui/src-ts/runtime-executables/www/storagefarm-dispatch.ts && eslint -c ui/eslint.influx-direct.config.mjs ui/src-ts/runtime-executables/lib/influx-direct.ts && eslint -c ui/eslint.influx-security.config.mjs ui/src-ts/runtime-executables/lib/influx-config.ts ui/src-ts/runtime-executables/lib/influx-network-policy.ts && eslint -c ui/eslint.history-setup-ui.config.mjs ui/src-admin-tab/src/lib/historySetup.ts ui/src-admin-tab/src/pages/HistorySetupPage.tsx && eslint -c ui/eslint.influx-history-runtime.config.mjs ui/src-ts/runtime-executables/lib/influx-history-runtime.ts && eslint -c modules/devices/eslint.hosted.config.mjs modules/devices/lib/drivers/mqtt.js modules/devices/lib/drivers/mqttPendingOperations.js && eslint -c ui/eslint.eos-updates-ui.config.mjs ui/src-ts/runtime-executables/www/eos-updates.ts",
|
|
231
231
|
"test:modules": "node --test test/eos-hosted-eebus-bridge.test.cjs test/eos-module*.test.cjs test/eos-discovery.test.cjs modules/devices/test/*.test.* modules/eebus/test/*.test.* && node --test modules/eebus/test/config.js modules/eebus/test/cls-control-parser.js modules/eebus/test/nexowatt-bridge.js modules/eebus/test/implementation-result-order.js && node --test modules/backup/test/*.test.cjs",
|
|
232
232
|
"build:modules": "tsc -p modules/eebus/tsconfig.json && tsc -p modules/backup/tsconfig.json"
|
|
233
233
|
},
|