@orangecharts/wrun-chart-host 0.2.0 → 0.4.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.
- package/README.md +22 -8
- package/dist/constants/common.constants.d.ts +15 -0
- package/dist/constants/common.constants.js +23 -0
- package/dist/constants/data-source.constants.d.ts +1 -0
- package/dist/constants/data-source.constants.js +1 -0
- package/dist/constants/economic.constants.d.ts +39 -0
- package/dist/constants/economic.constants.js +77 -0
- package/dist/constants/etf-covered-coins.constants.d.ts +1 -0
- package/dist/constants/etf-covered-coins.constants.js +9 -0
- package/dist/constants/feature-flags.constants.d.ts +60 -0
- package/dist/constants/feature-flags.constants.js +308 -0
- package/dist/constants/feature-limits.constants.d.ts +134 -0
- package/dist/constants/feature-limits.constants.js +155 -0
- package/dist/constants/marketCapabilities.constants.d.ts +87 -0
- package/dist/constants/marketCapabilities.constants.js +213 -0
- package/dist/constants/option-venues.constants.d.ts +100 -0
- package/dist/constants/option-venues.constants.js +167 -0
- package/dist/constants/overlay-data.constants.d.ts +53 -0
- package/dist/constants/overlay-data.constants.js +80 -0
- package/dist/constants/pane-grid.constants.d.ts +15 -0
- package/dist/constants/pane-grid.constants.js +17 -0
- package/dist/constants/scriptEditor/builtin-script-snippets.d.ts +133 -0
- package/dist/constants/scriptEditor/builtin-script-snippets.js +451 -0
- package/dist/constants/venue-presets.constants.d.ts +10 -0
- package/dist/constants/venue-presets.constants.js +22 -0
- package/dist/enums/chart.enum.d.ts +68 -0
- package/dist/enums/chart.enum.js +70 -0
- package/dist/helpers/data.helpers.d.ts +2 -0
- package/dist/helpers/data.helpers.js +14 -0
- package/dist/host-env.d.ts +163 -5
- package/dist/host-ports.types.d.ts +431 -0
- package/dist/host-ports.types.js +1 -0
- package/dist/index.d.ts +138 -0
- package/dist/index.js +138 -0
- package/dist/indicators/controls/technical-script/technical-script-input-rendering.d.ts +86 -0
- package/dist/indicators/controls/technical-script/technical-script-input-rendering.js +179 -0
- package/dist/interfaces/asset-venue.interface.d.ts +91 -0
- package/dist/interfaces/asset-venue.interface.js +1 -0
- package/dist/interfaces/cancel-reason.interface.d.ts +24 -0
- package/dist/interfaces/cancel-reason.interface.js +2 -0
- package/dist/interfaces/catalog-display.interface.d.ts +3 -0
- package/dist/interfaces/catalog-display.interface.js +1 -0
- package/dist/interfaces/cme-realtime.interface.d.ts +251 -0
- package/dist/interfaces/cme-realtime.interface.js +46 -0
- package/dist/interfaces/feed.interface.d.ts +80 -0
- package/dist/interfaces/feed.interface.js +7 -0
- package/dist/interfaces/market-kind.interface.d.ts +8 -0
- package/dist/interfaces/market-kind.interface.js +1 -0
- package/dist/interfaces/opra-realtime.interface.d.ts +224 -0
- package/dist/interfaces/opra-realtime.interface.js +105 -0
- package/dist/interfaces/option-instrument.interface.d.ts +32 -0
- package/dist/interfaces/option-instrument.interface.js +1 -0
- package/dist/interfaces/options-chain-scope.interface.d.ts +29 -0
- package/dist/interfaces/options-chain-scope.interface.js +7 -0
- package/dist/interfaces/prediction-market.interface.d.ts +88 -0
- package/dist/interfaces/prediction-market.interface.js +8 -0
- package/dist/interfaces/wrun-runtime.interface.d.ts +5 -0
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +185 -0
- package/dist/kscript-data/controls/live-trades-merge.util.js +357 -0
- package/dist/settings-templates/frvp-fields.d.ts +27 -0
- package/dist/settings-templates/frvp-fields.js +108 -0
- package/dist/settings-templates/index.d.ts +119 -0
- package/dist/settings-templates/index.js +442 -0
- package/dist/settings-templates/indicator-fields.d.ts +56 -0
- package/dist/settings-templates/indicator-fields.js +793 -0
- package/dist/settings-templates/tool-rules.d.ts +59 -0
- package/dist/settings-templates/tool-rules.js +49 -0
- package/dist/settings-templates/tool-tables.generated.d.ts +2 -0
- package/dist/settings-templates/tool-tables.generated.js +1668 -0
- package/dist/utility/blk-market.util.d.ts +5 -0
- package/dist/utility/blk-market.util.js +12 -0
- package/dist/utility/chart/chart-load-phase.util.d.ts +32 -0
- package/dist/utility/chart/chart-load-phase.util.js +78 -0
- package/dist/utility/chart/cme-cache-context.util.d.ts +108 -0
- package/dist/utility/chart/cme-cache-context.util.js +166 -0
- package/dist/utility/chart/cme-session-bucket.util.d.ts +82 -0
- package/dist/utility/chart/cme-session-bucket.util.js +343 -0
- package/dist/utility/chart/cme-trade-calendar.util.d.ts +26 -0
- package/dist/utility/chart/cme-trade-calendar.util.js +147 -0
- package/dist/utility/chart/continuous-contracts.util.d.ts +138 -0
- package/dist/utility/chart/continuous-contracts.util.js +374 -0
- package/dist/utility/chart/date-labelled-interval.leaf.d.ts +15 -0
- package/dist/utility/chart/date-labelled-interval.leaf.js +19 -0
- package/dist/utility/chart/feed-interval.util.d.ts +119 -0
- package/dist/utility/chart/feed-interval.util.js +321 -0
- package/dist/utility/chart/fetch-dedupe-policy.util.d.ts +110 -0
- package/dist/utility/chart/fetch-dedupe-policy.util.js +407 -0
- package/dist/utility/chart/footprint-band.util.d.ts +76 -0
- package/dist/utility/chart/footprint-band.util.js +205 -0
- package/dist/utility/chart/footprint-cell-identity.util.d.ts +82 -0
- package/dist/utility/chart/footprint-cell-identity.util.js +346 -0
- package/dist/utility/chart/formula-calendar.util.d.ts +27 -0
- package/dist/utility/chart/formula-calendar.util.js +59 -0
- package/dist/utility/chart/history-wall.util.d.ts +67 -0
- package/dist/utility/chart/history-wall.util.js +87 -0
- package/dist/utility/chart/index-mode.util.d.ts +66 -0
- package/dist/utility/chart/index-mode.util.js +360 -0
- package/dist/utility/chart/indicator-coverage-planner.util.d.ts +217 -0
- package/dist/utility/chart/indicator-coverage-planner.util.js +443 -0
- package/dist/utility/chart/indicator-coverage-state.util.d.ts +33 -0
- package/dist/utility/chart/indicator-coverage-state.util.js +110 -0
- package/dist/utility/chart/indicator-gap-detector.util.d.ts +127 -0
- package/dist/utility/chart/indicator-gap-detector.util.js +260 -0
- package/dist/utility/chart/indicator-gap-repair.util.d.ts +88 -0
- package/dist/utility/chart/indicator-gap-repair.util.js +177 -0
- package/dist/utility/chart/indicator-inflight-registry.util.d.ts +26 -0
- package/dist/utility/chart/indicator-inflight-registry.util.js +254 -0
- package/dist/utility/chart/indicator-run-interval.util.d.ts +130 -0
- package/dist/utility/chart/indicator-run-interval.util.js +268 -0
- package/dist/utility/chart/interval-registry.util.d.ts +23 -0
- package/dist/utility/chart/interval-registry.util.js +83 -0
- package/dist/utility/chart/kscript-main-grid-stages.util.d.ts +21 -0
- package/dist/utility/chart/kscript-main-grid-stages.util.js +332 -0
- package/dist/utility/chart/legacy-exchange.leaf.d.ts +11 -0
- package/dist/utility/chart/legacy-exchange.leaf.js +43 -0
- package/dist/utility/chart/live-bucket.util.d.ts +66 -0
- package/dist/utility/chart/live-bucket.util.js +165 -0
- package/dist/utility/chart/market-session-schedule.util.d.ts +91 -0
- package/dist/utility/chart/market-session-schedule.util.js +337 -0
- package/dist/utility/chart/marketKind.util.d.ts +181 -0
- package/dist/utility/chart/marketKind.util.js +371 -0
- package/dist/utility/chart/opra-read-access.leaf.d.ts +26 -0
- package/dist/utility/chart/opra-read-access.leaf.js +25 -0
- package/dist/utility/chart/prediction-identity.util.d.ts +159 -0
- package/dist/utility/chart/prediction-identity.util.js +236 -0
- package/dist/utility/chart/rth-session.util.d.ts +352 -0
- package/dist/utility/chart/rth-session.util.js +926 -0
- package/dist/utility/chart/titan-constants.pin.d.ts +43 -0
- package/dist/utility/chart/titan-constants.pin.js +50 -0
- package/dist/utility/chart/us-equities-session.util.d.ts +127 -0
- package/dist/utility/chart/us-equities-session.util.js +251 -0
- package/dist/utility/chart/window-geometry.leaf.d.ts +119 -0
- package/dist/utility/chart/window-geometry.leaf.js +391 -0
- package/dist/utility/chart/window-owner.leaf.d.ts +19 -0
- package/dist/utility/chart/window-owner.leaf.js +24 -0
- package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +100 -0
- package/dist/utility/chart/wrun-bar-session-facts.util.js +354 -0
- package/dist/utility/chart/wrun-wire-ref.util.d.ts +23 -0
- package/dist/utility/chart/wrun-wire-ref.util.js +16 -0
- package/dist/utility/common/safe-math-eval.d.ts +18 -0
- package/dist/utility/common/safe-math-eval.js +160 -0
- package/dist/utility/common/time.util.d.ts +134 -0
- package/dist/utility/common/time.util.js +428 -0
- package/dist/utility/common/transformations.util.d.ts +126 -0
- package/dist/utility/common/transformations.util.js +711 -0
- package/dist/utility/common/visible-timeout.util.d.ts +17 -0
- package/dist/utility/common/visible-timeout.util.js +75 -0
- package/dist/utility/exchange-normalization.util.d.ts +8 -0
- package/dist/utility/exchange-normalization.util.js +32 -0
- package/dist/utility/html-escape.leaf.d.ts +11 -0
- package/dist/utility/html-escape.leaf.js +20 -0
- package/dist/utility/intl-locale.util.d.ts +2 -0
- package/dist/utility/intl-locale.util.js +28 -0
- package/dist/utility/number-format.util.d.ts +14 -1
- package/dist/utility/number-format.util.js +50 -19
- package/dist/utility/options/option-symbol.util.d.ts +28 -0
- package/dist/utility/options/option-symbol.util.js +176 -0
- package/dist/utility/options/option-trade-units.util.d.ts +190 -0
- package/dist/utility/options/option-trade-units.util.js +283 -0
- package/dist/utility/options/option-venue.util.d.ts +75 -0
- package/dist/utility/options/option-venue.util.js +85 -0
- package/dist/utility/pool-symbol.leaf.d.ts +34 -0
- package/dist/utility/pool-symbol.leaf.js +95 -0
- package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.d.ts +109 -0
- package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.js +302 -0
- package/dist/utility/symbol-selection/contract-expiry.util.d.ts +39 -0
- package/dist/utility/symbol-selection/contract-expiry.util.js +111 -0
- package/dist/utility/v2/gate-plane.util.d.ts +58 -0
- package/dist/utility/v2/gate-plane.util.js +99 -0
- package/dist/utility/v2/gate-session-latch.util.d.ts +22 -0
- package/dist/utility/v2/gate-session-latch.util.js +34 -0
- package/dist/utility/watchlist/import/tradingview-symbols.leaf.d.ts +76 -0
- package/dist/utility/watchlist/import/tradingview-symbols.leaf.js +221 -0
- package/dist/utility/wrun/sources/host-grid-landing.d.ts +15 -0
- package/dist/utility/wrun/sources/host-grid-landing.js +26 -0
- package/dist/utility/wrun/sources/lanes/bitfinex_funding.d.ts +27 -0
- package/dist/utility/wrun/sources/lanes/bitfinex_funding.js +85 -0
- package/dist/utility/wrun/sources/lanes/economic.d.ts +27 -0
- package/dist/utility/wrun/sources/lanes/economic.js +79 -0
- package/dist/utility/wrun/sources/lanes/etf_holdings.d.ts +35 -0
- package/dist/utility/wrun/sources/lanes/etf_holdings.js +165 -0
- package/dist/utility/wrun/sources/lanes/etf_premium.d.ts +19 -0
- package/dist/utility/wrun/sources/lanes/etf_premium.js +114 -0
- package/dist/utility/wrun/sources/lanes/ethena_positions.d.ts +30 -0
- package/dist/utility/wrun/sources/lanes/ethena_positions.js +51 -0
- package/dist/utility/wrun/sources/lanes/index.d.ts +2 -0
- package/dist/utility/wrun/sources/lanes/index.js +32 -0
- package/dist/utility/wrun/sources/lanes/long_short_ratio.d.ts +17 -0
- package/dist/utility/wrun/sources/lanes/long_short_ratio.js +47 -0
- package/dist/utility/wrun/sources/lanes/option_daily.d.ts +58 -0
- package/dist/utility/wrun/sources/lanes/option_daily.js +111 -0
- package/dist/utility/wrun/sources/lanes/option_stats_10m.d.ts +27 -0
- package/dist/utility/wrun/sources/lanes/option_stats_10m.js +21 -0
- package/dist/utility/wrun/sources/lanes/options_flow.d.ts +50 -0
- package/dist/utility/wrun/sources/lanes/options_flow.js +155 -0
- package/dist/utility/wrun/sources/lanes/options_oi.d.ts +29 -0
- package/dist/utility/wrun/sources/lanes/options_oi.js +59 -0
- package/dist/utility/wrun/sources/lanes/options_volume.d.ts +38 -0
- package/dist/utility/wrun/sources/lanes/options_volume.js +63 -0
- package/dist/utility/wrun/sources/lanes/series.d.ts +67 -0
- package/dist/utility/wrun/sources/lanes/series.js +321 -0
- package/dist/utility/wrun/sources/lanes/token_supply.d.ts +30 -0
- package/dist/utility/wrun/sources/lanes/token_supply.js +145 -0
- package/dist/utility/wrun/sources/lanes/treasury_balance.d.ts +25 -0
- package/dist/utility/wrun/sources/lanes/treasury_balance.js +47 -0
- package/dist/utility/wrun/sources/lanes/volatility_index.d.ts +21 -0
- package/dist/utility/wrun/sources/lanes/volatility_index.js +11 -0
- package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +215 -0
- package/dist/utility/wrun/sources/opra-option-lanes.util.js +477 -0
- package/dist/utility/wrun/sources/registry.d.ts +21 -0
- package/dist/utility/wrun/sources/registry.js +237 -0
- package/dist/utility/wrun/sources/row-lane-registry.d.ts +28 -0
- package/dist/utility/wrun/sources/row-lane-registry.js +230 -0
- package/dist/utility/wrun/sources/row-lanes/index.d.ts +2 -0
- package/dist/utility/wrun/sources/row-lanes/index.js +12 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_flow.d.ts +2 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_flow.js +38 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.d.ts +55 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +126 -0
- package/dist/utility/wrun/sources/row-lanes/option_prints.d.ts +4 -0
- package/dist/utility/wrun/sources/row-lanes/option_prints.js +191 -0
- package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +62 -0
- package/dist/utility/wrun/sources/row-lanes/option_strikes.js +147 -0
- package/dist/utility/wrun/sources/row-lanes/option_surface.d.ts +70 -0
- package/dist/utility/wrun/sources/row-lanes/option_surface.js +144 -0
- package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +309 -0
- package/dist/utility/wrun/sources/wrun-poll-lane.types.js +26 -0
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +350 -0
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +576 -0
- package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +275 -0
- package/dist/utility/wrun/sources/wrun-row-lane.types.js +16 -0
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +207 -0
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +450 -0
- package/dist/utility/wrun/wrun-browser-sources.leaf.d.ts +28 -0
- package/dist/utility/wrun/wrun-browser-sources.leaf.js +66 -0
- package/dist/utility/wrun/wrun-cloud-record.util.d.ts +65 -0
- package/dist/utility/wrun/wrun-cloud-record.util.js +121 -0
- package/dist/utility/wrun/wrun-daily-lane.util.d.ts +95 -0
- package/dist/utility/wrun/wrun-daily-lane.util.js +297 -0
- package/dist/utility/wrun/wrun-deadline.util.d.ts +52 -0
- package/dist/utility/wrun/wrun-deadline.util.js +82 -0
- package/dist/utility/wrun/wrun-etf-flow-lane.util.d.ts +94 -0
- package/dist/utility/wrun/wrun-etf-flow-lane.util.js +224 -0
- package/dist/utility/wrun/wrun-etf-funds.util.d.ts +82 -0
- package/dist/utility/wrun/wrun-etf-funds.util.js +242 -0
- package/dist/utility/wrun/wrun-frames.d.ts +20 -1
- package/dist/utility/wrun/wrun-frames.js +103 -49
- package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +2 -2
- package/dist/utility/wrun/wrun-hosted-wire-caps.js +27 -0
- package/dist/utility/wrun/wrun-lane-refusal.leaf.d.ts +22 -0
- package/dist/utility/wrun/wrun-lane-refusal.leaf.js +32 -0
- package/dist/utility/wrun/wrun-lane-warmup.util.d.ts +18 -0
- package/dist/utility/wrun/wrun-lane-warmup.util.js +112 -0
- package/dist/utility/wrun/wrun-leg-close.util.d.ts +57 -0
- package/dist/utility/wrun/wrun-leg-close.util.js +187 -0
- package/dist/utility/wrun/wrun-leg-fetch.util.d.ts +144 -0
- package/dist/utility/wrun/wrun-leg-fetch.util.js +212 -0
- package/dist/utility/wrun/wrun-leg-stream-classes.d.ts +73 -0
- package/dist/utility/wrun/wrun-leg-stream-classes.js +86 -0
- package/dist/utility/wrun/wrun-levels-child.util.d.ts +101 -6
- package/dist/utility/wrun/wrun-levels-child.util.js +335 -157
- package/dist/utility/wrun/wrun-memory-clamp.util.d.ts +33 -0
- package/dist/utility/wrun/wrun-memory-clamp.util.js +146 -0
- package/dist/utility/wrun/wrun-odds-template-market.util.d.ts +51 -0
- package/dist/utility/wrun/wrun-odds-template-market.util.js +251 -0
- package/dist/utility/wrun/wrun-opra-flow.leaf.d.ts +65 -0
- package/dist/utility/wrun/wrun-opra-flow.leaf.js +94 -0
- package/dist/utility/wrun/wrun-opra-lane.util.d.ts +47 -0
- package/dist/utility/wrun/wrun-opra-lane.util.js +58 -0
- package/dist/utility/wrun/wrun-opra-stats.leaf.d.ts +49 -0
- package/dist/utility/wrun/wrun-opra-stats.leaf.js +115 -0
- package/dist/utility/wrun/wrun-opra-underlying.util.d.ts +12 -0
- package/dist/utility/wrun/wrun-opra-underlying.util.js +1 -0
- package/dist/utility/wrun/wrun-option-contract-flow.util.d.ts +142 -0
- package/dist/utility/wrun/wrun-option-contract-flow.util.js +451 -0
- package/dist/utility/wrun/wrun-option-knobs.util.d.ts +43 -0
- package/dist/utility/wrun/wrun-option-knobs.util.js +81 -0
- package/dist/utility/wrun/wrun-option-prints.util.d.ts +144 -0
- package/dist/utility/wrun/wrun-option-prints.util.js +356 -0
- package/dist/utility/wrun/wrun-option-summary-lane.util.d.ts +102 -0
- package/dist/utility/wrun/wrun-option-summary-lane.util.js +143 -0
- package/dist/utility/wrun/wrun-options-chain.util.d.ts +308 -0
- package/dist/utility/wrun/wrun-options-chain.util.js +502 -0
- package/dist/utility/wrun/wrun-overlay-identity.util.d.ts +9 -4
- package/dist/utility/wrun/wrun-overlay-identity.util.js +16 -6
- package/dist/utility/wrun/wrun-panel-mount.lazy.d.ts +10 -0
- package/dist/utility/wrun/wrun-panel-mount.lazy.js +68 -0
- package/dist/utility/wrun/wrun-panel-mount.util.d.ts +377 -0
- package/dist/utility/wrun/wrun-panel-mount.util.js +2251 -0
- package/dist/utility/wrun/wrun-param-map.util.d.ts +298 -0
- package/dist/utility/wrun/wrun-param-map.util.js +581 -0
- package/dist/utility/wrun/wrun-pause-dim.util.d.ts +52 -0
- package/dist/utility/wrun/wrun-pause-dim.util.js +153 -0
- package/dist/utility/wrun/wrun-pin-spelling.util.d.ts +149 -0
- package/dist/utility/wrun/wrun-pin-spelling.util.js +523 -0
- package/dist/utility/wrun/wrun-pin-venues.util.d.ts +116 -0
- package/dist/utility/wrun/wrun-pin-venues.util.js +320 -0
- package/dist/utility/wrun/wrun-pinned-interval.util.d.ts +20 -0
- package/dist/utility/wrun/wrun-pinned-interval.util.js +47 -0
- package/dist/utility/wrun/wrun-plot-gate.types.d.ts +23 -0
- package/dist/utility/wrun/wrun-plot-gate.types.js +7 -0
- package/dist/utility/wrun/wrun-present-bits.util.d.ts +37 -0
- package/dist/utility/wrun/wrun-present-bits.util.js +73 -0
- package/dist/utility/wrun/wrun-protocol-pending.util.d.ts +33 -0
- package/dist/utility/wrun/wrun-protocol-pending.util.js +57 -0
- package/dist/utility/wrun/wrun-refusal.util.d.ts +41 -1
- package/dist/utility/wrun/wrun-refusal.util.js +69 -2
- package/dist/utility/wrun/wrun-registry-errors.util.d.ts +1 -14
- package/dist/utility/wrun/wrun-registry-errors.util.js +0 -16
- package/dist/utility/wrun/wrun-row-source.d.ts +158 -0
- package/dist/utility/wrun/wrun-row-source.js +75 -0
- package/dist/utility/wrun/wrun-run-health.util.d.ts +155 -0
- package/dist/utility/wrun/wrun-run-health.util.js +273 -0
- package/dist/utility/wrun/wrun-run-interval-projection.types.d.ts +14 -0
- package/dist/utility/wrun/wrun-run-interval-projection.types.js +1 -0
- package/dist/utility/wrun/wrun-socket-row-source.d.ts +439 -0
- package/dist/utility/wrun/wrun-socket-row-source.js +1689 -0
- package/dist/utility/wrun/wrun-socket-session-losses.util.d.ts +18 -0
- package/dist/utility/wrun/wrun-socket-session-losses.util.js +25 -0
- package/dist/utility/wrun/wrun-source-rows.util.d.ts +911 -0
- package/dist/utility/wrun/wrun-source-rows.util.js +2597 -0
- package/dist/utility/wrun/wrun-tape-source.util.d.ts +82 -0
- package/dist/utility/wrun/wrun-tape-source.util.js +151 -0
- package/dist/utility/wrun/wrun-tier-grid.util.d.ts +137 -0
- package/dist/utility/wrun/wrun-tier-grid.util.js +279 -0
- package/dist/utility/wrun/wrun-trades-lane.util.d.ts +52 -0
- package/dist/utility/wrun/wrun-trades-lane.util.js +58 -0
- package/dist/utility/wrun/wrun-volume-profile-lane.util.d.ts +41 -0
- package/dist/utility/wrun/wrun-volume-profile-lane.util.js +66 -0
- package/dist/utility/wrun-display-name.util.d.ts +33 -0
- package/dist/utility/wrun-display-name.util.js +64 -0
- package/dist/workers/constants/kscript-transport-codes.d.ts +15 -0
- package/dist/workers/constants/kscript-transport-codes.js +15 -0
- package/dist/workers/constants/socket-slots.d.ts +574 -0
- package/dist/workers/constants/socket-slots.js +539 -0
- package/dist/workers/utils/number.worker.util.d.ts +5 -0
- package/dist/workers/utils/number.worker.util.js +10 -0
- package/dist/workers/utils/time.worker.util.d.ts +12 -0
- package/dist/workers/utils/time.worker.util.js +24 -0
- package/dist/workers/utils/volume-profile.worker.util.d.ts +200 -0
- package/dist/workers/utils/volume-profile.worker.util.js +631 -0
- package/package.json +10 -4
package/dist/host-env.d.ts
CHANGED
|
@@ -10,9 +10,17 @@
|
|
|
10
10
|
* bundle that splits it, a spec that resets its module registry) reads the one the realm's entry set.
|
|
11
11
|
*/
|
|
12
12
|
import type * as WrunKitHost from '@orangecharts/indicator-kit/host';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
import type { WrunChartPaintOptions, WrunChartPaintTarget, WrunChartStoreModule, WrunDeribitOptionsModule, WrunFeedStreamApi, WrunFeedsServiceModule, WrunHostOverlayRef, WrunIntegrateOptions, WrunIntegrateResult, WrunKitModule, WrunKScriptErrorEnvelopeModule, WrunMetadataServiceModule, WrunOptionChainServiceModule, WrunOptionsChainVenuesModule, WrunOptionsChartSourceModule, WrunOptionsGateModule, WrunOverlayLifecycleDoorModule, WrunPackEnsureInput, WrunPackEnsureResult, WrunPlotGateChart, WrunPlotGateRefusal, WrunPriceMarkerTarget, WrunRefreshRowsOptions, WrunRefreshRowsResult, WrunRefusalSurfaceModule, WrunSeriesStreamModule, WrunSocketChartRows, WrunSocketLoadSignals, WrunSocketTransport, WrunTitanChartsModule } from './host-ports.types.js';
|
|
14
|
+
/** CHANGED 0.3.0: the shared host names package code reads at run time (slab 1's 11 plus the ones the Phase 1 and
|
|
15
|
+
* Phase 2 move sets read; kit 0.80.0's host entry exports every one). The app hands the kit's host entry; web hands
|
|
16
|
+
* its seam src/utility/wrun/wrun-shared-host.ts (it re-exports every one). */
|
|
17
|
+
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'>;
|
|
18
|
+
/** The kit main entry's tables package code reads (web: src/utility/wrun/wrun-kit.ts `wrunIndicatorKit`); either may be
|
|
19
|
+
* absent on an older kit, so both stay unknown and are checked where read. */
|
|
20
|
+
export interface WrunKitMainModule {
|
|
21
|
+
readonly WRUN_TOKEN_NAMES?: unknown;
|
|
22
|
+
readonly WRUN_DAEMON_ONLY_SOURCES?: unknown;
|
|
23
|
+
}
|
|
16
24
|
/** The chart a cells notice belongs to: any engine instance whose mounted overlays carry their ids. */
|
|
17
25
|
export interface WrunCapNoticeChart {
|
|
18
26
|
metadata: ReadonlyArray<{
|
|
@@ -72,15 +80,24 @@ export interface WrunChartHostDiagnostics {
|
|
|
72
80
|
publishCapNotice(batch: WrunCapNoticeBatch): void;
|
|
73
81
|
/** Publish a canvas cost notice. Reserved: no slab 1 module publishes one. */
|
|
74
82
|
publishCanvasCostNotice(notice: WrunCanvasCostNotice): void;
|
|
83
|
+
/** 0.3.0, boot. web: isLazyLoadDebugEnabled() (utility/chart/lazy-load-debug.util). Guards every debug() call (R8). */
|
|
84
|
+
debugEnabled(): boolean;
|
|
85
|
+
/** Reserved until 0.4.0, panel-mount binder. web: publishWrunPlotGateNotice(tc, overlayId, refusals)
|
|
86
|
+
* (utility/wrun/wrun-plot-gate-notice.util.ts:58; void, and it already writes after its own lazy load). */
|
|
87
|
+
publishPlotGateNotice(tc: WrunPlotGateChart, overlayId: string, refusals: ReadonlyArray<WrunPlotGateRefusal>): void;
|
|
88
|
+
/** Reserved until 0.5.0, boot. web: import.meta.env.DEV (the package never reads import.meta). */
|
|
89
|
+
readonly devBuild: boolean;
|
|
75
90
|
}
|
|
76
91
|
/** What the layer reads from its host. */
|
|
77
92
|
export interface WrunChartHostEnv {
|
|
78
|
-
/** A user-facing string by its locale key (web: the i18n plugin). Reserved
|
|
93
|
+
/** A user-facing string by its locale key (web: the i18n plugin). Reserved until 0.4.0 (the panel mount's legend
|
|
94
|
+
* words). */
|
|
79
95
|
t(key: string, params?: Record<string, unknown>): string;
|
|
80
96
|
/** Whether the locale holds `key`. Reserved with `t`. */
|
|
81
97
|
te(key: string): boolean;
|
|
82
98
|
/** Load the shared host once (later calls answer the same module; a failed load is not cached). Package code
|
|
83
|
-
* that reaches the host asynchronously awaits this before its first synchronous use.
|
|
99
|
+
* that reaches the host asynchronously awaits this before its first synchronous use. Web's load also loads the
|
|
100
|
+
* rows binder (src/utility/wrun/web-ports/rows.ts) in the same `Promise.all`. */
|
|
84
101
|
loadSharedHost(): Promise<WrunSharedHostModule>;
|
|
85
102
|
/** The loaded shared host, for synchronous code a run reaches after `loadSharedHost()` resolved. Throws by name
|
|
86
103
|
* before the load (a new host throws `wrunChartHostUnloadedError()`; web keeps its loader's own message). */
|
|
@@ -89,6 +106,147 @@ export interface WrunChartHostEnv {
|
|
|
89
106
|
* (web: src/store/asset-names.ts `poolDexName`). Reserved: no slab 1 module names a pool. */
|
|
90
107
|
poolDexName(exchange: string | undefined, symbol: string | undefined): string | undefined;
|
|
91
108
|
diagnostics: WrunChartHostDiagnostics;
|
|
109
|
+
/** 0.3.0. */
|
|
110
|
+
chart: WrunHostChart;
|
|
111
|
+
/** 0.3.0. */
|
|
112
|
+
user: WrunHostUser;
|
|
113
|
+
/** 0.3.0. */
|
|
114
|
+
market: WrunHostMarket;
|
|
115
|
+
/** 0.3.0. */
|
|
116
|
+
transport: WrunHostTransport;
|
|
117
|
+
/** 0.3.0, transitional (D-4), retires 0.5.0. */
|
|
118
|
+
run: WrunHostRun;
|
|
119
|
+
/** 0.3.0, reserved until 0.5.0. */
|
|
120
|
+
clock: WrunHostClock;
|
|
121
|
+
}
|
|
122
|
+
/** The mounted chart and the host's chart store, as package code reads and writes them. */
|
|
123
|
+
export interface WrunHostChart {
|
|
124
|
+
/** 0.3.0, boot. web: isChartReplaying(chartIndex) (replay/replayFlags.ts; a vue-reactive read at call time). */
|
|
125
|
+
isReplaying(chartIndex: number): boolean;
|
|
126
|
+
/** 0.3.0, boot loader. web: import('@/store/chart') viewed as { useChartStore } (the facts router,
|
|
127
|
+
* wrun-socket-row-source.ts:1776-1777; the panel mount's pause reader, wrun-panel-mount.util.ts:2666-2669). */
|
|
128
|
+
loadChartStore(): Promise<WrunChartStoreModule>;
|
|
129
|
+
/** 0.3.0, socket web half. web: mountedWrunSocketChartRows(chartIndex) (moves to wrun-socket-transport.ts, U3b). */
|
|
130
|
+
mainRows(chartIndex: number): Promise<WrunSocketChartRows | undefined>;
|
|
131
|
+
/** 0.3.0, socket web half. web: createWrunSocketLoadSignals(overlay) (same). */
|
|
132
|
+
hostedLoadSignals(overlay: WrunHostOverlayRef): WrunSocketLoadSignals;
|
|
133
|
+
/** Reserved until 0.4.0, boot loader. web: import('@/instances/titan-charts') viewed as { getTC }
|
|
134
|
+
* (wrun-panel-mount.util.ts:1873-1874). */
|
|
135
|
+
loadTitanCharts(): Promise<WrunTitanChartsModule>;
|
|
136
|
+
/** Reserved until 0.4.0, boot loader. web: import('@/utility/wrun/web-ports/panel-mount') (binds the members marked
|
|
137
|
+
* "panel-mount binder"); the app resolves once its own are bound. The door awaits it beside the mount (D-5). */
|
|
138
|
+
loadPanelMountPorts(): Promise<void>;
|
|
139
|
+
/** Reserved until 0.4.0, panel-mount binder. web: scheduleKScriptChartPaint(target, options)
|
|
140
|
+
* (utility/chart/kscript-chart-paint.util.ts:84; web's one coalescing map stays the owner, D-2c). */
|
|
141
|
+
schedulePaint(target: WrunChartPaintTarget, options?: WrunChartPaintOptions): void;
|
|
142
|
+
/** Reserved until 0.4.0, panel-mount binder. web: safeIntegrateKScriptRunResultToTitanCharts(options)
|
|
143
|
+
* (utility/chart/kscript-titancharts-integration.util.ts:5858). */
|
|
144
|
+
integrate(options: WrunIntegrateOptions): WrunIntegrateResult;
|
|
145
|
+
/** Reserved until 0.4.0, panel-mount binder. web: safeRefreshMountedKScriptRowsFromRunResult(options) (same file, :5243). */
|
|
146
|
+
refreshMountedRows(options: WrunRefreshRowsOptions): WrunRefreshRowsResult;
|
|
147
|
+
/** Reserved until 0.4.0, panel-mount binder. web: syncMountedKScriptPriceMarkers(target, overlayId, settings) (same file, :1726). */
|
|
148
|
+
syncPriceMarkers(target: WrunPriceMarkerTarget, overlayId: string, settings: unknown): boolean;
|
|
149
|
+
/** Reserved until 0.4.0, panel-mount binder. web: reapplyPausedOverlayPaint(tc, overlayId)
|
|
150
|
+
* (utility/chart/kscript-perf-paint-suspend.util.ts:267). */
|
|
151
|
+
reapplyPausedOverlayPaint(tc: unknown, overlayId: string): boolean;
|
|
152
|
+
/** Reserved until 0.4.0, panel-mount binder. web: ensurePacksFor(input) (utility/titan-charts/pack-loader.util.ts:400). */
|
|
153
|
+
ensurePacks(input: WrunPackEnsureInput): Promise<WrunPackEnsureResult>;
|
|
154
|
+
/** Reserved until 0.4.0, panel-mount binder. web: registerLoadedPacks(tc) (same file, :442). */
|
|
155
|
+
registerLoadedPacks(tc: unknown): void;
|
|
156
|
+
/** web: isChartReplayDataLocked(chartIndex) (replay/replayFlags.ts). */
|
|
157
|
+
isReplayDataLocked(chartIndex: number): boolean;
|
|
158
|
+
/** web: getChartViewportLastPanAt(chartIndex) (utility/chart/viewport-pan-tracking.util). */
|
|
159
|
+
lastPanAt(chartIndex: number): number;
|
|
160
|
+
/** web: getChartViewportMotionAt(chartIndex) (same). */
|
|
161
|
+
motionAt(chartIndex: number): number;
|
|
162
|
+
/** web: waitForChartViewportPanIdle(chartIndex, options) (same). */
|
|
163
|
+
waitPanIdle(chartIndex: number, options?: {
|
|
164
|
+
idleMs?: number;
|
|
165
|
+
maxWaitMs?: number;
|
|
166
|
+
pollMs?: number;
|
|
167
|
+
}): Promise<number>;
|
|
168
|
+
}
|
|
169
|
+
/** The signed-in person's switches and settings. */
|
|
170
|
+
export interface WrunHostUser {
|
|
171
|
+
/** 0.3.0, boot. web: useFeatureFlagsStore().isOn(flag) (store/feature-flags); throws when no flag store is up (the
|
|
172
|
+
* caller keeps its try/catch, wrun-source-rows.util.ts:2019). */
|
|
173
|
+
isFeatureOn(flag: string): boolean;
|
|
174
|
+
/** Reserved until 0.4.0, boot. web: useUserStore().settings?.themeMode (store/user); throws when no user store is up
|
|
175
|
+
* (the panel mount keeps its string check and try/catch, wrun-panel-mount.util.ts:537-545). */
|
|
176
|
+
themeMode(): unknown;
|
|
177
|
+
/** Reserved until 0.4.0, panel-mount binder. web: chartDisplayTimezoneOffsetMs(barIntervalMs)
|
|
178
|
+
* (utility/chart/chart-display-timezone.util.ts:32; it reads the user store). */
|
|
179
|
+
chartDisplayTimezoneOffsetMs(barIntervalMs?: number): number;
|
|
180
|
+
}
|
|
181
|
+
/** Market reference data the host's directories answer. */
|
|
182
|
+
export interface WrunHostMarket {
|
|
183
|
+
/** 0.3.0, boot loader. web: import('@/services/metadata.service') viewed as { default: { getMarkets } }
|
|
184
|
+
* (sources/lanes/etf_holdings.ts:86-91, sources/lanes/etf_premium.ts:73-78, wrun-etf-flow-lane.util.ts:180-184). */
|
|
185
|
+
loadMetadataService(): Promise<WrunMetadataServiceModule>;
|
|
186
|
+
/** 0.3.0, rows binder. web: getGapPolicy(exchange, symbol).kind (utility/chart/syntheticGaps.util.ts:92; it reads the
|
|
187
|
+
* tokenized-markets store); the one site reads only `.kind` (wrun-source-rows.util.ts:2378). */
|
|
188
|
+
gapPolicyKind(exchange: string | undefined, symbol?: string): string;
|
|
189
|
+
/** 0.3.0, boot loader. web: import('@/indicators/controls/optionsChartSource') viewed as { resolveOptionsChartSource }
|
|
190
|
+
* (async; sources/opra-option-lanes.util.ts `resolveWrunChartChain`, the one chart chain resolution every chain
|
|
191
|
+
* class reads). */
|
|
192
|
+
loadOptionsChartSource(): Promise<WrunOptionsChartSourceModule>;
|
|
193
|
+
/** 0.3.0, boot loader. web: import('@/utility/options/opra-options-gate.util') viewed as { governedOptionPlane,
|
|
194
|
+
* opraOptionPlaneStop } (sync, called after the loads: sources/opra-option-lanes.util.ts `resolveWrunChartChain`;
|
|
195
|
+
* the stop's type is `OpraOptionPlaneStop`). */
|
|
196
|
+
loadOptionsGate(): Promise<WrunOptionsGateModule>;
|
|
197
|
+
/** 0.3.0, boot loader. web: import('@/utility/wrun/wrun-options-chain-venues.util') viewed as
|
|
198
|
+
* { resolveWrunOptionsChainCryptoVenues } (sources/opra-option-lanes.util.ts `resolveWrunLaneCryptoVenues`). */
|
|
199
|
+
loadOptionsChainVenues(): Promise<WrunOptionsChainVenuesModule>;
|
|
200
|
+
/** 0.3.0, boot loader. web: import('@/utility/indicators/deribit-options.util') viewed as { hasDeribitOptions } (sync;
|
|
201
|
+
* sources/opra-option-lanes.util.ts `resolveWrunLaneChainChart`, every chain lane's chart resolution). */
|
|
202
|
+
loadDeribitOptions(): Promise<WrunDeribitOptionsModule>;
|
|
203
|
+
/** 0.3.0, boot loader. web: import('@/services/option-chain.service') viewed as { optionChainServiceForExchange,
|
|
204
|
+
* default: { resolveChainContract } } (sources/opra-option-lanes.util.ts `readWrunLaneChainSeries`, the `auto` book's
|
|
205
|
+
* directory read, and `resolveWrunLaneChainChart`, a continuous CME chart's lead contract). */
|
|
206
|
+
loadOptionChainService(): Promise<WrunOptionChainServiceModule>;
|
|
207
|
+
}
|
|
208
|
+
/** Rows over the wire: the relay, the cloud socket, the kit's main entry, the error envelope. */
|
|
209
|
+
export interface WrunHostTransport {
|
|
210
|
+
/** 0.3.0, boot loader. web: import('@/services/feeds.service') viewed as { FeedsApiError, getFeedHead, getFeedBars }
|
|
211
|
+
* (the class itself, so `instanceof` keeps working: sources/lanes/series.ts:253-258, :318). */
|
|
212
|
+
loadFeedsService(): Promise<WrunFeedsServiceModule>;
|
|
213
|
+
/** 0.3.0, boot loader. web: import('@/utility/wrun/wrun-kit') viewed as { wrunIndicatorKit }
|
|
214
|
+
* (sources/lanes/token_supply.ts:143). */
|
|
215
|
+
loadWrunKit(): Promise<WrunKitModule>;
|
|
216
|
+
/** 0.3.0, boot loader. web: import('@/utility/chart/kscript-error-envelope.util') viewed as
|
|
217
|
+
* { envelopeWorkerTransportDiagnostics } (wrun-socket-row-source.ts:668-672; `normalizeRuntimeDiagnostics` comes
|
|
218
|
+
* from U0's leaf, loaded in the same Promise.all). */
|
|
219
|
+
loadKScriptErrorEnvelope(): Promise<WrunKScriptErrorEnvelopeModule>;
|
|
220
|
+
/** 0.3.0, socket web half. web: isKScriptCapabilityDeniedError(error) (kscript-error-envelope.util; the socket
|
|
221
|
+
* source's static import, wrun-socket-row-source.ts:108-111,1912). */
|
|
222
|
+
isCapabilityDeniedError(error: unknown): boolean;
|
|
223
|
+
/** 0.3.0, socket web half. web: isKScriptDataUnavailableError(error) (same, :1917). */
|
|
224
|
+
isDataUnavailableError(error: unknown): boolean;
|
|
225
|
+
/** 0.3.0, socket web half. web: createWrunSocketTransport(overlay) (moves to wrun-socket-transport.ts, U3b). */
|
|
226
|
+
hostedSocket(overlay: WrunHostOverlayRef): WrunSocketTransport;
|
|
227
|
+
/** Reserved until 0.5.0, boot loader (kept from v1, §2.5). web: the series stream's one load (wrun-series-stream.util.ts:490-491):
|
|
228
|
+
* Promise.all of feed-stream.service and feeds.service, answered as the three functions it then calls
|
|
229
|
+
* synchronously (`feedStreamEnabled`, `subscribeFeedStream`, `seenFeedHead`). */
|
|
230
|
+
loadFeedStream(): Promise<WrunFeedStreamApi>;
|
|
231
|
+
}
|
|
232
|
+
/** TRANSITIONAL (D-4): loaders into modules Phase 2 moves. Each retires at 0.5.0 (optional), removed at 0.6.0. */
|
|
233
|
+
export interface WrunHostRun {
|
|
234
|
+
/** 0.3.0, boot loader. web: import('@/utility/wrun/wrun-overlay-lifecycle.lazy') viewed as { requestWrunOverlayRerun }
|
|
235
|
+
* (wrun-socket-row-source.ts:1733-1734). */
|
|
236
|
+
loadOverlayLifecycleDoor(): Promise<WrunOverlayLifecycleDoorModule>;
|
|
237
|
+
/** 0.3.0, boot loader. web: import('@/utility/wrun/wrun-refusal-surface.util') viewed as { liveWrunRefusalAttempt }
|
|
238
|
+
* (wrun-socket-row-source.ts:1788-1789). */
|
|
239
|
+
loadRefusalSurface(): Promise<WrunRefusalSurfaceModule>;
|
|
240
|
+
/** 0.3.0, boot loader. web: import('@/utility/wrun/wrun-series-stream.util') viewed as { openWrunSeriesStream }
|
|
241
|
+
* (sources/lanes/series.ts:353-354). */
|
|
242
|
+
loadSeriesStream(): Promise<WrunSeriesStreamModule>;
|
|
243
|
+
}
|
|
244
|
+
/** Page visibility (reserved until 0.5.0, boot). Timers and Date.now stay direct (D-10). */
|
|
245
|
+
export interface WrunHostClock {
|
|
246
|
+
/** web: document.visibilityState === 'hidden' (false when the realm has no document). */
|
|
247
|
+
pageHidden(): boolean;
|
|
248
|
+
/** web: a 'visibilitychange' listener that fires when the page turns visible; returns the unsubscribe. */
|
|
249
|
+
onPageVisible(listener: () => void): () => void;
|
|
92
250
|
}
|
|
93
251
|
/** Set the realm's env (the realm's entry, before any package code runs; a later set replaces it). */
|
|
94
252
|
export declare function setWrunChartHostEnv(env: WrunChartHostEnv): void;
|
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The payload types and loader views the 0.3.0 host ports name (host-env.ts; docs/features/kscript/wrun/wrun-chart-host.md
|
|
3
|
+
* in the web repo, "Ports"). Each type is a structural copy of the web definition it names, because package code may not
|
|
4
|
+
* import the web module that declares it. The web repo pins every copy to its source at type level
|
|
5
|
+
* (src/utility/wrun/wrun-chart-host-type-pins.ts, compiled by the typecheck gate): both ways (`Same`) for a data type,
|
|
6
|
+
* one way (`Assignable`, the web value to the copy) for a loader view and for a type whose web source names an app,
|
|
7
|
+
* engine or protocol type the package cannot name. A copy whose web module later moves into the package becomes a
|
|
8
|
+
* re-export of it at that module's extraction; its pin stays.
|
|
9
|
+
*
|
|
10
|
+
* A loader view is a structural view of exactly the names package code takes from the module it replaces: web's loader
|
|
11
|
+
* answers the module itself, the app answers an object with those names.
|
|
12
|
+
*/
|
|
13
|
+
import type { WrunKitMainModule } from './host-env.js';
|
|
14
|
+
import type { RuntimeDiagnostic } from './interfaces/kscript-diagnostics.interface.js';
|
|
15
|
+
import type { FeedCombineRule as WrunFeedCombineRule, FeedHead as WrunFeedHead, FeedValueKey as WrunFeedValueKey, FeedWireBar as WrunFeedWireBar } from './interfaces/feed.interface.js';
|
|
16
|
+
import type { OverlayRunInterval as WrunOverlayRunInterval } from './utility/chart/indicator-run-interval.util.js';
|
|
17
|
+
import type { OptionSource as WrunOptionSource } from './utility/options/option-venue.util.js';
|
|
18
|
+
import type { WrunPollLaneLiveAsk, WrunPollLaneLiveSink, WrunPollLaneLiveSubscription } from './utility/wrun/sources/wrun-poll-lane.types.js';
|
|
19
|
+
import type { WrunOptionsChainCryptoVenues as WrunOptionsChainVenues, WrunOptionsChainCryptoVenueWord } from './utility/wrun/wrun-options-chain.util.js';
|
|
20
|
+
import type { WrunRefusalAttemptToken } from './utility/wrun/wrun-refusal.util.js';
|
|
21
|
+
import type { WrunRowSourceIdentity } from './utility/wrun/wrun-row-source.js';
|
|
22
|
+
import type { GateProvider as WrunGateProvider } from './workers/constants/socket-slots.js';
|
|
23
|
+
export type { WrunRowSourceIdentity, WrunRowSourcePatch, WrunRowSourceRecord, WrunRowWindow, } from './utility/wrun/wrun-row-source.js';
|
|
24
|
+
export type { WrunSocketAsk, WrunSocketAskKind, WrunSocketChartRows, WrunSocketLoadSignals, WrunSocketTransport, } from './utility/wrun/wrun-socket-row-source.js';
|
|
25
|
+
/** The overlay a hosted port acts for. */
|
|
26
|
+
export type WrunHostOverlayRef = Pick<WrunRowSourceIdentity, 'chartIndex' | 'indicatorId'>;
|
|
27
|
+
/** One chart of the open workspace as package code reads it: its metadata's coin (web: `IChartTemplate`, whose required
|
|
28
|
+
* metadata holds `coin?: string`). */
|
|
29
|
+
export interface WrunChartTemplateView {
|
|
30
|
+
readonly metadata: {
|
|
31
|
+
readonly coin?: unknown;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
/** The chart store as package code reads it: the workspace's charts (a chart index with no chart reads null) and
|
|
35
|
+
* the paused-overlay reader. */
|
|
36
|
+
export interface WrunChartStoreView {
|
|
37
|
+
readonly mergedAllCharts: ReadonlyArray<WrunChartTemplateView | null>;
|
|
38
|
+
isKScriptOverlayPaused?(chartIndex: number, overlayId: string): boolean;
|
|
39
|
+
}
|
|
40
|
+
/** Loader view of the chart store module. */
|
|
41
|
+
export interface WrunChartStoreModule {
|
|
42
|
+
useChartStore(): WrunChartStoreView;
|
|
43
|
+
}
|
|
44
|
+
/** Loader view of the chart group: the engine instance of a chart index (unknown to the package, D-3). */
|
|
45
|
+
export interface WrunTitanChartsModule {
|
|
46
|
+
getTC(chartIndex: number): unknown;
|
|
47
|
+
}
|
|
48
|
+
/** Loader view of the metadata service: the one market query lanes ask. */
|
|
49
|
+
export interface WrunMetadataServiceModule {
|
|
50
|
+
readonly default: {
|
|
51
|
+
getMarkets(query: {
|
|
52
|
+
type: number[];
|
|
53
|
+
coin: string[];
|
|
54
|
+
excludePrices: boolean;
|
|
55
|
+
}): Promise<unknown>;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
/** The gate planes an option chain lists on (workers/constants/socket-slots.ts `GateProvider`) and a crypto option
|
|
59
|
+
* chain's source (utility/options/option-venue.util.ts `OptionSource`): both modules moved in phase 1a. */
|
|
60
|
+
export type { WrunGateProvider, WrunOptionSource };
|
|
61
|
+
/** The chart facts the options chart source reads (web: indicators/controls/optionsChartSource.ts `OptionsChartMetadata`;
|
|
62
|
+
* its `category` is the protocol package's enum, unknown here). */
|
|
63
|
+
export type WrunOptionsChartMetadata = {
|
|
64
|
+
exchange?: string;
|
|
65
|
+
symbol?: string;
|
|
66
|
+
coin?: string;
|
|
67
|
+
category?: unknown;
|
|
68
|
+
} | null | undefined;
|
|
69
|
+
/** Where an options control reads its chain (web: optionsChartSource.ts `OptionsChartSource`). */
|
|
70
|
+
export type WrunOptionsChartSource = {
|
|
71
|
+
venue: WrunGateProvider;
|
|
72
|
+
exchange: string;
|
|
73
|
+
underlying: string;
|
|
74
|
+
} | {
|
|
75
|
+
venue: 'crypto';
|
|
76
|
+
source: WrunOptionSource;
|
|
77
|
+
} | {
|
|
78
|
+
venue: 'deribit';
|
|
79
|
+
coin: string;
|
|
80
|
+
};
|
|
81
|
+
/** Loader view of the options chart source. */
|
|
82
|
+
export interface WrunOptionsChartSourceModule {
|
|
83
|
+
resolveOptionsChartSource(metadata: WrunOptionsChartMetadata): Promise<WrunOptionsChartSource>;
|
|
84
|
+
}
|
|
85
|
+
/** Why a chart whose options list on OPRA reads none: the reason the gate folds into `governedOptionPlane`'s null
|
|
86
|
+
* (web: utility/options/opra-options-gate.util.ts `OpraOptionPlaneStop`). */
|
|
87
|
+
export type OpraOptionPlaneStop = 'flag-off' | 'chart-kind';
|
|
88
|
+
/** Loader view of the OPRA options gate (sync after the load). */
|
|
89
|
+
export interface WrunOptionsGateModule {
|
|
90
|
+
governedOptionPlane(metadata: {
|
|
91
|
+
exchange?: string | null;
|
|
92
|
+
} | null | undefined): WrunGateProvider | null;
|
|
93
|
+
opraOptionPlaneStop(metadata: {
|
|
94
|
+
exchange?: string | null;
|
|
95
|
+
} | null | undefined): OpraOptionPlaneStop | undefined;
|
|
96
|
+
}
|
|
97
|
+
/** The crypto venue words of the `options_chain` venue knob and the words as the chart reads them
|
|
98
|
+
* (utility/wrun/wrun-options-chain.util.ts, moved in phase 1a). */
|
|
99
|
+
export type { WrunOptionsChainCryptoVenueWord, WrunOptionsChainVenues };
|
|
100
|
+
/** What the crypto venue words are resolved for (web: `resolveWrunOptionsChainCryptoVenues(args)`). */
|
|
101
|
+
export interface WrunOptionsChainVenueAsk {
|
|
102
|
+
words: ReadonlyArray<WrunOptionsChainCryptoVenueWord>;
|
|
103
|
+
chartSource: WrunOptionsChartSource | undefined;
|
|
104
|
+
chartCoin: string | undefined;
|
|
105
|
+
}
|
|
106
|
+
/** Loader view of the options chain venues resolver. */
|
|
107
|
+
export interface WrunOptionsChainVenuesModule {
|
|
108
|
+
resolveWrunOptionsChainCryptoVenues(args: WrunOptionsChainVenueAsk): Promise<WrunOptionsChainVenues>;
|
|
109
|
+
}
|
|
110
|
+
/** Loader view of the Deribit options table (sync after the load). */
|
|
111
|
+
export interface WrunDeribitOptionsModule {
|
|
112
|
+
hasDeribitOptions(coin: string | undefined | null): boolean;
|
|
113
|
+
}
|
|
114
|
+
/** One expiry's strikes as an option lane reads them: each strike's call and put symbols. */
|
|
115
|
+
export interface WrunOptionExpiryStrikes {
|
|
116
|
+
strikes: ReadonlyArray<{
|
|
117
|
+
calls: ReadonlyArray<{
|
|
118
|
+
rawSymbol: string;
|
|
119
|
+
}>;
|
|
120
|
+
puts: ReadonlyArray<{
|
|
121
|
+
rawSymbol: string;
|
|
122
|
+
}>;
|
|
123
|
+
}>;
|
|
124
|
+
}
|
|
125
|
+
/** A chain directory as an option lane reads one (web: services/option-chain.service.ts `OptionChainService` and
|
|
126
|
+
* services/crypto-option-chain.service.ts `CryptoOptionChainService`): the expiries an underlying lists, and one
|
|
127
|
+
* expiry's strikes. `exchange` is the protocol's `Exchange` value. */
|
|
128
|
+
export interface WrunOptionChainDirectory {
|
|
129
|
+
listOptionExpiries(request: {
|
|
130
|
+
exchange: number;
|
|
131
|
+
underlying: string;
|
|
132
|
+
}): Promise<ReadonlyArray<{
|
|
133
|
+
expiryUnix: number;
|
|
134
|
+
}>>;
|
|
135
|
+
getOptionExpiryChain(request: {
|
|
136
|
+
exchange: number;
|
|
137
|
+
underlying: string;
|
|
138
|
+
expiryUnix: number;
|
|
139
|
+
}): Promise<WrunOptionExpiryStrikes | undefined>;
|
|
140
|
+
}
|
|
141
|
+
/** Loader view of the option chain service: the directory a persisted exchange picks, and the default service's
|
|
142
|
+
* contract resolver (a CME root's lead contract). */
|
|
143
|
+
export interface WrunOptionChainServiceModule {
|
|
144
|
+
optionChainServiceForExchange(exchange: string): WrunOptionChainDirectory;
|
|
145
|
+
readonly default: {
|
|
146
|
+
resolveChainContract(exchangeName: string, underlying: string): Promise<string | null>;
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
/** How a value column combines, a value key, a feed's head and one wire bar (interfaces/feed.interface.ts, moved in
|
|
150
|
+
* phase 1a). */
|
|
151
|
+
export type { WrunFeedCombineRule, WrunFeedHead, WrunFeedValueKey, WrunFeedWireBar };
|
|
152
|
+
/** A bars read: the bar interval in seconds and the span. */
|
|
153
|
+
export interface WrunFeedBarsQuery {
|
|
154
|
+
interval_s: number;
|
|
155
|
+
from?: number;
|
|
156
|
+
to?: number;
|
|
157
|
+
}
|
|
158
|
+
/** One page of bars. */
|
|
159
|
+
export interface WrunFeedBarsPage {
|
|
160
|
+
bars: WrunFeedWireBar[];
|
|
161
|
+
has_more: boolean;
|
|
162
|
+
next_from: number | null;
|
|
163
|
+
}
|
|
164
|
+
/** The relay's error class itself, so `instanceof` keeps working on its errors. */
|
|
165
|
+
export type WrunFeedsApiErrorClass = abstract new (...args: never[]) => Error & {
|
|
166
|
+
readonly status: number;
|
|
167
|
+
readonly code: string | null;
|
|
168
|
+
readonly details: Record<string, unknown> | null;
|
|
169
|
+
};
|
|
170
|
+
/** Loader view of the feeds service. */
|
|
171
|
+
export interface WrunFeedsServiceModule {
|
|
172
|
+
readonly FeedsApiError: WrunFeedsApiErrorClass;
|
|
173
|
+
getFeedHead(ref: string): Promise<WrunFeedHead>;
|
|
174
|
+
getFeedBars(ref: string, query: WrunFeedBarsQuery): Promise<WrunFeedBarsPage>;
|
|
175
|
+
}
|
|
176
|
+
/** One event of a feed's live stream. */
|
|
177
|
+
export type WrunFeedStreamEvent = {
|
|
178
|
+
kind: 'reading';
|
|
179
|
+
address: string;
|
|
180
|
+
ts: number;
|
|
181
|
+
values: (number | string | null)[];
|
|
182
|
+
} | {
|
|
183
|
+
kind: 'head';
|
|
184
|
+
address: string;
|
|
185
|
+
head: WrunFeedHead;
|
|
186
|
+
} | {
|
|
187
|
+
kind: 'up';
|
|
188
|
+
address: string;
|
|
189
|
+
reopened: boolean;
|
|
190
|
+
} | {
|
|
191
|
+
kind: 'down';
|
|
192
|
+
address: string;
|
|
193
|
+
reason: 'network' | 'refused' | 'disabled';
|
|
194
|
+
code: string | null;
|
|
195
|
+
} | {
|
|
196
|
+
kind: 'gone';
|
|
197
|
+
address: string;
|
|
198
|
+
code: 'feed_not_found' | 'feed_private';
|
|
199
|
+
};
|
|
200
|
+
/** One feed's live subscription. */
|
|
201
|
+
export interface WrunFeedStreamSubscription {
|
|
202
|
+
unsubscribe(): void;
|
|
203
|
+
isUp(): boolean;
|
|
204
|
+
}
|
|
205
|
+
/** What a subscriber already holds. */
|
|
206
|
+
export interface WrunFeedStreamOptions {
|
|
207
|
+
sinceTs?: number | null;
|
|
208
|
+
}
|
|
209
|
+
/** The three functions the series stream calls once its one load resolved. */
|
|
210
|
+
export interface WrunFeedStreamApi {
|
|
211
|
+
feedStreamEnabled(): boolean;
|
|
212
|
+
subscribeFeedStream(address: string, listener: (event: WrunFeedStreamEvent) => void, options?: WrunFeedStreamOptions): WrunFeedStreamSubscription;
|
|
213
|
+
seenFeedHead(address: string): WrunFeedHead | null;
|
|
214
|
+
}
|
|
215
|
+
/** Loader view of the kit seam. `object &` keeps TypeScript's weak-type rule from refusing a kit typed without either
|
|
216
|
+
* table (web's `WrunIndicatorKit` names neither: its readers check them where they read). */
|
|
217
|
+
export interface WrunKitModule {
|
|
218
|
+
readonly wrunIndicatorKit: object & WrunKitMainModule;
|
|
219
|
+
}
|
|
220
|
+
/** Loader view of the kScript error envelope. */
|
|
221
|
+
export interface WrunKScriptErrorEnvelopeModule {
|
|
222
|
+
envelopeWorkerTransportDiagnostics(diagnostics: RuntimeDiagnostic[], audience: {
|
|
223
|
+
editorRun: boolean;
|
|
224
|
+
}): RuntimeDiagnostic[];
|
|
225
|
+
}
|
|
226
|
+
/** Loader view of the overlay lifecycle door. */
|
|
227
|
+
export interface WrunOverlayLifecycleDoorModule {
|
|
228
|
+
requestWrunOverlayRerun(chartIndex: number, indicatorId: string, reason: 'source-recovery'): Promise<void> | false;
|
|
229
|
+
}
|
|
230
|
+
/** Loader view of the refusal surface. */
|
|
231
|
+
export interface WrunRefusalSurfaceModule {
|
|
232
|
+
liveWrunRefusalAttempt(chartIndex: number, indicatorId: string): WrunRefusalAttemptToken | null;
|
|
233
|
+
}
|
|
234
|
+
/** A lane's live channel ask, sink and handle (utility/wrun/sources/wrun-poll-lane.types.ts, moved in phase 1a). */
|
|
235
|
+
export type { WrunPollLaneLiveAsk, WrunPollLaneLiveSink, WrunPollLaneLiveSubscription, } from './utility/wrun/sources/wrun-poll-lane.types.js';
|
|
236
|
+
/** Loader view of the series stream. */
|
|
237
|
+
export interface WrunSeriesStreamModule {
|
|
238
|
+
openWrunSeriesStream(ask: WrunPollLaneLiveAsk, sink: WrunPollLaneLiveSink): Promise<WrunPollLaneLiveSubscription>;
|
|
239
|
+
}
|
|
240
|
+
/** The engine surface a paint request reaches (web: `KScriptChartPaintTarget`). */
|
|
241
|
+
export interface WrunChartPaintTarget {
|
|
242
|
+
requestLiveRecompute?(opts?: {
|
|
243
|
+
overlayIds?: readonly string[];
|
|
244
|
+
}): void;
|
|
245
|
+
requestProcessAndRender?(opts?: {
|
|
246
|
+
mode?: 'raf' | 'sync';
|
|
247
|
+
}): void;
|
|
248
|
+
processData?(): void;
|
|
249
|
+
renderService?: {
|
|
250
|
+
renderOnce?(): void;
|
|
251
|
+
} | null;
|
|
252
|
+
}
|
|
253
|
+
/** What a paint request knows about the change it follows (web: `KScriptChartPaintOptions`). */
|
|
254
|
+
export interface WrunChartPaintOptions {
|
|
255
|
+
overlayIds?: readonly string[];
|
|
256
|
+
}
|
|
257
|
+
/** The engine record a drawings update reaches (web: kscript-drawings.util.ts `KScriptDrawingsChart`). */
|
|
258
|
+
export type WrunDrawingsChart = {
|
|
259
|
+
metadata?: unknown[];
|
|
260
|
+
updateDrawings?(overlayId: string, drawings: unknown[]): void;
|
|
261
|
+
getDrawingRenderSets?: () => unknown[];
|
|
262
|
+
};
|
|
263
|
+
/** The chart the adapter integrates into (web: `KScriptTitanChartsTarget`). */
|
|
264
|
+
export interface WrunIntegrationTarget extends WrunDrawingsChart {
|
|
265
|
+
metadata?: unknown[];
|
|
266
|
+
updateMetadataWithRunResult?(runResult: unknown, meta: object): void;
|
|
267
|
+
updateKScriptData?: (indicatorId: string, runOutput: unknown) => void;
|
|
268
|
+
updateLazyLoadKScriptData?: (indicatorId: string, runOutput: unknown) => void;
|
|
269
|
+
updateData?: (id: string, data: unknown[], opts?: Record<string, unknown>) => void;
|
|
270
|
+
renderService?: {
|
|
271
|
+
renderOnce?: () => void;
|
|
272
|
+
};
|
|
273
|
+
noteLiveDamage?: (kind: 'live-edge' | 'full') => void;
|
|
274
|
+
noteLiveEdgeDamageFrom?: (fromTs: number) => void;
|
|
275
|
+
renderQueue?: {
|
|
276
|
+
fullRender?: boolean;
|
|
277
|
+
};
|
|
278
|
+
theme?: {
|
|
279
|
+
backgroundColor?: unknown;
|
|
280
|
+
};
|
|
281
|
+
interval?: number;
|
|
282
|
+
}
|
|
283
|
+
/** How a run result integrates (web: `KScriptTitanChartsIntegrationMode`). */
|
|
284
|
+
export type WrunIntegrationMode = 'metadata' | 'init-data' | 'lazy-data' | 'auto-data';
|
|
285
|
+
/** The interval an overlay runs at (utility/chart/indicator-run-interval.util.ts `OverlayRunInterval`, moved in
|
|
286
|
+
* phase 1b). */
|
|
287
|
+
export type { WrunOverlayRunInterval };
|
|
288
|
+
/** The replayed window of a partial replay (web: `KScriptPartialReplayWindow`). */
|
|
289
|
+
export interface WrunPartialReplayWindow {
|
|
290
|
+
fromMs: number;
|
|
291
|
+
toMs: number;
|
|
292
|
+
}
|
|
293
|
+
/** What an apply changed beside the rows (web: `KScriptTitanChartsIntegrationSideEffects`). */
|
|
294
|
+
export interface WrunIntegrationSideEffects {
|
|
295
|
+
drawingsUpdated: boolean;
|
|
296
|
+
}
|
|
297
|
+
/** A partial replay's merge counts (web: `KScriptPartialReplayMergeStats`). */
|
|
298
|
+
export interface WrunPartialReplayMergeStats {
|
|
299
|
+
mergedOutputs: number;
|
|
300
|
+
restoredOutputs: number;
|
|
301
|
+
preservedRows: number;
|
|
302
|
+
debugSample?: {
|
|
303
|
+
key: string;
|
|
304
|
+
prevLen: number;
|
|
305
|
+
prevFirstTs: number | null;
|
|
306
|
+
prevLastTs: number | null;
|
|
307
|
+
incomingLen: number;
|
|
308
|
+
effectiveFromMs: number;
|
|
309
|
+
effectiveToMs: number;
|
|
310
|
+
preservedLeft: number;
|
|
311
|
+
preservedRight: number;
|
|
312
|
+
};
|
|
313
|
+
debugSkips?: Array<{
|
|
314
|
+
key: string;
|
|
315
|
+
reason: string;
|
|
316
|
+
prevLen?: number;
|
|
317
|
+
incLen?: number;
|
|
318
|
+
}>;
|
|
319
|
+
rejectedSparseRun?: boolean;
|
|
320
|
+
}
|
|
321
|
+
/** The adapter's full integration ask (web: `SafeIntegrateKScriptRunResultToTitanChartsOptions`). */
|
|
322
|
+
export interface WrunIntegrateOptions {
|
|
323
|
+
tc: WrunIntegrationTarget;
|
|
324
|
+
indicatorId: string;
|
|
325
|
+
runResult: unknown;
|
|
326
|
+
mode: WrunIntegrationMode;
|
|
327
|
+
meta?: Record<string, unknown> | null;
|
|
328
|
+
chartIndex?: number;
|
|
329
|
+
chartExchange?: string;
|
|
330
|
+
chartTransformations?: string;
|
|
331
|
+
runInterval?: WrunOverlayRunInterval | null;
|
|
332
|
+
preserveMountedRowsOutsideWindow?: WrunPartialReplayWindow | null;
|
|
333
|
+
suppressDrawings?: boolean;
|
|
334
|
+
deferDrawingsToReplayLane?: boolean;
|
|
335
|
+
postApply?: (runResult: unknown, sideEffects: WrunIntegrationSideEffects) => void;
|
|
336
|
+
}
|
|
337
|
+
/** The adapter's full integration answer (web: `SafeKScriptTitanChartsIntegrationResult`). */
|
|
338
|
+
export interface WrunIntegrateResult {
|
|
339
|
+
ok: boolean;
|
|
340
|
+
mode: WrunIntegrationMode;
|
|
341
|
+
runResult: unknown;
|
|
342
|
+
diagnostics: RuntimeDiagnostic[];
|
|
343
|
+
partialReplayMergeStats?: WrunPartialReplayMergeStats;
|
|
344
|
+
outputsWithoutMountedRow?: string[];
|
|
345
|
+
error?: unknown;
|
|
346
|
+
transient?: boolean;
|
|
347
|
+
}
|
|
348
|
+
/** The live tail patch's window (web: `KScriptLiveTailWindow`). */
|
|
349
|
+
export interface WrunLiveTailWindow {
|
|
350
|
+
fromTs: number;
|
|
351
|
+
windowFromTs: number;
|
|
352
|
+
headless?: ReadonlySet<string>;
|
|
353
|
+
}
|
|
354
|
+
/** The adapter's mounted-rows refresh ask (web: the options of `safeRefreshMountedKScriptRowsFromRunResult`). */
|
|
355
|
+
export interface WrunRefreshRowsOptions {
|
|
356
|
+
tc: WrunIntegrationTarget;
|
|
357
|
+
indicatorId: string;
|
|
358
|
+
meta: Record<string, unknown>;
|
|
359
|
+
runResult: unknown;
|
|
360
|
+
chartIndex?: number;
|
|
361
|
+
chartExchange?: string;
|
|
362
|
+
chartTransformations?: string;
|
|
363
|
+
runInterval?: WrunOverlayRunInterval | null;
|
|
364
|
+
suppressDrawings?: boolean;
|
|
365
|
+
deferDrawingsToReplayLane?: boolean;
|
|
366
|
+
ignoreUnmountedOutputKeys?: ReadonlySet<string>;
|
|
367
|
+
mergeMountedRows?: boolean;
|
|
368
|
+
liveTail?: WrunLiveTailWindow;
|
|
369
|
+
}
|
|
370
|
+
/** Why a row diff fell back to a full claim (web: kscript-live-row-damage.util.ts `RowsDiffFullReason`). */
|
|
371
|
+
export type WrunRowsDiffFullReason = 'sameRef' | 'headChange' | 'lengthChange' | 'overCap' | 'invalidTs' | 'emptyTransition' | 'notRows';
|
|
372
|
+
/** Why a live apply claimed full damage (web: `KScriptLiveDamageReason`). */
|
|
373
|
+
export type WrunLiveDamageReason = WrunRowsDiffFullReason | 'labelPayload' | 'renderMeta' | 'decoratorRowEdits' | 'integrationError';
|
|
374
|
+
/** What a live apply claimed (web: `KScriptLiveDamageClaim`). */
|
|
375
|
+
export interface WrunLiveDamageClaim {
|
|
376
|
+
kind: 'none' | 'identical' | 'tail' | 'full';
|
|
377
|
+
reason: WrunLiveDamageReason | null;
|
|
378
|
+
fromTs: number | null;
|
|
379
|
+
}
|
|
380
|
+
/** A render-contract key a mounted output and an incoming output disagree on (web: `KScriptRenderContractDifference`). */
|
|
381
|
+
export interface WrunRenderContractDifference {
|
|
382
|
+
key: string;
|
|
383
|
+
mounted: unknown;
|
|
384
|
+
incoming: unknown;
|
|
385
|
+
}
|
|
386
|
+
/** What a tail patch could not prove (web: `KScriptLiveTailRefusal`). */
|
|
387
|
+
export type WrunLiveTailRefusal = 'merge' | 'no-window' | 'render-meta' | 'rows' | 'overlap' | 'container';
|
|
388
|
+
/** A live rows apply's answer (web: `SafeKScriptLiveUpdateIntegrationResult`). */
|
|
389
|
+
export interface WrunLiveUpdateIntegrationResult {
|
|
390
|
+
ok: boolean;
|
|
391
|
+
diagnostics: RuntimeDiagnostic[];
|
|
392
|
+
drawingsUpdated: boolean;
|
|
393
|
+
removedDecoratorRows: number;
|
|
394
|
+
liveDamage?: WrunLiveDamageClaim;
|
|
395
|
+
error?: unknown;
|
|
396
|
+
transient?: boolean;
|
|
397
|
+
}
|
|
398
|
+
/** The adapter's mounted-rows refresh answer (web: `SafeKScriptMountedRowsRefreshResult`). */
|
|
399
|
+
export interface WrunRefreshRowsResult extends WrunLiveUpdateIntegrationResult {
|
|
400
|
+
applied: boolean;
|
|
401
|
+
skipReason?: string;
|
|
402
|
+
unmountedOutputKeys?: string[];
|
|
403
|
+
contractDifferences?: Array<WrunRenderContractDifference & {
|
|
404
|
+
patchKey: unknown;
|
|
405
|
+
}>;
|
|
406
|
+
mergeSummary?: Record<string, unknown> | null;
|
|
407
|
+
tailRefusal?: WrunLiveTailRefusal;
|
|
408
|
+
tailPatchedPlots?: number;
|
|
409
|
+
runResult: unknown;
|
|
410
|
+
}
|
|
411
|
+
/** The chart a settings-only price-marker sync writes (web: the first parameter of `syncMountedKScriptPriceMarkers`). */
|
|
412
|
+
export type WrunPriceMarkerTarget = {
|
|
413
|
+
metadata?: unknown[];
|
|
414
|
+
renderService?: {
|
|
415
|
+
renderOnce?: () => void;
|
|
416
|
+
};
|
|
417
|
+
} | null | undefined;
|
|
418
|
+
/** What a chart needs the engine packs for (web: pack-loader.util.ts `PackEnsureInput`). */
|
|
419
|
+
export interface WrunPackEnsureInput {
|
|
420
|
+
indicatorTypes?: readonly string[];
|
|
421
|
+
plotTypes?: readonly string[];
|
|
422
|
+
features?: readonly string[];
|
|
423
|
+
}
|
|
424
|
+
/** The packs a load landed and failed (web: `PackEnsureResult`; the engine's pack names are strings here). */
|
|
425
|
+
export interface WrunPackEnsureResult {
|
|
426
|
+
loaded: string[];
|
|
427
|
+
failed: string[];
|
|
428
|
+
}
|
|
429
|
+
/** The chart a plot gate notice belongs to, why a plot kind cannot draw, and one plot kind the gate refused
|
|
430
|
+
* (utility/wrun/wrun-plot-gate.types.ts, moved in phase 1b). */
|
|
431
|
+
export type { WrunPlotGateChart, WrunPlotGateCause, WrunPlotGateRefusal } from './utility/wrun/wrun-plot-gate.types.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|