@orangecharts/wrun-chart-host 0.11.1 → 0.15.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 (319) hide show
  1. package/README.md +1 -0
  2. package/dist/constants/feature-flags.constants.d.ts +4 -4
  3. package/dist/constants/feature-flags.constants.js +38 -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 +69 -3
  13. package/dist/host-env.js +21 -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 +52 -12
  18. package/dist/indicators/controls/tpo-session.util.js +113 -16
  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 +141 -20
  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 +5 -5
  35. package/dist/market-data/venues/opra.js +3 -3
  36. package/dist/market-data/venues/stocks.contract.copy.json +6 -5
  37. package/dist/market-data/venues/stocks.d.ts +5 -5
  38. package/dist/market-data/venues/stocks.js +21 -18
  39. package/dist/settings-templates/frvp-fields.d.ts +12 -1
  40. package/dist/settings-templates/frvp-fields.js +15 -4
  41. package/dist/settings-templates/index.js +12 -5
  42. package/dist/settings-templates/indicator-fields.js +43 -2
  43. package/dist/settings-templates/tool-rules.d.ts +17 -8
  44. package/dist/settings-templates/tool-rules.js +15 -8
  45. package/dist/settings-templates/tool-tables.generated.js +4 -2
  46. package/dist/utility/auth/server-clock.util.d.ts +3 -1
  47. package/dist/utility/auth/server-clock.util.js +3 -1
  48. package/dist/utility/chart/book-live-bucket.util.js +2 -2
  49. package/dist/utility/chart/cache-alignment.util.d.ts +38 -7
  50. package/dist/utility/chart/cache-alignment.util.js +50 -13
  51. package/dist/utility/chart/chart-data-fetch-generation.util.d.ts +2 -0
  52. package/dist/utility/chart/chart-data-fetch-generation.util.js +16 -0
  53. package/dist/utility/chart/cme-session-bucket.util.d.ts +18 -75
  54. package/dist/utility/chart/cme-session-bucket.util.js +25 -332
  55. package/dist/utility/chart/continuous-contracts.util.js +6 -5
  56. package/dist/utility/chart/display-offset.leaf.d.ts +24 -0
  57. package/dist/utility/chart/display-offset.leaf.js +41 -0
  58. package/dist/utility/chart/effective-chart-session.util.d.ts +2 -1
  59. package/dist/utility/chart/effective-chart-session.util.js +13 -5
  60. package/dist/utility/chart/feed-interval.util.d.ts +6 -20
  61. package/dist/utility/chart/feed-interval.util.js +13 -22
  62. package/dist/utility/chart/fetch-dedupe-policy.util.d.ts +27 -7
  63. package/dist/utility/chart/fetch-dedupe-policy.util.js +86 -11
  64. package/dist/utility/chart/footprint-band.util.d.ts +21 -5
  65. package/dist/utility/chart/footprint-band.util.js +53 -14
  66. package/dist/utility/chart/host-bar-placement.util.d.ts +7 -4
  67. package/dist/utility/chart/host-bar-placement.util.js +8 -2
  68. package/dist/utility/chart/indicator-inflight-registry.util.d.ts +32 -0
  69. package/dist/utility/chart/indicator-inflight-registry.util.js +52 -0
  70. package/dist/utility/chart/indicator-run-interval.util.d.ts +10 -4
  71. package/dist/utility/chart/indicator-run-interval.util.js +21 -12
  72. package/dist/utility/chart/interval-registry.util.d.ts +1 -1
  73. package/dist/utility/chart/interval-registry.util.js +1 -1
  74. package/dist/utility/chart/kscript-legend-entries.util.d.ts +12 -0
  75. package/dist/utility/chart/kscript-legend-entries.util.js +16 -0
  76. package/dist/utility/chart/kscript-run-interval-projection.util.d.ts +1 -1
  77. package/dist/utility/chart/kscript-run-interval-projection.util.js +4 -2
  78. package/dist/utility/chart/kscript-venue-policy.util.d.ts +53 -62
  79. package/dist/utility/chart/kscript-venue-policy.util.js +85 -94
  80. package/dist/utility/chart/live-bucket.util.d.ts +39 -17
  81. package/dist/utility/chart/live-bucket.util.js +103 -57
  82. package/dist/utility/chart/local-kscript-source-revalidation.util.d.ts +58 -20
  83. package/dist/utility/chart/local-kscript-source-revalidation.util.js +98 -23
  84. package/dist/utility/chart/local-kscript-warmup-depth.util.d.ts +35 -11
  85. package/dist/utility/chart/local-kscript-warmup-depth.util.js +24 -3
  86. package/dist/utility/chart/market-session-schedule.util.d.ts +8 -0
  87. package/dist/utility/chart/market-session-schedule.util.js +39 -1
  88. package/dist/utility/chart/market-session.util.d.ts +136 -0
  89. package/dist/utility/chart/market-session.util.js +341 -0
  90. package/dist/utility/chart/om-panel.util.d.ts +5 -3
  91. package/dist/utility/chart/om-panel.util.js +42 -7
  92. package/dist/utility/chart/om-target.util.d.ts +14 -1
  93. package/dist/utility/chart/om-target.util.js +22 -5
  94. package/dist/utility/chart/opra-read-access.leaf.d.ts +16 -1
  95. package/dist/utility/chart/opra-read-access.leaf.js +22 -0
  96. package/dist/utility/chart/profile-row-height.util.d.ts +49 -16
  97. package/dist/utility/chart/profile-row-height.util.js +74 -37
  98. package/dist/utility/chart/rth-session.util.d.ts +55 -20
  99. package/dist/utility/chart/rth-session.util.js +94 -46
  100. package/dist/utility/chart/session-lattice.util.d.ts +150 -0
  101. package/dist/utility/chart/session-lattice.util.js +488 -0
  102. package/dist/utility/chart/trading-day.util.d.ts +40 -2
  103. package/dist/utility/chart/trading-day.util.js +84 -7
  104. package/dist/utility/chart/us-equities-session.util.d.ts +32 -11
  105. package/dist/utility/chart/us-equities-session.util.js +44 -15
  106. package/dist/utility/chart/window-geometry.leaf.d.ts +28 -7
  107. package/dist/utility/chart/window-geometry.leaf.js +57 -8
  108. package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +21 -14
  109. package/dist/utility/chart/wrun-bar-session-facts.util.js +32 -38
  110. package/dist/utility/chart/wrun-run-result.util.d.ts +38 -13
  111. package/dist/utility/chart/wrun-run-result.util.js +97 -27
  112. package/dist/utility/common/time.util.js +5 -4
  113. package/dist/utility/market-events/earnings-scope.util.d.ts +10 -5
  114. package/dist/utility/market-events/earnings-scope.util.js +17 -9
  115. package/dist/utility/market-events/market-events.util.d.ts +14 -7
  116. package/dist/utility/market-events/market-events.util.js +30 -17
  117. package/dist/utility/number-format.util.d.ts +14 -21
  118. package/dist/utility/number-format.util.js +38 -24
  119. package/dist/utility/options/option-venue-disclosure.util.d.ts +40 -6
  120. package/dist/utility/options/option-venue-disclosure.util.js +71 -11
  121. package/dist/utility/options/option-venue.util.d.ts +1 -1
  122. package/dist/utility/options/option-venue.util.js +1 -1
  123. package/dist/utility/pool-symbol.leaf.d.ts +7 -0
  124. package/dist/utility/pool-symbol.leaf.js +50 -5
  125. package/dist/utility/stocks/stock-display.util.d.ts +15 -0
  126. package/dist/utility/stocks/stock-display.util.js +37 -0
  127. package/dist/utility/symbol-selection/contract-expiry.util.js +5 -4
  128. package/dist/utility/v2/gate-plane.util.d.ts +6 -0
  129. package/dist/utility/v2/gate-plane.util.js +11 -1
  130. package/dist/utility/v2/gate-session-latch.util.d.ts +1 -1
  131. package/dist/utility/v2/gate-session-latch.util.js +3 -3
  132. package/dist/utility/v2/governed-tier.leaf.d.ts +17 -16
  133. package/dist/utility/v2/governed-tier.leaf.js +17 -16
  134. package/dist/utility/v2/stocks-governed.util.d.ts +5 -0
  135. package/dist/utility/v2/stocks-governed.util.js +14 -0
  136. package/dist/utility/v2/v2-enums.leaf.d.ts +13 -0
  137. package/dist/utility/v2/v2-enums.leaf.js +458 -0
  138. package/dist/utility/wrun/derived-roots.leaf.d.ts +21 -1
  139. package/dist/utility/wrun/derived-roots.leaf.js +27 -1
  140. package/dist/utility/wrun/derived-roots.util.d.ts +44 -32
  141. package/dist/utility/wrun/derived-roots.util.js +97 -56
  142. package/dist/utility/wrun/run-schedule/wrun-late-reads.util.d.ts +4 -3
  143. package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +4 -3
  144. package/dist/utility/wrun/sources/lanes/option_daily.d.ts +2 -1
  145. package/dist/utility/wrun/sources/lanes/option_daily.js +2 -1
  146. package/dist/utility/wrun/sources/lanes/options_flow.d.ts +3 -0
  147. package/dist/utility/wrun/sources/lanes/options_flow.js +23 -5
  148. package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +3 -4
  149. package/dist/utility/wrun/sources/row-lane-registry.js +9 -4
  150. package/dist/utility/wrun/sources/row-lanes/dark_pool.d.ts +19 -0
  151. package/dist/utility/wrun/sources/row-lanes/dark_pool.js +104 -0
  152. package/dist/utility/wrun/sources/row-lanes/index.js +2 -0
  153. package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.d.ts +20 -0
  154. package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.js +103 -0
  155. package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +19 -2
  156. package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +15 -13
  157. package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +49 -23
  158. package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +14 -9
  159. package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +75 -27
  160. package/dist/utility/wrun/sources/wrun-row-lanes.util.js +139 -82
  161. package/dist/utility/wrun/wrun-app-layer.leaf.d.ts +78 -0
  162. package/dist/utility/wrun/wrun-app-layer.leaf.js +89 -0
  163. package/dist/utility/wrun/wrun-bar-count.util.d.ts +11 -7
  164. package/dist/utility/wrun/wrun-bar-count.util.js +12 -8
  165. package/dist/utility/wrun/wrun-batched-kinds.leaf.d.ts +13 -0
  166. package/dist/utility/wrun/wrun-batched-kinds.leaf.js +18 -0
  167. package/dist/utility/wrun/wrun-batched-marks.util.d.ts +46 -23
  168. package/dist/utility/wrun/wrun-batched-marks.util.js +260 -62
  169. package/dist/utility/wrun/wrun-batched-readout.util.d.ts +26 -19
  170. package/dist/utility/wrun/wrun-batched-readout.util.js +81 -27
  171. package/dist/utility/wrun/wrun-book-bands.leaf.d.ts +8 -0
  172. package/dist/utility/wrun/wrun-book-bands.leaf.js +7 -0
  173. package/dist/utility/wrun/wrun-candle-equal.leaf.d.ts +19 -0
  174. package/dist/utility/wrun/wrun-candle-equal.leaf.js +40 -0
  175. package/dist/utility/wrun/wrun-canvas-readout.util.d.ts +4 -2
  176. package/dist/utility/wrun/wrun-canvases.util.d.ts +24 -7
  177. package/dist/utility/wrun/wrun-canvases.util.js +99 -30
  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-hover.util.d.ts +8 -2
  209. package/dist/utility/wrun/wrun-hover.util.js +24 -13
  210. package/dist/utility/wrun/wrun-inert-legend.util.d.ts +13 -0
  211. package/dist/utility/wrun/wrun-inert-legend.util.js +31 -3
  212. package/dist/utility/wrun/wrun-input-requirements.leaf.d.ts +7 -5
  213. package/dist/utility/wrun/wrun-input-requirements.leaf.js +16 -6
  214. package/dist/utility/wrun/wrun-install-pacer.util.d.ts +26 -0
  215. package/dist/utility/wrun/wrun-install-pacer.util.js +145 -0
  216. package/dist/utility/wrun/wrun-kit-refusal-stages.types.d.ts +22 -0
  217. package/dist/utility/wrun/wrun-kit-refusal-stages.types.js +1 -0
  218. package/dist/utility/wrun/wrun-lane-refusal.leaf.d.ts +12 -5
  219. package/dist/utility/wrun/wrun-lane-refusal.leaf.js +23 -5
  220. package/dist/utility/wrun/wrun-lane-warmup.util.js +22 -4
  221. package/dist/utility/wrun/wrun-leg-close.util.d.ts +6 -5
  222. package/dist/utility/wrun/wrun-leg-close.util.js +11 -9
  223. package/dist/utility/wrun/wrun-leg-fetch.util.d.ts +3 -1
  224. package/dist/utility/wrun/wrun-leg-fetch.util.js +9 -2
  225. package/dist/utility/wrun/wrun-levels-child.util.d.ts +2 -0
  226. package/dist/utility/wrun/wrun-levels-child.util.js +6 -0
  227. package/dist/utility/wrun/wrun-lifecycle.contract.d.ts +4 -0
  228. package/dist/utility/wrun/wrun-live-intake.util.d.ts +15 -6
  229. package/dist/utility/wrun/wrun-live-intake.util.js +167 -47
  230. package/dist/utility/wrun/wrun-live-tick.util.d.ts +52 -8
  231. package/dist/utility/wrun/wrun-live-tick.util.js +655 -97
  232. package/dist/utility/wrun/wrun-market-facts.util.d.ts +16 -2
  233. package/dist/utility/wrun/wrun-market-facts.util.js +32 -3
  234. package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +27 -27
  235. package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +28 -16
  236. package/dist/utility/wrun/wrun-market-size-defaults.util.js +34 -5
  237. package/dist/utility/wrun/wrun-oi-lane.util.d.ts +10 -7
  238. package/dist/utility/wrun/wrun-oi-lane.util.js +16 -10
  239. package/dist/utility/wrun/wrun-option-strike-flow.util.js +1 -1
  240. package/dist/utility/wrun/wrun-option-views.util.d.ts +2 -2
  241. package/dist/utility/wrun/wrun-option-views.util.js +5 -2
  242. package/dist/utility/wrun/wrun-options-flow-underlying.leaf.d.ts +5 -0
  243. package/dist/utility/wrun/wrun-options-flow-underlying.leaf.js +16 -0
  244. package/dist/utility/wrun/wrun-options-stop.util.d.ts +3 -2
  245. package/dist/utility/wrun/wrun-options-stop.util.js +6 -4
  246. package/dist/utility/wrun/wrun-output-words.util.d.ts +14 -0
  247. package/dist/utility/wrun/wrun-output-words.util.js +51 -0
  248. package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +116 -11
  249. package/dist/utility/wrun/wrun-overlay-drivers.util.js +208 -43
  250. package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +20 -10
  251. package/dist/utility/wrun/wrun-overlay-park.util.d.ts +84 -0
  252. package/dist/utility/wrun/wrun-overlay-park.util.js +135 -0
  253. package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +37 -4
  254. package/dist/utility/wrun/wrun-overlay-recovery.util.js +26 -14
  255. package/dist/utility/wrun/wrun-overlay-result.util.d.ts +6 -1
  256. package/dist/utility/wrun/wrun-overlay-result.util.js +2 -0
  257. package/dist/utility/wrun/wrun-overlay-run.util.d.ts +247 -26
  258. package/dist/utility/wrun/wrun-overlay-run.util.js +2234 -408
  259. package/dist/utility/wrun/wrun-pack.util.d.ts +8 -5
  260. package/dist/utility/wrun/wrun-panel-mount.util.d.ts +11 -2
  261. package/dist/utility/wrun/wrun-panel-mount.util.js +122 -19
  262. package/dist/utility/wrun/wrun-panel-style.util.d.ts +4 -2
  263. package/dist/utility/wrun/wrun-panel-style.util.js +3 -2
  264. package/dist/utility/wrun/wrun-pin-spelling.util.d.ts +7 -0
  265. package/dist/utility/wrun/wrun-pin-spelling.util.js +18 -4
  266. package/dist/utility/wrun/wrun-pin-venues.util.d.ts +26 -17
  267. package/dist/utility/wrun/wrun-pin-venues.util.js +43 -36
  268. package/dist/utility/wrun/wrun-pinned-lanes.util.d.ts +58 -0
  269. package/dist/utility/wrun/wrun-pinned-lanes.util.js +72 -0
  270. package/dist/utility/wrun/wrun-prefix-cohort.util.js +2 -1
  271. package/dist/utility/wrun/wrun-prefix-lanes.util.d.ts +22 -9
  272. package/dist/utility/wrun/wrun-prefix-lanes.util.js +145 -26
  273. package/dist/utility/wrun/wrun-prefix-proof.util.d.ts +29 -0
  274. package/dist/utility/wrun/wrun-prefix-proof.util.js +23 -5
  275. package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +9 -1
  276. package/dist/utility/wrun/wrun-refusal-surface.util.js +15 -1
  277. package/dist/utility/wrun/wrun-refusal.util.d.ts +19 -1
  278. package/dist/utility/wrun/wrun-refusal.util.js +103 -16
  279. package/dist/utility/wrun/wrun-registry-errors.util.d.ts +20 -6
  280. package/dist/utility/wrun/wrun-registry-errors.util.js +20 -6
  281. package/dist/utility/wrun/wrun-replay-rows.util.js +6 -10
  282. package/dist/utility/wrun/wrun-run-health.util.d.ts +95 -5
  283. package/dist/utility/wrun/wrun-run-health.util.js +209 -3
  284. package/dist/utility/wrun/wrun-run-interval-session.util.d.ts +2 -2
  285. package/dist/utility/wrun/wrun-run-interval-session.util.js +2 -2
  286. package/dist/utility/wrun/wrun-run-interval.util.d.ts +9 -8
  287. package/dist/utility/wrun/wrun-run-interval.util.js +13 -11
  288. package/dist/utility/wrun/wrun-sandbox-row-source.js +5 -2
  289. package/dist/utility/wrun/wrun-script-inputs.util.d.ts +38 -11
  290. package/dist/utility/wrun/wrun-script-inputs.util.js +194 -56
  291. package/dist/utility/wrun/wrun-session-composition.util.d.ts +81 -0
  292. package/dist/utility/wrun/wrun-session-composition.util.js +169 -0
  293. package/dist/utility/wrun/wrun-setting-words.util.d.ts +10 -7
  294. package/dist/utility/wrun/wrun-setting-words.util.js +25 -7
  295. package/dist/utility/wrun/wrun-source-rows.util.d.ts +94 -28
  296. package/dist/utility/wrun/wrun-source-rows.util.js +738 -93
  297. package/dist/utility/wrun/wrun-stream-clock.util.d.ts +45 -0
  298. package/dist/utility/wrun/wrun-stream-clock.util.js +108 -0
  299. package/dist/utility/wrun/wrun-style-names.util.d.ts +23 -0
  300. package/dist/utility/wrun/wrun-style-names.util.js +74 -0
  301. package/dist/utility/wrun/wrun-tape-coins.util.d.ts +116 -0
  302. package/dist/utility/wrun/wrun-tape-coins.util.js +110 -0
  303. package/dist/utility/wrun/wrun-tape-source.util.d.ts +62 -32
  304. package/dist/utility/wrun/wrun-tape-source.util.js +72 -34
  305. package/dist/utility/wrun/wrun-tier-grid.util.d.ts +13 -5
  306. package/dist/utility/wrun/wrun-tier-grid.util.js +23 -13
  307. package/dist/utility/wrun/wrun-tpo-rows.util.js +2 -1
  308. package/dist/utility/wrun/wrun-trades-lane.util.d.ts +73 -0
  309. package/dist/utility/wrun/wrun-trades-lane.util.js +82 -0
  310. package/dist/utility/wrun/wrun-twin-compute-inputs.util.d.ts +5 -0
  311. package/dist/utility/wrun/wrun-twin-compute-inputs.util.js +9 -2
  312. package/dist/utility/wrun/wrun-visibility-table.d.ts +13 -0
  313. package/dist/utility/wrun/wrun-visibility-table.js +9 -0
  314. package/dist/utility/wrun/wrun-volume-profile.util.js +7 -3
  315. package/dist/utils/replay/replay-buffer-math.d.ts +16 -6
  316. package/dist/utils/replay/replay-buffer-math.js +60 -30
  317. package/dist/workers/constants/socket-slots.d.ts +11 -7
  318. package/dist/workers/constants/socket-slots.js +6 -5
  319. package/package.json +5 -5
