@orangecharts/wrun-chart-host 0.15.0 → 0.17.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 (202) hide show
  1. package/README.md +2 -0
  2. package/dist/constants/economic.constants.d.ts +2 -0
  3. package/dist/constants/economic.constants.js +2 -0
  4. package/dist/constants/feature-flags.constants.d.ts +13 -5
  5. package/dist/constants/feature-flags.constants.js +76 -35
  6. package/dist/constants/feature-limits.constants.d.ts +72 -4
  7. package/dist/constants/feature-limits.constants.js +104 -24
  8. package/dist/constants/interval.constants.js +5 -0
  9. package/dist/constants/kscript-data-interval-restrictions.constants.d.ts +12 -0
  10. package/dist/constants/kscript-data-interval-restrictions.constants.js +14 -0
  11. package/dist/constants/marketCapabilities.constants.d.ts +9 -0
  12. package/dist/constants/marketCapabilities.constants.js +39 -11
  13. package/dist/constants/typed-indicator-source.leaf.d.ts +7 -0
  14. package/dist/constants/typed-indicator-source.leaf.js +47 -0
  15. package/dist/constants/typed-session-history-venue.leaf.d.ts +7 -0
  16. package/dist/constants/typed-session-history-venue.leaf.js +9 -0
  17. package/dist/constants/typed-width-fold.leaf.d.ts +52 -0
  18. package/dist/constants/typed-width-fold.leaf.js +101 -0
  19. package/dist/constants/typed-width-source.leaf.d.ts +24 -0
  20. package/dist/constants/typed-width-source.leaf.js +126 -0
  21. package/dist/constants/typed-width.leaf.d.ts +57 -0
  22. package/dist/constants/typed-width.leaf.js +78 -0
  23. package/dist/host-env.d.ts +10 -0
  24. package/dist/host-env.js +7 -0
  25. package/dist/host-ports.types.d.ts +23 -17
  26. package/dist/index.d.ts +4 -0
  27. package/dist/index.js +4 -0
  28. package/dist/interfaces/kscript-diagnostics.interface.d.ts +35 -0
  29. package/dist/interfaces/wrun-runtime.interface.d.ts +66 -3
  30. package/dist/interfaces/wrun-runtime.interface.js +11 -0
  31. package/dist/kscript-data/controls/live-trades-merge.util.d.ts +13 -0
  32. package/dist/kscript-data/controls/live-trades-merge.util.js +16 -1
  33. package/dist/market-data/billing.interface.d.ts +12 -45
  34. package/dist/market-data/billing.interface.js +2 -2
  35. package/dist/replay/replayLadder.js +7 -4
  36. package/dist/settings-templates/footprint-rows.d.ts +6 -0
  37. package/dist/settings-templates/footprint-rows.js +6 -0
  38. package/dist/settings-templates/frvp-fields.js +14 -0
  39. package/dist/settings-templates/indicator-fields.js +36 -0
  40. package/dist/settings-templates/tool-tables.generated.js +19 -1
  41. package/dist/utility/chart/__fixtures__/live-bucket-regular-golden.json +1706 -0
  42. package/dist/utility/chart/cache-alignment.util.d.ts +42 -0
  43. package/dist/utility/chart/cache-alignment.util.js +88 -18
  44. package/dist/utility/chart/calendar-interval.util.d.ts +83 -1
  45. package/dist/utility/chart/calendar-interval.util.js +152 -4
  46. package/dist/utility/chart/candle-bar-end.util.d.ts +11 -4
  47. package/dist/utility/chart/candle-bar-end.util.js +17 -6
  48. package/dist/utility/chart/chart-time-domain.util.d.ts +3 -0
  49. package/dist/utility/chart/chart-time-domain.util.js +13 -4
  50. package/dist/utility/chart/feed-interval.util.d.ts +4 -2
  51. package/dist/utility/chart/feed-interval.util.js +5 -2
  52. package/dist/utility/chart/fetch-dedupe-policy.util.d.ts +3 -1
  53. package/dist/utility/chart/fetch-dedupe-policy.util.js +19 -1
  54. package/dist/utility/chart/footprint-display-mode.util.d.ts +2 -0
  55. package/dist/utility/chart/footprint-display-mode.util.js +5 -0
  56. package/dist/utility/chart/governed-lanes-gate.util.d.ts +46 -0
  57. package/dist/utility/chart/governed-lanes-gate.util.js +71 -0
  58. package/dist/utility/chart/governed-lanes-reader-seat.d.ts +14 -0
  59. package/dist/utility/chart/governed-lanes-reader-seat.js +14 -0
  60. package/dist/utility/chart/history-wall.util.d.ts +13 -2
  61. package/dist/utility/chart/history-wall.util.js +11 -4
  62. package/dist/utility/chart/index-mode-admission.util.js +9 -1
  63. package/dist/utility/chart/index-mode.util.d.ts +2 -2
  64. package/dist/utility/chart/index-mode.util.js +12 -6
  65. package/dist/utility/chart/index-otc.leaf.d.ts +37 -0
  66. package/dist/utility/chart/index-otc.leaf.js +68 -0
  67. package/dist/utility/chart/interval-ladder.util.d.ts +5 -2
  68. package/dist/utility/chart/interval-ladder.util.js +44 -4
  69. package/dist/utility/chart/interval-registry.util.d.ts +22 -1
  70. package/dist/utility/chart/interval-registry.util.js +50 -2
  71. package/dist/utility/chart/kscript-data-interval-restriction.leaf.d.ts +32 -4
  72. package/dist/utility/chart/kscript-data-interval-restriction.leaf.js +22 -5
  73. package/dist/utility/chart/kscript-drawing-safe-area.util.d.ts +10 -0
  74. package/dist/utility/chart/kscript-drawing-safe-area.util.js +30 -3
  75. package/dist/utility/chart/kscript-legend-entries.util.d.ts +21 -4
  76. package/dist/utility/chart/kscript-legend-entries.util.js +27 -5
  77. package/dist/utility/chart/kscript-main-grid-stages.util.js +74 -24
  78. package/dist/utility/chart/kscript-provenance-keys.util.js +6 -0
  79. package/dist/utility/chart/kscript-row-name.leaf.d.ts +13 -0
  80. package/dist/utility/chart/kscript-row-name.leaf.js +18 -0
  81. package/dist/utility/chart/kscript-venue-policy.util.d.ts +61 -26
  82. package/dist/utility/chart/kscript-venue-policy.util.js +138 -37
  83. package/dist/utility/chart/live-bucket.util.d.ts +29 -4
  84. package/dist/utility/chart/live-bucket.util.js +45 -12
  85. package/dist/utility/chart/market-session-schedule.util.d.ts +19 -0
  86. package/dist/utility/chart/market-session-schedule.util.js +2 -1
  87. package/dist/utility/chart/market-session.util.d.ts +62 -10
  88. package/dist/utility/chart/market-session.util.js +93 -13
  89. package/dist/utility/chart/marketKind.util.d.ts +11 -12
  90. package/dist/utility/chart/marketKind.util.js +45 -13
  91. package/dist/utility/chart/mixed-mode.util.d.ts +18 -0
  92. package/dist/utility/chart/om-target.util.js +6 -4
  93. package/dist/utility/chart/price-precision.util.d.ts +20 -6
  94. package/dist/utility/chart/price-precision.util.js +34 -7
  95. package/dist/utility/chart/profile-frame-window.util.d.ts +15 -0
  96. package/dist/utility/chart/profile-frame-window.util.js +12 -0
  97. package/dist/utility/chart/rth-session.util.d.ts +3 -1
  98. package/dist/utility/chart/rth-session.util.js +3 -1
  99. package/dist/utility/chart/script-source-session.util.d.ts +43 -0
  100. package/dist/utility/chart/script-source-session.util.js +61 -0
  101. package/dist/utility/chart/typed-width-grid.util.d.ts +23 -0
  102. package/dist/utility/chart/typed-width-grid.util.js +203 -0
  103. package/dist/utility/common/transformations.util.d.ts +6 -0
  104. package/dist/utility/common/transformations.util.js +28 -4
  105. package/dist/utility/market-events/market-events.util.js +3 -0
  106. package/dist/utility/number-format.util.d.ts +14 -1
  107. package/dist/utility/number-format.util.js +22 -4
  108. package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.d.ts +24 -1
  109. package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.js +115 -0
  110. package/dist/utility/v2/v2-enums.leaf.js +5 -0
  111. package/dist/utility/wrun/sources/row-lanes/dark_pool.d.ts +2 -1
  112. package/dist/utility/wrun/sources/row-lanes/dark_pool.js +4 -3
  113. package/dist/utility/wrun/wrun-batched-marks.util.d.ts +13 -3
  114. package/dist/utility/wrun/wrun-batched-marks.util.js +96 -17
  115. package/dist/utility/wrun/wrun-canvases.util.d.ts +4 -2
  116. package/dist/utility/wrun/wrun-canvases.util.js +7 -12
  117. package/dist/utility/wrun/wrun-cap-notice.util.d.ts +5 -0
  118. package/dist/utility/wrun/wrun-cap-notice.util.js +23 -0
  119. package/dist/utility/wrun/wrun-card-style.util.d.ts +1 -1
  120. package/dist/utility/wrun/wrun-card-style.util.js +2 -2
  121. package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +23 -8
  122. package/dist/utility/wrun/wrun-chart-market-facts.util.js +24 -9
  123. package/dist/utility/wrun/wrun-child-overlay-id.util.d.ts +10 -0
  124. package/dist/utility/wrun/wrun-child-overlay-id.util.js +24 -0
  125. package/dist/utility/wrun/wrun-cloud-cme-stamp.util.d.ts +72 -0
  126. package/dist/utility/wrun/wrun-cloud-cme-stamp.util.js +151 -0
  127. package/dist/utility/wrun/wrun-cme-root-specs.util.d.ts +10 -6
  128. package/dist/utility/wrun/wrun-cme-root-specs.util.js +19 -13
  129. package/dist/utility/wrun/wrun-color-facts.util.d.ts +3 -3
  130. package/dist/utility/wrun/wrun-color-facts.util.js +8 -5
  131. package/dist/utility/wrun/wrun-colour-tone.lazy.d.ts +20 -0
  132. package/dist/utility/wrun/wrun-colour-tone.lazy.js +23 -0
  133. package/dist/utility/wrun/wrun-colour-tone.util.d.ts +14 -0
  134. package/dist/utility/wrun/wrun-colour-tone.util.js +119 -0
  135. package/dist/utility/wrun/wrun-dark-pool.util.d.ts +3 -2
  136. package/dist/utility/wrun/wrun-dark-pool.util.js +5 -4
  137. package/dist/utility/wrun/wrun-frames.d.ts +1 -1
  138. package/dist/utility/wrun/wrun-frames.js +2 -2
  139. package/dist/utility/wrun/wrun-handles.util.d.ts +1 -1
  140. package/dist/utility/wrun/wrun-handles.util.js +1 -1
  141. package/dist/utility/wrun/wrun-host.service.d.ts +32 -2
  142. package/dist/utility/wrun/wrun-host.service.js +44 -2
  143. package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +20 -0
  144. package/dist/utility/wrun/wrun-hosted-wire-caps.js +85 -2
  145. package/dist/utility/wrun/wrun-hosted-wire.util.d.ts +37 -0
  146. package/dist/utility/wrun/wrun-hosted-wire.util.js +54 -0
  147. package/dist/utility/wrun/wrun-hud-looks.util.d.ts +1 -0
  148. package/dist/utility/wrun/wrun-hud-looks.util.js +6 -11
  149. package/dist/utility/wrun/wrun-integration-route.util.d.ts +24 -0
  150. package/dist/utility/wrun/wrun-integration-route.util.js +19 -0
  151. package/dist/utility/wrun/wrun-live-intake.util.js +17 -1
  152. package/dist/utility/wrun/wrun-live-patch.util.d.ts +6 -1
  153. package/dist/utility/wrun/wrun-live-patch.util.js +10 -4
  154. package/dist/utility/wrun/wrun-live-tick.util.js +64 -5
  155. package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +40 -6
  156. package/dist/utility/wrun/wrun-market-size-defaults.util.d.ts +2 -2
  157. package/dist/utility/wrun/wrun-market-size-defaults.util.js +10 -8
  158. package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +3 -0
  159. package/dist/utility/wrun/wrun-overlay-drivers.util.js +3 -0
  160. package/dist/utility/wrun/wrun-overlay-run.util.d.ts +17 -0
  161. package/dist/utility/wrun/wrun-overlay-run.util.js +318 -55
  162. package/dist/utility/wrun/wrun-panel-mount.util.d.ts +1 -1
  163. package/dist/utility/wrun/wrun-panel-mount.util.js +42 -13
  164. package/dist/utility/wrun/wrun-pin-venues.util.d.ts +3 -2
  165. package/dist/utility/wrun/wrun-pin-venues.util.js +11 -4
  166. package/dist/utility/wrun/wrun-refusal.util.d.ts +4 -0
  167. package/dist/utility/wrun/wrun-refusal.util.js +102 -13
  168. package/dist/utility/wrun/wrun-registry-errors.util.d.ts +5 -3
  169. package/dist/utility/wrun/wrun-registry-errors.util.js +5 -3
  170. package/dist/utility/wrun/wrun-row-source-factory.js +17 -1
  171. package/dist/utility/wrun/wrun-row-source.d.ts +8 -1
  172. package/dist/utility/wrun/wrun-run-health.util.js +1 -1
  173. package/dist/utility/wrun/wrun-sandbox-row-source.d.ts +1 -1
  174. package/dist/utility/wrun/wrun-sandbox-row-source.js +9 -0
  175. package/dist/utility/wrun/wrun-session-composition.util.d.ts +3 -2
  176. package/dist/utility/wrun/wrun-session-composition.util.js +3 -2
  177. package/dist/utility/wrun/wrun-setting-words.util.d.ts +12 -5
  178. package/dist/utility/wrun/wrun-setting-words.util.js +25 -8
  179. package/dist/utility/wrun/wrun-socket-row-source.d.ts +26 -1
  180. package/dist/utility/wrun/wrun-socket-row-source.js +125 -12
  181. package/dist/utility/wrun/wrun-source-rows.util.d.ts +3 -3
  182. package/dist/utility/wrun/wrun-source-rows.util.js +8 -7
  183. package/dist/utility/wrun/wrun-style-words.util.d.ts +31 -9
  184. package/dist/utility/wrun/wrun-style-words.util.js +46 -15
  185. package/dist/utility/wrun/wrun-trades-lane.util.js +2 -1
  186. package/dist/utility/wrun/wrun-trap-replay.util.d.ts +42 -0
  187. package/dist/utility/wrun/wrun-trap-replay.util.js +63 -0
  188. package/dist/utility/wrun/wrun-volume-profile.util.js +6 -5
  189. package/dist/utility/wrun-display-name.util.d.ts +10 -0
  190. package/dist/utility/wrun-display-name.util.js +21 -0
  191. package/dist/utils/replay/replay-buffer-math.d.ts +2 -0
  192. package/dist/utils/replay/replay-buffer-math.js +2 -0
  193. package/dist/workers/constants/socket-slots.d.ts +1 -1
  194. package/dist/workers/utils/time.worker.util.js +2 -2
  195. package/dist/workers/utils/volume-profile.worker.util.d.ts +9 -0
  196. package/dist/workers/utils/volume-profile.worker.util.js +20 -0
  197. package/dist/workers/wrun/wrun-abi-host.d.ts +3 -0
  198. package/dist/workers/wrun/wrun-abi-host.js +82 -5
  199. package/dist/workers/wrun/wrun-engine-handler.js +53 -4
  200. package/dist/workers/wrun/wrun-trap-frames.leaf.d.ts +28 -0
  201. package/dist/workers/wrun/wrun-trap-frames.leaf.js +108 -0
  202. package/package.json +11 -11
