@orangecharts/wrun-chart-host 0.16.0 → 0.18.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 (69) hide show
  1. package/README.md +2 -0
  2. package/dist/constants/feature-flags.constants.d.ts +2 -9
  3. package/dist/constants/feature-flags.constants.js +20 -98
  4. package/dist/constants/feature-limits.constants.d.ts +2 -2
  5. package/dist/constants/feature-limits.constants.js +8 -6
  6. package/dist/constants/marketCapabilities.constants.d.ts +9 -0
  7. package/dist/constants/marketCapabilities.constants.js +39 -11
  8. package/dist/constants/typed-indicator-source.leaf.d.ts +7 -0
  9. package/dist/constants/typed-indicator-source.leaf.js +47 -0
  10. package/dist/constants/typed-session-history-venue.leaf.d.ts +7 -0
  11. package/dist/constants/typed-session-history-venue.leaf.js +9 -0
  12. package/dist/constants/typed-width-fold.leaf.d.ts +7 -5
  13. package/dist/constants/typed-width-fold.leaf.js +7 -5
  14. package/dist/host-env.d.ts +2 -0
  15. package/dist/host-ports.types.d.ts +12 -17
  16. package/dist/index.d.ts +2 -0
  17. package/dist/index.js +2 -0
  18. package/dist/interfaces/kscript-diagnostics.interface.d.ts +7 -0
  19. package/dist/interfaces/wrun-runtime.interface.d.ts +6 -3
  20. package/dist/market-data/venues/index.d.ts +128 -143
  21. package/dist/market-data/venues/index.js +2 -2
  22. package/dist/market-data/venues/stocks.d.ts +1 -1
  23. package/dist/market-data/venues/stocks.js +2 -4
  24. package/dist/settings-templates/indicator-fields.js +5 -0
  25. package/dist/utility/chart/cme-user-scripts-gate.util.d.ts +8 -8
  26. package/dist/utility/chart/cme-user-scripts-gate.util.js +8 -8
  27. package/dist/utility/chart/governed-lanes-gate.util.d.ts +6 -6
  28. package/dist/utility/chart/governed-lanes-gate.util.js +6 -6
  29. package/dist/utility/chart/index-mode-admission.util.js +9 -1
  30. package/dist/utility/chart/index-mode.util.d.ts +2 -2
  31. package/dist/utility/chart/index-mode.util.js +12 -6
  32. package/dist/utility/chart/index-otc.leaf.d.ts +50 -0
  33. package/dist/utility/chart/index-otc.leaf.js +86 -0
  34. package/dist/utility/chart/kscript-provenance-keys.util.js +6 -0
  35. package/dist/utility/chart/market-session-schedule.util.d.ts +19 -0
  36. package/dist/utility/chart/market-session-schedule.util.js +2 -1
  37. package/dist/utility/chart/marketKind.util.d.ts +10 -5
  38. package/dist/utility/chart/marketKind.util.js +39 -5
  39. package/dist/utility/chart/mixed-mode.util.d.ts +1 -0
  40. package/dist/utility/chart/server-built-bars.util.d.ts +4 -0
  41. package/dist/utility/chart/server-built-bars.util.js +18 -0
  42. package/dist/utility/market-events/market-events.util.js +3 -0
  43. package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.js +2 -0
  44. package/dist/utility/v2/v2-enums.leaf.js +2 -0
  45. package/dist/utility/wrun/sources/row-lanes/dark_pool.d.ts +2 -1
  46. package/dist/utility/wrun/sources/row-lanes/dark_pool.js +4 -3
  47. package/dist/utility/wrun/wrun-batched-marks.util.d.ts +6 -2
  48. package/dist/utility/wrun/wrun-batched-marks.util.js +37 -6
  49. package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +15 -8
  50. package/dist/utility/wrun/wrun-chart-market-facts.util.js +11 -8
  51. package/dist/utility/wrun/wrun-cme-root-specs.util.d.ts +10 -6
  52. package/dist/utility/wrun/wrun-cme-root-specs.util.js +19 -13
  53. package/dist/utility/wrun/wrun-dark-pool.util.js +1 -1
  54. package/dist/utility/wrun/wrun-declared-warmup.util.d.ts +1 -1
  55. package/dist/utility/wrun/wrun-live-intake.util.d.ts +3 -0
  56. package/dist/utility/wrun/wrun-live-intake.util.js +6 -0
  57. package/dist/utility/wrun/wrun-live-tick.util.js +5 -1
  58. package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +40 -6
  59. package/dist/utility/wrun/wrun-market-size-defaults.util.d.ts +2 -2
  60. package/dist/utility/wrun/wrun-market-size-defaults.util.js +10 -8
  61. package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +3 -0
  62. package/dist/utility/wrun/wrun-overlay-run.util.d.ts +2 -0
  63. package/dist/utility/wrun/wrun-overlay-run.util.js +50 -14
  64. package/dist/utility/wrun/wrun-pin-venues.util.d.ts +3 -2
  65. package/dist/utility/wrun/wrun-pin-venues.util.js +6 -3
  66. package/dist/utility/wrun/wrun-run-health.util.js +1 -1
  67. package/dist/utility/wrun/wrun-session-composition.util.d.ts +3 -2
  68. package/dist/utility/wrun/wrun-session-composition.util.js +3 -2
  69. package/package.json +5 -5
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.18.0 | `@orangecharts/indicator-kit` 0.121.0, `@orangecharts/orange-v2-pb-common` 12.86.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | Same peers. Four things a host acts on. The index and yield venue's official bars: the index leaf gains `INDEX_OTC_SERVER_BUILT_BARS_FROM_MS` and `barsAreServerBuilt(exchange, intervalMs)`, the root exports `chartBarsAreServerBuilt(market, intervalMs)` (`utility/chart/server-built-bars.util`, a formula leg counts), and the live intake refuses a live fold on such a chart; a host stops folding live prints and gap rows into a bar of one day or wider there and reads the newest bar again from the server. `FeatureFlag` loses `UsEquitiesFull`, `WrunConvergingPrefix`, `DrawingAlertOneClick`, `DrawingsUnderCandles`, `ChartDraftOrder` and `TypedServerFutures` (graduated on web) and gains `FuturesNinjaTraderDepth`. `MARKET_DATA_VENUES` now lists the US stocks venue beside OPRA (it left `FLAG_GATED_MARKET_DATA_VENUES`), so a host that holds stocks behind a switch of its own keeps that switch at its own door. The env gains the optional `isSignedIn()`: the licence and broker flags read as kill switches that default on for a signed-in session, and a host without the port reads every session as a guest. The package commits landed since 0.17.0 ride along (`git log 3ad609a1a4.. -- packages/wrun-chart-host` in the web repo). |
132
+ | 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). |
131
133
  | 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). |