@@ -64,24 +64,27 @@
64
64
  import type { WrunDegradedLane, WrunRunReason, WrunRunWindow } from './wrun-lifecycle.contract.js';
65
65
  import { type WrunIntegrationRoute } from './wrun-integration-route.util.js';
66
66
  import { type OverlayRunInterval, type RunBarCalendar } from '../chart/indicator-run-interval.util.js';
67
- import { type WrunPrefixFeedClause } from './run-schedule/wrun-prefix-feeds.util.js';
67
+ import { type WrunPrefixLanePages } from './wrun-prefix-lanes.util.js';
68
+ import { type WrunPrefixFeedClause, type WrunPrefixFeedPlan } from './run-schedule/wrun-prefix-feeds.util.js';
68
69
  import { type WrunCandleGroup, type WrunFillPair, type WrunRunResult } from '../chart/wrun-run-result.util.js';
69
70
  import { type WrunRowLaneBudgetCut } from './sources/wrun-row-lanes.util.js';
70
71
  import { type WrunEarningsMarket } from './wrun-earnings-facts.util.js';
71
- import { type WrunRunHealth } from './wrun-run-health.util.js';
72
+ import { type WrunNothingDrawnRun, type WrunRunHealth } from './wrun-run-health.util.js';
73
+ import { type WrunPinnedLaneId } from './wrun-pinned-lanes.util.js';
72
74
  import { type WrunChartNames } from './wrun-chart-context.util.js';
