@orangecharts/wrun-chart-host 0.9.0 → 0.10.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 (170) hide show
  1. package/README.md +1 -0
  2. package/dist/constants/feature-flags.constants.d.ts +6 -1
  3. package/dist/constants/feature-flags.constants.js +67 -24
  4. package/dist/constants/opra-compliance.constants.d.ts +3 -2
  5. package/dist/constants/opra-compliance.constants.js +3 -2
  6. package/dist/constants/scriptEditor/builtin-script-snippets.d.ts +26 -0
  7. package/dist/constants/scriptEditor/builtin-script-snippets.js +6 -0
  8. package/dist/constants/scriptEditor/technicalIndicatorScriptKeys.constants.d.ts +15 -0
  9. package/dist/constants/scriptEditor/technicalIndicatorScriptKeys.constants.js +17 -0
  10. package/dist/constants/venue-presets.constants.d.ts +20 -20
  11. package/dist/constants/venue-presets.constants.js +24 -26
  12. package/dist/host-env.d.ts +29 -5
  13. package/dist/host-env.js +6 -0
  14. package/dist/host-ports.types.d.ts +69 -15
  15. package/dist/index.d.ts +13 -0
  16. package/dist/index.js +13 -0
  17. package/dist/interfaces/kscript-diagnostics.interface.d.ts +6 -0
  18. package/dist/interfaces/replay.interface.d.ts +8 -0
  19. package/dist/interfaces/wrun-runtime.interface.d.ts +18 -2
  20. package/dist/kscript-data/controls/live-trades-merge.util.d.ts +41 -4
  21. package/dist/kscript-data/controls/live-trades-merge.util.js +52 -7
  22. package/dist/kscript-data/controls/live-trades-order-gate.util.d.ts +56 -0
  23. package/dist/kscript-data/controls/live-trades-order-gate.util.js +107 -0
  24. package/dist/market-data/billing.interface.d.ts +95 -31
  25. package/dist/market-data/billing.interface.js +36 -5
  26. package/dist/market-data/venue.d.ts +88 -6
  27. package/dist/market-data/venues/cme.contract.copy.json +66 -0
  28. package/dist/market-data/venues/cme.d.ts +126 -0
  29. package/dist/market-data/venues/cme.js +133 -0
  30. package/dist/market-data/venues/index.d.ts +162 -5
  31. package/dist/market-data/venues/index.js +48 -6
  32. package/dist/settings-templates/index.js +7 -3
  33. package/dist/settings-templates/indicator-fields.d.ts +5 -4
  34. package/dist/settings-templates/indicator-fields.js +45 -6
  35. package/dist/settings-templates/tool-rules.d.ts +27 -17
  36. package/dist/settings-templates/tool-rules.js +27 -11
  37. package/dist/settings-templates/tool-tables.generated.js +91 -31
  38. package/dist/utility/chart/book-live-bucket.util.d.ts +15 -0
  39. package/dist/utility/chart/book-live-bucket.util.js +47 -0
  40. package/dist/utility/chart/index-mode-admission.util.js +15 -2
  41. package/dist/utility/chart/kscript-drawing-safe-area.util.d.ts +35 -11
  42. package/dist/utility/chart/kscript-drawing-safe-area.util.js +145 -35
  43. package/dist/utility/chart/kscript-live-coalesce.util.d.ts +7 -2
  44. package/dist/utility/chart/kscript-live-coalesce.util.js +9 -3
  45. package/dist/utility/chart/kscript-provenance-keys.util.js +6 -0
  46. package/dist/utility/chart/kscript-standin-identity.leaf.d.ts +3 -1
  47. package/dist/utility/chart/kscript-titancharts-render-keys.constants.d.ts +32 -2
  48. package/dist/utility/chart/kscript-titancharts-render-keys.constants.js +45 -0
  49. package/dist/utility/chart/kscript-venue-policy.util.d.ts +54 -35
  50. package/dist/utility/chart/kscript-venue-policy.util.js +78 -42
  51. package/dist/utility/chart/market-session-schedule.util.d.ts +10 -0
  52. package/dist/utility/chart/market-session-schedule.util.js +16 -0
  53. package/dist/utility/chart/opra-read-access.leaf.d.ts +5 -3
  54. package/dist/utility/chart/opra-read-access.leaf.js +5 -3
  55. package/dist/utility/chart/rth-session.util.d.ts +3 -2
  56. package/dist/utility/chart/rth-session.util.js +2 -1
  57. package/dist/utility/chart/window-geometry.leaf.d.ts +8 -0
  58. package/dist/utility/chart/window-geometry.leaf.js +22 -6
  59. package/dist/utility/chart/wrun-run-result.util.d.ts +12 -0
  60. package/dist/utility/chart/wrun-run-result.util.js +141 -6
  61. package/dist/utility/options/option-bar-anchor.util.d.ts +145 -0
  62. package/dist/utility/options/option-bar-anchor.util.js +340 -0
  63. package/dist/utility/options/option-venue.util.d.ts +18 -0
  64. package/dist/utility/options/option-venue.util.js +27 -0
  65. package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.js +2 -0
  66. package/dist/utility/wrun/derived-roots.util.d.ts +213 -0
  67. package/dist/utility/wrun/derived-roots.util.js +471 -0
  68. package/dist/utility/wrun/run-schedule/wrun-chart-gate-reader.util.d.ts +41 -6
  69. package/dist/utility/wrun/run-schedule/wrun-chart-gate-reader.util.js +89 -19
  70. package/dist/utility/wrun/run-schedule/wrun-gate-reader-warm.util.d.ts +9 -4
  71. package/dist/utility/wrun/run-schedule/wrun-gate-reader-warm.util.js +47 -6
  72. package/dist/utility/wrun/run-schedule/wrun-late-reads.util.d.ts +4 -2
  73. package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +4 -2
  74. package/dist/utility/wrun/sources/lanes/option_daily.js +5 -2
  75. package/dist/utility/wrun/sources/lanes/options_flow.js +5 -2
  76. package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +64 -19
  77. package/dist/utility/wrun/sources/opra-option-lanes.util.js +105 -35
  78. package/dist/utility/wrun/sources/row-lanes/option_contract_flow.js +2 -1
  79. package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +2 -1
  80. package/dist/utility/wrun/sources/row-lanes/option_prints.d.ts +3 -0
  81. package/dist/utility/wrun/sources/row-lanes/option_prints.js +19 -4
  82. package/dist/utility/wrun/sources/row-lanes/option_strike_flow.js +17 -4
  83. package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +52 -13
  84. package/dist/utility/wrun/sources/row-lanes/option_strikes.js +88 -19
  85. package/dist/utility/wrun/sources/row-lanes/option_surface.js +2 -1
  86. package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +19 -0
  87. package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +24 -9
  88. package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +39 -10
  89. package/dist/utility/wrun/sources/wrun-row-lane-add-memo.util.d.ts +64 -0
  90. package/dist/utility/wrun/sources/wrun-row-lane-add-memo.util.js +89 -0
  91. package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.d.ts +15 -3
  92. package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.js +22 -3
  93. package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +31 -0
  94. package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +174 -13
  95. package/dist/utility/wrun/sources/wrun-row-lanes.util.js +685 -27
  96. package/dist/utility/wrun/wrun-builtin-twin.util.d.ts +12 -0
  97. package/dist/utility/wrun/wrun-builtin-twin.util.js +21 -0
  98. package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +53 -12
  99. package/dist/utility/wrun/wrun-chart-market-facts.util.js +101 -53
  100. package/dist/utility/wrun/wrun-download-meter.util.d.ts +15 -0
  101. package/dist/utility/wrun/wrun-download-meter.util.js +14 -2
  102. package/dist/utility/wrun/wrun-download-plan.util.d.ts +99 -0
  103. package/dist/utility/wrun/wrun-download-plan.util.js +118 -0
  104. package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +11 -3
  105. package/dist/utility/wrun/wrun-draft-legend-note.util.js +26 -4
  106. package/dist/utility/wrun/wrun-frames.d.ts +27 -6
  107. package/dist/utility/wrun/wrun-frames.js +73 -10
  108. package/dist/utility/wrun/wrun-hosted-wire.util.d.ts +7 -1
  109. package/dist/utility/wrun/wrun-hosted-wire.util.js +12 -2
  110. package/dist/utility/wrun/wrun-hud-looks.util.d.ts +18 -4
  111. package/dist/utility/wrun/wrun-hud-looks.util.js +45 -13
  112. package/dist/utility/wrun/wrun-latest-snapshot.d.ts +11 -0
  113. package/dist/utility/wrun/wrun-live-intake.util.d.ts +13 -7
  114. package/dist/utility/wrun/wrun-live-intake.util.js +82 -29
  115. package/dist/utility/wrun/wrun-live-tick.util.d.ts +4 -0
  116. package/dist/utility/wrun/wrun-live-tick.util.js +158 -14
  117. package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +49 -10
  118. package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +65 -5
  119. package/dist/utility/wrun/wrun-market-size-defaults.util.js +31 -5
  120. package/dist/utility/wrun/wrun-opra-lane.util.d.ts +17 -4
  121. package/dist/utility/wrun/wrun-opra-lane.util.js +6 -4
  122. package/dist/utility/wrun/wrun-option-strike-flow-forecast.util.d.ts +31 -0
  123. package/dist/utility/wrun/wrun-option-strike-flow-forecast.util.js +119 -0
  124. package/dist/utility/wrun/wrun-option-strike-flow-lane.util.d.ts +23 -6
  125. package/dist/utility/wrun/wrun-option-strike-flow-lane.util.js +47 -11
  126. package/dist/utility/wrun/wrun-option-strike-flow.util.d.ts +86 -19
  127. package/dist/utility/wrun/wrun-option-strike-flow.util.js +168 -62
  128. package/dist/utility/wrun/wrun-option-views.util.d.ts +47 -13
  129. package/dist/utility/wrun/wrun-option-views.util.js +98 -26
  130. package/dist/utility/wrun/wrun-output-style.util.d.ts +6 -2
  131. package/dist/utility/wrun/wrun-output-style.util.js +20 -2
  132. package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +17 -0
  133. package/dist/utility/wrun/wrun-overlay-lifecycle.util.d.ts +10 -1
  134. package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +52 -4
  135. package/dist/utility/wrun/wrun-overlay-run.util.d.ts +100 -31
  136. package/dist/utility/wrun/wrun-overlay-run.util.js +733 -114
  137. package/dist/utility/wrun/wrun-pane-format.util.d.ts +2 -1
  138. package/dist/utility/wrun/wrun-pane-format.util.js +7 -3
  139. package/dist/utility/wrun/wrun-panel-mount.util.d.ts +9 -0
  140. package/dist/utility/wrun/wrun-panel-mount.util.js +63 -13
  141. package/dist/utility/wrun/wrun-panel-style.util.d.ts +10 -9
  142. package/dist/utility/wrun/wrun-panel-style.util.js +58 -9
  143. package/dist/utility/wrun/wrun-param-map.util.d.ts +14 -11
  144. package/dist/utility/wrun/wrun-param-map.util.js +10 -5
  145. package/dist/utility/wrun/wrun-param-values.util.d.ts +14 -4
  146. package/dist/utility/wrun/wrun-param-values.util.js +4 -0
  147. package/dist/utility/wrun/wrun-pin-spelling.util.js +12 -11
  148. package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +50 -0
  149. package/dist/utility/wrun/wrun-refusal-surface.util.js +68 -0
  150. package/dist/utility/wrun/wrun-refused-latest.util.d.ts +10 -0
  151. package/dist/utility/wrun/wrun-refused-latest.util.js +12 -0
  152. package/dist/utility/wrun/wrun-row-source.d.ts +11 -0
  153. package/dist/utility/wrun/wrun-run-interval.util.d.ts +4 -2
  154. package/dist/utility/wrun/wrun-run-interval.util.js +9 -6
  155. package/dist/utility/wrun/wrun-script-inputs.util.d.ts +45 -1
  156. package/dist/utility/wrun/wrun-script-inputs.util.js +112 -4
  157. package/dist/utility/wrun/wrun-setting-words.util.d.ts +7 -3
  158. package/dist/utility/wrun/wrun-setting-words.util.js +13 -5
  159. package/dist/utility/wrun/wrun-socket-row-source.d.ts +27 -2
  160. package/dist/utility/wrun/wrun-socket-row-source.js +113 -8
  161. package/dist/utility/wrun/wrun-source-rows.util.d.ts +5 -1
  162. package/dist/utility/wrun/wrun-source-rows.util.js +16 -3
  163. package/dist/utility/wrun/wrun-style-words.util.js +6 -4
  164. package/dist/utility/wrun/wrun-table-chrome.util.d.ts +3 -2
  165. package/dist/utility/wrun/wrun-table-chrome.util.js +19 -11
  166. package/dist/utility/wrun/wrun-tape-per-order.util.d.ts +2 -0
  167. package/dist/utility/wrun/wrun-tape-per-order.util.js +26 -0
  168. package/dist/utils/replay/replay-buffer-math.d.ts +53 -2
  169. package/dist/utils/replay/replay-buffer-math.js +227 -20
  170. package/package.json +11 -11
