@orangecharts/wrun-chart-host 0.4.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (331) hide show
  1. package/README.md +17 -5
  2. package/dist/constants/exchange-names.leaf.d.ts +8 -0
  3. package/dist/constants/exchange-names.leaf.js +101 -0
  4. package/dist/constants/feature-flags.constants.js +7 -2
  5. package/dist/constants/kscript-data-interval-restrictions.constants.d.ts +15 -0
  6. package/dist/constants/kscript-data-interval-restrictions.constants.js +40 -0
  7. package/dist/constants/opra-compliance.constants.d.ts +19 -0
  8. package/dist/constants/opra-compliance.constants.js +19 -0
  9. package/dist/constants/replay-ladder.leaf.d.ts +30 -0
  10. package/dist/constants/replay-ladder.leaf.js +99 -0
  11. package/dist/constants/scriptEditor/cme-official-scripts.constants.d.ts +168 -0
  12. package/dist/constants/scriptEditor/cme-official-scripts.constants.js +398 -0
  13. package/dist/constants/scriptEditor/converted-script-id.leaf.d.ts +8 -0
  14. package/dist/constants/scriptEditor/converted-script-id.leaf.js +10 -0
  15. package/dist/constants/scriptEditor/execution.constants.d.ts +4 -0
  16. package/dist/constants/scriptEditor/execution.constants.js +14 -0
  17. package/dist/constants/wrun-prefix-safe.constants.d.ts +23 -0
  18. package/dist/constants/wrun-prefix-safe.constants.js +26 -0
  19. package/dist/host-env.d.ts +301 -22
  20. package/dist/host-env.js +15 -0
  21. package/dist/host-ports.types.d.ts +853 -29
  22. package/dist/index.d.ts +140 -2
  23. package/dist/index.js +140 -2
  24. package/dist/instances/script-engine-worker-ohlcv-transfer.d.ts +31 -0
  25. package/dist/instances/script-engine-worker-ohlcv-transfer.js +164 -0
  26. package/dist/interfaces/market-event.interface.d.ts +231 -0
  27. package/dist/interfaces/market-event.interface.js +15 -0
  28. package/dist/interfaces/opra-realtime.interface.d.ts +70 -134
  29. package/dist/interfaces/opra-realtime.interface.js +34 -59
  30. package/dist/interfaces/replay.interface.d.ts +285 -0
  31. package/dist/interfaces/replay.interface.js +1 -0
  32. package/dist/interfaces/wrun-runtime.interface.d.ts +88 -13
  33. package/dist/interfaces/wrun-runtime.interface.js +17 -3
  34. package/dist/kscript-data/controls/live-ohlcv-merge.util.d.ts +1 -0
  35. package/dist/kscript-data/controls/live-ohlcv-merge.util.js +93 -0
  36. package/dist/kscript-data/controls/live-trades-merge.util.d.ts +5 -1
  37. package/dist/kscript-data/controls/live-trades-merge.util.js +2 -2
  38. package/dist/market-data/billing.interface.d.ts +219 -0
  39. package/dist/market-data/billing.interface.js +58 -0
  40. package/dist/market-data/venue-governed.util.d.ts +2 -0
  41. package/dist/market-data/venue-governed.util.js +10 -0
  42. package/dist/market-data/venue.d.ts +122 -0
  43. package/dist/market-data/venue.js +1 -0
  44. package/dist/market-data/venues/index.d.ts +97 -0
  45. package/dist/market-data/venues/index.js +33 -0
  46. package/dist/market-data/venues/opra.contract.copy.json +35 -0
  47. package/dist/market-data/venues/opra.d.ts +70 -0
  48. package/dist/market-data/venues/opra.js +74 -0
  49. package/dist/replay/replayIndicatorRows.d.ts +31 -0
  50. package/dist/replay/replayIndicatorRows.js +117 -0
  51. package/dist/replay/replayLadder.d.ts +85 -0
  52. package/dist/replay/replayLadder.js +388 -0
  53. package/dist/utility/auth/server-clock.util.d.ts +81 -0
  54. package/dist/utility/auth/server-clock.util.js +238 -0
  55. package/dist/utility/chart/builtin-identity.util.d.ts +18 -0
  56. package/dist/utility/chart/builtin-identity.util.js +51 -0
  57. package/dist/utility/chart/cache-alignment.util.d.ts +454 -0
  58. package/dist/utility/chart/cache-alignment.util.js +926 -0
  59. package/dist/utility/chart/chart-data-fetch-generation.util.d.ts +15 -0
  60. package/dist/utility/chart/chart-data-fetch-generation.util.js +22 -0
  61. package/dist/utility/chart/chart-mount-epoch.util.d.ts +17 -0
  62. package/dist/utility/chart/chart-mount-epoch.util.js +61 -0
  63. package/dist/utility/chart/chart-time-domain.util.d.ts +12 -0
  64. package/dist/utility/chart/chart-time-domain.util.js +23 -0
  65. package/dist/utility/chart/color-customization.leaf.d.ts +10 -0
  66. package/dist/utility/chart/color-customization.leaf.js +16 -0
  67. package/dist/utility/chart/footprint-tick-grid.util.d.ts +106 -0
  68. package/dist/utility/chart/footprint-tick-grid.util.js +167 -0
  69. package/dist/utility/chart/gesture-timing.leaf.d.ts +29 -0
  70. package/dist/utility/chart/gesture-timing.leaf.js +29 -0
  71. package/dist/utility/chart/governed-contract-coin.util.d.ts +22 -0
  72. package/dist/utility/chart/governed-contract-coin.util.js +39 -0
  73. package/dist/utility/chart/host-bar-placement.util.d.ts +107 -0
  74. package/dist/utility/chart/host-bar-placement.util.js +447 -0
  75. package/dist/utility/chart/index-host-tier.util.d.ts +31 -0
  76. package/dist/utility/chart/index-host-tier.util.js +118 -0
  77. package/dist/utility/chart/index-mode-admission.util.d.ts +34 -0
  78. package/dist/utility/chart/index-mode-admission.util.js +67 -0
  79. package/dist/utility/chart/indicator-error-message.util.d.ts +35 -0
  80. package/dist/utility/chart/indicator-error-message.util.js +44 -0
  81. package/dist/utility/chart/kscript-apply-fingerprint.util.d.ts +65 -0
  82. package/dist/utility/chart/kscript-apply-fingerprint.util.js +357 -0
  83. package/dist/utility/chart/kscript-chart-flush.leaf.d.ts +22 -0
  84. package/dist/utility/chart/kscript-chart-flush.leaf.js +13 -0
  85. package/dist/utility/chart/kscript-data-interval-restriction.leaf.d.ts +6 -0
  86. package/dist/utility/chart/kscript-data-interval-restriction.leaf.js +27 -0
  87. package/dist/utility/chart/kscript-integration-decision.leaf.d.ts +89 -0
  88. package/dist/utility/chart/kscript-integration-decision.leaf.js +80 -0
  89. package/dist/utility/chart/kscript-live-coalesce.util.d.ts +76 -0
  90. package/dist/utility/chart/kscript-live-coalesce.util.js +156 -0
  91. package/dist/utility/chart/kscript-live-rest-pace.util.d.ts +34 -0
  92. package/dist/utility/chart/kscript-live-rest-pace.util.js +134 -0
  93. package/dist/utility/chart/kscript-live-source-identity.util.d.ts +98 -0
  94. package/dist/utility/chart/kscript-live-source-identity.util.js +121 -0
  95. package/dist/utility/chart/kscript-mounted-plot-set.leaf.d.ts +48 -0
  96. package/dist/utility/chart/kscript-mounted-plot-set.leaf.js +145 -0
  97. package/dist/utility/chart/kscript-perf-tracker.util.d.ts +243 -0
  98. package/dist/utility/chart/kscript-perf-tracker.util.js +522 -0
  99. package/dist/utility/chart/kscript-run-interval-projection.util.d.ts +43 -0
  100. package/dist/utility/chart/kscript-run-interval-projection.util.js +471 -0
  101. package/dist/utility/chart/kscript-run-result-equality.util.d.ts +38 -0
  102. package/dist/utility/chart/kscript-run-result-equality.util.js +89 -0
  103. package/dist/utility/chart/kscript-settings-revision.leaf.d.ts +2 -0
  104. package/dist/utility/chart/kscript-settings-revision.leaf.js +12 -0
  105. package/dist/utility/chart/kscript-source-degrade.leaf.d.ts +63 -0
  106. package/dist/utility/chart/kscript-source-degrade.leaf.js +68 -0
  107. package/dist/utility/chart/kscript-source-retention.util.d.ts +134 -0
  108. package/dist/utility/chart/kscript-source-retention.util.js +218 -0
  109. package/dist/utility/chart/kscript-standin-identity.leaf.d.ts +57 -0
  110. package/dist/utility/chart/kscript-standin-identity.leaf.js +61 -0
  111. package/dist/utility/chart/kscript-titancharts-preparation.util.d.ts +15 -0
  112. package/dist/utility/chart/kscript-titancharts-preparation.util.js +376 -0
  113. package/dist/utility/chart/kscript-titancharts-render-keys.constants.d.ts +9 -0
  114. package/dist/utility/chart/kscript-titancharts-render-keys.constants.js +130 -0
  115. package/dist/utility/chart/kscript-venue-policy.util.d.ts +217 -0
  116. package/dist/utility/chart/kscript-venue-policy.util.js +324 -0
  117. package/dist/utility/chart/live-cadence.util.d.ts +38 -0
  118. package/dist/utility/chart/live-cadence.util.js +37 -0
  119. package/dist/utility/chart/live-feed-series-match.leaf.d.ts +13 -0
  120. package/dist/utility/chart/live-feed-series-match.leaf.js +21 -0
  121. package/dist/utility/chart/local-engine-self-heal-backoff.util.d.ts +46 -0
  122. package/dist/utility/chart/local-engine-self-heal-backoff.util.js +46 -0
  123. package/dist/utility/chart/local-engine-uninit.leaf.d.ts +21 -0
  124. package/dist/utility/chart/local-engine-uninit.leaf.js +22 -0
  125. package/dist/utility/chart/local-kscript-source-revalidation.util.d.ts +62 -0
  126. package/dist/utility/chart/local-kscript-source-revalidation.util.js +123 -0
  127. package/dist/utility/chart/local-kscript-warmup-depth.util.d.ts +214 -0
  128. package/dist/utility/chart/local-kscript-warmup-depth.util.js +376 -0
  129. package/dist/utility/chart/local-technical-script-live-apply-coalescer.util.d.ts +85 -0
  130. package/dist/utility/chart/local-technical-script-live-apply-coalescer.util.js +197 -0
  131. package/dist/utility/chart/local-technical-script-range.leaf.d.ts +72 -0
  132. package/dist/utility/chart/local-technical-script-range.leaf.js +126 -0
  133. package/dist/utility/chart/mixed-mode.util.d.ts +167 -0
  134. package/dist/utility/chart/mixed-mode.util.js +139 -0
  135. package/dist/utility/chart/ohlcv-row-readiness.util.d.ts +36 -0
  136. package/dist/utility/chart/ohlcv-row-readiness.util.js +90 -0
  137. package/dist/utility/chart/opra-user-scripts-gate.util.d.ts +19 -0
  138. package/dist/utility/chart/opra-user-scripts-gate.util.js +32 -0
  139. package/dist/utility/chart/overlay-execution-guard-key.leaf.d.ts +8 -0
  140. package/dist/utility/chart/overlay-execution-guard-key.leaf.js +10 -0
  141. package/dist/utility/chart/price-precision.util.d.ts +40 -0
  142. package/dist/utility/chart/price-precision.util.js +70 -0
  143. package/dist/utility/chart/profile-block-size.util.d.ts +64 -0
  144. package/dist/utility/chart/profile-block-size.util.js +141 -0
  145. package/dist/utility/chart/protected-kscript-degenerate-rows.leaf.d.ts +11 -0
  146. package/dist/utility/chart/protected-kscript-degenerate-rows.leaf.js +29 -0
  147. package/dist/utility/chart/protected-kscript-empty-output.util.d.ts +28 -0
  148. package/dist/utility/chart/protected-kscript-empty-output.util.js +84 -0
  149. package/dist/utility/chart/run-interval-unservable.leaf.d.ts +9 -0
  150. package/dist/utility/chart/run-interval-unservable.leaf.js +20 -0
  151. package/dist/utility/chart/run-interval-warmup.leaf.d.ts +19 -0
  152. package/dist/utility/chart/run-interval-warmup.leaf.js +35 -0
  153. package/dist/utility/chart/titan-constants.pin.d.ts +9 -5
  154. package/dist/utility/chart/titan-constants.pin.js +18 -5
  155. package/dist/utility/chart/warmup-backfill-retry.leaf.d.ts +9 -0
  156. package/dist/utility/chart/warmup-backfill-retry.leaf.js +9 -0
  157. package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +11 -2
  158. package/dist/utility/chart/wrun-bar-session-facts.util.js +10 -3
  159. package/dist/utility/chart/wrun-run-result.util.d.ts +5 -1
  160. package/dist/utility/chart/wrun-run-result.util.js +20 -14
  161. package/dist/utility/common/data-processing.util.d.ts +138 -0
  162. package/dist/utility/common/data-processing.util.js +346 -0
  163. package/dist/utility/common/visible-timeout.util.d.ts +13 -4
  164. package/dist/utility/common/visible-timeout.util.js +23 -8
  165. package/dist/utility/exchange-format.leaf.d.ts +1 -0
  166. package/dist/utility/exchange-format.leaf.js +47 -0
  167. package/dist/utility/market-events/earnings-scope.util.d.ts +60 -0
  168. package/dist/utility/market-events/earnings-scope.util.js +92 -0
  169. package/dist/utility/market-events/market-events.util.d.ts +147 -0
  170. package/dist/utility/market-events/market-events.util.js +392 -0
  171. package/dist/utility/market-events/zoned-clock.util.d.ts +1 -0
  172. package/dist/utility/market-events/zoned-clock.util.js +11 -0
  173. package/dist/utility/options/option-venue-disclosure.util.d.ts +43 -0
  174. package/dist/utility/options/option-venue-disclosure.util.js +56 -0
  175. package/dist/utility/scriptEditor/package-semver.util.d.ts +51 -0
  176. package/dist/utility/scriptEditor/package-semver.util.js +120 -0
  177. package/dist/utility/scriptEditor/temp-script-id.util.d.ts +18 -0
  178. package/dist/utility/scriptEditor/temp-script-id.util.js +25 -0
  179. package/dist/utility/symbol-selection/markets-request-from-symbols.leaf.d.ts +20 -0
  180. package/dist/utility/symbol-selection/markets-request-from-symbols.leaf.js +81 -0
  181. package/dist/utility/v2/governed-tier.leaf.d.ts +103 -0
  182. package/dist/utility/v2/governed-tier.leaf.js +113 -0
  183. package/dist/utility/watchlist/import/import-request.leaf.d.ts +10 -0
  184. package/dist/utility/watchlist/import/import-request.leaf.js +10 -0
  185. package/dist/utility/wrun/sources/lanes/series.js +2 -2
  186. package/dist/utility/wrun/sources/row-lanes/option_contract_state.d.ts +4 -4
  187. package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +5 -6
  188. package/dist/utility/wrun/wrun-alert-outputs.registry.d.ts +166 -0
  189. package/dist/utility/wrun/wrun-alert-outputs.registry.js +219 -0
  190. package/dist/utility/wrun/wrun-bar-count.util.d.ts +94 -0
  191. package/dist/utility/wrun/wrun-bar-count.util.js +274 -0
  192. package/dist/utility/wrun/wrun-chart-context-names.util.d.ts +84 -0
  193. package/dist/utility/wrun/wrun-chart-context-names.util.js +186 -0
  194. package/dist/utility/wrun/wrun-chart-market-facts.util.d.ts +253 -0
  195. package/dist/utility/wrun/wrun-chart-market-facts.util.js +731 -0
  196. package/dist/utility/wrun/wrun-cloud-opra-stamp.util.d.ts +28 -0
  197. package/dist/utility/wrun/wrun-cloud-opra-stamp.util.js +45 -0
  198. package/dist/utility/wrun/wrun-coin-lane-live.util.d.ts +18 -0
  199. package/dist/utility/wrun/wrun-coin-lane-live.util.js +47 -0
  200. package/dist/utility/wrun/wrun-deadline.util.js +2 -1
  201. package/dist/utility/wrun/wrun-debug-output.util.d.ts +39 -0
  202. package/dist/utility/wrun/wrun-debug-output.util.js +63 -0
  203. package/dist/utility/wrun/wrun-declared-warmup.util.d.ts +113 -0
  204. package/dist/utility/wrun/wrun-declared-warmup.util.js +181 -0
  205. package/dist/utility/wrun/wrun-draft-legend-note.util.d.ts +43 -0
  206. package/dist/utility/wrun/wrun-draft-legend-note.util.js +158 -0
  207. package/dist/utility/wrun/wrun-draft-overlay.util.d.ts +181 -0
  208. package/dist/utility/wrun/wrun-draft-overlay.util.js +357 -0
  209. package/dist/utility/wrun/wrun-draw-skipped.leaf.d.ts +16 -0
  210. package/dist/utility/wrun/wrun-draw-skipped.leaf.js +16 -0
  211. package/dist/utility/wrun/wrun-earnings-facts.util.d.ts +42 -0
  212. package/dist/utility/wrun/wrun-earnings-facts.util.js +131 -0
  213. package/dist/utility/wrun/wrun-first-run-depth.util.d.ts +32 -0
  214. package/dist/utility/wrun/wrun-first-run-depth.util.js +118 -0
  215. package/dist/utility/wrun/wrun-gate-plane-readers.util.d.ts +24 -0
  216. package/dist/utility/wrun/wrun-gate-plane-readers.util.js +31 -0
  217. package/dist/utility/wrun/wrun-held-lanes.util.d.ts +32 -0
  218. package/dist/utility/wrun/wrun-held-lanes.util.js +94 -0
  219. package/dist/utility/wrun/wrun-host-visible-clock.util.d.ts +2 -0
  220. package/dist/utility/wrun/wrun-host-visible-clock.util.js +17 -0
  221. package/dist/utility/wrun/wrun-host.service.d.ts +330 -0
  222. package/dist/utility/wrun/wrun-host.service.js +855 -0
  223. package/dist/utility/wrun/wrun-hover.util.d.ts +3 -0
  224. package/dist/utility/wrun/wrun-hover.util.js +25 -4
  225. package/dist/utility/wrun/wrun-inert-legend.util.d.ts +33 -0
  226. package/dist/utility/wrun/wrun-inert-legend.util.js +125 -0
  227. package/dist/utility/wrun/wrun-input-requirements.leaf.d.ts +155 -0
  228. package/dist/utility/wrun/wrun-input-requirements.leaf.js +450 -0
  229. package/dist/utility/wrun/wrun-integration-route.util.d.ts +51 -0
  230. package/dist/utility/wrun/wrun-integration-route.util.js +59 -0
  231. package/dist/utility/wrun/wrun-latest-history.leaf.d.ts +8 -0
  232. package/dist/utility/wrun/wrun-latest-history.leaf.js +8 -0
  233. package/dist/utility/wrun/wrun-legend-hover.lazy.d.ts +12 -0
  234. package/dist/utility/wrun/wrun-legend-hover.lazy.js +96 -0
  235. package/dist/utility/wrun/wrun-lifecycle-runtime.util.d.ts +21 -0
  236. package/dist/utility/wrun/wrun-lifecycle-runtime.util.js +21 -0
  237. package/dist/utility/wrun/wrun-live-hidden-hold.util.d.ts +23 -0
  238. package/dist/utility/wrun/wrun-live-hidden-hold.util.js +13 -0
  239. package/dist/utility/wrun/wrun-live-intake.util.d.ts +374 -0
  240. package/dist/utility/wrun/wrun-live-intake.util.js +2027 -0
  241. package/dist/utility/wrun/wrun-live-patch.util.d.ts +116 -0
  242. package/dist/utility/wrun/wrun-live-patch.util.js +523 -0
  243. package/dist/utility/wrun/wrun-live-tick.util.d.ts +619 -0
  244. package/dist/utility/wrun/wrun-live-tick.util.js +4974 -0
  245. package/dist/utility/wrun/wrun-loading-owner.util.d.ts +58 -0
  246. package/dist/utility/wrun/wrun-loading-owner.util.js +89 -0
  247. package/dist/utility/wrun/wrun-official-scope.leaf.d.ts +29 -0
  248. package/dist/utility/wrun/wrun-official-scope.leaf.js +36 -0
  249. package/dist/utility/wrun/wrun-oi-lane.util.d.ts +27 -0
  250. package/dist/utility/wrun/wrun-oi-lane.util.js +42 -0
  251. package/dist/utility/wrun/wrun-options-stop.util.d.ts +52 -0
  252. package/dist/utility/wrun/wrun-options-stop.util.js +123 -0
  253. package/dist/utility/wrun/wrun-overlay-drivers.util.d.ts +719 -0
  254. package/dist/utility/wrun/wrun-overlay-drivers.util.js +1180 -0
  255. package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.d.ts +50 -0
  256. package/dist/utility/wrun/wrun-overlay-lifecycle.lazy.js +131 -0
  257. package/dist/utility/wrun/wrun-overlay-lifecycle.util.d.ts +118 -0
  258. package/dist/utility/wrun/wrun-overlay-lifecycle.util.js +466 -0
  259. package/dist/utility/wrun/wrun-overlay-metadata.util.d.ts +45 -0
  260. package/dist/utility/wrun/wrun-overlay-metadata.util.js +112 -0
  261. package/dist/utility/wrun/wrun-overlay-recovery.util.d.ts +114 -0
  262. package/dist/utility/wrun/wrun-overlay-recovery.util.js +971 -0
  263. package/dist/utility/wrun/wrun-overlay-run.util.d.ts +858 -0
  264. package/dist/utility/wrun/wrun-overlay-run.util.js +11013 -0
  265. package/dist/utility/wrun/wrun-pack.util.d.ts +2 -1
  266. package/dist/utility/wrun/wrun-panel-mount.util.d.ts +24 -9
  267. package/dist/utility/wrun/wrun-panel-mount.util.js +138 -43
  268. package/dist/utility/wrun/wrun-param-map.util.d.ts +19 -4
  269. package/dist/utility/wrun/wrun-param-map.util.js +40 -47
  270. package/dist/utility/wrun/wrun-param-values.util.d.ts +9 -3
  271. package/dist/utility/wrun/wrun-param-values.util.js +5 -5
  272. package/dist/utility/wrun/wrun-prefix-cohort.util.d.ts +93 -0
  273. package/dist/utility/wrun/wrun-prefix-cohort.util.js +484 -0
  274. package/dist/utility/wrun/wrun-prefix-lanes.util.d.ts +114 -0
  275. package/dist/utility/wrun/wrun-prefix-lanes.util.js +486 -0
  276. package/dist/utility/wrun/wrun-prefix-proof.util.d.ts +317 -0
  277. package/dist/utility/wrun/wrun-prefix-proof.util.js +630 -0
  278. package/dist/utility/wrun/wrun-refusal-surface.util.d.ts +73 -0
  279. package/dist/utility/wrun/wrun-refusal-surface.util.js +380 -0
  280. package/dist/utility/wrun/wrun-refusal-text.util.d.ts +15 -0
  281. package/dist/utility/wrun/wrun-refusal-text.util.js +40 -0
  282. package/dist/utility/wrun/wrun-registry-errors.util.d.ts +5 -3
  283. package/dist/utility/wrun/wrun-replay-lane.util.d.ts +139 -0
  284. package/dist/utility/wrun/wrun-replay-lane.util.js +520 -0
  285. package/dist/utility/wrun/wrun-replay-rows.util.d.ts +21 -0
  286. package/dist/utility/wrun/wrun-replay-rows.util.js +172 -0
  287. package/dist/utility/wrun/wrun-row-source-factory.d.ts +53 -0
  288. package/dist/utility/wrun/wrun-row-source-factory.js +435 -0
  289. package/dist/utility/wrun/wrun-run-cells.util.d.ts +36 -0
  290. package/dist/utility/wrun/wrun-run-cells.util.js +46 -0
  291. package/dist/utility/wrun/wrun-run-interval-session.util.d.ts +133 -0
  292. package/dist/utility/wrun/wrun-run-interval-session.util.js +121 -0
  293. package/dist/utility/wrun/wrun-run-interval.util.d.ts +98 -0
  294. package/dist/utility/wrun/wrun-run-interval.util.js +207 -0
  295. package/dist/utility/wrun/wrun-run-retained.util.d.ts +122 -0
  296. package/dist/utility/wrun/wrun-run-retained.util.js +255 -0
  297. package/dist/utility/wrun/wrun-sandbox-row-source.d.ts +184 -0
  298. package/dist/utility/wrun/wrun-sandbox-row-source.js +444 -0
  299. package/dist/utility/wrun/wrun-script-inputs.util.js +4 -4
  300. package/dist/utility/wrun/wrun-series-stream.util.d.ts +86 -0
  301. package/dist/utility/wrun/wrun-series-stream.util.js +537 -0
  302. package/dist/utility/wrun/wrun-sha256.leaf.d.ts +13 -0
  303. package/dist/utility/wrun/wrun-sha256.leaf.js +84 -0
  304. package/dist/utility/wrun/wrun-sheet-remembered.util.d.ts +21 -0
  305. package/dist/utility/wrun/wrun-sheet-remembered.util.js +36 -0
  306. package/dist/utility/wrun/wrun-signal-sound-reasons.leaf.d.ts +7 -0
  307. package/dist/utility/wrun/wrun-signal-sound-reasons.leaf.js +12 -0
  308. package/dist/utility/wrun/wrun-socket-row-source.js +4 -2
  309. package/dist/utility/wrun/wrun-source-rows.util.d.ts +175 -3
  310. package/dist/utility/wrun/wrun-source-rows.util.js +294 -8
  311. package/dist/utility/wrun/wrun-stats-strip.util.d.ts +46 -0
  312. package/dist/utility/wrun/wrun-stats-strip.util.js +87 -0
  313. package/dist/utility/wrun/wrun-table-chrome.util.d.ts +163 -0
  314. package/dist/utility/wrun/wrun-table-chrome.util.js +557 -0
  315. package/dist/utility/wrun/wrun-text-params.util.d.ts +11 -6
  316. package/dist/utility/wrun/wrun-text-params.util.js +19 -30
  317. package/dist/utility/wrun/wrun-transient-rerun.util.d.ts +64 -0
  318. package/dist/utility/wrun/wrun-transient-rerun.util.js +317 -0
  319. package/dist/utility/wrun/wrun-twin-lookback.util.d.ts +10 -0
  320. package/dist/utility/wrun/wrun-twin-lookback.util.js +43 -0
  321. package/dist/utility/wrun/wrun-warmup-head-store.util.d.ts +41 -0
  322. package/dist/utility/wrun/wrun-warmup-head-store.util.js +120 -0
  323. package/dist/utility/wrun-alert-params.leaf.d.ts +24 -0
  324. package/dist/utility/wrun-alert-params.leaf.js +24 -0
  325. package/dist/utils/replay/replay-buffer-math.d.ts +148 -0
  326. package/dist/utils/replay/replay-buffer-math.js +684 -0
  327. package/dist/workers/wrun/wrun-abi-host.d.ts +203 -0
  328. package/dist/workers/wrun/wrun-abi-host.js +1220 -0
  329. package/dist/workers/wrun/wrun-engine-handler.d.ts +20 -0
  330. package/dist/workers/wrun/wrun-engine-handler.js +380 -0
  331. package/package.json +3 -3
