@orangecharts/wrun-chart-host 0.11.1 → 0.15.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 +4 -4
- package/dist/constants/feature-flags.constants.js +38 -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 +69 -3
- package/dist/host-env.js +21 -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 +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 +141 -20
- 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 +5 -5
- package/dist/market-data/venues/opra.js +3 -3
- package/dist/market-data/venues/stocks.contract.copy.json +6 -5
- package/dist/market-data/venues/stocks.d.ts +5 -5
- package/dist/market-data/venues/stocks.js +21 -18
- 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 +43 -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 +38 -7
- package/dist/utility/chart/cache-alignment.util.js +50 -13
- 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/footprint-band.util.d.ts +21 -5
- package/dist/utility/chart/footprint-band.util.js +53 -14
- 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 +38 -13
- package/dist/utility/chart/wrun-run-result.util.js +97 -27
- 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 +46 -23
- package/dist/utility/wrun/wrun-batched-marks.util.js +260 -62
- 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.d.ts +24 -7
- package/dist/utility/wrun/wrun-canvases.util.js +99 -30
- 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-hover.util.d.ts +8 -2
- package/dist/utility/wrun/wrun-hover.util.js +24 -13
- 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 +655 -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-output-words.util.d.ts +14 -0
- package/dist/utility/wrun/wrun-output-words.util.js +51 -0
- package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +116 -11
- package/dist/utility/wrun/wrun-overlay-drivers.util.js +208 -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-result.util.d.ts +6 -1
- package/dist/utility/wrun/wrun-overlay-result.util.js +2 -0
- package/dist/utility/wrun/wrun-overlay-run.util.d.ts +247 -26
- package/dist/utility/wrun/wrun-overlay-run.util.js +2234 -408
- package/dist/utility/wrun/wrun-pack.util.d.ts +8 -5
- package/dist/utility/wrun/wrun-panel-mount.util.d.ts +11 -2
- package/dist/utility/wrun/wrun-panel-mount.util.js +122 -19
- 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 +95 -5
- package/dist/utility/wrun/wrun-run-health.util.js +209 -3
- 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 +38 -11
- package/dist/utility/wrun/wrun-script-inputs.util.js +194 -56
- 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-style-names.util.d.ts +23 -0
- package/dist/utility/wrun/wrun-style-names.util.js +74 -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
|
@@ -1,54 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Who counts as first party on a governed venue, by an official kScript DOC's id: the data wall's identity list
|
|
3
|
+
* (`isCmeFirstPartyOfficialDocId`, read by kscript-venue-policy `isFirstPartyKScriptRun`). It grants data access, it
|
|
4
|
+
* curates nothing.
|
|
3
5
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* Pressure, pinned by EXACT identity only. Title-slug matching was removed
|
|
14
|
-
* the same day: titles are author-controlled, so a slug both enabled a
|
|
15
|
-
* community lookalike in the picker and could never be a safe basis for the
|
|
16
|
-
* venue wall. Anchored VWAP and Key Levels were parked until their docs
|
|
17
|
-
* republished with open code, and re-enabled 2026-07-29 (see the allow-list
|
|
18
|
-
* comment).
|
|
19
|
-
* The classic TA pack was held "coming soon" while the engine's
|
|
20
|
-
* continuous-grid timeline produced NaN defects across CME session gaps
|
|
21
|
-
* (recursive builtins poisoned permanently after a gap, windowed ones holed
|
|
22
|
-
* after every nightly break). Flipped to allowed 2026-07-29 against the
|
|
23
|
-
* sparse-timeline engine (3.0.72): every pack script is run over a
|
|
24
|
-
* session-gapped timeline by tests/constants/scriptEditor/
|
|
25
|
-
* cme-ta-pack-sparse-timeline.spec.ts, which must stay green across engine
|
|
26
|
-
* bumps or the pack returns here. Everything else
|
|
27
|
-
* official (funding / OI / liquidation / spot-vs-perp flow concepts) is
|
|
28
|
-
* crypto-only on CME and reads "not available".
|
|
29
|
-
*
|
|
30
|
-
* Community scripts are deliberately OUT of scope: user-script blocking on
|
|
31
|
-
* governed venues is the kScript venue-policy wall (MR !4881), keyed on run
|
|
32
|
-
* provenance, not this curation. A proper server-side per-venue field on the
|
|
33
|
-
* catalog doc would obsolete the id pinning here.
|
|
6
|
+
* Until 2026-11-07 this file also held a per-indicator CME list for OpenMarket's own indicators
|
|
7
|
+
* (`classifyOfficialScriptForCme`, the allowed, coming-soon and held keys, and the CME proven-twin lists): an
|
|
8
|
+
* indicator was shown and run on a CME chart only when it was on that list. It came from the kScript days, when the
|
|
9
|
+
* engine broke across CME's session gaps and each indicator was proven over a gapped timeline first. Once community
|
|
10
|
+
* wrun Indicators drew on CME with no list (the `cme-user-scripts` gate), the list only held back OpenMarket's own
|
|
11
|
+
* (Zig Zag, a proven twin never curated), so Kyle retired it ("fix both"): every first-party run is venue-approved on
|
|
12
|
+
* CME as on every other plane, and an indicator that reads a source CME does not serve answers through the wrun lane's
|
|
13
|
+
* own missing-data states. The crypto-only native families stay off CME by their own rule
|
|
14
|
+
* (CME_FUTURES_BLOCKED_INDICATORS, cme-indicator-availability.util).
|
|
34
15
|
*/
|
|
35
16
|
/**
|
|
36
|
-
* The 2026-09-02 indicator-library batch
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
* reads only the chart's own symbol/exchange OHLCV (two through htf()), no
|
|
40
|
-
* crypto-fixed source, no second venue. The four library docs that pull a second
|
|
41
|
-
* symbol with crypto/equity defaults (Cointegration Spread, Sharpe Ratio,
|
|
42
|
-
* Ascending Base, and Correlation Coefficient since 2026-10-13 by Kyle's call:
|
|
43
|
-
* its default comparison is Binance ETHUSDT, which a governed chart cannot
|
|
44
|
-
* fetch, so both forms drew blank there) stay fail-closed. The VERBATIM published sources are pinned
|
|
45
|
-
* under src/fixtures/cme-official-library/ and adjudicated on the session-gapped
|
|
46
|
-
* timeline by tests/constants/scriptEditor/cme-official-library-sparse-timeline.spec.ts,
|
|
47
|
-
* which cross-pins this list against that manifest: an id cannot sit here without
|
|
48
|
-
* a pinned source, and a republish that changes an executable line must be
|
|
49
|
-
* re-adjudicated there before the id keeps its place. Spread into BOTH lists
|
|
50
|
-
* below: the picker curation (venue-appropriate) and the first-party wall
|
|
51
|
-
* (governed-data access), the same standing the launch docs hold.
|
|
17
|
+
* The 2026-09-02 indicator-library batch: openmarket-authored catalog docs (volatility, statistics, technical,
|
|
18
|
+
* market-analysis and volume-profile families), first party by authorship. Their verbatim published sources stay
|
|
19
|
+
* pinned under src/fixtures/cme-official-library/.
|
|
52
20
|
*/
|
|
53
21
|
export const CME_OFFICIAL_LIBRARY_DOC_IDS = [
|
|
54
22
|
'6a97fd111ded35390311d79a', // ABCD Pattern
|
|
@@ -109,267 +77,10 @@ export const CME_OFFICIAL_LIBRARY_DOC_IDS = [
|
|
|
109
77
|
'6a97fc1b1ded353903110318', // Yang-Zhang Volatility
|
|
110
78
|
];
|
|
111
79
|
/**
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
* surface on CME once the docs' catalog `source` flips to 'official' (the governed picker
|
|
117
|
-
* queries officials only); until then they are runnable-but-unlisted there.
|
|
118
|
-
*/
|
|
119
|
-
export const CME_ALLOWED_OFFICIAL_SCRIPT_KEYS = [
|
|
120
|
-
'VOLUME_BUBBLES',
|
|
121
|
-
// Big Trades (per-print tape markers): reads only the chart's own trades
|
|
122
|
-
// source, venue-safe on governed futures; first-party via
|
|
123
|
-
// TECHNICAL_INDICATOR_SCRIPT_KEY_SET. Sparse-timeline proof:
|
|
124
|
-
// tests/constants/scriptEditor/big-trades-official.spec.ts.
|
|
125
|
-
'BIG_TRADES',
|
|
126
|
-
// Order Book Pressure (backend-doc official; reads the chart's own book).
|
|
127
|
-
'69157410734c015375c91630',
|
|
128
|
-
// Anchored VWAP (openmarket doc, open code; price-derived, venue-safe).
|
|
129
|
-
'6a3e9e98bcac4c00fca767c7',
|
|
130
|
-
// Key Levels (openmarket doc, open code; price-derived, venue-safe).
|
|
131
|
-
'6a42467a3036aaa8d4bbb5be',
|
|
132
|
-
// Timeframe Matrix (openmarket doc; multi-timeframe minicharts). Venue-safe:
|
|
133
|
-
// fetches only the chart's own symbol/exchange OHLCV through requestBars
|
|
134
|
-
// count-mode windows ("last N bars", gap-agnostic by construction), no
|
|
135
|
-
// crypto-fixed sources; sparse-timeline proof rides
|
|
136
|
-
// cme-ta-pack-sparse-timeline.spec.ts. Surfaces on the governed picker once
|
|
137
|
-
// the doc's catalog `source` flips to 'official' (community today).
|
|
138
|
-
'6a465724528f4104aec7c263',
|
|
139
|
-
// The classic TA pack, un-Sooned 2026-07-29: adjudicated clean on
|
|
140
|
-
// session-gapped timelines under the pinned sparse-timeline engine by
|
|
141
|
-
// cme-ta-pack-sparse-timeline.spec.ts (the spec pins this membership too).
|
|
142
|
-
'RSI',
|
|
143
|
-
'EMA',
|
|
144
|
-
'SMA',
|
|
145
|
-
'MACD',
|
|
146
|
-
'BOLLINGER_BANDS',
|
|
147
|
-
'ICHI_CLOUD',
|
|
148
|
-
'STOCH',
|
|
149
|
-
'CCI',
|
|
150
|
-
'MFI',
|
|
151
|
-
'OBV',
|
|
152
|
-
'ADL',
|
|
153
|
-
'ADX',
|
|
154
|
-
'PSAR',
|
|
155
|
-
'VOLUME_BAR',
|
|
156
|
-
'BAR_STATISTICS',
|
|
157
|
-
// The 2026-10-01 TradingView staples with a plotted series: adjudicated on
|
|
158
|
-
// the same session-gapped timeline by cme-ta-pack-sparse-timeline.spec.ts
|
|
159
|
-
// (which pins this membership too). Every one reads only the chart's own
|
|
160
|
-
// candles through the classic snippets, so they are venue-safe by
|
|
161
|
-
// construction. Zig Zag and Pivot Points are held off below.
|
|
162
|
-
'ATR',
|
|
163
|
-
'SUPERTREND',
|
|
164
|
-
'KELTNER',
|
|
165
|
-
'DONCHIAN',
|
|
166
|
-
'WMA',
|
|
167
|
-
'HMA',
|
|
168
|
-
'VWMA',
|
|
169
|
-
'STOCH_RSI',
|
|
170
|
-
'WILLIAMS_R',
|
|
171
|
-
'CMF',
|
|
172
|
-
'AROON',
|
|
173
|
-
'MOMENTUM',
|
|
174
|
-
'ROC',
|
|
175
|
-
'AO',
|
|
176
|
-
// The 2026-09-02 indicator-library batch (57 docs), pinned with titles above.
|
|
177
|
-
...CME_OFFICIAL_LIBRARY_DOC_IDS,
|
|
178
|
-
];
|
|
179
|
-
/**
|
|
180
|
-
* Officials queued behind a known blocker (empty since the TA pack un-Soon;
|
|
181
|
-
* kept so the next queued official has a home and the resolver keeps its
|
|
182
|
-
* three-verdict shape).
|
|
183
|
-
*/
|
|
184
|
-
export const CME_COMING_SOON_OFFICIAL_SCRIPT_KEYS = [];
|
|
185
|
-
/**
|
|
186
|
-
* Bundled templates deliberately held OFF governed CME: they read 'blocked'
|
|
187
|
-
* through the fail-closed default (the picker says "not available", never
|
|
188
|
-
* "Soon"), and this list exists so the curation spec can tell a deliberate
|
|
189
|
-
* hold from a template nobody classified.
|
|
190
|
-
* - ZIGZAG: draws lines and labels only, so the sparse-timeline proof (which
|
|
191
|
-
* asserts plotted series) cannot adjudicate it yet.
|
|
192
|
-
* - PIVOT_POINTS: its pivots come from UTC calendar periods (1D / 1W / 1M
|
|
193
|
-
* backings), which do not line up with CME trading sessions.
|
|
194
|
-
*/
|
|
195
|
-
export const CME_HELD_OFFICIAL_SCRIPT_KEYS = ['ZIGZAG', 'PIVOT_POINTS'];
|
|
196
|
-
/**
|
|
197
|
-
* The built-ins whose PROVEN wrun twin (wrun-twins.json `proven`) is also proven on a governed CME
|
|
198
|
-
* chart: on CME a new add of one of them mounts the twin at its pin, as on every other venue
|
|
199
|
-
* (provenBuiltInTwin, wrun-twins.util), and a twin carried onto CME (a symbol switch, a restore, a
|
|
200
|
-
* paste or copy) keeps drawing (isKScriptDisplayBlockedOnExchange). Every other built-in keeps its
|
|
201
|
-
* kScript template on CME, and its twin stays walled there. Each key is a CME-allowed built-in
|
|
202
|
-
* (CME_ALLOWED_OFFICIAL_SCRIPT_KEYS) with a proven pin; the roster spec holds both.
|
|
203
|
-
*
|
|
204
|
-
* Proven 2026-10-11 on CME ES1! against the template, twin and template mounted through the
|
|
205
|
-
* Indicators dialog: the parity sweep's data, dialog and host layers at 1h and its data layer at 1D
|
|
206
|
-
* and 1W, every finding the same as the pair's crypto proof (ADX's extra Price line is the
|
|
207
|
-
* template's fill drawn at its colour index, price 0, which its lower pane shows on ES), and the
|
|
208
|
-
* coarser Timeframes at the chart interval's values (WRUN-QA-1005/returns/CME-WRUN.md). VOLUME_BAR
|
|
209
|
-
* and BAR_STATISTICS joined 2026-10-13 once their twins (0.3.3, 0.1.2) read the kit's size units
|
|
210
|
-
* (market.size_unit(), market.notional(): crypto bit-identical, Coin mode equal to the template on
|
|
211
|
-
* CME, USD mode priced with the point value, the crypto-only rows closed; SESSION-evidence/units-*.md).
|
|
212
|
-
* BIG_TRADES joined the same day by Kyle's rule: its twin counts prints in native size like the
|
|
213
|
-
* template (a live-session proof waits for a rig that carries the CME trade tape). VOLUME_BUBBLES joined
|
|
214
|
-
* 2026-10-13 with 0.2.4: its profile lane reads `currency: "Auto"` (the host picks the contract profile on a
|
|
215
|
-
* contracts market), floors in 1K contracts and drops the "$" there: 227,435/227,435 bubbles equal to the
|
|
216
|
-
* template on ES facts (SESSION-evidence/units-p-bubbles.md). Every CME-allowed built-in routes on CME now.
|
|
217
|
-
*/
|
|
218
|
-
export const CME_PROVEN_TWIN_BUILTIN_KEYS = [
|
|
219
|
-
'ADL',
|
|
220
|
-
'ADX',
|
|
221
|
-
'AO',
|
|
222
|
-
'AROON',
|
|
223
|
-
'ATR',
|
|
224
|
-
'BAR_STATISTICS',
|
|
225
|
-
'BIG_TRADES',
|
|
226
|
-
'BOLLINGER_BANDS',
|
|
227
|
-
'CCI',
|
|
228
|
-
'CMF',
|
|
229
|
-
'DONCHIAN',
|
|
230
|
-
'EMA',
|
|
231
|
-
'HMA',
|
|
232
|
-
'ICHI_CLOUD',
|
|
233
|
-
'KELTNER',
|
|
234
|
-
'MACD',
|
|
235
|
-
'MFI',
|
|
236
|
-
'MOMENTUM',
|
|
237
|
-
'OBV',
|
|
238
|
-
'PSAR',
|
|
239
|
-
'ROC',
|
|
240
|
-
'RSI',
|
|
241
|
-
'SMA',
|
|
242
|
-
'STOCH',
|
|
243
|
-
'STOCH_RSI',
|
|
244
|
-
'SUPERTREND',
|
|
245
|
-
'VOLUME_BAR',
|
|
246
|
-
'VOLUME_BUBBLES',
|
|
247
|
-
'VWMA',
|
|
248
|
-
'WILLIAMS_R',
|
|
249
|
-
'WMA',
|
|
250
|
-
];
|
|
251
|
-
/** Whether a shipped built-in's proven twin may route and draw on a governed CME chart
|
|
252
|
-
* (CME_PROVEN_TWIN_BUILTIN_KEYS). */
|
|
253
|
-
export function isCmeProvenTwinBuiltIn(builtInKey) {
|
|
254
|
-
return CME_PROVEN_TWIN_BUILTIN_KEYS.includes(builtInKey);
|
|
255
|
-
}
|
|
256
|
-
/**
|
|
257
|
-
* The official kScript DOCS (Mongo-id catalog rows, never a shipped built-in) whose wrun port is also proven on a
|
|
258
|
-
* governed CME chart: on CME such a doc lists once, as its port, and every Add of it mounts the package, as on every
|
|
259
|
-
* other venue (officialDocPort, wrun-official-doc-port.util). Every other doc keeps its kScript record on CME. Each id
|
|
260
|
-
* is a CME-allowed doc (CME_ALLOWED_OFFICIAL_SCRIPT_KEYS) with a roster row (wrun-twins.json); the roster spec holds
|
|
261
|
-
* both. A port carried onto CME (a symbol switch, a restore, a paste or copy) is not walled by this list: official
|
|
262
|
-
* packages are venue-approved as a class (isKScriptDisplayBlockedOnExchange, the 2026-09-30 exemption).
|
|
263
|
-
*
|
|
264
|
-
* Proven 2026-10-11 on CME ES1! against the kScript doc, both mounted on the same chart: the parity sweep's data,
|
|
265
|
-
* dialog and host layers at 1h and, for the session and calendar docs, its data layer at 1D and 1W, every finding
|
|
266
|
-
* judged against the doc's crypto proof and a same-build crypto control (WRUN-QA-1005/returns/CME-DOCS.md). Every
|
|
267
|
-
* CME-allowed doc with a port routes here since 2026-10-13. Timeframe Matrix joined last, once its port took the
|
|
268
|
-
* newest 18 candles by count and the kit host handed over the session's final higher-timeframe candle (0.1.3,
|
|
269
|
-
* kit 0.68.1): 18 candles in every panel with the doc's change badges on a live and a closed-market run
|
|
270
|
-
* (SESSION-evidence/units-tfm.md). Kelly Criterion joined 2026-10-13: its one
|
|
271
|
-
* hourly difference is the doc's band edge placed inside closed hours (218/218 boxes, 437/437 cells agree).
|
|
272
|
-
* Correlation Coefficient is fail-closed on CME in both forms since 2026-10-13 (CME_OFFICIAL_LIBRARY_DOC_IDS).
|
|
273
|
-
* Anchored VWAP joined 2026-10-13 once its port 0.1.8 anchored the day at the venue trade-day open
|
|
274
|
-
* (market.session_open(), kit 0.65.0; hosted runs admit it since contracts 5.24.0): 394/394 daily cells equal to
|
|
275
|
-
* the doc on CME ES1! (SESSION-evidence/p1-lane.md). Thirteen docs whose kScript doc places box and line edges inside the daily break and the weekend (its edge
|
|
276
|
-
* arithmetic counts closed hours as bars) route by Kyle's decision of 2026-10-12: the port draws on the traded bars and
|
|
277
|
-
* finds the same patterns (SESSION-evidence/p-prep.md). Structure Shift Sweeps and Wave Extensions joined 2026-10-12
|
|
278
|
-
* once their ports read the chart interval from the host instead of latching it from the first two bars (0.2.1 / 0.2.2),
|
|
279
|
-
* re-proven on CME ES1! at 1h and 1D against the same control. Equal Highs/Lows FVG Breakouts joined the same day by
|
|
280
|
-
* Kyle's rule: where the two forms differ because the kScript doc is the defective one, the port routes. Five docs whose
|
|
281
|
-
* only CME-side difference was a chart switch acting on one form (All intervals, Hide weekends, Price line,
|
|
282
|
-
* Interpolation) route by the same decision; the dead switches are tracked apart from the route.
|
|
283
|
-
*/
|
|
284
|
-
export const CME_PROVEN_TWIN_DOC_IDS = [
|
|
285
|
-
'6a97fd111ded35390311d79a', // ABCD Pattern
|
|
286
|
-
'6a97fd1a1ded35390311f8a9', // Accumulation/Distribution Ranges
|
|
287
|
-
'6a97fce7256da5aa0a647802', // Anchored Market Structure
|
|
288
|
-
'6a3e9e98bcac4c00fca767c7', // Anchored VWAP
|
|
289
|
-
'6a97fc5329e553889604b08b', // Asian Session Sweeps
|
|
290
|
-
'6a97fc1f1ded3539031106c0', // Autocorrelation
|
|
291
|
-
'6a97fcfd256da5aa0a64d2b9', // Average Daily Range
|
|
292
|
-
'6a97fc5429e553889604b755', // Breakout Tests & Retests
|
|
293
|
-
'6a97fcf91ded35390311963d', // Chandelier Exit
|
|
294
|
-
'6a97fcfa1ded353903119cd2', // Choppiness Index
|
|
295
|
-
'6a97fc1e1ded3539031105e6', // CUSUM Change-Point
|
|
296
|
-
'6a97fc5529e553889604bde8', // Equal Highs/Lows FVG Breakouts
|
|
297
|
-
'6a97fd02256da5aa0a64e825', // Even Better Sinewave
|
|
298
|
-
'6a97fc1c1ded353903110320', // EWMA Volatility
|
|
299
|
-
'6a97fd091ded35390311c260', // Execution Benchmarks
|
|
300
|
-
'6a97fd101ded35390311d0d2', // Flag Patterns
|
|
301
|
-
'6a97fd181ded35390311f0d2', // Flat Base
|
|
302
|
-
'6a97fcfe1ded35390311aa9e', // Floor Pivots
|
|
303
|
-
'6a97fc5629e553889604c51c', // Gap Fill Breakouts
|
|
304
|
-
'6a97fc191ded353903110309', // Garman-Klass
|
|
305
|
-
'6a97fcf81ded353903118fa8', // Gator Oscillator
|
|
306
|
-
'6a97fd0d29e5538896052257', // Gravestone Doji
|
|
307
|
-
'6a97fce6256da5aa0a646eb0', // HTF Stochastic Zones
|
|
308
|
-
'6a97fc1d1ded353903110540', // Hurst Exponent
|
|
309
|
-
'6a97fcea256da5aa0a648778', // Intrabar Momentum Projection
|
|
310
|
-
'6a97fcff29e55388960506a2', // Kagi
|
|
311
|
-
'6a97fd07256da5aa0a64f769', // Kelly Criterion
|
|
312
|
-
'6a97fcff256da5aa0a64daff', // Line Break
|
|
313
|
-
'6a97fce8256da5aa0a648044', // Liquidity Sweeps
|
|
314
|
-
'6a97fd0b1ded35390311c8f2', // Marubozu
|
|
315
|
-
'6a97fc5229e553889604a816', // Max-Delta Momentum
|
|
316
|
-
'69157410734c015375c91630', // Order Book Pressure
|
|
317
|
-
'6a97fbcd256da5aa0a63a827', // Parkinson Estimator
|
|
318
|
-
'6a97fd0e29e55388960528e9', // Piercing Line
|
|
319
|
-
'6a97fd01256da5aa0a64e191', // Point & Figure Counts
|
|
320
|
-
'6a97fcef256da5aa0a64a30e', // Prior Day High/Low FVG
|
|
321
|
-
'6a97fc2529e5538896049ed7', // Profile Tails
|
|
322
|
-
'6a97fd0429e55388960511a0', // R-Squared Trend Fit
|
|
323
|
-
'6a97fcf0256da5aa0a64aaaf', // Regime-Filtered RSI
|
|
324
|
-
'6a97fd081ded35390311bbcb', // Risk of Ruin
|
|
325
|
-
'6a97fc1a1ded353903110311', // Rogers-Satchell
|
|
326
|
-
'6a97fc041ded35390310bc68', // SafeZone Stop
|
|
327
|
-
'6a97fcf1256da5aa0a64b218', // Session Gap Fill
|
|
328
|
-
'6a97fcf2256da5aa0a64b8e3', // Session Sweep + Inverse FVG
|
|
329
|
-
'6a97fcf3256da5aa0a64bf78', // Session Sweeps
|
|
330
|
-
'6a97fd13256da5aa0a650523', // Shark Pattern
|
|
331
|
-
'6a97fc241ded353903110fa9', // Sliding Volume Profile
|
|
332
|
-
'6a97fceb256da5aa0a648f51', // Structure Regime Oscillator
|
|
333
|
-
'6a97fcec256da5aa0a6495e6', // Structure Scatter Panel
|
|
334
|
-
'6a97fced256da5aa0a649c7a', // Structure Shift Sweeps
|
|
335
|
-
'6a97fcf41ded35390311806a', // Structure Trend Panel
|
|
336
|
-
'6a97fd0f29e5538896052fe8', // Three Methods Patterns
|
|
337
|
-
'6a465724528f4104aec7c263', // Timeframe Matrix
|
|
338
|
-
'6a42467a3036aaa8d4bbb5be', // Key Levels (openmarket doc; price-derived)
|
|
339
|
-
'6a97fcf61ded353903118767', // Value Area Reversion
|
|
340
|
-
'6a97fd1b256da5aa0a650dcf', // Volatility Signature Plot
|
|
341
|
-
'6a97fcfc1ded35390311a366', // Volume Zone Oscillator
|
|
342
|
-
'6a97fd151ded35390311e1c6', // Wave Extensions
|
|
343
|
-
'6a97fcf7256da5aa0a64c8c6', // Williams Alligator
|
|
344
|
-
'6a97fc1b1ded353903110318', // Yang-Zhang Volatility
|
|
345
|
-
];
|
|
346
|
-
/** Whether an official kScript doc's port may route on a governed CME chart (CME_PROVEN_TWIN_DOC_IDS). */
|
|
347
|
-
export function isCmeProvenTwinDoc(scriptId) {
|
|
348
|
-
return CME_PROVEN_TWIN_DOC_IDS.includes(scriptId);
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* Classify one official script for CME. `keys` are the entry's stable
|
|
352
|
-
* identities (registry subType, officialType, catalog script_id). Display
|
|
353
|
-
* titles are deliberately NOT an input: they are author-controlled, so a
|
|
354
|
-
* community lookalike named after an allowed official must never classify as
|
|
355
|
-
* allowed. Fail-closed: an unrecognized official reads 'blocked', so a newly
|
|
356
|
-
* published official ships CME-disabled until deliberately added here.
|
|
357
|
-
*/
|
|
358
|
-
export function classifyOfficialScriptForCme(ref) {
|
|
359
|
-
const keys = (ref.keys ?? []).filter((key) => !!key);
|
|
360
|
-
if (keys.some((key) => CME_ALLOWED_OFFICIAL_SCRIPT_KEYS.includes(key)))
|
|
361
|
-
return 'allowed';
|
|
362
|
-
if (keys.some((key) => CME_COMING_SOON_OFFICIAL_SCRIPT_KEYS.includes(key)))
|
|
363
|
-
return 'coming-soon';
|
|
364
|
-
return 'blocked';
|
|
365
|
-
}
|
|
366
|
-
/**
|
|
367
|
-
* Official catalog-doc ids the venue-policy wall treats as FIRST PARTY for governed data.
|
|
368
|
-
* Deliberately a SEPARATE list from CME_ALLOWED_OFFICIAL_SCRIPT_KEYS: the picker list answers
|
|
369
|
-
* "is this indicator venue-appropriate on CME?", this one answers "is this code first-party?"
|
|
370
|
-
* — membership here mints governed-data access at EVERY door (fetch, payload guard, engine
|
|
371
|
-
* policy, layout/suite, alerts), so an id must only be added for docs authored by the official
|
|
372
|
-
* account. Registry subTypes (e.g. VOLUME_BUBBLES) never belong here; they are first-party via
|
|
80
|
+
* Official catalog-doc ids the venue-policy wall treats as FIRST PARTY for governed data: it
|
|
81
|
+
* answers "is this code first-party?", and membership here mints governed-data access at EVERY
|
|
82
|
+
* door (fetch, payload guard, engine policy, layout/suite, alerts), so an id must only be added
|
|
83
|
+
* for docs authored by the official account. Registry subTypes (e.g. VOLUME_BUBBLES) never belong here; they are first-party via
|
|
373
84
|
* TECHNICAL_INDICATOR_SCRIPT_KEY_SET already.
|
|
374
85
|
*/
|
|
375
86
|
export const CME_FIRST_PARTY_OFFICIAL_DOC_IDS = [
|
|
@@ -386,7 +97,7 @@ export const CME_FIRST_PARTY_OFFICIAL_DOC_IDS = [
|
|
|
386
97
|
];
|
|
387
98
|
/**
|
|
388
99
|
* Whether a run's `customScriptId` names a first-party official doc. The venue-policy wall
|
|
389
|
-
* consults this so
|
|
100
|
+
* consults this so an official doc passes the governed-data doors even when a mount's
|
|
390
101
|
* provenance breadcrumbs (scriptSource / transient scriptData) have not landed on the overlay
|
|
391
102
|
* settings yet — the shipped Order Book Pressure failure: Door F admitted the add, then the
|
|
392
103
|
* first fetch hit Door D before any stamp existed and suppressed the run as a user script.
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The US stocks tape's compliance strings, verbatim English in every locale (like OPRA_DELAY_NOTICE): the CTA
|
|
3
|
+
* Delayed Market Data Policy (§VII(a)) asks that delayed data carry the statement "Delayed 15 minutes" (or "All
|
|
4
|
+
* prices delayed" with a time stamp), and UTP asks for the delay statement at or near the top of the page
|
|
5
|
+
* (UTP Data Policies p.8). The statement goes wherever delayed tape data shows: the delay badge, the chart's source
|
|
6
|
+
* line, and the surfaces the spec lists (product-ecosystem `data-integration/us-equities/ENTITLEMENT.md` §3.4).
|
|
7
|
+
* Never translated, never reworded: a change here is a compliance change.
|
|
8
|
+
*/
|
|
9
|
+
export declare const STOCKS_DELAY_STATEMENT = "Delayed 15 minutes";
|
|
10
|
+
/**
|
|
11
|
+
* The consolidated-volume statement (CTA Schedule note 13, UTP Data Policies p.11): shown where tape volume sits
|
|
12
|
+
* beside prices that are not from all markets (the free-lane candles of a US stock chart carrying tape order flow).
|
|
13
|
+
* Reserved for the overlay model; a chart served whole by the tape shows only the delay statement.
|
|
14
|
+
*/
|
|
15
|
+
export declare const STOCKS_CONSOLIDATED_VOLUME_STATEMENT = "Real-time quote and/or trade prices are not sourced from all markets.";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The US stocks tape's compliance strings, verbatim English in every locale (like OPRA_DELAY_NOTICE): the CTA
|
|
3
|
+
* Delayed Market Data Policy (§VII(a)) asks that delayed data carry the statement "Delayed 15 minutes" (or "All
|
|
4
|
+
* prices delayed" with a time stamp), and UTP asks for the delay statement at or near the top of the page
|
|
5
|
+
* (UTP Data Policies p.8). The statement goes wherever delayed tape data shows: the delay badge, the chart's source
|
|
6
|
+
* line, and the surfaces the spec lists (product-ecosystem `data-integration/us-equities/ENTITLEMENT.md` §3.4).
|
|
7
|
+
* Never translated, never reworded: a change here is a compliance change.
|
|
8
|
+
*/
|
|
9
|
+
export const STOCKS_DELAY_STATEMENT = 'Delayed 15 minutes';
|
|
10
|
+
/**
|
|
11
|
+
* The consolidated-volume statement (CTA Schedule note 13, UTP Data Policies p.11): shown where tape volume sits
|
|
12
|
+
* beside prices that are not from all markets (the free-lane candles of a US stock chart carrying tape order flow).
|
|
13
|
+
* Reserved for the overlay model; a chart served whole by the tape shows only the delay statement.
|
|
14
|
+
*/
|
|
15
|
+
export const STOCKS_CONSOLIDATED_VOLUME_STATEMENT = 'Real-time quote and/or trade prices are not sourced from all markets.';
|
package/dist/host-env.d.ts
CHANGED
|
@@ -13,6 +13,7 @@ import type * as WrunKitHost from '@orangecharts/indicator-kit/host';
|
|
|
13
13
|
import type { WrunAttemptOutcome, WrunAttemptStageMs, WrunAttemptToken, WrunChartHandle, WrunChartModeModule, WrunChartPaintMode, WrunChartPaintOptions, WrunChartPaintTarget, WrunChartRoutingModule, WrunChartStoreModule, WrunChartStoreView, WrunCommonStoreModule, WrunConsoleRefusalRun, WrunContinuousContractsModule, WrunContrastGuardContext, WrunDataFetchingModule, WrunDeclaredDepthAsk, WrunDeribitOptionsModule, WrunEditorShellModule, WrunEndOfDataMarkerReason, WrunEngineWorker, WrunEngineWorkerOptions, WrunFailureShow, WrunFeedStreamApi, WrunFeedsServiceModule, WrunHiddenLiveDrainOutcome, WrunHostOverlayRef, WrunIndicatorRegistryModule, WrunIndicatorTypesModule, WrunInputRequirement, WrunIntegrateOptions, WrunIntegrateResult, WrunKitModule, WrunKScriptErrorEnvelopeModule, WrunLegendHoverModule, WrunLiveCoalesceFlush, WrunLiveCoalesceTickDecision, WrunLiveFeedServiceModule, WrunLiveRefreshGateDecision, WrunMarketEventsStoreModule, WrunMetadataServiceModule, WrunOffchartGridHeightsModule, WrunOptionChainServiceModule, WrunOptionsChainVenuesModule, WrunOptionsChartSourceModule, WrunOptionsGateModule, WrunOptionsOverlayProvenanceModule, WrunOverlayMeasureResult, WrunPackEnsureInput, WrunPackEnsureResult, WrunPaneBudgetRankingModule, WrunPlotGateChart, WrunPlotGateRefusal, WrunPriceMarkerTarget, WrunRefreshRowsOptions, WrunRefreshRowsResult, WrunRefusalActionsModule, WrunSearchPayloadToMarketsRequestModule, WrunSignalSheetView, WrunSignalSoundCheck, WrunSocketChartRows, WrunSocketLoadSignals, WrunSocketTransport, WrunSocketTransportModule, WrunSourceCountMetadataLike, WrunSourceDegradeEntry, WrunSourceFetchOptions, WrunStandInTarget, WrunStandInWriteArgs, WrunStandInWriteOutcome, WrunSymbolDisplayModule, WrunTitanChartsModule, WrunTpoBlockCatalogModule, WrunTwinsRosterModule, WrunV2ServiceModule, WrunVenueLegsArgs, WrunVenueLegsResult, WrunWarmupBackfillAsk, WrunWarmupBackfillOutcome, WrunDownloadSummary } from './host-ports.types.js';
|
|
14
14
|
import type { CmeServedAccess } from './interfaces/cme-realtime.interface.js';
|
|
15
15
|
import type { WrunDrawSkips, WrunOutputRow } from './interfaces/wrun-runtime.interface.js';
|
|
16
|
+
import type { DisplayOffset } from './utility/chart/display-offset.leaf.js';
|
|
16
17
|
import type { WrunLatestSnapshot } from './utility/wrun/wrun-latest-snapshot.js';
|
|
17
18
|
import type { WrunRefusalContext, WrunRefusalOut } from './utility/wrun/wrun-refusal.util.js';
|
|
18
19
|
/** CHANGED 0.3.0: the shared host names package code reads at run time (slab 1's 11 plus the ones the Phase 1 and
|
|
@@ -184,6 +185,59 @@ export interface WrunChartHostEnv {
|
|
|
184
185
|
tablesShownInWindow?: (chartIndex: number, overlayId: string) => boolean;
|
|
185
186
|
/** Optional. The per-order switch (`wrunTapePerOrder` is its one reader); absent reads off, as the sandbox and phone app ship. */
|
|
186
187
|
tapePerOrder?: boolean;
|
|
188
|
+
/** Optional, read at every run (`wrunHostCarryWithBuild` is its one reader). True: a live full run and a reseed take
|
|
189
|
+
* their input rows and the carry seed their session takes from ONE conversion of the window's lanes
|
|
190
|
+
* (wrun-source-rows.util `buildWrunInputRowsAndCarry`, the same rows and carry). Absent or false: the two steps as
|
|
191
|
+
* before, the build and then the carry advanced from the empty seed, which converts the window again. web: the
|
|
192
|
+
* engine arm `webkit-wrun-carry-with-build` (WebKit and Chromium). The sandbox worker and the phone app never set
|
|
193
|
+
* it. */
|
|
194
|
+
carryWithBuild?: boolean;
|
|
195
|
+
/** Optional. Order flow from the host's own session feed (web: a Rithmic login's prints on the pane whose candles it
|
|
196
|
+
* draws). Absent: no read point composes anything, exactly as before the member (the sandbox worker and the phone
|
|
197
|
+
* app never set it). wrun-session-composition.util is its one reader. */
|
|
198
|
+
session?: WrunHostSession;
|
|
199
|
+
/** Optional, read wherever a chart surface names a line of a built-in's port (`wrunHostBuiltinLineWords` is its one
|
|
200
|
+
* reader, through utility/wrun/wrun-output-words.util `wrunOutputWords`). The words built-in `builtIn` names its
|
|
201
|
+
* line `label` by, in the viewer's language, or undefined when `label` is no line that built-in names. `label` is
|
|
202
|
+
* the output's sheet label as published: a proven twin's sheet keeps its kScript original's contract label there
|
|
203
|
+
* (MACD's `macdLine`, Bollinger Bands' `Lower Band`), the anchor its alerts match the line by, so the sheet cannot
|
|
204
|
+
* reword it. Absent, a blank answer or a call that throws: the line reads its sheet's words (wrunLegendName),
|
|
205
|
+
* exactly as before the member. web: the built-in's alert-contract output words (`builtinOutputI18nKey` through the
|
|
206
|
+
* i18n plugin), bound by the run binder. The sandbox worker and the phone app never set it. */
|
|
207
|
+
builtinLineWords?: (builtIn: string, label: string) => string | undefined;
|
|
208
|
+
}
|
|
209
|
+
/** A lane the host's session may compose: the tape (fill groups), the sided trades lane in contracts (`trades`) and
|
|
210
|
+
* the same lane in US dollars (`trades_usd`). */
|
|
211
|
+
export type WrunSessionComposedLane = 'tape' | 'trades' | 'trades_usd';
|
|
212
|
+
/** The grid a composition lands on: the run's interval and the chart's market (its calendar, with its session type),
|
|
213
|
+
* the tape's contract floor (`minSize`) and whether the tape reads fill groups (`large`). */
|
|
214
|
+
export interface WrunSessionLaneGrid {
|
|
215
|
+
chartIndex: number;
|
|
216
|
+
intervalMs: number;
|
|
217
|
+
exchange: string;
|
|
218
|
+
market: string;
|
|
219
|
+
/** The chart's `sessionType` at the run (`regular` = RTH-anchored bars above 30m); absent: the full session. */
|
|
220
|
+
sessionType?: string;
|
|
221
|
+
floor: number;
|
|
222
|
+
large: boolean;
|
|
223
|
+
/** The dollar lane's only: the US dollars one contract is worth per whole point of its price
|
|
224
|
+
* (wrunSessionDollarPointValue), so a side of a bar composes at contracts x pointValue x (high + low + close) / 3, as
|
|
225
|
+
* OpenMarket's history prices it. Absent on every other lane. */
|
|
226
|
+
pointValue?: number;
|
|
227
|
+
}
|
|
228
|
+
/** The host's session seams (`WrunChartHostEnv.session`). Package code never writes a lane buffer from them: it reads
|
|
229
|
+
* the composition where a compute reads its rows. */
|
|
230
|
+
export interface WrunHostSession {
|
|
231
|
+
/** The rows a compute reads for `lane`: OpenMarket's before the session's seam, the session's from it, while the
|
|
232
|
+
* session owns the overlay; else `rows` itself (the same reference). The dollar lane without a `pointValue` in
|
|
233
|
+
* its grid answers `rows` itself too. */
|
|
234
|
+
composeLaneRows(indicatorId: string, lane: WrunSessionComposedLane, rows: ReadonlyArray<unknown>, grid: WrunSessionLaneGrid): ReadonlyArray<unknown>;
|
|
235
|
+
/** The composition's identity now (web: the overlay's order-flow generation while owned), else null. A drain's
|
|
236
|
+
* answer computed under another token is discarded. */
|
|
237
|
+
compositionToken(indicatorId: string): number | null;
|
|
238
|
+
/** A live context was installed for the overlay: its lanes may have moved, so the host re-reads whether it may own
|
|
239
|
+
* them. */
|
|
240
|
+
onLiveContextInstalled(indicatorId: string): void;
|
|
187
241
|
}
|
|
188
242
|
/** The mounted chart and the host's chart store, as package code reads and writes them. */
|
|
189
243
|
export interface WrunHostChart {
|
|
@@ -394,9 +448,12 @@ export interface WrunHostUser {
|
|
|
394
448
|
/** Reserved until 0.4.0, boot. web: useUserStore().settings?.themeMode (store/user); throws when no user store is up
|
|
395
449
|
* (the panel mount keeps its string check and try/catch, wrun-panel-mount.util.ts:537-545). */
|
|
396
450
|
themeMode(): unknown;
|
|
397
|
-
/** Reserved until 0.4.0, panel-mount binder. web:
|
|
398
|
-
* (utility/chart/chart-display-timezone.util.ts
|
|
399
|
-
|
|
451
|
+
/** Reserved until 0.4.0, panel-mount binder. web: chartDisplayOffset(barIntervalMs)
|
|
452
|
+
* (utility/chart/chart-display-timezone.util.ts; it reads the user store). Next release: the answer widens from
|
|
453
|
+
* one number to a DisplayOffset (display-offset.leaf), a fixed shift or the shift at each instant, so a time-keyed
|
|
454
|
+
* panel labels each key at its own instant's offset (a zone moves its clock); a host that answers a number keeps
|
|
455
|
+
* one shift for every key. */
|
|
456
|
+
chartDisplayTimezoneOffsetMs(barIntervalMs?: number): DisplayOffset;
|
|
400
457
|
/** 0.5.0, boot. web: useUserStore().settings?.isDarkMode (store/user.ts; the executor keeps its try and typeof check,
|
|
401
458
|
* :9631-9638). */
|
|
402
459
|
isDarkMode(): unknown;
|
|
@@ -573,6 +630,15 @@ export declare function wrunHostLeavesTablesToWindow(chartIndex: number | undefi
|
|
|
573
630
|
* that never set the member, and before the realm's entry set the env. Read when a request, a print or a run head
|
|
574
631
|
* asks, never at module load; `wrunTapePerOrder` (utility/wrun/wrun-tape-per-order.util) is its one reader. */
|
|
575
632
|
export declare function wrunHostTapePerOrder(): boolean;
|
|
633
|
+
/** Whether the realm's host builds a run's rows and its session's carry from one conversion
|
|
634
|
+
* (`WrunChartHostEnv.carryWithBuild`): false for a host that never set the member, and before the realm's entry set
|
|
635
|
+
* the env. Read at every run, never at module load. */
|
|
636
|
+
export declare function wrunHostCarryWithBuild(): boolean;
|
|
637
|
+
/** The words built-in `builtIn` names its line `label` by (`WrunChartHostEnv.builtinLineWords`), or undefined: an env
|
|
638
|
+
* not set yet, a host without the member, an answer that holds no words, or a call that throws (the line keeps its
|
|
639
|
+
* sheet's words). Read when a surface names a line, never at module load; utility/wrun/wrun-output-words.util
|
|
640
|
+
* `wrunOutputWords` is its one reader. */
|
|
641
|
+
export declare function wrunHostBuiltinLineWords(builtIn: string, label: string): string | undefined;
|
|
576
642
|
/** The error a host's `sharedHost()` throws before its load. */
|
|
577
643
|
export declare function wrunChartHostUnloadedError(): Error;
|
|
578
644
|
/** The shared host now, or its load: `undefined` once the env's `sharedHost()` answers, else the env's
|
package/dist/host-env.js
CHANGED
|
@@ -41,6 +41,27 @@ export function wrunHostLeavesTablesToWindow(chartIndex, overlayId) {
|
|
|
41
41
|
export function wrunHostTapePerOrder() {
|
|
42
42
|
return hasWrunChartHostEnv() && wrunChartHostEnv().tapePerOrder === true;
|
|
43
43
|
}
|
|
44
|
+
/** Whether the realm's host builds a run's rows and its session's carry from one conversion
|
|
45
|
+
* (`WrunChartHostEnv.carryWithBuild`): false for a host that never set the member, and before the realm's entry set
|
|
46
|
+
* the env. Read at every run, never at module load. */
|
|
47
|
+
export function wrunHostCarryWithBuild() {
|
|
48
|
+
return hasWrunChartHostEnv() && wrunChartHostEnv().carryWithBuild === true;
|
|
49
|
+
}
|
|
50
|
+
/** The words built-in `builtIn` names its line `label` by (`WrunChartHostEnv.builtinLineWords`), or undefined: an env
|
|
51
|
+
* not set yet, a host without the member, an answer that holds no words, or a call that throws (the line keeps its
|
|
52
|
+
* sheet's words). Read when a surface names a line, never at module load; utility/wrun/wrun-output-words.util
|
|
53
|
+
* `wrunOutputWords` is its one reader. */
|
|
54
|
+
export function wrunHostBuiltinLineWords(builtIn, label) {
|
|
55
|
+
if (!hasWrunChartHostEnv())
|
|
56
|
+
return undefined;
|
|
57
|
+
try {
|
|
58
|
+
const words = wrunChartHostEnv().builtinLineWords?.(builtIn, label);
|
|
59
|
+
return typeof words === 'string' && words.trim() !== '' ? words : undefined;
|
|
60
|
+
}
|
|
61
|
+
catch {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
44
65
|
/** The error a host's `sharedHost()` throws before its load. */
|
|
45
66
|
export function wrunChartHostUnloadedError() {
|
|
46
67
|
return new Error('wrun_chart_host_unloaded');
|
|
@@ -207,6 +207,16 @@ export interface WrunOptionsOverlayProvenanceModule {
|
|
|
207
207
|
* next chart load reads to prepare the plane's access before an add asks (web: `noteGatePlaneOptionsRead`). Read by
|
|
208
208
|
* the add's own door (run-schedule/wrun-gate-reader-warm.util); a host that binds none keeps no stamp. */
|
|
209
209
|
noteGatePlaneOptionsRead?(): void;
|
|
210
|
+
/** CHANGED (next release, optional): the CME provenance writer on both settings copies (web:
|
|
211
|
+
* cme-overlay-provenance.util `setOverlayCmeProvenance`, re-exported beside the OPRA one), which an adopted warm
|
|
212
|
+
* switch session restores (its fetch door does not run again). A host that binds none adopts no session that read
|
|
213
|
+
* CME. */
|
|
214
|
+
setOverlayCmeProvenance?(chartIndex: number, overlayId: string, cme: boolean): void;
|
|
215
|
+
/** CHANGED (next release, optional): the US stocks tape's provenance of a source the run reads past the chart's fetch
|
|
216
|
+
* door (a `stocks` row lane's own fetch, `dark_pool`), by the source's name: the tape it reads, or null when the run
|
|
217
|
+
* planned none (web: titan-charts `syncWrunStockTapeLaneProvenance`, the per-source tape sync the fetch door runs for
|
|
218
|
+
* a tape read, on both settings copies). A host that binds none keeps no tape stamp for such a lane. */
|
|
219
|
+
setOverlayStockTapeProvenance?(chartIndex: number, overlayId: string, source: string, exchange: string | null): void;
|
|
210
220
|
}
|
|
211
221
|
/** Loader view of the indicator registry: a control by its type, for its live subscription (web:
|
|
212
222
|
* indicators/indicator-registry.ts, a Map of `IIndicatorControl`). */
|
|
@@ -1160,9 +1170,14 @@ export interface WrunWarmupEvidence {
|
|
|
1160
1170
|
/** The bar the result's declared warm-up ends at, null or absent when it declares none. */
|
|
1161
1171
|
declaredWarmupEndTs?: number | null;
|
|
1162
1172
|
/** Where the rows of the result's history sources begin at the clock (sources/wrun-row-lanes.util
|
|
1163
|
-
* `wrunRunSourceReachFromMs
|
|
1164
|
-
* that history explains buys no page ('source-reach'). */
|
|
1173
|
+
* `wrunRunSourceReachFromMs`: a declared reach or an every-bar answer per lane), null or absent when unknown: a
|
|
1174
|
+
* first value that history explains buys no page ('source-reach'). */
|
|
1165
1175
|
sourceReachFromTs?: number | null;
|
|
1176
|
+
/** A source's recovery can still rerun it (its degrade entry pending, or degraded and not terminal); absent,
|
|
1177
|
+
* `!sourcesSettled`. */
|
|
1178
|
+
sourcesLanding?: boolean;
|
|
1179
|
+
/** Whether the run's rows hold the sheet's declared warm-up and its slack, null or absent when none is declared. */
|
|
1180
|
+
declaredWarmupCovered?: boolean | null;
|
|
1166
1181
|
}
|
|
1167
1182
|
/** A warm-up backfill ask after a run (web: `LocalKScriptWarmupBackfillAsk`; the engine is the chart handle). */
|
|
1168
1183
|
export interface WrunWarmupBackfillAsk {
|
|
@@ -1192,7 +1207,7 @@ export interface WrunWarmupBackfillAsk {
|
|
|
1192
1207
|
* `LocalKScriptWarmupBackfillOutcome`; the reasons of local-kscript-warmup-depth.util.ts and the decider's own). */
|
|
1193
1208
|
export interface WrunWarmupBackfillOutcome {
|
|
1194
1209
|
requested: boolean;
|
|
1195
|
-
reason: 'warmup-visible' | 'no-values-yet' | 'declared-depth' | 'no-rows' | 'no-viewport' | 'warmup-offscreen' | 'gap-too-small' | 'rounds-exhausted' | 'left-exhausted' | 'gesture-active' | 'sources-pending' | 'zero-lookback-empty' | 'source-reach' | 'no-dense-output' | 'no-progress' | 'page-pending';
|
|
1210
|
+
reason: 'warmup-visible' | 'no-values-yet' | 'declared-depth' | 'no-rows' | 'no-viewport' | 'warmup-offscreen' | 'gap-too-small' | 'rounds-exhausted' | 'left-exhausted' | 'gesture-active' | 'sources-pending' | 'zero-lookback-empty' | 'source-reach' | 'no-values-declared-covered' | 'no-dense-output' | 'no-progress' | 'page-pending';
|
|
1196
1211
|
roundsUsed: number;
|
|
1197
1212
|
range?: {
|
|
1198
1213
|
startTs: number;
|
|
@@ -1380,6 +1395,11 @@ export interface WrunEngineWorkerDeath {
|
|
|
1380
1395
|
status: number | null;
|
|
1381
1396
|
/** Whether the worker had proven itself up before it died. */
|
|
1382
1397
|
ready: boolean;
|
|
1398
|
+
/** How the script arrived, read before the incarnation ended (optional: hosts built before it leave it out). */
|
|
1399
|
+
arrival?: WrunWorkerScriptArrival;
|
|
1400
|
+
/** The visible time the deadline clock running at the death had counted: the whole deadline for a `ready-timeout`,
|
|
1401
|
+
* the current stage's elapsed time for another death, 0 with no deadline running (optional, as `arrival`). */
|
|
1402
|
+
visibleMs?: number;
|
|
1383
1403
|
}
|
|
1384
1404
|
/** What the run host asks of its engine worker (web: worker-factory.util.ts `ManagedWorkerOptions`, the `readiness`,
|
|
1385
1405
|
* `onMessage` and `onDead` it sets; the chunk failure `source` is an app union the web binder supplies). */
|
|
@@ -1404,6 +1424,19 @@ export interface WrunEngineWorker {
|
|
|
1404
1424
|
readonly scriptUrl: string | null;
|
|
1405
1425
|
/** The HTTP status the browser recorded for the script, null when it recorded none. */
|
|
1406
1426
|
scriptStatus(): number | null;
|
|
1427
|
+
/** How the script arrived, from the same Resource Timing entry as the status (null fields: unknown). */
|
|
1428
|
+
scriptArrival(): WrunWorkerScriptArrival;
|
|
1429
|
+
}
|
|
1430
|
+
/** A worker script's arrival as Resource Timing recorded it (web: worker-factory.util.ts `WorkerScriptArrival`). */
|
|
1431
|
+
export interface WrunWorkerScriptArrival {
|
|
1432
|
+
/** An entry exists (true), a live observer has seen none (false), or nothing watches (null). */
|
|
1433
|
+
arrived: boolean | null;
|
|
1434
|
+
/** responseEnd minus startTime, rounded ms. */
|
|
1435
|
+
loadMs: number | null;
|
|
1436
|
+
/** No bytes on the wire for a body that arrived: the HTTP cache. */
|
|
1437
|
+
fromCache: boolean | null;
|
|
1438
|
+
/** responseStatus (Resource Timing Level 3). */
|
|
1439
|
+
status: number | null;
|
|
1407
1440
|
}
|
|
1408
1441
|
/** Loader view of the socket transport's web half: its evaluation binds the socket members (web:
|
|
1409
1442
|
* utility/wrun/wrun-socket-transport.ts). */
|