@orangecharts/wrun-chart-host 0.3.0 → 0.5.0

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 (362) hide show
  1. package/README.md +23 -6
  2. package/dist/constants/exchange-names.leaf.d.ts +8 -0
  3. package/dist/constants/exchange-names.leaf.js +101 -0
  4. package/dist/constants/kscript-data-interval-restrictions.constants.d.ts +15 -0
  5. package/dist/constants/kscript-data-interval-restrictions.constants.js +40 -0
  6. package/dist/constants/opra-compliance.constants.d.ts +19 -0
  7. package/dist/constants/opra-compliance.constants.js +19 -0
  8. package/dist/constants/replay-ladder.leaf.d.ts +30 -0
  9. package/dist/constants/replay-ladder.leaf.js +99 -0
  10. package/dist/constants/scriptEditor/builtin-script-snippets.d.ts +133 -0
  11. package/dist/constants/scriptEditor/builtin-script-snippets.js +451 -0
  12. package/dist/constants/scriptEditor/cme-official-scripts.constants.d.ts +168 -0
  13. package/dist/constants/scriptEditor/cme-official-scripts.constants.js +398 -0
  14. package/dist/constants/scriptEditor/converted-script-id.leaf.d.ts +8 -0
  15. package/dist/constants/scriptEditor/converted-script-id.leaf.js +10 -0
  16. package/dist/constants/scriptEditor/execution.constants.d.ts +4 -0
  17. package/dist/constants/scriptEditor/execution.constants.js +14 -0
  18. package/dist/constants/wrun-prefix-safe.constants.d.ts +23 -0
  19. package/dist/constants/wrun-prefix-safe.constants.js +26 -0
  20. package/dist/host-env.d.ts +321 -24
  21. package/dist/host-env.js +15 -0
  22. package/dist/host-ports.types.d.ts +857 -35
  23. package/dist/index.d.ts +149 -2
  24. package/dist/index.js +149 -2
  25. package/dist/instances/script-engine-worker-ohlcv-transfer.d.ts +31 -0
  26. package/dist/instances/script-engine-worker-ohlcv-transfer.js +164 -0
  27. package/dist/interfaces/market-event.interface.d.ts +231 -0
  28. package/dist/interfaces/market-event.interface.js +15 -0
  29. package/dist/interfaces/opra-realtime.interface.d.ts +70 -134
  30. package/dist/interfaces/opra-realtime.interface.js +34 -59
  31. package/dist/interfaces/replay.interface.d.ts +285 -0
  32. package/dist/interfaces/replay.interface.js +1 -0
  33. package/dist/kscript-data/controls/live-ohlcv-merge.util.d.ts +1 -0
  34. package/dist/kscript-data/controls/live-ohlcv-merge.util.js +93 -0
  35. package/dist/kscript-data/controls/live-trades-merge.util.d.ts +5 -1
  36. package/dist/kscript-data/controls/live-trades-merge.util.js +2 -2
  37. package/dist/market-data/billing.interface.d.ts +219 -0
  38. package/dist/market-data/billing.interface.js +58 -0
  39. package/dist/market-data/venue-governed.util.d.ts +2 -0
  40. package/dist/market-data/venue-governed.util.js +10 -0
  41. package/dist/market-data/venue.d.ts +122 -0
  42. package/dist/market-data/venue.js +1 -0
  43. package/dist/market-data/venues/index.d.ts +97 -0
  44. package/dist/market-data/venues/index.js +33 -0
  45. package/dist/market-data/venues/opra.contract.copy.json +35 -0
  46. package/dist/market-data/venues/opra.d.ts +70 -0
  47. package/dist/market-data/venues/opra.js +74 -0
  48. package/dist/replay/replayIndicatorRows.d.ts +31 -0
  49. package/dist/replay/replayIndicatorRows.js +117 -0
  50. package/dist/replay/replayLadder.d.ts +85 -0
  51. package/dist/replay/replayLadder.js +388 -0
  52. package/dist/utility/auth/server-clock.util.d.ts +81 -0
  53. package/dist/utility/auth/server-clock.util.js +238 -0
  54. package/dist/utility/chart/builtin-identity.util.d.ts +18 -0
  55. package/dist/utility/chart/builtin-identity.util.js +51 -0
  56. package/dist/utility/chart/cache-alignment.util.d.ts +454 -0
  57. package/dist/utility/chart/cache-alignment.util.js +926 -0
  58. package/dist/utility/chart/chart-data-fetch-generation.util.d.ts +15 -0
  59. package/dist/utility/chart/chart-data-fetch-generation.util.js +22 -0
  60. package/dist/utility/chart/chart-mount-epoch.util.d.ts +5 -0
  61. package/dist/utility/chart/chart-mount-epoch.util.js +29 -0
  62. package/dist/utility/chart/chart-time-domain.util.d.ts +12 -0
  63. package/dist/utility/chart/chart-time-domain.util.js +23 -0
  64. package/dist/utility/chart/color-customization.leaf.d.ts +10 -0
  65. package/dist/utility/chart/color-customization.leaf.js +16 -0
  66. package/dist/utility/chart/date-labelled-interval.leaf.d.ts +15 -0
  67. package/dist/utility/chart/date-labelled-interval.leaf.js +19 -0
  68. package/dist/utility/chart/footprint-tick-grid.util.d.ts +106 -0
  69. package/dist/utility/chart/footprint-tick-grid.util.js +167 -0
  70. package/dist/utility/chart/gesture-timing.leaf.d.ts +29 -0
  71. package/dist/utility/chart/gesture-timing.leaf.js +29 -0
  72. package/dist/utility/chart/governed-contract-coin.util.d.ts +22 -0
  73. package/dist/utility/chart/governed-contract-coin.util.js +39 -0
  74. package/dist/utility/chart/host-bar-placement.util.d.ts +107 -0
  75. package/dist/utility/chart/host-bar-placement.util.js +447 -0
  76. package/dist/utility/chart/index-host-tier.util.d.ts +31 -0
  77. package/dist/utility/chart/index-host-tier.util.js +118 -0
  78. package/dist/utility/chart/index-mode-admission.util.d.ts +34 -0
  79. package/dist/utility/chart/index-mode-admission.util.js +67 -0
  80. package/dist/utility/chart/indicator-error-message.util.d.ts +35 -0
  81. package/dist/utility/chart/indicator-error-message.util.js +44 -0
  82. package/dist/utility/chart/indicator-run-interval.util.d.ts +130 -0
  83. package/dist/utility/chart/indicator-run-interval.util.js +268 -0
  84. package/dist/utility/chart/kscript-apply-fingerprint.util.d.ts +65 -0
  85. package/dist/utility/chart/kscript-apply-fingerprint.util.js +357 -0
  86. package/dist/utility/chart/kscript-chart-flush.leaf.d.ts +22 -0
  87. package/dist/utility/chart/kscript-chart-flush.leaf.js +13 -0
  88. package/dist/utility/chart/kscript-data-interval-restriction.leaf.d.ts +6 -0
  89. package/dist/utility/chart/kscript-data-interval-restriction.leaf.js +27 -0
  90. package/dist/utility/chart/kscript-integration-decision.leaf.d.ts +89 -0
  91. package/dist/utility/chart/kscript-integration-decision.leaf.js +80 -0
  92. package/dist/utility/chart/kscript-live-coalesce.util.d.ts +76 -0
  93. package/dist/utility/chart/kscript-live-coalesce.util.js +156 -0
  94. package/dist/utility/chart/kscript-live-rest-pace.util.d.ts +34 -0
  95. package/dist/utility/chart/kscript-live-rest-pace.util.js +134 -0
  96. package/dist/utility/chart/kscript-live-source-identity.util.d.ts +98 -0
  97. package/dist/utility/chart/kscript-live-source-identity.util.js +121 -0
  98. package/dist/utility/chart/kscript-mounted-plot-set.leaf.d.ts +48 -0
  99. package/dist/utility/chart/kscript-mounted-plot-set.leaf.js +145 -0
  100. package/dist/utility/chart/kscript-perf-tracker.util.d.ts +243 -0
  101. package/dist/utility/chart/kscript-perf-tracker.util.js +522 -0
  102. package/dist/utility/chart/kscript-run-interval-projection.util.d.ts +43 -0
  103. package/dist/utility/chart/kscript-run-interval-projection.util.js +471 -0
  104. package/dist/utility/chart/kscript-run-result-equality.util.d.ts +38 -0
  105. package/dist/utility/chart/kscript-run-result-equality.util.js +89 -0
  106. package/dist/utility/chart/kscript-settings-revision.leaf.d.ts +2 -0
  107. package/dist/utility/chart/kscript-settings-revision.leaf.js +12 -0
  108. package/dist/utility/chart/kscript-source-degrade.leaf.d.ts +63 -0
  109. package/dist/utility/chart/kscript-source-degrade.leaf.js +68 -0
  110. package/dist/utility/chart/kscript-source-retention.util.d.ts +134 -0
  111. package/dist/utility/chart/kscript-source-retention.util.js +218 -0
  112. package/dist/utility/chart/kscript-standin-identity.leaf.d.ts +57 -0
  113. package/dist/utility/chart/kscript-standin-identity.leaf.js +61 -0
  114. package/dist/utility/chart/kscript-titancharts-preparation.util.d.ts +15 -0
  115. package/dist/utility/chart/kscript-titancharts-preparation.util.js +376 -0
  116. package/dist/utility/chart/kscript-titancharts-render-keys.constants.d.ts +9 -0
  117. package/dist/utility/chart/kscript-titancharts-render-keys.constants.js +130 -0
  118. package/dist/utility/chart/kscript-venue-policy.util.d.ts +217 -0
  119. package/dist/utility/chart/kscript-venue-policy.util.js +324 -0
  120. package/dist/utility/chart/live-cadence.util.d.ts +38 -0
  121. package/dist/utility/chart/live-cadence.util.js +37 -0
  122. package/dist/utility/chart/live-feed-series-match.leaf.d.ts +13 -0
  123. package/dist/utility/chart/live-feed-series-match.leaf.js +21 -0
  124. package/dist/utility/chart/local-engine-self-heal-backoff.util.d.ts +46 -0
  125. package/dist/utility/chart/local-engine-self-heal-backoff.util.js +46 -0
  126. package/dist/utility/chart/local-engine-uninit.leaf.d.ts +21 -0
  127. package/dist/utility/chart/local-engine-uninit.leaf.js +22 -0
  128. package/dist/utility/chart/local-kscript-source-revalidation.util.d.ts +62 -0
  129. package/dist/utility/chart/local-kscript-source-revalidation.util.js +123 -0
  130. package/dist/utility/chart/local-kscript-warmup-depth.util.d.ts +214 -0
  131. package/dist/utility/chart/local-kscript-warmup-depth.util.js +376 -0
  132. package/dist/utility/chart/local-technical-script-live-apply-coalescer.util.d.ts +85 -0
  133. package/dist/utility/chart/local-technical-script-live-apply-coalescer.util.js +197 -0
  134. package/dist/utility/chart/local-technical-script-range.leaf.d.ts +72 -0
  135. package/dist/utility/chart/local-technical-script-range.leaf.js +126 -0
  136. package/dist/utility/chart/mixed-mode.util.d.ts +167 -0
  137. package/dist/utility/chart/mixed-mode.util.js +139 -0
  138. package/dist/utility/chart/ohlcv-row-readiness.util.d.ts +36 -0
  139. package/dist/utility/chart/ohlcv-row-readiness.util.js +90 -0
  140. package/dist/utility/chart/opra-user-scripts-gate.util.d.ts +19 -0
  141. package/dist/utility/chart/opra-user-scripts-gate.util.js +32 -0
  142. package/dist/utility/chart/overlay-execution-guard-key.leaf.d.ts +8 -0
  143. package/dist/utility/chart/overlay-execution-guard-key.leaf.js +10 -0
  144. package/dist/utility/chart/price-precision.util.d.ts +40 -0
  145. package/dist/utility/chart/price-precision.util.js +70 -0
  146. package/dist/utility/chart/profile-block-size.util.d.ts +64 -0
  147. package/dist/utility/chart/profile-block-size.util.js +141 -0
  148. package/dist/utility/chart/protected-kscript-degenerate-rows.leaf.d.ts +11 -0
  149. package/dist/utility/chart/protected-kscript-degenerate-rows.leaf.js +29 -0
  150. package/dist/utility/chart/protected-kscript-empty-output.util.d.ts +28 -0
  151. package/dist/utility/chart/protected-kscript-empty-output.util.js +84 -0
  152. package/dist/utility/chart/run-interval-unservable.leaf.d.ts +9 -0
  153. package/dist/utility/chart/run-interval-unservable.leaf.js +20 -0
  154. package/dist/utility/chart/run-interval-warmup.leaf.d.ts +19 -0
  155. package/dist/utility/chart/run-interval-warmup.leaf.js +35 -0
  156. package/dist/utility/chart/titan-constants.pin.d.ts +9 -5
  157. package/dist/utility/chart/titan-constants.pin.js +18 -5
  158. package/dist/utility/chart/warmup-backfill-retry.leaf.d.ts +9 -0
  159. package/dist/utility/chart/warmup-backfill-retry.leaf.js +9 -0
  160. package/dist/utility/chart/window-geometry.leaf.d.ts +119 -0
  161. package/dist/utility/chart/window-geometry.leaf.js +391 -0
  162. package/dist/utility/chart/window-owner.leaf.d.ts +19 -0
  163. package/dist/utility/chart/window-owner.leaf.js +24 -0
  164. package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +11 -2
  165. package/dist/utility/chart/wrun-bar-session-facts.util.js +10 -3
  166. package/dist/utility/chart/wrun-run-result.util.d.ts +5 -1
  167. package/dist/utility/chart/wrun-run-result.util.js +20 -14
  168. package/dist/utility/common/data-processing.util.d.ts +138 -0
  169. package/dist/utility/common/data-processing.util.js +346 -0
  170. package/dist/utility/common/visible-timeout.util.d.ts +13 -4
  171. package/dist/utility/common/visible-timeout.util.js +23 -8
  172. package/dist/utility/exchange-format.leaf.d.ts +1 -0
  173. package/dist/utility/exchange-format.leaf.js +47 -0
  174. package/dist/utility/html-escape.leaf.d.ts +11 -0
  175. package/dist/utility/html-escape.leaf.js +20 -0
  176. package/dist/utility/market-events/earnings-scope.util.d.ts +60 -0
  177. package/dist/utility/market-events/earnings-scope.util.js +92 -0
  178. package/dist/utility/market-events/market-events.util.d.ts +147 -0
  179. package/dist/utility/market-events/market-events.util.js +392 -0
  180. package/dist/utility/market-events/zoned-clock.util.d.ts +1 -0
  181. package/dist/utility/market-events/zoned-clock.util.js +11 -0
  182. package/dist/utility/options/option-venue-disclosure.util.d.ts +43 -0
  183. package/dist/utility/options/option-venue-disclosure.util.js +56 -0
  184. package/dist/utility/scriptEditor/package-semver.util.d.ts +51 -0
  185. package/dist/utility/scriptEditor/package-semver.util.js +120 -0
  186. package/dist/utility/scriptEditor/temp-script-id.util.d.ts +18 -0
  187. package/dist/utility/scriptEditor/temp-script-id.util.js +25 -0
  188. package/dist/utility/symbol-selection/markets-request-from-symbols.leaf.d.ts +20 -0
  189. package/dist/utility/symbol-selection/markets-request-from-symbols.leaf.js +81 -0
  190. package/dist/utility/v2/governed-tier.leaf.d.ts +103 -0
  191. package/dist/utility/v2/governed-tier.leaf.js +113 -0
  192. package/dist/utility/watchlist/import/import-request.leaf.d.ts +10 -0
  193. package/dist/utility/watchlist/import/import-request.leaf.js +10 -0
  194. package/dist/utility/wrun/sources/lanes/option_daily.d.ts +43 -15
  195. package/dist/utility/wrun/sources/lanes/option_daily.js +78 -20
  196. package/dist/utility/wrun/sources/lanes/option_stats_10m.d.ts +14 -10
  197. package/dist/utility/wrun/sources/lanes/option_stats_10m.js +5 -4
  198. package/dist/utility/wrun/sources/lanes/series.js +2 -2
  199. package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +22 -3
  200. package/dist/utility/wrun/sources/opra-option-lanes.util.js +38 -7
  201. package/dist/utility/wrun/sources/registry.js +31 -1
  202. package/dist/utility/wrun/sources/row-lane-registry.js +5 -5
  203. package/dist/utility/wrun/sources/row-lanes/option_contract_state.d.ts +49 -0
  204. package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +75 -20
  205. package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +49 -0
  206. package/dist/utility/wrun/sources/row-lanes/option_strikes.js +57 -47
  207. package/dist/utility/wrun/sources/row-lanes/option_surface.d.ts +36 -4
  208. package/dist/utility/wrun/sources/row-lanes/option_surface.js +6 -12
  209. package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +37 -3
  210. package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +128 -2
  211. package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +233 -51
  212. package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +0 -8
  213. package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +26 -24
  214. package/dist/utility/wrun/sources/wrun-row-lanes.util.js +85 -104
  215. package/dist/utility/wrun/wrun-alert-outputs.registry.d.ts +166 -0
  216. package/dist/utility/wrun/wrun-alert-outputs.registry.js +219 -0
  217. package/dist/utility/wrun/wrun-bar-count.util.d.ts +83 -0
  218. package/dist/utility/wrun/wrun-bar-count.util.js +259 -0
  219. package/dist/utility/wrun/wrun-chart-context-names.util.d.ts +84 -0
  220. package/dist/utility/wrun/wrun-chart-context-names.util.js +186 -0
  221. package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +253 -0
  222. package/dist/utility/wrun/wrun-chart-market-facts.util.js +731 -0
  223. package/dist/utility/wrun/wrun-cloud-opra-stamp.util.d.ts +28 -0
  224. package/dist/utility/wrun/wrun-cloud-opra-stamp.util.js +45 -0
  225. package/dist/utility/wrun/wrun-coin-lane-live.util.d.ts +18 -0
  226. package/dist/utility/wrun/wrun-coin-lane-live.util.js +47 -0
  227. package/dist/utility/wrun/wrun-deadline.util.js +2 -1
  228. package/dist/utility/wrun/wrun-debug-output.util.d.ts +39 -0
  229. package/dist/utility/wrun/wrun-debug-output.util.js +63 -0
  230. package/dist/utility/wrun/wrun-declared-warmup.util.d.ts +113 -0
  231. package/dist/utility/wrun/wrun-declared-warmup.util.js +181 -0
  232. package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +43 -0
  233. package/dist/utility/wrun/wrun-draft-legend-note.util.js +158 -0
  234. package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +181 -0
  235. package/dist/utility/wrun/wrun-draft-overlay.util.js +357 -0
  236. package/dist/utility/wrun/wrun-draw-skipped.leaf.d.ts +16 -0
  237. package/dist/utility/wrun/wrun-draw-skipped.leaf.js +16 -0
  238. package/dist/utility/wrun/wrun-earnings-facts.util.d.ts +42 -0
  239. package/dist/utility/wrun/wrun-earnings-facts.util.js +131 -0
  240. package/dist/utility/wrun/wrun-first-run-depth.util.d.ts +32 -0
  241. package/dist/utility/wrun/wrun-first-run-depth.util.js +118 -0
  242. package/dist/utility/wrun/wrun-gate-plane-readers.util.d.ts +24 -0
  243. package/dist/utility/wrun/wrun-gate-plane-readers.util.js +31 -0
  244. package/dist/utility/wrun/wrun-held-lanes.util.d.ts +32 -0
  245. package/dist/utility/wrun/wrun-held-lanes.util.js +94 -0
  246. package/dist/utility/wrun/wrun-host-visible-clock.util.d.ts +2 -0
  247. package/dist/utility/wrun/wrun-host-visible-clock.util.js +17 -0
  248. package/dist/utility/wrun/wrun-host.service.d.ts +266 -0
  249. package/dist/utility/wrun/wrun-host.service.js +655 -0
  250. package/dist/utility/wrun/wrun-inert-legend.util.d.ts +33 -0
  251. package/dist/utility/wrun/wrun-inert-legend.util.js +125 -0
  252. package/dist/utility/wrun/wrun-input-requirements.leaf.d.ts +155 -0
  253. package/dist/utility/wrun/wrun-input-requirements.leaf.js +450 -0
  254. package/dist/utility/wrun/wrun-integration-route.util.d.ts +51 -0
  255. package/dist/utility/wrun/wrun-integration-route.util.js +59 -0
  256. package/dist/utility/wrun/wrun-latest-history.leaf.d.ts +8 -0
  257. package/dist/utility/wrun/wrun-latest-history.leaf.js +8 -0
  258. package/dist/utility/wrun/wrun-legend-hover.lazy.d.ts +12 -0
  259. package/dist/utility/wrun/wrun-legend-hover.lazy.js +96 -0
  260. package/dist/utility/wrun/wrun-lifecycle-runtime.util.d.ts +21 -0
  261. package/dist/utility/wrun/wrun-lifecycle-runtime.util.js +21 -0
  262. package/dist/utility/wrun/wrun-live-hidden-hold.util.d.ts +23 -0
  263. package/dist/utility/wrun/wrun-live-hidden-hold.util.js +13 -0
  264. package/dist/utility/wrun/wrun-live-intake.util.d.ts +374 -0
  265. package/dist/utility/wrun/wrun-live-intake.util.js +2027 -0
  266. package/dist/utility/wrun/wrun-live-patch.util.d.ts +116 -0
  267. package/dist/utility/wrun/wrun-live-patch.util.js +523 -0
  268. package/dist/utility/wrun/wrun-live-tick.util.d.ts +619 -0
  269. package/dist/utility/wrun/wrun-live-tick.util.js +4974 -0
  270. package/dist/utility/wrun/wrun-loading-owner.util.d.ts +58 -0
  271. package/dist/utility/wrun/wrun-loading-owner.util.js +89 -0
  272. package/dist/utility/wrun/wrun-official-scope.leaf.d.ts +29 -0
  273. package/dist/utility/wrun/wrun-official-scope.leaf.js +36 -0
  274. package/dist/utility/wrun/wrun-oi-lane.util.d.ts +27 -0
  275. package/dist/utility/wrun/wrun-oi-lane.util.js +42 -0
  276. package/dist/utility/wrun/wrun-opra-stats.leaf.d.ts +29 -10
  277. package/dist/utility/wrun/wrun-opra-stats.leaf.js +29 -10
  278. package/dist/utility/wrun/wrun-options-stop.util.d.ts +52 -0
  279. package/dist/utility/wrun/wrun-options-stop.util.js +123 -0
  280. package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +719 -0
  281. package/dist/utility/wrun/wrun-overlay-drivers.util.js +1180 -0
  282. package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.d.ts +50 -0
  283. package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.js +131 -0
  284. package/dist/utility/wrun/wrun-overlay-lifecycle.util.d.ts +118 -0
  285. package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +466 -0
  286. package/dist/utility/wrun/wrun-overlay-metadata.util.d.ts +45 -0
  287. package/dist/utility/wrun/wrun-overlay-metadata.util.js +112 -0
  288. package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +114 -0
  289. package/dist/utility/wrun/wrun-overlay-recovery.util.js +971 -0
  290. package/dist/utility/wrun/wrun-overlay-run.util.d.ts +858 -0
  291. package/dist/utility/wrun/wrun-overlay-run.util.js +11013 -0
  292. package/dist/utility/wrun/wrun-panel-mount.lazy.d.ts +10 -0
  293. package/dist/utility/wrun/wrun-panel-mount.lazy.js +68 -0
  294. package/dist/utility/wrun/wrun-panel-mount.util.d.ts +392 -0
  295. package/dist/utility/wrun/wrun-panel-mount.util.js +2346 -0
  296. package/dist/utility/wrun/wrun-param-map.util.d.ts +19 -4
  297. package/dist/utility/wrun/wrun-param-map.util.js +40 -47
  298. package/dist/utility/wrun/wrun-param-values.util.d.ts +9 -3
  299. package/dist/utility/wrun/wrun-param-values.util.js +5 -5
  300. package/dist/utility/wrun/wrun-pause-dim.util.d.ts +52 -0
  301. package/dist/utility/wrun/wrun-pause-dim.util.js +153 -0
  302. package/dist/utility/wrun/wrun-plot-gate.types.d.ts +23 -0
  303. package/dist/utility/wrun/wrun-plot-gate.types.js +7 -0
  304. package/dist/utility/wrun/wrun-prefix-cohort.util.d.ts +93 -0
  305. package/dist/utility/wrun/wrun-prefix-cohort.util.js +484 -0
  306. package/dist/utility/wrun/wrun-prefix-lanes.util.d.ts +114 -0
  307. package/dist/utility/wrun/wrun-prefix-lanes.util.js +486 -0
  308. package/dist/utility/wrun/wrun-prefix-proof.util.d.ts +317 -0
  309. package/dist/utility/wrun/wrun-prefix-proof.util.js +630 -0
  310. package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +73 -0
  311. package/dist/utility/wrun/wrun-refusal-surface.util.js +380 -0
  312. package/dist/utility/wrun/wrun-refusal-text.util.d.ts +15 -0
  313. package/dist/utility/wrun/wrun-refusal-text.util.js +40 -0
  314. package/dist/utility/wrun/wrun-replay-lane.util.d.ts +139 -0
  315. package/dist/utility/wrun/wrun-replay-lane.util.js +520 -0
  316. package/dist/utility/wrun/wrun-replay-rows.util.d.ts +21 -0
  317. package/dist/utility/wrun/wrun-replay-rows.util.js +172 -0
  318. package/dist/utility/wrun/wrun-row-source-factory.d.ts +53 -0
  319. package/dist/utility/wrun/wrun-row-source-factory.js +435 -0
  320. package/dist/utility/wrun/wrun-run-cells.util.d.ts +36 -0
  321. package/dist/utility/wrun/wrun-run-cells.util.js +46 -0
  322. package/dist/utility/wrun/wrun-run-interval-projection.types.d.ts +14 -0
  323. package/dist/utility/wrun/wrun-run-interval-projection.types.js +1 -0
  324. package/dist/utility/wrun/wrun-run-interval-session.util.d.ts +133 -0
  325. package/dist/utility/wrun/wrun-run-interval-session.util.js +121 -0
  326. package/dist/utility/wrun/wrun-run-interval.util.d.ts +98 -0
  327. package/dist/utility/wrun/wrun-run-interval.util.js +207 -0
  328. package/dist/utility/wrun/wrun-run-retained.util.d.ts +122 -0
  329. package/dist/utility/wrun/wrun-run-retained.util.js +255 -0
  330. package/dist/utility/wrun/wrun-sandbox-row-source.d.ts +184 -0
  331. package/dist/utility/wrun/wrun-sandbox-row-source.js +444 -0
  332. package/dist/utility/wrun/wrun-script-inputs.util.js +4 -4
  333. package/dist/utility/wrun/wrun-series-stream.util.d.ts +86 -0
  334. package/dist/utility/wrun/wrun-series-stream.util.js +537 -0
  335. package/dist/utility/wrun/wrun-sheet-remembered.util.d.ts +21 -0
  336. package/dist/utility/wrun/wrun-sheet-remembered.util.js +36 -0
  337. package/dist/utility/wrun/wrun-signal-sound-reasons.leaf.d.ts +7 -0
  338. package/dist/utility/wrun/wrun-signal-sound-reasons.leaf.js +12 -0
  339. package/dist/utility/wrun/wrun-socket-row-source.js +4 -2
  340. package/dist/utility/wrun/wrun-source-rows.util.d.ts +175 -3
  341. package/dist/utility/wrun/wrun-source-rows.util.js +294 -8
  342. package/dist/utility/wrun/wrun-stats-strip.util.d.ts +46 -0
  343. package/dist/utility/wrun/wrun-stats-strip.util.js +87 -0
  344. package/dist/utility/wrun/wrun-table-chrome.util.d.ts +163 -0
  345. package/dist/utility/wrun/wrun-table-chrome.util.js +557 -0
  346. package/dist/utility/wrun/wrun-text-params.util.d.ts +11 -6
  347. package/dist/utility/wrun/wrun-text-params.util.js +19 -30
  348. package/dist/utility/wrun/wrun-transient-rerun.util.d.ts +64 -0
  349. package/dist/utility/wrun/wrun-transient-rerun.util.js +317 -0
  350. package/dist/utility/wrun/wrun-twin-lookback.util.d.ts +10 -0
  351. package/dist/utility/wrun/wrun-twin-lookback.util.js +43 -0
  352. package/dist/utility/wrun/wrun-warmup-head-store.util.d.ts +41 -0
  353. package/dist/utility/wrun/wrun-warmup-head-store.util.js +120 -0
  354. package/dist/utility/wrun-alert-params.leaf.d.ts +24 -0
  355. package/dist/utility/wrun-alert-params.leaf.js +24 -0
  356. package/dist/utils/replay/replay-buffer-math.d.ts +148 -0
  357. package/dist/utils/replay/replay-buffer-math.js +684 -0
  358. package/dist/workers/wrun/wrun-abi-host.d.ts +190 -0
  359. package/dist/workers/wrun/wrun-abi-host.js +1201 -0
  360. package/dist/workers/wrun/wrun-engine-handler.d.ts +37 -0
  361. package/dist/workers/wrun/wrun-engine-handler.js +211 -0
  362. package/package.json +3 -3