132
134
  | 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). |
133
135
  | 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). |
@@ -13,14 +13,12 @@ export declare const FeatureFlag: {
13
13
  readonly FuturesByofHistory: "futures-byof-history";
14
14
  readonly FuturesNinjaTrader: "futures-ninjatrader";
15
15
  readonly FuturesNinjaTraderData: "futures-ninjatrader-data";
16
+ readonly FuturesNinjaTraderDepth: "futures-ninjatrader-depth";
16
17
  readonly CoinbaseDerivativesExecution: "coinbase-derivatives-execution";
17
18
  readonly BrokerVenueLaneRithmic: "broker-venue-lane-rithmic";
18
19
  readonly BrokerVenueLaneNinjaTrader: "broker-venue-lane-ninjatrader";
19
- readonly PolymarketExecution: "polymarket-execution";
20
- readonly TradingHub: "trading-hub";
21
20
  readonly TradingVolume: "trading-volume";
22
21
  readonly DataLoadHealRegister: "data-load-heal-register";
23
- readonly CollabSyncV2: "collab-sync-v2";
24
22
  readonly DataLoadCrossChartJoin: "data-load-cross-chart-join";
25
23
  readonly DataLoadFamilySecondChild: "data-load-family-second-child";
26
24
  readonly ToolsDelta: "tools-delta";
@@ -38,10 +36,8 @@ export declare const FeatureFlag: {
38
36
  readonly PrepaidPlusCn: "prepaid-plus-cn";
39
37
  readonly ApiConsole: "api-console";
40
38
  readonly Opra: "opra";
41
- readonly UsEquitiesFull: "us-equities-full";
42
39
  readonly CmeEngine: "cme-engine";
43
- readonly VariationalMarkets: "variational-markets";
44
- readonly OptionsPanel: "options-panel";
40
+ readonly IndicesOtc: "indices-otc";
45
41
  readonly OpraUserScripts: "opra-user-scripts";
46
42
  readonly CmeUserScripts: "cme-user-scripts";
47
43
  readonly CmeLanes: "cme-lanes";
@@ -63,10 +59,7 @@ export declare const FeatureFlag: {
63
59
  readonly StoreBuiltinRows: "store-builtin-rows";
64
60
  readonly OptionsAccessPrewarm: "options-access-prewarm";
65
61
  readonly WrunDownloadBudgetCut: "wrun-download-budget-cut";
66
- readonly WrunConvergingPrefix: "wrun-converging-prefix";
67
62
  readonly ScreenshotLegacyCapture: "screenshot-legacy-capture";
68
- readonly DrawingAlertOneClick: "drawing-alert-one-click";
69
- readonly DrawingsUnderCandles: "drawings-under-candles";
70
63
  readonly TypedIntervalWidths: "typed-interval-widths";
71
64
  readonly DrawToTrade: "draw-to-trade";
72
65
  readonly PaneSides: "pane-sides";
@@ -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):
@@ -72,13 +69,13 @@ export const FeatureFlag = {
72
69
  // - the newest gap of a delayed chart filled from Rithmic's history plant; historical data is
73
70
  // outside what Rithmic has permitted (conformance Q13), so dark until it is.
74
71
  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}`).
72
+ // Kill switch of NinjaTrader (Tradovate) as a futures broker on top of `futures-trading`, default ON for a signed-in
73
+ // session (ninjatrader-flags.util isNinjaTraderOn).
78
74
  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.
75
+ // The live quote, candles and history from the user's own NinjaTrader market data, on top of `futures-ninjatrader`.
81
76
  FuturesNinjaTraderData: 'futures-ninjatrader-data',
77
+ // The order book (depth) from the user's own NinjaTrader market data, on top of `futures-ninjatrader-data`.
78
+ FuturesNinjaTraderDepth: 'futures-ninjatrader-depth',
82
79
  // Coinbase derivatives execution (the Deribit engine for non-US accounts; Kyle 2026-10-23 took it
83
80
  // off the paper trading key to hide it). Its own key, read through `isOn` by `isCexVenueFlagOn`, in
84
81
  // Lighter's shape: unminted, absent and guest all read off, internal roles included (no document,
@@ -87,27 +84,10 @@ 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
- // The host-served broker venues' dark keys (trading-core 0.3.0, `rithmic` and `ninjatrader` in the venue
91
- // registry): each venue descriptor states its key, read through `isOn` by `isCexVenueFlagOn`, so unminted,
92
- // absent and guest all read off and no venue surface offers a broker yet. On, the broker trades through the
93
- // shared venue surfaces (TRADING-UNIFY plan D13); the futures lane keeps riding `futures-trading` until then.
94
- // The same string values as the package's `FeatureFlag` leaf, which the venue flag mirror hands to `isOn`.
87
+ // Kill switches of the host-served broker venues (trading-core's venue registry), default ON for a signed-in session
88
+ // (flag-answered.util killSwitchOn). The same strings as the package's `FeatureFlag` leaf.
95
89
  BrokerVenueLaneRithmic: 'broker-venue-lane-rithmic',
96
90
  BrokerVenueLaneNinjaTrader: 'broker-venue-lane-ninjatrader',
97
- // Polymarket execution (docs/features/polymarket-execution/README.md): the prediction-market venue, a
98
- // lane of its own beside the exchange seam. Its own key, read through `isOn` by
99
- // `isPolymarketExecutionOn`: unminted, absent and guest all read off, so production ships it dark; the
100
- // dev/internal localStorage override lights it locally (`kiyo.flag-overrides` ->
101
- // `{"polymarket-execution": true}`). Mint it enabled to open it up. A linked account this browser
102
- // already holds keeps trading after it turns off.
103
- PolymarketExecution: 'polymarket-execution',
104
- // The trading hub (docs/features/trading-hub/README.md): one Trade door beside the avatar that
105
- // folds the desktop's linking, accounts and trade settings into one dialog. Rides the master
106
- // trading flag AND this key, read through `isOn` (`isTradingHubOn`): unminted, absent and guest
107
- // all read off, so production ships it dark; an internal role reads it on through the server's
108
- // bypass, the dev/internal localStorage override lights it locally (`kiyo.flag-overrides` ->
109
- // `{"trading-hub": true}`). Mint it enabled to open it up. Phones keep today's surfaces either way.
110
- TradingHub: 'trading-hub',
111
91
  // Trading Volume (docs/features/trading-hub/trading-volume.md): the private page inside the trading
112
92
  // hub with the notional the account traded through OpenMarket on Hyperliquid, and its two doors (the
113
93
  // profile menu's row under Brokers, the Hyperliquid account page's row). Read through `isOn`
@@ -127,7 +107,6 @@ export const FeatureFlag = {
127
107
  // the immediate footprint heals, the multi-trigger resync and the
128
108
  // session-blind poll cadence for every cohort.
129
109
  DataLoadHealRegister: 'data-load-heal-register',
130
- CollabSyncV2: 'collab-sync-v2',
131
110
  // Data-loading plan S11 kill switch (DEFAULT ON, boot-provisional shape:
132
111
  // a compile-time HARD_KILL above `!isExplicitlyOff`, data-fetching.util
133
112
  // isCrossChartJoinEnabled): panes on the same market, interval and overlay
@@ -240,16 +219,6 @@ export const FeatureFlag = {
240
219
  // affordance, contract charts and the purchase screens. Minted dark; the data tier itself is the
241
220
  // OPRA gate's and never flips with this flag (employees stay delayed like everyone).
242
221
  Opra: 'opra',
243
- // The US stocks tape on the chart (docs/features/data/us-stocks-tape.md): order flow from the tape on a US stock
244
- // chart (footprint, profiles, TPO, the CVD family read the ticker's tape market, utility/stocks/stock-tape-overlay.util),
245
- // time and sales, the exchange list, the $19 add-on surfaces, and the price alert redirect onto the free lane
246
- // (src/utility/alerts/stocks-alert-target.util.ts). Minted dark; read through `usEquitiesFullEnabled()` /
247
- // `useUsEquitiesFull()` (src/utility/stocks/us-equities-flag.util.ts) with `isOn`, so unminted and absent read off;
248
- // a guest reads the app's guest table (src/constants/guest-default-flags.constants.ts, on since the 2026-11-05
249
- // launch). With it off nothing in the app changes. The data tier is the stocks gate's
250
- // (905 s delayed for everyone today) and never flips with this flag. QA:
251
- // `localStorage.setItem('kiyo.flag-overrides', '{"us-equities-full":true}')`.
252
- UsEquitiesFull: 'us-equities-full',
253
222
  // CME real-time on the venue-generic market-data flow (ENTITLEMENT-PLANE Program B; docs/features/market-data/
254
223
  // plane.md, "CME on the plane"). While lit, the market-data registry lists the CME card
255
224
  // (`marketDataVenueIsServed('cme')`), the one CME purchase overlay mounts as the generic flow on
@@ -258,18 +227,14 @@ export const FeatureFlag = {
258
227
  // Read through `isOn`: unminted, absent and guest read off, so production ships it dark; light it only once
259
228
  // orange's CME engine mode is `live`. QA: `localStorage.setItem('kiyo.flag-overrides', '{"cme-engine":true}')`.
260
229
  CmeEngine: 'cme-engine',
261
- // Variational (VARIATIONAL perpetuals, VARIATIONAL_SWAP swaps) in pickers, search, recents, popular rows
262
- // and watchlist import: a flag-gated venue (exchange-visibility.util FLAG_GATED_EXCHANGES), read through
263
- // `isOn`, so unminted, absent and guest all read off and every surface ships it dark. An internal role
264
- // reads it on through the server's bypass once it is minted; the dev/internal override lights it
265
- // locally (`kiyo.flag-overrides` -> `{"variational-markets": true}`). A chart already on the venue
266
- // still loads (docs/features/data/quote-perp-venues.md). Mint it enabled to release the venue.
267
- VariationalMarkets: 'variational-markets',
268
- // The Options panel (the Options front door): the ticker bar's Options button, the panel itself and every door
269
- // to it, read through `isOptionsPanelOn()` (src/utility/options/options-panel-gate.util.ts) with `isOn`:
270
- // unminted, absent and guest all read off, so production ships it dark; minted disabled, an internal role reads
271
- // it on. QA: `localStorage.setItem('kiyo.flag-overrides', '{"options-panel":true}')`. Mint it enabled to open it up.
272
- OptionsPanel: 'options-panel',
230
+ // The index and yield venue (index-otc.leaf: stock indices, the dollar and volatility indices, US Treasury
231
+ // yields) in pickers, search, recents, popular rows and watchlist import: a flag-gated venue
232
+ // (exchange-visibility.util FLAG_GATED_EXCHANGES), read through `isOn`, so unminted, absent and guest all read
233
+ // off and every surface ships it dark. The dev/internal override lights it locally (`kiyo.flag-overrides` ->
234
+ // `{"indices-otc": true}`). It is also the venue's release door: the pinned enum names the exchange, and while
235
+ // this reads off the data worker keeps every read of the venue home (workers/series/unreleased-venues). Do not
236
+ // mint it before the launch round proves the venue on real data.
237
+ IndicesOtc: 'indices-otc',
273
238
  // User-authored scripts on OPRA. The OPRA licence covers user-authored scripting over OPRA data, in the
274
239
  // browser and on OpenMarket's servers (Kyle 2026-10-27, the signed set); this flag is the one product switch
275
240
  // for both lanes. While lit, a script the browser runs that the viewer wrote or added from the community (an
@@ -288,31 +253,11 @@ export const FeatureFlag = {
288
253
  // LAUNCHED 2026-10-27: the gate answers open on every build (opra-user-scripts-gate.util); this record
289
254
  // is retired and read by nothing.
290
255
  OpraUserScripts: 'opra-user-scripts',
291
- // User-authored chart studies on CME (wrun CME Chart Studies), the browser lane only. While lit, a script the
292
- // browser runs that the viewer wrote or added from the community (a kScript user script or editor draft, an
293
- // Indicator draft, a community package) reads CME futures data at the viewer's own entitlement, and on a CME chart
294
- // its CME options chains (the chart's own, another CME root's through `underlying`): the display wall, the data
295
- // wall and the engine policy lift for it on the CME plane only (kscript-venue-policy.util `isCmeUserScriptRun`, the
296
- // one decision; a chain wall reads `mayReadCmeChain`), and only for a viewer the CME plane serves (signed in, not
297
- // a guest, the CME data terms not blocked; delayed and real-time both count, the tier is the gate's). Both facts
298
- // reach the worker-safe venue policy through cme-user-scripts-gate.util (closed in a worker, for a guest and before
299
- // a reader is handed over). Refused whatever it says while `cme-lanes` is dark (reversed 2026-11-11 behind it):
300
- // hosted (Cloud) runs, protected scripts, indicator alerts, strategies and backtests. Refused always: a CME
301
- // chain read from a chart off CME, the
302
- // export of a study's results (console copies, clips), agent reads (chart_read and the MCP withhold the stamped
303
- // study) and the publish cover's capture of a chart that carries CME data. A move of the flag, the account, the
304
- // terms, the served access or the session stops a running study in place and keeps its source and settings. To be
305
- // minted dark (admin panel); read with `isOn` (absent, unloaded and guest read off) and never read server-side:
306
- // the server lanes judge a user run's CME reads on their own. QA:
307
- // `localStorage.setItem('kiyo.flag-overrides', '{"cme-user-scripts":true}')`.
256
+ // Kill switch of user-authored chart studies on CME, default ON for a signed-in session once the map answers
257
+ // (flag-answered.util licenceFlagOn; cme-user-scripts-gate.util holds the gate).
308
258
  CmeUserScripts: 'cme-user-scripts',
309
- // The governed-lanes cutover, one flag per licensed plane (governed-lanes-gate.util holds the one reader;
310
- // kscript-venue-policy.util, the one decider). While a plane's flag is lit, that plane opens to the server
311
- // lanes as well as the browser: hosted (Cloud) runs, protected scripts, strategy testing and every alert kind. While
312
- // it is dark (the default), the plane reads exactly as it did before the cutover. Each plane keeps its own decision
313
- // under a lit flag: CME still needs the `cme-user-scripts` gate (the flag, sign-in, the CME data terms) on every
314
- // lane. To be minted dark (admin panel); read with `isOn` (absent, unloaded and guest read off), never forced on in
315
- // dev. QA: `localStorage.setItem('kiyo.flag-overrides', '{"cme-lanes":true}')`.
259
+ // Kill switches of the governed-lanes cutover, one per licensed plane, default ON for a signed-in session once the
260
+ // map answers (flag-answered.util licenceFlagOn, read through governed-lanes-gate.util).
316
261
  CmeLanes: 'cme-lanes',
317
262
  OpraLanes: 'opra-lanes',
318
263
  StocksLanes: 'stocks-lanes',
@@ -423,33 +368,10 @@ export const FeatureFlag = {
423
368
  // dark until Kyle switches it on; the dev/internal localStorage override lights it for a rig (`kiyo.flag-overrides` ->
424
369
  // `{"wrun-download-budget-cut": true}`).
425
370
  WrunDownloadBudgetCut: 'wrun-download-budget-cut',
426
- // Converging warm-up stamps (STAMPS round A, docs/features/kscript/wrun/wrun-browser-runtime.md, "Exact warm-up
427
- // sessions"): a package whose sheet carries `history_warmup` of kind `converges` (a recursion the build's gate
428
- // certified to agree within 1e-6 once W accepted inputs ran) gets a hidden head of W candles on every run, and its
429
- // pan-back pages land as prefix runs whose overlap proof compares the row outputs within that tolerance. Off, a
430
- // converging stamp of any shape reads as no stamp before anything else reads it (no head, no session, no admission:
431
- // the run is today's; the capability ring line alone names the kind). Read through `isOn` (the overlay run's
432
- // `wrunConvergingPrefixOn`): unminted, absent and guest all read off, so production ships it dark until round B
433
- // proves it on a rig; the dev/internal localStorage override lights it for a rig (`kiyo.flag-overrides` ->
434
- // `{"wrun-converging-prefix": true}`).
435
- WrunConvergingPrefix: 'wrun-converging-prefix',
436
371
  // Kill switch of the in-place chart picture (src/utility/screenshot.util.ts captureLayered): ON sends every capture
437
372
  // through the legacy html2canvas path (a clone of the whole page, seconds of frozen page). Unminted and absent read
438
373
  // off, so production takes the in-place engine; mint it ON only to roll the engine back without a deploy.
439
374
  ScreenshotLegacyCapture: 'screenshot-legacy-capture',
440
- // One-click alerts on drawings (docs/features/alerts/alert-targets.md, "One click"): the quick bar's labelled
441
- // Alert pill arms at once with an Undo toast, its on state opens the Once / Every time / Turn off menu, the
442
- // right-click row, the ink chip and Alt+A arm the same way, and the engine decor bridge runs. Off: the bell
443
- // icon opens the alert dialog as before. Read through `isOn` (useDrawingAlertOneClickFlag): unminted, absent
444
- // and guest read off, so production ships it dark; `kiyo.flag-overrides` -> `{"drawing-alert-one-click": true}`.
445
- DrawingAlertOneClick: 'drawing-alert-one-click',
446
- // Send behind candles / Bring in front of candles (docs/features/object-tree/persistence-and-undo.md): the row of
447
- // the right-click Order submenu, the quick bar's "..." menu and the Objects row menu, and the action they share
448
- // (drawing-selection-actions setDrawingsUnderCandles). Off: no row and no write; a drawing already saved under the
449
- // candles still paints there (the engine reads `settings.underCandles`). Read through `isOn`
450
- // (useDrawingsUnderCandlesFlag): unminted, absent and guest read off, so production ships it dark;
451
- // `kiyo.flag-overrides` -> `{"drawings-under-candles": true}`.
452
- DrawingsUnderCandles: 'drawings-under-candles',
453
375
  // Typed candle widths (docs/features/chart/custom-intervals.md): a width off the ladder that divides a UTC day
454
376
  // (`20m`, `90m`, typed-width.leaf), asked as CUSTOM plus `barSeconds`. Read through `isOn` (typedWidthsFlagOn) and
455
377
  // mirrored to the data worker (typed-width-reads.util): unminted, absent and guest read off, so production ships it
@@ -65,12 +65,12 @@ export declare const FEATURE_LIMITS: {
65
65
  readonly priceAlerts: {
66
66
  readonly free: 200;
67
67
  readonly plus: 500;
68
- readonly ultimate: 2000;
68
+ readonly ultimate: 1000;
69
69
  };
70
70
  readonly indicatorAlerts: {
71
71
  readonly free: 5;
72
72
  readonly plus: 50;
73
- readonly ultimate: 500;
73
+ readonly ultimate: 250;
74
74
  };
75
75
  readonly widgetsPerLayout: {
76
76
  readonly free: 3;
@@ -107,12 +107,14 @@ export const FEATURE_LIMITS = {
107
107
  // interest, funding, liquidations and the other native templates, no user
108
108
  // script to run); indicator alerts are user kScript, built-in indicator
109
109
  // scripts and hosted Indicators. Mirrors orange-v2-backend
110
- // src/utility/feature-gate.ts FEATURE_LIMITS.priceAlerts / .indicatorAlerts
111
- // and tharamine-user-service's agent-lane tier table
112
- // (src/controllers/api-v2/kscript-alert.controller.ts): change all three
113
- // together or the UI gate and the server 403 disagree.
114
- priceAlerts: { free: 200, plus: 500, ultimate: 2000 },
115
- indicatorAlerts: { free: 5, plus: 50, ultimate: 500 },
110
+ // src/utility/feature-gate.ts FEATURE_LIMITS.priceAlerts / .indicatorAlerts,
111
+ // tharamine-user-service's plan table (KSCRIPT_ALERT_PLAN_POLICY in
112
+ // src/constants/kscript-alert-plan.constants.ts, the one that is enforced)
113
+ // and the phone app's copy (kiyotaka-frontend-app
114
+ // src/features/gating/constants/feature-limits.ts): change all four
115
+ // together or the UI gate and the server refusal disagree.
116
+ priceAlerts: { free: 200, plus: 500, ultimate: 1000 },
117
+ indicatorAlerts: { free: 5, plus: 50, ultimate: 250 },
116
118
  widgetsPerLayout: { free: 3, plus: 10, ultimate: 40 },
117
119
  publishedLayouts: { free: 10, plus: 50, ultimate: 50 },
118
120
  // Domain clamps (limit access without counting created resources)
@@ -76,6 +76,15 @@ export declare const OPRA_OPTIONS_CAPABILITIES: IMarketCapabilities;
76
76
  * Fixed Range Volume Profile tool stand down. `getCapabilities` returns this for those exchanges.
77
77
  */
78
78
  export declare const ONCHAIN_POOL_CAPABILITIES: IMarketCapabilities;
79
+ /**
80
+ * Exchanges whose order book we do not serve, whatever their market kind supports. `getCapabilities`
81
+ * answers `supportsOrderbook: false` for each, and the order book panes leave them out of their
82
+ * exchange pickers. Add an exchange here to turn every book surface off for it.
83
+ *
84
+ * BITGET: since 2026-10-15 Bitget sends the live book of its stock tokens only to accounts with a
85
+ * permission we do not hold, so the backend stopped collecting it.
86
+ */
87
+ export declare const NO_ORDERBOOK_EXCHANGES: readonly string[];
79
88
  export declare const MARKET_CAPABILITIES: Record<VenueMarketKind, IMarketCapabilities>;
80
89
  /** Every market kind (the FE `'futures'` kind included). Derived from
81
90
  * `MARKET_CAPABILITIES` so adding a new kind to the registry automatically
@@ -67,18 +67,28 @@ export const ONCHAIN_POOL_CAPABILITIES = {
67
67
  supportsOrderbook: false,
68
68
  alertSymbolMode: 'slug',
69
69
  };
70
+ const CRYPTO_CAPABILITIES = {
71
+ barTimestamps: 'uniform',
72
+ fetchMode: 'period',
73
+ supportsVolumeStats: true,
74
+ supportsTradesFeed: true,
75
+ supportsMarketStats: true,
76
+ supportsFRVP: true,
77
+ supportsOrderbook: true,
78
+ alertSymbolMode: 'slug',
79
+ allowsCalendarIntervals: true,
80
+ };
81
+ /**
82
+ * Exchanges whose order book we do not serve, whatever their market kind supports. `getCapabilities`
83
+ * answers `supportsOrderbook: false` for each, and the order book panes leave them out of their
84
+ * exchange pickers. Add an exchange here to turn every book surface off for it.
85
+ *
86
+ * BITGET: since 2026-10-15 Bitget sends the live book of its stock tokens only to accounts with a
87
+ * permission we do not hold, so the backend stopped collecting it.
88
+ */
89
+ export const NO_ORDERBOOK_EXCHANGES = ['BITGET'];
70
90
  export const MARKET_CAPABILITIES = {
71
- crypto: {
72
- barTimestamps: 'uniform',
73
- fetchMode: 'period',
74
- supportsVolumeStats: true,
75
- supportsTradesFeed: true,
76
- supportsMarketStats: true,
77
- supportsFRVP: true,
78
- supportsOrderbook: true,
79
- alertSymbolMode: 'slug',
80
- allowsCalendarIntervals: true,
81
- },
91
+ crypto: CRYPTO_CAPABILITIES,
82
92
  hip3: {
83
93
  barTimestamps: 'uniform',
84
94
  fetchMode: 'period',
@@ -218,6 +228,24 @@ export const MARKET_CAPABILITIES = {
218
228
  alertSymbolMode: 'slug',
219
229
  allowsCalendarIntervals: true,
220
230
  },
231
+ // Stock indices, the dollar and volatility indices and US Treasury yields
232
+ // (index-otc.leaf). Quote candles (TICKER_AGG) from 1m up with market closes
233
+ // and weekends between sessions, so the forex record's shape: irregular bars,
234
+ // count fetch, no trades, volume, book or profile. The licence allows alerts,
235
+ // but no alert engine lane is proven for the venue yet, so they stay closed
236
+ // (an armed one would save and never fire).
237
+ marketIndex: {
238
+ barTimestamps: 'irregular',
239
+ fetchMode: 'count',
240
+ supportsVolumeStats: false,
241
+ supportsTradesFeed: false,
242
+ supportsMarketStats: false,
243
+ supportsFRVP: false,
244
+ supportsOrderbook: false,
245
+ supportsAlerts: false,
246
+ alertSymbolMode: 'coin',
247
+ allowsCalendarIntervals: true,
248
+ },
221
249
  };
222
250
  // =============================================================================
223
251
  // MarketKind shorthand sets — for `IIndicatorControl.marketKinds` declarations.
@@ -0,0 +1,7 @@
1
+ import type { LiveBucketVenue } from '../utility/chart/live-bucket.util.js';
2
+ export interface TypedIndicatorSource {
3
+ label: string;
4
+ ms: number;
5
+ rowsPerBar: number;
6
+ }
7
+ export declare function typedIndicatorSource(widthLabel: string, venue: LiveBucketVenue, sessionFiltered: boolean): TypedIndicatorSource | null;
@@ -0,0 +1,47 @@
1
+ /**
2
+ * The stored size an indicator reads to build one custom bar on a session grid, and how many of its rows make a full
3
+ * bar. Every bar start and bar end on the four session kinds below falls on a whole row of the chosen size: the
4
+ * sessions open on a quarter hour (CME regular hours 08:30 Chicago, stocks 09:30 and 04:00 New York) or on the hour
5
+ * (CME full session 17:00 Chicago), so 1m, 5m and 15m rows always fit, and 1h rows fit only on the full-session lattice
6
+ * with no regular-hours filter on the rows.
7
+ *
8
+ * Null is a refusal: a label that is not a custom width under a day, or a grid kind the indicator folds do not serve
9
+ * (UTC, forex, options). A caller never falls back to another grid on null.
10
+ *
11
+ * LAZY: it reads the lazy grid file, so it is reached by `await import()` only (tests/perf/typed-width-rules-lazy-closure.spec.ts).
12
+ */
13
+ import { typedWidthSeconds } from './typed-width.leaf.js';
14
+ import { typedGridKind } from '../utility/chart/typed-width-grid.util.js';
15
+ const MINUTE_MS = 60_000;
16
+ /** The source minutes for each custom width under a day, 3h aside (it depends on the grid). */
17
+ const SOURCE_MINUTES = {
18
+ '4m': 1,
19
+ '6m': 1,
20
+ '8m': 1,
21
+ '9m': 1,
22
+ '12m': 1,
23
+ '16m': 1,
24
+ '18m': 1,
25
+ '20m': 5,
26
+ '40m': 5,
27
+ '80m': 5,
28
+ '90m': 15,
29
+ };
30
+ const SESSION_KINDS = new Set(['cme-session', 'cme-regular', 'equity-regular', 'equity-extended']);
31
+ const SOURCE_LABELS = { 1: '1m', 5: '5m', 15: '15m', 60: '1h' };
32
+ export function typedIndicatorSource(widthLabel, venue, sessionFiltered) {
33
+ const seconds = typedWidthSeconds(widthLabel);
34
+ if (seconds === undefined || !(seconds < 86_400))
35
+ return null;
36
+ const widthMs = seconds * 1000;
37
+ const kind = typedGridKind(widthMs, venue);
38
+ if (!SESSION_KINDS.has(kind))
39
+ return null;
40
+ // 3h: hourly rows sit on :00, which only the full-session lattice (17:00 Chicago) keeps without a regular-hours
41
+ // filter; every other session opens on a quarter hour, so 12 rows of 15m.
42
+ const minutes = widthLabel === '3h' ? (kind === 'cme-session' && !sessionFiltered ? 60 : 15) : SOURCE_MINUTES[widthLabel];
43
+ if (minutes === undefined)
44
+ return null;
45
+ const ms = minutes * MINUTE_MS;
46
+ return { label: SOURCE_LABELS[minutes], ms, rowsPerBar: widthMs / ms };
47
+ }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * The session venues whose custom sizes the gateway can build on the market's own session grid (the CME family: CME,
3
+ * CBOT, NYMEX, COMEX). One predicate for the page's server door (typed-history-door.util, lazy) and the data worker's
4
+ * doors (read-series, v2.worker.service, ohlcv.worker). Takes the exchange code or wire name. A leaf of its own so the
5
+ * boot leaf typed-width.leaf carries none of an opt-in feature (tests/perf/typed-width-rules-lazy-closure.spec.ts).
6
+ */
7
+ export declare function isTypedSessionHistoryVenue(exchange: unknown): boolean;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The session venues whose custom sizes the gateway can build on the market's own session grid (the CME family: CME,
3
+ * CBOT, NYMEX, COMEX). One predicate for the page's server door (typed-history-door.util, lazy) and the data worker's
4
+ * doors (read-series, v2.worker.service, ohlcv.worker). Takes the exchange code or wire name. A leaf of its own so the
5
+ * boot leaf typed-width.leaf carries none of an opt-in feature (tests/perf/typed-width-rules-lazy-closure.spec.ts).
6
+ */
7
+ export function isTypedSessionHistoryVenue(exchange) {
8
+ return typeof exchange === 'string' && /^(CME|CBOT|NYMEX|COMEX)$/.test(exchange);
9
+ }
@@ -19,11 +19,13 @@ export declare function profileRowMsForChart(chartMs: number): number;
19
19
  /** True when a chart bar of `lengthMs` is a typed width (the footprint workers hold the chart length, not its label). */
20
20
  export declare function isTypedWidthLengthMs(lengthMs: number): boolean;
21
21
  /**
22
- * The closed end of a typed read, in ms: the end of a window that closed before the server's now. The gateway's range
23
- * includes its end (`bucket <= to`), so a closed window ending at T brings back the stored row AT T. On a typed width
24
- * that row opens the NEXT typed bar, and the fold would turn it into a bar stamped T holding 1 of its k rows (a short
25
- * sum, the first value instead of the last, the mean of one row). The next (newer) window starts at T and owns that bar
26
- * whole, so the bar is dropped (`keepBarsBeforeClosedEnd`).
22
+ * The closed end of a typed read, in ms: the end of a window that closed before the server's now. The gateway's SQL
23
+ * includes a range's end (`bucket <= to`), so a closed window ending at T can bring back the stored row AT T. It does
24
+ * not always: a read the gateway slices into cache chunks and every leg of a continuous symbol are trimmed to
25
+ * `t < until`, so never count on that row (typed-candle-fold.worker.util `WIRE_END_PAD_MS`). On a typed width the row
26
+ * opens the NEXT typed bar, and the fold would turn it into a bar stamped T holding 1 of its k rows (a short sum, the
27
+ * first value instead of the last, the mean of one row). The next (newer) window starts at T and owns that bar whole,
28
+ * so the bar is dropped (`keepBarsBeforeClosedEnd`), which is right whether the row came back or not.
27
29
  *
28
30
  * `tf` is the chart's interval: a label (the line workers' `payload.tf`) or the bar length in ms (the footprint
29
31
  * workers' `chartTfMs`). Both forms go through the one rule below.
@@ -57,11 +57,13 @@ export function isTypedWidthLengthMs(lengthMs) {
57
57
  return TYPED_WIDTH_LABELS.some((label) => TYPED_WIDTH_SECONDS[label] === seconds);
58
58
  }
59
59
  /**
60
- * The closed end of a typed read, in ms: the end of a window that closed before the server's now. The gateway's range
61
- * includes its end (`bucket <= to`), so a closed window ending at T brings back the stored row AT T. On a typed width
62
- * that row opens the NEXT typed bar, and the fold would turn it into a bar stamped T holding 1 of its k rows (a short
63
- * sum, the first value instead of the last, the mean of one row). The next (newer) window starts at T and owns that bar
64
- * whole, so the bar is dropped (`keepBarsBeforeClosedEnd`).
60
+ * The closed end of a typed read, in ms: the end of a window that closed before the server's now. The gateway's SQL
61
+ * includes a range's end (`bucket <= to`), so a closed window ending at T can bring back the stored row AT T. It does
62
+ * not always: a read the gateway slices into cache chunks and every leg of a continuous symbol are trimmed to
63
+ * `t < until`, so never count on that row (typed-candle-fold.worker.util `WIRE_END_PAD_MS`). On a typed width the row
64
+ * opens the NEXT typed bar, and the fold would turn it into a bar stamped T holding 1 of its k rows (a short sum, the
65
+ * first value instead of the last, the mean of one row). The next (newer) window starts at T and owns that bar whole,
66
+ * so the bar is dropped (`keepBarsBeforeClosedEnd`), which is right whether the row came back or not.
65
67
  *
66
68
  * `tf` is the chart's interval: a label (the line workers' `payload.tf`) or the bar length in ms (the footprint
67
69
  * workers' `chartTfMs`). Both forms go through the one rule below.
@@ -465,6 +465,8 @@ export interface WrunHostUser {
465
465
  isDarkMode(): unknown;
466
466
  /** 0.5.0, run. web: kscriptStandInAccount() (utility/chart/kscript-standin-account.util.ts:16; reads store/jwt). */
467
467
  standInAccount(): string;
468
+ /** Next release, optional, run. web: isSignedInSession(); a host without it reads every session as a guest. */
469
+ isSignedIn?(): boolean;
468
470
  /** 0.5.0, run. web: technicalScriptThemeLines(isDarkMode, themeMode, chartMetadata)
469
471
  * (utility/chart/builtin-script-theme-palette.util.ts:370; executor :9616). */
470
472
  themeLines(isDarkMode: boolean | undefined, themeMode: string | undefined, chartMetadata: unknown): string[];
@@ -154,10 +154,14 @@ export interface WrunChartStoreView {
154
154
  * `IndicatorOutputProvenance`): `opra` when the run read OPRA, its own fact from before it computed. Required.
155
155
  * CHANGED (next release): `cme` when the run is a CME user study (the `cme-user-scripts` gate opened the CME plane
156
156
  * to it), its own fact from before it computed; optional, so every writer that names OPRA alone compiles as before
157
- * and reads unmarked for CME. */
157
+ * and reads unmarked for CME.
158
+ * `indexOtc` when the run read the index and yield venue (index-otc.leaf), its own fact from before it computed;
159
+ * optional the same way: the web store reads it (console-run-output.leaf `IndicatorOutputProvenance`), and a
160
+ * writer that never names it reads unmarked. */
158
161
  setIndicatorPrintOutputs(chartIndex: number, indicatorId: string, printOutputsInput: unknown, provenance: {
159
162
  opra: boolean;
160
163
  cme?: boolean;
164
+ indexOtc?: boolean;
161
165
  }): void;
162
166
  setIndicatorRunOutputSummary(chartIndex: number, indicatorId: string, runResult: WrunKScriptRunResultLike | null): void;
163
167
  setKScriptLoadingIndicator(chartIndex: number, indicatorId: string, loading: boolean): void;
@@ -271,18 +275,6 @@ export interface WrunMainCandleRequestIdentity {
271
275
  /** The chart's instrument category (an option contract's is OPTION). */
272
276
  category?: number;
273
277
  }
274
- /** The identity a chart's mounted main rows were loaded for, the fields the package reads (web: ohlcv-cache.types.ts
275
- * `MainDataRequestIdentity`; one way, web's carries the pool and adjustment fields too). */
276
- export interface WrunLoadedMainIdentity {
277
- readonly exchange: string | null;
278
- readonly symbol: string | null;
279
- readonly interval: string | null;
280
- readonly transformations: string | null;
281
- /** The chart's persisted session word the rows were loaded under: the identity compare reads the session the chart
282
- * rides from it (`wrunChartMarketIdentity`'s fifth term, effectiveChartSessionType), so a host that leaves it out
283
- * compares as the market's default session. */
284
- readonly sessionType?: unknown;
285
- }
286
278
  /** A lazy-load check's target range (web: utility/chart/viewport-pan-tracking.util.ts `LazyLoadTargetRange`). */
287
279
  export interface WrunLazyLoadTargetRange {
288
280
  startTs: number;
@@ -295,10 +287,13 @@ export interface WrunLazyLoadTargetRange {
295
287
  export interface WrunDataFetchingModule {
296
288
  runChartLazyLoadCheck(chartIndex: number, expectedTc?: WrunChartHandle, reason?: string, targetRange?: WrunLazyLoadTargetRange, trigger?: string): void;
297
289
  isMainCandleFetchInFlight(chartIndex: number): boolean;
298
- /** The identity the chart's mounted main rows were loaded for (web: `loadedMainIdentityOf`, the loaded-main identity
299
- * stamp every commit, cache paint and restore writes), or null before any stamp. A switch repoints the metadata
300
- * before the incoming market's rows mount, so a read that infers a market fact from the rows asks it first. */
301
- loadedMainIdentityOf(chartIndex: number): WrunLoadedMainIdentity | null;
290
+ /** Whether the chart's mounted main rows were loaded for the market `metadata` asks rows for (web:
291
+ * `mainRowsLoadedFor`, the loaded-main stamp against the request identity of that metadata, the compare its cache
292
+ * write guards run); false before any stamp. A switch repoints the metadata before the incoming market's rows
293
+ * mount, so a read that infers a market fact from the rows asks it first. The host answers, never the package: the
294
+ * rows' market is not always the chart's own (a US stock on Trades rides its tape), and only the host knows how its
295
+ * loader names it. */
296
+ mainRowsLoadedFor(chartIndex: number, metadata: object | null | undefined): boolean;
302
297
  buildMainCandleBasePayload(identity: WrunMainCandleRequestIdentity): object;
303
298
  resolveMainCandleSidedRequest(input: {
304
299
  transformations: string;
package/dist/index.d.ts CHANGED
@@ -104,6 +104,7 @@ export * from './utility/chart/host-bar-placement.util.js';
104
104
  export * from './utility/chart/index-host-tier.util.js';
105
105
  export * from './utility/chart/index-mode-admission.util.js';
106
106
  export * from './utility/chart/index-mode.util.js';
107
+ export * from './utility/chart/index-otc.leaf.js';
107
108
  export * from './utility/chart/indicator-coverage-planner.util.js';
108
109
  export * from './utility/chart/indicator-coverage-state.util.js';
109
110
  export * from './utility/chart/indicator-error-message.util.js';
@@ -178,6 +179,7 @@ export * from './utility/chart/quote-perp.leaf.js';
178
179
  export * from './utility/chart/rth-session.util.js';
179
180
  export * from './utility/chart/run-interval-unservable.leaf.js';
180
181
  export * from './utility/chart/run-interval-warmup.leaf.js';
182
+ export * from './utility/chart/server-built-bars.util.js';
181
183
  export * from './utility/chart/session-interval.util.js';
182
184
  export * from './utility/chart/technical-script-legend-value.util.js';
183
185
  export * from './utility/chart/titan-constants.pin.js';
package/dist/index.js CHANGED
@@ -108,6 +108,7 @@ export * from './utility/chart/host-bar-placement.util.js';
108
108
  export * from './utility/chart/index-host-tier.util.js';
109
109
  export * from './utility/chart/index-mode-admission.util.js';
110
110
  export * from './utility/chart/index-mode.util.js';
111
+ export * from './utility/chart/index-otc.leaf.js';
111
112
  export * from './utility/chart/indicator-coverage-planner.util.js';
112
113
  export * from './utility/chart/indicator-coverage-state.util.js';
113
114
  export * from './utility/chart/indicator-error-message.util.js';
@@ -182,6 +183,7 @@ export * from './utility/chart/quote-perp.leaf.js';
182
183
  export * from './utility/chart/rth-session.util.js';
183
184
  export * from './utility/chart/run-interval-unservable.leaf.js';
184
185
  export * from './utility/chart/run-interval-warmup.leaf.js';
186
+ export * from './utility/chart/server-built-bars.util.js';
185
187
  export * from './utility/chart/session-interval.util.js';
186
188
  export * from './utility/chart/technical-script-legend-value.util.js';
187
189
  export * from './utility/chart/titan-constants.pin.js';
@@ -34,6 +34,13 @@ export interface RuntimeDiagnostic {
34
34
  * CME chart). Read beside `opra`: the editor console shows it, and every console export strips it.
35
35
  */
36
36
  cme?: true;
37
+ /**
38
+ * The row was computed over the index and yield venue's data (index-otc.leaf `checkIsIndexOtc`, its display-only
39
+ * licence): the run that reported it read the venue (its own fact from before it computed: a run on the venue's
40
+ * chart or one of its formula legs, or a pin on it). Read beside `opra` and `cme`: the editor console shows it, and
41
+ * every console export strips it.
42
+ */
43
+ indexOtc?: true;
37
44
  }
38
45
  /** What failed, decided from the trap record (never from the text): a std-lib check the host names
39
46
  * (`index-out-of-range`, `key-not-found`, `array-empty`), the engine's `unreachable`, any other abort