@orangecharts/wrun-chart-host 0.3.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 +23 -6
- 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/builtin-script-snippets.d.ts +133 -0
- package/dist/constants/scriptEditor/builtin-script-snippets.js +451 -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 +321 -24
- package/dist/host-env.js +15 -0
- package/dist/host-ports.types.d.ts +857 -35
- package/dist/index.d.ts +149 -2
- package/dist/index.js +149 -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/date-labelled-interval.leaf.d.ts +15 -0
- package/dist/utility/chart/date-labelled-interval.leaf.js +19 -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/indicator-run-interval.util.d.ts +130 -0
- package/dist/utility/chart/indicator-run-interval.util.js +268 -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/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 +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/html-escape.leaf.d.ts +11 -0
- package/dist/utility/html-escape.leaf.js +20 -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/option_daily.d.ts +43 -15
- package/dist/utility/wrun/sources/lanes/option_daily.js +78 -20
- package/dist/utility/wrun/sources/lanes/option_stats_10m.d.ts +14 -10
- package/dist/utility/wrun/sources/lanes/option_stats_10m.js +5 -4
- package/dist/utility/wrun/sources/lanes/series.js +2 -2
- package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +22 -3
- package/dist/utility/wrun/sources/opra-option-lanes.util.js +38 -7
- package/dist/utility/wrun/sources/registry.js +31 -1
- package/dist/utility/wrun/sources/row-lane-registry.js +5 -5
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.d.ts +49 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +75 -20
- package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +49 -0
- package/dist/utility/wrun/sources/row-lanes/option_strikes.js +57 -47
- package/dist/utility/wrun/sources/row-lanes/option_surface.d.ts +36 -4
- package/dist/utility/wrun/sources/row-lanes/option_surface.js +6 -12
- package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +37 -3
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +128 -2
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +233 -51
- package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +0 -8
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +26 -24
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +85 -104
- 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-opra-stats.leaf.d.ts +29 -10
- package/dist/utility/wrun/wrun-opra-stats.leaf.js +29 -10
- 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.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 +392 -0
- package/dist/utility/wrun/wrun-panel-mount.util.js +2346 -0
- 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-pause-dim.util.d.ts +52 -0
- package/dist/utility/wrun/wrun-pause-dim.util.js +153 -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-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-projection.types.d.ts +14 -0
- package/dist/utility/wrun/wrun-run-interval-projection.types.js +1 -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,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one owner of a browser-run Indicator's kScript loading flag (the store's
|
|
3
|
+
* `kscriptLoadingIndicators`, whose watchdog adds the "Still loading" chip at 20 s and force-lowers
|
|
4
|
+
* with "Loading stopped" at 75 s). The store keeps one boolean per overlay (`<chartIndex>:<indicatorId>`),
|
|
5
|
+
* so every raiser of the overlay shares it: the restore of a record the chart brings back
|
|
6
|
+
* (wrun-restore-loading.util, from the revive until its first run settles) and each compute pass
|
|
7
|
+
* (wrun-overlay-run.util). Every raise claims the flag here and gets the generation it owns it under;
|
|
8
|
+
* every lower releases that generation, and a raiser writes the flag down only when the release
|
|
9
|
+
* says it still owned it. A superseded raiser therefore never lowers its successor's flag and
|
|
10
|
+
* watchdog (data-loading rule 3: the owner lowers on success, failure, abort and the deadline alike).
|
|
11
|
+
*
|
|
12
|
+
* Who takes the flag:
|
|
13
|
+
* - a restore, always: the record the chart brings back is a new wait, and any pass still in flight
|
|
14
|
+
* for the overlay computes for a chart or a mount that is gone. A second claim of the same restore
|
|
15
|
+
* keeps its generation.
|
|
16
|
+
* - a compute pass, when the flag is down or an earlier pass holds it (a replacement's pass takes it
|
|
17
|
+
* over). A flag a restore holds is left to it (the restored record's first run is the wait the
|
|
18
|
+
* restore already shows), and so is a raised flag nothing here owns (a settings-apply cycle).
|
|
19
|
+
* - a transient grace (wrun-transient-rerun.util), as a pass does, and from a restore too: a restored
|
|
20
|
+
* record's first run failed and the grace's wait for its rerun takes over the restore's, so the
|
|
21
|
+
* restore's release (its first run settled) finds the flag no longer its own and leaves it up.
|
|
22
|
+
*
|
|
23
|
+
* This module only arbitrates: each raiser writes the store itself, and an entry lives while its
|
|
24
|
+
* owner's wait does.
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* A compute pass's claim, given whether the flag is up: the generation the pass owns it under (the
|
|
28
|
+
* pass then raises it, which re-arms the watchdog for its own pass when an earlier pass held it), or
|
|
29
|
+
* undefined when the flag is left to the restore or the untracked raiser that holds it.
|
|
30
|
+
*/
|
|
31
|
+
export declare function claimWrunRunLoading(chartIndex: number, indicatorId: string, flagRaised: boolean): number | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* A transient grace's claim (wrun-transient-rerun.util), given whether the flag is up: owned as a compute pass's
|
|
34
|
+
* (a rerun's own pass takes it over in turn), taken from a pass or from a restore whose first run failed into the
|
|
35
|
+
* grace, and undefined when a raiser nothing here owns holds the raised flag (a settings-apply cycle).
|
|
36
|
+
*/
|
|
37
|
+
export declare function claimWrunGraceLoading(chartIndex: number, indicatorId: string, flagRaised: boolean): number | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* A restore's claim. `fresh`: it took the flag from another holder (or found it unowned), so it
|
|
40
|
+
* raises it even when it is up, and the watchdog counts the restored record's own wait. A second
|
|
41
|
+
* claim of the same restore keeps its generation and raises only a flag that is down, never
|
|
42
|
+
* restarting the clock.
|
|
43
|
+
*/
|
|
44
|
+
export declare function claimWrunRestoreLoading(chartIndex: number, indicatorId: string): {
|
|
45
|
+
generation: number;
|
|
46
|
+
fresh: boolean;
|
|
47
|
+
};
|
|
48
|
+
/** Whether `generation` still owns the overlay's flag. */
|
|
49
|
+
export declare function ownsWrunLoading(chartIndex: number, indicatorId: string, generation: number | undefined): boolean;
|
|
50
|
+
/** Whether any raiser owns the overlay's flag. */
|
|
51
|
+
export declare function isWrunLoadingOwned(chartIndex: number, indicatorId: string): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Give the flag up: true when `generation` still owned it (the caller then lowers it), false when a
|
|
54
|
+
* later claim took it over (the flag is that claim's to lower) or nothing was claimed.
|
|
55
|
+
*/
|
|
56
|
+
export declare function releaseWrunLoading(chartIndex: number, indicatorId: string, generation: number | undefined): boolean;
|
|
57
|
+
/** Test-only: forget every owner. */
|
|
58
|
+
export declare function __resetWrunLoadingOwnersForTests(): void;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The one owner of a browser-run Indicator's kScript loading flag (the store's
|
|
3
|
+
* `kscriptLoadingIndicators`, whose watchdog adds the "Still loading" chip at 20 s and force-lowers
|
|
4
|
+
* with "Loading stopped" at 75 s). The store keeps one boolean per overlay (`<chartIndex>:<indicatorId>`),
|
|
5
|
+
* so every raiser of the overlay shares it: the restore of a record the chart brings back
|
|
6
|
+
* (wrun-restore-loading.util, from the revive until its first run settles) and each compute pass
|
|
7
|
+
* (wrun-overlay-run.util). Every raise claims the flag here and gets the generation it owns it under;
|
|
8
|
+
* every lower releases that generation, and a raiser writes the flag down only when the release
|
|
9
|
+
* says it still owned it. A superseded raiser therefore never lowers its successor's flag and
|
|
10
|
+
* watchdog (data-loading rule 3: the owner lowers on success, failure, abort and the deadline alike).
|
|
11
|
+
*
|
|
12
|
+
* Who takes the flag:
|
|
13
|
+
* - a restore, always: the record the chart brings back is a new wait, and any pass still in flight
|
|
14
|
+
* for the overlay computes for a chart or a mount that is gone. A second claim of the same restore
|
|
15
|
+
* keeps its generation.
|
|
16
|
+
* - a compute pass, when the flag is down or an earlier pass holds it (a replacement's pass takes it
|
|
17
|
+
* over). A flag a restore holds is left to it (the restored record's first run is the wait the
|
|
18
|
+
* restore already shows), and so is a raised flag nothing here owns (a settings-apply cycle).
|
|
19
|
+
* - a transient grace (wrun-transient-rerun.util), as a pass does, and from a restore too: a restored
|
|
20
|
+
* record's first run failed and the grace's wait for its rerun takes over the restore's, so the
|
|
21
|
+
* restore's release (its first run settled) finds the flag no longer its own and leaves it up.
|
|
22
|
+
*
|
|
23
|
+
* This module only arbitrates: each raiser writes the store itself, and an entry lives while its
|
|
24
|
+
* owner's wait does.
|
|
25
|
+
*/
|
|
26
|
+
const owners = new Map();
|
|
27
|
+
let lastGeneration = 0;
|
|
28
|
+
function keyOf(chartIndex, indicatorId) {
|
|
29
|
+
return `${chartIndex}:${indicatorId}`;
|
|
30
|
+
}
|
|
31
|
+
function take(kind, chartIndex, indicatorId) {
|
|
32
|
+
const generation = ++lastGeneration;
|
|
33
|
+
owners.set(keyOf(chartIndex, indicatorId), { kind, generation });
|
|
34
|
+
return generation;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* A compute pass's claim, given whether the flag is up: the generation the pass owns it under (the
|
|
38
|
+
* pass then raises it, which re-arms the watchdog for its own pass when an earlier pass held it), or
|
|
39
|
+
* undefined when the flag is left to the restore or the untracked raiser that holds it.
|
|
40
|
+
*/
|
|
41
|
+
export function claimWrunRunLoading(chartIndex, indicatorId, flagRaised) {
|
|
42
|
+
if (flagRaised && owners.get(keyOf(chartIndex, indicatorId))?.kind !== 'run')
|
|
43
|
+
return undefined;
|
|
44
|
+
return take('run', chartIndex, indicatorId);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A transient grace's claim (wrun-transient-rerun.util), given whether the flag is up: owned as a compute pass's
|
|
48
|
+
* (a rerun's own pass takes it over in turn), taken from a pass or from a restore whose first run failed into the
|
|
49
|
+
* grace, and undefined when a raiser nothing here owns holds the raised flag (a settings-apply cycle).
|
|
50
|
+
*/
|
|
51
|
+
export function claimWrunGraceLoading(chartIndex, indicatorId, flagRaised) {
|
|
52
|
+
if (flagRaised && !owners.has(keyOf(chartIndex, indicatorId)))
|
|
53
|
+
return undefined;
|
|
54
|
+
return take('run', chartIndex, indicatorId);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A restore's claim. `fresh`: it took the flag from another holder (or found it unowned), so it
|
|
58
|
+
* raises it even when it is up, and the watchdog counts the restored record's own wait. A second
|
|
59
|
+
* claim of the same restore keeps its generation and raises only a flag that is down, never
|
|
60
|
+
* restarting the clock.
|
|
61
|
+
*/
|
|
62
|
+
export function claimWrunRestoreLoading(chartIndex, indicatorId) {
|
|
63
|
+
const owner = owners.get(keyOf(chartIndex, indicatorId));
|
|
64
|
+
if (owner?.kind === 'restore')
|
|
65
|
+
return { generation: owner.generation, fresh: false };
|
|
66
|
+
return { generation: take('restore', chartIndex, indicatorId), fresh: true };
|
|
67
|
+
}
|
|
68
|
+
/** Whether `generation` still owns the overlay's flag. */
|
|
69
|
+
export function ownsWrunLoading(chartIndex, indicatorId, generation) {
|
|
70
|
+
return generation !== undefined && owners.get(keyOf(chartIndex, indicatorId))?.generation === generation;
|
|
71
|
+
}
|
|
72
|
+
/** Whether any raiser owns the overlay's flag. */
|
|
73
|
+
export function isWrunLoadingOwned(chartIndex, indicatorId) {
|
|
74
|
+
return owners.has(keyOf(chartIndex, indicatorId));
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Give the flag up: true when `generation` still owned it (the caller then lowers it), false when a
|
|
78
|
+
* later claim took it over (the flag is that claim's to lower) or nothing was claimed.
|
|
79
|
+
*/
|
|
80
|
+
export function releaseWrunLoading(chartIndex, indicatorId, generation) {
|
|
81
|
+
if (!ownsWrunLoading(chartIndex, indicatorId, generation))
|
|
82
|
+
return false;
|
|
83
|
+
owners.delete(keyOf(chartIndex, indicatorId));
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
/** Test-only: forget every owner. */
|
|
87
|
+
export function __resetWrunLoadingOwnersForTests() {
|
|
88
|
+
owners.clear();
|
|
89
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The official package scopes (a leaf of utility/wrun/wrun-official-scope.util.ts; P2/inventory.md section 1.1): the
|
|
3
|
+
* scopes, a package's scope and the two tests the venue policy reads. The dev-only mismatch report stays in the old
|
|
4
|
+
* module (it reads `import.meta.env`); this leaf holds no state and moves into the chart-host package with the phase 2
|
|
5
|
+
* closure. The old module re-exports these names.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The official library's registry scope, as a leaf module (no imports) so the
|
|
9
|
+
* catalog seam and the super-search providers read ONE definition of "an
|
|
10
|
+
* OpenMarket indicator".
|
|
11
|
+
*
|
|
12
|
+
* A registry package is OFFICIAL (the "OpenMarket indicators" group of the
|
|
13
|
+
* chart's catalog) when its scope is one of WRUN_OFFICIAL_SCOPES, or when the
|
|
14
|
+
* registry marks its publisher `platform`. Both classify: the scope is the
|
|
15
|
+
* frozen contract (`@om-core` holds the official ports, reserved and marked
|
|
16
|
+
* platform), the mark is the registry's own word for the same thing, and a
|
|
17
|
+
* package that carries only one of the two still lists as official (the
|
|
18
|
+
* mismatch is reported once per package in dev builds so the data gets
|
|
19
|
+
* fixed, never hidden). Everything else is a community package: another
|
|
20
|
+
* author's scope or the viewer's own scope.
|
|
21
|
+
*/
|
|
22
|
+
/** The registry scopes of the official library (with their leading '@'). */
|
|
23
|
+
export declare const WRUN_OFFICIAL_SCOPES: readonly string[];
|
|
24
|
+
/** The `@scope` of a package name (`@scope/name`), '' when the name has none. */
|
|
25
|
+
export declare function wrunPackageScopeOf(packageName: string): string;
|
|
26
|
+
/** Whether a scope (with its '@') is an official-library scope. */
|
|
27
|
+
export declare function isWrunOfficialScope(scope: string): boolean;
|
|
28
|
+
/** The official verdict of a package: an official scope, or the platform mark. */
|
|
29
|
+
export declare function isWrunOfficialPackage(packageName: string, mark: 'platform' | null | undefined): boolean;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The official package scopes (a leaf of utility/wrun/wrun-official-scope.util.ts; P2/inventory.md section 1.1): the
|
|
3
|
+
* scopes, a package's scope and the two tests the venue policy reads. The dev-only mismatch report stays in the old
|
|
4
|
+
* module (it reads `import.meta.env`); this leaf holds no state and moves into the chart-host package with the phase 2
|
|
5
|
+
* closure. The old module re-exports these names.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* The official library's registry scope, as a leaf module (no imports) so the
|
|
9
|
+
* catalog seam and the super-search providers read ONE definition of "an
|
|
10
|
+
* OpenMarket indicator".
|
|
11
|
+
*
|
|
12
|
+
* A registry package is OFFICIAL (the "OpenMarket indicators" group of the
|
|
13
|
+
* chart's catalog) when its scope is one of WRUN_OFFICIAL_SCOPES, or when the
|
|
14
|
+
* registry marks its publisher `platform`. Both classify: the scope is the
|
|
15
|
+
* frozen contract (`@om-core` holds the official ports, reserved and marked
|
|
16
|
+
* platform), the mark is the registry's own word for the same thing, and a
|
|
17
|
+
* package that carries only one of the two still lists as official (the
|
|
18
|
+
* mismatch is reported once per package in dev builds so the data gets
|
|
19
|
+
* fixed, never hidden). Everything else is a community package: another
|
|
20
|
+
* author's scope or the viewer's own scope.
|
|
21
|
+
*/
|
|
22
|
+
/** The registry scopes of the official library (with their leading '@'). */
|
|
23
|
+
export const WRUN_OFFICIAL_SCOPES = Object.freeze(['@om-core']);
|
|
24
|
+
/** The `@scope` of a package name (`@scope/name`), '' when the name has none. */
|
|
25
|
+
export function wrunPackageScopeOf(packageName) {
|
|
26
|
+
const slash = packageName.indexOf('/');
|
|
27
|
+
return slash > 0 && packageName.startsWith('@') ? packageName.slice(0, slash) : '';
|
|
28
|
+
}
|
|
29
|
+
/** Whether a scope (with its '@') is an official-library scope. */
|
|
30
|
+
export function isWrunOfficialScope(scope) {
|
|
31
|
+
return WRUN_OFFICIAL_SCOPES.includes(scope);
|
|
32
|
+
}
|
|
33
|
+
/** The official verdict of a package: an official scope, or the platform mark. */
|
|
34
|
+
export function isWrunOfficialPackage(packageName, mark) {
|
|
35
|
+
return isWrunOfficialScope(wrunPackageScopeOf(packageName)) || mark === 'platform';
|
|
36
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The open-interest lane a wrun sheet's `oi` inputs read (kit 0.86.0): an `oi` input may name `currency`, "USD"
|
|
3
|
+
* (the default: dollars, the lane every shipped package reads) or "Coin" (the market's native units, coins or
|
|
4
|
+
* contracts, the units the built-in Open Interest Profile counts in). The run asks the K_OPEN_INTEREST lane with
|
|
5
|
+
* `currency: "Coin"` as the lane's payload extras for a Coin sheet, so the control asks the series without the USD
|
|
6
|
+
* normalization (k-open-interest.control), and a USD sheet asks it exactly as before (no extras: the payload stays
|
|
7
|
+
* byte-identical for every shipped package). The live context keeps that payload as the lane's acquisition, so the
|
|
8
|
+
* reconcile re-asks the same units. An input bound to a setting (`currency_param`) reaches here with the picked
|
|
9
|
+
* label already written into `currency` by the paint seam (wrunSheetWithSettings), and "Auto" resolved by the
|
|
10
|
+
* market seam (wrunSheetWithLaneCurrencies).
|
|
11
|
+
*
|
|
12
|
+
* One package reads one open-interest lane (the run fetches it once, as it does the volume profile): `oi` inputs
|
|
13
|
+
* that declare two units refuse by name before any fetch. An open-interest STREAM (`oi_candles`) is a leg of its
|
|
14
|
+
* own and carries its own units (wrun-leg-stream-classes), so it never meets this rule.
|
|
15
|
+
*/
|
|
16
|
+
import type { WrunIndicatorMetadata } from '../../interfaces/wrun-runtime.interface.js';
|
|
17
|
+
export declare const WRUN_OI_ONE_LANE_CODE = "wrun_oi_one_lane";
|
|
18
|
+
/** The lane payload extras of a Coin open-interest lane (the K_OPEN_INTEREST source payload's key). */
|
|
19
|
+
export interface WrunOiLaneExtras {
|
|
20
|
+
currency: 'Coin';
|
|
21
|
+
}
|
|
22
|
+
/** The units one `oi` input reads: "Coin" when it says so, else "USD" (the default). */
|
|
23
|
+
export declare function wrunOiInputCurrency(currency: unknown): 'USD' | 'Coin';
|
|
24
|
+
/** The lane payload extras the sheet's demanded `oi` inputs declare: `{ currency: 'Coin' }` when they read native
|
|
25
|
+
* units, undefined for the USD lane (the payload as before). Throws, naming the inputs, when two inputs declare
|
|
26
|
+
* different units. */
|
|
27
|
+
export declare function wrunOiLaneExtras(metadata: Pick<WrunIndicatorMetadata, 'inputs' | 'inputSources'>): WrunOiLaneExtras | undefined;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The open-interest lane a wrun sheet's `oi` inputs read (kit 0.86.0): an `oi` input may name `currency`, "USD"
|
|
3
|
+
* (the default: dollars, the lane every shipped package reads) or "Coin" (the market's native units, coins or
|
|
4
|
+
* contracts, the units the built-in Open Interest Profile counts in). The run asks the K_OPEN_INTEREST lane with
|
|
5
|
+
* `currency: "Coin"` as the lane's payload extras for a Coin sheet, so the control asks the series without the USD
|
|
6
|
+
* normalization (k-open-interest.control), and a USD sheet asks it exactly as before (no extras: the payload stays
|
|
7
|
+
* byte-identical for every shipped package). The live context keeps that payload as the lane's acquisition, so the
|
|
8
|
+
* reconcile re-asks the same units. An input bound to a setting (`currency_param`) reaches here with the picked
|
|
9
|
+
* label already written into `currency` by the paint seam (wrunSheetWithSettings), and "Auto" resolved by the
|
|
10
|
+
* market seam (wrunSheetWithLaneCurrencies).
|
|
11
|
+
*
|
|
12
|
+
* One package reads one open-interest lane (the run fetches it once, as it does the volume profile): `oi` inputs
|
|
13
|
+
* that declare two units refuse by name before any fetch. An open-interest STREAM (`oi_candles`) is a leg of its
|
|
14
|
+
* own and carries its own units (wrun-leg-stream-classes), so it never meets this rule.
|
|
15
|
+
*/
|
|
16
|
+
export const WRUN_OI_ONE_LANE_CODE = 'wrun_oi_one_lane';
|
|
17
|
+
/** The units one `oi` input reads: "Coin" when it says so, else "USD" (the default). */
|
|
18
|
+
export function wrunOiInputCurrency(currency) {
|
|
19
|
+
return currency === 'Coin' ? 'Coin' : 'USD';
|
|
20
|
+
}
|
|
21
|
+
/** The lane payload extras the sheet's demanded `oi` inputs declare: `{ currency: 'Coin' }` when they read native
|
|
22
|
+
* units, undefined for the USD lane (the payload as before). Throws, naming the inputs, when two inputs declare
|
|
23
|
+
* different units. */
|
|
24
|
+
export function wrunOiLaneExtras(metadata) {
|
|
25
|
+
let declared;
|
|
26
|
+
for (const input of metadata.inputs) {
|
|
27
|
+
const source = metadata.inputSources[input.name];
|
|
28
|
+
if (source?.source !== 'oi' || source.undemanded === true)
|
|
29
|
+
continue;
|
|
30
|
+
const currency = wrunOiInputCurrency(source.currency);
|
|
31
|
+
if (declared !== undefined && declared.currency !== currency) {
|
|
32
|
+
throw new Error(`oi inputs declare two units (${declared.inputs.join(', ')}: ${declared.currency}; ${input.name}: ${currency}) ` +
|
|
33
|
+
`(${WRUN_OI_ONE_LANE_CODE}): one package reads one open interest lane, so declare the same currency on ` +
|
|
34
|
+
'every oi input, or read the other units through an oi_candles input');
|
|
35
|
+
}
|
|
36
|
+
declared =
|
|
37
|
+
declared === undefined
|
|
38
|
+
? { currency, inputs: [input.name] }
|
|
39
|
+
: { ...declared, inputs: [...declared.inputs, input.name] };
|
|
40
|
+
}
|
|
41
|
+
return declared?.currency === 'Coin' ? { currency: 'Coin' } : undefined;
|
|
42
|
+
}
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The
|
|
3
|
-
* threads read them: the field list and its order (the lane row's columns after
|
|
4
|
-
* on OPTION_UNDERLYING_STATS (kiyotaka-go `OptionUnderlyingStats`, protobuf-es
|
|
5
|
-
* refusal. The lane files (main thread), the K
|
|
2
|
+
* The underlying options statistics classes (UW-PARITY sources S5a `option_daily` and S5b `option_stats_10m`, on every
|
|
3
|
+
* chain since OPTIONS-PORT P5) as both threads read them: the field list and its order (the lane row's columns after
|
|
4
|
+
* the stamp), each field's point field on OPTION_UNDERLYING_STATS (kiyotaka-go `OptionUnderlyingStats`, protobuf-es
|
|
5
|
+
* names), the K types, the acquisition's chain fields and the named refusal. The lane files (main thread), the K
|
|
6
|
+
* control and its worker twin read this one table.
|
|
6
7
|
*
|
|
7
|
-
* The rows (tsdb-gateway `option_underlying_stats.go
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* says it is not sampled).
|
|
8
|
+
* The rows (tsdb-gateway `option_underlying_stats.go`, the option-underlying-stats cjob): one book per bucket, a
|
|
9
|
+
* row's symbol its book, filed by the chain's exchange and underlying (the OPRA ticker, the CME futures contract, a
|
|
10
|
+
* crypto venue's root coin), at DAY (a session date stamped at its UTC midnight: OPRA's New York session written
|
|
11
|
+
* after the close, a crypto venue's UTC day, a CME settlement) or TEN_MINUTES (for the underlyings the plane samples:
|
|
12
|
+
* any other answers no row, which is how the data plane says it is not sampled). A one-book read names the exchange,
|
|
13
|
+
* the underlying and the book; an OPRA read names no book, as it always has (contract C1).
|
|
14
|
+
*
|
|
15
|
+
* Units (contract C3): volatilities in percentage points, exposures in USD, walls and levels as prices; volume and
|
|
16
|
+
* open interest in coin on a crypto chain and in contracts on OPRA and CME; premium in USD, and no value on a crypto
|
|
17
|
+
* or CME chain until their print rows exist (the row leaves it unset, which reads as no value).
|
|
12
18
|
*
|
|
13
19
|
* Import-free: a lane file stays light at module load and the worker twin reads it too.
|
|
14
20
|
*/
|
|
15
21
|
/** The fields, in the kit's order (om `WRUN_OPTION_STATS_FIELDS`); field i is lane row column i + 1. `coin` is the
|
|
16
|
-
* underlying as a symbol code (`encodeSymbol`), the rest the row's own values. */
|
|
22
|
+
* chain's underlying as a symbol code (`encodeSymbol`), the rest the row's own values. */
|
|
17
23
|
export declare const WRUN_OPTION_STATS_FIELDS: readonly ["coin", "underlying_price", "atm_iv_1d", "atm_iv_5d", "atm_iv_7d", "atm_iv_14d", "atm_iv_30d", "atm_iv_60d", "atm_iv_90d", "atm_iv_180d", "atm_iv_365d", "rr25_30d", "call_volume", "put_volume", "call_premium", "put_premium", "call_oi", "put_oi", "net_gex", "net_dex", "net_vex", "net_charm", "net_vanna", "front_net_gex", "call_wall", "put_wall", "gamma_flip", "gamma_magnet", "max_pain_front", "implied_move_front", "n_contracts"];
|
|
18
24
|
export type WrunOptionStatsField = (typeof WRUN_OPTION_STATS_FIELDS)[number];
|
|
19
25
|
/** Each value field's point field (the series module's decoded column); `coin` is the read's own underlying. */
|
|
@@ -28,3 +34,16 @@ export declare const WRUN_OPTION_STATS_KTYPES: Readonly<Record<WrunOptionStatsGr
|
|
|
28
34
|
export declare const WRUN_OPTION_STATS_INTERVALS: Readonly<Record<WrunOptionStatsGrain, string>>;
|
|
29
35
|
/** The named refusal of an underlying the data plane samples no ten-minute rows for (U7's configured list). */
|
|
30
36
|
export declare const WRUN_NOT_IN_10M_UNIVERSE_CODE = "not-in-10m-universe";
|
|
37
|
+
/**
|
|
38
|
+
* The fields a stats acquisition names its chain in (the lane's plan, the K control's settings), beside `coin` (the
|
|
39
|
+
* chain's underlying, the key its plane files the rows under):
|
|
40
|
+
* - `statsExchange`: the exchange the chain lists on, on every plane (the instance's plane follows it, and the read
|
|
41
|
+
* names it as its venue);
|
|
42
|
+
* - `statsBook`: the ONE book a one-book read names (the row symbol), on every plane but OPRA, whose read stays by
|
|
43
|
+
* coin with no symbol (contract C1);
|
|
44
|
+
* - `statsContinuous`: the continuous alias a CME chain was read off (its lead contract is `coin`; a roll moves the
|
|
45
|
+
* acquisition).
|
|
46
|
+
*/
|
|
47
|
+
export declare const WRUN_OPTION_STATS_EXCHANGE_FIELD = "statsExchange";
|
|
48
|
+
export declare const WRUN_OPTION_STATS_BOOK_FIELD = "statsBook";
|
|
49
|
+
export declare const WRUN_OPTION_STATS_CONTINUOUS_FIELD = "statsContinuous";
|
|
@@ -1,19 +1,25 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The
|
|
3
|
-
* threads read them: the field list and its order (the lane row's columns after
|
|
4
|
-
* on OPTION_UNDERLYING_STATS (kiyotaka-go `OptionUnderlyingStats`, protobuf-es
|
|
5
|
-
* refusal. The lane files (main thread), the K
|
|
2
|
+
* The underlying options statistics classes (UW-PARITY sources S5a `option_daily` and S5b `option_stats_10m`, on every
|
|
3
|
+
* chain since OPTIONS-PORT P5) as both threads read them: the field list and its order (the lane row's columns after
|
|
4
|
+
* the stamp), each field's point field on OPTION_UNDERLYING_STATS (kiyotaka-go `OptionUnderlyingStats`, protobuf-es
|
|
5
|
+
* names), the K types, the acquisition's chain fields and the named refusal. The lane files (main thread), the K
|
|
6
|
+
* control and its worker twin read this one table.
|
|
6
7
|
*
|
|
7
|
-
* The rows (tsdb-gateway `option_underlying_stats.go
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* says it is not sampled).
|
|
8
|
+
* The rows (tsdb-gateway `option_underlying_stats.go`, the option-underlying-stats cjob): one book per bucket, a
|
|
9
|
+
* row's symbol its book, filed by the chain's exchange and underlying (the OPRA ticker, the CME futures contract, a
|
|
10
|
+
* crypto venue's root coin), at DAY (a session date stamped at its UTC midnight: OPRA's New York session written
|
|
11
|
+
* after the close, a crypto venue's UTC day, a CME settlement) or TEN_MINUTES (for the underlyings the plane samples:
|
|
12
|
+
* any other answers no row, which is how the data plane says it is not sampled). A one-book read names the exchange,
|
|
13
|
+
* the underlying and the book; an OPRA read names no book, as it always has (contract C1).
|
|
14
|
+
*
|
|
15
|
+
* Units (contract C3): volatilities in percentage points, exposures in USD, walls and levels as prices; volume and
|
|
16
|
+
* open interest in coin on a crypto chain and in contracts on OPRA and CME; premium in USD, and no value on a crypto
|
|
17
|
+
* or CME chain until their print rows exist (the row leaves it unset, which reads as no value).
|
|
12
18
|
*
|
|
13
19
|
* Import-free: a lane file stays light at module load and the worker twin reads it too.
|
|
14
20
|
*/
|
|
15
21
|
/** The fields, in the kit's order (om `WRUN_OPTION_STATS_FIELDS`); field i is lane row column i + 1. `coin` is the
|
|
16
|
-
* underlying as a symbol code (`encodeSymbol`), the rest the row's own values. */
|
|
22
|
+
* chain's underlying as a symbol code (`encodeSymbol`), the rest the row's own values. */
|
|
17
23
|
export const WRUN_OPTION_STATS_FIELDS = Object.freeze([
|
|
18
24
|
'coin',
|
|
19
25
|
'underlying_price',
|
|
@@ -94,3 +100,16 @@ export const WRUN_OPTION_STATS_INTERVALS = Object.freeze({
|
|
|
94
100
|
});
|
|
95
101
|
/** The named refusal of an underlying the data plane samples no ten-minute rows for (U7's configured list). */
|
|
96
102
|
export const WRUN_NOT_IN_10M_UNIVERSE_CODE = 'not-in-10m-universe';
|
|
103
|
+
/**
|
|
104
|
+
* The fields a stats acquisition names its chain in (the lane's plan, the K control's settings), beside `coin` (the
|
|
105
|
+
* chain's underlying, the key its plane files the rows under):
|
|
106
|
+
* - `statsExchange`: the exchange the chain lists on, on every plane (the instance's plane follows it, and the read
|
|
107
|
+
* names it as its venue);
|
|
108
|
+
* - `statsBook`: the ONE book a one-book read names (the row symbol), on every plane but OPRA, whose read stays by
|
|
109
|
+
* coin with no symbol (contract C1);
|
|
110
|
+
* - `statsContinuous`: the continuous alias a CME chain was read off (its lead contract is `coin`; a roll moves the
|
|
111
|
+
* acquisition).
|
|
112
|
+
*/
|
|
113
|
+
export const WRUN_OPTION_STATS_EXCHANGE_FIELD = 'statsExchange';
|
|
114
|
+
export const WRUN_OPTION_STATS_BOOK_FIELD = 'statsBook';
|
|
115
|
+
export const WRUN_OPTION_STATS_CONTINUOUS_FIELD = 'statsContinuous';
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { type WrunOptionsStopReason, type WrunRefusalGatePlane } from './wrun-refusal.util.js';
|
|
2
|
+
/** A lane a stop reason kept from its read: it degrades under its own name, terminally, in the reason's record. */
|
|
3
|
+
export declare class WrunLaneStoppedError extends Error {
|
|
4
|
+
readonly reason: WrunOptionsStopReason;
|
|
5
|
+
readonly plane: WrunRefusalGatePlane;
|
|
6
|
+
constructor(reason: WrunOptionsStopReason, plane: WrunRefusalGatePlane, lane: string);
|
|
7
|
+
}
|
|
8
|
+
export declare function isWrunLaneStoppedError(error: unknown): error is WrunLaneStoppedError;
|
|
9
|
+
/**
|
|
10
|
+
* The plane a run's rejection says another screen holds the session of (its record, else its seed, is
|
|
11
|
+
* `options-stopped` / `session-elsewhere`: a hold on a stopped lane, or a chain the plan stopped before any read),
|
|
12
|
+
* read from the typed record, never from the words; undefined for any other rejection.
|
|
13
|
+
*/
|
|
14
|
+
export declare function wrunSessionStopPlaneOf(error: unknown): WrunRefusalGatePlane | undefined;
|
|
15
|
+
/** The planned lanes a run may dispatch, as the gate planes they read are judged. */
|
|
16
|
+
export interface WrunGateLaneFacts {
|
|
17
|
+
/** The poll lane instances (a chain lane's payload extras name the plane of its chain). */
|
|
18
|
+
pollLanes: ReadonlyArray<{
|
|
19
|
+
key: string;
|
|
20
|
+
laneKey: string;
|
|
21
|
+
extras?: Readonly<Record<string, unknown>>;
|
|
22
|
+
}>;
|
|
23
|
+
rowLanes: ReadonlyArray<{
|
|
24
|
+
key: string;
|
|
25
|
+
laneKey: string;
|
|
26
|
+
extras: Readonly<Record<string, unknown>>;
|
|
27
|
+
}>;
|
|
28
|
+
/** The options chain lane's payload extras (its `chainVenue` names the plane of a governed chain). */
|
|
29
|
+
optionsChainExtras?: Readonly<Record<string, unknown>>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* The gate plane each lane of a run reads, by lane id: an OPRA poll lane (`opra`) and a governed row lane read OPRA;
|
|
33
|
+
* a chain lane of either kind reads the plane its instance's chain lists on (OPRA, CME, or none for a crypto chain);
|
|
34
|
+
* the options chain lane the plane of its governed chain. A lane on no gate plane is absent.
|
|
35
|
+
*/
|
|
36
|
+
export declare function wrunLaneGatePlanes(facts: WrunGateLaneFacts): Map<string, WrunRefusalGatePlane>;
|
|
37
|
+
/**
|
|
38
|
+
* A run's lane thunks with every lane on a plane another screen holds (`heldElsewhere`, read at dispatch) answering
|
|
39
|
+
* at once with the typed stop instead of its read. Thunks are the run's shape: the builtin lanes by name (a function
|
|
40
|
+
* or undefined), and the lists of `[lane id, thunk]` pairs (trades legs, poll lanes, row lanes). Everything else is
|
|
41
|
+
* returned as it is.
|
|
42
|
+
*/
|
|
43
|
+
export declare function wrunGateLatchedThunks<T extends object>(thunks: T, planes: ReadonlyMap<string, WrunRefusalGatePlane>, heldElsewhere: (plane: WrunRefusalGatePlane) => boolean): T;
|
|
44
|
+
/**
|
|
45
|
+
* The session stop a degraded lane reads: its typed stop (the latch held at dispatch), or a lane on a plane another
|
|
46
|
+
* screen holds NOW (the latch came while its read was in flight, so the read waited out its budget for nothing).
|
|
47
|
+
* Undefined for every other degrade.
|
|
48
|
+
*/
|
|
49
|
+
export declare function wrunLaneGateStopOf(lane: string, error: unknown, planes: ReadonlyMap<string, WrunRefusalGatePlane>, heldElsewhere: (plane: WrunRefusalGatePlane) => boolean): {
|
|
50
|
+
reason: 'session-elsewhere';
|
|
51
|
+
plane: WrunRefusalGatePlane;
|
|
52
|
+
} | undefined;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The run pass's half of the options stop reasons (`options-stopped`, wrun-refusal.util `WrunOptionsStopReason`): the
|
|
3
|
+
* reason a run learns as it dispatches its lanes, read from the point that already knows it, never from an error's
|
|
4
|
+
* text. The flag check and the plane router reach the planners as `opraPlaneStop` (opra-options-gate.util
|
|
5
|
+
* `opraOptionPlaneStop`) before any of this.
|
|
6
|
+
*
|
|
7
|
+
* `session-elsewhere`, from the gate's close verdict (gate-session-latch.util): a lane reading a gate plane whose one
|
|
8
|
+
* session another screen holds is never sent (its reader dials nothing until the session is taken back), so it
|
|
9
|
+
* answers at once with `WrunLaneStoppedError` (`wrunGateLatchedThunks`) instead of waiting out its budget and reading
|
|
10
|
+
* "did not load in time; retrying". A lane already in flight when the latch came reads the same stop
|
|
11
|
+
* (`wrunLaneGateStopOf`). Either way the lane degrades with no retry ladder: only the take-back helps.
|
|
12
|
+
*
|
|
13
|
+
* Light at module load: the lane registries' lookups and pure helpers (the latch is read through the caller's
|
|
14
|
+
* `heldElsewhere`, gate-session-latch.util `gateSessionHeldElsewhere` in the run).
|
|
15
|
+
*/
|
|
16
|
+
import { wrunPollLaneByKey } from './sources/registry.js';
|
|
17
|
+
import { wrunRowLaneByKey } from './sources/row-lane-registry.js';
|
|
18
|
+
import { wrunPollLaneChainPlane } from './sources/wrun-poll-lanes.util.js';
|
|
19
|
+
import { wrunRowLaneChainPlane } from './sources/wrun-row-lanes.util.js';
|
|
20
|
+
import { wrunRefusalOf, wrunRefusalSeedOf, } from './wrun-refusal.util.js';
|
|
21
|
+
/** A lane a stop reason kept from its read: it degrades under its own name, terminally, in the reason's record. */
|
|
22
|
+
export class WrunLaneStoppedError extends Error {
|
|
23
|
+
reason;
|
|
24
|
+
plane;
|
|
25
|
+
constructor(reason, plane, lane) {
|
|
26
|
+
super(reason === 'session-elsewhere'
|
|
27
|
+
? `wrun source lane '${lane}' was not asked: another screen holds the ${plane.toUpperCase()} data session, so this tab sends no read of the plane until the session is taken back here`
|
|
28
|
+
: `wrun source lane '${lane}' stopped (${reason})`);
|
|
29
|
+
this.name = 'WrunLaneStoppedError';
|
|
30
|
+
this.reason = reason;
|
|
31
|
+
this.plane = plane;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export function isWrunLaneStoppedError(error) {
|
|
35
|
+
return error instanceof WrunLaneStoppedError;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The plane a run's rejection says another screen holds the session of (its record, else its seed, is
|
|
39
|
+
* `options-stopped` / `session-elsewhere`: a hold on a stopped lane, or a chain the plan stopped before any read),
|
|
40
|
+
* read from the typed record, never from the words; undefined for any other rejection.
|
|
41
|
+
*/
|
|
42
|
+
export function wrunSessionStopPlaneOf(error) {
|
|
43
|
+
const refusal = wrunRefusalOf(error) ?? wrunRefusalSeedOf(error);
|
|
44
|
+
if (refusal?.cls !== 'options-stopped' || refusal.variant !== 'session-elsewhere')
|
|
45
|
+
return undefined;
|
|
46
|
+
return refusal.out?.kind === 'take-session' ? refusal.out.plane : undefined;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The gate plane each lane of a run reads, by lane id: an OPRA poll lane (`opra`) and a governed row lane read OPRA;
|
|
50
|
+
* a chain lane of either kind reads the plane its instance's chain lists on (OPRA, CME, or none for a crypto chain);
|
|
51
|
+
* the options chain lane the plane of its governed chain. A lane on no gate plane is absent.
|
|
52
|
+
*/
|
|
53
|
+
export function wrunLaneGatePlanes(facts) {
|
|
54
|
+
const planes = new Map();
|
|
55
|
+
for (const instance of facts.pollLanes) {
|
|
56
|
+
const lane = wrunPollLaneByKey(instance.laneKey);
|
|
57
|
+
if (lane === undefined)
|
|
58
|
+
continue;
|
|
59
|
+
if (lane.opra === true) {
|
|
60
|
+
planes.set(instance.key, 'opra');
|
|
61
|
+
continue;
|
|
62
|
+
}
|
|
63
|
+
const plane = wrunPollLaneChainPlane(lane, instance.extras ?? {});
|
|
64
|
+
if (plane === 'opra' || plane === 'cme')
|
|
65
|
+
planes.set(instance.key, plane);
|
|
66
|
+
}
|
|
67
|
+
for (const instance of facts.rowLanes) {
|
|
68
|
+
const lane = wrunRowLaneByKey(instance.laneKey);
|
|
69
|
+
if (lane === undefined)
|
|
70
|
+
continue;
|
|
71
|
+
if (lane.governed === 'opra') {
|
|
72
|
+
planes.set(instance.key, 'opra');
|
|
73
|
+
continue;
|
|
74
|
+
}
|
|
75
|
+
const plane = wrunRowLaneChainPlane(lane, instance.extras);
|
|
76
|
+
if (plane === 'opra' || plane === 'cme')
|
|
77
|
+
planes.set(instance.key, plane);
|
|
78
|
+
}
|
|
79
|
+
const chainVenue = facts.optionsChainExtras?.chainVenue;
|
|
80
|
+
if (chainVenue === 'opra' || chainVenue === 'cme')
|
|
81
|
+
planes.set('options_chain', chainVenue);
|
|
82
|
+
return planes;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* A run's lane thunks with every lane on a plane another screen holds (`heldElsewhere`, read at dispatch) answering
|
|
86
|
+
* at once with the typed stop instead of its read. Thunks are the run's shape: the builtin lanes by name (a function
|
|
87
|
+
* or undefined), and the lists of `[lane id, thunk]` pairs (trades legs, poll lanes, row lanes). Everything else is
|
|
88
|
+
* returned as it is.
|
|
89
|
+
*/
|
|
90
|
+
export function wrunGateLatchedThunks(thunks, planes, heldElsewhere) {
|
|
91
|
+
if (planes.size === 0)
|
|
92
|
+
return thunks;
|
|
93
|
+
const gated = (lane, run) => {
|
|
94
|
+
const plane = planes.get(lane);
|
|
95
|
+
if (plane === undefined)
|
|
96
|
+
return run;
|
|
97
|
+
return () => heldElsewhere(plane) ? Promise.reject(new WrunLaneStoppedError('session-elsewhere', plane, lane)) : run();
|
|
98
|
+
};
|
|
99
|
+
const out = { ...thunks };
|
|
100
|
+
for (const [key, value] of Object.entries(out)) {
|
|
101
|
+
if (typeof value === 'function') {
|
|
102
|
+
out[key] = gated(key, value);
|
|
103
|
+
}
|
|
104
|
+
else if (Array.isArray(value)) {
|
|
105
|
+
out[key] = value.map((pair) => Array.isArray(pair) && typeof pair[0] === 'string' && typeof pair[1] === 'function'
|
|
106
|
+
? [pair[0], gated(pair[0], pair[1])]
|
|
107
|
+
: pair);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return out;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* The session stop a degraded lane reads: its typed stop (the latch held at dispatch), or a lane on a plane another
|
|
114
|
+
* screen holds NOW (the latch came while its read was in flight, so the read waited out its budget for nothing).
|
|
115
|
+
* Undefined for every other degrade.
|
|
116
|
+
*/
|
|
117
|
+
export function wrunLaneGateStopOf(lane, error, planes, heldElsewhere) {
|
|
118
|
+
if (isWrunLaneStoppedError(error) && error.reason === 'session-elsewhere') {
|
|
119
|
+
return { reason: 'session-elsewhere', plane: error.plane };
|
|
120
|
+
}
|
|
121
|
+
const plane = planes.get(lane);
|
|
122
|
+
return plane !== undefined && heldElsewhere(plane) ? { reason: 'session-elsewhere', plane } : undefined;
|
|
123
|
+
}
|