@@ -10,11 +10,19 @@
10
10
  * bundle that splits it, a spec that resets its module registry) reads the one the realm's entry set.
11
11
  */
12
12
  import type * as WrunKitHost from '@orangecharts/indicator-kit/host';
13
- import type { WrunChartPaintOptions, WrunChartPaintTarget, WrunChartStoreModule, WrunDeribitOptionsModule, WrunFeedStreamApi, WrunFeedsServiceModule, WrunHostOverlayRef, WrunIntegrateOptions, WrunIntegrateResult, WrunKitModule, WrunKScriptErrorEnvelopeModule, WrunMetadataServiceModule, WrunOptionChainServiceModule, WrunOptionsChainVenuesModule, WrunOptionsChartSourceModule, WrunOptionsGateModule, WrunOverlayLifecycleDoorModule, WrunPackEnsureInput, WrunPackEnsureResult, WrunPlotGateChart, WrunPlotGateRefusal, WrunPriceMarkerTarget, WrunRefreshRowsOptions, WrunRefreshRowsResult, WrunRefusalSurfaceModule, WrunSeriesStreamModule, WrunSocketChartRows, WrunSocketLoadSignals, WrunSocketTransport, WrunTitanChartsModule } from './host-ports.types.js';
13
+ import type { WrunAttemptOutcome, WrunAttemptStageMs, WrunAttemptToken, WrunChartHandle, WrunChartModeModule, WrunChartPaintMode, WrunChartPaintOptions, WrunChartPaintTarget, WrunChartRoutingModule, WrunChartStoreModule, WrunChartStoreView, WrunCommonStoreModule, WrunConsoleRefusalRun, WrunContinuousContractsModule, WrunContrastGuardContext, WrunDataFetchingModule, WrunDeclaredDepthAsk, WrunDeribitOptionsModule, WrunEditorShellModule, WrunEndOfDataMarkerReason, WrunEngineWorker, WrunEngineWorkerOptions, WrunFailureShow, WrunFeedStreamApi, WrunFeedsServiceModule, WrunHiddenLiveDrainOutcome, WrunHostOverlayRef, WrunIndicatorRegistryModule, WrunIndicatorTypesModule, WrunInputRequirement, WrunIntegrateOptions, WrunIntegrateResult, WrunKitModule, WrunKScriptErrorEnvelopeModule, WrunLegendHoverModule, WrunLiveCoalesceFlush, WrunLiveCoalesceTickDecision, WrunLiveFeedServiceModule, WrunLiveRefreshGateDecision, WrunMarketEventsStoreModule, WrunMetadataServiceModule, WrunOffchartGridHeightsModule, WrunOptionChainServiceModule, WrunOptionsChainVenuesModule, WrunOptionsChartSourceModule, WrunOptionsGateModule, WrunOptionsOverlayProvenanceModule, WrunOverlayLifecycleDoorModule, WrunOverlayMeasureResult, WrunPackEnsureInput, WrunPackEnsureResult, WrunPaneBudgetRankingModule, WrunPlotGateChart, WrunPlotGateRefusal, WrunPriceMarkerTarget, WrunRefreshRowsOptions, WrunRefreshRowsResult, WrunRefusalActionsModule, WrunRefusalSurfaceModule, WrunSearchPayloadToMarketsRequestModule, WrunSeriesStreamModule, WrunSignalSheetView, WrunSignalSoundCheck, WrunSocketChartRows, WrunSocketLoadSignals, WrunSocketTransport, WrunSocketTransportModule, WrunSourceCountMetadataLike, WrunSourceDegradeEntry, WrunSourceFetchOptions, WrunStandInTarget, WrunStandInWriteArgs, WrunStandInWriteOutcome, WrunSymbolDisplayModule, WrunTitanChartsModule, WrunTpoBlockCatalogModule, WrunTwinsRosterModule, WrunV2ServiceModule, WrunVenueLegsArgs, WrunVenueLegsResult, WrunWarmupBackfillAsk, WrunWarmupBackfillOutcome } from './host-ports.types.js';
14
+ import type { CmeServedAccess } from './interfaces/cme-realtime.interface.js';
15
+ import type { WrunDrawSkips, WrunOutputRow } from './interfaces/wrun-runtime.interface.js';
16
+ import type { WrunLatestSnapshot } from './utility/wrun/wrun-latest-snapshot.js';
17
+ import type { WrunRefusalContext, WrunRefusalOut } from './utility/wrun/wrun-refusal.util.js';
14
18
  /** CHANGED 0.3.0: the shared host names package code reads at run time (slab 1's 11 plus the ones the Phase 1 and
15
19
  * Phase 2 move sets read; kit 0.80.0's host entry exports every one). The app hands the kit's host entry; web hands
16
- * its seam src/utility/wrun/wrun-shared-host.ts (it re-exports every one). */
17
- export type WrunSharedHostModule = Pick<typeof WrunKitHost, 'decodeWrunHostedWire' | 'WRUN_HOST_CELL_TUPLE_WIDTHS' | 'WRUN_MAX_SHAPE_OFFSET_BARS' | 'WRUN_MINICHARTS_LABEL_MAX_CHARS' | 'WRUN_MINICHARTS_MAX_BARS' | 'WRUN_MINICHARTS_MAX_PANELS' | 'WRUN_MINICHARTS_TITLE_MAX_CHARS' | 'WRUN_STRATEGY_SHEET_FIELDS' | 'wrunMiniChartGridPayload' | 'wrunShapeEdgeTs' | 'wrunStrategyWireBytes' | 'WRUN_CANDLES_FORMING_OPEN_VIEW' | 'WRUN_CANDLES_FORMING_VIEW' | 'WRUN_CANDLE_CLASSES' | 'WRUN_FEED_HOST_CAP' | 'WRUN_HOST_ABI_TABLES' | 'WRUN_HOST_PROFILES' | 'WRUN_MARKET_KIND_STOCK' | 'WRUN_MARKET_ZONE_NEW_YORK' | 'WRUN_MAX_LEG_BARS' | 'WRUN_MAX_LEG_OFFSET' | 'WRUN_OPTIONS_VENUES_HOST_CAP' | 'WRUN_PIN_SYMBOL_LITERAL_CODE' | 'WRUN_SECTION_KINDS' | 'WrunStrategyHost' | 'WrunStrategyRefusalError' | 'adaptWrunCells' | 'advanceWrunCarry' | 'alignWrunRows' | 'alignWrunTailRows' | 'cloneWrunInputCarry' | 'cmeSessionBarEndMs' | 'cmeSessionBarOpenMs' | 'cmeSessionBucketMs' | 'emptyWrunInputCarry' | 'isCmeSessionLatticeExchange' | 'isCmeSessionLatticeIntervalMs' | 'planWrunRun' | 'regularWindowClose' | 'resolveWrunStrategySheet' | 'wrunCalendarOfVenue' | 'wrunCelledLegCheck' | 'wrunLegCandleCloseMs' | 'wrunLegFetchStart' | 'wrunLegRowBoundsMs' | 'wrunMarketLegCandleClose' | 'wrunParamValueRefusal' | 'wrunPinSymbolLiteral' | 'wrunPinVenueRefused' | 'wrunPinVenueRefusedMessage' | 'wrunRefusalMessage' | 'wrunServedLegStart' | 'wrunSessionClock' | 'wrunUsEquitiesSession'>;
20
+ * its seam src/utility/wrun/wrun-shared-host.ts (it re-exports every one).
21
+ * CHANGED 0.5.0: + 'prepareModuleBytes' (utility/wrun/wrun-host.service.ts:406-408), 'wrunLaneGatedOff'
22
+ * (wrun-chart-market-facts.util.ts:578), 'wrunLegCandleOpenMs' (wrun-live-tick.util.ts:3633), 'WRUN_STATS_STRIP_WORDS'
23
+ * (wrun-stats-strip.util.ts, moved whole by U5a). Kit 0.86.3's host entry exports all four; web's seam
24
+ * src/utility/wrun/wrun-shared-host.ts re-exports all four. 58 names. */
25
+ export type WrunSharedHostModule = Pick<typeof WrunKitHost, 'decodeWrunHostedWire' | 'WRUN_HOST_CELL_TUPLE_WIDTHS' | 'WRUN_MAX_SHAPE_OFFSET_BARS' | 'WRUN_MINICHARTS_LABEL_MAX_CHARS' | 'WRUN_MINICHARTS_MAX_BARS' | 'WRUN_MINICHARTS_MAX_PANELS' | 'WRUN_MINICHARTS_TITLE_MAX_CHARS' | 'WRUN_STRATEGY_SHEET_FIELDS' | 'wrunMiniChartGridPayload' | 'wrunShapeEdgeTs' | 'wrunStrategyWireBytes' | 'WRUN_CANDLES_FORMING_OPEN_VIEW' | 'WRUN_CANDLES_FORMING_VIEW' | 'WRUN_CANDLE_CLASSES' | 'WRUN_FEED_HOST_CAP' | 'WRUN_HOST_ABI_TABLES' | 'WRUN_HOST_PROFILES' | 'WRUN_MARKET_KIND_STOCK' | 'WRUN_MARKET_ZONE_NEW_YORK' | 'WRUN_MAX_LEG_BARS' | 'WRUN_MAX_LEG_OFFSET' | 'WRUN_OPTIONS_VENUES_HOST_CAP' | 'WRUN_PIN_SYMBOL_LITERAL_CODE' | 'WRUN_SECTION_KINDS' | 'WrunStrategyHost' | 'WrunStrategyRefusalError' | 'adaptWrunCells' | 'advanceWrunCarry' | 'alignWrunRows' | 'alignWrunTailRows' | 'cloneWrunInputCarry' | 'cmeSessionBarEndMs' | 'cmeSessionBarOpenMs' | 'cmeSessionBucketMs' | 'emptyWrunInputCarry' | 'isCmeSessionLatticeExchange' | 'isCmeSessionLatticeIntervalMs' | 'planWrunRun' | 'regularWindowClose' | 'resolveWrunStrategySheet' | 'wrunCalendarOfVenue' | 'wrunCelledLegCheck' | 'wrunLegCandleCloseMs' | 'wrunLegFetchStart' | 'wrunLegRowBoundsMs' | 'wrunMarketLegCandleClose' | 'wrunParamValueRefusal' | 'wrunPinSymbolLiteral' | 'wrunPinVenueRefused' | 'wrunPinVenueRefusedMessage' | 'wrunRefusalMessage' | 'wrunServedLegStart' | 'wrunSessionClock' | 'wrunUsEquitiesSession' | 'prepareModuleBytes' | 'wrunLaneGatedOff' | 'wrunLegCandleOpenMs' | 'WRUN_STATS_STRIP_WORDS'>;
18
26
  /** The kit main entry's tables package code reads (web: src/utility/wrun/wrun-kit.ts `wrunIndicatorKit`); either may be
19
27
  * absent on an older kit, so both stay unknown and are checked where read. */
