@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
package/README.md CHANGED
@@ -128,6 +128,7 @@ What each published version holds. A host installs a version with the peers of i
128
128
 
129
129
  | Version | Peers | What changed |
130
130
  | --- | --- | --- |
131
+ | 0.12.0 | `@orangecharts/indicator-kit` 0.107.0, `@orangecharts/orange-v2-pb-common` 12.80.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | Contract F on `options_flow`: an input's `underlying` (`"auto"`, `"derived"`, a root in capitals or `"@<param>"`) reads that root's flow under scopes `ticker` and `prints` (`WRUN_UNDERLYING_CLASSES` gains `options_flow`). `utility/wrun/derived-roots.util` holds the planner step both planners call (`planWrunLaneUnderlying`, `WrunLaneUnderlyingPlan`, where the row lanes kept their own copy); `planWrunPollLanes` plans a root's input against the root's market and names the market in the instance's extras (`WRUN_POLL_LANE_UNDERLYING_FIELD`, `underlyingMarket`), so an `"auto"` input and a root's input are two instances, and an `"auto"` input's key is unchanged. The flow lane resolves one chart per run and market (a root's input never reads the chart's chain) and refuses a root beside a scope that spans underlyings by `wrun_option_knob_invalid` in om's words (`utility/wrun/wrun-options-flow-underlying.leaf`, a new module off the boot path: `WRUN_OPTIONS_FLOW_UNDERLYING_SCOPES`, `wrunOptionsFlowUnderlyingScopeTakes`), as `wrunUnderlyingKnob` does before any market. The knob's grammar (`wrunUnderlyingKnobOf`, `wrunUnderlyingSettingName`) moves to `utility/wrun/derived-roots.leaf`, re-exported by `derived-roots.util`, and the painted sheet writes a setting's pick into `underlying` (`laneWordWrites`, through `wrun-color-settings.util` `wrunSelectPickWord`, the read `resolveWrunUnderlyingSettingKnob` shares); availability (`wrunInputRequirements`) still judges every options read on the chart's own chain. `planWrunLaneUnderlying`, `wrunUnderlyingRootOf`, `wrunUnderlyingUnresolvedError` and `resolveWrunUnderlyingMarket` take the planner's fills last (optional, a celled input's `["empty"]` by default; `resolveWrunUnderlyingMarket` keeps `chartChain` fourth), so a refusal names the fill the input may declare. `wrunMetadataSourceCount` keys `options_flow` by its `underlying` too, and another root's print sums ride no print read's slot. The kit peer moves from 0.105.0 to 0.106.5 and the protocol enums peer from 12.78.0 to 12.79.0. The package commits landed since 0.11.0 ride along (`git log 099b00cf4f.. -- packages/wrun-chart-host` in the web repo). |
131
132
  | 0.11.0 | `@orangecharts/indicator-kit` 0.105.0, `@orangecharts/orange-v2-pb-common` 12.78.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | D-DEDUPE phase 1b, the book folds on `options_chain`: an input's `page_view` / `page_views` may name the data plane's folds of the chain page's whole book (`numbers`, `vol_term`, `smile`, `surface`, `strike_profile`; kit scaffold 105), the numbers the built-in options panes draw. `utility/wrun/wrun-option-views.util` copies the kit's book tables, pinned to it (`WRUN_OPTION_BOOK_VIEWS`, `WRUN_OPTION_BOOK_VIEW_ROW_WIDTHS`, `WRUN_OPTION_BOOK_EXPIRIES_TAKES`, `WRUN_OPTION_BOOK_SCOPE_TAKES`, and `WRUN_OPTION_BOOK_SHARED_KNOBS`, the knobs a view of the block shares with a book fold) and rules (`wrunOptionViewWordsRowWidth`, `wrunOptionViewRowWidthsOf`, `wrunOptionViewsReadBlock`, `wrunOptionBookViewIssue`); the answer's half, `utility/wrun/wrun-option-book-rows.util` (`WRUN_OPTION_BOOK_LAYOUTS`, `WRUN_OPTION_BOOK_LAYOUT_WIDTHS`, `WRUN_OPTION_BOOK_STAMP_VERSION`, `wrunOptionBookViewRows`, `wrunOptionIsBookLayout`), loads with a host's chain transport alone, out of what the chart parses before its first candle; `wrunOptionViewSpec` answers a book word's spec, `WrunOptionKnobSpec` takes `zero` (a book fold's part turned off) and `WrunOptionView.view` widens to `WrunOptionPageViewWord`. A book fold plans (`wrunOptionViewsOfSource` judges its knobs by the kit's rules, `wrun_option_knob_invalid`; `wrunOptionViewUnread` still refuses the folds of the block, which read the chart's close), and its ask carries each view's declared params alone: `wrunOptionViewLaneFields` and `wrunOptionViewAskFieldsOf` drop the expiries word and the max-contracts size from an ask of book folds alone, and keep them for a mixed ask's views of the block. The input's block is the view block at the widest of its words (`wrunOptionInputTupleWidth`, `wrunOptionLaneTupleWidth`: 11, 12, 13 or 16 values a row). `wrunOptionViewsUnion` refuses by name one lane's inputs that read a book fold and different views (`wrun_option_book_views_one_ask`: the lane asks their union once, and a book row names no input) and a union of more than 16 views (`wrun_option_views_too_many`, the data plane's most). A host's chain transport lays an answer's book entries out with `wrunOptionBookViewRows` (one book stamp row, then each fold's rows; its refusals by name) and asks a book fold at no bar (web: the `k-options-chain` worker, keyed as the built-in panes and the Options panel head key the same folds, one read for all). The kit peer moves from 0.103.1 to 0.105.0. The package commits landed since 0.10.0 ride along (`git log 357b44995c.. -- packages/wrun-chart-host` in the web repo). |