73
75
  import { type WrunFactsMarket } from './wrun-chart-market-facts.util.js';
74
76
  import { type WrunStrategyBarInput } from './wrun-host.service.js';
75
77
  import { type WrunRefusalAttemptToken, type WrunRefusalContext, type WrunRefusalSeed } from './wrun-refusal.util.js';
76
78
  import { type WrunHostFillContext } from './wrun-script-inputs.util.js';
77
- import { type WrunDownloadSummary } from './wrun-download-meter.util.js';
79
+ import { type WrunDownloadMeterPort, type WrunDownloadSummary } from './wrun-download-meter.util.js';
78
80
  import type { WrunLatestSnapshot } from './wrun-latest-snapshot.js';
79
- import { wrunChartMarketIdentity, type WrunOverlayLiveContext, type WrunWarmupMiss } from './wrun-overlay-drivers.util.js';
81
+ import { wrunChartMarketIdentity, type WrunOverlayLiveContext, type WrunPictureIdentity, type WrunWarmupMiss } from './wrun-overlay-drivers.util.js';
80
82
  import { type KScriptProvenanceSettingsLike } from '../chart/kscript-venue-policy.util.js';
81
83
  import type { WrunLegCandleClose } from '@orangecharts/indicator-kit/host';
82
84
  import { type WrunPassRowSource } from './wrun-row-source-factory.js';
