iobroker.eos-admin 9.0.21 → 9.0.24

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.
Files changed (692) hide show
  1. package/NEXOWATT_EOS_BUILD_INFO.json +17 -11
  2. package/README.md +32 -8
  3. package/START_HIER_9.0.21.md +53 -0
  4. package/START_HIER_9.0.22.md +48 -0
  5. package/START_HIER_9.0.23.md +47 -0
  6. package/START_HIER_9.0.24.md +70 -0
  7. package/adminWww/.vite/manifest.json +55 -55
  8. package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13760 -13760
  9. package/adminWww/assets/{AdapterUpdateDialog-Dxl_b7Op.js → AdapterUpdateDialog-D7sI5VRm.js} +1 -1
  10. package/adminWww/assets/{Adapters-CVKKhXmI.js → Adapters-DS6ITaEH.js} +1 -1
  11. package/adminWww/assets/{ConfigManager-Bf6nTAkL.js → ConfigManager-_iFDSXuD.js} +1 -1
  12. package/adminWww/assets/{Enums-CJHVJY7t.js → Enums-Bdv7Tqmf.js} +1 -1
  13. package/adminWww/assets/{Fields-DWHbZKvm.js → Fields-CWUY1AnV.js} +1 -1
  14. package/adminWww/assets/{Files-a6owMTXA.js → Files-BveV1b_F.js} +1 -1
  15. package/adminWww/assets/{Hosts-LtEMeXpV.js → Hosts-B1HWZLGl.js} +1 -1
  16. package/adminWww/assets/{Instances-DhChziA1.js → Instances-DYvbOlj7.js} +1 -1
  17. package/adminWww/assets/{Intro-Cyq9gVDC.js → Intro-pYT2FzIK.js} +1 -1
  18. package/adminWww/assets/{Logs-wcramXsg.js → Logs-D2ZbCY3Z.js} +1 -1
  19. package/adminWww/assets/{Objects-DINVHd_e.js → Objects-CTUxbXJM.js} +1 -1
  20. package/adminWww/assets/{Overview-DK4R41zR.js → Overview-i6PsoN_F.js} +1 -1
  21. package/adminWww/assets/{State-DcEACXzL.js → State-BEQXNcI3.js} +1 -1
  22. package/adminWww/assets/{UsedResources-C1LcM0Rb.js → UsedResources-CLc1afk1.js} +1 -1
  23. package/adminWww/assets/{Users-DvDdSyDY.js → Users-DG6i7iqC.js} +1 -1
  24. package/adminWww/assets/{bootstrap-Dbj_GbnP.js → bootstrap-4KhX67tn.js} +4 -4
  25. package/adminWww/assets/{hostInit-BNFIx0-f.js → hostInit-B08JmaAP.js} +1 -1
  26. package/adminWww/assets/{icons-material-DVbdXNgr.js → icons-material-sOCHi6x9.js} +1 -1
  27. package/adminWww/assets/{index-CoKP1NSA.js → index-DHSNS0v8.js} +2 -2
  28. package/adminWww/assets/{installSVGRenderer-CMvku1F1.js → installSVGRenderer-CWaaO5tF.js} +1 -1
  29. package/adminWww/assets/{mf-entry-bootstrap-0-ac330bce.js → mf-entry-bootstrap-0-e7c54f7f.js} +2 -2
  30. package/adminWww/index.html +23 -23
  31. package/adminWww/mf-manifest.json +1 -1
  32. package/adminWww/mf-stats.json +1 -1
  33. package/adminWww/{remoteEntry-eos-9.0.21.js → remoteEntry-eos-9.0.24.js} +1 -1
  34. package/adminWww/remoteEntry.js +1 -1
  35. package/build/lib/eosHistoryBackupScope.js +73 -0
  36. package/build/lib/eosHistoryBackupScope.js.map +1 -0
  37. package/build/lib/eosKiosk.js +348 -0
  38. package/build/lib/eosKiosk.js.map +1 -0
  39. package/build/lib/eosLegacyMigration.js +14 -3
  40. package/build/lib/eosLegacyMigration.js.map +1 -1
  41. package/build/lib/eosLicenseService.js +1 -1
  42. package/build/lib/eosLicenseService.js.map +1 -1
  43. package/build/lib/eosModuleConfigStore.js +1 -1
  44. package/build/lib/eosModuleConfigStore.js.map +1 -1
  45. package/build/lib/eosModuleHost.js +241 -21
  46. package/build/lib/eosModuleHost.js.map +1 -1
  47. package/build/lib/eosModuleHttp.js +40 -6
  48. package/build/lib/eosModuleHttp.js.map +1 -1
  49. package/build/lib/eosModuleProcess.js +317 -0
  50. package/build/lib/eosModuleProcess.js.map +1 -0
  51. package/build/lib/eosModuleProcessProtocol.js +213 -0
  52. package/build/lib/eosModuleProcessProtocol.js.map +1 -0
  53. package/build/lib/eosModuleProcessWorker.js +279 -0
  54. package/build/lib/eosModuleProcessWorker.js.map +1 -0
  55. package/build/lib/eosPostgresProvisioning.js +189 -0
  56. package/build/lib/eosPostgresProvisioning.js.map +1 -0
  57. package/build/lib/eosRuntimeHealth.js +155 -0
  58. package/build/lib/eosRuntimeHealth.js.map +1 -0
  59. package/build/lib/eosUiProcess.js +689 -0
  60. package/build/lib/eosUiProcess.js.map +1 -0
  61. package/build/lib/eosUiProcessRpc.js +279 -0
  62. package/build/lib/eosUiProcessRpc.js.map +1 -0
  63. package/build/lib/eosUiProcessWorker.js +399 -0
  64. package/build/lib/eosUiProcessWorker.js.map +1 -0
  65. package/build/lib/eosUiSecretCodec.js +64 -0
  66. package/build/lib/eosUiSecretCodec.js.map +1 -0
  67. package/build/lib/eosUnifiedBoundary.js +28 -4
  68. package/build/lib/eosUnifiedBoundary.js.map +1 -1
  69. package/build/lib/eosUpdateSnapshot.js +32 -1
  70. package/build/lib/eosUpdateSnapshot.js.map +1 -1
  71. package/build/lib/web.js +104 -7
  72. package/build/lib/web.js.map +1 -1
  73. package/docs/reports/unified-9.0.21/CRA_NACHWEISSTAND.md +159 -0
  74. package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_BACKEND_REVIEW.md +30 -0
  75. package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_UI_REVIEW.md +44 -0
  76. package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_WORKER_REVIEW.md +147 -0
  77. package/docs/reports/unified-9.0.21/CUSTOMER_WORKER_ZWEITPRUEFUNG.md +108 -0
  78. package/docs/reports/unified-9.0.21/DEVICE_STABILITY_REVIEW.md +50 -0
  79. package/docs/reports/unified-9.0.21/EMS_STABILITAET.md +41 -0
  80. package/docs/reports/unified-9.0.21/HISTORY_TARIFF_STABILITY_REVIEW.md +48 -0
  81. package/docs/reports/unified-9.0.21/MQTT_ZWEITPRUEFUNG_EMS.md +47 -0
  82. package/docs/reports/unified-9.0.21/PERSISTENZ_STABILITAET.md +76 -0
  83. package/docs/reports/unified-9.0.21/PRUEFBERICHT.md +64 -0
  84. package/docs/reports/unified-9.0.21/SECURITY_STABILITY_REVIEW.md +118 -0
  85. package/docs/reports/unified-9.0.21/UI_SECURITY_GATE_REVIEW.md +62 -0
  86. package/docs/reports/unified-9.0.21/UPDATE_HTTP_SNAPSHOT_PRUEFUNG.md +46 -0
  87. package/docs/reports/unified-9.0.21/raw/INDEX.json +1307 -0
  88. package/docs/reports/unified-9.0.21/raw/audit-full.log +345 -0
  89. package/docs/reports/unified-9.0.21/raw/audit-full.result.json +14 -0
  90. package/docs/reports/unified-9.0.21/raw/audit-runtime.log +23 -0
  91. package/docs/reports/unified-9.0.21/raw/audit-runtime.result.json +15 -0
  92. package/docs/reports/unified-9.0.21/raw/backend-final.log +5 -0
  93. package/docs/reports/unified-9.0.21/raw/backend-final.result.json +14 -0
  94. package/docs/reports/unified-9.0.21/raw/cra/frontend-installer-sbom.json +32 -0
  95. package/docs/reports/unified-9.0.21/raw/customer-update-glue/root-glue-focused-node24.tap +34 -0
  96. package/docs/reports/unified-9.0.21/raw/customer-update-service/lint.log +0 -0
  97. package/docs/reports/unified-9.0.21/raw/customer-update-service/real920-archive-inspection.json +20 -0
  98. package/docs/reports/unified-9.0.21/raw/customer-update-service/service-node22.log +110 -0
  99. package/docs/reports/unified-9.0.21/raw/customer-update-service/service-node24.log +24 -0
  100. package/docs/reports/unified-9.0.21/raw/customer-update-service/service-verification.json +54 -0
  101. package/docs/reports/unified-9.0.21/raw/customer-update-service/typecheck.log +0 -0
  102. package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-lint.log +0 -0
  103. package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-node22.tap +86 -0
  104. package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-node24.tap +20 -0
  105. package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-strict-typecheck.log +0 -0
  106. package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-typecheck.log +0 -0
  107. package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/independent-worker-probes.cjs +109 -0
  108. package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/node22.tap +86 -0
  109. package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/node24.tap +20 -0
  110. package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/probes-node22.tap +44 -0
  111. package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/probes-node24.tap +13 -0
  112. package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/receipt.json +89 -0
  113. package/docs/reports/unified-9.0.21/raw/customer-update-worker/receipt.json +42 -0
  114. package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-catch-node22.log +1959 -0
  115. package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-test-update-node22.log +1968 -0
  116. package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-test-update-node24.log +337 -0
  117. package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-runtime-review-node22.log +1895 -0
  118. package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-runtime-review-node24.log +317 -0
  119. package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-final-node22.log +1959 -0
  120. package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-final-node24.log +327 -0
  121. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-final-message-test-node22.log +36 -0
  122. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-final-message-test-node24.log +28 -0
  123. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-message-session-node22.log +36 -0
  124. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-message-session-node24.log +28 -0
  125. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-command-replay-repro-node22.log +15 -0
  126. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-command-replay-repro-node24.log +13 -0
  127. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-shutdown-repro-node22.log +16 -0
  128. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-shutdown-repro-node24.log +14 -0
  129. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-resources-node22.log +74 -0
  130. package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-resources-node24.log +46 -0
  131. package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-before-drain-test-update.json +206 -0
  132. package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-before-runtime-review.json +150 -0
  133. package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-final.json +275 -0
  134. package/docs/reports/unified-9.0.21/raw/device-mqtt/commands.json +134 -0
  135. package/docs/reports/unified-9.0.21/raw/device-mqtt/env-node22.log +3 -0
  136. package/docs/reports/unified-9.0.21/raw/device-mqtt/env-node24.log +1 -0
  137. package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-drain-test-update-node22.log +2 -0
  138. package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-drain-test-update-node24.log +0 -0
  139. package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-runtime-review-node22.log +2 -0
  140. package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-runtime-review-node24.log +0 -0
  141. package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-final-node22.log +2 -0
  142. package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-final-node24.log +0 -0
  143. package/docs/reports/unified-9.0.21/raw/device-mqtt/mqtt-command-replay-repro.cjs +38 -0
  144. package/docs/reports/unified-9.0.21/raw/device-mqtt/mqtt-shutdown-repro.cjs +31 -0
  145. package/docs/reports/unified-9.0.21/raw/device-mqtt/regression-node22.log +322 -0
  146. package/docs/reports/unified-9.0.21/raw/device-mqtt/regression-node24.log +55 -0
  147. package/docs/reports/unified-9.0.21/raw/device-mqtt/run-evidence.py +23 -0
  148. package/docs/reports/unified-9.0.21/raw/device-mqtt/run-final-evidence.py +20 -0
  149. package/docs/reports/unified-9.0.21/raw/device-mqtt/runtime-lint-920.json +1 -0
  150. package/docs/reports/unified-9.0.21/raw/device-mqtt/runtime-lint-921.json +1 -0
  151. package/docs/reports/unified-9.0.21/raw/device-mqtt/source-hashes.json +16 -0
  152. package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-drain-test-update-node22.log +0 -0
  153. package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-drain-test-update-node24.log +0 -0
  154. package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-runtime-review-node22.log +0 -0
  155. package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-runtime-review-node24.log +0 -0
  156. package/docs/reports/unified-9.0.21/raw/device-mqtt/types-final-node22.log +0 -0
  157. package/docs/reports/unified-9.0.21/raw/device-mqtt/types-final-node24.log +0 -0
  158. package/docs/reports/unified-9.0.21/raw/ems/baseline-files-eslint.json +1 -0
  159. package/docs/reports/unified-9.0.21/raw/ems/changed-files-eslint.json +1 -0
  160. package/docs/reports/unified-9.0.21/raw/ems/engine.patch +38 -0
  161. package/docs/reports/unified-9.0.21/raw/ems/eslint-delta.json +6 -0
  162. package/docs/reports/unified-9.0.21/raw/ems/evidence.json +171 -0
  163. package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-baseline-node24.log +124 -0
  164. package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-node22.log +56 -0
  165. package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-node24.log +15 -0
  166. package/docs/reports/unified-9.0.21/raw/ems/farm-owned-methods.patch +133 -0
  167. package/docs/reports/unified-9.0.21/raw/ems/generated-regression-node22.log +460 -0
  168. package/docs/reports/unified-9.0.21/raw/ems/generated-regression-node24.log +82 -0
  169. package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-frozen-node22.log +170 -0
  170. package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-frozen-node24.log +33 -0
  171. package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-review-node22.log +153 -0
  172. package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-review-node24.log +39 -0
  173. package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-reviewed-node22.log +170 -0
  174. package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-reviewed-node24.log +33 -0
  175. package/docs/reports/unified-9.0.21/raw/ems/mqtt-queue-inheritance-before.log +28 -0
  176. package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-baseline-node24.log +64 -0
  177. package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-initial-timing.log +32 -0
  178. package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-node22.log +44 -0
  179. package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-node24.log +13 -0
  180. package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-session-review.cjs +23 -0
  181. package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-session-review.log +119 -0
  182. package/docs/reports/unified-9.0.21/raw/ems/nvp-baseline-node22.log +170 -0
  183. package/docs/reports/unified-9.0.21/raw/ems/nvp-baseline-node24.log +121 -0
  184. package/docs/reports/unified-9.0.21/raw/ems/nvp-node22.log +68 -0
  185. package/docs/reports/unified-9.0.21/raw/ems/nvp-node24.log +17 -0
  186. package/docs/reports/unified-9.0.21/raw/ems/ui-code-delta-inventory.json +32 -0
  187. package/docs/reports/unified-9.0.21/raw/ems/ui-docs-check.log +6 -0
  188. package/docs/reports/unified-9.0.21/raw/ems/ui-farm-fingerprint-moves.json +74 -0
  189. package/docs/reports/unified-9.0.21/raw/ems/ui-lint-policy-tests.log +6 -0
  190. package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-final-node22.log +5 -0
  191. package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-final-node24.log +8 -0
  192. package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-initial.log +6 -0
  193. package/docs/reports/unified-9.0.21/raw/ems/ui-main-full-delta.patch +135 -0
  194. package/docs/reports/unified-9.0.21/raw/ems/ui-reviewed-changes.json +93 -0
  195. package/docs/reports/unified-9.0.21/raw/ems/ui-reviewed-findings-before.json +3185 -0
  196. package/docs/reports/unified-9.0.21/raw/ems/ui-security-final-node22.json +28833 -0
  197. package/docs/reports/unified-9.0.21/raw/ems/ui-security-final-node24.json +28833 -0
  198. package/docs/reports/unified-9.0.21/raw/ems/ui-security-inventory-before.json +28991 -0
  199. package/docs/reports/unified-9.0.21/raw/ems/update-ui-reviewed-findings.cjs +59 -0
  200. package/docs/reports/unified-9.0.21/raw/frontend-build.log +152 -0
  201. package/docs/reports/unified-9.0.21/raw/frontend-build.result.json +14 -0
  202. package/docs/reports/unified-9.0.21/raw/frontend-installer-sbom.json +32 -0
  203. package/docs/reports/unified-9.0.21/raw/history/baseline920-influx-sequence-node24.log +12 -0
  204. package/docs/reports/unified-9.0.21/raw/history/baseline920-outage-node24.log +64 -0
  205. package/docs/reports/unified-9.0.21/raw/history/cra-tariff-source-node22.log +38 -0
  206. package/docs/reports/unified-9.0.21/raw/history/cra-tariff-source-node24.log +36 -0
  207. package/docs/reports/unified-9.0.21/raw/history/lint-baseline-comparison.json +83 -0
  208. package/docs/reports/unified-9.0.21/raw/history/lint-scope.cjs +29 -0
  209. package/docs/reports/unified-9.0.21/raw/history/regression-node22.log +438 -0
  210. package/docs/reports/unified-9.0.21/raw/history/regression-node24.log +75 -0
  211. package/docs/reports/unified-9.0.21/raw/history/results-node22.json +37 -0
  212. package/docs/reports/unified-9.0.21/raw/history/results-node24.json +66 -0
  213. package/docs/reports/unified-9.0.21/raw/history/run-checks.py +18 -0
  214. package/docs/reports/unified-9.0.21/raw/history/source-evidence.json +83 -0
  215. package/docs/reports/unified-9.0.21/raw/installer-build.log +26 -0
  216. package/docs/reports/unified-9.0.21/raw/installer-build.result.json +14 -0
  217. package/docs/reports/unified-9.0.21/raw/keygen-source.json +6 -0
  218. package/docs/reports/unified-9.0.21/raw/lint-final.log +16 -0
  219. package/docs/reports/unified-9.0.21/raw/lint-final.result.json +14 -0
  220. package/docs/reports/unified-9.0.21/raw/modules-build.log +5 -0
  221. package/docs/reports/unified-9.0.21/raw/modules-build.result.json +14 -0
  222. package/docs/reports/unified-9.0.21/raw/node22-tests-final.log +13274 -0
  223. package/docs/reports/unified-9.0.21/raw/node22-tests-final.result.json +13 -0
  224. package/docs/reports/unified-9.0.21/raw/node22-typecheck-final.log +7 -0
  225. package/docs/reports/unified-9.0.21/raw/node22-typecheck-final.result.json +14 -0
  226. package/docs/reports/unified-9.0.21/raw/node22-version.log +1 -0
  227. package/docs/reports/unified-9.0.21/raw/node24-tests-final.log +2223 -0
  228. package/docs/reports/unified-9.0.21/raw/node24-tests-final.result.json +13 -0
  229. package/docs/reports/unified-9.0.21/raw/node24-typecheck-final.log +5 -0
  230. package/docs/reports/unified-9.0.21/raw/node24-typecheck-final.result.json +14 -0
  231. package/docs/reports/unified-9.0.21/raw/node24-version.log +1 -0
  232. package/docs/reports/unified-9.0.21/raw/persistence/920-http-draft-revision-node24.log +50 -0
  233. package/docs/reports/unified-9.0.21/raw/persistence/920-late-commit-overwrite-node24.log +30 -0
  234. package/docs/reports/unified-9.0.21/raw/persistence/920-save-lifecycle-node24.log +59 -0
  235. package/docs/reports/unified-9.0.21/raw/persistence/921-backend-types.log +0 -0
  236. package/docs/reports/unified-9.0.21/raw/persistence/921-editor-lint.log +0 -0
  237. package/docs/reports/unified-9.0.21/raw/persistence/921-eebus-editor-typecheck.log +0 -0
  238. package/docs/reports/unified-9.0.21/raw/persistence/921-final-format-review.json +24 -0
  239. package/docs/reports/unified-9.0.21/raw/persistence/921-lint.log +0 -0
  240. package/docs/reports/unified-9.0.21/raw/persistence/921-new-update-http-before.log +177 -0
  241. package/docs/reports/unified-9.0.21/raw/persistence/921-new-update-snapshot-before.log +80 -0
  242. package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node22.log +1019 -0
  243. package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node22.receipt.json +28 -0
  244. package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node24.log +174 -0
  245. package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node24.receipt.json +28 -0
  246. package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-eslint-final.log +0 -0
  247. package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node22.log +137 -0
  248. package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node22.receipt.json +21 -0
  249. package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node24.log +30 -0
  250. package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node24.receipt.json +21 -0
  251. package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-strict-typecheck.log +0 -0
  252. package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-typecheck-final.log +0 -0
  253. package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-after.log +3 -0
  254. package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-before-observation.json +25 -0
  255. package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-repro.cjs +7 -0
  256. package/docs/reports/unified-9.0.21/raw/persistence/source-files.pre-final-format.sha256 +14 -0
  257. package/docs/reports/unified-9.0.21/raw/persistence/source-files.sha256 +14 -0
  258. package/docs/reports/unified-9.0.21/raw/release-overlay/obsolete-assets-920-added.json +94 -0
  259. package/docs/reports/unified-9.0.21/raw/release-overlay/publish-catalog-regression.log +49 -0
  260. package/docs/reports/unified-9.0.21/raw/release-overlay/publish-catalog-regression.result.json +15 -0
  261. package/docs/reports/unified-9.0.21/raw/sbom-runtime.log +7 -0
  262. package/docs/reports/unified-9.0.21/raw/sbom-runtime.result.json +14 -0
  263. package/docs/reports/unified-9.0.21/raw/sbom-vendor-check.log +1 -0
  264. package/docs/reports/unified-9.0.21/raw/sbom-vendor-check.result.json +14 -0
  265. package/docs/reports/unified-9.0.21/raw/security-stability/backend-typecheck.log +0 -0
  266. package/docs/reports/unified-9.0.21/raw/security-stability/boundaries-node22.tap +495 -0
  267. package/docs/reports/unified-9.0.21/raw/security-stability/boundaries-node24.tap +88 -0
  268. package/docs/reports/unified-9.0.21/raw/security-stability/coexistence-node22.tap +179 -0
  269. package/docs/reports/unified-9.0.21/raw/security-stability/coexistence-node24.tap +36 -0
  270. package/docs/reports/unified-9.0.21/raw/security-stability/results.json +118 -0
  271. package/docs/reports/unified-9.0.21/raw/security-stability/upload-admission-before-node22.tap +63 -0
  272. package/docs/reports/unified-9.0.21/raw/security-stability/upload-admission-before-node24.tap +47 -0
  273. package/docs/reports/unified-9.0.21/raw/security-stability/upload-lint.log +0 -0
  274. package/docs/reports/unified-9.0.21/raw/security-stability/upload-node22.tap +148 -0
  275. package/docs/reports/unified-9.0.21/raw/security-stability/upload-node24.tap +30 -0
  276. package/docs/reports/unified-9.0.21/raw/ui-docs-check.log +6 -0
  277. package/docs/reports/unified-9.0.21/raw/ui-docs-check.result.json +14 -0
  278. package/docs/reports/unified-9.0.21/raw/ui-runtime-final.log +7 -0
  279. package/docs/reports/unified-9.0.21/raw/ui-runtime-final.result.json +14 -0
  280. package/docs/reports/unified-9.0.21/raw/ui-runtime-sync.log +1 -0
  281. package/docs/reports/unified-9.0.21/raw/ui-runtime-sync.result.json +14 -0
  282. package/docs/reports/unified-9.0.21/raw/ui-sbom-check.log +6 -0
  283. package/docs/reports/unified-9.0.21/raw/ui-sbom-check.result.json +14 -0
  284. package/docs/reports/unified-9.0.21/raw/ui-sbom-final.log +6 -0
  285. package/docs/reports/unified-9.0.21/raw/ui-sbom-final.result.json +14 -0
  286. package/docs/reports/unified-9.0.21/raw/ui-secret-final.log +6 -0
  287. package/docs/reports/unified-9.0.21/raw/ui-secret-final.result.json +14 -0
  288. package/docs/reports/unified-9.0.21/raw/ui-security-final.log +8 -0
  289. package/docs/reports/unified-9.0.21/raw/ui-security-final.result.json +14 -0
  290. package/docs/reports/unified-9.0.21/raw/update-ui/baseline-ui.log +280 -0
  291. package/docs/reports/unified-9.0.21/raw/update-ui/browser-preview.test.cjs +170 -0
  292. package/docs/reports/unified-9.0.21/raw/update-ui/draft-regression.log +214 -0
  293. package/docs/reports/unified-9.0.21/raw/update-ui/eos-updates-before.ts +171 -0
  294. package/docs/reports/unified-9.0.21/raw/update-ui/lint.log +0 -0
  295. package/docs/reports/unified-9.0.21/raw/update-ui/results.json +90 -0
  296. package/docs/reports/unified-9.0.21/raw/update-ui/source-evidence.json +30 -0
  297. package/docs/reports/unified-9.0.21/raw/update-ui/type-node22.log +0 -0
  298. package/docs/reports/unified-9.0.21/raw/update-ui/type-node24.log +0 -0
  299. package/docs/reports/unified-9.0.21/raw/update-ui/ui-node22.log +98 -0
  300. package/docs/reports/unified-9.0.21/raw/update-ui/ui-node24.log +22 -0
  301. package/docs/reports/unified-9.0.22/BACKUP_POSTGRES_FOLLOWUP.md +44 -0
  302. package/docs/reports/unified-9.0.22/ENERGIEFLUSS_BROWSERPRUEFUNG.md +40 -0
  303. package/docs/reports/unified-9.0.22/ENERGY_FLOW_BACKEND.md +44 -0
  304. package/docs/reports/unified-9.0.22/FLOW_TARIFF_INDEPENDENT_REVIEW.md +33 -0
  305. package/docs/reports/unified-9.0.22/OCPP_STOP_WRITER_REVIEW.md +27 -0
  306. package/docs/reports/unified-9.0.22/POSTGRESQL_SYSTEM_SETUP.md +34 -0
  307. package/docs/reports/unified-9.0.22/PRUEFBERICHT.md +85 -0
  308. package/docs/reports/unified-9.0.22/flow/PRUEFVERMERK.md +42 -0
  309. package/docs/reports/unified-9.0.22/flow/frontend-cadence-tests.log +37 -0
  310. package/docs/reports/unified-9.0.22/flow/frontend-source-hashes.json +13 -0
  311. package/docs/reports/unified-9.0.22/flow/frontend-tests.log +31 -0
  312. package/docs/reports/unified-9.0.22/postgres-history-review.md +43 -0
  313. package/docs/reports/unified-9.0.22/postgres-real-review.tap +21 -0
  314. package/docs/reports/unified-9.0.22/postgres-review-lint.log +0 -0
  315. package/docs/reports/unified-9.0.22/postgres-review-typecheck.log +0 -0
  316. package/docs/reports/unified-9.0.22/postgres-review-unit-api.tap +25 -0
  317. package/docs/reports/unified-9.0.22/raw/INDEX.json +43 -0
  318. package/docs/reports/unified-9.0.22/raw/backup-followup/eslint-backup.log +0 -0
  319. package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-after.tap +13 -0
  320. package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-before.tap +54 -0
  321. package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-test-eslint.log +0 -0
  322. package/docs/reports/unified-9.0.22/raw/backup-followup/influx-real-node24.tap +11 -0
  323. package/docs/reports/unified-9.0.22/raw/backup-followup/scope-hashes.json +51 -0
  324. package/docs/reports/unified-9.0.22/raw/backup-followup/storage-nullable-before.tap +96 -0
  325. package/docs/reports/unified-9.0.22/raw/backup-followup/storage-nullable-flow.tap +12 -0
  326. package/docs/reports/unified-9.0.22/raw/backup-followup/tests-node24.tap +116 -0
  327. package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-backup-scope.log +0 -0
  328. package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-backup.log +0 -0
  329. package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-postgres-setup.log +0 -0
  330. package/docs/reports/unified-9.0.22/raw/current/admin-build.log +152 -0
  331. package/docs/reports/unified-9.0.22/raw/current/availability-final.log +1 -0
  332. package/docs/reports/unified-9.0.22/raw/current/backend-build.log +5 -0
  333. package/docs/reports/unified-9.0.22/raw/current/baseline-repairs.log +60 -0
  334. package/docs/reports/unified-9.0.22/raw/current/baseline-unified.log +1675 -0
  335. package/docs/reports/unified-9.0.22/raw/current/combined-fixes.log +65 -0
  336. package/docs/reports/unified-9.0.22/raw/current/control-final.log +25 -0
  337. package/docs/reports/unified-9.0.22/raw/current/energyflow-browser.json +244 -0
  338. package/docs/reports/unified-9.0.22/raw/current/energyflow-browser.stderr +0 -0
  339. package/docs/reports/unified-9.0.22/raw/current/energyflow-cadence-browser.json +63 -0
  340. package/docs/reports/unified-9.0.22/raw/current/energyflow-cadence-browser.stderr +0 -0
  341. package/docs/reports/unified-9.0.22/raw/current/lint-final.log +5 -0
  342. package/docs/reports/unified-9.0.22/raw/current/lint.log +5 -0
  343. package/docs/reports/unified-9.0.22/raw/current/markdown-build.log +1 -0
  344. package/docs/reports/unified-9.0.22/raw/current/modules-build.log +5 -0
  345. package/docs/reports/unified-9.0.22/raw/current/pre-ocpp-full.log +2337 -0
  346. package/docs/reports/unified-9.0.22/raw/current/production-audit.json +22 -0
  347. package/docs/reports/unified-9.0.22/raw/current/production-audit.stderr +1 -0
  348. package/docs/reports/unified-9.0.22/raw/current/runtime-build-final.log +8 -0
  349. package/docs/reports/unified-9.0.22/raw/current/runtime-build.log +32 -0
  350. package/docs/reports/unified-9.0.22/raw/current/runtime-sync.log +1 -0
  351. package/docs/reports/unified-9.0.22/raw/current/safety-envelope-final.log +1 -0
  352. package/docs/reports/unified-9.0.22/raw/current/sbom-lock-graph.log +1 -0
  353. package/docs/reports/unified-9.0.22/raw/current/sbom.log +6120 -0
  354. package/docs/reports/unified-9.0.22/raw/current/station-permission-final.log +1 -0
  355. package/docs/reports/unified-9.0.22/raw/current/storage-feedforward-final.log +1 -0
  356. package/docs/reports/unified-9.0.22/raw/current/typecheck-final.log +5 -0
  357. package/docs/reports/unified-9.0.22/raw/current/typecheck.log +5 -0
  358. package/docs/reports/unified-9.0.22/raw/ems-control-points/eslint.txt +0 -0
  359. package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-availability.txt +1 -0
  360. package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-safety.txt +1 -0
  361. package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-station.txt +1 -0
  362. package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-tests.tap +124 -0
  363. package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-availability.txt +1 -0
  364. package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-safety.txt +1 -0
  365. package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-station.txt +1 -0
  366. package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-tests.tap +26 -0
  367. package/docs/reports/unified-9.0.22/raw/ems-control-points/typecheck.txt +0 -0
  368. package/docs/reports/unified-9.0.22/raw/flow-backend/core-pv-node22.tap +30 -0
  369. package/docs/reports/unified-9.0.22/raw/flow-backend/core-pv-node24.tap +11 -0
  370. package/docs/reports/unified-9.0.22/raw/flow-backend/environment.json +7 -0
  371. package/docs/reports/unified-9.0.22/raw/flow-backend/lint.log +0 -0
  372. package/docs/reports/unified-9.0.22/raw/flow-backend/node22.tap +164 -0
  373. package/docs/reports/unified-9.0.22/raw/flow-backend/node24.tap +33 -0
  374. package/docs/reports/unified-9.0.22/raw/flow-backend/typecheck.log +0 -0
  375. package/docs/reports/unified-9.0.22/raw/history-ui/browser-runtime.json +11 -0
  376. package/docs/reports/unified-9.0.22/raw/history-ui/browser-smoke.json +49 -0
  377. package/docs/reports/unified-9.0.22/raw/history-ui/browser-smoke.stderr +0 -0
  378. package/docs/reports/unified-9.0.22/raw/history-ui/build.log +18 -0
  379. package/docs/reports/unified-9.0.22/raw/history-ui/environment.json +38 -0
  380. package/docs/reports/unified-9.0.22/raw/history-ui/lint.log +0 -0
  381. package/docs/reports/unified-9.0.22/raw/history-ui/node22.tap +144 -0
  382. package/docs/reports/unified-9.0.22/raw/history-ui/node24.tap +30 -0
  383. package/docs/reports/unified-9.0.22/raw/node22-tests-final.log +14086 -0
  384. package/docs/reports/unified-9.0.22/raw/node22-version.log +1 -0
  385. package/docs/reports/unified-9.0.22/raw/node24-tests-final.log +2356 -0
  386. package/docs/reports/unified-9.0.22/raw/node24-version.log +1 -0
  387. package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-eslint.log +0 -0
  388. package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-node22.tap +72 -0
  389. package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-node24.tap +70 -0
  390. package/docs/reports/unified-9.0.22/raw/postgresql-system/status-eslint.log +0 -0
  391. package/docs/reports/unified-9.0.22/raw/postgresql-system/typecheck.log +0 -0
  392. package/docs/reports/unified-9.0.23/MODULE_PROCESS_IMPLEMENTATION.md +43 -0
  393. package/docs/reports/unified-9.0.23/OCPP_0.4.3_ERGEBNIS.json +24 -0
  394. package/docs/reports/unified-9.0.23/OCPP_0.4.3_PRUEFBERICHT.md +50 -0
  395. package/docs/reports/unified-9.0.23/OCPP_AUTOMATISCHE_ZUORDNUNG.md +49 -0
  396. package/docs/reports/unified-9.0.23/OCPP_CM_INTEGRATION.md +31 -0
  397. package/docs/reports/unified-9.0.23/PROZESSDIAGNOSE.md +35 -0
  398. package/docs/reports/unified-9.0.23/PRUEFBERICHT.md +75 -0
  399. package/docs/reports/unified-9.0.23/UI_EMS_PROZESSGRENZE.md +36 -0
  400. package/docs/reports/unified-9.0.23/UI_PROCESS_INDEPENDENT_FOLLOWUP.md +33 -0
  401. package/docs/reports/unified-9.0.23/module-process-contract-review-node22.tap +86 -0
  402. package/docs/reports/unified-9.0.23/module-process-contract-review-node24.tap +20 -0
  403. package/docs/reports/unified-9.0.23/module-process-contract-review.md +39 -0
  404. package/docs/reports/unified-9.0.23/module-process-contract-review.tap +20 -0
  405. package/docs/reports/unified-9.0.23/module-process-final.tap +27 -0
  406. package/docs/reports/unified-9.0.23/module-process-static.json +57 -0
  407. package/docs/reports/unified-9.0.23/raw/INDEX.json +43 -0
  408. package/docs/reports/unified-9.0.23/raw/build-backend-final.log +5 -0
  409. package/docs/reports/unified-9.0.23/raw/build-frontend.log +152 -0
  410. package/docs/reports/unified-9.0.23/raw/build-installer.log +26 -0
  411. package/docs/reports/unified-9.0.23/raw/build-ui-final.log +7 -0
  412. package/docs/reports/unified-9.0.23/raw/current/evcs-stop-writer-ocpp043.txt +20 -0
  413. package/docs/reports/unified-9.0.23/raw/current/ocpp-runtime-feedback-lint.txt +1 -0
  414. package/docs/reports/unified-9.0.23/raw/current/ocpp-runtime-feedback-tests.txt +28 -0
  415. package/docs/reports/unified-9.0.23/raw/current/runtime-health-browser.json +49 -0
  416. package/docs/reports/unified-9.0.23/raw/current/runtime-health-browser.stderr.txt +0 -0
  417. package/docs/reports/unified-9.0.23/raw/current/runtime-health-lint.txt +1 -0
  418. package/docs/reports/unified-9.0.23/raw/current/runtime-health-tests.txt +27 -0
  419. package/docs/reports/unified-9.0.23/raw/current/runtime-health-types.txt +1 -0
  420. package/docs/reports/unified-9.0.23/raw/eos-production-audit.json +22 -0
  421. package/docs/reports/unified-9.0.23/raw/idle-pwa-node22.log +75 -0
  422. package/docs/reports/unified-9.0.23/raw/idle-pwa-node24.log +22 -0
  423. package/docs/reports/unified-9.0.23/raw/lint-final.log +5 -0
  424. package/docs/reports/unified-9.0.23/raw/node22-tests-final.log +14612 -0
  425. package/docs/reports/unified-9.0.23/raw/node22-version.log +1 -0
  426. package/docs/reports/unified-9.0.23/raw/node24-tests-final.log +2443 -0
  427. package/docs/reports/unified-9.0.23/raw/node24-version.log +1 -0
  428. package/docs/reports/unified-9.0.23/raw/ocpp-auto-discovery.log +21 -0
  429. package/docs/reports/unified-9.0.23/raw/ocpp-discovery-browser.json +55 -0
  430. package/docs/reports/unified-9.0.23/raw/ocpp-discovery-lifecycle-regression.log +48 -0
  431. package/docs/reports/unified-9.0.23/raw/ocpp-production-audit.json +69 -0
  432. package/docs/reports/unified-9.0.23/raw/typecheck-final.log +5 -0
  433. package/docs/reports/unified-9.0.23/raw/ui-process/discovery-review.tap +21 -0
  434. package/docs/reports/unified-9.0.23/raw/ui-process/lint.log +0 -0
  435. package/docs/reports/unified-9.0.23/raw/ui-process/node22.tap +118 -0
  436. package/docs/reports/unified-9.0.23/raw/ui-process/node24.tap +112 -0
  437. package/docs/reports/unified-9.0.23/raw/ui-process/root-typecheck.log +0 -0
  438. package/docs/reports/unified-9.0.23/raw/ui-process/typecheck.log +0 -0
  439. package/docs/reports/unified-9.0.23/raw/ui-process/unified-listen-build-node24.tap +196 -0
  440. package/docs/reports/unified-9.0.23/raw/ui-process/unified-listen-node22.tap +200 -0
  441. package/docs/reports/unified-9.0.23/raw/ui-process/web-lint.log +0 -0
  442. package/docs/reports/unified-9.0.23/raw/ui-process/web-pipeline-node22.tap +92 -0
  443. package/docs/reports/unified-9.0.23/raw/ui-process/web-pipeline-node24.tap +90 -0
  444. package/docs/reports/unified-9.0.23/ui-process-contract-review.md +30 -0
  445. package/docs/reports/unified-9.0.23/ui-process-final-review-node22.tap +50 -0
  446. package/docs/reports/unified-9.0.23/ui-process-final-review-node24.tap +14 -0
  447. package/docs/reports/unified-9.0.23/ui-process-followup-hashes.json +13 -0
  448. package/docs/reports/unified-9.0.23/ui-process-operational-review-node22.tap +30 -0
  449. package/docs/reports/unified-9.0.23/ui-process-operational-review-node24.tap +11 -0
  450. package/docs/reports/unified-9.0.23/ui-process-review-node22.tap +48 -0
  451. package/docs/reports/unified-9.0.23/ui-process-review-node24.tap +46 -0
  452. package/docs/reports/unified-9.0.24/BACKUP_INTEROP_PRUEFBERICHT.md +48 -0
  453. package/docs/reports/unified-9.0.24/KIOSK_FRONTEND_BROWSERPRUEFUNG.md +49 -0
  454. package/docs/reports/unified-9.0.24/KIOSK_UNABHAENGIGER_REVIEW.md +21 -0
  455. package/docs/reports/unified-9.0.24/OCPP_HOST_MIGRATION.md +41 -0
  456. package/docs/reports/unified-9.0.24/OCPP_NAMESPACE_REGELPFAD.md +55 -0
  457. package/docs/reports/unified-9.0.24/OCPP_UNABHAENGIGER_REVIEW.md +37 -0
  458. package/docs/reports/unified-9.0.24/OCPP_VERWALTUNG.md +33 -0
  459. package/docs/reports/unified-9.0.24/PRUEFBERICHT.md +54 -0
  460. package/docs/reports/unified-9.0.24/PUBLISH_OVERLAY_9_0_21.md +23 -0
  461. package/docs/reports/unified-9.0.24/raw/INDEX.json +43 -0
  462. package/docs/reports/unified-9.0.24/raw/backup-interop/ems-independence-node24.tap +9 -0
  463. package/docs/reports/unified-9.0.24/raw/backup-interop/final-node22.tap +175 -0
  464. package/docs/reports/unified-9.0.24/raw/backup-interop/final-node24.tap +35 -0
  465. package/docs/reports/unified-9.0.24/raw/backup-interop/focused-node22.tap +132 -0
  466. package/docs/reports/unified-9.0.24/raw/backup-interop/focused-node24.tap +27 -0
  467. package/docs/reports/unified-9.0.24/raw/backup-interop/kiosk-review-node24.tap +13 -0
  468. package/docs/reports/unified-9.0.24/raw/backup-interop/kiosk-update-snapshot-node24.tap +22 -0
  469. package/docs/reports/unified-9.0.24/raw/backup-interop/lint-source.txt +0 -0
  470. package/docs/reports/unified-9.0.24/raw/backup-interop/lint-tests.txt +0 -0
  471. package/docs/reports/unified-9.0.24/raw/backup-interop/ocpp-backup-node24.tap +10 -0
  472. package/docs/reports/unified-9.0.24/raw/backup-interop/own-source-hashes.json +12 -0
  473. package/docs/reports/unified-9.0.24/raw/backup-interop/types.txt +0 -0
  474. package/docs/reports/unified-9.0.24/raw/backup-interop/update-snapshot-node24.tap +20 -0
  475. package/docs/reports/unified-9.0.24/raw/build.log +200 -0
  476. package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser-node22.json +69 -0
  477. package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser-node22.stderr.txt +3 -0
  478. package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser.json +69 -0
  479. package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser.stderr.txt +2 -0
  480. package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-http-node22.txt +253 -0
  481. package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-http-node24.txt +52 -0
  482. package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-lint.txt +0 -0
  483. package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-types.txt +0 -0
  484. package/docs/reports/unified-9.0.24/raw/current/ocpp-lease-registration-before.txt +28 -0
  485. package/docs/reports/unified-9.0.24/raw/current/ocpp-namespace-independent-node22.txt +302 -0
  486. package/docs/reports/unified-9.0.24/raw/current/ocpp-namespace-independent-node24.txt +55 -0
  487. package/docs/reports/unified-9.0.24/raw/current/ocpp-native-generic-before.txt +25 -0
  488. package/docs/reports/unified-9.0.24/raw/current/runtime-health-browser.json +49 -0
  489. package/docs/reports/unified-9.0.24/raw/current/runtime-health-browser.stderr.txt +0 -0
  490. package/docs/reports/unified-9.0.24/raw/current/runtime-health-types.txt +0 -0
  491. package/docs/reports/unified-9.0.24/raw/eos-production-audit.json +77 -0
  492. package/docs/reports/unified-9.0.24/raw/kiosk-auth-profiles-node22.log +16 -0
  493. package/docs/reports/unified-9.0.24/raw/kiosk-auth-profiles-node24.log +14 -0
  494. package/docs/reports/unified-9.0.24/raw/kiosk-browser-node22.json +57 -0
  495. package/docs/reports/unified-9.0.24/raw/kiosk-browser-node24.json +57 -0
  496. package/docs/reports/unified-9.0.24/raw/kiosk-idle-node22.log +215 -0
  497. package/docs/reports/unified-9.0.24/raw/kiosk-idle-node24.log +42 -0
  498. package/docs/reports/unified-9.0.24/raw/lint.log +45 -0
  499. package/docs/reports/unified-9.0.24/raw/node22-tests-final.log +15517 -0
  500. package/docs/reports/unified-9.0.24/raw/node22-version.log +1 -0
  501. package/docs/reports/unified-9.0.24/raw/node24-tests-final.log +2595 -0
  502. package/docs/reports/unified-9.0.24/raw/node24-version.log +1 -0
  503. package/docs/reports/unified-9.0.24/raw/ocpp-host-node22.tap +105 -0
  504. package/docs/reports/unified-9.0.24/raw/ocpp-host-node24.tap +24 -0
  505. package/docs/reports/unified-9.0.24/raw/ocpp-host-regression-node22.tap +818 -0
  506. package/docs/reports/unified-9.0.24/raw/ocpp-host-regression-node24.tap +140 -0
  507. package/docs/reports/unified-9.0.24/raw/ocpp-hosted-mapping-browser.log +2 -0
  508. package/docs/reports/unified-9.0.24/raw/ocpp-legacy-mapping-browser.log +2 -0
  509. package/docs/reports/unified-9.0.24/raw/ocpp-namespace-control.log +49 -0
  510. package/docs/reports/unified-9.0.24/raw/publish-overlay-node22.tap +278 -0
  511. package/docs/reports/unified-9.0.24/raw/publish-overlay-node24.tap +52 -0
  512. package/docs/reports/unified-9.0.24/raw/publish-overlay-provenance-922-923.json +32 -0
  513. package/docs/reports/unified-9.0.24/raw/publish-overlay-provenance.json +19 -0
  514. package/docs/reports/unified-9.0.24/raw/typecheck.log +5 -0
  515. package/docs/unified/EMS_BEDIEN_DATENPUNKTE_9_0_22.md +51 -0
  516. package/docs/unified/HISTORY_UI_9_0_22.md +75 -0
  517. package/docs/unified/POSTGRESQL_9_0_22.md +89 -0
  518. package/io-package.json +16 -17
  519. package/modules/backup/README.md +10 -0
  520. package/modules/backup/RECOVERY-9.0.22.md +59 -0
  521. package/modules/backup/admin/index.html +2 -1
  522. package/modules/backup/admin/index.js +17 -1
  523. package/modules/backup/build/config.js +2 -0
  524. package/modules/backup/build/coverage.js +64 -0
  525. package/modules/backup/build/creators.js +22 -17
  526. package/modules/backup/build/databaseTargets.js +42 -0
  527. package/modules/backup/build/index.js +47 -4
  528. package/modules/backup/build/influxIntegrity.js +159 -0
  529. package/modules/backup/build/postgresHistory.js +91 -0
  530. package/modules/backup/build/preflight.js +3 -8
  531. package/modules/backup/build/publicTrust.js +46 -0
  532. package/modules/backup/build/restore-cli.js +72 -1
  533. package/modules/backup/build/storageRetention.js +26 -0
  534. package/modules/backup/build/worker.js +18 -1
  535. package/modules/backup/src/config.ts +2 -0
  536. package/modules/backup/src/coverage.ts +50 -0
  537. package/modules/backup/src/creators.ts +20 -17
  538. package/modules/backup/src/databaseTargets.ts +45 -0
  539. package/modules/backup/src/index.ts +37 -4
  540. package/modules/backup/src/influxIntegrity.ts +125 -0
  541. package/modules/backup/src/postgresHistory.ts +66 -0
  542. package/modules/backup/src/preflight.ts +3 -10
  543. package/modules/backup/src/publicTrust.ts +34 -0
  544. package/modules/backup/src/restore-cli.ts +55 -4
  545. package/modules/backup/src/storageRetention.ts +20 -0
  546. package/modules/backup/src/types.ts +5 -0
  547. package/modules/backup/src/worker.ts +18 -2
  548. package/modules/backup/test/completeness.test.cjs +193 -0
  549. package/modules/backup/test/hosted.test.cjs +43 -3
  550. package/modules/backup/test/influx-real.test.cjs +75 -0
  551. package/modules/backup/test/lifecycle.test.cjs +7 -5
  552. package/modules/backup/test/ocpp-coverage.test.cjs +152 -0
  553. package/modules/devices/admin/index.html +1 -1
  554. package/modules/eebus/admin/index.html +1 -1
  555. package/modules/ocpp/LICENSE +21 -0
  556. package/modules/ocpp/README.md +61 -0
  557. package/modules/ocpp/admin/config-fields.json +353 -0
  558. package/modules/ocpp/admin/index.html +52 -0
  559. package/modules/ocpp/admin/index.js +228 -0
  560. package/modules/ocpp/admin/style.css +27 -0
  561. package/modules/ocpp/build/index.js +401 -0
  562. package/modules/ocpp/build/operationGuard.js +26 -0
  563. package/modules/ocpp/build/server.js +155 -0
  564. package/modules/ocpp/eslint.config.mjs +13 -0
  565. package/modules/ocpp/index.js +3 -0
  566. package/modules/ocpp/native-defaults.json +44 -0
  567. package/modules/ocpp/ocpp/common.js +646 -0
  568. package/modules/ocpp/ocpp/compact.js +332 -0
  569. package/modules/ocpp/ocpp/configuration.js +364 -0
  570. package/modules/ocpp/ocpp/eos-contract.js +149 -0
  571. package/modules/ocpp/ocpp/freshness.d.ts +10 -0
  572. package/modules/ocpp/ocpp/freshness.js +272 -0
  573. package/modules/ocpp/ocpp/schemas/NOTICE.md +17 -0
  574. package/modules/ocpp/ocpp/schemas/ocpp2_0_1_official.json +1 -0
  575. package/modules/ocpp/ocpp/schemas/ocpp2_1_official.json +1 -0
  576. package/modules/ocpp/ocpp/server.js +3 -0
  577. package/modules/ocpp/ocpp/v16.js +213 -0
  578. package/modules/ocpp/ocpp/v201.js +4 -0
  579. package/modules/ocpp/ocpp/v21.js +4 -0
  580. package/modules/ocpp/ocpp/v2base.js +255 -0
  581. package/modules/ocpp/package.json +11 -0
  582. package/modules/ocpp/provenance.json +33 -0
  583. package/modules/ocpp/runtime.d.ts +16 -0
  584. package/modules/ocpp/runtime.js +3391 -0
  585. package/modules/ocpp/src/index.ts +463 -0
  586. package/modules/ocpp/src/operationGuard.ts +29 -0
  587. package/modules/ocpp/src/server.ts +193 -0
  588. package/modules/ocpp/test/configuration-runtime.test.js +786 -0
  589. package/modules/ocpp/test/core.test.js +772 -0
  590. package/modules/ocpp/test/eos-contract.test.js +67 -0
  591. package/modules/ocpp/test/hosted.test.cjs +165 -0
  592. package/modules/ocpp/tsconfig.json +7 -0
  593. package/modules/ocpp/validation/manifest.json +36 -0
  594. package/modules/ocpp/validation/node22-tests.log +525 -0
  595. package/modules/ocpp/validation/node24-tests.log +92 -0
  596. package/package.json +27 -11
  597. package/public/eos-migration/index.html +1 -1
  598. package/public/eos-migration/index.js +2 -2
  599. package/public/eos-runtime/index.html +35 -0
  600. package/public/eos-runtime/index.js +111 -0
  601. package/public/eos-runtime/style.css +18 -0
  602. package/release-manifests/unified/build-environment.cdx.json +767 -131
  603. package/release-manifests/unified/files.json +612 -207
  604. package/release-manifests/unified/obsolete-admin-assets.json +210 -6
  605. package/release-manifests/unified/runtime.cdx.json +871 -143
  606. package/release-manifests/unified/validation.json +15 -15
  607. package/reports/unified/ocpp-pure-pv-9.0.22/PRUEFVERMERK.md +35 -0
  608. package/reports/unified/ocpp-pure-pv-9.0.22/raw/auto-pv-phases.log +1 -0
  609. package/reports/unified/ocpp-pure-pv-9.0.22/raw/control-tests.log +11 -0
  610. package/reports/unified/ocpp-pure-pv-9.0.22/raw/ocpp-stability.log +1 -0
  611. package/reports/unified/ocpp-pure-pv-9.0.22/raw/rc60.log +1 -0
  612. package/reports/unified/tariff-energy-flow-9.0.22/PRUEFVERMERK.md +44 -0
  613. package/reports/unified/tariff-energy-flow-9.0.22/raw/focused-tests.log +37 -0
  614. package/reports/unified/tariff-energy-flow-9.0.22/raw/grid-charge-policy.log +1 -0
  615. package/reports/unified/tariff-energy-flow-9.0.22/raw/status-truth.log +1 -0
  616. package/tools/eos-release-check.cjs +5 -0
  617. package/tools/eos-release-manifest.cjs +3 -3
  618. package/tools/eos-sbom-vendored.cjs +2 -1
  619. package/tools/system/eos-postgresql-setup.cjs +409 -0
  620. package/tsconfig.eos-history-backup-scope.json +9 -0
  621. package/tsconfig.eos-postgres-system.json +15 -0
  622. package/ui/admin/react/assets/index-wHWXfD_g.js +13 -0
  623. package/ui/admin/react/index.html +1 -1
  624. package/ui/ems/consumers/evcs.js +11 -7
  625. package/ui/ems/datapoints.js +14 -5
  626. package/ui/ems/engine.js +4 -1
  627. package/ui/ems/modules/charging-management.js +193 -63
  628. package/ui/ems/modules/core-limits.js +15 -20
  629. package/ui/ems/modules/storage-control.js +8 -6
  630. package/ui/ems/modules/tarif-vis.js +7 -2
  631. package/ui/ems/modules/tariff-status.js +19 -1
  632. package/ui/eslint.postgres-history.config.mjs +9 -0
  633. package/ui/io-package.json +5 -1
  634. package/ui/lib/ems-control-values.js +64 -0
  635. package/ui/lib/flow-measurement.js +72 -0
  636. package/ui/lib/hosted-adapter.js +12 -1
  637. package/ui/lib/influx-history-runtime.js +66 -24
  638. package/ui/lib/installer-lifecycle.js +4 -2
  639. package/ui/lib/ocpp-auto-discovery.js +397 -0
  640. package/ui/lib/ocpp-limit-feedback.js +166 -0
  641. package/ui/lib/partner-runtime.js +35 -2
  642. package/ui/lib/partner-websocket.js +4 -1
  643. package/ui/lib/postgres-history-config.js +57 -0
  644. package/ui/lib/postgres-history.js +344 -0
  645. package/ui/lib/runtime-proxy-html.js +34 -1
  646. package/ui/lib/smarthome-device-controls.js +4 -1
  647. package/ui/lib/ui-access-policy.js +39 -6
  648. package/ui/main.js +392 -222
  649. package/ui/package.json +1 -1
  650. package/ui/tsconfig.postgres-history.json +4 -0
  651. package/ui/www/app.js +106 -152
  652. package/ui/www/auth.js +36 -10
  653. package/ui/www/charging-diagnostics-appcenter.js +1 -0
  654. package/ui/www/customer-tariff.js +1 -0
  655. package/ui/www/dashboard-lp-status.js +1 -0
  656. package/ui/www/dc-station-display.js +1 -0
  657. package/ui/www/ems-apps.js +48 -8
  658. package/ui/www/energy-origin-appcenter.js +1 -0
  659. package/ui/www/energy-origin-ledger-view.js +1 -0
  660. package/ui/www/eos-kiosk-settings.js +174 -0
  661. package/ui/www/eos-session-idle.js +40 -6
  662. package/ui/www/eos-updates.js +1 -0
  663. package/ui/www/index.html +2 -1
  664. package/ui/www/license.js +1 -0
  665. package/ui/www/licenses/smarthome-markdown-components.json +157 -157
  666. package/ui/www/live-display.js +4 -2
  667. package/ui/www/login.js +19 -7
  668. package/ui/www/manifest.webmanifest +3 -3
  669. package/ui/www/netoperator-appcenter.js +1 -0
  670. package/ui/www/netoperator.js +1 -0
  671. package/ui/www/operating-strategies-appcenter.js +1 -0
  672. package/ui/www/operating-strategies-rule-builder.js +1 -0
  673. package/ui/www/power-measurements.js +27 -2
  674. package/ui/www/pwa.js +1 -0
  675. package/ui/www/runtime-base.js +1 -0
  676. package/ui/www/settings.html +13 -1
  677. package/ui/www/smarthome-activation.js +1 -0
  678. package/ui/www/smarthome-alias-config.js +1 -0
  679. package/ui/www/smarthome-custom-config.js +1 -0
  680. package/ui/www/smarthome-custom-views.js +1 -0
  681. package/ui/www/smarthome-device-categories.js +1 -0
  682. package/ui/www/smarthome-device-config.js +1 -0
  683. package/ui/www/smarthome-device-controls.js +1 -0
  684. package/ui/www/smarthome-feedback.js +1 -0
  685. package/ui/www/smarthome-layout-editor.js +1 -0
  686. package/ui/www/smarthome-presentation.js +1 -0
  687. package/ui/www/smarthome-setup.js +1 -0
  688. package/ui/www/smarthome-touch.js +1 -0
  689. package/ui/www/storagefarm-dispatch.js +1 -0
  690. package/ui/www/storagefarm-summary.js +1 -0
  691. package/ui/www/tariff-display.js +62 -2
  692. package/ui/admin/react/assets/index-BJO3q7oe.js +0 -13
