@orangecharts/wrun-chart-host 0.4.0 → 0.6.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 +17 -5
- package/dist/constants/exchange-names.leaf.d.ts +8 -0
- package/dist/constants/exchange-names.leaf.js +101 -0
- package/dist/constants/feature-flags.constants.js +7 -2
- package/dist/constants/kscript-data-interval-restrictions.constants.d.ts +15 -0
- package/dist/constants/kscript-data-interval-restrictions.constants.js +40 -0
- package/dist/constants/opra-compliance.constants.d.ts +19 -0
- package/dist/constants/opra-compliance.constants.js +19 -0
- package/dist/constants/replay-ladder.leaf.d.ts +30 -0
- package/dist/constants/replay-ladder.leaf.js +99 -0
- package/dist/constants/scriptEditor/cme-official-scripts.constants.d.ts +168 -0
- package/dist/constants/scriptEditor/cme-official-scripts.constants.js +398 -0
- package/dist/constants/scriptEditor/converted-script-id.leaf.d.ts +8 -0
- package/dist/constants/scriptEditor/converted-script-id.leaf.js +10 -0
- package/dist/constants/scriptEditor/execution.constants.d.ts +4 -0
- package/dist/constants/scriptEditor/execution.constants.js +14 -0
- package/dist/constants/wrun-prefix-safe.constants.d.ts +23 -0
- package/dist/constants/wrun-prefix-safe.constants.js +26 -0
- package/dist/host-env.d.ts +301 -22
- package/dist/host-env.js +15 -0
- package/dist/host-ports.types.d.ts +853 -29
- package/dist/index.d.ts +140 -2
- package/dist/index.js +140 -2
- package/dist/instances/script-engine-worker-ohlcv-transfer.d.ts +31 -0
- package/dist/instances/script-engine-worker-ohlcv-transfer.js +164 -0
- package/dist/interfaces/market-event.interface.d.ts +231 -0
- package/dist/interfaces/market-event.interface.js +15 -0
- package/dist/interfaces/opra-realtime.interface.d.ts +70 -134
- package/dist/interfaces/opra-realtime.interface.js +34 -59
- package/dist/interfaces/replay.interface.d.ts +285 -0
- package/dist/interfaces/replay.interface.js +1 -0
- package/dist/interfaces/wrun-runtime.interface.d.ts +88 -13
- package/dist/interfaces/wrun-runtime.interface.js +17 -3
- package/dist/kscript-data/controls/live-ohlcv-merge.util.d.ts +1 -0
- package/dist/kscript-data/controls/live-ohlcv-merge.util.js +93 -0
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +5 -1
- package/dist/kscript-data/controls/live-trades-merge.util.js +2 -2
- package/dist/market-data/billing.interface.d.ts +219 -0
- package/dist/market-data/billing.interface.js +58 -0
- package/dist/market-data/venue-governed.util.d.ts +2 -0
- package/dist/market-data/venue-governed.util.js +10 -0
- package/dist/market-data/venue.d.ts +122 -0
- package/dist/market-data/venue.js +1 -0
- package/dist/market-data/venues/index.d.ts +97 -0
- package/dist/market-data/venues/index.js +33 -0
- package/dist/market-data/venues/opra.contract.copy.json +35 -0
- package/dist/market-data/venues/opra.d.ts +70 -0
- package/dist/market-data/venues/opra.js +74 -0
- package/dist/replay/replayIndicatorRows.d.ts +31 -0
- package/dist/replay/replayIndicatorRows.js +117 -0
- package/dist/replay/replayLadder.d.ts +85 -0
- package/dist/replay/replayLadder.js +388 -0
- package/dist/utility/auth/server-clock.util.d.ts +81 -0
- package/dist/utility/auth/server-clock.util.js +238 -0
- package/dist/utility/chart/builtin-identity.util.d.ts +18 -0
- package/dist/utility/chart/builtin-identity.util.js +51 -0
- package/dist/utility/chart/cache-alignment.util.d.ts +454 -0
- package/dist/utility/chart/cache-alignment.util.js +926 -0
- package/dist/utility/chart/chart-data-fetch-generation.util.d.ts +15 -0
- package/dist/utility/chart/chart-data-fetch-generation.util.js +22 -0
- package/dist/utility/chart/chart-mount-epoch.util.d.ts +17 -0
- package/dist/utility/chart/chart-mount-epoch.util.js +61 -0
- package/dist/utility/chart/chart-time-domain.util.d.ts +12 -0
- package/dist/utility/chart/chart-time-domain.util.js +23 -0
- package/dist/utility/chart/color-customization.leaf.d.ts +10 -0
- package/dist/utility/chart/color-customization.leaf.js +16 -0
- package/dist/utility/chart/footprint-tick-grid.util.d.ts +106 -0
- package/dist/utility/chart/footprint-tick-grid.util.js +167 -0
- package/dist/utility/chart/gesture-timing.leaf.d.ts +29 -0
- package/dist/utility/chart/gesture-timing.leaf.js +29 -0
- package/dist/utility/chart/governed-contract-coin.util.d.ts +22 -0
- package/dist/utility/chart/governed-contract-coin.util.js +39 -0
- package/dist/utility/chart/host-bar-placement.util.d.ts +107 -0
- package/dist/utility/chart/host-bar-placement.util.js +447 -0
- package/dist/utility/chart/index-host-tier.util.d.ts +31 -0
- package/dist/utility/chart/index-host-tier.util.js +118 -0
- package/dist/utility/chart/index-mode-admission.util.d.ts +34 -0
- package/dist/utility/chart/index-mode-admission.util.js +67 -0
- package/dist/utility/chart/indicator-error-message.util.d.ts +35 -0
- package/dist/utility/chart/indicator-error-message.util.js +44 -0
- package/dist/utility/chart/kscript-apply-fingerprint.util.d.ts +65 -0
- package/dist/utility/chart/kscript-apply-fingerprint.util.js +357 -0
- package/dist/utility/chart/kscript-chart-flush.leaf.d.ts +22 -0
- package/dist/utility/chart/kscript-chart-flush.leaf.js +13 -0
- package/dist/utility/chart/kscript-data-interval-restriction.leaf.d.ts +6 -0
- package/dist/utility/chart/kscript-data-interval-restriction.leaf.js +27 -0
- package/dist/utility/chart/kscript-integration-decision.leaf.d.ts +89 -0
- package/dist/utility/chart/kscript-integration-decision.leaf.js +80 -0
- package/dist/utility/chart/kscript-live-coalesce.util.d.ts +76 -0
- package/dist/utility/chart/kscript-live-coalesce.util.js +156 -0
- package/dist/utility/chart/kscript-live-rest-pace.util.d.ts +34 -0
- package/dist/utility/chart/kscript-live-rest-pace.util.js +134 -0
- package/dist/utility/chart/kscript-live-source-identity.util.d.ts +98 -0
- package/dist/utility/chart/kscript-live-source-identity.util.js +121 -0
- package/dist/utility/chart/kscript-mounted-plot-set.leaf.d.ts +48 -0
- package/dist/utility/chart/kscript-mounted-plot-set.leaf.js +145 -0
- package/dist/utility/chart/kscript-perf-tracker.util.d.ts +243 -0
- package/dist/utility/chart/kscript-perf-tracker.util.js +522 -0
- package/dist/utility/chart/kscript-run-interval-projection.util.d.ts +43 -0
- package/dist/utility/chart/kscript-run-interval-projection.util.js +471 -0
- package/dist/utility/chart/kscript-run-result-equality.util.d.ts +38 -0
- package/dist/utility/chart/kscript-run-result-equality.util.js +89 -0
- package/dist/utility/chart/kscript-settings-revision.leaf.d.ts +2 -0
- package/dist/utility/chart/kscript-settings-revision.leaf.js +12 -0
- package/dist/utility/chart/kscript-source-degrade.leaf.d.ts +63 -0
- package/dist/utility/chart/kscript-source-degrade.leaf.js +68 -0
- package/dist/utility/chart/kscript-source-retention.util.d.ts +134 -0
- package/dist/utility/chart/kscript-source-retention.util.js +218 -0
- package/dist/utility/chart/kscript-standin-identity.leaf.d.ts +57 -0
- package/dist/utility/chart/kscript-standin-identity.leaf.js +61 -0
- package/dist/utility/chart/kscript-titancharts-preparation.util.d.ts +15 -0
- package/dist/utility/chart/kscript-titancharts-preparation.util.js +376 -0
- package/dist/utility/chart/kscript-titancharts-render-keys.constants.d.ts +9 -0
- package/dist/utility/chart/kscript-titancharts-render-keys.constants.js +130 -0
- package/dist/utility/chart/kscript-venue-policy.util.d.ts +217 -0
- package/dist/utility/chart/kscript-venue-policy.util.js +324 -0
- package/dist/utility/chart/live-cadence.util.d.ts +38 -0
- package/dist/utility/chart/live-cadence.util.js +37 -0
- package/dist/utility/chart/live-feed-series-match.leaf.d.ts +13 -0
- package/dist/utility/chart/live-feed-series-match.leaf.js +21 -0
- package/dist/utility/chart/local-engine-self-heal-backoff.util.d.ts +46 -0
- package/dist/utility/chart/local-engine-self-heal-backoff.util.js +46 -0
- package/dist/utility/chart/local-engine-uninit.leaf.d.ts +21 -0
- package/dist/utility/chart/local-engine-uninit.leaf.js +22 -0
- package/dist/utility/chart/local-kscript-source-revalidation.util.d.ts +62 -0
- package/dist/utility/chart/local-kscript-source-revalidation.util.js +123 -0
- package/dist/utility/chart/local-kscript-warmup-depth.util.d.ts +214 -0
- package/dist/utility/chart/local-kscript-warmup-depth.util.js +376 -0
- package/dist/utility/chart/local-technical-script-live-apply-coalescer.util.d.ts +85 -0
- package/dist/utility/chart/local-technical-script-live-apply-coalescer.util.js +197 -0
- package/dist/utility/chart/local-technical-script-range.leaf.d.ts +72 -0
- package/dist/utility/chart/local-technical-script-range.leaf.js +126 -0
- package/dist/utility/chart/mixed-mode.util.d.ts +167 -0
- package/dist/utility/chart/mixed-mode.util.js +139 -0
- package/dist/utility/chart/ohlcv-row-readiness.util.d.ts +36 -0
- package/dist/utility/chart/ohlcv-row-readiness.util.js +90 -0
- package/dist/utility/chart/opra-user-scripts-gate.util.d.ts +19 -0
- package/dist/utility/chart/opra-user-scripts-gate.util.js +32 -0
- package/dist/utility/chart/overlay-execution-guard-key.leaf.d.ts +8 -0
- package/dist/utility/chart/overlay-execution-guard-key.leaf.js +10 -0
- package/dist/utility/chart/price-precision.util.d.ts +40 -0
- package/dist/utility/chart/price-precision.util.js +70 -0
- package/dist/utility/chart/profile-block-size.util.d.ts +64 -0
- package/dist/utility/chart/profile-block-size.util.js +141 -0
- package/dist/utility/chart/protected-kscript-degenerate-rows.leaf.d.ts +11 -0
- package/dist/utility/chart/protected-kscript-degenerate-rows.leaf.js +29 -0
- package/dist/utility/chart/protected-kscript-empty-output.util.d.ts +28 -0
- package/dist/utility/chart/protected-kscript-empty-output.util.js +84 -0
- package/dist/utility/chart/run-interval-unservable.leaf.d.ts +9 -0
- package/dist/utility/chart/run-interval-unservable.leaf.js +20 -0
- package/dist/utility/chart/run-interval-warmup.leaf.d.ts +19 -0
- package/dist/utility/chart/run-interval-warmup.leaf.js +35 -0
- package/dist/utility/chart/titan-constants.pin.d.ts +9 -5
- package/dist/utility/chart/titan-constants.pin.js +18 -5
- package/dist/utility/chart/warmup-backfill-retry.leaf.d.ts +9 -0
- package/dist/utility/chart/warmup-backfill-retry.leaf.js +9 -0
- package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +11 -2
- package/dist/utility/chart/wrun-bar-session-facts.util.js +10 -3
- package/dist/utility/chart/wrun-run-result.util.d.ts +5 -1
- package/dist/utility/chart/wrun-run-result.util.js +20 -14
- package/dist/utility/common/data-processing.util.d.ts +138 -0
- package/dist/utility/common/data-processing.util.js +346 -0
- package/dist/utility/common/visible-timeout.util.d.ts +13 -4
- package/dist/utility/common/visible-timeout.util.js +23 -8
- package/dist/utility/exchange-format.leaf.d.ts +1 -0
- package/dist/utility/exchange-format.leaf.js +47 -0
- package/dist/utility/market-events/earnings-scope.util.d.ts +60 -0
- package/dist/utility/market-events/earnings-scope.util.js +92 -0
- package/dist/utility/market-events/market-events.util.d.ts +147 -0
- package/dist/utility/market-events/market-events.util.js +392 -0
- package/dist/utility/market-events/zoned-clock.util.d.ts +1 -0
- package/dist/utility/market-events/zoned-clock.util.js +11 -0
- package/dist/utility/options/option-venue-disclosure.util.d.ts +43 -0
- package/dist/utility/options/option-venue-disclosure.util.js +56 -0
- package/dist/utility/scriptEditor/package-semver.util.d.ts +51 -0
- package/dist/utility/scriptEditor/package-semver.util.js +120 -0
- package/dist/utility/scriptEditor/temp-script-id.util.d.ts +18 -0
- package/dist/utility/scriptEditor/temp-script-id.util.js +25 -0
- package/dist/utility/symbol-selection/markets-request-from-symbols.leaf.d.ts +20 -0
- package/dist/utility/symbol-selection/markets-request-from-symbols.leaf.js +81 -0
- package/dist/utility/v2/governed-tier.leaf.d.ts +103 -0
- package/dist/utility/v2/governed-tier.leaf.js +113 -0
- package/dist/utility/watchlist/import/import-request.leaf.d.ts +10 -0
- package/dist/utility/watchlist/import/import-request.leaf.js +10 -0
- package/dist/utility/wrun/sources/lanes/series.js +2 -2
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.d.ts +4 -4
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +5 -6
- package/dist/utility/wrun/wrun-alert-outputs.registry.d.ts +166 -0
- package/dist/utility/wrun/wrun-alert-outputs.registry.js +219 -0
- package/dist/utility/wrun/wrun-bar-count.util.d.ts +94 -0
- package/dist/utility/wrun/wrun-bar-count.util.js +274 -0
- package/dist/utility/wrun/wrun-chart-context-names.util.d.ts +84 -0
- package/dist/utility/wrun/wrun-chart-context-names.util.js +186 -0
- package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +253 -0
- package/dist/utility/wrun/wrun-chart-market-facts.util.js +731 -0
- package/dist/utility/wrun/wrun-cloud-opra-stamp.util.d.ts +28 -0
- package/dist/utility/wrun/wrun-cloud-opra-stamp.util.js +45 -0
- package/dist/utility/wrun/wrun-coin-lane-live.util.d.ts +18 -0
- package/dist/utility/wrun/wrun-coin-lane-live.util.js +47 -0
- package/dist/utility/wrun/wrun-deadline.util.js +2 -1
- package/dist/utility/wrun/wrun-debug-output.util.d.ts +39 -0
- package/dist/utility/wrun/wrun-debug-output.util.js +63 -0
- package/dist/utility/wrun/wrun-declared-warmup.util.d.ts +113 -0
- package/dist/utility/wrun/wrun-declared-warmup.util.js +181 -0
- package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +43 -0
- package/dist/utility/wrun/wrun-draft-legend-note.util.js +158 -0
- package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +181 -0
- package/dist/utility/wrun/wrun-draft-overlay.util.js +357 -0
- package/dist/utility/wrun/wrun-draw-skipped.leaf.d.ts +16 -0
- package/dist/utility/wrun/wrun-draw-skipped.leaf.js +16 -0
- package/dist/utility/wrun/wrun-earnings-facts.util.d.ts +42 -0
- package/dist/utility/wrun/wrun-earnings-facts.util.js +131 -0
- package/dist/utility/wrun/wrun-first-run-depth.util.d.ts +32 -0
- package/dist/utility/wrun/wrun-first-run-depth.util.js +118 -0
- package/dist/utility/wrun/wrun-gate-plane-readers.util.d.ts +24 -0
- package/dist/utility/wrun/wrun-gate-plane-readers.util.js +31 -0
- package/dist/utility/wrun/wrun-held-lanes.util.d.ts +32 -0
- package/dist/utility/wrun/wrun-held-lanes.util.js +94 -0
- package/dist/utility/wrun/wrun-host-visible-clock.util.d.ts +2 -0
- package/dist/utility/wrun/wrun-host-visible-clock.util.js +17 -0
- package/dist/utility/wrun/wrun-host.service.d.ts +330 -0
- package/dist/utility/wrun/wrun-host.service.js +855 -0
- package/dist/utility/wrun/wrun-hover.util.d.ts +3 -0
- package/dist/utility/wrun/wrun-hover.util.js +25 -4
- package/dist/utility/wrun/wrun-inert-legend.util.d.ts +33 -0
- package/dist/utility/wrun/wrun-inert-legend.util.js +125 -0
- package/dist/utility/wrun/wrun-input-requirements.leaf.d.ts +155 -0
- package/dist/utility/wrun/wrun-input-requirements.leaf.js +450 -0
- package/dist/utility/wrun/wrun-integration-route.util.d.ts +51 -0
- package/dist/utility/wrun/wrun-integration-route.util.js +59 -0
- package/dist/utility/wrun/wrun-latest-history.leaf.d.ts +8 -0
- package/dist/utility/wrun/wrun-latest-history.leaf.js +8 -0
- package/dist/utility/wrun/wrun-legend-hover.lazy.d.ts +12 -0
- package/dist/utility/wrun/wrun-legend-hover.lazy.js +96 -0
- package/dist/utility/wrun/wrun-lifecycle-runtime.util.d.ts +21 -0
- package/dist/utility/wrun/wrun-lifecycle-runtime.util.js +21 -0
- package/dist/utility/wrun/wrun-live-hidden-hold.util.d.ts +23 -0
- package/dist/utility/wrun/wrun-live-hidden-hold.util.js +13 -0
- package/dist/utility/wrun/wrun-live-intake.util.d.ts +374 -0
- package/dist/utility/wrun/wrun-live-intake.util.js +2027 -0
- package/dist/utility/wrun/wrun-live-patch.util.d.ts +116 -0
- package/dist/utility/wrun/wrun-live-patch.util.js +523 -0
- package/dist/utility/wrun/wrun-live-tick.util.d.ts +619 -0
- package/dist/utility/wrun/wrun-live-tick.util.js +4974 -0
- package/dist/utility/wrun/wrun-loading-owner.util.d.ts +58 -0
- package/dist/utility/wrun/wrun-loading-owner.util.js +89 -0
- package/dist/utility/wrun/wrun-official-scope.leaf.d.ts +29 -0
- package/dist/utility/wrun/wrun-official-scope.leaf.js +36 -0
- package/dist/utility/wrun/wrun-oi-lane.util.d.ts +27 -0
- package/dist/utility/wrun/wrun-oi-lane.util.js +42 -0
- package/dist/utility/wrun/wrun-options-stop.util.d.ts +52 -0
- package/dist/utility/wrun/wrun-options-stop.util.js +123 -0
- package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +719 -0
- package/dist/utility/wrun/wrun-overlay-drivers.util.js +1180 -0
- package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.d.ts +50 -0
- package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.js +131 -0
- package/dist/utility/wrun/wrun-overlay-lifecycle.util.d.ts +118 -0
- package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +466 -0
- package/dist/utility/wrun/wrun-overlay-metadata.util.d.ts +45 -0
- package/dist/utility/wrun/wrun-overlay-metadata.util.js +112 -0
- package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +114 -0
- package/dist/utility/wrun/wrun-overlay-recovery.util.js +971 -0
- package/dist/utility/wrun/wrun-overlay-run.util.d.ts +858 -0
- package/dist/utility/wrun/wrun-overlay-run.util.js +11013 -0
- package/dist/utility/wrun/wrun-pack.util.d.ts +2 -1
- package/dist/utility/wrun/wrun-panel-mount.util.d.ts +24 -9
- package/dist/utility/wrun/wrun-panel-mount.util.js +138 -43
- package/dist/utility/wrun/wrun-param-map.util.d.ts +19 -4
- package/dist/utility/wrun/wrun-param-map.util.js +40 -47
- package/dist/utility/wrun/wrun-param-values.util.d.ts +9 -3
- package/dist/utility/wrun/wrun-param-values.util.js +5 -5
- package/dist/utility/wrun/wrun-prefix-cohort.util.d.ts +93 -0
- package/dist/utility/wrun/wrun-prefix-cohort.util.js +484 -0
- package/dist/utility/wrun/wrun-prefix-lanes.util.d.ts +114 -0
- package/dist/utility/wrun/wrun-prefix-lanes.util.js +486 -0
- package/dist/utility/wrun/wrun-prefix-proof.util.d.ts +317 -0
- package/dist/utility/wrun/wrun-prefix-proof.util.js +630 -0
- package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +73 -0
- package/dist/utility/wrun/wrun-refusal-surface.util.js +380 -0
- package/dist/utility/wrun/wrun-refusal-text.util.d.ts +15 -0
- package/dist/utility/wrun/wrun-refusal-text.util.js +40 -0
- package/dist/utility/wrun/wrun-registry-errors.util.d.ts +5 -3
- package/dist/utility/wrun/wrun-replay-lane.util.d.ts +139 -0
- package/dist/utility/wrun/wrun-replay-lane.util.js +520 -0
- package/dist/utility/wrun/wrun-replay-rows.util.d.ts +21 -0
- package/dist/utility/wrun/wrun-replay-rows.util.js +172 -0
- package/dist/utility/wrun/wrun-row-source-factory.d.ts +53 -0
- package/dist/utility/wrun/wrun-row-source-factory.js +435 -0
- package/dist/utility/wrun/wrun-run-cells.util.d.ts +36 -0
- package/dist/utility/wrun/wrun-run-cells.util.js +46 -0
- package/dist/utility/wrun/wrun-run-interval-session.util.d.ts +133 -0
- package/dist/utility/wrun/wrun-run-interval-session.util.js +121 -0
- package/dist/utility/wrun/wrun-run-interval.util.d.ts +98 -0
- package/dist/utility/wrun/wrun-run-interval.util.js +207 -0
- package/dist/utility/wrun/wrun-run-retained.util.d.ts +122 -0
- package/dist/utility/wrun/wrun-run-retained.util.js +255 -0
- package/dist/utility/wrun/wrun-sandbox-row-source.d.ts +184 -0
- package/dist/utility/wrun/wrun-sandbox-row-source.js +444 -0
- package/dist/utility/wrun/wrun-script-inputs.util.js +4 -4
- package/dist/utility/wrun/wrun-series-stream.util.d.ts +86 -0
- package/dist/utility/wrun/wrun-series-stream.util.js +537 -0
- package/dist/utility/wrun/wrun-sha256.leaf.d.ts +13 -0
- package/dist/utility/wrun/wrun-sha256.leaf.js +84 -0
- package/dist/utility/wrun/wrun-sheet-remembered.util.d.ts +21 -0
- package/dist/utility/wrun/wrun-sheet-remembered.util.js +36 -0
- package/dist/utility/wrun/wrun-signal-sound-reasons.leaf.d.ts +7 -0
- package/dist/utility/wrun/wrun-signal-sound-reasons.leaf.js +12 -0
- package/dist/utility/wrun/wrun-socket-row-source.js +4 -2
- package/dist/utility/wrun/wrun-source-rows.util.d.ts +175 -3
- package/dist/utility/wrun/wrun-source-rows.util.js +294 -8
- package/dist/utility/wrun/wrun-stats-strip.util.d.ts +46 -0
- package/dist/utility/wrun/wrun-stats-strip.util.js +87 -0
- package/dist/utility/wrun/wrun-table-chrome.util.d.ts +163 -0
- package/dist/utility/wrun/wrun-table-chrome.util.js +557 -0
- package/dist/utility/wrun/wrun-text-params.util.d.ts +11 -6
- package/dist/utility/wrun/wrun-text-params.util.js +19 -30
- package/dist/utility/wrun/wrun-transient-rerun.util.d.ts +64 -0
- package/dist/utility/wrun/wrun-transient-rerun.util.js +317 -0
- package/dist/utility/wrun/wrun-twin-lookback.util.d.ts +10 -0
- package/dist/utility/wrun/wrun-twin-lookback.util.js +43 -0
- package/dist/utility/wrun/wrun-warmup-head-store.util.d.ts +41 -0
- package/dist/utility/wrun/wrun-warmup-head-store.util.js +120 -0
- package/dist/utility/wrun-alert-params.leaf.d.ts +24 -0
- package/dist/utility/wrun-alert-params.leaf.js +24 -0
- package/dist/utils/replay/replay-buffer-math.d.ts +148 -0
- package/dist/utils/replay/replay-buffer-math.js +684 -0
- package/dist/workers/wrun/wrun-abi-host.d.ts +203 -0
- package/dist/workers/wrun/wrun-abi-host.js +1220 -0
- package/dist/workers/wrun/wrun-engine-handler.d.ts +20 -0
- package/dist/workers/wrun/wrun-engine-handler.js +380 -0
- package/package.json +3 -3
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Official kScript curation for governed CME futures.
|
|
3
|
+
*
|
|
4
|
+
* Native official catalog rows (script_id === registry type: VWAP,
|
|
5
|
+
* ORDERBOOK_HEATMAP, ...) ride the native availability gates
|
|
6
|
+
* (cme-indicator-availability.util) and never consult this file. This file
|
|
7
|
+
* classifies OFFICIAL SCRIPT rows only: the technical-indicator pack
|
|
8
|
+
* (registry subTypes riding TECHNICAL_SCRIPT, e.g. RSI, Volume Bubbles) and
|
|
9
|
+
* backend-doc officials (catalog rows with a mongo script_id and no registry
|
|
10
|
+
* presence, e.g. Order Book Pressure), matched by EXACT identity only.
|
|
11
|
+
*
|
|
12
|
+
* Adjudicated 2026-07-28 (Kyle): allowed = Volume Bubbles and Order Book
|
|
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.
|
|
34
|
+
*/
|
|
35
|
+
/**
|
|
36
|
+
* The 2026-09-02 indicator-library batch (56 openmarket catalog docs: volatility,
|
|
37
|
+
* statistics, technical, market-analysis and volume-profile families), enabled on
|
|
38
|
+
* governed CME 2026-09-07 (Kyle). Venue-safe by construction: every pinned source
|
|
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.
|
|
52
|
+
*/
|
|
53
|
+
export const CME_OFFICIAL_LIBRARY_DOC_IDS = [
|
|
54
|
+
'6a97fd111ded35390311d79a', // ABCD Pattern
|
|
55
|
+
'6a97fd1a1ded35390311f8a9', // Accumulation/Distribution Ranges
|
|
56
|
+
'6a97fce7256da5aa0a647802', // Anchored Market Structure
|
|
57
|
+
'6a97fc5329e553889604b08b', // Asian Session Sweeps
|
|
58
|
+
'6a97fc1f1ded3539031106c0', // Autocorrelation
|
|
59
|
+
'6a97fcfd256da5aa0a64d2b9', // Average Daily Range
|
|
60
|
+
'6a97fc5429e553889604b755', // Breakout Tests & Retests
|
|
61
|
+
'6a97fcf91ded35390311963d', // Chandelier Exit
|
|
62
|
+
'6a97fcfa1ded353903119cd2', // Choppiness Index
|
|
63
|
+
'6a97fc1e1ded3539031105e6', // CUSUM Change-Point
|
|
64
|
+
'6a97fc5529e553889604bde8', // Equal Highs/Lows FVG Breakouts
|
|
65
|
+
'6a97fd02256da5aa0a64e825', // Even Better Sinewave
|
|
66
|
+
'6a97fc1c1ded353903110320', // EWMA Volatility
|
|
67
|
+
'6a97fd091ded35390311c260', // Execution Benchmarks
|
|
68
|
+
'6a97fd101ded35390311d0d2', // Flag Patterns
|
|
69
|
+
'6a97fd181ded35390311f0d2', // Flat Base
|
|
70
|
+
'6a97fcfe1ded35390311aa9e', // Floor Pivots
|
|
71
|
+
'6a97fc5629e553889604c51c', // Gap Fill Breakouts
|
|
72
|
+
'6a97fc191ded353903110309', // Garman-Klass
|
|
73
|
+
'6a97fcf81ded353903118fa8', // Gator Oscillator
|
|
74
|
+
'6a97fd0d29e5538896052257', // Gravestone Doji
|
|
75
|
+
'6a97fce6256da5aa0a646eb0', // HTF Stochastic Zones
|
|
76
|
+
'6a97fc1d1ded353903110540', // Hurst Exponent
|
|
77
|
+
'6a97fcea256da5aa0a648778', // Intrabar Momentum Projection
|
|
78
|
+
'6a97fcff29e55388960506a2', // Kagi
|
|
79
|
+
'6a97fd07256da5aa0a64f769', // Kelly Criterion
|
|
80
|
+
'6a97fcff256da5aa0a64daff', // Line Break
|
|
81
|
+
'6a97fce8256da5aa0a648044', // Liquidity Sweeps
|
|
82
|
+
'6a97fd0b1ded35390311c8f2', // Marubozu
|
|
83
|
+
'6a97fc5229e553889604a816', // Max-Delta Momentum
|
|
84
|
+
'6a97fbcd256da5aa0a63a827', // Parkinson Estimator
|
|
85
|
+
'6a97fd0e29e55388960528e9', // Piercing Line
|
|
86
|
+
'6a97fd01256da5aa0a64e191', // Point & Figure Counts
|
|
87
|
+
'6a97fcef256da5aa0a64a30e', // Prior Day High/Low FVG
|
|
88
|
+
'6a97fc2529e5538896049ed7', // Profile Tails
|
|
89
|
+
'6a97fd0429e55388960511a0', // R-Squared Trend Fit
|
|
90
|
+
'6a97fcf0256da5aa0a64aaaf', // Regime-Filtered RSI
|
|
91
|
+
'6a97fd081ded35390311bbcb', // Risk of Ruin
|
|
92
|
+
'6a97fc1a1ded353903110311', // Rogers-Satchell
|
|
93
|
+
'6a97fc041ded35390310bc68', // SafeZone Stop
|
|
94
|
+
'6a97fcf1256da5aa0a64b218', // Session Gap Fill
|
|
95
|
+
'6a97fcf2256da5aa0a64b8e3', // Session Sweep + Inverse FVG
|
|
96
|
+
'6a97fcf3256da5aa0a64bf78', // Session Sweeps
|
|
97
|
+
'6a97fd13256da5aa0a650523', // Shark Pattern
|
|
98
|
+
'6a97fc241ded353903110fa9', // Sliding Volume Profile
|
|
99
|
+
'6a97fceb256da5aa0a648f51', // Structure Regime Oscillator
|
|
100
|
+
'6a97fcec256da5aa0a6495e6', // Structure Scatter Panel
|
|
101
|
+
'6a97fced256da5aa0a649c7a', // Structure Shift Sweeps
|
|
102
|
+
'6a97fcf41ded35390311806a', // Structure Trend Panel
|
|
103
|
+
'6a97fd0f29e5538896052fe8', // Three Methods Patterns
|
|
104
|
+
'6a97fcf61ded353903118767', // Value Area Reversion
|
|
105
|
+
'6a97fd1b256da5aa0a650dcf', // Volatility Signature Plot
|
|
106
|
+
'6a97fcfc1ded35390311a366', // Volume Zone Oscillator
|
|
107
|
+
'6a97fd151ded35390311e1c6', // Wave Extensions
|
|
108
|
+
'6a97fcf7256da5aa0a64c8c6', // Williams Alligator
|
|
109
|
+
'6a97fc1b1ded353903110318', // Yang-Zhang Volatility
|
|
110
|
+
];
|
|
111
|
+
/**
|
|
112
|
+
* Registry subTypes / catalog script_ids allowed on CME today (exact identities only).
|
|
113
|
+
*
|
|
114
|
+
* Anchored VWAP and Key Levels re-enabled 2026-07-29 after Kyle republished both docs with
|
|
115
|
+
* OPEN code (client-side first-party run; wire-verified delivered source). Their catalog rows
|
|
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
|
|
373
|
+
* TECHNICAL_INDICATOR_SCRIPT_KEY_SET already.
|
|
374
|
+
*/
|
|
375
|
+
export const CME_FIRST_PARTY_OFFICIAL_DOC_IDS = [
|
|
376
|
+
// Order Book Pressure (openmarket-authored).
|
|
377
|
+
'69157410734c015375c91630',
|
|
378
|
+
// Anchored VWAP (openmarket-authored, open code since 2026-07-29).
|
|
379
|
+
'6a3e9e98bcac4c00fca767c7',
|
|
380
|
+
// Key Levels (openmarket-authored, open code since 2026-07-29).
|
|
381
|
+
'6a42467a3036aaa8d4bbb5be',
|
|
382
|
+
// Timeframe Matrix (openmarket-authored).
|
|
383
|
+
'6a465724528f4104aec7c263',
|
|
384
|
+
// The 2026-09-02 indicator-library batch (57 openmarket-authored docs, see the list above).
|
|
385
|
+
...CME_OFFICIAL_LIBRARY_DOC_IDS,
|
|
386
|
+
];
|
|
387
|
+
/**
|
|
388
|
+
* Whether a run's `customScriptId` names a first-party official doc. The venue-policy wall
|
|
389
|
+
* consults this so a curated official passes the governed-data doors even when a mount's
|
|
390
|
+
* provenance breadcrumbs (scriptSource / transient scriptData) have not landed on the overlay
|
|
391
|
+
* settings yet — the shipped Order Book Pressure failure: Door F admitted the add, then the
|
|
392
|
+
* first fetch hit Door D before any stamp existed and suppressed the run as a user script.
|
|
393
|
+
* Spoof surface is unchanged: the id names WHICH DOC runs, and forks/lookalikes carry their
|
|
394
|
+
* own ids.
|
|
395
|
+
*/
|
|
396
|
+
export function isCmeFirstPartyOfficialDocId(key) {
|
|
397
|
+
return typeof key === 'string' && CME_FIRST_PARTY_OFFICIAL_DOC_IDS.includes(key);
|
|
398
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A converted script's id (a leaf of constants/scriptEditor/convertedScripts.constants.ts; P2/inventory.md section 1.1):
|
|
3
|
+
* the prefix and its test, the names the venue policy reads. The old module also loads the converted scripts' generated
|
|
4
|
+
* JSON, which keeps it out of the chart-host package; this leaf imports nothing and moves with the phase 2 closure. The
|
|
5
|
+
* old module re-exports both.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CONVERTED_SCRIPT_ID_PREFIX = "converted-";
|
|
8
|
+
export declare function isConvertedScriptId(scriptId: string | null | undefined): boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A converted script's id (a leaf of constants/scriptEditor/convertedScripts.constants.ts; P2/inventory.md section 1.1):
|
|
3
|
+
* the prefix and its test, the names the venue policy reads. The old module also loads the converted scripts' generated
|
|
4
|
+
* JSON, which keeps it out of the chart-host package; this leaf imports nothing and moves with the phase 2 closure. The
|
|
5
|
+
* old module re-exports both.
|
|
6
|
+
*/
|
|
7
|
+
export const CONVERTED_SCRIPT_ID_PREFIX = 'converted-';
|
|
8
|
+
export function isConvertedScriptId(scriptId) {
|
|
9
|
+
return !!scriptId && scriptId.startsWith(CONVERTED_SCRIPT_ID_PREFIX);
|
|
10
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const KSCRIPT_SETTINGS_REVISION_KEY = "__kiyoKScriptSettingsRevision";
|
|
2
|
+
/** The kScript loading watchdog's forced-lower row (kscript-error-envelope.util kscriptStalledDiagnostic). */
|
|
3
|
+
export declare const KSCRIPT_STALLED_CODE = "STALLED";
|
|
4
|
+
export declare function isLocalKScriptWorkerForceDisabled(): boolean;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const LOCAL_KSCRIPT_WORKER_FORCE_DISABLED_STORAGE_KEY = 'kiyo:kscript:disable-local-worker';
|
|
2
|
+
export const KSCRIPT_SETTINGS_REVISION_KEY = '__kiyoKScriptSettingsRevision';
|
|
3
|
+
/** The kScript loading watchdog's forced-lower row (kscript-error-envelope.util kscriptStalledDiagnostic). */
|
|
4
|
+
export const KSCRIPT_STALLED_CODE = 'STALLED';
|
|
5
|
+
export function isLocalKScriptWorkerForceDisabled() {
|
|
6
|
+
if (typeof window === 'undefined')
|
|
7
|
+
return false;
|
|
8
|
+
try {
|
|
9
|
+
return window.localStorage.getItem(LOCAL_KSCRIPT_WORKER_FORCE_DISABLED_STORAGE_KEY) === '1';
|
|
10
|
+
}
|
|
11
|
+
catch {
|
|
12
|
+
return false;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The prefix-safe roster (wrun-prefix-cohort.util `isWrunPrefixSafePackage`; TITAN-RENDER-SAFEGUARDS pan-back plan,
|
|
3
|
+
* contract C8): the audited exceptions beside the compiler's history-independence stamp, each a module a person read
|
|
4
|
+
* and found history-independent where it matters, with what the audit read (`why`) and the builds or sources it is
|
|
5
|
+
* pinned to (`wasmSha256`, `sourceDigest`). The cohort validates every entry as it loads (`loadRoster`: an unknown
|
|
6
|
+
* key or a malformed field disables that entry, never the roster), so an entry added here is held to the same rules.
|
|
7
|
+
*
|
|
8
|
+
* A TypeScript module, not JSON: a JSON import is bundler-only syntax, and the cohort moves into the chart-host
|
|
9
|
+
* package with this module beside it (WRUN-CHART-HOST slabs345 P2, D-11). One source, so nothing keeps a copy in sync.
|
|
10
|
+
*/
|
|
11
|
+
export declare const WRUN_PREFIX_SAFE_ROSTER: readonly [{
|
|
12
|
+
readonly packageName: "@om-core/book-heat";
|
|
13
|
+
readonly versions: "*";
|
|
14
|
+
readonly auditedOn: "2026-10-11";
|
|
15
|
+
readonly why: "Audited source: dev-fixtures/wrun-fixtures/book-heat/indicator.ts (the kit catalog's compiled Book Heat, metadata.json abi_version wrun-2, so no wrun_bar_count import exists). Every bar reads only its own book block: onBar (lines 20-48) calls in_book_cells (line 21) and in_book_view (line 26) and keeps every working value in locals declared inside onBar (lines 27-28, 38-40, 46), writing out_imbalance and nothing else (lines 23, 35, 47). No module-level state: the one module-level variable, depth (line 13), is set once in onStart from the depth_pct setting (line 16) and never written per bar; TUPLE (line 12) is a constant. No index or run-length reads: no bar index, bar count, prior bar or lookback is read anywhere, and the close input (line 7) is never read in onBar. The heatmap (line 10) paints each bar's own book block, which no output carries, so its cells read only that bar too. Admission is pinned to the audited module bytes (module.wasm sha256 of that fixture): a later build published under this name is not admitted until it is audited and its hash added here.";
|
|
16
|
+
readonly wasmSha256: readonly ["cc24d5d7decdf358e104322d49b66b2b1312d61907d197674c09b71effb55d38"];
|
|
17
|
+
}, {
|
|
18
|
+
readonly packageName: "@cg-rig/book-heat";
|
|
19
|
+
readonly versions: "*";
|
|
20
|
+
readonly wasmSha256: readonly ["cc24d5d7decdf358e104322d49b66b2b1312d61907d197674c09b71effb55d38"];
|
|
21
|
+
readonly auditedOn: "2026-10-11";
|
|
22
|
+
readonly why: "The cost-guard rig's registry identity for the same compiled Book Heat module (qa/wrun-cost-guard/rig.mjs lines 17-24 serve dev-fixtures/wrun-fixtures/book-heat under @cg-rig/book-heat; lines 130-131 are the defaults). The audit is the @om-core/book-heat entry's; the hash pin is that fixture's module.wasm, because the rig can serve any fixture under this name (--s2-fixture) and only the audited bytes may ride it.";
|
|
23
|
+
}];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The prefix-safe roster (wrun-prefix-cohort.util `isWrunPrefixSafePackage`; TITAN-RENDER-SAFEGUARDS pan-back plan,
|
|
3
|
+
* contract C8): the audited exceptions beside the compiler's history-independence stamp, each a module a person read
|
|
4
|
+
* and found history-independent where it matters, with what the audit read (`why`) and the builds or sources it is
|
|
5
|
+
* pinned to (`wasmSha256`, `sourceDigest`). The cohort validates every entry as it loads (`loadRoster`: an unknown
|
|
6
|
+
* key or a malformed field disables that entry, never the roster), so an entry added here is held to the same rules.
|
|
7
|
+
*
|
|
8
|
+
* A TypeScript module, not JSON: a JSON import is bundler-only syntax, and the cohort moves into the chart-host
|
|
9
|
+
* package with this module beside it (WRUN-CHART-HOST slabs345 P2, D-11). One source, so nothing keeps a copy in sync.
|
|
10
|
+
*/
|
|
11
|
+
export const WRUN_PREFIX_SAFE_ROSTER = [
|
|
12
|
+
{
|
|
13
|
+
packageName: '@om-core/book-heat',
|
|
14
|
+
versions: '*',
|
|
15
|
+
auditedOn: '2026-10-11',
|
|
16
|
+
why: "Audited source: dev-fixtures/wrun-fixtures/book-heat/indicator.ts (the kit catalog's compiled Book Heat, metadata.json abi_version wrun-2, so no wrun_bar_count import exists). Every bar reads only its own book block: onBar (lines 20-48) calls in_book_cells (line 21) and in_book_view (line 26) and keeps every working value in locals declared inside onBar (lines 27-28, 38-40, 46), writing out_imbalance and nothing else (lines 23, 35, 47). No module-level state: the one module-level variable, depth (line 13), is set once in onStart from the depth_pct setting (line 16) and never written per bar; TUPLE (line 12) is a constant. No index or run-length reads: no bar index, bar count, prior bar or lookback is read anywhere, and the close input (line 7) is never read in onBar. The heatmap (line 10) paints each bar's own book block, which no output carries, so its cells read only that bar too. Admission is pinned to the audited module bytes (module.wasm sha256 of that fixture): a later build published under this name is not admitted until it is audited and its hash added here.",
|
|
17
|
+
wasmSha256: ['cc24d5d7decdf358e104322d49b66b2b1312d61907d197674c09b71effb55d38'],
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
packageName: '@cg-rig/book-heat',
|
|
21
|
+
versions: '*',
|
|
22
|
+
wasmSha256: ['cc24d5d7decdf358e104322d49b66b2b1312d61907d197674c09b71effb55d38'],
|
|
23
|
+
auditedOn: '2026-10-11',
|
|
24
|
+
why: "The cost-guard rig's registry identity for the same compiled Book Heat module (qa/wrun-cost-guard/rig.mjs lines 17-24 serve dev-fixtures/wrun-fixtures/book-heat under @cg-rig/book-heat; lines 130-131 are the defaults). The audit is the @om-core/book-heat entry's; the hash pin is that fixture's module.wasm, because the rig can serve any fixture under this name (--s2-fixture) and only the audited bytes may ride it.",
|
|
25
|
+
},
|
|
26
|
+
];
|