iobroker.eos-admin 9.0.34 → 9.0.35
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 +13 -10
- package/README.md +10 -4
- package/adminWww/.vite/manifest.json +39 -39
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +107 -107
- package/adminWww/assets/{AdapterUpdateDialog-5L75o18m.js → AdapterUpdateDialog-DH6S-kWX.js} +1 -1
- package/adminWww/assets/{Adapters-FcghjF7E.js → Adapters-CIlqSF5B.js} +1 -1
- package/adminWww/assets/{ConfigManager-BnHarBfH.js → ConfigManager-BhVBfM-q.js} +1 -1
- package/adminWww/assets/{Enums-BjLbLLQL.js → Enums-3H97czGs.js} +1 -1
- package/adminWww/assets/{Fields-DDE1hVOa.js → Fields-vWLKiuvO.js} +1 -1
- package/adminWww/assets/{Files-CDjnR4q6.js → Files-wmjjMXYM.js} +1 -1
- package/adminWww/assets/{Hosts-CJKQaNrD.js → Hosts-Bk-xmI98.js} +1 -1
- package/adminWww/assets/{Instances-DZNl369k.js → Instances-Db6Vgh62.js} +1 -1
- package/adminWww/assets/{Intro-CjAmMGDB.js → Intro-Dc3wAG9V.js} +1 -1
- package/adminWww/assets/{Logs-rUAV7SwM.js → Logs-CPbEGWNq.js} +1 -1
- package/adminWww/assets/{Objects-CqOH6rT_.js → Objects-DJB-2468.js} +1 -1
- package/adminWww/assets/{Overview-BOtXqsMy.js → Overview-DdvghCLQ.js} +1 -1
- package/adminWww/assets/{State-C8ncThop.js → State-0UzpgKYj.js} +1 -1
- package/adminWww/assets/{UsedResources-lUYJqy4F.js → UsedResources-Bcmo58YD.js} +1 -1
- package/adminWww/assets/{Users-CK1Cax82.js → Users-BGHf3Rox.js} +1 -1
- package/adminWww/assets/{bootstrap-CC0Qr-kr.js → bootstrap-qkrk_CAn.js} +3 -3
- package/adminWww/assets/{hostInit-DqGL6nY8.js → hostInit-DlGqatlv.js} +1 -1
- package/adminWww/assets/{icons-material-07rWS63O.js → icons-material-CUNq6tdT.js} +1 -1
- package/adminWww/assets/{index-BhhkToP2.js → index-BrtKq3UN.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-B4-7lSQZ.js → installSVGRenderer-DujLjpXt.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-1afd2287.js → mf-entry-bootstrap-0-3e1cd85c.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.35.js +12 -0
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosDashboardProcessStatus.js +191 -0
- package/build/lib/eosDashboardProcessStatus.js.map +1 -0
- package/build/lib/eosKiosk.js +1 -0
- package/build/lib/eosKiosk.js.map +1 -1
- package/build/lib/eosModuleHost.js +17 -6
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/eosModuleHttp.js +18 -3
- package/build/lib/eosModuleHttp.js.map +1 -1
- package/build/lib/eosModuleProcess.js +17 -0
- package/build/lib/eosModuleProcess.js.map +1 -1
- package/build/lib/eosModuleProcessWorker.js +22 -1
- package/build/lib/eosModuleProcessWorker.js.map +1 -1
- package/build/lib/eosRuntimeControl.js +6 -0
- package/build/lib/eosRuntimeControl.js.map +1 -1
- package/build/lib/eosRuntimeHealth.js +50 -1
- package/build/lib/eosRuntimeHealth.js.map +1 -1
- package/build/lib/eosSupervisorNotifications.js +169 -0
- package/build/lib/eosSupervisorNotifications.js.map +1 -0
- package/build/lib/eosUiProcess.js +1 -0
- package/build/lib/eosUiProcess.js.map +1 -1
- package/build/lib/web.js +5 -0
- package/build/lib/web.js.map +1 -1
- package/docs/README.md +1 -0
- package/docs/reports/unified-9.0.35/PRUEFBERICHT.md +51 -0
- package/docs/reports/unified-9.0.35/PRUEFERGEBNISSE.json +112 -0
- package/docs/reports/unified-9.0.35/raw/INDEX.json +282 -0
- package/docs/reports/unified-9.0.35/raw/backend.log +5 -0
- package/docs/reports/unified-9.0.35/raw/browser-lp-detail.log +1 -0
- package/docs/reports/unified-9.0.35/raw/browser-lp-feedback.log +1 -0
- package/docs/reports/unified-9.0.35/raw/cold-ocpp-22.log +108 -0
- package/docs/reports/unified-9.0.35/raw/cold-ocpp-24.log +24 -0
- package/docs/reports/unified-9.0.35/raw/core-final-node22.log +1439 -0
- package/docs/reports/unified-9.0.35/raw/core-final-node24.log +1381 -0
- package/docs/reports/unified-9.0.35/raw/dashboard-de-en-nl.json +716 -0
- package/docs/reports/unified-9.0.35/raw/device-chain-closed-fixed.json +98 -0
- package/docs/reports/unified-9.0.35/raw/device-chain-rst-fixed.json +98 -0
- package/docs/reports/unified-9.0.35/raw/device-chain.json +93 -0
- package/docs/reports/unified-9.0.35/raw/ee-fusion-final.log +12 -0
- package/docs/reports/unified-9.0.35/raw/eebus-monitor-browser.json +1 -0
- package/docs/reports/unified-9.0.35/raw/eebus-monitor-node22.log +206 -0
- package/docs/reports/unified-9.0.35/raw/eebus-monitor-node24.log +39 -0
- package/docs/reports/unified-9.0.35/raw/fixtures-verification.log +44 -0
- package/docs/reports/unified-9.0.35/raw/frontend.log +152 -0
- package/docs/reports/unified-9.0.35/raw/installer.log +26 -0
- package/docs/reports/unified-9.0.35/raw/legacy-mail-setup-browser.log +1 -0
- package/docs/reports/unified-9.0.35/raw/lint.log +45 -0
- package/docs/reports/unified-9.0.35/raw/live-ems-loss.log +10 -0
- package/docs/reports/unified-9.0.35/raw/modules.log +5 -0
- package/docs/reports/unified-9.0.35/raw/node22-mira-reconnect-integrity.log +452 -0
- package/docs/reports/unified-9.0.35/raw/node22-mira.log +222 -0
- package/docs/reports/unified-9.0.35/raw/node22-system-status.log +213 -0
- package/docs/reports/unified-9.0.35/raw/node22-tests-final.log +18137 -0
- package/docs/reports/unified-9.0.35/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.35/raw/node24-mira-reconnect-integrity.log +79 -0
- package/docs/reports/unified-9.0.35/raw/node24-mira.log +41 -0
- package/docs/reports/unified-9.0.35/raw/node24-system-status.log +40 -0
- package/docs/reports/unified-9.0.35/raw/node24-tests-final.log +3019 -0
- package/docs/reports/unified-9.0.35/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.35/raw/notifications-legacy-node22.log +1 -0
- package/docs/reports/unified-9.0.35/raw/notifications-legacy-node24.log +1 -0
- package/docs/reports/unified-9.0.35/raw/notifications-node22.log +67 -0
- package/docs/reports/unified-9.0.35/raw/notifications-node24.log +17 -0
- package/docs/reports/unified-9.0.35/raw/npm-runtime-audit.json +77 -0
- package/docs/reports/unified-9.0.35/raw/ocpp-dashboard-stations-node22.log +110 -0
- package/docs/reports/unified-9.0.35/raw/ocpp-dashboard-stations-node24.log +106 -0
- package/docs/reports/unified-9.0.35/raw/ocpp-history-node22.log +561 -0
- package/docs/reports/unified-9.0.35/raw/ocpp-history-node24.log +98 -0
- package/docs/reports/unified-9.0.35/raw/poll-life-node22.log +38 -0
- package/docs/reports/unified-9.0.35/raw/poll-life-node24.log +12 -0
- package/docs/reports/unified-9.0.35/raw/qa-source-check.log +2 -0
- package/docs/reports/unified-9.0.35/raw/release-metadata.log +13 -0
- package/docs/reports/unified-9.0.35/raw/sbom.log +8 -0
- package/docs/reports/unified-9.0.35/raw/typecheck.log +5 -0
- package/docs/reports/unified-9.0.35/raw/ui-runtime.log +8 -0
- package/docs/reports/unified-9.0.35/raw/vergleich-9.0.33.json +29 -0
- package/docs/reports/unified-9.0.35/raw/vergleich-9.0.34.json +249 -0
- package/docs/reports/unified-9.0.35/raw/vorher-9.0.33-chromium.json +286 -0
- package/docs/reports/unified-9.0.35/raw/vorher-9.0.34-chromium.json +291 -0
- package/docs/start/START_HIER_9.0.35.md +27 -0
- package/io-package.json +8 -8
- package/modules/devices/contracts.d.ts +1 -0
- package/modules/devices/index.js +20 -1
- package/modules/devices/lib/deviceRuntime.js +19 -0
- package/modules/devices/lib/drivers/modbus.js +11 -6
- package/modules/devices/lib/drivers/ovumMira.js +7 -3
- package/modules/devices/test/ovumMiraTransport.test.js +40 -1
- package/modules/eebus/README.md +8 -0
- package/modules/eebus/admin/index.js +29 -2
- package/modules/eebus/build/index.js +28 -3
- package/modules/eebus/build/lib/eebusRuntime.js +17 -2
- package/modules/eebus/build/lib/partnerMonitor.js +160 -0
- package/modules/eebus/build/lib/shipEndpoint.js +4 -0
- package/modules/eebus/build/lib/stateDefinitions.js +1 -0
- package/modules/eebus/src/index.ts +23 -3
- package/modules/eebus/src/lib/eebusRuntime.ts +20 -2
- package/modules/eebus/src/lib/partnerMonitor.ts +127 -0
- package/modules/eebus/src/lib/shipEndpoint.ts +5 -0
- package/modules/eebus/src/lib/stateDefinitions.ts +1 -0
- package/modules/eebus/test/partner-monitor.test.js +82 -0
- package/modules/eebus/test/security.test.js +17 -0
- package/modules/ocpp/README.md +9 -1
- package/modules/ocpp/build/index.js +137 -10
- package/modules/ocpp/build/stationHistory.js +113 -0
- package/modules/ocpp/ocpp/freshness.d.ts +3 -0
- package/modules/ocpp/ocpp/freshness.js +6 -0
- package/modules/ocpp/provenance.json +3 -2
- package/modules/ocpp/runtime.d.ts +1 -0
- package/modules/ocpp/runtime.js +23 -1
- package/modules/ocpp/src/index.ts +163 -12
- package/modules/ocpp/src/stationHistory.ts +119 -0
- package/modules/ocpp/test/hosted.test.cjs +161 -0
- package/package.json +7 -5
- package/release-manifests/unified/build-environment.cdx.json +6 -6
- package/release-manifests/unified/files.json +220 -140
- 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 +83 -0
- package/release-manifests/unified/runtime.cdx.json +30 -30
- package/release-manifests/unified/validation.json +15 -15
- package/tools/eos-release-manifest.cjs +1 -1
- package/ui/io-package.json +5 -1
- package/ui/lib/notification-mail.js +235 -40
- package/ui/lib/notification-policy.js +41 -14
- package/ui/package.json +2 -1
- package/ui/www/app.js +91 -11
- package/ui/www/dashboard-lp-status.js +4 -11
- package/ui/www/dashboard-process-status.js +202 -0
- package/ui/www/i18n/en.json +23 -0
- package/ui/www/i18n/nl.json +20 -0
- package/ui/www/index.html +10 -5
- package/ui/www/live-display.js +101 -9
- package/ui/www/manifest.webmanifest +2 -2
- package/ui/www/settings.html +2 -2
- package/ui/www/styles.css +4 -0
- package/adminWww/remoteEntry-eos-9.0.34.js +0 -12
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
/** NexoWatt EOS OCPP hosting boundary. MIT; original station runtime remains attributed in provenance.json. */
|
|
2
|
+
import { readStationHistory, stationKey, type KnownStation } from './stationHistory';
|
|
2
3
|
import { AsyncLocalStorage } from 'node:async_hooks';
|
|
3
4
|
import { EventEmitter } from 'node:events';
|
|
4
5
|
import { createRequire } from 'node:module';
|
|
5
|
-
import type { OcppRuntime } from '../runtime';
|
|
6
|
+
import type { OcppRuntime, RuntimeEntry } from '../runtime';
|
|
6
7
|
import { createOcppRuntime } from '../runtime';
|
|
7
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
deriveConnectionHealth,
|
|
10
|
+
activityTimeoutMs,
|
|
11
|
+
dataFreshForEos,
|
|
12
|
+
hasConfirmedSessionActivity,
|
|
13
|
+
} from '../ocpp/freshness';
|
|
8
14
|
|
|
9
15
|
export type RecordValue = Record<string, unknown>;
|
|
10
16
|
interface Adapter extends RecordValue {
|
|
@@ -192,7 +198,16 @@ export interface HostedStatus {
|
|
|
192
198
|
leaseState: string;
|
|
193
199
|
}>;
|
|
194
200
|
}
|
|
201
|
+
type StationHealthState = 'online' | 'offline' | 'unknown';
|
|
202
|
+
interface DashboardDeviceHealth {
|
|
203
|
+
complete: boolean;
|
|
204
|
+
state: 'ok' | 'unknown' | 'fault';
|
|
205
|
+
offline: { name: string }[];
|
|
206
|
+
totalOffline: number;
|
|
207
|
+
tracked: { key: string; name: string; state: StationHealthState }[];
|
|
208
|
+
}
|
|
195
209
|
export interface HostedModule {
|
|
210
|
+
getDashboardDeviceHealth(): DashboardDeviceHealth;
|
|
196
211
|
start(): Promise<void>;
|
|
197
212
|
stop(): Promise<void>;
|
|
198
213
|
getStatus(): HostedStatus;
|
|
@@ -311,6 +326,28 @@ export function createHostedModule(options: HostedOptions): HostedModule {
|
|
|
311
326
|
})();
|
|
312
327
|
return stopping;
|
|
313
328
|
};
|
|
329
|
+
const dashboardKeys = new WeakMap<RuntimeEntry, string>();
|
|
330
|
+
const configuredIdentities = new Set(Array.isArray(settings.identityAllowlist) ? settings.identityAllowlist : []);
|
|
331
|
+
const allowedKeys = new Set([...configuredIdentities].map(id => stationKey(String(id))));
|
|
332
|
+
let knownStations = new Map<string, KnownStation>();
|
|
333
|
+
let historyComplete = false;
|
|
334
|
+
let observationStarted = 0;
|
|
335
|
+
let retryHistoryAfter = 0;
|
|
336
|
+
const restoreHistory = async (): Promise<void> => {
|
|
337
|
+
retryHistoryAfter = 0;
|
|
338
|
+
const token = generation;
|
|
339
|
+
const loaded = await readStationHistory(
|
|
340
|
+
adapter.namespace,
|
|
341
|
+
pattern => call('getStatesAsync', [pattern]),
|
|
342
|
+
allowedKeys,
|
|
343
|
+
);
|
|
344
|
+
if (!allowed() || token !== generation) {
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
knownStations = loaded.complete ? loaded.known : new Map([...knownStations, ...loaded.known]);
|
|
348
|
+
historyComplete = loaded.complete;
|
|
349
|
+
retryHistoryAfter = loaded.readFailed ? Date.now() + 30000 : 0;
|
|
350
|
+
};
|
|
314
351
|
const start = (): Promise<void> => {
|
|
315
352
|
if (starting) {
|
|
316
353
|
return starting;
|
|
@@ -360,7 +397,10 @@ export function createHostedModule(options: HostedOptions): HostedModule {
|
|
|
360
397
|
]);
|
|
361
398
|
}
|
|
362
399
|
await call('setStateAsync', ['info.eosHostedRuntime', { val: true, ack: true }]);
|
|
400
|
+
// Inventory hydration cannot delay the WebSocket listener or physical control.
|
|
401
|
+
void restoreHistory();
|
|
363
402
|
await runtime.onReady();
|
|
403
|
+
observationStarted = Date.now();
|
|
364
404
|
assert();
|
|
365
405
|
started = true;
|
|
366
406
|
state = 'running';
|
|
@@ -370,6 +410,9 @@ export function createHostedModule(options: HostedOptions): HostedModule {
|
|
|
370
410
|
if (publishing || !allowed() || !runtime?.server) {
|
|
371
411
|
return;
|
|
372
412
|
}
|
|
413
|
+
if (retryHistoryAfter && Date.now() >= retryHistoryAfter) {
|
|
414
|
+
void restoreHistory();
|
|
415
|
+
}
|
|
373
416
|
publishing = true;
|
|
374
417
|
void publishAlive(true)
|
|
375
418
|
.catch(() => {
|
|
@@ -389,6 +432,122 @@ export function createHostedModule(options: HostedOptions): HostedModule {
|
|
|
389
432
|
});
|
|
390
433
|
return starting;
|
|
391
434
|
};
|
|
435
|
+
const connectionHealth = (entry: RuntimeEntry, now: number): ReturnType<typeof deriveConnectionHealth> =>
|
|
436
|
+
deriveConnectionHealth({
|
|
437
|
+
now,
|
|
438
|
+
socketConnected: entry.socketConnected,
|
|
439
|
+
connectedAt: entry.connectedAt,
|
|
440
|
+
lastMessageAt: entry.lastMessageAt,
|
|
441
|
+
lastHeartbeatAt: entry.lastHeartbeatAt,
|
|
442
|
+
heartbeatIntervalSec: entry.heartbeatIntervalSec,
|
|
443
|
+
heartbeatTimeoutFactor: settings.heartbeatTimeoutFactor,
|
|
444
|
+
activityTimeoutSec: settings.activityTimeoutSec,
|
|
445
|
+
});
|
|
446
|
+
const getDashboardDeviceHealth = (): DashboardDeviceHealth => {
|
|
447
|
+
const result: DashboardDeviceHealth = {
|
|
448
|
+
state: 'ok',
|
|
449
|
+
offline: [],
|
|
450
|
+
totalOffline: 0,
|
|
451
|
+
tracked: [],
|
|
452
|
+
complete: false,
|
|
453
|
+
};
|
|
454
|
+
if (!settings.enabled) {
|
|
455
|
+
result.complete = true;
|
|
456
|
+
return result;
|
|
457
|
+
}
|
|
458
|
+
if (
|
|
459
|
+
!started ||
|
|
460
|
+
!runtime ||
|
|
461
|
+
revoked ||
|
|
462
|
+
state !== 'running' ||
|
|
463
|
+
!options.canOperate() ||
|
|
464
|
+
(options.getAuthorityGeneration?.() ?? 0) !== authorityGeneration
|
|
465
|
+
) {
|
|
466
|
+
result.state = 'unknown';
|
|
467
|
+
return result;
|
|
468
|
+
}
|
|
469
|
+
const now = Date.now();
|
|
470
|
+
if (!historyComplete) {
|
|
471
|
+
result.state = 'unknown';
|
|
472
|
+
}
|
|
473
|
+
const seen = new Set<string>();
|
|
474
|
+
let ordinal = 0,
|
|
475
|
+
eligible = 0,
|
|
476
|
+
confirmedConfigured = 0;
|
|
477
|
+
for (const entry of runtime.runtimeIndex.values()) {
|
|
478
|
+
ordinal++;
|
|
479
|
+
let key = dashboardKeys.get(entry);
|
|
480
|
+
if (!key) {
|
|
481
|
+
key = stationKey(entry.rawIdentity);
|
|
482
|
+
dashboardKeys.set(entry, key);
|
|
483
|
+
}
|
|
484
|
+
const historical = knownStations.get(key);
|
|
485
|
+
const confirmed = hasConfirmedSessionActivity(entry);
|
|
486
|
+
if (!confirmed && !entry.dashboardPreviouslyConfirmed && !historical && !entry.socketConnected) {
|
|
487
|
+
continue;
|
|
488
|
+
}
|
|
489
|
+
seen.add(key);
|
|
490
|
+
eligible++;
|
|
491
|
+
if ((confirmed || entry.dashboardPreviouslyConfirmed) && configuredIdentities.has(entry.rawIdentity)) {
|
|
492
|
+
confirmedConfigured++;
|
|
493
|
+
}
|
|
494
|
+
let current: StationHealthState = 'unknown';
|
|
495
|
+
if (confirmed) {
|
|
496
|
+
current = connectionHealth(entry, now).online ? 'online' : 'offline';
|
|
497
|
+
} else if ((entry.dashboardPreviouslyConfirmed || historical) && !entry.socketConnected) {
|
|
498
|
+
current = 'offline';
|
|
499
|
+
}
|
|
500
|
+
// The native station object has an OCPP identity and no separate public display name.
|
|
501
|
+
const name = `Ladestation ${ordinal}`;
|
|
502
|
+
if (current === 'offline') {
|
|
503
|
+
result.state = 'fault';
|
|
504
|
+
result.totalOffline++;
|
|
505
|
+
if (result.offline.length < 12) {
|
|
506
|
+
result.offline.push({ name });
|
|
507
|
+
}
|
|
508
|
+
} else if (current === 'unknown' && result.state !== 'fault') {
|
|
509
|
+
result.state = 'unknown';
|
|
510
|
+
}
|
|
511
|
+
if (result.tracked.length < 256) {
|
|
512
|
+
result.tracked.push({ key, name, state: current });
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
const windowMs = activityTimeoutMs(
|
|
516
|
+
settings.heartbeatIntervalSec,
|
|
517
|
+
settings.heartbeatTimeoutFactor,
|
|
518
|
+
settings.activityTimeoutSec,
|
|
519
|
+
);
|
|
520
|
+
for (const old of knownStations.values()) {
|
|
521
|
+
if (seen.has(old.key)) {
|
|
522
|
+
continue;
|
|
523
|
+
}
|
|
524
|
+
const name = `Ladestation ${++ordinal}`;
|
|
525
|
+
const absent = old.offline || now - observationStarted > windowMs;
|
|
526
|
+
if (absent) {
|
|
527
|
+
result.state = 'fault';
|
|
528
|
+
result.totalOffline++;
|
|
529
|
+
if (result.offline.length < 12) {
|
|
530
|
+
result.offline.push({ name });
|
|
531
|
+
}
|
|
532
|
+
} else if (result.state !== 'fault') {
|
|
533
|
+
result.state = 'unknown';
|
|
534
|
+
}
|
|
535
|
+
eligible++;
|
|
536
|
+
if (allowedKeys.has(old.key)) {
|
|
537
|
+
confirmedConfigured++;
|
|
538
|
+
}
|
|
539
|
+
if (result.tracked.length < 256) {
|
|
540
|
+
result.tracked.push({ key: old.key, name, state: absent ? 'offline' : 'unknown' });
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
// With open admission, earlier sessions may be missing after a worker restart.
|
|
544
|
+
result.complete =
|
|
545
|
+
historyComplete &&
|
|
546
|
+
configuredIdentities.size > 0 &&
|
|
547
|
+
confirmedConfigured === configuredIdentities.size &&
|
|
548
|
+
eligible === result.tracked.length;
|
|
549
|
+
return result;
|
|
550
|
+
};
|
|
392
551
|
const getStatus = (): HostedStatus => ({
|
|
393
552
|
started: started && allowed(),
|
|
394
553
|
state,
|
|
@@ -410,16 +569,7 @@ export function createHostedModule(options: HostedOptions): HostedModule {
|
|
|
410
569
|
status: entry.chargingState || '',
|
|
411
570
|
lastSeenMs: entry.lastMessageAt || 0,
|
|
412
571
|
dataFresh: dataFreshForEos(
|
|
413
|
-
|
|
414
|
-
now: Date.now(),
|
|
415
|
-
socketConnected: entry.socketConnected,
|
|
416
|
-
connectedAt: entry.connectedAt,
|
|
417
|
-
lastMessageAt: entry.lastMessageAt,
|
|
418
|
-
lastHeartbeatAt: entry.lastHeartbeatAt,
|
|
419
|
-
heartbeatIntervalSec: entry.heartbeatIntervalSec,
|
|
420
|
-
heartbeatTimeoutFactor: settings.heartbeatTimeoutFactor,
|
|
421
|
-
activityTimeoutSec: settings.activityTimeoutSec,
|
|
422
|
-
}).online,
|
|
572
|
+
connectionHealth(entry, Date.now()).online,
|
|
423
573
|
entry.lastPowerAt > 0 && Date.now() - entry.lastPowerAt <= Number(settings.telemetryMaxAgeSec) * 1000,
|
|
424
574
|
entry.socketConnected && entry.safeZeroAt > 0,
|
|
425
575
|
),
|
|
@@ -451,6 +601,7 @@ export function createHostedModule(options: HostedOptions): HostedModule {
|
|
|
451
601
|
start,
|
|
452
602
|
stop,
|
|
453
603
|
getStatus,
|
|
604
|
+
getDashboardDeviceHealth,
|
|
454
605
|
onStateChange,
|
|
455
606
|
command: (name: unknown): Promise<HostedStatus> => {
|
|
456
607
|
assert();
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
|
|
3
|
+
type States = Record<string, unknown>;
|
|
4
|
+
export type KnownStation = { key: string; offline: boolean };
|
|
5
|
+
const record = (value: unknown): value is States => !!value && typeof value === 'object' && !Array.isArray(value);
|
|
6
|
+
export const stationKey = (identity: string): string => createHash('sha256').update(identity).digest('hex');
|
|
7
|
+
const fields = [
|
|
8
|
+
'health.staleReason',
|
|
9
|
+
'health.online',
|
|
10
|
+
'health.dashboardConfirmedKey',
|
|
11
|
+
'info.identity',
|
|
12
|
+
'info.heartbeatInterval',
|
|
13
|
+
'health.lastBoot',
|
|
14
|
+
'info.lastHeartbeat',
|
|
15
|
+
'health.lastMeterValue',
|
|
16
|
+
] as const;
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Only exact evidence suffixes in the module's own (possibly migrated) namespace.
|
|
20
|
+
* Object defaults, socket creation and a configuration allowlist do not prove a station exists.
|
|
21
|
+
*/
|
|
22
|
+
export async function readStationHistory(
|
|
23
|
+
namespace: string,
|
|
24
|
+
read: (pattern: string) => Promise<unknown>,
|
|
25
|
+
allow: Set<string>,
|
|
26
|
+
): Promise<{ known: Map<string, KnownStation>; complete: boolean; readFailed: boolean }> {
|
|
27
|
+
const rows = new Map<string, States>();
|
|
28
|
+
let complete = true;
|
|
29
|
+
let readFailed = false;
|
|
30
|
+
const collect = async (field: (typeof fields)[number]): Promise<void> => {
|
|
31
|
+
try {
|
|
32
|
+
const values = await read(`*.${field}`);
|
|
33
|
+
if (!record(values)) {
|
|
34
|
+
throw new Error('invalid controller response');
|
|
35
|
+
}
|
|
36
|
+
for (const [id, state] of Object.entries(values)) {
|
|
37
|
+
const rel = id.startsWith(`${namespace}.`) ? id.slice(namespace.length + 1) : id;
|
|
38
|
+
if (!rel.endsWith(`.${field}`)) {
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
const root = rel.slice(0, -(field.length + 1));
|
|
42
|
+
if (!/^[A-Za-z0-9_-]{1,256}$/.test(root) || !record(state)) {
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
if (state.ack !== true || (state.q !== undefined && state.q !== 0)) {
|
|
46
|
+
// An unreadable positive marker is not proof of an empty station inventory.
|
|
47
|
+
if (field === 'health.dashboardConfirmedKey' && state.val) {
|
|
48
|
+
complete = false;
|
|
49
|
+
}
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
let row = rows.get(root);
|
|
53
|
+
if (!row) {
|
|
54
|
+
if (rows.size >= 1024) {
|
|
55
|
+
complete = false;
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
row = {};
|
|
59
|
+
rows.set(root, row);
|
|
60
|
+
}
|
|
61
|
+
row[field] = state.val;
|
|
62
|
+
}
|
|
63
|
+
} catch {
|
|
64
|
+
complete = false;
|
|
65
|
+
readFailed = true;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
// Start with outage evidence before the normal runtime resets old session flags.
|
|
69
|
+
// At most two bounded controller requests in flight, independent of station count.
|
|
70
|
+
for (let i = 0; i < fields.length; i += 2) {
|
|
71
|
+
await Promise.all(fields.slice(i, i + 2).map(collect));
|
|
72
|
+
}
|
|
73
|
+
const known = new Map<string, KnownStation>();
|
|
74
|
+
const now = Date.now();
|
|
75
|
+
for (const row of rows.values()) {
|
|
76
|
+
const raw = row['info.identity'],
|
|
77
|
+
marker = row['health.dashboardConfirmedKey'];
|
|
78
|
+
const timestamp = (value: unknown): boolean =>
|
|
79
|
+
typeof value === 'string' &&
|
|
80
|
+
Number.isFinite(Date.parse(value)) &&
|
|
81
|
+
Date.parse(value) > 0 &&
|
|
82
|
+
Date.parse(value) <= now;
|
|
83
|
+
const interval = row['info.heartbeatInterval']; // The native runtime writes this only after BootNotification.
|
|
84
|
+
const legacy =
|
|
85
|
+
(typeof interval === 'number' && Number.isInteger(interval) && interval >= 10 && interval <= 86400) ||
|
|
86
|
+
timestamp(row['health.lastBoot']) ||
|
|
87
|
+
timestamp(row['info.lastHeartbeat']) ||
|
|
88
|
+
timestamp(row['health.lastMeterValue']);
|
|
89
|
+
const marked = typeof marker === 'string' && /^[a-f0-9]{64}$/.test(marker);
|
|
90
|
+
if (!marked && !legacy) {
|
|
91
|
+
if (marker) {
|
|
92
|
+
complete = false;
|
|
93
|
+
}
|
|
94
|
+
continue;
|
|
95
|
+
}
|
|
96
|
+
const rawKey = typeof raw === 'string' && raw.length > 0 && raw.length <= 256 ? stationKey(raw) : '';
|
|
97
|
+
if (marked && rawKey && rawKey !== marker) {
|
|
98
|
+
complete = false;
|
|
99
|
+
continue;
|
|
100
|
+
}
|
|
101
|
+
const key = marked ? marker : rawKey;
|
|
102
|
+
if (!key) {
|
|
103
|
+
complete = false;
|
|
104
|
+
continue;
|
|
105
|
+
}
|
|
106
|
+
if (allow.size && !allow.has(key)) {
|
|
107
|
+
continue;
|
|
108
|
+
}
|
|
109
|
+
if (known.has(key)) {
|
|
110
|
+
complete = false;
|
|
111
|
+
continue;
|
|
112
|
+
}
|
|
113
|
+
const reason = row['health.staleReason'];
|
|
114
|
+
const offline =
|
|
115
|
+
row['health.online'] === false && (reason === 'socket-disconnected' || reason === 'no-ocpp-activity');
|
|
116
|
+
known.set(key, { key, offline });
|
|
117
|
+
}
|
|
118
|
+
return { known, complete, readFailed };
|
|
119
|
+
}
|
|
@@ -163,3 +163,164 @@ test('hosted status never labels an inactive open idle station as fresh', async
|
|
|
163
163
|
assert.equal(station.dataFresh, false);
|
|
164
164
|
} finally { Date.now = originalNow; }
|
|
165
165
|
});
|
|
166
|
+
|
|
167
|
+
test('dashboard health follows proven OCPP sessions, preserves identity privately and clears after a confirmed reconnect', async t => {
|
|
168
|
+
const f = fixture(), listenerPort = await port();
|
|
169
|
+
const hosted = createHostedModule({...f, config:{enabled:true,port:listenerPort,activeRefresh:false}});
|
|
170
|
+
const disabled = createHostedModule({...f, config:{enabled:false}});
|
|
171
|
+
const empty = {state:'ok',offline:[],totalOffline:0,tracked:[],complete:false};
|
|
172
|
+
assert.deepEqual(disabled.getDashboardDeviceHealth(),{...empty,complete:true});
|
|
173
|
+
assert.deepEqual(hosted.getDashboardDeviceHealth(),{...empty,state:'unknown'});
|
|
174
|
+
const identity = 'secret-serial-888264902', clients = [];
|
|
175
|
+
const connect = async () => {
|
|
176
|
+
const client = new RPCClient({endpoint:'ws://127.0.0.1:'+listenerPort,identity,protocols:['ocpp1.6'],reconnect:false});
|
|
177
|
+
clients.push(client);
|
|
178
|
+
await client.connect();
|
|
179
|
+
return client;
|
|
180
|
+
};
|
|
181
|
+
t.after(async () => {
|
|
182
|
+
await Promise.all(clients.map(c => c.close({force:true}).catch(()=>{})));
|
|
183
|
+
await hosted.stop();
|
|
184
|
+
});
|
|
185
|
+
await hosted.start();
|
|
186
|
+
assert.deepEqual(hosted.getDashboardDeviceHealth(),empty);
|
|
187
|
+
const measure = () => hosted.getDashboardDeviceHealth();
|
|
188
|
+
const waitState = state => until(measure,result => result.tracked[0]?.state === state);
|
|
189
|
+
const first = await connect();
|
|
190
|
+
const pending = await waitState('unknown');
|
|
191
|
+
assert.equal(pending.state,'unknown');
|
|
192
|
+
assert.equal(pending.totalOffline,0);
|
|
193
|
+
await first.close({force:true});
|
|
194
|
+
await until(measure,result => !result.tracked.length);
|
|
195
|
+
assert.deepEqual(measure(),empty);
|
|
196
|
+
|
|
197
|
+
const station = await connect();
|
|
198
|
+
const boot = await station.call('BootNotification',{chargePointVendor:'Test',chargePointModel:'Local station'});
|
|
199
|
+
assert.equal(boot.status,'Accepted');
|
|
200
|
+
await station.call('StatusNotification',{connectorId:1,status:'Available',errorCode:'NoError'});
|
|
201
|
+
const online = await waitState('online');
|
|
202
|
+
const key = require('node:crypto').createHash('sha256').update(identity).digest('hex');
|
|
203
|
+
assert.deepEqual(online,{...empty,tracked:[{key,name:'Ladestation 1',state:'online'}]});
|
|
204
|
+
const systemNow = Date.now;
|
|
205
|
+
try {
|
|
206
|
+
const later = systemNow() + 751000;
|
|
207
|
+
Date.now = () => later;
|
|
208
|
+
assert.equal(measure().state,'fault','the native activity window also covers a silent open socket');
|
|
209
|
+
} finally { Date.now = systemNow; }
|
|
210
|
+
await station.close({force:true});
|
|
211
|
+
const offline = await waitState('offline');
|
|
212
|
+
assert.deepEqual(offline,{state:'fault',complete:false,offline:[{name:'Ladestation 1'}],totalOffline:1,tracked:[{key,name:'Ladestation 1',state:'offline'}]});
|
|
213
|
+
assert.doesNotMatch(JSON.stringify(offline),/secret-serial|888264902|127\.0\.0\.1/);
|
|
214
|
+
const reconnecting = await connect();
|
|
215
|
+
await waitState('unknown');
|
|
216
|
+
await reconnecting.close({force:true});
|
|
217
|
+
await waitState('offline');
|
|
218
|
+
const final = await connect();
|
|
219
|
+
await final.call('Heartbeat',{});
|
|
220
|
+
assert.deepEqual(await waitState('online'),online,'an accepted heartbeat confirms an existing station after reconnection');
|
|
221
|
+
f.revoke();
|
|
222
|
+
assert.deepEqual(measure(),{...empty,state:'unknown'});
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
test('dashboard reports the offline count and at most twelve synthetic station names',async t => {
|
|
226
|
+
const f = fixture(),listenerPort = await port();
|
|
227
|
+
const identityAllowlist = Array.from({length:13},(_,i) => 'private-address-'+i);
|
|
228
|
+
const hosted = createHostedModule({...f,config:{enabled:true,port:listenerPort,activeRefresh:false,identityAllowlist}});
|
|
229
|
+
t.after(()=>hosted.stop());
|
|
230
|
+
await hosted.start();
|
|
231
|
+
assert.equal(hosted.getDashboardDeviceHealth().complete,false);
|
|
232
|
+
for(let i=0;i<13;i++){
|
|
233
|
+
const client = new RPCClient({endpoint:'ws://127.0.0.1:'+listenerPort,identity:'private-address-'+i,protocols:['ocpp1.6'],reconnect:false});
|
|
234
|
+
try {
|
|
235
|
+
await client.connect();
|
|
236
|
+
await client.call('Heartbeat',{});
|
|
237
|
+
} finally { await client.close({force:true}); }
|
|
238
|
+
}
|
|
239
|
+
const summary=await until(()=>hosted.getDashboardDeviceHealth(),v=>v.totalOffline===13);
|
|
240
|
+
assert.equal(summary.state,'fault');
|
|
241
|
+
assert.equal(summary.complete,true,'every identity on the closed admission list has been confirmed');
|
|
242
|
+
assert.equal(summary.offline.length,12);
|
|
243
|
+
assert.equal(summary.tracked.length,13);
|
|
244
|
+
assert.deepEqual(summary.offline[11],{name:'Ladestation 12'});
|
|
245
|
+
assert.equal(new Set(summary.tracked.map(x=>x.key)).size,13);
|
|
246
|
+
assert.doesNotMatch(JSON.stringify(summary),/private-address/);
|
|
247
|
+
});
|
|
248
|
+
|
|
249
|
+
test('known stations survive worker replacement with the same native states; inactive admission entries and a bare socket are never promoted', async t => {
|
|
250
|
+
const f = fixture(), identity='Garage West', listenerPort=await port();
|
|
251
|
+
const config={enabled:true,port:listenerPort,activeRefresh:false,identityAllowlist:[identity,'Future Spare'],heartbeatIntervalSec:10,activityTimeoutSec:90};
|
|
252
|
+
const boot = async () => {
|
|
253
|
+
const hosted=createHostedModule({...f,config});
|
|
254
|
+
t.after(()=>hosted.stop()); await hosted.start(); return hosted;
|
|
255
|
+
};
|
|
256
|
+
const socket=async () => {
|
|
257
|
+
const client=new RPCClient({endpoint:'ws://127.0.0.1:'+listenerPort,identity,protocols:['ocpp1.6'],reconnect:false});
|
|
258
|
+
t.after(()=>client.close({force:true}).catch(()=>{}));
|
|
259
|
+
await client.connect();return client;
|
|
260
|
+
};
|
|
261
|
+
const original=await boot();
|
|
262
|
+
await until(()=>original.getDashboardDeviceHealth(),r=>r.state==='ok'&&!r.tracked.length);
|
|
263
|
+
const client=await socket();
|
|
264
|
+
await client.call('Heartbeat',{});
|
|
265
|
+
await until(()=>original.getDashboardDeviceHealth(),r=>r.tracked[0]?.state==='online');
|
|
266
|
+
await until(()=>[...f.states.keys()],ids=>ids.some(k=>k.endsWith('.health.dashboardConfirmedKey')&&
|
|
267
|
+
/^[a-f0-9]{64}$/.test(String(f.states.get(k).val))));
|
|
268
|
+
await client.close({force:true});
|
|
269
|
+
const firstLost=await until(()=>original.getDashboardDeviceHealth(),r=>r.totalOffline===1);
|
|
270
|
+
await original.stop();
|
|
271
|
+
const reloaded=await boot();
|
|
272
|
+
const waiting=await until(()=>reloaded.getDashboardDeviceHealth(),r=>r.tracked[0]?.key===firstLost.tracked[0].key);
|
|
273
|
+
assert.notEqual(waiting.state,'ok');assert.equal(waiting.tracked.length,1);
|
|
274
|
+
const dt=Date.now;
|
|
275
|
+
try {const afterWindow=dt()+91000;Date.now=()=>afterWindow;
|
|
276
|
+
assert.deepEqual(reloaded.getDashboardDeviceHealth().offline,[{name:'Ladestation 1'}]);
|
|
277
|
+
} finally {Date.now=dt;}
|
|
278
|
+
const replacement=await socket();
|
|
279
|
+
assert.equal((await until(()=>reloaded.getDashboardDeviceHealth(),r=>r.tracked[0]?.state==='unknown')).state,'unknown');
|
|
280
|
+
await replacement.call('BootNotification',{chargePointModel:'Local',chargePointVendor:'Fixture'});
|
|
281
|
+
const online=await until(()=>reloaded.getDashboardDeviceHealth(),r=>r.tracked[0]?.state==='online');
|
|
282
|
+
assert.equal(online.totalOffline,0);assert.equal(online.tracked[0].key,firstLost.tracked[0].key);
|
|
283
|
+
});
|
|
284
|
+
|
|
285
|
+
test('legacy ocpp21 namespace restores acknowledged Boot evidence and prior physical disconnect, rejects defaults, bad quality and handshakes', async t=>{
|
|
286
|
+
const ns='ocpp21.3',f=fixture(ns),listenerPort=await port();
|
|
287
|
+
const add=(id,val,q=0)=>f.states.set(ns+'.'+id,{val,ack:true,q,ts:Date.now()});
|
|
288
|
+
add('Primary.info.identity','Raw With Space');
|
|
289
|
+
add('Primary.info.heartbeatInterval',300);add('Primary.health.staleReason','socket-disconnected');add('Primary.health.online',false);
|
|
290
|
+
add('Never.info.identity','Whitelist Only');add('Never.info.heartbeatInterval',0);add('Never.health.online',false);
|
|
291
|
+
add('Bad.info.identity','Bad device');add('Bad.health.lastBoot',new Date().toISOString(),32);
|
|
292
|
+
add('Opening.info.identity','Websocket only');add('Opening.health.lastSeenMs',Date.now());
|
|
293
|
+
const hosted=createHostedModule({...f,config:{enabled:true,port:listenerPort,activeRefresh:false}});
|
|
294
|
+
t.after(()=>hosted.stop());await hosted.start();
|
|
295
|
+
const health=await until(()=>hosted.getDashboardDeviceHealth(),r=>r.totalOffline===1);
|
|
296
|
+
assert.equal(health.tracked.length,1);assert.equal(health.tracked[0].key,require('node:crypto').createHash('sha256').update('Raw With Space').digest('hex'));
|
|
297
|
+
assert.doesNotMatch(JSON.stringify(health),/With Space|Primary|ocpp21/);
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
test('an unavailable historical inventory does not prevent the port from accepting stations and cannot declare all devices healthy',async t=>{
|
|
301
|
+
const f=fixture(),listenerPort=await port();
|
|
302
|
+
f.adapter.getStatesAsync=async()=>{throw Error('controller unavailable')};
|
|
303
|
+
const hosted=createHostedModule({...f,config:{enabled:true,port:listenerPort}});
|
|
304
|
+
t.after(()=>hosted.stop());await hosted.start();
|
|
305
|
+
assert.equal(hosted.getStatus().started,true);assert.equal(hosted.getDashboardDeviceHealth().state,'unknown');
|
|
306
|
+
assert.equal(hosted.getDashboardDeviceHealth().complete,false);
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
test('deferred history does not delay the WebSocket listener and is neutral until loaded',async t=>{
|
|
310
|
+
const f=fixture(), read=f.adapter.getStatesAsync,listenerPort=await port();
|
|
311
|
+
let resume,waiting=true;const blocked=new Promise(resolve=>{resume=resolve;});
|
|
312
|
+
f.adapter.getStatesAsync=async pattern=>{
|
|
313
|
+
if(pattern==='*.health.dashboardConfirmedKey' && waiting) await blocked;
|
|
314
|
+
return read(pattern);
|
|
315
|
+
};
|
|
316
|
+
const hosted=createHostedModule({...f,config:{enabled:true,port:listenerPort,activeRefresh:false}});
|
|
317
|
+
t.after(async()=>{waiting=false;resume();await hosted.stop();});
|
|
318
|
+
await hosted.start();assert.equal(hosted.getDashboardDeviceHealth().state,'unknown');
|
|
319
|
+
const client=new RPCClient({endpoint:'ws://127.0.0.1:'+listenerPort,identity:'Live',protocols:['ocpp1.6'],reconnect:false});
|
|
320
|
+
try {
|
|
321
|
+
await client.connect();
|
|
322
|
+
await client.call('Heartbeat',{});
|
|
323
|
+
await until(()=>hosted.getDashboardDeviceHealth(),r=>r.tracked[0]?.state==='online');
|
|
324
|
+
waiting=false;resume();await until(()=>hosted.getDashboardDeviceHealth(),r=>r.state==='ok');
|
|
325
|
+
} finally {await client.close({force:true});}
|
|
326
|
+
});
|
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.35",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"bluefox <dogafox@gmail.com>",
|
|
7
7
|
"apollon77",
|
|
@@ -240,7 +240,9 @@
|
|
|
240
240
|
"docs/start/START_HIER_9.0.33.md",
|
|
241
241
|
"docs/reports/unified-9.0.33/",
|
|
242
242
|
"docs/start/START_HIER_9.0.34.md",
|
|
243
|
-
"docs/reports/unified-9.0.34/"
|
|
243
|
+
"docs/reports/unified-9.0.34/",
|
|
244
|
+
"docs/start/START_HIER_9.0.35.md",
|
|
245
|
+
"docs/reports/unified-9.0.35/"
|
|
244
246
|
],
|
|
245
247
|
"scripts": {
|
|
246
248
|
"start": "cd src-admin && npm run start",
|
|
@@ -251,7 +253,7 @@
|
|
|
251
253
|
"build:ui-runtime": "node ui/scripts/build-smarthome-markdown.cjs && node ui/scripts/build-ts-runtime-executables.js",
|
|
252
254
|
"lint-backend": "eslint -c eslint.config.mjs src && npm run lint:unified",
|
|
253
255
|
"lint": "npm run lint-backend && cd src-admin && npm run lint",
|
|
254
|
-
"test:unified": "node --test --test-timeout=180000 --test-concurrency=4 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-ui.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-ems-process-isolation.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 test/eos-history-backup-scope.test.cjs test/eos-postgres*.test.cjs test/eos-ems-control-datapoints.test.cjs test/eos-runtime-interop.test.cjs test/eos-derived-flow-integrity.test.cjs test/eos-storage-nullable-flow.test.cjs test/eos-energyflow-cadence.test.cjs test/eos-core-pv-input-integrity.test.cjs test/eos-evcs*.test.cjs test/eos-ui-process.test.cjs test/eos-runtime-health.test.cjs test/eos-ocpp*.test.cjs test/eos-kiosk*.test.cjs test/eos-ui-process-review.test.cjs test/eos-ui-operational-process-review.test.cjs test/eos-ui-secret-codec.test.cjs test/eos-runtime-control*.test.cjs test/eos-ui-config*.test.cjs test/eos-charging-*.test.cjs test/eos-nvp-933-safety.test.cjs test/eos-prime-mover-pulse-recovery.test.cjs test/eos-sgready-interlock.test.cjs test/eos-mira-*.test.cjs",
|
|
256
|
+
"test:unified": "node --test --test-timeout=180000 --test-concurrency=4 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-ui.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-ems-process-isolation.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 test/eos-history-backup-scope.test.cjs test/eos-postgres*.test.cjs test/eos-ems-control-datapoints.test.cjs test/eos-runtime-interop.test.cjs test/eos-derived-flow-integrity.test.cjs test/eos-storage-nullable-flow.test.cjs test/eos-energyflow-cadence.test.cjs test/eos-core-pv-input-integrity.test.cjs test/eos-evcs*.test.cjs test/eos-ui-process.test.cjs test/eos-runtime-health.test.cjs test/eos-ocpp*.test.cjs test/eos-kiosk*.test.cjs test/eos-ui-process-review.test.cjs test/eos-ui-operational-process-review.test.cjs test/eos-ui-secret-codec.test.cjs test/eos-runtime-control*.test.cjs test/eos-ui-config*.test.cjs test/eos-charging-*.test.cjs test/eos-nvp-933-safety.test.cjs test/eos-prime-mover-pulse-recovery.test.cjs test/eos-sgready-interlock.test.cjs test/eos-mira-*.test.cjs test/eos-dashboard-*.test.cjs test/eos-supervisor-notifications.test.cjs ui/scripts/verify-stable-1.0.7-notifications.cjs",
|
|
255
257
|
"check:unified": "node tools/eos-release-check.cjs",
|
|
256
258
|
"seal:unified": "node tools/eos-release-manifest.cjs --write",
|
|
257
259
|
"prepack": "node tools/eos-prepare-publish.cjs && node tools/eos-release-check.cjs",
|
|
@@ -264,7 +266,7 @@
|
|
|
264
266
|
"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 && tsc -p tsconfig.eos-history-backup-scope.json && tsc -p tsconfig.eos-postgres-system.json && tsc -p ui/tsconfig.postgres-history.json && tsc -p ui/tsconfig.ems-control-values.json && tsc -p ui/tsconfig.flow-measurement.json && tsc -p ui/tsconfig.ocpp-limit-feedback.json && tsc -p ui/tsconfig.ocpp-auto-discovery.json && tsc -p tsconfig.eos-runtime-health.json && tsc -p tsconfig.eos-module-process.json && tsc -p tsconfig.ui-process.json && tsc -p modules/ocpp/tsconfig.json --noEmit && tsc -p tsconfig.eos-ocpp-admin.json && tsc -p tsconfig.eos-runtime-control.json && tsc -p tsconfig.eos-backup-admin.json && tsc -p tsconfig.eos-repository-tools.json",
|
|
265
267
|
"build:installer": "npm --prefix ui/src-admin-tab run build",
|
|
266
268
|
"sbom": "npm sbom --sbom-format=cyclonedx > release-manifests/unified/build-environment.cdx.json && node tools/eos-sbom-vendored.cjs",
|
|
267
|
-
"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/eosRuntimeControl.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 ui/src-ts/runtime-executables/www/eos-kiosk-settings.ts ui/src-ts/runtime-executables/www/login.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 && eslint -c eslint.unified.config.mjs src/lib/eosHistoryBackupScope.js && eslint -c ui/eslint.postgres-history.config.mjs ui/src-ts/runtime-executables/lib/postgres-history.ts ui/src-ts/runtime-executables/lib/postgres-history-config.ts && eslint -c ui/eslint.ems-control-values.config.mjs ui/src-ts/runtime-executables/lib/ems-control-values.ts ui/src-ts/runtime-executables/lib/charging-point-identity.ts ui/src-ts/runtime-executables/lib/charging-station-identity.ts && eslint -c ui/eslint.flow-measurement.config.mjs ui/src-ts/runtime-executables/lib/flow-measurement.ts && eslint -c ui/eslint.ocpp-limit-feedback.config.mjs ui/src-ts/runtime-executables/lib/ocpp-limit-feedback.ts && eslint -c ui/eslint.ocpp-auto-discovery.config.mjs ui/src-ts/runtime-executables/lib/ocpp-auto-discovery.ts && eslint -c eslint.runtime-health.config.mjs src/lib/eosRuntimeHealth.js public/eos-runtime/index.js && eslint -c eslint.unified.config.mjs src/lib/eosModuleProcess.js src/lib/eosModuleProcessProtocol.js src/lib/eosModuleProcessWorker.js && eslint -c eslint.config.mjs src/lib/eosSplitRuntime.ts src/lib/eosUiProcess.ts src/lib/eosUiProcessRpc.ts src/lib/eosUiProcessWorker.ts src/lib/eosUiSecretCodec.ts src/lib/eosKiosk.ts && eslint -c eslint.ocpp-admin.config.mjs modules/ocpp/admin/index.js && eslint -c modules/ocpp/eslint.config.mjs modules/ocpp/src/*.ts && eslint -c eslint.backup-admin.config.mjs modules/backup/admin/index.js && eslint -c eslint.unified.config.mjs tools/nexowatt-generate-eos-admin-repo-entry.cjs tools/nexowatt-patch-repo.cjs tools/nexowatt-repair-eos-admin-update.cjs",
|
|
269
|
+
"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/eosRuntimeControl.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 ui/src-ts/runtime-executables/www/eos-kiosk-settings.ts ui/src-ts/runtime-executables/www/login.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 && eslint -c eslint.unified.config.mjs src/lib/eosHistoryBackupScope.js && eslint -c ui/eslint.postgres-history.config.mjs ui/src-ts/runtime-executables/lib/postgres-history.ts ui/src-ts/runtime-executables/lib/postgres-history-config.ts && eslint -c ui/eslint.ems-control-values.config.mjs ui/src-ts/runtime-executables/lib/ems-control-values.ts ui/src-ts/runtime-executables/lib/charging-point-identity.ts ui/src-ts/runtime-executables/lib/charging-station-identity.ts && eslint -c ui/eslint.flow-measurement.config.mjs ui/src-ts/runtime-executables/lib/flow-measurement.ts && eslint -c ui/eslint.ocpp-limit-feedback.config.mjs ui/src-ts/runtime-executables/lib/ocpp-limit-feedback.ts && eslint -c ui/eslint.ocpp-auto-discovery.config.mjs ui/src-ts/runtime-executables/lib/ocpp-auto-discovery.ts && eslint -c eslint.runtime-health.config.mjs src/lib/eosRuntimeHealth.js src/lib/eosDashboardProcessStatus.js src/lib/eosSupervisorNotifications.js public/eos-runtime/index.js && eslint -c eslint.unified.config.mjs src/lib/eosModuleProcess.js src/lib/eosModuleProcessProtocol.js src/lib/eosModuleProcessWorker.js && eslint -c eslint.config.mjs src/lib/eosSplitRuntime.ts src/lib/eosUiProcess.ts src/lib/eosUiProcessRpc.ts src/lib/eosUiProcessWorker.ts src/lib/eosUiSecretCodec.ts src/lib/eosKiosk.ts && eslint -c eslint.ocpp-admin.config.mjs modules/ocpp/admin/index.js && eslint -c modules/ocpp/eslint.config.mjs modules/ocpp/src/*.ts && eslint -c eslint.backup-admin.config.mjs modules/backup/admin/index.js && eslint -c eslint.unified.config.mjs tools/nexowatt-generate-eos-admin-repo-entry.cjs tools/nexowatt-patch-repo.cjs tools/nexowatt-repair-eos-admin-update.cjs",
|
|
268
270
|
"test:modules": "node --test --test-timeout=180000 --test-concurrency=4 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.* modules/ocpp/test/*.test.* && node --test --test-timeout=180000 --test-concurrency=4 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 --test-timeout=180000 --test-concurrency=4 modules/backup/test/*.test.cjs",
|
|
269
271
|
"build:modules": "tsc -p modules/eebus/tsconfig.json && tsc -p modules/backup/tsconfig.json && tsc -p modules/ocpp/tsconfig.json",
|
|
270
272
|
"test:installed-package": "node --no-global-search-paths --test --test-timeout=180000 test/eos-installed-package.integration.cjs"
|
|
@@ -279,7 +281,7 @@
|
|
|
279
281
|
},
|
|
280
282
|
"nexowattReleasePolicy": {
|
|
281
283
|
"distTag": "next",
|
|
282
|
-
"purpose": "NexoWatt EOS 9.0.
|
|
284
|
+
"purpose": "NexoWatt EOS 9.0.35 controlled release for live dashboard telemetry, connection and supervised process status"
|
|
283
285
|
},
|
|
284
286
|
"publisher": "NexoWatt",
|
|
285
287
|
"nexowattUpstream": {
|