@orangecharts/wrun-chart-host 0.11.0 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/README.md +1 -0
  2. package/dist/constants/feature-flags.constants.d.ts +3 -4
  3. package/dist/constants/feature-flags.constants.js +34 -52
  4. package/dist/constants/feature-limits.constants.d.ts +1 -1
  5. package/dist/constants/feature-limits.constants.js +5 -4
  6. package/dist/constants/interval.constants.d.ts +7 -0
  7. package/dist/constants/interval.constants.js +7 -0
  8. package/dist/constants/scriptEditor/cme-official-scripts.constants.d.ts +20 -149
  9. package/dist/constants/scriptEditor/cme-official-scripts.constants.js +20 -309
  10. package/dist/constants/stocks-compliance.constants.d.ts +15 -0
  11. package/dist/constants/stocks-compliance.constants.js +15 -0
  12. package/dist/host-env.d.ts +55 -3
  13. package/dist/host-env.js +6 -0
  14. package/dist/host-ports.types.d.ts +36 -3
  15. package/dist/index.d.ts +18 -0
  16. package/dist/index.js +19 -0
  17. package/dist/indicators/controls/tpo-session.util.d.ts +78 -15
  18. package/dist/indicators/controls/tpo-session.util.js +320 -242
  19. package/dist/instances/script-engine-worker-ohlcv-transfer.d.ts +6 -0
  20. package/dist/instances/script-engine-worker-ohlcv-transfer.js +16 -0
  21. package/dist/interfaces/cme-realtime.interface.d.ts +8 -0
  22. package/dist/interfaces/cme-realtime.interface.js +2 -1
  23. package/dist/interfaces/feed.interface.d.ts +15 -1
  24. package/dist/interfaces/replay.interface.d.ts +5 -0
  25. package/dist/interfaces/stocks-realtime.interface.d.ts +4 -3
  26. package/dist/interfaces/stocks-realtime.interface.js +5 -4
  27. package/dist/interfaces/wrun-runtime.interface.d.ts +97 -19
  28. package/dist/kscript-data/controls/live-ohlcv-merge.util.d.ts +17 -0
  29. package/dist/kscript-data/controls/live-ohlcv-merge.util.js +22 -0
  30. package/dist/kscript-data/controls/live-trades-merge.util.d.ts +46 -40
  31. package/dist/kscript-data/controls/live-trades-merge.util.js +80 -107
  32. package/dist/market-data/billing.interface.d.ts +9 -1
  33. package/dist/market-data/venue.d.ts +1 -1
  34. package/dist/market-data/venues/index.d.ts +4 -4
  35. package/dist/market-data/venues/stocks.contract.copy.json +4 -4
  36. package/dist/market-data/venues/stocks.d.ts +4 -4
  37. package/dist/market-data/venues/stocks.js +15 -13
  38. package/dist/settings-templates/frvp-fields.d.ts +12 -1
  39. package/dist/settings-templates/frvp-fields.js +15 -4
  40. package/dist/settings-templates/index.js +12 -5
  41. package/dist/settings-templates/indicator-fields.js +28 -2
  42. package/dist/settings-templates/tool-rules.d.ts +17 -8
  43. package/dist/settings-templates/tool-rules.js +15 -8
  44. package/dist/settings-templates/tool-tables.generated.js +4 -2
  45. package/dist/utility/auth/server-clock.util.d.ts +3 -1
  46. package/dist/utility/auth/server-clock.util.js +3 -1
  47. package/dist/utility/chart/book-live-bucket.util.js +2 -2
  48. package/dist/utility/chart/cache-alignment.util.d.ts +15 -7
  49. package/dist/utility/chart/cache-alignment.util.js +14 -7
  50. package/dist/utility/chart/chart-data-fetch-generation.util.d.ts +2 -0
  51. package/dist/utility/chart/chart-data-fetch-generation.util.js +16 -0
  52. package/dist/utility/chart/cme-session-bucket.util.d.ts +18 -75
  53. package/dist/utility/chart/cme-session-bucket.util.js +25 -332
  54. package/dist/utility/chart/continuous-contracts.util.js +6 -5
  55. package/dist/utility/chart/display-offset.leaf.d.ts +24 -0
  56. package/dist/utility/chart/display-offset.leaf.js +41 -0
  57. package/dist/utility/chart/effective-chart-session.util.d.ts +2 -1
  58. package/dist/utility/chart/effective-chart-session.util.js +13 -5
  59. package/dist/utility/chart/feed-interval.util.d.ts +6 -20
  60. package/dist/utility/chart/feed-interval.util.js +13 -22
  61. package/dist/utility/chart/fetch-dedupe-policy.util.d.ts +27 -7
  62. package/dist/utility/chart/fetch-dedupe-policy.util.js +86 -11
  63. package/dist/utility/chart/host-bar-placement.util.d.ts +7 -4
  64. package/dist/utility/chart/host-bar-placement.util.js +8 -2
  65. package/dist/utility/chart/indicator-inflight-registry.util.d.ts +32 -0
  66. package/dist/utility/chart/indicator-inflight-registry.util.js +52 -0
  67. package/dist/utility/chart/indicator-run-interval.util.d.ts +10 -4
  68. package/dist/utility/chart/indicator-run-interval.util.js +21 -12
  69. package/dist/utility/chart/interval-registry.util.d.ts +1 -1
  70. package/dist/utility/chart/interval-registry.util.js +1 -1
  71. package/dist/utility/chart/kscript-legend-entries.util.d.ts +12 -0
  72. package/dist/utility/chart/kscript-legend-entries.util.js +16 -0
  73. package/dist/utility/chart/kscript-run-interval-projection.util.d.ts +1 -1
  74. package/dist/utility/chart/kscript-run-interval-projection.util.js +4 -2
  75. package/dist/utility/chart/kscript-venue-policy.util.d.ts +53 -62
  76. package/dist/utility/chart/kscript-venue-policy.util.js +85 -94
  77. package/dist/utility/chart/live-bucket.util.d.ts +39 -17
  78. package/dist/utility/chart/live-bucket.util.js +103 -57
  79. package/dist/utility/chart/local-kscript-source-revalidation.util.d.ts +58 -20
  80. package/dist/utility/chart/local-kscript-source-revalidation.util.js +98 -23
  81. package/dist/utility/chart/local-kscript-warmup-depth.util.d.ts +35 -11
  82. package/dist/utility/chart/local-kscript-warmup-depth.util.js +24 -3
  83. package/dist/utility/chart/market-session-schedule.util.d.ts +8 -0
  84. package/dist/utility/chart/market-session-schedule.util.js +39 -1
  85. package/dist/utility/chart/market-session.util.d.ts +136 -0
  86. package/dist/utility/chart/market-session.util.js +341 -0
  87. package/dist/utility/chart/market-sessions.util.d.ts +83 -0
  88. package/dist/utility/chart/market-sessions.util.js +220 -0
  89. package/dist/utility/chart/om-panel.util.d.ts +5 -3
  90. package/dist/utility/chart/om-panel.util.js +42 -7
  91. package/dist/utility/chart/om-target.util.d.ts +14 -1
  92. package/dist/utility/chart/om-target.util.js +22 -5
  93. package/dist/utility/chart/opra-read-access.leaf.d.ts +16 -1
  94. package/dist/utility/chart/opra-read-access.leaf.js +22 -0
  95. package/dist/utility/chart/profile-row-height.util.d.ts +49 -16
  96. package/dist/utility/chart/profile-row-height.util.js +74 -37
  97. package/dist/utility/chart/rth-session.util.d.ts +55 -20
  98. package/dist/utility/chart/rth-session.util.js +94 -46
  99. package/dist/utility/chart/session-interval.util.d.ts +2 -1
  100. package/dist/utility/chart/session-interval.util.js +1 -3
  101. package/dist/utility/chart/session-lattice.util.d.ts +150 -0
  102. package/dist/utility/chart/session-lattice.util.js +488 -0
  103. package/dist/utility/chart/trading-day.util.d.ts +40 -2
  104. package/dist/utility/chart/trading-day.util.js +84 -7
  105. package/dist/utility/chart/us-equities-session.util.d.ts +32 -11
  106. package/dist/utility/chart/us-equities-session.util.js +44 -15
  107. package/dist/utility/chart/window-geometry.leaf.d.ts +28 -7
  108. package/dist/utility/chart/window-geometry.leaf.js +57 -8
  109. package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +21 -14
  110. package/dist/utility/chart/wrun-bar-session-facts.util.js +32 -38
  111. package/dist/utility/chart/wrun-run-result.util.d.ts +29 -12
  112. package/dist/utility/chart/wrun-run-result.util.js +89 -25
  113. package/dist/utility/common/time.util.js +5 -4
  114. package/dist/utility/market-events/earnings-scope.util.d.ts +10 -5
  115. package/dist/utility/market-events/earnings-scope.util.js +17 -9
  116. package/dist/utility/market-events/market-events.util.d.ts +14 -7
  117. package/dist/utility/market-events/market-events.util.js +30 -17
  118. package/dist/utility/number-format.util.d.ts +14 -21
  119. package/dist/utility/number-format.util.js +38 -24
  120. package/dist/utility/options/option-venue-disclosure.util.d.ts +40 -6
  121. package/dist/utility/options/option-venue-disclosure.util.js +71 -11
  122. package/dist/utility/options/option-venue.util.d.ts +1 -1
  123. package/dist/utility/options/option-venue.util.js +1 -1
  124. package/dist/utility/pool-symbol.leaf.d.ts +7 -0
  125. package/dist/utility/pool-symbol.leaf.js +50 -5
  126. package/dist/utility/stocks/stock-display.util.d.ts +15 -0
  127. package/dist/utility/stocks/stock-display.util.js +37 -0
  128. package/dist/utility/symbol-selection/contract-expiry.util.js +5 -4
  129. package/dist/utility/v2/gate-plane.util.d.ts +6 -0
  130. package/dist/utility/v2/gate-plane.util.js +11 -1
  131. package/dist/utility/v2/gate-session-latch.util.d.ts +1 -1
  132. package/dist/utility/v2/gate-session-latch.util.js +3 -3
  133. package/dist/utility/v2/governed-tier.leaf.d.ts +17 -16
  134. package/dist/utility/v2/governed-tier.leaf.js +17 -16
  135. package/dist/utility/v2/stocks-governed.util.d.ts +5 -0
  136. package/dist/utility/v2/stocks-governed.util.js +14 -0
  137. package/dist/utility/v2/v2-enums.leaf.d.ts +13 -0
  138. package/dist/utility/v2/v2-enums.leaf.js +458 -0
  139. package/dist/utility/wrun/derived-roots.leaf.d.ts +21 -1
  140. package/dist/utility/wrun/derived-roots.leaf.js +27 -1
  141. package/dist/utility/wrun/derived-roots.util.d.ts +44 -32
  142. package/dist/utility/wrun/derived-roots.util.js +97 -56
  143. package/dist/utility/wrun/run-schedule/wrun-late-reads.util.d.ts +4 -3
  144. package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +4 -3
  145. package/dist/utility/wrun/sources/lanes/option_daily.d.ts +2 -1
  146. package/dist/utility/wrun/sources/lanes/option_daily.js +2 -1
  147. package/dist/utility/wrun/sources/lanes/options_flow.d.ts +3 -0
  148. package/dist/utility/wrun/sources/lanes/options_flow.js +23 -5
  149. package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +3 -4
  150. package/dist/utility/wrun/sources/row-lane-registry.js +9 -4
  151. package/dist/utility/wrun/sources/row-lanes/dark_pool.d.ts +19 -0
  152. package/dist/utility/wrun/sources/row-lanes/dark_pool.js +104 -0
  153. package/dist/utility/wrun/sources/row-lanes/index.js +2 -0
  154. package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.d.ts +20 -0
  155. package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.js +103 -0
  156. package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +19 -2
  157. package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +15 -13
  158. package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +49 -23
  159. package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +14 -9
  160. package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +75 -27
  161. package/dist/utility/wrun/sources/wrun-row-lanes.util.js +139 -82
  162. package/dist/utility/wrun/wrun-app-layer.leaf.d.ts +78 -0
  163. package/dist/utility/wrun/wrun-app-layer.leaf.js +89 -0
  164. package/dist/utility/wrun/wrun-bar-count.util.d.ts +11 -7
  165. package/dist/utility/wrun/wrun-bar-count.util.js +12 -8
  166. package/dist/utility/wrun/wrun-batched-kinds.leaf.d.ts +13 -0
  167. package/dist/utility/wrun/wrun-batched-kinds.leaf.js +18 -0
  168. package/dist/utility/wrun/wrun-batched-marks.util.d.ts +41 -22
  169. package/dist/utility/wrun/wrun-batched-marks.util.js +255 -59
  170. package/dist/utility/wrun/wrun-batched-readout.util.d.ts +26 -19
  171. package/dist/utility/wrun/wrun-batched-readout.util.js +81 -27
  172. package/dist/utility/wrun/wrun-book-bands.leaf.d.ts +8 -0
  173. package/dist/utility/wrun/wrun-book-bands.leaf.js +7 -0
  174. package/dist/utility/wrun/wrun-candle-equal.leaf.d.ts +19 -0
  175. package/dist/utility/wrun/wrun-candle-equal.leaf.js +40 -0
  176. package/dist/utility/wrun/wrun-canvas-readout.util.d.ts +4 -2
  177. package/dist/utility/wrun/wrun-canvases.util.js +7 -3
  178. package/dist/utility/wrun/wrun-chart-context-names.util.d.ts +6 -3
  179. package/dist/utility/wrun/wrun-chart-context-names.util.js +8 -4
  180. package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +47 -29
  181. package/dist/utility/wrun/wrun-chart-market-facts.util.js +201 -201
  182. package/dist/utility/wrun/wrun-child-overlay-id.util.js +2 -1
  183. package/dist/utility/wrun/wrun-cme-legs-note.util.d.ts +15 -0
  184. package/dist/utility/wrun/wrun-cme-legs-note.util.js +49 -0
  185. package/dist/utility/wrun/wrun-cme-root-specs.util.d.ts +38 -0
  186. package/dist/utility/wrun/wrun-cme-root-specs.util.js +81 -0
  187. package/dist/utility/wrun/wrun-coin-lane-live.util.js +3 -0
  188. package/dist/utility/wrun/wrun-color-settings.util.d.ts +6 -1
  189. package/dist/utility/wrun/wrun-color-settings.util.js +32 -7
  190. package/dist/utility/wrun/wrun-dark-pool.util.d.ts +50 -0
  191. package/dist/utility/wrun/wrun-dark-pool.util.js +127 -0
  192. package/dist/utility/wrun/wrun-declared-warmup.util.d.ts +67 -12
  193. package/dist/utility/wrun/wrun-declared-warmup.util.js +165 -13
  194. package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +18 -8
  195. package/dist/utility/wrun/wrun-draft-legend-note.util.js +57 -11
  196. package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +14 -10
  197. package/dist/utility/wrun/wrun-draft-overlay.util.js +26 -14
  198. package/dist/utility/wrun/wrun-earnings-facts.util.js +3 -2
  199. package/dist/utility/wrun/wrun-etf-funds.util.d.ts +2 -0
  200. package/dist/utility/wrun/wrun-etf-funds.util.js +4 -0
  201. package/dist/utility/wrun/wrun-held-lanes.util.js +8 -2
  202. package/dist/utility/wrun/wrun-history-as-of.util.d.ts +77 -0
  203. package/dist/utility/wrun/wrun-history-as-of.util.js +108 -0
  204. package/dist/utility/wrun/wrun-host.service.d.ts +64 -14
  205. package/dist/utility/wrun/wrun-host.service.js +137 -27
  206. package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +3 -3
  207. package/dist/utility/wrun/wrun-hosted-wire-caps.js +12 -2
  208. package/dist/utility/wrun/wrun-inert-legend.util.d.ts +13 -0
  209. package/dist/utility/wrun/wrun-inert-legend.util.js +31 -3
  210. package/dist/utility/wrun/wrun-input-requirements.leaf.d.ts +7 -5
  211. package/dist/utility/wrun/wrun-input-requirements.leaf.js +16 -6
  212. package/dist/utility/wrun/wrun-install-pacer.util.d.ts +26 -0
  213. package/dist/utility/wrun/wrun-install-pacer.util.js +145 -0
  214. package/dist/utility/wrun/wrun-kit-refusal-stages.types.d.ts +22 -0
  215. package/dist/utility/wrun/wrun-kit-refusal-stages.types.js +1 -0
  216. package/dist/utility/wrun/wrun-lane-refusal.leaf.d.ts +12 -5
  217. package/dist/utility/wrun/wrun-lane-refusal.leaf.js +23 -5
  218. package/dist/utility/wrun/wrun-lane-warmup.util.js +22 -4
  219. package/dist/utility/wrun/wrun-leg-close.util.d.ts +6 -5
  220. package/dist/utility/wrun/wrun-leg-close.util.js +11 -9
  221. package/dist/utility/wrun/wrun-leg-fetch.util.d.ts +3 -1
  222. package/dist/utility/wrun/wrun-leg-fetch.util.js +9 -2
  223. package/dist/utility/wrun/wrun-levels-child.util.d.ts +2 -0
  224. package/dist/utility/wrun/wrun-levels-child.util.js +6 -0
  225. package/dist/utility/wrun/wrun-lifecycle.contract.d.ts +4 -0
  226. package/dist/utility/wrun/wrun-live-intake.util.d.ts +15 -6
  227. package/dist/utility/wrun/wrun-live-intake.util.js +167 -47
  228. package/dist/utility/wrun/wrun-live-tick.util.d.ts +52 -8
  229. package/dist/utility/wrun/wrun-live-tick.util.js +648 -97
  230. package/dist/utility/wrun/wrun-market-facts.util.d.ts +16 -2
  231. package/dist/utility/wrun/wrun-market-facts.util.js +32 -3
  232. package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +27 -27
  233. package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +28 -16
  234. package/dist/utility/wrun/wrun-market-size-defaults.util.js +34 -5
  235. package/dist/utility/wrun/wrun-oi-lane.util.d.ts +10 -7
  236. package/dist/utility/wrun/wrun-oi-lane.util.js +16 -10
  237. package/dist/utility/wrun/wrun-option-strike-flow.util.js +1 -1
  238. package/dist/utility/wrun/wrun-option-views.util.d.ts +2 -2
  239. package/dist/utility/wrun/wrun-option-views.util.js +5 -2
  240. package/dist/utility/wrun/wrun-options-flow-underlying.leaf.d.ts +5 -0
  241. package/dist/utility/wrun/wrun-options-flow-underlying.leaf.js +16 -0
  242. package/dist/utility/wrun/wrun-options-stop.util.d.ts +3 -2
  243. package/dist/utility/wrun/wrun-options-stop.util.js +6 -4
  244. package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +75 -11
  245. package/dist/utility/wrun/wrun-overlay-drivers.util.js +176 -43
  246. package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +20 -10
  247. package/dist/utility/wrun/wrun-overlay-park.util.d.ts +84 -0
  248. package/dist/utility/wrun/wrun-overlay-park.util.js +135 -0
  249. package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +37 -4
  250. package/dist/utility/wrun/wrun-overlay-recovery.util.js +26 -14
  251. package/dist/utility/wrun/wrun-overlay-run.util.d.ts +239 -24
  252. package/dist/utility/wrun/wrun-overlay-run.util.js +2204 -405
  253. package/dist/utility/wrun/wrun-pack.util.d.ts +8 -5
  254. package/dist/utility/wrun/wrun-panel-mount.util.d.ts +2 -1
  255. package/dist/utility/wrun/wrun-panel-mount.util.js +20 -14
  256. package/dist/utility/wrun/wrun-panel-style.util.d.ts +4 -2
  257. package/dist/utility/wrun/wrun-panel-style.util.js +3 -2
  258. package/dist/utility/wrun/wrun-pin-spelling.util.d.ts +7 -0
  259. package/dist/utility/wrun/wrun-pin-spelling.util.js +18 -4
  260. package/dist/utility/wrun/wrun-pin-venues.util.d.ts +26 -17
  261. package/dist/utility/wrun/wrun-pin-venues.util.js +43 -36
  262. package/dist/utility/wrun/wrun-pinned-lanes.util.d.ts +58 -0
  263. package/dist/utility/wrun/wrun-pinned-lanes.util.js +72 -0
  264. package/dist/utility/wrun/wrun-prefix-cohort.util.js +2 -1
  265. package/dist/utility/wrun/wrun-prefix-lanes.util.d.ts +22 -9
  266. package/dist/utility/wrun/wrun-prefix-lanes.util.js +145 -26
  267. package/dist/utility/wrun/wrun-prefix-proof.util.d.ts +29 -0
  268. package/dist/utility/wrun/wrun-prefix-proof.util.js +23 -5
  269. package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +9 -1
  270. package/dist/utility/wrun/wrun-refusal-surface.util.js +15 -1
  271. package/dist/utility/wrun/wrun-refusal.util.d.ts +19 -1
  272. package/dist/utility/wrun/wrun-refusal.util.js +103 -16
  273. package/dist/utility/wrun/wrun-registry-errors.util.d.ts +20 -6
  274. package/dist/utility/wrun/wrun-registry-errors.util.js +20 -6
  275. package/dist/utility/wrun/wrun-replay-rows.util.js +6 -10
  276. package/dist/utility/wrun/wrun-run-health.util.d.ts +89 -2
  277. package/dist/utility/wrun/wrun-run-health.util.js +204 -1
  278. package/dist/utility/wrun/wrun-run-interval-session.util.d.ts +2 -2
  279. package/dist/utility/wrun/wrun-run-interval-session.util.js +2 -2
  280. package/dist/utility/wrun/wrun-run-interval.util.d.ts +9 -8
  281. package/dist/utility/wrun/wrun-run-interval.util.js +13 -11
  282. package/dist/utility/wrun/wrun-sandbox-row-source.js +5 -2
  283. package/dist/utility/wrun/wrun-script-inputs.util.d.ts +13 -3
  284. package/dist/utility/wrun/wrun-script-inputs.util.js +51 -13
  285. package/dist/utility/wrun/wrun-session-composition.util.d.ts +81 -0
  286. package/dist/utility/wrun/wrun-session-composition.util.js +169 -0
  287. package/dist/utility/wrun/wrun-setting-words.util.d.ts +10 -7
  288. package/dist/utility/wrun/wrun-setting-words.util.js +25 -7
  289. package/dist/utility/wrun/wrun-source-rows.util.d.ts +94 -28
  290. package/dist/utility/wrun/wrun-source-rows.util.js +738 -93
  291. package/dist/utility/wrun/wrun-stream-clock.util.d.ts +45 -0
  292. package/dist/utility/wrun/wrun-stream-clock.util.js +108 -0
  293. package/dist/utility/wrun/wrun-tape-coins.util.d.ts +116 -0
  294. package/dist/utility/wrun/wrun-tape-coins.util.js +110 -0
  295. package/dist/utility/wrun/wrun-tape-source.util.d.ts +62 -32
  296. package/dist/utility/wrun/wrun-tape-source.util.js +72 -34
  297. package/dist/utility/wrun/wrun-tier-grid.util.d.ts +13 -5
  298. package/dist/utility/wrun/wrun-tier-grid.util.js +23 -13
  299. package/dist/utility/wrun/wrun-tpo-rows.util.js +2 -1
  300. package/dist/utility/wrun/wrun-trades-lane.util.d.ts +73 -0
  301. package/dist/utility/wrun/wrun-trades-lane.util.js +82 -0
  302. package/dist/utility/wrun/wrun-twin-compute-inputs.util.d.ts +5 -0
  303. package/dist/utility/wrun/wrun-twin-compute-inputs.util.js +9 -2
  304. package/dist/utility/wrun/wrun-visibility-table.d.ts +13 -0
  305. package/dist/utility/wrun/wrun-visibility-table.js +9 -0
  306. package/dist/utility/wrun/wrun-volume-profile.util.js +44 -32
  307. package/dist/utils/replay/replay-buffer-math.d.ts +16 -6
  308. package/dist/utils/replay/replay-buffer-math.js +60 -30
  309. package/dist/workers/constants/socket-slots.d.ts +11 -7
  310. package/dist/workers/constants/socket-slots.js +6 -5
  311. package/package.json +11 -11