@@ -0,0 +1,317 @@
1
+ /**
2
+ * The overlap check of a prefix run (TITAN-RENDER-SAFEGUARDS pan-back plan, contract C8): before a prefix run's rows
3
+ * are committed in front of the mounted rows, both runs must have seen and produced exactly the same thing over the
4
+ * bars they share (the overlap), so the merge route's timestamp union is an exact prepend.
5
+ *
6
+ * This is VALIDATION, never admission. Equal rows over the overlap say nothing about the rows after it: a module
7
+ * that keeps a running sum and emits zero until its input crosses a level matches through the whole overlap, yet a
8
+ * full run from the chart's first bar would emit different sums afterwards than the mounted run that started later,
9
+ * and a prefix run never revisits those rows. Only a history-independent module makes the suffix right: one the
10
+ * compiler proved and the chart corroborated (the sheet's `history_independent` stamp), or else one a person
11
+ * audited (the package roster, wrun-prefix-cohort.util isWrunPrefixSafePackage). That is the admission
12
+ * (wrun-overlay-run.util wrunPrefixIncapacity); this check only catches what neither can: different inputs (a
13
+ * corrected candle, another book), a different evaluation (a guest or host change), or evidence assembled wrongly.
14
+ *
15
+ * Semantics:
16
+ * - The overlap is the inclusive span from the smallest to the largest finite timestamp in `overlapTs`. Each side's
17
+ * rows, candles, book rows and child rows are read inside that span only, so a caller may pass a side whole.
18
+ * - Inside the span both sides hold the same timestamp set for the rows, the candles, the book and each child. A
19
+ * side with no book (or no child of an id) reads as one with no such rows, so it differs from a side that has
20
+ * rows in the span. An empty overlap proves nothing and is refused.
21
+ * - Values compare with `Object.is` (NaN equals NaN, -0 differs from 0), every column of every candle, book and
22
+ * child row (its timestamp included), every output of every row.
23
+ * - Row states never equal one another: a missing row, `outputs: null`, an all-NaN outputs array, an absent strings
24
+ * array (`strings` undefined or null), a null string and an empty string. Inside a strings array, undefined reads
25
+ * as null (both spell an absent slot: the host's unpacked rows use undefined, this contract null).
26
+ * - The handle snapshot (`handles`: the run's handle ledger as the host hands it back beside its rows, on the
27
+ * mounted side the corner labels the cohort admits as snapshot outputs) is one run-level value, not a row: a
28
+ * landing replaces the mounted handle set with the run's whole set, so the prefix run's must be structurally
29
+ * equal to the mounted one. Plain data compares deep: arrays and typed arrays element by element, plain objects
30
+ * key by key (a key holding undefined reads as an absent key), every other value with `Object.is` (NaN equals
31
+ * NaN, -0 differs from 0); an object that is not plain data equals only itself, and an absent snapshot differs
32
+ * from an empty one.
33
+ * - The lanes (`lanes`: every other feed a prefix run read, by lane name: a buy/sell volume, an open interest, a poll
34
+ * lane instance, a tape) compare like the book, each one's rows inside the span, with one rule more: a row compares
35
+ * by identity first (the prefix run's overlap rows ARE the session's own objects, the window split), then column by
36
+ * column with `Object.is`, so a scalar column compares by value and a cell column (a nested array: trade volume by
37
+ * size, the tape) by reference, never equal to a copy. Lanes compare in name order; a side without a lane reads as
38
+ * one with no rows; a lane a side names twice is refused. A lane mismatch is `lane`, its timestamp set's included:
39
+ * the inputs the overlap ran on are not the session's, the data's fault, never the module's (`wrunPrefixMismatchLatches`).
40
+ * - Mismatches report in a fixed order, the first found wins: the candle evidence (below), then the timestamp sets
41
+ * (candles, book, each lane by name, rows, then each child by id), then candle values, book values, lane values,
42
+ * row values (outputs before strings on each row), child values and last the handle snapshot. Inputs report before
43
+ * outputs because a different input explains a different output. `firstMismatchTs` is the earliest timestamp of the
44
+ * first failing kind, null when there is none to name (an empty overlap, a child or lane id a side names twice, the
45
+ * handle snapshot, which has no timestamp).
46
+ *
47
+ * The candle evidence (the warm-up program's round A, D2): every guest of a session keeps, at evaluation time, an
48
+ * immutable fingerprint of each candle it evaluated (`[ts, open, high, low, close, volume]`, the hidden head of an
49
+ * exact warm-up session included), so the mounted side of the proof is what the mounted rows were computed from,
50
+ * never the chart's current rows (which would compare the chart with itself). The proof compares the span from
51
+ * `warmupBars` evaluated predecessors before the overlap's first timestamp (counted on the mounted evidence)
52
+ * through the overlap's last one: the prefix run's evaluated candles against the mounted evidence, the same
53
+ * timestamp set and every value `Object.is`-equal (NaN equals NaN, -0 differs from 0). Any difference, or a mounted
54
+ * evidence too short to hold the span, is `candle-revised`: the inputs the mounted rows rest on are not the ones
55
+ * the prefix ran, so the whole history runs again (a data revision, never a fault of the module). A revised
56
+ * candle within W bars before the overlap changes nothing inside the overlap and still changes the rows after it,
57
+ * which is why the span starts W predecessors early. Only an exact warm-up session keeps candle evidence and
58
+ * hands it to the proof; per-bar and audited sessions keep none and their proof is the overlap check alone.
59
+ *
60
+ * The retained range (`proveWrunCandleEvidenceAgainstChart`): an exact warm-up session also holds every output it
61
+ * landed after the overlap, which the overlap proof never reads, so at the prefix plan, its prepare and its commit
62
+ * the session's whole retained evidence (its hidden head included wherever the chart holds that bar) is compared
63
+ * with the chart's candles as they stand: a candle the chart revised anywhere the session's rows rest on is
64
+ * `candle-revised` too, and the whole run that follows heals the stale rows as well.
65
+ *
66
+ * The run-level snapshots (WRUN-WARMUP-LEVELS 4a): three declarations read past their own bar land only when what the
67
+ * landing keeps still describes the full run's picture. Each is taken when the prefix is prepared and taken again
68
+ * synchronously under the commit lock against the mount as it stands then (a live tick may move the mount between
69
+ * the two, and the commit's other checks read only the overlap rows and the handle ledger):
70
+ * - `guides` (`proveWrunPrefixRunSnapshots`): a guide (`role: "guide"`) mounts one constant, the last finite value its
71
+ * run gave it, which the merge rewrites from the result it lands. For every guide the mount shows, the prefix run's
72
+ * last finite value, the mounted guide's own `value` (its keyed run output on the mount) and the session rows' last
73
+ * finite value for its column must be `Object.is`-equal: the mount and the session rows disagreeing is
74
+ * `guides-incoherent` (never papered over), the prefix run differing from them `guides`.
75
+ * - `styles` (`proveWrunPrefixRunSnapshots`): a style read from the run's last ready row (the last row whose outputs
76
+ * are not null: `stroke_width_by`, `edge_width_by` a width finite and at or above 0, else the static one;
77
+ * `show_price_display_by` a finite flag, nonzero on, under `price_display: "per_output"`), derived on the prefix
78
+ * run's rows and on the session's rows (the row-derived side), must be `Object.is`-equal (`styles`). Equality proves
79
+ * the style at THIS landing, not that it is a run constant. The rows alone are not the mount, though: a live refresh
80
+ * skips an output its block omits (a sparse output whose sole value turned NaN keeps its plot, and the width that
81
+ * plot was drawn with), so the field the payload writes is compared with the mounted plot's own as well (the plot
82
+ * fields below).
83
+ * - `sparse-mount` (`proveWrunPrefixSparseMount`): a sparse output or range (`omit_if_empty`) mounts only once a run
84
+ * gave it a value. One the mount omitted stays omitted only when the prefix result gives it no value either; one the
85
+ * mount shows keeps its definition, so the caller carries it in the payload it lands (`carried`: shown, given none).
86
+ * - The plot fields (`proveWrunPrefixRunSnapshots`, `plots`): every render field the payload writes onto a plot the
87
+ * mount shows (every key the render patch writes or deletes, rows and the style tables it only grows aside), as the
88
+ * adapter reads the payload's output, must equal the field the plot shows now (its live-patched field, else its
89
+ * stored definition's), deep on plain data with `Object.is` leaves: a band's row-derived fields (`fill`,
90
+ * `multiValue`: the adapter reads a band whose lower edge sits on 0 wherever it draws as a zero baseline and turns
91
+ * its fill off) answer `sparse-mount` for a sparse declaration and `range-fields` for a dense range; every other
92
+ * field (a last-row width or tag, a colour, a line style) answers `styles`. The landing rewrites each landed
93
+ * definition from the payload whatever rows it unions, so these proofs are what make every compared field equal to
94
+ * what the mount shows.
95
+ * A mismatch is the module's (the overlap rows never show it), so the caller refuses the session as for `handles`.
96
+ *
97
+ * Pure and leaf: no run module, no chart, no store.
98
+ */
99
+ import type { WrunIndicatorMetadata } from '../../interfaces/wrun-runtime.interface.js';
100
+ /** One evaluated row as the evidence carries it: the module's outputs (null on a row that was not ready) and its
101
+ * string slots (null entries for absent slots; the array absent when the row carries none). */
102
+ export interface WrunPrefixEvidenceRow {
103
+ ts: number;
104
+ outputs: ReadonlyArray<number> | null;
105
+ strings?: ReadonlyArray<string | null> | null;
106
+ }
107
+ /** What one side of the overlap saw and produced: its output rows, the candles it ran on, the book rows it read
108
+ * (a book lane only), each heatmap child's rows (`[ts, ...]` plain rows, by child id) and its handle snapshot (the
109
+ * run's returned handles payload for the snapshot handles the cohort admitted, as the host hands it back). */
110
+ export interface WrunPrefixEvidence {
111
+ rows: ReadonlyArray<WrunPrefixEvidenceRow>;
112
+ /** The candles inside the overlap a side holds (the `candle` lane). The prefix runs pass none here and hand the
113
+ * proof the candle evidence instead (`candleEvidence`), which also reaches the predecessors before it. */
114
+ candles: ReadonlyArray<ReadonlyArray<number>>;
115
+ book?: ReadonlyArray<ReadonlyArray<number>>;
116
+ /** Every other feed the side read, by lane name (`[ts, ...]` rows; a cell column a nested array). */
117
+ lanes?: ReadonlyArray<{
118
+ lane: string;
119
+ rows: ReadonlyArray<ArrayLike<unknown>>;
120
+ }>;
121
+ children?: ReadonlyArray<{
122
+ childId: string;
123
+ rows: ReadonlyArray<ReadonlyArray<number>>;
124
+ }>;
125
+ handles?: unknown;
126
+ }
127
+ export type WrunPrefixOverlapMismatch = 'timestamp-set' | 'output' | 'string' | 'candle' | 'book' | 'lane' | 'child' | 'handles' | 'candle-revised' | 'guides' | 'guides-incoherent' | 'styles' | 'sparse-mount' | 'range-fields';
128
+ /** One evaluated candle as the evidence keeps it, frozen: `[ts, open, high, low, close, volume]`. */
129
+ export type WrunCandleFingerprint = readonly [number, number, number, number, number, number];
130
+ /** A session's candle evidence: one fingerprint per evaluated timestamp, ascending (the newest evaluation of a bar
131
+ * replaces an older one: the forming bar's re-evaluations). Read only; it changes through the helpers below. */
132
+ export type WrunCandleEvidence = ReadonlyArray<WrunCandleFingerprint>;
133
+ /** What the proof reads of the candle evidence: the evaluated predecessors the span starts before the overlap (W of
134
+ * an exact warm-up session, 0 otherwise), the prefix run's evaluated candles (its hidden head, the window, the
135
+ * overlap; `[ts, open, high, low, close, volume, ...]` rows) and the mounted session's retained evidence
136
+ * (undefined when the session kept none: never proven). */
137
+ export interface WrunCandleEvidenceInput {
138
+ warmupBars: number;
139
+ prefix: ReadonlyArray<ArrayLike<number>>;
140
+ mounted: ReadonlyArray<ArrayLike<number>> | undefined;
141
+ }
142
+ /** The fingerprints of candle rows (`[ts, open, high, low, close, volume, ...]`), copied and frozen, ascending as
143
+ * given; a row without a finite timestamp is left out. Never shares a row with its input. */
144
+ export declare function wrunCandleFingerprintsOf(rows: ReadonlyArray<ArrayLike<number>>): WrunCandleFingerprint[];
145
+ /**
146
+ * The evidence after a live block evaluated `block` (ascending fingerprints from the block's first bar through its
147
+ * newest): every fingerprint at or after the block's first timestamp replaced by the block, the way the session's
148
+ * outputs merge a block (wrun-live-tick.util `mergeWrunOutputTail`): the kept head is one slice, walked back from the
149
+ * end, so a merge costs the tail, never a walk over the whole evidence. A new array: no reader of the old one sees it
150
+ * change. An empty block keeps the evidence as it is.
151
+ */
152
+ export declare function mergeWrunCandleEvidence(evidence: WrunCandleEvidence | undefined, block: ReadonlyArray<WrunCandleFingerprint>): WrunCandleFingerprint[];
153
+ /**
154
+ * The evidence after a prefix run landed: `block` (every candle the prefix guest evaluated, ascending: its hidden
155
+ * head, the page, the overlap), then the session's own fingerprints stamped after `throughTs` (the prefix window's
156
+ * last bar), found by one binary search and kept as one slice. A new array.
157
+ */
158
+ export declare function prependWrunCandleEvidence(block: ReadonlyArray<WrunCandleFingerprint>, evidence: WrunCandleEvidence | undefined, throughTs: number): WrunCandleFingerprint[];
159
+ /**
160
+ * The retained evidence against the chart's candles as they stand (C4: the whole retained range, never the span the
161
+ * overlap proof reads alone). `chartRows` are the chart's traded candles, ascending (`[ts, open, high, low, close,
162
+ * volume, ...]`). Compared over the evidence's range from the later of its first fingerprint and the chart's first
163
+ * candle up to `guardFromTs` (exclusive: the forming bar and the closed bars the live correction guard still
164
+ * re-reads, which the live tick re-evaluates itself): the two timestamp sets must be equal and every value
165
+ * `Object.is`-equal on open, high, low, close and volume; a landed fingerprint (at or after `landedFromTs`) the chart
166
+ * no longer holds is a difference too, and a hidden-head fingerprint before the chart's first candle is never read
167
+ * (the chart does not hold that bar). Ok, or `candle-revised` with the earliest difference and the words; the
168
+ * evidence is never rewritten with the chart's values.
169
+ */
170
+ export declare function proveWrunCandleEvidenceAgainstChart(input: {
171
+ evidence: WrunCandleEvidence | undefined;
172
+ chartRows: ReadonlyArray<ArrayLike<number>>;
173
+ landedFromTs: number;
174
+ guardFromTs: number;
175
+ }): {
176
+ ok: true;
177
+ } | Failure;
178
+ /**
179
+ * The candle evidence check alone (the first step of `proveWrunPrefixOverlap`, and the recheck a prefix commit runs
180
+ * against the evidence as it stands then): over the span from `warmupBars` mounted predecessors before the overlap's
181
+ * first timestamp through its last, the prefix run's evaluated candles must equal the mounted evidence, timestamp
182
+ * set and values (`Object.is` on all five). Ok, or `candle-revised` with its earliest timestamp and the words.
183
+ */
184
+ export declare function proveWrunCandleEvidence(input: {
185
+ overlapTs: ReadonlyArray<number>;
186
+ evidence: WrunCandleEvidenceInput;
187
+ }): {
188
+ ok: true;
189
+ } | Failure;
190
+ type Failure = {
191
+ ok: false;
192
+ reason: WrunPrefixOverlapMismatch;
193
+ firstMismatchTs: number | null;
194
+ detail: string | null;
195
+ };
196
+ /**
197
+ * Whether the prefix run's evidence equals the mounted evidence over the overlap: ok, or the first mismatch with its
198
+ * kind, its earliest timestamp and a plain-words detail. Validation only; the roster admits (see the module note).
199
+ */
200
+ export declare function proveWrunPrefixOverlap(input: {
201
+ overlapTs: ReadonlyArray<number>;
202
+ prefix: WrunPrefixEvidence;
203
+ mounted: WrunPrefixEvidence;
204
+ /** The candle evidence (D2): checked first when given; absent keeps the overlap check alone. */
205
+ candleEvidence?: WrunCandleEvidenceInput;
206
+ }): {
207
+ ok: true;
208
+ } | {
209
+ ok: false;
210
+ reason: WrunPrefixOverlapMismatch;
211
+ firstMismatchTs: number | null;
212
+ detail: string | null;
213
+ };
214
+ /**
215
+ * Whether a mismatch refuses the module (the prefix latch: every later page of the overlay's build runs whole) rather
216
+ * than the data: every kind but `candle-revised` (a candle the session's rows rest on was revised) and `lane` (the
217
+ * lanes the overlap ran on are not the session's), which hand the page to a full run and leave the session a
218
+ * candidate. A caller still refuses to latch when the session's mounted rows over the overlap may rest on inputs its
219
+ * buffers no longer hold (wrun-prefix-lanes.util `wrunPrefixOverlapUnproven`): then no output mismatch is the module's.
220
+ */
221
+ export declare function wrunPrefixMismatchLatches(reason: WrunPrefixOverlapMismatch | string): boolean;
222
+ /** A row as the snapshots read it: its timestamp and outputs (null on a row that was not ready). */
223
+ type WrunSnapshotRow = Pick<WrunPrefixEvidenceRow, 'outputs'>;
224
+ /** The last finite value a column holds over `rows` (NaN when none, or no column): a guide's constant, the rule the
225
+ * run result builds its `value` with (wrun-run-result `role: "guide"`). */
226
+ export declare function wrunLastFiniteOutput(rows: ReadonlyArray<WrunSnapshotRow>, index: number | undefined): number;
227
+ /** One guide output the mount shows, as the landing reads it. */
228
+ export interface WrunPrefixGuideSnapshot {
229
+ /** The output's name (its plot key). */
230
+ output: string;
231
+ /** The prefix run's last finite value for the column (NaN: none): the `value` its landing writes. */
232
+ prefix: number;
233
+ /** The mounted guide's own `value` (its keyed run output on the mount), as stored (undefined when absent). */
234
+ mounted: unknown;
235
+ /** The session rows' last finite value for the column (NaN: none). */
236
+ session: number;
237
+ }
238
+ /** A style derived from the run's last ready row: a width (`stroke_width_by`, `edge_width_by`), a price-tag flag
239
+ * (`show_price_display_by`), or null when the declaration's static key applies (no ready row, a value the binding
240
+ * never reads as a style). */
241
+ export type WrunPrefixDerivedStyle = number | boolean | null;
242
+ /** One last-row style binding of a sheet: where it reads, what it derives and whose plot it styles. */
243
+ export interface WrunPrefixStyleBinding {
244
+ /** `<output>.<key>` for an output's binding, `ranges[<at>].<key>` for a range's. */
245
+ binding: string;
246
+ /** The output column the binding names (undefined: it names no declared output, which the run result refuses). */
247
+ index: number | undefined;
248
+ /** `width`: finite and at or above 0, else the static width; `flag`: finite, nonzero = on, else the static key. */
249
+ kind: 'width' | 'flag';
250
+ /** The declaration it styles: an output by name, or a range by its place in `ranges` and its upper edge. */
251
+ owner: {
252
+ output: string;
253
+ } | {
254
+ range: number;
255
+ upper: string;
256
+ };
257
+ }
258
+ /** Every last-row style binding a sheet declares, in sheet order (the outputs', then the ranges'). A price-tag flag
259
+ * counts only under `price_display: "per_output"`, the one sheet where the run result reads it. */
260
+ export declare function wrunPrefixStyleBindingsOf(sheet: Pick<WrunIndicatorMetadata, 'outputs' | 'ranges' | 'price_display'>): WrunPrefixStyleBinding[];
261
+ /** The style a binding derives on `rows`: its column on the last ready row (the last row whose outputs are not
262
+ * null), read as the run result reads it (wrun-run-result `runWidth`, `priceDisplay`). */
263
+ export declare function wrunPrefixDerivedStyleOf(rows: ReadonlyArray<WrunSnapshotRow>, binding: Pick<WrunPrefixStyleBinding, 'index' | 'kind'>): WrunPrefixDerivedStyle;
264
+ /** One last-row style binding on both sides of a landing's rows. */
265
+ export interface WrunPrefixStyleSnapshot {
266
+ binding: string;
267
+ /** Derived on the prefix run's rows. */
268
+ prefix: WrunPrefixDerivedStyle;
269
+ /** Derived on the session's rows (what a whole run's style reads; the mounted plot's own is a plot field). */
270
+ session: WrunPrefixDerivedStyle;
271
+ }
272
+ /** One render field a landing writes onto a plot the mount shows (the module note's plot fields): the value the
273
+ * payload's output carries, read as the adapter reads it, and the value the plot shows now (its live-patched field,
274
+ * else its stored definition's), with the proof whose name a difference answers. */
275
+ export interface WrunPrefixPlotFieldSnapshot {
276
+ /** The plot key: an output's name, a range's `<upper>__range<at>`. */
277
+ key: string;
278
+ /** The render field: any key the render patch writes (`width`, `showPriceDisplay`, `colors`, `lineStyle`, `fill`,
279
+ * `multiValue`, ...). */
280
+ field: string;
281
+ /** `sparse-mount` for a sparse declaration's band fields, `range-fields` for a dense range's, `styles` for every
282
+ * other field. */
283
+ proof: 'styles' | 'sparse-mount' | 'range-fields';
284
+ payload: unknown;
285
+ mounted: unknown;
286
+ }
287
+ /**
288
+ * The guide, style and plot-field snapshots of a landing (the module note): ok, or the first mismatch, the guides,
289
+ * then the styles derived on the rows, then the plot fields, each in name order (`guides-incoherent` before `guides`
290
+ * on one guide; a plot field by its key, then its field), no timestamp (a run-level value).
291
+ */
292
+ export declare function proveWrunPrefixRunSnapshots(input: {
293
+ guides: ReadonlyArray<WrunPrefixGuideSnapshot>;
294
+ styles: ReadonlyArray<WrunPrefixStyleSnapshot>;
295
+ plots?: ReadonlyArray<WrunPrefixPlotFieldSnapshot>;
296
+ }): {
297
+ ok: true;
298
+ } | Failure;
299
+ /** One sparse declaration (`omit_if_empty`) at a landing. */
300
+ export interface WrunPrefixSparseDeclaration {
301
+ /** The plot key it mounts under: an output's name, a range's `<upper>__range<at>`. */
302
+ key: string;
303
+ /** The mount shows it now (a keyed plot of the overlay's parent or lower panes). */
304
+ shown: boolean;
305
+ /** The prefix result gives it a value (an output on some ready row; a range both edges on one row). */
306
+ given: boolean;
307
+ }
308
+ /**
309
+ * The sparse rule of a landing (the module note): ok with the declarations the payload must carry although the prefix
310
+ * result gave them no value (`carried`: shown and not given, in key order), or `sparse-mount` naming the first
311
+ * declaration (key order) the mount omitted while the prefix result gave it a value.
312
+ */
313
+ export declare function proveWrunPrefixSparseMount(declarations: ReadonlyArray<WrunPrefixSparseDeclaration>): {
314
+ ok: true;
315
+ carried: string[];
316
+ } | Failure;
317
+ export {};