@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
@@ -11,7 +11,8 @@
11
11
  * it), in the record its lane declares for the code (`WrunPollLane.refusedAnswers`, a row-builder lane's in the run's
12
12
  * own table: the tape over the trades worker's cap) when it declares one;
13
13
  * - a run that holds on such a lane settles `held` with `WRUN_LANE_REFUSED_SETTLE_REASON`, so the chart store's
14
- * settings reconcile shows the edit as not applied at once instead of running the same settings again;
14
+ * settings reconcile shows the edit as not applied at once instead of running the same settings again, and the
15
+ * self-heal ladder reads the hold as deterministic (`markWrunLaneRefusedHold`) and never reruns it;
15
16
  * - a live reconcile reads it by what its code declares (`WRUN_LANE_REFUSALS`): a read the plane serves nothing for
16
17
  * is an answer with no new rows (its window covered, the held rows kept, no warning, so the session never widens
17
18
  * its window or warns on every poll); a window over the read's cap holds data the chart lacks, so it stays owed and
@@ -28,6 +29,12 @@ export declare const WRUN_LANE_REFUSED_MARK = "wrun-lane-refused:";
28
29
  export declare function wrunLaneRefusedText(code: string, detail: string): string;
29
30
  /** The code of a named refusal an error (or its text) carries, or undefined for any other failure. */
30
31
  export declare function wrunLaneRefusedCodeOf(error: unknown): string | undefined;
32
+ /** Marks a run's hold on a lane refused by name with that lane's code: its settle and the heal both read it. */
33
+ export declare function markWrunLaneRefusedHold<T extends object>(hold: T, code: string): T;
34
+ /** The lane code a hold on a lane refused by name carries (`markWrunLaneRefusedHold`), else undefined. */
35
+ export declare function wrunLaneRefusedHoldCodeOf(error: unknown): string | undefined;
36
+ /** A book read on a market with no order book (refused NOT_FOUND, k-orderbook.worker): nothing served, any window. */
37
+ export declare const WRUN_NO_ORDER_BOOK_CODE = "no-order-book";
31
38
  /** What a refusal by name says of the window it was asked for. */
32
39
  export type WrunLaneRefusalMeaning =
33
40
  /** The plane serves nothing for this read, on any ask (a switch keeps it off, a series it samples elsewhere only, a
@@ -38,10 +45,10 @@ export type WrunLaneRefusalMeaning =
38
45
  | 'over-cap';
39
46
  /**
40
47
  * Every code a worker twin refuses by name, with what it says of the window (the codes' own modules name them:
41
- * wrun-option-views.util, wrun-protocol-pending.util, wrun-opra-stats.leaf, wrun-opra-flow.leaf, wrun-tape-source.util
42
- * and the twins' literal ask refusals). tests/utility/wrun/wrun-lane-refusal.leaf.spec.ts walks every
43
- * `wrunLaneRefusedText` call in the workers and the package and fails on a code missing here, so a new refusal says
44
- * whether a live reconcile may read its window as covered before it ships.
48
+ * wrun-option-views.util, wrun-protocol-pending.util, wrun-opra-stats.leaf, wrun-opra-flow.leaf, wrun-tape-source.util,
49
+ * this leaf's book code and the twins' literal ask refusals). tests/utility/wrun/wrun-lane-refusal.leaf.spec.ts walks
50
+ * every `wrunLaneRefusedText` call in the workers and the package and fails on a code missing here, so a new refusal
51
+ * says whether a live reconcile may read its window as covered before it ships.
45
52
  */
46
53
  export declare const WRUN_LANE_REFUSALS: Readonly<Record<string, WrunLaneRefusalMeaning>>;
47
54
  /** Whether a refusal by name leaves its window owed (`over-cap`): a live reconcile never reads it as covered. */
@@ -11,7 +11,8 @@
11
11
  * it), in the record its lane declares for the code (`WrunPollLane.refusedAnswers`, a row-builder lane's in the run's
12
12
  * own table: the tape over the trades worker's cap) when it declares one;
13
13
  * - a run that holds on such a lane settles `held` with `WRUN_LANE_REFUSED_SETTLE_REASON`, so the chart store's
14
- * settings reconcile shows the edit as not applied at once instead of running the same settings again;
14
+ * settings reconcile shows the edit as not applied at once instead of running the same settings again, and the
15
+ * self-heal ladder reads the hold as deterministic (`markWrunLaneRefusedHold`) and never reruns it;
15
16
  * - a live reconcile reads it by what its code declares (`WRUN_LANE_REFUSALS`): a read the plane serves nothing for
16
17
  * is an answer with no new rows (its window covered, the held rows kept, no warning, so the session never widens
17
18
  * its window or warns on every poll); a window over the read's cap holds data the chart lacks, so it stays owed and
@@ -38,12 +39,28 @@ export function wrunLaneRefusedCodeOf(error) {
38
39
  return undefined;
39
40
  return WRUN_LANE_REFUSED_RE.exec(text)?.[1];
40
41
  }
42
+ /** Hidden, so a hold's mark never reaches its words, its record or a console line. */
43
+ const WRUN_LANE_REFUSED_HOLD_KEY = 'wrunLaneRefusedHold';
44
+ /** Marks a run's hold on a lane refused by name with that lane's code: its settle and the heal both read it. */
45
+ export function markWrunLaneRefusedHold(hold, code) {
46
+ Object.defineProperty(hold, WRUN_LANE_REFUSED_HOLD_KEY, { value: code, enumerable: false, configurable: true });
47
+ return hold;
48
+ }
49
+ /** The lane code a hold on a lane refused by name carries (`markWrunLaneRefusedHold`), else undefined. */
50
+ export function wrunLaneRefusedHoldCodeOf(error) {
51
+ if (error === null || typeof error !== 'object')
52
+ return undefined;
53
+ const code = error[WRUN_LANE_REFUSED_HOLD_KEY];
54
+ return typeof code === 'string' ? code : undefined;
55
+ }
56
+ /** A book read on a market with no order book (refused NOT_FOUND, k-orderbook.worker): nothing served, any window. */
57
+ export const WRUN_NO_ORDER_BOOK_CODE = 'no-order-book';
41
58
  /**
42
59
  * Every code a worker twin refuses by name, with what it says of the window (the codes' own modules name them:
43
- * wrun-option-views.util, wrun-protocol-pending.util, wrun-opra-stats.leaf, wrun-opra-flow.leaf, wrun-tape-source.util
44
- * and the twins' literal ask refusals). tests/utility/wrun/wrun-lane-refusal.leaf.spec.ts walks every
45
- * `wrunLaneRefusedText` call in the workers and the package and fails on a code missing here, so a new refusal says
46
- * whether a live reconcile may read its window as covered before it ships.
60
+ * wrun-option-views.util, wrun-protocol-pending.util, wrun-opra-stats.leaf, wrun-opra-flow.leaf, wrun-tape-source.util,
61
+ * this leaf's book code and the twins' literal ask refusals). tests/utility/wrun/wrun-lane-refusal.leaf.spec.ts walks
62
+ * every `wrunLaneRefusedText` call in the workers and the package and fails on a code missing here, so a new refusal
63
+ * says whether a live reconcile may read its window as covered before it ships.
47
64
  */
48
65
  export const WRUN_LANE_REFUSALS = Object.freeze({
49
66
  'option-views-ask': 'nothing-served',
@@ -54,6 +71,7 @@ export const WRUN_LANE_REFUSALS = Object.freeze({
54
71
  'options-flow-prints-unserved': 'nothing-served',
55
72
  'option-scope-reads-off': 'nothing-served',
56
73
  'protocol-pending': 'nothing-served',
74
+ [WRUN_NO_ORDER_BOOK_CODE]: 'nothing-served',
57
75
  'tape-too-many-trades': 'over-cap',
58
76
  });
59
77
  /** Whether a refusal by name leaves its window owed (`over-cap`): a live reconcile never reads it as covered. */
@@ -4,9 +4,10 @@
4
4
  *
5
5
  * The cloud plans every chart create through the kit's planner under the `chart-cloud` profile (kscript-backend
6
6
  * `wrunSharedWarmupBars`: `planWrunRun(...).warmup.bars`; its docs/wrun-lane.md, "Warm-up"): the sheet's
7
- * `warmup_bars` (2 when absent), every window-like param's current value (finite, at most 500) and the largest box or
8
- * segment offset, plus one; never below the sheet's scaled `warmup` window; clamped to the profile's
9
- * `caps.warmupBars`. Every ask of that run (the chart's candles, each leg, each lane) starts that many chart bars
7
+ * `warmup_bars` (2 when absent), every window-like param's value (finite, at most 500; its current value, or its
8
+ * declared default when the param is `hidden`) and the largest box or segment offset, plus one; never below the
9
+ * sheet's scaled `warmup` window; clamped to the profile's `caps.warmupBars`. Every ask of that run (the chart's
10
+ * candles, each leg, each lane) starts that many chart bars
10
11
  * before the window (`warmup.evaluateFromMs`), and the rows before the window warm the module without shipping. The
11
12
  * browser lane evaluated from the chart's first loaded bar instead, so its left edge was cold where the cloud's was
12
13
  * warm: RSI's first 14 rows, a 1h-pinned RSI on a 5m chart ready six hours later (its `overbought` 70 is window-like
@@ -19,6 +20,16 @@
19
20
  * the profile refuses, so the rule is mirrored here over the run's own param values (`wrunParamValuesFromSettings`
20
21
  * in wrun-param-values.util: the numbers the cloud's createScript packs) and pinned against the kit's planner by
21
22
  * tests/utility/wrun/wrun-lane-warmup.util.spec.ts: a kit that changes its rule turns that spec red.
23
+ *
24
+ * Why a hidden param reads its default: the rule cannot tell a window from any other plain number, so a value edit
25
+ * moves the run's start, and a start-dependent package (Supertrend's bands) redraws its oldest bars for a setting that
26
+ * has nothing to do with them. A hidden param has no control, so the only way it holds another value is a save from a
27
+ * version that showed it: Supertrend 0.1.2's unused `fill_opacity` of 20 carries onto 0.1.3, hidden there, and held the
28
+ * start 10 bars back with no row left to undo it. Reading the default takes the save out of W without shortening a real
29
+ * window: every sheet at its defaults keeps the W it had, and a hidden lookback is still counted at the value the sheet
30
+ * declares for it, so this is never the same as leaving hidden params out. Visible numbers keep the rule, RSI's
31
+ * `overbought` included: dropping one would cut W for everyone (71 to 15 on RSI) and a sheet has no way to say which is
32
+ * which yet.
22
33
  */
23
34
  import { calendarMonthsOfMs } from '../chart/calendar-interval.util.js';
24
35
  /** The planner's warm-up when the sheet declares no `warmup_bars` (the kit's default). */
@@ -47,6 +58,13 @@ function isWindowLikeParam(param) {
47
58
  return false;
48
59
  return typeof param.type !== 'string' || !NON_WINDOW_PARAM_TYPES.has(param.type);
49
60
  }
61
+ /** The number a window-like param adds to the warm-up: its declared default when hidden, as a saved value there is a
62
+ * leftover no control can reach (see the file comment), else the run's value. */
63
+ function windowParamValue(param, paramValues) {
64
+ if (param.hidden === true)
65
+ return finiteOf(param.default);
66
+ return typeof param.name === 'string' ? paramValues[param.name] : undefined;
67
+ }
50
68
  /**
51
69
  * The cloud's warm-up for a sheet under the run's param values, in chart bars: the kit planner's rule (see the file
52
70
  * comment), clamped to `cap`, the `chart-cloud` profile's `caps.warmupBars` (Infinity is no cap). Never below 0.
@@ -57,7 +75,7 @@ export function wrunLaneWarmupBars(sheet, paramValues, cap) {
57
75
  for (const param of params) {
58
76
  if (!isWindowLikeParam(param))
59
77
  continue;
60
- const value = typeof param.name === 'string' ? paramValues[param.name] : undefined;
78
+ const value = windowParamValue(param, paramValues);
61
79
  if (value === undefined || !Number.isFinite(value) || value > WRUN_LANE_WARMUP_LOOKBACK_CAP)
62
80
  continue;
63
81
  bars = Math.max(bars, Math.ceil(value));
@@ -20,11 +20,12 @@ export interface WrunChartRthSession {
20
20
  symbol?: unknown;
21
21
  sessionType?: unknown;
22
22
  }
23
- /** The session the chart fetches a US listing's candles on, as the shared host's session calendar
24
- * reads it: 'extended' only while the chart runs its extended session (`isEquityExtendedSession`,
25
- * the fetch's own decider), else 'regular', an unset session included (the browser never leaves it
26
- * unstated; the package reads an unstated session as open plus the span). */
27
- export declare function wrunChartSessionType(sessionType: unknown): 'regular' | 'extended';
23
+ /** The session the chart fetches a US listing's candles on at `interval` (the chart's or the leg's,
24
+ * label or milliseconds), as the shared host's session calendar reads it: 'extended' only while the
25
+ * chart runs its extended session there (`isEquityExtendedSession`, the fetch's own decider: below a
26
+ * day), else 'regular', an unset session included (the browser never leaves it unstated; the package
27
+ * reads an unstated session as open plus the span). */
28
+ export declare function wrunChartSessionType(sessionType: unknown, interval: unknown): 'regular' | 'extended';
28
29
  /** The chart a session read takes beside its persisted `sessionType`: its symbol and its interval (the chart's
29
30
  * interval label or milliseconds), with which the session the chart rides is read (`wrunChartSession`). */
30
31
  export interface WrunSessionChart {
@@ -44,7 +44,8 @@
44
44
  * York stock: the daily at 16:00 New York, the week with its last session), read on the gateway's
45
45
  * fixed 09:30 to 16:00 window (`regularWindowClose`: an NYSE early close keeps its after-hours
46
46
  * prints until 16:00, so its candle closes there, never before its last print). An
47
- * extended-hours chart fetches every print, so every leg there keeps open plus the span.
47
+ * extended-hours chart fetches every print below a day, so every intraday leg there keeps open
48
+ * plus the span; from a day up its candles are the regular session's and close with it.
48
49
  * - Every other leg (US_STOCKS among them, for now) keeps the leg core's open plus the span.
49
50
  *
50
51
  * What the browser still owns: the chart's session words (`wrunChartSession`: the session the chart
@@ -82,12 +83,13 @@ function legExchangeOf(leg, chartExchange) {
82
83
  function legSymbolOf(leg, chartSymbol) {
83
84
  return leg.market?.symbol ?? chartSymbol;
84
85
  }
85
- /** The session the chart fetches a US listing's candles on, as the shared host's session calendar
86
- * reads it: 'extended' only while the chart runs its extended session (`isEquityExtendedSession`,
87
- * the fetch's own decider), else 'regular', an unset session included (the browser never leaves it
88
- * unstated; the package reads an unstated session as open plus the span). */
89
- export function wrunChartSessionType(sessionType) {
90
- return isEquityExtendedSession(sessionType) ? 'extended' : 'regular';
86
+ /** The session the chart fetches a US listing's candles on at `interval` (the chart's or the leg's,
87
+ * label or milliseconds), as the shared host's session calendar reads it: 'extended' only while the
88
+ * chart runs its extended session there (`isEquityExtendedSession`, the fetch's own decider: below a
89
+ * day), else 'regular', an unset session included (the browser never leaves it unstated; the package
90
+ * reads an unstated session as open plus the span). */
91
+ export function wrunChartSessionType(sessionType, interval) {
92
+ return isEquityExtendedSession(sessionType, interval) ? 'extended' : 'regular';
91
93
  }
92
94
  /** The chart's session as the row builder reads it (`WrunChartSourceRows.session`): the chart's exchange, its
93
95
  * symbol (`chart`, when the caller has it) and the session the chart rides. On a market with an RTH window (a
@@ -100,7 +102,7 @@ export function wrunChartSessionType(sessionType) {
100
102
  * `wrunChartSessionType`: on a stock the word is the extended-hours flag. */
101
103
  export function wrunChartSession(exchange, sessionType, chart) {
102
104
  const symbol = typeof chart?.symbol === 'string' && chart.symbol !== '' ? chart.symbol : undefined;
103
- const listing = wrunChartSessionType(sessionType);
105
+ const listing = wrunChartSessionType(sessionType, chart?.interval);
104
106
  const rides = symbol !== undefined && hasRthWindow(symbol, exchange)
105
107
  ? effectiveChartSessionType(exchange, symbol, chart?.interval, sessionType)
106
108
  : listing;
@@ -188,7 +190,7 @@ function nextRthBar(venue, instantMs, intervalMs) {
188
190
  /** A US listing's candle close on a regular-session chart (the module doc): undefined on an
189
191
  * extended-hours chart and on every other venue. */
190
192
  function stockLegCandleClose(leg, chartExchange, sessionType) {
191
- if (!(Number.isFinite(leg.legMs) && leg.legMs > 0) || wrunChartSessionType(sessionType) !== 'regular') {
193
+ if (!(Number.isFinite(leg.legMs) && leg.legMs > 0) || wrunChartSessionType(sessionType, leg.legMs) !== 'regular') {
192
194
  return undefined;
193
195
  }
194
196
  const host = wrunChartHostEnv().sharedHost();
@@ -6,7 +6,9 @@
6
6
  * - A candle leg (a period leg's scalar views, a `candles` stream) asks from the earliest start
7
7
  * its readings plan, `wrunLegFetchStart` per input over the window's head and the run's clock:
8
8
  * two leg spans before the head on a leg coarser than the chart, one on an equal or finer
9
- * leg, N more for view `offset` N, and `bars` deepening it from the leg bucket holding now; a
9
+ * leg, N more for view `offset` N, and `bars` deepening it from the leg bucket holding the
10
+ * clock's as-of (`historyAsOfMs`: a live session's pin, so a later run of the session never asks
11
+ * it from a later start; a replay's present; else now, wrun-history-as-of.util); a
10
12
  * `candles` input read with view "forming" (the live candle) asks two leg spans before the
11
13
  * bucket holding now (`candles_forming`), one read with view "forming_open" (the open of the
12
14
  * candle holding each row) one leg span before the head's leg bucket (`candles_forming_open`),
@@ -1,6 +1,7 @@
1
1
  import { historyReachMs } from '../chart/history-wall.util.js';
2
2
  import { wrunChartHostEnv } from '../../host-env.js';
3
3
  import { WRUN_LEG_HISTORY_CLAMPED_CODE } from './wrun-run-health.util.js';
4
+ import { wrunClockHistoryAsOfMs } from './wrun-history-as-of.util.js';
4
5
  /** The leg candles a candle leg coarser than the chart asks before the window's head: a reading
5
6
  * seeded on the first candle it sees (an EMA over 1h closes on a 1m chart, whose window holds
6
7
  * about ten of them) then starts from history instead of the head (A23). The wall still cuts
@@ -84,13 +85,19 @@ export function planWrunLegFetch(input) {
84
85
  const clamped = [];
85
86
  // Every planned candle leg has a reading; a bare leg asks like a confirmed view.
86
87
  const reads = input.reads.length > 0 ? input.reads : [{ inputName: leg.intervalKey, reading: 'confirmed' }];
88
+ // A declared depth (`bars`) counts back from the clock's as-of, never from a later run's now
89
+ // (wrun-history-as-of.util: a session's pin, a replay's present); the live candle's two spans
90
+ // around now and the wall still read the clock's now.
91
+ const historyAsOfMs = wrunClockHistoryAsOfMs(clock);
87
92
  for (const read of reads) {
88
- const askedStartMs = wrunChartHostEnv().sharedHost().wrunLegFetchStart({
93
+ const askedStartMs = wrunChartHostEnv()
94
+ .sharedHost()
95
+ .wrunLegFetchStart({
89
96
  reading: read.reading,
90
97
  legMs: leg.legMs,
91
98
  primaryMs: clock.intervalMs,
92
99
  headMs,
93
- nowMs: clock.nowMs,
100
+ nowMs: read.bars === undefined ? clock.nowMs : historyAsOfMs,
94
101
  bars: read.bars,
95
102
  offset: read.offset,
96
103
  });
@@ -149,6 +149,8 @@ export declare const WRUN_LEVELS_WORD_REACH: {
149
149
  readonly font_weight: "both";
150
150
  readonly font_family: "both";
151
151
  readonly label_place: "both";
152
+ readonly label_overflow: "both";
153
+ readonly label_limit: "both";
152
154
  readonly hover: "both";
153
155
  readonly poc_color: "both";
154
156
  readonly poc_width: "both";
@@ -92,6 +92,8 @@ export const WRUN_LEVELS_WORD_REACH = {
92
92
  font_weight: 'both',
93
93
  font_family: 'both',
94
94
  label_place: 'both',
95
+ label_overflow: 'both',
96
+ label_limit: 'both',
95
97
  hover: 'both',
96
98
  poc_color: 'both',
97
99
  poc_width: 'both',
@@ -321,6 +323,10 @@ function styleSettings(level) {
321
323
  out.label_font_family = family;
322
324
  if (level.label_place !== undefined)
323
325
  out.label_place = level.label_place;
326
+ if (level.label_overflow === true)
327
+ out.label_overflow = true;
328
+ if (typeof level.label_limit === 'number' && level.label_limit > 0)
329
+ out.label_limit = level.label_limit;
324
330
  if (level.hover === true)
325
331
  out.hover = true;
326
332
  if (level.poc_color !== undefined)
@@ -32,6 +32,10 @@ export interface WrunRerunOptions {
32
32
  * (`wrunRefusalAttemptOrigin`): retry and settings read as the user's, everything else as the
33
33
  * chart's, because `switch` is also what every automatic refetch asks for. */
34
34
  origin?: 'user' | 'system';
35
+ /** How long this rebuild episode already held for the pan (ms, the pacing clock): the live tick's settle gate held
36
+ * the backward extension's handoff that long, so the run's install hold waits at most the rest of the one ceiling
37
+ * (`HEAVY_APPLY_GESTURE_CEILING_MS` less this). Absent: nothing held yet, the full ceiling. */
38
+ gestureHeldMs?: number;
35
39
  }
36
40
  /** Why the lifecycle door will not run an overlay now; null means run. 'failed-deterministic': the
37
41
  * last run of this overlay failed the row cap on the same window and settings, so a wave would
@@ -5,6 +5,7 @@ import { type WrunLegStreamLane } from './wrun-leg-stream-classes.js';
5
5
  import type { WrunPollLaneId } from './sources/wrun-poll-lane.types.js';
6
6
  import type { WrunRowLaneId } from './sources/wrun-row-lane.types.js';
7
7
  import { type WrunTradesLegLane } from './wrun-trades-lane.util.js';
8
+ import { type WrunPinnedLaneId } from './wrun-pinned-lanes.util.js';
8
9
  /** The lanes the row builder serves through its own branches, each with a named buffer on the
9
10
  * live context. */
10
11
  export type WrunBuiltinLiveLane = 'book' | 'trades'
@@ -16,9 +17,10 @@ export type WrunBuiltinLiveLane = 'book' | 'trades'
16
17
  | 'tape';
17
18
  /** A live lane: one of the row builder's own, a registry poll lane instance by its id
18
19
  * (`poll:*`, `utility/wrun/sources/`; its buffer is `context.pollLaneRows[id]`), a row lane
19
- * instance (`row:*`, `context.rowLaneRows[id]`), or a trades leg lane (`context.tradeLegRows[id]`,
20
- * kit 0.77.0). */
21
- export type WrunLiveLane = WrunBuiltinLiveLane | WrunPollLaneId | WrunRowLaneId | WrunTradesLegLane;
20
+ * instance (`row:*`, `context.rowLaneRows[id]`), a trades leg lane (`context.tradeLegRows[id]`,
21
+ * kit 0.77.0), or a pinned lane (`context.pinnedLaneRows[id]`, U9e: a book, oi, funding or
22
+ * liquidations input pinned to another market, wrun-pinned-lanes.util). */
23
+ export type WrunLiveLane = WrunBuiltinLiveLane | WrunPollLaneId | WrunRowLaneId | WrunTradesLegLane | WrunPinnedLaneId;
22
24
  /** The `trades` SOURCE (K_TRADES) feeds the `tape` lane; the `trades` LANE is fed by `buy_sell_volume` (TRADE_AGG). */
23
25
  export declare const WRUN_LIVE_LANE_OF_SCRIPT_SOURCE: Readonly<Record<string, WrunLiveLane | 'ohlcv'>>;
24
26
  export declare const WRUN_PUSH_LANES: ReadonlySet<WrunLiveLane>;
@@ -226,7 +228,7 @@ export declare function foldWrunLegCandleRows(base: ReadonlyArray<ArrayLike<numb
226
228
  * bar. Undefined where the history keeps the book's own bars (`wrunLaneHostGridsOf`: 30m and finer, ETH, a day and
227
229
  * longer, a 24/7 market, a market served no book): every key is its own bar.
228
230
  */
229
- export declare function wrunBookRowHostBarResolver(intervalMs: number, market: WrunLiveBucketMarket | null | undefined): ((rowTs: number, nowMs: number) => number | null) | undefined;
231
+ export declare function wrunBookRowHostBarResolver(intervalMs: number, market: WrunLiveBucketMarket | null | undefined, rowMarket?: WrunLiveBucketMarket | null | undefined): ((rowTs: number, nowMs: number) => number | null) | undefined;
230
232
  /**
231
233
  * The host bar a tape print lands in: the bar holding its own instant (the cell placement its history gets,
232
234
  * `placeRowsInHostBars` with `cells`), null where no chart bar holds it. Undefined where the chart's bars are the
@@ -342,7 +344,10 @@ export declare function noteWrunLiveIntakeEvent(indicatorId: string, event: Wrun
342
344
  /**
343
345
  * Whether the push intake may feed this package on a chart of
344
346
  * `chartInterval`. False when any input pins something the lane cannot
345
- * ride: a market pin on anything but a secondary `ohlcv` or `trades` input, an interval
347
+ * ride: a market pin on a class the one table leaves out
348
+ * (`WRUN_BROWSER_PINNED_LANE_CLASSES`, the table the row builder's refusal
349
+ * and the run's admission read) or on the primary input, a pinned lane
350
+ * (trades, book, oi, funding, liquidations) with an interval of its own, an interval
346
351
  * pin on a celled input or on a class other than `ohlcv`, `funding` or
347
352
  * `oi`, a finer interval, one that is not a whole multiple of the chart's,
348
353
  * or a word outside the vocabulary. An `ohlcv` pin COARSER than the chart
@@ -356,7 +361,11 @@ export declare function noteWrunLiveIntakeEvent(indicatorId: string, event: Wrun
356
361
  * An `odds` input (the odds lane) is a poll-only leg outside the push set:
357
362
  * its market (POLYMARKET|<condition id>) or interval pin never makes the
358
363
  * package ineligible, even on the primary input, so a package pairing an
359
- * odds input with a pinned ohlcv leg keeps that leg's push feed.
364
+ * odds input with a pinned ohlcv leg keeps that leg's push feed. A
365
+ * secondary trades, book, oi, funding or liquidations input pinned to another
366
+ * market is a lane of its own there (a trades leg, U9e's pinned lanes): its
367
+ * class's channel on that market feeds it (an oi lane is polled), and the
368
+ * chart's own push lanes stay valid.
360
369
  * The full run refuses the ineligible pins by name before any fetch
361
370
  * (`planWrunPinnedLegs`), so this only classifies.
362
371
  */