@@ -1,54 +1,22 @@
1
1
  /**
2
- * Official kScript curation for governed CME futures.
2
+ * Who counts as first party on a governed venue, by an official kScript DOC's id: the data wall's identity list
3
+ * (`isCmeFirstPartyOfficialDocId`, read by kscript-venue-policy `isFirstPartyKScriptRun`). It grants data access, it
4
+ * curates nothing.
3
5
  *
4
- * Native official catalog rows (script_id === registry type: VWAP,
5
- * ORDERBOOK_HEATMAP, ...) ride the native availability gates
6
- * (cme-indicator-availability.util) and never consult this file. This file
7
- * classifies OFFICIAL SCRIPT rows only: the technical-indicator pack
8
- * (registry subTypes riding TECHNICAL_SCRIPT, e.g. RSI, Volume Bubbles) and
9
- * backend-doc officials (catalog rows with a mongo script_id and no registry
10
- * presence, e.g. Order Book Pressure), matched by EXACT identity only.
11
- *
12
- * Adjudicated 2026-07-28 (Kyle): allowed = Volume Bubbles and Order Book
13
- * Pressure, pinned by EXACT identity only. Title-slug matching was removed
14
- * the same day: titles are author-controlled, so a slug both enabled a
15
- * community lookalike in the picker and could never be a safe basis for the
16
- * venue wall. Anchored VWAP and Key Levels were parked until their docs
17
- * republished with open code, and re-enabled 2026-07-29 (see the allow-list
18
- * comment).
19
- * The classic TA pack was held "coming soon" while the engine's
20
- * continuous-grid timeline produced NaN defects across CME session gaps
21
- * (recursive builtins poisoned permanently after a gap, windowed ones holed
22
- * after every nightly break). Flipped to allowed 2026-07-29 against the
23
- * sparse-timeline engine (3.0.72): every pack script is run over a
24
- * session-gapped timeline by tests/constants/scriptEditor/
25
- * cme-ta-pack-sparse-timeline.spec.ts, which must stay green across engine
26
- * bumps or the pack returns here. Everything else
27
- * official (funding / OI / liquidation / spot-vs-perp flow concepts) is
28
- * crypto-only on CME and reads "not available".
29
- *
30
- * Community scripts are deliberately OUT of scope: user-script blocking on
31
- * governed venues is the kScript venue-policy wall (MR !4881), keyed on run
32
- * provenance, not this curation. A proper server-side per-venue field on the
33
- * catalog doc would obsolete the id pinning here.
6
+ * Until 2026-11-07 this file also held a per-indicator CME list for OpenMarket's own indicators
7
+ * (`classifyOfficialScriptForCme`, the allowed, coming-soon and held keys, and the CME proven-twin lists): an
8
+ * indicator was shown and run on a CME chart only when it was on that list. It came from the kScript days, when the
9
+ * engine broke across CME's session gaps and each indicator was proven over a gapped timeline first. Once community
10
+ * wrun Indicators drew on CME with no list (the `cme-user-scripts` gate), the list only held back OpenMarket's own
11
+ * (Zig Zag, a proven twin never curated), so Kyle retired it ("fix both"): every first-party run is venue-approved on
12
+ * CME as on every other plane, and an indicator that reads a source CME does not serve answers through the wrun lane's
13
+ * own missing-data states. The crypto-only native families stay off CME by their own rule
14
+ * (CME_FUTURES_BLOCKED_INDICATORS, cme-indicator-availability.util).
34
15
  */
