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
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
/* Copyright (c) 2026 NexoWatt. Confidential and proprietary. */
|
|
2
|
+
'use strict';
|
|
3
|
+
const { join, isAbsolute } = require('node:path');
|
|
4
|
+
const { performance } = require('node:perf_hooks');
|
|
5
|
+
const { channel, ADAPTER_METHODS, MODULE_METHODS, error, isRecord, sanitizeLog, validate } = require('./eosModuleProcessProtocol');
|
|
6
|
+
/** @typedef {import('./eosModuleProcessTypes').RecordValue} RecordValue */
|
|
7
|
+
/** @typedef {import('./eosModuleProcessTypes').Call} Call */
|
|
8
|
+
/** @type {import('./eosModuleProcessTypes').Channel|undefined} */
|
|
9
|
+
let rpc;
|
|
10
|
+
/** @type {import('./eosModuleProcessTypes').ModuleRuntime|undefined} */
|
|
11
|
+
let runtime;
|
|
12
|
+
let initialized = false;
|
|
13
|
+
let stopping = false;
|
|
14
|
+
let leaseUntil = 0;
|
|
15
|
+
let authorityGeneration = 0;
|
|
16
|
+
let authorityFailureReported = false;
|
|
17
|
+
/** @type {NodeJS.Timeout|undefined} */ let heartbeat;
|
|
18
|
+
let leaseSequence = 0;
|
|
19
|
+
/** @type {Set<NodeJS.Timeout>} */ const timers = new Set();
|
|
20
|
+
/** @type {Map<string, import('./eosModuleProcessTypes').WorkerDownload>} */ const downloads = new Map();
|
|
21
|
+
function invalidateLease() {
|
|
22
|
+
if (leaseUntil > 0)
|
|
23
|
+
authorityGeneration++;
|
|
24
|
+
leaseUntil = 0;
|
|
25
|
+
}
|
|
26
|
+
const canOperate = () => {
|
|
27
|
+
if (leaseUntil > 0 && performance.now() >= leaseUntil)
|
|
28
|
+
invalidateLease();
|
|
29
|
+
return !stopping && process.connected && leaseUntil > 0;
|
|
30
|
+
};
|
|
31
|
+
function getRpc() { if (!rpc)
|
|
32
|
+
throw error('EOS_MODULE_PROCESS_INIT'); return rpc; }
|
|
33
|
+
/** @param {RecordValue} message */
|
|
34
|
+
function updateLease(message) {
|
|
35
|
+
if (typeof message.sequence !== 'number' || !Number.isSafeInteger(message.sequence) || message.sequence <= leaseSequence)
|
|
36
|
+
return;
|
|
37
|
+
leaseSequence = message.sequence;
|
|
38
|
+
// Parent and child share the host clock; an IPC message queued while the
|
|
39
|
+
// child was blocked must not create a fresh authorization on resumption.
|
|
40
|
+
const remaining = typeof message.expiresAt === 'number' && Number.isFinite(message.expiresAt) ? Math.min(1000, message.expiresAt - Date.now()) : 0;
|
|
41
|
+
// A later positive message cannot revive an operation admitted before a
|
|
42
|
+
// revocation or a gap in the lease, even if no timer ran during that gap.
|
|
43
|
+
if (leaseUntil > 0 && performance.now() >= leaseUntil)
|
|
44
|
+
invalidateLease();
|
|
45
|
+
if (message.allowed === true && !stopping && remaining > 0)
|
|
46
|
+
leaseUntil = performance.now() + remaining;
|
|
47
|
+
else
|
|
48
|
+
invalidateLease();
|
|
49
|
+
}
|
|
50
|
+
async function shutdown() {
|
|
51
|
+
if (stopping)
|
|
52
|
+
return;
|
|
53
|
+
stopping = true;
|
|
54
|
+
invalidateLease();
|
|
55
|
+
clearInterval(heartbeat);
|
|
56
|
+
for (const timer of timers) {
|
|
57
|
+
clearTimeout(timer);
|
|
58
|
+
clearInterval(timer);
|
|
59
|
+
}
|
|
60
|
+
timers.clear();
|
|
61
|
+
for (const download of downloads.values()) {
|
|
62
|
+
download.cancelled = true;
|
|
63
|
+
download.stream?.destroy();
|
|
64
|
+
}
|
|
65
|
+
downloads.clear();
|
|
66
|
+
const forced = setTimeout(() => process.exit(1), 1500);
|
|
67
|
+
try {
|
|
68
|
+
await runtime?.stop();
|
|
69
|
+
}
|
|
70
|
+
finally {
|
|
71
|
+
clearTimeout(forced);
|
|
72
|
+
process.exit(0);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
/** @param {boolean} repeat @param {Call} callback @param {number} ms @param {...unknown} args */
|
|
76
|
+
function localTimer(repeat, callback, ms, ...args) {
|
|
77
|
+
if (stopping || timers.size >= 256 || typeof callback !== 'function' || !Number.isFinite(ms) || ms < (repeat ? 1 : 0))
|
|
78
|
+
throw error('EOS_MODULE_TIMER');
|
|
79
|
+
let pending = false;
|
|
80
|
+
const run = () => {
|
|
81
|
+
if (!repeat)
|
|
82
|
+
timers.delete(timer);
|
|
83
|
+
if (!canOperate() || pending)
|
|
84
|
+
return;
|
|
85
|
+
pending = true;
|
|
86
|
+
Promise.resolve().then(() => callback(...args)).catch(() => {
|
|
87
|
+
invalidateLease();
|
|
88
|
+
try {
|
|
89
|
+
getRpc().event('failure', { code: 'EOS_MODULE_CALLBACK_FAILED' });
|
|
90
|
+
}
|
|
91
|
+
catch { /* parent will time out */ }
|
|
92
|
+
}).finally(() => { pending = false; });
|
|
93
|
+
};
|
|
94
|
+
const timer = repeat ? setInterval(run, ms) : setTimeout(run, ms);
|
|
95
|
+
timer.unref?.();
|
|
96
|
+
timers.add(timer);
|
|
97
|
+
return timer;
|
|
98
|
+
}
|
|
99
|
+
/** @param {unknown} received */
|
|
100
|
+
function boot(received) {
|
|
101
|
+
if (initialized || !isRecord(received) || received.type !== 'init')
|
|
102
|
+
return;
|
|
103
|
+
validate(received);
|
|
104
|
+
if (typeof received.id !== 'string' || !['devices', 'eebus', 'backup', 'ocpp'].includes(received.id) ||
|
|
105
|
+
typeof received.generation !== 'number' || !Number.isSafeInteger(received.generation) ||
|
|
106
|
+
typeof received.baseDir !== 'string' || !isAbsolute(received.baseDir) ||
|
|
107
|
+
!isRecord(received.moduleOptions) || !isRecord(received.moduleOptions.adapter) ||
|
|
108
|
+
typeof received.moduleOptions.adapter.namespace !== 'string' || !isRecord(received.moduleOptions.config) ||
|
|
109
|
+
typeof received.moduleOptions.dataDir !== 'string')
|
|
110
|
+
throw error('EOS_MODULE_PROCESS_INIT');
|
|
111
|
+
const message = /** @type {import('./eosModuleProcessTypes').WorkerInit} */ (received);
|
|
112
|
+
initialized = true;
|
|
113
|
+
process.off('message', boot);
|
|
114
|
+
updateLease(message);
|
|
115
|
+
rpc = channel(process, message.generation, async (method, args) => {
|
|
116
|
+
if (!MODULE_METHODS.includes(method))
|
|
117
|
+
throw error('EOS_MODULE_PROCESS_METHOD');
|
|
118
|
+
if (method === 'stop') {
|
|
119
|
+
void shutdown();
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
122
|
+
if (method === 'download.close') {
|
|
123
|
+
if (typeof args[0] !== 'string')
|
|
124
|
+
throw error('EOS_MODULE_PROCESS_DOWNLOAD');
|
|
125
|
+
const download = downloads.get(args[0]);
|
|
126
|
+
if (!download)
|
|
127
|
+
return null;
|
|
128
|
+
download.cancelled = true;
|
|
129
|
+
download.stream?.destroy();
|
|
130
|
+
if (download.stream)
|
|
131
|
+
downloads.delete(args[0]);
|
|
132
|
+
return null;
|
|
133
|
+
}
|
|
134
|
+
if (!canOperate())
|
|
135
|
+
throw error('EOS_MODULE_PROCESS_INACTIVE');
|
|
136
|
+
const current = runtime;
|
|
137
|
+
if (!current)
|
|
138
|
+
throw error('EOS_MODULE_PROCESS_INIT');
|
|
139
|
+
if (method === 'download.open') {
|
|
140
|
+
if (message.id !== 'backup' || downloads.size >= 4 || typeof current.getDownload !== 'function')
|
|
141
|
+
throw error('EOS_MODULE_PROCESS_DOWNLOAD');
|
|
142
|
+
const handle = args[1];
|
|
143
|
+
if (typeof handle !== 'string' || !/^[a-f0-9-]{36}$/.test(handle) || downloads.has(handle))
|
|
144
|
+
throw error('EOS_MODULE_PROCESS_DOWNLOAD');
|
|
145
|
+
/** @type {import('./eosModuleProcessTypes').WorkerDownload} */
|
|
146
|
+
const download = { cancelled: false, stream: null, iterator: null, remainder: null, reading: false };
|
|
147
|
+
downloads.set(handle, download);
|
|
148
|
+
try {
|
|
149
|
+
const result = await current.getDownload(args[0]);
|
|
150
|
+
if (!canOperate() || download.cancelled) {
|
|
151
|
+
result.stream.destroy();
|
|
152
|
+
throw error('EOS_MODULE_PROCESS_INACTIVE');
|
|
153
|
+
}
|
|
154
|
+
download.stream = result.stream;
|
|
155
|
+
download.iterator = result.stream[Symbol.asyncIterator]();
|
|
156
|
+
return { handle, filename: result.filename, contentType: result.contentType, size: result.size };
|
|
157
|
+
}
|
|
158
|
+
catch (issue) {
|
|
159
|
+
downloads.delete(handle);
|
|
160
|
+
throw issue;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
if (method.startsWith('download.')) {
|
|
164
|
+
if (typeof args[0] !== 'string')
|
|
165
|
+
throw error('EOS_MODULE_PROCESS_DOWNLOAD');
|
|
166
|
+
const download = downloads.get(args[0]);
|
|
167
|
+
if (!download?.iterator || download.cancelled || download.reading)
|
|
168
|
+
throw error('EOS_MODULE_PROCESS_DOWNLOAD');
|
|
169
|
+
download.reading = true;
|
|
170
|
+
try {
|
|
171
|
+
// Node's async iterator may coalesce buffered chunks. Retain a
|
|
172
|
+
// bounded remainder while keeping each IPC response at 64 KiB.
|
|
173
|
+
const chunk = download.remainder ? { done: false, value: download.remainder } : await download.iterator.next();
|
|
174
|
+
if (chunk.done) {
|
|
175
|
+
downloads.delete(args[0]);
|
|
176
|
+
return { done: true };
|
|
177
|
+
}
|
|
178
|
+
if (!Buffer.isBuffer(chunk.value) || chunk.value.length > 2 * 1024 * 1024) {
|
|
179
|
+
download.stream?.destroy();
|
|
180
|
+
downloads.delete(args[0]);
|
|
181
|
+
throw error('EOS_MODULE_PROCESS_DOWNLOAD');
|
|
182
|
+
}
|
|
183
|
+
download.remainder = chunk.value.length > 65536 ? chunk.value.subarray(65536) : null;
|
|
184
|
+
return { done: false, data: chunk.value.subarray(0, 65536).toString('base64') };
|
|
185
|
+
}
|
|
186
|
+
finally {
|
|
187
|
+
download.reading = false;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
const callable = /** @type {RecordValue} */ ( /** @type {unknown} */(current))[method];
|
|
191
|
+
if (typeof callable !== 'function') {
|
|
192
|
+
if (['onStateChange', 'onMessage'].includes(method))
|
|
193
|
+
return null;
|
|
194
|
+
throw error('EOS_MODULE_PROCESS_METHOD');
|
|
195
|
+
}
|
|
196
|
+
return /** @type {Call} */ (callable).apply(current, args);
|
|
197
|
+
}, event => {
|
|
198
|
+
if (event.type === 'lease')
|
|
199
|
+
updateLease(event);
|
|
200
|
+
else if (event.type === 'invalid')
|
|
201
|
+
void shutdown();
|
|
202
|
+
});
|
|
203
|
+
const options = message.moduleOptions;
|
|
204
|
+
/** @type {RecordValue} */
|
|
205
|
+
const adapter = { ...options.adapter };
|
|
206
|
+
for (const method of ADAPTER_METHODS) {
|
|
207
|
+
/** @param {...unknown} args */
|
|
208
|
+
adapter[method] = (...args) => {
|
|
209
|
+
if (method === 'sendTo') {
|
|
210
|
+
const last = args.at(-1);
|
|
211
|
+
const callback = typeof last === 'function' ? /** @type {Call} */ (last) : null;
|
|
212
|
+
if (callback)
|
|
213
|
+
args.pop();
|
|
214
|
+
void getRpc().request(method, args).then(result => callback?.(canOperate() ? result : { accepted: false, error: 'EOS_MODULE_BRIDGE_UNAVAILABLE' }), () => callback?.({ accepted: false, error: 'EOS_MODULE_BRIDGE_UNAVAILABLE' }));
|
|
215
|
+
return;
|
|
216
|
+
}
|
|
217
|
+
return getRpc().request(method, args);
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
adapter.log = Object.fromEntries(['warn', 'error', 'info', 'debug'].map(level => [level, /** @param {unknown} value */ /** @param {unknown} value */ value => {
|
|
221
|
+
try {
|
|
222
|
+
getRpc().event('log', { level, text: sanitizeLog(value, options.config) });
|
|
223
|
+
}
|
|
224
|
+
catch { /* logging never expands the bounded queue */ }
|
|
225
|
+
}]));
|
|
226
|
+
/** @param {Call} fn @param {number} ms @param {...unknown} args */
|
|
227
|
+
adapter.setTimeout = (fn, ms, ...args) => localTimer(false, fn, ms, ...args);
|
|
228
|
+
/** @param {Call} fn @param {number} ms @param {...unknown} args */
|
|
229
|
+
adapter.setInterval = (fn, ms, ...args) => localTimer(true, fn, ms, ...args);
|
|
230
|
+
/** @param {NodeJS.Timeout} timer */
|
|
231
|
+
adapter.clearTimeout = adapter.clearInterval = timer => { clearTimeout(timer); clearInterval(timer); timers.delete(timer); };
|
|
232
|
+
const factory = /** @type {unknown} */ (require(join(message.baseDir, 'modules', message.id, 'index.js')));
|
|
233
|
+
if (!isRecord(factory) || typeof factory.createHostedModule !== 'function')
|
|
234
|
+
throw error('EOS_MODULE_PROCESS_INIT');
|
|
235
|
+
const created = /** @type {Call} */ (factory.createHostedModule)({ ...options,
|
|
236
|
+
adapter, canOperate, ...(message.id === 'ocpp' ? {
|
|
237
|
+
getAuthorityGeneration: () => { canOperate(); return authorityGeneration; },
|
|
238
|
+
onAuthorityLost: () => {
|
|
239
|
+
if (stopping || authorityFailureReported)
|
|
240
|
+
return;
|
|
241
|
+
authorityFailureReported = true;
|
|
242
|
+
getRpc().event('failure', { code: 'EOS_MODULE_PROCESS_AUTHORITY_EXPIRED' });
|
|
243
|
+
},
|
|
244
|
+
} : {}),
|
|
245
|
+
...(message.id === 'backup' ? { getHistoryBackupRequirement: () => getRpc().request('getHistoryBackupRequirement') } : {}) });
|
|
246
|
+
if (!isRecord(created) || typeof created.start !== 'function' || typeof created.stop !== 'function' ||
|
|
247
|
+
typeof created.getStatus !== 'function')
|
|
248
|
+
throw error('EOS_MODULE_PROCESS_INIT');
|
|
249
|
+
runtime = /** @type {import('./eosModuleProcessTypes').ModuleRuntime} */ ( /** @type {unknown} */(created));
|
|
250
|
+
heartbeat = setInterval(() => {
|
|
251
|
+
try {
|
|
252
|
+
getRpc().event('heartbeat');
|
|
253
|
+
}
|
|
254
|
+
catch {
|
|
255
|
+
void shutdown();
|
|
256
|
+
}
|
|
257
|
+
}, 250);
|
|
258
|
+
heartbeat.unref?.();
|
|
259
|
+
}
|
|
260
|
+
process.on('message', boot);
|
|
261
|
+
process.on('disconnect', () => { void shutdown(); });
|
|
262
|
+
process.on('SIGTERM', () => { void shutdown(); });
|
|
263
|
+
process.on('uncaughtException', () => {
|
|
264
|
+
leaseUntil = 0;
|
|
265
|
+
try {
|
|
266
|
+
rpc?.event('failure', { code: 'EOS_MODULE_PROCESS_UNCAUGHT' });
|
|
267
|
+
}
|
|
268
|
+
catch { /* exit still required */ }
|
|
269
|
+
process.exit(1);
|
|
270
|
+
});
|
|
271
|
+
process.on('unhandledRejection', () => {
|
|
272
|
+
leaseUntil = 0;
|
|
273
|
+
try {
|
|
274
|
+
rpc?.event('failure', { code: 'EOS_MODULE_PROCESS_REJECTION' });
|
|
275
|
+
}
|
|
276
|
+
catch { /* exit still required */ }
|
|
277
|
+
process.exit(1);
|
|
278
|
+
});
|
|
279
|
+
//# sourceMappingURL=eosModuleProcessWorker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eosModuleProcessWorker.js","sourceRoot":"./src/","sources":["lib/eosModuleProcessWorker.js"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,YAAY,CAAC;AAEb,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;AAClD,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACnD,MAAM,EAAE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AACnI,2EAA2E;AAC3E,6DAA6D;AAE7D,kEAAkE;AAClE,IAAI,GAAG,CAAC;AACR,wEAAwE;AACxE,IAAI,OAAO,CAAC;AACZ,IAAI,WAAW,GAAG,KAAK,CAAC;AACxB,IAAI,QAAQ,GAAG,KAAK,CAAC;AACrB,IAAI,UAAU,GAAG,CAAC,CAAC;AACnB,IAAI,mBAAmB,GAAG,CA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AC,SAAS,EAAE,EAAE,IAAI,EAAE,6BAA6B,EAAE,CAAC,CAAC;IAAC,CAAC;IAAC,MAAM,CAAC,CAAC,yBAAyB,CAAC,CAAC;IAC3G,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC;AACH,OAAO,CAAC,EAAE,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAClC,UAAU,GAAG,CAAC,CAAC;IACf,IAAI,CAAC;QAAC,GAAG,EAAE,KAAK,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,8BAA8B,EAAE,CAAC,CAAC;IAAC,CAAC;IAAC,MAAM,CAAC,CAAC,yBAAyB,CAAC,CAAC;IAC5G,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.eosPostgresProfilePaths = eosPostgresProfilePaths;
|
|
37
|
+
exports.validateEosPostgresProvisioningDocuments = validateEosPostgresProvisioningDocuments;
|
|
38
|
+
exports.getEosPostgresProvisioningStatus = getEosPostgresProvisioningStatus;
|
|
39
|
+
/**
|
|
40
|
+
* NexoWatt PostgreSQL prerequisite inspection.
|
|
41
|
+
* Reads only root-provisioned, local profiles. It never installs packages,
|
|
42
|
+
* starts a privileged process, returns credentials or switches a historian.
|
|
43
|
+
*/
|
|
44
|
+
const node_fs_1 = require("node:fs");
|
|
45
|
+
const fs = __importStar(require("node:fs/promises"));
|
|
46
|
+
const node_crypto_1 = require("node:crypto");
|
|
47
|
+
const ROOT = '/etc/nexowatt-eos/postgresql';
|
|
48
|
+
const record = (value) => !!value && typeof value === 'object' && !Array.isArray(value);
|
|
49
|
+
function eosPostgresProfilePaths(namespace) {
|
|
50
|
+
if (!/^eos-admin\.(0|[1-9]\d{0,3})$/.test(namespace)) {
|
|
51
|
+
throw new Error('EOS_POSTGRES_NAMESPACE_INVALID');
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
runtime: `${ROOT}/client-${namespace}.json`,
|
|
55
|
+
backup: `${ROOT}/backup-${namespace}.json`,
|
|
56
|
+
ready: `${ROOT}/ready-${namespace}.json`,
|
|
57
|
+
ca: `${ROOT}/ca.crt`,
|
|
58
|
+
database: `eos_history_${namespace.split('.')[1]}`,
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
/** Validation is exported for tests; it does not confer trust on input files. */
|
|
62
|
+
function validateEosPostgresProvisioningDocuments(namespace, ready, runtime, backup, now = Date.now()) {
|
|
63
|
+
const paths = eosPostgresProfilePaths(namespace);
|
|
64
|
+
if (!record(ready) ||
|
|
65
|
+
ready.schemaVersion !== 1 ||
|
|
66
|
+
ready.namespace !== namespace ||
|
|
67
|
+
ready.provider !== 'postgresql' ||
|
|
68
|
+
ready.newInstallation !== true ||
|
|
69
|
+
ready.provisioned !== true ||
|
|
70
|
+
ready.major !== 17 ||
|
|
71
|
+
ready.port !== 55432 ||
|
|
72
|
+
ready.schemaRevision !== 1 ||
|
|
73
|
+
typeof ready.verifiedAt !== 'number' ||
|
|
74
|
+
!Number.isSafeInteger(ready.verifiedAt) ||
|
|
75
|
+
ready.verifiedAt <= 0 ||
|
|
76
|
+
ready.verifiedAt > now + 60_000 ||
|
|
77
|
+
typeof ready.serverVersion !== 'string' ||
|
|
78
|
+
!/^postgres \(PostgreSQL\) 17\.\d[^\r\n]{0,120}$/.test(ready.serverVersion)) {
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
for (const [value, suffix] of [
|
|
82
|
+
[runtime, 'runtime'],
|
|
83
|
+
[backup, 'backup'],
|
|
84
|
+
]) {
|
|
85
|
+
if (!record(value) ||
|
|
86
|
+
value.schemaVersion !== 1 ||
|
|
87
|
+
value.provider !== 'postgresql' ||
|
|
88
|
+
value.provisioned !== true ||
|
|
89
|
+
value.newInstallation !== true ||
|
|
90
|
+
value.host !== '127.0.0.1' ||
|
|
91
|
+
value.port !== 55432 ||
|
|
92
|
+
value.servername !== 'localhost' ||
|
|
93
|
+
value.caFile !== paths.ca ||
|
|
94
|
+
value.database !== paths.database ||
|
|
95
|
+
value.user !== `${paths.database}_${suffix}` ||
|
|
96
|
+
value.schema !== 'eos_history' ||
|
|
97
|
+
typeof value.password !== 'string' ||
|
|
98
|
+
!/^[a-f0-9]{64}$/.test(value.password) ||
|
|
99
|
+
Object.keys(value).some(key => ![
|
|
100
|
+
'schemaVersion',
|
|
101
|
+
'provider',
|
|
102
|
+
'provisioned',
|
|
103
|
+
'newInstallation',
|
|
104
|
+
'host',
|
|
105
|
+
'port',
|
|
106
|
+
'database',
|
|
107
|
+
'user',
|
|
108
|
+
'password',
|
|
109
|
+
'caFile',
|
|
110
|
+
'servername',
|
|
111
|
+
'schema',
|
|
112
|
+
].includes(key))) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return true;
|
|
117
|
+
}
|
|
118
|
+
async function rootProtectedFile(file) {
|
|
119
|
+
for (const directory of ['/etc', '/etc/nexowatt-eos', ROOT]) {
|
|
120
|
+
const stat = await fs.lstat(directory);
|
|
121
|
+
if (!stat.isDirectory() ||
|
|
122
|
+
stat.isSymbolicLink() ||
|
|
123
|
+
stat.uid !== 0 ||
|
|
124
|
+
(stat.mode & 0o022) !== 0 ||
|
|
125
|
+
(await fs.realpath(directory)) !== directory) {
|
|
126
|
+
throw new Error('EOS_POSTGRES_PROFILE_PERMISSIONS');
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
const handle = await fs.open(file, node_fs_1.constants.O_RDONLY | node_fs_1.constants.O_NOFOLLOW);
|
|
130
|
+
try {
|
|
131
|
+
const stat = await handle.stat();
|
|
132
|
+
if (!stat.isFile() || stat.uid !== 0 || (stat.mode & 0o137) !== 0 || stat.size === 0 || stat.size > 16384) {
|
|
133
|
+
throw new Error('EOS_POSTGRES_PROFILE_PERMISSIONS');
|
|
134
|
+
}
|
|
135
|
+
return await handle.readFile('utf8');
|
|
136
|
+
}
|
|
137
|
+
finally {
|
|
138
|
+
await handle.close();
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
async function getEosPostgresProvisioningStatus(namespace) {
|
|
142
|
+
const base = {
|
|
143
|
+
schema: 1,
|
|
144
|
+
provider: 'postgresql',
|
|
145
|
+
namespace,
|
|
146
|
+
localOnly: true,
|
|
147
|
+
tlsRequired: true,
|
|
148
|
+
connectionVerified: false,
|
|
149
|
+
};
|
|
150
|
+
try {
|
|
151
|
+
const paths = eosPostgresProfilePaths(namespace);
|
|
152
|
+
const [readyText, runtimeText, backupText, caText] = await Promise.all([
|
|
153
|
+
rootProtectedFile(paths.ready),
|
|
154
|
+
rootProtectedFile(paths.runtime),
|
|
155
|
+
rootProtectedFile(paths.backup),
|
|
156
|
+
rootProtectedFile(paths.ca),
|
|
157
|
+
]);
|
|
158
|
+
const ready = JSON.parse(readyText);
|
|
159
|
+
const runtime = JSON.parse(runtimeText);
|
|
160
|
+
const backup = JSON.parse(backupText);
|
|
161
|
+
if (!validateEosPostgresProvisioningDocuments(namespace, ready, runtime, backup) || !record(ready)) {
|
|
162
|
+
throw new Error('EOS_POSTGRES_PROFILE_INVALID');
|
|
163
|
+
}
|
|
164
|
+
const ca = new node_crypto_1.X509Certificate(caText);
|
|
165
|
+
const now = Date.now();
|
|
166
|
+
if (!ca.ca || Date.parse(ca.validFrom) > now || Date.parse(ca.validTo) <= now || !ca.verify(ca.publicKey)) {
|
|
167
|
+
throw new Error('EOS_POSTGRES_CA_INVALID');
|
|
168
|
+
}
|
|
169
|
+
return {
|
|
170
|
+
...base,
|
|
171
|
+
status: 'configured',
|
|
172
|
+
code: 'EOS_POSTGRES_PROFILE_CONFIGURED',
|
|
173
|
+
administratorBootstrapRequired: false,
|
|
174
|
+
database: paths.database,
|
|
175
|
+
schemaRevision: 1,
|
|
176
|
+
verifiedAt: Number(ready.verifiedAt),
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
catch (error) {
|
|
180
|
+
const missing = record(error) && error.code === 'ENOENT';
|
|
181
|
+
return {
|
|
182
|
+
...base,
|
|
183
|
+
status: missing ? 'setup-required' : 'invalid',
|
|
184
|
+
code: missing ? 'EOS_POSTGRES_SETUP_REQUIRED' : 'EOS_POSTGRES_SETUP_INVALID',
|
|
185
|
+
administratorBootstrapRequired: true,
|
|
186
|
+
};
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
//# sourceMappingURL=eosPostgresProvisioning.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eosPostgresProvisioning.js","sourceRoot":"./src/","sources":["lib/eosPostgresProvisioning.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,0DAiBC;AAGD,4FAoEC;AA2BD,4EA8CC;AA7LD;;;;GAIG;AACH,qCAAoC;AACpC,qDAAuC;AACvC,6CAA8C;AAiB9C,MAAM,IAAI,GAAG,8BAA8B,CAAC;AAC5C,MAAM,MAAM,GAAG,CAAC,KAAc,EAAoC,EAAE,CAChE,CAAC,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAElE,SAAgB,uBAAuB,CAAC,SAAiB;IAOrD,IAAI,CAAC,+BAA+B,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;QACnD,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;IACtD,CAAC;IACD,OAAO;QACH,OAAO,EAAE,GAAG,IAAI,WAAW,SAAS,OAAO;QAC3C,MAAM,EAAE,GAAG,IAAI,WAAW,SAAS,OAAO;QAC1C,KAAK,EAAE,GAAG,IAAI,UAAU,SAAS,OAAO;QACxC,EAAE,EAAE,GAAG,IAAI,SAAS;QACpB,QAAQ,EAAE,eAAe,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE;KACrD,CAAC;AACN,CAAC;AAED,iFAAiF;AACjF,SAAgB,wCAAwC,CACpD,SAAiB,EACjB,KAAc,EACd,OAAgB,EAChB,MAAe,EACf,GAAG,GAAG,IAAI,CAAC,GAAG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