132
133
  | 0.10.0 | `@orangecharts/indicator-kit` 0.103.1, `@orangecharts/orange-v2-pb-common` 12.78.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | OPRA on the package side: stock perps and tokenized stocks read their stock's OPRA chain (`derived-roots.util`, `sources/opra-option-lanes.util`, `wrun-chart-gate-reader.util`); the OPRA plane's user-script decision (`kscript-venue-policy.util` `isOpraUserScriptRun`, the `opra-user-scripts` flag, `opra-user-scripts-gate.util`, `opra-read-access.leaf`, `wrun-opra-lane.util`); the OPRA registration path is gone (the gate registers delayed access itself on the first refusal, a refused read ends as the gated `opra-registration` outcome); the OPRA agreement notice shows once per app open; the chart's OPRA reader is dialled at chart load. `FeatureFlag` gains `Opra`, `OpraUserScripts` and `OpraAlerts`. Options: CME option reads group on the gateway's session and regular-hours anchors and name the chain's venue at every grouping call, and weekend rows of CME products that trade around the clock stay; the strike kit's gamma curve row; strike velocity wire decode; Options GEX levels in the chart's ink; the Options Heatmap's nodes look, dealer-flow metrics and first-paint reads (crypto, CME, OPRA); Skylit-parity node levels, boards and flow score; one numbers convention across the options panes; the heatmap's crypto arm can read the server strike rows (internal switch). wrun runs: every byte a run downloads is counted and reported on the attempt, an over-budget indicator reads its newest bars first and stops near 1 MB, one download budget per add, a folded read is bounded by its share; Big Trades floors CME charts in contracts and sizes in dollars or the market's own unit, and judges the size floor per aggressor order behind one switch; a row lane draws its newest sessions first; a colour member's `when` gate reaches its swatch and a row's `when` gate reads one clause over another row's value; house look and dismissal for HUD cards and panels; the order-flow family is refused on option contract charts; a gate reader that stops delivering is re-asked. Tools: Path line width and style, tool tables regenerated from chart-schema 0.5.2. The kit peer moves from 0.91.1 to 0.103.1 and the protocol enums peer from 12.73.0 (what npm's 0.9.0 declares; the 0.9.0 row says 12.72.0) to 12.78.0. The package commits landed since 0.9.0 ride along (`git log a840defa10.. -- packages/wrun-chart-host` in the web repo). |
133
134
  | 0.9.0 | `@orangecharts/indicator-kit` 0.91.1, `@orangecharts/orange-v2-pb-common` 12.72.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | OPTLOAD G5 folds on `option_contract_state`: an input may declare `totals` and `strike_change` (Top Contracts' totals) beside its projections. They plan and ride the lane's ask as view fields like a projection (`wrunOptionViewsOfSource`; `wrunOptionViewsOf` reads them back), and the input's block is the view block its words size (`wrunOptionInputTupleWidth`: each class tuple `[0, ...13 values]`, then each fold row `[layout, ...cells]`, every row padded to 16). An instance's rows are sized the same way on the fetch path: `wrunOptionLaneTupleWidth` reads a view block's width off the views it asks (`<prefix>Views`, the kit's `wrunAskTupleWidth`), where it knew only the strike kit fold. A host's chain transport reads such an answer's fold entries as that block, and on a plane that serves no views answers it from the kit's reference (`wrunOptionViewAnswer`; web: the `k-option-contract-state` worker on a crypto chain). `wrunOptionViewUnread` (new) names what still refuses by name before any read (`wrun_option_view_unread`): an `options_chain` fold, and `oi_board`, which follows the chart's close that the state lane does not send. Peers unchanged. The package commits landed since 0.8.0 ride along (`git log a5411df71f.. -- packages/wrun-chart-host` in the web repo). |