20
28
  export interface WrunKitMainModule {
@@ -87,12 +95,44 @@ export interface WrunChartHostDiagnostics {
87
95
  publishPlotGateNotice(tc: WrunPlotGateChart, overlayId: string, refusals: ReadonlyArray<WrunPlotGateRefusal>): void;
88
96
  /** Reserved until 0.5.0, boot. web: import.meta.env.DEV (the package never reads import.meta). */
89
97
  readonly devBuild: boolean;
98
+ /** 0.5.0, run. web: recordOverlayPerfSample(id, ms, options) (utility/chart/overlay-execution-guard.ts:496). */
99
+ recordPerfSample(id: string, ms: number, options?: {
100
+ live?: boolean;
101
+ }): void;
102
+ /** 0.5.0, run. web: liveWrunAttemptToken(chartIndex, indicatorId) (utility/chart/wrun-attempt-envelope.util.ts:321). */
103
+ liveAttemptToken(chartIndex: number, indicatorId: string): WrunAttemptToken | null;
104
+ /** 0.5.0, run. web: markWrunAttemptRunStart(token) (same file :280). */
105
+ markAttemptRunStart(token: WrunAttemptToken | null): void;
106
+ /** 0.5.0, run. web: noteWrunAttemptStageMs(token, stage, ms) (same file :276). */
107
+ noteAttemptStageMs(token: WrunAttemptToken | null, stage: keyof WrunAttemptStageMs, ms: number): void;
108
+ /** 0.5.0, run. web: settleWrunAttempt(token, outcome) (same file :296). */
109
+ settleAttempt(token: WrunAttemptToken | null | undefined, outcome: WrunAttemptOutcome): void;
110
+ /** 0.5.0, boot. web: registerMemoryCensusCacheProvider(name, provider) (utility/chart/memory-census.util.ts:101; the
111
+ * executor calls it at its first census write, R3). */
112
+ registerMemoryProvider(name: string, provider: () => Record<string, unknown>): void;
113
+ /** 0.5.0, boot. web: reportWrunFailureShown(show) (utils/analyticsEvents.ts:808; the refusal surface :161, :204 and
114
+ * the inert legend read the visibility moment synchronously). */
115
+ reportFailureShown(show: WrunFailureShow): void;
116
+ /** 0.5.0, boot. web: import.meta.env.DEV && isRigLiveTraceArmed() (utility/rig/rig-live-trace.util.ts:151), bound
117
+ * DEV-gated so a production build folds it to false and drops the rig module (the live tick's ten gates, R3). */
118
+ rigLiveTraceArmed(): boolean;
119
+ /** 0.5.0, boot. web: noteRigLiveTrace(kind, fields) (same file :125), bound behind import.meta.env.DEV; called only
120
+ * after rigLiveTraceArmed() answered true. */
121
+ noteRigLiveTrace(kind: string, fields: Record<string, unknown>): void;
122
+ /** 0.5.0, executor. web: noteWrunRegistryRun(chartIndex, overlayId, settings) (utility/wrun/wrun-seen-note.util.ts:33). */
123
+ noteRegistryRun(chartIndex: number, overlayId: string, settings: unknown): void;
124
+ /** 0.5.0, executor. web: publishWrunSkippedNotice(chartIndex, indicatorId, skips) (utility/wrun/wrun-skipped-notice.util.ts:122;
125
+ * a sync call answering the Promise the executor awaits at :5762, :6642). */
126
+ publishSkippedNotice(chartIndex: number, indicatorId: string, skips: WrunDrawSkips | undefined): Promise<void>;
90
127
  }
91
128
  /** What the layer reads from its host. */
92
129
  export interface WrunChartHostEnv {
93
130
  /** A user-facing string by its locale key (web: the i18n plugin). Reserved until 0.4.0 (the panel mount's legend
94
- * words). */
95
- t(key: string, params?: Record<string, unknown>): string;
131
+ * words). CHANGED 0.5.0: + `plural` (vue-i18n's third argument). web: (key, params, plural) => plural === undefined ?
132
+ * i18n.global.t(key, params ?? {}) : i18n.global.t(key, params ?? {}, plural) (the refusal text's translate,
133
+ * utility/wrun/wrun-refusal-text.util.ts:10-13, passes it for four refusal variants). The worker env keeps its
134
+ * thrower. */
135
+ t(key: string, params?: Record<string, unknown>, plural?: number): string;
96
136
  /** Whether the locale holds `key`. Reserved with `t`. */
97
137
  te(key: string): boolean;
98
138
  /** Load the shared host once (later calls answer the same module; a failed load is not cached). Package code
@@ -114,10 +154,15 @@ export interface WrunChartHostEnv {
114
154
  market: WrunHostMarket;
115
155
  /** 0.3.0. */
116
156
  transport: WrunHostTransport;
117
- /** 0.3.0, transitional (D-4), retires 0.5.0. */
157
+ /** 0.3.0, transitional (D-4). Retired at 0.5.0: every member optional, none called by package code; removed at
158
+ * 0.6.0. */
118
159
  run: WrunHostRun;
119
160
  /** 0.3.0, reserved until 0.5.0. */
120
161
  clock: WrunHostClock;
162
+ /** 0.5.0. */
163
+ ui: WrunHostUi;
164
+ /** 0.5.0. */
165
+ engine: WrunHostEngine;
121
166
  }
122
167
  /** The mounted chart and the host's chart store, as package code reads and writes them. */
123
168
  export interface WrunHostChart {
@@ -131,7 +176,8 @@ export interface WrunHostChart {
131
176
  /** 0.3.0, socket web half. web: createWrunSocketLoadSignals(overlay) (same). */
132
177
  hostedLoadSignals(overlay: WrunHostOverlayRef): WrunSocketLoadSignals;
133
178
  /** Reserved until 0.4.0, boot loader. web: import('@/instances/titan-charts') viewed as { getTC }
134
- * (wrun-panel-mount.util.ts:1873-1874). */
179
+ * (wrun-panel-mount.util.ts:1873-1874). CHANGED 0.5.0 (view widened, host-ports.types.ts): getTC answers the chart
180
+ * handle, and the view gains getTCGroup. */
135
181
  loadTitanCharts(): Promise<WrunTitanChartsModule>;
136
182
  /** Reserved until 0.4.0, boot loader. web: import('@/utility/wrun/web-ports/panel-mount') (binds the members marked
137
183
  * "panel-mount binder"); the app resolves once its own are bound. The door awaits it beside the mount (D-5). */
@@ -165,6 +211,155 @@ export interface WrunHostChart {
165
211
  maxWaitMs?: number;
166
212
  pollMs?: number;
167
213
  }): Promise<number>;
214
+ /** 0.5.0, run. web: getTC(chartIndex) (instances/titan-charts.ts:14181), a static import of the live tick (:162), the
215
+ * executor (:65), the sandbox source (:35) and the factory (:26). */
216
+ instance(chartIndex: number): WrunChartHandle | null;
217
+ /** 0.5.0, run. web: calculatePricePrecision(chartIndex, ovId) (instances/titan-charts.ts:14997; the executor's
218
+ * wrunChartPriceDigits :9468, inside its try). */
219
+ pricePrecision(chartIndex: number, overlayId?: string): number;
220
+ /** 0.5.0, run. web: useChartStore() (store/chart.ts:3792) viewed as WrunChartStoreView; the live tick's static import
221
+ * (:168), read at call time (9 sites). */
222
+ chartStore(): WrunChartStoreView;
223
+ /** 0.5.0, optional, run. web: useCommonStore() (store/common), the go-to-date history flag the live tick's live-chart
224
+ * check reads in the caller's turn (`wrunLiveChartIsLive`, origin/main 70b1623d0a's static import). A host without
225
+ * one reads every chart as live, as the check does when no store answers. */
226
+ commonStore?(): ReturnType<WrunCommonStoreModule['useCommonStore']>;
227
+ /** 0.5.0, run. web: isOverlayBudgetHidden(chartIndex, overlayId) (utility/chart/pane-budget-ranking.util.ts:93; live
228
+ * tick :2324). */
229
+ isOverlayBudgetHidden(chartIndex: number, overlayId: string | undefined): boolean;
230
+ /** 0.5.0, boot loader. web: import('@/utility/chart/pane-budget-ranking.util') viewed as { isOverlayBudgetHidden }
231
+ * (executor :7716). */
232
+ loadPaneBudgetRanking(): Promise<WrunPaneBudgetRankingModule>;
233
+ /** 0.5.0, boot. web: isChartGestureLive(chartIndex) (utility/chart/viewport-pan-tracking.util.ts:319; one argument). */
234
+ isGestureLive(chartIndex: number): boolean;
235
+ /** 0.5.0, panel-mount binder. web: scheduleKScriptLiveChartPaint(chartIndex, tc, getLatestTc, opts)
236
+ * (utility/chart/kscript-chart-paint.util.ts:106; web's live-paint wait map stays the owner, D-2c). */
237
+ scheduleLivePaint(chartIndex: number, tc: WrunChartHandle, getLatestTc?: () => WrunChartHandle | null | undefined, options?: WrunChartPaintOptions): WrunChartPaintMode;
238
+ /** 0.5.0, run. web: decideLocalKScriptLiveRefreshGate(args) (utility/chart/kscript-live-refresh-pace.util.ts:112;
239
+ * kScript's gate maps stay web, D-2c). */
240
+ decideLiveRefreshGate(args: {
241
+ chartIndex: number;
242
+ indicatorId: string;
243
+ }): WrunLiveRefreshGateDecision;
244
+ /** 0.5.0, run. web: noteLocalKScriptLiveRefreshDispatched(chartIndex, indicatorId) (same file :160). */
245
+ noteLiveRefreshDispatched(chartIndex: number, indicatorId: string): void;
246
+ /** 0.5.0, run. web: clearLocalKScriptLiveRefreshGate(chartIndex, indicatorId) (same file :180). */
247
+ clearLiveRefreshGate(chartIndex: number, indicatorId?: string): void;
248
+ /** 0.5.0, run. web: noteLocalKScriptLiveCoalesceTick(args) (same file :325). */
249
+ noteLiveCoalesceTick(args: {
250
+ chartIndex: number;
251
+ indicatorId: string;
252
+ sourceType: string;
253
+ }): WrunLiveCoalesceTickDecision;
254
+ /** 0.5.0, run. web: getLocalKScriptLiveCoalesceHoldMs(chartIndex, indicatorId) (same file :384). */
255
+ liveCoalesceHoldMs(chartIndex: number, indicatorId: string): number;
256
+ /** 0.5.0, run. web: noteLocalKScriptLiveCoalesceFlushed(chartIndex, indicatorId) (same file :411). */
257
+ noteLiveCoalesceFlushed(chartIndex: number, indicatorId: string): WrunLiveCoalesceFlush | undefined;
258
+ /** 0.5.0, run. web: clearLocalKScriptLiveCoalesceWindow(chartIndex, indicatorId) (same file :434). */
259
+ clearLiveCoalesceWindow(chartIndex: number, indicatorId?: string): void;
260
+ /** 0.5.0, run. web: isTripped(id) (utility/chart/overlay-execution-guard.ts:501; the breaker web's kScript shares). */
261
+ isOverlayTripped(id: string): boolean;
262
+ /** 0.5.0, run. web: startMeasure() (same file :467). */
263
+ startOverlayMeasure(): number;
264
+ /** 0.5.0, run. web: endMeasure(id, startedAt, options) (same file :471). */
265
+ endOverlayMeasure(id: string, startedAt: number, options?: {
266
+ sample?: boolean;
267
+ live?: boolean;
268
+ }): WrunOverlayMeasureResult;
269
+ /** 0.5.0, run. web: clearWrunLatestValues(chartIndex, overlayId) (utility/wrun/wrun-hud-state.ts:66; a vue
270
+ * shallowReactive the HUD layer reads, D-2c). */
271
+ clearLatestValues(chartIndex: number, overlayId: string): void;
272
+ /** 0.5.0, run. web: publishWrunLatestValues(chartIndex, overlayId, snapshot) (same file :53). */
273
+ publishLatestValues(chartIndex: number, overlayId: string, snapshot: WrunLatestSnapshot): void;
274
+ /** 0.5.0, run. web: getWrunLatestSnapshot(chartIndex, overlayId) (same file :80). */
275
+ latestSnapshot(chartIndex: number, overlayId: string): WrunLatestSnapshot | undefined;
276
+ /** 0.5.0, run. web: markKScriptSourcesTerminal(guardKey, sourceNames) (utility/chart/kscript-source-degrade.util.ts:328;
277
+ * the registry the chart store and the engine manager share, D-2c). */
278
+ markSourcesTerminal(guardKey: string, sourceNames: readonly string[]): void;
279
+ /** 0.5.0, run. web: attachKScriptSourceRefusal(guardKey, sourceName, refusal) (same file :347). */
280
+ attachSourceRefusal(guardKey: string, sourceName: string, refusal: string): void;
281
+ /** 0.5.0, run. web: kscriptSourceDegradeEntriesFor(guardKey) (same file :433). */
282
+ sourceDegradeEntries(guardKey: string): WrunSourceDegradeEntry[];
283
+ /** 0.5.0, run. web: markKScriptSourceDegraded(guardKey, source, verdict, nowMs) (same file :297). */
284
+ markSourceDegraded(guardKey: string, source: {
285
+ sourceName: string;
286
+ sourceType: string;
287
+ landedBefore?: boolean;
288
+ }, verdict: {
289
+ cause: string;
290
+ retryable: boolean;
291
+ attempt: number;
292
+ terminal?: boolean;
293
+ }, nowMs?: number): void;
294
+ /** 0.5.0, run. web: markKScriptSourcePending(guardKey, source, nowMs) (same file :264). */
295
+ markSourcePending(guardKey: string, source: {
296
+ sourceName: string;
297
+ sourceType: string;
298
+ landedBefore?: boolean;
299
+ }, nowMs?: number): void;
300
+ /** 0.5.0, run. web: markKScriptSourceRecovered(guardKey, sourceName) (same file :355). */
301
+ markSourceRecovered(guardKey: string, sourceName: string): void;
302
+ /** 0.5.0, run. web: onKScriptSourceDegradeChange(listener) (same file :223); answers the unsubscribe. */
303
+ onSourceDegradeChange(listener: (guardKey: string) => void): () => void;
304
+ /** 0.5.0, run. web: guardKScriptRunResultColors(ctx, runResult) (utility/chart/kscript-contrast-guard.util.ts:1100; the
305
+ * lineage maps stay web, D-2c). */
306
+ guardRunResultColors(ctx: WrunContrastGuardContext | null, runResult: unknown): unknown;
307
+ /** 0.5.0, run. web: resolveKScriptOverlayContrastGuard(tc, meta, runResult) (same file :294; tc is unknown on web). */
308
+ resolveContrastGuard(tc: unknown, meta: unknown, runResult?: unknown): WrunContrastGuardContext | null;
309
+ /** 0.5.0, run. web: writeKScriptStandIn(args) (utility/chart/kscript-standin.util.ts:658; the output cache stays web). */
310
+ writeStandIn(args: WrunStandInWriteArgs): WrunStandInWriteOutcome;
311
+ /** 0.5.0, run. web: retractKScriptStandIn(chartIndex, overlayId, reason, tc) (same file :1562). */
312
+ retractStandIn(chartIndex: number, overlayId: string, reason: string, tc?: WrunStandInTarget | null): boolean;
313
+ /** 0.5.0, run. web: endOfDataMarkerReasonAtLoadedEdge(chartIndex) (utility/chart/end-of-data-marker.util.ts:58). */
314
+ endOfDataReasonAtLoadedEdge(chartIndex: number): WrunEndOfDataMarkerReason | null;
315
+ /** 0.5.0, executor. web: askLocalKScriptDeclaredDepthBeforeRun(ask)
316
+ * (utility/chart/local-kscript-warmup-backfill-ask.util.ts:196; first-run depth :106). */
317
+ askDeclaredDepthBeforeRun(ask: WrunDeclaredDepthAsk): WrunWarmupBackfillOutcome | null;
318
+ /** 0.5.0, executor. web: isLocalKScriptWarmupRoundLandedOn(ask) (same file :224). */
319
+ isWarmupRoundLandedOn(ask: Pick<WrunDeclaredDepthAsk, 'chartIndex' | 'indicatorId' | 'tc' | 'chartMeta'>): boolean;
320
+ /** 0.5.0, executor. web: askLocalKScriptWarmupBackfill(ask, attempt) (same file :95). */
321
+ askWarmupBackfill(ask: WrunWarmupBackfillAsk, attempt?: number): WrunWarmupBackfillOutcome | null;
322
+ /** 0.5.0, executor. web: raiseWrunRecordSlotCharge(chartIndex, tc, indicatorId, meta, sheet)
323
+ * (utility/wrun/wrun-slot-charge-restamp.util.ts:34; awaited by the executor :6291). */
324
+ raiseSlotCharge(chartIndex: number, tc: unknown, indicatorId: string, meta: {
325
+ settings?: unknown;
326
+ }, sheet: WrunSourceCountMetadataLike): Promise<void>;
327
+ /** 0.5.0, boot loader. web: import('@/utility/chart/chart-mode.util') viewed as { isIndicatorGatedForFetch }
328
+ * (recovery :180, beside the store and the chart group in loadWrunStoreSide's Promise.all). */
329
+ loadChartMode(): Promise<WrunChartModeModule>;
330
+ /** 0.5.0, boot loader. web: import('@/store/common') viewed as { useCommonStore } (executor :7482). */
331
+ loadCommonStore(): Promise<WrunCommonStoreModule>;
332
+ /** 0.5.0, boot loader. web: import('@/utility/chart/data-fetching.util') viewed as WrunDataFetchingModule (executor
333
+ * :7114, :7188, :10490). */
334
+ loadDataFetching(): Promise<WrunDataFetchingModule>;
335
+ /** 0.5.0, boot loader. web: import('@/utility/chart/chart-routing.util') viewed as { persistChart, resolveChart }
336
+ * (executor :6305, :6421). */
337
+ loadChartRouting(): Promise<WrunChartRoutingModule>;
338
+ /** 0.5.0, boot loader. web: import('@/utility/chart/offchart-grid-heights.util') viewed as
339
+ * { reconcileScriptPaneSideAfterRunResultApply } (executor :6355). */
340
+ loadOffchartGridHeights(): Promise<WrunOffchartGridHeightsModule>;
341
+ /** 0.5.0, boot loader. web: import('@/utility/indicators/options-overlay-provenance.util') viewed as
342
+ * { admittedOpraSources, setOptionsOverlayOpraProvenance } (executor :8753; the cloud OPRA stamp, moved whole). */
343
+ loadOptionsOverlayProvenance(): Promise<WrunOptionsOverlayProvenanceModule>;
344
+ /** 0.5.0, boot loader. web: import('@/indicators/indicator-registry') viewed as { indicatorRegistry } (executor :7699). */
345
+ loadIndicatorRegistry(): Promise<WrunIndicatorRegistryModule>;
346
+ /** 0.5.0, boot loader. web: import('@orangecharts/chart-schema/indicator-types') viewed as { INDICATOR_TYPES }
347
+ * (executor :7700; chart-schema is no package peer). */
348
+ loadIndicatorTypes(): Promise<WrunIndicatorTypesModule>;
349
+ /** 0.5.0, boot loader. web: import('@/indicators/controls/technical-script') for its registration side effect
350
+ * (executor :7702; nothing destructured). */
351
+ loadTechnicalScriptControl(): Promise<unknown>;
352
+ /** 0.5.0, boot loader. web: import('@/utility/wrun/wrun-twins.util') viewed as { wrunTwinOriginalLookbackInfo }
353
+ * (wrun-twin-lookback.util.ts:39, moved whole by U5a). */
354
+ loadTwinsRoster(): Promise<WrunTwinsRosterModule>;
355
+ /** 0.5.0, boot loader. web: import('@/utility/wrun/web-ports/run').then(() => undefined) (binds the members marked
356
+ * "run"; the projection boot.ts:27 uses for loadPanelMountPorts, so the binding is a Promise<void>); the app resolves
357
+ * once its own are bound. A package dynamic import of a module that reads run members sits in one Promise.all with
358
+ * it (rule 1.2). */
359
+ loadRunPorts(): Promise<void>;
360
+ /** 0.5.0, boot loader. web: import('@/utility/wrun/web-ports/executor').then(() => undefined) (binds the members
361
+ * marked "executor", and loads run.ts and panel-mount.ts; projected like loadRunPorts); paired like loadRunPorts. */
362
+ loadExecutorPorts(): Promise<void>;
168
363
  }
169
364
  /** The signed-in person's switches and settings. */
170
365
  export interface WrunHostUser {
@@ -177,6 +372,14 @@ export interface WrunHostUser {
177
372
  /** Reserved until 0.4.0, panel-mount binder. web: chartDisplayTimezoneOffsetMs(barIntervalMs)
178
373
  * (utility/chart/chart-display-timezone.util.ts:32; it reads the user store). */
179
374
  chartDisplayTimezoneOffsetMs(barIntervalMs?: number): number;
375
+ /** 0.5.0, boot. web: useUserStore().settings?.isDarkMode (store/user.ts; the executor keeps its try and typeof check,
376
+ * :9631-9638). */
377
+ isDarkMode(): unknown;
378
+ /** 0.5.0, run. web: kscriptStandInAccount() (utility/chart/kscript-standin-account.util.ts:16; reads store/jwt). */
379
+ standInAccount(): string;
380
+ /** 0.5.0, run. web: technicalScriptThemeLines(isDarkMode, themeMode, chartMetadata)
381
+ * (utility/chart/builtin-script-theme-palette.util.ts:370; executor :9616). */
382
+ themeLines(isDarkMode: boolean | undefined, themeMode: string | undefined, chartMetadata: unknown): string[];
180
383
  }
181
384
  /** Market reference data the host's directories answer. */
182
385
  export interface WrunHostMarket {
@@ -187,21 +390,47 @@ export interface WrunHostMarket {
187
390
  * tokenized-markets store); the one site reads only `.kind` (wrun-source-rows.util.ts:2378). */
188
391
  gapPolicyKind(exchange: string | undefined, symbol?: string): string;
189
392
  /** 0.3.0, boot loader. web: import('@/indicators/controls/optionsChartSource') viewed as { resolveOptionsChartSource }
190
- * (async; sources/opra-option-lanes.util.ts:39-40, wrun-opra-underlying.util.ts:27). */
393
+ * (async; sources/opra-option-lanes.util.ts `resolveWrunChartChain`, the one chart chain resolution every chain
394
+ * class reads). */
191
395
  loadOptionsChartSource(): Promise<WrunOptionsChartSourceModule>;
192
396
  /** 0.3.0, boot loader. web: import('@/utility/options/opra-options-gate.util') viewed as { governedOptionPlane,
193
- * opraOptionPlaneStop } (sync, called after the loads: sources/opra-option-lanes.util.ts:85; the stop's type is
194
- * `OpraOptionPlaneStop`). */
397
+ * opraOptionPlaneStop } (sync, called after the loads: sources/opra-option-lanes.util.ts `resolveWrunChartChain`;
398
+ * the stop's type is `OpraOptionPlaneStop`). */
195
399
  loadOptionsGate(): Promise<WrunOptionsGateModule>;
196
400
  /** 0.3.0, boot loader. web: import('@/utility/wrun/wrun-options-chain-venues.util') viewed as
197
- * { resolveWrunOptionsChainCryptoVenues } (sources/opra-option-lanes.util.ts:86-87). */
401
+ * { resolveWrunOptionsChainCryptoVenues } (sources/opra-option-lanes.util.ts `resolveWrunLaneCryptoVenues`). */
198
402
  loadOptionsChainVenues(): Promise<WrunOptionsChainVenuesModule>;
199
403
  /** 0.3.0, boot loader. web: import('@/utility/indicators/deribit-options.util') viewed as { hasDeribitOptions } (sync;
200
- * sources/row-lanes/option_strikes.ts:105). */
404
+ * sources/opra-option-lanes.util.ts `resolveWrunLaneChainChart`, every chain lane's chart resolution). */
201
405
  loadDeribitOptions(): Promise<WrunDeribitOptionsModule>;
202
406
  /** 0.3.0, boot loader. web: import('@/services/option-chain.service') viewed as { optionChainServiceForExchange,
203
- * default: { resolveChainContract } } (sources/opra-option-lanes.util.ts:338, :397). */
407
+ * default: { resolveChainContract } } (sources/opra-option-lanes.util.ts `readWrunLaneChainSeries`, the `auto` book's
408
+ * directory read, and `resolveWrunLaneChainChart`, a continuous CME chart's lead contract). */
204
409
  loadOptionChainService(): Promise<WrunOptionChainServiceModule>;
410
+ /** 0.5.0, boot loader. web: import('@/services/continuous-contracts.service') viewed as { default: { getResolvedLead } }
411
+ * (executor :8817). */
412
+ loadContinuousContracts(): Promise<WrunContinuousContractsModule>;
413
+ /** 0.5.0, boot loader. web: import('@/indicators/controls/tpo-block-size.util') viewed as { peekTpoBlockSize,
414
+ * loadTpoBlockSize } (executor :9161). */
415
+ loadTpoBlockCatalog(): Promise<WrunTpoBlockCatalogModule>;
416
+ /** 0.5.0, boot loader. web: import('@/utility/symbol-selection/searchPayloadToMarketsRequest') viewed as
417
+ * { normalizeMarketSymbols } (chart-market-facts :710). */
418
+ loadSearchPayloadToMarketsRequest(): Promise<WrunSearchPayloadToMarketsRequestModule>;
419
+ /** 0.5.0, boot loader. web: import('@/store/market-events') viewed as { useMarketEventsStore } (earnings facts :135). */
420
+ loadMarketEventsStore(): Promise<WrunMarketEventsStoreModule>;
421
+ /** 0.5.0, boot loader. web: import('@/utility/symbol-display.util') viewed as { resolveChartSymbolData }
422
+ * (chart-context-names :179). */
423
+ loadSymbolDisplay(): Promise<WrunSymbolDisplayModule>;
424
+ /** 0.5.0, boot. web: useCmeRealtimeStore().servedAccessForExchange(exchange) (store/cme-realtime.ts:230; read by the
425
+ * draft legend note :47, moved whole by L2-0). */
426
+ cmeServedAccess(exchange: string | undefined | null): CmeServedAccess;
427
+ /** 0.5.0, executor. web: resolveVenueLegs(args) (utility/indicators/venue-legs.util.ts:123; awaited by the executor
428
+ * :8872). */
429
+ resolveVenueLegs(args: WrunVenueLegsArgs): Promise<WrunVenueLegsResult>;
430
+ /** 0.5.0, run. web: wrunSwitchTargetFor(reqs, chart, opts) (utility/wrun/wrun-input-requirements.util.ts:920). */
431
+ switchTargetFor(reqs: readonly WrunInputRequirement[], chart: WrunRefusalContext['chart'], opts: {
432
+ official: boolean;
433
+ }): WrunRefusalOut;
205
434
  }
206
435
  /** Rows over the wire: the relay, the cloud socket, the kit's main entry, the error envelope. */
207
436
  export interface WrunHostTransport {
@@ -226,25 +455,87 @@ export interface WrunHostTransport {
226
455
  * Promise.all of feed-stream.service and feeds.service, answered as the three functions it then calls
227
456
  * synchronously (`feedStreamEnabled`, `subscribeFeedStream`, `seenFeedHead`). */
228
457
  loadFeedStream(): Promise<WrunFeedStreamApi>;
458
+ /** 0.5.0, run. web: dataFetch(chartIndex, type, payload, from, toOrPeriod, metadata, sourceName, isPolling, options)
459
+ * (instances/titan-charts.ts:16337, answers Promise<any>); the live tick (:3707, :3784, :4152) and the executor
460
+ * (:3233, :7352, :11931, :12013) already pass `as never` for the payload and the metadata. */
461
+ fetchSource(chartIndex: number, type: string, payload: unknown, from: number, toOrPeriod: number, metadata: unknown, sourceName: string, isPolling?: boolean, options?: WrunSourceFetchOptions): Promise<unknown>;
462
+ /** 0.5.0, boot loader. web: import('@/services/v2.service') viewed as { default: { fetchData } } (executor :10491, in
463
+ * one Promise.all with loadDataFetching, both `.catch(() => undefined)`). */
464
+ loadV2Service(): Promise<WrunV2ServiceModule>;
465
+ /** 0.5.0, boot loader that loads the socket binder. web: import('@/utility/wrun/wrun-socket-transport') viewed as
466
+ * { createWrunSocketTransport, releaseWrunSocketCapability, routeWrunSocketLiveFrame } (the factory :128, beside the
467
+ * package socket module; its evaluation binds the socket web half's five members, :448-458). */
468
+ loadWrunSocketTransport(): Promise<WrunSocketTransportModule>;
469
+ /** 0.5.0, boot loader. web: import('@/services/live-feed.service') viewed as { bindWrunRowSourceLiveRoute } (the
470
+ * factory :132, inside the socket module load's .then). */
471
+ loadLiveFeedService(): Promise<WrunLiveFeedServiceModule>;
229
472
  }
230
- /** TRANSITIONAL (D-4): loaders into modules Phase 2 moves. Each retires at 0.5.0 (optional), removed at 0.6.0. */
473
+ /** TRANSITIONAL (D-4): loaders into modules Phase 2 moved. Retired at 0.5.0: each is optional and no package code
474
+ * calls it (the three modules are package modules, loaded package-internally with the same destructuring); removed
475
+ * at 0.6.0. A host may keep binding them until then (web does, web-ports/boot.ts). */
231
476
  export interface WrunHostRun {
232
- /** 0.3.0, boot loader. web: import('@/utility/wrun/wrun-overlay-lifecycle.lazy') viewed as { requestWrunOverlayRerun }
233
- * (wrun-socket-row-source.ts:1733-1734). */
234
- loadOverlayLifecycleDoor(): Promise<WrunOverlayLifecycleDoorModule>;
235
- /** 0.3.0, boot loader. web: import('@/utility/wrun/wrun-refusal-surface.util') viewed as { liveWrunRefusalAttempt }
236
- * (wrun-socket-row-source.ts:1788-1789). */
237
- loadRefusalSurface(): Promise<WrunRefusalSurfaceModule>;
238
- /** 0.3.0, boot loader. web: import('@/utility/wrun/wrun-series-stream.util') viewed as { openWrunSeriesStream }
239
- * (sources/lanes/series.ts:353-354). */
240
- loadSeriesStream(): Promise<WrunSeriesStreamModule>;
477
+ /** 0.3.0, boot loader; retired at 0.5.0 (the socket row source imports ./wrun-overlay-lifecycle.lazy). web:
478
+ * import('@/utility/wrun/wrun-overlay-lifecycle.lazy') viewed as { requestWrunOverlayRerun }. */
479
+ loadOverlayLifecycleDoor?(): Promise<WrunOverlayLifecycleDoorModule>;
480
+ /** 0.3.0, boot loader; retired at 0.5.0 (the socket row source imports ./wrun-refusal-surface.util). web:
481
+ * import('@/utility/wrun/wrun-refusal-surface.util') viewed as { liveWrunRefusalAttempt }. */
482
+ loadRefusalSurface?(): Promise<WrunRefusalSurfaceModule>;
483
+ /** 0.3.0, boot loader; retired at 0.5.0 (the series lane imports ../../wrun-series-stream.util). web:
484
+ * import('@/utility/wrun/wrun-series-stream.util') viewed as { openWrunSeriesStream }. */
485
+ loadSeriesStream?(): Promise<WrunSeriesStreamModule>;
241
486
  }
242
- /** Page visibility (reserved until 0.5.0, boot). Timers and Date.now stay direct (D-10). */
487
+ /** Page visibility (reserved until 0.5.0, boot; live at 0.5.0, the live tick reads both) and the hidden live pace
488
+ * (0.5.0, boot). Timers and Date.now stay direct (D-10). */
243
489
  export interface WrunHostClock {
244
490
  /** web: document.visibilityState === 'hidden' (false when the realm has no document). */
245
491
  pageHidden(): boolean;
246
492
  /** web: a 'visibilitychange' listener that fires when the page turns visible; returns the unsubscribe. */
247
493
  onPageVisible(listener: () => void): () => void;
494
+ /** 0.5.0, boot. web: isLiveHiddenPaceEnabled() (utility/chart/hidden-live-drain.util.ts:127). */
495
+ hiddenPaceEnabled(): boolean;
496
+ /** 0.5.0, boot. web: onLiveHiddenPaceChange(listener) (same file :154); answers the unsubscribe. The live tick
497
+ * subscribes at its first schedule (R3), never at module evaluation. */
498
+ onHiddenPaceChange(listener: (enabled: boolean) => void): () => void;
499
+ /** 0.5.0, boot. web: whenHiddenLiveDrainLanded() (same file :211); a sync call answering a Promise (not a loader: the
500
+ * registry never wraps it). */
501
+ whenHiddenDrainLanded(): Promise<WrunHiddenLiveDrainOutcome>;
502
+ /** 0.5.0, optional. The host's own suspension beside the page's visibility (a host that parks its chart while the
503
+ * page stays visible: an app backgrounded, its chart tab blurred): calls `listener` with the host's state at once
504
+ * and on every change, and answers the unsubscribe. The package's deadlines that count on-screen time (the
505
+ * transient grace, the apply deadlines, the unanswered-run drop; utility/wrun/wrun-host-visible-clock.util.ts)
506
+ * pause while it reads suspended, as while the page is hidden. Unbound reads as "not suspended". web: unbound
507
+ * (its one host suspension is the page's visibility, which those deadlines read already). */
508
+ watchHostSuspended?(listener: (suspended: boolean) => void): () => void;
509
+ }
510
+ /** The host's interface surfaces the run reads or opens (0.5.0, new namespace). */
511
+ export interface WrunHostUi {
512
+ /** 0.5.0, boot loader. web: import('@/store/editor-shell') viewed as { useEditorShellStore } (live tick :2414, executor
513
+ * :1540: `openTabs` read once, sync, inside the existing try). */
514
+ loadEditorShell(): Promise<WrunEditorShellModule>;
515
+ /** 0.5.0, boot loader. web: import('@/utility/wrun/wrun-refusal-actions.util') viewed as { toastWrunRefusal }
516
+ * (refusal surface :199; the freshness re-check and the target re-resolve stay in package code, finding 2). */
517
+ loadWrunRefusalActions(): Promise<WrunRefusalActionsModule>;
518
+ /** 0.5.0, boot loader. web: import('@/utility/wrun/wrun-legend-hover') viewed as { attachWrunHoverSurfaces } (the
519
+ * legend hover door :58, moved whole by U4b). */
520
+ loadWrunLegendHover(): Promise<WrunLegendHoverModule>;
521
+ /** 0.5.0, run. web: wrunConsoleRefusalContext(run) (utility/scriptEditor/console-routing.util.ts:660; live tick :2397). */
522
+ consoleRefusalContext(run: WrunConsoleRefusalRun): WrunRefusalContext;
523
+ /** 0.5.0, executor. web: beginWrunSignalSoundCheck(metadata, meta, rows) (utility/wrun/wrun-signal-sounds-live.util.ts:94;
524
+ * the check plays through web's one audio player). */
525
+ beginSignalSoundCheck(metadata: WrunSignalSheetView | null | undefined, meta: {
526
+ settings?: unknown;
527
+ isHidden?: unknown;
528
+ } | null | undefined, rows: ReadonlyArray<WrunOutputRow>): WrunSignalSoundCheck | null;
529
+ /** 0.5.0, executor. web: wrunOverlayPlaysSignalSounds(metadata, settings) (same file :76). */
530
+ overlayPlaysSignalSounds(metadata: WrunSignalSheetView | null | undefined, settings: Record<string, unknown> | null | undefined): boolean;
531
+ }
532
+ /** The engine worker the run host spawns (0.5.0, new namespace). */
533
+ export interface WrunHostEngine {
534
+ /** 0.5.0, boot. web: createManagedWorker((Worker) => new Worker(new URL('../../../workers/wrun-engine.worker.ts',
535
+ * import.meta.url), { type: 'module' }), { source: 'wrun-engine-worker', ...options })
536
+ * (utility/worker-factory.util.ts:251; the host's ensureWorker :670-719). Sync. The app answers its unserved
537
+ * thrower at 0.5.0 (R6). */
538
+ spawnWorker(options: WrunEngineWorkerOptions): WrunEngineWorker;
248
539
  }
249
540
  /** Set the realm's env (the realm's entry, before any package code runs; a later set replaces it). */
250
541
  export declare function setWrunChartHostEnv(env: WrunChartHostEnv): void;
@@ -254,5 +545,11 @@ export declare function wrunChartHostEnv(): WrunChartHostEnv;
254
545
  export declare function hasWrunChartHostEnv(): boolean;
255
546
  /** The error a host's `sharedHost()` throws before its load. */
256
547
  export declare function wrunChartHostUnloadedError(): Error;
548
+ /** The shared host now, or its load: `undefined` once the env's `sharedHost()` answers, else the env's
549
+ * `loadSharedHost()` (web: ensureWrunSharedHost, utility/wrun/wrun-shared-host-load.util.ts:47-49, whose `undefined`
550
+ * keeps a warm run in its task; host.service :456-457 relies on it). Not a member: R7's helper over the env for the 12
551
+ * `ensureWrunSharedHost()` sites of four Phase 2 roots (host.service :458, :503, :552; sandbox :458; executor :1004,
552
+ * :2537, :6488, :7858, :12526; live tick :1737, :1956, :2015). It reads the env when called, never at module load. */
553
+ export declare function ensureWrunChartHostSharedHost(): Promise<WrunSharedHostModule> | undefined;
257
554
  /** Clear the realm's env, returning the one it held, so a spec can prove a cold read throws (specs only). */
258
555
  export declare function __clearWrunChartHostEnvForTests(): WrunChartHostEnv | undefined;
package/dist/host-env.js CHANGED
@@ -18,6 +18,21 @@ export function hasWrunChartHostEnv() {
18
18
  export function wrunChartHostUnloadedError() {
19
19
  return new Error('wrun_chart_host_unloaded');
20
20
  }
21
+ /** The shared host now, or its load: `undefined` once the env's `sharedHost()` answers, else the env's
22
+ * `loadSharedHost()` (web: ensureWrunSharedHost, utility/wrun/wrun-shared-host-load.util.ts:47-49, whose `undefined`
23
+ * keeps a warm run in its task; host.service :456-457 relies on it). Not a member: R7's helper over the env for the 12
24
+ * `ensureWrunSharedHost()` sites of four Phase 2 roots (host.service :458, :503, :552; sandbox :458; executor :1004,
25
+ * :2537, :6488, :7858, :12526; live tick :1737, :1956, :2015). It reads the env when called, never at module load. */
26
+ export function ensureWrunChartHostSharedHost() {
27
+ const env = wrunChartHostEnv();
28
+ try {
29
+ env.sharedHost();
30
+ return undefined;
31
+ }
32
+ catch {
33
+ return env.loadSharedHost();
34
+ }
35
+ }
21
36
  /** Clear the realm's env, returning the one it held, so a spec can prove a cold read throws (specs only). */
22
37
  export function __clearWrunChartHostEnvForTests() {
23
38
  const env = globalThis[ENV_KEY];