@orangecharts/wrun-chart-host 0.8.0 → 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 +2 -1
- package/dist/constants/feature-flags.constants.d.ts +4 -0
- package/dist/constants/feature-flags.constants.js +27 -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 +11 -6
- package/dist/constants/option-venues.constants.js +5 -2
- package/dist/host-env.d.ts +10 -4
- package/dist/host-ports.types.d.ts +39 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/interfaces/opra-realtime.interface.d.ts +13 -11
- package/dist/interfaces/opra-realtime.interface.js +10 -10
- package/dist/interfaces/wrun-runtime.interface.d.ts +34 -13
- package/dist/kscript-data/controls/live-trades-merge.util.d.ts +53 -10
- package/dist/kscript-data/controls/live-trades-merge.util.js +81 -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/utility/chart/crypto-index.leaf.d.ts +2 -2
- package/dist/utility/chart/crypto-index.leaf.js +2 -2
- 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 +30 -24
- 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.js +6 -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/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/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/row-lane-registry.js +3 -2
- 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 +11 -0
- package/dist/utility/wrun/sources/row-lanes/option_prints.js +63 -9
- package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +8 -0
- package/dist/utility/wrun/sources/row-lanes/option_strikes.js +12 -0
- package/dist/utility/wrun/sources/row-lanes/option_surface.d.ts +5 -2
- package/dist/utility/wrun/sources/row-lanes/option_surface.js +5 -2
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +11 -5
- package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +31 -10
- package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.d.ts +33 -1
- package/dist/utility/wrun/sources/wrun-row-lane-first-paint.util.js +95 -6
- package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +25 -5
- package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +55 -18
- package/dist/utility/wrun/sources/wrun-row-lanes.util.js +146 -40
- 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-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 +15 -4
- package/dist/utility/wrun/wrun-color-settings.util.js +31 -12
- 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 +6 -1
- package/dist/utility/wrun/wrun-draft-overlay.util.js +23 -3
- 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 +7 -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-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.js +91 -38
- 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 +166 -48
- package/dist/utility/wrun/wrun-market-size-defaults.leaf.js +216 -33
- package/dist/utility/wrun/wrun-market-size-defaults.util.d.ts +51 -7
- package/dist/utility/wrun/wrun-market-size-defaults.util.js +314 -56
- package/dist/utility/wrun/wrun-option-prints.util.d.ts +41 -2
- package/dist/utility/wrun/wrun-option-prints.util.js +80 -13
- package/dist/utility/wrun/wrun-option-strike-flow-lane.util.d.ts +3 -0
- package/dist/utility/wrun/wrun-option-strike-flow-lane.util.js +3 -0
- package/dist/utility/wrun/wrun-option-strike-flow.util.d.ts +23 -0
- package/dist/utility/wrun/wrun-option-strike-flow.util.js +55 -0
- package/dist/utility/wrun/wrun-option-views.util.d.ts +51 -7
- package/dist/utility/wrun/wrun-option-views.util.js +151 -28
- 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 +7 -0
- package/dist/utility/wrun/wrun-overlay-recovery.util.js +25 -1
- 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 +416 -171
- package/dist/utility/wrun/wrun-pack-widths.leaf.d.ts +4 -4
- package/dist/utility/wrun/wrun-pack-widths.leaf.js +4 -4
- package/dist/utility/wrun/wrun-pack.util.d.ts +7 -3
- package/dist/utility/wrun/wrun-pack.util.js +20 -9
- package/dist/utility/wrun/wrun-panel-style.util.d.ts +27 -15
- package/dist/utility/wrun/wrun-panel-style.util.js +42 -20
- 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-prefix-lanes.util.js +2 -2
- package/dist/utility/wrun/wrun-refusal.util.js +10 -1
- package/dist/utility/wrun/wrun-script-inputs.util.d.ts +7 -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 +126 -50
- package/dist/utility/wrun/wrun-tape-source.util.js +193 -68
- 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
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* `wrunCellTupleWidths`). The row-lane registry registers it at its own evaluation and in its spec hook
|
|
4
4
|
* (sources/row-lane-registry.ts); the packer reads it at pack time and re-exports the register function.
|
|
5
5
|
*
|
|
6
|
-
* A LEAF on purpose (no imports): the registry rides the code parsed before the first candle (the
|
|
7
|
-
* row lanes), the packer does not (tests/utility/wrun/wrun-door.closure.spec.ts), so the
|
|
8
|
-
* and the registry never loads the packer. One table: a run that loads the packer later
|
|
9
|
-
* registry registered at boot.
|
|
6
|
+
* A LEAF on purpose (no imports): the registry rides the code parsed before the first candle (the requirement leaf
|
|
7
|
+
* reads row lanes for the chart store), the packer does not (tests/utility/wrun/wrun-door.closure.spec.ts), so the
|
|
8
|
+
* registration seam lives here and the registry never loads the packer. One table: a run that loads the packer later
|
|
9
|
+
* reads the widths the registry registered at boot.
|
|
10
10
|
*/
|
|
11
11
|
/** Replace the registered row-lane tuple widths (web: src/utility/wrun/sources/row-lane-registry.ts, at load and in
|
|
12
12
|
* its spec hook). */
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* `wrunCellTupleWidths`). The row-lane registry registers it at its own evaluation and in its spec hook
|
|
4
4
|
* (sources/row-lane-registry.ts); the packer reads it at pack time and re-exports the register function.
|
|
5
5
|
*
|
|
6
|
-
* A LEAF on purpose (no imports): the registry rides the code parsed before the first candle (the
|
|
7
|
-
* row lanes), the packer does not (tests/utility/wrun/wrun-door.closure.spec.ts), so the
|
|
8
|
-
* and the registry never loads the packer. One table: a run that loads the packer later
|
|
9
|
-
* registry registered at boot.
|
|
6
|
+
* A LEAF on purpose (no imports): the registry rides the code parsed before the first candle (the requirement leaf
|
|
7
|
+
* reads row lanes for the chart store), the packer does not (tests/utility/wrun/wrun-door.closure.spec.ts), so the
|
|
8
|
+
* registration seam lives here and the registry never loads the packer. One table: a run that loads the packer later
|
|
9
|
+
* reads the widths the registry registered at boot.
|
|
10
10
|
*/
|
|
11
11
|
/** The registered tuple widths by source class (web: each row-lane descriptor's `width`); empty until a registry
|
|
12
12
|
* registers, so a host without row lanes packs with the shared host's table alone. */
|
|
@@ -11,9 +11,12 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Cell enforcement runs HERE, during packing and before any worker is
|
|
13
13
|
* involved: a block on an input not declared `cellType: "array"` and a block
|
|
14
|
-
* over the input's
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* over the input's capacity in the run's module (the sheet's `capacity`, else its
|
|
15
|
+
* `max_cells`, counted in TUPLES, at the input's own width: its class's, or the width
|
|
16
|
+
* its words make, `wrunOptionInputTupleWidth`; a print class's union whole only in a
|
|
17
|
+
* module whose capacity holds it, `wrunSheetCellBlockTuples`) both refuse the whole
|
|
18
|
+
* evaluation by name, never truncate, and so does a capacity no build writes
|
|
19
|
+
* (`wrun_cell_capacity_invalid`). One exception (frozen authoring
|
|
17
20
|
* contract C1.2b): an input declaring `missing: "empty"` reads an oversize
|
|
18
21
|
* block as a PRESENT EMPTY block (0 cells) on that bar alone and the run
|
|
19
22
|
* goes on, the way the same input reads a lane that answered nothing; the
|
|
@@ -21,6 +24,7 @@
|
|
|
21
24
|
*/
|
|
22
25
|
import type { WrunAbiVersion, WrunIndicatorMetadata, WrunOutputRow, WrunPackedRunRequest, WrunWorkerResponse } from '../../interfaces/wrun-runtime.interface.js';
|
|
23
26
|
export { registerWrunRowLaneTupleWidths } from './wrun-pack-widths.leaf.js';
|
|
27
|
+
export { WRUN_CELL_CAPACITY_INVALID_CODE, wrunCellBlockTuples, wrunCellCapacityIssue, wrunCellReadCapacity, wrunModuleCellCapacity, wrunSheetCellBlockTuples, } from './wrun-cell-capacity.leaf.js';
|
|
24
28
|
/** One runtime input row: `values` is the positional scalar block (celled
|
|
25
29
|
* slots carry NaN placeholders); `cellBlocks` maps a celled input index to
|
|
26
30
|
* that bar's flat f64 cell array. An index with no entry is a missing block
|
|
@@ -11,9 +11,12 @@
|
|
|
11
11
|
*
|
|
12
12
|
* Cell enforcement runs HERE, during packing and before any worker is
|
|
13
13
|
* involved: a block on an input not declared `cellType: "array"` and a block
|
|
14
|
-
* over the input's
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* over the input's capacity in the run's module (the sheet's `capacity`, else its
|
|
15
|
+
* `max_cells`, counted in TUPLES, at the input's own width: its class's, or the width
|
|
16
|
+
* its words make, `wrunOptionInputTupleWidth`; a print class's union whole only in a
|
|
17
|
+
* module whose capacity holds it, `wrunSheetCellBlockTuples`) both refuse the whole
|
|
18
|
+
* evaluation by name, never truncate, and so does a capacity no build writes
|
|
19
|
+
* (`wrun_cell_capacity_invalid`). One exception (frozen authoring
|
|
17
20
|
* contract C1.2b): an input declaring `missing: "empty"` reads an oversize
|
|
18
21
|
* block as a PRESENT EMPTY block (0 cells) on that bar alone and the run
|
|
19
22
|
* goes on, the way the same input reads a lane that answered nothing; the
|
|
@@ -27,7 +30,11 @@ import { wrunPlainText } from './wrun-text-params.util.js';
|
|
|
27
30
|
// The row-lane widths table and its register function live in the widths leaf: the row-lane registry (boot path)
|
|
28
31
|
// registers through it at its own evaluation and never loads this module; the packer reads the same table.
|
|
29
32
|
import { wrunRegisteredRowLaneTupleWidths } from './wrun-pack-widths.leaf.js';
|
|
33
|
+
// The capacity rules live in their leaf: the row-lane plan hands each input's projection the same answer the packer
|
|
34
|
+
// bounds its block by, without loading this module.
|
|
35
|
+
import { wrunCellBoundWords, wrunSheetCellBlockTuples } from './wrun-cell-capacity.leaf.js';
|
|
30
36
|
export { registerWrunRowLaneTupleWidths } from './wrun-pack-widths.leaf.js';
|
|
37
|
+
export { WRUN_CELL_CAPACITY_INVALID_CODE, wrunCellBlockTuples, wrunCellCapacityIssue, wrunCellReadCapacity, wrunModuleCellCapacity, wrunSheetCellBlockTuples, } from './wrun-cell-capacity.leaf.js';
|
|
31
38
|
/** Cell tuple widths per celled source class (f64 cells per source tuple), the shared host's table
|
|
32
39
|
* (`WRUN_HOST_CELL_TUPLE_WIDTHS`): `volume_profile` = [low, high, buy, sell]; `book` = [price,
|
|
33
40
|
* abs(size), side]; `tape` = [offset_ms, price, size, side]; `trade_volume_by_size` = [bucket,
|
|
@@ -85,7 +92,9 @@ export function packWrunRows(metadata, rows, initArgs, textParams) {
|
|
|
85
92
|
const cellColumnByIndex = new Map();
|
|
86
93
|
celledInputs.forEach((input, column) => cellColumnByIndex.set(input.index, column));
|
|
87
94
|
const tupleWidthByIndex = new Map();
|
|
88
|
-
|
|
95
|
+
// The tuples a block may hold in this module: the sheet's `capacity ?? max_cells`, a print class's union whole only
|
|
96
|
+
// in a module whose capacity holds it (`wrunSheetCellBlockTuples`, which refuses a capacity no build writes).
|
|
97
|
+
const capacityByIndex = new Map();
|
|
89
98
|
// The inputs that read an oversize block as an empty one (C1.2b `missing: "empty"`).
|
|
90
99
|
const emptyWhenOversize = new Set();
|
|
91
100
|
const tupleWidths = celledInputs.length > 0 ? wrunCellTupleWidths() : {};
|
|
@@ -98,7 +107,7 @@ export function packWrunRows(metadata, rows, initArgs, textParams) {
|
|
|
98
107
|
tupleWidthByIndex.set(input.index, source === undefined
|
|
99
108
|
? classWidth
|
|
100
109
|
: wrunOptionInputTupleWidth(source, classWidth));
|
|
101
|
-
|
|
110
|
+
capacityByIndex.set(input.index, wrunSheetCellBlockTuples(metadata, input));
|
|
102
111
|
if (source?.missing === 'empty')
|
|
103
112
|
emptyWhenOversize.add(input.index);
|
|
104
113
|
}
|
|
@@ -126,20 +135,22 @@ export function packWrunRows(metadata, rows, initArgs, textParams) {
|
|
|
126
135
|
`which is not declared cellType "array" in metadata`);
|
|
127
136
|
}
|
|
128
137
|
const tupleWidth = tupleWidthByIndex.get(inputIndex) ?? 1;
|
|
129
|
-
const
|
|
138
|
+
const capacity = capacityByIndex.get(inputIndex) ?? Number.POSITIVE_INFINITY;
|
|
130
139
|
if (block.length % tupleWidth !== 0) {
|
|
131
140
|
throw new Error(`WRUN ${metadata.id}: cell block for input ${inputIndex} at ts ${row.ts} has ` +
|
|
132
141
|
`${block.length} f64 cells, which does not divide into ${tupleWidth}-cell tuples`);
|
|
133
142
|
}
|
|
134
143
|
const tuples = block.length / tupleWidth;
|
|
135
|
-
if (tuples >
|
|
144
|
+
if (tuples > capacity && emptyWhenOversize.has(inputIndex)) {
|
|
136
145
|
// C1.2b: this bar reads a present empty block; every other bar keeps its own.
|
|
137
146
|
cellLens[rowIdx * celledInputs.length + column] = 0;
|
|
138
147
|
continue;
|
|
139
148
|
}
|
|
140
|
-
if (tuples >
|
|
149
|
+
if (tuples > capacity) {
|
|
150
|
+
const maxCells = metadata.inputs.find((input) => input.index === inputIndex)?.max_cells;
|
|
141
151
|
throw new Error(`WRUN ${metadata.id}: ${WRUN_CELL_BLOCK_TOO_LARGE_CODE}: input ${inputIndex} bar at ts ${row.ts} has ` +
|
|
142
|
-
`${tuples} cells;
|
|
152
|
+
`${tuples} cells; ${wrunCellBoundWords(maxCells, capacity)}, so the evaluation is refused ` +
|
|
153
|
+
`(a block is never truncated)`);
|
|
143
154
|
}
|
|
144
155
|
cellLens[rowIdx * celledInputs.length + column] = block.length;
|
|
145
156
|
totalCells += block.length;
|
|
@@ -8,9 +8,11 @@
|
|
|
8
8
|
* settings it built from the structural words, a `series` array patch merging
|
|
9
9
|
* per index. A frame field overrides the declared word of the same name for
|
|
10
10
|
* that run; `markers` replaces the declared list. Absent words add no key, so
|
|
11
|
-
* today's drawing stays the default (conventions 10), except
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* today's drawing stays the default (conventions 10), except the plain look's
|
|
12
|
+
* defaults (the `hairlines` chrome of a line, bars, histogram or scatter
|
|
13
|
+
* pane; a heatmap's palette) and a wrun table's: on the wrun lane an absent
|
|
14
|
+
* table colour, border or grid word takes the chart's look (wrunTableStyle),
|
|
15
|
+
* the push lane's table keeps the engine's.
|
|
14
16
|
*
|
|
15
17
|
* Pure and worker safe (om-panel.util rides the frame worker): it imports the
|
|
16
18
|
* style foundation only. Colour words resolve here against `ctx.theme`
|
|
@@ -31,8 +33,9 @@ import type { WrunPanelFrameChrome } from './wrun-frames.js';
|
|
|
31
33
|
export type WrunStyledPanel = Omit<ParsedPanel['panel'], 'id'>;
|
|
32
34
|
export type WrunStyledPanelRows = ParsedPanel['rows'];
|
|
33
35
|
export type WrunStyledPanelSeries = NonNullable<WrunStyledPanel['series']>[number];
|
|
34
|
-
/** The pane chrome words (SC02 SC23)
|
|
35
|
-
|
|
36
|
+
/** The pane chrome words (SC02 SC23): the sheet type's own, so the two
|
|
37
|
+
* cannot drift. */
|
|
38
|
+
export type WrunPanelChromeWord = NonNullable<WrunPanelStyle['chrome']>;
|
|
36
39
|
/** What a printed number stands for (titan `IMetaData.formatDomainValue`):
|
|
37
40
|
* 'x' = numeric x ticks, the hover title x, marker show_value, the stats row
|
|
38
41
|
* x; 'axis' = value-axis ticks; 'value' = every other value (hover rows, bar
|
|
@@ -71,9 +74,14 @@ export interface WrunHeatmapIndices {
|
|
|
71
74
|
export declare const WRUN_PANEL_STYLE_KEYS: ReadonlyArray<keyof WrunPanelStyle>;
|
|
72
75
|
/** Every `panels[i].series[j]` style word. */
|
|
73
76
|
export declare const WRUN_PANEL_SERIES_STYLE_KEYS: ReadonlyArray<keyof WrunPanelSeriesStyle>;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
77
|
+
/** The heatmap palette under scale "palette" when the panel declares none
|
|
78
|
+
* (SC06): the mono ramp from the chart's background to its text colour, so
|
|
79
|
+
* a dark chart ramps black to white and a light chart white to black. Theme
|
|
80
|
+
* tokens, resolved against `ctx.theme`. */
|
|
76
81
|
export declare const WRUN_PANEL_HEATMAP_PALETTE: readonly string[];
|
|
82
|
+
/** The same default without a theme to resolve the ramp against (the om
|
|
83
|
+
* push lane): the three stops a pushed heatmap has always drawn. */
|
|
84
|
+
export declare const WRUN_PANEL_HEATMAP_UNTHEMED_PALETTE: readonly string[];
|
|
77
85
|
/** The default `stroke_fade.edge_opacity` (SC03; the engine's own default). */
|
|
78
86
|
export declare const WRUN_PANEL_STROKE_FADE_EDGE_OPACITY = 0.35;
|
|
79
87
|
/** The badge chip's defaults (C2): the fill when `color` is absent, and the
|
|
@@ -92,9 +100,11 @@ export declare const WRUN_PANEL_TABLE_TOP_OFFSET_PX = 24;
|
|
|
92
100
|
* rgba() but not 8-digit hex. Without a theme (the push lane) a token and a
|
|
93
101
|
* 6-digit hex pass through unchanged. */
|
|
94
102
|
export declare function wrunPaneColor(word: string, theme?: WrunColorTheme): string;
|
|
95
|
-
/** A panel's effective chrome (SC02): the declared word, else "
|
|
96
|
-
*
|
|
97
|
-
* "box" (
|
|
103
|
+
/** A panel's effective chrome (SC02): the declared word, else "hairlines"
|
|
104
|
+
* on a line, bars, histogram or scatter pane of every x kind, stacked or
|
|
105
|
+
* not (the plain look), else "box" (pie, heatmap, table, tiles). On a line
|
|
106
|
+
* every word but "box" is the rich curve: the engine routes any other
|
|
107
|
+
* chromeStyle there, and "hairlines" draws its rows-only grid. */
|
|
98
108
|
export declare function wrunPanelChrome(panel: WrunStyledPanel): WrunPanelChromeWord;
|
|
99
109
|
/** The ink a badge chip prints in when `text_color` is absent (C2): the
|
|
100
110
|
* WCAG relative luminance of the resolved fill, the dark ink above the cut,
|
|
@@ -138,11 +148,13 @@ export declare function wrunScatterStyle(panel: WrunStyledPanel, chrome: WrunPan
|
|
|
138
148
|
* (frame first), slice gaps and the slice border. */
|
|
139
149
|
export declare function wrunPieStyle(panel: WrunStyledPanel, chrome: WrunPanelFrameChrome | undefined, rows: WrunStyledPanelRows, ctx: WrunPanelTranslateContext): WrunPanelSettingsPatch;
|
|
140
150
|
/** The heatmap words (SC06 SC18): under scale "palette" the stops (the
|
|
141
|
-
* declared ones, else today's three
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
151
|
+
* declared ones, else the mono ramp, or today's three on the push lane,
|
|
152
|
+
* which has no theme to resolve the ramp against) and the bounds (frame
|
|
153
|
+
* first); under "signed" none of them, so the engine's diverging scale
|
|
154
|
+
* draws through the common tone pair. The highlight resolves its keys to
|
|
155
|
+
* the engine's row and column indices (a key absent from the rows is
|
|
156
|
+
* dropped), the axis nouns pass through, and a frame summary is fitted to
|
|
157
|
+
* the column count. */
|
|
146
158
|
export declare function wrunHeatmapStyle(panel: WrunStyledPanel, chrome: WrunPanelFrameChrome | undefined, indices: WrunHeatmapIndices, ctx: WrunPanelTranslateContext): WrunPanelSettingsPatch;
|
|
147
159
|
/** The tiles words: none of their own. `columns`, `accent` and a tile's
|
|
148
160
|
* colour ride the structural translation (the caller's, SC26 SC15), the
|
|
@@ -8,9 +8,11 @@
|
|
|
8
8
|
* settings it built from the structural words, a `series` array patch merging
|
|
9
9
|
* per index. A frame field overrides the declared word of the same name for
|
|
10
10
|
* that run; `markers` replaces the declared list. Absent words add no key, so
|
|
11
|
-
* today's drawing stays the default (conventions 10), except
|
|
12
|
-
*
|
|
13
|
-
*
|
|
11
|
+
* today's drawing stays the default (conventions 10), except the plain look's
|
|
12
|
+
* defaults (the `hairlines` chrome of a line, bars, histogram or scatter
|
|
13
|
+
* pane; a heatmap's palette) and a wrun table's: on the wrun lane an absent
|
|
14
|
+
* table colour, border or grid word takes the chart's look (wrunTableStyle),
|
|
15
|
+
* the push lane's table keeps the engine's.
|
|
14
16
|
*
|
|
15
17
|
* Pure and worker safe (om-panel.util rides the frame worker): it imports the
|
|
16
18
|
* style foundation only. Colour words resolve here against `ctx.theme`
|
|
@@ -131,9 +133,14 @@ const WRUN_PANEL_SERIES_STYLE_WORDS = {
|
|
|
131
133
|
export const WRUN_PANEL_STYLE_KEYS = Object.keys(WRUN_PANEL_STYLE_WORDS);
|
|
132
134
|
/** Every `panels[i].series[j]` style word. */
|
|
133
135
|
export const WRUN_PANEL_SERIES_STYLE_KEYS = Object.keys(WRUN_PANEL_SERIES_STYLE_WORDS);
|
|
134
|
-
/**
|
|
135
|
-
*
|
|
136
|
-
|
|
136
|
+
/** The heatmap palette under scale "palette" when the panel declares none
|
|
137
|
+
* (SC06): the mono ramp from the chart's background to its text colour, so
|
|
138
|
+
* a dark chart ramps black to white and a light chart white to black. Theme
|
|
139
|
+
* tokens, resolved against `ctx.theme`. */
|
|
140
|
+
export const WRUN_PANEL_HEATMAP_PALETTE = ['theme.bg', 'theme.text'];
|
|
141
|
+
/** The same default without a theme to resolve the ramp against (the om
|
|
142
|
+
* push lane): the three stops a pushed heatmap has always drawn. */
|
|
143
|
+
export const WRUN_PANEL_HEATMAP_UNTHEMED_PALETTE = ['#e06c75', '#7a7f93', '#98c379'];
|
|
137
144
|
/** The default `stroke_fade.edge_opacity` (SC03; the engine's own default). */
|
|
138
145
|
export const WRUN_PANEL_STROKE_FADE_EDGE_OPACITY = 0.35;
|
|
139
146
|
/** The badge chip's defaults (C2): the fill when `color` is absent, and the
|
|
@@ -166,14 +173,23 @@ const WRUN_ENGINE_FORMATTING = undefined;
|
|
|
166
173
|
export function wrunPaneColor(word, theme) {
|
|
167
174
|
return wrunHex8ToRgba(theme === undefined ? word : resolveWrunColorWord(word, theme));
|
|
168
175
|
}
|
|
169
|
-
/**
|
|
170
|
-
*
|
|
171
|
-
|
|
176
|
+
/** The kinds whose chrome defaults to "hairlines" (the plain look): the
|
|
177
|
+
* panes with a value axis. */
|
|
178
|
+
const WRUN_PANEL_HAIRLINE_KINDS = new Set([
|
|
179
|
+
'line',
|
|
180
|
+
'bars',
|
|
181
|
+
'histogram',
|
|
182
|
+
'scatter',
|
|
183
|
+
]);
|
|
184
|
+
/** A panel's effective chrome (SC02): the declared word, else "hairlines"
|
|
185
|
+
* on a line, bars, histogram or scatter pane of every x kind, stacked or
|
|
186
|
+
* not (the plain look), else "box" (pie, heatmap, table, tiles). On a line
|
|
187
|
+
* every word but "box" is the rich curve: the engine routes any other
|
|
188
|
+
* chromeStyle there, and "hairlines" draws its rows-only grid. */
|
|
172
189
|
export function wrunPanelChrome(panel) {
|
|
173
190
|
if (panel.chrome !== undefined)
|
|
174
191
|
return panel.chrome;
|
|
175
|
-
|
|
176
|
-
return panel.kind === 'line' && numeric && panel.stacked !== true ? 'grid' : 'box';
|
|
192
|
+
return WRUN_PANEL_HAIRLINE_KINDS.has(panel.kind) ? 'hairlines' : 'box';
|
|
177
193
|
}
|
|
178
194
|
// Helpers
|
|
179
195
|
/** Writes `key` only when the word is declared. */
|
|
@@ -225,10 +241,13 @@ function panelBadge(panel, chrome, ctx) {
|
|
|
225
241
|
const textColor = badge.text_color !== undefined ? wrunPaneColor(badge.text_color, ctx.theme) : wrunPanelBadgeInk(color);
|
|
226
242
|
return { text: badge.text, color, textColor };
|
|
227
243
|
}
|
|
228
|
-
/** The
|
|
229
|
-
* default
|
|
244
|
+
/** The chrome as the engine key (SC23): the effective word on the hairline
|
|
245
|
+
* kinds, so their plain default reaches the engine (whose own default is
|
|
246
|
+
* "box"), and only a declared word on a pie. */
|
|
230
247
|
function chromeStylePatch(panel) {
|
|
231
|
-
return panel.chrome !== undefined
|
|
248
|
+
return panel.chrome !== undefined || WRUN_PANEL_HAIRLINE_KINDS.has(panel.kind)
|
|
249
|
+
? { chromeStyle: wrunPanelChrome(panel) }
|
|
250
|
+
: {};
|
|
232
251
|
}
|
|
233
252
|
/** A time key in ms (keys under 1e11 are seconds; the SC37 rule). */
|
|
234
253
|
function timeKeyMs(key) {
|
|
@@ -572,15 +591,18 @@ export function wrunPieStyle(panel, chrome, rows, ctx) {
|
|
|
572
591
|
return patch;
|
|
573
592
|
}
|
|
574
593
|
/** The heatmap words (SC06 SC18): under scale "palette" the stops (the
|
|
575
|
-
* declared ones, else today's three
|
|
576
|
-
*
|
|
577
|
-
*
|
|
578
|
-
*
|
|
579
|
-
*
|
|
594
|
+
* declared ones, else the mono ramp, or today's three on the push lane,
|
|
595
|
+
* which has no theme to resolve the ramp against) and the bounds (frame
|
|
596
|
+
* first); under "signed" none of them, so the engine's diverging scale
|
|
597
|
+
* draws through the common tone pair. The highlight resolves its keys to
|
|
598
|
+
* the engine's row and column indices (a key absent from the rows is
|
|
599
|
+
* dropped), the axis nouns pass through, and a frame summary is fitted to
|
|
600
|
+
* the column count. */
|
|
580
601
|
export function wrunHeatmapStyle(panel, chrome, indices, ctx) {
|
|
581
602
|
const patch = {};
|
|
582
603
|
if (panel.scale !== 'signed') {
|
|
583
|
-
|
|
604
|
+
const stops = panel.palette ?? (ctx.theme !== undefined ? WRUN_PANEL_HEATMAP_PALETTE : WRUN_PANEL_HEATMAP_UNTHEMED_PALETTE);
|
|
605
|
+
patch.palette = stops.map((word) => wrunPaneColor(word, ctx.theme));
|
|
584
606
|
put(patch, 'min', frameFirst(panel, chrome, 'min'));
|
|
585
607
|
put(patch, 'max', frameFirst(panel, chrome, 'max'));
|
|
586
608
|
}
|
|
@@ -79,13 +79,14 @@ export declare function wrunHostedTextValue(param: Pick<WrunMetadataParam, 'text
|
|
|
79
79
|
* reads) and the hidden param the kit generates for it (`market.<word>()` declares `market_<word>`, `chart.<word>()`
|
|
80
80
|
* `chart_<word>`; the extractor refuses any other param under those names), in the kit's order: the market's tick
|
|
81
81
|
* size and decimals, the chart's interval seconds and five colours (the candle and grid colours since WRUN-STYLE
|
|
82
|
-
* TH-candle-colors), the market's five facts (WRUN-GAPS-1005, WRUN-SESSION), the issuer's three earnings facts
|
|
83
|
-
* option multiplier of the chart's options chain
|
|
84
|
-
* record's `hostFill` (wrunHostedHostFill), the declaration rebuild
|
|
85
|
-
* socket worker's read of the main thread's context
|
|
86
|
-
* another carries; wrun-param-values.util.spec holds the
|
|
82
|
+
* TH-candle-colors), the market's five facts (WRUN-GAPS-1005, WRUN-SESSION), the issuer's three earnings facts, the
|
|
83
|
+
* option multiplier of the chart's options chain and the dollar multiplier of its own trades (kit 0.95.0). Every hosted
|
|
84
|
+
* path reads it: the settings record's `hostFill` (wrunHostedHostFill), the declaration rebuild
|
|
85
|
+
* (WRUN_HOST_FILL_BY_GENERATED_NAME) and the kScript socket worker's read of the main thread's context
|
|
86
|
+
* (WRUN_HOST_FILL_CONTEXT_KEYS), so no hosted path drops a word another carries; wrun-param-values.util.spec holds the
|
|
87
|
+
* table to every word the kit's browser lane fills.
|
|
87
88
|
*/
|
|
88
|
-
export declare const WRUN_HOST_FILL_WORDS: readonly [readonly ["tick_size", "tickSize", "market_tick_size"], readonly ["price_precision", "pricePrecision", "market_price_precision"], readonly ["interval_sec", "intervalSec", "chart_interval_sec"], readonly ["bg_color", "bgColor", "chart_bg_color"], readonly ["fg_color", "fgColor", "chart_fg_color"], readonly ["up_color", "upColor", "chart_up_color"], readonly ["down_color", "downColor", "chart_down_color"], readonly ["grid_color", "gridColor", "chart_grid_color"], readonly ["kind", "kind", "market_kind"], readonly ["point_value", "pointValue", "market_point_value"], readonly ["zone", "zone", "market_zone"], readonly ["quote_is_usd", "quoteIsUsd", "market_quote_is_usd"], readonly ["session_open", "sessionOpen", "market_session_open"], readonly ["earnings_next_ms", "earningsNextMs", "market_earnings_next_ms"], readonly ["earnings_prev_ms", "earningsPrevMs", "market_earnings_prev_ms"], readonly ["earnings_session", "earningsSession", "market_earnings_session"], readonly ["option_multiplier", "optionMultiplier", "market_option_multiplier"]];
|
|
89
|
+
export declare const WRUN_HOST_FILL_WORDS: readonly [readonly ["tick_size", "tickSize", "market_tick_size"], readonly ["price_precision", "pricePrecision", "market_price_precision"], readonly ["interval_sec", "intervalSec", "chart_interval_sec"], readonly ["bg_color", "bgColor", "chart_bg_color"], readonly ["fg_color", "fgColor", "chart_fg_color"], readonly ["up_color", "upColor", "chart_up_color"], readonly ["down_color", "downColor", "chart_down_color"], readonly ["grid_color", "gridColor", "chart_grid_color"], readonly ["kind", "kind", "market_kind"], readonly ["point_value", "pointValue", "market_point_value"], readonly ["zone", "zone", "market_zone"], readonly ["quote_is_usd", "quoteIsUsd", "market_quote_is_usd"], readonly ["session_open", "sessionOpen", "market_session_open"], readonly ["earnings_next_ms", "earningsNextMs", "market_earnings_next_ms"], readonly ["earnings_prev_ms", "earningsPrevMs", "market_earnings_prev_ms"], readonly ["earnings_session", "earningsSession", "market_earnings_session"], readonly ["option_multiplier", "optionMultiplier", "market_option_multiplier"], readonly ["dollar_multiplier", "dollarMultiplier", "market_dollar_multiplier"]];
|
|
89
90
|
/** The host-filled params by the names the kit generates for them (WRUN_HOST_FILL_WORDS). A declaration row carries
|
|
90
91
|
* no `host_fill` word, so the rebuild recovers it here: without it the host context could not fill the param and a
|
|
91
92
|
* hosted lane would evaluate the declared 0 (unavailable). */
|
|
@@ -102,11 +102,12 @@ function wrunHostedSymbolValue(param, settings) {
|
|
|
102
102
|
* reads) and the hidden param the kit generates for it (`market.<word>()` declares `market_<word>`, `chart.<word>()`
|
|
103
103
|
* `chart_<word>`; the extractor refuses any other param under those names), in the kit's order: the market's tick
|
|
104
104
|
* size and decimals, the chart's interval seconds and five colours (the candle and grid colours since WRUN-STYLE
|
|
105
|
-
* TH-candle-colors), the market's five facts (WRUN-GAPS-1005, WRUN-SESSION), the issuer's three earnings facts
|
|
106
|
-
* option multiplier of the chart's options chain
|
|
107
|
-
* record's `hostFill` (wrunHostedHostFill), the declaration rebuild
|
|
108
|
-
* socket worker's read of the main thread's context
|
|
109
|
-
* another carries; wrun-param-values.util.spec holds the
|
|
105
|
+
* TH-candle-colors), the market's five facts (WRUN-GAPS-1005, WRUN-SESSION), the issuer's three earnings facts, the
|
|
106
|
+
* option multiplier of the chart's options chain and the dollar multiplier of its own trades (kit 0.95.0). Every hosted
|
|
107
|
+
* path reads it: the settings record's `hostFill` (wrunHostedHostFill), the declaration rebuild
|
|
108
|
+
* (WRUN_HOST_FILL_BY_GENERATED_NAME) and the kScript socket worker's read of the main thread's context
|
|
109
|
+
* (WRUN_HOST_FILL_CONTEXT_KEYS), so no hosted path drops a word another carries; wrun-param-values.util.spec holds the
|
|
110
|
+
* table to every word the kit's browser lane fills.
|
|
110
111
|
*/
|
|
111
112
|
export const WRUN_HOST_FILL_WORDS = [
|
|
112
113
|
['tick_size', 'tickSize', 'market_tick_size'],
|
|
@@ -128,6 +129,8 @@ export const WRUN_HOST_FILL_WORDS = [
|
|
|
128
129
|
['earnings_session', 'earningsSession', 'market_earnings_session'],
|
|
129
130
|
// The option multiplier of the chart's options chain (kit 0.87.0, wrun-chart-market-facts.util).
|
|
130
131
|
['option_multiplier', 'optionMultiplier', 'market_option_multiplier'],
|
|
132
|
+
// The dollar multiplier of the market's own trades (kit 0.95.0, wrun-chart-market-facts.util).
|
|
133
|
+
['dollar_multiplier', 'dollarMultiplier', 'market_dollar_multiplier'],
|
|
131
134
|
];
|
|
132
135
|
/** The host-filled params by the names the kit generates for them (WRUN_HOST_FILL_WORDS). A declaration row carries
|
|
133
136
|
* no `host_fill` word, so the rebuild recovers it here: without it the host context could not fill the param and a
|
|
@@ -9,8 +9,9 @@ import type { WrunIndicatorMetadata, WrunMetadataParam } from '../../interfaces/
|
|
|
9
9
|
* market's tick size and price precision, the chart's bar interval in
|
|
10
10
|
* seconds, its background / text / candle up / candle down / grid colour as
|
|
11
11
|
* the kit's packed signed i32 (wrun-chart-context.util), the market's
|
|
12
|
-
* five facts as their codes
|
|
13
|
-
* (wrun-chart-market-facts.util);
|
|
12
|
+
* five facts as their codes, the option multiplier of its options chain and
|
|
13
|
+
* the dollar multiplier of its own trades (wrun-chart-market-facts.util);
|
|
14
|
+
* absent = the declared default (0, unknown). */
|
|
14
15
|
export interface WrunHostFillContext {
|
|
15
16
|
tickSize?: number;
|
|
16
17
|
pricePrecision?: number;
|
|
@@ -48,6 +49,13 @@ export interface WrunHostFillContext {
|
|
|
48
49
|
* CME, 1 on a crypto chart (wrunChartOptionMultiplier); 0 where the chart
|
|
49
50
|
* has no options family, which a package reads as unknown (no premium). */
|
|
50
51
|
optionMultiplier?: number;
|
|
52
|
+
/** `market.dollar_multiplier()` (kit 0.95.0): the US dollars one size unit of the
|
|
53
|
+
* market's own trades at one price unit is worth, the unit the dollar tape
|
|
54
|
+
* prices its live prints with and the batched captions read
|
|
55
|
+
* (wrunMarketDollarUnit: a CME contract's registry point value, NQ 20; 1 on
|
|
56
|
+
* a market quoted in dollars); 0 where it is not proven (a full run never
|
|
57
|
+
* computes a sheet declaring it over 0: it refuses first). */
|
|
58
|
+
dollarMultiplier?: number;
|
|
51
59
|
}
|
|
52
60
|
export declare function nonEmptyString(value: unknown): string | undefined;
|
|
53
61
|
export declare function finiteNumber(value: unknown): number | undefined;
|
|
@@ -137,6 +137,8 @@ function paramRunValue(param, flat, host) {
|
|
|
137
137
|
return finiteOr(finiteNumber(host?.earningsSession), fallback);
|
|
138
138
|
if (param.host_fill === 'option_multiplier')
|
|
139
139
|
return finiteOr(finiteNumber(host?.optionMultiplier), fallback);
|
|
140
|
+
if (param.host_fill === 'dollar_multiplier')
|
|
141
|
+
return finiteOr(finiteNumber(host?.dollarMultiplier), fallback);
|
|
140
142
|
const raw = flat?.[param.name];
|
|
141
143
|
switch (param.type) {
|
|
142
144
|
case 'symbol':
|
|
@@ -38,7 +38,7 @@ import { wrunInputReadsChartFeed } from './wrun-bar-count.util.js';
|
|
|
38
38
|
import { wrunSourceLane } from './wrun-source-rows.util.js';
|
|
39
39
|
import { wrunPollLaneByKey, wrunPollLanesOfClass } from './sources/registry.js';
|
|
40
40
|
import { isWrunPollLaneId } from './sources/wrun-poll-lane.types.js';
|
|
41
|
-
import { parseWrunTapeHistory, wrunTapeFloorSettings, wrunTapeHistoryOf } from './wrun-tape-source.util.js';
|
|
41
|
+
import { parseWrunTapeHistory, wrunTapeAcquisitionFloor, wrunTapeFloorSettings, wrunTapeHistoryOf, } from './wrun-tape-source.util.js';
|
|
42
42
|
import { isWrunTradesLegLane } from './wrun-trades-lane.util.js';
|
|
43
43
|
import { isWrunLegStreamClass } from './wrun-leg-stream-classes.js';
|
|
44
44
|
/** Each asked lane: the fetch type the full run rode, the fetch-key suffix of the page's ask
|
|
@@ -344,7 +344,7 @@ export function wrunPrefixWindowLanes(context, plan, pages, firstRowTs, toMs) {
|
|
|
344
344
|
sourceRows.tapeRows = rows;
|
|
345
345
|
lanes.push({ lane: 'tape', rows });
|
|
346
346
|
}
|
|
347
|
-
const settings = wrunTapeFloorSettings(context.metadata, context.acquisition.tape
|
|
347
|
+
const settings = wrunTapeFloorSettings(context.metadata, wrunTapeAcquisitionFloor(context.acquisition.tape));
|
|
348
348
|
if (settings !== undefined)
|
|
349
349
|
sourceRows.settings = settings;
|
|
350
350
|
const instances = context.pollLanes ?? [];
|
|
@@ -765,12 +765,19 @@ function seedFromCodes(message, ctx) {
|
|
|
765
765
|
if (message.includes('wrun_cell_block_too_large')) {
|
|
766
766
|
const inputIndex = numberMatch(message, /\binput (\d+)\b/);
|
|
767
767
|
const cells = numberMatch(message, /\bhas (\d+) cells\b/) ?? 0;
|
|
768
|
-
|
|
768
|
+
// The bound the module holds, in either of the packer's words (wrun-cell-capacity.leaf `wrunCellBoundWords`):
|
|
769
|
+
// `max_cells is N`, or a print union's `its capacity is N (...)`.
|
|
770
|
+
const max = numberMatch(message, /\b(?:max_cells|capacity) is (\d+)\b/) ?? 0;
|
|
769
771
|
const sourceClass = inputIndex === undefined ? undefined : ctx.inputClassAt?.(inputIndex);
|
|
770
772
|
if (sourceClass === 'options_chain')
|
|
771
773
|
return { cls: 'too-big', variant: 'chain', params: { cells, max } };
|
|
772
774
|
return { cls: 'too-big', variant: 'block', params: { feed: sourceClass ?? '', cells, max } };
|
|
773
775
|
}
|
|
776
|
+
// A celled input's capacity no build writes (wrun-cell-capacity.leaf `wrunCellCapacityIssue`): the package's sheet
|
|
777
|
+
// is the author's to rebuild, by its code. Named here as the block code above is, so the boot path's refusal reader
|
|
778
|
+
// never loads the capacity leaf (tests/perf/pre-candle-budget.spec.ts).
|
|
779
|
+
if (message.includes('wrun_cell_capacity_invalid'))
|
|
780
|
+
return wrunAuthorRuleSeed('wrun_cell_capacity_invalid');
|
|
774
781
|
const optionsCode = /\b(wrun_options_chain_[a-z_]+)\b/.exec(message)?.[1];
|
|
775
782
|
if (optionsCode !== undefined) {
|
|
776
783
|
const coin = /\bcoin '([^']+)'/.exec(message)?.[1] ?? ctx.chart?.coin ?? '';
|
|
@@ -857,6 +864,8 @@ const WRUN_REFUSAL_READ_FAILED_CODE = 'wrun_refusal_read_failed';
|
|
|
857
864
|
const SETTINGS_REFUSAL_CODES = new Set([
|
|
858
865
|
'wrun_params_invalid',
|
|
859
866
|
'wrun_tape_min_size_invalid',
|
|
867
|
+
// C-DOLLAR: a dollar floor bound to a setting that holds no positive number; the settings raise it.
|
|
868
|
+
'wrun_tape_min_value_invalid',
|
|
860
869
|
'wrun_param_unknown',
|
|
861
870
|
'wrun_settings_paint_unsupported',
|
|
862
871
|
]);
|
|
@@ -207,6 +207,13 @@ export interface WrunScriptInputDeclaration {
|
|
|
207
207
|
* row so the dialog and the hosted lanes know them without the sheet. */
|
|
208
208
|
maxBytes?: number;
|
|
209
209
|
multiline?: boolean;
|
|
210
|
+
/** A market-scaled param's value carried from an older version's setting (C-DOLLAR: a Big Trades 0.5.0 Min size the
|
|
211
|
+
* user changed, priced once into Min value; wrun-market-size-defaults.util `wrunDollarCarryPatch`). While the row
|
|
212
|
+
* holds it, the value is one the user chose, whatever the row's default reads: the market defaults never move it
|
|
213
|
+
* (`wrunMarketScaledRowChanged`), on this market or any after it. An edit or a reset to another value ends that.
|
|
214
|
+
* The mark itself stays (a reset writes values, never the rows), and while it does the carry is done: a raw value
|
|
215
|
+
* kept under its old name (a market that counts contracts) is never priced again (`wrunPendingDollarCarries`). */
|
|
216
|
+
carriedValue?: number;
|
|
210
217
|
}
|
|
211
218
|
export interface WrunScriptSection {
|
|
212
219
|
/** A section the builder names (the Style page's shared colours,
|
|
@@ -1017,6 +1017,10 @@ export declare function wrunBrowserReadsFeeds(): boolean;
|
|
|
1017
1017
|
* must be loaded first (`wrunChartHostEnv().loadSharedHost()`) whenever the flag is on.
|
|
1018
1018
|
*/
|
|
1019
1019
|
export declare function wrunBrowserRunWireCaps(): string[];
|
|
1020
|
+
/** The celled classes the browser lanes serve by an exact join (intrabar and candles ride legs): each class's inputs
|
|
1021
|
+
* read the one lane its class rides, an unasked one none (`wrunUnaskedCelledInput`; the class guard walks this set,
|
|
1022
|
+
* tests/utility/wrun/wrun-source-rows.lane-demand.spec.ts). */
|
|
1023
|
+
export declare const WRUN_LANE_CELL_CLASSES: ReadonlySet<string>;
|
|
1020
1024
|
/**
|
|
1021
1025
|
* The state the aligner holds between builds (the shared host's `WrunInputCarry`): the newest row
|
|
1022
1026
|
* folded in, each carry input's newest finite value, each forming fold's bucket, each leg's
|