83
85
  import { type WrunPinnedLeg, type WrunPinnedWire } from './wrun-source-rows.util.js';
84
86
  import { type WrunOptionsChainRefusal } from './wrun-options-chain.util.js';
87
+ import { type WrunParkedLiveSession } from './wrun-overlay-park.util.js';
85
88
  import { type WrunRunIntervalProjection } from './wrun-run-interval-session.util.js';
86
89
  import { type WrunIndicatorMetadata, type WrunModuleHandle, type WrunOutputRow } from '../../interfaces/wrun-runtime.interface.js';
87
90
  import type { RuntimeDiagnostic } from '../../interfaces/kscript-diagnostics.interface.js';
@@ -186,6 +189,10 @@ export interface WrunOverlayRunTarget {
186
189
  * row's saved pin, and the stand-in is written only for the version the
187
190
  * row names. Absent for a lane with no registry version. */
188
191
  version?: string;
192
+ /** How long this rebuild episode already held for the pan (`WrunRerunOptions.gestureHeldMs`, the pacing clock):
193
+ * the install hold (`holdWrunInstallForGesture`) waits at most HEAVY_APPLY_GESTURE_CEILING_MS less this, and a
194
+ * prefix page that falls back to a whole run hands it on. Absent: the full ceiling. */
195
+ gestureHeldMs?: number;
189
196
  }
190
197
  /** Recompute one mounted WRUN overlay over the chart's CURRENT loaded rows
191
198
  * and integrate the result through the shared adapter path. */
@@ -267,6 +274,15 @@ export declare function surfaceWrunRunFailureOnLegend(chartIndex: number, indica
267
274
  /** Whether the failure still belongs to the overlay's current mount (default: its chart stands). */
268
275
  isCurrent?: () => boolean;
269
276
  }): Promise<void>;
277
+ /**
278
+ * Whether the sheet a run reads (its settings painted, its lane demand applied) pins a CME market: a secondary input's
279
+ * pinned market (an ohlcv or leg-stream pin, a trades leg, a coin leg's venue) on the CME plane (`wrunPinReadsCme`), or
280
+ * a spelling the pin step respells onto one (`wrunPinSpellingReadsCme`: a TradingView CME prefix, our key in the
281
+ * symbol half, our escape). Read at the run head before the pin step and the host load (no catalog, no shared host):
282
+ * the head's best reading, for its flag wait and a prefix page's authorisation; the full run's lanes capture the
283
+ * authorisation again from the resolved legs.
284
+ */
285
+ export declare function wrunSheetPinsCme(metadata: Pick<WrunIndicatorMetadata, 'inputs' | 'inputSources'>, chartExchange?: string): boolean;
270
286
  export declare function isWrunCryptoVenueExchange(exchange: string | null | undefined): boolean;
271
287
  /** The chart's main-series metadata fields a refusal context reads. */
