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