@orangecharts/wrun-chart-host 0.11.0 → 0.14.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 (311) hide show
  1. package/README.md +1 -0
  2. package/dist/constants/feature-flags.constants.d.ts +3 -4
  3. package/dist/constants/feature-flags.constants.js +34 -52
  4. package/dist/constants/feature-limits.constants.d.ts +1 -1
  5. package/dist/constants/feature-limits.constants.js +5 -4
  6. package/dist/constants/interval.constants.d.ts +7 -0
  7. package/dist/constants/interval.constants.js +7 -0
  8. package/dist/constants/scriptEditor/cme-official-scripts.constants.d.ts +20 -149
  9. package/dist/constants/scriptEditor/cme-official-scripts.constants.js +20 -309
  10. package/dist/constants/stocks-compliance.constants.d.ts +15 -0
  11. package/dist/constants/stocks-compliance.constants.js +15 -0
  12. package/dist/host-env.d.ts +55 -3
  13. package/dist/host-env.js +6 -0
  14. package/dist/host-ports.types.d.ts +36 -3
  15. package/dist/index.d.ts +18 -0
  16. package/dist/index.js +19 -0
  17. package/dist/indicators/controls/tpo-session.util.d.ts +78 -15
  18. package/dist/indicators/controls/tpo-session.util.js +320 -242
  19. package/dist/instances/script-engine-worker-ohlcv-transfer.d.ts +6 -0
  20. package/dist/instances/script-engine-worker-ohlcv-transfer.js +16 -0
  21. package/dist/interfaces/cme-realtime.interface.d.ts +8 -0
  22. package/dist/interfaces/cme-realtime.interface.js +2 -1
  23. package/dist/interfaces/feed.interface.d.ts +15 -1
  24. package/dist/interfaces/replay.interface.d.ts +5 -0
  25. package/dist/interfaces/stocks-realtime.interface.d.ts +4 -3
  26. package/dist/interfaces/stocks-realtime.interface.js +5 -4
  27. package/dist/interfaces/wrun-runtime.interface.d.ts +97 -19
  28. package/dist/kscript-data/controls/live-ohlcv-merge.util.d.ts +17 -0
  29. package/dist/kscript-data/controls/live-ohlcv-merge.util.js +22 -0
  30. package/dist/kscript-data/controls/live-trades-merge.util.d.ts +46 -40
  31. package/dist/kscript-data/controls/live-trades-merge.util.js +80 -107
  32. package/dist/market-data/billing.interface.d.ts +9 -1
  33. package/dist/market-data/venue.d.ts +1 -1
  34. package/dist/market-data/venues/index.d.ts +4 -4
  35. package/dist/market-data/venues/stocks.contract.copy.json +4 -4
  36. package/dist/market-data/venues/stocks.d.ts +4 -4
  37. package/dist/market-data/venues/stocks.js +15 -13
  38. package/dist/settings-templates/frvp-fields.d.ts +12 -1
  39. package/dist/settings-templates/frvp-fields.js +15 -4
  40. package/dist/settings-templates/index.js +12 -5
  41. package/dist/settings-templates/indicator-fields.js +28 -2
  42. package/dist/settings-templates/tool-rules.d.ts +17 -8
  43. package/dist/settings-templates/tool-rules.js +15 -8
  44. package/dist/settings-templates/tool-tables.generated.js +4 -2
  45. package/dist/utility/auth/server-clock.util.d.ts +3 -1
  46. package/dist/utility/auth/server-clock.util.js +3 -1
  47. package/dist/utility/chart/book-live-bucket.util.js +2 -2
  48. package/dist/utility/chart/cache-alignment.util.d.ts +15 -7
  49. package/dist/utility/chart/cache-alignment.util.js +14 -7
  50. package/dist/utility/chart/chart-data-fetch-generation.util.d.ts +2 -0
  51. package/dist/utility/chart/chart-data-fetch-generation.util.js +16 -0
  52. package/dist/utility/chart/cme-session-bucket.util.d.ts +18 -75
  53. package/dist/utility/chart/cme-session-bucket.util.js +25 -332
  54. package/dist/utility/chart/continuous-contracts.util.js +6 -5
  55. package/dist/utility/chart/display-offset.leaf.d.ts +24 -0
  56. package/dist/utility/chart/display-offset.leaf.js +41 -0
  57. package/dist/utility/chart/effective-chart-session.util.d.ts +2 -1
  58. package/dist/utility/chart/effective-chart-session.util.js +13 -5
  59. package/dist/utility/chart/feed-interval.util.d.ts +6 -20
  60. package/dist/utility/chart/feed-interval.util.js +13 -22
  61. package/dist/utility/chart/fetch-dedupe-policy.util.d.ts +27 -7
  62. package/dist/utility/chart/fetch-dedupe-policy.util.js +86 -11
  63. package/dist/utility/chart/host-bar-placement.util.d.ts +7 -4
  64. package/dist/utility/chart/host-bar-placement.util.js +8 -2
  65. package/dist/utility/chart/indicator-inflight-registry.util.d.ts +32 -0
  66. package/dist/utility/chart/indicator-inflight-registry.util.js +52 -0
  67. package/dist/utility/chart/indicator-run-interval.util.d.ts +10 -4
  68. package/dist/utility/chart/indicator-run-interval.util.js +21 -12
  69. package/dist/utility/chart/interval-registry.util.d.ts +1 -1
  70. package/dist/utility/chart/interval-registry.util.js +1 -1
  71. package/dist/utility/chart/kscript-legend-entries.util.d.ts +12 -0
  72. package/dist/utility/chart/kscript-legend-entries.util.js +16 -0
  73. package/dist/utility/chart/kscript-run-interval-projection.util.d.ts +1 -1
  74. package/dist/utility/chart/kscript-run-interval-projection.util.js +4 -2
  75. package/dist/utility/chart/kscript-venue-policy.util.d.ts +53 -62
  76. package/dist/utility/chart/kscript-venue-policy.util.js +85 -94
  77. package/dist/utility/chart/live-bucket.util.d.ts +39 -17
  78. package/dist/utility/chart/live-bucket.util.js +103 -57
  79. package/dist/utility/chart/local-kscript-source-revalidation.util.d.ts +58 -20
  80. package/dist/utility/chart/local-kscript-source-revalidation.util.js +98 -23
  81. package/dist/utility/chart/local-kscript-warmup-depth.util.d.ts +35 -11
  82. package/dist/utility/chart/local-kscript-warmup-depth.util.js +24 -3
  83. package/dist/utility/chart/market-session-schedule.util.d.ts +8 -0
  84. package/dist/utility/chart/market-session-schedule.util.js +39 -1
  85. package/dist/utility/chart/market-session.util.d.ts +136 -0
  86. package/dist/utility/chart/market-session.util.js +341 -0
  87. package/dist/utility/chart/market-sessions.util.d.ts +83 -0
  88. package/dist/utility/chart/market-sessions.util.js +220 -0
  89. package/dist/utility/chart/om-panel.util.d.ts +5 -3
  90. package/dist/utility/chart/om-panel.util.js +42 -7
  91. package/dist/utility/chart/om-target.util.d.ts +14 -1
  92. package/dist/utility/chart/om-target.util.js +22 -5
  93. package/dist/utility/chart/opra-read-access.leaf.d.ts +16 -1
  94. package/dist/utility/chart/opra-read-access.leaf.js +22 -0
  95. package/dist/utility/chart/profile-row-height.util.d.ts +49 -16
  96. package/dist/utility/chart/profile-row-height.util.js +74 -37
  97. package/dist/utility/chart/rth-session.util.d.ts +55 -20
  98. package/dist/utility/chart/rth-session.util.js +94 -46
  99. package/dist/utility/chart/session-interval.util.d.ts +2 -1
  100. package/dist/utility/chart/session-interval.util.js +1 -3
  101. package/dist/utility/chart/session-lattice.util.d.ts +150 -0
  102. package/dist/utility/chart/session-lattice.util.js +488 -0
  103. package/dist/utility/chart/trading-day.util.d.ts +40 -2
  104. package/dist/utility/chart/trading-day.util.js +84 -7
  105. package/dist/utility/chart/us-equities-session.util.d.ts +32 -11
  106. package/dist/utility/chart/us-equities-session.util.js +44 -15
  107. package/dist/utility/chart/window-geometry.leaf.d.ts +28 -7
  108. package/dist/utility/chart/window-geometry.leaf.js +57 -8
  109. package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +21 -14
  110. package/dist/utility/chart/wrun-bar-session-facts.util.js +32 -38
  111. package/dist/utility/chart/wrun-run-result.util.d.ts +29 -12
  112. package/dist/utility/chart/wrun-run-result.util.js +89 -25
  113. package/dist/utility/common/time.util.js +5 -4
  114. package/dist/utility/market-events/earnings-scope.util.d.ts +10 -5
  115. package/dist/utility/market-events/earnings-scope.util.js +17 -9
  116. package/dist/utility/market-events/market-events.util.d.ts +14 -7
  117. package/dist/utility/market-events/market-events.util.js +30 -17
  118. package/dist/utility/number-format.util.d.ts +14 -21
  119. package/dist/utility/number-format.util.js +38 -24
  120. package/dist/utility/options/option-venue-disclosure.util.d.ts +40 -6
  121. package/dist/utility/options/option-venue-disclosure.util.js +71 -11
  122. package/dist/utility/options/option-venue.util.d.ts +1 -1
  123. package/dist/utility/options/option-venue.util.js +1 -1
  124. package/dist/utility/pool-symbol.leaf.d.ts +7 -0
  125. package/dist/utility/pool-symbol.leaf.js +50 -5
  126. package/dist/utility/stocks/stock-display.util.d.ts +15 -0
  127. package/dist/utility/stocks/stock-display.util.js +37 -0
  128. package/dist/utility/symbol-selection/contract-expiry.util.js +5 -4
  129. package/dist/utility/v2/gate-plane.util.d.ts +6 -0
  130. package/dist/utility/v2/gate-plane.util.js +11 -1
  131. package/dist/utility/v2/gate-session-latch.util.d.ts +1 -1
  132. package/dist/utility/v2/gate-session-latch.util.js +3 -3
  133. package/dist/utility/v2/governed-tier.leaf.d.ts +17 -16
  134. package/dist/utility/v2/governed-tier.leaf.js +17 -16
  135. package/dist/utility/v2/stocks-governed.util.d.ts +5 -0
  136. package/dist/utility/v2/stocks-governed.util.js +14 -0
  137. package/dist/utility/v2/v2-enums.leaf.d.ts +13 -0
  138. package/dist/utility/v2/v2-enums.leaf.js +458 -0
  139. package/dist/utility/wrun/derived-roots.leaf.d.ts +21 -1
  140. package/dist/utility/wrun/derived-roots.leaf.js +27 -1
  141. package/dist/utility/wrun/derived-roots.util.d.ts +44 -32
  142. package/dist/utility/wrun/derived-roots.util.js +97 -56
  143. package/dist/utility/wrun/run-schedule/wrun-late-reads.util.d.ts +4 -3
  144. package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +4 -3
  145. package/dist/utility/wrun/sources/lanes/option_daily.d.ts +2 -1
  146. package/dist/utility/wrun/sources/lanes/option_daily.js +2 -1
  147. package/dist/utility/wrun/sources/lanes/options_flow.d.ts +3 -0
  148. package/dist/utility/wrun/sources/lanes/options_flow.js +23 -5
  149. package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +3 -4
  150. package/dist/utility/wrun/sources/row-lane-registry.js +9 -4
  151. package/dist/utility/wrun/sources/row-lanes/dark_pool.d.ts +19 -0
  152. package/dist/utility/wrun/sources/row-lanes/dark_pool.js +104 -0
  153. package/dist/utility/wrun/sources/row-lanes/index.js +2 -0
  154. package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.d.ts +20 -0
  155. package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.js +103 -0
  156. package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +19 -2
  157. package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +15 -13
  158. package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +49 -23
  159. package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +14 -9
  160. package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +75 -27
  161. package/dist/utility/wrun/sources/wrun-row-lanes.util.js +139 -82
  162. package/dist/utility/wrun/wrun-app-layer.leaf.d.ts +78 -0
  163. package/dist/utility/wrun/wrun-app-layer.leaf.js +89 -0
  164. package/dist/utility/wrun/wrun-bar-count.util.d.ts +11 -7
  165. package/dist/utility/wrun/wrun-bar-count.util.js +12 -8
  166. package/dist/utility/wrun/wrun-batched-kinds.leaf.d.ts +13 -0
  167. package/dist/utility/wrun/wrun-batched-kinds.leaf.js +18 -0
  168. package/dist/utility/wrun/wrun-batched-marks.util.d.ts +41 -22
  169. package/dist/utility/wrun/wrun-batched-marks.util.js +255 -59
  170. package/dist/utility/wrun/wrun-batched-readout.util.d.ts +26 -19
  171. package/dist/utility/wrun/wrun-batched-readout.util.js +81 -27
  172. package/dist/utility/wrun/wrun-book-bands.leaf.d.ts +8 -0
  173. package/dist/utility/wrun/wrun-book-bands.leaf.js +7 -0
  174. package/dist/utility/wrun/wrun-candle-equal.leaf.d.ts +19 -0
  175. package/dist/utility/wrun/wrun-candle-equal.leaf.js +40 -0
  176. package/dist/utility/wrun/wrun-canvas-readout.util.d.ts +4 -2
  177. package/dist/utility/wrun/wrun-canvases.util.js +7 -3
  178. package/dist/utility/wrun/wrun-chart-context-names.util.d.ts +6 -3
  179. package/dist/utility/wrun/wrun-chart-context-names.util.js +8 -4
  180. package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +47 -29
  181. package/dist/utility/wrun/wrun-chart-market-facts.util.js +201 -201
  182. package/dist/utility/wrun/wrun-child-overlay-id.util.js +2 -1
  183. package/dist/utility/wrun/wrun-cme-legs-note.util.d.ts +15 -0
  184. package/dist/utility/wrun/wrun-cme-legs-note.util.js +49 -0
  185. package/dist/utility/wrun/wrun-cme-root-specs.util.d.ts +38 -0
  186. package/dist/utility/wrun/wrun-cme-root-specs.util.js +81 -0
  187. package/dist/utility/wrun/wrun-coin-lane-live.util.js +3 -0
  188. package/dist/utility/wrun/wrun-color-settings.util.d.ts +6 -1
  189. package/dist/utility/wrun/wrun-color-settings.util.js +32 -7
  190. package/dist/utility/wrun/wrun-dark-pool.util.d.ts +50 -0
  191. package/dist/utility/wrun/wrun-dark-pool.util.js +127 -0
  192. package/dist/utility/wrun/wrun-declared-warmup.util.d.ts +67 -12
  193. package/dist/utility/wrun/wrun-declared-warmup.util.js +165 -13
  194. package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +18 -8
  195. package/dist/utility/wrun/wrun-draft-legend-note.util.js +57 -11
  196. package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +14 -10
  197. package/dist/utility/wrun/wrun-draft-overlay.util.js +26 -14
  198. package/dist/utility/wrun/wrun-earnings-facts.util.js +3 -2
  199. package/dist/utility/wrun/wrun-etf-funds.util.d.ts +2 -0
  200. package/dist/utility/wrun/wrun-etf-funds.util.js +4 -0
  201. package/dist/utility/wrun/wrun-held-lanes.util.js +8 -2
  202. package/dist/utility/wrun/wrun-history-as-of.util.d.ts +77 -0
  203. package/dist/utility/wrun/wrun-history-as-of.util.js +108 -0
  204. package/dist/utility/wrun/wrun-host.service.d.ts +64 -14
  205. package/dist/utility/wrun/wrun-host.service.js +137 -27
  206. package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +3 -3
  207. package/dist/utility/wrun/wrun-hosted-wire-caps.js +12 -2
  208. package/dist/utility/wrun/wrun-inert-legend.util.d.ts +13 -0
  209. package/dist/utility/wrun/wrun-inert-legend.util.js +31 -3
  210. package/dist/utility/wrun/wrun-input-requirements.leaf.d.ts +7 -5
  211. package/dist/utility/wrun/wrun-input-requirements.leaf.js +16 -6
  212. package/dist/utility/wrun/wrun-install-pacer.util.d.ts +26 -0
  213. package/dist/utility/wrun/wrun-install-pacer.util.js +145 -0
  214. package/dist/utility/wrun/wrun-kit-refusal-stages.types.d.ts +22 -0
  215. package/dist/utility/wrun/wrun-kit-refusal-stages.types.js +1 -0
  216. package/dist/utility/wrun/wrun-lane-refusal.leaf.d.ts +12 -5
  217. package/dist/utility/wrun/wrun-lane-refusal.leaf.js +23 -5
  218. package/dist/utility/wrun/wrun-lane-warmup.util.js +22 -4
  219. package/dist/utility/wrun/wrun-leg-close.util.d.ts +6 -5
  220. package/dist/utility/wrun/wrun-leg-close.util.js +11 -9
  221. package/dist/utility/wrun/wrun-leg-fetch.util.d.ts +3 -1
  222. package/dist/utility/wrun/wrun-leg-fetch.util.js +9 -2
  223. package/dist/utility/wrun/wrun-levels-child.util.d.ts +2 -0
  224. package/dist/utility/wrun/wrun-levels-child.util.js +6 -0
  225. package/dist/utility/wrun/wrun-lifecycle.contract.d.ts +4 -0
  226. package/dist/utility/wrun/wrun-live-intake.util.d.ts +15 -6
  227. package/dist/utility/wrun/wrun-live-intake.util.js +167 -47
  228. package/dist/utility/wrun/wrun-live-tick.util.d.ts +52 -8
  229. package/dist/utility/wrun/wrun-live-tick.util.js +648 -97
  230. package/dist/utility/wrun/wrun-market-facts.util.d.ts +16 -2
  231. package/dist/utility/wrun/wrun-market-facts.util.js +32 -3
  232. package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +27 -27
  233. package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +28 -16
  234. package/dist/utility/wrun/wrun-market-size-defaults.util.js +34 -5
  235. package/dist/utility/wrun/wrun-oi-lane.util.d.ts +10 -7
  236. package/dist/utility/wrun/wrun-oi-lane.util.js +16 -10
  237. package/dist/utility/wrun/wrun-option-strike-flow.util.js +1 -1
  238. package/dist/utility/wrun/wrun-option-views.util.d.ts +2 -2
  239. package/dist/utility/wrun/wrun-option-views.util.js +5 -2
  240. package/dist/utility/wrun/wrun-options-flow-underlying.leaf.d.ts +5 -0
  241. package/dist/utility/wrun/wrun-options-flow-underlying.leaf.js +16 -0
  242. package/dist/utility/wrun/wrun-options-stop.util.d.ts +3 -2
  243. package/dist/utility/wrun/wrun-options-stop.util.js +6 -4
  244. package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +75 -11
  245. package/dist/utility/wrun/wrun-overlay-drivers.util.js +176 -43
  246. package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +20 -10
  247. package/dist/utility/wrun/wrun-overlay-park.util.d.ts +84 -0
  248. package/dist/utility/wrun/wrun-overlay-park.util.js +135 -0
  249. package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +37 -4
  250. package/dist/utility/wrun/wrun-overlay-recovery.util.js +26 -14
  251. package/dist/utility/wrun/wrun-overlay-run.util.d.ts +239 -24
  252. package/dist/utility/wrun/wrun-overlay-run.util.js +2204 -405
  253. package/dist/utility/wrun/wrun-pack.util.d.ts +8 -5
  254. package/dist/utility/wrun/wrun-panel-mount.util.d.ts +2 -1
  255. package/dist/utility/wrun/wrun-panel-mount.util.js +20 -14
  256. package/dist/utility/wrun/wrun-panel-style.util.d.ts +4 -2
  257. package/dist/utility/wrun/wrun-panel-style.util.js +3 -2
  258. package/dist/utility/wrun/wrun-pin-spelling.util.d.ts +7 -0
  259. package/dist/utility/wrun/wrun-pin-spelling.util.js +18 -4
  260. package/dist/utility/wrun/wrun-pin-venues.util.d.ts +26 -17
  261. package/dist/utility/wrun/wrun-pin-venues.util.js +43 -36
  262. package/dist/utility/wrun/wrun-pinned-lanes.util.d.ts +58 -0
  263. package/dist/utility/wrun/wrun-pinned-lanes.util.js +72 -0
  264. package/dist/utility/wrun/wrun-prefix-cohort.util.js +2 -1
  265. package/dist/utility/wrun/wrun-prefix-lanes.util.d.ts +22 -9
  266. package/dist/utility/wrun/wrun-prefix-lanes.util.js +145 -26
  267. package/dist/utility/wrun/wrun-prefix-proof.util.d.ts +29 -0
  268. package/dist/utility/wrun/wrun-prefix-proof.util.js +23 -5
  269. package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +9 -1
  270. package/dist/utility/wrun/wrun-refusal-surface.util.js +15 -1
  271. package/dist/utility/wrun/wrun-refusal.util.d.ts +19 -1
  272. package/dist/utility/wrun/wrun-refusal.util.js +103 -16
  273. package/dist/utility/wrun/wrun-registry-errors.util.d.ts +20 -6
  274. package/dist/utility/wrun/wrun-registry-errors.util.js +20 -6
  275. package/dist/utility/wrun/wrun-replay-rows.util.js +6 -10
  276. package/dist/utility/wrun/wrun-run-health.util.d.ts +89 -2
  277. package/dist/utility/wrun/wrun-run-health.util.js +204 -1
  278. package/dist/utility/wrun/wrun-run-interval-session.util.d.ts +2 -2
  279. package/dist/utility/wrun/wrun-run-interval-session.util.js +2 -2
  280. package/dist/utility/wrun/wrun-run-interval.util.d.ts +9 -8
  281. package/dist/utility/wrun/wrun-run-interval.util.js +13 -11
  282. package/dist/utility/wrun/wrun-sandbox-row-source.js +5 -2
  283. package/dist/utility/wrun/wrun-script-inputs.util.d.ts +13 -3
  284. package/dist/utility/wrun/wrun-script-inputs.util.js +51 -13
  285. package/dist/utility/wrun/wrun-session-composition.util.d.ts +81 -0
  286. package/dist/utility/wrun/wrun-session-composition.util.js +169 -0
  287. package/dist/utility/wrun/wrun-setting-words.util.d.ts +10 -7
  288. package/dist/utility/wrun/wrun-setting-words.util.js +25 -7
  289. package/dist/utility/wrun/wrun-source-rows.util.d.ts +94 -28
  290. package/dist/utility/wrun/wrun-source-rows.util.js +738 -93
  291. package/dist/utility/wrun/wrun-stream-clock.util.d.ts +45 -0
  292. package/dist/utility/wrun/wrun-stream-clock.util.js +108 -0
  293. package/dist/utility/wrun/wrun-tape-coins.util.d.ts +116 -0
  294. package/dist/utility/wrun/wrun-tape-coins.util.js +110 -0
  295. package/dist/utility/wrun/wrun-tape-source.util.d.ts +62 -32
  296. package/dist/utility/wrun/wrun-tape-source.util.js +72 -34
  297. package/dist/utility/wrun/wrun-tier-grid.util.d.ts +13 -5
  298. package/dist/utility/wrun/wrun-tier-grid.util.js +23 -13
  299. package/dist/utility/wrun/wrun-tpo-rows.util.js +2 -1
  300. package/dist/utility/wrun/wrun-trades-lane.util.d.ts +73 -0
  301. package/dist/utility/wrun/wrun-trades-lane.util.js +82 -0
  302. package/dist/utility/wrun/wrun-twin-compute-inputs.util.d.ts +5 -0
  303. package/dist/utility/wrun/wrun-twin-compute-inputs.util.js +9 -2
  304. package/dist/utility/wrun/wrun-visibility-table.d.ts +13 -0
  305. package/dist/utility/wrun/wrun-visibility-table.js +9 -0
  306. package/dist/utility/wrun/wrun-volume-profile.util.js +44 -32
  307. package/dist/utils/replay/replay-buffer-math.d.ts +16 -6
  308. package/dist/utils/replay/replay-buffer-math.js +60 -30
  309. package/dist/workers/constants/socket-slots.d.ts +11 -7
  310. package/dist/workers/constants/socket-slots.js +6 -5
  311. package/package.json +11 -11
