iobroker.eos-admin 9.0.19 → 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 (460) hide show
  1. package/NEXOWATT_EOS_BUILD_INFO.json +4 -4
  2. package/README.md +5 -3
  3. package/START_HIER_9.0.20.md +65 -0
  4. package/adminWww/.vite/manifest.json +39 -39
  5. package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +110 -109
  6. package/adminWww/assets/{AdapterUpdateDialog-JOf2z4Vg.js → AdapterUpdateDialog-CRD3XVom.js} +1 -1
  7. package/adminWww/assets/{Adapters-C9fcSdWm.js → Adapters-Cuf0X0CU.js} +1 -1
  8. package/adminWww/assets/{ConfigManager-BeeLlT6D.js → ConfigManager-B8ycQt1C.js} +1 -1
  9. package/adminWww/assets/{Enums-FqnXWl8U.js → Enums-CctVCgZX.js} +1 -1
  10. package/adminWww/assets/{Fields-DMgrt5Pi.js → Fields-onm4DfoO.js} +1 -1
  11. package/adminWww/assets/{Files-CIHtt12g.js → Files-OLP3Rwc7.js} +1 -1
  12. package/adminWww/assets/{Hosts-fPLBzvTy.js → Hosts-C31oqMcW.js} +1 -1
  13. package/adminWww/assets/{Instances-4XaVQlrT.js → Instances-DFdvJ9pa.js} +1 -1
  14. package/adminWww/assets/{Intro-5TKriiLO.js → Intro-DvsFJxU0.js} +1 -1
  15. package/adminWww/assets/{Logs-33zcIds-.js → Logs-Zqg2Bqv6.js} +1 -1
  16. package/adminWww/assets/{Objects-CNQPVbNG.js → Objects-CpWZp6yp.js} +1 -1
  17. package/adminWww/assets/{Overview-BskXGOc8.js → Overview-BsKUo298.js} +1 -1
  18. package/adminWww/assets/{State-C8SJ_Iqo.js → State-D_xwlhhb.js} +1 -1
  19. package/adminWww/assets/{UsedResources-CgqRa9ei.js → UsedResources-C79N6yZx.js} +1 -1
  20. package/adminWww/assets/{Users-0JVYWR9u.js → Users-WgC0O8P0.js} +1 -1
  21. package/adminWww/assets/{bootstrap-D16lu6rd.js → bootstrap-BcfBoIoa.js} +3 -3
  22. package/adminWww/assets/{hostInit-C8YZJuzi.js → hostInit-B7bBV7cH.js} +1 -1
  23. package/adminWww/assets/icons/nexowatt-180.png +0 -0
  24. package/adminWww/assets/{icons-material-CiNJ_6Ur.js → icons-material-D1JYmRTj.js} +1 -1
  25. package/adminWww/assets/{index-DA9Sphgh.js → index-DbiuoDjo.js} +2 -2
  26. package/adminWww/assets/{installSVGRenderer-DPdkRa_d.js → installSVGRenderer-BAY-Pzp-.js} +1 -1
  27. package/adminWww/assets/{mf-entry-bootstrap-0-a7ab91de.js → mf-entry-bootstrap-0-33384c20.js} +2 -2
  28. package/adminWww/index.html +24 -24
  29. package/adminWww/mf-manifest.json +1 -1
  30. package/adminWww/mf-stats.json +1 -1
  31. package/adminWww/remoteEntry-eos-9.0.20.js +12 -0
  32. package/adminWww/remoteEntry.js +1 -1
  33. package/build/lib/eosDeviceEmsPlan.js +18 -5
  34. package/build/lib/eosDeviceEmsPlan.js.map +1 -1
  35. package/build/lib/eosDeviceEmsService.js +52 -2
  36. package/build/lib/eosDeviceEmsService.js.map +1 -1
  37. package/build/lib/eosLegacyMigration.js +26 -1
  38. package/build/lib/eosLegacyMigration.js.map +1 -1
  39. package/build/lib/eosModuleHost.js +40 -0
  40. package/build/lib/eosModuleHost.js.map +1 -1
  41. package/build/lib/eosStateSubscriptions.js +59 -2
  42. package/build/lib/eosStateSubscriptions.js.map +1 -1
  43. package/build/lib/web.js +3 -0
  44. package/build/lib/web.js.map +1 -1
  45. package/docs/reports/unified-9.0.20/ANFORDERUNGEN_UND_INBETRIEBNAHME.md +159 -0
  46. package/docs/reports/unified-9.0.20/DEVICE_COMMAND_DELIVERY_REVIEW.md +82 -0
  47. package/docs/reports/unified-9.0.20/DEVICE_LIFECYCLE_REVIEW.md +46 -0
  48. package/docs/reports/unified-9.0.20/DEVICE_PLAN_REVIEW.md +33 -0
  49. package/docs/reports/unified-9.0.20/DEVICE_POWER_CAPABILITY_REVIEW.md +25 -0
  50. package/docs/reports/unified-9.0.20/FARM_CONTROLLER_REVIEW.md +27 -0
  51. package/docs/reports/unified-9.0.20/FARM_DIAGNOSE_UI.md +81 -0
  52. package/docs/reports/unified-9.0.20/FARM_DISPATCH_REVIEW.md +47 -0
  53. package/docs/reports/unified-9.0.20/HISTORY_REVIEW.md +68 -0
  54. package/docs/reports/unified-9.0.20/INFLUXDB2_INSTALLER_UI.md +39 -0
  55. package/docs/reports/unified-9.0.20/INFLUX_CREDENTIAL_NETWORK_REVIEW.md +38 -0
  56. package/docs/reports/unified-9.0.20/INFLUX_DIRECT_UNABHAENGIGE_PRUEFUNG.md +64 -0
  57. package/docs/reports/unified-9.0.20/INFLUX_RUNTIME_INTEGRATION_REVIEW.md +53 -0
  58. package/docs/reports/unified-9.0.20/INFLUX_RUNTIME_UNABHAENGIGE_PRUEFUNG.md +34 -0
  59. package/docs/reports/unified-9.0.20/INFLUX_TRANSPORT_ABSCHLUSSPRUEFUNG.md +55 -0
  60. package/docs/reports/unified-9.0.20/LOGIN_WEBAPP_LOGO.md +29 -0
  61. package/docs/reports/unified-9.0.20/MIGRATION_REVIEW.md +35 -0
  62. package/docs/reports/unified-9.0.20/PRUEFBERICHT.md +54 -0
  63. package/docs/reports/unified-9.0.20/PWA_ANONYMOUS_HTTPS_REVIEW.md +28 -0
  64. package/docs/reports/unified-9.0.20/PWA_ICON_UNABHAENGIGE_PRUEFUNG.md +60 -0
  65. package/docs/reports/unified-9.0.20/SERIAL_LIFECYCLE_REVIEW.md +37 -0
  66. package/docs/reports/unified-9.0.20/SOLAX_READBACK_REVIEW.md +43 -0
  67. package/docs/reports/unified-9.0.20/SOLAX_READBACK_UNABHAENGIGE_PRUEFUNG.md +34 -0
  68. package/docs/reports/unified-9.0.20/STATIC_REVIEW_DE.md +175 -0
  69. package/docs/reports/unified-9.0.20/STORAGE_COMMAND_ACK_REVIEW.md +36 -0
  70. package/docs/reports/unified-9.0.20/TARIFF_REPORT_REVIEW.md +29 -0
  71. package/docs/reports/unified-9.0.20/VISUALISIERUNG.md +64 -0
  72. package/docs/reports/unified-9.0.20/history-setup-navigation-proxy.txt +26 -0
  73. package/docs/reports/unified-9.0.20/history-setup-navigation-ssr.txt +7 -0
  74. package/docs/reports/unified-9.0.20/history-setup-ui-lint.txt +0 -0
  75. package/docs/reports/unified-9.0.20/history-setup-ui-node22.txt +102 -0
  76. package/docs/reports/unified-9.0.20/history-setup-ui-node24.txt +23 -0
  77. package/docs/reports/unified-9.0.20/history-setup-ui-security.txt +0 -0
  78. package/docs/reports/unified-9.0.20/history-setup-ui-typecheck.txt +0 -0
  79. package/docs/reports/unified-9.0.20/login-pwa-branding-hashes.txt +9 -0
  80. package/docs/reports/unified-9.0.20/login-pwa-branding-node22.txt +42 -0
  81. package/docs/reports/unified-9.0.20/login-pwa-branding-node24.txt +13 -0
  82. package/docs/reports/unified-9.0.20/raw/INDEX.json +1913 -0
  83. package/docs/reports/unified-9.0.20/raw/additional-audit/device/baseline-node22.log +16 -0
  84. package/docs/reports/unified-9.0.20/raw/additional-audit/device/baseline-node24.log +14 -0
  85. package/docs/reports/unified-9.0.20/raw/additional-audit/device/lint-after.json +1 -0
  86. package/docs/reports/unified-9.0.20/raw/additional-audit/device/lint-before.json +1 -0
  87. package/docs/reports/unified-9.0.20/raw/additional-audit/device/modbus-stop-backoff.cjs +22 -0
  88. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-control-review.log +29 -0
  89. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-final.json +18 -0
  90. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-final.log +325 -0
  91. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node22-modbus-review.log +278 -0
  92. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-final.json +18 -0
  93. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-final.log +58 -0
  94. package/docs/reports/unified-9.0.20/raw/additional-audit/device/node24-modbus-review.log +51 -0
  95. package/docs/reports/unified-9.0.20/raw/additional-audit/history/api-gaps-before.log +64 -0
  96. package/docs/reports/unified-9.0.20/raw/additional-audit/history/api-negative-before.log +46 -0
  97. package/docs/reports/unified-9.0.20/raw/additional-audit/history/chart-gaps-before.log +127 -0
  98. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-after.log +67 -0
  99. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-before.log +61 -0
  100. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-eslint-js.log +0 -0
  101. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-eslint-ts.log +0 -0
  102. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-node22.log +442 -0
  103. package/docs/reports/unified-9.0.20/raw/additional-audit/history/device-command-subscriptions-node24.log +78 -0
  104. package/docs/reports/unified-9.0.20/raw/additional-audit/history/fix.py +73 -0
  105. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-eslint-final.json +7 -0
  106. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-final-node22.log +279 -0
  107. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-final-node24.log +52 -0
  108. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-followup-node22.log +223 -0
  109. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-followup-node24.log +43 -0
  110. package/docs/reports/unified-9.0.20/raw/additional-audit/history/history-own-cache.log +17 -0
  111. package/docs/reports/unified-9.0.20/raw/additional-audit/history/negative-pricing-before.log +96 -0
  112. package/docs/reports/unified-9.0.20/raw/additional-audit/history/node22-after.log +66 -0
  113. package/docs/reports/unified-9.0.20/raw/additional-audit/history/node22-repro.log +8 -0
  114. package/docs/reports/unified-9.0.20/raw/additional-audit/history/node24-after.log +17 -0
  115. package/docs/reports/unified-9.0.20/raw/additional-audit/history/node24-repro.log +8 -0
  116. package/docs/reports/unified-9.0.20/raw/additional-audit/history/repro.cjs +39 -0
  117. package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/chromium-probe.log +3 -0
  118. package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/patch-live.py +101 -0
  119. package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/repro-live-display.cjs +26 -0
  120. package/docs/reports/unified-9.0.20/raw/additional-audit/visuals/repro-live-display.log +36 -0
  121. package/docs/reports/unified-9.0.20/raw/audit-full.log +345 -0
  122. package/docs/reports/unified-9.0.20/raw/audit-full.result.json +14 -0
  123. package/docs/reports/unified-9.0.20/raw/audit-runtime.log +23 -0
  124. package/docs/reports/unified-9.0.20/raw/audit-runtime.result.json +15 -0
  125. package/docs/reports/unified-9.0.20/raw/backend-final.log +5 -0
  126. package/docs/reports/unified-9.0.20/raw/backend-final.result.json +14 -0
  127. package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node22.result.json +20 -0
  128. package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node22.tap +721 -0
  129. package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node24.result.json +20 -0
  130. package/docs/reports/unified-9.0.20/raw/baseline-919-coverage-tests-node24.tap +127 -0
  131. package/docs/reports/unified-9.0.20/raw/commissioning-evidence.json +69 -0
  132. package/docs/reports/unified-9.0.20/raw/commissioning-failed-init-drain-919-before.log +14 -0
  133. package/docs/reports/unified-9.0.20/raw/commissioning-final-node22.log +882 -0
  134. package/docs/reports/unified-9.0.20/raw/commissioning-final-node24.log +149 -0
  135. package/docs/reports/unified-9.0.20/raw/commissioning-lint.log +0 -0
  136. package/docs/reports/unified-9.0.20/raw/commissioning-planner-919-before.log +70 -0
  137. package/docs/reports/unified-9.0.20/raw/commissioning-retained-readiness-before.log +34 -0
  138. package/docs/reports/unified-9.0.20/raw/commissioning-runtime-retry-919-before.log +46 -0
  139. package/docs/reports/unified-9.0.20/raw/commissioning-types-node24.log +0 -0
  140. package/docs/reports/unified-9.0.20/raw/device-farm-protocol/DEVICE_FARM_READONLY_REVIEW.md +66 -0
  141. package/docs/reports/unified-9.0.20/raw/device-farm-protocol/run-readback-tests.cjs +13 -0
  142. package/docs/reports/unified-9.0.20/raw/device-farm-protocol/solax-control-chain.test.cjs +58 -0
  143. package/docs/reports/unified-9.0.20/raw/device-lifecycle-baseline-node22.log +16 -0
  144. package/docs/reports/unified-9.0.20/raw/device-lifecycle-baseline-node24.log +14 -0
  145. package/docs/reports/unified-9.0.20/raw/device-lifecycle-evidence.json +55 -0
  146. package/docs/reports/unified-9.0.20/raw/device-lifecycle-lint-after.json +1 -0
  147. package/docs/reports/unified-9.0.20/raw/device-lifecycle-lint-before.json +1 -0
  148. package/docs/reports/unified-9.0.20/raw/device-lifecycle-modbus-stop-backoff.cjs +22 -0
  149. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-control-review.log +29 -0
  150. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-final.json +18 -0
  151. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-final.log +325 -0
  152. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node22-modbus-review.log +278 -0
  153. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-final.json +18 -0
  154. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-final.log +58 -0
  155. package/docs/reports/unified-9.0.20/raw/device-lifecycle-node24-modbus-review.log +51 -0
  156. package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node22.log +0 -0
  157. package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node22.result.json +15 -0
  158. package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node24.log +0 -0
  159. package/docs/reports/unified-9.0.20/raw/devices-hosted-typecheck-node24.result.json +15 -0
  160. package/docs/reports/unified-9.0.20/raw/farm-controller/controller-node22.log +110 -0
  161. package/docs/reports/unified-9.0.20/raw/farm-controller/controller-node24.log +24 -0
  162. package/docs/reports/unified-9.0.20/raw/farm-controller/evidence.json +33 -0
  163. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-lint.txt +0 -0
  164. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-node22.txt +113 -0
  165. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-node24.txt +26 -0
  166. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-security.txt +0 -0
  167. package/docs/reports/unified-9.0.20/raw/farm-diagnostics-ui-typecheck.txt +0 -0
  168. package/docs/reports/unified-9.0.20/raw/farm-dispatch/allocator-baseline.jsonl +6 -0
  169. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-before.log +138 -0
  170. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-main-delta.patch +77 -0
  171. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-main-lint.json +7 -0
  172. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node22.log +64 -0
  173. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node22.result.json +14 -0
  174. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node24.log +18 -0
  175. package/docs/reports/unified-9.0.20/raw/farm-dispatch/diagnostics-node24.result.json +14 -0
  176. package/docs/reports/unified-9.0.20/raw/final-ui-independent-review.json +194 -0
  177. package/docs/reports/unified-9.0.20/raw/frontend-build.log +152 -0
  178. package/docs/reports/unified-9.0.20/raw/frontend-build.result.json +14 -0
  179. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node22.json +35 -0
  180. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node22.result.json +17 -0
  181. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node24.json +31 -0
  182. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-after-node24.result.json +17 -0
  183. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-before.json +31 -0
  184. package/docs/reports/unified-9.0.20/raw/independent-influx/parser-reproducer.cjs +9 -0
  185. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node22.result.json +18 -0
  186. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node22.tap +34 -0
  187. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node24.result.json +18 -0
  188. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra-node24.tap +11 -0
  189. package/docs/reports/unified-9.0.20/raw/independent-influx/transport-extra.test.cjs +9 -0
  190. package/docs/reports/unified-9.0.20/raw/independent-solax/node22-focused.log +165 -0
  191. package/docs/reports/unified-9.0.20/raw/independent-solax/node24-focused.log +35 -0
  192. package/docs/reports/unified-9.0.20/raw/independent-solax/review-receipt.json +57 -0
  193. package/docs/reports/unified-9.0.20/raw/independent-solax/split-response-after.log +1 -0
  194. package/docs/reports/unified-9.0.20/raw/independent-solax/split-response-before.log +1 -0
  195. package/docs/reports/unified-9.0.20/raw/independent-solax/split-response.cjs +16 -0
  196. package/docs/reports/unified-9.0.20/raw/independent-solax/stop-race-generation-guard.log +1 -0
  197. package/docs/reports/unified-9.0.20/raw/independent-solax/stop-race.cjs +13 -0
  198. package/docs/reports/unified-9.0.20/raw/influx-direct/eslint.log +0 -0
  199. package/docs/reports/unified-9.0.20/raw/influx-direct/node22.log +112 -0
  200. package/docs/reports/unified-9.0.20/raw/influx-direct/node24.log +24 -0
  201. package/docs/reports/unified-9.0.20/raw/influx-direct/typecheck.log +0 -0
  202. package/docs/reports/unified-9.0.20/raw/influx-direct-review/hosted-module-history.test.cjs +85 -0
  203. package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node22.json +12 -0
  204. package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node22.log +100 -0
  205. package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node24.json +12 -0
  206. package/docs/reports/unified-9.0.20/raw/influx-direct-review/independent-node24.log +21 -0
  207. package/docs/reports/unified-9.0.20/raw/influx-direct-review/runtime-after.test.cjs +15 -0
  208. package/docs/reports/unified-9.0.20/raw/influx-direct-review/runtime-loss-before.test.cjs +9 -0
  209. package/docs/reports/unified-9.0.20/raw/influx-direct-review/security-scan.cjs +15 -0
  210. package/docs/reports/unified-9.0.20/raw/influx-direct-review/transport-extra.test.cjs +9 -0
  211. package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node22.log +227 -0
  212. package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node22.result.json +11 -0
  213. package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node24.log +44 -0
  214. package/docs/reports/unified-9.0.20/raw/influx-independent/legacy-history-node24.result.json +11 -0
  215. package/docs/reports/unified-9.0.20/raw/influx-independent/node22.log +112 -0
  216. package/docs/reports/unified-9.0.20/raw/influx-independent/node22.result.json +12 -0
  217. package/docs/reports/unified-9.0.20/raw/influx-independent/node24.log +23 -0
  218. package/docs/reports/unified-9.0.20/raw/influx-independent/node24.result.json +12 -0
  219. package/docs/reports/unified-9.0.20/raw/influx-independent/runtime-after.test.cjs +15 -0
  220. package/docs/reports/unified-9.0.20/raw/influx-independent/transport-extra.test.cjs +9 -0
  221. package/docs/reports/unified-9.0.20/raw/influx-runtime/evidence.json +24 -0
  222. package/docs/reports/unified-9.0.20/raw/influx-runtime/final-node22.log +326 -0
  223. package/docs/reports/unified-9.0.20/raw/influx-runtime/final-node24.log +59 -0
  224. package/docs/reports/unified-9.0.20/raw/influx-runtime/runtime-node22.log +62 -0
  225. package/docs/reports/unified-9.0.20/raw/influx-runtime/runtime-node24.log +16 -0
  226. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-lint.log +0 -0
  227. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-lint.result.json +17 -0
  228. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node22.log +112 -0
  229. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node22.result.json +15 -0
  230. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node24.log +106 -0
  231. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-node24.result.json +15 -0
  232. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-typecheck.log +0 -0
  233. package/docs/reports/unified-9.0.20/raw/influx-security/security-influx-typecheck.result.json +15 -0
  234. package/docs/reports/unified-9.0.20/raw/influx-security/source-sha256.json +5 -0
  235. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-lint-final.log +0 -0
  236. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-lint-final.result.json +16 -0
  237. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node22-final.log +124 -0
  238. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node22-final.result.json +14 -0
  239. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node24-final.log +26 -0
  240. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-node24-final.result.json +14 -0
  241. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node22-final.log +0 -0
  242. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node22-final.result.json +15 -0
  243. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node24-final.log +0 -0
  244. package/docs/reports/unified-9.0.20/raw/influx-transport-final/influx-transport-type-node24-final.result.json +15 -0
  245. package/docs/reports/unified-9.0.20/raw/influx-ui-independent-review-final.json +285 -0
  246. package/docs/reports/unified-9.0.20/raw/influx-ui-independent-review-intermediate.json +285 -0
  247. package/docs/reports/unified-9.0.20/raw/installer-build.log +26 -0
  248. package/docs/reports/unified-9.0.20/raw/installer-build.result.json +14 -0
  249. package/docs/reports/unified-9.0.20/raw/isolation/INDEX.json +332 -0
  250. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-final.log +3 -0
  251. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-final.result.json +13 -0
  252. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-hosted.log +6 -0
  253. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-hosted.result.json +13 -0
  254. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-verified.log +1 -0
  255. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family-verified.result.json +13 -0
  256. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family.log +11 -0
  257. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-family.result.json +13 -0
  258. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-final.log +3 -0
  259. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-final.result.json +13 -0
  260. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-hosted.log +3 -0
  261. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-hosted.result.json +13 -0
  262. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-verified.log +1 -0
  263. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid-verified.result.json +13 -0
  264. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid.log +11 -0
  265. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-fenecon-hybrid.result.json +13 -0
  266. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node22.log +296 -0
  267. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node22.result.json +16 -0
  268. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node24.log +56 -0
  269. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-final-node24.result.json +16 -0
  270. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-node24.log +54 -0
  271. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-node24.result.json +16 -0
  272. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-output-modes.log +1 -0
  273. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-output-modes.result.json +13 -0
  274. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node22.log +332 -0
  275. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node22.result.json +16 -0
  276. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node24.log +62 -0
  277. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-final-node24.result.json +16 -0
  278. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node22.log +342 -0
  279. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node22.result.json +16 -0
  280. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node24.log +72 -0
  281. package/docs/reports/unified-9.0.20/raw/isolation/command-ack-release-node24.result.json +16 -0
  282. package/docs/reports/unified-9.0.20/raw/isolation/isolation-node22.log +482 -0
  283. package/docs/reports/unified-9.0.20/raw/isolation/isolation-node22.result.json +19 -0
  284. package/docs/reports/unified-9.0.20/raw/isolation/isolation-node24.log +87 -0
  285. package/docs/reports/unified-9.0.20/raw/isolation/migration-lint.log +0 -0
  286. package/docs/reports/unified-9.0.20/raw/isolation/migration-lint.result.json +16 -0
  287. package/docs/reports/unified-9.0.20/raw/isolation/migration-node22.log +330 -0
  288. package/docs/reports/unified-9.0.20/raw/isolation/migration-node22.result.json +16 -0
  289. package/docs/reports/unified-9.0.20/raw/isolation/migration-node24-before.log +72 -0
  290. package/docs/reports/unified-9.0.20/raw/isolation/migration-node24-before.result.json +16 -0
  291. package/docs/reports/unified-9.0.20/raw/isolation/migration-node24.log +60 -0
  292. package/docs/reports/unified-9.0.20/raw/isolation/migration-node24.result.json +16 -0
  293. package/docs/reports/unified-9.0.20/raw/isolation/repro-migration-start-budget.cjs +49 -0
  294. package/docs/reports/unified-9.0.20/raw/isolation/repro-serial-release.cjs +21 -0
  295. package/docs/reports/unified-9.0.20/raw/isolation/repro-sunspec-discovery.cjs +11 -0
  296. package/docs/reports/unified-9.0.20/raw/isolation/serial-before-repro.log +1 -0
  297. package/docs/reports/unified-9.0.20/raw/isolation/serial-before-repro.result.json +13 -0
  298. package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node22.log +32 -0
  299. package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node22.result.json +14 -0
  300. package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node24.log +11 -0
  301. package/docs/reports/unified-9.0.20/raw/isolation/serial-gates-node24.result.json +14 -0
  302. package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck-final.log +0 -0
  303. package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck-final.result.json +28 -0
  304. package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck.log +2 -0
  305. package/docs/reports/unified-9.0.20/raw/isolation/serial-helper-typecheck.result.json +26 -0
  306. package/docs/reports/unified-9.0.20/raw/isolation/serial-lint.log +0 -0
  307. package/docs/reports/unified-9.0.20/raw/isolation/serial-lint.result.json +18 -0
  308. package/docs/reports/unified-9.0.20/raw/isolation/serial-node22.log +344 -0
  309. package/docs/reports/unified-9.0.20/raw/isolation/serial-node22.result.json +17 -0
  310. package/docs/reports/unified-9.0.20/raw/isolation/serial-node24.log +62 -0
  311. package/docs/reports/unified-9.0.20/raw/isolation/serial-node24.result.json +17 -0
  312. package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-after.log +3 -0
  313. package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-after.result.json +13 -0
  314. package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-before.log +3 -0
  315. package/docs/reports/unified-9.0.20/raw/isolation/sunspec-review-before.result.json +15 -0
  316. package/docs/reports/unified-9.0.20/raw/keygen-source.json +6 -0
  317. package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/check-919.log +70 -0
  318. package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/check-920.log +71 -0
  319. package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/diff.json +82 -0
  320. package/docs/reports/unified-9.0.20/raw/legacy-mirror-debt/receipt.json +48 -0
  321. package/docs/reports/unified-9.0.20/raw/lint-final.log +16 -0
  322. package/docs/reports/unified-9.0.20/raw/lint-final.result.json +14 -0
  323. package/docs/reports/unified-9.0.20/raw/main-individual-review-before-cache-boundary-fix.json +112 -0
  324. package/docs/reports/unified-9.0.20/raw/main-individual-review-before-capability-ack.json +103 -0
  325. package/docs/reports/unified-9.0.20/raw/main-individual-review-before-farm-diagnostics.json +102 -0
  326. package/docs/reports/unified-9.0.20/raw/main-individual-review-final.json +103 -0
  327. package/docs/reports/unified-9.0.20/raw/main-individual-review.json +93 -0
  328. package/docs/reports/unified-9.0.20/raw/modules-build.log +5 -0
  329. package/docs/reports/unified-9.0.20/raw/modules-build.result.json +14 -0
  330. package/docs/reports/unified-9.0.20/raw/node22-tests-final.log +12471 -0
  331. package/docs/reports/unified-9.0.20/raw/node22-tests-final.result.json +13 -0
  332. package/docs/reports/unified-9.0.20/raw/node22-typecheck-final.log +7 -0
  333. package/docs/reports/unified-9.0.20/raw/node22-typecheck-final.result.json +14 -0
  334. package/docs/reports/unified-9.0.20/raw/node22-version.log +1 -0
  335. package/docs/reports/unified-9.0.20/raw/node24-tests-final.log +2093 -0
  336. package/docs/reports/unified-9.0.20/raw/node24-tests-final.result.json +13 -0
  337. package/docs/reports/unified-9.0.20/raw/node24-typecheck-final.log +5 -0
  338. package/docs/reports/unified-9.0.20/raw/node24-typecheck-final.result.json +14 -0
  339. package/docs/reports/unified-9.0.20/raw/node24-version.log +1 -0
  340. package/docs/reports/unified-9.0.20/raw/power-capability/evidence.json +69 -0
  341. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-existing-regressions-node24.log +94 -0
  342. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-lint.log +0 -0
  343. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-node22.log +304 -0
  344. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-node24.log +56 -0
  345. package/docs/reports/unified-9.0.20/raw/power-capability/power-capability-typecheck.log +0 -0
  346. package/docs/reports/unified-9.0.20/raw/pwa-https/evidence.json +45 -0
  347. package/docs/reports/unified-9.0.20/raw/pwa-https/node22-build.log +21 -0
  348. package/docs/reports/unified-9.0.20/raw/pwa-https/node22-source.log +23 -0
  349. package/docs/reports/unified-9.0.20/raw/pwa-https/node24-build.log +11 -0
  350. package/docs/reports/unified-9.0.20/raw/pwa-https/node24-source.log +11 -0
  351. package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-boundaries.test.cjs +45 -0
  352. package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-receipt.json +71 -0
  353. package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-v22.23.4.tap +34 -0
  354. package/docs/reports/unified-9.0.20/raw/pwa-independent/policy-v24.22.3.tap +11 -0
  355. package/docs/reports/unified-9.0.20/raw/pwa-ui-independent-review-final.json +348 -0
  356. package/docs/reports/unified-9.0.20/raw/repro-failed-init-drain-before.cjs +15 -0
  357. package/docs/reports/unified-9.0.20/raw/repro-profile-replacement-after-unmapped.cjs +15 -0
  358. package/docs/reports/unified-9.0.20/raw/repro-runtime-retry-before.cjs +18 -0
  359. package/docs/reports/unified-9.0.20/raw/sbom-runtime.log +7 -0
  360. package/docs/reports/unified-9.0.20/raw/sbom-runtime.result.json +14 -0
  361. package/docs/reports/unified-9.0.20/raw/sbom-vendor-check.log +1 -0
  362. package/docs/reports/unified-9.0.20/raw/sbom-vendor-check.result.json +14 -0
  363. package/docs/reports/unified-9.0.20/raw/solax-readback-node22.json +30 -0
  364. package/docs/reports/unified-9.0.20/raw/solax-readback-node22.log +542 -0
  365. package/docs/reports/unified-9.0.20/raw/solax-readback-node24.json +30 -0
  366. package/docs/reports/unified-9.0.20/raw/solax-readback-node24.log +97 -0
  367. package/docs/reports/unified-9.0.20/raw/tariff-report-before.log +147 -0
  368. package/docs/reports/unified-9.0.20/raw/tariff-report-evidence.json +48 -0
  369. package/docs/reports/unified-9.0.20/raw/tariff-report-final-node22.log +151 -0
  370. package/docs/reports/unified-9.0.20/raw/tariff-report-final-node24.log +32 -0
  371. package/docs/reports/unified-9.0.20/raw/ui-docs-check.log +6 -0
  372. package/docs/reports/unified-9.0.20/raw/ui-docs-check.result.json +14 -0
  373. package/docs/reports/unified-9.0.20/raw/ui-runtime-final.log +7 -0
  374. package/docs/reports/unified-9.0.20/raw/ui-runtime-final.result.json +14 -0
  375. package/docs/reports/unified-9.0.20/raw/ui-runtime-sync.log +6 -0
  376. package/docs/reports/unified-9.0.20/raw/ui-runtime-sync.result.json +14 -0
  377. package/docs/reports/unified-9.0.20/raw/ui-sbom-check.log +6 -0
  378. package/docs/reports/unified-9.0.20/raw/ui-sbom-check.result.json +14 -0
  379. package/docs/reports/unified-9.0.20/raw/ui-sbom-final.log +6 -0
  380. package/docs/reports/unified-9.0.20/raw/ui-sbom-final.result.json +14 -0
  381. package/docs/reports/unified-9.0.20/raw/ui-secret-final.log +6 -0
  382. package/docs/reports/unified-9.0.20/raw/ui-secret-final.result.json +14 -0
  383. package/docs/reports/unified-9.0.20/raw/ui-security-final.log +8 -0
  384. package/docs/reports/unified-9.0.20/raw/ui-security-final.result.json +14 -0
  385. package/docs/reports/unified-9.0.20/raw/visuals-baseline-919.txt +36 -0
  386. package/docs/reports/unified-9.0.20/raw/visuals-browser-limit.txt +3 -0
  387. package/docs/reports/unified-9.0.20/raw/visuals-lint.txt +0 -0
  388. package/docs/reports/unified-9.0.20/raw/visuals-node22.txt +258 -0
  389. package/docs/reports/unified-9.0.20/raw/visuals-node24.txt +51 -0
  390. package/docs/reports/unified-9.0.20/raw/visuals-security.txt +0 -0
  391. package/docs/reports/unified-9.0.20/raw/visuals-typecheck.txt +0 -0
  392. package/docs/reports/unified-9.0.20/raw/wallet-freshness-after.log +19 -0
  393. package/docs/reports/unified-9.0.20/raw/wallet-freshness-after.result.json +16 -0
  394. package/docs/reports/unified-9.0.20/raw/wallet-freshness-before.log +31 -0
  395. package/docs/reports/unified-9.0.20/raw/wallet-freshness-before.result.json +14 -0
  396. package/docs/reports/unified-9.0.20/raw/wallet-freshness-independent.result.json +13 -0
  397. package/docs/reports/unified-9.0.20/raw/wallet-freshness-independent.tap +10 -0
  398. package/io-package.json +8 -8
  399. package/modules/devices/lib/device-alias-semantics-v1.json +22 -1
  400. package/modules/devices/lib/deviceAliasFreshness.js +1 -0
  401. package/modules/devices/lib/deviceAliasSemantics.js +13 -3
  402. package/modules/devices/lib/deviceRuntime.js +79 -8
  403. package/modules/devices/lib/drivers/modbus.js +90 -21
  404. package/modules/devices/lib/drivers/modbusAsciiBus.js +47 -31
  405. package/modules/devices/lib/drivers/modbusRtuBus.js +33 -9
  406. package/modules/devices/lib/drivers/modbusSerialLease.js +29 -0
  407. package/modules/devices/lib/modbusReadEvidence.js +29 -0
  408. package/modules/devices/test/deviceAliasFreshness.test.js +7 -2
  409. package/modules/devices/test/modbusConnectLifecycle.test.js +148 -0
  410. package/modules/devices/test/modbusSerialLifecycle.test.js +91 -0
  411. package/modules/devices/test/serialOperationGate.test.js +3 -3
  412. package/modules/devices/test/solaxReadbackContext.test.js +472 -0
  413. package/modules/devices/tsconfig.alias-semantics.json +1 -1
  414. package/modules/devices/tsconfig.serial-lifecycle.json +18 -0
  415. package/package.json +9 -7
  416. package/release-manifests/unified/build-environment.cdx.json +6 -6
  417. package/release-manifests/unified/files.json +551 -140
  418. package/release-manifests/unified/obsolete-admin-assets.json +88 -6
  419. package/release-manifests/unified/runtime.cdx.json +23 -23
  420. package/release-manifests/unified/validation.json +15 -15
  421. package/tools/eos-release-check.cjs +2 -2
  422. package/tools/eos-release-manifest.cjs +3 -3
  423. package/ui/admin/react/assets/index-BJO3q7oe.js +13 -0
  424. package/ui/admin/react/assets/{index-CuquHlsY.css → index-ofLP_Y7y.css} +1 -1
  425. package/ui/admin/react/index.html +2 -2
  426. package/ui/docs/security/eslint-reviewed-findings.json +26 -26
  427. package/ui/ems/modules/energy-wallet.js +9 -3
  428. package/ui/ems/modules/storage-control.js +60 -19
  429. package/ui/io-package.json +1 -1
  430. package/ui/lib/influx-config.js +204 -0
  431. package/ui/lib/influx-direct.js +527 -0
  432. package/ui/lib/influx-history-runtime.js +326 -0
  433. package/ui/lib/influx-network-policy.js +112 -0
  434. package/ui/lib/ui-access-policy.js +2 -2
  435. package/ui/main.js +550 -222
  436. package/ui/package.json +12 -6
  437. package/ui/www/app.js +150 -202
  438. package/ui/www/ems-apps.html +2 -1
  439. package/ui/www/ems-apps.js +8 -1
  440. package/ui/www/energy-ledger.html +1 -1
  441. package/ui/www/evcs.html +1 -1
  442. package/ui/www/history.html +1 -1
  443. package/ui/www/history.js +114 -74
  444. package/ui/www/index.html +2 -1
  445. package/ui/www/live-display.js +115 -0
  446. package/ui/www/logic.html +1 -1
  447. package/ui/www/login.css +1 -0
  448. package/ui/www/login.html +2 -1
  449. package/ui/www/manifest.webmanifest +2 -2
  450. package/ui/www/settings.html +2 -1
  451. package/ui/www/simulation.html +1 -1
  452. package/ui/www/smarthome-config.html +1 -1
  453. package/ui/www/smarthome.html +1 -1
  454. package/ui/www/storagefarm-dispatch.js +287 -0
  455. package/ui/www/storagefarm-summary.css +15 -0
  456. package/ui/www/storagefarm.html +15 -1
  457. package/ui/www/storagefarm.js +8 -26
  458. package/ui/www/tariff-report.js +43 -25
  459. package/adminWww/remoteEntry-eos-9.0.19.js +0 -12
  460. package/ui/admin/react/assets/index-Bq5IupDw.js +0 -13
