iobroker.eos-admin 9.0.21 → 9.0.25
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 +17 -11
- package/README.md +37 -9
- package/START_HIER_9.0.21.md +53 -0
- package/START_HIER_9.0.22.md +48 -0
- package/START_HIER_9.0.23.md +47 -0
- package/START_HIER_9.0.24.md +70 -0
- package/START_HIER_9.0.25.md +60 -0
- package/adminWww/.vite/manifest.json +55 -55
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13760 -13760
- package/adminWww/assets/{AdapterUpdateDialog-Dxl_b7Op.js → AdapterUpdateDialog-CLDpmxDx.js} +1 -1
- package/adminWww/assets/{Adapters-CVKKhXmI.js → Adapters-BCGeX2v7.js} +1 -1
- package/adminWww/assets/{ConfigManager-Bf6nTAkL.js → ConfigManager-B_sJf5_w.js} +1 -1
- package/adminWww/assets/{Enums-CJHVJY7t.js → Enums-D3n1pOtc.js} +1 -1
- package/adminWww/assets/{Fields-DWHbZKvm.js → Fields-Bdx5gPoT.js} +1 -1
- package/adminWww/assets/{Files-a6owMTXA.js → Files-BPK84lYU.js} +1 -1
- package/adminWww/assets/{Hosts-LtEMeXpV.js → Hosts--Jr6oLf2.js} +1 -1
- package/adminWww/assets/{Instances-DhChziA1.js → Instances-DxTOzFus.js} +1 -1
- package/adminWww/assets/{Intro-Cyq9gVDC.js → Intro-CYBGeZtu.js} +1 -1
- package/adminWww/assets/{Logs-wcramXsg.js → Logs-CVNC-4S8.js} +1 -1
- package/adminWww/assets/{Objects-DINVHd_e.js → Objects-Cqm9Rvym.js} +1 -1
- package/adminWww/assets/{Overview-DK4R41zR.js → Overview-JgjcHwlz.js} +1 -1
- package/adminWww/assets/{State-DcEACXzL.js → State-BV14HSwZ.js} +1 -1
- package/adminWww/assets/{UsedResources-C1LcM0Rb.js → UsedResources-Dz48WzEF.js} +1 -1
- package/adminWww/assets/{Users-DvDdSyDY.js → Users-D19YlRCD.js} +1 -1
- package/adminWww/assets/{bootstrap-Dbj_GbnP.js → bootstrap-a7POLSDr.js} +4 -4
- package/adminWww/assets/{hostInit-BNFIx0-f.js → hostInit-keGjwsZR.js} +1 -1
- package/adminWww/assets/{icons-material-DVbdXNgr.js → icons-material-Omb_HCfb.js} +1 -1
- package/adminWww/assets/{index-CoKP1NSA.js → index-DqPrQK7T.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-CMvku1F1.js → installSVGRenderer-iWfLFoQU.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-ac330bce.js → mf-entry-bootstrap-0-2a856bb6.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.25.js +12 -0
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosHistoryBackupScope.js +73 -0
- package/build/lib/eosHistoryBackupScope.js.map +1 -0
- package/build/lib/eosKiosk.js +348 -0
- package/build/lib/eosKiosk.js.map +1 -0
- package/build/lib/eosLegacyMigration.js +24 -3
- package/build/lib/eosLegacyMigration.js.map +1 -1
- package/build/lib/eosLicenseService.js +1 -1
- package/build/lib/eosLicenseService.js.map +1 -1
- package/build/lib/eosModuleConfigStore.js +2 -2
- package/build/lib/eosModuleConfigStore.js.map +1 -1
- package/build/lib/eosModuleHost.js +289 -25
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/eosModuleHttp.js +71 -8
- package/build/lib/eosModuleHttp.js.map +1 -1
- package/build/lib/eosModuleProcess.js +317 -0
- package/build/lib/eosModuleProcess.js.map +1 -0
- package/build/lib/eosModuleProcessProtocol.js +213 -0
- package/build/lib/eosModuleProcessProtocol.js.map +1 -0
- package/build/lib/eosModuleProcessWorker.js +279 -0
- package/build/lib/eosModuleProcessWorker.js.map +1 -0
- package/build/lib/eosPostgresProvisioning.js +189 -0
- package/build/lib/eosPostgresProvisioning.js.map +1 -0
- package/build/lib/eosRuntimeControl.js +224 -0
- package/build/lib/eosRuntimeControl.js.map +1 -0
- package/build/lib/eosRuntimeHealth.js +170 -0
- package/build/lib/eosRuntimeHealth.js.map +1 -0
- package/build/lib/eosUiProcess.js +728 -0
- package/build/lib/eosUiProcess.js.map +1 -0
- package/build/lib/eosUiProcessRpc.js +292 -0
- package/build/lib/eosUiProcessRpc.js.map +1 -0
- package/build/lib/eosUiProcessWorker.js +443 -0
- package/build/lib/eosUiProcessWorker.js.map +1 -0
- package/build/lib/eosUiSecretCodec.js +64 -0
- package/build/lib/eosUiSecretCodec.js.map +1 -0
- package/build/lib/eosUnifiedBoundary.js +28 -4
- package/build/lib/eosUnifiedBoundary.js.map +1 -1
- package/build/lib/eosUpdateSnapshot.js +32 -1
- package/build/lib/eosUpdateSnapshot.js.map +1 -1
- package/build/lib/web.js +175 -18
- package/build/lib/web.js.map +1 -1
- package/build/main.js +6 -2
- package/build/main.js.map +1 -1
- package/docs/reports/unified-9.0.21/CRA_NACHWEISSTAND.md +159 -0
- package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_BACKEND_REVIEW.md +30 -0
- package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_UI_REVIEW.md +44 -0
- package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_WORKER_REVIEW.md +147 -0
- package/docs/reports/unified-9.0.21/CUSTOMER_WORKER_ZWEITPRUEFUNG.md +108 -0
- package/docs/reports/unified-9.0.21/DEVICE_STABILITY_REVIEW.md +50 -0
- package/docs/reports/unified-9.0.21/EMS_STABILITAET.md +41 -0
- package/docs/reports/unified-9.0.21/HISTORY_TARIFF_STABILITY_REVIEW.md +48 -0
- package/docs/reports/unified-9.0.21/MQTT_ZWEITPRUEFUNG_EMS.md +47 -0
- package/docs/reports/unified-9.0.21/PERSISTENZ_STABILITAET.md +76 -0
- package/docs/reports/unified-9.0.21/PRUEFBERICHT.md +64 -0
- package/docs/reports/unified-9.0.21/SECURITY_STABILITY_REVIEW.md +118 -0
- package/docs/reports/unified-9.0.21/UI_SECURITY_GATE_REVIEW.md +62 -0
- package/docs/reports/unified-9.0.21/UPDATE_HTTP_SNAPSHOT_PRUEFUNG.md +46 -0
- package/docs/reports/unified-9.0.21/raw/INDEX.json +1307 -0
- package/docs/reports/unified-9.0.21/raw/audit-full.log +345 -0
- package/docs/reports/unified-9.0.21/raw/audit-full.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/audit-runtime.log +23 -0
- package/docs/reports/unified-9.0.21/raw/audit-runtime.result.json +15 -0
- package/docs/reports/unified-9.0.21/raw/backend-final.log +5 -0
- package/docs/reports/unified-9.0.21/raw/backend-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/cra/frontend-installer-sbom.json +32 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-glue/root-glue-focused-node24.tap +34 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/real920-archive-inspection.json +20 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/service-node22.log +110 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/service-node24.log +24 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/service-verification.json +54 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-node22.tap +86 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-node24.tap +20 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-strict-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/independent-worker-probes.cjs +109 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/node22.tap +86 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/node24.tap +20 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/probes-node22.tap +44 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/probes-node24.tap +13 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/receipt.json +89 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/receipt.json +42 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-catch-node22.log +1959 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-test-update-node22.log +1968 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-test-update-node24.log +337 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-runtime-review-node22.log +1895 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-runtime-review-node24.log +317 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-final-node22.log +1959 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-final-node24.log +327 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-final-message-test-node22.log +36 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-final-message-test-node24.log +28 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-message-session-node22.log +36 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-message-session-node24.log +28 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-command-replay-repro-node22.log +15 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-command-replay-repro-node24.log +13 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-shutdown-repro-node22.log +16 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-shutdown-repro-node24.log +14 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-resources-node22.log +74 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-resources-node24.log +46 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-before-drain-test-update.json +206 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-before-runtime-review.json +150 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-final.json +275 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/commands.json +134 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/env-node22.log +3 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/env-node24.log +1 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-drain-test-update-node22.log +2 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-drain-test-update-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-runtime-review-node22.log +2 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-runtime-review-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-final-node22.log +2 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-final-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/mqtt-command-replay-repro.cjs +38 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/mqtt-shutdown-repro.cjs +31 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/regression-node22.log +322 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/regression-node24.log +55 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/run-evidence.py +23 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/run-final-evidence.py +20 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/runtime-lint-920.json +1 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/runtime-lint-921.json +1 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/source-hashes.json +16 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-drain-test-update-node22.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-drain-test-update-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-runtime-review-node22.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-runtime-review-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-final-node22.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-final-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/ems/baseline-files-eslint.json +1 -0
- package/docs/reports/unified-9.0.21/raw/ems/changed-files-eslint.json +1 -0
- package/docs/reports/unified-9.0.21/raw/ems/engine.patch +38 -0
- package/docs/reports/unified-9.0.21/raw/ems/eslint-delta.json +6 -0
- package/docs/reports/unified-9.0.21/raw/ems/evidence.json +171 -0
- package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-baseline-node24.log +124 -0
- package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-node22.log +56 -0
- package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-node24.log +15 -0
- package/docs/reports/unified-9.0.21/raw/ems/farm-owned-methods.patch +133 -0
- package/docs/reports/unified-9.0.21/raw/ems/generated-regression-node22.log +460 -0
- package/docs/reports/unified-9.0.21/raw/ems/generated-regression-node24.log +82 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-frozen-node22.log +170 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-frozen-node24.log +33 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-review-node22.log +153 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-review-node24.log +39 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-reviewed-node22.log +170 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-reviewed-node24.log +33 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-queue-inheritance-before.log +28 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-baseline-node24.log +64 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-initial-timing.log +32 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-node22.log +44 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-node24.log +13 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-session-review.cjs +23 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-session-review.log +119 -0
- package/docs/reports/unified-9.0.21/raw/ems/nvp-baseline-node22.log +170 -0
- package/docs/reports/unified-9.0.21/raw/ems/nvp-baseline-node24.log +121 -0
- package/docs/reports/unified-9.0.21/raw/ems/nvp-node22.log +68 -0
- package/docs/reports/unified-9.0.21/raw/ems/nvp-node24.log +17 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-code-delta-inventory.json +32 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-docs-check.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-farm-fingerprint-moves.json +74 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-lint-policy-tests.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-final-node22.log +5 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-final-node24.log +8 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-initial.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-main-full-delta.patch +135 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-reviewed-changes.json +93 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-reviewed-findings-before.json +3185 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-security-final-node22.json +28833 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-security-final-node24.json +28833 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-security-inventory-before.json +28991 -0
- package/docs/reports/unified-9.0.21/raw/ems/update-ui-reviewed-findings.cjs +59 -0
- package/docs/reports/unified-9.0.21/raw/frontend-build.log +152 -0
- package/docs/reports/unified-9.0.21/raw/frontend-build.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/frontend-installer-sbom.json +32 -0
- package/docs/reports/unified-9.0.21/raw/history/baseline920-influx-sequence-node24.log +12 -0
- package/docs/reports/unified-9.0.21/raw/history/baseline920-outage-node24.log +64 -0
- package/docs/reports/unified-9.0.21/raw/history/cra-tariff-source-node22.log +38 -0
- package/docs/reports/unified-9.0.21/raw/history/cra-tariff-source-node24.log +36 -0
- package/docs/reports/unified-9.0.21/raw/history/lint-baseline-comparison.json +83 -0
- package/docs/reports/unified-9.0.21/raw/history/lint-scope.cjs +29 -0
- package/docs/reports/unified-9.0.21/raw/history/regression-node22.log +438 -0
- package/docs/reports/unified-9.0.21/raw/history/regression-node24.log +75 -0
- package/docs/reports/unified-9.0.21/raw/history/results-node22.json +37 -0
- package/docs/reports/unified-9.0.21/raw/history/results-node24.json +66 -0
- package/docs/reports/unified-9.0.21/raw/history/run-checks.py +18 -0
- package/docs/reports/unified-9.0.21/raw/history/source-evidence.json +83 -0
- package/docs/reports/unified-9.0.21/raw/installer-build.log +26 -0
- package/docs/reports/unified-9.0.21/raw/installer-build.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/keygen-source.json +6 -0
- package/docs/reports/unified-9.0.21/raw/lint-final.log +16 -0
- package/docs/reports/unified-9.0.21/raw/lint-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/modules-build.log +5 -0
- package/docs/reports/unified-9.0.21/raw/modules-build.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/node22-tests-final.log +13274 -0
- package/docs/reports/unified-9.0.21/raw/node22-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.21/raw/node22-typecheck-final.log +7 -0
- package/docs/reports/unified-9.0.21/raw/node22-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.21/raw/node24-tests-final.log +2223 -0
- package/docs/reports/unified-9.0.21/raw/node24-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.21/raw/node24-typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.21/raw/node24-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.21/raw/persistence/920-http-draft-revision-node24.log +50 -0
- package/docs/reports/unified-9.0.21/raw/persistence/920-late-commit-overwrite-node24.log +30 -0
- package/docs/reports/unified-9.0.21/raw/persistence/920-save-lifecycle-node24.log +59 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-backend-types.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-editor-lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-eebus-editor-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-final-format-review.json +24 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-new-update-http-before.log +177 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-new-update-snapshot-before.log +80 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node22.log +1019 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node22.receipt.json +28 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node24.log +174 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node24.receipt.json +28 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-eslint-final.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node22.log +137 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node22.receipt.json +21 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node24.log +30 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node24.receipt.json +21 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-strict-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-typecheck-final.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-after.log +3 -0
- package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-before-observation.json +25 -0
- package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-repro.cjs +7 -0
- package/docs/reports/unified-9.0.21/raw/persistence/source-files.pre-final-format.sha256 +14 -0
- package/docs/reports/unified-9.0.21/raw/persistence/source-files.sha256 +14 -0
- package/docs/reports/unified-9.0.21/raw/release-overlay/obsolete-assets-920-added.json +94 -0
- package/docs/reports/unified-9.0.21/raw/release-overlay/publish-catalog-regression.log +49 -0
- package/docs/reports/unified-9.0.21/raw/release-overlay/publish-catalog-regression.result.json +15 -0
- package/docs/reports/unified-9.0.21/raw/sbom-runtime.log +7 -0
- package/docs/reports/unified-9.0.21/raw/sbom-runtime.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/sbom-vendor-check.log +1 -0
- package/docs/reports/unified-9.0.21/raw/sbom-vendor-check.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/backend-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/boundaries-node22.tap +495 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/boundaries-node24.tap +88 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/coexistence-node22.tap +179 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/coexistence-node24.tap +36 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/results.json +118 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-admission-before-node22.tap +63 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-admission-before-node24.tap +47 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-node22.tap +148 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-node24.tap +30 -0
- package/docs/reports/unified-9.0.21/raw/ui-docs-check.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ui-docs-check.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-runtime-final.log +7 -0
- package/docs/reports/unified-9.0.21/raw/ui-runtime-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-runtime-sync.log +1 -0
- package/docs/reports/unified-9.0.21/raw/ui-runtime-sync.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-sbom-check.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ui-sbom-check.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-sbom-final.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ui-sbom-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-secret-final.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ui-secret-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-security-final.log +8 -0
- package/docs/reports/unified-9.0.21/raw/ui-security-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/baseline-ui.log +280 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/browser-preview.test.cjs +170 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/draft-regression.log +214 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/eos-updates-before.ts +171 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/results.json +90 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/source-evidence.json +30 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/type-node22.log +0 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/type-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/ui-node22.log +98 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/ui-node24.log +22 -0
- package/docs/reports/unified-9.0.22/BACKUP_POSTGRES_FOLLOWUP.md +44 -0
- package/docs/reports/unified-9.0.22/ENERGIEFLUSS_BROWSERPRUEFUNG.md +40 -0
- package/docs/reports/unified-9.0.22/ENERGY_FLOW_BACKEND.md +44 -0
- package/docs/reports/unified-9.0.22/FLOW_TARIFF_INDEPENDENT_REVIEW.md +33 -0
- package/docs/reports/unified-9.0.22/OCPP_STOP_WRITER_REVIEW.md +27 -0
- package/docs/reports/unified-9.0.22/POSTGRESQL_SYSTEM_SETUP.md +34 -0
- package/docs/reports/unified-9.0.22/PRUEFBERICHT.md +85 -0
- package/docs/reports/unified-9.0.22/flow/PRUEFVERMERK.md +42 -0
- package/docs/reports/unified-9.0.22/flow/frontend-cadence-tests.log +37 -0
- package/docs/reports/unified-9.0.22/flow/frontend-source-hashes.json +13 -0
- package/docs/reports/unified-9.0.22/flow/frontend-tests.log +31 -0
- package/docs/reports/unified-9.0.22/postgres-history-review.md +43 -0
- package/docs/reports/unified-9.0.22/postgres-real-review.tap +21 -0
- package/docs/reports/unified-9.0.22/postgres-review-lint.log +0 -0
- package/docs/reports/unified-9.0.22/postgres-review-typecheck.log +0 -0
- package/docs/reports/unified-9.0.22/postgres-review-unit-api.tap +25 -0
- package/docs/reports/unified-9.0.22/raw/INDEX.json +43 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/eslint-backup.log +0 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-after.tap +13 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-before.tap +54 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-test-eslint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/influx-real-node24.tap +11 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/scope-hashes.json +51 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/storage-nullable-before.tap +96 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/storage-nullable-flow.tap +12 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/tests-node24.tap +116 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-backup-scope.log +0 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-backup.log +0 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-postgres-setup.log +0 -0
- package/docs/reports/unified-9.0.22/raw/current/admin-build.log +152 -0
- package/docs/reports/unified-9.0.22/raw/current/availability-final.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/backend-build.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/baseline-repairs.log +60 -0
- package/docs/reports/unified-9.0.22/raw/current/baseline-unified.log +1675 -0
- package/docs/reports/unified-9.0.22/raw/current/combined-fixes.log +65 -0
- package/docs/reports/unified-9.0.22/raw/current/control-final.log +25 -0
- package/docs/reports/unified-9.0.22/raw/current/energyflow-browser.json +244 -0
- package/docs/reports/unified-9.0.22/raw/current/energyflow-browser.stderr +0 -0
- package/docs/reports/unified-9.0.22/raw/current/energyflow-cadence-browser.json +63 -0
- package/docs/reports/unified-9.0.22/raw/current/energyflow-cadence-browser.stderr +0 -0
- package/docs/reports/unified-9.0.22/raw/current/lint-final.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/lint.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/markdown-build.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/modules-build.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/pre-ocpp-full.log +2337 -0
- package/docs/reports/unified-9.0.22/raw/current/production-audit.json +22 -0
- package/docs/reports/unified-9.0.22/raw/current/production-audit.stderr +1 -0
- package/docs/reports/unified-9.0.22/raw/current/runtime-build-final.log +8 -0
- package/docs/reports/unified-9.0.22/raw/current/runtime-build.log +32 -0
- package/docs/reports/unified-9.0.22/raw/current/runtime-sync.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/safety-envelope-final.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/sbom-lock-graph.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/sbom.log +6120 -0
- package/docs/reports/unified-9.0.22/raw/current/station-permission-final.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/storage-feedforward-final.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/typecheck.log +5 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/eslint.txt +0 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-availability.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-safety.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-station.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-tests.tap +124 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-availability.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-safety.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-station.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-tests.tap +26 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/typecheck.txt +0 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/core-pv-node22.tap +30 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/core-pv-node24.tap +11 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/environment.json +7 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/lint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/node22.tap +164 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/node24.tap +33 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/typecheck.log +0 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/browser-runtime.json +11 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/browser-smoke.json +49 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/browser-smoke.stderr +0 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/build.log +18 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/environment.json +38 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/lint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/node22.tap +144 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/node24.tap +30 -0
- package/docs/reports/unified-9.0.22/raw/node22-tests-final.log +14086 -0
- package/docs/reports/unified-9.0.22/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.22/raw/node24-tests-final.log +2356 -0
- package/docs/reports/unified-9.0.22/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-eslint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-node22.tap +72 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-node24.tap +70 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/status-eslint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/typecheck.log +0 -0
- package/docs/reports/unified-9.0.23/MODULE_PROCESS_IMPLEMENTATION.md +43 -0
- package/docs/reports/unified-9.0.23/OCPP_0.4.3_ERGEBNIS.json +24 -0
- package/docs/reports/unified-9.0.23/OCPP_0.4.3_PRUEFBERICHT.md +50 -0
- package/docs/reports/unified-9.0.23/OCPP_AUTOMATISCHE_ZUORDNUNG.md +49 -0
- package/docs/reports/unified-9.0.23/OCPP_CM_INTEGRATION.md +31 -0
- package/docs/reports/unified-9.0.23/PROZESSDIAGNOSE.md +35 -0
- package/docs/reports/unified-9.0.23/PRUEFBERICHT.md +75 -0
- package/docs/reports/unified-9.0.23/UI_EMS_PROZESSGRENZE.md +36 -0
- package/docs/reports/unified-9.0.23/UI_PROCESS_INDEPENDENT_FOLLOWUP.md +33 -0
- package/docs/reports/unified-9.0.23/module-process-contract-review-node22.tap +86 -0
- package/docs/reports/unified-9.0.23/module-process-contract-review-node24.tap +20 -0
- package/docs/reports/unified-9.0.23/module-process-contract-review.md +39 -0
- package/docs/reports/unified-9.0.23/module-process-contract-review.tap +20 -0
- package/docs/reports/unified-9.0.23/module-process-final.tap +27 -0
- package/docs/reports/unified-9.0.23/module-process-static.json +57 -0
- package/docs/reports/unified-9.0.23/raw/INDEX.json +43 -0
- package/docs/reports/unified-9.0.23/raw/build-backend-final.log +5 -0
- package/docs/reports/unified-9.0.23/raw/build-frontend.log +152 -0
- package/docs/reports/unified-9.0.23/raw/build-installer.log +26 -0
- package/docs/reports/unified-9.0.23/raw/build-ui-final.log +7 -0
- package/docs/reports/unified-9.0.23/raw/current/evcs-stop-writer-ocpp043.txt +20 -0
- package/docs/reports/unified-9.0.23/raw/current/ocpp-runtime-feedback-lint.txt +1 -0
- package/docs/reports/unified-9.0.23/raw/current/ocpp-runtime-feedback-tests.txt +28 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-browser.json +49 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-browser.stderr.txt +0 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-lint.txt +1 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-tests.txt +27 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-types.txt +1 -0
- package/docs/reports/unified-9.0.23/raw/eos-production-audit.json +22 -0
- package/docs/reports/unified-9.0.23/raw/idle-pwa-node22.log +75 -0
- package/docs/reports/unified-9.0.23/raw/idle-pwa-node24.log +22 -0
- package/docs/reports/unified-9.0.23/raw/lint-final.log +5 -0
- package/docs/reports/unified-9.0.23/raw/node22-tests-final.log +14612 -0
- package/docs/reports/unified-9.0.23/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.23/raw/node24-tests-final.log +2443 -0
- package/docs/reports/unified-9.0.23/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.23/raw/ocpp-auto-discovery.log +21 -0
- package/docs/reports/unified-9.0.23/raw/ocpp-discovery-browser.json +55 -0
- package/docs/reports/unified-9.0.23/raw/ocpp-discovery-lifecycle-regression.log +48 -0
- package/docs/reports/unified-9.0.23/raw/ocpp-production-audit.json +69 -0
- package/docs/reports/unified-9.0.23/raw/typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/discovery-review.tap +21 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/lint.log +0 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/node22.tap +118 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/node24.tap +112 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/root-typecheck.log +0 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/typecheck.log +0 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/unified-listen-build-node24.tap +196 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/unified-listen-node22.tap +200 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/web-lint.log +0 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/web-pipeline-node22.tap +92 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/web-pipeline-node24.tap +90 -0
- package/docs/reports/unified-9.0.23/ui-process-contract-review.md +30 -0
- package/docs/reports/unified-9.0.23/ui-process-final-review-node22.tap +50 -0
- package/docs/reports/unified-9.0.23/ui-process-final-review-node24.tap +14 -0
- package/docs/reports/unified-9.0.23/ui-process-followup-hashes.json +13 -0
- package/docs/reports/unified-9.0.23/ui-process-operational-review-node22.tap +30 -0
- package/docs/reports/unified-9.0.23/ui-process-operational-review-node24.tap +11 -0
- package/docs/reports/unified-9.0.23/ui-process-review-node22.tap +48 -0
- package/docs/reports/unified-9.0.23/ui-process-review-node24.tap +46 -0
- package/docs/reports/unified-9.0.24/BACKUP_INTEROP_PRUEFBERICHT.md +48 -0
- package/docs/reports/unified-9.0.24/KIOSK_FRONTEND_BROWSERPRUEFUNG.md +49 -0
- package/docs/reports/unified-9.0.24/KIOSK_UNABHAENGIGER_REVIEW.md +21 -0
- package/docs/reports/unified-9.0.24/OCPP_HOST_MIGRATION.md +41 -0
- package/docs/reports/unified-9.0.24/OCPP_NAMESPACE_REGELPFAD.md +55 -0
- package/docs/reports/unified-9.0.24/OCPP_UNABHAENGIGER_REVIEW.md +37 -0
- package/docs/reports/unified-9.0.24/OCPP_VERWALTUNG.md +33 -0
- package/docs/reports/unified-9.0.24/PRUEFBERICHT.md +54 -0
- package/docs/reports/unified-9.0.24/PUBLISH_OVERLAY_9_0_21.md +23 -0
- package/docs/reports/unified-9.0.24/raw/INDEX.json +43 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/ems-independence-node24.tap +9 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/final-node22.tap +175 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/final-node24.tap +35 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/focused-node22.tap +132 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/focused-node24.tap +27 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/kiosk-review-node24.tap +13 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/kiosk-update-snapshot-node24.tap +22 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/lint-source.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/lint-tests.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/ocpp-backup-node24.tap +10 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/own-source-hashes.json +12 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/types.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/update-snapshot-node24.tap +20 -0
- package/docs/reports/unified-9.0.24/raw/build.log +200 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser-node22.json +69 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser-node22.stderr.txt +3 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser.json +69 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser.stderr.txt +2 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-http-node22.txt +253 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-http-node24.txt +52 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-lint.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-types.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-lease-registration-before.txt +28 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-namespace-independent-node22.txt +302 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-namespace-independent-node24.txt +55 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-native-generic-before.txt +25 -0
- package/docs/reports/unified-9.0.24/raw/current/runtime-health-browser.json +49 -0
- package/docs/reports/unified-9.0.24/raw/current/runtime-health-browser.stderr.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/current/runtime-health-types.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/eos-production-audit.json +77 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-auth-profiles-node22.log +16 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-auth-profiles-node24.log +14 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-browser-node22.json +57 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-browser-node24.json +57 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-idle-node22.log +215 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-idle-node24.log +42 -0
- package/docs/reports/unified-9.0.24/raw/lint.log +45 -0
- package/docs/reports/unified-9.0.24/raw/node22-tests-final.log +15517 -0
- package/docs/reports/unified-9.0.24/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.24/raw/node24-tests-final.log +2595 -0
- package/docs/reports/unified-9.0.24/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-host-node22.tap +105 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-host-node24.tap +24 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-host-regression-node22.tap +818 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-host-regression-node24.tap +140 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-hosted-mapping-browser.log +2 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-legacy-mapping-browser.log +2 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-namespace-control.log +49 -0
- package/docs/reports/unified-9.0.24/raw/publish-overlay-node22.tap +278 -0
- package/docs/reports/unified-9.0.24/raw/publish-overlay-node24.tap +52 -0
- package/docs/reports/unified-9.0.24/raw/publish-overlay-provenance-922-923.json +32 -0
- package/docs/reports/unified-9.0.24/raw/publish-overlay-provenance.json +19 -0
- package/docs/reports/unified-9.0.24/raw/typecheck.log +5 -0
- package/docs/reports/unified-9.0.25/MIGRATION_INDEPENDENT_REVIEW.md +74 -0
- package/docs/reports/unified-9.0.25/OCPP_STARTSPERRE_9.0.24.md +60 -0
- package/docs/reports/unified-9.0.25/PRUEFBERICHT.md +78 -0
- package/docs/reports/unified-9.0.25/RUNTIME_CONTROLS_BROWSERPRUEFUNG.md +81 -0
- package/docs/reports/unified-9.0.25/RUNTIME_CONTROL_BACKEND.md +58 -0
- package/docs/reports/unified-9.0.25/RUNTIME_CONTROL_INDEPENDENT_REVIEW.md +66 -0
- package/docs/reports/unified-9.0.25/RUNTIME_LOGIN_RECOVERY.md +32 -0
- package/docs/reports/unified-9.0.25/TARIFF_UPDATE_PERSISTENCE.md +50 -0
- package/docs/reports/unified-9.0.25/UI_CONFIG_COMMIT_ACK.md +51 -0
- package/docs/reports/unified-9.0.25/raw/BUILD_CHECKS.json +49 -0
- package/docs/reports/unified-9.0.25/raw/INDEX.json +43 -0
- package/docs/reports/unified-9.0.25/raw/SBOM_GENERATION.json +42 -0
- package/docs/reports/unified-9.0.25/raw/build-backend.log +5 -0
- package/docs/reports/unified-9.0.25/raw/build-frontend.log +152 -0
- package/docs/reports/unified-9.0.25/raw/build-installer.log +26 -0
- package/docs/reports/unified-9.0.25/raw/build-modules.log +5 -0
- package/docs/reports/unified-9.0.25/raw/build-ui-runtime.log +7 -0
- package/docs/reports/unified-9.0.25/raw/eos-production-audit.json +77 -0
- package/docs/reports/unified-9.0.25/raw/eos-production-audit.stderr +1 -0
- package/docs/reports/unified-9.0.25/raw/frontend-sbom.stderr +1 -0
- package/docs/reports/unified-9.0.25/raw/installer-sbom.stderr +1 -0
- package/docs/reports/unified-9.0.25/raw/lint.log +45 -0
- package/docs/reports/unified-9.0.25/raw/node22-tests-final.log +15879 -0
- package/docs/reports/unified-9.0.25/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.25/raw/node24-tests-final.log +2653 -0
- package/docs/reports/unified-9.0.25/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.25/raw/runtime-control-backend/runtime-control-backend-node22-final.tap +236 -0
- package/docs/reports/unified-9.0.25/raw/runtime-control-backend/runtime-control-backend-node24-final.tap +44 -0
- package/docs/reports/unified-9.0.25/raw/runtime-control-backend/source-sha256.json +19 -0
- package/docs/reports/unified-9.0.25/raw/runtime-controls/controls-node22.json +70 -0
- package/docs/reports/unified-9.0.25/raw/runtime-controls/controls-node24.json +70 -0
- package/docs/reports/unified-9.0.25/raw/runtime-controls/health-node22.json +49 -0
- package/docs/reports/unified-9.0.25/raw/runtime-controls/health-node24.json +49 -0
- package/docs/reports/unified-9.0.25/raw/runtime-controls/login-contract-node22.log +15 -0
- package/docs/reports/unified-9.0.25/raw/runtime-controls/login-contract-node24.log +15 -0
- package/docs/reports/unified-9.0.25/raw/runtime-controls/login-node22.json +32 -0
- package/docs/reports/unified-9.0.25/raw/runtime-controls/login-node24.json +32 -0
- package/docs/reports/unified-9.0.25/raw/runtime-login-recovery/node22.log +28 -0
- package/docs/reports/unified-9.0.25/raw/runtime-login-recovery/node24.log +10 -0
- package/docs/reports/unified-9.0.25/raw/runtime-login-recovery/route-regression-node24.log +28 -0
- package/docs/reports/unified-9.0.25/raw/runtime-login-recovery/source-sha256.json +6 -0
- package/docs/reports/unified-9.0.25/raw/runtime-processes/README.md +41 -0
- package/docs/reports/unified-9.0.25/raw/runtime-processes/runtime-control-processes-node22.tap +44 -0
- package/docs/reports/unified-9.0.25/raw/runtime-processes/runtime-control-processes-node24.tap +13 -0
- package/docs/reports/unified-9.0.25/raw/runtime-review/runtime-controls-and-ui-review-node22.tap +232 -0
- package/docs/reports/unified-9.0.25/raw/runtime-review/runtime-controls-and-ui-review-node24.tap +43 -0
- package/docs/reports/unified-9.0.25/raw/runtime-review/runtime-controls-review-node22.tap +68 -0
- package/docs/reports/unified-9.0.25/raw/runtime-review/runtime-controls-review-node24.tap +17 -0
- package/docs/reports/unified-9.0.25/raw/sbom-lock.log +1 -0
- package/docs/reports/unified-9.0.25/raw/sbom-lock.stderr +1 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/ack-node22.tap +44 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/ack-node24.tap +40 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/ack-review-node22.tap +44 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/ack-review-node24.tap +13 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/commit-ack-sha256.txt +4 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/config-ack-result.json +19 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/generate-921-fixture.cjs +36 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/node22.tap +68 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/node24.tap +64 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/reproduce-config-ack.cjs +55 -0
- package/docs/reports/unified-9.0.25/raw/tariff-update/reviewed-sha256.txt +4 -0
- package/docs/reports/unified-9.0.25/raw/typecheck.log +5 -0
- package/docs/unified/EMS_BEDIEN_DATENPUNKTE_9_0_22.md +51 -0
- package/docs/unified/HISTORY_UI_9_0_22.md +75 -0
- package/docs/unified/POSTGRESQL_9_0_22.md +89 -0
- package/io-package.json +20 -22
- package/modules/backup/README.md +10 -0
- package/modules/backup/RECOVERY-9.0.22.md +59 -0
- package/modules/backup/admin/index.html +2 -1
- package/modules/backup/admin/index.js +17 -1
- package/modules/backup/build/config.js +2 -0
- package/modules/backup/build/coverage.js +64 -0
- package/modules/backup/build/creators.js +22 -17
- package/modules/backup/build/databaseTargets.js +42 -0
- package/modules/backup/build/index.js +47 -4
- package/modules/backup/build/influxIntegrity.js +159 -0
- package/modules/backup/build/postgresHistory.js +91 -0
- package/modules/backup/build/preflight.js +3 -8
- package/modules/backup/build/publicTrust.js +46 -0
- package/modules/backup/build/restore-cli.js +72 -1
- package/modules/backup/build/storageRetention.js +26 -0
- package/modules/backup/build/worker.js +18 -1
- package/modules/backup/src/config.ts +2 -0
- package/modules/backup/src/coverage.ts +50 -0
- package/modules/backup/src/creators.ts +20 -17
- package/modules/backup/src/databaseTargets.ts +45 -0
- package/modules/backup/src/index.ts +37 -4
- package/modules/backup/src/influxIntegrity.ts +125 -0
- package/modules/backup/src/postgresHistory.ts +66 -0
- package/modules/backup/src/preflight.ts +3 -10
- package/modules/backup/src/publicTrust.ts +34 -0
- package/modules/backup/src/restore-cli.ts +55 -4
- package/modules/backup/src/storageRetention.ts +20 -0
- package/modules/backup/src/types.ts +5 -0
- package/modules/backup/src/worker.ts +18 -2
- package/modules/backup/test/completeness.test.cjs +193 -0
- package/modules/backup/test/hosted.test.cjs +43 -3
- package/modules/backup/test/influx-real.test.cjs +75 -0
- package/modules/backup/test/lifecycle.test.cjs +7 -5
- package/modules/backup/test/ocpp-coverage.test.cjs +152 -0
- package/modules/devices/admin/index.html +1 -1
- package/modules/eebus/admin/index.html +1 -1
- package/modules/ocpp/LICENSE +21 -0
- package/modules/ocpp/README.md +61 -0
- package/modules/ocpp/admin/config-fields.json +353 -0
- package/modules/ocpp/admin/index.html +52 -0
- package/modules/ocpp/admin/index.js +228 -0
- package/modules/ocpp/admin/style.css +27 -0
- package/modules/ocpp/build/index.js +401 -0
- package/modules/ocpp/build/operationGuard.js +26 -0
- package/modules/ocpp/build/server.js +155 -0
- package/modules/ocpp/eslint.config.mjs +13 -0
- package/modules/ocpp/index.js +3 -0
- package/modules/ocpp/native-defaults.json +44 -0
- package/modules/ocpp/ocpp/common.js +646 -0
- package/modules/ocpp/ocpp/compact.js +332 -0
- package/modules/ocpp/ocpp/configuration.js +364 -0
- package/modules/ocpp/ocpp/eos-contract.js +149 -0
- package/modules/ocpp/ocpp/freshness.d.ts +10 -0
- package/modules/ocpp/ocpp/freshness.js +272 -0
- package/modules/ocpp/ocpp/schemas/NOTICE.md +17 -0
- package/modules/ocpp/ocpp/schemas/ocpp2_0_1_official.json +1 -0
- package/modules/ocpp/ocpp/schemas/ocpp2_1_official.json +1 -0
- package/modules/ocpp/ocpp/server.js +3 -0
- package/modules/ocpp/ocpp/v16.js +213 -0
- package/modules/ocpp/ocpp/v201.js +4 -0
- package/modules/ocpp/ocpp/v21.js +4 -0
- package/modules/ocpp/ocpp/v2base.js +255 -0
- package/modules/ocpp/package.json +11 -0
- package/modules/ocpp/provenance.json +33 -0
- package/modules/ocpp/runtime.d.ts +16 -0
- package/modules/ocpp/runtime.js +3391 -0
- package/modules/ocpp/src/index.ts +463 -0
- package/modules/ocpp/src/operationGuard.ts +29 -0
- package/modules/ocpp/src/server.ts +193 -0
- package/modules/ocpp/test/configuration-runtime.test.js +786 -0
- package/modules/ocpp/test/core.test.js +772 -0
- package/modules/ocpp/test/eos-contract.test.js +67 -0
- package/modules/ocpp/test/hosted.test.cjs +165 -0
- package/modules/ocpp/tsconfig.json +7 -0
- package/modules/ocpp/validation/manifest.json +36 -0
- package/modules/ocpp/validation/node22-tests.log +525 -0
- package/modules/ocpp/validation/node24-tests.log +92 -0
- package/package.json +29 -11
- package/public/eos-migration/index.html +1 -1
- package/public/eos-migration/index.js +2 -2
- package/public/eos-runtime/index.html +36 -0
- package/public/eos-runtime/index.js +249 -0
- package/public/eos-runtime/style.css +27 -0
- package/release-manifests/unified/build-environment.cdx.json +767 -131
- package/release-manifests/unified/files.json +700 -214
- 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 +292 -6
- package/release-manifests/unified/runtime.cdx.json +871 -143
- package/release-manifests/unified/validation.json +15 -15
- package/reports/unified/ocpp-pure-pv-9.0.22/PRUEFVERMERK.md +35 -0
- package/reports/unified/ocpp-pure-pv-9.0.22/raw/auto-pv-phases.log +1 -0
- package/reports/unified/ocpp-pure-pv-9.0.22/raw/control-tests.log +11 -0
- package/reports/unified/ocpp-pure-pv-9.0.22/raw/ocpp-stability.log +1 -0
- package/reports/unified/ocpp-pure-pv-9.0.22/raw/rc60.log +1 -0
- package/reports/unified/tariff-energy-flow-9.0.22/PRUEFVERMERK.md +44 -0
- package/reports/unified/tariff-energy-flow-9.0.22/raw/focused-tests.log +37 -0
- package/reports/unified/tariff-energy-flow-9.0.22/raw/grid-charge-policy.log +1 -0
- package/reports/unified/tariff-energy-flow-9.0.22/raw/status-truth.log +1 -0
- package/tools/eos-release-check.cjs +5 -0
- package/tools/eos-release-manifest.cjs +3 -3
- package/tools/eos-sbom-vendored.cjs +2 -1
- package/tools/system/eos-postgresql-setup.cjs +409 -0
- package/tsconfig.eos-history-backup-scope.json +9 -0
- package/tsconfig.eos-postgres-system.json +15 -0
- package/ui/admin/react/assets/index-wHWXfD_g.js +13 -0
- package/ui/admin/react/index.html +1 -1
- package/ui/ems/consumers/evcs.js +11 -7
- package/ui/ems/datapoints.js +14 -5
- package/ui/ems/engine.js +4 -1
- package/ui/ems/modules/charging-management.js +193 -63
- package/ui/ems/modules/core-limits.js +15 -20
- package/ui/ems/modules/storage-control.js +8 -6
- package/ui/ems/modules/tarif-vis.js +7 -2
- package/ui/ems/modules/tariff-status.js +19 -1
- package/ui/eslint.postgres-history.config.mjs +9 -0
- package/ui/io-package.json +5 -1
- package/ui/lib/ems-control-values.js +64 -0
- package/ui/lib/flow-measurement.js +72 -0
- package/ui/lib/hosted-adapter.js +12 -1
- package/ui/lib/influx-history-runtime.js +66 -24
- package/ui/lib/installer-lifecycle.js +4 -2
- package/ui/lib/ocpp-auto-discovery.js +397 -0
- package/ui/lib/ocpp-limit-feedback.js +166 -0
- package/ui/lib/partner-runtime.js +35 -2
- package/ui/lib/partner-websocket.js +4 -1
- package/ui/lib/postgres-history-config.js +57 -0
- package/ui/lib/postgres-history.js +344 -0
- package/ui/lib/runtime-proxy-html.js +34 -1
- package/ui/lib/smarthome-device-controls.js +4 -1
- package/ui/lib/ui-access-policy.js +39 -6
- package/ui/main.js +392 -222
- package/ui/package.json +1 -1
- package/ui/tsconfig.postgres-history.json +4 -0
- package/ui/www/app.js +106 -152
- package/ui/www/auth.js +36 -10
- package/ui/www/charging-diagnostics-appcenter.js +1 -0
- package/ui/www/customer-tariff.js +1 -0
- package/ui/www/dashboard-lp-status.js +1 -0
- package/ui/www/dc-station-display.js +1 -0
- package/ui/www/ems-apps.js +48 -8
- package/ui/www/energy-origin-appcenter.js +1 -0
- package/ui/www/energy-origin-ledger-view.js +1 -0
- package/ui/www/eos-kiosk-settings.js +174 -0
- package/ui/www/eos-session-idle.js +40 -6
- package/ui/www/eos-updates.js +1 -0
- package/ui/www/index.html +2 -1
- package/ui/www/license.js +1 -0
- package/ui/www/licenses/smarthome-markdown-components.json +157 -157
- package/ui/www/live-display.js +4 -2
- package/ui/www/login.js +25 -9
- package/ui/www/manifest.webmanifest +3 -3
- package/ui/www/netoperator-appcenter.js +1 -0
- package/ui/www/netoperator.js +1 -0
- package/ui/www/operating-strategies-appcenter.js +1 -0
- package/ui/www/operating-strategies-rule-builder.js +1 -0
- package/ui/www/power-measurements.js +27 -2
- package/ui/www/pwa.js +1 -0
- package/ui/www/runtime-base.js +1 -0
- package/ui/www/settings.html +13 -1
- package/ui/www/smarthome-activation.js +1 -0
- package/ui/www/smarthome-alias-config.js +1 -0
- package/ui/www/smarthome-custom-config.js +1 -0
- package/ui/www/smarthome-custom-views.js +1 -0
- package/ui/www/smarthome-device-categories.js +1 -0
- package/ui/www/smarthome-device-config.js +1 -0
- package/ui/www/smarthome-device-controls.js +1 -0
- package/ui/www/smarthome-feedback.js +1 -0
- package/ui/www/smarthome-layout-editor.js +1 -0
- package/ui/www/smarthome-presentation.js +1 -0
- package/ui/www/smarthome-setup.js +1 -0
- package/ui/www/smarthome-touch.js +1 -0
- package/ui/www/storagefarm-dispatch.js +1 -0
- package/ui/www/storagefarm-summary.js +1 -0
- package/ui/www/tariff-display.js +62 -2
- package/adminWww/remoteEntry-eos-9.0.21.js +0 -12
- package/ui/admin/react/assets/index-BJO3q7oe.js +0 -13
|
@@ -3,10 +3,13 @@
|
|
|
3
3
|
const { join } = require('node:path');
|
|
4
4
|
const { performance } = require('node:perf_hooks');
|
|
5
5
|
const { randomUUID } = require('node:crypto');
|
|
6
|
+
const { isDeepStrictEqual } = require('node:util');
|
|
6
7
|
const { EosModuleConfigStore } = require('./eosModuleConfigStore');
|
|
7
8
|
const { EosDeviceEmsService } = require('./eosDeviceEmsService');
|
|
9
|
+
const { resolveHistoryBackupRequirement } = require('./eosHistoryBackupScope');
|
|
10
|
+
const { EosModuleProcess } = require('./eosModuleProcess');
|
|
8
11
|
const SECRET_MARKER = '__EOS_SECRET_UNCHANGED__';
|
|
9
|
-
const MODULES = Object.freeze({ devices: 'nexowatt-devices', eebus: 'eebus', backup: 'nexowatt-backup' });
|
|
12
|
+
const MODULES = Object.freeze({ devices: 'nexowatt-devices', eebus: 'eebus', backup: 'nexowatt-backup', ocpp: 'ocpp21' });
|
|
10
13
|
const SECRET_KEY = /password|passwd|^pass$|accessjson|expertmount|secret|token|privatekey|pairingpin|apikey|credential|authorization|cookie/i;
|
|
11
14
|
const MAX_CONFIG_BYTES = 512 * 1024;
|
|
12
15
|
const MAX_LEGACY_INSTANCES = 64;
|
|
@@ -121,7 +124,9 @@ class EosModuleHost {
|
|
|
121
124
|
for (const id of Object.keys(MODULES)) {
|
|
122
125
|
this.entries.set(id, { id, module: null, config: { enabled: false }, configLoaded: false, reason: 'DISABLED', lease: 0,
|
|
123
126
|
configurationRevision: randomUUID(),
|
|
124
|
-
generation: 0, blockers: [], loading: false, failed: false, started: false, startup: null, stopEntryPromise: null,
|
|
127
|
+
generation: 0, blockers: [], loading: false, failed: false, started: false, startup: null, stopEntryPromise: null,
|
|
128
|
+
processFailure: '', processHealth: null, processRestarts: 0, restartAt: 0, consecutiveFailures: 0,
|
|
129
|
+
pendingWrites: new Set(), timers: new Set(), subscriptions: new Set(), downloads: new Set() });
|
|
125
130
|
}
|
|
126
131
|
}
|
|
127
132
|
factory(id) {
|
|
@@ -262,9 +267,10 @@ class EosModuleHost {
|
|
|
262
267
|
return false;
|
|
263
268
|
}
|
|
264
269
|
}
|
|
270
|
+
processEnabled(id) { return this.options.processEnabled?.(id) !== false; }
|
|
265
271
|
canOperate(id, generation) {
|
|
266
272
|
const entry = this.entries.get(id);
|
|
267
|
-
return this.running && this.initialized && !this.stopped && !!entry && entry.config.enabled === true && !entry.failed &&
|
|
273
|
+
return this.running && this.initialized && !this.stopped && !!entry && this.processEnabled(id) && entry.config.enabled === true && !entry.failed &&
|
|
268
274
|
entry.generation === generation && entry.lease > performance.now() && this.licensed(id) &&
|
|
269
275
|
this.owner.eosOwnership?.canWrite() === true;
|
|
270
276
|
}
|
|
@@ -304,11 +310,14 @@ class EosModuleHost {
|
|
|
304
310
|
revoke(entry, reason) {
|
|
305
311
|
entry.lease = 0;
|
|
306
312
|
entry.reason = reason;
|
|
313
|
+
entry.module?.revoke?.();
|
|
307
314
|
}
|
|
308
315
|
async stopEntry(entry) {
|
|
309
316
|
if (entry.stopEntryPromise)
|
|
310
317
|
return entry.stopEntryPromise;
|
|
311
318
|
const module = entry.module;
|
|
319
|
+
if (typeof module?.health === 'function')
|
|
320
|
+
entry.processHealth = module.health();
|
|
312
321
|
const startup = entry.startup;
|
|
313
322
|
const commandSubscription = entry.commandSubscriptionPending;
|
|
314
323
|
const wasStarting = startup?.module === module && startup.settled !== true;
|
|
@@ -348,6 +357,8 @@ class EosModuleHost {
|
|
|
348
357
|
else if (module) {
|
|
349
358
|
await module.stop();
|
|
350
359
|
}
|
|
360
|
+
if (typeof module?.health === 'function')
|
|
361
|
+
entry.processHealth = module.health();
|
|
351
362
|
clearResources();
|
|
352
363
|
// Controller API completion is distinct from physical device feedback.
|
|
353
364
|
// Do not restore the old owner while an accepted mutation may still
|
|
@@ -375,18 +386,82 @@ class EosModuleHost {
|
|
|
375
386
|
facade(entry, generation) {
|
|
376
387
|
const owner = this.owner;
|
|
377
388
|
const namespace = this.namespace(entry.id);
|
|
378
|
-
const resolve = id => {
|
|
389
|
+
const resolve = (id, pattern = false) => {
|
|
379
390
|
if (typeof id !== 'string' || id.length > 512)
|
|
380
391
|
throw fail('EOS_MODULE_STATE_ID');
|
|
381
392
|
const local = id.startsWith(`${namespace}.`) ? id.slice(namespace.length + 1) : id;
|
|
382
393
|
const valid = entry.id === 'devices'
|
|
383
394
|
? /^(?:devices(?:\.|$)|modules\.devices(?:\.|$))/.test(local)
|
|
384
395
|
: entry.id === 'backup' ? /^(?:info|backup|history|restore|schedule|oneClick|historyJSON)(?:\.|$)/.test(local)
|
|
385
|
-
: /^
|
|
396
|
+
: entry.id === 'ocpp' ? (pattern ? /^[A-Za-z0-9_.*-]+$/ : /^[A-Za-z0-9_-][A-Za-z0-9_.-]*$/).test(local) &&
|
|
397
|
+
!local.split('.').some(part => !part || ['__proto__', 'prototype', 'constructor'].includes(part))
|
|
398
|
+
: /^(?:devices|info|identity|bridge|discovery|pairing|cls)(?:\.|$)/.test(local);
|
|
386
399
|
if (!valid || [...local].some(character => character.charCodeAt(0) < 32))
|
|
387
400
|
throw fail('EOS_MODULE_STATE_SCOPE');
|
|
388
401
|
return `${namespace}.${local}`;
|
|
389
402
|
};
|
|
403
|
+
const requireOcpp = () => {
|
|
404
|
+
if (entry.id !== 'ocpp')
|
|
405
|
+
throw fail('EOS_MODULE_STATE_SCOPE');
|
|
406
|
+
if (!this.canOperate(entry.id, generation))
|
|
407
|
+
throw fail('EOS_MODULE_INACTIVE');
|
|
408
|
+
};
|
|
409
|
+
const ocppRead = async (operation) => {
|
|
410
|
+
requireOcpp();
|
|
411
|
+
const result = await bounded(operation());
|
|
412
|
+
requireOcpp();
|
|
413
|
+
return result;
|
|
414
|
+
};
|
|
415
|
+
const ocppResult = value => {
|
|
416
|
+
// Keep controller scans below the IPC frame bound; never return a
|
|
417
|
+
// partially truncated inventory that could drive alias deletion.
|
|
418
|
+
if (Buffer.byteLength(JSON.stringify(value ?? null)) > 1024 * 1024)
|
|
419
|
+
throw fail('EOS_MODULE_RESULT_SIZE');
|
|
420
|
+
return value;
|
|
421
|
+
};
|
|
422
|
+
const metadataObject = (full, object) => {
|
|
423
|
+
if (entry.id !== 'ocpp')
|
|
424
|
+
return object;
|
|
425
|
+
requireOcpp();
|
|
426
|
+
const value = assertJson(object);
|
|
427
|
+
if (!isRecord(value) || (value._id !== undefined && value._id !== full) ||
|
|
428
|
+
(value.common?.alias !== undefined))
|
|
429
|
+
throw fail('EOS_MODULE_STATE_SCOPE');
|
|
430
|
+
return value;
|
|
431
|
+
};
|
|
432
|
+
const aliasRoots = namespace.startsWith('ocpp21.')
|
|
433
|
+
? { public: `alias.0.nexowatt.ocpp.${namespace.split('.')[1]}`, technical: `alias.0.${namespace}` }
|
|
434
|
+
: { public: `alias.0.nexowatt.${namespace}`, technical: `alias.0.${namespace}` };
|
|
435
|
+
const aliasObject = (id, object, createOnly) => {
|
|
436
|
+
requireOcpp();
|
|
437
|
+
if (entry.config.createPublicAliases !== true && entry.config.createTechnicalAliases !== true)
|
|
438
|
+
throw fail('EOS_MODULE_ALIAS_SCOPE');
|
|
439
|
+
const roots = [aliasRoots.public, ...(entry.config.createTechnicalAliases === true ? [aliasRoots.technical] : [])];
|
|
440
|
+
if (typeof id !== 'string' || id.length > 512 || !/^[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*$/.test(id))
|
|
441
|
+
throw fail('EOS_MODULE_ALIAS_SCOPE');
|
|
442
|
+
const ancestor = roots.some(root => root === id || root.startsWith(`${id}.`));
|
|
443
|
+
const descendant = roots.some(root => id.startsWith(`${root}.`));
|
|
444
|
+
const value = assertJson(object);
|
|
445
|
+
if ((!ancestor && !descendant) || !isRecord(value) || Object.keys(value).some(key => !['type', 'common', 'native'].includes(key)) ||
|
|
446
|
+
!isRecord(value.native) || Object.keys(value.native).length || !isRecord(value.common))
|
|
447
|
+
throw fail('EOS_MODULE_ALIAS_SCOPE');
|
|
448
|
+
const common = value.common;
|
|
449
|
+
if (value.type === 'channel') {
|
|
450
|
+
if (!createOnly || Object.keys(common).some(key => key !== 'name') || typeof common.name !== 'string' || common.name.length > 512)
|
|
451
|
+
throw fail('EOS_MODULE_ALIAS_SCOPE');
|
|
452
|
+
}
|
|
453
|
+
else if (value.type === 'state') {
|
|
454
|
+
if (!descendant || Object.keys(common).some(key => !['name', 'type', 'role', 'read', 'write', 'alias', 'unit', 'min', 'max', 'def', 'states'].includes(key)) ||
|
|
455
|
+
typeof common.name !== 'string' || common.name.length > 512 || !['boolean', 'number', 'string'].includes(common.type) ||
|
|
456
|
+
typeof common.role !== 'string' || common.role.length > 128 || common.read !== true || typeof common.write !== 'boolean' ||
|
|
457
|
+
!isRecord(common.alias) || Object.keys(common.alias).length !== 1 || typeof common.alias.id !== 'string' ||
|
|
458
|
+
!common.alias.id.startsWith(`${namespace}.`) || resolve(common.alias.id) !== common.alias.id)
|
|
459
|
+
throw fail('EOS_MODULE_ALIAS_SCOPE');
|
|
460
|
+
}
|
|
461
|
+
else
|
|
462
|
+
throw fail('EOS_MODULE_ALIAS_SCOPE');
|
|
463
|
+
return value;
|
|
464
|
+
};
|
|
390
465
|
const timer = (repeat, callback, ms, ...args) => {
|
|
391
466
|
if (this.stopped || entry.generation !== generation || entry.timers.size >= 256 || typeof callback !== 'function' || !Number.isFinite(ms) || ms < (repeat ? 1 : 0)) {
|
|
392
467
|
throw fail('EOS_MODULE_TIMER');
|
|
@@ -417,6 +492,8 @@ class EosModuleHost {
|
|
|
417
492
|
const pending = Promise.resolve().then(() => {
|
|
418
493
|
if (this.stopped || entry.generation !== generation)
|
|
419
494
|
throw fail('EOS_MODULE_STOPPED');
|
|
495
|
+
if (entry.id === 'ocpp')
|
|
496
|
+
requireOcpp();
|
|
420
497
|
return operation();
|
|
421
498
|
});
|
|
422
499
|
entry.pendingWrites.add(pending);
|
|
@@ -439,19 +516,43 @@ class EosModuleHost {
|
|
|
439
516
|
namespace, hostNamespace: owner.namespace,
|
|
440
517
|
eosTargetNamespace: owner.config.eosUiMigration?.preserveNamespace ? owner.config.eosUiMigration.source : owner.namespace,
|
|
441
518
|
instance: /^\w[\w-]*\.\d+$/.test(namespace) ? Number(namespace.split('.').at(-1)) : owner.instance, config: entry.config, log: owner.log,
|
|
442
|
-
getObjectAsync: id => owner.getForeignObjectAsync(resolve(id)),
|
|
443
|
-
getStateAsync: id => owner.getForeignStateAsync(resolve(id)),
|
|
519
|
+
getObjectAsync: id => entry.id === 'ocpp' ? ocppRead(() => owner.getForeignObjectAsync(resolve(id))) : owner.getForeignObjectAsync(resolve(id)),
|
|
520
|
+
getStateAsync: id => entry.id === 'ocpp' ? ocppRead(() => owner.getForeignStateAsync(resolve(id))) : owner.getForeignStateAsync(resolve(id)),
|
|
521
|
+
getStatesAsync: pattern => ocppRead(async () => {
|
|
522
|
+
const full = resolve(pattern, true);
|
|
523
|
+
const values = await owner.getForeignStatesAsync(full);
|
|
524
|
+
if (!isRecord(values) || Object.keys(values).length > 10000 || Object.keys(values).some(id => !id.startsWith(`${namespace}.`) || resolve(id) !== id))
|
|
525
|
+
throw fail('EOS_MODULE_RESULT_SCOPE');
|
|
526
|
+
return ocppResult(values);
|
|
527
|
+
}),
|
|
528
|
+
getObjectViewAsync: (design, type, range) => ocppRead(async () => {
|
|
529
|
+
if (design !== 'system' || type !== 'state' || !isRecord(range) ||
|
|
530
|
+
Object.keys(range).some(key => !['startkey', 'endkey'].includes(key)) ||
|
|
531
|
+
typeof range.startkey !== 'string' || !range.startkey.startsWith(`${namespace}.`) ||
|
|
532
|
+
!range.startkey.endsWith('.configuration.') || range.endkey !== `${range.startkey}\u9999`)
|
|
533
|
+
throw fail('EOS_MODULE_STATE_SCOPE');
|
|
534
|
+
resolve(range.startkey.slice(0, -1));
|
|
535
|
+
const result = await owner.getObjectViewAsync('system', 'state', { ...range, limit: 10001 });
|
|
536
|
+
if (!Array.isArray(result?.rows) || result.rows.length > 10000 || result.rows.some(row => {
|
|
537
|
+
const id = row?.id || row?.value?._id;
|
|
538
|
+
return typeof id !== 'string' || !id.startsWith(range.startkey) || (row.value?._id && row.value._id !== id) || (row.doc?._id && row.doc._id !== id);
|
|
539
|
+
}))
|
|
540
|
+
throw fail('EOS_MODULE_RESULT_SCOPE');
|
|
541
|
+
return ocppResult(result);
|
|
542
|
+
}),
|
|
444
543
|
setObjectNotExistsAsync: (id, object) => {
|
|
445
544
|
if (entry.generation !== generation)
|
|
446
545
|
return Promise.reject(fail('EOS_MODULE_STOPPED'));
|
|
447
546
|
const full = resolve(id);
|
|
448
|
-
|
|
547
|
+
const value = metadataObject(full, object);
|
|
548
|
+
return metadata(() => owner.setForeignObjectNotExistsAsync(full, value));
|
|
449
549
|
},
|
|
450
550
|
extendObjectAsync: (id, object) => {
|
|
451
551
|
if (entry.generation !== generation)
|
|
452
552
|
return Promise.reject(fail('EOS_MODULE_STOPPED'));
|
|
453
553
|
const full = resolve(id);
|
|
454
|
-
|
|
554
|
+
const value = metadataObject(full, object);
|
|
555
|
+
return metadata(() => owner.extendForeignObjectAsync(full, value));
|
|
455
556
|
},
|
|
456
557
|
setStateAsync: (id, value, ack) => {
|
|
457
558
|
if (entry.generation !== generation) {
|
|
@@ -469,8 +570,48 @@ class EosModuleHost {
|
|
|
469
570
|
this.deviceEms?.event(full, true);
|
|
470
571
|
});
|
|
471
572
|
},
|
|
573
|
+
setStateChangedAsync: (id, value, ack) => {
|
|
574
|
+
requireOcpp();
|
|
575
|
+
const full = resolve(id);
|
|
576
|
+
return mutate(() => owner.setForeignStateChangedAsync(full, value, ack));
|
|
577
|
+
},
|
|
578
|
+
delObjectAsync: (id, options) => {
|
|
579
|
+
requireOcpp();
|
|
580
|
+
const full = resolve(id);
|
|
581
|
+
if (options != null && (!isRecord(options) || Object.keys(options).some(key => key !== 'recursive') ||
|
|
582
|
+
(options.recursive !== undefined && typeof options.recursive !== 'boolean')))
|
|
583
|
+
throw fail('EOS_MODULE_STATE_SCOPE');
|
|
584
|
+
return mutate(() => owner.delForeignObjectAsync(full, options));
|
|
585
|
+
},
|
|
586
|
+
setForeignObjectNotExistsAsync: (id, object) => {
|
|
587
|
+
const value = aliasObject(id, object, true);
|
|
588
|
+
return metadata(() => owner.setForeignObjectNotExistsAsync(id, value));
|
|
589
|
+
},
|
|
590
|
+
extendForeignObjectAsync: (id, object) => {
|
|
591
|
+
const value = aliasObject(id, object, false);
|
|
592
|
+
return metadata(() => owner.extendForeignObjectAsync(id, value));
|
|
593
|
+
},
|
|
594
|
+
delForeignObjectAsync: (id, options) => {
|
|
595
|
+
requireOcpp();
|
|
596
|
+
if (entry.config.cleanupLegacyObjects !== true || entry.config.createTechnicalAliases === true ||
|
|
597
|
+
typeof id !== 'string' || !id.startsWith(`${aliasRoots.technical}.`) || id.length > 512 ||
|
|
598
|
+
!/^[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]+)*$/.test(id) ||
|
|
599
|
+
!isRecord(options) || options.recursive !== true || Object.keys(options).length !== 1)
|
|
600
|
+
throw fail('EOS_MODULE_ALIAS_SCOPE');
|
|
601
|
+
return mutate(() => owner.delForeignObjectAsync(id, { recursive: true }));
|
|
602
|
+
},
|
|
472
603
|
subscribeStatesAsync: async (pattern) => {
|
|
473
|
-
|
|
604
|
+
if (entry.id === 'ocpp') {
|
|
605
|
+
requireOcpp();
|
|
606
|
+
if (resolve(pattern, true) !== `${namespace}.*`)
|
|
607
|
+
throw fail('EOS_MODULE_SUBSCRIPTION');
|
|
608
|
+
// The host owns the root command lease before the runtime
|
|
609
|
+
// can open its listener; the child never duplicates it.
|
|
610
|
+
await entry.commandSubscriptionPending;
|
|
611
|
+
requireOcpp();
|
|
612
|
+
return;
|
|
613
|
+
}
|
|
614
|
+
const full = resolve(pattern, true);
|
|
474
615
|
if (entry.generation !== generation || entry.subscriptions.size >= 32)
|
|
475
616
|
throw fail('EOS_MODULE_SUBSCRIPTION');
|
|
476
617
|
await owner.subscribeForeignStatesAsync(full);
|
|
@@ -481,7 +622,12 @@ class EosModuleHost {
|
|
|
481
622
|
entry.subscriptions.add(full);
|
|
482
623
|
},
|
|
483
624
|
unsubscribeStatesAsync: async (pattern) => {
|
|
484
|
-
|
|
625
|
+
if (entry.id === 'ocpp') {
|
|
626
|
+
if (resolve(pattern, true) !== `${namespace}.*`)
|
|
627
|
+
throw fail('EOS_MODULE_SUBSCRIPTION');
|
|
628
|
+
return; // stopEntry drains and releases the exact host lease.
|
|
629
|
+
}
|
|
630
|
+
const full = resolve(pattern, true);
|
|
485
631
|
await owner.unsubscribeForeignStatesAsync(full);
|
|
486
632
|
entry.subscriptions.delete(full);
|
|
487
633
|
},
|
|
@@ -569,9 +715,9 @@ class EosModuleHost {
|
|
|
569
715
|
return;
|
|
570
716
|
this.nextOwnershipCheck = performance.now() + 4000;
|
|
571
717
|
// Lease renewal cannot wait behind another module's initial connection or
|
|
572
|
-
// shutdown. The fixed
|
|
718
|
+
// shutdown. The fixed module inventory remains bounded and fenced.
|
|
573
719
|
this.leasePending = Promise.all([...this.entries.values()].map(async (entry) => {
|
|
574
|
-
if (!entry.config.enabled || entry.failed)
|
|
720
|
+
if (!entry.config.enabled || !this.processEnabled(entry.id) || entry.failed)
|
|
575
721
|
return;
|
|
576
722
|
const generation = entry.generation;
|
|
577
723
|
try {
|
|
@@ -608,7 +754,26 @@ class EosModuleHost {
|
|
|
608
754
|
for (const entry of this.entries.values()) {
|
|
609
755
|
if (!this.running || this.stopped)
|
|
610
756
|
break;
|
|
611
|
-
if (
|
|
757
|
+
if (entry.started && entry.processRunningSince && performance.now() - entry.processRunningSince > 60000)
|
|
758
|
+
entry.consecutiveFailures = 0;
|
|
759
|
+
if (entry.processFailure) {
|
|
760
|
+
const code = entry.processFailure;
|
|
761
|
+
await this.stopEntry(entry);
|
|
762
|
+
entry.processFailure = '';
|
|
763
|
+
if (!entry.stopFailed) {
|
|
764
|
+
entry.failed = false;
|
|
765
|
+
entry.consecutiveFailures++;
|
|
766
|
+
// A crash loop remains isolated and retries at most once
|
|
767
|
+
// per minute after the initial bounded exponential ramp.
|
|
768
|
+
entry.restartAt = performance.now() + Math.min(60000, 1000 * 2 ** Math.min(entry.consecutiveFailures - 1, 6));
|
|
769
|
+
entry.reason = 'PROCESS_BACKOFF';
|
|
770
|
+
entry.processHealth = { ...entry.processHealth, state: 'backoff', lastError: code };
|
|
771
|
+
this.nextOwnershipCheck = 0;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
if (!this.processEnabled(entry.id))
|
|
775
|
+
this.revoke(entry, 'EOS_RUNTIME_DISABLED');
|
|
776
|
+
else if (!entry.config.enabled)
|
|
612
777
|
this.revoke(entry, 'DISABLED');
|
|
613
778
|
else if (!this.licensed(entry.id))
|
|
614
779
|
this.revoke(entry, 'LICENSE_REQUIRED');
|
|
@@ -623,16 +788,21 @@ class EosModuleHost {
|
|
|
623
788
|
}
|
|
624
789
|
if (entry.module || entry.failed)
|
|
625
790
|
continue;
|
|
791
|
+
if (entry.restartAt > performance.now()) {
|
|
792
|
+
entry.reason = 'PROCESS_BACKOFF';
|
|
793
|
+
continue;
|
|
794
|
+
}
|
|
626
795
|
const generation = entry.generation;
|
|
627
796
|
// A completed previous stop belongs to its old startup attempt.
|
|
628
797
|
// New acquisition/factory failures must run their own cleanup.
|
|
629
798
|
entry.stopEntryPromise = null;
|
|
630
799
|
try {
|
|
631
|
-
if (entry.id === 'devices') {
|
|
800
|
+
if (entry.id === 'devices' || entry.id === 'ocpp') {
|
|
632
801
|
const namespace = this.namespace(entry.id);
|
|
633
|
-
if (!/^(?:eos-admin|nexowatt-devices)\.\d+$/.test(namespace)
|
|
802
|
+
if (entry.id === 'devices' ? !/^(?:eos-admin|nexowatt-devices)\.\d+$/.test(namespace)
|
|
803
|
+
: !/^(?:eos-admin\.\d+\.ocpp|ocpp21\.\d+)$/.test(namespace))
|
|
634
804
|
throw fail('EOS_MODULE_STATE_SCOPE');
|
|
635
|
-
const pattern = `${namespace}.devices.*`;
|
|
805
|
+
const pattern = entry.id === 'devices' ? `${namespace}.devices.*` : `${namespace}.*`;
|
|
636
806
|
// Raw control states, legacy aliases and AliasV1 all need
|
|
637
807
|
// delivery independently of browser subscriptions and EMS
|
|
638
808
|
// mappings. Acquire before factory/start can open hardware.
|
|
@@ -658,17 +828,33 @@ class EosModuleHost {
|
|
|
658
828
|
}
|
|
659
829
|
}
|
|
660
830
|
const factory = this.factory(entry.id);
|
|
661
|
-
const
|
|
831
|
+
const moduleOptions = {
|
|
662
832
|
adapter: this.facade(entry, generation), config: entry.config,
|
|
663
833
|
canOperate: () => this.canOperate(entry.id, generation),
|
|
664
834
|
dataDir: join(this.options.dataDir, entry.id),
|
|
665
835
|
...(entry.id === 'backup' ? {
|
|
666
836
|
installationDir: this.options.installationDir, eosDataDir: this.options.eosDataDir,
|
|
837
|
+
getHistoryBackupRequirement: () => bounded(resolveHistoryBackupRequirement(this.owner), 5000),
|
|
667
838
|
preservedUiNamespace: this.owner.config.eosUiMigration?.preserveNamespace === true &&
|
|
668
839
|
/^nexowatt-ui\.\d+$/.test(this.owner.config.eosUiMigration.source || '')
|
|
669
840
|
? this.owner.config.eosUiMigration.source : undefined,
|
|
670
841
|
} : {}),
|
|
671
|
-
}
|
|
842
|
+
};
|
|
843
|
+
const module = this.options.factories?.[entry.id]
|
|
844
|
+
? factory.createHostedModule(moduleOptions)
|
|
845
|
+
: new EosModuleProcess({ id: entry.id, baseDir: this.options.baseDir,
|
|
846
|
+
generation, moduleOptions, canOperate: moduleOptions.canOperate,
|
|
847
|
+
onFailure: code => {
|
|
848
|
+
if (this.stopped || entry.moduleGeneration !== generation || entry.generation !== generation)
|
|
849
|
+
return;
|
|
850
|
+
entry.processFailure = code;
|
|
851
|
+
entry.failed = true;
|
|
852
|
+
this.revoke(entry, code);
|
|
853
|
+
void this.reconcile();
|
|
854
|
+
} });
|
|
855
|
+
if (!this.options.factories?.[entry.id] && entry.restartAt)
|
|
856
|
+
entry.processRestarts++;
|
|
857
|
+
entry.restartAt = 0;
|
|
672
858
|
entry.module = module;
|
|
673
859
|
entry.moduleGeneration = generation;
|
|
674
860
|
entry.started = false;
|
|
@@ -689,6 +875,7 @@ class EosModuleHost {
|
|
|
689
875
|
else {
|
|
690
876
|
entry.started = true;
|
|
691
877
|
entry.reason = 'RUNNING';
|
|
878
|
+
entry.processRunningSince = performance.now();
|
|
692
879
|
if (entry.id === 'devices')
|
|
693
880
|
this.deviceEms?.request('started');
|
|
694
881
|
}
|
|
@@ -700,6 +887,12 @@ class EosModuleHost {
|
|
|
700
887
|
this.revoke(entry, 'START_FAILED_RESTART_REQUIRED');
|
|
701
888
|
entry.failed = true;
|
|
702
889
|
await this.stopEntry(entry);
|
|
890
|
+
// Real process failures can be recovered only after the
|
|
891
|
+
// old PID and accepted parent mutations have been drained.
|
|
892
|
+
// Injected legacy tests retain their original failure policy.
|
|
893
|
+
if (!this.options.factories?.[entry.id] && !entry.stopFailed && !this.stopped) {
|
|
894
|
+
entry.processFailure ||= error?.code || 'EOS_MODULE_PROCESS_START_FAILED';
|
|
895
|
+
}
|
|
703
896
|
this.owner.log.warn(`EOS_MODULE_START_FAILED: ${entry.id}; ${entry.startupError}; HTTPS remains available`);
|
|
704
897
|
}
|
|
705
898
|
}
|
|
@@ -836,10 +1029,58 @@ class EosModuleHost {
|
|
|
836
1029
|
pending: !!entry.module && !entry.started && !entry.startup.settled,
|
|
837
1030
|
error: entry.startupError || '' } };
|
|
838
1031
|
}
|
|
1032
|
+
if (!this.options.factories?.[id]) {
|
|
1033
|
+
const processHealth = entry.module?.health?.() || entry.processHealth || {
|
|
1034
|
+
mode: 'process', state: 'stopped', pid: null, generation: entry.generation, lastError: '', lastHeartbeatAt: 0,
|
|
1035
|
+
};
|
|
1036
|
+
details = { ...details, process: { ...processHealth, restarts: entry.processRestarts,
|
|
1037
|
+
nextRestartAt: entry.restartAt ? Date.now() + Math.max(0, entry.restartAt - performance.now()) : 0 } };
|
|
1038
|
+
}
|
|
839
1039
|
return { id, enabled: entry.config.enabled === true, active: !!entry.module && entry.started === true && entry.moduleGeneration === entry.generation && this.canOperate(id, entry.generation),
|
|
840
|
-
reason: entry.reason, blockers: entry.blockers, details: redact(assertJson(details)),
|
|
1040
|
+
reason: !this.processEnabled(id) ? 'EOS_RUNTIME_DISABLED' : entry.reason, blockers: entry.blockers, details: redact(assertJson(details)),
|
|
841
1041
|
namespace: id === 'devices' ? `${this.namespace(id)}.devices` : this.namespace(id) };
|
|
842
1042
|
}
|
|
1043
|
+
/** Process controls do not replace module configuration or migration authority. */
|
|
1044
|
+
async controlProcess(id, action) {
|
|
1045
|
+
const entry = this.entries.get(id);
|
|
1046
|
+
if (!entry)
|
|
1047
|
+
throw fail('EOS_MODULE_UNKNOWN');
|
|
1048
|
+
if (this.stopped)
|
|
1049
|
+
throw fail('EOS_MODULE_STOPPED');
|
|
1050
|
+
if (!['stop', 'start'].includes(action))
|
|
1051
|
+
throw fail('EOS_RUNTIME_ACTION_INVALID');
|
|
1052
|
+
if (action === 'stop') {
|
|
1053
|
+
this.revoke(entry, 'EOS_RUNTIME_DISABLED');
|
|
1054
|
+
await this.stopEntry(entry);
|
|
1055
|
+
if (entry.stopFailed)
|
|
1056
|
+
throw fail('EOS_RUNTIME_STOP_UNCONFIRMED');
|
|
1057
|
+
this.deviceEms?.request('configuration');
|
|
1058
|
+
return;
|
|
1059
|
+
}
|
|
1060
|
+
if (this.owner.eosMigration?.allowsStartup?.() === false)
|
|
1061
|
+
throw fail('EOS_RUNTIME_MIGRATION_BLOCKED');
|
|
1062
|
+
if (!this.processEnabled(id))
|
|
1063
|
+
throw fail('EOS_RUNTIME_DISABLED');
|
|
1064
|
+
if (this.mutation || this.configurationSavePromise)
|
|
1065
|
+
throw fail('EOS_MODULE_BUSY');
|
|
1066
|
+
if (!this.initialized)
|
|
1067
|
+
await this.start();
|
|
1068
|
+
if (this.pending)
|
|
1069
|
+
await this.pending;
|
|
1070
|
+
if (entry.stopFailed)
|
|
1071
|
+
throw fail('EOS_RUNTIME_STOP_UNCONFIRMED');
|
|
1072
|
+
if (!entry.config.enabled)
|
|
1073
|
+
throw fail('EOS_RUNTIME_MODULE_DISABLED');
|
|
1074
|
+
entry.failed = false;
|
|
1075
|
+
entry.processFailure = '';
|
|
1076
|
+
entry.restartAt = 0;
|
|
1077
|
+
entry.consecutiveFailures = 0;
|
|
1078
|
+
this.nextOwnershipCheck = 0;
|
|
1079
|
+
await this.reconcile();
|
|
1080
|
+
if (!entry.started || !this.canOperate(id, entry.generation))
|
|
1081
|
+
throw fail('EOS_RUNTIME_START_FAILED');
|
|
1082
|
+
this.deviceEms?.request('configuration');
|
|
1083
|
+
}
|
|
843
1084
|
async view(id) {
|
|
844
1085
|
await this.loadForEditing(id);
|
|
845
1086
|
const entry = this.entries.get(id);
|
|
@@ -986,11 +1227,17 @@ class EosModuleHost {
|
|
|
986
1227
|
const object = await bounded(this.owner.getForeignObjectAsync(`system.adapter.${instance}`));
|
|
987
1228
|
if (!object?.native || object.common?.enabled !== false)
|
|
988
1229
|
throw fail('EOS_MODULE_IMPORT_UNAVAILABLE');
|
|
1230
|
+
if (id === 'ocpp' && (object._id !== `system.adapter.${instance}` || object.type !== 'instance' ||
|
|
1231
|
+
!['0.4.2', '0.4.3'].includes(object.common.version)))
|
|
1232
|
+
throw fail('EOS_MODULE_IMPORT_VERSION');
|
|
989
1233
|
let config = id === 'eebus' ? assertJson(object.native) : require('./eosLegacyMigration').decryptNative(this.owner, object);
|
|
990
|
-
// Existing
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1234
|
+
// Existing EEBUS/backup identity import keeps its established policy.
|
|
1235
|
+
// OCPP preflight validates its complete native schema explicitly.
|
|
1236
|
+
if (id !== 'ocpp') {
|
|
1237
|
+
delete config.privateKey;
|
|
1238
|
+
delete config.certificate;
|
|
1239
|
+
delete config.cert;
|
|
1240
|
+
}
|
|
994
1241
|
if (id === 'eebus') {
|
|
995
1242
|
// Legacy EEBus encryptedNative values are ciphertext in the object DB.
|
|
996
1243
|
// Pairing identity/PIN require deliberate fresh pairing after import.
|
|
@@ -1008,12 +1255,29 @@ class EosModuleHost {
|
|
|
1008
1255
|
const report = { source: instance, importedAt: new Date().toISOString(),
|
|
1009
1256
|
oldPrefix: `${instance}.`, newPrefix: id === 'devices' ? `${this.owner.namespace}.` : `${this.owner.namespace}.${id}.`,
|
|
1010
1257
|
statesCopied: false, mappingsRewritten: false, identityImported: false,
|
|
1011
|
-
omittedFields: migration?.omittedFields || [], requiresPairing: id === 'eebus'
|
|
1258
|
+
omittedFields: migration?.omittedFields || [], requiresPairing: id === 'eebus',
|
|
1259
|
+
...(id === 'ocpp' ? { sourceVersion: object.common.version, preserveNamespace: true, newPrefix: `${instance}.` } : {}) };
|
|
1012
1260
|
// Recheck ownership after asynchronous conversion; imports never start a source or target.
|
|
1013
1261
|
if (this.stopped)
|
|
1014
1262
|
throw fail('EOS_MODULE_BUSY');
|
|
1015
1263
|
if (!(await bounded(this.inspectOwnership(entry))))
|
|
1016
1264
|
throw fail('EOS_MODULE_LEGACY_RUNNING');
|
|
1265
|
+
if (id === 'ocpp') {
|
|
1266
|
+
// Bind preserved IDs to the exact stopped source, including its
|
|
1267
|
+
// native settings. A completed inventory is not a compare/swap.
|
|
1268
|
+
const current = await bounded(this.owner.getForeignObjectAsync(`system.adapter.${instance}`));
|
|
1269
|
+
const [alive, hostAlive] = await bounded(Promise.all([
|
|
1270
|
+
this.owner.getForeignStateAsync(`system.adapter.${instance}.alive`),
|
|
1271
|
+
this.owner.getForeignStateAsync(`system.host.${current?.common?.host}.alive`),
|
|
1272
|
+
]));
|
|
1273
|
+
const age = Date.now() - hostAlive?.ts;
|
|
1274
|
+
if (current?._id !== object._id || current?.common?.enabled !== false || current.common.host !== object.common.host ||
|
|
1275
|
+
current.common.version !== object.common.version || !isDeepStrictEqual(current.native, object.native) ||
|
|
1276
|
+
!isDeepStrictEqual(current.encryptedNative, object.encryptedNative) || !isDeepStrictEqual(current.protectedNative, object.protectedNative) ||
|
|
1277
|
+
!Number.isSafeInteger(current.ts) || alive?.val !== false || alive.ack !== true || !(alive.ts >= current.ts) ||
|
|
1278
|
+
hostAlive?.val !== true || hostAlive.ack !== true || !Number.isFinite(age) || age < -5000 || age > 60000)
|
|
1279
|
+
throw fail('EOS_MODULE_IMPORT_SOURCE_CHANGED');
|
|
1280
|
+
}
|
|
1017
1281
|
const currentEligibility = this.manualImportStatus(id);
|
|
1018
1282
|
if (!currentEligibility.allowed)
|
|
1019
1283
|
throw fail(currentEligibility.reason);
|