package/README.md CHANGED
@@ -128,6 +128,8 @@ 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.17.0 | `@orangecharts/indicator-kit` 0.121.0, `@orangecharts/orange-v2-pb-common` 12.86.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | Three things a host acts on. The marks section's `text.place` gains `fit` (2: the size inside the mark where the full number fits, else beside it), `fit_short` (3: as `fit`, rounded inside when only the rounded number fits) and `fit_only` (4: as `fit_short`, never beside), and the mount refuses them by name on an engine whose marks pack is below level 3 (`fit`) or 4 (the other two); 0.16.0 refuses a section that names one ("Needs a newer chart"). The data-fetching loader view supplies `mainRowsLoadedFor(chartIndex, metadata)` in place of `loadedMainIdentityOf` (`WrunLoadedMainIdentity` leaves): the host answers whether the mounted main rows are that metadata's market, so a chart whose rows come from another market (a US stock on Trades) proves its candles. The market size defaults count the last trading day on the market's own clock (whole days it stood closed are no part of it), so the first candles after a weekend or a holiday no longer read as a whole day. The peers move with web: the kit from 0.119.0 to 0.121.0 and the protocol enums from 12.84.0 to 12.86.0 (the index and yield venue, `utility/chart/index-otc.leaf`, joins the public modules). The other package commits landed since 0.16.0 ride along (`git log f9aeda13fd.. -- packages/wrun-chart-host` in the web repo). |
132
+ | 0.16.0 | `@orangecharts/indicator-kit` 0.119.0, `@orangecharts/orange-v2-pb-common` 12.84.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | The peers web's /v3 step 3 moved to: the protocol enums peer from 12.82.0 to 12.84.0 and the kit peer from 0.116.1 (what npm's 0.15.0 declares) to 0.119.0. The package commits landed since 0.15.0 ride along (`git log 3bfefce876.. -- packages/wrun-chart-host` in the web repo). |
131
133
  | 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). |