package/README.md CHANGED
@@ -128,6 +128,7 @@ What each published version holds. A host installs a version with the peers of i
128
128
 
129
129
  | Version | Peers | What changed |
130
130
  | --- | --- | --- |
131
+ | 0.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). |
131
132
  | 0.9.0 | `@orangecharts/indicator-kit` 0.91.1, `@orangecharts/orange-v2-pb-common` 12.72.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | OPTLOAD G5 folds on `option_contract_state`: an input may declare `totals` and `strike_change` (Top Contracts' totals) beside its projections. They plan and ride the lane's ask as view fields like a projection (`wrunOptionViewsOfSource`; `wrunOptionViewsOf` reads them back), and the input's block is the view block its words size (`wrunOptionInputTupleWidth`: each class tuple `[0, ...13 values]`, then each fold row `[layout, ...cells]`, every row padded to 16). An instance's rows are sized the same way on the fetch path: `wrunOptionLaneTupleWidth` reads a view block's width off the views it asks (`<prefix>Views`, the kit's `wrunAskTupleWidth`), where it knew only the strike kit fold. A host's chain transport reads such an answer's fold entries as that block, and on a plane that serves no views answers it from the kit's reference (`wrunOptionViewAnswer`; web: the `k-option-contract-state` worker on a crypto chain). `wrunOptionViewUnread` (new) names what still refuses by name before any read (`wrun_option_view_unread`): an `options_chain` fold, and `oi_board`, which follows the chart's close that the state lane does not send. Peers unchanged. The package commits landed since 0.8.0 ride along (`git log a5411df71f.. -- packages/wrun-chart-host` in the web repo). |
