@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
package/dist/host-env.d.ts
CHANGED
|
@@ -10,11 +10,19 @@
|
|
|
10
10
|
* bundle that splits it, a spec that resets its module registry) reads the one the realm's entry set.
|
|
11
11
|
*/
|
|
12
12
|
import type * as WrunKitHost from '@orangecharts/indicator-kit/host';
|
|
13
|
-
import type { WrunChartPaintOptions, WrunChartPaintTarget, WrunChartStoreModule, WrunDeribitOptionsModule, WrunFeedStreamApi, WrunFeedsServiceModule, WrunHostOverlayRef, WrunIntegrateOptions, WrunIntegrateResult, WrunKitModule, WrunKScriptErrorEnvelopeModule, WrunMetadataServiceModule, WrunOptionChainServiceModule, WrunOptionsChainVenuesModule, WrunOptionsChartSourceModule, WrunOptionsGateModule, WrunOverlayLifecycleDoorModule, WrunPackEnsureInput, WrunPackEnsureResult, WrunPlotGateChart, WrunPlotGateRefusal, WrunPriceMarkerTarget, WrunRefreshRowsOptions, WrunRefreshRowsResult, WrunRefusalSurfaceModule, WrunSeriesStreamModule, WrunSocketChartRows, WrunSocketLoadSignals, WrunSocketTransport, WrunTitanChartsModule } from './host-ports.types.js';
|
|
13
|
+
import type { WrunAttemptOutcome, WrunAttemptStageMs, WrunAttemptToken, WrunChartHandle, WrunChartModeModule, WrunChartPaintMode, WrunChartPaintOptions, WrunChartPaintTarget, WrunChartRoutingModule, WrunChartStoreModule, WrunChartStoreView, WrunCommonStoreModule, WrunConsoleRefusalRun, WrunContinuousContractsModule, WrunContrastGuardContext, WrunDataFetchingModule, WrunDeclaredDepthAsk, WrunDeribitOptionsModule, WrunEditorShellModule, WrunEndOfDataMarkerReason, WrunEngineWorker, WrunEngineWorkerOptions, WrunFailureShow, WrunFeedStreamApi, WrunFeedsServiceModule, WrunHiddenLiveDrainOutcome, WrunHostOverlayRef, WrunIndicatorRegistryModule, WrunIndicatorTypesModule, WrunInputRequirement, WrunIntegrateOptions, WrunIntegrateResult, WrunKitModule, WrunKScriptErrorEnvelopeModule, WrunLegendHoverModule, WrunLiveCoalesceFlush, WrunLiveCoalesceTickDecision, WrunLiveFeedServiceModule, WrunLiveRefreshGateDecision, WrunMarketEventsStoreModule, WrunMetadataServiceModule, WrunOffchartGridHeightsModule, WrunOptionChainServiceModule, WrunOptionsChainVenuesModule, WrunOptionsChartSourceModule, WrunOptionsGateModule, WrunOptionsOverlayProvenanceModule, WrunOverlayLifecycleDoorModule, WrunOverlayMeasureResult, WrunPackEnsureInput, WrunPackEnsureResult, WrunPaneBudgetRankingModule, WrunPlotGateChart, WrunPlotGateRefusal, WrunPriceMarkerTarget, WrunRefreshRowsOptions, WrunRefreshRowsResult, WrunRefusalActionsModule, WrunRefusalSurfaceModule, WrunSearchPayloadToMarketsRequestModule, WrunSeriesStreamModule, WrunSignalSheetView, WrunSignalSoundCheck, WrunSocketChartRows, WrunSocketLoadSignals, WrunSocketTransport, WrunSocketTransportModule, WrunSourceCountMetadataLike, WrunSourceDegradeEntry, WrunSourceFetchOptions, WrunStandInTarget, WrunStandInWriteArgs, WrunStandInWriteOutcome, WrunSymbolDisplayModule, WrunTitanChartsModule, WrunTpoBlockCatalogModule, WrunTwinsRosterModule, WrunV2ServiceModule, WrunVenueLegsArgs, WrunVenueLegsResult, WrunWarmupBackfillAsk, WrunWarmupBackfillOutcome } from './host-ports.types.js';
|
|
14
|
+
import type { CmeServedAccess } from './interfaces/cme-realtime.interface.js';
|
|
15
|
+
import type { WrunDrawSkips, WrunOutputRow } from './interfaces/wrun-runtime.interface.js';
|
|
16
|
+
import type { WrunLatestSnapshot } from './utility/wrun/wrun-latest-snapshot.js';
|
|
17
|
+
import type { WrunRefusalContext, WrunRefusalOut } from './utility/wrun/wrun-refusal.util.js';
|
|
14
18
|
/** CHANGED 0.3.0: the shared host names package code reads at run time (slab 1's 11 plus the ones the Phase 1 and
|
|
15
19
|
* Phase 2 move sets read; kit 0.80.0's host entry exports every one). The app hands the kit's host entry; web hands
|
|
16
|
-
* its seam src/utility/wrun/wrun-shared-host.ts (it re-exports every one).
|
|
17
|
-
|
|
20
|
+
* its seam src/utility/wrun/wrun-shared-host.ts (it re-exports every one).
|
|
21
|
+
* CHANGED 0.5.0: + 'prepareModuleBytes' (utility/wrun/wrun-host.service.ts:406-408), 'wrunLaneGatedOff'
|
|
22
|
+
* (wrun-chart-market-facts.util.ts:578), 'wrunLegCandleOpenMs' (wrun-live-tick.util.ts:3633), 'WRUN_STATS_STRIP_WORDS'
|
|
23
|
+
* (wrun-stats-strip.util.ts, moved whole by U5a). Kit 0.86.3's host entry exports all four; web's seam
|
|
24
|
+
* src/utility/wrun/wrun-shared-host.ts re-exports all four. 58 names. */
|
|
25
|
+
export type WrunSharedHostModule = Pick<typeof WrunKitHost, 'decodeWrunHostedWire' | 'WRUN_HOST_CELL_TUPLE_WIDTHS' | 'WRUN_MAX_SHAPE_OFFSET_BARS' | 'WRUN_MINICHARTS_LABEL_MAX_CHARS' | 'WRUN_MINICHARTS_MAX_BARS' | 'WRUN_MINICHARTS_MAX_PANELS' | 'WRUN_MINICHARTS_TITLE_MAX_CHARS' | 'WRUN_STRATEGY_SHEET_FIELDS' | 'wrunMiniChartGridPayload' | 'wrunShapeEdgeTs' | 'wrunStrategyWireBytes' | 'WRUN_CANDLES_FORMING_OPEN_VIEW' | 'WRUN_CANDLES_FORMING_VIEW' | 'WRUN_CANDLE_CLASSES' | 'WRUN_FEED_HOST_CAP' | 'WRUN_HOST_ABI_TABLES' | 'WRUN_HOST_PROFILES' | 'WRUN_MARKET_KIND_STOCK' | 'WRUN_MARKET_ZONE_NEW_YORK' | 'WRUN_MAX_LEG_BARS' | 'WRUN_MAX_LEG_OFFSET' | 'WRUN_OPTIONS_VENUES_HOST_CAP' | 'WRUN_PIN_SYMBOL_LITERAL_CODE' | 'WRUN_SECTION_KINDS' | 'WrunStrategyHost' | 'WrunStrategyRefusalError' | 'adaptWrunCells' | 'advanceWrunCarry' | 'alignWrunRows' | 'alignWrunTailRows' | 'cloneWrunInputCarry' | 'cmeSessionBarEndMs' | 'cmeSessionBarOpenMs' | 'cmeSessionBucketMs' | 'emptyWrunInputCarry' | 'isCmeSessionLatticeExchange' | 'isCmeSessionLatticeIntervalMs' | 'planWrunRun' | 'regularWindowClose' | 'resolveWrunStrategySheet' | 'wrunCalendarOfVenue' | 'wrunCelledLegCheck' | 'wrunLegCandleCloseMs' | 'wrunLegFetchStart' | 'wrunLegRowBoundsMs' | 'wrunMarketLegCandleClose' | 'wrunParamValueRefusal' | 'wrunPinSymbolLiteral' | 'wrunPinVenueRefused' | 'wrunPinVenueRefusedMessage' | 'wrunRefusalMessage' | 'wrunServedLegStart' | 'wrunSessionClock' | 'wrunUsEquitiesSession' | 'prepareModuleBytes' | 'wrunLaneGatedOff' | 'wrunLegCandleOpenMs' | 'WRUN_STATS_STRIP_WORDS'>;
|
|
18
26
|
/** The kit main entry's tables package code reads (web: src/utility/wrun/wrun-kit.ts `wrunIndicatorKit`); either may be
|
|
19
27
|
* absent on an older kit, so both stay unknown and are checked where read. */
|
|
20
28
|
export interface WrunKitMainModule {
|
|
@@ -87,12 +95,44 @@ export interface WrunChartHostDiagnostics {
|
|
|
87
95
|
publishPlotGateNotice(tc: WrunPlotGateChart, overlayId: string, refusals: ReadonlyArray<WrunPlotGateRefusal>): void;
|
|
88
96
|
/** Reserved until 0.5.0, boot. web: import.meta.env.DEV (the package never reads import.meta). */
|
|
89
97
|
readonly devBuild: boolean;
|
|
98
|
+
/** 0.5.0, run. web: recordOverlayPerfSample(id, ms, options) (utility/chart/overlay-execution-guard.ts:496). */
|
|
99
|
+
recordPerfSample(id: string, ms: number, options?: {
|
|
100
|
+
live?: boolean;
|
|
101
|
+
}): void;
|
|
102
|
+
/** 0.5.0, run. web: liveWrunAttemptToken(chartIndex, indicatorId) (utility/chart/wrun-attempt-envelope.util.ts:321). */
|
|
103
|
+
liveAttemptToken(chartIndex: number, indicatorId: string): WrunAttemptToken | null;
|
|
104
|
+
/** 0.5.0, run. web: markWrunAttemptRunStart(token) (same file :280). */
|
|
105
|
+
markAttemptRunStart(token: WrunAttemptToken | null): void;
|
|
106
|
+
/** 0.5.0, run. web: noteWrunAttemptStageMs(token, stage, ms) (same file :276). */
|
|
107
|
+
noteAttemptStageMs(token: WrunAttemptToken | null, stage: keyof WrunAttemptStageMs, ms: number): void;
|
|
108
|
+
/** 0.5.0, run. web: settleWrunAttempt(token, outcome) (same file :296). */
|
|
109
|
+
settleAttempt(token: WrunAttemptToken | null | undefined, outcome: WrunAttemptOutcome): void;
|
|
110
|
+
/** 0.5.0, boot. web: registerMemoryCensusCacheProvider(name, provider) (utility/chart/memory-census.util.ts:101; the
|
|
111
|
+
* executor calls it at its first census write, R3). */
|
|
112
|
+
registerMemoryProvider(name: string, provider: () => Record<string, unknown>): void;
|
|
113
|
+
/** 0.5.0, boot. web: reportWrunFailureShown(show) (utils/analyticsEvents.ts:808; the refusal surface :161, :204 and
|
|
114
|
+
* the inert legend read the visibility moment synchronously). */
|
|
115
|
+
reportFailureShown(show: WrunFailureShow): void;
|
|
116
|
+
/** 0.5.0, boot. web: import.meta.env.DEV && isRigLiveTraceArmed() (utility/rig/rig-live-trace.util.ts:151), bound
|
|
117
|
+
* DEV-gated so a production build folds it to false and drops the rig module (the live tick's ten gates, R3). */
|
|
118
|
+
rigLiveTraceArmed(): boolean;
|
|
119
|
+
/** 0.5.0, boot. web: noteRigLiveTrace(kind, fields) (same file :125), bound behind import.meta.env.DEV; called only
|
|
120
|
+
* after rigLiveTraceArmed() answered true. */
|
|
121
|
+
noteRigLiveTrace(kind: string, fields: Record<string, unknown>): void;
|
|
122
|
+
/** 0.5.0, executor. web: noteWrunRegistryRun(chartIndex, overlayId, settings) (utility/wrun/wrun-seen-note.util.ts:33). */
|
|
123
|
+
noteRegistryRun(chartIndex: number, overlayId: string, settings: unknown): void;
|
|
124
|
+
/** 0.5.0, executor. web: publishWrunSkippedNotice(chartIndex, indicatorId, skips) (utility/wrun/wrun-skipped-notice.util.ts:122;
|
|
125
|
+
* a sync call answering the Promise the executor awaits at :5762, :6642). */
|
|
126
|
+
publishSkippedNotice(chartIndex: number, indicatorId: string, skips: WrunDrawSkips | undefined): Promise<void>;
|
|
90
127
|
}
|
|
91
128
|
/** What the layer reads from its host. */
|
|
92
129
|
export interface WrunChartHostEnv {
|
|
93
130
|
/** A user-facing string by its locale key (web: the i18n plugin). Reserved until 0.4.0 (the panel mount's legend
|
|
94
|
-
* words).
|
|
95
|
-
|
|
131
|
+
* words). CHANGED 0.5.0: + `plural` (vue-i18n's third argument). web: (key, params, plural) => plural === undefined ?
|
|
132
|
+
* i18n.global.t(key, params ?? {}) : i18n.global.t(key, params ?? {}, plural) (the refusal text's translate,
|
|
133
|
+
* utility/wrun/wrun-refusal-text.util.ts:10-13, passes it for four refusal variants). The worker env keeps its
|
|
134
|
+
* thrower. */
|
|
135
|
+
t(key: string, params?: Record<string, unknown>, plural?: number): string;
|
|
96
136
|
/** Whether the locale holds `key`. Reserved with `t`. */
|
|
97
137
|
te(key: string): boolean;
|
|
98
138
|
/** Load the shared host once (later calls answer the same module; a failed load is not cached). Package code
|
|
@@ -114,10 +154,15 @@ export interface WrunChartHostEnv {
|
|
|
114
154
|
market: WrunHostMarket;
|
|
115
155
|
/** 0.3.0. */
|
|
116
156
|
transport: WrunHostTransport;
|
|
117
|
-
/** 0.3.0, transitional (D-4)
|
|
157
|
+
/** 0.3.0, transitional (D-4). Retired at 0.5.0: every member optional, none called by package code; removed at
|
|
158
|
+
* 0.6.0. */
|
|
118
159
|
run: WrunHostRun;
|
|
119
160
|
/** 0.3.0, reserved until 0.5.0. */
|
|
120
161
|
clock: WrunHostClock;
|
|
162
|
+
/** 0.5.0. */
|
|
163
|
+
ui: WrunHostUi;
|
|
164
|
+
/** 0.5.0. */
|
|
165
|
+
engine: WrunHostEngine;
|
|
121
166
|
}
|
|
122
167
|
/** The mounted chart and the host's chart store, as package code reads and writes them. */
|
|
123
168
|
export interface WrunHostChart {
|
|
@@ -131,7 +176,8 @@ export interface WrunHostChart {
|
|
|
131
176
|
/** 0.3.0, socket web half. web: createWrunSocketLoadSignals(overlay) (same). */
|
|
132
177
|
hostedLoadSignals(overlay: WrunHostOverlayRef): WrunSocketLoadSignals;
|
|
133
178
|
/** Reserved until 0.4.0, boot loader. web: import('@/instances/titan-charts') viewed as { getTC }
|
|
134
|
-
* (wrun-panel-mount.util.ts:1873-1874).
|
|
179
|
+
* (wrun-panel-mount.util.ts:1873-1874). CHANGED 0.5.0 (view widened, host-ports.types.ts): getTC answers the chart
|
|
180
|
+
* handle, and the view gains getTCGroup. */
|
|
135
181
|
loadTitanCharts(): Promise<WrunTitanChartsModule>;
|
|
136
182
|
/** Reserved until 0.4.0, boot loader. web: import('@/utility/wrun/web-ports/panel-mount') (binds the members marked
|
|
137
183
|
* "panel-mount binder"); the app resolves once its own are bound. The door awaits it beside the mount (D-5). */
|
|
@@ -165,6 +211,155 @@ export interface WrunHostChart {
|
|
|
165
211
|
maxWaitMs?: number;
|
|
166
212
|
pollMs?: number;
|
|
167
213
|
}): Promise<number>;
|
|
214
|
+
/** 0.5.0, run. web: getTC(chartIndex) (instances/titan-charts.ts:14181), a static import of the live tick (:162), the
|
|
215
|
+
* executor (:65), the sandbox source (:35) and the factory (:26). */
|
|
216
|
+
instance(chartIndex: number): WrunChartHandle | null;
|
|
217
|
+
/** 0.5.0, run. web: calculatePricePrecision(chartIndex, ovId) (instances/titan-charts.ts:14997; the executor's
|
|
218
|
+
* wrunChartPriceDigits :9468, inside its try). */
|
|
219
|
+
pricePrecision(chartIndex: number, overlayId?: string): number;
|
|
220
|
+
/** 0.5.0, run. web: useChartStore() (store/chart.ts:3792) viewed as WrunChartStoreView; the live tick's static import
|
|
221
|
+
* (:168), read at call time (9 sites). */
|
|
222
|
+
chartStore(): WrunChartStoreView;
|
|
223
|
+
/** 0.5.0, optional, run. web: useCommonStore() (store/common), the go-to-date history flag the live tick's live-chart
|
|
224
|
+
* check reads in the caller's turn (`wrunLiveChartIsLive`, origin/main 70b1623d0a's static import). A host without
|
|
225
|
+
* one reads every chart as live, as the check does when no store answers. */
|
|
226
|
+
commonStore?(): ReturnType<WrunCommonStoreModule['useCommonStore']>;
|
|
227
|
+
/** 0.5.0, run. web: isOverlayBudgetHidden(chartIndex, overlayId) (utility/chart/pane-budget-ranking.util.ts:93; live
|
|
228
|
+
* tick :2324). */
|
|
229
|
+
isOverlayBudgetHidden(chartIndex: number, overlayId: string | undefined): boolean;
|
|
230
|
+
/** 0.5.0, boot loader. web: import('@/utility/chart/pane-budget-ranking.util') viewed as { isOverlayBudgetHidden }
|
|
231
|
+
* (executor :7716). */
|
|
232
|
+
loadPaneBudgetRanking(): Promise<WrunPaneBudgetRankingModule>;
|
|
233
|
+
/** 0.5.0, boot. web: isChartGestureLive(chartIndex) (utility/chart/viewport-pan-tracking.util.ts:319; one argument). */
|
|
234
|
+
isGestureLive(chartIndex: number): boolean;
|
|
235
|
+
/** 0.5.0, panel-mount binder. web: scheduleKScriptLiveChartPaint(chartIndex, tc, getLatestTc, opts)
|
|
236
|
+
* (utility/chart/kscript-chart-paint.util.ts:106; web's live-paint wait map stays the owner, D-2c). */
|
|
237
|
+
scheduleLivePaint(chartIndex: number, tc: WrunChartHandle, getLatestTc?: () => WrunChartHandle | null | undefined, options?: WrunChartPaintOptions): WrunChartPaintMode;
|
|
238
|
+
/** 0.5.0, run. web: decideLocalKScriptLiveRefreshGate(args) (utility/chart/kscript-live-refresh-pace.util.ts:112;
|
|
239
|
+
* kScript's gate maps stay web, D-2c). */
|
|
240
|
+
decideLiveRefreshGate(args: {
|
|
241
|
+
chartIndex: number;
|
|
242
|
+
indicatorId: string;
|
|
243
|
+
}): WrunLiveRefreshGateDecision;
|
|
244
|
+
/** 0.5.0, run. web: noteLocalKScriptLiveRefreshDispatched(chartIndex, indicatorId) (same file :160). */
|
|
245
|
+
noteLiveRefreshDispatched(chartIndex: number, indicatorId: string): void;
|
|
246
|
+
/** 0.5.0, run. web: clearLocalKScriptLiveRefreshGate(chartIndex, indicatorId) (same file :180). */
|
|
247
|
+
clearLiveRefreshGate(chartIndex: number, indicatorId?: string): void;
|
|
248
|
+
/** 0.5.0, run. web: noteLocalKScriptLiveCoalesceTick(args) (same file :325). */
|
|
249
|
+
noteLiveCoalesceTick(args: {
|
|
250
|
+
chartIndex: number;
|
|
251
|
+
indicatorId: string;
|
|
252
|
+
sourceType: string;
|
|
253
|
+
}): WrunLiveCoalesceTickDecision;
|
|
254
|
+
/** 0.5.0, run. web: getLocalKScriptLiveCoalesceHoldMs(chartIndex, indicatorId) (same file :384). */
|
|
255
|
+
liveCoalesceHoldMs(chartIndex: number, indicatorId: string): number;
|
|
256
|
+
/** 0.5.0, run. web: noteLocalKScriptLiveCoalesceFlushed(chartIndex, indicatorId) (same file :411). */
|
|
257
|
+
noteLiveCoalesceFlushed(chartIndex: number, indicatorId: string): WrunLiveCoalesceFlush | undefined;
|
|
258
|
+
/** 0.5.0, run. web: clearLocalKScriptLiveCoalesceWindow(chartIndex, indicatorId) (same file :434). */
|
|
259
|
+
clearLiveCoalesceWindow(chartIndex: number, indicatorId?: string): void;
|
|
260
|
+
/** 0.5.0, run. web: isTripped(id) (utility/chart/overlay-execution-guard.ts:501; the breaker web's kScript shares). */
|
|
261
|
+
isOverlayTripped(id: string): boolean;
|
|
262
|
+
/** 0.5.0, run. web: startMeasure() (same file :467). */
|
|
263
|
+
startOverlayMeasure(): number;
|
|
264
|
+
/** 0.5.0, run. web: endMeasure(id, startedAt, options) (same file :471). */
|
|
265
|
+
endOverlayMeasure(id: string, startedAt: number, options?: {
|
|
266
|
+
sample?: boolean;
|
|
267
|
+
live?: boolean;
|
|
268
|
+
}): WrunOverlayMeasureResult;
|
|
269
|
+
/** 0.5.0, run. web: clearWrunLatestValues(chartIndex, overlayId) (utility/wrun/wrun-hud-state.ts:66; a vue
|
|
270
|
+
* shallowReactive the HUD layer reads, D-2c). */
|
|
271
|
+
clearLatestValues(chartIndex: number, overlayId: string): void;
|
|
272
|
+
/** 0.5.0, run. web: publishWrunLatestValues(chartIndex, overlayId, snapshot) (same file :53). */
|
|
273
|
+
publishLatestValues(chartIndex: number, overlayId: string, snapshot: WrunLatestSnapshot): void;
|
|
274
|
+
/** 0.5.0, run. web: getWrunLatestSnapshot(chartIndex, overlayId) (same file :80). */
|
|
275
|
+
latestSnapshot(chartIndex: number, overlayId: string): WrunLatestSnapshot | undefined;
|
|
276
|
+
/** 0.5.0, run. web: markKScriptSourcesTerminal(guardKey, sourceNames) (utility/chart/kscript-source-degrade.util.ts:328;
|
|
277
|
+
* the registry the chart store and the engine manager share, D-2c). */
|
|
278
|
+
markSourcesTerminal(guardKey: string, sourceNames: readonly string[]): void;
|
|
279
|
+
/** 0.5.0, run. web: attachKScriptSourceRefusal(guardKey, sourceName, refusal) (same file :347). */
|
|
280
|
+
attachSourceRefusal(guardKey: string, sourceName: string, refusal: string): void;
|
|
281
|
+
/** 0.5.0, run. web: kscriptSourceDegradeEntriesFor(guardKey) (same file :433). */
|
|
282
|
+
sourceDegradeEntries(guardKey: string): WrunSourceDegradeEntry[];
|
|
283
|
+
/** 0.5.0, run. web: markKScriptSourceDegraded(guardKey, source, verdict, nowMs) (same file :297). */
|
|
284
|
+
markSourceDegraded(guardKey: string, source: {
|
|
285
|
+
sourceName: string;
|
|
286
|
+
sourceType: string;
|
|
287
|
+
landedBefore?: boolean;
|
|
288
|
+
}, verdict: {
|
|
289
|
+
cause: string;
|
|
290
|
+
retryable: boolean;
|
|
291
|
+
attempt: number;
|
|
292
|
+
terminal?: boolean;
|
|
293
|
+
}, nowMs?: number): void;
|
|
294
|
+
/** 0.5.0, run. web: markKScriptSourcePending(guardKey, source, nowMs) (same file :264). */
|
|
295
|
+
markSourcePending(guardKey: string, source: {
|
|
296
|
+
sourceName: string;
|
|
297
|
+
sourceType: string;
|
|
298
|
+
landedBefore?: boolean;
|
|
299
|
+
}, nowMs?: number): void;
|
|
300
|
+
/** 0.5.0, run. web: markKScriptSourceRecovered(guardKey, sourceName) (same file :355). */
|
|
301
|
+
markSourceRecovered(guardKey: string, sourceName: string): void;
|
|
302
|
+
/** 0.5.0, run. web: onKScriptSourceDegradeChange(listener) (same file :223); answers the unsubscribe. */
|
|
303
|
+
onSourceDegradeChange(listener: (guardKey: string) => void): () => void;
|
|
304
|
+
/** 0.5.0, run. web: guardKScriptRunResultColors(ctx, runResult) (utility/chart/kscript-contrast-guard.util.ts:1100; the
|
|
305
|
+
* lineage maps stay web, D-2c). */
|
|
306
|
+
guardRunResultColors(ctx: WrunContrastGuardContext | null, runResult: unknown): unknown;
|
|
307
|
+
/** 0.5.0, run. web: resolveKScriptOverlayContrastGuard(tc, meta, runResult) (same file :294; tc is unknown on web). */
|
|
308
|
+
resolveContrastGuard(tc: unknown, meta: unknown, runResult?: unknown): WrunContrastGuardContext | null;
|
|
309
|
+
/** 0.5.0, run. web: writeKScriptStandIn(args) (utility/chart/kscript-standin.util.ts:658; the output cache stays web). */
|
|
310
|
+
writeStandIn(args: WrunStandInWriteArgs): WrunStandInWriteOutcome;
|
|
311
|
+
/** 0.5.0, run. web: retractKScriptStandIn(chartIndex, overlayId, reason, tc) (same file :1562). */
|
|
312
|
+
retractStandIn(chartIndex: number, overlayId: string, reason: string, tc?: WrunStandInTarget | null): boolean;
|
|
313
|
+
/** 0.5.0, run. web: endOfDataMarkerReasonAtLoadedEdge(chartIndex) (utility/chart/end-of-data-marker.util.ts:58). */
|
|
314
|
+
endOfDataReasonAtLoadedEdge(chartIndex: number): WrunEndOfDataMarkerReason | null;
|
|
315
|
+
/** 0.5.0, executor. web: askLocalKScriptDeclaredDepthBeforeRun(ask)
|
|
316
|
+
* (utility/chart/local-kscript-warmup-backfill-ask.util.ts:196; first-run depth :106). */
|
|
317
|
+
askDeclaredDepthBeforeRun(ask: WrunDeclaredDepthAsk): WrunWarmupBackfillOutcome | null;
|
|
318
|
+
/** 0.5.0, executor. web: isLocalKScriptWarmupRoundLandedOn(ask) (same file :224). */
|
|
319
|
+
isWarmupRoundLandedOn(ask: Pick<WrunDeclaredDepthAsk, 'chartIndex' | 'indicatorId' | 'tc' | 'chartMeta'>): boolean;
|
|
320
|
+
/** 0.5.0, executor. web: askLocalKScriptWarmupBackfill(ask, attempt) (same file :95). */
|
|
321
|
+
askWarmupBackfill(ask: WrunWarmupBackfillAsk, attempt?: number): WrunWarmupBackfillOutcome | null;
|
|
322
|
+
/** 0.5.0, executor. web: raiseWrunRecordSlotCharge(chartIndex, tc, indicatorId, meta, sheet)
|
|
323
|
+
* (utility/wrun/wrun-slot-charge-restamp.util.ts:34; awaited by the executor :6291). */
|
|
324
|
+
raiseSlotCharge(chartIndex: number, tc: unknown, indicatorId: string, meta: {
|
|
325
|
+
settings?: unknown;
|
|
326
|
+
}, sheet: WrunSourceCountMetadataLike): Promise<void>;
|
|
327
|
+
/** 0.5.0, boot loader. web: import('@/utility/chart/chart-mode.util') viewed as { isIndicatorGatedForFetch }
|
|
328
|
+
* (recovery :180, beside the store and the chart group in loadWrunStoreSide's Promise.all). */
|
|
329
|
+
loadChartMode(): Promise<WrunChartModeModule>;
|
|
330
|
+
/** 0.5.0, boot loader. web: import('@/store/common') viewed as { useCommonStore } (executor :7482). */
|
|
331
|
+
loadCommonStore(): Promise<WrunCommonStoreModule>;
|
|
332
|
+
/** 0.5.0, boot loader. web: import('@/utility/chart/data-fetching.util') viewed as WrunDataFetchingModule (executor
|
|
333
|
+
* :7114, :7188, :10490). */
|
|
334
|
+
loadDataFetching(): Promise<WrunDataFetchingModule>;
|
|
335
|
+
/** 0.5.0, boot loader. web: import('@/utility/chart/chart-routing.util') viewed as { persistChart, resolveChart }
|
|
336
|
+
* (executor :6305, :6421). */
|
|
337
|
+
loadChartRouting(): Promise<WrunChartRoutingModule>;
|
|
338
|
+
/** 0.5.0, boot loader. web: import('@/utility/chart/offchart-grid-heights.util') viewed as
|
|
339
|
+
* { reconcileScriptPaneSideAfterRunResultApply } (executor :6355). */
|
|
340
|
+
loadOffchartGridHeights(): Promise<WrunOffchartGridHeightsModule>;
|
|
341
|
+
/** 0.5.0, boot loader. web: import('@/utility/indicators/options-overlay-provenance.util') viewed as
|
|
342
|
+
* { admittedOpraSources, setOptionsOverlayOpraProvenance } (executor :8753; the cloud OPRA stamp, moved whole). */
|
|
343
|
+
loadOptionsOverlayProvenance(): Promise<WrunOptionsOverlayProvenanceModule>;
|
|
344
|
+
/** 0.5.0, boot loader. web: import('@/indicators/indicator-registry') viewed as { indicatorRegistry } (executor :7699). */
|
|
345
|
+
loadIndicatorRegistry(): Promise<WrunIndicatorRegistryModule>;
|
|
346
|
+
/** 0.5.0, boot loader. web: import('@orangecharts/chart-schema/indicator-types') viewed as { INDICATOR_TYPES }
|
|
347
|
+
* (executor :7700; chart-schema is no package peer). */
|
|
348
|
+
loadIndicatorTypes(): Promise<WrunIndicatorTypesModule>;
|
|
349
|
+
/** 0.5.0, boot loader. web: import('@/indicators/controls/technical-script') for its registration side effect
|
|
350
|
+
* (executor :7702; nothing destructured). */
|
|
351
|
+
loadTechnicalScriptControl(): Promise<unknown>;
|
|
352
|
+
/** 0.5.0, boot loader. web: import('@/utility/wrun/wrun-twins.util') viewed as { wrunTwinOriginalLookbackInfo }
|
|
353
|
+
* (wrun-twin-lookback.util.ts:39, moved whole by U5a). */
|
|
354
|
+
loadTwinsRoster(): Promise<WrunTwinsRosterModule>;
|
|
355
|
+
/** 0.5.0, boot loader. web: import('@/utility/wrun/web-ports/run').then(() => undefined) (binds the members marked
|
|
356
|
+
* "run"; the projection boot.ts:27 uses for loadPanelMountPorts, so the binding is a Promise<void>); the app resolves
|
|
357
|
+
* once its own are bound. A package dynamic import of a module that reads run members sits in one Promise.all with
|
|
358
|
+
* it (rule 1.2). */
|
|
359
|
+
loadRunPorts(): Promise<void>;
|
|
360
|
+
/** 0.5.0, boot loader. web: import('@/utility/wrun/web-ports/executor').then(() => undefined) (binds the members
|
|
361
|
+
* marked "executor", and loads run.ts and panel-mount.ts; projected like loadRunPorts); paired like loadRunPorts. */
|
|
362
|
+
loadExecutorPorts(): Promise<void>;
|
|
168
363
|
}
|
|
169
364
|
/** The signed-in person's switches and settings. */
|
|
170
365
|
export interface WrunHostUser {
|
|
@@ -177,6 +372,14 @@ export interface WrunHostUser {
|
|
|
177
372
|
/** Reserved until 0.4.0, panel-mount binder. web: chartDisplayTimezoneOffsetMs(barIntervalMs)
|
|
178
373
|
* (utility/chart/chart-display-timezone.util.ts:32; it reads the user store). */
|
|
179
374
|
chartDisplayTimezoneOffsetMs(barIntervalMs?: number): number;
|
|
375
|
+
/** 0.5.0, boot. web: useUserStore().settings?.isDarkMode (store/user.ts; the executor keeps its try and typeof check,
|
|
376
|
+
* :9631-9638). */
|
|
377
|
+
isDarkMode(): unknown;
|
|
378
|
+
/** 0.5.0, run. web: kscriptStandInAccount() (utility/chart/kscript-standin-account.util.ts:16; reads store/jwt). */
|
|
379
|
+
standInAccount(): string;
|
|
380
|
+
/** 0.5.0, run. web: technicalScriptThemeLines(isDarkMode, themeMode, chartMetadata)
|
|
381
|
+
* (utility/chart/builtin-script-theme-palette.util.ts:370; executor :9616). */
|
|
382
|
+
themeLines(isDarkMode: boolean | undefined, themeMode: string | undefined, chartMetadata: unknown): string[];
|
|
180
383
|
}
|
|
181
384
|
/** Market reference data the host's directories answer. */
|
|
182
385
|
export interface WrunHostMarket {
|
|
@@ -204,6 +407,30 @@ export interface WrunHostMarket {
|
|
|
204
407
|
* default: { resolveChainContract } } (sources/opra-option-lanes.util.ts `readWrunLaneChainSeries`, the `auto` book's
|
|
205
408
|
* directory read, and `resolveWrunLaneChainChart`, a continuous CME chart's lead contract). */
|
|
206
409
|
loadOptionChainService(): Promise<WrunOptionChainServiceModule>;
|
|
410
|
+
/** 0.5.0, boot loader. web: import('@/services/continuous-contracts.service') viewed as { default: { getResolvedLead } }
|
|
411
|
+
* (executor :8817). */
|
|
412
|
+
loadContinuousContracts(): Promise<WrunContinuousContractsModule>;
|
|
413
|
+
/** 0.5.0, boot loader. web: import('@/indicators/controls/tpo-block-size.util') viewed as { peekTpoBlockSize,
|
|
414
|
+
* loadTpoBlockSize } (executor :9161). */
|
|
415
|
+
loadTpoBlockCatalog(): Promise<WrunTpoBlockCatalogModule>;
|
|
416
|
+
/** 0.5.0, boot loader. web: import('@/utility/symbol-selection/searchPayloadToMarketsRequest') viewed as
|
|
417
|
+
* { normalizeMarketSymbols } (chart-market-facts :710). */
|
|
418
|
+
loadSearchPayloadToMarketsRequest(): Promise<WrunSearchPayloadToMarketsRequestModule>;
|
|
419
|
+
/** 0.5.0, boot loader. web: import('@/store/market-events') viewed as { useMarketEventsStore } (earnings facts :135). */
|
|
420
|
+
loadMarketEventsStore(): Promise<WrunMarketEventsStoreModule>;
|
|
421
|
+
/** 0.5.0, boot loader. web: import('@/utility/symbol-display.util') viewed as { resolveChartSymbolData }
|
|
422
|
+
* (chart-context-names :179). */
|
|
423
|
+
loadSymbolDisplay(): Promise<WrunSymbolDisplayModule>;
|
|
424
|
+
/** 0.5.0, boot. web: useCmeRealtimeStore().servedAccessForExchange(exchange) (store/cme-realtime.ts:230; read by the
|
|
425
|
+
* draft legend note :47, moved whole by L2-0). */
|
|
426
|
+
cmeServedAccess(exchange: string | undefined | null): CmeServedAccess;
|
|
427
|
+
/** 0.5.0, executor. web: resolveVenueLegs(args) (utility/indicators/venue-legs.util.ts:123; awaited by the executor
|
|
428
|
+
* :8872). */
|
|
429
|
+
resolveVenueLegs(args: WrunVenueLegsArgs): Promise<WrunVenueLegsResult>;
|
|
430
|
+
/** 0.5.0, run. web: wrunSwitchTargetFor(reqs, chart, opts) (utility/wrun/wrun-input-requirements.util.ts:920). */
|
|
431
|
+
switchTargetFor(reqs: readonly WrunInputRequirement[], chart: WrunRefusalContext['chart'], opts: {
|
|
432
|
+
official: boolean;
|
|
433
|
+
}): WrunRefusalOut;
|
|
207
434
|
}
|
|
208
435
|
/** Rows over the wire: the relay, the cloud socket, the kit's main entry, the error envelope. */
|
|
209
436
|
export interface WrunHostTransport {
|
|
@@ -228,25 +455,87 @@ export interface WrunHostTransport {
|
|
|
228
455
|
* Promise.all of feed-stream.service and feeds.service, answered as the three functions it then calls
|
|
229
456
|
* synchronously (`feedStreamEnabled`, `subscribeFeedStream`, `seenFeedHead`). */
|
|
230
457
|
loadFeedStream(): Promise<WrunFeedStreamApi>;
|
|
458
|
+
/** 0.5.0, run. web: dataFetch(chartIndex, type, payload, from, toOrPeriod, metadata, sourceName, isPolling, options)
|
|
459
|
+
* (instances/titan-charts.ts:16337, answers Promise<any>); the live tick (:3707, :3784, :4152) and the executor
|
|
460
|
+
* (:3233, :7352, :11931, :12013) already pass `as never` for the payload and the metadata. */
|
|
461
|
+
fetchSource(chartIndex: number, type: string, payload: unknown, from: number, toOrPeriod: number, metadata: unknown, sourceName: string, isPolling?: boolean, options?: WrunSourceFetchOptions): Promise<unknown>;
|
|
462
|
+
/** 0.5.0, boot loader. web: import('@/services/v2.service') viewed as { default: { fetchData } } (executor :10491, in
|
|
463
|
+
* one Promise.all with loadDataFetching, both `.catch(() => undefined)`). */
|
|
464
|
+
loadV2Service(): Promise<WrunV2ServiceModule>;
|
|
465
|
+
/** 0.5.0, boot loader that loads the socket binder. web: import('@/utility/wrun/wrun-socket-transport') viewed as
|
|
466
|
+
* { createWrunSocketTransport, releaseWrunSocketCapability, routeWrunSocketLiveFrame } (the factory :128, beside the
|
|
467
|
+
* package socket module; its evaluation binds the socket web half's five members, :448-458). */
|
|
468
|
+
loadWrunSocketTransport(): Promise<WrunSocketTransportModule>;
|
|
469
|
+
/** 0.5.0, boot loader. web: import('@/services/live-feed.service') viewed as { bindWrunRowSourceLiveRoute } (the
|
|
470
|
+
* factory :132, inside the socket module load's .then). */
|
|
471
|
+
loadLiveFeedService(): Promise<WrunLiveFeedServiceModule>;
|
|
231
472
|
}
|
|
232
|
-
/** TRANSITIONAL (D-4): loaders into modules Phase 2
|
|
473
|
+
/** TRANSITIONAL (D-4): loaders into modules Phase 2 moved. Retired at 0.5.0: each is optional and no package code
|
|
474
|
+
* calls it (the three modules are package modules, loaded package-internally with the same destructuring); removed
|
|
475
|
+
* at 0.6.0. A host may keep binding them until then (web does, web-ports/boot.ts). */
|
|
233
476
|
export interface WrunHostRun {
|
|
234
|
-
/** 0.3.0, boot loader.
|
|
235
|
-
* (wrun-
|
|
236
|
-
loadOverlayLifecycleDoor(): Promise<WrunOverlayLifecycleDoorModule>;
|
|
237
|
-
/** 0.3.0, boot loader.
|
|
238
|
-
* (wrun-
|
|
239
|
-
loadRefusalSurface(): Promise<WrunRefusalSurfaceModule>;
|
|
240
|
-
/** 0.3.0, boot loader.
|
|
241
|
-
* (
|
|
242
|
-
loadSeriesStream(): Promise<WrunSeriesStreamModule>;
|
|
477
|
+
/** 0.3.0, boot loader; retired at 0.5.0 (the socket row source imports ./wrun-overlay-lifecycle.lazy). web:
|
|
478
|
+
* import('@/utility/wrun/wrun-overlay-lifecycle.lazy') viewed as { requestWrunOverlayRerun }. */
|
|
479
|
+
loadOverlayLifecycleDoor?(): Promise<WrunOverlayLifecycleDoorModule>;
|
|
480
|
+
/** 0.3.0, boot loader; retired at 0.5.0 (the socket row source imports ./wrun-refusal-surface.util). web:
|
|
481
|
+
* import('@/utility/wrun/wrun-refusal-surface.util') viewed as { liveWrunRefusalAttempt }. */
|
|
482
|
+
loadRefusalSurface?(): Promise<WrunRefusalSurfaceModule>;
|
|
483
|
+
/** 0.3.0, boot loader; retired at 0.5.0 (the series lane imports ../../wrun-series-stream.util). web:
|
|
484
|
+
* import('@/utility/wrun/wrun-series-stream.util') viewed as { openWrunSeriesStream }. */
|
|
485
|
+
loadSeriesStream?(): Promise<WrunSeriesStreamModule>;
|
|
243
486
|
}
|
|
244
|
-
/** Page visibility (reserved until 0.5.0, boot
|
|
487
|
+
/** Page visibility (reserved until 0.5.0, boot; live at 0.5.0, the live tick reads both) and the hidden live pace
|
|
488
|
+
* (0.5.0, boot). Timers and Date.now stay direct (D-10). */
|
|
245
489
|
export interface WrunHostClock {
|
|
246
490
|
/** web: document.visibilityState === 'hidden' (false when the realm has no document). */
|
|
247
491
|
pageHidden(): boolean;
|
|
248
492
|
/** web: a 'visibilitychange' listener that fires when the page turns visible; returns the unsubscribe. */
|
|
249
493
|
onPageVisible(listener: () => void): () => void;
|
|
494
|
+
/** 0.5.0, boot. web: isLiveHiddenPaceEnabled() (utility/chart/hidden-live-drain.util.ts:127). */
|
|
495
|
+
hiddenPaceEnabled(): boolean;
|
|
496
|
+
/** 0.5.0, boot. web: onLiveHiddenPaceChange(listener) (same file :154); answers the unsubscribe. The live tick
|
|
497
|
+
* subscribes at its first schedule (R3), never at module evaluation. */
|
|
498
|
+
onHiddenPaceChange(listener: (enabled: boolean) => void): () => void;
|
|
499
|
+
/** 0.5.0, boot. web: whenHiddenLiveDrainLanded() (same file :211); a sync call answering a Promise (not a loader: the
|
|
500
|
+
* registry never wraps it). */
|
|
501
|
+
whenHiddenDrainLanded(): Promise<WrunHiddenLiveDrainOutcome>;
|
|
502
|
+
/** 0.5.0, optional. The host's own suspension beside the page's visibility (a host that parks its chart while the
|
|
503
|
+
* page stays visible: an app backgrounded, its chart tab blurred): calls `listener` with the host's state at once
|
|
504
|
+
* and on every change, and answers the unsubscribe. The package's deadlines that count on-screen time (the
|
|
505
|
+
* transient grace, the apply deadlines, the unanswered-run drop; utility/wrun/wrun-host-visible-clock.util.ts)
|
|
506
|
+
* pause while it reads suspended, as while the page is hidden. Unbound reads as "not suspended". web: unbound
|
|
507
|
+
* (its one host suspension is the page's visibility, which those deadlines read already). */
|
|
508
|
+
watchHostSuspended?(listener: (suspended: boolean) => void): () => void;
|
|
509
|
+
}
|
|
510
|
+
/** The host's interface surfaces the run reads or opens (0.5.0, new namespace). */
|
|
511
|
+
export interface WrunHostUi {
|
|
512
|
+
/** 0.5.0, boot loader. web: import('@/store/editor-shell') viewed as { useEditorShellStore } (live tick :2414, executor
|
|
513
|
+
* :1540: `openTabs` read once, sync, inside the existing try). */
|
|
514
|
+
loadEditorShell(): Promise<WrunEditorShellModule>;
|
|
515
|
+
/** 0.5.0, boot loader. web: import('@/utility/wrun/wrun-refusal-actions.util') viewed as { toastWrunRefusal }
|
|
516
|
+
* (refusal surface :199; the freshness re-check and the target re-resolve stay in package code, finding 2). */
|
|
517
|
+
loadWrunRefusalActions(): Promise<WrunRefusalActionsModule>;
|
|
518
|
+
/** 0.5.0, boot loader. web: import('@/utility/wrun/wrun-legend-hover') viewed as { attachWrunHoverSurfaces } (the
|
|
519
|
+
* legend hover door :58, moved whole by U4b). */
|
|
520
|
+
loadWrunLegendHover(): Promise<WrunLegendHoverModule>;
|
|
521
|
+
/** 0.5.0, run. web: wrunConsoleRefusalContext(run) (utility/scriptEditor/console-routing.util.ts:660; live tick :2397). */
|
|
522
|
+
consoleRefusalContext(run: WrunConsoleRefusalRun): WrunRefusalContext;
|
|
523
|
+
/** 0.5.0, executor. web: beginWrunSignalSoundCheck(metadata, meta, rows) (utility/wrun/wrun-signal-sounds-live.util.ts:94;
|
|
524
|
+
* the check plays through web's one audio player). */
|
|
525
|
+
beginSignalSoundCheck(metadata: WrunSignalSheetView | null | undefined, meta: {
|
|
526
|
+
settings?: unknown;
|
|
527
|
+
isHidden?: unknown;
|
|
528
|
+
} | null | undefined, rows: ReadonlyArray<WrunOutputRow>): WrunSignalSoundCheck | null;
|
|
529
|
+
/** 0.5.0, executor. web: wrunOverlayPlaysSignalSounds(metadata, settings) (same file :76). */
|
|
530
|
+
overlayPlaysSignalSounds(metadata: WrunSignalSheetView | null | undefined, settings: Record<string, unknown> | null | undefined): boolean;
|
|
531
|
+
}
|
|
532
|
+
/** The engine worker the run host spawns (0.5.0, new namespace). */
|
|
533
|
+
export interface WrunHostEngine {
|
|
534
|
+
/** 0.5.0, boot. web: createManagedWorker((Worker) => new Worker(new URL('../../../workers/wrun-engine.worker.ts',
|
|
535
|
+
* import.meta.url), { type: 'module' }), { source: 'wrun-engine-worker', ...options })
|
|
536
|
+
* (utility/worker-factory.util.ts:251; the host's ensureWorker :670-719). Sync. The app answers its unserved
|
|
537
|
+
* thrower at 0.5.0 (R6). */
|
|
538
|
+
spawnWorker(options: WrunEngineWorkerOptions): WrunEngineWorker;
|
|
250
539
|
}
|
|
251
540
|
/** Set the realm's env (the realm's entry, before any package code runs; a later set replaces it). */
|
|
252
541
|
export declare function setWrunChartHostEnv(env: WrunChartHostEnv): void;
|
|
@@ -256,5 +545,11 @@ export declare function wrunChartHostEnv(): WrunChartHostEnv;
|
|
|
256
545
|
export declare function hasWrunChartHostEnv(): boolean;
|
|
257
546
|
/** The error a host's `sharedHost()` throws before its load. */
|
|
258
547
|
export declare function wrunChartHostUnloadedError(): Error;
|
|
548
|
+
/** The shared host now, or its load: `undefined` once the env's `sharedHost()` answers, else the env's
|
|
549
|
+
* `loadSharedHost()` (web: ensureWrunSharedHost, utility/wrun/wrun-shared-host-load.util.ts:47-49, whose `undefined`
|
|
550
|
+
* keeps a warm run in its task; host.service :456-457 relies on it). Not a member: R7's helper over the env for the 12
|
|
551
|
+
* `ensureWrunSharedHost()` sites of four Phase 2 roots (host.service :458, :503, :552; sandbox :458; executor :1004,
|
|
552
|
+
* :2537, :6488, :7858, :12526; live tick :1737, :1956, :2015). It reads the env when called, never at module load. */
|
|
553
|
+
export declare function ensureWrunChartHostSharedHost(): Promise<WrunSharedHostModule> | undefined;
|
|
259
554
|
/** Clear the realm's env, returning the one it held, so a spec can prove a cold read throws (specs only). */
|
|
260
555
|
export declare function __clearWrunChartHostEnvForTests(): WrunChartHostEnv | undefined;
|
package/dist/host-env.js
CHANGED
|
@@ -18,6 +18,21 @@ export function hasWrunChartHostEnv() {
|
|
|
18
18
|
export function wrunChartHostUnloadedError() {
|
|
19
19
|
return new Error('wrun_chart_host_unloaded');
|
|
20
20
|
}
|
|
21
|
+
/** The shared host now, or its load: `undefined` once the env's `sharedHost()` answers, else the env's
|
|
22
|
+
* `loadSharedHost()` (web: ensureWrunSharedHost, utility/wrun/wrun-shared-host-load.util.ts:47-49, whose `undefined`
|
|
23
|
+
* keeps a warm run in its task; host.service :456-457 relies on it). Not a member: R7's helper over the env for the 12
|
|
24
|
+
* `ensureWrunSharedHost()` sites of four Phase 2 roots (host.service :458, :503, :552; sandbox :458; executor :1004,
|
|
25
|
+
* :2537, :6488, :7858, :12526; live tick :1737, :1956, :2015). It reads the env when called, never at module load. */
|
|
26
|
+
export function ensureWrunChartHostSharedHost() {
|
|
27
|
+
const env = wrunChartHostEnv();
|
|
28
|
+
try {
|
|
29
|
+
env.sharedHost();
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
return env.loadSharedHost();
|
|
34
|
+
}
|
|
35
|
+
}
|
|
21
36
|
/** Clear the realm's env, returning the one it held, so a spec can prove a cold read throws (specs only). */
|
|
22
37
|
export function __clearWrunChartHostEnvForTests() {
|
|
23
38
|
const env = globalThis[ENV_KEY];
|