@orangecharts/wrun-chart-host 0.4.0 → 0.5.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 +15 -4
- package/dist/constants/exchange-names.leaf.d.ts +8 -0
- package/dist/constants/exchange-names.leaf.js +101 -0
- package/dist/constants/kscript-data-interval-restrictions.constants.d.ts +15 -0
- package/dist/constants/kscript-data-interval-restrictions.constants.js +40 -0
- package/dist/constants/opra-compliance.constants.d.ts +19 -0
- package/dist/constants/opra-compliance.constants.js +19 -0
- package/dist/constants/replay-ladder.leaf.d.ts +30 -0
- package/dist/constants/replay-ladder.leaf.js +99 -0
- package/dist/constants/scriptEditor/cme-official-scripts.constants.d.ts +168 -0
- package/dist/constants/scriptEditor/cme-official-scripts.constants.js +398 -0
- package/dist/constants/scriptEditor/converted-script-id.leaf.d.ts +8 -0
- package/dist/constants/scriptEditor/converted-script-id.leaf.js +10 -0
- package/dist/constants/scriptEditor/execution.constants.d.ts +4 -0
- package/dist/constants/scriptEditor/execution.constants.js +14 -0
- package/dist/constants/wrun-prefix-safe.constants.d.ts +23 -0
- package/dist/constants/wrun-prefix-safe.constants.js +26 -0
- package/dist/host-env.d.ts +313 -18
- package/dist/host-env.js +15 -0
- package/dist/host-ports.types.d.ts +853 -16
- package/dist/index.d.ts +139 -2
- package/dist/index.js +139 -2
- package/dist/instances/script-engine-worker-ohlcv-transfer.d.ts +31 -0
- package/dist/instances/script-engine-worker-ohlcv-transfer.js +164 -0
- package/dist/interfaces/market-event.interface.d.ts +231 -0
- package/dist/interfaces/market-event.interface.js +15 -0
- package/dist/interfaces/opra-realtime.interface.d.ts +70 -134
- package/dist/interfaces/opra-realtime.interface.js +34 -59
- package/dist/interfaces/replay.interface.d.ts +285 -0
- package/dist/interfaces/replay.interface.js +1 -0
- package/dist/kscript-data/controls/live-ohlcv-merge.util.d.ts +1 -0
- package/dist/kscript-data/controls/live-ohlcv-merge.util.js +93 -0
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +5 -1
- package/dist/kscript-data/controls/live-trades-merge.util.js +2 -2
- package/dist/market-data/billing.interface.d.ts +219 -0
- package/dist/market-data/billing.interface.js +58 -0
- package/dist/market-data/venue-governed.util.d.ts +2 -0
- package/dist/market-data/venue-governed.util.js +10 -0
- package/dist/market-data/venue.d.ts +122 -0
- package/dist/market-data/venue.js +1 -0
- package/dist/market-data/venues/index.d.ts +97 -0
- package/dist/market-data/venues/index.js +33 -0
- package/dist/market-data/venues/opra.contract.copy.json +35 -0
- package/dist/market-data/venues/opra.d.ts +70 -0
- package/dist/market-data/venues/opra.js +74 -0
- package/dist/replay/replayIndicatorRows.d.ts +31 -0
- package/dist/replay/replayIndicatorRows.js +117 -0
- package/dist/replay/replayLadder.d.ts +85 -0
- package/dist/replay/replayLadder.js +388 -0
- package/dist/utility/auth/server-clock.util.d.ts +81 -0
- package/dist/utility/auth/server-clock.util.js +238 -0
- package/dist/utility/chart/builtin-identity.util.d.ts +18 -0
- package/dist/utility/chart/builtin-identity.util.js +51 -0
- package/dist/utility/chart/cache-alignment.util.d.ts +454 -0
- package/dist/utility/chart/cache-alignment.util.js +926 -0
- package/dist/utility/chart/chart-data-fetch-generation.util.d.ts +15 -0
- package/dist/utility/chart/chart-data-fetch-generation.util.js +22 -0
- package/dist/utility/chart/chart-mount-epoch.util.d.ts +5 -0
- package/dist/utility/chart/chart-mount-epoch.util.js +29 -0
- package/dist/utility/chart/chart-time-domain.util.d.ts +12 -0
- package/dist/utility/chart/chart-time-domain.util.js +23 -0
- package/dist/utility/chart/color-customization.leaf.d.ts +10 -0
- package/dist/utility/chart/color-customization.leaf.js +16 -0
- package/dist/utility/chart/footprint-tick-grid.util.d.ts +106 -0
- package/dist/utility/chart/footprint-tick-grid.util.js +167 -0
- package/dist/utility/chart/gesture-timing.leaf.d.ts +29 -0
- package/dist/utility/chart/gesture-timing.leaf.js +29 -0
- package/dist/utility/chart/governed-contract-coin.util.d.ts +22 -0
- package/dist/utility/chart/governed-contract-coin.util.js +39 -0
- package/dist/utility/chart/host-bar-placement.util.d.ts +107 -0
- package/dist/utility/chart/host-bar-placement.util.js +447 -0
- package/dist/utility/chart/index-host-tier.util.d.ts +31 -0
- package/dist/utility/chart/index-host-tier.util.js +118 -0
- package/dist/utility/chart/index-mode-admission.util.d.ts +34 -0
- package/dist/utility/chart/index-mode-admission.util.js +67 -0
- package/dist/utility/chart/indicator-error-message.util.d.ts +35 -0
- package/dist/utility/chart/indicator-error-message.util.js +44 -0
- package/dist/utility/chart/kscript-apply-fingerprint.util.d.ts +65 -0
- package/dist/utility/chart/kscript-apply-fingerprint.util.js +357 -0
- package/dist/utility/chart/kscript-chart-flush.leaf.d.ts +22 -0
- package/dist/utility/chart/kscript-chart-flush.leaf.js +13 -0
- package/dist/utility/chart/kscript-data-interval-restriction.leaf.d.ts +6 -0
- package/dist/utility/chart/kscript-data-interval-restriction.leaf.js +27 -0
- package/dist/utility/chart/kscript-integration-decision.leaf.d.ts +89 -0
- package/dist/utility/chart/kscript-integration-decision.leaf.js +80 -0
- package/dist/utility/chart/kscript-live-coalesce.util.d.ts +76 -0
- package/dist/utility/chart/kscript-live-coalesce.util.js +156 -0
- package/dist/utility/chart/kscript-live-rest-pace.util.d.ts +34 -0
- package/dist/utility/chart/kscript-live-rest-pace.util.js +134 -0
- package/dist/utility/chart/kscript-live-source-identity.util.d.ts +98 -0
- package/dist/utility/chart/kscript-live-source-identity.util.js +121 -0
- package/dist/utility/chart/kscript-mounted-plot-set.leaf.d.ts +48 -0
- package/dist/utility/chart/kscript-mounted-plot-set.leaf.js +145 -0
- package/dist/utility/chart/kscript-perf-tracker.util.d.ts +243 -0
- package/dist/utility/chart/kscript-perf-tracker.util.js +522 -0
- package/dist/utility/chart/kscript-run-interval-projection.util.d.ts +43 -0
- package/dist/utility/chart/kscript-run-interval-projection.util.js +471 -0
- package/dist/utility/chart/kscript-run-result-equality.util.d.ts +38 -0
- package/dist/utility/chart/kscript-run-result-equality.util.js +89 -0
- package/dist/utility/chart/kscript-settings-revision.leaf.d.ts +2 -0
- package/dist/utility/chart/kscript-settings-revision.leaf.js +12 -0
- package/dist/utility/chart/kscript-source-degrade.leaf.d.ts +63 -0
- package/dist/utility/chart/kscript-source-degrade.leaf.js +68 -0
- package/dist/utility/chart/kscript-source-retention.util.d.ts +134 -0
- package/dist/utility/chart/kscript-source-retention.util.js +218 -0
- package/dist/utility/chart/kscript-standin-identity.leaf.d.ts +57 -0
- package/dist/utility/chart/kscript-standin-identity.leaf.js +61 -0
- package/dist/utility/chart/kscript-titancharts-preparation.util.d.ts +15 -0
- package/dist/utility/chart/kscript-titancharts-preparation.util.js +376 -0
- package/dist/utility/chart/kscript-titancharts-render-keys.constants.d.ts +9 -0
- package/dist/utility/chart/kscript-titancharts-render-keys.constants.js +130 -0
- package/dist/utility/chart/kscript-venue-policy.util.d.ts +217 -0
- package/dist/utility/chart/kscript-venue-policy.util.js +324 -0
- package/dist/utility/chart/live-cadence.util.d.ts +38 -0
- package/dist/utility/chart/live-cadence.util.js +37 -0
- package/dist/utility/chart/live-feed-series-match.leaf.d.ts +13 -0
- package/dist/utility/chart/live-feed-series-match.leaf.js +21 -0
- package/dist/utility/chart/local-engine-self-heal-backoff.util.d.ts +46 -0
- package/dist/utility/chart/local-engine-self-heal-backoff.util.js +46 -0
- package/dist/utility/chart/local-engine-uninit.leaf.d.ts +21 -0
- package/dist/utility/chart/local-engine-uninit.leaf.js +22 -0
- package/dist/utility/chart/local-kscript-source-revalidation.util.d.ts +62 -0
- package/dist/utility/chart/local-kscript-source-revalidation.util.js +123 -0
- package/dist/utility/chart/local-kscript-warmup-depth.util.d.ts +214 -0
- package/dist/utility/chart/local-kscript-warmup-depth.util.js +376 -0
- package/dist/utility/chart/local-technical-script-live-apply-coalescer.util.d.ts +85 -0
- package/dist/utility/chart/local-technical-script-live-apply-coalescer.util.js +197 -0
- package/dist/utility/chart/local-technical-script-range.leaf.d.ts +72 -0
- package/dist/utility/chart/local-technical-script-range.leaf.js +126 -0
- package/dist/utility/chart/mixed-mode.util.d.ts +167 -0
- package/dist/utility/chart/mixed-mode.util.js +139 -0
- package/dist/utility/chart/ohlcv-row-readiness.util.d.ts +36 -0
- package/dist/utility/chart/ohlcv-row-readiness.util.js +90 -0
- package/dist/utility/chart/opra-user-scripts-gate.util.d.ts +19 -0
- package/dist/utility/chart/opra-user-scripts-gate.util.js +32 -0
- package/dist/utility/chart/overlay-execution-guard-key.leaf.d.ts +8 -0
- package/dist/utility/chart/overlay-execution-guard-key.leaf.js +10 -0
- package/dist/utility/chart/price-precision.util.d.ts +40 -0
- package/dist/utility/chart/price-precision.util.js +70 -0
- package/dist/utility/chart/profile-block-size.util.d.ts +64 -0
- package/dist/utility/chart/profile-block-size.util.js +141 -0
- package/dist/utility/chart/protected-kscript-degenerate-rows.leaf.d.ts +11 -0
- package/dist/utility/chart/protected-kscript-degenerate-rows.leaf.js +29 -0
- package/dist/utility/chart/protected-kscript-empty-output.util.d.ts +28 -0
- package/dist/utility/chart/protected-kscript-empty-output.util.js +84 -0
- package/dist/utility/chart/run-interval-unservable.leaf.d.ts +9 -0
- package/dist/utility/chart/run-interval-unservable.leaf.js +20 -0
- package/dist/utility/chart/run-interval-warmup.leaf.d.ts +19 -0
- package/dist/utility/chart/run-interval-warmup.leaf.js +35 -0
- package/dist/utility/chart/titan-constants.pin.d.ts +9 -5
- package/dist/utility/chart/titan-constants.pin.js +18 -5
- package/dist/utility/chart/warmup-backfill-retry.leaf.d.ts +9 -0
- package/dist/utility/chart/warmup-backfill-retry.leaf.js +9 -0
- package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +11 -2
- package/dist/utility/chart/wrun-bar-session-facts.util.js +10 -3
- package/dist/utility/chart/wrun-run-result.util.d.ts +5 -1
- package/dist/utility/chart/wrun-run-result.util.js +20 -14
- package/dist/utility/common/data-processing.util.d.ts +138 -0
- package/dist/utility/common/data-processing.util.js +346 -0
- package/dist/utility/common/visible-timeout.util.d.ts +13 -4
- package/dist/utility/common/visible-timeout.util.js +23 -8
- package/dist/utility/exchange-format.leaf.d.ts +1 -0
- package/dist/utility/exchange-format.leaf.js +47 -0
- package/dist/utility/market-events/earnings-scope.util.d.ts +60 -0
- package/dist/utility/market-events/earnings-scope.util.js +92 -0
- package/dist/utility/market-events/market-events.util.d.ts +147 -0
- package/dist/utility/market-events/market-events.util.js +392 -0
- package/dist/utility/market-events/zoned-clock.util.d.ts +1 -0
- package/dist/utility/market-events/zoned-clock.util.js +11 -0
- package/dist/utility/options/option-venue-disclosure.util.d.ts +43 -0
- package/dist/utility/options/option-venue-disclosure.util.js +56 -0
- package/dist/utility/scriptEditor/package-semver.util.d.ts +51 -0
- package/dist/utility/scriptEditor/package-semver.util.js +120 -0
- package/dist/utility/scriptEditor/temp-script-id.util.d.ts +18 -0
- package/dist/utility/scriptEditor/temp-script-id.util.js +25 -0
- package/dist/utility/symbol-selection/markets-request-from-symbols.leaf.d.ts +20 -0
- package/dist/utility/symbol-selection/markets-request-from-symbols.leaf.js +81 -0
- package/dist/utility/v2/governed-tier.leaf.d.ts +103 -0
- package/dist/utility/v2/governed-tier.leaf.js +113 -0
- package/dist/utility/watchlist/import/import-request.leaf.d.ts +10 -0
- package/dist/utility/watchlist/import/import-request.leaf.js +10 -0
- package/dist/utility/wrun/sources/lanes/series.js +2 -2
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.d.ts +4 -4
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +5 -6
- package/dist/utility/wrun/wrun-alert-outputs.registry.d.ts +166 -0
- package/dist/utility/wrun/wrun-alert-outputs.registry.js +219 -0
- package/dist/utility/wrun/wrun-bar-count.util.d.ts +83 -0
- package/dist/utility/wrun/wrun-bar-count.util.js +259 -0
- package/dist/utility/wrun/wrun-chart-context-names.util.d.ts +84 -0
- package/dist/utility/wrun/wrun-chart-context-names.util.js +186 -0
- package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +253 -0
- package/dist/utility/wrun/wrun-chart-market-facts.util.js +731 -0
- package/dist/utility/wrun/wrun-cloud-opra-stamp.util.d.ts +28 -0
- package/dist/utility/wrun/wrun-cloud-opra-stamp.util.js +45 -0
- package/dist/utility/wrun/wrun-coin-lane-live.util.d.ts +18 -0
- package/dist/utility/wrun/wrun-coin-lane-live.util.js +47 -0
- package/dist/utility/wrun/wrun-deadline.util.js +2 -1
- package/dist/utility/wrun/wrun-debug-output.util.d.ts +39 -0
- package/dist/utility/wrun/wrun-debug-output.util.js +63 -0
- package/dist/utility/wrun/wrun-declared-warmup.util.d.ts +113 -0
- package/dist/utility/wrun/wrun-declared-warmup.util.js +181 -0
- package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +43 -0
- package/dist/utility/wrun/wrun-draft-legend-note.util.js +158 -0
- package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +181 -0
- package/dist/utility/wrun/wrun-draft-overlay.util.js +357 -0
- package/dist/utility/wrun/wrun-draw-skipped.leaf.d.ts +16 -0
- package/dist/utility/wrun/wrun-draw-skipped.leaf.js +16 -0
- package/dist/utility/wrun/wrun-earnings-facts.util.d.ts +42 -0
- package/dist/utility/wrun/wrun-earnings-facts.util.js +131 -0
- package/dist/utility/wrun/wrun-first-run-depth.util.d.ts +32 -0
- package/dist/utility/wrun/wrun-first-run-depth.util.js +118 -0
- package/dist/utility/wrun/wrun-gate-plane-readers.util.d.ts +24 -0
- package/dist/utility/wrun/wrun-gate-plane-readers.util.js +31 -0
- package/dist/utility/wrun/wrun-held-lanes.util.d.ts +32 -0
- package/dist/utility/wrun/wrun-held-lanes.util.js +94 -0
- package/dist/utility/wrun/wrun-host-visible-clock.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-host-visible-clock.util.js +17 -0
- package/dist/utility/wrun/wrun-host.service.d.ts +266 -0
- package/dist/utility/wrun/wrun-host.service.js +655 -0
- package/dist/utility/wrun/wrun-inert-legend.util.d.ts +33 -0
- package/dist/utility/wrun/wrun-inert-legend.util.js +125 -0
- package/dist/utility/wrun/wrun-input-requirements.leaf.d.ts +155 -0
- package/dist/utility/wrun/wrun-input-requirements.leaf.js +450 -0
- package/dist/utility/wrun/wrun-integration-route.util.d.ts +51 -0
- package/dist/utility/wrun/wrun-integration-route.util.js +59 -0
- package/dist/utility/wrun/wrun-latest-history.leaf.d.ts +8 -0
- package/dist/utility/wrun/wrun-latest-history.leaf.js +8 -0
- package/dist/utility/wrun/wrun-legend-hover.lazy.d.ts +12 -0
- package/dist/utility/wrun/wrun-legend-hover.lazy.js +96 -0
- package/dist/utility/wrun/wrun-lifecycle-runtime.util.d.ts +21 -0
- package/dist/utility/wrun/wrun-lifecycle-runtime.util.js +21 -0
- package/dist/utility/wrun/wrun-live-hidden-hold.util.d.ts +23 -0
- package/dist/utility/wrun/wrun-live-hidden-hold.util.js +13 -0
- package/dist/utility/wrun/wrun-live-intake.util.d.ts +374 -0
- package/dist/utility/wrun/wrun-live-intake.util.js +2027 -0
- package/dist/utility/wrun/wrun-live-patch.util.d.ts +116 -0
- package/dist/utility/wrun/wrun-live-patch.util.js +523 -0
- package/dist/utility/wrun/wrun-live-tick.util.d.ts +619 -0
- package/dist/utility/wrun/wrun-live-tick.util.js +4974 -0
- package/dist/utility/wrun/wrun-loading-owner.util.d.ts +58 -0
- package/dist/utility/wrun/wrun-loading-owner.util.js +89 -0
- package/dist/utility/wrun/wrun-official-scope.leaf.d.ts +29 -0
- package/dist/utility/wrun/wrun-official-scope.leaf.js +36 -0
- package/dist/utility/wrun/wrun-oi-lane.util.d.ts +27 -0
- package/dist/utility/wrun/wrun-oi-lane.util.js +42 -0
- package/dist/utility/wrun/wrun-options-stop.util.d.ts +52 -0
- package/dist/utility/wrun/wrun-options-stop.util.js +123 -0
- package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +719 -0
- package/dist/utility/wrun/wrun-overlay-drivers.util.js +1180 -0
- package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.d.ts +50 -0
- package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.js +131 -0
- package/dist/utility/wrun/wrun-overlay-lifecycle.util.d.ts +118 -0
- package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +466 -0
- package/dist/utility/wrun/wrun-overlay-metadata.util.d.ts +45 -0
- package/dist/utility/wrun/wrun-overlay-metadata.util.js +112 -0
- package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +114 -0
- package/dist/utility/wrun/wrun-overlay-recovery.util.js +971 -0
- package/dist/utility/wrun/wrun-overlay-run.util.d.ts +858 -0
- package/dist/utility/wrun/wrun-overlay-run.util.js +11013 -0
- package/dist/utility/wrun/wrun-panel-mount.util.d.ts +24 -9
- package/dist/utility/wrun/wrun-panel-mount.util.js +138 -43
- package/dist/utility/wrun/wrun-param-map.util.d.ts +19 -4
- package/dist/utility/wrun/wrun-param-map.util.js +40 -47
- package/dist/utility/wrun/wrun-param-values.util.d.ts +9 -3
- package/dist/utility/wrun/wrun-param-values.util.js +5 -5
- package/dist/utility/wrun/wrun-prefix-cohort.util.d.ts +93 -0
- package/dist/utility/wrun/wrun-prefix-cohort.util.js +484 -0
- package/dist/utility/wrun/wrun-prefix-lanes.util.d.ts +114 -0
- package/dist/utility/wrun/wrun-prefix-lanes.util.js +486 -0
- package/dist/utility/wrun/wrun-prefix-proof.util.d.ts +317 -0
- package/dist/utility/wrun/wrun-prefix-proof.util.js +630 -0
- package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +73 -0
- package/dist/utility/wrun/wrun-refusal-surface.util.js +380 -0
- package/dist/utility/wrun/wrun-refusal-text.util.d.ts +15 -0
- package/dist/utility/wrun/wrun-refusal-text.util.js +40 -0
- package/dist/utility/wrun/wrun-replay-lane.util.d.ts +139 -0
- package/dist/utility/wrun/wrun-replay-lane.util.js +520 -0
- package/dist/utility/wrun/wrun-replay-rows.util.d.ts +21 -0
- package/dist/utility/wrun/wrun-replay-rows.util.js +172 -0
- package/dist/utility/wrun/wrun-row-source-factory.d.ts +53 -0
- package/dist/utility/wrun/wrun-row-source-factory.js +435 -0
- package/dist/utility/wrun/wrun-run-cells.util.d.ts +36 -0
- package/dist/utility/wrun/wrun-run-cells.util.js +46 -0
- package/dist/utility/wrun/wrun-run-interval-session.util.d.ts +133 -0
- package/dist/utility/wrun/wrun-run-interval-session.util.js +121 -0
- package/dist/utility/wrun/wrun-run-interval.util.d.ts +98 -0
- package/dist/utility/wrun/wrun-run-interval.util.js +207 -0
- package/dist/utility/wrun/wrun-run-retained.util.d.ts +122 -0
- package/dist/utility/wrun/wrun-run-retained.util.js +255 -0
- package/dist/utility/wrun/wrun-sandbox-row-source.d.ts +184 -0
- package/dist/utility/wrun/wrun-sandbox-row-source.js +444 -0
- package/dist/utility/wrun/wrun-script-inputs.util.js +4 -4
- package/dist/utility/wrun/wrun-series-stream.util.d.ts +86 -0
- package/dist/utility/wrun/wrun-series-stream.util.js +537 -0
- package/dist/utility/wrun/wrun-sheet-remembered.util.d.ts +21 -0
- package/dist/utility/wrun/wrun-sheet-remembered.util.js +36 -0
- package/dist/utility/wrun/wrun-signal-sound-reasons.leaf.d.ts +7 -0
- package/dist/utility/wrun/wrun-signal-sound-reasons.leaf.js +12 -0
- package/dist/utility/wrun/wrun-socket-row-source.js +4 -2
- package/dist/utility/wrun/wrun-source-rows.util.d.ts +175 -3
- package/dist/utility/wrun/wrun-source-rows.util.js +294 -8
- package/dist/utility/wrun/wrun-stats-strip.util.d.ts +46 -0
- package/dist/utility/wrun/wrun-stats-strip.util.js +87 -0
- package/dist/utility/wrun/wrun-table-chrome.util.d.ts +163 -0
- package/dist/utility/wrun/wrun-table-chrome.util.js +557 -0
- package/dist/utility/wrun/wrun-text-params.util.d.ts +11 -6
- package/dist/utility/wrun/wrun-text-params.util.js +19 -30
- package/dist/utility/wrun/wrun-transient-rerun.util.d.ts +64 -0
- package/dist/utility/wrun/wrun-transient-rerun.util.js +317 -0
- package/dist/utility/wrun/wrun-twin-lookback.util.d.ts +10 -0
- package/dist/utility/wrun/wrun-twin-lookback.util.js +43 -0
- package/dist/utility/wrun/wrun-warmup-head-store.util.d.ts +41 -0
- package/dist/utility/wrun/wrun-warmup-head-store.util.js +120 -0
- package/dist/utility/wrun-alert-params.leaf.d.ts +24 -0
- package/dist/utility/wrun-alert-params.leaf.js +24 -0
- package/dist/utils/replay/replay-buffer-math.d.ts +148 -0
- package/dist/utils/replay/replay-buffer-math.js +684 -0
- package/dist/workers/wrun/wrun-abi-host.d.ts +190 -0
- package/dist/workers/wrun/wrun-abi-host.js +1201 -0
- package/dist/workers/wrun/wrun-engine-handler.d.ts +37 -0
- package/dist/workers/wrun/wrun-engine-handler.js +211 -0
- package/package.json +3 -3
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import type { ReplayBuffer, ReplayFollowRange, ReplayResolution } from '../../interfaces/replay.interface.js';
|
|
2
|
+
type ReplayFollowRangeTarget = {
|
|
3
|
+
resetRange?: (startKey: number, endKey: number) => void;
|
|
4
|
+
resetRangeByTs?: (startTs: number, endTs: number) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare function firstRejectedReplayFetch(results: PromiseSettledResult<unknown>[]): PromiseRejectedResult | null;
|
|
7
|
+
export declare function throwRejectedReplayFetch(results: PromiseSettledResult<unknown>[]): void;
|
|
8
|
+
export declare const cloneRows: (rows: number[][] | undefined) => number[][];
|
|
9
|
+
export declare const isReplayOhlcRow: (row: number[]) => boolean;
|
|
10
|
+
export declare function sortedPrefixEnd<T>(rows: T[], cutoffMs: number, timestampForRow: (row: T) => number, inclusive: boolean): number;
|
|
11
|
+
export declare function sortedLowerBound<T>(rows: T[], cutoffMs: number, timestampForRow: (row: T) => number): number;
|
|
12
|
+
export declare function isIrregularReplayBuffer(buffer: ReplayBuffer): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The irregular replay timeline: every playable stamp at or after the anchor.
|
|
15
|
+
* Memoized per buffer, so the same array comes back until the playable rows,
|
|
16
|
+
* the anchor or the chart interval change. Callers must treat it as read-only.
|
|
17
|
+
*/
|
|
18
|
+
export declare function replayTimelineTimestamps(buffer: ReplayBuffer, chartIntervalMs: number): number[];
|
|
19
|
+
export declare function replayIndexForTimestamp(buffer: ReplayBuffer, chartIntervalMs: number, timestampMs: number): number;
|
|
20
|
+
export declare function replayNearestTimelineTimestamp(buffer: ReplayBuffer, chartIntervalMs: number, timestampMs: number): number;
|
|
21
|
+
export declare function nextReplayTimelineTimestamp(buffer: ReplayBuffer, chartIntervalMs: number, afterMs: number): number | null;
|
|
22
|
+
export declare function previousReplayTimelineTimestamp(buffer: ReplayBuffer, chartIntervalMs: number, beforeMs: number): number | null;
|
|
23
|
+
export declare function replayAutoloadThresholdMs(buffer: ReplayBuffer, chartIntervalMs: number, prefetchBars: number): number;
|
|
24
|
+
export declare function replayViewportSpanMs(viewport: {
|
|
25
|
+
startTs?: unknown;
|
|
26
|
+
endTs?: unknown;
|
|
27
|
+
startKey?: unknown;
|
|
28
|
+
endKey?: unknown;
|
|
29
|
+
} | undefined, chartIntervalMs: number): number | null;
|
|
30
|
+
export interface ReplayAnchorFraming {
|
|
31
|
+
/** Bars between the window's left edge and the anchor bar (fractional keys allowed). */
|
|
32
|
+
leftBars: number;
|
|
33
|
+
/** Bars between the anchor bar and the window's right edge. */
|
|
34
|
+
rightBars: number;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The user's framing of the anchor bar, in bars, read from the key-denominated
|
|
38
|
+
* viewport BEFORE the anchor load touches the engine. Null when the anchor is
|
|
39
|
+
* off-screen (the reveal recenters onto the follow frame then) or the
|
|
40
|
+
* viewport is unreadable.
|
|
41
|
+
*
|
|
42
|
+
* Bars, not timestamps: the pre-fetch truncation drops every bar after the
|
|
43
|
+
* anchor and the engine re-anchors a live-following window onto the new tail
|
|
44
|
+
* (the anchor bar ends up at the old live-edge offset, ~90% of the width, no
|
|
45
|
+
* runway to its right). Writing the captured window back by timestamp would
|
|
46
|
+
* undo that on a uniform grid only: past the mounted tail the engine maps
|
|
47
|
+
* timestamps at interval pitch, so on a sparse or session-gap grid a
|
|
48
|
+
* wall-clock window holds a different number of bars than it did and the
|
|
49
|
+
* anchor moves anyway. Keeping the bar counts on each side of the anchor
|
|
50
|
+
* survives the truncation, the buffer's own row numbering, and any grid.
|
|
51
|
+
*/
|
|
52
|
+
export declare function replayAnchorFraming(viewport: {
|
|
53
|
+
startKey?: unknown;
|
|
54
|
+
endKey?: unknown;
|
|
55
|
+
} | undefined, anchorIndex: number): ReplayAnchorFraming | null;
|
|
56
|
+
/** The key window that puts the anchor bar (now at `anchorIndex`) back into its captured framing. */
|
|
57
|
+
export declare function replayAnchorFramingRange(framing: ReplayAnchorFraming, anchorIndex: number): {
|
|
58
|
+
startKey: number;
|
|
59
|
+
endKey: number;
|
|
60
|
+
};
|
|
61
|
+
export declare function replayFollowRange(buffer: ReplayBuffer, targetMs: number): ReplayFollowRange;
|
|
62
|
+
export declare function applyReplayFollowRange(target: ReplayFollowRangeTarget, range: ReplayFollowRange): void;
|
|
63
|
+
/**
|
|
64
|
+
* Records the span of a follow range replay is about to drive the viewport to
|
|
65
|
+
* (a direct apply, a reveal reset, or a camera glide target) as the buffer's
|
|
66
|
+
* echo baseline. adoptUserReplayFollowSpan compares the live viewport against
|
|
67
|
+
* this baseline to tell a genuine user zoom from the follow window's own echo.
|
|
68
|
+
*/
|
|
69
|
+
export declare function recordAppliedReplayFollowSpan(buffer: ReplayBuffer, range: ReplayFollowRange, chartIntervalMs: number): void;
|
|
70
|
+
/**
|
|
71
|
+
* Adopts the viewport's span into buffer.viewBehindMs ONLY when it is a
|
|
72
|
+
* genuine user zoom. The previous behavior (re-derive the span from the
|
|
73
|
+
* viewport on every sync) re-imported the follow window's own echo, and on a
|
|
74
|
+
* sparse grid that echo is keySpan * interval, which understates the wall
|
|
75
|
+
* span, so each sync ratcheted the follow zoom down (300 -> 2 bars in ~40
|
|
76
|
+
* ticks). A viewport span within FOLLOW_SPAN_ECHO_TOLERANCE_BARS of the last
|
|
77
|
+
* applied window (in the viewport's own denomination) is the echo and keeps
|
|
78
|
+
* the stored span; anything else is the user's and is adopted.
|
|
79
|
+
*/
|
|
80
|
+
export declare function adoptUserReplayFollowSpan(buffer: ReplayBuffer, viewport: {
|
|
81
|
+
startTs?: unknown;
|
|
82
|
+
endTs?: unknown;
|
|
83
|
+
startKey?: unknown;
|
|
84
|
+
endKey?: unknown;
|
|
85
|
+
} | undefined, chartIntervalMs: number): void;
|
|
86
|
+
export declare function pruneTickCandleRows(buffer: ReplayBuffer, playheadMs: number, chartIntervalMs?: any): void;
|
|
87
|
+
/**
|
|
88
|
+
* The heatmap analog of pruneTickCandleRows: sheds buffered book columns
|
|
89
|
+
* outside [windowMinMs, windowMaxMs] (inclusive), keeping only the span the
|
|
90
|
+
* session can actually reach (candle floor .. forward book coverage). Any
|
|
91
|
+
* eviction also drops the pan-back no-gain latch, whose evidence (column
|
|
92
|
+
* count, deepest column) predates the eviction: a later pan into an evicted
|
|
93
|
+
* span must re-fetch instead of being latch-suppressed.
|
|
94
|
+
*/
|
|
95
|
+
export declare function pruneReplayHeatmapColumnsToWindow(buffer: ReplayBuffer, windowMinMs: number, windowMaxMs: number): number;
|
|
96
|
+
export declare function mergeRowsByTimestamp(existing: number[][], incoming: number[][]): number[][];
|
|
97
|
+
export interface AggregateOhlcvOptions {
|
|
98
|
+
originMs?: number;
|
|
99
|
+
timestamp?: 'start' | 'end';
|
|
100
|
+
}
|
|
101
|
+
export declare function aggregateOhlcvRows(rows: number[][], bucketMs: number, minMs?: number, maxMs?: number, options?: AggregateOhlcvOptions): number[][];
|
|
102
|
+
export declare function sourceGranularReplaySubRows(rows: number[][], minMs: number, maxMs: number): number[][];
|
|
103
|
+
export declare function replaySubSourceIntervalMs(buffer: ReplayBuffer, chartIntervalMs: number): number;
|
|
104
|
+
/**
|
|
105
|
+
* Whether the sub rows already hold what the forming candle shows at the
|
|
106
|
+
* playhead: on the tick rail a row inside [this step, playhead] of the active
|
|
107
|
+
* chart bucket, on a bar lane a source row whose interval closed inside it.
|
|
108
|
+
* Runs every clock tick (the candle coverage check); sub rows stay sorted, so
|
|
109
|
+
* the first row at or past the earliest qualifying stamp decides instead of a
|
|
110
|
+
* scan of the whole rail, which on bar lanes is never shed and grows one batch
|
|
111
|
+
* per autoload.
|
|
112
|
+
*/
|
|
113
|
+
export declare function replaySubRowsHoldFormingRow(buffer: ReplayBuffer, playheadMs: number, chartIntervalMs: number, stepMs: number, subSourceIntervalMs: number): boolean;
|
|
114
|
+
export declare function formingChartRowFromSubRows(buffer: ReplayBuffer, chartIntervalMs: number, targetMs: number): number[] | null;
|
|
115
|
+
export declare function mergeHeatmapColumns(existing: Float64Array[], incoming: Float64Array[]): Float64Array[];
|
|
116
|
+
export declare function mergeHeatmapColumnsIncrementally(existing: Float64Array[], incoming: Float64Array[]): Float64Array[];
|
|
117
|
+
export declare function isReplayTimestampVisible(timestampMs: number, targetMs: number): boolean;
|
|
118
|
+
/**
|
|
119
|
+
* The rows the clock plays: the chart rows, or on a finer sub-row rail the sub
|
|
120
|
+
* rows collapsed to the replay step. The collapsed rows are memoized per buffer
|
|
121
|
+
* (they re-aggregated every sub row up to three times per tick), so callers
|
|
122
|
+
* must treat the result as read-only, as they already must for fullRows.
|
|
123
|
+
*/
|
|
124
|
+
export declare function playableRowsForBuffer(buffer: ReplayBuffer, chartIntervalMs: number): number[][];
|
|
125
|
+
export declare function replayUsesSubRowRail(buffer: ReplayBuffer, chartIntervalMs: number): boolean;
|
|
126
|
+
export declare function replayForwardBatchForStepMs(stepMs: number): number;
|
|
127
|
+
export declare function replayResolutionMs(tf: ReplayResolution, chartIntervalMs: number): number;
|
|
128
|
+
export declare function replayResolutionLabel(tf: ReplayResolution, chartIntervalMs: number): string;
|
|
129
|
+
export declare function replayResolutionSourceLabel(tf: ReplayResolution, chartIntervalMs: number): string;
|
|
130
|
+
export declare function supportedReplaySourceInterval(intervalLabel: string): string;
|
|
131
|
+
export declare function replayCandleSourceInterval(chartIntervalMs: number): string;
|
|
132
|
+
export declare function alignProbeCursorMs(cursorMs: number, stepMs: number): number;
|
|
133
|
+
export declare function chartBucketOriginMs(chartIntervalMs: number): number;
|
|
134
|
+
export declare function alignChartBucketMs(timestampMs: number, chartIntervalMs: number): number;
|
|
135
|
+
export declare function replayResolutionRestartAnchorMs(args: {
|
|
136
|
+
userAnchorMs: number | null;
|
|
137
|
+
rebuildAnchorMs: number;
|
|
138
|
+
}): number;
|
|
139
|
+
export declare function sourceIntervalMsForLabel(label: string): number | null;
|
|
140
|
+
export declare function aggregateSourceRowsToChartInterval(rows: number[][], sourceInterval: string, chartIntervalMs: number, minMs: number, maxMs: number): number[][];
|
|
141
|
+
export declare function chartIntervalLabel(chartIntervalMs: number): string;
|
|
142
|
+
export declare function replayHeatmapResolutionLabel(tf: ReplayResolution, chartIntervalMs: number): string;
|
|
143
|
+
export declare function maxLoadedBarsForReplayResolution(tf: ReplayResolution, chartIntervalMs: number): number;
|
|
144
|
+
export declare function loadedBarsForRows(buffer: ReplayBuffer, chartIntervalMs: number): number;
|
|
145
|
+
export declare function encodedHeatmapColumn(time: number, source: ArrayLike<number>): Float64Array | null;
|
|
146
|
+
export declare function downsampleHeatmapColumns(columns: Float64Array[], stepMs: number, minMs?: number, maxMs?: number): Float64Array[];
|
|
147
|
+
export declare function replayBufferEndMs(buffer: ReplayBuffer, chartIntervalMs: number): number;
|
|
148
|
+
export {};
|