iobroker.eos-admin 9.0.18 → 9.0.20

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 (615) hide show
  1. package/NEXOWATT_EOS_BUILD_INFO.json +8 -9
  2. package/README.md +7 -3
  3. package/START_HIER_9.0.19.md +52 -0
  4. package/START_HIER_9.0.20.md +65 -0
  5. package/adminWww/.vite/manifest.json +114 -114
  6. package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13762 -13761
  7. package/adminWww/assets/{AdapterUpdateDialog-ByJk9Cxj.js → AdapterUpdateDialog-CRD3XVom.js} +1 -1
  8. package/adminWww/assets/{Adapters-V2JtEPZX.js → Adapters-Cuf0X0CU.js} +1 -1
  9. package/adminWww/assets/{ConfigManager-BKcdyJnN.js → ConfigManager-B8ycQt1C.js} +1 -1
  10. package/adminWww/assets/{Enums-ChbfAWzp.js → Enums-CctVCgZX.js} +1 -1
  11. package/adminWww/assets/{Fields-DzaVXEvg.js → Fields-onm4DfoO.js} +1 -1
  12. package/adminWww/assets/{Files-CRpIXj4X.js → Files-OLP3Rwc7.js} +1 -1
  13. package/adminWww/assets/{Hosts-rOgfd2wo.js → Hosts-C31oqMcW.js} +1 -1
  14. package/adminWww/assets/{Instances-BxLhJ6Pb.js → Instances-DFdvJ9pa.js} +1 -1
  15. package/adminWww/assets/{Intro-BOql527d.js → Intro-DvsFJxU0.js} +1 -1
  16. package/adminWww/assets/{Logs-WUUDY7a4.js → Logs-Zqg2Bqv6.js} +1 -1
  17. package/adminWww/assets/{Objects-DYaZkCK7.js → Objects-CpWZp6yp.js} +1 -1
  18. package/adminWww/assets/{Overview-C6hiiPbm.js → Overview-BsKUo298.js} +1 -1
  19. package/adminWww/assets/{State-AH43l7fG.js → State-D_xwlhhb.js} +1 -1
  20. package/adminWww/assets/{UsedResources-jhsRMH4X.js → UsedResources-C79N6yZx.js} +1 -1
  21. package/adminWww/assets/{Users-D9wyLyJ1.js → Users-WgC0O8P0.js} +1 -1
  22. package/adminWww/assets/{bootstrap-gVLo1K_2.js → bootstrap-BcfBoIoa.js} +3 -3
  23. package/adminWww/assets/{hostInit-Dt_M-NAC.js → hostInit-B7bBV7cH.js} +1 -1
  24. package/adminWww/assets/icons/nexowatt-180.png +0 -0
  25. package/adminWww/assets/{icons-material-DuVW_EUA.js → icons-material-D1JYmRTj.js} +1 -1
  26. package/adminWww/assets/{index-B1cnPkSO.js → index-DbiuoDjo.js} +2 -2
  27. package/adminWww/assets/{installSVGRenderer-GvgHjubR.js → installSVGRenderer-BAY-Pzp-.js} +1 -1
  28. package/adminWww/assets/{mf-entry-bootstrap-0-6b32b635.js → mf-entry-bootstrap-0-33384c20.js} +2 -2
  29. package/adminWww/index.html +24 -24
  30. package/adminWww/mf-manifest.json +1 -1
  31. package/adminWww/mf-stats.json +1 -1
  32. package/adminWww/{remoteEntry-eos-9.0.18.js → remoteEntry-eos-9.0.20.js} +1 -1
  33. package/adminWww/remoteEntry.js +1 -1
  34. package/build/lib/eosCookieNamespace.js +12 -2
  35. package/build/lib/eosCookieNamespace.js.map +1 -1
  36. package/build/lib/eosDeviceEmsPlan.js +449 -28
  37. package/build/lib/eosDeviceEmsPlan.js.map +1 -1
  38. package/build/lib/eosDeviceEmsService.js +158 -12
  39. package/build/lib/eosDeviceEmsService.js.map +1 -1
  40. package/build/lib/eosLegacyMigration.js +26 -1
  41. package/build/lib/eosLegacyMigration.js.map +1 -1
  42. package/build/lib/eosModuleHost.js +218 -53
  43. package/build/lib/eosModuleHost.js.map +1 -1
  44. package/build/lib/eosStateSubscriptions.js +59 -2
  45. package/build/lib/eosStateSubscriptions.js.map +1 -1
  46. package/build/lib/web.js +22 -3
  47. package/build/lib/web.js.map +1 -1
  48. package/docs/reports/unified-9.0.19/ALIAS_MESSWERTFRISCHE.md +31 -0
  49. package/docs/reports/unified-9.0.19/COMMISSIONING_PLAN_REVIEW.md +56 -0
  50. package/docs/reports/unified-9.0.19/EMS_ABSCHLUSSREVIEW.md +43 -0
  51. package/docs/reports/unified-9.0.19/EMS_KATEGORIEN_ABDECKUNG.md +66 -0
  52. package/docs/reports/unified-9.0.19/EMS_VERGLEICH_UND_KOPPLUNG.md +25 -0
  53. package/docs/reports/unified-9.0.19/EVCS_STATE_OBJECTS.md +47 -0
  54. package/docs/reports/unified-9.0.19/GERAETE_EMS_EINRICHTUNG.md +100 -0
  55. package/docs/reports/unified-9.0.19/GERAETE_STARTAUSFALL.md +37 -0
  56. package/docs/reports/unified-9.0.19/INSTALLER_LIFECYCLE_REVIEW.md +59 -0
  57. package/docs/reports/unified-9.0.19/LEGACY_REGRESSION_REVIEW.md +42 -0
  58. package/docs/reports/unified-9.0.19/MODBUS_AUTHORIZATION_READS.md +25 -0
  59. package/docs/reports/unified-9.0.19/PRUEFBERICHT.md +56 -0
  60. package/docs/reports/unified-9.0.19/RUNTIME_START_UEBERNAHME.md +33 -0
  61. package/docs/reports/unified-9.0.19/SMA_RECEIVER_LIFECYCLE.md +42 -0
  62. package/docs/reports/unified-9.0.19/STATIC_REVIEW_DE.md +11 -0
  63. package/docs/reports/unified-9.0.19/TARIFF_PRICE_VALUES_REVIEW.md +31 -0
  64. package/docs/reports/unified-9.0.19/TARIF_VIERTELSTUNDEN_RUNTIME.md +17 -0
  65. package/docs/reports/unified-9.0.19/UNABHAENGIGER_REVIEW.md +49 -0
  66. package/docs/reports/unified-9.0.19/raw/INDEX.json +751 -0
  67. package/docs/reports/unified-9.0.19/raw/audit-full.log +345 -0
  68. package/docs/reports/unified-9.0.19/raw/audit-full.result.json +14 -0
  69. package/docs/reports/unified-9.0.19/raw/audit-runtime.log +23 -0
  70. package/docs/reports/unified-9.0.19/raw/audit-runtime.result.json +15 -0
  71. package/docs/reports/unified-9.0.19/raw/backend-final.log +5 -0
  72. package/docs/reports/unified-9.0.19/raw/backend-final.result.json +14 -0
  73. package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node22.log +0 -0
  74. package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node22.result.json +15 -0
  75. package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node24.log +0 -0
  76. package/docs/reports/unified-9.0.19/raw/devices-hosted-typecheck-node24.result.json +15 -0
  77. package/docs/reports/unified-9.0.19/raw/devices-incident-build.log +5 -0
  78. package/docs/reports/unified-9.0.19/raw/devices-incident-host-final.log +70 -0
  79. package/docs/reports/unified-9.0.19/raw/devices-incident-lease-918-before.log +26 -0
  80. package/docs/reports/unified-9.0.19/raw/devices-incident-lease-after.log +9 -0
  81. package/docs/reports/unified-9.0.19/raw/devices-incident-metadata-after.log +11 -0
  82. package/docs/reports/unified-9.0.19/raw/devices-incident-metadata-before.log +28 -0
  83. package/docs/reports/unified-9.0.19/raw/devices-incident-web-pipeline.log +22 -0
  84. package/docs/reports/unified-9.0.19/raw/frontend-build.log +152 -0
  85. package/docs/reports/unified-9.0.19/raw/frontend-build.result.json +14 -0
  86. package/docs/reports/unified-9.0.19/raw/installer-build.log +26 -0
  87. package/docs/reports/unified-9.0.19/raw/installer-build.result.json +14 -0
  88. package/docs/reports/unified-9.0.19/raw/keygen-source.json +6 -0
  89. package/docs/reports/unified-9.0.19/raw/legacy-auto-pv.log +6 -0
  90. package/docs/reports/unified-9.0.19/raw/legacy-auto-pv.result.json +14 -0
  91. package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-clamp.log +6 -0
  92. package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-clamp.result.json +14 -0
  93. package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-safe.log +6 -0
  94. package/docs/reports/unified-9.0.19/raw/legacy-charging-grid-cap-safe.result.json +14 -0
  95. package/docs/reports/unified-9.0.19/raw/legacy-charging-mode-recovery.log +539 -0
  96. package/docs/reports/unified-9.0.19/raw/legacy-charging-mode-recovery.result.json +14 -0
  97. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase1.log +6 -0
  98. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase1.result.json +14 -0
  99. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase2.log +6 -0
  100. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-phase2.result.json +14 -0
  101. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-tariff-final.log +6 -0
  102. package/docs/reports/unified-9.0.19/raw/legacy-core-limits-tariff-final.result.json +14 -0
  103. package/docs/reports/unified-9.0.19/raw/legacy-energy-wallet-final.log +6 -0
  104. package/docs/reports/unified-9.0.19/raw/legacy-energy-wallet-final.result.json +14 -0
  105. package/docs/reports/unified-9.0.19/raw/legacy-farm-dispatch-loader-current.log +2 -0
  106. package/docs/reports/unified-9.0.19/raw/legacy-farm-dispatch-loader-current.result.json +14 -0
  107. package/docs/reports/unified-9.0.19/raw/legacy-final-write-envelope.log +6 -0
  108. package/docs/reports/unified-9.0.19/raw/legacy-final-write-envelope.result.json +14 -0
  109. package/docs/reports/unified-9.0.19/raw/legacy-history-http.log +39 -0
  110. package/docs/reports/unified-9.0.19/raw/legacy-history-http.result.json +15 -0
  111. package/docs/reports/unified-9.0.19/raw/legacy-import-grid-budget.log +30 -0
  112. package/docs/reports/unified-9.0.19/raw/legacy-import-grid-budget.result.json +14 -0
  113. package/docs/reports/unified-9.0.19/raw/legacy-import-grid-contract-current.log +2 -0
  114. package/docs/reports/unified-9.0.19/raw/legacy-import-grid-contract-current.result.json +14 -0
  115. package/docs/reports/unified-9.0.19/raw/legacy-live-mode-loader-current.log +203 -0
  116. package/docs/reports/unified-9.0.19/raw/legacy-live-mode-loader-current.result.json +14 -0
  117. package/docs/reports/unified-9.0.19/raw/legacy-load-grid-sanity.log +6 -0
  118. package/docs/reports/unified-9.0.19/raw/legacy-load-grid-sanity.result.json +14 -0
  119. package/docs/reports/unified-9.0.19/raw/legacy-ocpp-stability.log +6 -0
  120. package/docs/reports/unified-9.0.19/raw/legacy-ocpp-stability.result.json +14 -0
  121. package/docs/reports/unified-9.0.19/raw/legacy-ocpp21-storage-safety.log +6 -0
  122. package/docs/reports/unified-9.0.19/raw/legacy-ocpp21-storage-safety.result.json +14 -0
  123. package/docs/reports/unified-9.0.19/raw/legacy-permanent-grid-protection.log +18 -0
  124. package/docs/reports/unified-9.0.19/raw/legacy-permanent-grid-protection.result.json +14 -0
  125. package/docs/reports/unified-9.0.19/raw/legacy-storage-dp-persistence.log +6 -0
  126. package/docs/reports/unified-9.0.19/raw/legacy-storage-dp-persistence.result.json +14 -0
  127. package/docs/reports/unified-9.0.19/raw/legacy-storage-farm-dispatch-recovery.log +16 -0
  128. package/docs/reports/unified-9.0.19/raw/legacy-storage-farm-dispatch-recovery.result.json +14 -0
  129. package/docs/reports/unified-9.0.19/raw/legacy-storage-functional-safety.log +6 -0
  130. package/docs/reports/unified-9.0.19/raw/legacy-storage-functional-safety.result.json +14 -0
  131. package/docs/reports/unified-9.0.19/raw/legacy-storage-topology-loader-current.log +2 -0
  132. package/docs/reports/unified-9.0.19/raw/legacy-storage-topology-loader-current.result.json +14 -0
  133. package/docs/reports/unified-9.0.19/raw/legacy-test-loader.cjs +47 -0
  134. package/docs/reports/unified-9.0.19/raw/lint-final.log +16 -0
  135. package/docs/reports/unified-9.0.19/raw/lint-final.result.json +14 -0
  136. package/docs/reports/unified-9.0.19/raw/modules-build.log +5 -0
  137. package/docs/reports/unified-9.0.19/raw/modules-build.result.json +14 -0
  138. package/docs/reports/unified-9.0.19/raw/node22-tests-final.log +10719 -0
  139. package/docs/reports/unified-9.0.19/raw/node22-tests-final.result.json +13 -0
  140. package/docs/reports/unified-9.0.19/raw/node22-typecheck-final.log +7 -0
  141. package/docs/reports/unified-9.0.19/raw/node22-typecheck-final.result.json +14 -0
  142. package/docs/reports/unified-9.0.19/raw/node22-version.log +1 -0
  143. package/docs/reports/unified-9.0.19/raw/node24-tests-final.log +1805 -0
  144. package/docs/reports/unified-9.0.19/raw/node24-tests-final.result.json +13 -0
  145. package/docs/reports/unified-9.0.19/raw/node24-typecheck-final.log +5 -0
  146. package/docs/reports/unified-9.0.19/raw/node24-typecheck-final.result.json +14 -0
  147. package/docs/reports/unified-9.0.19/raw/node24-version.log +1 -0
  148. package/docs/reports/unified-9.0.19/raw/sbom-runtime.log +7 -0
  149. package/docs/reports/unified-9.0.19/raw/sbom-runtime.result.json +14 -0
  150. package/docs/reports/unified-9.0.19/raw/sbom-vendor-check.log +1 -0
  151. package/docs/reports/unified-9.0.19/raw/sbom-vendor-check.result.json +14 -0
  152. package/docs/reports/unified-9.0.19/raw/tariff-price-chain-919.log +11 -0
  153. package/docs/reports/unified-9.0.19/raw/tariff-price-chain-919.result.json +14 -0
  154. package/docs/reports/unified-9.0.19/raw/tariff-price-chain-old-918.log +68 -0
  155. package/docs/reports/unified-9.0.19/raw/tariff-price-chain-old-918.result.json +14 -0
  156. package/docs/reports/unified-9.0.19/raw/ui-docs-check.log +6 -0
  157. package/docs/reports/unified-9.0.19/raw/ui-docs-check.result.json +14 -0
  158. package/docs/reports/unified-9.0.19/raw/ui-runtime-final.log +7 -0
  159. package/docs/reports/unified-9.0.19/raw/ui-runtime-final.result.json +14 -0
  160. package/docs/reports/unified-9.0.19/raw/ui-runtime-sync.log +6 -0
  161. package/docs/reports/unified-9.0.19/raw/ui-runtime-sync.result.json +14 -0
  162. package/docs/reports/unified-9.0.19/raw/ui-sbom-check.log +6 -0
  163. package/docs/reports/unified-9.0.19/raw/ui-sbom-check.result.json +14 -0
  164. package/docs/reports/unified-9.0.19/raw/ui-sbom-final.log +6 -0
  165. package/docs/reports/unified-9.0.19/raw/ui-sbom-final.result.json +14 -0
  166. package/docs/reports/unified-9.0.19/raw/ui-secret-final.log +6 -0
  167. package/docs/reports/unified-9.0.19/raw/ui-secret-final.result.json +14 -0
  168. package/docs/reports/unified-9.0.19/raw/ui-security-final.log +8 -0
  169. package/docs/reports/unified-9.0.19/raw/ui-security-final.result.json +14 -0
  170. package/docs/reports/unified-9.0.20/ANFORDERUNGEN_UND_INBETRIEBNAHME.md +159 -0
  171. package/docs/reports/unified-9.0.20/DEVICE_COMMAND_DELIVERY_REVIEW.md +82 -0
  172. package/docs/reports/unified-9.0.20/DEVICE_LIFECYCLE_REVIEW.md +46 -0
  173. package/docs/reports/unified-9.0.20/DEVICE_PLAN_REVIEW.md +33 -0
  174. package/docs/reports/unified-9.0.20/DEVICE_POWER_CAPABILITY_REVIEW.md +25 -0
  175. package/docs/reports/unified-9.0.20/FARM_CONTROLLER_REVIEW.md +27 -0
  176. package/docs/reports/unified-9.0.20/FARM_DIAGNOSE_UI.md +81 -0
  177. package/docs/reports/unified-9.0.20/FARM_DISPATCH_REVIEW.md +47 -0
  178. package/docs/reports/unified-9.0.20/HISTORY_REVIEW.md +68 -0
  179. package/docs/reports/unified-9.0.20/INFLUXDB2_INSTALLER_UI.md +39 -0
  180. package/docs/reports/unified-9.0.20/INFLUX_CREDENTIAL_NETWORK_REVIEW.md +38 -0
  181. package/docs/reports/unified-9.0.20/INFLUX_DIRECT_UNABHAENGIGE_PRUEFUNG.md +64 -0
  182. package/docs/reports/unified-9.0.20/INFLUX_RUNTIME_INTEGRATION_REVIEW.md +53 -0
  183. package/docs/reports/unified-9.0.20/INFLUX_RUNTIME_UNABHAENGIGE_PRUEFUNG.md +34 -0
  184. package/docs/reports/unified-9.0.20/INFLUX_TRANSPORT_ABSCHLUSSPRUEFUNG.md +55 -0
  185. package/docs/reports/unified-9.0.20/LOGIN_WEBAPP_LOGO.md +29 -0
  186. package/docs/reports/unified-9.0.20/MIGRATION_REVIEW.md +35 -0
  187. package/docs/reports/unified-9.0.20/PRUEFBERICHT.md +54 -0
  188. package/docs/reports/unified-9.0.20/PWA_ANONYMOUS_HTTPS_REVIEW.md +28 -0
  189. package/docs/reports/unified-9.0.20/PWA_ICON_UNABHAENGIGE_PRUEFUNG.md +60 -0
  190. package/docs/reports/unified-9.0.20/SERIAL_LIFECYCLE_REVIEW.md +37 -0
  191. package/docs/reports/unified-9.0.20/SOLAX_READBACK_REVIEW.md +43 -0
  192. package/docs/reports/unified-9.0.20/SOLAX_READBACK_UNABHAENGIGE_PRUEFUNG.md +34 -0
  193. package/docs/reports/unified-9.0.20/STATIC_REVIEW_DE.md +175 -0
  194. package/docs/reports/unified-9.0.20/STORAGE_COMMAND_ACK_REVIEW.md +36 -0
  195. package/docs/reports/unified-9.0.20/TARIFF_REPORT_REVIEW.md +29 -0
  196. package/docs/reports/unified-9.0.20/VISUALISIERUNG.md +64 -0
  197. package/docs/reports/unified-9.0.20/history-setup-navigation-proxy.txt +26 -0
  198. package/docs/reports/unified-9.0.20/history-setup-navigation-ssr.txt +7 -0
  199. package/docs/reports/unified-9.0.20/history-setup-ui-lint.txt +0 -0
  200. package/docs/reports/unified-9.0.20/history-setup-ui-node22.txt +102 -0
  201. package/docs/reports/unified-9.0.20/history-setup-ui-node24.txt +23 -0
  202. package/docs/reports/unified-9.0.20/history-setup-ui-security.txt +0 -0
  203. package/docs/reports/unified-9.0.20/history-setup-ui-typecheck.txt +0 -0
  204. package/docs/reports/unified-9.0.20/login-pwa-branding-hashes.txt +9 -0
  205. package/docs/reports/unified-9.0.20/login-pwa-branding-node22.txt +42 -0
  206. package/docs/reports/unified-9.0.20/login-pwa-branding-node24.txt +13 -0
  207. package/docs/reports/unified-9.0.20/raw/INDEX.json +1913 -0
  208. package/docs/reports/unified-9.0.20/raw/additional-audit/device/baseline-node22.log +16 -0
  209. package/docs/reports/unified-9.0.20/raw/additional-audit/device/baseline-node24.log +14 -0
  210. package/docs/reports/unified-9.0.20/raw/additional-audit/device/lint-after.json +1 -0
  211. package/docs/reports/unified-9.0.20/raw/additional-audit/device/lint-before.json +1 -0
  212. package/docs/reports/unified-9.0.20/raw/additional-audit/device/modbus-stop-backoff.cjs +22 -0
  213. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-control-review.log +29 -0
  214. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-final.json +18 -0
  215. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-final.log +325 -0
  216. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-review.log +278 -0
  217. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-final.json +18 -0
  218. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-final.log +58 -0
  219. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-review.log +51 -0
  220. package/docs/reports/unified-9.0.20/raw/additional-audit/history/api-gaps-before.log +64 -0
  221. package/docs/reports/unified-9.0.20/raw/additional-audit/history/api-negative-before.log +46 -0
  222. package/docs/reports/unified-9.0.20/raw/additional-audit/history/chart-gaps-before.log +127 -0
  223. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-after.log +67 -0
  224. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-before.log +61 -0
  225. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-eslint-js.log +0 -0
  226. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-eslint-ts.log +0 -0
  227. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-node22.log +442 -0
  228. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-node24.log +78 -0
  229. package/docs/reports/unified-9.0.20/raw/additional-audit/history/fix.py +73 -0
  230. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-eslint-final.json +7 -0
  231. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-final-node22.log +279 -0
  232. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-final-node24.log +52 -0
  233. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-followup-node22.log +223 -0
  234. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-followup-node24.log +43 -0
  235. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-own-cache.log +17 -0
  236. package/docs/reports/unified-9.0.20/raw/additional-audit/history/negative-pricing-before.log +96 -0
  237. package/docs/reports/unified-9.0.20/raw/additional-audit/history/node22-after.log +66 -0
  238. package/docs/reports/unified-9.0.20/raw/additional-audit/history/node22-repro.log +8 -0
  239. package/docs/reports/unified-9.0.20/raw/additional-audit/history/node24-after.log +17 -0
  240. package/docs/reports/unified-9.0.20/raw/additional-audit/history/node24-repro.log +8 -0
  241. package/docs/reports/unified-9.0.20/raw/additional-audit/history/repro.cjs +39 -0
  242. package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/chromium-probe.log +3 -0
  243. package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/patch-live.py +101 -0
  244. package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/repro-live-display.cjs +26 -0
  245. package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/repro-live-display.log +36 -0
  246. package/docs/reports/unified-9.0.20/raw/audit-full.log +345 -0
  247. package/docs/reports/unified-9.0.20/raw/audit-full.result.json +14 -0
  248. package/docs/reports/unified-9.0.20/raw/audit-runtime.log +23 -0
  249. package/docs/reports/unified-9.0.20/raw/audit-runtime.result.json +15 -0
  250. package/docs/reports/unified-9.0.20/raw/backend-final.log +5 -0
  251. package/docs/reports/unified-9.0.20/raw/backend-final.result.json +14 -0
  252. package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node22.result.json +20 -0
  253. package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node22.tap +721 -0
  254. package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node24.result.json +20 -0
  255. package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node24.tap +127 -0
  256. package/docs/reports/unified-9.0.20/raw/commissioning-evidence.json +69 -0
  257. package/docs/reports/unified-9.0.20/raw/commissioning-failed-init-drain-919-before.log +14 -0
  258. package/docs/reports/unified-9.0.20/raw/commissioning-final-node22.log +882 -0
  259. package/docs/reports/unified-9.0.20/raw/commissioning-final-node24.log +149 -0
  260. package/docs/reports/unified-9.0.20/raw/commissioning-lint.log +0 -0
  261. package/docs/reports/unified-9.0.20/raw/commissioning-planner-919-before.log +70 -0
  262. package/docs/reports/unified-9.0.20/raw/commissioning-retained-readiness-before.log +34 -0
  263. package/docs/reports/unified-9.0.20/raw/commissioning-runtime-retry-919-before.log +46 -0
  264. package/docs/reports/unified-9.0.20/raw/commissioning-types-node24.log +0 -0
  265. package/docs/reports/unified-9.0.20/raw/device-farm-protocol/DEVICE_FARM_READONLY_REVIEW.md +66 -0
  266. package/docs/reports/unified-9.0.20/raw/device-farm-protocol/run-readback-tests.cjs +13 -0
  267. package/docs/reports/unified-9.0.20/raw/device-farm-protocol/solax-control-chain.test.cjs +58 -0
  268. package/docs/reports/unified-9.0.20/raw/device-lifecycle-baseline-node22.log +16 -0
  269. package/docs/reports/unified-9.0.20/raw/device-lifecycle-baseline-node24.log +14 -0
  270. package/docs/reports/unified-9.0.20/raw/device-lifecycle-evidence.json +55 -0
  271. package/docs/reports/unified-9.0.20/raw/device-lifecycle-lint-after.json +1 -0
  272. package/docs/reports/unified-9.0.20/raw/device-lifecycle-lint-before.json +1 -0
  273. package/docs/reports/unified-9.0.20/raw/device-lifecycle-modbus-stop-backoff.cjs +22 -0
  274. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-control-review.log +29 -0
  275. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-final.json +18 -0
  276. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-final.log +325 -0
  277. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-review.log +278 -0
  278. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-final.json +18 -0
  279. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-final.log +58 -0
  280. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-review.log +51 -0
  281. package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node22.log +0 -0
  282. package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node22.result.json +15 -0
  283. package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node24.log +0 -0
  284. package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node24.result.json +15 -0
  285. package/docs/reports/unified-9.0.20/raw/farm-controller/controller-node22.log +110 -0
  286. package/docs/reports/unified-9.0.20/raw/farm-controller/controller-node24.log +24 -0
  287. package/docs/reports/unified-9.0.20/raw/farm-controller/evidence.json +33 -0
  288. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-lint.txt +0 -0
  289. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-node22.txt +113 -0
  290. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-node24.txt +26 -0
  291. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-security.txt +0 -0
  292. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-typecheck.txt +0 -0
  293. package/docs/reports/unified-9.0.20/raw/farm-dispatch/allocator-baseline.jsonl +6 -0
  294. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-before.log +138 -0
  295. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-main-delta.patch +77 -0
  296. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-main-lint.json +7 -0
  297. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node22.log +64 -0
  298. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node22.result.json +14 -0
  299. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node24.log +18 -0
  300. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node24.result.json +14 -0
  301. package/docs/reports/unified-9.0.20/raw/final-ui-independent-review.json +194 -0
  302. package/docs/reports/unified-9.0.20/raw/frontend-build.log +152 -0
  303. package/docs/reports/unified-9.0.20/raw/frontend-build.result.json +14 -0
  304. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node22.json +35 -0
  305. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node22.result.json +17 -0
  306. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node24.json +31 -0
  307. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node24.result.json +17 -0
  308. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-before.json +31 -0
  309. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-reproducer.cjs +9 -0
  310. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node22.result.json +18 -0
  311. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node22.tap +34 -0
  312. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node24.result.json +18 -0
  313. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node24.tap +11 -0
  314. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra.test.cjs +9 -0
  315. package/docs/reports/unified-9.0.20/raw/independent-solax/node22-focused.log +165 -0
  316. package/docs/reports/unified-9.0.20/raw/independent-solax/node24-focused.log +35 -0
  317. package/docs/reports/unified-9.0.20/raw/independent-solax/review-receipt.json +57 -0
  318. package/docs/reports/unified-9.0.20/raw/independent-solax/split-response-after.log +1 -0
  319. package/docs/reports/unified-9.0.20/raw/independent-solax/split-response-before.log +1 -0
  320. package/docs/reports/unified-9.0.20/raw/independent-solax/split-response.cjs +16 -0
  321. package/docs/reports/unified-9.0.20/raw/independent-solax/stop-race-generation-guard.log +1 -0
  322. package/docs/reports/unified-9.0.20/raw/independent-solax/stop-race.cjs +13 -0
  323. package/docs/reports/unified-9.0.20/raw/influx-direct/eslint.log +0 -0
  324. package/docs/reports/unified-9.0.20/raw/influx-direct/node22.log +112 -0
  325. package/docs/reports/unified-9.0.20/raw/influx-direct/node24.log +24 -0
  326. package/docs/reports/unified-9.0.20/raw/influx-direct/typecheck.log +0 -0
  327. package/docs/reports/unified-9.0.20/raw/influx-direct-review/hosted-module-history.test.cjs +85 -0
  328. package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node22.json +12 -0
  329. package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node22.log +100 -0
  330. package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node24.json +12 -0
  331. package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node24.log +21 -0
  332. package/docs/reports/unified-9.0.20/raw/influx-direct-review/runtime-after.test.cjs +15 -0
  333. package/docs/reports/unified-9.0.20/raw/influx-direct-review/runtime-loss-before.test.cjs +9 -0
  334. package/docs/reports/unified-9.0.20/raw/influx-direct-review/security-scan.cjs +15 -0
  335. package/docs/reports/unified-9.0.20/raw/influx-direct-review/transport-extra.test.cjs +9 -0
  336. package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node22.log +227 -0
  337. package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node22.result.json +11 -0
  338. package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node24.log +44 -0
  339. package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node24.result.json +11 -0
  340. package/docs/reports/unified-9.0.20/raw/influx-independent/node22.log +112 -0
  341. package/docs/reports/unified-9.0.20/raw/influx-independent/node22.result.json +12 -0
  342. package/docs/reports/unified-9.0.20/raw/influx-independent/node24.log +23 -0
  343. package/docs/reports/unified-9.0.20/raw/influx-independent/node24.result.json +12 -0
  344. package/docs/reports/unified-9.0.20/raw/influx-independent/runtime-after.test.cjs +15 -0
  345. package/docs/reports/unified-9.0.20/raw/influx-independent/transport-extra.test.cjs +9 -0
  346. package/docs/reports/unified-9.0.20/raw/influx-runtime/evidence.json +24 -0
  347. package/docs/reports/unified-9.0.20/raw/influx-runtime/final-node22.log +326 -0
  348. package/docs/reports/unified-9.0.20/raw/influx-runtime/final-node24.log +59 -0
  349. package/docs/reports/unified-9.0.20/raw/influx-runtime/runtime-node22.log +62 -0
  350. package/docs/reports/unified-9.0.20/raw/influx-runtime/runtime-node24.log +16 -0
  351. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-lint.log +0 -0
  352. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-lint.result.json +17 -0
  353. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node22.log +112 -0
  354. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node22.result.json +15 -0
  355. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node24.log +106 -0
  356. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node24.result.json +15 -0
  357. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-typecheck.log +0 -0
  358. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-typecheck.result.json +15 -0
  359. package/docs/reports/unified-9.0.20/raw/influx-security/source-sha256.json +5 -0
  360. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-lint-final.log +0 -0
  361. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-lint-final.result.json +16 -0
  362. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node22-final.log +124 -0
  363. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node22-final.result.json +14 -0
  364. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node24-final.log +26 -0
  365. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node24-final.result.json +14 -0
  366. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node22-final.log +0 -0
  367. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node22-final.result.json +15 -0
  368. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node24-final.log +0 -0
  369. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node24-final.result.json +15 -0
  370. package/docs/reports/unified-9.0.20/raw/influx-ui-independent-review-final.json +285 -0
  371. package/docs/reports/unified-9.0.20/raw/influx-ui-independent-review-intermediate.json +285 -0
  372. package/docs/reports/unified-9.0.20/raw/installer-build.log +26 -0
  373. package/docs/reports/unified-9.0.20/raw/installer-build.result.json +14 -0
  374. package/docs/reports/unified-9.0.20/raw/isolation/INDEX.json +332 -0
  375. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-final.log +3 -0
  376. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-final.result.json +13 -0
  377. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-hosted.log +6 -0
  378. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-hosted.result.json +13 -0
  379. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-verified.log +1 -0
  380. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-verified.result.json +13 -0
  381. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family.log +11 -0
  382. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family.result.json +13 -0
  383. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-final.log +3 -0
  384. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-final.result.json +13 -0
  385. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-hosted.log +3 -0
  386. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-hosted.result.json +13 -0
  387. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-verified.log +1 -0
  388. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-verified.result.json +13 -0
  389. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid.log +11 -0
  390. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid.result.json +13 -0
  391. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node22.log +296 -0
  392. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node22.result.json +16 -0
  393. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node24.log +56 -0
  394. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node24.result.json +16 -0
  395. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-node24.log +54 -0
  396. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-node24.result.json +16 -0
  397. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-output-modes.log +1 -0
  398. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-output-modes.result.json +13 -0
  399. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node22.log +332 -0
  400. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node22.result.json +16 -0
  401. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node24.log +62 -0
  402. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node24.result.json +16 -0
  403. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node22.log +342 -0
  404. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node22.result.json +16 -0
  405. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node24.log +72 -0
  406. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node24.result.json +16 -0
  407. package/docs/reports/unified-9.0.20/raw/isolation/isolation-node22.log +482 -0
  408. package/docs/reports/unified-9.0.20/raw/isolation/isolation-node22.result.json +19 -0
  409. package/docs/reports/unified-9.0.20/raw/isolation/isolation-node24.log +87 -0
  410. package/docs/reports/unified-9.0.20/raw/isolation/migration-lint.log +0 -0
  411. package/docs/reports/unified-9.0.20/raw/isolation/migration-lint.result.json +16 -0
  412. package/docs/reports/unified-9.0.20/raw/isolation/migration-node22.log +330 -0
  413. package/docs/reports/unified-9.0.20/raw/isolation/migration-node22.result.json +16 -0
  414. package/docs/reports/unified-9.0.20/raw/isolation/migration-node24-before.log +72 -0
  415. package/docs/reports/unified-9.0.20/raw/isolation/migration-node24-before.result.json +16 -0
  416. package/docs/reports/unified-9.0.20/raw/isolation/migration-node24.log +60 -0
  417. package/docs/reports/unified-9.0.20/raw/isolation/migration-node24.result.json +16 -0
  418. package/docs/reports/unified-9.0.20/raw/isolation/repro-migration-start-budget.cjs +49 -0
  419. package/docs/reports/unified-9.0.20/raw/isolation/repro-serial-release.cjs +21 -0
  420. package/docs/reports/unified-9.0.20/raw/isolation/repro-sunspec-discovery.cjs +11 -0
  421. package/docs/reports/unified-9.0.20/raw/isolation/serial-before-repro.log +1 -0
  422. package/docs/reports/unified-9.0.20/raw/isolation/serial-before-repro.result.json +13 -0
  423. package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node22.log +32 -0
  424. package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node22.result.json +14 -0
  425. package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node24.log +11 -0
  426. package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node24.result.json +14 -0
  427. package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck-final.log +0 -0
  428. package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck-final.result.json +28 -0
  429. package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck.log +2 -0
  430. package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck.result.json +26 -0
  431. package/docs/reports/unified-9.0.20/raw/isolation/serial-lint.log +0 -0
  432. package/docs/reports/unified-9.0.20/raw/isolation/serial-lint.result.json +18 -0
  433. package/docs/reports/unified-9.0.20/raw/isolation/serial-node22.log +344 -0
  434. package/docs/reports/unified-9.0.20/raw/isolation/serial-node22.result.json +17 -0
  435. package/docs/reports/unified-9.0.20/raw/isolation/serial-node24.log +62 -0
  436. package/docs/reports/unified-9.0.20/raw/isolation/serial-node24.result.json +17 -0
  437. package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-after.log +3 -0
  438. package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-after.result.json +13 -0
  439. package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-before.log +3 -0
  440. package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-before.result.json +15 -0
  441. package/docs/reports/unified-9.0.20/raw/keygen-source.json +6 -0
  442. package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/check-919.log +70 -0
  443. package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/check-920.log +71 -0
  444. package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/diff.json +82 -0
  445. package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/receipt.json +48 -0
  446. package/docs/reports/unified-9.0.20/raw/lint-final.log +16 -0
  447. package/docs/reports/unified-9.0.20/raw/lint-final.result.json +14 -0
  448. package/docs/reports/unified-9.0.20/raw/main-individual-review-before-cache-boundary-fix.json +112 -0
  449. package/docs/reports/unified-9.0.20/raw/main-individual-review-before-capability-ack.json +103 -0
  450. package/docs/reports/unified-9.0.20/raw/main-individual-review-before-farm-diagnostics.json +102 -0
  451. package/docs/reports/unified-9.0.20/raw/main-individual-review-final.json +103 -0
  452. package/docs/reports/unified-9.0.20/raw/main-individual-review.json +93 -0
  453. package/docs/reports/unified-9.0.20/raw/modules-build.log +5 -0
  454. package/docs/reports/unified-9.0.20/raw/modules-build.result.json +14 -0
  455. package/docs/reports/unified-9.0.20/raw/node22-tests-final.log +12471 -0
  456. package/docs/reports/unified-9.0.20/raw/node22-tests-final.result.json +13 -0
  457. package/docs/reports/unified-9.0.20/raw/node22-typecheck-final.log +7 -0
  458. package/docs/reports/unified-9.0.20/raw/node22-typecheck-final.result.json +14 -0
  459. package/docs/reports/unified-9.0.20/raw/node22-version.log +1 -0
  460. package/docs/reports/unified-9.0.20/raw/node24-tests-final.log +2093 -0
  461. package/docs/reports/unified-9.0.20/raw/node24-tests-final.result.json +13 -0
  462. package/docs/reports/unified-9.0.20/raw/node24-typecheck-final.log +5 -0
  463. package/docs/reports/unified-9.0.20/raw/node24-typecheck-final.result.json +14 -0
  464. package/docs/reports/unified-9.0.20/raw/node24-version.log +1 -0
  465. package/docs/reports/unified-9.0.20/raw/power-capability/evidence.json +69 -0
  466. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-existing-regressions-node24.log +94 -0
  467. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-lint.log +0 -0
  468. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-node22.log +304 -0
  469. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-node24.log +56 -0
  470. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-typecheck.log +0 -0
  471. package/docs/reports/unified-9.0.20/raw/pwa-https/evidence.json +45 -0
  472. package/docs/reports/unified-9.0.20/raw/pwa-https/node22-build.log +21 -0
  473. package/docs/reports/unified-9.0.20/raw/pwa-https/node22-source.log +23 -0
  474. package/docs/reports/unified-9.0.20/raw/pwa-https/node24-build.log +11 -0
  475. package/docs/reports/unified-9.0.20/raw/pwa-https/node24-source.log +11 -0
  476. package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-boundaries.test.cjs +45 -0
  477. package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-receipt.json +71 -0
  478. package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-v22.23.4.tap +34 -0
  479. package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-v24.22.3.tap +11 -0
  480. package/docs/reports/unified-9.0.20/raw/pwa-ui-independent-review-final.json +348 -0
  481. package/docs/reports/unified-9.0.20/raw/repro-failed-init-drain-before.cjs +15 -0
  482. package/docs/reports/unified-9.0.20/raw/repro-profile-replacement-after-unmapped.cjs +15 -0
  483. package/docs/reports/unified-9.0.20/raw/repro-runtime-retry-before.cjs +18 -0
  484. package/docs/reports/unified-9.0.20/raw/sbom-runtime.log +7 -0
  485. package/docs/reports/unified-9.0.20/raw/sbom-runtime.result.json +14 -0
  486. package/docs/reports/unified-9.0.20/raw/sbom-vendor-check.log +1 -0
  487. package/docs/reports/unified-9.0.20/raw/sbom-vendor-check.result.json +14 -0
  488. package/docs/reports/unified-9.0.20/raw/solax-readback-node22.json +30 -0
  489. package/docs/reports/unified-9.0.20/raw/solax-readback-node22.log +542 -0
  490. package/docs/reports/unified-9.0.20/raw/solax-readback-node24.json +30 -0
  491. package/docs/reports/unified-9.0.20/raw/solax-readback-node24.log +97 -0
  492. package/docs/reports/unified-9.0.20/raw/tariff-report-before.log +147 -0
  493. package/docs/reports/unified-9.0.20/raw/tariff-report-evidence.json +48 -0
  494. package/docs/reports/unified-9.0.20/raw/tariff-report-final-node22.log +151 -0
  495. package/docs/reports/unified-9.0.20/raw/tariff-report-final-node24.log +32 -0
  496. package/docs/reports/unified-9.0.20/raw/ui-docs-check.log +6 -0
  497. package/docs/reports/unified-9.0.20/raw/ui-docs-check.result.json +14 -0
  498. package/docs/reports/unified-9.0.20/raw/ui-runtime-final.log +7 -0
  499. package/docs/reports/unified-9.0.20/raw/ui-runtime-final.result.json +14 -0
  500. package/docs/reports/unified-9.0.20/raw/ui-runtime-sync.log +6 -0
  501. package/docs/reports/unified-9.0.20/raw/ui-runtime-sync.result.json +14 -0
  502. package/docs/reports/unified-9.0.20/raw/ui-sbom-check.log +6 -0
  503. package/docs/reports/unified-9.0.20/raw/ui-sbom-check.result.json +14 -0
  504. package/docs/reports/unified-9.0.20/raw/ui-sbom-final.log +6 -0
  505. package/docs/reports/unified-9.0.20/raw/ui-sbom-final.result.json +14 -0
  506. package/docs/reports/unified-9.0.20/raw/ui-secret-final.log +6 -0
  507. package/docs/reports/unified-9.0.20/raw/ui-secret-final.result.json +14 -0
  508. package/docs/reports/unified-9.0.20/raw/ui-security-final.log +8 -0
  509. package/docs/reports/unified-9.0.20/raw/ui-security-final.result.json +14 -0
  510. package/docs/reports/unified-9.0.20/raw/visuals-baseline-919.txt +36 -0
  511. package/docs/reports/unified-9.0.20/raw/visuals-browser-limit.txt +3 -0
  512. package/docs/reports/unified-9.0.20/raw/visuals-lint.txt +0 -0
  513. package/docs/reports/unified-9.0.20/raw/visuals-node22.txt +258 -0
  514. package/docs/reports/unified-9.0.20/raw/visuals-node24.txt +51 -0
  515. package/docs/reports/unified-9.0.20/raw/visuals-security.txt +0 -0
  516. package/docs/reports/unified-9.0.20/raw/visuals-typecheck.txt +0 -0
  517. package/docs/reports/unified-9.0.20/raw/wallet-freshness-after.log +19 -0
  518. package/docs/reports/unified-9.0.20/raw/wallet-freshness-after.result.json +16 -0
  519. package/docs/reports/unified-9.0.20/raw/wallet-freshness-before.log +31 -0
  520. package/docs/reports/unified-9.0.20/raw/wallet-freshness-before.result.json +14 -0
  521. package/docs/reports/unified-9.0.20/raw/wallet-freshness-independent.result.json +13 -0
  522. package/docs/reports/unified-9.0.20/raw/wallet-freshness-independent.tap +10 -0
  523. package/io-package.json +12 -12
  524. package/modules/devices/admin/ems-assignment.d.ts +8 -2
  525. package/modules/devices/admin/ems-assignment.js +192 -30
  526. package/modules/devices/admin/host-bridge.js +36 -11
  527. package/modules/devices/admin/index.html +26 -5
  528. package/modules/devices/admin/index_m.js +87 -3
  529. package/modules/devices/admin/style.css +17 -4
  530. package/modules/devices/checks/emsAssignment.check.js +10 -6
  531. package/modules/devices/contracts.d.ts +1 -1
  532. package/modules/devices/index.js +54 -17
  533. package/modules/devices/lib/device-alias-semantics-v1.json +22 -1
  534. package/modules/devices/lib/deviceAliasFreshness.js +66 -0
  535. package/modules/devices/lib/deviceAliasSemantics.js +13 -3
  536. package/modules/devices/lib/deviceRuntime.js +278 -133
  537. package/modules/devices/lib/drivers/modbus.js +107 -23
  538. package/modules/devices/lib/drivers/modbusAsciiBus.js +47 -31
  539. package/modules/devices/lib/drivers/modbusRtuBus.js +33 -9
  540. package/modules/devices/lib/drivers/modbusSerialLease.js +29 -0
  541. package/modules/devices/lib/drivers/speedwire.js +42 -22
  542. package/modules/devices/lib/modbusReadEvidence.js +29 -0
  543. package/modules/devices/test/deviceAliasFreshness.test.js +154 -0
  544. package/modules/devices/test/emsAssignmentUi.test.js +119 -11
  545. package/modules/devices/test/modbusAuthorizationReads.test.js +112 -0
  546. package/modules/devices/test/modbusConnectLifecycle.test.js +148 -0
  547. package/modules/devices/test/modbusSerialLifecycle.test.js +91 -0
  548. package/modules/devices/test/runtimeLiveness.test.js +1 -1
  549. package/modules/devices/test/serialOperationGate.test.js +3 -3
  550. package/modules/devices/test/solaxReadbackContext.test.js +472 -0
  551. package/modules/devices/test/speedwireLifecycle.test.js +118 -0
  552. package/modules/devices/tsconfig.alias-semantics.json +1 -1
  553. package/modules/devices/tsconfig.hosted.json +1 -1
  554. package/modules/devices/tsconfig.serial-lifecycle.json +18 -0
  555. package/package.json +11 -7
  556. package/release-manifests/unified/build-environment.cdx.json +1483 -7370
  557. package/release-manifests/unified/files.json +758 -185
  558. package/release-manifests/unified/frontend.cdx.json +2688 -5952
  559. package/release-manifests/unified/installer.cdx.json +2053 -821
  560. package/release-manifests/unified/obsolete-admin-assets.json +170 -6
  561. package/release-manifests/unified/runtime.cdx.json +40 -3283
  562. package/release-manifests/unified/validation.json +15 -15
  563. package/tools/eos-release-check.cjs +2 -2
  564. package/tools/eos-release-manifest.cjs +3 -3
  565. package/ui/admin/react/assets/index-BJO3q7oe.js +13 -0
  566. package/ui/admin/react/assets/{index-CuquHlsY.css → index-ofLP_Y7y.css} +1 -1
  567. package/ui/admin/react/index.html +2 -2
  568. package/ui/docs/security/eslint-reviewed-findings.json +26 -26
  569. package/ui/ems/engine.js +54 -7
  570. package/ui/ems/module-manager.js +44 -21
  571. package/ui/ems/modules/core-limits.js +5 -3
  572. package/ui/ems/modules/energy-wallet.js +38 -33
  573. package/ui/ems/modules/storage-control.js +64 -22
  574. package/ui/ems/modules/tarif-vis.js +36 -24
  575. package/ui/ems/modules/tariff-provider.js +28 -6
  576. package/ui/ems/services/tariff-provider-registry.js +11 -8
  577. package/ui/io-package.json +1 -1
  578. package/ui/lib/customer-tariff.js +5 -1
  579. package/ui/lib/influx-config.js +204 -0
  580. package/ui/lib/influx-direct.js +527 -0
  581. package/ui/lib/influx-history-runtime.js +326 -0
  582. package/ui/lib/influx-network-policy.js +112 -0
  583. package/ui/lib/installer-lifecycle.js +134 -1
  584. package/ui/lib/storage-farm-overview.js +115 -0
  585. package/ui/lib/tariff-price.js +115 -0
  586. package/ui/lib/ui-access-policy.js +2 -2
  587. package/ui/main.js +743 -264
  588. package/ui/package.json +18 -6
  589. package/ui/www/app.js +195 -334
  590. package/ui/www/ems-apps.html +4 -1
  591. package/ui/www/ems-apps.js +21 -2
  592. package/ui/www/energy-ledger.html +1 -1
  593. package/ui/www/evcs.html +1 -1
  594. package/ui/www/history.html +1 -1
  595. package/ui/www/history.js +114 -74
  596. package/ui/www/index.html +4 -1
  597. package/ui/www/licenses/smarthome-markdown-components.json +156 -156
  598. package/ui/www/live-display.js +115 -0
  599. package/ui/www/logic.html +1 -1
  600. package/ui/www/login.css +1 -0
  601. package/ui/www/login.html +2 -1
  602. package/ui/www/manifest.webmanifest +2 -2
  603. package/ui/www/power-measurements.js +62 -0
  604. package/ui/www/settings.html +4 -1
  605. package/ui/www/simulation.html +1 -1
  606. package/ui/www/smarthome-config.html +1 -1
  607. package/ui/www/smarthome.html +1 -1
  608. package/ui/www/storagefarm-dispatch.js +287 -0
  609. package/ui/www/storagefarm-summary.css +32 -0
  610. package/ui/www/storagefarm-summary.js +136 -0
  611. package/ui/www/storagefarm.html +31 -2
  612. package/ui/www/storagefarm.js +14 -44
  613. package/ui/www/tariff-display.js +161 -0
  614. package/ui/www/tariff-report.js +43 -25
  615. package/ui/admin/react/assets/index-Bq5IupDw.js +0 -13