132
134
  | 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). |
133
135
  | 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). |
@@ -22,6 +22,8 @@ export declare const ECONOMICS_EXCHANGE = "ECONOMICS";
22
22
  export declare const ECONOMIC_PUBLISHER_EXCHANGES: readonly string[];
23
23
  /** Every exchange code that resolves to the `'economic'` market kind. */
24
24
  export declare const ECONOMIC_EXCHANGES: readonly string[];
25
+ /** `Exchange` members that publish macro series and list no market: no market read asks them as a venue. */
26
+ export declare const PUBLISHER_ONLY_EXCHANGES: ReadonlySet<string>;
25
27
  /** Market-search wire types that answer with economic series rows (C12). */
26
28
  export declare const ECONOMIC_SEARCH_TYPES: readonly string[];
27
29
  /** Economic series are observed at most once a day: the interval floor, in ms. */
@@ -38,6 +38,8 @@ export const ECONOMIC_PUBLISHER_EXCHANGES = [
38
38
  ];
39
39
  /** Every exchange code that resolves to the `'economic'` market kind. */
40
40
  export const ECONOMIC_EXCHANGES = [FRED_EXCHANGE, ...ECONOMIC_PUBLISHER_EXCHANGES];
41
+ /** `Exchange` members that publish macro series and list no market: no market read asks them as a venue. */
42
+ export const PUBLISHER_ONLY_EXCHANGES = new Set([FRED_EXCHANGE, 'CFTC']);
41
43
  /** Market-search wire types that answer with economic series rows (C12). */