35
16
  /**
36
- * The 2026-09-02 indicator-library batch (56 openmarket catalog docs: volatility,
37
- * statistics, technical, market-analysis and volume-profile families), enabled on
38
- * governed CME 2026-09-07 (Kyle). Venue-safe by construction: every pinned source
39
- * reads only the chart's own symbol/exchange OHLCV (two through htf()), no
40
- * crypto-fixed source, no second venue. The four library docs that pull a second
41
- * symbol with crypto/equity defaults (Cointegration Spread, Sharpe Ratio,
42
- * Ascending Base, and Correlation Coefficient since 2026-10-13 by Kyle's call:
43
- * its default comparison is Binance ETHUSDT, which a governed chart cannot
44
- * fetch, so both forms drew blank there) stay fail-closed. The VERBATIM published sources are pinned
45
- * under src/fixtures/cme-official-library/ and adjudicated on the session-gapped
46
- * timeline by tests/constants/scriptEditor/cme-official-library-sparse-timeline.spec.ts,
47
- * which cross-pins this list against that manifest: an id cannot sit here without
48
- * a pinned source, and a republish that changes an executable line must be
49
- * re-adjudicated there before the id keeps its place. Spread into BOTH lists
50
- * below: the picker curation (venue-appropriate) and the first-party wall
51
- * (governed-data access), the same standing the launch docs hold.
17
+ * The 2026-09-02 indicator-library batch: openmarket-authored catalog docs (volatility, statistics, technical,
18
+ * market-analysis and volume-profile families), first party by authorship. Their verbatim published sources stay
19
+ * pinned under src/fixtures/cme-official-library/.
52
20
  */