272
288
  type WrunRefusalChartMetadata = {
@@ -416,7 +432,21 @@ export declare function wrunRuntimeTrapDiagnostic(error: unknown, context?: {
416
432
  * Advisory: a store that is gone has nothing to tell. */
417
433
  export declare function publishWrunRunHealth(chartIndex: number, indicatorId: string, diagnostics: RuntimeDiagnostic[], options?: {
418
434
  onlyOnVerdictChange?: boolean;
435
+ isCurrent?: () => boolean;
419
436
  }): Promise<boolean>;
437
+ /**
438
+ * The viewer's nothing-drawn note (wrun-run-health.util, FB27) after a full run, a reseed, an adoption or a landed
439
+ * page: raised when a published Indicator's settled run drew nothing over its whole loaded window (with the cause when
440
+ * the run knows it), cleared by one that drew and on a draft (whose own rows speak to its author); a run that is not
441
+ * settled (a partial window, a first slice still filling, a lane unanswered, a source with a note of its own) leaves
442
+ * it as it stands. A run that asks the warm-up decider (`warmup`) holds its raise until the decider says no older page
443
+ * is coming: a page it buys reruns the overlay, and that run decides, so no load in flight is ever named empty. The
444
+ * refusal context is built only for a note. Advisory like the health rows.
445
+ */
446
+ export declare function publishWrunNothingDrawn(chartIndex: number, indicatorId: string, run: Omit<WrunNothingDrawnRun, 'legs'>, refusalContext: () => WrunRefusalContext | Promise<WrunRefusalContext>, options?: {
447
+ isCurrent?: () => boolean;
448
+ warmup?: WrunWarmupPageVerdict;
449
+ }): Promise<void>;
420
450
  /** The unserved-leg rows of a run (the venue soft refusals, `WRUN_LEG_UNSERVED`): their own
421
451
  * owned set beside the health rows, replaced by every full run, cleared by a run that served
422
452
  * every leg. Advisory like the health rows. */
@@ -429,6 +459,7 @@ export declare function publishWrunUnservedLegDiagnostics(chartIndex: number, in
429
459
  */
430
460
  export declare function publishWrunSessionCanvasNotices(session: WrunOverlayLiveContext, runResult: WrunRunResult, options?: {
431
461
  tick?: boolean;
462
+ isCurrent?: () => boolean;
432
463
  }): Promise<void>;
433
464
  /** Replace the rows of one owned code set on the overlay's diagnostics (every other row is
434
465
  * kept), the shared body of the publishers above and of the canvas cost rows
@@ -437,10 +468,12 @@ export declare function publishWrunOwnedDiagnostics(chartIndex: number, indicato
437
468
  onlyOnVerdictChange?: boolean;
438
469
  /** Skip the write when the published owned rows already say the same (the caller's rule). */
439
470
  unlessSame?: (published: RuntimeDiagnostic[], next: RuntimeDiagnostic[]) => boolean;
471
+ /** The caller still owns the overlay (its run, its session): read right before the write. */
472
+ isCurrent?: () => boolean;
440
473
  }): Promise<boolean>;
441
474
  /** Drop the run-failure rows this seam owns (only those: a trap, the output contract, the
442
475
  * no-growth rule, an unlinkable import) once a run of the same overlay succeeds. */
443
- export declare function clearWrunRuntimeTrapDiagnostic(chartIndex: number, indicatorId: string): Promise<void>;
476
+ export declare function clearWrunRuntimeTrapDiagnostic(chartIndex: number, indicatorId: string, isCurrent?: () => boolean): Promise<void>;
444
477
  /** One pin a run respelled: the input, its halves as the sheet the resolver read wrote them, and the halves the run
445
478
  * reads. */
446
479
  export interface WrunRespelledPin {
@@ -511,6 +544,68 @@ export interface WrunRowSourceCensusEntry {
511
544
  export declare function wrunRowSourceMemoryCensus(): {
512
545
  overlays: WrunRowSourceCensusEntry[];
513
546
  };
547
+ /** The warm-up ask's verdict for one result and a note held on it, in either order: `whenNoPage` runs its raise now
548
+ * when the ask already said no page is coming, else once `noPage` says so; a page the ask buys never says it, and the
549
+ * rerun its landing starts decides again. */
550
+ export interface WrunWarmupPageVerdict {
551
+ noPage(): void;
552
+ whenNoPage(raise: () => void): void;
553
+ }
554
+ export declare function wrunWarmupPageVerdict(): WrunWarmupPageVerdict;
555
+ /**
556
+ * The run reasons whose result waits for the gesture's idle edge before its commit checks and its install
557
+ * (WRUN-PANBACK A1): the chart's own reruns (a live rebuild, a pan page, a range refresh, a heal, a source-recovery
558
+ * rung, a budget lift). The deleted kScript engine held such a result until the idle edge (its worker's
559
+ * `releaseHeldEngine`, at most KSCRIPT_GESTURE_HOLD_MAX_MS); a wrun install landed mid-drag instead (a 294 ms apply
560
+ * inside a 190 s pan, 2026-11-01 dump). A run a person asked for (a settings save, a switch, a theme, a Resume, a
561
+ * Retry), the mount's first run and the replay lane's never wait.
562
+ */
563
+ export declare const WRUN_GESTURE_HELD_RUN_REASONS: ReadonlySet<WrunRunReason>;
564
+ /** How a held install's wait ended: `none`, it never waited (a reason that is not held, or no live gesture); `idle`,
565
+ * the view went still; `ceiling`, the budget ran out with the view still moving; `yielded`, a user run was queued. */
566
+ export type WrunInstallGestureOutcome = 'none' | 'idle' | 'ceiling' | 'yielded';
567
+ /**
568
+ * Hold a finished run's install until the gesture's idle edge (WRUN-PANBACK A1), the way the warm-up ask waits
569
+ * (`askWrunWarmupAtGestureEnd`): at once (`none`) for a reason that is not held or a chart whose gesture is not live;
570
+ * else until the view stays still for GESTURE_LINGER_MS (`waitPanIdle`), bounded by `ceilingMs` (what the episode has
571
+ * left of its one ceiling), and raced every WRUN_INSTALL_GESTURE_POLL_MS against a queued user run
572
+ * (`hasQueuedWrunUserRun`): the run that follows replaces this result, so it yields (`yielded`) instead of making that
573
+ * run wait out the pan. The idle wait answers the time it waited at the idle edge and at its bound alike, so an answer
574
+ * within one poll of the bound reads `ceiling`. `waitedMs` is on the pacing clock. Rings the hold and its end; never
575
+ * throws.
576
+ */
577
+ export declare function holdWrunInstallForGesture(chartIndex: number, indicatorId: string, reason: WrunRunReason, { ceilingMs }: {
578
+ ceilingMs: number;
579
+ }): Promise<{
580
+ waitedMs: number;
581
+ outcome: WrunInstallGestureOutcome;
582
+ }>;
583
+ /** A prefix page's commit at the gesture's idle edge (`commitWrunPrefixAtGestureEdge`): committed with the commit's
584
+ * answer, or yielded to a queued user run (nothing committed). `heldMs`: how long the page held for the gesture. */
585
+ export type WrunPrefixGestureCommit<T> = {
586
+ kind: 'committed';
587
+ value: T;
588
+ heldMs: number;
589
+ } | {
590
+ kind: 'yielded';
591
+ heldMs: number;
592
+ };
593
+ /**
594
+ * A prefix page's commit at the gesture's idle edge (WRUN-PANBACK A1): the hold runs BEFORE the overlay's session lock
595
+ * and `commit` runs synchronously at the lock's grant, so the commit stays one synchronous transaction. The lock can
596
+ * wait on an async holder (a live block holds it across a worker call), so the gesture may start again between the
597
+ * hold and the grant: a live gesture at the grant with budget left (`ceilingMs` less what the page held and was paced)
598
+ * lets the lock go and the page waits again outside it; with the budget spent it commits. A user run queued meanwhile
599
+ * yields: nothing commits. Each hold that did not yield takes the chart's install turn (`admitWrunInstall`,
600
+ * WRUN-PANBACK-2 S1) before the lock is asked, so the lock is never held while the page waits for it; the lock may grant
601
+ * long after the turn, so at the grant the page writes on it only while no other install of the chart was admitted
602
+ * since (`wrunInstallLastAdmission`), else it lets the lock go and takes a fresh turn (while the budget lasts), and it
603
+ * notes its write (`noteWrunInstallWrite`) so the chart's next turn counts its gap from the commit. `commit` receives how
604
+ * long the page held and how long the pacer held it.
605
+ */
606
+ export declare function commitWrunPrefixAtGestureEdge<T>(chartIndex: number, indicatorId: string, reason: WrunRunReason, { ceilingMs }: {
607
+ ceilingMs: number;
608
+ }, commit: (heldMs: number, pacedMs: number) => T): Promise<WrunPrefixGestureCommit<T>>;
514
609
  /** The chart a full run computes for, read at its head before anything awaits:
515
610
  * the live session the run opens belongs to it. */
516
611
  interface WrunRunChartOwner {
@@ -561,7 +656,7 @@ export declare function wrunLegReadsLiveCandleOnly(leg: Pick<WrunPinnedLeg, 'kin
561
656
  * to carry, so an empty lane refuses loud); a package whose every funding
562
657
  * input declares `missing: "nan"` or `"zero"` reads its fill on markets
563
658
  * without funding and the lane stays quiet, like oi. */
564
- export declare function wrunFundingLaneRequired(metadata: WrunIndicatorMetadata): boolean;
659
+ export declare function wrunFundingLaneRequired(metadata: WrunIndicatorMetadata, lane?: WrunPinnedLaneId): boolean;
565
660
  /**
566
661
  * Reseed a live session from the context's OWN buffers, no fetch (plan
567
662
  * section 8 fold 1): the full input rows are rebuilt from the lane buffers
@@ -628,6 +723,8 @@ type WrunPollLaneThunk = readonly [
628
723
  type WrunSourceLaneThunks = WrunBuiltinLaneThunks & {
629
724
  /** The trades leg lanes (kit 0.77.0), one thunk per (quote, market) by its lane id. */
630
725
  tradeLegs?: ReadonlyArray<WrunPollLaneThunk>;
726
+ /** The pinned lanes (U9e, wrun-pinned-lanes.util), one thunk per (class, market) by its lane id. */
727
+ pinnedLanes?: ReadonlyArray<WrunPollLaneThunk>;
631
728
  /** The registry poll lanes (`sources/`), one thunk per planned instance. */
632
729
  pollLanes?: ReadonlyArray<WrunPollLaneThunk>;
633
730
  /** The row lanes (`sources/row-lane-registry.ts`), one thunk per planned instance. */
@@ -638,6 +735,8 @@ type WrunSourceLaneResults = {
638
735
  } & {
639
736
  /** The trades leg lanes' rows by lane id; present only when one was dispatched. */
640
737
  tradeLegRows?: Record<string, WrunLaneRows>;
738
+ /** The pinned lanes' rows by lane id (U9e); present only when one was dispatched. */
739
+ pinnedLaneRows?: Record<string, WrunLaneRows>;
641
740
  /** The registry poll lanes' rows by instance id; present only when one was dispatched. */
642
741
  pollLaneRows?: Record<string, WrunLaneRows>;
643
742
  /** The row lanes' rows by instance id; present only when one was dispatched. */
@@ -743,6 +842,18 @@ export interface WrunLaneSendAnchor {
743
842
  * nothing: the budget's late read is the whole answer already.
744
843
  */
745
844
  export declare function runWrunSourceLanes(thunks: WrunSourceLaneThunks, policy?: WrunSourceLanePolicy): Promise<WrunSourceLaneRun>;
845
+ /** The chart's main-series metadata (store loaded lazily: this lane is the only reader here). */
846
+ declare function wrunChartMetadataFor(chartIndex: number): Promise<{
847
+ exchange?: unknown;
848
+ symbol?: unknown;
849
+ interval?: unknown;
850
+ coin?: unknown;
851
+ transformations?: unknown;
852
+ normalizedSymbol?: unknown;
853
+ resolvedContract?: unknown;
854
+ sessionType?: unknown;
855
+ adjusted?: unknown;
856
+ } | undefined>;
746
857
  /** The chart metadata as a batch the cloud computed reads its facts (`integrateWrunRowSourceBatch`): the chart's own
747
858
  * market's, named outright so no browser run's decision on the chart stands in (`wrunDecidedOptionsExchange`). The
748
859
  * server resolves the chain of the chart market it is sent (follow-up: the backend's stock twin rule). */
@@ -768,7 +879,7 @@ export declare function wrunLatestSnapshotOf(metadata: Pick<WrunIndicatorMetadat
768
879
  * stamped with the chart bar's time. Chart bars that show no run bar are
769
880
  * left out.
770
881
  */
771
- export declare function wrunOutputRowsOnChartBars(outputRows: ReadonlyArray<WrunOutputRow>, chart: unknown, run: Pick<OverlayRunInterval, 'intervalMs' | 'waitForClose' | 'sessionLattice'>): WrunOutputRow[];
882
+ export declare function wrunOutputRowsOnChartBars(outputRows: ReadonlyArray<WrunOutputRow>, chart: unknown, run: Pick<OverlayRunInterval, 'intervalMs' | 'waitForClose' | 'sessionLattice' | 'sessionLatticeId'>): WrunOutputRow[];
772
883
  /**
773
884
  * Whose rows a presentation publishes (`presentWrunIntegration`), as a refused full run's snapshot
774
885
  * (wrun-refusal-surface.util `wrunRefusedLatestSnapshotOf`) reads them: `run` for the verdicts that supersede every
@@ -833,31 +944,99 @@ export declare function recordWrunHostBuildMs(chartIndex: number | undefined, in
833
944
  * A repaint of the mounted session under a new sheet: the style-only save's
834
945
  * door (wrun-style-patch.util) for the paint its in-place plot patch cannot
835
946
  * reach. A `skip` target's Visible row (the selection builds the target again
836
- * from the session's rows, whose frames the module writes whatever the sheet
837
- * hides, or leaves it out), the colour of a level, a renderer or a batched
838
- * section, a band, a fill, a box, a segment, and every look the adapter
839
- * derives from an output's colour. The caller swaps the new sheet into the
840
- * context first (`context.metadata`); this integrates the session's own rows
841
- * and buffers under it with the canvas fill the session was drawn with (no
842
- * worker call, no fetch: reintegrateWrunSession) and presents the result as
843
- * a republish, under the overlay's session lock. A full run in flight
947
+ * from the frames snapshot the session's rows carry, or leaves it out: the
948
+ * module writes its frames whatever the sheet hides, and a slot it never wrote
949
+ * builds nothing, as a run of it would), the colour of a level, a renderer or
950
+ * a batched section, a band, a fill, a box, a segment, and every look the
951
+ * adapter derives from an output's colour. The caller swaps the new sheet into
952
+ * the context first (`context.metadata`); this integrates the session's own
953
+ * rows and buffers under it with the canvas fill the session was drawn with
954
+ * (no worker call, no fetch: reintegrateWrunSession) and presents the result
955
+ * as a republish, under the overlay's session lock. A full run in flight
844
956
  * replaces the session when it lands, so the repaint stands down and the
845
957
  * save's rerun joins that run. False (the save keeps its rerun): no live
846
958
  * session, the context replaced or suspended, a full run in flight, the
847
959
  * reseed's gates refuse the chart (replay, protection, the pane budget, the
848
- * pause, the market), no candle to land on, or a failed integrate (the
849
- * session then owes its repaint, as after a failed tick). `preview` (a
850
- * settings gesture's frame, under the previewed sheet) writes nothing to the
851
- * overlay's settings. A replay session stands down too: only its lane bounds
852
- * its candles at the replay's cutoff (the run and the tick paths), so the save
853
- * reruns there. A session whose row source holds its own session (a cloud
854
- * run) repaints with the cells that source keeps (`cellRowsOf`, as its full
855
- * run and its frames read them); a sheet drawing price canvases whose cells
856
- * neither such a source nor the context's lane buffers hold stands down.
960
+ * pause, the market), no candle to land on, or a failed integrate (the session
961
+ * then owes its repaint, as after a failed tick). `preview` (a settings
962
+ * gesture's frame, under the previewed sheet) writes nothing to the overlay's
963
+ * settings. A replay session stands down too: only its lane bounds its candles
964
+ * at the replay's cutoff (the run and the tick paths), so the save reruns
965
+ * there. A session whose row source holds its own session (a cloud run)
966
+ * repaints with the cells that source keeps (`cellRowsOf`, as its full run and
967
+ * its frames read them); a sheet drawing price canvases whose cells neither
968
+ * such a source nor the context's lane buffers hold stands down.
857
969
  */
858
970
  export declare function repaintWrunSessionUnderSheet(indicatorId: string, context: WrunOverlayLiveContext, options?: {
859
971
  preview?: boolean;
860
972
  }): Promise<boolean>;
973
+ /**
974
+ * Park one overlay's live session at a warm workspace switch's teardown (the registry loader's capture door, while the
975
+ * outgoing chart still stands): the picture its chart shows (`wrunMountedRunResultOf`, the stand-in capture's read)
976
+ * goes with the session to the park (wrun-overlay-park.util parkWrunOverlayLiveSession), which keeps the worker's
977
+ * series and the context and releases everything chart-bound. Undefined, with nothing released, when the chart shows no whole
978
+ * picture of the session (no result known to show, a page) or the drivers refuse it.
979
+ */
980
+ export declare function parkWrunOverlayForSwitch(chartIndex: number, indicatorId: string): WrunParkedLiveSession | undefined;
981
+ /** Why an adoption took nothing back (the overlay's first run then runs the package as a first mount does):
982
+ * `not-parked` the handle was adopted or ended already; `chart-gone` no chart or mounted overlay to adopt into;
983
+ * `session-lost` the worker no longer holds the series under its epoch (a death, a newer start, an end);
984
+ * `bars-moved` the chart's rows are not the ones the session covers; `identity-changed` another market or settings
985
+ * revision than it computed; `cme-access` it read CME and the run may not read it now, or the viewer's CME access
986
+ * moved since the park (its fresh run's judge decides); `held` paused, tripped, replaying or held by the lifecycle door;
987
+ * `integrate-failed` the picture did not land. */
988
+ export type WrunParkAdoptRefusal = 'not-parked' | 'chart-gone' | 'session-lost' | 'bars-moved' | 'identity-changed' | 'cme-access' | 'held' | 'integrate-failed';
989
+ export type WrunParkAdoption = {
990
+ adopted: true;
991
+ path: 'prebuilt' | 'rebuilt';
992
+ } | {
993
+ adopted: false;
994
+ reason: WrunParkAdoptRefusal;
995
+ };
996
+ /**
997
+ * The warm switch's re-attach: the overlay's first run on the chart that mounts it again takes its parked live session
998
+ * back (wrun-overlay-park.util parkWrunOverlayLiveSession) in place of running the package over the whole history.
999
+ * The registry loader calls it from the run its driver's first request starts (the executor's single flight, so a wave
1000
+ * meanwhile waits for it, and the executor counts its success as the run's: the good result, the coverage the next
1001
+ * same-rows wave skips on, the attempt and the settings settle).
1002
+ *
1003
+ * Judged on the chart, the host and the session as they stand (`refusalNow`): once before the waits (the hold reads,
1004
+ * the session lock) for an early answer, and again under the lock right before the install, with no await between that
1005
+ * judgment and the install, since a settings save, a symbol switch, a pause, a teardown or the worker can move while
1006
+ * the adoption waits. The mount stands; the worker still holds the series under the parked epoch; the chart's newest
1007
+ * closed bar is the one it was at the park (no bar closed since: the forming bar may differ, the live tick covers it)
1008
+ * and the session covers the chart's rows (its first bar no later than the chart's first; a chart that came back with
1009
+ * fewer bars than it lazy-loaded before the park, the cached boot window, is covered); the market and the settings
1010
+ * revision are the session's; a session that read CME may still read it under the authorisation of its park (the gate
1011
+ * open to the run, the epoch unmoved: no picture computed from CME returns past a closed gate); nothing holds the
1012
+ * overlay (a pause, a trip, replay). Any refusal ends the parked series and answers why; the caller then runs the
1013
+ * package as today.
1014
+ *
1015
+ * A session that covers more bars than the chart shows is cut to the chart's rows before it is adopted
1016
+ * (`trimWrunAdoptedSession`, the run-level attachments riding the cut rows): its first row becomes the chart's, the
1017
+ * output rows before it go, and it plans no prefix run (its guest evaluated the bars before its new first row, so no
1018
+ * prefix proof stands over it), so older bars the chart lazy-loads later go through the history path a fresh run's
1019
+ * would. Its picture is then built again over the rows it kept.
1020
+ *
1021
+ * Adopted, the session is the overlay's again, as if it had never left: the context goes back into the registry under
1022
+ * this chart and a fresh generation (the series keeps its epoch), with its history as-of pins, and a session that read
1023
+ * CME gets back the CME stamp its run's fetch door put on the overlay (both settings copies, before its picture
1024
+ * installs: the remount shed it; by the doors' rule, so a first-party run on a CME chart stays unstamped); its picture
1025
+ * integrates through the route a first run takes (`integrateWrunRunThroughRoute`, reason 'initial': the remount,
1026
+ * `mode: 'metadata'`, the mount memo written), prebuilt (the result the chart showed, built already: no build) when it
1027
+ * was not cut, carries no child overlays and runs at the chart's interval, else built again from the session's own
1028
+ * rows and buffers (`reintegrateWrunSession`, the style repaint's door). Then, still under the lock and with no await
1029
+ * in between, what a first run settles with its picture: the stand-in it replaces retracts (`replaced`), the retained
1030
+ * range, the overlay's live and poll channels open again, a `session-start` gap mark has the first drain reconcile
1031
+ * every lane over the time the tab was away and then tick the kept worker series, and the run settles under the
1032
+ * settings revision the session computed. A teardown, a pause or another switch after that closes what opened here.
1033
+ * The canvas notices, the Strategy Tester payload, the run health and the refusal verdicts publish after the lock,
1034
+ * each only while the session is still this chart's under the generation it was installed with.
1035
+ */
1036
+ export declare function adoptWrunParkedLiveSession(parked: WrunParkedLiveSession, target: {
1037
+ chartIndex: number;
1038
+ indicatorId: string;
1039
+ }): Promise<WrunParkAdoption>;
861
1040
  /** Drop an overlay's canvas run state (its refine latches, its run serial):
862
1041
  * called from the live tick lane's teardown hook beside the canvas cache. */
863
1042
  export declare function forgetWrunOverlayCanvasState(indicatorId: string): void;
@@ -970,7 +1149,7 @@ export interface WrunIntegrationFacts {
970
1149
  * design 5): a mount that reaches before it is replaced, never merged onto. */
971
1150
  retainedFromTs?: number;
972
1151
  }
973
- export type WrunIntegrateOptions = WrunOverlayResultOptions & {
1152
+ export type WrunIntegrateOptions = Omit<WrunOverlayResultOptions, 'builtIn'> & {
974
1153
  tc: unknown;
975
1154
  meta: Record<string, unknown>;
976
1155
  indicatorId: string;
@@ -982,12 +1161,22 @@ export type WrunIntegrateOptions = WrunOverlayResultOptions & {
982
1161
  /** The clamped window the rows were computed over: a partial one keeps the mounted rows outside
983
1162
  * it on a remount. */
984
1163
  window?: WrunRunWindow;
1164
+ /** What the rows were computed for (`wrunPictureIdentityOf`: a full run's `computed.generation` and market
1165
+ * identity, a live session's `settingsRevision` and `marketIdentity`), handed to the child mount: a mounted
1166
+ * heatmap keeps the colour scale on screen through a pass of the picture that decided it and decides it again
1167
+ * on another. Required, so no integrate leaves it out by accident; undefined (an unknown market) decides every
1168
+ * heatmap scale again, the rule before the hold. */
1169
+ pictureIdentity: WrunPictureIdentity | undefined;
985
1170
  /** The full run's route facts; absent, the result remounts (a reseed, a direct caller). */
986
1171
  integration?: WrunIntegrationFacts;
987
1172
  /** A settings gesture's preview (the style patch's session repaint, wrun-style-preview.util): the overlay's
988
1173
  * settings are never written (no legend palette, no stats strip stamp), so nothing a preview paints reaches its
989
1174
  * engine copy; the gesture's commit or the cancel's repaint stamps them. */
990
1175
  keepOverlaySettings?: boolean;
1176
+ /** An adoption's picture (adoptWrunParkedLiveSession): the result its parked session's chart showed, built already
1177
+ * over `outputRows`, which the route applies as it applies a built one (the tables placed on this chart, the
1178
+ * palette and strip synced, the mount memo written) without building it again. Absent: built from `outputRows`. */
1179
+ prebuilt?: WrunRunResult;
991
1180
  };
992
1181
  export interface WrunIntegrateOutcome {
993
1182
  /** The result (its tables placed when it applied). */
@@ -1045,4 +1234,36 @@ export declare function integrateWrunOutputRows(options: WrunIntegrateOptions):
1045
1234
  */
1046
1235
  export declare function integrateWrunRunThroughRoute(options: WrunIntegrateOptions): WrunIntegrateOutcome;
1047
1236
  /** Why a pan wave runs whole instead of as a prefix run (C1 v3's skip reasons). */
1048
- export type WrunPrefixSkipReason = 'no-context' | 'not-backward-extension' | 'not-audited' | 'version-outside-audit' | `unsupported-outputs:${string}` | 'replay' | 'clamped' | 'htf' | `lanes:${WrunPrefixFeedClause}` | 'whole-range-script' | 'prefix-unsafe' | 'no-closed-book-observation' | WrunWarmupMiss | 'warmup-cold' | 'candle-revised';
1237
+ export type WrunPrefixSkipReason = 'no-context' | 'not-backward-extension' | 'not-audited' | 'version-outside-audit' | `unsupported-outputs:${string}` | 'replay' | 'clamped' | 'htf' | `lanes:${WrunPrefixFeedClause}` | 'whole-range-script' | 'prefix-unsafe' | 'no-closed-book-observation' | WrunWarmupMiss | 'warmup-cold' | 'warmup-gaps' | 'prefix-costlier' | 'candle-revised';
1238
+ /**
1239
+ * The page's rows of every lane a prefix asks again (C1 v3 window split; prefix feeds 2026-10-14): each lane over
1240
+ * `[fromMs, beforeTs)`, the bars before the session's first row, asked through `beforeTs - 1` (the chart's fetch reads
1241
+ * an explicit window's end as an inclusive bar and pads it by one source interval, so the answer is cut strictly
1242
+ * before `beforeTs`: the session's own rows stay the session's). Each ask rides its own fetch key
1243
+ * (`<fetchKey>-prefix-<suffix>`, a poll instance `poll-<instance id>`, a relay series its own fetch), the session's
1244
+ * recorded acquisition, the chart's fetch with no cache bypass (the answer a whole run over the extended chart reads,
1245
+ * the resident sided-candle split for buy/sell volume included) and the whole run's deadline, all at once through the
1246
+ * run pass's own lane machinery (`runWrunSourceLanes`) under the page's budget, each under the whole run's empty
1247
+ * policy: a quiet lane's empty page is a quiet stretch and lands; a state lane's (trade volume by size, a funding or
1248
+ * poll lane an input carries) degrades, as does a poll lane answering no value for a carried field; a declined
1249
+ * answer, a failure and a budget expiry degrade any lane. Only a whole answer is a page: the chart's fetch reports
1250
+ * its wire verdict (`onSourceVerdict`) and a relay series its own (`onComplete`), and an answer short of a clean
1251
+ * end-of-stream (a synthetic completion with whatever rows it collected, a history refusal served empty, a trimmed
1252
+ * answer, a row-cache hit whose provenance is not read back, a relay page that still names more) is declined, never
1253
+ * landed as a quiet stretch. Nothing is written here: the pages are staged for the commit, every one or none. A
1254
+ * degraded lane rejects the prefix without a latch (the data, never the module) and the wave's full run follows.
1255
+ * The daily poll lanes and the row lanes (run-schedule/wrun-prefix-feeds.util) ride the same machinery: a daily lane
1256
+ * asks the days before its buffer from its lookback before the page (none when the buffer reaches back that far), an
1257
+ * asked row lane the page's host bars through the lane's own host-grid read; each degrades on an empty answer only
1258
+ * when the session's buffer holds none either (the page of an old stretch, a lane's horizon past it, reads empty as a
1259
+ * whole run's older bars do). A trades leg on the chart's own grid (wrun-prefix-lanes.util `planWrunPrefixLanes`,
1260
+ * WRUN-PANBACK C) asks its market over the page with the request the whole run asks it with (wrun-trades-lane.util
1261
+ * `planWrunTradeLegAsk`: its payload extras, `pinnedMarket` among them) under its own fetch key
1262
+ * (`<fetchKey>-prefix-<lane id>`), quiet like the whole run's leg; a leg the planner asks at a tier on the chart now
1263
+ * declines the page (a page asks no tier).
1264
+ */
1265
+ export declare function acquireWrunPrefixLanePages(context: WrunOverlayLiveContext, meta: Record<string, unknown>, plan: WrunPrefixFeedPlan, fromMs: number, beforeTs: number, chartMetadata: Awaited<ReturnType<typeof wrunChartMetadataFor>>, meter: WrunDownloadMeterPort): Promise<{
1266
+ pages: WrunPrefixLanePages;
1267
+ } | {
1268
+ degraded: string;
1269
+ }>;