132
133
  | 0.8.0 | `@orangecharts/indicator-kit` 0.91.1, `@orangecharts/orange-v2-pb-common` 12.72.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | The footprint's Classic Presets and Columns for a host's settings form, from one source with both web footprint dialogs. Two modules move from the web app: `utility/chart/footprint-sierra-look.util` (`withFootprintSierraLook`, the Classic Presets patch) and `utility/chart/footprint-columns.util` (the 12 column kinds, the four presets, `withFootprintColumn`, `withFootprintColumnsPreset` and their reads). Three are new: `utility/chart/footprint-display-mode.util` (the cell-grid family, the bar width each mode draws at, `FOOTPRINT_DISPLAY_MODES`, `footprintDisplayModeShown` and `withFootprintDisplayMode`), `settings-templates/form-rows` (the row shape: `action` and `choice` rows with words as locale keys) and `settings-templates/footprint-rows` (`footprintFormRows`, `FOOTPRINT_FORM_SLOTS`). All five join the entry. The package commits landed since 0.7.0 ride along (`git log 1a636a0542.. -- packages/wrun-chart-host` in the web repo), among them the market-scaled size defaults (`utility/wrun/wrun-market-size-defaults.leaf` and `.util`), the candle volume unit leaf and the CME options root. The kit peer moves from 0.88.0 to 0.91.1. The registry also holds 0.7.1 (2026-10-21, 0.7.0's peers), which this table does not describe. |
133
134
  | 0.7.0 | `@orangecharts/indicator-kit` 0.88.0, `@orangecharts/orange-v2-pb-common` 12.72.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | The options lanes of OPTIONS-PORT P7: `options_flow` becomes a chain lane, and with `option_prints` and `option_contract_flow` it reads the chart's option chain on a crypto option venue and on a CME futures chart as well as on OPRA; option contract flow plans to one source answer budget every layer reads (`utility/chart/kscript-source-answer-budget.leaf`). The run schedule (`utility/wrun/run-schedule/`, six modules): each lane group is sent at its own plan, held or in-flight reads are reused, and a host's door can dial the chart's gate reader before an add (`warmWrunSheetGateReaders`) or when a surface opens (`warmWrunChartGateReaderOnIntent`). Row lanes ask end-exclusive (`WrunSourceFetchOptions.endExclusive`) and keep held bars over budget markers; panel rows paint with missing readings, and a lane is asked only within its reach (`WrunWarmupEvidence.sourceReachFromTs`, the `source-reach` backfill outcome). Trading-day opens are solved as titan solves them across DST edges, and each zone's offset is read once a day (`utility/chart/ny-calendar.util`). Crypto indices chart as main symbols (`utility/chart/crypto-index.leaf`); the symbol comparison keeps its user label as instance state in the settings templates; a run no longer loads the kit on the main thread (`utility/wrun/wrun-kit-run-tables.util`). Every failed run names its cause: `WRUN_FAILURE_CAUSES` gains eight words (`package-withdrawn`, `package-hosted`, `compile-failed`, `twin-declined` and `integration-error` for what stopped a package before it ran; `source-budget`, `source-failed` and `source-declined` for a source lane the ladder gave up on), a package the registry no longer serves shows "no longer available from its publisher" with Remove and never Retry, and a source chip names the feed and what happened (the words under `wrun.unavailable` and `kscript.legend.card.removeIndicator`, which a host's word table needs). A lane's budget counts from its dispatch until the transport reports the request's wire send (`WrunSourceFetchOptions.onSent`, optional: a transport that never reports keeps the dispatch budget), then from the send, 60 s at most from the dispatch; the ladder never ends a lane while a late read is out, and the record it ends on names its cause and the episode that armed it (a restore, a person's add, a live rebuild). The transient grace holds a failure only for an overlay a rerun driver runs, unless the host declares that it reruns the overlay itself (`holdWrunTransientRefusal(target, onExpire, { hostReruns: true })`, `WrunTransientHoldOptions`; off by default): the mobile app's protected run heal does, so its Marketplace indicators load through an outage instead of showing their chip at once. `onWrunOverlayRunSettled` announces a run of a standing overlay only: a run that settles after its overlay's teardown (typically dropped by the teardown's cancel of its pending row-source ask) is the ring's alone, so a same-id remount no longer reads its predecessor's dropped run as its own first run. OPTLOAD G5: an `options_chain` or `option_contract_state` input may declare chain page views (`page_view`, `page_views`; `utility/wrun/wrun-option-views.util`), which ride the lane's ask as view fields for the host's chain transport to send in one chain summary read; a fold view refuses by name (`wrun_option_view_unread`; 0.9.0 reads `option_contract_state`'s) and a view param's `"@<param>"` handle is painted like `ticks_per_bar`. On the OPRA plane both lanes hold the plane's chain by coin instead of reading the chain directory (`wrunHeldOpraPlaneChain`). One loader view widens: the module `transport.loadV2Service()` answers gains `warmGateReaderFor(exchange)` and `warmGateReaderOnIntent(exchange, surface)`; the env keeps its 133 members, and no package code reads `transport.loadWrunKit` any more. 11 modules join, all in the entry, and `utility/wrun/wrun-opra-underlying.util` goes with its `WrunOpraUnderlyingContext`: 416 dist modules (406 at 0.6.0), 33 by subpath only. `utility/wrun/sources/opra-option-lanes.util` drops `resolveWrunOpraLaneUnderlying` and `resolveWrunLaneOpraChain`; a lane resolves its chain through `resolveWrunLaneChainChart` and `decideWrunLaneChain`. The kit peer moves from 0.87.0 to 0.88.0 and the protocol enums peer from 12.69.0 to 12.72.0. |
@@ -7,8 +7,9 @@ export declare const FeatureFlag: {
7
7
  readonly ScriptOffers: "script-offers";
8
8
  readonly PaperTrading: "paper-trading";
9
9
  readonly LighterExecution: "lighter-execution";
10
+ readonly CoinbaseDerivativesExecution: "coinbase-derivatives-execution";
10
11
  readonly TradingHub: "trading-hub";
11
- readonly AppearanceModes: "appearance-modes";
12
+ readonly TradingVolume: "trading-volume";
12
13
  readonly DataLoadHealRegister: "data-load-heal-register";
13
14
  readonly CollabSyncV2: "collab-sync-v2";
14
15
  readonly DataLoadCrossChartJoin: "data-load-cross-chart-join";
@@ -24,10 +25,12 @@ export declare const FeatureFlag: {
24
25
  readonly PerfRestLane: "perf-rest-lane";
25
26
  readonly PerfAffineBlit: "perf-affine-blit";
26
27
  readonly NextBuildPrefetch: "next-build-prefetch";
28
+ readonly PageReach: "page-reach";
27
29
  readonly ExactPixelRatio: "exact-pixel-ratio";
28
30
  readonly PrepaidPlusCn: "prepaid-plus-cn";
29
31
  readonly ApiConsole: "api-console";
30
32
  readonly Opra: "opra";
33
+ readonly CmeEngine: "cme-engine";
31
34
  readonly VariationalMarkets: "variational-markets";
32
35
  readonly OptionsPanel: "options-panel";
33
36
  readonly OpraUserScripts: "opra-user-scripts";
@@ -46,6 +49,8 @@ export declare const FeatureFlag: {
46
49
  readonly Feeds: "feeds";
47
50
  readonly SynopticStreams: "synoptic-streams";
48
51
  readonly StoreBuiltinRows: "store-builtin-rows";
52
+ readonly OptionsAccessPrewarm: "options-access-prewarm";
53
+ readonly WrunDownloadBudgetCut: "wrun-download-budget-cut";
49
54
  };
50
55
  export type FeatureFlagKey = (typeof FeatureFlag)[keyof typeof FeatureFlag];
51
56
  export declare const FEATURE_FLAG_KEYS: FeatureFlagKey[];
@@ -41,20 +41,27 @@ export const FeatureFlag = {
41
41
  // unminted, absent and guest all read off, so production ships it dark; an internal role reads it
42
42
  // on through the server's bypass, the dev/internal localStorage override lights it locally
43
43
  // (`kiyo.flag-overrides` -> `{"paper-trading": true}`). Mint it enabled to open it up. The same
44
- // key also lights the three exchange venues launched dark (docs/features/cex-execution/README.md,
45
- // "Dark launch, entities, passphrase"): OKX, Deribit, and Coinbase derivatives (the Deribit engine
46
- // for non-US accounts), their discovery and new linking, read through `isOn` by `isCexVenueFlagOn`.
47
- // A key this browser already holds for one of them keeps trading after the flag turns off. The
48
- // build switch `PAPER_TRADING_ENABLED` takes only the paper venue out of a build, never the
49
- // exchange venues.
44
+ // key also lights two exchange venues launched dark (docs/features/cex-execution/README.md,
45
+ // "Dark launch, entities, passphrase"): OKX and Deribit, their discovery and new linking, read
46
+ // through `isOn` by `isCexVenueFlagOn`. A key this browser already holds for one of them keeps
47
+ // trading after the flag turns off. The build switch `PAPER_TRADING_ENABLED` takes only the paper
48
+ // venue out of a build, never the exchange venues.
50
49
  PaperTrading: 'paper-trading',
51
50
  // Lighter execution (docs/features/cex-execution/README.md, "Lighter"): the one exchange venue whose
52
51
  // trading key is minted in the browser and registered by the wallet. Its own key, read through `isOn`
53
52
  // by `isCexVenueFlagOn`: unminted, absent and guest all read off, so production ships it dark while the
54
- // paper trading key, which lights the other dark venues, stays on for everyone; the dev/internal
53
+ // paper trading key, which lights OKX and Deribit, stays on for everyone; the dev/internal
55
54
  // localStorage override lights it locally (`kiyo.flag-overrides` -> `{"lighter-execution": true}`).
56
55
  // Mint it enabled to open it up. A key this browser already holds keeps trading after it turns off.
57
56
  LighterExecution: 'lighter-execution',
57
+ // Coinbase derivatives execution (the Deribit engine for non-US accounts; Kyle 2026-10-23 took it
58
+ // off the paper trading key to hide it). Its own key, read through `isOn` by `isCexVenueFlagOn`, in
59
+ // Lighter's shape: unminted, absent and guest all read off, internal roles included (no document,
60
+ // no preview), so the hub, the search command and the connect sheet offer it to nobody; the
61
+ // dev/internal localStorage override lights it locally (`kiyo.flag-overrides` ->
62
+ // `{"coinbase-derivatives-execution": true}`). Mint it enabled to open it up. A key this browser
63
+ // already holds keeps trading, and keeps its card to manage it.
64
+ CoinbaseDerivativesExecution: 'coinbase-derivatives-execution',
58
65
  // The trading hub (docs/features/trading-hub/README.md): one Trade door beside the avatar that
59
66
  // folds the desktop's linking, accounts and trade settings into one dialog. Rides the master
60
67
  // trading flag AND this key, read through `isOn` (`isTradingHubOn`): unminted, absent and guest
@@ -62,13 +69,14 @@ export const FeatureFlag = {
62
69
  // bypass, the dev/internal localStorage override lights it locally (`kiyo.flag-overrides` ->
63
70
  // `{"trading-hub": true}`). Mint it enabled to open it up. Phones keep today's surfaces either way.
64
71
  TradingHub: 'trading-hub',
65
- // The Gray and Cream appearances (docs/features/ui/theming.md, "Appearance modes"): two more segments in the
66
- // desktop Preferences mode switch, Gray beside Dark and Cream beside Light, plus their Super Search rows.
67
- // Read through `isOn` (`isAppearanceModesOn`): unminted, absent and guest all read off, so production ships it
68
- // dark and a saved Gray shows as Dark, a saved Cream as Light; an internal role reads it on through the
69
- // server's bypass, the dev/internal localStorage override lights it locally (`kiyo.flag-overrides` ->
70
- // `{"appearance-modes": true}`). Mint it enabled to open it up. Phones keep Dark and Light either way.
71
- AppearanceModes: 'appearance-modes',
72
+ // Trading Volume (docs/features/trading-hub/trading-volume.md): the private page inside the trading
73
+ // hub with the notional the account traded through OpenMarket on Hyperliquid, and its two doors (the
74
+ // profile menu's row under Brokers, the Hyperliquid account page's row). Read through `isOn`
75
+ // (`isTradingVolumeOn`), on top of the hub's own doors check: unminted, absent and guest all read
76
+ // off, so production ships it dark; an internal role reads it on, the dev/internal localStorage
77
+ // override lights it locally (`kiyo.flag-overrides` -> `{"trading-volume": true}`). The server keeps
78
+ // its own switch (`GET /trading-volume` answers 404 TRADING_VOLUME_DISABLED), which hides the doors too.
79
+ TradingVolume: 'trading-volume',
72
80
  // Collab-sync kill switch (Phase 1: DEFAULT ON; the flag exists only to
73
81
  // force the legacy lanes back, by minting it disabled in the admin panel
74
82
  // plus a page reload). Mode is generation-pinned per collab session
@@ -177,6 +185,12 @@ export const FeatureFlag = {
177
185
  // KILL SWITCH read through `isExplicitlyOff`: mint it `enabled: false` to stop the
178
186
  // watcher at the next page load. Published into src/utils/telemetryGates.ts.
179
187
  NextBuildPrefetch: 'next-build-prefetch',
188
+ // Page reach (src/utility/perf/page-reach.util.ts): after a page's core work, download the
189
+ // code it can open (linked pages, its own dialogs and panels) into the HTTP cache. DEFAULT ON;
190
+ // this key is an admin KILL SWITCH read through `isExplicitlyOff`: mint it `enabled: false`
191
+ // to stop the lane (it re-arms on the publish, so a page that already started stops too).
192
+ // Published into src/utils/telemetryGates.ts.
193
+ PageReach: 'page-reach',
180
194
  // Exact pixel ratio (src/utility/chart/pixel-ratio-policy.util.ts): charts on
181
195
  // Chromium draw at the display's own ratio instead of titan's nearest-whole
182
196
  // rounding (a 1.25 display at 1.25, not 1). DEFAULT ON; this key is an admin
@@ -206,6 +220,14 @@ export const FeatureFlag = {
206
220
  // affordance, contract charts and the purchase screens. Minted dark; the data tier itself is the
207
221
  // OPRA gate's and never flips with this flag (employees stay delayed like everyone).
208
222
  Opra: 'opra',
223
+ // CME real-time on the venue-generic market-data flow (ENTITLEMENT-PLANE Program B; docs/features/market-data/
224
+ // plane.md, "CME on the plane"). While lit, the market-data registry lists the CME card
225
+ // (`marketDataVenueIsServed('cme')`), the one CME purchase overlay mounts as the generic flow on
226
+ // `/market-data/cme/*` (GlobalDialogs) while the legacy hosts stand down, the CME chrome reads the generic store and
227
+ // the payment return takes the venue branch. Off, every CME surface is as before (the legacy flow on `/cme/*`).
228
+ // Read through `isOn`: unminted, absent and guest read off, so production ships it dark; light it only once
229
+ // orange's CME engine mode is `live`. QA: `localStorage.setItem('kiyo.flag-overrides', '{"cme-engine":true}')`.
230
+ CmeEngine: 'cme-engine',
209
231
  // Variational (VARIATIONAL perpetuals, VARIATIONAL_SWAP swaps) in pickers, search, recents, popular rows
210
232
  // and watchlist import: a flag-gated venue (exchange-visibility.util FLAG_GATED_EXCHANGES), read through
211
233
  // `isOn`, so unminted, absent and guest all read off and every surface ships it dark. An internal role
@@ -218,16 +240,22 @@ export const FeatureFlag = {
218
240
  // unminted, absent and guest all read off, so production ships it dark; minted disabled, an internal role reads
219
241
  // it on. QA: `localStorage.setItem('kiyo.flag-overrides', '{"options-panel":true}')`. Mint it enabled to open it up.
220
242
  OptionsPanel: 'options-panel',
221
- // User-authored scripts on OPRA (UW-PARITY H2; Kyle 2026-10-17 assumed the OPRA permission for
222
- // user-authored scripts): while lit, a script the browser runs that the viewer wrote or added from the
223
- // community (an Indicator draft, a community package, a kScript user script) reads US options like an
224
- // OpenMarket package: the wrun chain wall (`opra-official-only`), the display wall, the data wall and the
225
- // engine policy all lift for it on the OPRA plane only (kscript-venue-policy.util `isOpraUserScriptRun`,
226
- // the one decision). The provenance stamp, the chart_read and MCP withhold, the CSV export refusal and
227
- // the delayed legend note stay; hosted Cloud runs and protected scripts stay walled (server lanes). To be
228
- // minted dark (admin panel); read with `isOn` (absent, unloaded and guest read off): `opraUserScriptsEnabled()`
229
- // (opra-options-gate.util) on the main thread, the published gate (opra-user-scripts-gate.util) in the
230
- // venue policy. QA: `localStorage.setItem('kiyo.flag-overrides', '{"opra-user-scripts":true}')`.
243
+ // User-authored scripts on OPRA. The OPRA licence covers user-authored scripting over OPRA data, in the
244
+ // browser and on OpenMarket's servers (Kyle 2026-10-27, the signed set); this flag is the one product switch
245
+ // for both lanes. While lit, a script the browser runs that the viewer wrote or added from the community (an
246
+ // Indicator draft, a community package, a kScript user script) reads US options like an OpenMarket package:
247
+ // the wrun chain wall (`opra-official-only`), the display wall, the data wall and the engine policy all lift
248
+ // for it on the OPRA plane only (kscript-venue-policy.util `isOpraUserScriptRun`, the one decision), and the
249
+ // Cloud lane (kscript-backend) admits a hosted run reading a US stock or ETF chart's chain by the same key,
250
+ // per user. The tier follows the viewer in both lanes, never the script: the browser reads through the
251
+ // viewer's own gate sockets, the Cloud lane is served the owner's tier and stamps each frame with it (the
252
+ // legend's served word is that frame's receipt). Hosted Cloud runs on an OPRA contract chart and protected
253
+ // scripts stay walled. What stays whatever it says: the provenance stamp, the chart_read and MCP withhold, the
254
+ // CSV export refusal, the delayed legend note, and the console export door (console entries a run produced
255
+ // over OPRA data are marked and every copy of console text strips them). To be minted dark (admin panel);
256
+ // read with `isOn` (absent, unloaded and guest read off): `opraUserScriptsEnabled()` (opra-options-gate.util)
257
+ // on the main thread, the published gate (opra-user-scripts-gate.util) in the venue policy.
258
+ // QA: `localStorage.setItem('kiyo.flag-overrides', '{"opra-user-scripts":true}')`.
231
259
  OpraUserScripts: 'opra-user-scripts',
232
260
  // Alerts on US options (UW-PARITY H3, the OPRA server lanes): while lit, a viewer the OPRA gate serves real-time
233
261
  // can set a price alert or an Indicator alert on a US option contract, which the alerts engine evaluates on its
@@ -327,6 +355,21 @@ export const FeatureFlag = {
327
355
  // builtin rows are dropped and the store is as before. Read through `isOn`: unminted, absent and guest read off,
328
356
  // so production ships it dark; flip it off to roll back (saved charts store the control type).
329
357
  StoreBuiltinRows: 'store-builtin-rows',
358
+ // The chart-load dial of the OPRA gate reader (OPTLOAD W3 A1, utility/options/chart-options-access.util): a chart whose
359
+ // options ride the OPRA plane dials that reader after its first paint, through the lease-guarded intent warm, for an
360
+ // account that read options in this browser in the last 14 days or a route with an add intent, so the first options
361
+ // add's read leaves when it is asked. Read through `isOn`: unminted, absent and guest all read off, so production
362
+ // ships it dark until the gate owners confirm the extra OPRA session load; the dev/internal localStorage override
363
+ // lights it for a rig (`kiyo.flag-overrides` -> `{"options-access-prewarm": true}`). The options stamp the dial reads
364
+ // is written whatever the flag says, and the CME directory prewarm beside it rides no flag.
365
+ OptionsAccessPrewarm: 'options-access-prewarm',
366
+ // The indicator download budget's cut (OPTLOAD W3 R2, docs/features/kscript/wrun/wrun-browser-runtime.md, "The download
367
+ // budget"): a browser-run Indicator whose projected download passes 1 MB per 252 bars reads its newest bars first and
368
+ // stops near the budget, the older bars partial, with the "Newest bars only" chip. Off: whole asks always, the meter
369
+ // still counts. Read through `isOn`: unminted, absent and guest all read off, so production ships it dark until Kyle
370
+ // switches it on; the dev/internal localStorage override lights it for a rig (`kiyo.flag-overrides` ->
371
+ // `{"wrun-download-budget-cut": true}`).
372
+ WrunDownloadBudgetCut: 'wrun-download-budget-cut',
330
373
  };
331
374
  export const FEATURE_FLAG_KEYS = Object.values(FeatureFlag);
332
375
  /**
@@ -20,8 +20,9 @@ export declare const OPRA_DELAY_NOTICE = "OPRA data delayed 15 minutes";
20
20
  /**
21
21
  * The agreement notice. Source: the filed Attachment C (6) to the OPRA Vendor Agreement and the filed display screen 2:
22
22
  * the notice shown prominently each time a subscriber accesses the service, its last words a link to the agreement the
23
- * subscriber accepted. Every OPRA-bearing view of an entitled real-time subscriber carries it as a persistent strip
24
- * (the chain page, an OPRA contract chart, a chart holding an OPRA overlay: OpraAgreementNotice.vue).
23
+ * subscriber accepted. An entitled real-time subscriber reads it in one card on the first OPRA screen of each app open
24
+ * (the chain page, the Options panel, an OPRA contract chart, a chart holding an OPRA overlay), open until OK:
25
+ * OpraAgreementNoticeCard.vue.
25
26
  */
26
27
  export declare const OPRA_AGREEMENT_NOTICE = "YOUR RECEIPT AND USE OF THIS SERVICE IS SUBJECT TO THE TERMS AND CONDITIONS OF YOUR AGREEMENT WITH THALAMUS TECHNOLOGIES, INC. TO VIEW THE TERMS AND CONDITIONS OF THIS AGREEMENT, PLEASE CLICK HERE.";
27
28
  /** The words of the agreement notice that link to the accepted agreement: the notice's own words, never a label. */
@@ -20,8 +20,9 @@ export const OPRA_DELAY_NOTICE = 'OPRA data delayed 15 minutes';
20
20
  /**
21
21
  * The agreement notice. Source: the filed Attachment C (6) to the OPRA Vendor Agreement and the filed display screen 2:
22
22
  * the notice shown prominently each time a subscriber accesses the service, its last words a link to the agreement the
23
- * subscriber accepted. Every OPRA-bearing view of an entitled real-time subscriber carries it as a persistent strip
24
- * (the chain page, an OPRA contract chart, a chart holding an OPRA overlay: OpraAgreementNotice.vue).
23
+ * subscriber accepted. An entitled real-time subscriber reads it in one card on the first OPRA screen of each app open
24
+ * (the chain page, the Options panel, an OPRA contract chart, a chart holding an OPRA overlay), open until OK:
25
+ * OpraAgreementNoticeCard.vue.
25
26
  */
26
27
  export const OPRA_AGREEMENT_NOTICE = 'YOUR RECEIPT AND USE OF THIS SERVICE IS SUBJECT TO THE TERMS AND CONDITIONS OF YOUR AGREEMENT WITH THALAMUS TECHNOLOGIES, INC. TO VIEW THE TERMS AND CONDITIONS OF THIS AGREEMENT, PLEASE CLICK HERE.';
27
28
  /** The words of the agreement notice that link to the accepted agreement: the notice's own words, never a label. */
@@ -12,6 +12,22 @@ export interface BuiltinInputReader {
12
12
  num(name: string): number;
13
13
  str(name: string): string;
14
14
  }
15
+ /** A value an input gate compares: a select's option or a toggle's state. */
16
+ export type BuiltinGateValue = string | boolean;
17
+ /** One input's condition in a gate: its value is one of `is`, or none of `not` (the form the template's test takes). */
18
+ export type BuiltinGateLiteral = {
19
+ readonly is: readonly BuiltinGateValue[];
20
+ } | {
21
+ readonly not: readonly BuiltinGateValue[];
22
+ };
23
+ /** A term of a gate: every input it names meets its condition. */
24
+ export type BuiltinGateTerm = Readonly<Record<string, BuiltinGateLiteral>>;
25
+ /**
26
+ * When a built-in template's input or output takes effect, read from the template's text: while ANY of its terms
27
+ * holds on the overlay's inputs (an empty gate never holds). Derived for every template by
28
+ * deriveTechnicalIndicatorInputGates (technical-indicator-script-facts.derive.ts).
29
+ */
30
+ export type BuiltinGate = readonly BuiltinGateTerm[];
15
31
  /** Shape of a `BUILTIN_ALERT_CONTRACTS` entry (see the catalog module for the contract rules). */
16
32
  export interface BuiltinAlertContract {
17
33
  /**
@@ -27,6 +43,13 @@ export interface BuiltinAlertContract {
27
43
  * identity, or a cosmetic edit would orphan the armed badge and duplicate alerts on re-arm.
28
44
  */
29
45
  computeInputs: readonly string[];
46
+ /**
47
+ * The outputs the template draws only while an input allows it (the smoothing lines behind `smoothingType`, Volume
48
+ * MA behind `showMa`), each with its gate. The alert surfaces offer such an output only while its gate holds on the
49
+ * overlay's inputs; tests/constants/scriptEditor/technical-indicator-input-gates.spec.ts holds every gate here to
50
+ * the one the template's text derives, and fails a gated output that is not listed.
51
+ */
52
+ outputGates?: Readonly<Record<string, BuiltinGate>>;
30
53
  /**
31
54
  * Templates with a `timeframe` input: the CLOSED selected-timeframe bars the slowest output needs
32
55
  * before it has a value, from the compute inputs. The alert engine keeps a fixed window of chart
@@ -37,6 +60,9 @@ export interface BuiltinAlertContract {
37
60
  }
38
61
  /** Extra closed bars the oscillator smoothing (OSCILLATOR_SMOOTHING_INPUTS) adds to its oscillator's warm-up. */
39
62
  export declare function oscillatorSmoothingWarmup(inputs: BuiltinInputReader): number;
63
+ /** The outputs OSCILLATOR_SMOOTHING_INPUTS gates (BuiltinAlertContract.outputGates): the moving average `ma` while
64
+ * smoothingType is not None, the bands only with SMA + Bollinger Bands. */
65
+ export declare function oscillatorSmoothingOutputGates(ma: string): Readonly<Record<string, BuiltinGate>>;
40
66
  export declare const CLASSIC_TIMEFRAME_INPUTS = "var timeframe = input(name=\"timeframe\", type=\"select\", defaultValue=\"chart\", options=[\"chart\", \"5m\", \"15m\", \"30m\", \"1h\", \"4h\", \"1D\", \"1W\"]);\nvar waitForClose = input(name=\"waitForClose\", type=\"boolean\", defaultValue=true);";
41
67
  export declare const CLASSIC_PRICE_INPUTS = "var source = input(name=\"source\", type=\"select\", defaultValue=\"close\", options=[\"close\", \"open\", \"high\", \"low\"]);\nvar timeframe = input(name=\"timeframe\", type=\"select\", defaultValue=\"chart\", options=[\"chart\", \"5m\", \"15m\", \"30m\", \"1h\", \"4h\", \"1D\", \"1W\"]);\nvar waitForClose = input(name=\"waitForClose\", type=\"boolean\", defaultValue=true);";
42
68
  export declare const CLASSIC_PRICE_SERIES = "timeseries data = ohlcv(symbol=currentSymbol, exchange=currentExchange);\ntimeseries price = timeframe == \"chart\" ? field(ohlcv(symbol=currentSymbol, exchange=currentExchange), source) : htf(field(ohlcv(symbol=currentSymbol, exchange=currentExchange), source), timeframe, {mode: waitForClose ? \"confirmed\" : \"developing\"});";
@@ -11,6 +11,12 @@
11
11
  export function oscillatorSmoothingWarmup(inputs) {
12
12
  return inputs.str('smoothingType') === 'None' ? 0 : inputs.num('smoothingLength') - 1;
13
13
  }
14
+ /** The outputs OSCILLATOR_SMOOTHING_INPUTS gates (BuiltinAlertContract.outputGates): the moving average `ma` while
15
+ * smoothingType is not None, the bands only with SMA + Bollinger Bands. */
16
+ export function oscillatorSmoothingOutputGates(ma) {
17
+ const bands = [{ smoothingType: { is: ['SMA + Bollinger Bands'] } }];
18
+ return { [ma]: [{ smoothingType: { not: ['None'] } }], 'Smoothing Upper Band': bands, 'Smoothing Lower Band': bands };
19
+ }
14
20
  export const CLASSIC_TIMEFRAME_INPUTS = `var timeframe = input(name="timeframe", type="select", defaultValue="chart", options=["chart", "5m", "15m", "30m", "1h", "4h", "1D", "1W"]);
15
21
  var waitForClose = input(name="waitForClose", type="boolean", defaultValue=true);`;
16
22
  export const CLASSIC_PRICE_INPUTS = `var source = input(name="source", type="select", defaultValue="close", options=["close", "open", "high", "low"]);
@@ -17,6 +17,21 @@ export declare const TECHNICAL_INDICATOR_SCRIPT_KEY_SET: ReadonlySet<string>;
17
17
  * (wrun-builtin-twin.util) must stay off the join (tests/utility/wrun/wrun-twins.closure.spec.ts).
18
18
  */
19
19
  export declare const NATIVE_OFFICIAL_TWIN_KEYS: ReadonlySet<string>;
20
+ /**
21
+ * The built-ins another client's chart draws natively and saves under the built-in's KEY as the row's own `type`
22
+ * (the phone app's Big Trades, kiyotaka-frontend-app chart-web/src/indicators/big-trades: `type: 'BIG_TRADES'`,
23
+ * its settings the package's params in camel case), where web registers no control of that name. Such a row
24
+ * is no deleted feature: the restore converts it into the built-in's proven twin like a native official's row
25
+ * (kscript-twin-convert.util, its settings through native-twin-settings.util), and a revert puts the foreign
26
+ * row back, where the restore parks it as an unknown type until the next conversion. The web's own row of
27
+ * the same built-in is a TECHNICAL_SCRIPT row (its key a shipped template's), never one of these.
28
+ */
29
+ export declare const FOREIGN_NATIVE_TWIN_KEYS: ReadonlySet<string>;
30
+ /** Whether `type` is a row type the restore converts into a built-in's twin through a native translator
31
+ * (native-twin-settings.util): a native official's own row, or a foreign native row. The one predicate every
32
+ * reader of these two sets shares (the restore's door, the conversion's origin rule), so a key added to either
33
+ * set reaches all of them. */
34
+ export declare function isNativeTwinOriginType(type: unknown): type is string;
20
35
  /** Whether `key` names a built-in a proven twin can stand in for: a shipped template or a native official above. */
21
36
  export declare function isBuiltInTwinKey(key: unknown): key is string;
22
37
  /**
@@ -52,6 +52,23 @@ export const TECHNICAL_INDICATOR_SCRIPT_KEY_SET = new Set(TECHNICAL_INDICATOR_SC
52
52
  * (wrun-builtin-twin.util) must stay off the join (tests/utility/wrun/wrun-twins.closure.spec.ts).
53
53
  */
54
54
  export const NATIVE_OFFICIAL_TWIN_KEYS = new Set(['CVD_FLOW_DOMINANCE']);
55
+ /**
56
+ * The built-ins another client's chart draws natively and saves under the built-in's KEY as the row's own `type`
57
+ * (the phone app's Big Trades, kiyotaka-frontend-app chart-web/src/indicators/big-trades: `type: 'BIG_TRADES'`,
58
+ * its settings the package's params in camel case), where web registers no control of that name. Such a row
59
+ * is no deleted feature: the restore converts it into the built-in's proven twin like a native official's row
60
+ * (kscript-twin-convert.util, its settings through native-twin-settings.util), and a revert puts the foreign
61
+ * row back, where the restore parks it as an unknown type until the next conversion. The web's own row of
62
+ * the same built-in is a TECHNICAL_SCRIPT row (its key a shipped template's), never one of these.
63
+ */
64
+ export const FOREIGN_NATIVE_TWIN_KEYS = new Set(['BIG_TRADES']);
65
+ /** Whether `type` is a row type the restore converts into a built-in's twin through a native translator
66
+ * (native-twin-settings.util): a native official's own row, or a foreign native row. The one predicate every
67
+ * reader of these two sets shares (the restore's door, the conversion's origin rule), so a key added to either
68
+ * set reaches all of them. */
69
+ export function isNativeTwinOriginType(type) {
70
+ return typeof type === 'string' && (NATIVE_OFFICIAL_TWIN_KEYS.has(type) || FOREIGN_NATIVE_TWIN_KEYS.has(type));
71
+ }
55
72
  /** Whether `key` names a built-in a proven twin can stand in for: a shipped template or a native official above. */
56
73
  export function isBuiltInTwinKey(key) {
57
74
  return typeof key === 'string' && (TECHNICAL_INDICATOR_SCRIPT_KEY_SET.has(key) || NATIVE_OFFICIAL_TWIN_KEYS.has(key));
@@ -1,24 +1,24 @@
1
1
  /**
2
- * The two catalog venue groups behind the Spot and Perps presets of the multi-venue indicators, each venue with
3
- * the quote its catalog pair is synthesized from: the coin, then the quote (`BTC` + `-USD` is Coinbase's `BTC-USD`,
4
- * `BTC` + `-USDT-SWAP` OKX's perpetual `BTC-USDT-SWAP`); an empty quote is a pair spelled as the bare coin
5
- * (Hyperliquid's `BTC`). ONE source of truth for every reader: the predefined catalog (`store/common.ts`
6
- * fetchPredefinedSymbolsByCoinAndType) builds its pairs from these maps, the venue-choice resolver (`venue-legs.util`
7
- * presetVenues) names their venues, in this order, and the wrun pin speller (`wrun-pin-spelling.util`) reads how
8
- * each venue spells a pair.
2
+ * Data about crypto venues that the multi-venue indicators and the wrun pin speller read. No list here says which
3
+ * venues join the Spot or Perps preset: both derive from the catalog for the chart's coin (web
4
+ * src/utility/indicators/venues-for-coin.util.ts eligibleVenues), and tests/constants/venue-presets.constants.spec.ts
5
+ * fails on a per-preset venue list in this file.
9
6
  */
10
7
  /**
11
- * The deep perp venues, in the aggregated tools' order: every aggregated indicator reads them by default (the web
12
- * app's AGGREGATED_DEFAULT_EXCHANGES is this list) and the Perps preset lists exactly them (its type below fails the
13
- * build on a venue missing or extra). Deep only: OKEX_FUTURES (dated futures, a basis away from the perp price) and
14
- * DERIBIT (coin-scoped profiles can carry option instruments) left 2026-08-07, BITFINEX_DERIVATIVES 2026-08-09 (its
15
- * perp prints sat $60-80 off the deep venues with dust volume).
8
+ * How a venue spells a pair in its catalog where the spelling is fixed: the coin, then this quote (`BTC` + `-USD` is
9
+ * Coinbase's `BTC-USD`, `BTC` + `-USDT-SWAP` OKX's perpetual `BTC-USDT-SWAP`); an empty quote is a pair spelled as the
10
+ * bare coin (Hyperliquid's `BTC`). One entry per venue, whatever group it pools in. The wrun pin speller
11
+ * (`wrun-pin-spelling.util`) reads it to vouch for a pin's form; a venue outside it has its pins confirmed by the
12
+ * catalog.
16
13
  */
17
- export declare const DEEP_PERP_VENUES: readonly ["BYBIT", "BINANCE_FUTURES", "OKEX_SWAP", "HYPERLIQUID_FUTURES"];
18
- /** A deep perp venue (DEEP_PERP_VENUES). */
19
- export type DeepPerpVenue = (typeof DEEP_PERP_VENUES)[number];
20
- export declare const SPOT_PRESET_VENUE_QUOTES: Readonly<Record<string, string>>;
21
- /** The Perps preset: every deep perp venue, in catalog order (Binance first, the order the preset always had). */
22
- export declare const PERP_PRESET_VENUE_QUOTES: Readonly<Record<string, string>>;
23
- /** The catalog venue groups by preset. */
24
- export declare const PRESET_VENUE_QUOTES: Readonly<Record<'SPOT' | 'PERP', Readonly<Record<string, string>>>>;
14
+ export declare const VENUE_PAIR_QUOTES: Readonly<Record<string, string>>;
15
+ /**
16
+ * The stock venues of the aggregated panes that sum venues by name (Agg. Open Interest, Volume, Liquidations, Funding
17
+ * Rate, TPO, Session VP, Visible Range VP, Volume Footprint, Order Book Heatmap; the web app's
18
+ * AGGREGATED_DEFAULT_EXCHANGES): the deep perp venues. Not a preset (the presets derive from the catalog). Deep only:
19
+ * OKEX_FUTURES (dated futures, a basis away from the perp price) and DERIBIT (coin-scoped profiles can carry option
20
+ * instruments) left 2026-08-07, BITFINEX_DERIVATIVES 2026-08-09 (its perp prints sat $60-80 off the deep venues with
21
+ * dust volume). Its signature is also the legacy `stock` reading of a names row saved before 2026-10-06
22
+ * (venue-names-adapter.util), so changing it re-reads those rows as picks.
23
+ */
24
+ export declare const AGGREGATED_DEFAULT_EXCHANGES: readonly ["BYBIT", "BINANCE_FUTURES", "OKEX_SWAP", "HYPERLIQUID_FUTURES"];
@@ -1,36 +1,34 @@
1
1
  /**
2
- * The two catalog venue groups behind the Spot and Perps presets of the multi-venue indicators, each venue with
3
- * the quote its catalog pair is synthesized from: the coin, then the quote (`BTC` + `-USD` is Coinbase's `BTC-USD`,
4
- * `BTC` + `-USDT-SWAP` OKX's perpetual `BTC-USDT-SWAP`); an empty quote is a pair spelled as the bare coin
5
- * (Hyperliquid's `BTC`). ONE source of truth for every reader: the predefined catalog (`store/common.ts`
6
- * fetchPredefinedSymbolsByCoinAndType) builds its pairs from these maps, the venue-choice resolver (`venue-legs.util`
7
- * presetVenues) names their venues, in this order, and the wrun pin speller (`wrun-pin-spelling.util`) reads how
8
- * each venue spells a pair.
2
+ * Data about crypto venues that the multi-venue indicators and the wrun pin speller read. No list here says which
3
+ * venues join the Spot or Perps preset: both derive from the catalog for the chart's coin (web
4
+ * src/utility/indicators/venues-for-coin.util.ts eligibleVenues), and tests/constants/venue-presets.constants.spec.ts
5
+ * fails on a per-preset venue list in this file.
9
6
  */
10
7
  /**
11
- * The deep perp venues, in the aggregated tools' order: every aggregated indicator reads them by default (the web
12
- * app's AGGREGATED_DEFAULT_EXCHANGES is this list) and the Perps preset lists exactly them (its type below fails the
13
- * build on a venue missing or extra). Deep only: OKEX_FUTURES (dated futures, a basis away from the perp price) and
14
- * DERIBIT (coin-scoped profiles can carry option instruments) left 2026-08-07, BITFINEX_DERIVATIVES 2026-08-09 (its
15
- * perp prints sat $60-80 off the deep venues with dust volume).
8
+ * How a venue spells a pair in its catalog where the spelling is fixed: the coin, then this quote (`BTC` + `-USD` is
9
+ * Coinbase's `BTC-USD`, `BTC` + `-USDT-SWAP` OKX's perpetual `BTC-USDT-SWAP`); an empty quote is a pair spelled as the
10
+ * bare coin (Hyperliquid's `BTC`). One entry per venue, whatever group it pools in. The wrun pin speller
11
+ * (`wrun-pin-spelling.util`) reads it to vouch for a pin's form; a venue outside it has its pins confirmed by the
12
+ * catalog.
16
13
  */
17
- export const DEEP_PERP_VENUES = ['BYBIT', 'BINANCE_FUTURES', 'OKEX_SWAP', 'HYPERLIQUID_FUTURES'];
18
- export const SPOT_PRESET_VENUE_QUOTES = Object.freeze({
14
+ export const VENUE_PAIR_QUOTES = Object.freeze({
19
15
  BINANCE: 'USDT',
20
- COINBASE: '-USD',
21
- BYBIT_SPOT: 'USDT',
22
- OKEX: '-USDT',
23
- BITSTAMP: 'USD',
24
- });
25
- /** The Perps preset: every deep perp venue, in catalog order (Binance first, the order the preset always had). */
26
- export const PERP_PRESET_VENUE_QUOTES = Object.freeze({
27
16
  BINANCE_FUTURES: 'USDT',
28
17
  BYBIT: 'USDT',
18
+ BYBIT_SPOT: 'USDT',
19
+ OKEX: '-USDT',
29
20
  OKEX_SWAP: '-USDT-SWAP',
21
+ COINBASE: '-USD',
22
+ BITSTAMP: 'USD',
30
23
  HYPERLIQUID_FUTURES: '',
31
24
  });
32
- /** The catalog venue groups by preset. */
33
- export const PRESET_VENUE_QUOTES = Object.freeze({
34
- SPOT: SPOT_PRESET_VENUE_QUOTES,
35
- PERP: PERP_PRESET_VENUE_QUOTES,
36
- });
25
+ /**
26
+ * The stock venues of the aggregated panes that sum venues by name (Agg. Open Interest, Volume, Liquidations, Funding
27
+ * Rate, TPO, Session VP, Visible Range VP, Volume Footprint, Order Book Heatmap; the web app's
28
+ * AGGREGATED_DEFAULT_EXCHANGES): the deep perp venues. Not a preset (the presets derive from the catalog). Deep only:
29
+ * OKEX_FUTURES (dated futures, a basis away from the perp price) and DERIBIT (coin-scoped profiles can carry option
30
+ * instruments) left 2026-08-07, BITFINEX_DERIVATIVES 2026-08-09 (its perp prints sat $60-80 off the deep venues with
31
+ * dust volume). Its signature is also the legacy `stock` reading of a names row saved before 2026-10-06
32
+ * (venue-names-adapter.util), so changing it re-reads those rows as picks.
33
+ */
34
+ export const AGGREGATED_DEFAULT_EXCHANGES = ['BYBIT', 'BINANCE_FUTURES', 'OKEX_SWAP', 'HYPERLIQUID_FUTURES'];
@@ -21,8 +21,11 @@ import type { WrunRefusalContext, WrunRefusalOut } from './utility/wrun/wrun-ref
21
21
  * CHANGED 0.5.0: + 'prepareModuleBytes' (utility/wrun/wrun-host.service.ts:406-408), 'wrunLaneGatedOff'
22
22
  * (wrun-chart-market-facts.util.ts:578), 'wrunLegCandleOpenMs' (wrun-live-tick.util.ts:3633), 'WRUN_STATS_STRIP_WORDS'
23
23
  * (wrun-stats-strip.util.ts, moved whole by U5a). Kit 0.86.3's host entry exports all four; web's seam
24
- * src/utility/wrun/wrun-shared-host.ts re-exports all four. 58 names. */
25
- export type WrunSharedHostModule = Pick<typeof WrunKitHost, 'decodeWrunHostedWire' | 'WRUN_HOST_CELL_TUPLE_WIDTHS' | 'WRUN_MAX_SHAPE_OFFSET_BARS' | 'WRUN_MINICHARTS_LABEL_MAX_CHARS' | 'WRUN_MINICHARTS_MAX_BARS' | 'WRUN_MINICHARTS_MAX_PANELS' | 'WRUN_MINICHARTS_TITLE_MAX_CHARS' | 'WRUN_STRATEGY_SHEET_FIELDS' | 'wrunMiniChartGridPayload' | 'wrunShapeEdgeTs' | 'wrunStrategyWireBytes' | 'WRUN_CANDLES_FORMING_OPEN_VIEW' | 'WRUN_CANDLES_FORMING_VIEW' | 'WRUN_CANDLE_CLASSES' | 'WRUN_FEED_HOST_CAP' | 'WRUN_HOST_ABI_TABLES' | 'WRUN_HOST_PROFILES' | 'WRUN_MARKET_KIND_STOCK' | 'WRUN_MARKET_ZONE_NEW_YORK' | 'WRUN_MAX_LEG_BARS' | 'WRUN_MAX_LEG_OFFSET' | 'WRUN_OPTIONS_VENUES_HOST_CAP' | 'WRUN_PIN_SYMBOL_LITERAL_CODE' | 'WRUN_SECTION_KINDS' | 'WrunStrategyHost' | 'WrunStrategyRefusalError' | 'adaptWrunCells' | 'advanceWrunCarry' | 'alignWrunRows' | 'alignWrunTailRows' | 'cloneWrunInputCarry' | 'cmeSessionBarEndMs' | 'cmeSessionBarOpenMs' | 'cmeSessionBucketMs' | 'emptyWrunInputCarry' | 'isCmeSessionLatticeExchange' | 'isCmeSessionLatticeIntervalMs' | 'planWrunRun' | 'regularWindowClose' | 'resolveWrunStrategySheet' | 'wrunCalendarOfVenue' | 'wrunCelledLegCheck' | 'wrunLegCandleCloseMs' | 'wrunLegFetchStart' | 'wrunLegRowBoundsMs' | 'wrunMarketLegCandleClose' | 'wrunParamValueRefusal' | 'wrunPinSymbolLiteral' | 'wrunPinVenueRefused' | 'wrunPinVenueRefusedMessage' | 'wrunRefusalMessage' | 'wrunServedLegStart' | 'wrunSessionClock' | 'wrunUsEquitiesSession' | 'prepareModuleBytes' | 'wrunLaneGatedOff' | 'wrunLegCandleOpenMs' | 'WRUN_STATS_STRIP_WORDS'>;
24
+ * src/utility/wrun/wrun-shared-host.ts re-exports all four. 58 names.
25
+ * CHANGED (OPTLOAD W3 R2): + 'wrunDownloadReadCost' and 'wrunDownloadPlanReads', the kit's download rule the run prices
26
+ * its reads by before any fetch (utility/wrun/wrun-download-plan.util.ts); kit 0.97.0's host entry exports both. 60
27
+ * names. */
28
+ export type WrunSharedHostModule = Pick<typeof WrunKitHost, 'decodeWrunHostedWire' | 'WRUN_HOST_CELL_TUPLE_WIDTHS' | 'WRUN_MAX_SHAPE_OFFSET_BARS' | 'WRUN_MINICHARTS_LABEL_MAX_CHARS' | 'WRUN_MINICHARTS_MAX_BARS' | 'WRUN_MINICHARTS_MAX_PANELS' | 'WRUN_MINICHARTS_TITLE_MAX_CHARS' | 'WRUN_STRATEGY_SHEET_FIELDS' | 'wrunMiniChartGridPayload' | 'wrunShapeEdgeTs' | 'wrunStrategyWireBytes' | 'WRUN_CANDLES_FORMING_OPEN_VIEW' | 'WRUN_CANDLES_FORMING_VIEW' | 'WRUN_CANDLE_CLASSES' | 'WRUN_FEED_HOST_CAP' | 'WRUN_HOST_ABI_TABLES' | 'WRUN_HOST_PROFILES' | 'WRUN_MARKET_KIND_STOCK' | 'WRUN_MARKET_ZONE_NEW_YORK' | 'WRUN_MAX_LEG_BARS' | 'WRUN_MAX_LEG_OFFSET' | 'WRUN_OPTIONS_VENUES_HOST_CAP' | 'WRUN_PIN_SYMBOL_LITERAL_CODE' | 'WRUN_SECTION_KINDS' | 'WrunStrategyHost' | 'WrunStrategyRefusalError' | 'adaptWrunCells' | 'advanceWrunCarry' | 'alignWrunRows' | 'alignWrunTailRows' | 'cloneWrunInputCarry' | 'cmeSessionBarEndMs' | 'cmeSessionBarOpenMs' | 'cmeSessionBucketMs' | 'emptyWrunInputCarry' | 'isCmeSessionLatticeExchange' | 'isCmeSessionLatticeIntervalMs' | 'planWrunRun' | 'regularWindowClose' | 'resolveWrunStrategySheet' | 'wrunCalendarOfVenue' | 'wrunCelledLegCheck' | 'wrunLegCandleCloseMs' | 'wrunLegFetchStart' | 'wrunLegRowBoundsMs' | 'wrunMarketLegCandleClose' | 'wrunParamValueRefusal' | 'wrunPinSymbolLiteral' | 'wrunPinVenueRefused' | 'wrunPinVenueRefusedMessage' | 'wrunRefusalMessage' | 'wrunServedLegStart' | 'wrunSessionClock' | 'wrunUsEquitiesSession' | 'prepareModuleBytes' | 'wrunLaneGatedOff' | 'wrunLegCandleOpenMs' | 'WRUN_STATS_STRIP_WORDS' | 'wrunDownloadReadCost' | 'wrunDownloadPlanReads'>;
26
29
  /** The kit main entry's tables package code reads (web: src/utility/wrun/wrun-kit.ts `wrunIndicatorKit`); either may be
27
30
  * absent on an older kit, so both stay unknown and are checked where read. */
28
31
  export interface WrunKitMainModule {
@@ -179,6 +182,16 @@ export interface WrunChartHostEnv {
179
182
  * once per pass, and only for a run that carries a table on a normal cell (wrunHostLeavesTablesToWindow). web:
180
183
  * answered from the layout's window cells. */
181
184
  tablesShownInWindow?: (chartIndex: number, overlayId: string) => boolean;
185
+ /** Optional (next release). The per-order floor's switch: whether the CME Group venues' tapes are judged per
186
+ * aggressor ORDER, history and live together (the gateway's `minAmountPerOrder` read answers every fill of an order
187
+ * whose total reached the floor, the fills below it included; the live raw prints pass the order gate,
188
+ * kscript-data/controls/live-trades-order-gate.util). True: a tape on such a venue asks the per-order history read,
189
+ * gates its live prints per order, folds and adapts them with no per-fill floor, and Big Trades' contracts floor
190
+ * follows the product root (`wrunTapePerOrder`, utility/wrun/wrun-tape-per-order.util, the one reader). Absent or
191
+ * false (the sandbox worker's env, the phone app's host copy): the behaviour before the member, exactly (the floored
192
+ * reads, each fill judged by the floor). web: a getter over its build flag (`environment.WRUN_TAPE_PER_ORDER`,
193
+ * VITE_WRUN_TAPE_PER_ORDER, off by default) until the instrument registry names the plane (`largeTradePerOrder`). */
194
+ tapePerOrder?: boolean;
182
195
  }
183
196
  /** The mounted chart and the host's chart store, as package code reads and writes them. */
184
197
  export interface WrunHostChart {
@@ -357,7 +370,9 @@ export interface WrunHostChart {
357
370
  * { reconcileScriptPaneSideAfterRunResultApply } (executor :6355). */
358
371
  loadOffchartGridHeights(): Promise<WrunOffchartGridHeightsModule>;
359
372
  /** 0.5.0, boot loader. web: import('@/utility/indicators/options-overlay-provenance.util') viewed as
360
- * { admittedOpraSources, setOptionsOverlayOpraProvenance } (executor :8753; the cloud OPRA stamp, moved whole). */
373
+ * { admittedOpraSources, setOptionsOverlayOpraProvenance } (executor :8753; the cloud OPRA stamp, moved whole), and
374
+ * `noteGatePlaneOptionsRead` (optional: the add door's options stamp, OPTLOAD W3,
375
+ * run-schedule/wrun-gate-reader-warm.util). */
361
376
  loadOptionsOverlayProvenance(): Promise<WrunOptionsOverlayProvenanceModule>;
362
377
  /** 0.5.0, boot loader. web: import('@/indicators/indicator-registry') viewed as { indicatorRegistry } (executor :7699). */
363
378
  loadIndicatorRegistry(): Promise<WrunIndicatorRegistryModule>;
@@ -413,7 +428,10 @@ export interface WrunHostMarket {
413
428
  loadOptionsChartSource(): Promise<WrunOptionsChartSourceModule>;
414
429
  /** 0.3.0, boot loader. web: import('@/utility/options/opra-options-gate.util') viewed as { governedOptionPlane,
415
430
  * opraOptionPlaneStop } (sync, called after the loads: sources/opra-option-lanes.util.ts `resolveWrunChartChain`;
416
- * the stop's type is `OpraOptionPlaneStop`). */
431
+ * the stop's type is `OpraOptionPlaneStop`). Next release: the view's optional stock twin members (the gate's
432
+ * `chartOptionsMarket`, and `awaitStockTwin` from utility/options/stock-twin-probe.util) answer beside it, read by
433
+ * run-schedule/wrun-chart-gate-reader.util `decideWrunChartOptionsMarket` (a run's one options market); a host that
434
+ * binds neither reads every chart's options off its own market. */
417
435
  loadOptionsGate(): Promise<WrunOptionsGateModule>;
418
436
  /** 0.3.0, boot loader. web: import('@/utility/wrun/wrun-options-chain-venues.util') viewed as
419
437
  * { resolveWrunOptionsChainCryptoVenues } (sources/opra-option-lanes.util.ts `resolveWrunLaneCryptoVenues`). */
@@ -423,7 +441,9 @@ export interface WrunHostMarket {
423
441
  loadDeribitOptions(): Promise<WrunDeribitOptionsModule>;
424
442
  /** 0.3.0, boot loader. web: import('@/services/option-chain.service') viewed as { optionChainServiceForExchange,
425
443
  * default: { resolveChainContract } } (sources/opra-option-lanes.util.ts `readWrunLaneChainSeries`, the `auto` book's
426
- * directory read, and `resolveWrunLaneChainChart`, a continuous CME chart's lead contract). */
444
+ * directory read, and `resolveWrunLaneChainChart`, a continuous CME chart's lead contract). The market port the add
445
+ * door starts the CME optionable directory through (`default.prewarmOptionableDirectory`, optional: OPTLOAD W3,
446
+ * run-schedule/wrun-gate-reader-warm.util). */
427
447
  loadOptionChainService(): Promise<WrunOptionChainServiceModule>;
428
448
  /** 0.5.0, boot loader. web: import('@/services/continuous-contracts.service') viewed as { default: { getResolvedLead } }
429
449
  * (executor :8817). */
@@ -557,6 +577,10 @@ export declare function wrunHostShowsWindows(): boolean;
557
577
  * `chartIndex` (a mount that names no chart): the cell mounts the table, never a table that mounts nowhere. Read
558
578
  * when a mount runs, never at module load. */
559
579
  export declare function wrunHostLeavesTablesToWindow(chartIndex: number | undefined, overlayId: string): boolean;
580
+ /** Whether the realm's host turned the per-order floor's switch on (`WrunChartHostEnv.tapePerOrder`): false for a host
581
+ * that never set the member, and before the realm's entry set the env. Read when a request, a print or a run head
582
+ * asks, never at module load; `wrunTapePerOrder` (utility/wrun/wrun-tape-per-order.util) is its one reader. */
583
+ export declare function wrunHostTapePerOrder(): boolean;
560
584
  /** The error a host's `sharedHost()` throws before its load. */
561
585
  export declare function wrunChartHostUnloadedError(): Error;
562
586
  /** The shared host now, or its load: `undefined` once the env's `sharedHost()` answers, else the env's
package/dist/host-env.js CHANGED
@@ -35,6 +35,12 @@ export function wrunHostLeavesTablesToWindow(chartIndex, overlayId) {
35
35
  return false;
36
36
  }
37
37
  }
38
+ /** Whether the realm's host turned the per-order floor's switch on (`WrunChartHostEnv.tapePerOrder`): false for a host
39
+ * that never set the member, and before the realm's entry set the env. Read when a request, a print or a run head
40
+ * asks, never at module load; `wrunTapePerOrder` (utility/wrun/wrun-tape-per-order.util) is its one reader. */
41
+ export function wrunHostTapePerOrder() {
42
+ return hasWrunChartHostEnv() && wrunChartHostEnv().tapePerOrder === true;
43
+ }
38
44
  /** The error a host's `sharedHost()` throws before its load. */
39
45
  export function wrunChartHostUnloadedError() {
40
46
  return new Error('wrun_chart_host_unloaded');