42
44
  export const ECONOMIC_SEARCH_TYPES = ['FRED_OBSERVATION', 'OBSERVATION'];
43
45
  /** Economic series are observed at most once a day: the interval floor, in ms. */
@@ -14,11 +14,10 @@ export declare const FeatureFlag: {
14
14
  readonly FuturesNinjaTrader: "futures-ninjatrader";
15
15
  readonly FuturesNinjaTraderData: "futures-ninjatrader-data";
16
16
  readonly CoinbaseDerivativesExecution: "coinbase-derivatives-execution";
17
- readonly PolymarketExecution: "polymarket-execution";
18
- readonly TradingHub: "trading-hub";
17
+ readonly BrokerVenueLaneRithmic: "broker-venue-lane-rithmic";
18
+ readonly BrokerVenueLaneNinjaTrader: "broker-venue-lane-ninjatrader";
19
19
  readonly TradingVolume: "trading-volume";
20
20
  readonly DataLoadHealRegister: "data-load-heal-register";
21
- readonly CollabSyncV2: "collab-sync-v2";
22
21
  readonly DataLoadCrossChartJoin: "data-load-cross-chart-join";
23
22
  readonly DataLoadFamilySecondChild: "data-load-family-second-child";
24
23
  readonly ToolsDelta: "tools-delta";
@@ -38,10 +37,12 @@ export declare const FeatureFlag: {
38
37
  readonly Opra: "opra";
39
38
  readonly UsEquitiesFull: "us-equities-full";
40
39
  readonly CmeEngine: "cme-engine";
41
- readonly VariationalMarkets: "variational-markets";
42
- readonly OptionsPanel: "options-panel";
40
+ readonly IndicesOtc: "indices-otc";
43
41
  readonly OpraUserScripts: "opra-user-scripts";
44
42
  readonly CmeUserScripts: "cme-user-scripts";
43
+ readonly CmeLanes: "cme-lanes";
44
+ readonly OpraLanes: "opra-lanes";
45
+ readonly StocksLanes: "stocks-lanes";
45
46
  readonly PlusUsdcAutopay: "plus-usdc-autopay";
46
47
  readonly EmsHyperliquid: "ems-hyperliquid";
47
48
  readonly AgentsSurface: "agents-surface";
@@ -60,6 +61,13 @@ export declare const FeatureFlag: {
60
61
  readonly WrunDownloadBudgetCut: "wrun-download-budget-cut";
61
62
  readonly WrunConvergingPrefix: "wrun-converging-prefix";
62
63
  readonly ScreenshotLegacyCapture: "screenshot-legacy-capture";
64
+ readonly DrawingAlertOneClick: "drawing-alert-one-click";
65
+ readonly DrawingsUnderCandles: "drawings-under-candles";
66
+ readonly TypedIntervalWidths: "typed-interval-widths";
67
+ readonly TypedServerFutures: "typed-server-futures";
68
+ readonly DrawToTrade: "draw-to-trade";
69
+ readonly ChartDraftOrder: "chart-draft-order";
70
+ readonly PaneSides: "pane-sides";
63
71
  };
64
72
  export type FeatureFlagKey = (typeof FeatureFlag)[keyof typeof FeatureFlag];
65
73
  export declare const FEATURE_FLAG_KEYS: FeatureFlagKey[];
@@ -57,10 +57,7 @@ export const FeatureFlag = {
57
57
  // localStorage override lights it locally (`kiyo.flag-overrides` -> `{"lighter-execution": true}`).
58
58
  // Mint it enabled to open it up. A key this browser already holds keeps trading after it turns off.
59
59
  LighterExecution: 'lighter-execution',
60
- // Futures order entry through the user's own Rithmic-enabled broker account (connect dialog, order
61
- // ticket, working orders and positions, and the live quote from the user's own feed); the credential
62
- // lives only in the browser tab. Read through `isOn`: unminted, absent and guest all read off; the
63
- // dev/internal localStorage override lights it locally (`kiyo.flag-overrides` -> `{"futures-trading": true}`).
60
+ // Kill switch of the futures lane, default ON (futures-trading-gate.util isFuturesTradingOn).
64
61
  FuturesTrading: 'futures-trading',
65
62
  // Bring-your-own-feed Part 2, one key per kind of data so each ships when Rithmic permits it (all on
66
63
  // top of `futures-trading`; the localStorage override lights them for building and testing):
@@ -87,20 +84,13 @@ export const FeatureFlag = {
87
84
  // `{"coinbase-derivatives-execution": true}`). Mint it enabled to open it up. A key this browser
88
85
  // already holds keeps trading, and keeps its card to manage it.
89
86
  CoinbaseDerivativesExecution: 'coinbase-derivatives-execution',
90
- // Polymarket execution (docs/features/polymarket-execution/README.md): the prediction-market venue, a
91
- // lane of its own beside the exchange seam. Its own key, read through `isOn` by
92
- // `isPolymarketExecutionOn`: unminted, absent and guest all read off, so production ships it dark; the
93
- // dev/internal localStorage override lights it locally (`kiyo.flag-overrides` ->
94
- // `{"polymarket-execution": true}`). Mint it enabled to open it up. A linked account this browser
95
- // already holds keeps trading after it turns off.
96
- PolymarketExecution: 'polymarket-execution',
97
- // The trading hub (docs/features/trading-hub/README.md): one Trade door beside the avatar that
98
- // folds the desktop's linking, accounts and trade settings into one dialog. Rides the master
99
- // trading flag AND this key, read through `isOn` (`isTradingHubOn`): unminted, absent and guest
100
- // all read off, so production ships it dark; an internal role reads it on through the server's
101
- // bypass, the dev/internal localStorage override lights it locally (`kiyo.flag-overrides` ->
102
- // `{"trading-hub": true}`). Mint it enabled to open it up. Phones keep today's surfaces either way.
103
- TradingHub: 'trading-hub',
87
+ // The host-served broker venues' dark keys (trading-core 0.3.0, `rithmic` and `ninjatrader` in the venue
88
+ // registry): each venue descriptor states its key, read through `isOn` by `isCexVenueFlagOn`, so unminted,
89
+ // absent and guest all read off and no venue surface offers a broker yet. On, the broker trades through the
90
+ // shared venue surfaces (TRADING-UNIFY plan D13); the futures lane keeps riding `futures-trading` until then.
91
+ // The same string values as the package's `FeatureFlag` leaf, which the venue flag mirror hands to `isOn`.
92
+ BrokerVenueLaneRithmic: 'broker-venue-lane-rithmic',
93
+ BrokerVenueLaneNinjaTrader: 'broker-venue-lane-ninjatrader',
104
94
  // Trading Volume (docs/features/trading-hub/trading-volume.md): the private page inside the trading
105
95
  // hub with the notional the account traded through OpenMarket on Hyperliquid, and its two doors (the
106
96
  // profile menu's row under Brokers, the Hyperliquid account page's row). Read through `isOn`
@@ -120,7 +110,6 @@ export const FeatureFlag = {
120
110
  // the immediate footprint heals, the multi-trigger resync and the
121
111
  // session-blind poll cadence for every cohort.
122
112
  DataLoadHealRegister: 'data-load-heal-register',
123
- CollabSyncV2: 'collab-sync-v2',
124
113
  // Data-loading plan S11 kill switch (DEFAULT ON, boot-provisional shape:
125
114
  // a compile-time HARD_KILL above `!isExplicitlyOff`, data-fetching.util
126
115
  // isCrossChartJoinEnabled): panes on the same market, interval and overlay
@@ -251,18 +240,14 @@ export const FeatureFlag = {
251
240
  // Read through `isOn`: unminted, absent and guest read off, so production ships it dark; light it only once
252
241
  // orange's CME engine mode is `live`. QA: `localStorage.setItem('kiyo.flag-overrides', '{"cme-engine":true}')`.
253
242
  CmeEngine: 'cme-engine',
254
- // Variational (VARIATIONAL perpetuals, VARIATIONAL_SWAP swaps) in pickers, search, recents, popular rows
255
- // and watchlist import: a flag-gated venue (exchange-visibility.util FLAG_GATED_EXCHANGES), read through
256
- // `isOn`, so unminted, absent and guest all read off and every surface ships it dark. An internal role
257
- // reads it on through the server's bypass once it is minted; the dev/internal override lights it
258
- // locally (`kiyo.flag-overrides` -> `{"variational-markets": true}`). A chart already on the venue
259
- // still loads (docs/features/data/quote-perp-venues.md). Mint it enabled to release the venue.
260
- VariationalMarkets: 'variational-markets',
261
- // The Options panel (the Options front door): the ticker bar's Options button, the panel itself and every door
262
- // to it, read through `isOptionsPanelOn()` (src/utility/options/options-panel-gate.util.ts) with `isOn`:
263
- // unminted, absent and guest all read off, so production ships it dark; minted disabled, an internal role reads
264
- // it on. QA: `localStorage.setItem('kiyo.flag-overrides', '{"options-panel":true}')`. Mint it enabled to open it up.
265
- OptionsPanel: 'options-panel',
243
+ // The index and yield venue (index-otc.leaf: stock indices, the dollar and volatility indices, US Treasury
244
+ // yields) in pickers, search, recents, popular rows and watchlist import: a flag-gated venue
245
+ // (exchange-visibility.util FLAG_GATED_EXCHANGES), read through `isOn`, so unminted, absent and guest all read
246
+ // off and every surface ships it dark. The dev/internal override lights it locally (`kiyo.flag-overrides` ->
247
+ // `{"indices-otc": true}`). It is also the venue's release door: the pinned enum names the exchange, and while
248
+ // this reads off the data worker keeps every read of the venue home (workers/series/unreleased-venues). Do not
249
+ // mint it before the launch round proves the venue on real data.
250
+ IndicesOtc: 'indices-otc',
266
251
  // User-authored scripts on OPRA. The OPRA licence covers user-authored scripting over OPRA data, in the
267
252
  // browser and on OpenMarket's servers (Kyle 2026-10-27, the signed set); this flag is the one product switch
268
253
  // for both lanes. While lit, a script the browser runs that the viewer wrote or added from the community (an
@@ -289,20 +274,31 @@ export const FeatureFlag = {
289
274
  // one decision; a chain wall reads `mayReadCmeChain`), and only for a viewer the CME plane serves (signed in, not
290
275
  // a guest, the CME data terms not blocked; delayed and real-time both count, the tier is the gate's). Both facts
291
276
  // 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
277
+ // a reader is handed over). Refused whatever it says while `cme-lanes` is dark (reversed 2026-11-11 behind it):
278
+ // hosted (Cloud) runs, protected scripts, indicator alerts, strategies and backtests. Refused always: a CME
279
+ // chain read from a chart off CME, the
294
280
  // export of a study's results (console copies, clips), agent reads (chart_read and the MCP withhold the stamped
295
281
  // study) and the publish cover's capture of a chart that carries CME data. A move of the flag, the account, the
296
282
  // terms, the served access or the session stops a running study in place and keeps its source and settings. To be
297
283
  // 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:
284
+ // the server lanes judge a user run's CME reads on their own. QA:
299
285
  // `localStorage.setItem('kiyo.flag-overrides', '{"cme-user-scripts":true}')`.
300
286
  CmeUserScripts: 'cme-user-scripts',
287
+ // The governed-lanes cutover, one flag per licensed plane (governed-lanes-gate.util holds the one reader;
288
+ // kscript-venue-policy.util, the one decider). While a plane's flag is lit, that plane opens to the server
289
+ // lanes as well as the browser: hosted (Cloud) runs, protected scripts, strategy testing and every alert kind. While
290
+ // it is dark (the default), the plane reads exactly as it did before the cutover. Each plane keeps its own decision
291
+ // under a lit flag: CME still needs the `cme-user-scripts` gate (the flag, sign-in, the CME data terms) on every
292
+ // lane. To be minted dark (admin panel); read with `isOn` (absent, unloaded and guest read off), never forced on in
293
+ // dev. QA: `localStorage.setItem('kiyo.flag-overrides', '{"cme-lanes":true}')`.
294
+ CmeLanes: 'cme-lanes',
295
+ OpraLanes: 'opra-lanes',
296
+ StocksLanes: 'stocks-lanes',
301
297
  // Kiyo Plus billed in USDC on Solana, auto-renewing (plan: PLUS-USDC-AUTOPAY-PLAN.md).
302
298
  // Gates every surface of the lane: the third method button on /plus, the on-chain
303
299
  // subscribe dialog, the on-chain billing card, and the USDC purchase mode in the
304
300
  // upgrade dialog. Shipped dark; the orange routes answer 503 until their own
305
- // KIYO_PLUS_ONCHAIN_ENABLED flips, so a lit flag alone sells nothing. Flag off =
301
+ // payments.kiyoPlusOnchainEnabled flips, so a lit flag alone sells nothing. Flag off =
306
302
  // the page is byte-identical in behaviour (pinned by a structural spec).
307
303
  PlusUsdcAutopay: 'plus-usdc-autopay',
308
304
  // The Hyperliquid EMS algo surfaces (Algo TWAP/VWAP in the ticket, the Algos tab, the signer
@@ -419,6 +415,51 @@ export const FeatureFlag = {
419
415
  // through the legacy html2canvas path (a clone of the whole page, seconds of frozen page). Unminted and absent read
420
416
  // off, so production takes the in-place engine; mint it ON only to roll the engine back without a deploy.
421
417
  ScreenshotLegacyCapture: 'screenshot-legacy-capture',
418
+ // One-click alerts on drawings (docs/features/alerts/alert-targets.md, "One click"): the quick bar's labelled
419
+ // Alert pill arms at once with an Undo toast, its on state opens the Once / Every time / Turn off menu, the
420
+ // right-click row, the ink chip and Alt+A arm the same way, and the engine decor bridge runs. Off: the bell
421
+ // icon opens the alert dialog as before. Read through `isOn` (useDrawingAlertOneClickFlag): unminted, absent
422
+ // and guest read off, so production ships it dark; `kiyo.flag-overrides` -> `{"drawing-alert-one-click": true}`.
423
+ DrawingAlertOneClick: 'drawing-alert-one-click',
424
+ // Send behind candles / Bring in front of candles (docs/features/object-tree/persistence-and-undo.md): the row of
425
+ // the right-click Order submenu, the quick bar's "..." menu and the Objects row menu, and the action they share
426
+ // (drawing-selection-actions setDrawingsUnderCandles). Off: no row and no write; a drawing already saved under the
427
+ // candles still paints there (the engine reads `settings.underCandles`). Read through `isOn`
428
+ // (useDrawingsUnderCandlesFlag): unminted, absent and guest read off, so production ships it dark;
429
+ // `kiyo.flag-overrides` -> `{"drawings-under-candles": true}`.
430
+ DrawingsUnderCandles: 'drawings-under-candles',
431
+ // Typed candle widths (docs/features/chart/custom-intervals.md): a width off the ladder that divides a UTC day
432
+ // (`20m`, `90m`, typed-width.leaf), asked as CUSTOM plus `barSeconds`. Read through `isOn` (typedWidthsFlagOn) and
433
+ // mirrored to the data worker (typed-width-reads.util): unminted, absent and guest read off, so production ships it
434
+ // dark and a saved typed width is held on the rung at or below; `kiyo.flag-overrides` ->
435
+ // `{"typed-interval-widths": true}`.
436
+ TypedIntervalWidths: 'typed-interval-widths',
437
+ // Server-built candle history of custom sizes on the CME family (docs/features/chart/custom-intervals.md,
438
+ // "Server-built history on the CME family"): the main candle history of a size under a day on CME, CBOT, NYMEX or
439
+ // COMEX is asked of the gateway (CUSTOM plus `barSeconds`) instead of being folded in the data worker; the live
440
+ // candle and every indicator fold stay on the app build. Read through `isOn` (typedHistoryFlagOn) and mirrored to
441
+ // the data worker as its session bit (typed-width-reads.util `publishTypedSessionReads`): unminted, absent and guest
442
+ // read off, so production ships it dark and every chart loads through the app build; `kiyo.flag-overrides` ->
443
+ // `{"typed-server-futures": true}`.
444
+ TypedServerFutures: 'typed-server-futures',
445
+ // Draw to trade (docs/features/hyperliquid/ticket.md, "Draw to trade"): the trade ticket's Draw button (one stroke on
446
+ // the chart fills side, take profit and stop loss, sized by Risk), the Position drawing's "Send to trade panel" on
447
+ // the quick bar and Super Search's "Draw a trade". Off: none of them shows. Read through `isOn`:
448
+ // unminted, absent and guest read off, so production ships it dark; `kiyo.flag-overrides` ->
449
+ // `{"draw-to-trade": true}`.
450
+ DrawToTrade: 'draw-to-trade',
451
+ // Draft orders from the chart menu's price card (docs/features/hyperliquid/quick-trade-pill.md, "The draft on the
452
+ // chart"): where the card's order would open the Confirm order dialog (the order answer of Ask before sending is on
453
+ // for its lane), the press draws the order as a draft line instead (one pill, drag to move, TP and SL handles, the
454
+ // pill sends, the x drops it). Off: the card asks and sends exactly as before. Read through `isOn`
455
+ // (chart-menu-order.util `chartDraftOrderOn`): unminted, absent and guest read off, so production ships it dark;
456
+ // `kiyo.flag-overrides` -> `{"chart-draft-order": true}`.
457
+ ChartDraftOrder: 'chart-draft-order',
458
+ // Pane on any side (PANES-ANY-SIDE-PLAN.md): an indicator's pane on the chart, left, right, top or bottom. Every
459
+ // surface reads ONE predicate, this key AND the built-in engine's `paneSides` capability
460
+ // (pane-sides-engine.util paneSidesActive). Read through `isOn`: unminted, absent and guest read off, so production
461
+ // ships it dark; `kiyo.flag-overrides` -> `{"pane-sides": true}`. A saved place survives with the key off.
462
+ PaneSides: 'pane-sides',
422
463
  };
423
464
  export const FEATURE_FLAG_KEYS = Object.values(FeatureFlag);
424
465
  /**
@@ -5,8 +5,34 @@
5
5
  * feature: add one row. To change a number: edit one value. Types enforce
6
6
  * that every row has a value for every tier.
7
7
  */
8
- export declare const TIERS: readonly ["free", "plus"];
8
+ export declare const TIERS: readonly ["free", "plus", "ultimate"];
9
9
  export type Tier = (typeof TIERS)[number];
10
+ /**
11
+ * THE raw plan name reader: the server's plan name (`plus_1m`, `plus_1y`, `ultimate_1m`, `ultimate_1y`, `free`,
12
+ * null, a quoted claim) collapsed to a Tier. `ultimate` or `ultimate_*` is tested before the plus test; every name
13
+ * it does not know is free, as before. Pure.
14
+ */
15
+ export declare function tierOfPlanName(raw: unknown): Tier;
16
+ /** The plan a staff or partner role bypass gates as (the top plan). */
17
+ export declare const ROLE_BYPASS_TIER: Tier;
18
+ /** A paid plan is any plan that is not free (plus or ultimate). Pure. */
19
+ export declare function isPaidTier(tier: Tier): boolean;
20
+ /** The plan one rank up (free to plus, plus to ultimate), or null on the top plan. For "what the next plan gives". Pure. */
21
+ export declare function nextTierUp(tier: Tier): Tier | null;
22
+ /**
23
+ * The plan an upgrade prompt may offer from `tier` WITHOUT the price list, or null when it cannot know: free
24
+ * always gets Plus. Plus answers null because Ultimate is offered only while the price list sells it, and the
25
+ * start-up code cannot read that list; a Plus holder's prompt goes through the lazy decider
26
+ * (`utility/plan/ultimate-offer.lazy.ts`), which reads it. An Ultimate holder is never offered anything. Pure.
27
+ */
28
+ export declare function upgradeOfferTier(tier: Tier): Tier | null;
29
+ /**
30
+ * The cheap start-up test before a Plus holder's prompt loads the lazy decider: the count limit `key` is higher
31
+ * one plan up from `tier`, and a prompt may say so. Not the full rule (the decider also asks whether the higher
32
+ * plan is on sale and whether its number waits on server capacity); it only keeps the decider's chunk from loading
33
+ * for a limit that is not higher one plan up. Pure.
34
+ */
35
+ export declare function countLimitRisesOneUp(key: CountFeatureKey, tier: Tier): boolean;
10
36
  export declare const GATEWAY_TIER_MAX_BARS: Record<Tier, {
11
37
  default: number;
12
38
  intervals: Partial<Record<string, number>>;
@@ -19,74 +45,97 @@ export declare const FEATURE_LIMITS: {
19
45
  readonly workspaces: {
20
46
  readonly free: 10;
21
47
  readonly plus: 50;
48
+ readonly ultimate: 500;
22
49
  };
23
50
  readonly indicatorsPerChart: {
24
51
  readonly free: 3;
25
52
  readonly plus: 10;
53
+ readonly ultimate: 40;
26
54
  };
27
55
  readonly privateKScripts: {
28
56
  readonly free: 100;
29
57
  readonly plus: 500;
58
+ readonly ultimate: 5000;
30
59
  };
31
60
  readonly multicharts: {
32
61
  readonly free: 1;
33
62
  readonly plus: 16;
63
+ readonly ultimate: 16;
34
64
  };
35
65
  readonly priceAlerts: {
36
66
  readonly free: 200;
37
67
  readonly plus: 500;
68
+ readonly ultimate: 1000;
38
69
  };
39
70
  readonly indicatorAlerts: {
40
71
  readonly free: 5;
41
72
  readonly plus: 50;
73
+ readonly ultimate: 250;
42
74
  };
43
75
  readonly widgetsPerLayout: {
44
76
  readonly free: 3;
45
77
  readonly plus: 10;
78
+ readonly ultimate: 40;
46
79
  };
47
80
  readonly publishedLayouts: {
48
81
  readonly free: 10;
49
82
  readonly plus: 50;
83
+ readonly ultimate: 50;
50
84
  };
51
85
  readonly replayReachBars: {
52
86
  readonly free: number;
53
87
  readonly plus: number;
88
+ readonly ultimate: number;
54
89
  };
55
90
  readonly heatmap4K: {
56
91
  readonly free: true;
57
92
  readonly plus: true;
93
+ readonly ultimate: true;
58
94
  };
59
95
  readonly fullOrderbookDepth: {
60
96
  readonly free: false;
61
97
  readonly plus: true;
98
+ readonly ultimate: true;
62
99
  };
63
100
  readonly oneSecondInterval: {
64
101
  readonly free: false;
65
102
  readonly plus: true;
103
+ readonly ultimate: true;
104
+ };
105
+ readonly typedIntervalWidths: {
106
+ readonly free: false;
107
+ readonly plus: true;
108
+ readonly ultimate: true;
66
109
  };
67
110
  readonly marketReplay: {
68
111
  readonly free: true;
69
112
  readonly plus: true;
113
+ readonly ultimate: true;
70
114
  };
71
115
  readonly replayBookLayers: {
72
116
  readonly free: true;
73
117
  readonly plus: true;
118
+ readonly ultimate: true;
74
119
  };
75
120
  readonly topCallersMyList: {
76
121
  readonly free: false;
77
122
  readonly plus: true;
123
+ readonly ultimate: true;
78
124
  };
79
125
  readonly hyperliquidAddress: {
80
126
  readonly free: false;
81
127
  readonly plus: true;
128
+ readonly ultimate: true;
82
129
  };
83
130
  readonly paneMerge: {
84
131
  readonly free: true;
85
132
  readonly plus: true;
133
+ readonly ultimate: true;
86
134
  };
87
135
  readonly cmeL3OrderFlow: {
88
136
  readonly free: false;
89
137
  readonly plus: true;
138
+ readonly ultimate: true;
90
139
  };
91
140
  };
92
141
  type FeatureKey = keyof typeof FEATURE_LIMITS;
@@ -100,10 +149,20 @@ export type BinaryFeatureKey = {
100
149
  }[FeatureKey];
101
150
  /**
102
151
  * What the data-indicator budget spans: one chart (`indicatorsPerChart` per
103
- * chart, today and Plus) or the whole layout (free tier v2: ONE shared budget
104
- * of `indicatorsPerChart.free` slots across every chart of the layout).
152
+ * chart: Plus and Ultimate) or the whole layout (ONE shared budget of the plan's
153
+ * `indicatorsPerChart` slots across every chart of the layout: Free under free
154
+ * tier v2).
105
155
  */
106
156
  export type IndicatorBudgetScope = 'chart' | 'layout';
157
+ /**
158
+ * Two budgets: the most data-indicator slots a whole workspace holds on a plan that counts per chart. Ultimate
159
+ * counts 40 on each chart, as Plus counts 10, and no more than 80 across every chart of the workspace. Plus runs
160
+ * at most 60 at once (10 on each of the six charts of the largest layout that keeps a full budget), so the total
161
+ * stays above what any Plus workspace runs, and a wide layout cannot stack 40 on every chart. The app alone holds
162
+ * this total (the add gate and the load-time clamp); the servers judge a paid plan per chart. A plan without a row
163
+ * has no total.
164
+ */
165
+ export declare const INDICATOR_WORKSPACE_CAP: Partial<Record<Tier, number>>;
107
166
  /**
108
167
  * Free rows that change under free tier v2 (`isFreeTierV2On()`; Plus rows never change).
109
168
  * 16 = MAX_PANE_GRID_PANES, the largest grid (4x4). The free data budget keeps
@@ -117,8 +176,17 @@ export declare const FREE_TIER_V2_FREE_LIMITS: {
117
176
  * overlay applied to the free tier while the flag is on. Pure.
118
177
  */
119
178
  export declare function resolveCountLimit(key: CountFeatureKey, tier: Tier, freeTierV2: boolean): number;
120
- /** THE scope decider: 'layout' iff free tier v2 is on and the GATING tier (role bypass = plus) is free. Pure. */
179
+ /**
180
+ * THE scope decider over the GATING tier (role bypass = ultimate): Free's budget is ONE shared across every chart
181
+ * of the workspace while free tier v2 is on; a paid plan (Plus, Ultimate) counts per chart. Pure.
182
+ */
121
183
  export declare function indicatorBudgetScopeFor(gatingTier: Tier, freeTierV2: boolean): IndicatorBudgetScope;
184
+ /**
185
+ * THE workspace total read over the GATING tier: the second budget of a plan that counts per chart
186
+ * (INDICATOR_WORKSPACE_CAP), or null when the plan has none. A shared budget is its own total, so layout scope
187
+ * answers null. Pure.
188
+ */
189
+ export declare function indicatorWorkspaceCapFor(gatingTier: Tier, freeTierV2: boolean): number | null;
122
190
  /**
123
191
  * English display labels for gated features, kept beside FEATURE_LIMITS so a
124
192
  * new feature key forces a label in the same change (Record types enforce it).