@@ -0,0 +1,326 @@
1
+ /**
2
+ * Copyright (c) 2026 NexoWatt. All rights reserved.
3
+ * Confidential and Proprietary.
4
+ * Use, modification or distribution without express written permission is prohibited.
5
+ */
6
+ /**
7
+ * AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
8
+ *
9
+ * Quelle: src-ts/runtime-executables/lib/influx-history-runtime.ts
10
+ * Quell-Hash: sha256:69439306eafe8fca4aa96f13ffd0fc24db8c528ea4b9bdb495636509b041741d
11
+ * Erzeugung: npm run sync:ts-runtime-executables
12
+ *
13
+ * Zweck:
14
+ * Diese JavaScript-Datei ist das ausführbare Build-Artefakt für lib/influx-history-runtime.js.
15
+ * Die fachliche Bearbeitung erfolgt ab 0.7.131 in der TypeScript-Quelle.
16
+ * Ab 0.7.132 sind doppelte Legacy-JS-Bäume wie .nwcore entfernt.
17
+ *
18
+ * Pflege-Regel:
19
+ * 1. Änderung zuerst in src-ts/runtime-executables/ vornehmen.
20
+ * 2. npm run sync:ts-runtime-executables ausführen.
21
+ * 3. npm run test:runtime-executables prüfen.
22
+ */
23
+ "use strict";
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.InfluxHistoryRuntime = void 0;
26
+ /**
27
+ * NexoWatt Quellcode-Erklärung (DE)
28
+ * Aufgabe: Historisiert ausschließlich ausdrücklich registrierte EOS-Zeitreihen über den direkten InfluxDB-2-Transport.
29
+ * Daten und Wirkung: Übernimmt bestätigte State-Schreibvorgänge mit Originalzeit; begrenzt Warteschlangen, Leseparallelität und Laufzeiten ohne die EMS-Regelung auf Netzwerkantworten warten zu lassen.
30
+ * Zusammenhang: Die Hauptlaufzeit konfiguriert den Dienst, registriert Export-States und führt ihn beim Abschalten begrenzt zu Ende.
31
+ * Bei Änderungen: Betriebsartwechsel, Schlüsselverlust, verzögerte Antworten, Überlauf, Abbruch und getrennte Lese-/Schreibfehler prüfen; keine Lücken mit Nullwerten füllen.
32
+ */
33
+ const influx_direct_1 = require("./influx-direct");
34
+ const node_perf_hooks_1 = require("node:perf_hooks");
35
+ const MAX_TARGETS = 2000;
36
+ const MAX_POINTS = 2000;
37
+ const MAX_BYTES = 4 * 1024 * 1024;
38
+ const MAX_BATCH_BYTES = 256 * 1024;
39
+ const safeCode = (error) => {
40
+ const code = error && typeof error === 'object' && 'code' in error ? error.code : '';
41
+ return typeof code === 'string' && /^EOS_INFLUX_[A-Z_]{1,64}$/.test(code) ? code : 'EOS_INFLUX_REQUEST_FAILED';
42
+ };
43
+ class InfluxHistoryRuntime {
44
+ constructor(namespace, factory = config => new influx_direct_1.InfluxDirectClient(config)) {
45
+ this.namespace = namespace;
46
+ this.factory = factory;
47
+ this.registrations = new Map();
48
+ this.client = null;
49
+ this.generation = 0;
50
+ this.signature = '';
51
+ this.queue = [];
52
+ this.queuedBytes = 0;
53
+ this.busy = false;
54
+ this.activePoints = 0;
55
+ this.activeBytes = 0;
56
+ this.reads = [];
57
+ this.activeReads = 0;
58
+ this.timer = null;
59
+ this.provider = 'adapter';
60
+ this.closed = false;
61
+ this.closing = false;
62
+ this.drainDeadline = 0;
63
+ this.drainTimer = null;
64
+ this.drainPromise = null;
65
+ this.finishDrain = null;
66
+ this.droppedPoints = 0;
67
+ this.lastWriteAt = null;
68
+ this.lastReadAt = null;
69
+ this.configError = '';
70
+ this.readError = '';
71
+ this.writeError = '';
72
+ this.legacyRecordings = new Set();
73
+ }
74
+ configure(history) {
75
+ const provider = history?.provider === 'influxdb2' ? 'influxdb2' : 'adapter';
76
+ const signature = JSON.stringify([provider, provider === 'influxdb2' ? history?.influxdb2 : null, history?.credentialError]);
77
+ if (!this.closed && signature === this.signature)
78
+ return;
79
+ this.stopGeneration();
80
+ this.closed = false;
81
+ this.closing = false;
82
+ this.provider = provider;
83
+ this.signature = signature;
84
+ this.lastWriteAt = null;
85
+ this.lastReadAt = null;
86
+ this.configError = '';
87
+ this.readError = '';
88
+ this.writeError = '';
89
+ for (const registration of this.registrations.values())
90
+ delete registration.last;
91
+ if (provider === 'influxdb2') {
92
+ try {
93
+ if (history?.credentialError)
94
+ throw Object.assign(new Error(), { code: history.credentialError });
95
+ if (!history?.influxdb2)
96
+ throw Object.assign(new Error(), { code: 'EOS_INFLUX_CONFIG_INVALID' });
97
+ this.client = this.factory(history.influxdb2);
98
+ }
99
+ catch (error) {
100
+ this.configError = safeCode(error);
101
+ }
102
+ }
103
+ }
104
+ register(localId, changesOnly = false) {
105
+ if (typeof localId !== 'string' || !localId || /[\u0000-\u001f\u007f*]/u.test(localId))
106
+ return false;
107
+ const id = localId.startsWith(`${this.namespace}.`) ? localId : `${this.namespace}.${localId}`;
108
+ if (id.length > 512 || id.trim() !== id)
109
+ return false;
110
+ const existing = this.registrations.get(id);
111
+ if (existing) {
112
+ existing.changesOnly = changesOnly;
113
+ return true;
114
+ }
115
+ if (this.registrations.size >= MAX_TARGETS)
116
+ return false;
117
+ this.registrations.set(id, { changesOnly });
118
+ return true;
119
+ }
120
+ legacyRecording(localId, active) {
121
+ const id = localId.startsWith(`${this.namespace}.`) ? localId : `${this.namespace}.${localId}`;
122
+ if (!this.registrations.has(id))
123
+ return;
124
+ if (active)
125
+ this.legacyRecordings.add(id);
126
+ else
127
+ this.legacyRecordings.delete(id);
128
+ }
129
+ /** Capture before the ioBroker write; commit only after that write succeeds. */
130
+ capture(localId, state, ack) {
131
+ if (this.closed || this.closing || !this.client || typeof localId !== 'string')
132
+ return null;
133
+ const id = localId.startsWith(`${this.namespace}.`) ? localId : `${this.namespace}.${localId}`;
134
+ if (!this.registrations.has(id))
135
+ return null;
136
+ const object = state && typeof state === 'object' && 'val' in state ? state : null;
137
+ const val = object ? object.val : state;
138
+ const acknowledged = object && 'ack' in object ? object.ack : ack;
139
+ const quality = object && 'q' in object ? object.q : undefined;
140
+ const ts = object && 'ts' in object ? object.ts : Date.now();
141
+ if (acknowledged !== true || (quality !== undefined && quality !== 0) ||
142
+ typeof ts !== 'number' || !Number.isSafeInteger(ts) || ts < 0 || ts > Date.now() + 1000 ||
143
+ !(['number', 'boolean', 'string'].includes(typeof val)) ||
144
+ (typeof val === 'number' && !Number.isFinite(val)) || (typeof val === 'string' && (val.length > 16384 || /[\r\n\u0000]/u.test(val))))
145
+ return null;
146
+ return { generation: this.generation, point: { id, ts, val: val } };
147
+ }
148
+ commit(captured) {
149
+ if (!captured || this.closed || this.closing || !this.client || captured.generation !== this.generation)
150
+ return;
151
+ const registration = this.registrations.get(captured.point.id);
152
+ if (!registration || (registration.changesOnly && registration.last === captured.point.val))
153
+ return;
154
+ const bytes = Buffer.byteLength(JSON.stringify(captured.point), 'utf8');
155
+ if (this.queue.length + this.activePoints >= MAX_POINTS || this.queuedBytes + this.activeBytes + bytes > MAX_BYTES) {
156
+ this.droppedPoints++;
157
+ this.writeError = 'EOS_INFLUX_QUEUE_FULL';
158
+ return;
159
+ }
160
+ registration.last = captured.point.val;
161
+ this.queue.push({ point: captured.point, bytes });
162
+ this.queuedBytes += bytes;
163
+ this.schedule();
164
+ }
165
+ query(id, options) {
166
+ if (!this.client || this.closed || this.closing)
167
+ return Promise.reject(Object.assign(new Error('EOS_INFLUX_NOT_CONFIGURED'), { code: 'EOS_INFLUX_NOT_CONFIGURED' }));
168
+ if (this.reads.length >= 64)
169
+ return Promise.reject(Object.assign(new Error('EOS_INFLUX_BUSY'), { code: 'EOS_INFLUX_BUSY' }));
170
+ return new Promise((resolve, reject) => {
171
+ const job = { id, options, deadline: node_perf_hooks_1.performance.now() + 5000, resolve, reject, timer: setTimeout(() => {
172
+ const index = this.reads.indexOf(job);
173
+ if (index >= 0)
174
+ this.reads.splice(index, 1);
175
+ reject(Object.assign(new Error('EOS_INFLUX_TIMEOUT'), { code: 'EOS_INFLUX_TIMEOUT' }));
176
+ }, 5000) };
177
+ job.timer.unref();
178
+ this.reads.push(job);
179
+ this.drainReads();
180
+ });
181
+ }
182
+ status() {
183
+ const lastError = this.configError || this.writeError || this.readError;
184
+ const legacyRecordingCount = this.provider === 'influxdb2' ? this.legacyRecordings.size : 0;
185
+ return { provider: this.provider, state: this.closed ? 'closed' : this.provider !== 'influxdb2' ? 'disabled' : lastError ? 'error' : 'ready', queueDepth: this.queue.length + this.activePoints, droppedPoints: this.droppedPoints, lastWriteAt: this.lastWriteAt, lastReadAt: this.lastReadAt, lastError, readError: this.readError, writeError: this.writeError, writeVerified: this.lastWriteAt !== null, legacyRecordingCount, warnings: legacyRecordingCount ? ['EOS_INFLUX_LEGACY_RECORDING_ACTIVE'] : [] };
186
+ }
187
+ close() { this.closed = true; this.stopGeneration(); }
188
+ /** Normal unload has a shorter bound than the hosted runtime's four-second stop. */
189
+ drainAndClose(timeoutMs = 3000) {
190
+ if (this.closed)
191
+ return Promise.resolve();
192
+ if (this.drainPromise)
193
+ return this.drainPromise;
194
+ this.closing = true;
195
+ this.cancelQueuedReads();
196
+ this.drainDeadline = node_perf_hooks_1.performance.now() + Math.max(1, Math.min(3000, timeoutMs));
197
+ this.drainPromise = new Promise(resolve => { this.finishDrain = resolve; });
198
+ const result = this.drainPromise;
199
+ this.drainTimer = setTimeout(() => this.close(), Math.max(1, this.drainDeadline - node_perf_hooks_1.performance.now()));
200
+ if (!this.busy && !this.queue.length)
201
+ this.close();
202
+ else
203
+ this.schedule();
204
+ return result;
205
+ }
206
+ cancelQueuedReads() {
207
+ for (const job of this.reads) {
208
+ clearTimeout(job.timer);
209
+ job.reject(Object.assign(new Error('EOS_INFLUX_CLOSED'), { code: 'EOS_INFLUX_CLOSED' }));
210
+ }
211
+ this.reads = [];
212
+ }
213
+ stopGeneration() {
214
+ this.generation++;
215
+ this.client?.close();
216
+ this.client = null;
217
+ if (this.timer)
218
+ clearTimeout(this.timer);
219
+ this.timer = null;
220
+ this.droppedPoints += this.queue.length + this.activePoints;
221
+ this.queue = [];
222
+ this.queuedBytes = 0;
223
+ this.busy = false;
224
+ this.activePoints = 0;
225
+ this.activeBytes = 0;
226
+ this.cancelQueuedReads();
227
+ this.activeReads = 0;
228
+ if (this.drainTimer)
229
+ clearTimeout(this.drainTimer);
230
+ this.drainTimer = null;
231
+ this.finishDrain?.();
232
+ this.finishDrain = null;
233
+ this.drainPromise = null;
234
+ }
235
+ drainReads() {
236
+ while (this.activeReads < 6 && this.reads.length && !this.closed && !this.closing && this.client) {
237
+ const job = this.reads.shift();
238
+ if (!job)
239
+ return;
240
+ clearTimeout(job.timer);
241
+ const remaining = job.deadline - node_perf_hooks_1.performance.now();
242
+ if (remaining < 1) {
243
+ job.reject(Object.assign(new Error('EOS_INFLUX_TIMEOUT'), { code: 'EOS_INFLUX_TIMEOUT' }));
244
+ continue;
245
+ }
246
+ const generation = this.generation;
247
+ const client = this.client;
248
+ this.activeReads++;
249
+ void client.query(job.id, job.options, remaining).then(result => {
250
+ if (generation !== this.generation || this.closed)
251
+ throw Object.assign(new Error(), { code: 'EOS_INFLUX_CLOSED' });
252
+ this.lastReadAt = Date.now();
253
+ this.readError = '';
254
+ job.resolve(result);
255
+ }).catch((error) => {
256
+ const code = safeCode(error);
257
+ if (generation === this.generation && !this.closed)
258
+ this.readError = code;
259
+ job.reject(Object.assign(new Error(code), { code }));
260
+ }).finally(() => {
261
+ if (generation === this.generation) {
262
+ this.activeReads--;
263
+ this.drainReads();
264
+ }
265
+ });
266
+ }
267
+ }
268
+ schedule() {
269
+ if (this.timer || this.busy || this.closed || !this.client || !this.queue.length)
270
+ return;
271
+ this.timer = setTimeout(() => { this.timer = null; void this.flush(); }, 0);
272
+ this.timer.unref();
273
+ }
274
+ async flush() {
275
+ const client = this.client;
276
+ const generation = this.generation;
277
+ if (!client || this.closed || this.busy)
278
+ return;
279
+ const batch = [];
280
+ let bytes = 0;
281
+ while (this.queue.length && batch.length < 100) {
282
+ const next = this.queue.at(0);
283
+ if (!next || bytes + next.bytes > MAX_BATCH_BYTES)
284
+ break;
285
+ this.queue.shift();
286
+ this.queuedBytes -= next.bytes;
287
+ bytes += next.bytes;
288
+ batch.push(next.point);
289
+ }
290
+ if (!batch.length)
291
+ return;
292
+ this.busy = true;
293
+ this.activePoints = batch.length;
294
+ this.activeBytes = bytes;
295
+ let failure = '';
296
+ try {
297
+ await client.write(batch, this.closing ? Math.max(1, this.drainDeadline - node_perf_hooks_1.performance.now()) : 5000);
298
+ }
299
+ catch (error) {
300
+ failure = safeCode(error);
301
+ }
302
+ if (this.closed || generation !== this.generation)
303
+ return;
304
+ this.busy = false;
305
+ this.activePoints = 0;
306
+ this.activeBytes = 0;
307
+ if (failure) {
308
+ this.writeError = failure;
309
+ this.droppedPoints += batch.length;
310
+ for (const point of batch) {
311
+ const registration = this.registrations.get(point.id);
312
+ if (registration && registration.last === point.val)
313
+ delete registration.last;
314
+ }
315
+ }
316
+ else {
317
+ this.lastWriteAt = Date.now();
318
+ this.writeError = '';
319
+ }
320
+ if (this.closing && !this.queue.length)
321
+ this.close();
322
+ else
323
+ this.schedule();
324
+ }
325
+ }
326
+ exports.InfluxHistoryRuntime = InfluxHistoryRuntime;
@@ -0,0 +1,112 @@
1
+ /**
2
+ * Copyright (c) 2026 NexoWatt. All rights reserved.
3
+ * Confidential and Proprietary.
4
+ * Use, modification or distribution without express written permission is prohibited.
5
+ */
6
+ /**
7
+ * AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
8
+ *
9
+ * Quelle: src-ts/runtime-executables/lib/influx-network-policy.ts
10
+ * Quell-Hash: sha256:a367d4c267f8fe76642292e32f6383531e914c5f10222ff50b375bfe4aa43474
11
+ * Erzeugung: npm run sync:ts-runtime-executables
12
+ *
13
+ * Zweck:
14
+ * Diese JavaScript-Datei ist das ausführbare Build-Artefakt für lib/influx-network-policy.js.
15
+ * Die fachliche Bearbeitung erfolgt ab 0.7.131 in der TypeScript-Quelle.
16
+ * Ab 0.7.132 sind doppelte Legacy-JS-Bäume wie .nwcore entfernt.
17
+ *
18
+ * Pflege-Regel:
19
+ * 1. Änderung zuerst in src-ts/runtime-executables/ vornehmen.
20
+ * 2. npm run sync:ts-runtime-executables ausführen.
21
+ * 3. npm run test:runtime-executables prüfen.
22
+ */
23
+ "use strict";
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.assertInfluxAddressAllowed = assertInfluxAddressAllowed;
26
+ exports.validateInfluxUrl = validateInfluxUrl;
27
+ /**
28
+ * NexoWatt Quellcode-Erklärung (DE)
29
+ * Aufgabe: Begrenzt erlaubte InfluxDB-Ziele und prüft jede tatsächlich für die Verbindung aufgelöste Adresse.
30
+ * Daten und Wirkung: Erlaubt ausdrücklich lokale Datenbanken, begrenzt unverschlüsseltes HTTP auf lokale Netze und sperrt Metadaten-, Link-Local-, Multicast- und unbestimmte Ziele.
31
+ * Bei Änderungen: IPv4-/IPv6-Sonderfälle, DNS-Wechsel, URL-Anteile und TLS-Serverprüfung prüfen; lokale Gerätekommunikation nicht pauschal sperren.
32
+ */
33
+ /** Local databases are supported deliberately. This policy must also run on every
34
+ * resolved connection address: validating a hostname once does not prevent rebinding. */
35
+ const node_net_1 = require("node:net");
36
+ function failure(code) { return Object.assign(new Error(code), { code }); }
37
+ function ipv6Words(address) {
38
+ const halves = address.toLowerCase().split('::');
39
+ const words = (half) => half ? half.split(':').flatMap(part => part.includes('.')
40
+ ? [Number(part.split('.')[0]) * 256 + Number(part.split('.')[1]), Number(part.split('.')[2]) * 256 + Number(part.split('.')[3])]
41
+ : [parseInt(part, 16)]) : [];
42
+ const left = words(halves[0] || '');
43
+ const right = words(halves[1] || '');
44
+ return halves.length === 2 ? [...left, ...Array(8 - left.length - right.length).fill(0), ...right] : left;
45
+ }
46
+ /** HTTPS may reach public Influx services; plain HTTP is confined to loopback/LAN.
47
+ * Link-local, unspecified, multicast and known metadata endpoints are never allowed. */
48
+ function assertInfluxAddressAllowed(input, protocol) {
49
+ let address = input.replace(/^\[|\]$/g, '');
50
+ const family = (0, node_net_1.isIP)(address);
51
+ if (!family || address.includes('%'))
52
+ throw failure('EOS_INFLUX_ADDRESS_FORBIDDEN');
53
+ let local = false;
54
+ if (family === 6) {
55
+ const words = ipv6Words(address);
56
+ const first = words[0] ?? 0;
57
+ // IMDS uses ULA on AWS and Google Cloud; ULA alone is not enough
58
+ // to classify these two well-known endpoints as an allowed LAN database.
59
+ const metadata = ((first === 0xfd00 && words[1] === 0x0ec2) ||
60
+ (first === 0xfd20 && words[1] === 0x00ce)) &&
61
+ words.slice(2, 7).every(word => word === 0) && words[7] === 0x0254;
62
+ if (metadata)
63
+ throw failure('EOS_INFLUX_ADDRESS_FORBIDDEN');
64
+ if (words.slice(0, 5).every(word => word === 0) && words[5] === 65535) {
65
+ const high = words[6] ?? 0;
66
+ const low = words[7] ?? 0;
67
+ address = `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
68
+ }
69
+ else {
70
+ const loopback = words.slice(0, 7).every(word => word === 0) && words[7] === 1;
71
+ if ((!loopback && words.slice(0, 6).every(word => word === 0)) || (first & 0xffc0) === 0xfe80 ||
72
+ (first & 0xff00) === 0xff00)
73
+ throw failure('EOS_INFLUX_ADDRESS_FORBIDDEN');
74
+ local = loopback || (first & 0xfe00) === 0xfc00;
75
+ if (protocol === 'http:' && !local)
76
+ throw failure('EOS_INFLUX_HTTP_REQUIRES_LOCAL_ADDRESS');
77
+ return;
78
+ }
79
+ }
80
+ const octets = address.split('.').map(Number);
81
+ const first = octets[0] ?? 0;
82
+ const second = octets[1] ?? 0;
83
+ if (first === 0 || first >= 224 || (first === 169 && second === 254) || address === '100.100.100.200') {
84
+ throw failure('EOS_INFLUX_ADDRESS_FORBIDDEN');
85
+ }
86
+ local = first === 127 || first === 10 || (first === 172 && second >= 16 && second <= 31) || (first === 192 && second === 168);
87
+ if (protocol === 'http:' && !local)
88
+ throw failure('EOS_INFLUX_HTTP_REQUIRES_LOCAL_ADDRESS');
89
+ }
90
+ function validateInfluxUrl(input) {
91
+ if (typeof input !== 'string' || !input.trim() || input.length > 2048 || /[\u0000-\u0020\u007f]/u.test(input)) {
92
+ throw failure('EOS_INFLUX_URL_INVALID');
93
+ }
94
+ let url;
95
+ try {
96
+ url = new URL(input);
97
+ }
98
+ catch {
99
+ throw failure('EOS_INFLUX_URL_INVALID');
100
+ }
101
+ if ((url.protocol !== 'http:' && url.protocol !== 'https:') || !url.hostname || url.username || url.password ||
102
+ url.hash || url.search || url.pathname.includes('/api/'))
103
+ throw failure('EOS_INFLUX_URL_INVALID');
104
+ const hostname = url.hostname.replace(/^\[|\]$/g, '');
105
+ if ((0, node_net_1.isIP)(hostname))
106
+ assertInfluxAddressAllowed(hostname, url.protocol);
107
+ if (['metadata.google.internal', 'metadata.goog', 'instance-data.ec2.internal'].includes(hostname.toLowerCase().replace(/\.$/, ''))) {
108
+ throw failure('EOS_INFLUX_ADDRESS_FORBIDDEN');
109
+ }
110
+ url.pathname = url.pathname.replace(/\/+$/, '') + '/';
111
+ return url;
112
+ }
@@ -7,7 +7,7 @@
7
7
  * AUTO-GENERATED RUNTIME FILE - NICHT MANUELL BEARBEITEN.
8
8
  *
9
9
  * Quelle: src-ts/runtime-executables/lib/ui-access-policy.ts
10
- * Quell-Hash: sha256:1411973bbdef3000e723fcee3ffbce899f4890f3f10ac78897cab0414200f32a
10
+ * Quell-Hash: sha256:c3b68fac91389ad1502fd03a889fdeca278c5230f7441c80bd77b767f0f030de
11
11
  * Erzeugung: npm run sync:ts-runtime-executables
12
12
  *
13
13
  * Zweck:
@@ -178,7 +178,7 @@ function uiRequestPath(req) {
178
178
  }
179
179
  const AUTH_READ = new Set(['/api/auth/status', '/api/strict-auth/status', '/api/session/me', '/api/locale']);
180
180
  const AUTH_WRITE = new Set(['/api/auth/login', '/api/strict-auth/login', '/api/installer/login', '/api/auth/logout', '/api/strict-auth/logout', '/api/installer/logout']);
181
- const PUBLIC_PAGES = new Set(['/login', '/login.html', '/static/login.html', '/favicon.ico', '/apple-touch-icon.png', '/manifest.webmanifest', '/sw.js']);
181
+ const PUBLIC_PAGES = new Set(['/login', '/login.html', '/static/login.html', '/favicon.ico', '/apple-touch-icon.png', '/apple-touch-icon-precomposed.png', '/apple-touch-icon-180x180.png', '/apple-touch-icon-180x180-precomposed.png', '/manifest.webmanifest', '/sw.js']);
182
182
  /** Nur öffentliche Programm-Assets; niemals HTML, API-Daten oder Konfiguration. */
183
183
  function isPublicUiRequest(req) {
184
184
  const pathname = uiRequestPath(req);