@@ -0,0 +1,89 @@
1
+ /**
2
+ * App layers: first-party Indicator layers the APP mounts on a chart for one of its own panels, from a kit template
3
+ * the app ships (Kyle 2026-11-06, "auto": the Tape's Dark pool section puts Dark pool prints on the chart it follows,
4
+ * nothing to add). The user never adds, saves or removes one: its panel owns it (the Tape's `darkPoolOnChart`).
5
+ *
6
+ * The run is the draft lane's (services/wrun-registry-loader `mountWrunAppLayer`): the kit's template compiled in this
7
+ * browser, mounted from bytes under `settings.wrunDraftRef`, so every persistence seam skips it exactly like an editor
8
+ * draft (wrun-draft-overlay.util: session-only by decision) and the engine alone carries it. What differs is who owns
9
+ * it, named by `wrunDraftRef.appLayer` (a key of WRUN_APP_LAYERS):
10
+ * - official (kscript-venue-policy `isOfficialWrunOverlay`): the code is the app's own, built from the template the
11
+ * app's pinned kit ships under the official package it names, never a field a user run can set (the draft mount
12
+ * builds its ref from fixed fields, the hydration sanitizer never lets a draft in);
13
+ * - no slot (indicator-source-charge `liveOverlaySlotDelta`) and no limit gate at its add: it is the panel's, not one
14
+ * of the user's indicators;
15
+ * - none of the editor's furniture: no draft word or hover title on its legend row, no publish nudge, no window door,
16
+ * no run-health rows meant for the author, no reinit hand-off to an editor tab (its owner mounts it again).
17
+ *
18
+ * Its legend eye is the owner's switch: overlay-visibility `setOverlayVisibility` tells the bus below what the eye
19
+ * chose, and the owner keeps it (the Tape writes `darkPoolOnChart`). Its legend gear opens the settings box every
20
+ * Indicator has (Kyle 2026-11-07), without the doors that act on a workspace row it never has; the box's saves reach
21
+ * the owner through the settings bus below (the store's session-only save seam), and the owner keeps them and hands
22
+ * them to every mount (the Tape writes `darkPoolChartSettings`).
23
+ *
24
+ * Leaf on purpose (no imports): the venue wall, the slot charge and the legend passes read it without a graph.
25
+ */
26
+ /** The app layers, by id: the official package each one runs as, and the kit template it compiles. */
27
+ export const WRUN_APP_LAYERS = Object.freeze({
28
+ 'dark-pool-prints': Object.freeze({
29
+ id: 'dark-pool-prints',
30
+ package: '@om-core/dark-pool-prints',
31
+ templateId: 'dark-pool-prints',
32
+ }),
33
+ });
34
+ /** Whether a word names an app layer of the table. */
35
+ export function isWrunAppLayerId(value) {
36
+ return typeof value === 'string' && Object.prototype.hasOwnProperty.call(WRUN_APP_LAYERS, value);
37
+ }
38
+ /** The app layer an overlay's settings name (`wrunDraftRef.appLayer`), or undefined for every other overlay. */
39
+ export function wrunAppLayerOf(settings) {
40
+ if (!settings || typeof settings !== 'object')
41
+ return undefined;
42
+ const ref = settings.wrunDraftRef;
43
+ if (!ref || typeof ref !== 'object')
44
+ return undefined;
45
+ const id = ref.appLayer;
46
+ return isWrunAppLayerId(id) ? WRUN_APP_LAYERS[id] : undefined;
47
+ }
48
+ /** Whether an overlay is an app layer (the app's own, owned by a panel), not an editor draft. */
49
+ export function isWrunAppLayerOverlaySettings(settings) {
50
+ return wrunAppLayerOf(settings) !== undefined;
51
+ }
52
+ const visibilityListeners = new Set();
53
+ /** The visibility setter's edge: every listener hears it in turn, and one that throws never stops the next. */
54
+ export function noteWrunAppLayerVisibility(event) {
55
+ for (const listener of [...visibilityListeners]) {
56
+ try {
57
+ listener(event);
58
+ }
59
+ catch (error) {
60
+ console.warn('[wrun-app-layer] visibility listener failed:', error);
61
+ }
62
+ }
63
+ }
64
+ /** Hear every eye an app layer's overlay takes; returns the unsubscribe. */
65
+ export function onWrunAppLayerVisibility(listener) {
66
+ visibilityListeners.add(listener);
67
+ return () => {
68
+ visibilityListeners.delete(listener);
69
+ };
70
+ }
71
+ const settingsListeners = new Set();
72
+ /** The settings save's edge: every listener hears it in turn, and one that throws never stops the next. */
73
+ export function noteWrunAppLayerSettings(event) {
74
+ for (const listener of [...settingsListeners]) {
75
+ try {
76
+ listener(event);
77
+ }
78
+ catch (error) {
79
+ console.warn('[wrun-app-layer] settings listener failed:', error);
80
+ }
81
+ }
82
+ }
83
+ /** Hear every settings save an app layer's overlay takes; returns the unsubscribe. */
84
+ export function onWrunAppLayerSettings(listener) {
85
+ settingsListeners.add(listener);
86
+ return () => {
87
+ settingsListeners.delete(listener);
88
+ };
89
+ }
@@ -73,14 +73,18 @@ export declare function wrunStampCorroborated(module: WrunModuleHandle): boolean
73
73
  /** The first sheet fact that reads or draws beyond the bar at hand, in the kit's own words
74
74
  * (`sheet:<fact>[:<name>]`); undefined when the sheet passes. */
