@orangecharts/wrun-chart-host 0.11.1 → 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 +17 -0
- package/dist/index.js +18 -0
- package/dist/indicators/controls/tpo-session.util.d.ts +52 -12
- package/dist/indicators/controls/tpo-session.util.js +113 -16
- 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/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-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 +7 -3
- 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 +5 -5
|
@@ -13,9 +13,10 @@
|
|
|
13
13
|
* - The record is canonical: `serializeWrunRefusal` writes a fixed key order with the params
|
|
14
14
|
* sorted by key, so equal records give equal strings (the legend's change-only comparator is
|
|
15
15
|
* strict per primitive, and the record rides `errorMessage.refusal` as that string).
|
|
16
|
-
* - Classification: an attached seed wins (the raiser knows the cause)
|
|
17
|
-
* to the stable codes the raisers already print
|
|
18
|
-
* `wrun_options_chain_*`, `wrun_pin_venue_refused`, `wrun_pin_venue_unknown`) and the
|
|
16
|
+
* - Classification: an attached seed wins (the raiser knows the cause), then a venue wall's row by its walled market's
|
|
17
|
+
* gate plane (`wrunVenueWallSeed`); an unseeded throw falls back to the stable codes the raisers already print
|
|
18
|
+
* (`wrun_cell_block_too_large`, `wrun_options_chain_*`, `wrun_pin_venue_refused`, `wrun_pin_venue_unknown`) and the
|
|
19
|
+
* facts printed beside them (the TPO
|
|
19
20
|
* letter check's pinned words included: letters the chart's own bars cannot place are
|
|
20
21
|
* `interval-unserved` `at-most`, the chart's interval must be the letter's or finer), then to
|
|
21
22
|
* the typed errors (no bars, deadline, source data unavailable), else `run-failed`: `code` when the
|
|
@@ -45,10 +46,13 @@
|
|
|
45
46
|
* name the cause the record names.
|
|
46
47
|
*/
|
|
47
48
|
import { Intervals } from '../../constants/interval.constants.js';
|
|
49
|
+
import { isGateProvider } from '../../workers/constants/socket-slots.js';
|
|
48
50
|
import { isCalendarIntervalLabel } from '../chart/calendar-interval.util.js';
|
|
51
|
+
import { walledVenueOf } from '../v2/gate-plane.util.js';
|
|
52
|
+
import { stocksTapeVenueLabel } from '../v2/stocks-governed.util.js';
|
|
49
53
|
import { isWrunFailureCause, isWrunTransientFailureCause, wrunServerFailureCause, } from './wrun-failure-cause.js';
|
|
50
54
|
import { WRUN_KIT_REFUSAL_STAGES, WRUN_NO_CANDLES_CODE, wrunFrameRefusalOf, wrunKitRefusalStageOf, wrunServerAnswerOfText, wrunServerAnswerVerdict, } from './wrun-hosted-wire-caps.js';
|
|
51
|
-
import { WrunDeadlineError, WrunNoBarsError, WrunQuarantinedError, WrunRegistryAddRefusedError, WrunSourceDataUnavailableError, WrunWorkerPoisonError, } from './wrun-registry-errors.util.js';
|
|
55
|
+
import { WrunDeadlineError, WrunNoBarsError, WrunQuarantinedError, WrunRegistryAddRefusedError, WrunSourceDataUnavailableError, WrunVenueBlockedError, WrunWorkerPoisonError, } from './wrun-registry-errors.util.js';
|
|
52
56
|
/** Every stop reason, closed: the class spec walks it, and a reason without a variant row fails it. */
|
|
53
57
|
export const WRUN_OPTIONS_STOP_REASONS = Object.freeze([
|
|
54
58
|
'session-elsewhere',
|
|
@@ -170,6 +174,13 @@ const OPTIONS_STOPPED_VARIANTS = {
|
|
|
170
174
|
'chart-kind': row('wrun.refusal.sentence.optionsChartKind', 'wrun.refusal.chip.optionsChartKind', ['name']),
|
|
171
175
|
'flag-off': row('wrun.refusal.sentence.optionsNotOnAccount', 'wrun.refusal.chip.optionsNotOnAccount', ['name']),
|
|
172
176
|
};
|
|
177
|
+
/** A session stop's sentence by its take-back's plane, whose data another screen holds (a `Record`: a plane without
|
|
178
|
+
* words is a type error). INT 2026-11-05: a US stocks tape stop read "Your options data". */
|
|
179
|
+
const SESSION_ELSEWHERE_SENTENCES = {
|
|
180
|
+
opra: 'wrun.refusal.sentence.optionsSessionElsewhere',
|
|
181
|
+
cme: 'wrun.refusal.sentence.optionsSessionElsewhere',
|
|
182
|
+
stocks: 'wrun.refusal.sentence.stocksSessionElsewhere',
|
|
183
|
+
};
|
|
173
184
|
/** The C2 table. Keys are full literals (the boot scanner harvests them). */
|
|
174
185
|
const VARIANTS = {
|
|
175
186
|
'legs-empty': {
|
|
@@ -196,6 +207,12 @@ const VARIANTS = {
|
|
|
196
207
|
// A series the data plane samples for a configured list of underlyings only, the chart's not among them (a lane's
|
|
197
208
|
// answer refused by name, wrun-lane-refusal.leaf `not-in-10m-universe`): a note when the run draws around it.
|
|
198
209
|
'not-sampled': row('wrun.refusal.sentence.feedNotSampled', 'wrun.refusal.chip.feedNotSampled', ['feed', 'coin']),
|
|
210
|
+
// A `stocks` lane on Price only: the Live price wall's words and ways out (stock-feed-wall). Raised only where the
|
|
211
|
+
// run may read the tape on Trades (a closed tape meets the venue refusal first), so Trades is always its way out.
|
|
212
|
+
'price-only': row('stockFeed.walled', 'stockFeed.noTradesOnLive', [], {
|
|
213
|
+
severity: 'paused',
|
|
214
|
+
out: { kind: 'switch-to-trades' },
|
|
215
|
+
}),
|
|
199
216
|
},
|
|
200
217
|
'no-options': {
|
|
201
218
|
venue: row('wrun.refusal.sentence.noOptionsVenue', 'wrun.refusal.chip.noOptions', ['venue', 'coin'], {
|
|
@@ -262,6 +279,14 @@ const VARIANTS = {
|
|
|
262
279
|
// The same wall on US options data (OPRA): a package that is not one of OpenMarket's own reads no OPRA chain
|
|
263
280
|
// (product decision 2026-10-14), whatever chart it runs on.
|
|
264
281
|
opra: row('wrun.refusal.sentence.opraWall', 'wrun.refusal.chip.opraWall', [], { severity: 'paused' }),
|
|
282
|
+
// The same wall on a US stocks tape the run may not read (kscript-venue-policy `isUserKScriptBlockedOnExchange`):
|
|
283
|
+
// `venue` names the tape's listing venue (NASDAQ), never CME.
|
|
284
|
+
stocks: row('wrun.refusal.sentence.stocksWall', 'wrun.refusal.chip.stocksWall', ['venue'], { severity: 'paused' }),
|
|
285
|
+
// The CME chain wall: works-on (CME markets), never the switch OUT, a Binance perp where the chain is walled again.
|
|
286
|
+
chain: row('wrun.refusal.sentence.cmeChain', 'wrun.refusal.chip.cmeChain', [], {
|
|
287
|
+
severity: 'paused',
|
|
288
|
+
out: { kind: 'works-on' },
|
|
289
|
+
}),
|
|
265
290
|
// CME user studies (the `cme-user-scripts` gate, kscript-venue-policy.util `isCmeUserScriptRun`): a hosted (Cloud)
|
|
266
291
|
// run on CME, which the gate never opens (CME chart studies run in the browser).
|
|
267
292
|
cloud: row('wrun.refusal.sentence.cmeCloud', 'wrun.refusal.chip.cmeCloud', [], { severity: 'paused' }),
|
|
@@ -284,9 +309,17 @@ const VARIANTS = {
|
|
|
284
309
|
prediction: row('wrun.refusal.sentence.predictionWall', 'wrun.refusal.chip.predictionWall', [], {
|
|
285
310
|
severity: 'paused',
|
|
286
311
|
}),
|
|
312
|
+
// A listed feed this viewer has not bought (P4 C13 402): its price, and Subscribe as the one way out.
|
|
313
|
+
'feed-paid': row('feeds.refusal.paymentRequired', 'feeds.status.paid', ['price'], { severity: 'paused' }),
|
|
287
314
|
},
|
|
315
|
+
// A CME pin the run's facts keep closed (wrun-pin-venues.util), by why (kscript-venue-policy `cmePinRefusalVariant`):
|
|
316
|
+
// the flag dark (`default`), the viewer's CME data terms (`terms`), a server lane, which reads none (`cloud`).
|
|
288
317
|
'pin-refused': {
|
|
289
318
|
default: row('wrun.refusal.sentence.pinRefused', 'wrun.refusal.chip.pinRefused', ['pin'], { severity: 'paused' }),
|
|
319
|
+
terms: row('wrun.refusal.sentence.pinRefusedTerms', 'wrun.refusal.chip.pinRefusedTerms', ['pin'], {
|
|
320
|
+
severity: 'paused',
|
|
321
|
+
}),
|
|
322
|
+
cloud: row('wrun.refusal.sentence.pinRefusedCloud', 'wrun.refusal.chip.cmeCloud', ['pin'], { severity: 'paused' }),
|
|
290
323
|
},
|
|
291
324
|
'index-unserved': {
|
|
292
325
|
default: row('wrun.refusal.sentence.indexUnserved', 'wrun.refusal.chip.indexUnserved', ['symbol'], {
|
|
@@ -322,9 +355,16 @@ const VARIANTS = {
|
|
|
322
355
|
ended: row('wrun.refusal.sentence.notReachedEnded', 'wrun.refusal.chip.notReached', ['name'], {
|
|
323
356
|
severity: 'paused',
|
|
324
357
|
}),
|
|
358
|
+
// A sandbox that died before it booted ran no one's code (FB27): the module-load card's words, no holder named.
|
|
359
|
+
boot: row('indicatorStatus.card.failedBodyCode', 'wrun.refusal.chip.notReached', [], { severity: 'paused' }),
|
|
325
360
|
},
|
|
326
361
|
'nothing-ready': {
|
|
327
362
|
default: row('wrun.refusal.sentence.nothingReady', 'wrun.refusal.chip.nothingReady', [], { severity: 'note' }),
|
|
363
|
+
// A published Indicator whose whole loaded window drew nothing (no finite plotted value, no drawing; FB27): the
|
|
364
|
+
// chip is the legend's own word for that verdict on a draft. `reach` says the cause when the run knows it: a
|
|
365
|
+
// coarser input with no `bars` reaches only `bars` of its candles over the loaded history.
|
|
366
|
+
drawn: row('wrun.refusal.sentence.nothingDrawn', 'kscript.legend.labels.COMPUTE_ALL_NAN', [], { severity: 'note' }),
|
|
367
|
+
reach: row('wrun.refusal.sentence.nothingDrawnReach', 'kscript.legend.labels.COMPUTE_ALL_NAN', ['interval', 'bars'], { severity: 'note' }),
|
|
328
368
|
},
|
|
329
369
|
// The slot refusal's card is Make room; its chip (console rows, a legend that ever carries one)
|
|
330
370
|
// says the add did not happen.
|
|
@@ -428,6 +468,17 @@ export function wrunOptionsStopSeed(reason, opts = {}) {
|
|
|
428
468
|
return { cls: 'options-stopped', variant: reason, out: { kind: 'works-on' }, ...severity };
|
|
429
469
|
}
|
|
430
470
|
}
|
|
471
|
+
/** The venue wall's row per plane (a `Record`: a plane without its own row is a type error); CME keeps its rows. */
|
|
472
|
+
const VENUE_WALL_SEEDS = {
|
|
473
|
+
cme: (_exchange, cmeRow) => cmeRow === undefined || cmeRow === 'default' ? { cls: 'cme-wall' } : { cls: 'cme-wall', variant: cmeRow },
|
|
474
|
+
opra: () => ({ cls: 'cme-wall', variant: 'opra' }),
|
|
475
|
+
stocks: (exchange) => ({ cls: 'cme-wall', variant: 'stocks', params: { venue: stocksTapeVenueLabel(exchange) } }),
|
|
476
|
+
};
|
|
477
|
+
/** The ONE seed of a venue wall, by the plane of the market it refused (`cmeRow` read on CME alone); none off a plane. */
|
|
478
|
+
export function wrunVenueWallSeed(venue, cmeRow) {
|
|
479
|
+
const walled = walledVenueOf(venue);
|
|
480
|
+
return walled === null ? undefined : VENUE_WALL_SEEDS[walled.plane](walled.exchange, cmeRow);
|
|
481
|
+
}
|
|
431
482
|
/** The variants of a class, in C2 order (the spec walks every one). */
|
|
432
483
|
export function wrunRefusalVariants(cls) {
|
|
433
484
|
return Object.keys(VARIANTS[cls] ?? {});
|
|
@@ -445,6 +496,10 @@ function renderSpec(r) {
|
|
|
445
496
|
return RUN_FAILED_GENERIC;
|
|
446
497
|
if (spec.params.includes('feed') && wrunRefusalFeedKey(r.params.feed) === undefined)
|
|
447
498
|
return RUN_FAILED_GENERIC;
|
|
499
|
+
// A session stop names its plane's data (its take-back's plane).
|
|
500
|
+
if (r.cls === 'options-stopped' && r.variant === 'session-elsewhere' && r.out.kind === 'take-session') {
|
|
501
|
+
return { ...spec, sentence: SESSION_ELSEWHERE_SENTENCES[r.out.plane] };
|
|
502
|
+
}
|
|
448
503
|
return spec;
|
|
449
504
|
}
|
|
450
505
|
// ---------------------------------------------------------------------------
|
|
@@ -475,8 +530,11 @@ function canonicalOut(value) {
|
|
|
475
530
|
return typeof value.line === 'number' && Number.isInteger(value.line) && value.line > 0
|
|
476
531
|
? { kind: 'go-to-line', line: value.line }
|
|
477
532
|
: undefined;
|
|
533
|
+
// Every gate plane, the US stocks tape's included: a dropped plane fell to the OPRA take-back (INT 2026-11-05).
|
|
478
534
|
case 'take-session':
|
|
479
|
-
return value.plane
|
|
535
|
+
return isGateProvider(value.plane) ? { kind: 'take-session', plane: value.plane } : undefined;
|
|
536
|
+
case 'subscribe':
|
|
537
|
+
return nonEmpty(value.package) ? { kind: 'subscribe', package: value.package } : undefined;
|
|
480
538
|
case 'works-on':
|
|
481
539
|
case 'open-settings':
|
|
482
540
|
case 'retry':
|
|
@@ -487,6 +545,8 @@ function canonicalOut(value) {
|
|
|
487
545
|
case 'report':
|
|
488
546
|
case 'remove':
|
|
489
547
|
case 'reload':
|
|
548
|
+
case 'accept-cme-terms':
|
|
549
|
+
case 'switch-to-trades':
|
|
490
550
|
return { kind: value.kind };
|
|
491
551
|
default:
|
|
492
552
|
return undefined;
|
|
@@ -795,11 +855,14 @@ function seedFromCodes(message, ctx) {
|
|
|
795
855
|
return { cls: 'too-big', variant: 'chain', params: { cells, max } };
|
|
796
856
|
return { cls: 'too-big', variant: 'block', params: { feed: sourceClass ?? '', cells, max } };
|
|
797
857
|
}
|
|
798
|
-
//
|
|
799
|
-
//
|
|
800
|
-
//
|
|
801
|
-
|
|
802
|
-
|
|
858
|
+
// An author's rule a host refuses by its code, `wrun_<rule>_invalid`: a celled input's capacity no build writes
|
|
859
|
+
// (wrun-cell-capacity.leaf `wrunCellCapacityIssue`), a book's bands no walk can reduce, a tape's floor, a frame slot.
|
|
860
|
+
// The package's sheet is the author's to rebuild, by its code: the record carries it (`refused:<code>`, never the
|
|
861
|
+
// codeless `failed:other`). Read here as the block code above is, so the boot path's refusal reader never loads
|
|
862
|
+
// the leaves that throw them (tests/perf/pre-candle-budget.spec.ts).
|
|
863
|
+
const authorRule = /\bwrun_[a-z_]+_invalid\b/.exec(message)?.[0];
|
|
864
|
+
if (authorRule !== undefined)
|
|
865
|
+
return wrunAuthorRuleSeed(authorRule);
|
|
803
866
|
const optionsCode = /\b(wrun_options_chain_[a-z_]+)\b/.exec(message)?.[1];
|
|
804
867
|
if (optionsCode !== undefined) {
|
|
805
868
|
const coin = /\bcoin '([^']+)'/.exec(message)?.[1] ?? ctx.chart?.coin ?? '';
|
|
@@ -823,11 +886,12 @@ function seedFromCodes(message, ctx) {
|
|
|
823
886
|
return wrunAuthorRuleSeed(optionsCode);
|
|
824
887
|
}
|
|
825
888
|
}
|
|
889
|
+
// Unseeded, the words are a server host's (the browser lane always attaches its seed): the server lanes read no CME.
|
|
826
890
|
if (message.includes('wrun_pin_venue_refused')) {
|
|
827
891
|
const pin = /\bwrun_pin_venue_refused: (\S+) is CME\b/.exec(message)?.[1] ??
|
|
828
892
|
/\bpins exchange (\S+?):/.exec(message)?.[1] ??
|
|
829
893
|
'CME';
|
|
830
|
-
return { cls: 'pin-refused', params: { pin } };
|
|
894
|
+
return { cls: 'pin-refused', variant: 'cloud', params: { pin } };
|
|
831
895
|
}
|
|
832
896
|
// A host's own refusal of a venue word (the cloud's planner, om's sheet check): the same record
|
|
833
897
|
// the run pass seeds.
|
|
@@ -955,9 +1019,10 @@ export function wrunCloudRefusalSeed(code, facts = {}, ctx) {
|
|
|
955
1019
|
if (code === 'wrun_options_chain_venue_unavailable' && coin !== '' && venue !== undefined) {
|
|
956
1020
|
return { cls: 'no-options', variant: 'venue', params: { venue, coin } };
|
|
957
1021
|
}
|
|
958
|
-
// A pin on CME data names the venue the frame names, else CME
|
|
959
|
-
if (code === 'wrun_pin_venue_refused')
|
|
960
|
-
return { cls: 'pin-refused', params: { pin: facts.value ?? 'CME' } };
|
|
1022
|
+
// A pin on CME data names the venue the frame names, else CME; a server host reads no CME pin (`cloud`).
|
|
1023
|
+
if (code === 'wrun_pin_venue_refused') {
|
|
1024
|
+
return { cls: 'pin-refused', variant: 'cloud', params: { pin: facts.value ?? 'CME' } };
|
|
1025
|
+
}
|
|
961
1026
|
if (code === 'wrun_pin_venue_unknown' && facts.value) {
|
|
962
1027
|
return { cls: 'run-failed', variant: 'pin-venue-unknown', params: { venue: facts.value } };
|
|
963
1028
|
}
|
|
@@ -1071,6 +1136,15 @@ function seedOfError(error, ctx) {
|
|
|
1071
1136
|
const attached = wrunRefusalSeedOf(error);
|
|
1072
1137
|
if (attached)
|
|
1073
1138
|
return withLoaderCode(attached, error);
|
|
1139
|
+
// A venue wall reads its walled market's plane, never its message's words.
|
|
1140
|
+
const wall = error instanceof WrunVenueBlockedError ? wrunVenueWallSeed(error.venue) : undefined;
|
|
1141
|
+
if (wall)
|
|
1142
|
+
return wall;
|
|
1143
|
+
// A sandbox that died before it booted ran no one's code (FB27): the run reads the module-load words, as its
|
|
1144
|
+
// casualties do (wrunCasualtyRefusalSeed), never the generic "Could not draw".
|
|
1145
|
+
if (error instanceof WrunWorkerPoisonError && error.death?.booted === false) {
|
|
1146
|
+
return { cls: 'not-reached', variant: 'boot' };
|
|
1147
|
+
}
|
|
1074
1148
|
const plain = validSeed(error);
|
|
1075
1149
|
if (plain && !(error instanceof Error))
|
|
1076
1150
|
return plain;
|
|
@@ -1191,8 +1265,8 @@ function variantFor(seed, ctx) {
|
|
|
1191
1265
|
return declared;
|
|
1192
1266
|
if (declared === 'market-paused' || declared === 'market-note')
|
|
1193
1267
|
return declared;
|
|
1194
|
-
// The app's own lack of the feed,
|
|
1195
|
-
if (declared === 'protocol-pending' || declared === 'not-sampled')
|
|
1268
|
+
// The app's own lack of the feed, the data plane's sampled list, Price only: no market fact moves either.
|
|
1269
|
+
if (declared === 'protocol-pending' || declared === 'not-sampled' || declared === 'price-only')
|
|
1196
1270
|
return declared;
|
|
1197
1271
|
if (declared === undefined && !cryptoChart)
|
|
1198
1272
|
return 'crypto-only';
|
|
@@ -1214,10 +1288,15 @@ function variantFor(seed, ctx) {
|
|
|
1214
1288
|
return seed.params?.market !== undefined || seed.market !== undefined || ctx.chart ? 'lane' : 'global';
|
|
1215
1289
|
case 'cme-wall':
|
|
1216
1290
|
return declared !== undefined && variantSpec('cme-wall', declared) ? declared : 'default';
|
|
1291
|
+
// A seed names its gate's words (`cmePinRefusalVariant`); none reads the flag-dark words.
|
|
1292
|
+
case 'pin-refused':
|
|
1293
|
+
return declared !== undefined && variantSpec('pin-refused', declared) ? declared : 'default';
|
|
1217
1294
|
case 'too-big':
|
|
1218
1295
|
return declared === 'chain' || declared === 'rows' || declared === 'tape' ? declared : 'block';
|
|
1219
1296
|
case 'not-reached':
|
|
1220
1297
|
return declared !== undefined && variantSpec('not-reached', declared) ? declared : 'run';
|
|
1298
|
+
case 'nothing-ready':
|
|
1299
|
+
return declared !== undefined && variantSpec('nothing-ready', declared) ? declared : 'default';
|
|
1221
1300
|
case 'slots':
|
|
1222
1301
|
return declared === 'all-in-use' ? 'all-in-use' : 'some-free';
|
|
1223
1302
|
case 'not-added':
|
|
@@ -1312,6 +1391,8 @@ function defaultOut(cls, variant, ctx, params) {
|
|
|
1312
1391
|
return nonEmpty(interval) ? { kind: 'try-interval', interval } : { kind: 'works-on' };
|
|
1313
1392
|
}
|
|
1314
1393
|
case 'pin-refused':
|
|
1394
|
+
if (variant === 'terms')
|
|
1395
|
+
return { kind: 'accept-cme-terms' };
|
|
1315
1396
|
if (ctx.editable)
|
|
1316
1397
|
return { kind: 'open-editor' };
|
|
1317
1398
|
return ctx.hasSettings ? { kind: 'open-settings' } : { kind: 'works-on' };
|
|
@@ -1839,6 +1920,12 @@ function outLabelOf(out, t) {
|
|
|
1839
1920
|
return t('dialogs.loadingTimeout.reloadApp');
|
|
1840
1921
|
case 'take-session':
|
|
1841
1922
|
return t('wrun.refusal.out.takeSession');
|
|
1923
|
+
case 'subscribe':
|
|
1924
|
+
return t('kscript.access.marketplacePrompt.subscribe');
|
|
1925
|
+
case 'accept-cme-terms':
|
|
1926
|
+
return t('symbolSelection.optionChain.cmeTermsAccept');
|
|
1927
|
+
case 'switch-to-trades':
|
|
1928
|
+
return t('stockFeed.paused.backToTrades');
|
|
1842
1929
|
}
|
|
1843
1930
|
}
|
|
1844
1931
|
/** The longest detail line a surface shows. */
|
|
@@ -67,9 +67,12 @@ export declare class WrunSourceDataUnavailableError extends WrunRegistryAddRefus
|
|
|
67
67
|
* is what `isKScriptVenueBlockedError` recognizes. It subclasses the add
|
|
68
68
|
* refusal because the wall's painter already put the ONE standing message
|
|
69
69
|
* on the legend: no caller surfaces a second one, and the driver stays
|
|
70
|
-
* registered so the run after the chart leaves the governed venue computes.
|
|
70
|
+
* registered so the run after the chart leaves the governed venue computes.
|
|
71
|
+
* `venue` is the market the policy walled: its gate plane picks the record's
|
|
72
|
+
* row (wrun-refusal.util `wrunVenueWallSeed`), never the message's words. */
|
|
71
73
|
export declare class WrunVenueBlockedError extends WrunRegistryAddRefusedError {
|
|
72
|
-
|
|
74
|
+
readonly venue: unknown;
|
|
75
|
+
constructor(message: string, venue: unknown);
|
|
73
76
|
}
|
|
74
77
|
export declare function isWrunVenueBlockedError(error: unknown): error is WrunVenueBlockedError;
|
|
75
78
|
/** Thrown at the head of the WRUN run pass for a strategy sheet on a CME
|
|
@@ -83,7 +86,7 @@ export declare function isWrunVenueBlockedError(error: unknown): error is WrunVe
|
|
|
83
86
|
* (`cme-wall`, variant `strategy`, which the raiser attaches) on the
|
|
84
87
|
* legend, and the editor's Run reads the same record. */
|
|
85
88
|
export declare class WrunStrategyVenueBlockedError extends WrunVenueBlockedError {
|
|
86
|
-
constructor(message: string);
|
|
89
|
+
constructor(message: string, venue: unknown);
|
|
87
90
|
}
|
|
88
91
|
export declare function isWrunStrategyVenueBlockedError(error: unknown): error is WrunStrategyVenueBlockedError;
|
|
89
92
|
/** Thrown at the head of the WRUN run pass for a sheet with an input read
|
|
@@ -96,7 +99,14 @@ export declare function isWrunStrategyVenueBlockedError(error: unknown): error i
|
|
|
96
99
|
* so the run pass projects its own record (`cme-wall`, variant `prediction`,
|
|
97
100
|
* which the raiser attaches). */
|
|
98
101
|
export declare class WrunPredictionMarketBlockedError extends WrunVenueBlockedError {
|
|
99
|
-
constructor(message: string);
|
|
102
|
+
constructor(message: string, venue: unknown);
|
|
103
|
+
}
|
|
104
|
+
/** Thrown by a row lane's identity for a run the venue policy keeps off the market the lane reads (the `dark_pool`
|
|
105
|
+
* lane on a US stocks tape closed to user scripting, none today): the fetch door's refusal and words (the
|
|
106
|
+
* venue policy's own message) and the same held settle. Like the strategy one no wall painter stands behind it (a
|
|
107
|
+
* Price only chart's candles are not the tape), so the run pass projects the record its `venue`'s plane reads. */
|
|
108
|
+
export declare class WrunLaneVenueBlockedError extends WrunVenueBlockedError {
|
|
109
|
+
constructor(message: string, venue: unknown);
|
|
100
110
|
}
|
|
101
111
|
/** The run head refused because the overlay is paused or its execution guard
|
|
102
112
|
* tripped. Silent like the venue wall: the legend already shows the Paused
|
|
@@ -142,8 +152,8 @@ export declare function isWrunQuarantinedError(error: unknown): error is WrunQua
|
|
|
142
152
|
* `quarantineKey` and `sessionKey` name the request the worker was running
|
|
143
153
|
* (its package and, for a live lane, its session, which is the overlay id);
|
|
144
154
|
* `heldMs` is the budget a timeout exhausted, so it bounds how long that
|
|
145
|
-
* request held the sandbox, never how long it executed; `
|
|
146
|
-
* epoch ms. */
|
|
155
|
+
* request held the sandbox, never how long it executed; `booted` says the
|
|
156
|
+
* worker died before its boot; `at` is the death's epoch ms. */
|
|
147
157
|
export interface WrunHostDeathContext {
|
|
148
158
|
readonly kind: 'timeout' | 'worker-error' | 'unknown';
|
|
149
159
|
readonly quarantineKey?: string;
|
|
@@ -151,6 +161,10 @@ export interface WrunHostDeathContext {
|
|
|
151
161
|
/** The culprit's phase: `start` (its wait, compile and instantiation, from the post) or `run` (executing). */
|
|
152
162
|
readonly phase?: 'start' | 'run';
|
|
153
163
|
readonly heldMs?: number;
|
|
164
|
+
/** False when the worker died before it booted (before its first answer, FB27): it ran no request, so the death is
|
|
165
|
+
* the environment's (its script or a chunk of it did not load, or its entry threw), names no culprit, and its
|
|
166
|
+
* casualties' words say so. Absent for a worker that had booted, and on a record the host did not write. */
|
|
167
|
+
readonly booted?: false;
|
|
154
168
|
readonly at: number;
|
|
155
169
|
}
|
|
156
170
|
/** The shared wrun worker died (run timeout or `onerror`) and took every
|
|
@@ -80,11 +80,15 @@ export class WrunSourceDataUnavailableError extends WrunRegistryAddRefusedError
|
|
|
80
80
|
* is what `isKScriptVenueBlockedError` recognizes. It subclasses the add
|
|
81
81
|
* refusal because the wall's painter already put the ONE standing message
|
|
82
82
|
* on the legend: no caller surfaces a second one, and the driver stays
|
|
83
|
-
* registered so the run after the chart leaves the governed venue computes.
|
|
83
|
+
* registered so the run after the chart leaves the governed venue computes.
|
|
84
|
+
* `venue` is the market the policy walled: its gate plane picks the record's
|
|
85
|
+
* row (wrun-refusal.util `wrunVenueWallSeed`), never the message's words. */
|
|
84
86
|
export class WrunVenueBlockedError extends WrunRegistryAddRefusedError {
|
|
85
|
-
|
|
87
|
+
venue;
|
|
88
|
+
constructor(message, venue) {
|
|
86
89
|
super(message);
|
|
87
90
|
this.name = 'WrunVenueBlockedError';
|
|
91
|
+
this.venue = venue;
|
|
88
92
|
}
|
|
89
93
|
}
|
|
90
94
|
export function isWrunVenueBlockedError(error) {
|
|
@@ -101,8 +105,8 @@ export function isWrunVenueBlockedError(error) {
|
|
|
101
105
|
* (`cme-wall`, variant `strategy`, which the raiser attaches) on the
|
|
102
106
|
* legend, and the editor's Run reads the same record. */
|
|
103
107
|
export class WrunStrategyVenueBlockedError extends WrunVenueBlockedError {
|
|
104
|
-
constructor(message) {
|
|
105
|
-
super(message);
|
|
108
|
+
constructor(message, venue) {
|
|
109
|
+
super(message, venue);
|
|
106
110
|
this.name = 'WrunStrategyVenueBlockedError';
|
|
107
111
|
}
|
|
108
112
|
}
|
|
@@ -119,11 +123,21 @@ export function isWrunStrategyVenueBlockedError(error) {
|
|
|
119
123
|
* so the run pass projects its own record (`cme-wall`, variant `prediction`,
|
|
120
124
|
* which the raiser attaches). */
|
|
121
125
|
export class WrunPredictionMarketBlockedError extends WrunVenueBlockedError {
|
|
122
|
-
constructor(message) {
|
|
123
|
-
super(message);
|
|
126
|
+
constructor(message, venue) {
|
|
127
|
+
super(message, venue);
|
|
124
128
|
this.name = 'WrunPredictionMarketBlockedError';
|
|
125
129
|
}
|
|
126
130
|
}
|
|
131
|
+
/** Thrown by a row lane's identity for a run the venue policy keeps off the market the lane reads (the `dark_pool`
|
|
132
|
+
* lane on a US stocks tape closed to user scripting, none today): the fetch door's refusal and words (the
|
|
133
|
+
* venue policy's own message) and the same held settle. Like the strategy one no wall painter stands behind it (a
|
|
134
|
+
* Price only chart's candles are not the tape), so the run pass projects the record its `venue`'s plane reads. */
|
|
135
|
+
export class WrunLaneVenueBlockedError extends WrunVenueBlockedError {
|
|
136
|
+
constructor(message, venue) {
|
|
137
|
+
super(message, venue);
|
|
138
|
+
this.name = 'WrunLaneVenueBlockedError';
|
|
139
|
+
}
|
|
140
|
+
}
|
|
127
141
|
/** The run head refused because the overlay is paused or its execution guard
|
|
128
142
|
* tripped. Silent like the venue wall: the legend already shows the Paused
|
|
129
143
|
* state, so no caller adds a chip or a toast, the driver stays registered,
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* the frame paints.
|
|
11
11
|
*
|
|
12
12
|
* The batched marks children (WRUN-BATCHED-MARKS: `<id>::marks:<name>`, `::spans:<name>`,
|
|
13
|
-
* `::rays:<name
|
|
13
|
+
* `::rays:<name>`, `::flags:<name>`, the kinds of wrun-batched-kinds.leaf) are per-bar rows keyed by their
|
|
14
|
+
* timestamp like the series rows, so they join the
|
|
14
15
|
* cut (round-2 fold 9): a cut takes their engine rows AND, in the same task, the child mount's record
|
|
15
16
|
* of them (the input a theme or timezone retranslate rebuilds from) and their cell ledger
|
|
16
17
|
* (wrun-panel-mount.util `cutWrunBatchedChildRecords`, through its door), and tells the engine the
|
|
@@ -28,22 +29,17 @@
|
|
|
28
29
|
*/
|
|
29
30
|
import { isReplaySideOutputPlot, replayRowHasTs } from '../../replay/replayIndicatorRows.js';
|
|
30
31
|
import { flushKScriptChartPaint } from '../chart/kscript-chart-flush.leaf.js';
|
|
32
|
+
import { isWrunBatchedChildIdOf } from './wrun-batched-kinds.leaf.js';
|
|
31
33
|
import { cutWrunBatchedChildRecords } from './wrun-panel-mount.lazy.js';
|
|
32
34
|
import { wrunPaneChildId } from './wrun-output-style.util.js';
|
|
33
35
|
import { wrunReplayPaintCutoffOf } from './wrun-replay-lane.util.js';
|
|
34
|
-
/** The child id prefixes of a wrun overlay's batched marks children (wrun-batched-marks.util ids). */
|
|
35
|
-
const BATCHED_CHILD_KINDS = ['marks', 'spans', 'rays'];
|
|
36
|
-
/** A batched marks child of the overlay: `<id>::marks:<name>`, `::spans:<name>` or `::rays:<name>`. */
|
|
37
|
-
function isWrunReplayBatchedMetaOf(metaId, indicatorId) {
|
|
38
|
-
return (typeof metaId === 'string' && BATCHED_CHILD_KINDS.some((kind) => metaId.startsWith(`${indicatorId}::${kind}:`)));
|
|
39
|
-
}
|
|
40
36
|
/** A wrun overlay's metas: its own, its series child panes' (`<id>::series:<pane>`, wrunPaneChildId)
|
|
41
|
-
* and its batched marks children's. */
|
|
37
|
+
* and its batched marks children's (`<id>::<kind>:<name>`, every batched kind). */
|
|
42
38
|
function isWrunReplayMetaOf(metaId, indicatorId) {
|
|
43
39
|
return (typeof metaId === 'string' &&
|
|
44
40
|
(metaId === indicatorId ||
|
|
45
41
|
metaId.startsWith(wrunPaneChildId(indicatorId, '')) ||
|
|
46
|
-
|
|
42
|
+
isWrunBatchedChildIdOf(metaId, indicatorId)));
|
|
47
43
|
}
|
|
48
44
|
function rowTs(row) {
|
|
49
45
|
return Array.isArray(row) ? Number(row[0]) : Number.NaN;
|
|
@@ -133,7 +129,7 @@ export function cutWrunReplayRows(tc, indicatorId, cutoffTs, options = {}) {
|
|
|
133
129
|
for (const meta of metadata) {
|
|
134
130
|
if (!isWrunReplayMetaOf(meta?.id, indicatorId))
|
|
135
131
|
continue;
|
|
136
|
-
const batched =
|
|
132
|
+
const batched = isWrunBatchedChildIdOf(meta.id, indicatorId);
|
|
137
133
|
// A batched child's queued row swap lands before the cut reads its rows, never after it (above).
|
|
138
134
|
if (batched)
|
|
139
135
|
chart?.notifyLiveDataMutated?.(meta.id);
|
|
@@ -19,13 +19,18 @@
|
|
|
19
19
|
* (`wrun-overlay-run.util`): on a viewer's chart a long window over a short history is an
|
|
20
20
|
* ordinary state, not a mistake to flag. A draft's live session keeps the verdict honest: a
|
|
21
21
|
* tick or reseed that makes the draft draw clears the rows (`sameWrunRunHealthVerdict` keeps
|
|
22
|
-
* a still-true verdict from being rewritten for every new bar).
|
|
22
|
+
* a still-true verdict from being rewritten for every new bar). A viewer of a published
|
|
23
|
+
* Indicator whose whole loaded window drew nothing gets one quiet note instead (FB27,
|
|
24
|
+
* `WRUN_NOTHING_DRAWN`, "The viewer's nothing-drawn note" below), never the per-output rows.
|
|
23
25
|
*
|
|
24
26
|
* Only CONTINUOUS plots count as silent when all NaN (line, area, histogram, bar). An event
|
|
25
27
|
* plot (shape, scatter) with no event in the window, a candle group, and a data-only output
|
|
26
28
|
* (`none`, the `color_by` / `width_by` ladders) are legitimately empty. So is an output nobody
|
|
27
29
|
* sees: `legend: false` (drawn without a legend line: a hidden helper, a picked level that may be
|
|
28
|
-
* off) and `visible: false` (a caller folds the Style page's Visible row into it first).
|
|
30
|
+
* off) and `visible: false` (a caller folds the Style page's Visible row into it first). So is an
|
|
31
|
+
* `omit_if_empty` output (a plot drawn under an `if`, a mode the settings switched off): the
|
|
32
|
+
* author declared that a run may never draw it, and the mount leaves it out with no legend row,
|
|
33
|
+
* so it is never named silent (a mode-switched indicator warned on its idle mode, 2026-11-02). A silent
|
|
29
34
|
* output is named by its display label (`labels`, the legend's own words, never the raw id) on
|
|
30
35
|
* the chart's surfaces; the row's technical message keeps the id for the author's console.
|
|
31
36
|
*
|
|
@@ -153,3 +158,85 @@ export declare function wrunRunHealthDiagnostics(health: WrunRunHealth, refusal?
|
|
|
153
158
|
* author's to read, not a viewer's refusal); null otherwise. Its details are the all-warm-up
|
|
154
159
|
* row's technical words. */
|
|
155
160
|
export declare function wrunNothingReadyRefusal(health: WrunRunHealth, ctx: WrunRefusalContext): WrunRefusal | null;
|
|
161
|
+
/**
|
|
162
|
+
* A published Indicator that drew nothing over the whole loaded window (ready bars came, no plotted value was finite
|
|
163
|
+
* on any of them, the run made no drawing) used to tell its viewer nothing: the all-NaN rows above are a draft's, and
|
|
164
|
+
* a viewer saw a legend row over an empty chart (ZigZag on 1m forex, a band that reads volume on quote candles, a
|
|
165
|
+
* 50-week average on a 1h chart). The note says it once, quietly (the `nothing-ready` record's `drawn` variant, a
|
|
166
|
+
* note: no toast), and says the cause instead when the run knows it (`reach`: a scalar input pinned to a coarser
|
|
167
|
+
* interval, whatever its `bars`, or a candles stream with no `bars`, sees only the few candles the loaded history
|
|
168
|
+
* spans). Its own owned set beside the health rows:
|
|
169
|
+
* the live tick re-reads those (a viewer keeps only the nothing-ready row there), so this note is raised by a full
|
|
170
|
+
* run, a reseed, an adoption and a landed page, and lowered by any integrate that draws, a tick's included
|
|
171
|
+
* (wrun-overlay-run.util `presentWrunIntegration`).
|
|
172
|
+
*/
|
|
173
|
+
export declare const WRUN_NOTHING_DRAWN_CODE = "WRUN_NOTHING_DRAWN";
|
|
174
|
+
export declare const WRUN_NOTHING_DRAWN_ROW_CODES: ReadonlySet<string>;
|
|
175
|
+
/**
|
|
176
|
+
* Whether a run drew nothing a viewer could see over `rows`: at least one ready row, no plotted column
|
|
177
|
+
* (`wrunRowJudgedPicture`) finite on any of them, and no drawing record (`drawings`: the live handle set's size the
|
|
178
|
+
* rows carry, undefined when they carry none). Never true for a sheet the rows cannot show, for one declaring handles
|
|
179
|
+
* whose set the rows do not carry, for one that draws nothing at all (only data-only outputs), or for a run with no
|
|
180
|
+
* ready row (the nothing-ready row is that one's). A sparse output (one finite value, one label) drew.
|
|
181
|
+
*/
|
|
182
|
+
export declare function wrunRunDrewNothing(metadata: Pick<WrunIndicatorMetadata, 'outputs'>, rows: ReadonlyArray<WrunOutputRow>, drawings: number | undefined): boolean;
|
|
183
|
+
/** Whether `rows` show something drawn: a drawing record, or a finite value in a plotted column on a ready row. The
|
|
184
|
+
* half of the verdict that lowers a standing note (a live tick that starts drawing): rows of a sheet the verdict
|
|
185
|
+
* cannot read never lower it, since no note is raised for one. */
|
|
186
|
+
export declare function wrunRunDrewSomething(metadata: Pick<WrunIndicatorMetadata, 'outputs'>, rows: ReadonlyArray<WrunOutputRow>, drawings: number | undefined): boolean;
|
|
187
|
+
/** The cause the note names: the input on the coarsest interval that reaches only `bars` of its candles. */
|
|
188
|
+
export interface WrunShortLegReach {
|
|
189
|
+
/** The leg's interval as the chart spells it (`1w`, `1d`). */
|
|
190
|
+
interval: string;
|
|
191
|
+
/** The leg candles the module sees over the rows: the window's spans plus the two the host reads before its first
|
|
192
|
+
* row (wrun-browser-runtime.md, "Where a leg is fetched from"). */
|
|
193
|
+
bars: number;
|
|
194
|
+
/** The input is a leg stream (`candles`, `oi_candles`, `volume_profile_candles`) with no `bars`, which declaring them
|
|
195
|
+
* would deepen; absent for a scalar pin, which reads one candle a row whatever its `bars`. */
|
|
196
|
+
stream?: true;
|
|
197
|
+
}
|
|
198
|
+
/** The interval pin vocabulary and the reach a coarser leg should have (the run seam's: wrun-pinned-interval.util,
|
|
199
|
+
* and the leg fetch's warm-up floor for a coarser leg). */
|
|
200
|
+
export interface WrunLegReachRule {
|
|
201
|
+
intervalOf(word: string | undefined): {
|
|
202
|
+
key: string;
|
|
203
|
+
ms: number;
|
|
204
|
+
} | undefined;
|
|
205
|
+
floor: number;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* The short reach behind an empty run, when the run has one: an input pinned to an interval coarser than the run's
|
|
209
|
+
* that reads a leg's history (not its forming candle), whose candles over the rows number fewer than the rule's floor.
|
|
210
|
+
* A scalar pin is short whatever its `bars`: each row reads one leg candle, the newest closed by it, so `bars` only
|
|
211
|
+
* deepens the fetch and a window fed from the pin holds the candles the rows span plus the two the host reads before
|
|
212
|
+
* the first (the kit's WRUN_DECL_INTERVAL_WINDOW_SHORT warns on the same shape). A leg stream is short only without
|
|
213
|
+
* `bars` (such a stream starts two leg spans before the chart's first row; declared, its first row carries the backlog
|
|
214
|
+
* that far back). The coarsest such input names the cause; undefined for none.
|
|
215
|
+
*/
|
|
216
|
+
export declare function wrunShortLegReach(metadata: Partial<Pick<WrunIndicatorMetadata, 'inputSources'>>, rows: ReadonlyArray<WrunOutputRow>, runIntervalMs: number | undefined, rule: WrunLegReachRule): WrunShortLegReach | undefined;
|
|
217
|
+
/** What a seam knows about a run that the viewer's note reads. */
|
|
218
|
+
export interface WrunNothingDrawnRun {
|
|
219
|
+
/** An editor draft: its own all-NaN rows speak to its author, so it never gets the note. */
|
|
220
|
+
draft: boolean;
|
|
221
|
+
/** The run read its whole loaded window and every source answered: no partial window, no first slice still filling,
|
|
222
|
+
* no lane unanswered, no source with a note of its own (an absent feed, a degraded lane, a leg note). A run that is
|
|
223
|
+
* not settled leaves the note as it stands. */
|
|
224
|
+
settled: boolean;
|
|
225
|
+
metadata: Pick<WrunIndicatorMetadata, 'outputs'> & Partial<Pick<WrunIndicatorMetadata, 'inputSources'>>;
|
|
226
|
+
rows: ReadonlyArray<WrunOutputRow>;
|
|
227
|
+
/** The run's drawing records (the live handle set's size the rows carry), undefined when they carry none. */
|
|
228
|
+
drawings: number | undefined;
|
|
229
|
+
/** The interval the run computed on, ms, and the leg rule its reach is read with. */
|
|
230
|
+
runIntervalMs?: number;
|
|
231
|
+
legs?: WrunLegReachRule;
|
|
232
|
+
}
|
|
233
|
+
/** The note a settled viewer run owes: null when it owes none (a draft, a run that drew, a run with no ready bar), else
|
|
234
|
+
* the cause when the run knows it. Undefined for a run that is not settled: the note stands as it is. */
|
|
235
|
+
export declare function wrunViewerNothingDrawn(run: WrunNothingDrawnRun): {
|
|
236
|
+
reach?: WrunShortLegReach;
|
|
237
|
+
} | null | undefined;
|
|
238
|
+
/** The note row of a verdict (none for null): the `nothing-ready` record's `drawn` variant, or `reach` naming the
|
|
239
|
+
* leg's interval and the candles it reaches; the row's message keeps the technical words (Copy details). */
|
|
240
|
+
export declare function wrunNothingDrawnDiagnostics(verdict: {
|
|
241
|
+
reach?: WrunShortLegReach;
|
|
242
|
+
} | null, ctx: WrunRefusalContext): RuntimeDiagnostic[];
|