53
21
  export const CME_OFFICIAL_LIBRARY_DOC_IDS = [
54
22
  '6a97fd111ded35390311d79a', // ABCD Pattern
@@ -109,267 +77,10 @@ export const CME_OFFICIAL_LIBRARY_DOC_IDS = [
109
77
  '6a97fc1b1ded353903110318', // Yang-Zhang Volatility
110
78
  ];
111
79
  /**
112
- * Registry subTypes / catalog script_ids allowed on CME today (exact identities only).
113
- *
114
- * Anchored VWAP and Key Levels re-enabled 2026-07-29 after Kyle republished both docs with
115
- * OPEN code (client-side first-party run; wire-verified delivered source). Their catalog rows
116
- * surface on CME once the docs' catalog `source` flips to 'official' (the governed picker
117
- * queries officials only); until then they are runnable-but-unlisted there.
118
- */
119
- export const CME_ALLOWED_OFFICIAL_SCRIPT_KEYS = [
120
- 'VOLUME_BUBBLES',
121
- // Big Trades (per-print tape markers): reads only the chart's own trades
122
- // source, venue-safe on governed futures; first-party via
123
- // TECHNICAL_INDICATOR_SCRIPT_KEY_SET. Sparse-timeline proof:
124
- // tests/constants/scriptEditor/big-trades-official.spec.ts.
125
- 'BIG_TRADES',
126
- // Order Book Pressure (backend-doc official; reads the chart's own book).
127
- '69157410734c015375c91630',
128
- // Anchored VWAP (openmarket doc, open code; price-derived, venue-safe).
129
- '6a3e9e98bcac4c00fca767c7',
130
- // Key Levels (openmarket doc, open code; price-derived, venue-safe).
131
- '6a42467a3036aaa8d4bbb5be',
132
- // Timeframe Matrix (openmarket doc; multi-timeframe minicharts). Venue-safe:
133
- // fetches only the chart's own symbol/exchange OHLCV through requestBars
134
- // count-mode windows ("last N bars", gap-agnostic by construction), no
135
- // crypto-fixed sources; sparse-timeline proof rides
136
- // cme-ta-pack-sparse-timeline.spec.ts. Surfaces on the governed picker once
137
- // the doc's catalog `source` flips to 'official' (community today).
138
- '6a465724528f4104aec7c263',
139
- // The classic TA pack, un-Sooned 2026-07-29: adjudicated clean on
140
- // session-gapped timelines under the pinned sparse-timeline engine by
141
- // cme-ta-pack-sparse-timeline.spec.ts (the spec pins this membership too).
142
- 'RSI',
143
- 'EMA',
144
- 'SMA',
145
- 'MACD',
146
- 'BOLLINGER_BANDS',
147
- 'ICHI_CLOUD',
148
- 'STOCH',
149
- 'CCI',
150
- 'MFI',
151
- 'OBV',
152
- 'ADL',
153
- 'ADX',
154
- 'PSAR',
155
- 'VOLUME_BAR',
156
- 'BAR_STATISTICS',
157
- // The 2026-10-01 TradingView staples with a plotted series: adjudicated on
158
- // the same session-gapped timeline by cme-ta-pack-sparse-timeline.spec.ts
159
- // (which pins this membership too). Every one reads only the chart's own
160
- // candles through the classic snippets, so they are venue-safe by
161
- // construction. Zig Zag and Pivot Points are held off below.
162
- 'ATR',
163
- 'SUPERTREND',
164
- 'KELTNER',
165
- 'DONCHIAN',
166
- 'WMA',
167
- 'HMA',
168
- 'VWMA',
169
- 'STOCH_RSI',
170
- 'WILLIAMS_R',
171
- 'CMF',
172
- 'AROON',
173
- 'MOMENTUM',
174
- 'ROC',
175
- 'AO',
176
- // The 2026-09-02 indicator-library batch (57 docs), pinned with titles above.
177
- ...CME_OFFICIAL_LIBRARY_DOC_IDS,
178
- ];
179
- /**
180
- * Officials queued behind a known blocker (empty since the TA pack un-Soon;
181
- * kept so the next queued official has a home and the resolver keeps its
182
- * three-verdict shape).
183
- */
184
- export const CME_COMING_SOON_OFFICIAL_SCRIPT_KEYS = [];
185
- /**
186
- * Bundled templates deliberately held OFF governed CME: they read 'blocked'
187
- * through the fail-closed default (the picker says "not available", never
188
- * "Soon"), and this list exists so the curation spec can tell a deliberate
189
- * hold from a template nobody classified.
190
- * - ZIGZAG: draws lines and labels only, so the sparse-timeline proof (which
191
- * asserts plotted series) cannot adjudicate it yet.
192
- * - PIVOT_POINTS: its pivots come from UTC calendar periods (1D / 1W / 1M
193
- * backings), which do not line up with CME trading sessions.
194
- */
195
- export const CME_HELD_OFFICIAL_SCRIPT_KEYS = ['ZIGZAG', 'PIVOT_POINTS'];
196
- /**
197
- * The built-ins whose PROVEN wrun twin (wrun-twins.json `proven`) is also proven on a governed CME
198
- * chart: on CME a new add of one of them mounts the twin at its pin, as on every other venue
199
- * (provenBuiltInTwin, wrun-twins.util), and a twin carried onto CME (a symbol switch, a restore, a
200
- * paste or copy) keeps drawing (isKScriptDisplayBlockedOnExchange). Every other built-in keeps its
201
- * kScript template on CME, and its twin stays walled there. Each key is a CME-allowed built-in
202
- * (CME_ALLOWED_OFFICIAL_SCRIPT_KEYS) with a proven pin; the roster spec holds both.
203
- *
204
- * Proven 2026-10-11 on CME ES1! against the template, twin and template mounted through the
205
- * Indicators dialog: the parity sweep's data, dialog and host layers at 1h and its data layer at 1D
206
- * and 1W, every finding the same as the pair's crypto proof (ADX's extra Price line is the
207
- * template's fill drawn at its colour index, price 0, which its lower pane shows on ES), and the
208
- * coarser Timeframes at the chart interval's values (WRUN-QA-1005/returns/CME-WRUN.md). VOLUME_BAR
209
- * and BAR_STATISTICS joined 2026-10-13 once their twins (0.3.3, 0.1.2) read the kit's size units
210
- * (market.size_unit(), market.notional(): crypto bit-identical, Coin mode equal to the template on
211
- * CME, USD mode priced with the point value, the crypto-only rows closed; SESSION-evidence/units-*.md).
212
- * BIG_TRADES joined the same day by Kyle's rule: its twin counts prints in native size like the
213
- * template (a live-session proof waits for a rig that carries the CME trade tape). VOLUME_BUBBLES joined
214
- * 2026-10-13 with 0.2.4: its profile lane reads `currency: "Auto"` (the host picks the contract profile on a
215
- * contracts market), floors in 1K contracts and drops the "$" there: 227,435/227,435 bubbles equal to the
216
- * template on ES facts (SESSION-evidence/units-p-bubbles.md). Every CME-allowed built-in routes on CME now.
217
- */
218
- export const CME_PROVEN_TWIN_BUILTIN_KEYS = [
219
- 'ADL',
220
- 'ADX',
221
- 'AO',
222
- 'AROON',
223
- 'ATR',
224
- 'BAR_STATISTICS',
225
- 'BIG_TRADES',
226
- 'BOLLINGER_BANDS',
227
- 'CCI',
228
- 'CMF',
229
- 'DONCHIAN',
230
- 'EMA',
231
- 'HMA',
232
- 'ICHI_CLOUD',
233
- 'KELTNER',
234
- 'MACD',
235
- 'MFI',
236
- 'MOMENTUM',
237
- 'OBV',
238
- 'PSAR',
239
- 'ROC',
240
- 'RSI',
241
- 'SMA',
242
- 'STOCH',
243
- 'STOCH_RSI',
244
- 'SUPERTREND',
245
- 'VOLUME_BAR',
246
- 'VOLUME_BUBBLES',
247
- 'VWMA',
248
- 'WILLIAMS_R',
249
- 'WMA',
250
- ];
251
- /** Whether a shipped built-in's proven twin may route and draw on a governed CME chart
252
- * (CME_PROVEN_TWIN_BUILTIN_KEYS). */
253
- export function isCmeProvenTwinBuiltIn(builtInKey) {
254
- return CME_PROVEN_TWIN_BUILTIN_KEYS.includes(builtInKey);
255
- }
256
- /**
257
- * The official kScript DOCS (Mongo-id catalog rows, never a shipped built-in) whose wrun port is also proven on a
258
- * governed CME chart: on CME such a doc lists once, as its port, and every Add of it mounts the package, as on every
259
- * other venue (officialDocPort, wrun-official-doc-port.util). Every other doc keeps its kScript record on CME. Each id
260
- * is a CME-allowed doc (CME_ALLOWED_OFFICIAL_SCRIPT_KEYS) with a roster row (wrun-twins.json); the roster spec holds
261
- * both. A port carried onto CME (a symbol switch, a restore, a paste or copy) is not walled by this list: official
262
- * packages are venue-approved as a class (isKScriptDisplayBlockedOnExchange, the 2026-09-30 exemption).
263
- *
264
- * Proven 2026-10-11 on CME ES1! against the kScript doc, both mounted on the same chart: the parity sweep's data,
265
- * dialog and host layers at 1h and, for the session and calendar docs, its data layer at 1D and 1W, every finding
266
- * judged against the doc's crypto proof and a same-build crypto control (WRUN-QA-1005/returns/CME-DOCS.md). Every
267
- * CME-allowed doc with a port routes here since 2026-10-13. Timeframe Matrix joined last, once its port took the
268
- * newest 18 candles by count and the kit host handed over the session's final higher-timeframe candle (0.1.3,
269
- * kit 0.68.1): 18 candles in every panel with the doc's change badges on a live and a closed-market run
270
- * (SESSION-evidence/units-tfm.md). Kelly Criterion joined 2026-10-13: its one
271
- * hourly difference is the doc's band edge placed inside closed hours (218/218 boxes, 437/437 cells agree).
272
- * Correlation Coefficient is fail-closed on CME in both forms since 2026-10-13 (CME_OFFICIAL_LIBRARY_DOC_IDS).
273
- * Anchored VWAP joined 2026-10-13 once its port 0.1.8 anchored the day at the venue trade-day open
274
- * (market.session_open(), kit 0.65.0; hosted runs admit it since contracts 5.24.0): 394/394 daily cells equal to
275
- * the doc on CME ES1! (SESSION-evidence/p1-lane.md). Thirteen docs whose kScript doc places box and line edges inside the daily break and the weekend (its edge
276
- * arithmetic counts closed hours as bars) route by Kyle's decision of 2026-10-12: the port draws on the traded bars and
277
- * finds the same patterns (SESSION-evidence/p-prep.md). Structure Shift Sweeps and Wave Extensions joined 2026-10-12
278
- * once their ports read the chart interval from the host instead of latching it from the first two bars (0.2.1 / 0.2.2),
279
- * re-proven on CME ES1! at 1h and 1D against the same control. Equal Highs/Lows FVG Breakouts joined the same day by
280
- * Kyle's rule: where the two forms differ because the kScript doc is the defective one, the port routes. Five docs whose
281
- * only CME-side difference was a chart switch acting on one form (All intervals, Hide weekends, Price line,
282
- * Interpolation) route by the same decision; the dead switches are tracked apart from the route.
283
- */
284
- export const CME_PROVEN_TWIN_DOC_IDS = [
285
- '6a97fd111ded35390311d79a', // ABCD Pattern
286
- '6a97fd1a1ded35390311f8a9', // Accumulation/Distribution Ranges
287
- '6a97fce7256da5aa0a647802', // Anchored Market Structure
288
- '6a3e9e98bcac4c00fca767c7', // Anchored VWAP
289
- '6a97fc5329e553889604b08b', // Asian Session Sweeps
290
- '6a97fc1f1ded3539031106c0', // Autocorrelation
291
- '6a97fcfd256da5aa0a64d2b9', // Average Daily Range
292
- '6a97fc5429e553889604b755', // Breakout Tests & Retests
293
- '6a97fcf91ded35390311963d', // Chandelier Exit
294
- '6a97fcfa1ded353903119cd2', // Choppiness Index
295
- '6a97fc1e1ded3539031105e6', // CUSUM Change-Point
296
- '6a97fc5529e553889604bde8', // Equal Highs/Lows FVG Breakouts
297
- '6a97fd02256da5aa0a64e825', // Even Better Sinewave
298
- '6a97fc1c1ded353903110320', // EWMA Volatility
299
- '6a97fd091ded35390311c260', // Execution Benchmarks
300
- '6a97fd101ded35390311d0d2', // Flag Patterns
301
- '6a97fd181ded35390311f0d2', // Flat Base
302
- '6a97fcfe1ded35390311aa9e', // Floor Pivots
303
- '6a97fc5629e553889604c51c', // Gap Fill Breakouts
304
- '6a97fc191ded353903110309', // Garman-Klass
305
- '6a97fcf81ded353903118fa8', // Gator Oscillator
306
- '6a97fd0d29e5538896052257', // Gravestone Doji
307
- '6a97fce6256da5aa0a646eb0', // HTF Stochastic Zones
308
- '6a97fc1d1ded353903110540', // Hurst Exponent
309
- '6a97fcea256da5aa0a648778', // Intrabar Momentum Projection
310
- '6a97fcff29e55388960506a2', // Kagi
311
- '6a97fd07256da5aa0a64f769', // Kelly Criterion
312
- '6a97fcff256da5aa0a64daff', // Line Break
313
- '6a97fce8256da5aa0a648044', // Liquidity Sweeps
314
- '6a97fd0b1ded35390311c8f2', // Marubozu
315
- '6a97fc5229e553889604a816', // Max-Delta Momentum
316
- '69157410734c015375c91630', // Order Book Pressure
317
- '6a97fbcd256da5aa0a63a827', // Parkinson Estimator
318
- '6a97fd0e29e55388960528e9', // Piercing Line
319
- '6a97fd01256da5aa0a64e191', // Point & Figure Counts
320
- '6a97fcef256da5aa0a64a30e', // Prior Day High/Low FVG
321
- '6a97fc2529e5538896049ed7', // Profile Tails
322
- '6a97fd0429e55388960511a0', // R-Squared Trend Fit
323
- '6a97fcf0256da5aa0a64aaaf', // Regime-Filtered RSI
324
- '6a97fd081ded35390311bbcb', // Risk of Ruin
325
- '6a97fc1a1ded353903110311', // Rogers-Satchell
326
- '6a97fc041ded35390310bc68', // SafeZone Stop
327
- '6a97fcf1256da5aa0a64b218', // Session Gap Fill
328
- '6a97fcf2256da5aa0a64b8e3', // Session Sweep + Inverse FVG
329
- '6a97fcf3256da5aa0a64bf78', // Session Sweeps
330
- '6a97fd13256da5aa0a650523', // Shark Pattern
331
- '6a97fc241ded353903110fa9', // Sliding Volume Profile
332
- '6a97fceb256da5aa0a648f51', // Structure Regime Oscillator
333
- '6a97fcec256da5aa0a6495e6', // Structure Scatter Panel
334
- '6a97fced256da5aa0a649c7a', // Structure Shift Sweeps
335
- '6a97fcf41ded35390311806a', // Structure Trend Panel
336
- '6a97fd0f29e5538896052fe8', // Three Methods Patterns
337
- '6a465724528f4104aec7c263', // Timeframe Matrix
338
- '6a42467a3036aaa8d4bbb5be', // Key Levels (openmarket doc; price-derived)
339
- '6a97fcf61ded353903118767', // Value Area Reversion
340
- '6a97fd1b256da5aa0a650dcf', // Volatility Signature Plot
341
- '6a97fcfc1ded35390311a366', // Volume Zone Oscillator
342
- '6a97fd151ded35390311e1c6', // Wave Extensions
343
- '6a97fcf7256da5aa0a64c8c6', // Williams Alligator
344
- '6a97fc1b1ded353903110318', // Yang-Zhang Volatility
345
- ];
346
- /** Whether an official kScript doc's port may route on a governed CME chart (CME_PROVEN_TWIN_DOC_IDS). */
347
- export function isCmeProvenTwinDoc(scriptId) {
348
- return CME_PROVEN_TWIN_DOC_IDS.includes(scriptId);
349
- }
350
- /**
351
- * Classify one official script for CME. `keys` are the entry's stable
352
- * identities (registry subType, officialType, catalog script_id). Display
353
- * titles are deliberately NOT an input: they are author-controlled, so a
354
- * community lookalike named after an allowed official must never classify as
355
- * allowed. Fail-closed: an unrecognized official reads 'blocked', so a newly
356
- * published official ships CME-disabled until deliberately added here.
357
- */
358
- export function classifyOfficialScriptForCme(ref) {
359
- const keys = (ref.keys ?? []).filter((key) => !!key);
360
- if (keys.some((key) => CME_ALLOWED_OFFICIAL_SCRIPT_KEYS.includes(key)))
361
- return 'allowed';
362
- if (keys.some((key) => CME_COMING_SOON_OFFICIAL_SCRIPT_KEYS.includes(key)))
363
- return 'coming-soon';
364
- return 'blocked';
365
- }
366
- /**
367
- * Official catalog-doc ids the venue-policy wall treats as FIRST PARTY for governed data.
368
- * Deliberately a SEPARATE list from CME_ALLOWED_OFFICIAL_SCRIPT_KEYS: the picker list answers
369
- * "is this indicator venue-appropriate on CME?", this one answers "is this code first-party?"
370
- * — membership here mints governed-data access at EVERY door (fetch, payload guard, engine
371
- * policy, layout/suite, alerts), so an id must only be added for docs authored by the official
372
- * account. Registry subTypes (e.g. VOLUME_BUBBLES) never belong here; they are first-party via
80
+ * Official catalog-doc ids the venue-policy wall treats as FIRST PARTY for governed data: it
81
+ * answers "is this code first-party?", and membership here mints governed-data access at EVERY
82
+ * door (fetch, payload guard, engine policy, layout/suite, alerts), so an id must only be added
83
+ * for docs authored by the official account. Registry subTypes (e.g. VOLUME_BUBBLES) never belong here; they are first-party via
373
84
  * TECHNICAL_INDICATOR_SCRIPT_KEY_SET already.
374
85
  */
375
86
  export const CME_FIRST_PARTY_OFFICIAL_DOC_IDS = [
@@ -386,7 +97,7 @@ export const CME_FIRST_PARTY_OFFICIAL_DOC_IDS = [
386
97
  ];
387
98
  /**
388
99
  * Whether a run's `customScriptId` names a first-party official doc. The venue-policy wall
389
- * consults this so a curated official passes the governed-data doors even when a mount's
100
+ * consults this so an official doc passes the governed-data doors even when a mount's
390
101
  * provenance breadcrumbs (scriptSource / transient scriptData) have not landed on the overlay
391
102
  * settings yet — the shipped Order Book Pressure failure: Door F admitted the add, then the
392
103
  * first fetch hit Door D before any stamp existed and suppressed the run as a user script.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The US stocks tape's compliance strings, verbatim English in every locale (like OPRA_DELAY_NOTICE): the CTA
3
+ * Delayed Market Data Policy (§VII(a)) asks that delayed data carry the statement "Delayed 15 minutes" (or "All
4
+ * prices delayed" with a time stamp), and UTP asks for the delay statement at or near the top of the page
5
+ * (UTP Data Policies p.8). The statement goes wherever delayed tape data shows: the delay badge, the chart's source
6
+ * line, and the surfaces the spec lists (product-ecosystem `data-integration/us-equities/ENTITLEMENT.md` §3.4).
7
+ * Never translated, never reworded: a change here is a compliance change.
8
+ */
9
+ export declare const STOCKS_DELAY_STATEMENT = "Delayed 15 minutes";
10
+ /**
11
+ * The consolidated-volume statement (CTA Schedule note 13, UTP Data Policies p.11): shown where tape volume sits
12
+ * beside prices that are not from all markets (the free-lane candles of a US stock chart carrying tape order flow).
13
+ * Reserved for the overlay model; a chart served whole by the tape shows only the delay statement.
14
+ */
15
+ export declare const STOCKS_CONSOLIDATED_VOLUME_STATEMENT = "Real-time quote and/or trade prices are not sourced from all markets.";
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The US stocks tape's compliance strings, verbatim English in every locale (like OPRA_DELAY_NOTICE): the CTA
3
+ * Delayed Market Data Policy (§VII(a)) asks that delayed data carry the statement "Delayed 15 minutes" (or "All
4
+ * prices delayed" with a time stamp), and UTP asks for the delay statement at or near the top of the page
5
+ * (UTP Data Policies p.8). The statement goes wherever delayed tape data shows: the delay badge, the chart's source
6
+ * line, and the surfaces the spec lists (product-ecosystem `data-integration/us-equities/ENTITLEMENT.md` §3.4).
7
+ * Never translated, never reworded: a change here is a compliance change.
8
+ */
9
+ export const STOCKS_DELAY_STATEMENT = 'Delayed 15 minutes';
10
+ /**
11
+ * The consolidated-volume statement (CTA Schedule note 13, UTP Data Policies p.11): shown where tape volume sits
12
+ * beside prices that are not from all markets (the free-lane candles of a US stock chart carrying tape order flow).
13
+ * Reserved for the overlay model; a chart served whole by the tape shows only the delay statement.
14
+ */
15
+ export const STOCKS_CONSOLIDATED_VOLUME_STATEMENT = 'Real-time quote and/or trade prices are not sourced from all markets.';
@@ -13,6 +13,7 @@ import type * as WrunKitHost from '@orangecharts/indicator-kit/host';
13
13
  import type { WrunAttemptOutcome, WrunAttemptStageMs, WrunAttemptToken, WrunChartHandle, WrunChartModeModule, WrunChartPaintMode, WrunChartPaintOptions, WrunChartPaintTarget, WrunChartRoutingModule, WrunChartStoreModule, WrunChartStoreView, WrunCommonStoreModule, WrunConsoleRefusalRun, WrunContinuousContractsModule, WrunContrastGuardContext, WrunDataFetchingModule, WrunDeclaredDepthAsk, WrunDeribitOptionsModule, WrunEditorShellModule, WrunEndOfDataMarkerReason, WrunEngineWorker, WrunEngineWorkerOptions, WrunFailureShow, WrunFeedStreamApi, WrunFeedsServiceModule, WrunHiddenLiveDrainOutcome, WrunHostOverlayRef, WrunIndicatorRegistryModule, WrunIndicatorTypesModule, WrunInputRequirement, WrunIntegrateOptions, WrunIntegrateResult, WrunKitModule, WrunKScriptErrorEnvelopeModule, WrunLegendHoverModule, WrunLiveCoalesceFlush, WrunLiveCoalesceTickDecision, WrunLiveFeedServiceModule, WrunLiveRefreshGateDecision, WrunMarketEventsStoreModule, WrunMetadataServiceModule, WrunOffchartGridHeightsModule, WrunOptionChainServiceModule, WrunOptionsChainVenuesModule, WrunOptionsChartSourceModule, WrunOptionsGateModule, WrunOptionsOverlayProvenanceModule, WrunOverlayMeasureResult, WrunPackEnsureInput, WrunPackEnsureResult, WrunPaneBudgetRankingModule, WrunPlotGateChart, WrunPlotGateRefusal, WrunPriceMarkerTarget, WrunRefreshRowsOptions, WrunRefreshRowsResult, WrunRefusalActionsModule, WrunSearchPayloadToMarketsRequestModule, WrunSignalSheetView, WrunSignalSoundCheck, WrunSocketChartRows, WrunSocketLoadSignals, WrunSocketTransport, WrunSocketTransportModule, WrunSourceCountMetadataLike, WrunSourceDegradeEntry, WrunSourceFetchOptions, WrunStandInTarget, WrunStandInWriteArgs, WrunStandInWriteOutcome, WrunSymbolDisplayModule, WrunTitanChartsModule, WrunTpoBlockCatalogModule, WrunTwinsRosterModule, WrunV2ServiceModule, WrunVenueLegsArgs, WrunVenueLegsResult, WrunWarmupBackfillAsk, WrunWarmupBackfillOutcome, WrunDownloadSummary } from './host-ports.types.js';
14
14
  import type { CmeServedAccess } from './interfaces/cme-realtime.interface.js';
15
15
  import type { WrunDrawSkips, WrunOutputRow } from './interfaces/wrun-runtime.interface.js';
16
+ import type { DisplayOffset } from './utility/chart/display-offset.leaf.js';
16
17
  import type { WrunLatestSnapshot } from './utility/wrun/wrun-latest-snapshot.js';
17
18
  import type { WrunRefusalContext, WrunRefusalOut } from './utility/wrun/wrun-refusal.util.js';
18
19
  /** CHANGED 0.3.0: the shared host names package code reads at run time (slab 1's 11 plus the ones the Phase 1 and
@@ -184,6 +185,50 @@ export interface WrunChartHostEnv {
184
185
  tablesShownInWindow?: (chartIndex: number, overlayId: string) => boolean;
185
186
  /** Optional. The per-order switch (`wrunTapePerOrder` is its one reader); absent reads off, as the sandbox and phone app ship. */
186
187
  tapePerOrder?: boolean;
188
+ /** Optional, read at every run (`wrunHostCarryWithBuild` is its one reader). True: a live full run and a reseed take
189
+ * their input rows and the carry seed their session takes from ONE conversion of the window's lanes
190
+ * (wrun-source-rows.util `buildWrunInputRowsAndCarry`, the same rows and carry). Absent or false: the two steps as
191
+ * before, the build and then the carry advanced from the empty seed, which converts the window again. web: the
192
+ * engine arm `webkit-wrun-carry-with-build` (WebKit and Chromium). The sandbox worker and the phone app never set
193
+ * it. */
194
+ carryWithBuild?: boolean;
195
+ /** Optional. Order flow from the host's own session feed (web: a Rithmic login's prints on the pane whose candles it
196
+ * draws). Absent: no read point composes anything, exactly as before the member (the sandbox worker and the phone
197
+ * app never set it). wrun-session-composition.util is its one reader. */
198
+ session?: WrunHostSession;
199
+ }
200
+ /** A lane the host's session may compose: the tape (fill groups), the sided trades lane in contracts (`trades`) and
201
+ * the same lane in US dollars (`trades_usd`). */
202
+ export type WrunSessionComposedLane = 'tape' | 'trades' | 'trades_usd';
203
+ /** The grid a composition lands on: the run's interval and the chart's market (its calendar, with its session type),
204
+ * the tape's contract floor (`minSize`) and whether the tape reads fill groups (`large`). */
205
+ export interface WrunSessionLaneGrid {
206
+ chartIndex: number;
207
+ intervalMs: number;
208
+ exchange: string;
209
+ market: string;
210
+ /** The chart's `sessionType` at the run (`regular` = RTH-anchored bars above 30m); absent: the full session. */
211
+ sessionType?: string;
212
+ floor: number;
213
+ large: boolean;
214
+ /** The dollar lane's only: the US dollars one contract is worth per whole point of its price
215
+ * (wrunSessionDollarPointValue), so a side of a bar composes at contracts x pointValue x (high + low + close) / 3, as
216
+ * OpenMarket's history prices it. Absent on every other lane. */
217
+ pointValue?: number;
218
+ }
219
+ /** The host's session seams (`WrunChartHostEnv.session`). Package code never writes a lane buffer from them: it reads
220
+ * the composition where a compute reads its rows. */
221
+ export interface WrunHostSession {
222
+ /** The rows a compute reads for `lane`: OpenMarket's before the session's seam, the session's from it, while the
223
+ * session owns the overlay; else `rows` itself (the same reference). The dollar lane without a `pointValue` in
224
+ * its grid answers `rows` itself too. */
225
+ composeLaneRows(indicatorId: string, lane: WrunSessionComposedLane, rows: ReadonlyArray<unknown>, grid: WrunSessionLaneGrid): ReadonlyArray<unknown>;
226
+ /** The composition's identity now (web: the overlay's order-flow generation while owned), else null. A drain's
227
+ * answer computed under another token is discarded. */
228
+ compositionToken(indicatorId: string): number | null;
229
+ /** A live context was installed for the overlay: its lanes may have moved, so the host re-reads whether it may own
230
+ * them. */
231
+ onLiveContextInstalled(indicatorId: string): void;
187
232
  }
188
233
  /** The mounted chart and the host's chart store, as package code reads and writes them. */
189
234
  export interface WrunHostChart {
@@ -394,9 +439,12 @@ export interface WrunHostUser {
394
439
  /** Reserved until 0.4.0, boot. web: useUserStore().settings?.themeMode (store/user); throws when no user store is up
395
440
  * (the panel mount keeps its string check and try/catch, wrun-panel-mount.util.ts:537-545). */
396
441
  themeMode(): unknown;
397
- /** Reserved until 0.4.0, panel-mount binder. web: chartDisplayTimezoneOffsetMs(barIntervalMs)
398
- * (utility/chart/chart-display-timezone.util.ts:32; it reads the user store). */
399
- chartDisplayTimezoneOffsetMs(barIntervalMs?: number): number;
442
+ /** Reserved until 0.4.0, panel-mount binder. web: chartDisplayOffset(barIntervalMs)
443
+ * (utility/chart/chart-display-timezone.util.ts; it reads the user store). Next release: the answer widens from
444
+ * one number to a DisplayOffset (display-offset.leaf), a fixed shift or the shift at each instant, so a time-keyed
445
+ * panel labels each key at its own instant's offset (a zone moves its clock); a host that answers a number keeps
446
+ * one shift for every key. */
447
+ chartDisplayTimezoneOffsetMs(barIntervalMs?: number): DisplayOffset;
400
448
  /** 0.5.0, boot. web: useUserStore().settings?.isDarkMode (store/user.ts; the executor keeps its try and typeof check,
401
449
  * :9631-9638). */
402
450
  isDarkMode(): unknown;
@@ -573,6 +621,10 @@ export declare function wrunHostLeavesTablesToWindow(chartIndex: number | undefi
573
621
  * that never set the member, and before the realm's entry set the env. Read when a request, a print or a run head
574
622
  * asks, never at module load; `wrunTapePerOrder` (utility/wrun/wrun-tape-per-order.util) is its one reader. */
575
623
  export declare function wrunHostTapePerOrder(): boolean;
624
+ /** Whether the realm's host builds a run's rows and its session's carry from one conversion
625
+ * (`WrunChartHostEnv.carryWithBuild`): false for a host that never set the member, and before the realm's entry set
626
+ * the env. Read at every run, never at module load. */
627
+ export declare function wrunHostCarryWithBuild(): boolean;
576
628
  /** The error a host's `sharedHost()` throws before its load. */
577
629
  export declare function wrunChartHostUnloadedError(): Error;
578
630
  /** The shared host now, or its load: `undefined` once the env's `sharedHost()` answers, else the env's
package/dist/host-env.js CHANGED
@@ -41,6 +41,12 @@ export function wrunHostLeavesTablesToWindow(chartIndex, overlayId) {
41
41
  export function wrunHostTapePerOrder() {
42
42
  return hasWrunChartHostEnv() && wrunChartHostEnv().tapePerOrder === true;
43
43
  }
44
+ /** Whether the realm's host builds a run's rows and its session's carry from one conversion
45
+ * (`WrunChartHostEnv.carryWithBuild`): false for a host that never set the member, and before the realm's entry set
46
+ * the env. Read at every run, never at module load. */
47
+ export function wrunHostCarryWithBuild() {
48
+ return hasWrunChartHostEnv() && wrunChartHostEnv().carryWithBuild === true;
49
+ }
44
50
  /** The error a host's `sharedHost()` throws before its load. */
45
51
  export function wrunChartHostUnloadedError() {
46
52
  return new Error('wrun_chart_host_unloaded');
@@ -207,6 +207,16 @@ export interface WrunOptionsOverlayProvenanceModule {
207
207
  * next chart load reads to prepare the plane's access before an add asks (web: `noteGatePlaneOptionsRead`). Read by
208
208
  * the add's own door (run-schedule/wrun-gate-reader-warm.util); a host that binds none keeps no stamp. */
209
209
  noteGatePlaneOptionsRead?(): void;
210
+ /** CHANGED (next release, optional): the CME provenance writer on both settings copies (web:
211
+ * cme-overlay-provenance.util `setOverlayCmeProvenance`, re-exported beside the OPRA one), which an adopted warm
212
+ * switch session restores (its fetch door does not run again). A host that binds none adopts no session that read
213
+ * CME. */
214
+ setOverlayCmeProvenance?(chartIndex: number, overlayId: string, cme: boolean): void;
215
+ /** CHANGED (next release, optional): the US stocks tape's provenance of a source the run reads past the chart's fetch
216
+ * door (a `stocks` row lane's own fetch, `dark_pool`), by the source's name: the tape it reads, or null when the run
217
+ * planned none (web: titan-charts `syncWrunStockTapeLaneProvenance`, the per-source tape sync the fetch door runs for
218
+ * a tape read, on both settings copies). A host that binds none keeps no tape stamp for such a lane. */
219
+ setOverlayStockTapeProvenance?(chartIndex: number, overlayId: string, source: string, exchange: string | null): void;
210
220
  }
211
221
  /** Loader view of the indicator registry: a control by its type, for its live subscription (web:
212
222
  * indicators/indicator-registry.ts, a Map of `IIndicatorControl`). */
@@ -1160,9 +1170,14 @@ export interface WrunWarmupEvidence {
1160
1170
  /** The bar the result's declared warm-up ends at, null or absent when it declares none. */
1161
1171
  declaredWarmupEndTs?: number | null;
1162
1172
  /** Where the rows of the result's history sources begin at the clock (sources/wrun-row-lanes.util
1163
- * `wrunRunSourceReachFromMs`), null or absent when unknown or when a source reads without a reach: a first value
1164
- * that history explains buys no page ('source-reach'). */
1173
+ * `wrunRunSourceReachFromMs`: a declared reach or an every-bar answer per lane), null or absent when unknown: a
1174
+ * first value that history explains buys no page ('source-reach'). */
1165
1175
  sourceReachFromTs?: number | null;
1176
+ /** A source's recovery can still rerun it (its degrade entry pending, or degraded and not terminal); absent,
1177
+ * `!sourcesSettled`. */
1178
+ sourcesLanding?: boolean;
1179
+ /** Whether the run's rows hold the sheet's declared warm-up and its slack, null or absent when none is declared. */
1180
+ declaredWarmupCovered?: boolean | null;
1166
1181
  }
1167
1182
  /** A warm-up backfill ask after a run (web: `LocalKScriptWarmupBackfillAsk`; the engine is the chart handle). */
1168
1183
  export interface WrunWarmupBackfillAsk {
@@ -1192,7 +1207,7 @@ export interface WrunWarmupBackfillAsk {
1192
1207
  * `LocalKScriptWarmupBackfillOutcome`; the reasons of local-kscript-warmup-depth.util.ts and the decider's own). */
1193
1208
  export interface WrunWarmupBackfillOutcome {
1194
1209
  requested: boolean;
1195
- reason: 'warmup-visible' | 'no-values-yet' | 'declared-depth' | 'no-rows' | 'no-viewport' | 'warmup-offscreen' | 'gap-too-small' | 'rounds-exhausted' | 'left-exhausted' | 'gesture-active' | 'sources-pending' | 'zero-lookback-empty' | 'source-reach' | 'no-dense-output' | 'no-progress' | 'page-pending';
1210
+ reason: 'warmup-visible' | 'no-values-yet' | 'declared-depth' | 'no-rows' | 'no-viewport' | 'warmup-offscreen' | 'gap-too-small' | 'rounds-exhausted' | 'left-exhausted' | 'gesture-active' | 'sources-pending' | 'zero-lookback-empty' | 'source-reach' | 'no-values-declared-covered' | 'no-dense-output' | 'no-progress' | 'page-pending';
1196
1211
  roundsUsed: number;
1197
1212
  range?: {
1198
1213
  startTs: number;
@@ -1380,6 +1395,11 @@ export interface WrunEngineWorkerDeath {
1380
1395
  status: number | null;
1381
1396
  /** Whether the worker had proven itself up before it died. */
1382
1397
  ready: boolean;
1398
+ /** How the script arrived, read before the incarnation ended (optional: hosts built before it leave it out). */
1399
+ arrival?: WrunWorkerScriptArrival;
1400
+ /** The visible time the deadline clock running at the death had counted: the whole deadline for a `ready-timeout`,
1401
+ * the current stage's elapsed time for another death, 0 with no deadline running (optional, as `arrival`). */
1402
+ visibleMs?: number;
1383
1403
  }
1384
1404
  /** What the run host asks of its engine worker (web: worker-factory.util.ts `ManagedWorkerOptions`, the `readiness`,
1385
1405
  * `onMessage` and `onDead` it sets; the chunk failure `source` is an app union the web binder supplies). */
@@ -1404,6 +1424,19 @@ export interface WrunEngineWorker {
1404
1424
  readonly scriptUrl: string | null;
1405
1425
  /** The HTTP status the browser recorded for the script, null when it recorded none. */
1406
1426
  scriptStatus(): number | null;
1427
+ /** How the script arrived, from the same Resource Timing entry as the status (null fields: unknown). */
1428
+ scriptArrival(): WrunWorkerScriptArrival;
1429
+ }
1430
+ /** A worker script's arrival as Resource Timing recorded it (web: worker-factory.util.ts `WorkerScriptArrival`). */
1431
+ export interface WrunWorkerScriptArrival {
1432
+ /** An entry exists (true), a live observer has seen none (false), or nothing watches (null). */
1433
+ arrived: boolean | null;
1434
+ /** responseEnd minus startTime, rounded ms. */
1435
+ loadMs: number | null;
1436
+ /** No bytes on the wire for a body that arrived: the HTTP cache. */
1437
+ fromCache: boolean | null;
1438
+ /** responseStatus (Resource Timing Level 3). */
1439
+ status: number | null;
1407
1440
  }
1408
1441
  /** Loader view of the socket transport's web half: its evaluation binds the socket members (web:
1409
1442
  * utility/wrun/wrun-socket-transport.ts). */