75
75
  export declare function wrunStampSheetRefusal(sheet: unknown): string | undefined;
76
- /** The sheet's raw exact warm-up stamp: its `history_warmup` in the frozen shape (wrun-declared-warmup.util
77
- * `wrunHistoryWarmupOf`), undefined for no key, another kind or a malformed value. The chart admits a
78
- * session on it only once the module and the sheet corroborate it (wrun-overlay-run.util). */
76
+ /** The sheet's raw warm-up stamp: its `history_warmup` in a frozen shape (wrun-declared-warmup.util
77
+ * `wrunHistoryWarmupOf`: the exact stamp, or the converging one in its round A shape), undefined for no key,
78
+ * another kind or a malformed value. The chart admits a session on it only once the module and the sheet
79
+ * corroborate it, and on a converging one only while its flag is on (wrun-overlay-run.util); this read is the
80
+ * same either way. */
79
81
  export declare function wrunWarmupStampOf(sheet: unknown): WrunHistoryWarmup | undefined;
80
- /** The first sheet fact that refuses an exact warm-up stamp: `sheet:history-both` for a sheet that also carries
81
- * `history_independent` (the kit writes one stamp or the other, never both: a sheet holding both was assembled
82
- * by hand), then the per-bar stamp's own sheet facts (`wrunStampSheetRefusal`, the same rules: a warm-up module
83
- * carries kit instances, never a handle, a string slot, a leg or a carried input); undefined when it passes. */
82
+ /** The first sheet fact that refuses a warm-up stamp of either kind: `sheet:history-both` for a sheet that also
83
+ * carries `history_independent` (the kit writes one stamp or the other, never both: a sheet holding both was
84
+ * assembled by hand), then the per-bar stamp's own sheet facts (`wrunStampSheetRefusal`, the same rules: a warm-up
85
+ * module carries kit instances, never a handle, a string slot, a leg or a carried input); undefined when it passes.
86
+ * A converging session's own output rule (no batched drawing or record, canvas child or handle) is its admission's,
87
+ * not a sheet fact: such a sheet still warms its runs, and only its pages run whole. */
84
88
  export declare function wrunWarmupSheetRefusal(sheet: unknown): string | undefined;