@@ -302,6 +302,7 @@ class SpeedwireHub {
302
302
  if (this._restarting) return;
303
303
  if (this.starting) return;
304
304
  if (!this.socket) return;
305
+ if (!this.handlers.size) return;
305
306
 
306
307
  this._restarting = true;
307
308
  const sock = this.socket;
@@ -323,6 +324,7 @@ class SpeedwireHub {
323
324
  });
324
325
 
325
326
  try {
327
+ if (!this.handlers.size) return;
326
328
  if (reason) this._logWarn(`[speedwire] Restarting UDP listener (${reason}).`);
327
329
  await this.start();
328
330
  } catch (e) {
@@ -426,13 +428,23 @@ class SpeedwireHub {
426
428
  sock.on('error', (err) => {
427
429
  this._logWarn(`[speedwire] UDP socket error (${this.multicastGroup}:${this.port}): ${_errMsg(err)}`);
428
430
  try { sock.close(); } catch (_) { /* ignore */ }
429
- this.socket = null;
430
- this.started = false;
431
- this.starting = null;
431
+ if (this.socket === sock) {
432
+ this.socket = null;
433
+ this.started = false;
434
+ }
435
+ });
436
+ // A closed socket is no longer a running receiver. Keep its subscribers;
437
+ // the next ordinary device read can create a replacement listener.
438
+ sock.on('close', () => {
439
+ if (this.socket === sock) {
440
+ this.socket = null;
441
+ this.started = false;
442
+ }
432
443
  });
433
444
 
434
445
  sock.on('message', (msg, rinfo) => {
435
446
  try {
447
+ if (this.socket !== sock) return;
436
448
  this.rxCount += 1;
437
449
  this.lastRxAt = Date.now();
438
450
 
@@ -543,10 +555,10 @@ class SpeedwireHub {
543
555
  this._startWatchdog();
544
556
 
545
557
  this.started = true;
546
- this.starting = null;
547
558
  })();
548
559
 
549
- return await this.starting;
560
+ try { return await this.starting; }
561
+ finally { this.starting = null; }
550
562
  }
551
563
 
552
564
  addHandler(fn) {
@@ -559,7 +571,10 @@ class SpeedwireHub {
559
571
 
560
572
  async stopIfUnused() {
561
573
  if (this.handlers.size) return;
562
- if (!this.socket) return;
574
+ // Binding is asynchronous. Wait for its completion before closing, and
575
+ // recheck users because a replacement driver may have joined meanwhile.
576
+ if (this.starting) { try { await this.starting; } catch (_) { /* Failed binds still need cleanup. */ } }
577
+ if (this.handlers.size) return;
563
578
 
564
579
  if (this._refreshTimer) {
565
580
  try { clearInterval(this._refreshTimer); } catch (_) { /* ignore */ }
@@ -576,6 +591,7 @@ class SpeedwireHub {
576
591
  this.started = false;
577
592
  this.starting = null;
578
593
 
594
+ if (!sock) return;
579
595
  await new Promise((resolve) => {
580
596
  try { sock.close(() => resolve()); } catch (_) { resolve(); }
581
597
  });
@@ -654,20 +670,19 @@ class SpeedwireDriver {
654
670
  }
655
671
 
656
672
  async _ensureListener() {
657
- if (this.hub) return;
658
-
659
- const { hub, key } = getHub(this.adapter, {
660
- port: this.port,
661
- multicastGroup: this.multicastGroup,
662
- interfaceAddress: this.interfaceAddress,
663
- });
664
-
665
- this.hub = hub;
666
- this.hubKey = key;
667
-
668
- await this.hub.start();
669
-
670
- this.unregister = this.hub.addHandler((parsed, rinfo) => {
673
+ if (!this.hub) {
674
+ const { hub, key } = getHub(this.adapter, {
675
+ port: this.port,
676
+ multicastGroup: this.multicastGroup,
677
+ interfaceAddress: this.interfaceAddress,
678
+ });
679
+ this.hub = hub;
680
+ this.hubKey = key;
681
+ }
682
+ const hub = this.hub;
683
+ // Register before awaiting the bind. This prevents a concurrent disconnect
684
+ // from treating a pending replacement subscriber as an unused listener.
685
+ if (!this.unregister) this.unregister = hub.addHandler((parsed, rinfo) => {
671
686
  try {
672
687
  // Track any parsed meter telegrams (helps detect filterHost issues)
673
688
  this.lastSeenAny = Date.now();
@@ -683,6 +698,9 @@ class SpeedwireDriver {
683
698
  // ignore
684
699
  }
685
700
  });
701
+ // A hub reference alone is not liveness: an earlier bind or socket error
702
+ // may have closed its receiver. start() is idempotent while really active.
703
+ await hub.start();
686
704
  }
687
705
 
688
706
  async disconnect() {
@@ -700,9 +718,11 @@ class SpeedwireDriver {
700
718
  if (hub) await hub.stopIfUnused();
701
719
  } catch (_) { /* ignore */ }
702
720
 
703
- // Cleanup global map if the hub stopped
721
+ // A failed bind may leave an intentionally retained hub with other users.
722
+ // Remove only this unused, stopped registry entry, never a replacement hub
723
+ // installed while our asynchronous disconnect was finishing.
704
724
  try {
705
- if (key && hub && !hub.socket) _hubByKey.delete(key);
725
+ if (key && hub && !hub.socket && !hub.starting && !hub.handlers.size && _hubByKey.get(key) === hub) _hubByKey.delete(key);
706
726
  } catch (_) { /* ignore */ }
707
727
  }
708
728
 
@@ -0,0 +1,29 @@
1
+ // @ts-check
2
+ 'use strict';
3
+
4
+ // Keep proof local to the actual snapshot. It cannot survive JSON/cache copies,
5
+ // and does not add data points or change the enumerable measurement contract.
6
+ /** @type {WeakMap<object, Map<string, object>>} */
7
+ const responses = new WeakMap();
8
+
9
+ /** Record only decoded values from one completed, validated register response.
10
+ * @param {object} values @param {string[]} ids @returns {void}
11
+ */
12
+ function recordReadResponse(values, ids) {
13
+ let samples = responses.get(values);
14
+ if (!samples) { samples = new Map(); responses.set(values, samples); }
15
+ const response = {};
16
+ for (const id of ids) samples.set(id, response);
17
+ }
18
+
19
+ /** A poll can contain several replies, including adaptive split fallback.
20
+ * Context-sensitive registers must originate in the same actual response.
21
+ * @param {object} values @param {string} target @param {string} context @returns {boolean}
22
+ */
23
+ function hasSameReadResponse(values, target, context) {
24
+ const samples = responses.get(values);
25
+ const response = samples?.get(target);
26
+ return !!response && response === samples?.get(context);
27
+ }
28
+
29
+ module.exports = { recordReadResponse, hasSameReadResponse };
@@ -0,0 +1,154 @@
1
+ 'use strict';
2
+
3
+ const test = require('node:test');
4
+ const assert = require('node:assert/strict');
5
+ const Module = require('node:module');
6
+ const templates = require('../lib/templates.json').templates;
7
+ const { recordReadResponse } = require('../lib/modbusReadEvidence');
8
+ const { buildSemanticAliasDefinitions } = require('../lib/deviceAliasSemantics');
9
+
10
+ const originalLoad = Module._load;
11
+ Module._load = function (request, parent, isMain) {
12
+ if (request === 'modbus-serial') return class ModbusRTU {};
13
+ if (request === 'serialport') return { SerialPort: class SerialPort {} };
14
+ if (request === 'mqtt') return { connect() { throw new Error('unexpected device connection'); } };
15
+ if (request === 'axios') return {};
16
+ return originalLoad.call(this, request, parent, isMain);
17
+ };
18
+ let DeviceRuntime;
19
+ let ModbusDriver;
20
+ try {
21
+ DeviceRuntime = require('../lib/deviceRuntime').DeviceRuntime;
22
+ ModbusDriver = require('../lib/drivers/modbus').ModbusDriver;
23
+ } finally { Module._load = originalLoad; }
24
+
25
+ function createRuntime(templateId, protocol = 'modbusTcp', config = {}) {
26
+ const template = templates.find(item => item.id === templateId);
27
+ assert.ok(template);
28
+ const writes = [];
29
+ const adapter = {
30
+ log: { debug() {}, info() {}, warn() {}, error() {} },
31
+ async setStateAsync(id, state) { writes.push({ id, ...state, ts: Date.now() }); },
32
+ };
33
+ const cfg = { id: 'sample', templateId, category: template.category, protocol, connection: {}, ...config };
34
+ const runtime = new DeviceRuntime(adapter, cfg, template, {});
35
+ for (const dp of template.datapoints) runtime.dpById.set(dp.id, dp);
36
+ runtime.aliasDefs = runtime._buildAliasDefinitions();
37
+ runtime._liveAliasRefreshMs = runtime._computeLiveAliasRefreshMs({ fastIntervalMs: 1000 });
38
+ return { runtime, writes, template, adapter, cfg };
39
+ }
40
+
41
+ function lastWrite(writes, suffix) { return writes.findLast(item => item.id.endsWith(suffix)); }
42
+
43
+ test('constant SMA grid samples stay fresh for 30 minutes; cached telegrams, failed polls and counters do not', async t => {
44
+ let now = 100000;
45
+ t.mock.method(Date, 'now', () => now);
46
+ const { runtime, writes } = createRuntime('meter.sma.SmaEnergyMeterSpeedwireImpl', 'speedwire');
47
+ runtime.driver = { lastSeen: now };
48
+ const values = { aCTIVE_POWER: 1.234, aCTIVE_CONSUMPTION_POWER: 1.234, aCTIVE_PRODUCTION_POWER: 0 };
49
+ for (let i = 0; i <= 1800; i++) {
50
+ runtime.driver.lastSeen = now;
51
+ await runtime._updateAliases(values, { connected: true });
52
+ assert.equal(lastWrite(writes, '.aliases.v1.r.power').val, 1234);
53
+ assert.ok(now - lastWrite(writes, '.aliases.v1.r.power').ts < 2000, 'constant measured power must remain current');
54
+ now += 1000;
55
+ }
56
+ const freshAt = lastWrite(writes, '.aliases.v1.r.power').ts;
57
+ now += 30000;
58
+ await runtime._updateAliases(values, { connected: true });
59
+ assert.equal(lastWrite(writes, '.aliases.v1.r.power').ts, freshAt, 'old Speedwire telegram cannot renew measurement');
60
+ await runtime._updateAliases({}, { connected: false, lastError: 'timeout' });
61
+ assert.equal(lastWrite(writes, '.aliases.v1.r.power').ts, freshAt);
62
+ assert.equal(lastWrite(writes, '.aliases.v1.comm.connected').val, false);
63
+ assert.equal(runtime._liveAliasRefreshOptions('devices.sample.aliases.v1.r.energyImport', values, {}, ['aCTIVE_POWER']), undefined);
64
+ });
65
+
66
+ test('FENECON real battery, SOC, PV, converter and grid samples refresh within bound while commands remain change-only', async t => {
67
+ let now = 500000;
68
+ t.mock.method(Date, 'now', () => now);
69
+ const { runtime, writes } = createRuntime('ess.fenecon.FeneconHomeEssImpl');
70
+ const values = { bATTERY_AC_POWER: -2, eSS_SOC_IN: 60, pV_POWER_SUM: 3, pV_DC_POWER: 3, pV_AC_POWER: 0, eSS0_ACTIVE_POWER: 1, gRID_POWER: 0.2 };
71
+ await runtime._updateAliases(values, { connected: true });
72
+ const checks = new Map([
73
+ ['r.power', -2000], ['r.soc', 60], ['r.pvPower', 3000], ['r.pvPowerDc', 3000],
74
+ ['r.pvPowerAc', 0], ['r.essActivePower', 1000], ['r.nvpPower', 200],
75
+ ]);
76
+ const initialCount = writes.length;
77
+ now += 200;
78
+ await runtime._updateAliases(values, { connected: true });
79
+ assert.equal(writes.length, initialCount, 'polls before the refresh bound must not flood unchanged states');
80
+ now += 1000;
81
+ await runtime._updateAliases(values, { connected: true });
82
+ for (const [path, expected] of checks) {
83
+ const state = lastWrite(writes, `.aliases.v1.${path}`);
84
+ assert.equal(state.val, expected, path);
85
+ assert.equal(state.ts, now, path);
86
+ }
87
+ const pvAt = lastWrite(writes, '.aliases.v1.r.pvPowerDc').ts;
88
+ now += 30000;
89
+ await runtime._updateAliases({ eSS_SOC_IN: 60 }, { connected: true });
90
+ assert.equal(lastWrite(writes, '.aliases.v1.r.pvPowerDc').ts, pvAt, 'unrelated SOC sample cannot refresh PV');
91
+ assert.equal(runtime._liveAliasRefreshOptions('devices.sample.aliases.v1.ctrl.powerSetpointW', values, {}, ['eSS0_ACTIVE_POWER']), undefined);
92
+ });
93
+
94
+ test('SolaX applied-target readback refreshes only from actual poll, never write acknowledgement or unrelated packet', async t => {
95
+ let now = 1000000;
96
+ t.mock.method(Date, 'now', () => now);
97
+ const { runtime, writes } = createRuntime('ess.solax.SolaXHybridX1X3Ess');
98
+ const actual = { sET_CONTROL_MODE: 4, sET_ACTIVE_POWER: 900 };
99
+ recordReadResponse(actual, Object.keys(actual));
100
+ await runtime._updateAliases(actual, { connected: true });
101
+ const path = '.aliases.v1.r.powerSetpointReadbackW';
102
+ now += 5000;
103
+ await runtime._ackWrittenValue(runtime.dpById.get('sET_ACTIVE_POWER'), 1200);
104
+ assert.equal(lastWrite(writes, path).ts, 1000000);
105
+ assert.equal(lastWrite(writes, path).val, 900);
106
+ await runtime._updateAliases({ bMS1_SOC: 55 }, { connected: true });
107
+ assert.equal(lastWrite(writes, path).ts, 1000000);
108
+ const nextActual = { sET_CONTROL_MODE: 4, sET_ACTIVE_POWER: 900 };
109
+ recordReadResponse(nextActual, Object.keys(nextActual));
110
+ await runtime._updateAliases(nextActual, { connected: true });
111
+ assert.equal(lastWrite(writes, path).ts, now);
112
+ });
113
+
114
+ test('MQTT full caches and diagnostic packets cannot refresh an old source or a partially updated computed alias', async t => {
115
+ let now = 2000000;
116
+ t.mock.method(Date, 'now', () => now);
117
+ const { runtime, writes } = createRuntime('ess.solax.SolaXHybridX1X3Ess', 'mqtt');
118
+ runtime.driver = { updatedAtByDpId: new Map([['bATTERY_POWER', now], ['pV_POWER', now]]) };
119
+ const values = { bATTERY_POWER: 1500, pV_POWER: 500 };
120
+ await runtime._updateAliases(values, { connected: true });
121
+ const powerPath = '.aliases.v1.r.power';
122
+ now += 5000;
123
+ runtime.driver.updatedAtByDpId.set('pV_POWER', now);
124
+ await runtime._updateAliases(values, { connected: true });
125
+ assert.equal(lastWrite(writes, powerPath).ts, 2000000);
126
+ assert.equal(lastWrite(writes, '.aliases.v1.r.pvPowerTotal').ts, now);
127
+ runtime.driver.updatedAtByDpId.set('bATTERY_POWER', now);
128
+ await runtime._updateAliases(values, { connected: true, diagnosticsOnly: true });
129
+ assert.equal(lastWrite(writes, powerPath).ts, 2000000);
130
+ await runtime._updateAliases(values, { connected: true });
131
+ assert.equal(lastWrite(writes, powerPath).ts, now);
132
+ // A composite measurement requires renewed evidence for every source it uses.
133
+ runtime.aliasDefs = [{ relId: 'devices.sample.aliases.v1.r.power', type: 'number', rw: 'ro', kind: 'computed', get: v => v.bATTERY_POWER + v.pV_POWER }];
134
+ await runtime._updateAliases(values, { connected: true });
135
+ const compositeAt = lastWrite(writes, powerPath).ts;
136
+ now += 5000;
137
+ runtime.driver.updatedAtByDpId.set('bATTERY_POWER', now);
138
+ await runtime._updateAliases(values, { connected: true });
139
+ assert.equal(lastWrite(writes, powerPath).ts, compositeAt);
140
+ });
141
+
142
+ test('FENECON 780 controller block / 882 target changes only controller route and retains all verified read aliases', () => {
143
+ const { runtime, template, adapter, cfg } = createRuntime('ess.fenecon.FeneconHomeEssImpl', 'modbusTcp', { feneconCtrlBalancingOffset: -110 });
144
+ const driver = new ModbusDriver(adapter, cfg, template, {});
145
+ const target = template.datapoints.find(dp => dp.id === 'sET_GRID_ACTIVE_POWER');
146
+ assert.equal(driver._addr(target.source.write), 882);
147
+ const before = buildSemanticAliasDefinitions({ baseId: runtime.baseId, template });
148
+ const after = buildSemanticAliasDefinitions({ baseId: runtime.baseId, template, getDpById: id => runtime.dpById.get(id) });
149
+ assert.deepEqual(after.coverage, before.coverage);
150
+ for (const [id, address] of [['eSS0_ACTIVE_POWER', 604], ['gRID_POWER', 315], ['pV_DC_POWER', 339], ['mIN_POWER_SETPOINT', 702]]) {
151
+ assert.equal(driver._addr(runtime.dpById.get(id).source.read), address);
152
+ }
153
+ assert.equal(after.definitions.length, 8);
154
+ });
@@ -13,7 +13,7 @@ function browser() {
13
13
  const summary = new Element();
14
14
  const row = new Element(); row.dataset = { eosEmsId: 'evcs1', eosEmsMode: 'auto', eosEmsEnabled: 'true' };
15
15
  const window = {};
16
- vm.runInNewContext(source, { window, HTMLElement: Element, document: { getElementById: () => summary, querySelectorAll: () => [row] } });
16
+ vm.runInNewContext(source, { window, crypto: require('node:crypto').webcrypto, HTMLElement: Element, document: { getElementById: () => summary, querySelectorAll: () => [row] } });
17
17
  return { api: window.EosDeviceEms, row, summary };
18
18
  }
19
19
  const device = { id: 'evcs1', templateId: 'fixture.template', protocol: 'modbusTcp', enabled: true, connection: { host: '192.0.2.50' } };
@@ -69,7 +69,7 @@ test('public mapping status is plain text, identifies commissioning and never cl
69
69
  const { api, row, summary } = browser();
70
70
  api.render({ state: 'ready', statuses: [{ deviceId: 'evcs1', status: 'mapped', code: 'COMMISSIONING_REQUIRED' }] });
71
71
  assert.match(row.textContent, /Zugeordnet/);
72
- assert.match(row.textContent, /Betriebsfreigabe/);
72
+ assert.match(row.textContent, /EMS-Verwendung/);
73
73
  assert.match(summary.textContent, /1 Gerät\(e\) zugeordnet/);
74
74
  api.render({ state: 'ready', statuses: [{ deviceId: 'evcs1', status: 'conflict', code: '<img src=x onerror=alert(1)>' }] });
75
75
  assert.equal(row.dataset.state, 'conflict');
@@ -105,7 +105,7 @@ test('partial mappings remain visibly incomplete and occupied targets explain th
105
105
  api.render({ state: 'ready', statuses: [{ devId: 'evcs1', status: 'manual', code: 'MONITOR_ONLY' }] });
106
106
  assert.match(row.textContent, /automatisch verwaltete Steuereinträge deaktiviert/);
107
107
  assert.match(api.help('ESS', 'monitor', ''), /Andere manuelle Einträge bleiben unverändert/);
108
- assert.match(api.help('ESS', 'monitor', ''), /spätere Betriebsfreigabe erfolgt manuell/);
108
+ assert.match(api.help('ESS', 'monitor', ''), /spätere Betriebsfreigabe erfolgt durch ausdrückliche/);
109
109
  assert.match(api.help('ESS', 'manual', ''), /beendet keine bestehende Regelung/);
110
110
  });
111
111
 
@@ -113,7 +113,7 @@ test('optional manufacturer readback is distinguished from required missing data
113
113
  const { api, row, summary } = browser();
114
114
  api.render({ state: 'ready', statuses: [{ devId: 'evcs1', status: 'mapped', code: 'COMMISSIONING_REQUIRED', optionalMissing: ['feneconActualSetpointId', '<img>'] }] });
115
115
  assert.equal(row.dataset.state, 'mapped');
116
- assert.match(row.textContent, /Optional nicht verfügbar: Rückmeldung des tatsächlich angewendeten Sollwerts/);
116
+ assert.match(api.describe('evcs1', {}, true).optionalDetail, /Optional nicht verfügbar: Rückmeldung des tatsächlich angewendeten Sollwerts/);
117
117
  assert.doesNotMatch(row.textContent, /<img>|Fehlt:/);
118
118
  assert.match(summary.textContent, /1 Gerät\(e\) zugeordnet/);
119
119
  });
@@ -123,13 +123,13 @@ test('profile-independent optional aliases and numeric mapping errors remain cle
123
123
  api.render({ state: 'ready', statuses: [{ devId: 'evcs1', status: 'mapped', code: 'COMMISSIONING_REQUIRED',
124
124
  optionalMissing: ['r.pvPowerDc', 'futureVendorExtraId', 'feneconNvpPowerObjectId'] }] });
125
125
  assert.equal(row.dataset.state, 'mapped');
126
- assert.match(row.textContent, /PV-Leistung DC/); assert.match(row.textContent, /Netzanschlussleistung/);
127
- assert.match(row.textContent, /1 weitere profilabhängige Datenpunkt-Zuordnung/);
126
+ assert.match(api.describe('evcs1', {}, true).optionalDetail, /PV-Leistung DC/); assert.match(api.describe('evcs1', {}, true).optionalDetail, /Netzanschlussleistung/);
127
+ assert.match(api.describe('evcs1', {}, true).optionalDetail, /1 weitere profilabhängige Datenpunkt-Zuordnung/);
128
128
  assert.doesNotMatch(row.textContent, /futureVendor|feneconNvp/);
129
129
  api.render({ state: 'ready', statuses: [{ devId: 'evcs1', status: 'mapped', code: 'MAPPING_INCOMPLETE', missing: ['invalid:pvPowerId'] }] });
130
130
  assert.equal(row.dataset.state, 'pending');
131
131
  assert.match(row.textContent, /Eine Zahl ersetzt keinen Datenpunkt/);
132
- assert.match(row.textContent, /Betriebsfreigabe|erforderliche Datenpunkte/);
132
+ assert.match(row.textContent, /Gerätefunktionen oder Einstellungen/);
133
133
  api.render({ state: 'ready', statuses: [{ devId: 'evcs1', status: 'mapped', code: 'MAPPING_INCOMPLETE', missing: ['review:feneconGridSetpointObjectId'] }] });
134
134
  assert.match(row.textContent, /Regelungsart.*ausdrücklich prüfen/);
135
135
  assert.match(row.textContent, /bisherige Direktregelung bleibt erhalten/);
@@ -169,13 +169,13 @@ test('bounded status polling and explicit refresh preserve unsaved device and EM
169
169
  const f = await pollingFixture();
170
170
  f.draft().devices[0].name = 'Customer draft';
171
171
  f.draft().devices[0].ems = { mode: 'storageFarm', scope: 'M0' }; f.changed();
172
- for (let i = 0; i < 12; i++) await f.tick();
173
- assert.equal(f.reads(), 13, 'one initial read and twelve bounded status polls');
172
+ for (let i = 0; i < 30; i++) await f.tick();
173
+ assert.equal(f.reads(), 31, 'one initial read and thirty bounded status polls');
174
174
  assert.equal(f.timers.size, 0, 'no endless polling after pending budget expires');
175
175
  assert.equal(f.loads(), 1, 'polling never reloads the editable configuration');
176
- assert.equal(f.renders(), 13);
176
+ assert.equal(f.renders(), 31);
177
177
  f.node('eosEmsRefresh').events.click(); await f.settle();
178
- assert.equal(f.loads(), 1); assert.equal(f.reads(), 14);
178
+ assert.equal(f.loads(), 1); assert.equal(f.reads(), 32);
179
179
  assert.equal(f.draft().devices[0].name, 'Customer draft');
180
180
  assert.deepEqual(f.draft().devices[0].ems, { mode: 'storageFarm', scope: 'M0' });
181
181
  assert.equal(f.node('eosModuleStatus').textContent, 'Ungespeicherte Änderungen.');
@@ -188,3 +188,111 @@ test('leaving the devices page cancels its pending EMS status poll', async () =>
188
188
  assert.equal(f.timers.size, 0);
189
189
  assert.equal(f.reads(), 1);
190
190
  });
191
+
192
+ test('missing service, empty READY, partial status and global errors never masquerade as completed commissioning', () => {
193
+ const { api, row, summary } = browser();
194
+ api.setDevices([{ id: 'evcs1' }, { id: 'meter1' }]);
195
+ api.render(undefined);
196
+ assert.equal(api.needsPolling(), true); assert.match(row.textContent, /Rückmeldung wird geladen/);
197
+ assert.doesNotMatch(row.textContent, /nach dem Speichern verfügbar/);
198
+ api.render({ state: 'ready', statuses: [] });
199
+ assert.equal(api.needsPolling(), true); assert.match(summary.textContent, /2 gespeicherte.*ohne EMS-Rückmeldung/);
200
+ assert.equal(summary.dataset.state, 'pending');
201
+ api.render({ state: 'ready', statuses: [{ deviceId: 'evcs1', status: 'mapped', code: 'ACTIVATION_APPLIED', activationApplied: true }] });
202
+ assert.equal(api.needsPolling(), true); assert.match(row.textContent, /EMS eingerichtet/);
203
+ assert.match(row.textContent, /wartet auf gültige Messwerte/);
204
+ api.render({ state: 'error', code: 'EOS_EMS_BRIDGE_UNAVAILABLE', statuses: [{ deviceId: 'evcs1', code: 'EOS_EMS_BRIDGE_UNAVAILABLE', status: 'pending' }] });
205
+ assert.equal(api.needsPolling(), false); assert.equal(row.dataset.state, 'conflict');
206
+ assert.match(row.textContent, /EMS-Verbindung nicht verfügbar/); assert.match(summary.textContent, /fehlgeschlagen/);
207
+ });
208
+
209
+ test('explicit global Save commissions legacy selections once and retains the token across ambiguous retries and unrelated saves', () => {
210
+ const { api } = browser();
211
+ const old = { ...device, category: 'ESS', futureValue: 7, ems: { mode: 'storageFarm', scope: 'M0' } };
212
+ const prepared = api.prepareSave([old], [old]);
213
+ const json = value => JSON.parse(JSON.stringify(value));
214
+ assert.equal(prepared[0].ems.activation.requested, true);
215
+ assert.match(prepared[0].ems.activation.requestId, /^[0-9a-f-]{36}$/);
216
+ assert.equal(prepared[0].futureValue, 7); assert.equal(old.ems.activation, undefined);
217
+ assert.deepEqual(json(api.prepareSave([old], [old])), json(prepared), 'an explicit retry keeps the request token after an ambiguous response');
218
+ const edited = json(prepared); edited[0].name = 'New name';
219
+ assert.equal(api.prepareSave(edited, prepared)[0].ems.activation.requestId, prepared[0].ems.activation.requestId, 'renaming never re-enables a later disabled app');
220
+ const limits = json(prepared); limits[0].ems.activation.limits = { maxChargeW: 5000, maxDischargeW: 5000, coupling: 'dc', capacityKWh: 10 };
221
+ assert.notEqual(api.prepareSave(limits, prepared)[0].ems.activation.requestId, prepared[0].ems.activation.requestId);
222
+ api.setDevices(prepared); api.requestRenewal('evcs1');
223
+ assert.notEqual(api.prepareSave(prepared, prepared)[0].ems.activation.requestId, prepared[0].ems.activation.requestId, 'explicitly rechecking EMS use can renew an intentionally disabled app');
224
+ });
225
+
226
+ test('activation requests survive strict Devices persistence and malformed or unlimited limits are rejected', () => {
227
+ const { api } = browser();
228
+ const deviceWithIntent = { ...device, category: 'EVCS', ems: { mode: 'auto', activation: { requested: true,
229
+ limits: { chargerType: 'ac', phases: 3, minCurrentA: 6, maxCurrentA: 16 } } } };
230
+ const prepared = JSON.parse(JSON.stringify(api.prepareSave([deviceWithIntent], [])));
231
+ assert.deepEqual(validateConfig({ devices: prepared }).devices, prepared);
232
+ for (const mutation of [activation => { activation.requestId = 'invalid'; },
233
+ activation => { activation.limits.minCurrentA = 0; }, activation => { activation.limits.phases = 2; },
234
+ activation => { activation.limits.maxCurrentA = 5; }, activation => { activation.limits.command = 'enable'; }]) {
235
+ const invalid = structuredClone(prepared); mutation(invalid[0].ems.activation);
236
+ assert.throws(() => validateConfig({ devices: invalid }), /EOS_DEVICES_EMS_/);
237
+ }
238
+ const manual = { ...deviceWithIntent, ems: { mode: 'manual' } };
239
+ assert.equal(api.prepareSave([manual], [manual])[0].ems.activation, undefined);
240
+ });
241
+
242
+ test('profile capability chips use explicit datapoint metadata, not category or manufacturer guesses', () => {
243
+ const { api } = browser();
244
+ const template = { category: 'ESS', manufacturer: 'FENECON', datapoints: [
245
+ { type: 'number', role: 'value.power', rw: 'ro', source: { kind: 'modbus', read: { fc: 4, address: 1 } } },
246
+ { type: 'number', role: 'value.battery', unit: '%', rw: 'ro', source: { kind: 'modbus' } },
247
+ { type: 'number', role: 'level.power', rw: 'wo', source: { kind: 'modbus', write: { fc: 16, address: 2 } } },
248
+ { type: 'number', role: 'value.temperature', rw: 'wo', source: { kind: 'modbus' } },
249
+ { type: 'number', role: 'value.energy', rw: 'ro' },
250
+ ] };
251
+ assert.deepEqual(Array.from(api.capabilities(template)), ['Leistungsmessung', 'Ladezustand', 'Leistungsvorgabe', 'Schreibdatenpunkte']);
252
+ assert.deepEqual(Array.from(api.capabilities({ category: 'ESS', manufacturer: 'FENECON', datapoints: [] })), []);
253
+ assert.deepEqual(Array.from(api.capabilities({ category: 'PV_INVERTER', datapoints: [{ type: 'number', role: 'value', name: 'PVPower', rw: 'ro', source: { kind: 'modbus' } }] })), []);
254
+ const catalog = require('../lib/templates.json').templates;
255
+ assert.ok(api.capabilities(catalog.find(item => item.id === 'ess.fenecon.FeneconHomeEssImpl')).includes('Leistungsvorgabe'));
256
+ assert.ok(!api.capabilities(catalog.find(item => item.id === 'meter.sma.SmaEnergyMeterSpeedwireImpl')).includes('Leistungsvorgabe'));
257
+ });
258
+
259
+ test('a previous activation acknowledgement cannot confirm a newly saved request, while current errors stay visible', () => {
260
+ const { api, row, summary } = browser();
261
+ api.setDevices([{ id: 'evcs1', ems: { mode: 'auto', activation: { requested: true, requestId: 'new-request' } } }]);
262
+ api.render({ state: 'ready', statuses: [{ deviceId: 'evcs1', status: 'mapped', code: 'ACTIVATION_APPLIED', activationApplied: true, activationRequestId: 'previous-request' }] });
263
+ assert.equal(api.needsPolling(), true); assert.equal(row.dataset.state, 'pending');
264
+ assert.match(row.textContent, /bisherige Rückmeldung gilt nicht als neue Freigabe/);
265
+ assert.equal(summary.dataset.state, 'pending');
266
+ api.render({ state: 'ready', statuses: [{ deviceId: 'evcs1', status: 'pending', code: 'ACTIVATION_PENDING', missing: ['limit:maxChargeW', 'reference:powerId'] }] });
267
+ assert.match(row.textContent, /maximale Ladeleistung.*Leistungsmesswert/);
268
+ api.render({ state: 'ready', statuses: [{ deviceId: 'evcs1', status: 'mapped', code: 'ACTIVATION_APPLIED', activationApplied: true, activationRequestId: 'new-request' }] });
269
+ assert.equal(api.needsPolling(), false); assert.match(row.textContent, /EMS eingerichtet/);
270
+ });
271
+
272
+ test('explicit profile or device-class change renews the binding-specific activation without renewing unrelated edits', () => {
273
+ const { api } = browser();
274
+ const original = { ...device, category: 'EVCS', ems: { mode: 'auto', activation: { requested: true, requestId: '0ef06100-32c6-4d34-baf4-e6503a205c22', limits: {} } } };
275
+ const changed = structuredClone(original); changed.templateId = 'fixture.other';
276
+ const prepared = api.prepareSave([changed], [original]);
277
+ assert.notEqual(prepared[0].ems.activation.requestId, original.ems.activation.requestId);
278
+ changed.category = 'EVSE';
279
+ assert.notEqual(api.prepareSave([changed], [original])[0].ems.activation.requestId, prepared[0].ems.activation.requestId);
280
+ const disabled = structuredClone(original); disabled.ems.activation.requested = false; disabled.templateId = 'fixture.other';
281
+ assert.equal(api.prepareSave([disabled], [disabled])[0].ems.activation.requestId, original.ems.activation.requestId);
282
+ });
283
+
284
+
285
+ test('module runtime READY is only startup permission and failure never claims working telemetry', () => {
286
+ const { api } = browser();
287
+ const starting = api.runtimeStatus({ enabled: true, active: false, reason: 'READY', details: {} });
288
+ assert.equal(starting.state, 'starting'); assert.equal(starting.monitor, true);
289
+ assert.match(starting.text, /noch keine laufende Gerätekommunikation/);
290
+ const failed = api.runtimeStatus({ enabled: true, active: false, reason: 'START_FAILED_RESTART_REQUIRED', details: { lastError: 'credential-private-secret' } });
291
+ assert.equal(failed.state, 'error'); assert.match(failed.text, /konnte nicht starten/); assert.doesNotMatch(failed.text, /credential-private-secret/);
292
+ const waiting = api.runtimeStatus({ enabled: true, active: true, reason: 'RUNNING', details: { state: 'running', connected: false } });
293
+ assert.equal(waiting.state, 'waiting'); assert.match(waiting.text, /Noch keine aktuellen Gerätedaten bestätigt/);
294
+ const connected = api.runtimeStatus({ enabled: true, active: true, reason: 'RUNNING', details: { state: 'running', connected: true } });
295
+ assert.equal(connected.state, 'running'); assert.match(connected.text, /Messwertfrische je Gerät prüfen/);
296
+ assert.doesNotMatch(connected.text, /alle.*aktuell|alle.*normal|liefert aktuelle/i);
297
+ assert.equal(api.runtimeStatus({ enabled: false, reason: 'DISABLED' }).monitor, false);
298
+ });
@@ -0,0 +1,112 @@
1
+ 'use strict';
2
+ const test = require('node:test');
3
+ const assert = require('node:assert/strict');
4
+ const Module = require('node:module');
5
+ const originalLoad = Module._load;
6
+ Module._load = function (request, parent, main) {
7
+ if (request === 'modbus-serial') return class {};
8
+ if (request === 'serialport') return { SerialPort: class {} };
9
+ return originalLoad.call(this, request, parent, main);
10
+ };
11
+ let ModbusDriver;
12
+ try { ({ ModbusDriver } = require('../lib/drivers/modbus')); } finally { Module._load = originalLoad; }
13
+ const { guardDriver } = require('../operation-guard');
14
+ const template = require('../lib/templates.json').templates.find(row => row.id === 'ess.solax.SolaXHybridX1X3Ess');
15
+ const point = id => template.datapoints.find(row => row.id === id);
16
+ const denied = code => Object.assign(new Error(code), { code });
17
+ const illegal = () => Object.assign(new Error('Modbus exception 2'), { modbusCode: 2 });
18
+ function fixture(read) {
19
+ const logs = []; const calls = [];
20
+ const adapter = { log: Object.fromEntries(['debug', 'info', 'warn', 'error'].map(level => [level, message => logs.push({ level, message })])) };
21
+ const driver = new ModbusDriver(adapter, { id: 'solax', protocol: 'modbusTcp', templateId: template.id,
22
+ connection: { unitId: 1, minCommandIntervalMs: 0 } }, template, {});
23
+ driver.ensureConnected = async () => {};
24
+ const invoke = async (address, length) => { calls.push({ address, length }); return read(address, length); };
25
+ driver.client = { setID() {}, readInputRegisters: invoke, readHoldingRegisters: invoke, readCoils: invoke, readDiscreteInputs: invoke, close() {} };
26
+ return { driver, logs, calls };
27
+ }
28
+ function assertNotQuarantined(h) {
29
+ assert.equal(h.driver._readGroupSkipUntil.size, 0);
30
+ assert.equal(h.driver._readGroupWarnUntil.size, 0);
31
+ assert.equal(h.logs.some(row => /skipped temporarily/.test(row.message)), false);
32
+ assert.equal(h.driver._busy, false);
33
+ }
34
+
35
+ test('actual hosted gate loss after one SolaX read aborts the snapshot without poisoning remaining optional groups', async () => {
36
+ let allowed = true; let revoke = true;
37
+ const h = fixture((address, length) => { if (revoke) allowed = false; return { data: Array(length).fill(42) }; });
38
+ const driver = guardDriver(h.driver, () => allowed);
39
+ try {
40
+ await assert.rejects(driver.readDatapoints([point('sOC'), point('gRID_POWER')]), { code: 'EOS_DEVICES_NOT_AUTHORIZED' });
41
+ assert.equal(h.calls.length, 1, 'dispatch gate prevents the next physical read'); assertNotQuarantined(h);
42
+ allowed = true; revoke = false; h.calls.length = 0;
43
+ const result = await driver.readDatapoints([point('sOC'), point('gRID_POWER')]);
44
+ assert.ok(Object.hasOwn(result, 'sOC')); assert.ok(Object.hasOwn(result, 'gRID_POWER'));
45
+ assert.deepEqual(h.calls.map(row => row.address), [28, 52], 'next permitted poll immediately reads both groups');
46
+ } finally { await driver.disconnect(); }
47
+ });
48
+
49
+ test('authorization and explicit stop errors bypass optional caching for registers, coils and discrete inputs', async () => {
50
+ for (const code of ['EOS_DEVICES_NOT_AUTHORIZED', 'EOS_DEVICES_STOPPED', 'EOS_MODULE_STOPPED', 'EOS_OWNERSHIP_REQUIRED']) {
51
+ for (const fc of [1, 2, 3, 4]) {
52
+ const error = denied(code); const h = fixture(() => { throw error; });
53
+ const dp = { id: 'optional', rw: 'ro', source: { kind: 'modbus', fc, address: 10, length: 1, dataType: 'uint16' } };
54
+ try { await assert.rejects(h.driver.readDatapoints([dp]), thrown => thrown === error); assertNotQuarantined(h); }
55
+ finally { await h.driver.disconnect(); }
56
+ }
57
+ }
58
+ });
59
+
60
+ test('a gate error inside an already split read cannot blacklist an optional item or continue the other items', async () => {
61
+ const error = denied('EOS_DEVICES_NOT_AUTHORIZED'); const h = fixture(() => { throw error; });
62
+ h.driver._readGroupForceSplitUntil.set('1:4:50:53', Date.now() + 60000);
63
+ try {
64
+ await assert.rejects(h.driver.readDatapoints([point('pV_POWER'), point('gRID_POWER')]), thrown => thrown === error);
65
+ assertNotQuarantined(h); assert.equal(h.calls.length, 1);
66
+ } finally { await h.driver.disconnect(); }
67
+ });
68
+
69
+ test('authorization failure at a documented fallback is not swallowed as the original illegal-register response', async () => {
70
+ const error = denied('EOS_DEVICES_NOT_AUTHORIZED');
71
+ const h = fixture(address => { if (address === 52) throw illegal(); throw error; });
72
+ const dp = structuredClone(point('gRID_POWER')); dp.source.fallbackAddressOffsets = [1];
73
+ try {
74
+ await assert.rejects(h.driver.readDatapoints([dp]), thrown => thrown === error);
75
+ assertNotQuarantined(h); assert.deepEqual(h.calls.map(row => row.address), [52, 53]);
76
+ } finally { await h.driver.disconnect(); }
77
+ });
78
+
79
+ test('genuine unsupported optional registers retain their existing cooldown while useful groups remain readable', async () => {
80
+ const h = fixture((address, length) => { if (address === 52) throw illegal(); return { data: Array(length).fill(42) }; });
81
+ try {
82
+ assert.deepEqual(await h.driver.readDatapoints([point('sOC'), point('gRID_POWER')]), { sOC: 42 });
83
+ assert.equal(h.driver._readGroupSkipUntil.has('1:4:52:53'), true);
84
+ assert.equal(h.logs.some(row => /skipped temporarily/.test(row.message)), true);
85
+ h.calls.length = 0;
86
+ assert.deepEqual(await h.driver.readDatapoints([point('sOC'), point('gRID_POWER')]), { sOC: 42 });
87
+ assert.deepEqual(h.calls.map(row => row.address), [28]);
88
+ } finally { await h.driver.disconnect(); }
89
+ });
90
+
91
+ test('authorization loss during optional SunSpec scanning is propagated and cannot cache an incomplete model map', async () => {
92
+ const error = denied('EOS_DEVICES_NOT_AUTHORIZED'); let blocked = true;
93
+ const h = fixture(() => { if (blocked) throw error; return { data: [65535, 0] }; });
94
+ h.driver._autoSunSpec = true; h.driver._maybeDiscoverSunSpec = async () => true;
95
+ try {
96
+ await assert.rejects(h.driver._maybeScanSunSpecModels(), thrown => thrown === error);
97
+ assert.notEqual(h.driver._sunSpecModelsScanned, true);
98
+ blocked = false;
99
+ assert.equal(await h.driver._maybeScanSunSpecModels(), true);
100
+ assert.equal(h.driver._sunSpecModelsScanned, true);
101
+ } finally { await h.driver.disconnect(); }
102
+ });
103
+
104
+ test('the read entry point does not hide an authorization error from optional model discovery', async () => {
105
+ const error = denied('EOS_DEVICES_NOT_AUTHORIZED'); const h = fixture(() => ({ data: [0] }));
106
+ h.driver._maybeScanSunSpecModels = async () => { throw error; };
107
+ const dp = structuredClone(point('gRID_POWER')); dp.source.sunspecModel = 101;
108
+ try {
109
+ await assert.rejects(h.driver.readDatapoints([dp]), thrown => thrown === error);
110
+ assertNotQuarantined(h); assert.equal(h.calls.length, 0);
111
+ } finally { await h.driver.disconnect(); }
112
+ });