@orangecharts/wrun-chart-host 0.11.0 → 0.14.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 +1 -0
- package/dist/constants/feature-flags.constants.d.ts +3 -4
- package/dist/constants/feature-flags.constants.js +34 -52
- package/dist/constants/feature-limits.constants.d.ts +1 -1
- package/dist/constants/feature-limits.constants.js +5 -4
- package/dist/constants/interval.constants.d.ts +7 -0
- package/dist/constants/interval.constants.js +7 -0
- package/dist/constants/scriptEditor/cme-official-scripts.constants.d.ts +20 -149
- package/dist/constants/scriptEditor/cme-official-scripts.constants.js +20 -309
- package/dist/constants/stocks-compliance.constants.d.ts +15 -0
- package/dist/constants/stocks-compliance.constants.js +15 -0
- package/dist/host-env.d.ts +55 -3
- package/dist/host-env.js +6 -0
- package/dist/host-ports.types.d.ts +36 -3
- package/dist/index.d.ts +18 -0
- package/dist/index.js +19 -0
- package/dist/indicators/controls/tpo-session.util.d.ts +78 -15
- package/dist/indicators/controls/tpo-session.util.js +320 -242
- package/dist/instances/script-engine-worker-ohlcv-transfer.d.ts +6 -0
- package/dist/instances/script-engine-worker-ohlcv-transfer.js +16 -0
- package/dist/interfaces/cme-realtime.interface.d.ts +8 -0
- package/dist/interfaces/cme-realtime.interface.js +2 -1
- package/dist/interfaces/feed.interface.d.ts +15 -1
- package/dist/interfaces/replay.interface.d.ts +5 -0
- package/dist/interfaces/stocks-realtime.interface.d.ts +4 -3
- package/dist/interfaces/stocks-realtime.interface.js +5 -4
- package/dist/interfaces/wrun-runtime.interface.d.ts +97 -19
- package/dist/kscript-data/controls/live-ohlcv-merge.util.d.ts +17 -0
- package/dist/kscript-data/controls/live-ohlcv-merge.util.js +22 -0
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +46 -40
- package/dist/kscript-data/controls/live-trades-merge.util.js +80 -107
- package/dist/market-data/billing.interface.d.ts +9 -1
- package/dist/market-data/venue.d.ts +1 -1
- package/dist/market-data/venues/index.d.ts +4 -4
- package/dist/market-data/venues/stocks.contract.copy.json +4 -4
- package/dist/market-data/venues/stocks.d.ts +4 -4
- package/dist/market-data/venues/stocks.js +15 -13
- package/dist/settings-templates/frvp-fields.d.ts +12 -1
- package/dist/settings-templates/frvp-fields.js +15 -4
- package/dist/settings-templates/index.js +12 -5
- package/dist/settings-templates/indicator-fields.js +28 -2
- package/dist/settings-templates/tool-rules.d.ts +17 -8
- package/dist/settings-templates/tool-rules.js +15 -8
- package/dist/settings-templates/tool-tables.generated.js +4 -2
- package/dist/utility/auth/server-clock.util.d.ts +3 -1
- package/dist/utility/auth/server-clock.util.js +3 -1
- package/dist/utility/chart/book-live-bucket.util.js +2 -2
- package/dist/utility/chart/cache-alignment.util.d.ts +15 -7
- package/dist/utility/chart/cache-alignment.util.js +14 -7
- package/dist/utility/chart/chart-data-fetch-generation.util.d.ts +2 -0
- package/dist/utility/chart/chart-data-fetch-generation.util.js +16 -0
- package/dist/utility/chart/cme-session-bucket.util.d.ts +18 -75
- package/dist/utility/chart/cme-session-bucket.util.js +25 -332
- package/dist/utility/chart/continuous-contracts.util.js +6 -5
- package/dist/utility/chart/display-offset.leaf.d.ts +24 -0
- package/dist/utility/chart/display-offset.leaf.js +41 -0
- package/dist/utility/chart/effective-chart-session.util.d.ts +2 -1
- package/dist/utility/chart/effective-chart-session.util.js +13 -5
- package/dist/utility/chart/feed-interval.util.d.ts +6 -20
- package/dist/utility/chart/feed-interval.util.js +13 -22
- package/dist/utility/chart/fetch-dedupe-policy.util.d.ts +27 -7
- package/dist/utility/chart/fetch-dedupe-policy.util.js +86 -11
- package/dist/utility/chart/host-bar-placement.util.d.ts +7 -4
- package/dist/utility/chart/host-bar-placement.util.js +8 -2
- package/dist/utility/chart/indicator-inflight-registry.util.d.ts +32 -0
- package/dist/utility/chart/indicator-inflight-registry.util.js +52 -0
- package/dist/utility/chart/indicator-run-interval.util.d.ts +10 -4
- package/dist/utility/chart/indicator-run-interval.util.js +21 -12
- package/dist/utility/chart/interval-registry.util.d.ts +1 -1
- package/dist/utility/chart/interval-registry.util.js +1 -1
- package/dist/utility/chart/kscript-legend-entries.util.d.ts +12 -0
- package/dist/utility/chart/kscript-legend-entries.util.js +16 -0
- package/dist/utility/chart/kscript-run-interval-projection.util.d.ts +1 -1
- package/dist/utility/chart/kscript-run-interval-projection.util.js +4 -2
- package/dist/utility/chart/kscript-venue-policy.util.d.ts +53 -62
- package/dist/utility/chart/kscript-venue-policy.util.js +85 -94
- package/dist/utility/chart/live-bucket.util.d.ts +39 -17
- package/dist/utility/chart/live-bucket.util.js +103 -57
- package/dist/utility/chart/local-kscript-source-revalidation.util.d.ts +58 -20
- package/dist/utility/chart/local-kscript-source-revalidation.util.js +98 -23
- package/dist/utility/chart/local-kscript-warmup-depth.util.d.ts +35 -11
- package/dist/utility/chart/local-kscript-warmup-depth.util.js +24 -3
- package/dist/utility/chart/market-session-schedule.util.d.ts +8 -0
- package/dist/utility/chart/market-session-schedule.util.js +39 -1
- package/dist/utility/chart/market-session.util.d.ts +136 -0
- package/dist/utility/chart/market-session.util.js +341 -0
- package/dist/utility/chart/market-sessions.util.d.ts +83 -0
- package/dist/utility/chart/market-sessions.util.js +220 -0
- package/dist/utility/chart/om-panel.util.d.ts +5 -3
- package/dist/utility/chart/om-panel.util.js +42 -7
- package/dist/utility/chart/om-target.util.d.ts +14 -1
- package/dist/utility/chart/om-target.util.js +22 -5
- package/dist/utility/chart/opra-read-access.leaf.d.ts +16 -1
- package/dist/utility/chart/opra-read-access.leaf.js +22 -0
- package/dist/utility/chart/profile-row-height.util.d.ts +49 -16
- package/dist/utility/chart/profile-row-height.util.js +74 -37
- package/dist/utility/chart/rth-session.util.d.ts +55 -20
- package/dist/utility/chart/rth-session.util.js +94 -46
- package/dist/utility/chart/session-interval.util.d.ts +2 -1
- package/dist/utility/chart/session-interval.util.js +1 -3
- package/dist/utility/chart/session-lattice.util.d.ts +150 -0
- package/dist/utility/chart/session-lattice.util.js +488 -0
- package/dist/utility/chart/trading-day.util.d.ts +40 -2
- package/dist/utility/chart/trading-day.util.js +84 -7
- package/dist/utility/chart/us-equities-session.util.d.ts +32 -11
- package/dist/utility/chart/us-equities-session.util.js +44 -15
- package/dist/utility/chart/window-geometry.leaf.d.ts +28 -7
- package/dist/utility/chart/window-geometry.leaf.js +57 -8
- package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +21 -14
- package/dist/utility/chart/wrun-bar-session-facts.util.js +32 -38
- package/dist/utility/chart/wrun-run-result.util.d.ts +29 -12
- package/dist/utility/chart/wrun-run-result.util.js +89 -25
- package/dist/utility/common/time.util.js +5 -4
- package/dist/utility/market-events/earnings-scope.util.d.ts +10 -5
- package/dist/utility/market-events/earnings-scope.util.js +17 -9
- package/dist/utility/market-events/market-events.util.d.ts +14 -7
- package/dist/utility/market-events/market-events.util.js +30 -17
- package/dist/utility/number-format.util.d.ts +14 -21
- package/dist/utility/number-format.util.js +38 -24
- package/dist/utility/options/option-venue-disclosure.util.d.ts +40 -6
- package/dist/utility/options/option-venue-disclosure.util.js +71 -11
- package/dist/utility/options/option-venue.util.d.ts +1 -1
- package/dist/utility/options/option-venue.util.js +1 -1
- package/dist/utility/pool-symbol.leaf.d.ts +7 -0
- package/dist/utility/pool-symbol.leaf.js +50 -5
- package/dist/utility/stocks/stock-display.util.d.ts +15 -0
- package/dist/utility/stocks/stock-display.util.js +37 -0
- package/dist/utility/symbol-selection/contract-expiry.util.js +5 -4
- package/dist/utility/v2/gate-plane.util.d.ts +6 -0
- package/dist/utility/v2/gate-plane.util.js +11 -1
- package/dist/utility/v2/gate-session-latch.util.d.ts +1 -1
- package/dist/utility/v2/gate-session-latch.util.js +3 -3
- package/dist/utility/v2/governed-tier.leaf.d.ts +17 -16
- package/dist/utility/v2/governed-tier.leaf.js +17 -16
- package/dist/utility/v2/stocks-governed.util.d.ts +5 -0
- package/dist/utility/v2/stocks-governed.util.js +14 -0
- package/dist/utility/v2/v2-enums.leaf.d.ts +13 -0
- package/dist/utility/v2/v2-enums.leaf.js +458 -0
- package/dist/utility/wrun/derived-roots.leaf.d.ts +21 -1
- package/dist/utility/wrun/derived-roots.leaf.js +27 -1
- package/dist/utility/wrun/derived-roots.util.d.ts +44 -32
- package/dist/utility/wrun/derived-roots.util.js +97 -56
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.d.ts +4 -3
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +4 -3
- package/dist/utility/wrun/sources/lanes/option_daily.d.ts +2 -1
- package/dist/utility/wrun/sources/lanes/option_daily.js +2 -1
- package/dist/utility/wrun/sources/lanes/options_flow.d.ts +3 -0
- package/dist/utility/wrun/sources/lanes/options_flow.js +23 -5
- package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +3 -4
- package/dist/utility/wrun/sources/row-lane-registry.js +9 -4
- package/dist/utility/wrun/sources/row-lanes/dark_pool.d.ts +19 -0
- package/dist/utility/wrun/sources/row-lanes/dark_pool.js +104 -0
- package/dist/utility/wrun/sources/row-lanes/index.js +2 -0
- package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.d.ts +20 -0
- package/dist/utility/wrun/sources/wrun-lane-fetch-abort.util.js +103 -0
- package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +19 -2
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +15 -13
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +49 -23
- package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +14 -9
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +75 -27
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +139 -82
- package/dist/utility/wrun/wrun-app-layer.leaf.d.ts +78 -0
- package/dist/utility/wrun/wrun-app-layer.leaf.js +89 -0
- package/dist/utility/wrun/wrun-bar-count.util.d.ts +11 -7
- package/dist/utility/wrun/wrun-bar-count.util.js +12 -8
- package/dist/utility/wrun/wrun-batched-kinds.leaf.d.ts +13 -0
- package/dist/utility/wrun/wrun-batched-kinds.leaf.js +18 -0
- package/dist/utility/wrun/wrun-batched-marks.util.d.ts +41 -22
- package/dist/utility/wrun/wrun-batched-marks.util.js +255 -59
- package/dist/utility/wrun/wrun-batched-readout.util.d.ts +26 -19
- package/dist/utility/wrun/wrun-batched-readout.util.js +81 -27
- package/dist/utility/wrun/wrun-book-bands.leaf.d.ts +8 -0
- package/dist/utility/wrun/wrun-book-bands.leaf.js +7 -0
- package/dist/utility/wrun/wrun-candle-equal.leaf.d.ts +19 -0
- package/dist/utility/wrun/wrun-candle-equal.leaf.js +40 -0
- package/dist/utility/wrun/wrun-canvas-readout.util.d.ts +4 -2
- package/dist/utility/wrun/wrun-canvases.util.js +7 -3
- package/dist/utility/wrun/wrun-chart-context-names.util.d.ts +6 -3
- package/dist/utility/wrun/wrun-chart-context-names.util.js +8 -4
- package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +47 -29
- package/dist/utility/wrun/wrun-chart-market-facts.util.js +201 -201
- package/dist/utility/wrun/wrun-child-overlay-id.util.js +2 -1
- package/dist/utility/wrun/wrun-cme-legs-note.util.d.ts +15 -0
- package/dist/utility/wrun/wrun-cme-legs-note.util.js +49 -0
- package/dist/utility/wrun/wrun-cme-root-specs.util.d.ts +38 -0
- package/dist/utility/wrun/wrun-cme-root-specs.util.js +81 -0
- package/dist/utility/wrun/wrun-coin-lane-live.util.js +3 -0
- package/dist/utility/wrun/wrun-color-settings.util.d.ts +6 -1
- package/dist/utility/wrun/wrun-color-settings.util.js +32 -7
- package/dist/utility/wrun/wrun-dark-pool.util.d.ts +50 -0
- package/dist/utility/wrun/wrun-dark-pool.util.js +127 -0
- package/dist/utility/wrun/wrun-declared-warmup.util.d.ts +67 -12
- package/dist/utility/wrun/wrun-declared-warmup.util.js +165 -13
- package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +18 -8
- package/dist/utility/wrun/wrun-draft-legend-note.util.js +57 -11
- package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +14 -10
- package/dist/utility/wrun/wrun-draft-overlay.util.js +26 -14
- package/dist/utility/wrun/wrun-earnings-facts.util.js +3 -2
- package/dist/utility/wrun/wrun-etf-funds.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-etf-funds.util.js +4 -0
- package/dist/utility/wrun/wrun-held-lanes.util.js +8 -2
- package/dist/utility/wrun/wrun-history-as-of.util.d.ts +77 -0
- package/dist/utility/wrun/wrun-history-as-of.util.js +108 -0
- package/dist/utility/wrun/wrun-host.service.d.ts +64 -14
- package/dist/utility/wrun/wrun-host.service.js +137 -27
- package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +3 -3
- package/dist/utility/wrun/wrun-hosted-wire-caps.js +12 -2
- package/dist/utility/wrun/wrun-inert-legend.util.d.ts +13 -0
- package/dist/utility/wrun/wrun-inert-legend.util.js +31 -3
- package/dist/utility/wrun/wrun-input-requirements.leaf.d.ts +7 -5
- package/dist/utility/wrun/wrun-input-requirements.leaf.js +16 -6
- package/dist/utility/wrun/wrun-install-pacer.util.d.ts +26 -0
- package/dist/utility/wrun/wrun-install-pacer.util.js +145 -0
- package/dist/utility/wrun/wrun-kit-refusal-stages.types.d.ts +22 -0
- package/dist/utility/wrun/wrun-kit-refusal-stages.types.js +1 -0
- package/dist/utility/wrun/wrun-lane-refusal.leaf.d.ts +12 -5
- package/dist/utility/wrun/wrun-lane-refusal.leaf.js +23 -5
- package/dist/utility/wrun/wrun-lane-warmup.util.js +22 -4
- package/dist/utility/wrun/wrun-leg-close.util.d.ts +6 -5
- package/dist/utility/wrun/wrun-leg-close.util.js +11 -9
- package/dist/utility/wrun/wrun-leg-fetch.util.d.ts +3 -1
- package/dist/utility/wrun/wrun-leg-fetch.util.js +9 -2
- package/dist/utility/wrun/wrun-levels-child.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-levels-child.util.js +6 -0
- package/dist/utility/wrun/wrun-lifecycle.contract.d.ts +4 -0
- package/dist/utility/wrun/wrun-live-intake.util.d.ts +15 -6
- package/dist/utility/wrun/wrun-live-intake.util.js +167 -47
- package/dist/utility/wrun/wrun-live-tick.util.d.ts +52 -8
- package/dist/utility/wrun/wrun-live-tick.util.js +648 -97
- package/dist/utility/wrun/wrun-market-facts.util.d.ts +16 -2
- package/dist/utility/wrun/wrun-market-facts.util.js +32 -3
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +27 -27
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +28 -16
- package/dist/utility/wrun/wrun-market-size-defaults.util.js +34 -5
- package/dist/utility/wrun/wrun-oi-lane.util.d.ts +10 -7
- package/dist/utility/wrun/wrun-oi-lane.util.js +16 -10
- package/dist/utility/wrun/wrun-option-strike-flow.util.js +1 -1
- package/dist/utility/wrun/wrun-option-views.util.d.ts +2 -2
- package/dist/utility/wrun/wrun-option-views.util.js +5 -2
- package/dist/utility/wrun/wrun-options-flow-underlying.leaf.d.ts +5 -0
- package/dist/utility/wrun/wrun-options-flow-underlying.leaf.js +16 -0
- package/dist/utility/wrun/wrun-options-stop.util.d.ts +3 -2
- package/dist/utility/wrun/wrun-options-stop.util.js +6 -4
- package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +75 -11
- package/dist/utility/wrun/wrun-overlay-drivers.util.js +176 -43
- package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +20 -10
- package/dist/utility/wrun/wrun-overlay-park.util.d.ts +84 -0
- package/dist/utility/wrun/wrun-overlay-park.util.js +135 -0
- package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +37 -4
- package/dist/utility/wrun/wrun-overlay-recovery.util.js +26 -14
- package/dist/utility/wrun/wrun-overlay-run.util.d.ts +239 -24
- package/dist/utility/wrun/wrun-overlay-run.util.js +2204 -405
- package/dist/utility/wrun/wrun-pack.util.d.ts +8 -5
- package/dist/utility/wrun/wrun-panel-mount.util.d.ts +2 -1
- package/dist/utility/wrun/wrun-panel-mount.util.js +20 -14
- package/dist/utility/wrun/wrun-panel-style.util.d.ts +4 -2
- package/dist/utility/wrun/wrun-panel-style.util.js +3 -2
- package/dist/utility/wrun/wrun-pin-spelling.util.d.ts +7 -0
- package/dist/utility/wrun/wrun-pin-spelling.util.js +18 -4
- package/dist/utility/wrun/wrun-pin-venues.util.d.ts +26 -17
- package/dist/utility/wrun/wrun-pin-venues.util.js +43 -36
- package/dist/utility/wrun/wrun-pinned-lanes.util.d.ts +58 -0
- package/dist/utility/wrun/wrun-pinned-lanes.util.js +72 -0
- package/dist/utility/wrun/wrun-prefix-cohort.util.js +2 -1
- package/dist/utility/wrun/wrun-prefix-lanes.util.d.ts +22 -9
- package/dist/utility/wrun/wrun-prefix-lanes.util.js +145 -26
- package/dist/utility/wrun/wrun-prefix-proof.util.d.ts +29 -0
- package/dist/utility/wrun/wrun-prefix-proof.util.js +23 -5
- package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +9 -1
- package/dist/utility/wrun/wrun-refusal-surface.util.js +15 -1
- package/dist/utility/wrun/wrun-refusal.util.d.ts +19 -1
- package/dist/utility/wrun/wrun-refusal.util.js +103 -16
- package/dist/utility/wrun/wrun-registry-errors.util.d.ts +20 -6
- package/dist/utility/wrun/wrun-registry-errors.util.js +20 -6
- package/dist/utility/wrun/wrun-replay-rows.util.js +6 -10
- package/dist/utility/wrun/wrun-run-health.util.d.ts +89 -2
- package/dist/utility/wrun/wrun-run-health.util.js +204 -1
- package/dist/utility/wrun/wrun-run-interval-session.util.d.ts +2 -2
- package/dist/utility/wrun/wrun-run-interval-session.util.js +2 -2
- package/dist/utility/wrun/wrun-run-interval.util.d.ts +9 -8
- package/dist/utility/wrun/wrun-run-interval.util.js +13 -11
- package/dist/utility/wrun/wrun-sandbox-row-source.js +5 -2
- package/dist/utility/wrun/wrun-script-inputs.util.d.ts +13 -3
- package/dist/utility/wrun/wrun-script-inputs.util.js +51 -13
- package/dist/utility/wrun/wrun-session-composition.util.d.ts +81 -0
- package/dist/utility/wrun/wrun-session-composition.util.js +169 -0
- package/dist/utility/wrun/wrun-setting-words.util.d.ts +10 -7
- package/dist/utility/wrun/wrun-setting-words.util.js +25 -7
- package/dist/utility/wrun/wrun-source-rows.util.d.ts +94 -28
- package/dist/utility/wrun/wrun-source-rows.util.js +738 -93
- package/dist/utility/wrun/wrun-stream-clock.util.d.ts +45 -0
- package/dist/utility/wrun/wrun-stream-clock.util.js +108 -0
- package/dist/utility/wrun/wrun-tape-coins.util.d.ts +116 -0
- package/dist/utility/wrun/wrun-tape-coins.util.js +110 -0
- package/dist/utility/wrun/wrun-tape-source.util.d.ts +62 -32
- package/dist/utility/wrun/wrun-tape-source.util.js +72 -34
- package/dist/utility/wrun/wrun-tier-grid.util.d.ts +13 -5
- package/dist/utility/wrun/wrun-tier-grid.util.js +23 -13
- package/dist/utility/wrun/wrun-tpo-rows.util.js +2 -1
- package/dist/utility/wrun/wrun-trades-lane.util.d.ts +73 -0
- package/dist/utility/wrun/wrun-trades-lane.util.js +82 -0
- package/dist/utility/wrun/wrun-twin-compute-inputs.util.d.ts +5 -0
- package/dist/utility/wrun/wrun-twin-compute-inputs.util.js +9 -2
- package/dist/utility/wrun/wrun-visibility-table.d.ts +13 -0
- package/dist/utility/wrun/wrun-visibility-table.js +9 -0
- package/dist/utility/wrun/wrun-volume-profile.util.js +44 -32
- package/dist/utils/replay/replay-buffer-math.d.ts +16 -6
- package/dist/utils/replay/replay-buffer-math.js +60 -30
- package/dist/workers/constants/socket-slots.d.ts +11 -7
- package/dist/workers/constants/socket-slots.js +6 -5
- package/package.json +11 -11
|
@@ -64,17 +64,19 @@
|
|
|
64
64
|
import type { WrunDegradedLane, WrunRunReason, WrunRunWindow } from './wrun-lifecycle.contract.js';
|
|
65
65
|
import { type WrunIntegrationRoute } from './wrun-integration-route.util.js';
|
|
66
66
|
import { type OverlayRunInterval, type RunBarCalendar } from '../chart/indicator-run-interval.util.js';
|
|
67
|
-
import { type
|
|
67
|
+
import { type WrunPrefixLanePages } from './wrun-prefix-lanes.util.js';
|
|
68
|
+
import { type WrunPrefixFeedClause, type WrunPrefixFeedPlan } from './run-schedule/wrun-prefix-feeds.util.js';
|
|
68
69
|
import { type WrunCandleGroup, type WrunFillPair, type WrunRunResult } from '../chart/wrun-run-result.util.js';
|
|
69
70
|
import { type WrunRowLaneBudgetCut } from './sources/wrun-row-lanes.util.js';
|
|
70
71
|
import { type WrunEarningsMarket } from './wrun-earnings-facts.util.js';
|
|
71
|
-
import { type WrunRunHealth } from './wrun-run-health.util.js';
|
|
72
|
+
import { type WrunNothingDrawnRun, type WrunRunHealth } from './wrun-run-health.util.js';
|
|
73
|
+
import { type WrunPinnedLaneId } from './wrun-pinned-lanes.util.js';
|
|
72
74
|
import { type WrunChartNames } from './wrun-chart-context.util.js';
|
|
73
75
|
import { type WrunFactsMarket } from './wrun-chart-market-facts.util.js';
|
|
74
76
|
import { type WrunStrategyBarInput } from './wrun-host.service.js';
|
|
75
77
|
import { type WrunRefusalAttemptToken, type WrunRefusalContext, type WrunRefusalSeed } from './wrun-refusal.util.js';
|
|
76
78
|
import { type WrunHostFillContext } from './wrun-script-inputs.util.js';
|
|
77
|
-
import { type WrunDownloadSummary } from './wrun-download-meter.util.js';
|
|
79
|
+
import { type WrunDownloadMeterPort, type WrunDownloadSummary } from './wrun-download-meter.util.js';
|
|
78
80
|
import type { WrunLatestSnapshot } from './wrun-latest-snapshot.js';
|
|
79
81
|
import { wrunChartMarketIdentity, type WrunOverlayLiveContext, type WrunWarmupMiss } from './wrun-overlay-drivers.util.js';
|
|
80
82
|
import { type KScriptProvenanceSettingsLike } from '../chart/kscript-venue-policy.util.js';
|
|
@@ -82,6 +84,7 @@ import type { WrunLegCandleClose } from '@orangecharts/indicator-kit/host';
|
|
|
82
84
|
import { type WrunPassRowSource } from './wrun-row-source-factory.js';
|
|
83
85
|
import { type WrunPinnedLeg, type WrunPinnedWire } from './wrun-source-rows.util.js';
|
|
84
86
|
import { type WrunOptionsChainRefusal } from './wrun-options-chain.util.js';
|
|
87
|
+
import { type WrunParkedLiveSession } from './wrun-overlay-park.util.js';
|
|
85
88
|
import { type WrunRunIntervalProjection } from './wrun-run-interval-session.util.js';
|
|
86
89
|
import { type WrunIndicatorMetadata, type WrunModuleHandle, type WrunOutputRow } from '../../interfaces/wrun-runtime.interface.js';
|
|
87
90
|
import type { RuntimeDiagnostic } from '../../interfaces/kscript-diagnostics.interface.js';
|
|
@@ -186,6 +189,10 @@ export interface WrunOverlayRunTarget {
|
|
|
186
189
|
* row's saved pin, and the stand-in is written only for the version the
|
|
187
190
|
* row names. Absent for a lane with no registry version. */
|
|
188
191
|
version?: string;
|
|
192
|
+
/** How long this rebuild episode already held for the pan (`WrunRerunOptions.gestureHeldMs`, the pacing clock):
|
|
193
|
+
* the install hold (`holdWrunInstallForGesture`) waits at most HEAVY_APPLY_GESTURE_CEILING_MS less this, and a
|
|
194
|
+
* prefix page that falls back to a whole run hands it on. Absent: the full ceiling. */
|
|
195
|
+
gestureHeldMs?: number;
|
|
189
196
|
}
|
|
190
197
|
/** Recompute one mounted WRUN overlay over the chart's CURRENT loaded rows
|
|
191
198
|
* and integrate the result through the shared adapter path. */
|
|
@@ -267,6 +274,15 @@ export declare function surfaceWrunRunFailureOnLegend(chartIndex: number, indica
|
|
|
267
274
|
/** Whether the failure still belongs to the overlay's current mount (default: its chart stands). */
|
|
268
275
|
isCurrent?: () => boolean;
|
|
269
276
|
}): Promise<void>;
|
|
277
|
+
/**
|
|
278
|
+
* Whether the sheet a run reads (its settings painted, its lane demand applied) pins a CME market: a secondary input's
|
|
279
|
+
* pinned market (an ohlcv or leg-stream pin, a trades leg, a coin leg's venue) on the CME plane (`wrunPinReadsCme`), or
|
|
280
|
+
* a spelling the pin step respells onto one (`wrunPinSpellingReadsCme`: a TradingView CME prefix, our key in the
|
|
281
|
+
* symbol half, our escape). Read at the run head before the pin step and the host load (no catalog, no shared host):
|
|
282
|
+
* the head's best reading, for its flag wait and a prefix page's authorisation; the full run's lanes capture the
|
|
283
|
+
* authorisation again from the resolved legs.
|
|
284
|
+
*/
|
|
285
|
+
export declare function wrunSheetPinsCme(metadata: Pick<WrunIndicatorMetadata, 'inputs' | 'inputSources'>, chartExchange?: string): boolean;
|
|
270
286
|
export declare function isWrunCryptoVenueExchange(exchange: string | null | undefined): boolean;
|
|
271
287
|
/** The chart's main-series metadata fields a refusal context reads. */
|
|
272
288
|
type WrunRefusalChartMetadata = {
|
|
@@ -416,7 +432,21 @@ export declare function wrunRuntimeTrapDiagnostic(error: unknown, context?: {
|
|
|
416
432
|
* Advisory: a store that is gone has nothing to tell. */
|
|
417
433
|
export declare function publishWrunRunHealth(chartIndex: number, indicatorId: string, diagnostics: RuntimeDiagnostic[], options?: {
|
|
418
434
|
onlyOnVerdictChange?: boolean;
|
|
435
|
+
isCurrent?: () => boolean;
|
|
419
436
|
}): Promise<boolean>;
|
|
437
|
+
/**
|
|
438
|
+
* The viewer's nothing-drawn note (wrun-run-health.util, FB27) after a full run, a reseed, an adoption or a landed
|
|
439
|
+
* page: raised when a published Indicator's settled run drew nothing over its whole loaded window (with the cause when
|
|
440
|
+
* the run knows it), cleared by one that drew and on a draft (whose own rows speak to its author); a run that is not
|
|
441
|
+
* settled (a partial window, a first slice still filling, a lane unanswered, a source with a note of its own) leaves
|
|
442
|
+
* it as it stands. A run that asks the warm-up decider (`warmup`) holds its raise until the decider says no older page
|
|
443
|
+
* is coming: a page it buys reruns the overlay, and that run decides, so no load in flight is ever named empty. The
|
|
444
|
+
* refusal context is built only for a note. Advisory like the health rows.
|
|
445
|
+
*/
|
|
446
|
+
export declare function publishWrunNothingDrawn(chartIndex: number, indicatorId: string, run: Omit<WrunNothingDrawnRun, 'legs'>, refusalContext: () => WrunRefusalContext | Promise<WrunRefusalContext>, options?: {
|
|
447
|
+
isCurrent?: () => boolean;
|
|
448
|
+
warmup?: WrunWarmupPageVerdict;
|
|
449
|
+
}): Promise<void>;
|
|
420
450
|
/** The unserved-leg rows of a run (the venue soft refusals, `WRUN_LEG_UNSERVED`): their own
|
|
421
451
|
* owned set beside the health rows, replaced by every full run, cleared by a run that served
|
|
422
452
|
* every leg. Advisory like the health rows. */
|
|
@@ -429,6 +459,7 @@ export declare function publishWrunUnservedLegDiagnostics(chartIndex: number, in
|
|
|
429
459
|
*/
|
|
430
460
|
export declare function publishWrunSessionCanvasNotices(session: WrunOverlayLiveContext, runResult: WrunRunResult, options?: {
|
|
431
461
|
tick?: boolean;
|
|
462
|
+
isCurrent?: () => boolean;
|
|
432
463
|
}): Promise<void>;
|
|
433
464
|
/** Replace the rows of one owned code set on the overlay's diagnostics (every other row is
|
|
434
465
|
* kept), the shared body of the publishers above and of the canvas cost rows
|
|
@@ -437,10 +468,12 @@ export declare function publishWrunOwnedDiagnostics(chartIndex: number, indicato
|
|
|
437
468
|
onlyOnVerdictChange?: boolean;
|
|
438
469
|
/** Skip the write when the published owned rows already say the same (the caller's rule). */
|
|
439
470
|
unlessSame?: (published: RuntimeDiagnostic[], next: RuntimeDiagnostic[]) => boolean;
|
|
471
|
+
/** The caller still owns the overlay (its run, its session): read right before the write. */
|
|
472
|
+
isCurrent?: () => boolean;
|
|
440
473
|
}): Promise<boolean>;
|
|
441
474
|
/** Drop the run-failure rows this seam owns (only those: a trap, the output contract, the
|
|
442
475
|
* no-growth rule, an unlinkable import) once a run of the same overlay succeeds. */
|
|
443
|
-
export declare function clearWrunRuntimeTrapDiagnostic(chartIndex: number, indicatorId: string): Promise<void>;
|
|
476
|
+
export declare function clearWrunRuntimeTrapDiagnostic(chartIndex: number, indicatorId: string, isCurrent?: () => boolean): Promise<void>;
|
|
444
477
|
/** One pin a run respelled: the input, its halves as the sheet the resolver read wrote them, and the halves the run
|
|
445
478
|
* reads. */
|
|
446
479
|
export interface WrunRespelledPin {
|
|
@@ -511,6 +544,68 @@ export interface WrunRowSourceCensusEntry {
|
|
|
511
544
|
export declare function wrunRowSourceMemoryCensus(): {
|
|
512
545
|
overlays: WrunRowSourceCensusEntry[];
|
|
513
546
|
};
|
|
547
|
+
/** The warm-up ask's verdict for one result and a note held on it, in either order: `whenNoPage` runs its raise now
|
|
548
|
+
* when the ask already said no page is coming, else once `noPage` says so; a page the ask buys never says it, and the
|
|
549
|
+
* rerun its landing starts decides again. */
|
|
550
|
+
export interface WrunWarmupPageVerdict {
|
|
551
|
+
noPage(): void;
|
|
552
|
+
whenNoPage(raise: () => void): void;
|
|
553
|
+
}
|
|
554
|
+
export declare function wrunWarmupPageVerdict(): WrunWarmupPageVerdict;
|
|
555
|
+
/**
|
|
556
|
+
* The run reasons whose result waits for the gesture's idle edge before its commit checks and its install
|
|
557
|
+
* (WRUN-PANBACK A1): the chart's own reruns (a live rebuild, a pan page, a range refresh, a heal, a source-recovery
|
|
558
|
+
* rung, a budget lift). The deleted kScript engine held such a result until the idle edge (its worker's
|
|
559
|
+
* `releaseHeldEngine`, at most KSCRIPT_GESTURE_HOLD_MAX_MS); a wrun install landed mid-drag instead (a 294 ms apply
|
|
560
|
+
* inside a 190 s pan, 2026-11-01 dump). A run a person asked for (a settings save, a switch, a theme, a Resume, a
|
|
561
|
+
* Retry), the mount's first run and the replay lane's never wait.
|
|
562
|
+
*/
|
|
563
|
+
export declare const WRUN_GESTURE_HELD_RUN_REASONS: ReadonlySet<WrunRunReason>;
|
|
564
|
+
/** How a held install's wait ended: `none`, it never waited (a reason that is not held, or no live gesture); `idle`,
|
|
565
|
+
* the view went still; `ceiling`, the budget ran out with the view still moving; `yielded`, a user run was queued. */
|
|
566
|
+
export type WrunInstallGestureOutcome = 'none' | 'idle' | 'ceiling' | 'yielded';
|
|
567
|
+
/**
|
|
568
|
+
* Hold a finished run's install until the gesture's idle edge (WRUN-PANBACK A1), the way the warm-up ask waits
|
|
569
|
+
* (`askWrunWarmupAtGestureEnd`): at once (`none`) for a reason that is not held or a chart whose gesture is not live;
|
|
570
|
+
* else until the view stays still for GESTURE_LINGER_MS (`waitPanIdle`), bounded by `ceilingMs` (what the episode has
|
|
571
|
+
* left of its one ceiling), and raced every WRUN_INSTALL_GESTURE_POLL_MS against a queued user run
|
|
572
|
+
* (`hasQueuedWrunUserRun`): the run that follows replaces this result, so it yields (`yielded`) instead of making that
|
|
573
|
+
* run wait out the pan. The idle wait answers the time it waited at the idle edge and at its bound alike, so an answer
|
|
574
|
+
* within one poll of the bound reads `ceiling`. `waitedMs` is on the pacing clock. Rings the hold and its end; never
|
|
575
|
+
* throws.
|
|
576
|
+
*/
|
|
577
|
+
export declare function holdWrunInstallForGesture(chartIndex: number, indicatorId: string, reason: WrunRunReason, { ceilingMs }: {
|
|
578
|
+
ceilingMs: number;
|
|
579
|
+
}): Promise<{
|
|
580
|
+
waitedMs: number;
|
|
581
|
+
outcome: WrunInstallGestureOutcome;
|
|
582
|
+
}>;
|
|
583
|
+
/** A prefix page's commit at the gesture's idle edge (`commitWrunPrefixAtGestureEdge`): committed with the commit's
|
|
584
|
+
* answer, or yielded to a queued user run (nothing committed). `heldMs`: how long the page held for the gesture. */
|
|
585
|
+
export type WrunPrefixGestureCommit<T> = {
|
|
586
|
+
kind: 'committed';
|
|
587
|
+
value: T;
|
|
588
|
+
heldMs: number;
|
|
589
|
+
} | {
|
|
590
|
+
kind: 'yielded';
|
|
591
|
+
heldMs: number;
|
|
592
|
+
};
|
|
593
|
+
/**
|
|
594
|
+
* A prefix page's commit at the gesture's idle edge (WRUN-PANBACK A1): the hold runs BEFORE the overlay's session lock
|
|
595
|
+
* and `commit` runs synchronously at the lock's grant, so the commit stays one synchronous transaction. The lock can
|
|
596
|
+
* wait on an async holder (a live block holds it across a worker call), so the gesture may start again between the
|
|
597
|
+
* hold and the grant: a live gesture at the grant with budget left (`ceilingMs` less what the page held and was paced)
|
|
598
|
+
* lets the lock go and the page waits again outside it; with the budget spent it commits. A user run queued meanwhile
|
|
599
|
+
* yields: nothing commits. Each hold that did not yield takes the chart's install turn (`admitWrunInstall`,
|
|
600
|
+
* WRUN-PANBACK-2 S1) before the lock is asked, so the lock is never held while the page waits for it; the lock may grant
|
|
601
|
+
* long after the turn, so at the grant the page writes on it only while no other install of the chart was admitted
|
|
602
|
+
* since (`wrunInstallLastAdmission`), else it lets the lock go and takes a fresh turn (while the budget lasts), and it
|
|
603
|
+
* notes its write (`noteWrunInstallWrite`) so the chart's next turn counts its gap from the commit. `commit` receives how
|
|
604
|
+
* long the page held and how long the pacer held it.
|
|
605
|
+
*/
|
|
606
|
+
export declare function commitWrunPrefixAtGestureEdge<T>(chartIndex: number, indicatorId: string, reason: WrunRunReason, { ceilingMs }: {
|
|
607
|
+
ceilingMs: number;
|
|
608
|
+
}, commit: (heldMs: number, pacedMs: number) => T): Promise<WrunPrefixGestureCommit<T>>;
|
|
514
609
|
/** The chart a full run computes for, read at its head before anything awaits:
|
|
515
610
|
* the live session the run opens belongs to it. */
|
|
516
611
|
interface WrunRunChartOwner {
|
|
@@ -561,7 +656,7 @@ export declare function wrunLegReadsLiveCandleOnly(leg: Pick<WrunPinnedLeg, 'kin
|
|
|
561
656
|
* to carry, so an empty lane refuses loud); a package whose every funding
|
|
562
657
|
* input declares `missing: "nan"` or `"zero"` reads its fill on markets
|
|
563
658
|
* without funding and the lane stays quiet, like oi. */
|
|
564
|
-
export declare function wrunFundingLaneRequired(metadata: WrunIndicatorMetadata): boolean;
|
|
659
|
+
export declare function wrunFundingLaneRequired(metadata: WrunIndicatorMetadata, lane?: WrunPinnedLaneId): boolean;
|
|
565
660
|
/**
|
|
566
661
|
* Reseed a live session from the context's OWN buffers, no fetch (plan
|
|
567
662
|
* section 8 fold 1): the full input rows are rebuilt from the lane buffers
|
|
@@ -628,6 +723,8 @@ type WrunPollLaneThunk = readonly [
|
|
|
628
723
|
type WrunSourceLaneThunks = WrunBuiltinLaneThunks & {
|
|
629
724
|
/** The trades leg lanes (kit 0.77.0), one thunk per (quote, market) by its lane id. */
|
|
630
725
|
tradeLegs?: ReadonlyArray<WrunPollLaneThunk>;
|
|
726
|
+
/** The pinned lanes (U9e, wrun-pinned-lanes.util), one thunk per (class, market) by its lane id. */
|
|
727
|
+
pinnedLanes?: ReadonlyArray<WrunPollLaneThunk>;
|
|
631
728
|
/** The registry poll lanes (`sources/`), one thunk per planned instance. */
|
|
632
729
|
pollLanes?: ReadonlyArray<WrunPollLaneThunk>;
|
|
633
730
|
/** The row lanes (`sources/row-lane-registry.ts`), one thunk per planned instance. */
|
|
@@ -638,6 +735,8 @@ type WrunSourceLaneResults = {
|
|
|
638
735
|
} & {
|
|
639
736
|
/** The trades leg lanes' rows by lane id; present only when one was dispatched. */
|
|
640
737
|
tradeLegRows?: Record<string, WrunLaneRows>;
|
|
738
|
+
/** The pinned lanes' rows by lane id (U9e); present only when one was dispatched. */
|
|
739
|
+
pinnedLaneRows?: Record<string, WrunLaneRows>;
|
|
641
740
|
/** The registry poll lanes' rows by instance id; present only when one was dispatched. */
|
|
642
741
|
pollLaneRows?: Record<string, WrunLaneRows>;
|
|
643
742
|
/** The row lanes' rows by instance id; present only when one was dispatched. */
|
|
@@ -743,6 +842,18 @@ export interface WrunLaneSendAnchor {
|
|
|
743
842
|
* nothing: the budget's late read is the whole answer already.
|
|
744
843
|
*/
|
|
745
844
|
export declare function runWrunSourceLanes(thunks: WrunSourceLaneThunks, policy?: WrunSourceLanePolicy): Promise<WrunSourceLaneRun>;
|
|
845
|
+
/** The chart's main-series metadata (store loaded lazily: this lane is the only reader here). */
|
|
846
|
+
declare function wrunChartMetadataFor(chartIndex: number): Promise<{
|
|
847
|
+
exchange?: unknown;
|
|
848
|
+
symbol?: unknown;
|
|
849
|
+
interval?: unknown;
|
|
850
|
+
coin?: unknown;
|
|
851
|
+
transformations?: unknown;
|
|
852
|
+
normalizedSymbol?: unknown;
|
|
853
|
+
resolvedContract?: unknown;
|
|
854
|
+
sessionType?: unknown;
|
|
855
|
+
adjusted?: unknown;
|
|
856
|
+
} | undefined>;
|
|
746
857
|
/** The chart metadata as a batch the cloud computed reads its facts (`integrateWrunRowSourceBatch`): the chart's own
|
|
747
858
|
* market's, named outright so no browser run's decision on the chart stands in (`wrunDecidedOptionsExchange`). The
|
|
748
859
|
* server resolves the chain of the chart market it is sent (follow-up: the backend's stock twin rule). */
|
|
@@ -768,7 +879,7 @@ export declare function wrunLatestSnapshotOf(metadata: Pick<WrunIndicatorMetadat
|
|
|
768
879
|
* stamped with the chart bar's time. Chart bars that show no run bar are
|
|
769
880
|
* left out.
|
|
770
881
|
*/
|
|
771
|
-
export declare function wrunOutputRowsOnChartBars(outputRows: ReadonlyArray<WrunOutputRow>, chart: unknown, run: Pick<OverlayRunInterval, 'intervalMs' | 'waitForClose' | 'sessionLattice'>): WrunOutputRow[];
|
|
882
|
+
export declare function wrunOutputRowsOnChartBars(outputRows: ReadonlyArray<WrunOutputRow>, chart: unknown, run: Pick<OverlayRunInterval, 'intervalMs' | 'waitForClose' | 'sessionLattice' | 'sessionLatticeId'>): WrunOutputRow[];
|
|
772
883
|
/**
|
|
773
884
|
* Whose rows a presentation publishes (`presentWrunIntegration`), as a refused full run's snapshot
|
|
774
885
|
* (wrun-refusal-surface.util `wrunRefusedLatestSnapshotOf`) reads them: `run` for the verdicts that supersede every
|
|
@@ -833,31 +944,99 @@ export declare function recordWrunHostBuildMs(chartIndex: number | undefined, in
|
|
|
833
944
|
* A repaint of the mounted session under a new sheet: the style-only save's
|
|
834
945
|
* door (wrun-style-patch.util) for the paint its in-place plot patch cannot
|
|
835
946
|
* reach. A `skip` target's Visible row (the selection builds the target again
|
|
836
|
-
* from the session's rows,
|
|
837
|
-
*
|
|
838
|
-
*
|
|
839
|
-
*
|
|
840
|
-
*
|
|
841
|
-
*
|
|
842
|
-
*
|
|
843
|
-
*
|
|
947
|
+
* from the frames snapshot the session's rows carry, or leaves it out: the
|
|
948
|
+
* module writes its frames whatever the sheet hides, and a slot it never wrote
|
|
949
|
+
* builds nothing, as a run of it would), the colour of a level, a renderer or
|
|
950
|
+
* a batched section, a band, a fill, a box, a segment, and every look the
|
|
951
|
+
* adapter derives from an output's colour. The caller swaps the new sheet into
|
|
952
|
+
* the context first (`context.metadata`); this integrates the session's own
|
|
953
|
+
* rows and buffers under it with the canvas fill the session was drawn with
|
|
954
|
+
* (no worker call, no fetch: reintegrateWrunSession) and presents the result
|
|
955
|
+
* as a republish, under the overlay's session lock. A full run in flight
|
|
844
956
|
* replaces the session when it lands, so the repaint stands down and the
|
|
845
957
|
* save's rerun joins that run. False (the save keeps its rerun): no live
|
|
846
958
|
* session, the context replaced or suspended, a full run in flight, the
|
|
847
959
|
* reseed's gates refuse the chart (replay, protection, the pane budget, the
|
|
848
|
-
* pause, the market), no candle to land on, or a failed integrate (the
|
|
849
|
-
*
|
|
850
|
-
*
|
|
851
|
-
*
|
|
852
|
-
*
|
|
853
|
-
*
|
|
854
|
-
*
|
|
855
|
-
*
|
|
856
|
-
*
|
|
960
|
+
* pause, the market), no candle to land on, or a failed integrate (the session
|
|
961
|
+
* then owes its repaint, as after a failed tick). `preview` (a settings
|
|
962
|
+
* gesture's frame, under the previewed sheet) writes nothing to the overlay's
|
|
963
|
+
* settings. A replay session stands down too: only its lane bounds its candles
|
|
964
|
+
* at the replay's cutoff (the run and the tick paths), so the save reruns
|
|
965
|
+
* there. A session whose row source holds its own session (a cloud run)
|
|
966
|
+
* repaints with the cells that source keeps (`cellRowsOf`, as its full run and
|
|
967
|
+
* its frames read them); a sheet drawing price canvases whose cells neither
|
|
968
|
+
* such a source nor the context's lane buffers hold stands down.
|
|
857
969
|
*/
|
|
858
970
|
export declare function repaintWrunSessionUnderSheet(indicatorId: string, context: WrunOverlayLiveContext, options?: {
|
|
859
971
|
preview?: boolean;
|
|
860
972
|
}): Promise<boolean>;
|
|
973
|
+
/**
|
|
974
|
+
* Park one overlay's live session at a warm workspace switch's teardown (the registry loader's capture door, while the
|
|
975
|
+
* outgoing chart still stands): the picture its chart shows (`wrunMountedRunResultOf`, the stand-in capture's read)
|
|
976
|
+
* goes with the session to the park (wrun-overlay-park.util parkWrunOverlayLiveSession), which keeps the worker's
|
|
977
|
+
* series and the context and releases everything chart-bound. Undefined, with nothing released, when the chart shows no whole
|
|
978
|
+
* picture of the session (no result known to show, a page) or the drivers refuse it.
|
|
979
|
+
*/
|
|
980
|
+
export declare function parkWrunOverlayForSwitch(chartIndex: number, indicatorId: string): WrunParkedLiveSession | undefined;
|
|
981
|
+
/** Why an adoption took nothing back (the overlay's first run then runs the package as a first mount does):
|
|
982
|
+
* `not-parked` the handle was adopted or ended already; `chart-gone` no chart or mounted overlay to adopt into;
|
|
983
|
+
* `session-lost` the worker no longer holds the series under its epoch (a death, a newer start, an end);
|
|
984
|
+
* `bars-moved` the chart's rows are not the ones the session covers; `identity-changed` another market or settings
|
|
985
|
+
* revision than it computed; `cme-access` it read CME and the run may not read it now, or the viewer's CME access
|
|
986
|
+
* moved since the park (its fresh run's judge decides); `held` paused, tripped, replaying or held by the lifecycle door;
|
|
987
|
+
* `integrate-failed` the picture did not land. */
|
|
988
|
+
export type WrunParkAdoptRefusal = 'not-parked' | 'chart-gone' | 'session-lost' | 'bars-moved' | 'identity-changed' | 'cme-access' | 'held' | 'integrate-failed';
|
|
989
|
+
export type WrunParkAdoption = {
|
|
990
|
+
adopted: true;
|
|
991
|
+
path: 'prebuilt' | 'rebuilt';
|
|
992
|
+
} | {
|
|
993
|
+
adopted: false;
|
|
994
|
+
reason: WrunParkAdoptRefusal;
|
|
995
|
+
};
|
|
996
|
+
/**
|
|
997
|
+
* The warm switch's re-attach: the overlay's first run on the chart that mounts it again takes its parked live session
|
|
998
|
+
* back (wrun-overlay-park.util parkWrunOverlayLiveSession) in place of running the package over the whole history.
|
|
999
|
+
* The registry loader calls it from the run its driver's first request starts (the executor's single flight, so a wave
|
|
1000
|
+
* meanwhile waits for it, and the executor counts its success as the run's: the good result, the coverage the next
|
|
1001
|
+
* same-rows wave skips on, the attempt and the settings settle).
|
|
1002
|
+
*
|
|
1003
|
+
* Judged on the chart, the host and the session as they stand (`refusalNow`): once before the waits (the hold reads,
|
|
1004
|
+
* the session lock) for an early answer, and again under the lock right before the install, with no await between that
|
|
1005
|
+
* judgment and the install, since a settings save, a symbol switch, a pause, a teardown or the worker can move while
|
|
1006
|
+
* the adoption waits. The mount stands; the worker still holds the series under the parked epoch; the chart's newest
|
|
1007
|
+
* closed bar is the one it was at the park (no bar closed since: the forming bar may differ, the live tick covers it)
|
|
1008
|
+
* and the session covers the chart's rows (its first bar no later than the chart's first; a chart that came back with
|
|
1009
|
+
* fewer bars than it lazy-loaded before the park, the cached boot window, is covered); the market and the settings
|
|
1010
|
+
* revision are the session's; a session that read CME may still read it under the authorisation of its park (the gate
|
|
1011
|
+
* open to the run, the epoch unmoved: no picture computed from CME returns past a closed gate); nothing holds the
|
|
1012
|
+
* overlay (a pause, a trip, replay). Any refusal ends the parked series and answers why; the caller then runs the
|
|
1013
|
+
* package as today.
|
|
1014
|
+
*
|
|
1015
|
+
* A session that covers more bars than the chart shows is cut to the chart's rows before it is adopted
|
|
1016
|
+
* (`trimWrunAdoptedSession`, the run-level attachments riding the cut rows): its first row becomes the chart's, the
|
|
1017
|
+
* output rows before it go, and it plans no prefix run (its guest evaluated the bars before its new first row, so no
|
|
1018
|
+
* prefix proof stands over it), so older bars the chart lazy-loads later go through the history path a fresh run's
|
|
1019
|
+
* would. Its picture is then built again over the rows it kept.
|
|
1020
|
+
*
|
|
1021
|
+
* Adopted, the session is the overlay's again, as if it had never left: the context goes back into the registry under
|
|
1022
|
+
* this chart and a fresh generation (the series keeps its epoch), with its history as-of pins, and a session that read
|
|
1023
|
+
* CME gets back the CME stamp its run's fetch door put on the overlay (both settings copies, before its picture
|
|
1024
|
+
* installs: the remount shed it; by the doors' rule, so a first-party run on a CME chart stays unstamped); its picture
|
|
1025
|
+
* integrates through the route a first run takes (`integrateWrunRunThroughRoute`, reason 'initial': the remount,
|
|
1026
|
+
* `mode: 'metadata'`, the mount memo written), prebuilt (the result the chart showed, built already: no build) when it
|
|
1027
|
+
* was not cut, carries no child overlays and runs at the chart's interval, else built again from the session's own
|
|
1028
|
+
* rows and buffers (`reintegrateWrunSession`, the style repaint's door). Then, still under the lock and with no await
|
|
1029
|
+
* in between, what a first run settles with its picture: the stand-in it replaces retracts (`replaced`), the retained
|
|
1030
|
+
* range, the overlay's live and poll channels open again, a `session-start` gap mark has the first drain reconcile
|
|
1031
|
+
* every lane over the time the tab was away and then tick the kept worker series, and the run settles under the
|
|
1032
|
+
* settings revision the session computed. A teardown, a pause or another switch after that closes what opened here.
|
|
1033
|
+
* The canvas notices, the Strategy Tester payload, the run health and the refusal verdicts publish after the lock,
|
|
1034
|
+
* each only while the session is still this chart's under the generation it was installed with.
|
|
1035
|
+
*/
|
|
1036
|
+
export declare function adoptWrunParkedLiveSession(parked: WrunParkedLiveSession, target: {
|
|
1037
|
+
chartIndex: number;
|
|
1038
|
+
indicatorId: string;
|
|
1039
|
+
}): Promise<WrunParkAdoption>;
|
|
861
1040
|
/** Drop an overlay's canvas run state (its refine latches, its run serial):
|
|
862
1041
|
* called from the live tick lane's teardown hook beside the canvas cache. */
|
|
863
1042
|
export declare function forgetWrunOverlayCanvasState(indicatorId: string): void;
|
|
@@ -988,6 +1167,10 @@ export type WrunIntegrateOptions = WrunOverlayResultOptions & {
|
|
|
988
1167
|
* settings are never written (no legend palette, no stats strip stamp), so nothing a preview paints reaches its
|
|
989
1168
|
* engine copy; the gesture's commit or the cancel's repaint stamps them. */
|
|
990
1169
|
keepOverlaySettings?: boolean;
|
|
1170
|
+
/** An adoption's picture (adoptWrunParkedLiveSession): the result its parked session's chart showed, built already
|
|
1171
|
+
* over `outputRows`, which the route applies as it applies a built one (the tables placed on this chart, the
|
|
1172
|
+
* palette and strip synced, the mount memo written) without building it again. Absent: built from `outputRows`. */
|
|
1173
|
+
prebuilt?: WrunRunResult;
|
|
991
1174
|
};
|
|
992
1175
|
export interface WrunIntegrateOutcome {
|
|
993
1176
|
/** The result (its tables placed when it applied). */
|
|
@@ -1045,4 +1228,36 @@ export declare function integrateWrunOutputRows(options: WrunIntegrateOptions):
|
|
|
1045
1228
|
*/
|
|
1046
1229
|
export declare function integrateWrunRunThroughRoute(options: WrunIntegrateOptions): WrunIntegrateOutcome;
|
|
1047
1230
|
/** Why a pan wave runs whole instead of as a prefix run (C1 v3's skip reasons). */
|
|
1048
|
-
export type WrunPrefixSkipReason = 'no-context' | 'not-backward-extension' | 'not-audited' | 'version-outside-audit' | `unsupported-outputs:${string}` | 'replay' | 'clamped' | 'htf' | `lanes:${WrunPrefixFeedClause}` | 'whole-range-script' | 'prefix-unsafe' | 'no-closed-book-observation' | WrunWarmupMiss | 'warmup-cold' | 'candle-revised';
|
|
1231
|
+
export type WrunPrefixSkipReason = 'no-context' | 'not-backward-extension' | 'not-audited' | 'version-outside-audit' | `unsupported-outputs:${string}` | 'replay' | 'clamped' | 'htf' | `lanes:${WrunPrefixFeedClause}` | 'whole-range-script' | 'prefix-unsafe' | 'no-closed-book-observation' | WrunWarmupMiss | 'warmup-cold' | 'warmup-gaps' | 'prefix-costlier' | 'candle-revised';
|
|
1232
|
+
/**
|
|
1233
|
+
* The page's rows of every lane a prefix asks again (C1 v3 window split; prefix feeds 2026-10-14): each lane over
|
|
1234
|
+
* `[fromMs, beforeTs)`, the bars before the session's first row, asked through `beforeTs - 1` (the chart's fetch reads
|
|
1235
|
+
* an explicit window's end as an inclusive bar and pads it by one source interval, so the answer is cut strictly
|
|
1236
|
+
* before `beforeTs`: the session's own rows stay the session's). Each ask rides its own fetch key
|
|
1237
|
+
* (`<fetchKey>-prefix-<suffix>`, a poll instance `poll-<instance id>`, a relay series its own fetch), the session's
|
|
1238
|
+
* recorded acquisition, the chart's fetch with no cache bypass (the answer a whole run over the extended chart reads,
|
|
1239
|
+
* the resident sided-candle split for buy/sell volume included) and the whole run's deadline, all at once through the
|
|
1240
|
+
* run pass's own lane machinery (`runWrunSourceLanes`) under the page's budget, each under the whole run's empty
|
|
1241
|
+
* policy: a quiet lane's empty page is a quiet stretch and lands; a state lane's (trade volume by size, a funding or
|
|
1242
|
+
* poll lane an input carries) degrades, as does a poll lane answering no value for a carried field; a declined
|
|
1243
|
+
* answer, a failure and a budget expiry degrade any lane. Only a whole answer is a page: the chart's fetch reports
|
|
1244
|
+
* its wire verdict (`onSourceVerdict`) and a relay series its own (`onComplete`), and an answer short of a clean
|
|
1245
|
+
* end-of-stream (a synthetic completion with whatever rows it collected, a history refusal served empty, a trimmed
|
|
1246
|
+
* answer, a row-cache hit whose provenance is not read back, a relay page that still names more) is declined, never
|
|
1247
|
+
* landed as a quiet stretch. Nothing is written here: the pages are staged for the commit, every one or none. A
|
|
1248
|
+
* degraded lane rejects the prefix without a latch (the data, never the module) and the wave's full run follows.
|
|
1249
|
+
* The daily poll lanes and the row lanes (run-schedule/wrun-prefix-feeds.util) ride the same machinery: a daily lane
|
|
1250
|
+
* asks the days before its buffer from its lookback before the page (none when the buffer reaches back that far), an
|
|
1251
|
+
* asked row lane the page's host bars through the lane's own host-grid read; each degrades on an empty answer only
|
|
1252
|
+
* when the session's buffer holds none either (the page of an old stretch, a lane's horizon past it, reads empty as a
|
|
1253
|
+
* whole run's older bars do). A trades leg on the chart's own grid (wrun-prefix-lanes.util `planWrunPrefixLanes`,
|
|
1254
|
+
* WRUN-PANBACK C) asks its market over the page with the request the whole run asks it with (wrun-trades-lane.util
|
|
1255
|
+
* `planWrunTradeLegAsk`: its payload extras, `pinnedMarket` among them) under its own fetch key
|
|
1256
|
+
* (`<fetchKey>-prefix-<lane id>`), quiet like the whole run's leg; a leg the planner asks at a tier on the chart now
|
|
1257
|
+
* declines the page (a page asks no tier).
|
|
1258
|
+
*/
|
|
1259
|
+
export declare function acquireWrunPrefixLanePages(context: WrunOverlayLiveContext, meta: Record<string, unknown>, plan: WrunPrefixFeedPlan, fromMs: number, beforeTs: number, chartMetadata: Awaited<ReturnType<typeof wrunChartMetadataFor>>, meter: WrunDownloadMeterPort): Promise<{
|
|
1260
|
+
pages: WrunPrefixLanePages;
|
|
1261
|
+
} | {
|
|
1262
|
+
degraded: string;
|
|
1263
|
+
}>;
|