85
89
  /** Whether one input reads the chart's own feed, the chart-feed shape (the plan's D3, the kit's `sheet:lanes`
86
90
  * rule): `ohlcv` or `time`, with no key besides source, field and missing (no market, interval, view or depth of
@@ -227,18 +227,22 @@ function carries(source, input) {
227
227
  return !chartFeed;
228
228
  }
229
229
  // ---------------------------------------------------------------------------------------------------
230
- // The exact warm-up stamp (`history_warmup`): read, its sheet fact, the candles-only rule.
230
+ // The warm-up stamp (`history_warmup`, exact or converging): read, its sheet fact, the candles-only rule.
231
231
  // ---------------------------------------------------------------------------------------------------
232
- /** The sheet's raw exact warm-up stamp: its `history_warmup` in the frozen shape (wrun-declared-warmup.util
233
- * `wrunHistoryWarmupOf`), undefined for no key, another kind or a malformed value. The chart admits a
234
- * session on it only once the module and the sheet corroborate it (wrun-overlay-run.util). */
232
+ /** The sheet's raw warm-up stamp: its `history_warmup` in a frozen shape (wrun-declared-warmup.util
233
+ * `wrunHistoryWarmupOf`: the exact stamp, or the converging one in its round A shape), undefined for no key,
234
+ * another kind or a malformed value. The chart admits a session on it only once the module and the sheet
235
+ * corroborate it, and on a converging one only while its flag is on (wrun-overlay-run.util); this read is the
236
+ * same either way. */
235
237
  export function wrunWarmupStampOf(sheet) {
236
238
  return isRecord(sheet) ? wrunHistoryWarmupOf(sheet.history_warmup) : undefined;
237
239
  }
