@orangecharts/wrun-chart-host 0.7.1 → 0.9.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 +27 -4
- package/dist/constants/feature-flags.constants.d.ts +5 -0
- package/dist/constants/feature-flags.constants.js +32 -0
- package/dist/constants/marketCapabilities.constants.d.ts +14 -9
- package/dist/constants/marketCapabilities.constants.js +36 -13
- package/dist/constants/opra-compliance.constants.d.ts +14 -0
- package/dist/constants/opra-compliance.constants.js +14 -0
- package/dist/constants/option-venues.constants.d.ts +29 -6
- package/dist/constants/option-venues.constants.js +19 -2
- package/dist/constants/venue-presets.constants.d.ts +17 -3
- package/dist/constants/venue-presets.constants.js +17 -3
- package/dist/host-env.d.ts +34 -4
- package/dist/host-env.js +21 -0
- package/dist/host-ports.types.d.ts +51 -3
- package/dist/index.d.ts +17 -0
- package/dist/index.js +17 -0
- package/dist/indicators/controls/tpo-session.util.d.ts +40 -11
- package/dist/indicators/controls/tpo-session.util.js +138 -14
- package/dist/interfaces/opra-realtime.interface.d.ts +13 -11
- package/dist/interfaces/opra-realtime.interface.js +10 -10
- package/dist/interfaces/option-instrument.interface.d.ts +6 -0
- package/dist/interfaces/wrun-runtime.interface.d.ts +34 -13
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +57 -10
- package/dist/kscript-data/controls/live-trades-merge.util.js +85 -16
- package/dist/market-data/billing.interface.d.ts +138 -17
- package/dist/market-data/billing.interface.js +25 -8
- package/dist/market-data/venues/index.d.ts +3 -3
- package/dist/market-data/venues/opra.contract.copy.json +5 -3
- package/dist/market-data/venues/opra.d.ts +3 -3
- package/dist/market-data/venues/opra.js +5 -4
- package/dist/replay/replayLadder.js +3 -1
- package/dist/settings-templates/footprint-rows.d.ts +25 -0
- package/dist/settings-templates/footprint-rows.js +127 -0
- package/dist/settings-templates/form-rows.d.ts +56 -0
- package/dist/settings-templates/form-rows.js +19 -0
- package/dist/settings-templates/frvp-fields.js +14 -0
- package/dist/settings-templates/index.d.ts +10 -1
- package/dist/settings-templates/index.js +11 -2
- package/dist/settings-templates/indicator-fields.js +78 -0
- package/dist/settings-templates/tool-rules.d.ts +35 -9
- package/dist/settings-templates/tool-rules.js +42 -8
- package/dist/settings-templates/tool-tables.generated.js +13 -2
- package/dist/utility/chart/candle-volume-unit.leaf.d.ts +16 -0
- package/dist/utility/chart/candle-volume-unit.leaf.js +61 -0
- package/dist/utility/chart/crypto-index.leaf.d.ts +2 -2
- package/dist/utility/chart/crypto-index.leaf.js +2 -2
- package/dist/utility/chart/footprint-columns.util.d.ts +74 -0
- package/dist/utility/chart/footprint-columns.util.js +106 -0
- package/dist/utility/chart/footprint-display-mode.util.d.ts +40 -0
- package/dist/utility/chart/footprint-display-mode.util.js +62 -0
- package/dist/utility/chart/footprint-sierra-look.util.d.ts +2 -0
- package/dist/utility/chart/footprint-sierra-look.util.js +37 -0
- package/dist/utility/chart/index-mode-admission.util.js +9 -1
- package/dist/utility/chart/index-mode.util.d.ts +5 -2
- package/dist/utility/chart/index-mode.util.js +23 -13
- package/dist/utility/chart/kscript-venue-policy.util.d.ts +28 -21
- package/dist/utility/chart/kscript-venue-policy.util.js +34 -26
- package/dist/utility/chart/marketKind.util.d.ts +12 -10
- package/dist/utility/chart/marketKind.util.js +17 -7
- package/dist/utility/chart/om-panel-push-style.util.d.ts +7 -7
- package/dist/utility/chart/om-panel-push-style.util.js +17 -15
- package/dist/utility/chart/om-panel.util.d.ts +11 -0
- package/dist/utility/chart/om-panel.util.js +65 -6
- package/dist/utility/chart/profile-block-size.util.d.ts +16 -0
- package/dist/utility/chart/profile-block-size.util.js +7 -0
- package/dist/utility/chart/quote-perp.leaf.d.ts +17 -0
- package/dist/utility/chart/quote-perp.leaf.js +20 -0
- package/dist/utility/chart/window-geometry.leaf.d.ts +23 -1
- package/dist/utility/chart/window-geometry.leaf.js +78 -6
- package/dist/utility/chart/window-owner.leaf.d.ts +13 -0
- package/dist/utility/chart/window-owner.leaf.js +5 -0
- package/dist/utility/chart/wrun-run-result.util.d.ts +5 -0
- package/dist/utility/chart/wrun-run-result.util.js +4 -1
- package/dist/utility/common/transformations.util.d.ts +7 -0
- package/dist/utility/common/transformations.util.js +11 -0
- package/dist/utility/options/cme-options-root.util.d.ts +25 -0
- package/dist/utility/options/cme-options-root.util.js +40 -0
- package/dist/utility/options/option-book.util.d.ts +27 -0
- package/dist/utility/options/option-book.util.js +76 -0
- package/dist/utility/options/option-trade-date.util.d.ts +50 -0
- package/dist/utility/options/option-trade-date.util.js +120 -0
- package/dist/utility/options/option-venue.util.d.ts +3 -3
- package/dist/utility/options/option-venue.util.js +3 -3
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.d.ts +1 -1
- package/dist/utility/wrun/run-schedule/wrun-late-reads.util.js +2 -2
- package/dist/utility/wrun/run-schedule/wrun-prefix-feeds.util.d.ts +2 -2
- package/dist/utility/wrun/run-schedule/wrun-prefix-feeds.util.js +5 -1
- package/dist/utility/wrun/sources/host-grid-landing.d.ts +4 -2
- package/dist/utility/wrun/sources/host-grid-landing.js +8 -0
- package/dist/utility/wrun/sources/lanes/options_flow.d.ts +40 -4
- package/dist/utility/wrun/sources/lanes/options_flow.js +115 -18
- package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +12 -9
- package/dist/utility/wrun/sources/opra-option-lanes.util.js +10 -7
- package/dist/utility/wrun/sources/row-lane-registry.js +10 -5
- package/dist/utility/wrun/sources/row-lanes/index.js +2 -0
- package/dist/utility/wrun/sources/row-lanes/option_contract_flow.d.ts +3 -2
- package/dist/utility/wrun/sources/row-lanes/option_contract_flow.js +30 -5
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.d.ts +9 -3
- package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +13 -5
- package/dist/utility/wrun/sources/row-lanes/option_prints.d.ts +25 -1
- package/dist/utility/wrun/sources/row-lanes/option_prints.js +161 -30
- package/dist/utility/wrun/sources/row-lanes/option_strike_flow.d.ts +4 -0
- package/dist/utility/wrun/sources/row-lanes/option_strike_flow.js +65 -0
- package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +55 -1
- package/dist/utility/wrun/sources/row-lanes/option_strikes.js +83 -2
- package/dist/utility/wrun/sources/row-lanes/option_surface.d.ts +17 -1
- package/dist/utility/wrun/sources/row-lanes/option_surface.js +33 -2
- package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +7 -1
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +51 -5
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +136 -3
- package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.d.ts +42 -0
- package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.js +146 -0
- package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +25 -5
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +111 -20
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +291 -48
- package/dist/utility/wrun/wrun-batched-marks.util.d.ts +16 -3
- package/dist/utility/wrun/wrun-batched-marks.util.js +30 -19
- package/dist/utility/wrun/wrun-batched-readout.util.d.ts +37 -9
- package/dist/utility/wrun/wrun-batched-readout.util.js +61 -15
- package/dist/utility/wrun/wrun-canvas-readout.util.d.ts +4 -0
- package/dist/utility/wrun/wrun-cell-capacity.leaf.d.ts +66 -0
- package/dist/utility/wrun/wrun-cell-capacity.leaf.js +86 -0
- package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +147 -9
- package/dist/utility/wrun/wrun-chart-market-facts.util.js +345 -11
- package/dist/utility/wrun/wrun-cloud-record.leaf.d.ts +27 -0
- package/dist/utility/wrun/wrun-cloud-record.leaf.js +71 -0
- package/dist/utility/wrun/wrun-cloud-record.util.d.ts +4 -21
- package/dist/utility/wrun/wrun-cloud-record.util.js +5 -65
- package/dist/utility/wrun/wrun-color-facts.util.d.ts +19 -9
- package/dist/utility/wrun/wrun-color-facts.util.js +24 -14
- package/dist/utility/wrun/wrun-color-settings.util.d.ts +22 -9
- package/dist/utility/wrun/wrun-color-settings.util.js +57 -23
- package/dist/utility/wrun/wrun-dollar-unit-port.leaf.d.ts +17 -0
- package/dist/utility/wrun/wrun-dollar-unit-port.leaf.js +9 -0
- package/dist/utility/wrun/wrun-download-meter.util.d.ts +92 -0
- package/dist/utility/wrun/wrun-download-meter.util.js +122 -0
- package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +10 -3
- package/dist/utility/wrun/wrun-draft-overlay.util.js +63 -6
- package/dist/utility/wrun/wrun-frames.js +5 -5
- package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +2 -2
- package/dist/utility/wrun/wrun-hosted-wire-caps.js +11 -0
- package/dist/utility/wrun/wrun-hud-looks.util.d.ts +33 -17
- package/dist/utility/wrun/wrun-hud-looks.util.js +30 -16
- package/dist/utility/wrun/wrun-lane-refusal.leaf.d.ts +29 -3
- package/dist/utility/wrun/wrun-lane-refusal.leaf.js +33 -3
- package/dist/utility/wrun/wrun-lifecycle-runtime.util.d.ts +8 -6
- package/dist/utility/wrun/wrun-lifecycle-runtime.util.js +8 -6
- package/dist/utility/wrun/wrun-lifecycle.contract.d.ts +4 -2
- package/dist/utility/wrun/wrun-live-intake.util.d.ts +6 -2
- package/dist/utility/wrun/wrun-live-intake.util.js +136 -21
- package/dist/utility/wrun/wrun-live-tick.util.d.ts +4 -1
- package/dist/utility/wrun/wrun-live-tick.util.js +130 -44
- package/dist/utility/wrun/wrun-market-size-contract-carry.leaf.d.ts +53 -0
- package/dist/utility/wrun/wrun-market-size-contract-carry.leaf.js +162 -0
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.d.ts +224 -0
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +342 -0
- package/dist/utility/wrun/wrun-market-size-defaults.util.d.ts +88 -0
- package/dist/utility/wrun/wrun-market-size-defaults.util.js +471 -0
- package/dist/utility/wrun/wrun-opra-flow.leaf.d.ts +43 -8
- package/dist/utility/wrun/wrun-opra-flow.leaf.js +37 -6
- package/dist/utility/wrun/wrun-option-contract-flow.util.d.ts +51 -10
- package/dist/utility/wrun/wrun-option-contract-flow.util.js +85 -33
- package/dist/utility/wrun/wrun-option-prints.util.d.ts +172 -3
- package/dist/utility/wrun/wrun-option-prints.util.js +394 -17
- package/dist/utility/wrun/wrun-option-strike-flow-lane.util.d.ts +99 -0
- package/dist/utility/wrun/wrun-option-strike-flow-lane.util.js +218 -0
- package/dist/utility/wrun/wrun-option-strike-flow.util.d.ts +365 -0
- package/dist/utility/wrun/wrun-option-strike-flow.util.js +797 -0
- package/dist/utility/wrun/wrun-option-views.util.d.ts +231 -7
- package/dist/utility/wrun/wrun-option-views.util.js +643 -23
- package/dist/utility/wrun/wrun-options-chain.util.d.ts +6 -4
- package/dist/utility/wrun/wrun-options-chain.util.js +8 -5
- package/dist/utility/wrun/wrun-options-stop.util.d.ts +2 -1
- package/dist/utility/wrun/wrun-options-stop.util.js +3 -2
- package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +3 -0
- package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.d.ts +31 -14
- package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.js +22 -0
- package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +9 -1
- package/dist/utility/wrun/wrun-overlay-recovery.util.js +32 -3
- package/dist/utility/wrun/wrun-overlay-result.util.d.ts +7 -1
- package/dist/utility/wrun/wrun-overlay-result.util.js +2 -0
- package/dist/utility/wrun/wrun-overlay-run.util.d.ts +34 -6
- package/dist/utility/wrun/wrun-overlay-run.util.js +527 -180
- package/dist/utility/wrun/wrun-pack-widths.leaf.d.ts +15 -0
- package/dist/utility/wrun/wrun-pack-widths.leaf.js +22 -0
- package/dist/utility/wrun/wrun-pack.util.d.ts +13 -8
- package/dist/utility/wrun/wrun-pack.util.js +38 -21
- package/dist/utility/wrun/wrun-panel-mount.util.d.ts +4 -0
- package/dist/utility/wrun/wrun-panel-mount.util.js +62 -22
- package/dist/utility/wrun/wrun-panel-style.util.d.ts +41 -14
- package/dist/utility/wrun/wrun-panel-style.util.js +86 -26
- package/dist/utility/wrun/wrun-param-map.util.d.ts +7 -6
- package/dist/utility/wrun/wrun-param-map.util.js +8 -5
- package/dist/utility/wrun/wrun-param-values.util.d.ts +10 -2
- package/dist/utility/wrun/wrun-param-values.util.js +2 -0
- package/dist/utility/wrun/wrun-pin-spelling.util.js +19 -10
- package/dist/utility/wrun/wrun-prefix-lanes.util.js +2 -2
- package/dist/utility/wrun/wrun-refusal.util.js +17 -2
- package/dist/utility/wrun/wrun-script-inputs.util.d.ts +20 -0
- package/dist/utility/wrun/wrun-script-inputs.util.js +43 -0
- package/dist/utility/wrun/wrun-source-rows.util.d.ts +4 -0
- package/dist/utility/wrun/wrun-source-rows.util.js +92 -40
- package/dist/utility/wrun/wrun-tape-source.util.d.ts +133 -48
- package/dist/utility/wrun/wrun-tape-source.util.js +205 -62
- package/dist/utility/wrun/wrun-volume-profile-lane.util.d.ts +7 -5
- package/dist/utility/wrun/wrun-volume-profile-lane.util.js +8 -6
- package/dist/workers/utils/volume-profile.worker.util.d.ts +4 -1
- package/dist/workers/utils/volume-profile.worker.util.js +5 -2
- package/dist/workers/wrun/wrun-abi-host.js +3 -2
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Peers, pinned exactly (install them beside the package):
|
|
|
10
10
|
|
|
11
11
|
| Peer | Version | Why |
|
|
12
12
|
| --- | --- | --- |
|
|
13
|
-
| `@orangecharts/indicator-kit` | 0.
|
|
13
|
+
| `@orangecharts/indicator-kit` | 0.91.1 | the shared host's types (`@orangecharts/indicator-kit/host`); the host module itself comes through the env |
|
|
14
14
|
| `@orangecharts/orange-v2-pb-common` | 12.72.0 | the protocol enums the lanes, pins and venue rules read (`Exchange`, `Type`, `Category`), from 0.3.0 |
|
|
15
15
|
| `dayjs` | 1.11.23 | sessions and trading days (the `utc`, `timezone`, `isoWeek` and `quarterOfYear` plugins) |
|
|
16
16
|
| `lodash-es` | 4.18.1 | the color settings and the transforms, by per-function subpath |
|
|
@@ -32,7 +32,29 @@ At 0.4.0, 27: the panel mount `utility/wrun/wrun-panel-mount.util` joins them (i
|
|
|
32
32
|
the last one at 0.4.0: from 0.5.0 its `isWrunDraftOverlaySettings` is the draft overlay module's (a draft ref, or a
|
|
33
33
|
draft script id without a package ref), so import the identity module's names by its subpath. 0.6.0 and 0.7.0 keep
|
|
34
34
|
the same 33: the eleven modules 0.7.0 adds all join the entry, and the one it deletes
|
|
35
|
-
(`utility/wrun/wrun-opra-underlying.util`) was in it.
|
|
35
|
+
(`utility/wrun/wrun-opra-underlying.util`) was in it. 0.8.0 keeps them too: every module added since 0.7.0 joins the
|
|
36
|
+
entry, its five footprint modules among them. `src/index.ts` names the modules it joins.
|
|
37
|
+
|
|
38
|
+
## Settings form rows (from 0.8.0)
|
|
39
|
+
|
|
40
|
+
A control the web app draws as a dialog row is described as rows a host's settings form draws, renderer-agnostic and
|
|
41
|
+
without words (`settings-templates/form-rows`): an `action` row (a label and one button; `apply(model)` answers the
|
|
42
|
+
model the click writes) or a `choice` row (`options` as a drop-down or chips, the `value` on, and `pick(model, value)`,
|
|
43
|
+
which answers the model itself when the pick writes nothing). Words are locale keys the host translates. The
|
|
44
|
+
footprint's Classic Presets and Columns controls are the first (`footprintFormRows(slot, model)`):
|
|
45
|
+
|
|
46
|
+
```ts
|
|
47
|
+
import { footprintFormRows } from '@orangecharts/wrun-chart-host';
|
|
48
|
+
|
|
49
|
+
for (const row of footprintFormRows('footprint-columns', settings)) {
|
|
50
|
+
// row.kind 'choice': draw row.options (row.look 'select' or 'chips'); on a pick:
|
|
51
|
+
// const next = row.pick(settings, value); if (next !== settings) apply(next);
|
|
52
|
+
// row.kind 'action': draw one button with row.action's words; on a click: apply(row.apply(settings)).
|
|
53
|
+
}
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
`sierra-look` is the Classic Presets row; `footprint-columns` is the Display Mode row, then, in the Columns mode, the
|
|
57
|
+
four presets and one select per column (columns 3 and 4 can be Off). Build the rows again after every apply.
|
|
36
58
|
|
|
37
59
|
## The host env (ports)
|
|
38
60
|
|
|
@@ -106,8 +128,9 @@ What each published version holds. A host installs a version with the peers of i
|
|
|
106
128
|
|
|
107
129
|
| Version | Peers | What changed |
|
|
108
130
|
| --- | --- | --- |
|
|
109
|
-
| 0.
|
|
110
|
-
| 0.
|
|
131
|
+
| 0.9.0 | `@orangecharts/indicator-kit` 0.91.1, `@orangecharts/orange-v2-pb-common` 12.72.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | OPTLOAD G5 folds on `option_contract_state`: an input may declare `totals` and `strike_change` (Top Contracts' totals) beside its projections. They plan and ride the lane's ask as view fields like a projection (`wrunOptionViewsOfSource`; `wrunOptionViewsOf` reads them back), and the input's block is the view block its words size (`wrunOptionInputTupleWidth`: each class tuple `[0, ...13 values]`, then each fold row `[layout, ...cells]`, every row padded to 16). An instance's rows are sized the same way on the fetch path: `wrunOptionLaneTupleWidth` reads a view block's width off the views it asks (`<prefix>Views`, the kit's `wrunAskTupleWidth`), where it knew only the strike kit fold. A host's chain transport reads such an answer's fold entries as that block, and on a plane that serves no views answers it from the kit's reference (`wrunOptionViewAnswer`; web: the `k-option-contract-state` worker on a crypto chain). `wrunOptionViewUnread` (new) names what still refuses by name before any read (`wrun_option_view_unread`): an `options_chain` fold, and `oi_board`, which follows the chart's close that the state lane does not send. Peers unchanged. The package commits landed since 0.8.0 ride along (`git log a5411df71f.. -- packages/wrun-chart-host` in the web repo). |
|
|
132
|
+
| 0.8.0 | `@orangecharts/indicator-kit` 0.91.1, `@orangecharts/orange-v2-pb-common` 12.72.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | The footprint's Classic Presets and Columns for a host's settings form, from one source with both web footprint dialogs. Two modules move from the web app: `utility/chart/footprint-sierra-look.util` (`withFootprintSierraLook`, the Classic Presets patch) and `utility/chart/footprint-columns.util` (the 12 column kinds, the four presets, `withFootprintColumn`, `withFootprintColumnsPreset` and their reads). Three are new: `utility/chart/footprint-display-mode.util` (the cell-grid family, the bar width each mode draws at, `FOOTPRINT_DISPLAY_MODES`, `footprintDisplayModeShown` and `withFootprintDisplayMode`), `settings-templates/form-rows` (the row shape: `action` and `choice` rows with words as locale keys) and `settings-templates/footprint-rows` (`footprintFormRows`, `FOOTPRINT_FORM_SLOTS`). All five join the entry. The package commits landed since 0.7.0 ride along (`git log 1a636a0542.. -- packages/wrun-chart-host` in the web repo), among them the market-scaled size defaults (`utility/wrun/wrun-market-size-defaults.leaf` and `.util`), the candle volume unit leaf and the CME options root. The kit peer moves from 0.88.0 to 0.91.1. The registry also holds 0.7.1 (2026-10-21, 0.7.0's peers), which this table does not describe. |
|
|
133
|
+
| 0.7.0 | `@orangecharts/indicator-kit` 0.88.0, `@orangecharts/orange-v2-pb-common` 12.72.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | The options lanes of OPTIONS-PORT P7: `options_flow` becomes a chain lane, and with `option_prints` and `option_contract_flow` it reads the chart's option chain on a crypto option venue and on a CME futures chart as well as on OPRA; option contract flow plans to one source answer budget every layer reads (`utility/chart/kscript-source-answer-budget.leaf`). The run schedule (`utility/wrun/run-schedule/`, six modules): each lane group is sent at its own plan, held or in-flight reads are reused, and a host's door can dial the chart's gate reader before an add (`warmWrunSheetGateReaders`) or when a surface opens (`warmWrunChartGateReaderOnIntent`). Row lanes ask end-exclusive (`WrunSourceFetchOptions.endExclusive`) and keep held bars over budget markers; panel rows paint with missing readings, and a lane is asked only within its reach (`WrunWarmupEvidence.sourceReachFromTs`, the `source-reach` backfill outcome). Trading-day opens are solved as titan solves them across DST edges, and each zone's offset is read once a day (`utility/chart/ny-calendar.util`). Crypto indices chart as main symbols (`utility/chart/crypto-index.leaf`); the symbol comparison keeps its user label as instance state in the settings templates; a run no longer loads the kit on the main thread (`utility/wrun/wrun-kit-run-tables.util`). Every failed run names its cause: `WRUN_FAILURE_CAUSES` gains eight words (`package-withdrawn`, `package-hosted`, `compile-failed`, `twin-declined` and `integration-error` for what stopped a package before it ran; `source-budget`, `source-failed` and `source-declined` for a source lane the ladder gave up on), a package the registry no longer serves shows "no longer available from its publisher" with Remove and never Retry, and a source chip names the feed and what happened (the words under `wrun.unavailable` and `kscript.legend.card.removeIndicator`, which a host's word table needs). A lane's budget counts from its dispatch until the transport reports the request's wire send (`WrunSourceFetchOptions.onSent`, optional: a transport that never reports keeps the dispatch budget), then from the send, 60 s at most from the dispatch; the ladder never ends a lane while a late read is out, and the record it ends on names its cause and the episode that armed it (a restore, a person's add, a live rebuild). The transient grace holds a failure only for an overlay a rerun driver runs, unless the host declares that it reruns the overlay itself (`holdWrunTransientRefusal(target, onExpire, { hostReruns: true })`, `WrunTransientHoldOptions`; off by default): the mobile app's protected run heal does, so its Marketplace indicators load through an outage instead of showing their chip at once. `onWrunOverlayRunSettled` announces a run of a standing overlay only: a run that settles after its overlay's teardown (typically dropped by the teardown's cancel of its pending row-source ask) is the ring's alone, so a same-id remount no longer reads its predecessor's dropped run as its own first run. OPTLOAD G5: an `options_chain` or `option_contract_state` input may declare chain page views (`page_view`, `page_views`; `utility/wrun/wrun-option-views.util`), which ride the lane's ask as view fields for the host's chain transport to send in one chain summary read; a fold view refuses by name (`wrun_option_view_unread`; 0.9.0 reads `option_contract_state`'s) and a view param's `"@<param>"` handle is painted like `ticks_per_bar`. On the OPRA plane both lanes hold the plane's chain by coin instead of reading the chain directory (`wrunHeldOpraPlaneChain`). One loader view widens: the module `transport.loadV2Service()` answers gains `warmGateReaderFor(exchange)` and `warmGateReaderOnIntent(exchange, surface)`; the env keeps its 133 members, and no package code reads `transport.loadWrunKit` any more. 11 modules join, all in the entry, and `utility/wrun/wrun-opra-underlying.util` goes with its `WrunOpraUnderlyingContext`: 416 dist modules (406 at 0.6.0), 33 by subpath only. `utility/wrun/sources/opra-option-lanes.util` drops `resolveWrunOpraLaneUnderlying` and `resolveWrunLaneOpraChain`; a lane resolves its chain through `resolveWrunLaneChainChart` and `decideWrunLaneChain`. The kit peer moves from 0.87.0 to 0.88.0 and the protocol enums peer from 12.69.0 to 12.72.0. |
|
|
111
134
|
| 0.6.0 | `@orangecharts/indicator-kit` 0.87.0, `@orangecharts/orange-v2-pb-common` 12.69.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | The shared engine protocol: a module's bytes cross `postMessage` (the mobile app's portability rule) and the engine worker hashes them (`utility/wrun/wrun-sha256.leaf`), checks the sheet's pin, clamps, prepares and compiles them, caching up to 16 compiled modules per worker, so the main thread neither hashes nor compiles. `compileModule` becomes `loadModule`, which answers an opaque `WrunModuleHandle` (key, sha256, ABI, imports as `{ module, name }` pairs; no bytes); every full run and live-start carries the module's key, ABI and bytes (copied, never transferred), and the worker reuses its cached module or compiles the bytes on a miss, so a respawned worker compiles again. A request runs on two 20 s clocks, the start ceiling from the post (queue plus compile) and the run deadline from the worker's `running`; `loadModule` rejects a failed compile as a `WebAssembly.CompileError` with the worker's words and a pin mismatch with the words it had before 0.6.0. The `run` namespace goes with its three loaders (`run.loadOverlayLifecycleDoor`, `run.loadRefusalSurface`, `run.loadSeriesStream`, retired at 0.5.0), `WrunHostRun` and their three loader views in `host-ports.types`: 131 members by the contract's count, 133 with 0.5.0's two optional ones. Peers unchanged. |
|
|
112
135
|
| 0.5.0 | `@orangecharts/indicator-kit` 0.87.0, `@orangecharts/orange-v2-pb-common` 12.69.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | Phase 2: the live session (the live tick, intake, hidden-tab hold, coin lane live channels, series stream), the drivers and the heal ladder (the lifecycle door, `utility/wrun/wrun-overlay-lifecycle.lazy` by subpath, its runtime and the recovery ladders), the prefix runs, the engine (`workers/wrun/wrun-abi-host`, `workers/wrun/wrun-engine-handler`, the browser host), the host facts and the executor (`utility/wrun/wrun-overlay-run.util`, by subpath) with its row sources: 135 modules, 398 in all. The env gains the 84 phase 2 members, the `ui` and `engine` namespaces and the optional `clock.watchHostSuspended` and `chart.commonStore`; the three `run` loaders turn optional (gone at 0.6.0). The panel mount reads a host's planned pane heights on every cell and retranslates an unchanged child in place, keeping a reader's expanded pane through a retire. The entry no longer serves `utility/wrun/wrun-overlay-identity.util` (by subpath; above). The kit peer moves from 0.86.3 to 0.87.0 (`option_multiplier`); the other peers are unchanged. |
|
|
113
136
|
| 0.4.0 | `@orangecharts/indicator-kit` 0.86.3, `@orangecharts/orange-v2-pb-common` 12.69.0, `dayjs` 1.11.23, `lodash-es` 4.18.1 | Phase 1b: the panel mount (`utility/wrun/wrun-panel-mount.util`, by subpath) and its door (`utility/wrun/wrun-panel-mount.lazy`), the run interval rules (`utility/chart/indicator-run-interval.util`) with the builtin script snippets they type against, the pause dim and six leaves (the window owner and window geometry rules, the date-labelled interval rule, the HTML escape, the run interval projection and plot gate types): 11 modules, 262 in all. The mount reads the host through the env: the 12 members reserved until 0.4.0, `t` and `diagnostics.debug`. Peers unchanged. |
|
|
@@ -6,7 +6,9 @@ export declare const FeatureFlag: {
|
|
|
6
6
|
readonly OmBoard: "om-board";
|
|
7
7
|
readonly ScriptOffers: "script-offers";
|
|
8
8
|
readonly PaperTrading: "paper-trading";
|
|
9
|
+
readonly LighterExecution: "lighter-execution";
|
|
9
10
|
readonly TradingHub: "trading-hub";
|
|
11
|
+
readonly AppearanceModes: "appearance-modes";
|
|
10
12
|
readonly DataLoadHealRegister: "data-load-heal-register";
|
|
11
13
|
readonly CollabSyncV2: "collab-sync-v2";
|
|
12
14
|
readonly DataLoadCrossChartJoin: "data-load-cross-chart-join";
|
|
@@ -26,6 +28,8 @@ export declare const FeatureFlag: {
|
|
|
26
28
|
readonly PrepaidPlusCn: "prepaid-plus-cn";
|
|
27
29
|
readonly ApiConsole: "api-console";
|
|
28
30
|
readonly Opra: "opra";
|
|
31
|
+
readonly VariationalMarkets: "variational-markets";
|
|
32
|
+
readonly OptionsPanel: "options-panel";
|
|
29
33
|
readonly OpraUserScripts: "opra-user-scripts";
|
|
30
34
|
readonly OpraAlerts: "opra-alerts";
|
|
31
35
|
readonly PlusUsdcAutopay: "plus-usdc-autopay";
|
|
@@ -41,6 +45,7 @@ export declare const FeatureFlag: {
|
|
|
41
45
|
readonly KscriptPauseSuspendsPaint: "kscript-pause-suspends-paint";
|
|
42
46
|
readonly Feeds: "feeds";
|
|
43
47
|
readonly SynopticStreams: "synoptic-streams";
|
|
48
|
+
readonly StoreBuiltinRows: "store-builtin-rows";
|
|
44
49
|
};
|
|
45
50
|
export type FeatureFlagKey = (typeof FeatureFlag)[keyof typeof FeatureFlag];
|
|
46
51
|
export declare const FEATURE_FLAG_KEYS: FeatureFlagKey[];
|
|
@@ -48,6 +48,13 @@ export const FeatureFlag = {
|
|
|
48
48
|
// build switch `PAPER_TRADING_ENABLED` takes only the paper venue out of a build, never the
|
|
49
49
|
// exchange venues.
|
|
50
50
|
PaperTrading: 'paper-trading',
|
|
51
|
+
// Lighter execution (docs/features/cex-execution/README.md, "Lighter"): the one exchange venue whose
|
|
52
|
+
// trading key is minted in the browser and registered by the wallet. Its own key, read through `isOn`
|
|
53
|
+
// by `isCexVenueFlagOn`: unminted, absent and guest all read off, so production ships it dark while the
|
|
54
|
+
// paper trading key, which lights the other dark venues, stays on for everyone; the dev/internal
|
|
55
|
+
// localStorage override lights it locally (`kiyo.flag-overrides` -> `{"lighter-execution": true}`).
|
|
56
|
+
// Mint it enabled to open it up. A key this browser already holds keeps trading after it turns off.
|
|
57
|
+
LighterExecution: 'lighter-execution',
|
|
51
58
|
// The trading hub (docs/features/trading-hub/README.md): one Trade door beside the avatar that
|
|
52
59
|
// folds the desktop's linking, accounts and trade settings into one dialog. Rides the master
|
|
53
60
|
// trading flag AND this key, read through `isOn` (`isTradingHubOn`): unminted, absent and guest
|
|
@@ -55,6 +62,13 @@ export const FeatureFlag = {
|
|
|
55
62
|
// bypass, the dev/internal localStorage override lights it locally (`kiyo.flag-overrides` ->
|
|
56
63
|
// `{"trading-hub": true}`). Mint it enabled to open it up. Phones keep today's surfaces either way.
|
|
57
64
|
TradingHub: 'trading-hub',
|
|
65
|
+
// The Gray and Cream appearances (docs/features/ui/theming.md, "Appearance modes"): two more segments in the
|
|
66
|
+
// desktop Preferences mode switch, Gray beside Dark and Cream beside Light, plus their Super Search rows.
|
|
67
|
+
// Read through `isOn` (`isAppearanceModesOn`): unminted, absent and guest all read off, so production ships it
|
|
68
|
+
// dark and a saved Gray shows as Dark, a saved Cream as Light; an internal role reads it on through the
|
|
69
|
+
// server's bypass, the dev/internal localStorage override lights it locally (`kiyo.flag-overrides` ->
|
|
70
|
+
// `{"appearance-modes": true}`). Mint it enabled to open it up. Phones keep Dark and Light either way.
|
|
71
|
+
AppearanceModes: 'appearance-modes',
|
|
58
72
|
// Collab-sync kill switch (Phase 1: DEFAULT ON; the flag exists only to
|
|
59
73
|
// force the legacy lanes back, by minting it disabled in the admin panel
|
|
60
74
|
// plus a page reload). Mode is generation-pinned per collab session
|
|
@@ -192,6 +206,18 @@ export const FeatureFlag = {
|
|
|
192
206
|
// affordance, contract charts and the purchase screens. Minted dark; the data tier itself is the
|
|
193
207
|
// OPRA gate's and never flips with this flag (employees stay delayed like everyone).
|
|
194
208
|
Opra: 'opra',
|
|
209
|
+
// Variational (VARIATIONAL perpetuals, VARIATIONAL_SWAP swaps) in pickers, search, recents, popular rows
|
|
210
|
+
// and watchlist import: a flag-gated venue (exchange-visibility.util FLAG_GATED_EXCHANGES), read through
|
|
211
|
+
// `isOn`, so unminted, absent and guest all read off and every surface ships it dark. An internal role
|
|
212
|
+
// reads it on through the server's bypass once it is minted; the dev/internal override lights it
|
|
213
|
+
// locally (`kiyo.flag-overrides` -> `{"variational-markets": true}`). A chart already on the venue
|
|
214
|
+
// still loads (docs/features/data/quote-perp-venues.md). Mint it enabled to release the venue.
|
|
215
|
+
VariationalMarkets: 'variational-markets',
|
|
216
|
+
// The Options panel (the Options front door): the ticker bar's Options button, the panel itself and every door
|
|
217
|
+
// to it, read through `isOptionsPanelOn()` (src/utility/options/options-panel-gate.util.ts) with `isOn`:
|
|
218
|
+
// unminted, absent and guest all read off, so production ships it dark; minted disabled, an internal role reads
|
|
219
|
+
// it on. QA: `localStorage.setItem('kiyo.flag-overrides', '{"options-panel":true}')`. Mint it enabled to open it up.
|
|
220
|
+
OptionsPanel: 'options-panel',
|
|
195
221
|
// User-authored scripts on OPRA (UW-PARITY H2; Kyle 2026-10-17 assumed the OPRA permission for
|
|
196
222
|
// user-authored scripts): while lit, a script the browser runs that the viewer wrote or added from the
|
|
197
223
|
// community (an Indicator draft, a community package, a kScript user script) reads US options like an
|
|
@@ -295,6 +321,12 @@ export const FeatureFlag = {
|
|
|
295
321
|
// production ships it dark; minted disabled, an internal role reads it on; the dev/internal localStorage
|
|
296
322
|
// override lights it locally. Mint it enabled to open it up.
|
|
297
323
|
SynopticStreams: 'synoptic-streams',
|
|
324
|
+
// The indicator store's native Official rows from the registry's builtin listings
|
|
325
|
+
// (docs/features/indicators/indicator-catalog.md): on, a builtin row lists its native control (Add mounts it by
|
|
326
|
+
// type), tharamine's row only for a type no builtin row covers, and the Official side orders by `boost`. Off,
|
|
327
|
+
// builtin rows are dropped and the store is as before. Read through `isOn`: unminted, absent and guest read off,
|
|
328
|
+
// so production ships it dark; flip it off to roll back (saved charts store the control type).
|
|
329
|
+
StoreBuiltinRows: 'store-builtin-rows',
|
|
298
330
|
};
|
|
299
331
|
export const FEATURE_FLAG_KEYS = Object.values(FeatureFlag);
|
|
300
332
|
/**
|
|
@@ -55,21 +55,26 @@ export interface IMarketCapabilities {
|
|
|
55
55
|
* surface available and no execution.
|
|
56
56
|
*/
|
|
57
57
|
export declare const CME_FUTURES_CAPABILITIES: IMarketCapabilities;
|
|
58
|
+
/**
|
|
59
|
+
* US equity and index options over the OPRA entitlement gate (the `'options'`
|
|
60
|
+
* kind). Session markets served by the same reader/live-feed pipeline as CME
|
|
61
|
+
* (period fetch, TRADE data sided by the feed) with trades, volume and market
|
|
62
|
+
* stats, but no order book (OPRA is top of book only and the feed publishes no
|
|
63
|
+
* book types) and no volume profile: the gateway retired VOLUME_PROFILE_AGG,
|
|
64
|
+
* TPO_AGG and TRADE_VOLUME_BY_SIZE_AGG on option contracts 2026-10-21, and
|
|
65
|
+
* every OPRA chart is an option contract, so the Fixed Range Volume Profile
|
|
66
|
+
* tool stands down (tradfi.constants OPTION_CONTRACT_ORDER_FLOW_INDICATORS
|
|
67
|
+
* refuses the indicators). CME futures keep the tool; an exact CME option
|
|
68
|
+
* shares their capability record and its mode refuses the profile instead.
|
|
69
|
+
* Alerts are refused on the plane by policy, so the alert symbol mode is moot.
|
|
70
|
+
*/
|
|
71
|
+
export declare const OPRA_OPTIONS_CAPABILITIES: IMarketCapabilities;
|
|
58
72
|
/**
|
|
59
73
|
* On-chain pools served by blk (`isBlkExchange`: every SOLANA_ONCHAIN market). They classify as the
|
|
60
74
|
* crypto kind (uniform bars, period fetch, a trade tape and market stats), but blk serves no order book
|
|
61
75
|
* and no volume profile, so the book surfaces (the Orderbook tab, its block-size prefetch) and the
|
|
62
76
|
* Fixed Range Volume Profile tool stand down. `getCapabilities` returns this for those exchanges.
|
|
63
77
|
*/
|
|
64
|
-
/**
|
|
65
|
-
* US equity and index options over the OPRA entitlement gate (the `'options'`
|
|
66
|
-
* kind). Session markets served by the same reader/live-feed pipeline as CME
|
|
67
|
-
* (period fetch, TRADE data sided by the feed) with trades, volume, market
|
|
68
|
-
* stats and the volume-profile surfaces, but no order book: OPRA is top of
|
|
69
|
-
* book only and the feed publishes no book types. Alerts are refused on the
|
|
70
|
-
* plane by policy, so the alert symbol mode is moot.
|
|
71
|
-
*/
|
|
72
|
-
export declare const OPRA_OPTIONS_CAPABILITIES: IMarketCapabilities;
|
|
73
78
|
export declare const ONCHAIN_POOL_CAPABILITIES: IMarketCapabilities;
|
|
74
79
|
export declare const MARKET_CAPABILITIES: Record<VenueMarketKind, IMarketCapabilities>;
|
|
75
80
|
/** Every market kind (the FE `'futures'` kind included). Derived from
|
|
@@ -27,19 +27,18 @@ export const CME_FUTURES_CAPABILITIES = {
|
|
|
27
27
|
// ones (cmeSessionBucketMs).
|
|
28
28
|
allowsCalendarIntervals: true,
|
|
29
29
|
};
|
|
30
|
-
/**
|
|
31
|
-
* On-chain pools served by blk (`isBlkExchange`: every SOLANA_ONCHAIN market). They classify as the
|
|
32
|
-
* crypto kind (uniform bars, period fetch, a trade tape and market stats), but blk serves no order book
|
|
33
|
-
* and no volume profile, so the book surfaces (the Orderbook tab, its block-size prefetch) and the
|
|
34
|
-
* Fixed Range Volume Profile tool stand down. `getCapabilities` returns this for those exchanges.
|
|
35
|
-
*/
|
|
36
30
|
/**
|
|
37
31
|
* US equity and index options over the OPRA entitlement gate (the `'options'`
|
|
38
32
|
* kind). Session markets served by the same reader/live-feed pipeline as CME
|
|
39
|
-
* (period fetch, TRADE data sided by the feed) with trades, volume
|
|
40
|
-
* stats
|
|
41
|
-
* book
|
|
42
|
-
*
|
|
33
|
+
* (period fetch, TRADE data sided by the feed) with trades, volume and market
|
|
34
|
+
* stats, but no order book (OPRA is top of book only and the feed publishes no
|
|
35
|
+
* book types) and no volume profile: the gateway retired VOLUME_PROFILE_AGG,
|
|
36
|
+
* TPO_AGG and TRADE_VOLUME_BY_SIZE_AGG on option contracts 2026-10-21, and
|
|
37
|
+
* every OPRA chart is an option contract, so the Fixed Range Volume Profile
|
|
38
|
+
* tool stands down (tradfi.constants OPTION_CONTRACT_ORDER_FLOW_INDICATORS
|
|
39
|
+
* refuses the indicators). CME futures keep the tool; an exact CME option
|
|
40
|
+
* shares their capability record and its mode refuses the profile instead.
|
|
41
|
+
* Alerts are refused on the plane by policy, so the alert symbol mode is moot.
|
|
43
42
|
*/
|
|
44
43
|
export const OPRA_OPTIONS_CAPABILITIES = {
|
|
45
44
|
barTimestamps: 'irregular',
|
|
@@ -47,11 +46,17 @@ export const OPRA_OPTIONS_CAPABILITIES = {
|
|
|
47
46
|
supportsVolumeStats: true,
|
|
48
47
|
supportsTradesFeed: true,
|
|
49
48
|
supportsMarketStats: true,
|
|
50
|
-
supportsFRVP:
|
|
49
|
+
supportsFRVP: false,
|
|
51
50
|
supportsOrderbook: false,
|
|
52
51
|
alertSymbolMode: 'coin',
|
|
53
52
|
allowsCalendarIntervals: false,
|
|
54
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* On-chain pools served by blk (`isBlkExchange`: every SOLANA_ONCHAIN market). They classify as the
|
|
56
|
+
* crypto kind (uniform bars, period fetch, a trade tape and market stats), but blk serves no order book
|
|
57
|
+
* and no volume profile, so the book surfaces (the Orderbook tab, its block-size prefetch) and the
|
|
58
|
+
* Fixed Range Volume Profile tool stand down. `getCapabilities` returns this for those exchanges.
|
|
59
|
+
*/
|
|
55
60
|
export const ONCHAIN_POOL_CAPABILITIES = {
|
|
56
61
|
barTimestamps: 'uniform',
|
|
57
62
|
fetchMode: 'period',
|
|
@@ -181,8 +186,8 @@ export const MARKET_CAPABILITIES = {
|
|
|
181
186
|
options: OPRA_OPTIONS_CAPABILITIES,
|
|
182
187
|
// The crypto-wide indices (CRYPTOCAP: BTC.D, TOTAL, ...). Value candles on
|
|
183
188
|
// the period fetch, 24/7 on uniform bars like crypto, at every interval from
|
|
184
|
-
//
|
|
185
|
-
//
|
|
189
|
+
// 1s up (the calendar ones included), but no trades, volume, book or profile
|
|
190
|
+
// behind them, and no alert engine lane.
|
|
186
191
|
cryptoIndex: {
|
|
187
192
|
barTimestamps: 'uniform',
|
|
188
193
|
fetchMode: 'period',
|
|
@@ -195,6 +200,24 @@ export const MARKET_CAPABILITIES = {
|
|
|
195
200
|
alertSymbolMode: 'coin',
|
|
196
201
|
allowsCalendarIntervals: true,
|
|
197
202
|
},
|
|
203
|
+
// Perpetual venues that publish quotes, never trades (Variational,
|
|
204
|
+
// quote-perp.leaf). Quote candles (TICKER_AGG) on the period fetch, 24/7 on
|
|
205
|
+
// uniform bars like crypto, from 1m up (the gateway serves no sub-minute
|
|
206
|
+
// TICKER_AGG tier), with funding and open interest beside them but no
|
|
207
|
+
// trades, volume, book or profile. No alert engine lane is proven for the
|
|
208
|
+
// venue, so alerts stay closed (an armed one would save and never fire).
|
|
209
|
+
quotePerp: {
|
|
210
|
+
barTimestamps: 'uniform',
|
|
211
|
+
fetchMode: 'period',
|
|
212
|
+
supportsVolumeStats: false,
|
|
213
|
+
supportsTradesFeed: false,
|
|
214
|
+
supportsMarketStats: false,
|
|
215
|
+
supportsFRVP: false,
|
|
216
|
+
supportsOrderbook: false,
|
|
217
|
+
supportsAlerts: false,
|
|
218
|
+
alertSymbolMode: 'slug',
|
|
219
|
+
allowsCalendarIntervals: true,
|
|
220
|
+
},
|
|
198
221
|
};
|
|
199
222
|
// =============================================================================
|
|
200
223
|
// MarketKind shorthand sets — for `IIndicatorControl.marketKinds` declarations.
|
|
@@ -17,3 +17,17 @@
|
|
|
17
17
|
* the watchlist cell tooltip, and the purchase page's live delayed price.
|
|
18
18
|
*/
|
|
19
19
|
export declare const OPRA_DELAY_NOTICE = "OPRA data delayed 15 minutes";
|
|
20
|
+
/**
|
|
21
|
+
* The agreement notice. Source: the filed Attachment C (6) to the OPRA Vendor Agreement and the filed display screen 2:
|
|
22
|
+
* the notice shown prominently each time a subscriber accesses the service, its last words a link to the agreement the
|
|
23
|
+
* subscriber accepted. Every OPRA-bearing view of an entitled real-time subscriber carries it as a persistent strip
|
|
24
|
+
* (the chain page, an OPRA contract chart, a chart holding an OPRA overlay: OpraAgreementNotice.vue).
|
|
25
|
+
*/
|
|
26
|
+
export declare const OPRA_AGREEMENT_NOTICE = "YOUR RECEIPT AND USE OF THIS SERVICE IS SUBJECT TO THE TERMS AND CONDITIONS OF YOUR AGREEMENT WITH THALAMUS TECHNOLOGIES, INC. TO VIEW THE TERMS AND CONDITIONS OF THIS AGREEMENT, PLEASE CLICK HERE.";
|
|
27
|
+
/** The words of the agreement notice that link to the accepted agreement: the notice's own words, never a label. */
|
|
28
|
+
export declare const OPRA_AGREEMENT_NOTICE_LINK = "CLICK HERE";
|
|
29
|
+
/**
|
|
30
|
+
* The agreement step's assent button. Source: the B-1 form itself, which asks the subscriber to indicate agreement by
|
|
31
|
+
* clicking the button of these words at the end: the button reads them exactly, in every locale.
|
|
32
|
+
*/
|
|
33
|
+
export declare const OPRA_ASSENT_BUTTON = "I AGREE";
|
|
@@ -17,3 +17,17 @@
|
|
|
17
17
|
* the watchlist cell tooltip, and the purchase page's live delayed price.
|
|
18
18
|
*/
|
|
19
19
|
export const OPRA_DELAY_NOTICE = 'OPRA data delayed 15 minutes';
|
|
20
|
+
/**
|
|
21
|
+
* The agreement notice. Source: the filed Attachment C (6) to the OPRA Vendor Agreement and the filed display screen 2:
|
|
22
|
+
* the notice shown prominently each time a subscriber accesses the service, its last words a link to the agreement the
|
|
23
|
+
* subscriber accepted. Every OPRA-bearing view of an entitled real-time subscriber carries it as a persistent strip
|
|
24
|
+
* (the chain page, an OPRA contract chart, a chart holding an OPRA overlay: OpraAgreementNotice.vue).
|
|
25
|
+
*/
|
|
26
|
+
export const OPRA_AGREEMENT_NOTICE = 'YOUR RECEIPT AND USE OF THIS SERVICE IS SUBJECT TO THE TERMS AND CONDITIONS OF YOUR AGREEMENT WITH THALAMUS TECHNOLOGIES, INC. TO VIEW THE TERMS AND CONDITIONS OF THIS AGREEMENT, PLEASE CLICK HERE.';
|
|
27
|
+
/** The words of the agreement notice that link to the accepted agreement: the notice's own words, never a label. */
|
|
28
|
+
export const OPRA_AGREEMENT_NOTICE_LINK = 'CLICK HERE';
|
|
29
|
+
/**
|
|
30
|
+
* The agreement step's assent button. Source: the B-1 form itself, which asks the subscriber to indicate agreement by
|
|
31
|
+
* clicking the button of these words at the end: the button reads them exactly, in every locale.
|
|
32
|
+
*/
|
|
33
|
+
export const OPRA_ASSENT_BUTTON = 'I AGREE';
|
|
@@ -61,9 +61,9 @@ export interface OptionVenue {
|
|
|
61
61
|
greeksEstimated?: boolean;
|
|
62
62
|
/**
|
|
63
63
|
* The chain stamps each expiry at the contract's true expiry instant (OPRA: 16:00 New York, 09:30 for the
|
|
64
|
-
* AM-settled roots), not a bare UTC-midnight date
|
|
65
|
-
* read time to expiry, so they are offered and kept only on a plane whose row says
|
|
66
|
-
*
|
|
64
|
+
* AM-settled roots; the CME group: the registry's expiration instant), not a bare UTC-midnight date. The
|
|
65
|
+
* heatmap's charm and vanna read time to expiry, so they are offered and kept only on a plane whose row says
|
|
66
|
+
* so (planeServesExpiryInstants); a quote still stamped at UTC midnight prices neither (isDateOnlyExpiry).
|
|
67
67
|
*/
|
|
68
68
|
expiryInstants?: boolean;
|
|
69
69
|
/** Chain fields the venue never serves (OPRA publishes no settlement), folded into the hidden set. */
|
|
@@ -74,13 +74,36 @@ export interface OptionVenue {
|
|
|
74
74
|
knownUnderlyings?: readonly OptionKnownUnderlying[];
|
|
75
75
|
families?: readonly OptionVenueFamily[];
|
|
76
76
|
chainWindowSec?: number;
|
|
77
|
-
/**
|
|
77
|
+
/**
|
|
78
|
+
* The venue streams OPTION_SUMMARY on the live feed, so a chain's quotes and underlying follow it between summary
|
|
79
|
+
* polls: the crypto venues on the plain socket, CME and OPRA on the gate's live-feed slot of the tier the account
|
|
80
|
+
* is served (a delayed chain takes only frames as old as its delay, see useOptionChainSummaryBrowser).
|
|
81
|
+
*/
|
|
78
82
|
liveSummary?: boolean;
|
|
79
83
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
84
|
+
* A plain venue's summary poll on the chain page. Omitted polls at `OPTION_CHAIN_SUMMARY_POLL_MS` (3 s, Deribit);
|
|
85
|
+
* the other plain venues publish every 15 to 60 s, so a 3 s poll mostly re-reads the same quotes. A governed venue
|
|
86
|
+
* sets none: its chain polls at its tier's pace (3 s real-time, `DELAYED_CHAIN_POLL_MS` delayed).
|
|
82
87
|
*/
|
|
83
88
|
chainPollMs?: number;
|
|
89
|
+
/** The venue's trade-date clock (the data plane's `option_venue_clocks`; option-trade-date.util). Omitted: UTC. */
|
|
90
|
+
tradeDateClock?: OptionTradeDateClock;
|
|
91
|
+
}
|
|
92
|
+
/** A clock's rule: its zone's wall clock plus `offsetHours`, cut to a date (a weekend moved to Monday when set). */
|
|
93
|
+
export interface OptionTradeDateRule {
|
|
94
|
+
offsetHours: number;
|
|
95
|
+
weekendsToMonday?: true;
|
|
96
|
+
}
|
|
97
|
+
/** One venue family's clock: its zone and rule, and the root families of its futures dating by their own rule. */
|
|
98
|
+
export interface OptionTradeDateClock {
|
|
99
|
+
zone: string;
|
|
100
|
+
rule: OptionTradeDateRule;
|
|
101
|
+
rootFamilies?: readonly {
|
|
102
|
+
family: string;
|
|
103
|
+
exchanges: readonly string[];
|
|
104
|
+
roots: readonly string[];
|
|
105
|
+
rule: OptionTradeDateRule;
|
|
106
|
+
}[];
|
|
84
107
|
}
|
|
85
108
|
/**
|
|
86
109
|
* Chart exchange codes a US stock or ETF may carry (the post-flip vendor code, its enum alias and the
|
|
@@ -59,6 +59,23 @@ export const OPTION_VENUES = [
|
|
|
59
59
|
lane: 'governed',
|
|
60
60
|
plane: 'cme',
|
|
61
61
|
gated: false,
|
|
62
|
+
liveSummary: true,
|
|
63
|
+
// The registry stamps each expiry at its expiration instant (metadata-instrument's full expiration): 0
|
|
64
|
+
// midnight stamps among the live CME, CBOT, NYMEX and COMEX option contracts on 2026-10-22.
|
|
65
|
+
expiryInstants: true,
|
|
66
|
+
// The Globex trade date (17:00 Chicago opens the next); the crypto futures roll at 16:00, weekends on Monday.
|
|
67
|
+
tradeDateClock: {
|
|
68
|
+
zone: 'America/Chicago',
|
|
69
|
+
rule: { offsetHours: 7 },
|
|
70
|
+
rootFamilies: [
|
|
71
|
+
{
|
|
72
|
+
family: 'crypto',
|
|
73
|
+
exchanges: ['CME'],
|
|
74
|
+
roots: ['BTC', 'MBT', 'ETH', 'MET'],
|
|
75
|
+
rule: { offsetHours: 8, weekendsToMonday: true },
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
|
+
},
|
|
62
79
|
},
|
|
63
80
|
{
|
|
64
81
|
// US equity and index options: one consolidated venue over the OPRA gate, 15-minute delayed free
|
|
@@ -80,8 +97,8 @@ export const OPTION_VENUES = [
|
|
|
80
97
|
expiryInstants: true,
|
|
81
98
|
unavailableFields: ['settlementPrice', 'settlementDate'],
|
|
82
99
|
delayMinutes: OPRA_DELAY_MINUTES,
|
|
83
|
-
|
|
84
|
-
|
|
100
|
+
liveSummary: true,
|
|
101
|
+
tradeDateClock: { zone: 'America/New_York', rule: { offsetHours: 0 } },
|
|
85
102
|
},
|
|
86
103
|
{
|
|
87
104
|
id: 'deribit',
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The two catalog venue groups behind the Spot and Perps presets of the multi-venue indicators, each venue with
|
|
3
|
-
* the quote its catalog pair is synthesized from
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* the quote its catalog pair is synthesized from: the coin, then the quote (`BTC` + `-USD` is Coinbase's `BTC-USD`,
|
|
4
|
+
* `BTC` + `-USDT-SWAP` OKX's perpetual `BTC-USDT-SWAP`); an empty quote is a pair spelled as the bare coin
|
|
5
|
+
* (Hyperliquid's `BTC`). ONE source of truth for every reader: the predefined catalog (`store/common.ts`
|
|
6
|
+
* fetchPredefinedSymbolsByCoinAndType) builds its pairs from these maps, the venue-choice resolver (`venue-legs.util`
|
|
7
|
+
* presetVenues) names their venues, in this order, and the wrun pin speller (`wrun-pin-spelling.util`) reads how
|
|
8
|
+
* each venue spells a pair.
|
|
6
9
|
*/
|
|
10
|
+
/**
|
|
11
|
+
* The deep perp venues, in the aggregated tools' order: every aggregated indicator reads them by default (the web
|
|
12
|
+
* app's AGGREGATED_DEFAULT_EXCHANGES is this list) and the Perps preset lists exactly them (its type below fails the
|
|
13
|
+
* build on a venue missing or extra). Deep only: OKEX_FUTURES (dated futures, a basis away from the perp price) and
|
|
14
|
+
* DERIBIT (coin-scoped profiles can carry option instruments) left 2026-08-07, BITFINEX_DERIVATIVES 2026-08-09 (its
|
|
15
|
+
* perp prints sat $60-80 off the deep venues with dust volume).
|
|
16
|
+
*/
|
|
17
|
+
export declare const DEEP_PERP_VENUES: readonly ["BYBIT", "BINANCE_FUTURES", "OKEX_SWAP", "HYPERLIQUID_FUTURES"];
|
|
18
|
+
/** A deep perp venue (DEEP_PERP_VENUES). */
|
|
19
|
+
export type DeepPerpVenue = (typeof DEEP_PERP_VENUES)[number];
|
|
7
20
|
export declare const SPOT_PRESET_VENUE_QUOTES: Readonly<Record<string, string>>;
|
|
21
|
+
/** The Perps preset: every deep perp venue, in catalog order (Binance first, the order the preset always had). */
|
|
8
22
|
export declare const PERP_PRESET_VENUE_QUOTES: Readonly<Record<string, string>>;
|
|
9
23
|
/** The catalog venue groups by preset. */
|
|
10
24
|
export declare const PRESET_VENUE_QUOTES: Readonly<Record<'SPOT' | 'PERP', Readonly<Record<string, string>>>>;
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The two catalog venue groups behind the Spot and Perps presets of the multi-venue indicators, each venue with
|
|
3
|
-
* the quote its catalog pair is synthesized from
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* the quote its catalog pair is synthesized from: the coin, then the quote (`BTC` + `-USD` is Coinbase's `BTC-USD`,
|
|
4
|
+
* `BTC` + `-USDT-SWAP` OKX's perpetual `BTC-USDT-SWAP`); an empty quote is a pair spelled as the bare coin
|
|
5
|
+
* (Hyperliquid's `BTC`). ONE source of truth for every reader: the predefined catalog (`store/common.ts`
|
|
6
|
+
* fetchPredefinedSymbolsByCoinAndType) builds its pairs from these maps, the venue-choice resolver (`venue-legs.util`
|
|
7
|
+
* presetVenues) names their venues, in this order, and the wrun pin speller (`wrun-pin-spelling.util`) reads how
|
|
8
|
+
* each venue spells a pair.
|
|
6
9
|
*/
|
|
10
|
+
/**
|
|
11
|
+
* The deep perp venues, in the aggregated tools' order: every aggregated indicator reads them by default (the web
|
|
12
|
+
* app's AGGREGATED_DEFAULT_EXCHANGES is this list) and the Perps preset lists exactly them (its type below fails the
|
|
13
|
+
* build on a venue missing or extra). Deep only: OKEX_FUTURES (dated futures, a basis away from the perp price) and
|
|
14
|
+
* DERIBIT (coin-scoped profiles can carry option instruments) left 2026-08-07, BITFINEX_DERIVATIVES 2026-08-09 (its
|
|
15
|
+
* perp prints sat $60-80 off the deep venues with dust volume).
|
|
16
|
+
*/
|
|
17
|
+
export const DEEP_PERP_VENUES = ['BYBIT', 'BINANCE_FUTURES', 'OKEX_SWAP', 'HYPERLIQUID_FUTURES'];
|
|
7
18
|
export const SPOT_PRESET_VENUE_QUOTES = Object.freeze({
|
|
8
19
|
BINANCE: 'USDT',
|
|
9
20
|
COINBASE: '-USD',
|
|
@@ -11,9 +22,12 @@ export const SPOT_PRESET_VENUE_QUOTES = Object.freeze({
|
|
|
11
22
|
OKEX: '-USDT',
|
|
12
23
|
BITSTAMP: 'USD',
|
|
13
24
|
});
|
|
25
|
+
/** The Perps preset: every deep perp venue, in catalog order (Binance first, the order the preset always had). */
|
|
14
26
|
export const PERP_PRESET_VENUE_QUOTES = Object.freeze({
|
|
15
27
|
BINANCE_FUTURES: 'USDT',
|
|
16
28
|
BYBIT: 'USDT',
|
|
29
|
+
OKEX_SWAP: '-USDT-SWAP',
|
|
30
|
+
HYPERLIQUID_FUTURES: '',
|
|
17
31
|
});
|
|
18
32
|
/** The catalog venue groups by preset. */
|
|
19
33
|
export const PRESET_VENUE_QUOTES = Object.freeze({
|
package/dist/host-env.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* bundle that splits it, a spec that resets its module registry) reads the one the realm's entry set.
|
|
11
11
|
*/
|
|
12
12
|
import type * as WrunKitHost from '@orangecharts/indicator-kit/host';
|
|
13
|
-
import type { 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 } from './host-ports.types.js';
|
|
13
|
+
import type { WrunAttemptOutcome, WrunAttemptStageMs, WrunAttemptToken, WrunChartHandle, WrunChartModeModule, WrunChartPaintMode, WrunChartPaintOptions, WrunChartPaintTarget, WrunChartRoutingModule, WrunChartStoreModule, WrunChartStoreView, WrunCommonStoreModule, WrunConsoleRefusalRun, WrunContinuousContractsModule, WrunContrastGuardContext, WrunDataFetchingModule, WrunDeclaredDepthAsk, WrunDeribitOptionsModule, WrunEditorShellModule, WrunEndOfDataMarkerReason, WrunEngineWorker, WrunEngineWorkerOptions, WrunFailureShow, WrunFeedStreamApi, WrunFeedsServiceModule, WrunHiddenLiveDrainOutcome, WrunHostOverlayRef, WrunIndicatorRegistryModule, WrunIndicatorTypesModule, WrunInputRequirement, WrunIntegrateOptions, WrunIntegrateResult, WrunKitModule, WrunKScriptErrorEnvelopeModule, WrunLegendHoverModule, WrunLiveCoalesceFlush, WrunLiveCoalesceTickDecision, WrunLiveFeedServiceModule, WrunLiveRefreshGateDecision, WrunMarketEventsStoreModule, WrunMetadataServiceModule, WrunOffchartGridHeightsModule, WrunOptionChainServiceModule, WrunOptionsChainVenuesModule, WrunOptionsChartSourceModule, WrunOptionsGateModule, WrunOptionsOverlayProvenanceModule, 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
16
|
import type { WrunLatestSnapshot } from './utility/wrun/wrun-latest-snapshot.js';
|
|
@@ -105,6 +105,9 @@ export interface WrunChartHostDiagnostics {
|
|
|
105
105
|
markAttemptRunStart(token: WrunAttemptToken | null): void;
|
|
106
106
|
/** 0.5.0, run. web: noteWrunAttemptStageMs(token, stage, ms) (same file :276). */
|
|
107
107
|
noteAttemptStageMs(token: WrunAttemptToken | null, stage: keyof WrunAttemptStageMs, ms: number): void;
|
|
108
|
+
/** Run. web: noteWrunAttemptDownload(token, summary) (same file): one run's download (wrun-download-meter.util), once
|
|
109
|
+
* per run; the attempt sums its runs' until it settles. */
|
|
110
|
+
noteAttemptDownload(token: WrunAttemptToken | null, summary: WrunDownloadSummary): void;
|
|
108
111
|
/** 0.5.0, run. web: settleWrunAttempt(token, outcome) (same file :296). */
|
|
109
112
|
settleAttempt(token: WrunAttemptToken | null | undefined, outcome: WrunAttemptOutcome): void;
|
|
110
113
|
/** 0.5.0, boot. web: registerMemoryCensusCacheProvider(name, provider) (utility/chart/memory-census.util.ts:101; the
|
|
@@ -161,6 +164,21 @@ export interface WrunChartHostEnv {
|
|
|
161
164
|
ui: WrunHostUi;
|
|
162
165
|
/** 0.5.0. */
|
|
163
166
|
engine: WrunHostEngine;
|
|
167
|
+
/** Optional. Whether this host shows a wrun Indicator's tables in the Indicator's window (a cell of its own, the
|
|
168
|
+
* candle pane hidden). True: a normal cell leaves a `panel.table` child, any `place`, to the window that shows it
|
|
169
|
+
* (`tablesShownInWindow` decides per Indicator) and mounts it while no window does; a window cell mounts it as
|
|
170
|
+
* before (the child mount's rule, wrun-panel-mount.util `mountsOnCell`). Absent or false: the behaviour before the
|
|
171
|
+
* member, exactly, and `tablesShownInWindow` is never called. web: true. The phone app pins its own host copy and
|
|
172
|
+
* never sets it. */
|
|
173
|
+
windows?: boolean;
|
|
174
|
+
/** Optional, called only while `windows` is true. Whether the layout holds a window cell that shows this
|
|
175
|
+
* Indicator's tables (the same package on the same market, in another cell), so the normal cell at `chartIndex`
|
|
176
|
+
* leaves its tables to that window. Absent, or a call that throws, reads false: the normal cell mounts its tables,
|
|
177
|
+
* so an Indicator with no window, or one that cannot get one (replay, a full layout, a slot budget that refuses
|
|
178
|
+
* the window copy, an editor draft, a layout saved before windows), never loses them. The mount calls it at most
|
|
179
|
+
* once per pass, and only for a run that carries a table on a normal cell (wrunHostLeavesTablesToWindow). web:
|
|
180
|
+
* answered from the layout's window cells. */
|
|
181
|
+
tablesShownInWindow?: (chartIndex: number, overlayId: string) => boolean;
|
|
164
182
|
}
|
|
165
183
|
/** The mounted chart and the host's chart store, as package code reads and writes them. */
|
|
166
184
|
export interface WrunHostChart {
|
|
@@ -289,11 +307,13 @@ export interface WrunHostChart {
|
|
|
289
307
|
attempt: number;
|
|
290
308
|
terminal?: boolean;
|
|
291
309
|
}, nowMs?: number): void;
|
|
292
|
-
/** 0.5.0, run. web: markKScriptSourcePending(guardKey, source, nowMs) (same file :264).
|
|
310
|
+
/** 0.5.0, run. web: markKScriptSourcePending(guardKey, source, nowMs) (same file :264). `filling`: the source drew
|
|
311
|
+
* its first slice and its older bars are still loading (the registry's still filling chip, shown at once). */
|
|
293
312
|
markSourcePending(guardKey: string, source: {
|
|
294
313
|
sourceName: string;
|
|
295
314
|
sourceType: string;
|
|
296
315
|
landedBefore?: boolean;
|
|
316
|
+
filling?: boolean;
|
|
297
317
|
}, nowMs?: number): void;
|
|
298
318
|
/** 0.5.0, run. web: markKScriptSourceRecovered(guardKey, sourceName) (same file :355). */
|
|
299
319
|
markSourceRecovered(guardKey: string, sourceName: string): void;
|
|
@@ -455,8 +475,9 @@ export interface WrunHostTransport {
|
|
|
455
475
|
loadFeedStream(): Promise<WrunFeedStreamApi>;
|
|
456
476
|
/** 0.5.0, run. web: dataFetch(chartIndex, type, payload, from, toOrPeriod, metadata, sourceName, isPolling, options)
|
|
457
477
|
* (instances/titan-charts.ts:16337, answers Promise<any>); the live tick (:3707, :3784, :4152) and the executor
|
|
458
|
-
* (:3233, :7352, :11931, :12013) already pass `as never` for the payload and the metadata.
|
|
459
|
-
|
|
478
|
+
* (:3233, :7352, :11931, :12013) already pass `as never` for the payload and the metadata. The options are required
|
|
479
|
+
* and carry the call's download meter (`WrunSourceFetchOptions.meter`): every call counts what it downloads. */
|
|
480
|
+
fetchSource(chartIndex: number, type: string, payload: unknown, from: number, toOrPeriod: number, metadata: unknown, sourceName: string, isPolling: boolean, options: WrunSourceFetchOptions): Promise<unknown>;
|
|
460
481
|
/** 0.5.0, boot loader. web: import('@/services/v2.service') viewed as { default: { fetchData } } (executor :10491, in
|
|
461
482
|
* one Promise.all with loadDataFetching, both `.catch(() => undefined)`). */
|
|
462
483
|
loadV2Service(): Promise<WrunV2ServiceModule>;
|
|
@@ -527,6 +548,15 @@ export declare function setWrunChartHostEnv(env: WrunChartHostEnv): void;
|
|
|
527
548
|
export declare function wrunChartHostEnv(): WrunChartHostEnv;
|
|
528
549
|
/** Whether the realm's env is set (an entry that may run twice sets it once). */
|
|
529
550
|
export declare function hasWrunChartHostEnv(): boolean;
|
|
551
|
+
/** Whether the realm's host shows tables in Indicator windows (`WrunChartHostEnv.windows`): false for a host that
|
|
552
|
+
* never set the member, and before the realm's entry set the env. Read when a mount runs, never at module load. */
|
|
553
|
+
export declare function wrunHostShowsWindows(): boolean;
|
|
554
|
+
/** Whether the normal cell at `chartIndex` leaves an Indicator's tables to the window that shows them: the host shows
|
|
555
|
+
* windows (`windows`) and its `tablesShownInWindow` answers true for this chart and Indicator. False for a host
|
|
556
|
+
* without windows (the port is never called), an absent port, a port that throws, an unset env and an undefined
|
|
557
|
+
* `chartIndex` (a mount that names no chart): the cell mounts the table, never a table that mounts nowhere. Read
|
|
558
|
+
* when a mount runs, never at module load. */
|
|
559
|
+
export declare function wrunHostLeavesTablesToWindow(chartIndex: number | undefined, overlayId: string): boolean;
|
|
530
560
|
/** The error a host's `sharedHost()` throws before its load. */
|
|
531
561
|
export declare function wrunChartHostUnloadedError(): Error;
|
|
532
562
|
/** The shared host now, or its load: `undefined` once the env's `sharedHost()` answers, else the env's
|
package/dist/host-env.js
CHANGED
|
@@ -14,6 +14,27 @@ export function wrunChartHostEnv() {
|
|
|
14
14
|
export function hasWrunChartHostEnv() {
|
|
15
15
|
return globalThis[ENV_KEY] !== undefined;
|
|
16
16
|
}
|
|
17
|
+
/** Whether the realm's host shows tables in Indicator windows (`WrunChartHostEnv.windows`): false for a host that
|
|
18
|
+
* never set the member, and before the realm's entry set the env. Read when a mount runs, never at module load. */
|
|
19
|
+
export function wrunHostShowsWindows() {
|
|
20
|
+
return hasWrunChartHostEnv() && wrunChartHostEnv().windows === true;
|
|
21
|
+
}
|
|
22
|
+
/** Whether the normal cell at `chartIndex` leaves an Indicator's tables to the window that shows them: the host shows
|
|
23
|
+
* windows (`windows`) and its `tablesShownInWindow` answers true for this chart and Indicator. False for a host
|
|
24
|
+
* without windows (the port is never called), an absent port, a port that throws, an unset env and an undefined
|
|
25
|
+
* `chartIndex` (a mount that names no chart): the cell mounts the table, never a table that mounts nowhere. Read
|
|
26
|
+
* when a mount runs, never at module load. */
|
|
27
|
+
export function wrunHostLeavesTablesToWindow(chartIndex, overlayId) {
|
|
28
|
+
if (chartIndex === undefined || !wrunHostShowsWindows())
|
|
29
|
+
return false;
|
|
30
|
+
const env = wrunChartHostEnv();
|
|
31
|
+
try {
|
|
32
|
+
return env.tablesShownInWindow?.(chartIndex, overlayId) === true;
|
|
33
|
+
}
|
|
34
|
+
catch {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
17
38
|
/** The error a host's `sharedHost()` throws before its load. */
|
|
18
39
|
export function wrunChartHostUnloadedError() {
|
|
19
40
|
return new Error('wrun_chart_host_unloaded');
|