@@ -0,0 +1,786 @@
1
+ 'use strict';
2
+
3
+ const test = require('node:test');
4
+ const assert = require('node:assert/strict');
5
+ const { configurationStateKey2 } = require('../ocpp/configuration');
6
+
7
+ class StubAdapter {
8
+ constructor() {
9
+ this.namespace = 'ocpp21.0';
10
+ this.instance = 0;
11
+ this.config = {
12
+ connectorDetails: false,
13
+ createTechnicalAliases: false,
14
+ cleanupLegacyObjects: false,
15
+ cleanupLegacySubfolders: false,
16
+ configurationWriteEnabled: true,
17
+ allowConfigurationDuringCharging: false,
18
+ autoConfigurationRefresh: false,
19
+ configurationRefreshDelaySec: 15,
20
+ configurationReportTimeoutSec: 120,
21
+ callTimeoutSec: 5,
22
+ heartbeatIntervalSec: 300,
23
+ smartChargingMinIntervalMs: 1000,
24
+ smartChargingDeadbandW: 100,
25
+ smartChargingDeadbandA: 0.2,
26
+ smartChargingConnectorId: 1,
27
+ minimumChargingCurrentA: 6,
28
+ nominalVoltageV: 230,
29
+ zeroLimitBehavior: 'keepLast',
30
+ };
31
+ this.log = { debug() {}, info() {}, warn() {}, error() {} };
32
+ this.objects = new Map();
33
+ this.states = new Map();
34
+ }
35
+
36
+ on() {}
37
+ async setObjectNotExistsAsync(id, obj) {
38
+ if (!this.objects.has(id)) this.objects.set(id, structuredClone(obj));
39
+ }
40
+ async extendObjectAsync(id, patch) {
41
+ const current = this.objects.get(id) || {};
42
+ const currentNative = current.native || {};
43
+ const patchNative = structuredClone(patch.native || {});
44
+ const mergedNative = { ...currentNative, ...patchNative };
45
+ if (currentNative.ocppConfiguration || patchNative.ocppConfiguration) {
46
+ mergedNative.ocppConfiguration = {
47
+ ...(currentNative.ocppConfiguration || {}),
48
+ ...(patchNative.ocppConfiguration || {}),
49
+ };
50
+ }
51
+ this.objects.set(id, {
52
+ ...current,
53
+ ...structuredClone(patch),
54
+ common: { ...(current.common || {}), ...structuredClone(patch.common || {}) },
55
+ native: mergedNative,
56
+ });
57
+ }
58
+ async getObjectAsync(id) { return this.objects.get(id); }
59
+ async getObjectViewAsync(_design, _search, options = {}) {
60
+ const startkey = String(options.startkey || '');
61
+ const endkey = String(options.endkey || '\uffff');
62
+ const rows = [];
63
+ for (const [id, value] of this.objects.entries()) {
64
+ const fullId = id.startsWith(`${this.namespace}.`) ? id : `${this.namespace}.${id}`;
65
+ if (fullId < startkey || fullId > endkey) continue;
66
+ rows.push({ id: fullId, value: structuredClone(value) });
67
+ }
68
+ rows.sort((a, b) => a.id.localeCompare(b.id));
69
+ return { rows };
70
+ }
71
+ async setStateAsync(id, state) { this.states.set(id, { ...state }); }
72
+ async getStateAsync(id) { return this.states.get(id); }
73
+ async delObjectAsync() {}
74
+ async delForeignObjectAsync() {}
75
+ async setForeignObjectNotExistsAsync() {}
76
+ async getForeignObjectAsync() { return undefined; }
77
+ }
78
+
79
+ const { createOcppRuntime } = require('../runtime');
80
+ const Runtime = createOcppRuntime(StubAdapter);
81
+ const createAdapter = options => new Runtime(options);
82
+
83
+ function prepareAdapter(identity, protocol, responder) {
84
+ const adapter = createAdapter({});
85
+ adapter._identityStructureReady.add(identity);
86
+ adapter._connectorCleanupDone.add(identity);
87
+ adapter._aliasDone.add(identity);
88
+ adapter._stateToRawIdentity.set(identity, identity);
89
+ const calls = [];
90
+ const client = {
91
+ async call(method, payload) {
92
+ calls.push({ method, payload: structuredClone(payload) });
93
+ return responder(method, payload, calls);
94
+ },
95
+ async close() {},
96
+ };
97
+ adapter._indexClient(identity, protocol, client, identity);
98
+ return { adapter, calls, client };
99
+ }
100
+
101
+ test('OCPP 1.6 configuration inventory stays flat and writable values use ChangeConfiguration', async () => {
102
+ let heartbeat = '60';
103
+ const { adapter, calls } = prepareAdapter('station16', 'ocpp1.6', async (method, payload) => {
104
+ if (method === 'GetConfiguration') {
105
+ return { configurationKey: [
106
+ { key: 'HeartbeatInterval', readonly: false, value: heartbeat },
107
+ { key: 'NumberOfConnectors', readonly: true, value: '2' },
108
+ ] };
109
+ }
110
+ if (method === 'ChangeConfiguration') {
111
+ assert.equal(payload.key, 'HeartbeatInterval');
112
+ heartbeat = payload.value;
113
+ return { status: 'Accepted' };
114
+ }
115
+ throw new Error(`Unexpected call ${method}`);
116
+ });
117
+
118
+ await adapter._refreshConfiguration('station16');
119
+ const stateId = 'station16.configuration.HeartbeatInterval';
120
+ assert.equal(adapter.states.get(stateId).val, 60);
121
+ assert.equal(adapter.objects.get(stateId).common.write, true);
122
+ assert.equal(adapter.objects.get('station16.configuration.NumberOfConnectors').common.write, false);
123
+ assert.equal([...adapter.objects.keys()].some((id) => id.startsWith(`${stateId}.`)), false);
124
+
125
+ await adapter._writeConfigurationValue('station16', stateId, 120);
126
+ assert.equal(adapter.states.get(stateId).val, 120);
127
+ assert.equal(adapter.states.get('station16.configuration.lastChangeStatus').val, 'Accepted');
128
+ assert.deepEqual(calls.map((entry) => entry.method), ['GetConfiguration', 'ChangeConfiguration']);
129
+ });
130
+
131
+ test('OCPP 2.x configuration inventory completes through NotifyReport and writes with SetVariables', async () => {
132
+ const component = { name: 'ChargingStation' };
133
+ const variable = { name: 'HeartbeatInterval' };
134
+ const { adapter, calls } = prepareAdapter('station21', 'ocpp2.1', async (method) => {
135
+ if (method === 'GetBaseReport') return { status: 'Accepted' };
136
+ if (method === 'SetVariables') {
137
+ return { setVariableResult: [{
138
+ attributeStatus: 'Accepted',
139
+ attributeType: 'Actual',
140
+ component,
141
+ variable,
142
+ }] };
143
+ }
144
+ throw new Error(`Unexpected call ${method}`);
145
+ });
146
+
147
+ await adapter._refreshConfiguration('station21');
148
+ const requestId = calls[0].payload.requestId;
149
+ assert.equal(adapter.states.get('station21.configuration.reportInProgress').val, true);
150
+ await adapter.ingestNotifyReport('station21', 'ocpp2.1', {
151
+ requestId,
152
+ generatedAt: new Date().toISOString(),
153
+ seqNo: 0,
154
+ tbc: false,
155
+ reportData: [{
156
+ component,
157
+ variable,
158
+ variableAttribute: [{ type: 'Actual', value: '300', mutability: 'ReadWrite', persistent: true }],
159
+ variableCharacteristics: { dataType: 'integer', unit: 's', minLimit: 10, maxLimit: 3600 },
160
+ }],
161
+ });
162
+
163
+ const stateKey = configurationStateKey2(component, variable, 'Actual');
164
+ const stateId = `station21.configuration.${stateKey}`;
165
+ assert.equal(adapter.states.get(stateId).val, 300);
166
+ assert.equal(adapter.states.get('station21.configuration.reportInProgress').val, false);
167
+ assert.equal(adapter.states.get('station21.configuration.status').val, 'ready');
168
+ assert.equal(adapter.states.get('station21.configuration.count').val, 1);
169
+ assert.equal(adapter.objects.get(stateId).common.write, true);
170
+
171
+ await adapter._writeConfigurationValue('station21', stateId, 180);
172
+ assert.equal(adapter.states.get(stateId).val, 180);
173
+ assert.deepEqual(calls.map((entry) => entry.method), ['GetBaseReport', 'SetVariables']);
174
+ });
175
+
176
+ test('rejected configuration writes restore the last station-confirmed value', async () => {
177
+ const { adapter } = prepareAdapter('stationReject', 'ocpp1.6', async (method) => {
178
+ if (method === 'GetConfiguration') return { configurationKey: [{ key: 'HeartbeatInterval', readonly: false, value: '60' }] };
179
+ if (method === 'ChangeConfiguration') return { status: 'Rejected' };
180
+ throw new Error(`Unexpected call ${method}`);
181
+ });
182
+ await adapter._refreshConfiguration('stationReject');
183
+ const stateId = 'stationReject.configuration.HeartbeatInterval';
184
+ await assert.rejects(adapter._writeConfigurationValue('stationReject', stateId, 120), /Rejected/);
185
+ assert.equal(adapter.states.get(stateId).val, 60);
186
+ assert.equal(adapter.states.get('stationReject.configuration.status').val, 'write-error');
187
+ });
188
+
189
+ test('values missing from a later complete inventory remain visible but become stale and read-only', async () => {
190
+ let round = 0;
191
+ const { adapter } = prepareAdapter('stationStale', 'ocpp1.6', async (method) => {
192
+ if (method !== 'GetConfiguration') throw new Error(`Unexpected call ${method}`);
193
+ round++;
194
+ return round === 1
195
+ ? { configurationKey: [
196
+ { key: 'HeartbeatInterval', readonly: false, value: '60' },
197
+ { key: 'MeterValueSampleInterval', readonly: false, value: '10' },
198
+ ] }
199
+ : { configurationKey: [{ key: 'HeartbeatInterval', readonly: false, value: '120' }] };
200
+ });
201
+
202
+ await adapter._refreshConfiguration('stationStale');
203
+ await adapter._refreshConfiguration('stationStale');
204
+
205
+ const staleId = 'stationStale.configuration.MeterValueSampleInterval';
206
+ const staleObject = adapter.objects.get(staleId);
207
+ assert.equal(staleObject.common.write, false);
208
+ assert.equal(staleObject.native.ocppConfiguration.stale, true);
209
+ await assert.rejects(adapter._writeConfigurationValue('stationStale', staleId, 20), /read-only/);
210
+ assert.equal(adapter.states.get(staleId).val, 10);
211
+ assert.equal(adapter.states.get('stationStale.configuration.count').val, 1);
212
+ });
213
+
214
+ test('sensitive configuration values are write-only locally and never persisted in clear text', async () => {
215
+ let stationSecret = 'secret-from-station';
216
+ const { adapter, calls } = prepareAdapter('stationSecret', 'ocpp1.6', async (method, payload) => {
217
+ if (method === 'GetConfiguration') {
218
+ return { configurationKey: [{ key: 'AuthorizationKey', readonly: false, value: stationSecret }] };
219
+ }
220
+ if (method === 'ChangeConfiguration') {
221
+ stationSecret = payload.value;
222
+ return { status: 'Accepted' };
223
+ }
224
+ throw new Error(`Unexpected call ${method}`);
225
+ });
226
+
227
+ await adapter._refreshConfiguration('stationSecret');
228
+ const stateId = 'stationSecret.configuration.AuthorizationKey';
229
+ assert.equal(adapter.states.get(stateId).val, '');
230
+ assert.equal(adapter.objects.get(stateId).common.read, false);
231
+ assert.equal(adapter.objects.get(stateId).common.write, true);
232
+ assert.equal(JSON.stringify(adapter.objects.get(stateId)).includes('secret-from-station'), false);
233
+ assert.equal(JSON.stringify([...adapter.states.entries()]).includes('secret-from-station'), false);
234
+
235
+ await adapter._writeConfigurationValue('stationSecret', stateId, 'replacement-secret');
236
+ assert.equal(calls.find((entry) => entry.method === 'ChangeConfiguration').payload.value, 'replacement-secret');
237
+ assert.equal(adapter.states.get(stateId).val, '');
238
+ assert.equal(JSON.stringify(adapter.objects.get(stateId)).includes('replacement-secret'), false);
239
+ });
240
+
241
+ test('RebootRequired stays latched until a later BootNotification and never sends Reset', async () => {
242
+ let writeCount = 0;
243
+ const { adapter, calls } = prepareAdapter('stationReboot', 'ocpp1.6', async (method) => {
244
+ if (method === 'GetConfiguration') {
245
+ return { configurationKey: [{ key: 'HeartbeatInterval', readonly: false, value: '60' }] };
246
+ }
247
+ if (method === 'ChangeConfiguration') {
248
+ writeCount++;
249
+ return { status: writeCount === 1 ? 'RebootRequired' : 'Accepted' };
250
+ }
251
+ throw new Error(`Unexpected call ${method}`);
252
+ });
253
+
254
+ await adapter._refreshConfiguration('stationReboot');
255
+ const stateId = 'stationReboot.configuration.HeartbeatInterval';
256
+ await adapter._writeConfigurationValue('stationReboot', stateId, 120);
257
+ assert.equal(adapter.states.get('stationReboot.configuration.rebootRequired').val, true);
258
+ await adapter._writeConfigurationValue('stationReboot', stateId, 180);
259
+ assert.equal(adapter.states.get('stationReboot.configuration.rebootRequired').val, true);
260
+ assert.equal(calls.some((entry) => entry.method === 'Reset'), false);
261
+
262
+ adapter._noteBoot('stationReboot', 300);
263
+ await adapter.runtimeIndex.get('stationReboot').deferredTail;
264
+ assert.equal(adapter.states.get('stationReboot.configuration.rebootRequired').val, false);
265
+ assert.equal(calls.some((entry) => entry.method === 'Reset'), false);
266
+ });
267
+
268
+ test('configuration refresh uses the shared outbound command slot', async () => {
269
+ let releaseBlocker;
270
+ const blocker = new Promise((resolve) => { releaseBlocker = resolve; });
271
+ const { adapter, calls } = prepareAdapter('stationQueue', 'ocpp1.6', async (method) => {
272
+ if (method === 'GetConfiguration') return { configurationKey: [] };
273
+ throw new Error(`Unexpected call ${method}`);
274
+ });
275
+ const entry = adapter.runtimeIndex.get('stationQueue');
276
+ entry.outboundControlTail = blocker;
277
+
278
+ const refresh = adapter._refreshConfiguration('stationQueue');
279
+ await new Promise((resolve) => setImmediate(resolve));
280
+ assert.equal(calls.length, 0, 'refresh must wait for the existing station control operation');
281
+ releaseBlocker();
282
+ await refresh;
283
+ assert.deepEqual(calls.map((item) => item.method), ['GetConfiguration']);
284
+ });
285
+
286
+ test('configuration writes fail safely while a multipart inventory is still in progress', async () => {
287
+ const { adapter } = prepareAdapter('stationBusy', 'ocpp1.6', async (method) => {
288
+ if (method === 'GetConfiguration') return { configurationKey: [{ key: 'HeartbeatInterval', readonly: false, value: '60' }] };
289
+ throw new Error(`Unexpected call ${method}`);
290
+ });
291
+ await adapter._refreshConfiguration('stationBusy');
292
+ const stateId = 'stationBusy.configuration.HeartbeatInterval';
293
+ const entry = adapter.runtimeIndex.get('stationBusy');
294
+ entry.configurationRefreshInFlight = true;
295
+ await assert.rejects(adapter._writeConfigurationValue('stationBusy', stateId, 120), /still in progress/);
296
+ assert.equal(adapter.states.get(stateId).val, 60);
297
+ });
298
+
299
+ test('partial OCPP 2.x inventories stay read-only after timeout until a complete refresh succeeds', async () => {
300
+ const component = { name: 'ClockCtrlr' };
301
+ const variable = { name: 'TimeOffset' };
302
+ const { adapter, calls } = prepareAdapter('stationPartial', 'ocpp2.1', async (method) => {
303
+ if (method === 'GetBaseReport') return { status: 'Accepted' };
304
+ throw new Error(`Unexpected call ${method}`);
305
+ });
306
+
307
+ await adapter._refreshConfiguration('stationPartial');
308
+ const firstRequestId = calls[0].payload.requestId;
309
+ await adapter.ingestNotifyReport('stationPartial', 'ocpp2.1', {
310
+ requestId: firstRequestId,
311
+ generatedAt: new Date().toISOString(),
312
+ seqNo: 0,
313
+ tbc: true,
314
+ reportData: [{
315
+ component,
316
+ variable,
317
+ variableAttribute: [{ type: 'Actual', value: '+01:00', mutability: 'ReadWrite', persistent: true }],
318
+ variableCharacteristics: { dataType: 'string', supportsMonitoring: false },
319
+ }],
320
+ });
321
+
322
+ const stateKey = configurationStateKey2(component, variable, 'Actual');
323
+ const stateId = `stationPartial.configuration.${stateKey}`;
324
+ assert.equal(adapter.objects.get(stateId).common.write, false);
325
+ assert.equal(adapter.objects.get(stateId).native.ocppConfiguration.inventoryPending, true);
326
+
327
+ const entry = adapter.runtimeIndex.get('stationPartial');
328
+ entry.configurationReportDeadlineAt = Date.now() - 1;
329
+ await adapter._watchdogCycle();
330
+ assert.equal(entry.configurationRefreshInFlight, false);
331
+ assert.equal(adapter.states.get('stationPartial.configuration.status').val, 'timeout');
332
+ assert.equal(adapter.objects.get(stateId).common.write, false);
333
+ await assert.rejects(adapter._writeConfigurationValue('stationPartial', stateId, '+02:00'), /read-only/);
334
+
335
+ await adapter._refreshConfiguration('stationPartial');
336
+ const secondRequestId = calls[1].payload.requestId;
337
+ await adapter.ingestNotifyReport('stationPartial', 'ocpp2.1', {
338
+ requestId: secondRequestId,
339
+ generatedAt: new Date().toISOString(),
340
+ seqNo: 0,
341
+ tbc: false,
342
+ reportData: [{
343
+ component,
344
+ variable,
345
+ variableAttribute: [{ type: 'Actual', value: '+01:00', mutability: 'ReadWrite', persistent: true }],
346
+ variableCharacteristics: { dataType: 'string', supportsMonitoring: false },
347
+ }],
348
+ });
349
+ assert.equal(adapter.objects.get(stateId).common.write, true);
350
+ assert.equal(adapter.objects.get(stateId).native.ocppConfiguration.inventoryPending, false);
351
+ });
352
+
353
+ test('configuration objects retained across an adapter restart are retired by the next complete inventory', async () => {
354
+ const first = prepareAdapter('stationRestart', 'ocpp1.6', async (method) => {
355
+ if (method !== 'GetConfiguration') throw new Error(`Unexpected call ${method}`);
356
+ return { configurationKey: [
357
+ { key: 'HeartbeatInterval', readonly: false, value: '60' },
358
+ { key: 'RemovedAfterFirmwareUpdate', readonly: false, value: '1' },
359
+ ] };
360
+ });
361
+ await first.adapter._refreshConfiguration('stationRestart');
362
+
363
+ const second = prepareAdapter('stationRestart', 'ocpp1.6', async (method) => {
364
+ if (method !== 'GetConfiguration') throw new Error(`Unexpected call ${method}`);
365
+ return { configurationKey: [{ key: 'HeartbeatInterval', readonly: false, value: '120' }] };
366
+ });
367
+ for (const [id, object] of first.adapter.objects.entries()) {
368
+ second.adapter.objects.set(id, structuredClone(object));
369
+ }
370
+
371
+ await second.adapter._refreshConfiguration('stationRestart');
372
+ const retiredId = 'stationRestart.configuration.RemovedAfterFirmwareUpdate';
373
+ const retiredObject = second.adapter.objects.get(retiredId);
374
+ assert.equal(retiredObject.common.write, false);
375
+ assert.equal(retiredObject.native.ocppConfiguration.stale, true);
376
+ await assert.rejects(second.adapter._writeConfigurationValue('stationRestart', retiredId, 2), /read-only/);
377
+ });
378
+
379
+ test('configuration operations are blocked during charging unless explicitly enabled', async () => {
380
+ const { adapter, calls } = prepareAdapter('stationCharging', 'ocpp1.6', async (method) => {
381
+ if (method === 'GetConfiguration') return { configurationKey: [] };
382
+ throw new Error(`Unexpected call ${method}`);
383
+ });
384
+ const entry = adapter.runtimeIndex.get('stationCharging');
385
+ entry.transactionActive = true;
386
+ await assert.rejects(adapter._refreshConfiguration('stationCharging'), /disabled during an active charging transaction/);
387
+ assert.equal(calls.length, 0);
388
+ assert.equal(adapter.states.get('stationCharging.configuration.status').val, 'busy-charging');
389
+
390
+ adapter.config.allowConfigurationDuringCharging = true;
391
+ await adapter._refreshConfiguration('stationCharging');
392
+ assert.deepEqual(calls.map((item) => item.method), ['GetConfiguration']);
393
+ });
394
+
395
+ test('EOS two-port runtime publishes sum, does not erase another charging connector', async()=>{
396
+ const {adapter}=prepareAdapter('multi','ocpp1.6',async()=>({status:'Accepted'}));
397
+ const entry=adapter.runtimeIndex.get('multi');
398
+ entry.connectors.add('1:1'); entry.connectors.add('1:2');
399
+ const now=Date.now(), metric=val=>({powerW:{val,category:'realtime'}});
400
+ await adapter._publishScopedMeter('multi',1,1,metric(4000),now,now);
401
+ assert.equal(adapter.states.get('multi.health.dataFresh').val,false);
402
+ await adapter._publishScopedMeter('multi',1,2,metric(3000),now,now);
403
+ assert.equal(adapter.states.get('multi.measurements.powerW').val,7000);
404
+ await adapter._noteTransaction('multi',{type:'Stop',evseId:1,connectorId:2,txId:'2'});
405
+ assert.equal(adapter.states.get('multi.measurements.powerW').val,4000);
406
+ assert.equal(adapter.states.get('multi.health.dataFresh').val,true);
407
+ });
408
+ test('EOS wire command keeps stable profile ID and sends zero after positive limit',async()=>{
409
+ const {adapter,calls,client}=prepareAdapter('cp','ocpp1.6',async()=>({status:'Accepted'}));
410
+ await adapter._applySmartCharging('cp',4200,'W',3);
411
+ await adapter._applySmartCharging('cp',0,'W',3);
412
+ assert.equal(calls.length,2);
413
+ const profiles=calls.map(c=>c.payload.csChargingProfiles);
414
+ assert.equal(profiles[0].chargingProfileId,profiles[1].chargingProfileId);
415
+ assert.equal(profiles[1].chargingSchedule.chargingSchedulePeriod[0].limit,0);
416
+ assert.equal(adapter.states.get('cp.control.appliedChargeLimitValid').val,true);
417
+ adapter._indexClient('cp','ocpp1.6',client,'cp');
418
+ await adapter._applySmartCharging('cp',0,'W',3);
419
+ assert.equal(calls.length,3);
420
+ });
421
+ test('EOS rejected charging profile cannot become confirmed',async()=>{
422
+ const {adapter}=prepareAdapter('cp','ocpp2.1',async()=>({status:'Rejected'}));
423
+ await assert.rejects(adapter._applySmartCharging('cp',4200,'W',3),/Rejected/);
424
+ assert.equal(adapter.runtimeIndex.get('cp').lastSmartCharging,undefined);
425
+ });
426
+
427
+ const chargeStatus = (adapter, id = 'cp') => JSON.parse(adapter.states.get(`${id}.control.chargeLimitStatus`).val);
428
+ const flushPublication = async (adapter, id = 'cp') => { await adapter._chargeLimitPublications.get(id); };
429
+
430
+ test('atomic profile status correlates requested/applied watts with current session and acceptance time', async () => {
431
+ const { adapter, calls } = prepareAdapter('cp', 'ocpp2.1', async () => ({ status: 'Accepted' }));
432
+ await flushPublication(adapter);
433
+ assert.equal(chargeStatus(adapter).valid, false);
434
+ assert.equal(chargeStatus(adapter).reason, 'connected-awaiting-profile');
435
+ await adapter._queueSmartCharging('cp', 4200, 'W', 3);
436
+ const first = chargeStatus(adapter);
437
+ assert.equal(first.schema, 1);
438
+ assert.equal(first.valid, true);
439
+ assert.equal(first.requestedW, 4200);
440
+ assert.equal(first.appliedW, 4200);
441
+ assert.equal(first.sessionId, adapter.states.get('cp.info.sessionId').val);
442
+ assert.ok(first.appliedAtMs > 0 && first.appliedAtMs <= first.updatedAtMs);
443
+ await adapter._queueSmartCharging('cp', 4250, 'W', 3);
444
+ const unchanged = chargeStatus(adapter);
445
+ assert.equal(calls.length, 1);
446
+ assert.equal(unchanged.requestedW, 4250);
447
+ assert.equal(unchanged.appliedW, 4200);
448
+ assert.equal(unchanged.appliedAtMs, first.appliedAtMs);
449
+ await adapter._recordControlResult('cp', 'ChangeAvailability', { status: 'Accepted' });
450
+ await adapter._recordControlResult('cp', 'GetConfiguration', null, new Error('unrelated failure'));
451
+ assert.deepEqual(chargeStatus(adapter), unchanged);
452
+ });
453
+
454
+ test('pending command invalidates confirmation before its response and a reduction to zero remains zero', async () => {
455
+ let resolveCall;
456
+ const { adapter } = prepareAdapter('cp', 'ocpp1.6', async () => new Promise(resolve => { resolveCall = resolve; }));
457
+ const pending = adapter._queueSmartCharging('cp', 0, 'W', 3);
458
+ while (!resolveCall) await new Promise(resolve => setImmediate(resolve));
459
+ assert.equal(chargeStatus(adapter).valid, false);
460
+ assert.equal(chargeStatus(adapter).requestedW, 0);
461
+ assert.equal(chargeStatus(adapter).appliedW, null);
462
+ resolveCall({ status: 'Accepted' });
463
+ await pending;
464
+ assert.equal(chargeStatus(adapter).valid, true);
465
+ assert.equal(chargeStatus(adapter).appliedW, 0);
466
+ });
467
+
468
+ test('rejected and timed out profiles cannot be confirmed even when input writes are acknowledged', async () => {
469
+ for (const kind of ['Rejected', 'timeout']) {
470
+ const { adapter } = prepareAdapter('cp', 'ocpp2.1', async () => {
471
+ if (kind === 'timeout') throw new Error('SetChargingProfile timeout after 5000 ms');
472
+ return { status: kind };
473
+ });
474
+ adapter.states.set('cp.control.chargeLimit', { val: 4200, ack: false, ts: 123 });
475
+ await adapter.onStateChange('ocpp21.0.cp.control.chargeLimit', { val: 4200, ack: false, ts: 123 });
476
+ assert.equal(adapter.states.get('cp.control.chargeLimit').ack, true);
477
+ assert.equal(chargeStatus(adapter).valid, false);
478
+ assert.equal(chargeStatus(adapter).appliedW, null);
479
+ assert.equal(chargeStatus(adapter).error, kind === 'Rejected' ? 'rejected' : 'timeout');
480
+ assert.equal(adapter.states.get('cp.control.appliedChargeLimitValid').val, false);
481
+ }
482
+ });
483
+
484
+ test('reconnect during accepted profile persistence cannot resurrect confirmation from previous socket', async () => {
485
+ for (const field of ['appliedChargeLimitW', 'chargeLimitStatus', 'appliedChargeLimitValid']) {
486
+ const { adapter } = prepareAdapter('cp', 'ocpp2.1', async () => ({ status: 'Accepted' }));
487
+ await flushPublication(adapter);
488
+ const oldSession = adapter.runtimeIndex.get('cp').sessionId;
489
+ const original = adapter.setStateAsync.bind(adapter);
490
+ let reconnected = false;
491
+ adapter.setStateAsync = async (id, state) => {
492
+ const hit = id === `cp.control.${field}` && (field !== 'appliedChargeLimitValid' || state.val === true)
493
+ && (field !== 'chargeLimitStatus' || JSON.parse(state.val).valid);
494
+ if (hit && !reconnected) {
495
+ reconnected = true;
496
+ adapter._indexClient('cp', 'ocpp2.1', { async call() { return { status: 'Accepted' }; }, async close() {} }, 'cp');
497
+ }
498
+ await original(id, state);
499
+ };
500
+ await adapter._queueSmartCharging('cp', 4200, 'W', 3);
501
+ await flushPublication(adapter);
502
+ assert.equal(reconnected, true, field);
503
+ const status = chargeStatus(adapter);
504
+ assert.notEqual(status.sessionId, oldSession, field);
505
+ assert.equal(status.sessionId, adapter.states.get('cp.info.sessionId').val, field);
506
+ assert.equal(status.valid, false, field);
507
+ assert.equal(adapter.states.get('cp.control.appliedChargeLimitValid').val, false, field);
508
+ await adapter._queueSmartCharging('cp', 0, 'W', 3);
509
+ assert.equal(chargeStatus(adapter).valid, true, field);
510
+ assert.equal(chargeStatus(adapter).appliedW, 0, field);
511
+ }
512
+ });
513
+
514
+ test('disconnect and adapter restart invalidate persisted profile status', async () => {
515
+ const { adapter, client } = prepareAdapter('cp', 'ocpp1.6', async () => ({ status: 'Accepted' }));
516
+ await adapter._queueSmartCharging('cp', 4200, 'W', 3);
517
+ adapter._unindexClient('cp', client);
518
+ await flushPublication(adapter);
519
+ assert.equal(chargeStatus(adapter).valid, false);
520
+ assert.equal(chargeStatus(adapter).reason, 'disconnected');
521
+ adapter.runtimeIndex.clear();
522
+ await adapter._setDisconnectedHealth('cp', 'adapter-restarted-awaiting-station');
523
+ assert.equal(chargeStatus(adapter).valid, false);
524
+ assert.equal(chargeStatus(adapter).sessionId, '');
525
+ });
526
+
527
+ test('session identifier timestamp is not renewed by telemetry or unchanged profiles', async () => {
528
+ const { adapter } = prepareAdapter('cp', 'ocpp2.1', async () => ({ status: 'Accepted' }));
529
+ await flushPublication(adapter);
530
+ const sessionState = adapter.states.get('cp.info.sessionId');
531
+ await adapter._queueSmartCharging('cp', 4200, 'W', 3);
532
+ await adapter._publishStationTelemetry('cp', adapter.runtimeIndex.get('cp'));
533
+ await adapter._queueSmartCharging('cp', 4200, 'W', 3);
534
+ assert.equal(adapter.states.get('cp.info.sessionId'), sessionState);
535
+ });
536
+
537
+ test('native device metadata preserves user attributes and identifies one station control scope', async () => {
538
+ const { adapter } = prepareAdapter('cp', 'ocpp1.6', async () => ({ status: 'Accepted' }));
539
+ await flushPublication(adapter);
540
+ adapter._identityStructureReady.delete('cp');
541
+ adapter.objects.set('cp', { type: 'device', common: { name: 'User name' }, native: { userSetting: 'preserved' } });
542
+ await adapter.ensureStructure('cp');
543
+ const obj = adapter.objects.get('cp');
544
+ assert.equal(obj.native.controlScope, 'station');
545
+ assert.equal(obj.native.deviceType, 'evCharger');
546
+ assert.equal(obj.native.eosContract, 'nexowatt-ocpp21-0.4-native');
547
+ assert.equal(obj.native.userSetting, 'preserved');
548
+ assert.equal(obj.common.name, 'User name');
549
+ assert.equal(adapter.objects.get('cp.info.controlScope').common.def, 'station');
550
+ assert.equal(adapter.objects.get('cp.control.chargeLimitStatus').common.write, false);
551
+ });
552
+
553
+ test('actual command timeout remains invalid when the late station response arrives', async t => {
554
+ t.mock.timers.enable({ apis: ['setTimeout'] });
555
+ let lateResponse;
556
+ const { adapter } = prepareAdapter('cp', 'ocpp2.1', async () => new Promise(resolve => { lateResponse = resolve; }));
557
+ const pending = adapter._queueSmartCharging('cp', 4200, 'W', 3);
558
+ while (!lateResponse) await new Promise(resolve => setImmediate(resolve));
559
+ const rejected = assert.rejects(pending, /timeout/);
560
+ t.mock.timers.tick(5000);
561
+ await rejected;
562
+ assert.equal(chargeStatus(adapter).error, 'timeout');
563
+ lateResponse({ status: 'Accepted' });
564
+ await new Promise(resolve => setImmediate(resolve));
565
+ assert.equal(chargeStatus(adapter).valid, false);
566
+ assert.equal(adapter.runtimeIndex.get('cp').lastSmartCharging, undefined);
567
+ });
568
+
569
+ test('newest zero command supersedes an in-flight positive command without old confirmation', async () => {
570
+ let firstResponse;
571
+ const { adapter, calls } = prepareAdapter('cp', 'ocpp2.1', async (_method, _payload, recorded) => {
572
+ if (recorded.length === 1) return new Promise(resolve => { firstResponse = resolve; });
573
+ return { status: 'Accepted' };
574
+ });
575
+ const first = adapter._queueSmartCharging('cp', 4200, 'W', 3);
576
+ while (!firstResponse) await new Promise(resolve => setImmediate(resolve));
577
+ const latest = adapter._queueSmartCharging('cp', 0, 'W', 3);
578
+ await new Promise(resolve => setImmediate(resolve));
579
+ await flushPublication(adapter);
580
+ assert.equal(chargeStatus(adapter).valid, false);
581
+ assert.equal(chargeStatus(adapter).requestedW, 0);
582
+ firstResponse({ status: 'Accepted' });
583
+ assert.equal((await first).status, 'Superseded');
584
+ await latest;
585
+ assert.equal(calls.length, 2);
586
+ assert.equal(chargeStatus(adapter).appliedW, 0);
587
+ assert.equal(chargeStatus(adapter).valid, true);
588
+ });
589
+
590
+ test('an old disconnect task cannot clear the replacement session health or profile', async () => {
591
+ const { adapter } = prepareAdapter('cp', 'ocpp1.6', async () => ({ status: 'Accepted' }));
592
+ await adapter._queueSmartCharging('cp', 4200, 'W', 3);
593
+ const oldEntry = adapter.runtimeIndex.get('cp');
594
+ adapter._indexClient('cp', 'ocpp1.6', { async call() { return { status: 'Accepted' }; }, async close() {} }, 'cp');
595
+ await adapter._queueSmartCharging('cp', 0, 'W', 3);
596
+ adapter.states.set('cp.health.online', { val: true, ack: true });
597
+ const current = chargeStatus(adapter);
598
+ await adapter._setDisconnectedHealth('cp', 'socket-disconnected', oldEntry);
599
+ assert.deepEqual(chargeStatus(adapter), current);
600
+ assert.equal(adapter.states.get('cp.health.online').val, true);
601
+ });
602
+
603
+ async function renewLease(adapter, until = Date.now() + 15000) {
604
+ const ts = Math.max(Date.now(), (adapter._eosLeases.get('cp')?.lastEventTs || 0) + 1);
605
+ const state = { val: until, ts, ack: false };
606
+ adapter.states.set('cp.control.eosLeaseUntilMs', state);
607
+ await adapter.onStateChange('ocpp21.0.cp.control.eosLeaseUntilMs', state);
608
+ }
609
+ async function finishLeaseStop(adapter) {
610
+ for (let i = 0; i < 100 && adapter._eosLeases.get('cp')?.stopPending; i++) await new Promise(resolve => setImmediate(resolve));
611
+ assert.equal(adapter._eosLeases.get('cp').stopPending, false);
612
+ }
613
+ function expireLease(adapter) {
614
+ const lease = adapter._eosLeases.get('cp');
615
+ lease.untilMs = Date.now() - 1;
616
+ lease.deadline = performance.now() - 1;
617
+ }
618
+
619
+ test('EOS lease is opt-in, persists armed state and stops positive power on expiry', async () => {
620
+ const { adapter, calls } = prepareAdapter('cp', 'ocpp1.6', async () => ({ status: 'Accepted' }));
621
+ await adapter._queueSmartCharging('cp', 4200, 'W', 3);
622
+ assert.equal(adapter._eosLeases.get('cp').armed, false);
623
+ await renewLease(adapter);
624
+ assert.equal(adapter.states.get('cp.control.eosLeaseArmed').val, true);
625
+ assert.equal(adapter.states.get('cp.info.eosControlLeaseSupported').val, true);
626
+ expireLease(adapter);
627
+ await adapter._eosLeaseWatchdogCycle();
628
+ await finishLeaseStop(adapter);
629
+ assert.equal(calls.at(-1).payload.csChargingProfiles.chargingSchedule.chargingSchedulePeriod[0].limit, 0);
630
+ assert.equal(adapter.states.get('cp.control.eosLeaseState').val, 'expired-zero-confirmed');
631
+ assert.equal(chargeStatus(adapter).valid, false);
632
+ assert.equal(chargeStatus(adapter).error, 'EOS_LEASE_EXPIRED');
633
+ await assert.rejects(adapter._queueSmartCharging('cp', 4200, 'W', 3), /EOS_LEASE_EXPIRED/);
634
+ const before = calls.length;
635
+ await renewLease(adapter);
636
+ assert.equal(calls.length, before, 'renewal alone never restores positive power');
637
+ adapter.runtimeIndex.get('cp').lastSmartChargingAt = 0;
638
+ await adapter._queueSmartCharging('cp', 4200, 'W', 3);
639
+ assert.equal(calls.length, before + 1);
640
+ assert.equal(chargeStatus(adapter).valid, true);
641
+ });
642
+
643
+ test('persisted armed lease restarts expired even when stored deadline is still in the future', async () => {
644
+ const { adapter, calls } = prepareAdapter('cp', 'ocpp2.1', async () => ({ status: 'Accepted' }));
645
+ await adapter._ensureEosLease('cp');
646
+ await renewLease(adapter);
647
+ adapter._eosLeases.delete('cp'); // new runtime cache, persisted ioBroker states retained
648
+ const restored = await adapter._ensureEosLease('cp');
649
+ assert.equal(restored.armed, true);
650
+ assert.equal(adapter._eosLeaseFresh(restored), false);
651
+ await assert.rejects(adapter._queueSmartCharging('cp', 1000, 'W', 3), /EOS_LEASE_EXPIRED/);
652
+ await adapter._eosLeaseWatchdogCycle();
653
+ await finishLeaseStop(adapter);
654
+ assert.equal(calls.at(-1).payload.chargingProfile.chargingSchedule[0].chargingSchedulePeriod[0].limit, 0);
655
+ });
656
+
657
+ test('lease rejects far-future and stale events, without disarming a persisted lease', async () => {
658
+ const { adapter } = prepareAdapter('cp', 'ocpp2.1', async () => ({ status: 'Accepted' }));
659
+ await renewLease(adapter);
660
+ await renewLease(adapter, Date.now() + 60000);
661
+ assert.equal(adapter._eosLeaseFresh(adapter._eosLeases.get('cp')), false);
662
+ assert.equal(adapter.states.get('cp.control.eosLeaseArmed').val, true);
663
+ await adapter._renewEosLease('cp', { val: Date.now() + 15000, ts: Date.now() - 10000, ack: false });
664
+ assert.equal(adapter._eosLeaseFresh(adapter._eosLeases.get('cp')), false);
665
+ });
666
+
667
+ test('lease expiry fences in-flight positive acceptance and serializes zero immediately afterwards', async () => {
668
+ let positiveResponse;
669
+ const { adapter, calls } = prepareAdapter('cp', 'ocpp2.1', async (_method, payload) => {
670
+ const power = payload.chargingProfile.chargingSchedule[0].chargingSchedulePeriod[0].limit;
671
+ if (power > 0) return new Promise(resolve => { positiveResponse = resolve; });
672
+ return { status: 'Accepted' };
673
+ });
674
+ await renewLease(adapter);
675
+ const positive = adapter._queueSmartCharging('cp', 4200, 'W', 3);
676
+ while (!positiveResponse) await new Promise(resolve => setImmediate(resolve));
677
+ expireLease(adapter);
678
+ await adapter._eosLeaseWatchdogCycle();
679
+ assert.equal(chargeStatus(adapter).valid, false);
680
+ assert.equal(calls.length, 1, 'zero waits for the same outbound slot');
681
+ positiveResponse({ status: 'Accepted' });
682
+ assert.equal((await positive).status, 'Superseded');
683
+ await finishLeaseStop(adapter);
684
+ assert.equal(calls.length, 2);
685
+ assert.equal(calls[1].payload.chargingProfile.chargingSchedule[0].chargingSchedulePeriod[0].limit, 0);
686
+ assert.equal(chargeStatus(adapter).valid, false);
687
+ });
688
+
689
+ test('offline or rejected expiry zero stays unconfirmed and blocks positive even after renewal', async () => {
690
+ const { adapter } = prepareAdapter('cp', 'ocpp2.1', async () => ({ status: 'Rejected' }));
691
+ await renewLease(adapter);
692
+ expireLease(adapter);
693
+ await adapter._eosLeaseWatchdogCycle();
694
+ await finishLeaseStop(adapter);
695
+ assert.equal(adapter.states.get('cp.control.eosLeaseState').val, 'expired-zero-failed');
696
+ await renewLease(adapter);
697
+ await assert.rejects(adapter._queueSmartCharging('cp', 4200, 'W', 3), /EOS_LEASE_EXPIRED/);
698
+ const entry = adapter.runtimeIndex.get('cp');
699
+ entry.client = null; entry.socketConnected = false;
700
+ await adapter._eosLeaseWatchdogCycle();
701
+ assert.equal(adapter.states.get('cp.control.eosLeaseState').val, 'expired-offline-zero-unconfirmed');
702
+ });
703
+
704
+ test('monotonic lease deadline still stops power after a backwards wall-clock jump', async t => {
705
+ const { adapter, calls } = prepareAdapter('cp', 'ocpp2.1', async () => ({ status: 'Accepted' }));
706
+ await renewLease(adapter);
707
+ await adapter._queueSmartCharging('cp', 4200, 'W', 3);
708
+ adapter._eosLeases.get('cp').deadline = performance.now() - 1;
709
+ const backwards = Date.now() - 3600000;
710
+ t.mock.method(Date, 'now', () => backwards);
711
+ assert.equal(adapter._eosLeaseFresh(adapter._eosLeases.get('cp')), false);
712
+ await adapter._eosLeaseWatchdogCycle();
713
+ await finishLeaseStop(adapter);
714
+ assert.equal(calls.at(-1).payload.chargingProfile.chargingSchedule[0].chargingSchedulePeriod[0].limit, 0);
715
+ });
716
+
717
+ test('one failed lease restoration can retry and does not authorize positive power', async () => {
718
+ const { adapter } = prepareAdapter('cp', 'ocpp2.1', async () => ({ status: 'Accepted' }));
719
+ await adapter._ensureEosLease('cp');
720
+ adapter._eosLeases.delete('cp');
721
+ const read = adapter.getStateAsync.bind(adapter);
722
+ let failed = false;
723
+ adapter.getStateAsync = async id => {
724
+ if (id === 'cp.control.eosLeaseArmed' && !failed) { failed = true; throw new Error('transient database failure'); }
725
+ return read(id);
726
+ };
727
+ await assert.rejects(adapter._queueSmartCharging('cp', 4200, 'W', 3), /database failure/);
728
+ assert.equal(adapter._eosLeases.has('cp'), false);
729
+ await adapter._queueSmartCharging('cp', 0, 'W', 3);
730
+ assert.equal(chargeStatus(adapter).appliedW, 0);
731
+ });
732
+
733
+ test('queued configuration work cannot delay an expired lease zero with additional RPC timeouts', async () => {
734
+ const { adapter } = prepareAdapter('cp', 'ocpp2.1', async () => ({ status: 'Accepted' }));
735
+ await renewLease(adapter);
736
+ expireLease(adapter);
737
+ const entry = adapter.runtimeIndex.get('cp');
738
+ let called = false;
739
+ await assert.rejects(adapter._queueOutboundControlOperation('cp', entry, async () => { called = true; }), /EOS_LEASE_EXPIRED/);
740
+ assert.equal(called, false);
741
+ await assert.rejects(adapter._writeConfigurationValue('cp', 'cp.configuration.any', 'x'), /EOS_LEASE_EXPIRED/);
742
+ await adapter._eosLeaseWatchdogCycle();
743
+ await finishLeaseStop(adapter);
744
+ assert.equal(adapter.states.get('cp.control.eosLeaseState').val, 'expired-zero-confirmed');
745
+ });
746
+
747
+ test('a station diagnostic write failure does not prevent another expired lease from stopping', async () => {
748
+ const { adapter } = prepareAdapter('cp', 'ocpp2.1', async () => ({ status: 'Accepted' }));
749
+ await renewLease(adapter);
750
+ expireLease(adapter);
751
+ adapter._indexClient('other', 'ocpp2.1', { async call() { return { status: 'Accepted' }; }, async close() {} }, 'other');
752
+ await adapter._ensureEosLease('other');
753
+ await adapter._renewEosLease('other', { val: Date.now() + 15000, ts: Date.now(), ack: false });
754
+ const other = adapter._eosLeases.get('other');
755
+ other.untilMs = Date.now() - 1; other.deadline = performance.now() - 1;
756
+ const write = adapter._setStateFreshAsync.bind(adapter);
757
+ adapter._setStateFreshAsync = async (id, ...args) => {
758
+ if (id === 'cp.control.chargeLimitStatus') throw new Error('one station diagnostic write failed');
759
+ return write(id, ...args);
760
+ };
761
+ await adapter._eosLeaseWatchdogCycle();
762
+ for (let i = 0; i < 100 && other.stopPending; i++) await new Promise(resolve => setImmediate(resolve));
763
+ assert.equal(adapter.states.get('other.control.eosLeaseState').val, 'expired-zero-confirmed');
764
+ });
765
+
766
+ test('expired lease sends physical zero even when status publication stalls', async () => {
767
+ const { adapter, calls } = prepareAdapter('cp', 'ocpp2.1', async () => ({ status: 'Accepted' }));
768
+ await renewLease(adapter);
769
+ await adapter._queueSmartCharging('cp', 4200, 'W', 3);
770
+ const write = adapter._setStateFreshAsync.bind(adapter);
771
+ const releases = [];
772
+ adapter._setStateFreshAsync = (id, ...args) => {
773
+ if (id === 'cp.control.chargeLimitStatus' || id === 'cp.control.eosLeaseState') {
774
+ return new Promise(resolve => releases.push(() => resolve(write(id, ...args))));
775
+ }
776
+ return write(id, ...args);
777
+ };
778
+ expireLease(adapter);
779
+ await adapter._eosLeaseWatchdogCycle();
780
+ for (let i = 0; i < 100 && calls.length < 2; i++) await new Promise(resolve => setImmediate(resolve));
781
+ assert.equal(calls.length, 2, 'physical zero is independent of the pending diagnostic write');
782
+ assert.equal(calls[1].payload.chargingProfile.chargingSchedule[0].chargingSchedulePeriod[0].limit, 0);
783
+ adapter._setStateFreshAsync = write;
784
+ for (const release of releases) release();
785
+ await finishLeaseStop(adapter);
786
+ });