238
- /** The first sheet fact that refuses an exact warm-up stamp: `sheet:history-both` for a sheet that also carries
239
- * `history_independent` (the kit writes one stamp or the other, never both: a sheet holding both was assembled
240
- * by hand), then the per-bar stamp's own sheet facts (`wrunStampSheetRefusal`, the same rules: a warm-up module
241
- * carries kit instances, never a handle, a string slot, a leg or a carried input); undefined when it passes. */
240
+ /** The first sheet fact that refuses a warm-up stamp of either kind: `sheet:history-both` for a sheet that also
241
+ * carries `history_independent` (the kit writes one stamp or the other, never both: a sheet holding both was
242
+ * assembled by hand), then the per-bar stamp's own sheet facts (`wrunStampSheetRefusal`, the same rules: a warm-up
243
+ * module carries kit instances, never a handle, a string slot, a leg or a carried input); undefined when it passes.
244
+ * A converging session's own output rule (no batched drawing or record, canvas child or handle) is its admission's,
245
+ * not a sheet fact: such a sheet still warms its runs, and only its pages run whole. */
242
246
  export function wrunWarmupSheetRefusal(sheet) {
243
247
  if (isRecord(sheet) && sheet.history_independent !== undefined)
244
248
  return 'sheet:history-both';
@@ -0,0 +1,13 @@
1
+ /**
2
+ * The batched kinds (WRUN-BATCHED-MARKS), the one list: each a sheet key, a child id kind (`<parent>::<kind>:<name>`)
3
+ * and the engine plot type, in mount order (flags last, so a flag's chip mounts after the marks it points at).
4
+ * wrun-batched-marks.util builds the children and re-exports this list; the readers that must not load it (the replay
5
+ * cut and the replay blank, the Style seam, the pan-back prefix landing, the hover inspector) read it here, so a kind
6
+ * added to the union reaches every one of them. Imports a type only.
7
+ */
8
+ import type { WrunBatchedMarksKind } from '../../interfaces/wrun-runtime.interface.js';
9
+ /** The four kinds, in mount order. */
10
+ export declare const WRUN_BATCHED_MARKS_KINDS: ReadonlyArray<WrunBatchedMarksKind>;
11
+ export declare function isWrunBatchedMarksKind(kind: unknown): kind is WrunBatchedMarksKind;
12
+ /** True for a batched child of `ownerId` (`<ownerId>::<kind>:<name>`, wrun-batched-marks.util `wrunBatchedChildId`). */
13
+ export declare function isWrunBatchedChildIdOf(id: unknown, ownerId: string): boolean;
@@ -0,0 +1,18 @@
1
+ /** Each kind once, in mount order, checked against the union: a kind the union gains fails typecheck here until it
2
+ * joins the list. */
3
+ const KIND_WORDS = {
4
+ marks: true,
5
+ spans: true,
6
+ rays: true,
7
+ flags: true,
8
+ };
9
+ /** The four kinds, in mount order. */
10
+ export const WRUN_BATCHED_MARKS_KINDS = Object.freeze(Object.keys(KIND_WORDS));
11
+ const KINDS = new Set(WRUN_BATCHED_MARKS_KINDS);
12
+ export function isWrunBatchedMarksKind(kind) {
13
+ return typeof kind === 'string' && KINDS.has(kind);
14
+ }
15
+ /** True for a batched child of `ownerId` (`<ownerId>::<kind>:<name>`, wrun-batched-marks.util `wrunBatchedChildId`). */
16
+ export function isWrunBatchedChildIdOf(id, ownerId) {
17
+ return typeof id === 'string' && WRUN_BATCHED_MARKS_KINDS.some((kind) => id.startsWith(`${ownerId}::${kind}:`));
18
+ }
@@ -1,8 +1,9 @@
1
1
  /**
2
- * Batched marks (WRUN-BATCHED-MARKS-PLAN, the frontend side): a wrun indicator's `marks`, `spans`
3
- * and `rays` sections, each N records a bar riding plain data-only outputs, mounted as ROW-BACKED
4
- * child overlays (`<parent>::marks:<name>`, `::spans:<name>`, `::rays:<name>`), like the grid
5
- * heatmap child (docs/features/kscript/wrun/wrun-batched-marks.md).
2
+ * Batched marks (WRUN-BATCHED-MARKS-PLAN, the frontend side): a wrun indicator's `marks`, `spans`,
3
+ * `rays` and `flags` sections, each N records a bar riding plain data-only outputs, mounted as ROW-BACKED
4
+ * child overlays (`<parent>::marks:<name>`, `::spans:<name>`, `::rays:<name>`, `::flags:<name>`), like the grid
5
+ * heatmap child (docs/features/kscript/wrun/wrun-batched-marks.md). A `flags` section (the dark pool round) holds
6
+ * marks records (`[price, qty, meta]`, the same stride and row copy) the engine draws as chips above the candles.
6
7
  *
7
8
  * - Sections (`readWrunBatchedSections`): read by INDEX, never by name. A section's outputs start at
8
9
  * `first_output` and run `slots * stride` contiguous declared outputs, every one data-only (plot
@@ -15,12 +16,14 @@
15
16
  * engine's unit, exactly once: no other seam converts a time.
16
17
  * - The gate (`wrunBatchedLayoutVerdict`, round-1 finding 17): before anything paints, each section's
17
18
  * declaration is checked against the vocabulary this chart reads (cached per declaration): a stride
18
- * it does not know (marks 3, spans and rays 4 or 5), a key it does not know, or an option value it
19
+ * it does not know (marks and flags 3, spans and rays 4 or 5), a key it does not know, or an option value it
19
20
  * does not know under a known key refuses THAT section's child by name ("Needs a newer chart",
20
21
  * the engine gate's row, wrun-panel-mount.util), never the Indicator; the chart's own `visible`
21
22
  * and the legacy `shape` are admitted. The row copy checks each filled slot's meta too (an empty
22
23
  * slot's is never read): a meta packing a field past the ones this chart decodes refuses the child
23
- * the same way.
24
+ * the same way. The engine is judged at the mount (`wrunBatchedEngineVerdict`): a look the chart reads but
25
+ * an older engine would draw as another (the diamond, the log size law and its px bounds) needs the engine
26
+ * release that draws them.
24
27
  * - Rows (`wrunBatchedRowsOf`): one child row per parent row, `[ts, ...fields]`, width `1 + slots *
25
28
  * stride`, a field that is not finite NaN (a NaN price is an empty slot), a non-ready row all NaN.
26
29
  * An all-NaN row still carries its timestamp: on a live tick it clears the bar's records. A row is
@@ -59,15 +62,15 @@
59
62
  * hover). Where no unit is proven the engine is handed `usd` in place of `units`, never a wrong number.
60
63
  */
61
64
  import type { WrunBatchedMarksKind, WrunBatchedSection, WrunIndicatorMetadata, WrunOutputRow } from '../../interfaces/wrun-runtime.interface.js';
65
+ import type { DisplayOffset } from '../chart/display-offset.leaf.js';
62
66
  import { type WrunCellsCapSummary } from './wrun-cap-notice.util.js';
63
67
  import { type WrunCanvasReadout } from './wrun-canvas-readout.util.js';
64
68
  import { wrunCanvasMergeLive } from './wrun-canvases.util.js';
65
69
  import { type WrunColorTheme } from './wrun-style-words.util.js';
66
- export { decodeWrunMarkMeta, decodeWrunSpanMeta, formatWrunBatchedNumber, isWrunBatchedNumberFormat, WRUN_BATCHED_NUMBER_FORMATS, wrunBatchedReadoutText, wrunMarkQtyInUnits, WRUN_MARK_META_MAX_OFFSET_MS, type WrunBatchedNumberFormat, type WrunMarkMeta, type WrunSpanMeta, } from './wrun-batched-readout.util.js';
70
+ export { decodeWrunFlagMeta, decodeWrunMarkMeta, decodeWrunSpanMeta, formatWrunBatchedNumber, isWrunBatchedNumberFormat, WRUN_BATCHED_NUMBER_FORMATS, wrunBatchedReadoutText, wrunMarkQtyInUnits, WRUN_MARK_META_MAX_OFFSET_MS, type WrunBatchedNumberFormat, type WrunFlagMeta, type WrunMarkMeta, type WrunSpanMeta, } from './wrun-batched-readout.util.js';
67
71
  export type { WrunBatchedHoverRecord } from './wrun-canvas-readout.util.js';
68
- /** The three kinds, in mount order: each a sheet key, a child id kind and the engine plot type. */
69
- export declare const WRUN_BATCHED_MARKS_KINDS: ReadonlyArray<WrunBatchedMarksKind>;
70
- /** The fields of one record, per kind: marks `[price, qty, meta]`, spans `[top, bottom, length,
72
+ export { isWrunBatchedMarksKind, WRUN_BATCHED_MARKS_KINDS } from './wrun-batched-kinds.leaf.js';
73
+ /** The fields of one record, per kind: marks and flags `[price, qty, meta]`, spans `[top, bottom, length,
71
74
  * meta]`, rays `[y1, y2, length, meta]`. */
72
75
  export declare const WRUN_BATCHED_STRIDE: Readonly<Record<WrunBatchedMarksKind, number>>;
73
76
  /** One slot's fields in output order, per kind (the kit's WRUN_BATCHED_FIELDS). */
@@ -90,7 +93,12 @@ export declare const WRUN_BATCHED_MAX_SLOTS = 64;
90
93
  export declare const WRUN_BATCHED_MAX_OUTPUTS = 256;
91
94
  /** A hover template's longest text. */
92
95
  export declare const WRUN_BATCHED_TOOLTIP_MAX_CHARS = 200;
93
- export declare function isWrunBatchedMarksKind(kind: unknown): kind is WrunBatchedMarksKind;
96
+ /** The chip templates a flags section declares at most (its meta's word is 0..3), and the longest one. */
97
+ export declare const WRUN_FLAGS_MAX_WORDS = 4;
98
+ export declare const WRUN_FLAGS_WORD_MAX_CHARS = 32;
99
+ /** A flags section's colours by part (the dark pool round): the chip's fill, its edge (the hairline too) and its
100
+ * text. A list holds at most these three; a part it leaves out takes its default (LOOK_DEFAULTS.flags). */
101
+ export declare const WRUN_FLAGS_COLOR_PARTS: readonly ["fill", "edge", "text"];
94
102
  /** A batched child's id: `<overlayId>::<kind>:<name>`. */
95
103
  export declare function wrunBatchedChildId(overlayId: string, kind: WrunBatchedMarksKind, name: string): string;
96
104
  /** One section as the chart reads it: its geometry and the declaration (the painted sheet's). */
@@ -110,19 +118,20 @@ export interface WrunBatchedSectionSpec {
110
118
  newer?: string;
111
119
  }
112
120
  /** The sheet slice the sections are read from. */
113
- export type WrunBatchedSheet = Pick<WrunIndicatorMetadata, 'id' | 'outputs'> & Partial<Pick<WrunIndicatorMetadata, 'marks' | 'spans' | 'rays'>>;
121
+ export type WrunBatchedSheet = Pick<WrunIndicatorMetadata, 'id' | 'outputs'> & Partial<Pick<WrunIndicatorMetadata, WrunBatchedMarksKind>>;
114
122
  /** The cells one kept bar of a section costs: its child row, the timestamp and every field of every
115
123
  * slot (`1 + slots * stride`), and nothing else (the parent run's columns and a replace's old copy
116
124
  * are not charged; the header says why). Empty slots count: the row is as wide as the section. */
117
125
  export declare function wrunBatchedBarCells(spec: Pick<WrunBatchedSectionSpec, 'slots' | 'stride'>): number;
118
126
  /**
119
- * The sheet's batched sections in mount order (marks, spans, rays; each list in its order),
127
+ * The sheet's batched sections in mount order (marks, spans, rays, flags; each list in its order),
120
128
  * validated against the sheet's outputs BY INDEX: `slots` a whole number from 1 to 64, `stride` one
121
- * the gate admits (marks 3; spans and rays 4, or 5 for the timed layout), `first_output` a whole
129
+ * the gate admits (marks and flags 3; spans and rays 4, or 5 for the timed layout), `first_output` a whole
122
130
  * number, and outputs `first_output` through `first_output + slots * stride - 1` declared,
123
131
  * contiguous, data-only (plot ""), inside the 256 a sheet declares and owned by no other section; a
124
132
  * unique name; declared colours the kind takes (left out, the kit's default colours draw); a tooltip
125
- * of at most 200 characters. Anything else refuses the run by name (thrown). A section whose
133
+ * of at most 200 characters; a flags section's `words` 1 to 4 texts of at most 32 characters and its `icons`
134
+ * at most one a word. Anything else refuses the run by name (thrown). A section whose
126
135
  * declaration names a layout newer than this chart (`wrunBatchedLayoutVerdict`: a stride, a key or an
127
136
  * option value it does not know) refuses nothing here: it is read with its reason (`newer`), its
128
137
  * outputs unread, and its child alone is refused at the mount. A section the Style row switched off
@@ -183,9 +192,10 @@ export interface WrunBatchedChildOverlay {
183
192
  }
184
193
  /**
185
194
  * Why this chart cannot draw a section of `kind` (the gate, round-1 finding 17), null when it can: a
186
- * stride it does not know (marks 3; spans and rays 4, or 5 for the timed layout), a key it does not
195
+ * stride it does not know (marks and flags 3; spans and rays 4, or 5 for the timed layout), a key it does not
187
196
  * know, or an option value it does not know under a known key, nested keys included (`size`, `text`,
188
- * `border`). The section's child is refused by name ("Needs a newer chart") and the Indicator's other
197
+ * `border`) and every entry of a list key (`icons`). The section's child is refused by name ("Needs a newer
198
+ * chart") and the Indicator's other
189
199
  * children run: the next layout change is caught here as the timed one would have been. The reason is
190
200
  * diagnostic text (the notice row's details), never copy. Read once per section (cached).
191
201
  *
@@ -202,7 +212,7 @@ export declare function wrunBatchedLayoutVerdict(kind: WrunBatchedMarksKind, sec
202
212
  * here, the child rows start at field 0), the look of its kind, and `hoverReadout` when a tooltip is
203
213
  * declared (the engine registers its drawn records for hover then). Colours stay as declared. A marks
204
214
  * child also carries the market's dollar unit (`valuePerUnit`) when the build hands a proven one; spans
205
- * and rays never do (their records hold no quantity). */
215
+ * and rays never do (their records hold no quantity), nor flags (a chip's templates print no `units`). */
206
216
  export declare function wrunBatchedSettingsOf(spec: WrunBatchedSectionSpec, context?: Pick<WrunBatchedChildrenOptions, 'valuePerUnit'>): Record<string, unknown>;
207
217
  /** What a build of the batched children takes beside the sheet and the rows. */
208
218
  export interface WrunBatchedChildrenOptions {
@@ -233,6 +243,15 @@ export declare function wrunBatchedMarksChildren(sheet: WrunBatchedSheet, output
233
243
  * number decoded (a packed theme token through its word, the existing packed-colour decode for the
234
244
  * rest); undefined when it is neither. */
235
245
  export declare function resolveWrunBatchedColor(value: unknown, theme: WrunColorTheme): string | undefined;
246
+ /**
247
+ * Why the chart's engine cannot draw a batched child its kind's renderer draws, null when it can: the mount asks it
248
+ * once the engine gate passed the kind (the pack settled and registered, `hasPlotRenderer` the engine's own answer).
249
+ * A marks child whose look needs the dark pool round's engine (look 4, the `log` law, a `min_px` or `max_px` bound)
250
+ * on an engine without that release's `flags` renderer is refused by name ("Needs a newer chart"), as an unknown
251
+ * look is by the layout gate, never drawn as another look. A flags child is never judged here: the gate already
252
+ * asked the engine for its kind. The reason is diagnostic text, never copy.
253
+ */
254
+ export declare function wrunBatchedEngineVerdict(child: Pick<WrunBatchedChildOverlay, 'kind' | 'settings'>, hasPlotRenderer: (type: string) => boolean): string | null;
236
255
  export interface WrunBatchedChildConfig {
237
256
  id: string;
238
257
  plot: WrunBatchedMarksKind;
@@ -248,14 +267,14 @@ export interface WrunBatchedChildConfig {
248
267
  * kind), the settings with every colour resolved against the chart's theme, the live merge. A child
249
268
  * with a readout registers it for the hover inspector as the child carries it (its template's text
250
269
  * as `text`); one without forgets any it had. A timed readout first takes the display offset its
251
- * `{{start}}` and `{{end}}` print in (`timeOffsetMs`: the chart's display timezone, none on daily and
252
- * longer bars), stamped on the child's own readout so every registration of it keeps it; a timezone
253
- * switch retranslates, which stamps it again.
270
+ * `{{start}}` and `{{end}}` print in (`timeOffsetMs`: the chart's display timezone, a fixed shift or the
271
+ * shift at each instant, none on daily and longer bars), stamped on the child's own readout so every
272
+ * registration of it keeps it; a timezone switch retranslates, which stamps it again.
254
273
  */
255
274
  export declare function wrunBatchedChildConfig(child: WrunBatchedChildOverlay, ctx: {
256
275
  overlayId: string;
257
276
  theme: WrunColorTheme;
258
- timeOffsetMs?: number;
277
+ timeOffsetMs?: DisplayOffset;
259
278
  }): WrunBatchedChildConfig;
260
279
  /** A batched child's geometry read off its settings (the mount's budget and the window landing). */
261
280
  export declare function wrunBatchedGeometryOf(settings: Record<string, unknown>): {