@@ -5,13 +5,14 @@ export declare const FeatureFlag: {
5
5
  readonly PulseMain: "pulse-main";
6
6
  readonly OmBoard: "om-board";
7
7
  readonly ChartClips: "chart-clips";
8
- readonly ScriptOffers: "script-offers";
9
8
  readonly PaperTrading: "paper-trading";
10
9
  readonly LighterExecution: "lighter-execution";
11
10
  readonly FuturesTrading: "futures-trading";
12
11
  readonly FuturesByofChart: "futures-byof-chart";
13
12
  readonly FuturesByofDepth: "futures-byof-depth";
14
13
  readonly FuturesByofHistory: "futures-byof-history";
14
+ readonly FuturesNinjaTrader: "futures-ninjatrader";
15
+ readonly FuturesNinjaTraderData: "futures-ninjatrader-data";
15
16
  readonly CoinbaseDerivativesExecution: "coinbase-derivatives-execution";
16
17
  readonly PolymarketExecution: "polymarket-execution";
17
18
  readonly TradingHub: "trading-hub";
@@ -23,8 +24,6 @@ export declare const FeatureFlag: {
23
24
  readonly ToolsDelta: "tools-delta";
24
25
  readonly FreeTrial: "free-trial";
25
26
  readonly MyAccess: "my-access";
26
- readonly KscriptTwinConvert: "kscript-twin-convert";
27
- readonly KscriptSunset: "kscript-sunset";
28
27
  readonly WrunRegistryDev: "wrun-registry-dev";
29
28
  readonly RegistrySession: "registry-session";
30
29
  readonly SharingHub: "sharing-hub";
@@ -43,7 +42,6 @@ export declare const FeatureFlag: {
43
42
  readonly OptionsPanel: "options-panel";
44
43
  readonly OpraUserScripts: "opra-user-scripts";
45
44
  readonly CmeUserScripts: "cme-user-scripts";
46
- readonly OpraAlerts: "opra-alerts";
47
45
  readonly PlusUsdcAutopay: "plus-usdc-autopay";
48
46
  readonly EmsHyperliquid: "ems-hyperliquid";
49
47
  readonly AgentsSurface: "agents-surface";
@@ -60,6 +58,7 @@ export declare const FeatureFlag: {
60
58
  readonly StoreBuiltinRows: "store-builtin-rows";
61
59
  readonly OptionsAccessPrewarm: "options-access-prewarm";
62
60
  readonly WrunDownloadBudgetCut: "wrun-download-budget-cut";
61
+ readonly WrunConvergingPrefix: "wrun-converging-prefix";
63
62
  };
64
63
  export type FeatureFlagKey = (typeof FeatureFlag)[keyof typeof FeatureFlag];
65
64
  export declare const FEATURE_FLAG_KEYS: FeatureFlagKey[];
@@ -39,11 +39,6 @@ export const FeatureFlag = {
39
39
  // open it up. Off, a voiced card is a silent Replay card (the replay opens without the voice and the track). Orange's
40
40
  // upload route stays behind `om-board`.
41
41
  ChartClips: 'chart-clips',
42
- // Author-side script offers ONLY (the "Offer to a client" entry in the
43
- // publish dialog's grant strip). The operator inbox, placements, and
44
- // notification renderers are clientId-gated and data-dormant, so they ship
45
- // ungated; this key holds back the one retail-reachable producer.
46
- ScriptOffers: 'script-offers',
47
42
  // Paper trading, the virtual `paper` venue (docs/features/cex-execution/README.md, "Virtual venue:
48
43
  // paper"). Rides this key, read through `isOn` (`isPaperTradingOn`):
49
44
  // unminted, absent and guest all read off, so production ships it dark; an internal role reads it
@@ -77,6 +72,13 @@ export const FeatureFlag = {
77
72
  // - the newest gap of a delayed chart filled from Rithmic's history plant; historical data is
78
73
  // outside what Rithmic has permitted (conformance Q13), so dark until it is.
79
74
  FuturesByofHistory: 'futures-byof-history',
75
+ // NinjaTrader (Tradovate) as a futures broker on top of `futures-trading`: the OAuth link, order routing from
76
+ // the chart and account sync, on the Staging key until a production key exists. Read through `isOn`: unminted,
77
+ // absent and guest all read off; the localStorage override lights it (`{"futures-ninjatrader": true}`).
78
+ FuturesNinjaTrader: 'futures-ninjatrader',
79
+ // The live quote alone from the user's own NinjaTrader market data, on top of `futures-ninjatrader` (candles, the
80
+ // book and history are OpenMarket's); dark until NinjaTrader confirms how a user's own subscription may show here.
81
+ FuturesNinjaTraderData: 'futures-ninjatrader-data',
80
82
  // Coinbase derivatives execution (the Deribit engine for non-US accounts; Kyle 2026-10-23 took it
81
83
  // off the paper trading key to hide it). Its own key, read through `isOn` by `isCexVenueFlagOn`, in
82
84
  // Lighter's shape: unminted, absent and guest all read off, internal roles included (no document,
@@ -139,31 +141,6 @@ export const FeatureFlag = {
139
141
  ToolsDelta: 'tools-delta',
140
142
  FreeTrial: 'free-trial',
141
143
  MyAccess: 'my-access',
142
- // Saved built-in kScript rows (RSI, EMA, SMA, ...) swapped in place for their
143
- // PROVEN `@om-core` twins at the chart's boot tail, settings carried, the
144
- // original row kept inside the twin row as `kscriptOrigin` for an exact
145
- // revert (plan KSCRIPT-TWIN-CONVERT-PLAN.md, docs/features/kscript/twin-conversion.md).
146
- // PERCENT flag in the perf-gesture-y-envelope shape: the user service buckets
147
- // each account against `rolloutPercent` on the doc (a stable per-user hash;
148
- // internal roles are NOT bypassed on a percent flag) and the FE receives a
149
- // boolean. Read with `isOn` semantics only: absent, unminted and unloaded all
150
- // read false; no DEV_FORCED_FLAGS and no GUEST_DEFAULT_FLAGS entry (a guest
151
- // has no workspace to convert). Read ONLY by
152
- // src/services/kscript-twin-convert.service.ts at the boot tail, and only once
153
- // the flag map is `loaded && !fetchFailed` (a failed fetch converts nothing).
154
- // QA: `localStorage.setItem('kiyo.flag-overrides', '{"kscript-twin-convert":true}')`
155
- // (dev builds and internal roles). Mint by Benjamin or Kyle in the admin
156
- // panel, `enabled: false`, then `rolloutPercent: 10`; the readout decides 50
157
- // and 100. Kill = PATCH `enabled: false` or `rolloutPercent: 0` on the doc:
158
- // a converted row reverts to its original row at its NEXT boot (the flag is
159
- // read at the boot tail, never mid-session), one reconcile save per chart.
160
- KscriptTwinConvert: 'kscript-twin-convert',
161
- // KSCRIPT-SUNSET (Kyle 2026-10-29): the one flag doc of the kScript retirement. UNMINTED = the "Retires in
162
- // {n} days" chip shows for everyone before KSCRIPT_RETIRED_AT and the cut lands on the date; minted with a
163
- // percent = the chip's ladder only (the cut is never laddered); minted `enabled: false` = the kill (today's
164
- // behaviour byte for byte while the engine still ships; read through isExplicitlyOff, handed to
165
- // utility/chart/kscript-sunset.util by the chart store). No DEV_FORCED_FLAGS and no GUEST_DEFAULT_FLAGS entry.
166
- KscriptSunset: 'kscript-sunset',
167
144
  // Developer tools of the Indicators tab (add a package by exact name, this
168
145
  // browser's publish receipts). Read ONLY through the dev/internal
169
146
  // localStorage override (`kiyo.flag-overrides` -> `{"wrun-registry-dev": true}`,
@@ -260,8 +237,9 @@ export const FeatureFlag = {
260
237
  // chart (footprint, profiles, TPO, the CVD family read the ticker's tape market, utility/stocks/stock-tape-overlay.util),
261
238
  // time and sales, the exchange list, the $19 add-on surfaces, and the price alert redirect onto the free lane
262
239
  // (src/utility/alerts/stocks-alert-target.util.ts). Minted dark; read through `usEquitiesFullEnabled()` /
263
- // `useUsEquitiesFull()` (src/utility/stocks/us-equities-flag.util.ts) with `isOn`, so unminted, absent and guest
264
- // read off and production ships it dark; with it off nothing in the app changes. The data tier is the stocks gate's
240
+ // `useUsEquitiesFull()` (src/utility/stocks/us-equities-flag.util.ts) with `isOn`, so unminted and absent read off;
241
+ // a guest reads the app's guest table (src/constants/guest-default-flags.constants.ts, on since the 2026-11-05
242
+ // launch). With it off nothing in the app changes. The data tier is the stocks gate's
265
243
  // (905 s delayed for everyone today) and never flips with this flag. QA:
266
244
  // `localStorage.setItem('kiyo.flag-overrides', '{"us-equities-full":true}')`.
267
245
  UsEquitiesFull: 'us-equities-full',
@@ -305,27 +283,21 @@ export const FeatureFlag = {
305
283
  OpraUserScripts: 'opra-user-scripts',
306
284
  // User-authored chart studies on CME (wrun CME Chart Studies), the browser lane only. While lit, a script the
307
285
  // browser runs that the viewer wrote or added from the community (a kScript user script or editor draft, an
308
- // Indicator draft, a community package) reads CME futures data at the viewer's own entitlement: the display wall,
309
- // the data wall and the engine policy lift for it on the CME plane only (kscript-venue-policy.util
310
- // `isCmeUserScriptRun`, the one decision), and only for a viewer the CME plane serves (signed in, not a guest, the
311
- // CME data terms not blocked; delayed and real-time both count, the tier is the gate's). Both facts reach the
312
- // worker-safe venue policy through cme-user-scripts-gate.util (closed in a worker, for a guest and before a reader
313
- // is handed over). What stays refused whatever it says: hosted (Cloud) runs and protected scripts, indicator alerts
314
- // (price alerts are unchanged), strategies and backtests, the export of a study's results (console copies, clips),
315
- // agent reads (chart_read and the MCP withhold the stamped study) and the publish cover's capture of a chart that
316
- // carries CME data. A move of the flag, the account, the terms, the served access or the session stops a running
317
- // study in place and keeps its source and settings. To be minted dark (admin panel); read with `isOn` (absent,
318
- // unloaded and guest read off) and never read server-side: kscript-backend denies CME to every user run whatever it
319
- // says. QA: `localStorage.setItem('kiyo.flag-overrides', '{"cme-user-scripts":true}')`.
286
+ // Indicator draft, a community package) reads CME futures data at the viewer's own entitlement, and on a CME chart
287
+ // its CME options chains (the chart's own, another CME root's through `underlying`): the display wall, the data
288
+ // wall and the engine policy lift for it on the CME plane only (kscript-venue-policy.util `isCmeUserScriptRun`, the
289
+ // one decision; a chain wall reads `mayReadCmeChain`), and only for a viewer the CME plane serves (signed in, not
290
+ // a guest, the CME data terms not blocked; delayed and real-time both count, the tier is the gate's). Both facts
291
+ // reach the worker-safe venue policy through cme-user-scripts-gate.util (closed in a worker, for a guest and before
292
+ // a reader is handed over). What stays refused whatever it says: hosted (Cloud) runs and protected scripts, a CME
293
+ // chain read from a chart off CME, indicator alerts (price alerts are unchanged), strategies and backtests, the
294
+ // export of a study's results (console copies, clips), agent reads (chart_read and the MCP withhold the stamped
295
+ // study) and the publish cover's capture of a chart that carries CME data. A move of the flag, the account, the
296
+ // terms, the served access or the session stops a running study in place and keeps its source and settings. To be
297
+ // minted dark (admin panel); read with `isOn` (absent, unloaded and guest read off) and never read server-side:
298
+ // kscript-backend denies CME to every user run whatever it says. QA:
299
+ // `localStorage.setItem('kiyo.flag-overrides', '{"cme-user-scripts":true}')`.
320
300
  CmeUserScripts: 'cme-user-scripts',
321
- // Alerts on US options (UW-PARITY H3, the OPRA server lanes): while lit, a viewer the OPRA gate serves real-time
322
- // can set a price alert or an Indicator alert on a US option contract, which the alerts engine evaluates on its
323
- // OPRA lane (the contract's own candles, for the alert's owner alone). Off: today's refusal on every alert door.
324
- // Lit and delayed: the delayed variant with its one way out (the OPRA real-time page). Read through the one door
325
- // (`opraAlertDoorVerdict`, src/utility/alerts/opra-alert-door.util.ts). The server lanes read the same key for the
326
- // alert's owner (tharamine's internal per-user read), so a door the chart opens is one the engine admits. To be
327
- // minted dark (admin panel); QA: `localStorage.setItem('kiyo.flag-overrides', '{"opra-alerts":true}')`.
328
- OpraAlerts: 'opra-alerts',
329
301
  // Kiyo Plus billed in USDC on Solana, auto-renewing (plan: PLUS-USDC-AUTOPAY-PLAN.md).
330
302
  // Gates every surface of the lane: the third method button on /plus, the on-chain
331
303
  // subscribe dialog, the on-chain billing card, and the USDC purchase mode in the
@@ -433,6 +405,16 @@ export const FeatureFlag = {
433
405
  // dark until Kyle switches it on; the dev/internal localStorage override lights it for a rig (`kiyo.flag-overrides` ->
434
406
  // `{"wrun-download-budget-cut": true}`).
435
407
  WrunDownloadBudgetCut: 'wrun-download-budget-cut',
408
+ // Converging warm-up stamps (STAMPS round A, docs/features/kscript/wrun/wrun-browser-runtime.md, "Exact warm-up
409
+ // sessions"): a package whose sheet carries `history_warmup` of kind `converges` (a recursion the build's gate
410
+ // certified to agree within 1e-6 once W accepted inputs ran) gets a hidden head of W candles on every run, and its
411
+ // pan-back pages land as prefix runs whose overlap proof compares the row outputs within that tolerance. Off, a
412
+ // converging stamp of any shape reads as no stamp before anything else reads it (no head, no session, no admission:
413
+ // the run is today's; the capability ring line alone names the kind). Read through `isOn` (the overlay run's
414
+ // `wrunConvergingPrefixOn`): unminted, absent and guest all read off, so production ships it dark until round B
415
+ // proves it on a rig; the dev/internal localStorage override lights it for a rig (`kiyo.flag-overrides` ->
416
+ // `{"wrun-converging-prefix": true}`).
417
+ WrunConvergingPrefix: 'wrun-converging-prefix',
436
418
  };
437
419
  export const FEATURE_FLAG_KEYS = Object.values(FeatureFlag);
438
420
  /**
@@ -81,7 +81,7 @@ export declare const FEATURE_LIMITS: {
81
81
  readonly plus: true;
82
82
  };
83
83
  readonly paneMerge: {
84
- readonly free: false;
84
+ readonly free: true;
85
85
  readonly plus: true;
86
86
  };
87
87
  readonly cmeL3OrderFlow: {
@@ -84,10 +84,11 @@ export const FEATURE_LIMITS = {
84
84
  replayBookLayers: { free: true, plus: true },
85
85
  topCallersMyList: { free: false, plus: true },
86
86
  hyperliquidAddress: { free: false, plus: true },
87
- // Pane merge (shared off-chart panes + stacked member axes) is Plus-only.
88
- // The engine-side acceptance gate (settings.paneMergeEnabled) enforces
89
- // restores; this row gates the merge CLICK and the scale menu.
90
- paneMerge: { free: false, plus: true },
87
+ // Pane merge (shared off-chart panes + stacked member axes) is open to every
88
+ // plan since 2026-11-03 (it was never meant to be Plus). The row still feeds
89
+ // the engine-side acceptance gate (settings.paneMergeEnabled), the merge
90
+ // click and the scale menu, so all three answer from here.
91
+ paneMerge: { free: true, plus: true },
91
92
  // CME L3 order flow (Orders column, strong levels, detector events, MBO
92
93
  // Blocks, chart level badges) is Plus-only. The surfaces gate on
93
94
  // isL3Entitled(), which is hasFeature('cmeL3OrderFlow') → THIS row, behind
@@ -32,3 +32,10 @@ export declare const HEALTH_POLLING_INTERVAL = 60000;
32
32
  export declare const TOKEN_POLLING_INTERVAL = 60000;
33
33
  export declare const NOTIFICATION_POLLING_INTERVAL = 60000;
34
34
  export declare const WEBSOCKET_PING_INTERVAL_MS = 10000;
35
+ /**
36
+ * Silent ping intervals a socket may go with no inbound frame of any kind before it is judged dead (its silence
37
+ * window is its own ping cadence times this). The number is the repo's measured one, not a new one: the worker's
38
+ * gatePing rule (the CME gate kicks a silent connection at about 61 s) and Hyperliquid's 3 x HL_VENUE_KEEPALIVE_MS.
39
+ * One liveness rule for every socket: a missed pong only prompts the check (wire-liveness-verdict.util).
40
+ */
41
+ export declare const SOCKET_SILENT_INTERVALS = 3;
@@ -119,3 +119,10 @@ export const HEALTH_POLLING_INTERVAL = 60000; // 60 seconds while visible; parke
119
119
  export const TOKEN_POLLING_INTERVAL = 60000; // 60 seconds while visible; parked while hidden
120
120
  export const NOTIFICATION_POLLING_INTERVAL = 60000; // 60 seconds
121
121
  export const WEBSOCKET_PING_INTERVAL_MS = 10000; // 10 seconds
122
+ /**
123
+ * Silent ping intervals a socket may go with no inbound frame of any kind before it is judged dead (its silence
124
+ * window is its own ping cadence times this). The number is the repo's measured one, not a new one: the worker's
125
+ * gatePing rule (the CME gate kicks a silent connection at about 61 s) and Hyperliquid's 3 x HL_VENUE_KEEPALIVE_MS.
126
+ * One liveness rule for every socket: a missed pong only prompts the check (wire-liveness-verdict.util).
127
+ */
128
+ export const SOCKET_SILENT_INTERVALS = 3;
@@ -1,164 +1,35 @@
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
- export type CmeOfficialScriptVerdict = 'allowed' | 'coming-soon' | 'blocked';
36
16
  /**
37
- * The 2026-09-02 indicator-library batch (56 openmarket catalog docs: volatility,
38
- * statistics, technical, market-analysis and volume-profile families), enabled on
39
- * governed CME 2026-09-07 (Kyle). Venue-safe by construction: every pinned source
40
- * reads only the chart's own symbol/exchange OHLCV (two through htf()), no
41
- * crypto-fixed source, no second venue. The four library docs that pull a second
42
- * symbol with crypto/equity defaults (Cointegration Spread, Sharpe Ratio,
43
- * Ascending Base, and Correlation Coefficient since 2026-10-13 by Kyle's call:
44
- * its default comparison is Binance ETHUSDT, which a governed chart cannot
45
- * fetch, so both forms drew blank there) stay fail-closed. The VERBATIM published sources are pinned
46
- * under src/fixtures/cme-official-library/ and adjudicated on the session-gapped
47
- * timeline by tests/constants/scriptEditor/cme-official-library-sparse-timeline.spec.ts,
48
- * which cross-pins this list against that manifest: an id cannot sit here without
49
- * a pinned source, and a republish that changes an executable line must be
50
- * re-adjudicated there before the id keeps its place. Spread into BOTH lists
51
- * below: the picker curation (venue-appropriate) and the first-party wall
52
- * (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/.
53
20
  */
54
21
  export declare const CME_OFFICIAL_LIBRARY_DOC_IDS: readonly string[];
55
22
  /**
56
- * Registry subTypes / catalog script_ids allowed on CME today (exact identities only).
57
- *
58
- * Anchored VWAP and Key Levels re-enabled 2026-07-29 after Kyle republished both docs with
59
- * OPEN code (client-side first-party run; wire-verified delivered source). Their catalog rows
60
- * surface on CME once the docs' catalog `source` flips to 'official' (the governed picker
61
- * queries officials only); until then they are runnable-but-unlisted there.
62
- */
63
- export declare const CME_ALLOWED_OFFICIAL_SCRIPT_KEYS: readonly string[];
64
- /**
65
- * Officials queued behind a known blocker (empty since the TA pack un-Soon;
66
- * kept so the next queued official has a home and the resolver keeps its
67
- * three-verdict shape).
68
- */
69
- export declare const CME_COMING_SOON_OFFICIAL_SCRIPT_KEYS: readonly string[];
70
- /**
71
- * Bundled templates deliberately held OFF governed CME: they read 'blocked'
72
- * through the fail-closed default (the picker says "not available", never
73
- * "Soon"), and this list exists so the curation spec can tell a deliberate
74
- * hold from a template nobody classified.
75
- * - ZIGZAG: draws lines and labels only, so the sparse-timeline proof (which
76
- * asserts plotted series) cannot adjudicate it yet.
77
- * - PIVOT_POINTS: its pivots come from UTC calendar periods (1D / 1W / 1M
78
- * backings), which do not line up with CME trading sessions.
79
- */
80
- export declare const CME_HELD_OFFICIAL_SCRIPT_KEYS: readonly string[];
81
- /**
82
- * The built-ins whose PROVEN wrun twin (wrun-twins.json `proven`) is also proven on a governed CME
83
- * chart: on CME a new add of one of them mounts the twin at its pin, as on every other venue
84
- * (provenBuiltInTwin, wrun-twins.util), and a twin carried onto CME (a symbol switch, a restore, a
85
- * paste or copy) keeps drawing (isKScriptDisplayBlockedOnExchange). Every other built-in keeps its
86
- * kScript template on CME, and its twin stays walled there. Each key is a CME-allowed built-in
87
- * (CME_ALLOWED_OFFICIAL_SCRIPT_KEYS) with a proven pin; the roster spec holds both.
88
- *
89
- * Proven 2026-10-11 on CME ES1! against the template, twin and template mounted through the
90
- * Indicators dialog: the parity sweep's data, dialog and host layers at 1h and its data layer at 1D
91
- * and 1W, every finding the same as the pair's crypto proof (ADX's extra Price line is the
92
- * template's fill drawn at its colour index, price 0, which its lower pane shows on ES), and the
93
- * coarser Timeframes at the chart interval's values (WRUN-QA-1005/returns/CME-WRUN.md). VOLUME_BAR
94
- * and BAR_STATISTICS joined 2026-10-13 once their twins (0.3.3, 0.1.2) read the kit's size units
95
- * (market.size_unit(), market.notional(): crypto bit-identical, Coin mode equal to the template on
96
- * CME, USD mode priced with the point value, the crypto-only rows closed; SESSION-evidence/units-*.md).
97
- * BIG_TRADES joined the same day by Kyle's rule: its twin counts prints in native size like the
98
- * template (a live-session proof waits for a rig that carries the CME trade tape). VOLUME_BUBBLES joined
99
- * 2026-10-13 with 0.2.4: its profile lane reads `currency: "Auto"` (the host picks the contract profile on a
100
- * contracts market), floors in 1K contracts and drops the "$" there: 227,435/227,435 bubbles equal to the
101
- * template on ES facts (SESSION-evidence/units-p-bubbles.md). Every CME-allowed built-in routes on CME now.
102
- */
103
- export declare const CME_PROVEN_TWIN_BUILTIN_KEYS: readonly string[];
104
- /** Whether a shipped built-in's proven twin may route and draw on a governed CME chart
105
- * (CME_PROVEN_TWIN_BUILTIN_KEYS). */
106
- export declare function isCmeProvenTwinBuiltIn(builtInKey: string): boolean;
107
- /**
108
- * The official kScript DOCS (Mongo-id catalog rows, never a shipped built-in) whose wrun port is also proven on a
109
- * governed CME chart: on CME such a doc lists once, as its port, and every Add of it mounts the package, as on every
110
- * other venue (officialDocPort, wrun-official-doc-port.util). Every other doc keeps its kScript record on CME. Each id
111
- * is a CME-allowed doc (CME_ALLOWED_OFFICIAL_SCRIPT_KEYS) with a roster row (wrun-twins.json); the roster spec holds
112
- * both. A port carried onto CME (a symbol switch, a restore, a paste or copy) is not walled by this list: official
113
- * packages are venue-approved as a class (isKScriptDisplayBlockedOnExchange, the 2026-09-30 exemption).
114
- *
115
- * Proven 2026-10-11 on CME ES1! against the kScript doc, both mounted on the same chart: the parity sweep's data,
116
- * dialog and host layers at 1h and, for the session and calendar docs, its data layer at 1D and 1W, every finding
117
- * judged against the doc's crypto proof and a same-build crypto control (WRUN-QA-1005/returns/CME-DOCS.md). Every
118
- * CME-allowed doc with a port routes here since 2026-10-13. Timeframe Matrix joined last, once its port took the
119
- * newest 18 candles by count and the kit host handed over the session's final higher-timeframe candle (0.1.3,
120
- * kit 0.68.1): 18 candles in every panel with the doc's change badges on a live and a closed-market run
121
- * (SESSION-evidence/units-tfm.md). Kelly Criterion joined 2026-10-13: its one
122
- * hourly difference is the doc's band edge placed inside closed hours (218/218 boxes, 437/437 cells agree).
123
- * Correlation Coefficient is fail-closed on CME in both forms since 2026-10-13 (CME_OFFICIAL_LIBRARY_DOC_IDS).
124
- * Anchored VWAP joined 2026-10-13 once its port 0.1.8 anchored the day at the venue trade-day open
125
- * (market.session_open(), kit 0.65.0; hosted runs admit it since contracts 5.24.0): 394/394 daily cells equal to
126
- * 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
127
- * arithmetic counts closed hours as bars) route by Kyle's decision of 2026-10-12: the port draws on the traded bars and
128
- * finds the same patterns (SESSION-evidence/p-prep.md). Structure Shift Sweeps and Wave Extensions joined 2026-10-12
129
- * 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),
130
- * re-proven on CME ES1! at 1h and 1D against the same control. Equal Highs/Lows FVG Breakouts joined the same day by
131
- * Kyle's rule: where the two forms differ because the kScript doc is the defective one, the port routes. Five docs whose
132
- * only CME-side difference was a chart switch acting on one form (All intervals, Hide weekends, Price line,
133
- * Interpolation) route by the same decision; the dead switches are tracked apart from the route.
134
- */
135
- export declare const CME_PROVEN_TWIN_DOC_IDS: readonly string[];
136
- /** Whether an official kScript doc's port may route on a governed CME chart (CME_PROVEN_TWIN_DOC_IDS). */
137
- export declare function isCmeProvenTwinDoc(scriptId: string): boolean;
138
- /**
139
- * Classify one official script for CME. `keys` are the entry's stable
140
- * identities (registry subType, officialType, catalog script_id). Display
141
- * titles are deliberately NOT an input: they are author-controlled, so a
142
- * community lookalike named after an allowed official must never classify as
143
- * allowed. Fail-closed: an unrecognized official reads 'blocked', so a newly
144
- * published official ships CME-disabled until deliberately added here.
145
- */
146
- export declare function classifyOfficialScriptForCme(ref: {
147
- keys?: readonly (string | undefined)[];
148
- }): CmeOfficialScriptVerdict;
149
- /**
150
- * Official catalog-doc ids the venue-policy wall treats as FIRST PARTY for governed data.
151
- * Deliberately a SEPARATE list from CME_ALLOWED_OFFICIAL_SCRIPT_KEYS: the picker list answers
152
- * "is this indicator venue-appropriate on CME?", this one answers "is this code first-party?"
153
- * — membership here mints governed-data access at EVERY door (fetch, payload guard, engine
154
- * policy, layout/suite, alerts), so an id must only be added for docs authored by the official
155
- * account. Registry subTypes (e.g. VOLUME_BUBBLES) never belong here; they are first-party via
23
+ * Official catalog-doc ids the venue-policy wall treats as FIRST PARTY for governed data: it
24
+ * answers "is this code first-party?", and membership here mints governed-data access at EVERY
25
+ * door (fetch, payload guard, engine policy, layout/suite, alerts), so an id must only be added
26
+ * for docs authored by the official account. Registry subTypes (e.g. VOLUME_BUBBLES) never belong here; they are first-party via
156
27
  * TECHNICAL_INDICATOR_SCRIPT_KEY_SET already.
157
28
  */
158
29
  export declare const CME_FIRST_PARTY_OFFICIAL_DOC_IDS: readonly string[];
159
30
  /**
160
31
  * Whether a run's `customScriptId` names a first-party official doc. The venue-policy wall
161
- * consults this so a curated official passes the governed-data doors even when a mount's
32
+ * consults this so an official doc passes the governed-data doors even when a mount's
162
33
  * provenance breadcrumbs (scriptSource / transient scriptData) have not landed on the overlay
163
34
  * settings yet — the shipped Order Book Pressure failure: Door F admitted the add, then the
164
35
  * first fetch hit Door D before any stamp existed and suppressed the run as a user script.