@orangecharts/wrun-chart-host 0.2.0 → 0.3.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 (320) hide show
  1. package/README.md +14 -6
  2. package/dist/constants/common.constants.d.ts +15 -0
  3. package/dist/constants/common.constants.js +23 -0
  4. package/dist/constants/data-source.constants.d.ts +1 -0
  5. package/dist/constants/data-source.constants.js +1 -0
  6. package/dist/constants/economic.constants.d.ts +39 -0
  7. package/dist/constants/economic.constants.js +77 -0
  8. package/dist/constants/etf-covered-coins.constants.d.ts +1 -0
  9. package/dist/constants/etf-covered-coins.constants.js +9 -0
  10. package/dist/constants/feature-flags.constants.d.ts +60 -0
  11. package/dist/constants/feature-flags.constants.js +308 -0
  12. package/dist/constants/feature-limits.constants.d.ts +134 -0
  13. package/dist/constants/feature-limits.constants.js +155 -0
  14. package/dist/constants/marketCapabilities.constants.d.ts +87 -0
  15. package/dist/constants/marketCapabilities.constants.js +213 -0
  16. package/dist/constants/option-venues.constants.d.ts +100 -0
  17. package/dist/constants/option-venues.constants.js +167 -0
  18. package/dist/constants/overlay-data.constants.d.ts +53 -0
  19. package/dist/constants/overlay-data.constants.js +80 -0
  20. package/dist/constants/pane-grid.constants.d.ts +15 -0
  21. package/dist/constants/pane-grid.constants.js +17 -0
  22. package/dist/constants/venue-presets.constants.d.ts +10 -0
  23. package/dist/constants/venue-presets.constants.js +22 -0
  24. package/dist/enums/chart.enum.d.ts +68 -0
  25. package/dist/enums/chart.enum.js +70 -0
  26. package/dist/helpers/data.helpers.d.ts +2 -0
  27. package/dist/helpers/data.helpers.js +14 -0
  28. package/dist/host-env.d.ts +161 -5
  29. package/dist/host-ports.types.d.ts +446 -0
  30. package/dist/host-ports.types.js +1 -0
  31. package/dist/index.d.ts +128 -0
  32. package/dist/index.js +128 -0
  33. package/dist/indicators/controls/technical-script/technical-script-input-rendering.d.ts +86 -0
  34. package/dist/indicators/controls/technical-script/technical-script-input-rendering.js +179 -0
  35. package/dist/interfaces/asset-venue.interface.d.ts +91 -0
  36. package/dist/interfaces/asset-venue.interface.js +1 -0
  37. package/dist/interfaces/cancel-reason.interface.d.ts +24 -0
  38. package/dist/interfaces/cancel-reason.interface.js +2 -0
  39. package/dist/interfaces/catalog-display.interface.d.ts +3 -0
  40. package/dist/interfaces/catalog-display.interface.js +1 -0
  41. package/dist/interfaces/cme-realtime.interface.d.ts +251 -0
  42. package/dist/interfaces/cme-realtime.interface.js +46 -0
  43. package/dist/interfaces/feed.interface.d.ts +80 -0
  44. package/dist/interfaces/feed.interface.js +7 -0
  45. package/dist/interfaces/market-kind.interface.d.ts +8 -0
  46. package/dist/interfaces/market-kind.interface.js +1 -0
  47. package/dist/interfaces/opra-realtime.interface.d.ts +224 -0
  48. package/dist/interfaces/opra-realtime.interface.js +105 -0
  49. package/dist/interfaces/option-instrument.interface.d.ts +32 -0
  50. package/dist/interfaces/option-instrument.interface.js +1 -0
  51. package/dist/interfaces/options-chain-scope.interface.d.ts +29 -0
  52. package/dist/interfaces/options-chain-scope.interface.js +7 -0
  53. package/dist/interfaces/prediction-market.interface.d.ts +88 -0
  54. package/dist/interfaces/prediction-market.interface.js +8 -0
  55. package/dist/interfaces/wrun-runtime.interface.d.ts +5 -0
  56. package/dist/kscript-data/controls/live-trades-merge.util.d.ts +185 -0
  57. package/dist/kscript-data/controls/live-trades-merge.util.js +357 -0
  58. package/dist/settings-templates/frvp-fields.d.ts +27 -0
  59. package/dist/settings-templates/frvp-fields.js +108 -0
  60. package/dist/settings-templates/index.d.ts +119 -0
  61. package/dist/settings-templates/index.js +442 -0
  62. package/dist/settings-templates/indicator-fields.d.ts +56 -0
  63. package/dist/settings-templates/indicator-fields.js +793 -0
  64. package/dist/settings-templates/tool-rules.d.ts +59 -0
  65. package/dist/settings-templates/tool-rules.js +49 -0
  66. package/dist/settings-templates/tool-tables.generated.d.ts +2 -0
  67. package/dist/settings-templates/tool-tables.generated.js +1668 -0
  68. package/dist/utility/blk-market.util.d.ts +5 -0
  69. package/dist/utility/blk-market.util.js +12 -0
  70. package/dist/utility/chart/chart-load-phase.util.d.ts +32 -0
  71. package/dist/utility/chart/chart-load-phase.util.js +78 -0
  72. package/dist/utility/chart/cme-cache-context.util.d.ts +108 -0
  73. package/dist/utility/chart/cme-cache-context.util.js +166 -0
  74. package/dist/utility/chart/cme-session-bucket.util.d.ts +82 -0
  75. package/dist/utility/chart/cme-session-bucket.util.js +343 -0
  76. package/dist/utility/chart/cme-trade-calendar.util.d.ts +26 -0
  77. package/dist/utility/chart/cme-trade-calendar.util.js +147 -0
  78. package/dist/utility/chart/continuous-contracts.util.d.ts +138 -0
  79. package/dist/utility/chart/continuous-contracts.util.js +374 -0
  80. package/dist/utility/chart/feed-interval.util.d.ts +119 -0
  81. package/dist/utility/chart/feed-interval.util.js +321 -0
  82. package/dist/utility/chart/fetch-dedupe-policy.util.d.ts +110 -0
  83. package/dist/utility/chart/fetch-dedupe-policy.util.js +407 -0
  84. package/dist/utility/chart/footprint-band.util.d.ts +76 -0
  85. package/dist/utility/chart/footprint-band.util.js +205 -0
  86. package/dist/utility/chart/footprint-cell-identity.util.d.ts +82 -0
  87. package/dist/utility/chart/footprint-cell-identity.util.js +346 -0
  88. package/dist/utility/chart/formula-calendar.util.d.ts +27 -0
  89. package/dist/utility/chart/formula-calendar.util.js +59 -0
  90. package/dist/utility/chart/history-wall.util.d.ts +67 -0
  91. package/dist/utility/chart/history-wall.util.js +87 -0
  92. package/dist/utility/chart/index-mode.util.d.ts +66 -0
  93. package/dist/utility/chart/index-mode.util.js +360 -0
  94. package/dist/utility/chart/indicator-coverage-planner.util.d.ts +217 -0
  95. package/dist/utility/chart/indicator-coverage-planner.util.js +443 -0
  96. package/dist/utility/chart/indicator-coverage-state.util.d.ts +33 -0
  97. package/dist/utility/chart/indicator-coverage-state.util.js +110 -0
  98. package/dist/utility/chart/indicator-gap-detector.util.d.ts +127 -0
  99. package/dist/utility/chart/indicator-gap-detector.util.js +260 -0
  100. package/dist/utility/chart/indicator-gap-repair.util.d.ts +88 -0
  101. package/dist/utility/chart/indicator-gap-repair.util.js +177 -0
  102. package/dist/utility/chart/indicator-inflight-registry.util.d.ts +26 -0
  103. package/dist/utility/chart/indicator-inflight-registry.util.js +254 -0
  104. package/dist/utility/chart/interval-registry.util.d.ts +23 -0
  105. package/dist/utility/chart/interval-registry.util.js +83 -0
  106. package/dist/utility/chart/kscript-main-grid-stages.util.d.ts +21 -0
  107. package/dist/utility/chart/kscript-main-grid-stages.util.js +332 -0
  108. package/dist/utility/chart/legacy-exchange.leaf.d.ts +11 -0
  109. package/dist/utility/chart/legacy-exchange.leaf.js +43 -0
  110. package/dist/utility/chart/live-bucket.util.d.ts +66 -0
  111. package/dist/utility/chart/live-bucket.util.js +165 -0
  112. package/dist/utility/chart/market-session-schedule.util.d.ts +91 -0
  113. package/dist/utility/chart/market-session-schedule.util.js +337 -0
  114. package/dist/utility/chart/marketKind.util.d.ts +181 -0
  115. package/dist/utility/chart/marketKind.util.js +371 -0
  116. package/dist/utility/chart/opra-read-access.leaf.d.ts +26 -0
  117. package/dist/utility/chart/opra-read-access.leaf.js +25 -0
  118. package/dist/utility/chart/prediction-identity.util.d.ts +159 -0
  119. package/dist/utility/chart/prediction-identity.util.js +236 -0
  120. package/dist/utility/chart/rth-session.util.d.ts +352 -0
  121. package/dist/utility/chart/rth-session.util.js +926 -0
  122. package/dist/utility/chart/titan-constants.pin.d.ts +43 -0
  123. package/dist/utility/chart/titan-constants.pin.js +50 -0
  124. package/dist/utility/chart/us-equities-session.util.d.ts +127 -0
  125. package/dist/utility/chart/us-equities-session.util.js +251 -0
  126. package/dist/utility/chart/wrun-bar-session-facts.util.d.ts +100 -0
  127. package/dist/utility/chart/wrun-bar-session-facts.util.js +354 -0
  128. package/dist/utility/chart/wrun-wire-ref.util.d.ts +23 -0
  129. package/dist/utility/chart/wrun-wire-ref.util.js +16 -0
  130. package/dist/utility/common/safe-math-eval.d.ts +18 -0
  131. package/dist/utility/common/safe-math-eval.js +160 -0
  132. package/dist/utility/common/time.util.d.ts +134 -0
  133. package/dist/utility/common/time.util.js +428 -0
  134. package/dist/utility/common/transformations.util.d.ts +126 -0
  135. package/dist/utility/common/transformations.util.js +711 -0
  136. package/dist/utility/common/visible-timeout.util.d.ts +17 -0
  137. package/dist/utility/common/visible-timeout.util.js +75 -0
  138. package/dist/utility/exchange-normalization.util.d.ts +8 -0
  139. package/dist/utility/exchange-normalization.util.js +32 -0
  140. package/dist/utility/intl-locale.util.d.ts +2 -0
  141. package/dist/utility/intl-locale.util.js +28 -0
  142. package/dist/utility/number-format.util.d.ts +14 -1
  143. package/dist/utility/number-format.util.js +50 -19
  144. package/dist/utility/options/option-symbol.util.d.ts +28 -0
  145. package/dist/utility/options/option-symbol.util.js +176 -0
  146. package/dist/utility/options/option-trade-units.util.d.ts +190 -0
  147. package/dist/utility/options/option-trade-units.util.js +283 -0
  148. package/dist/utility/options/option-venue.util.d.ts +75 -0
  149. package/dist/utility/options/option-venue.util.js +85 -0
  150. package/dist/utility/pool-symbol.leaf.d.ts +34 -0
  151. package/dist/utility/pool-symbol.leaf.js +95 -0
  152. package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.d.ts +109 -0
  153. package/dist/utility/scriptEditor/wrun-runtime-diagnostics.leaf.js +302 -0
  154. package/dist/utility/symbol-selection/contract-expiry.util.d.ts +39 -0
  155. package/dist/utility/symbol-selection/contract-expiry.util.js +111 -0
  156. package/dist/utility/v2/gate-plane.util.d.ts +58 -0
  157. package/dist/utility/v2/gate-plane.util.js +99 -0
  158. package/dist/utility/v2/gate-session-latch.util.d.ts +22 -0
  159. package/dist/utility/v2/gate-session-latch.util.js +34 -0
  160. package/dist/utility/watchlist/import/tradingview-symbols.leaf.d.ts +76 -0
  161. package/dist/utility/watchlist/import/tradingview-symbols.leaf.js +221 -0
  162. package/dist/utility/wrun/sources/host-grid-landing.d.ts +15 -0
  163. package/dist/utility/wrun/sources/host-grid-landing.js +26 -0
  164. package/dist/utility/wrun/sources/lanes/bitfinex_funding.d.ts +27 -0
  165. package/dist/utility/wrun/sources/lanes/bitfinex_funding.js +85 -0
  166. package/dist/utility/wrun/sources/lanes/economic.d.ts +27 -0
  167. package/dist/utility/wrun/sources/lanes/economic.js +79 -0
  168. package/dist/utility/wrun/sources/lanes/etf_holdings.d.ts +35 -0
  169. package/dist/utility/wrun/sources/lanes/etf_holdings.js +165 -0
  170. package/dist/utility/wrun/sources/lanes/etf_premium.d.ts +19 -0
  171. package/dist/utility/wrun/sources/lanes/etf_premium.js +114 -0
  172. package/dist/utility/wrun/sources/lanes/ethena_positions.d.ts +30 -0
  173. package/dist/utility/wrun/sources/lanes/ethena_positions.js +51 -0
  174. package/dist/utility/wrun/sources/lanes/index.d.ts +2 -0
  175. package/dist/utility/wrun/sources/lanes/index.js +32 -0
  176. package/dist/utility/wrun/sources/lanes/long_short_ratio.d.ts +17 -0
  177. package/dist/utility/wrun/sources/lanes/long_short_ratio.js +47 -0
  178. package/dist/utility/wrun/sources/lanes/option_daily.d.ts +30 -0
  179. package/dist/utility/wrun/sources/lanes/option_daily.js +53 -0
  180. package/dist/utility/wrun/sources/lanes/option_stats_10m.d.ts +23 -0
  181. package/dist/utility/wrun/sources/lanes/option_stats_10m.js +20 -0
  182. package/dist/utility/wrun/sources/lanes/options_flow.d.ts +50 -0
  183. package/dist/utility/wrun/sources/lanes/options_flow.js +155 -0
  184. package/dist/utility/wrun/sources/lanes/options_oi.d.ts +29 -0
  185. package/dist/utility/wrun/sources/lanes/options_oi.js +59 -0
  186. package/dist/utility/wrun/sources/lanes/options_volume.d.ts +38 -0
  187. package/dist/utility/wrun/sources/lanes/options_volume.js +63 -0
  188. package/dist/utility/wrun/sources/lanes/series.d.ts +67 -0
  189. package/dist/utility/wrun/sources/lanes/series.js +321 -0
  190. package/dist/utility/wrun/sources/lanes/token_supply.d.ts +30 -0
  191. package/dist/utility/wrun/sources/lanes/token_supply.js +145 -0
  192. package/dist/utility/wrun/sources/lanes/treasury_balance.d.ts +25 -0
  193. package/dist/utility/wrun/sources/lanes/treasury_balance.js +47 -0
  194. package/dist/utility/wrun/sources/lanes/volatility_index.d.ts +21 -0
  195. package/dist/utility/wrun/sources/lanes/volatility_index.js +11 -0
  196. package/dist/utility/wrun/sources/opra-option-lanes.util.d.ts +196 -0
  197. package/dist/utility/wrun/sources/opra-option-lanes.util.js +446 -0
  198. package/dist/utility/wrun/sources/registry.d.ts +21 -0
  199. package/dist/utility/wrun/sources/registry.js +207 -0
  200. package/dist/utility/wrun/sources/row-lane-registry.d.ts +28 -0
  201. package/dist/utility/wrun/sources/row-lane-registry.js +230 -0
  202. package/dist/utility/wrun/sources/row-lanes/index.d.ts +2 -0
  203. package/dist/utility/wrun/sources/row-lanes/index.js +12 -0
  204. package/dist/utility/wrun/sources/row-lanes/option_contract_flow.d.ts +2 -0
  205. package/dist/utility/wrun/sources/row-lanes/option_contract_flow.js +38 -0
  206. package/dist/utility/wrun/sources/row-lanes/option_contract_state.d.ts +6 -0
  207. package/dist/utility/wrun/sources/row-lanes/option_contract_state.js +70 -0
  208. package/dist/utility/wrun/sources/row-lanes/option_prints.d.ts +4 -0
  209. package/dist/utility/wrun/sources/row-lanes/option_prints.js +191 -0
  210. package/dist/utility/wrun/sources/row-lanes/option_strikes.d.ts +13 -0
  211. package/dist/utility/wrun/sources/row-lanes/option_strikes.js +137 -0
  212. package/dist/utility/wrun/sources/row-lanes/option_surface.d.ts +38 -0
  213. package/dist/utility/wrun/sources/row-lanes/option_surface.js +150 -0
  214. package/dist/utility/wrun/sources/wrun-poll-lane.types.d.ts +275 -0
  215. package/dist/utility/wrun/sources/wrun-poll-lane.types.js +26 -0
  216. package/dist/utility/wrun/sources/wrun-poll-lanes.util.d.ts +224 -0
  217. package/dist/utility/wrun/sources/wrun-poll-lanes.util.js +394 -0
  218. package/dist/utility/wrun/sources/wrun-row-lane.types.d.ts +283 -0
  219. package/dist/utility/wrun/sources/wrun-row-lane.types.js +16 -0
  220. package/dist/utility/wrun/sources/wrun-row-lanes.util.d.ts +205 -0
  221. package/dist/utility/wrun/sources/wrun-row-lanes.util.js +469 -0
  222. package/dist/utility/wrun/wrun-browser-sources.leaf.d.ts +28 -0
  223. package/dist/utility/wrun/wrun-browser-sources.leaf.js +66 -0
  224. package/dist/utility/wrun/wrun-cloud-record.util.d.ts +65 -0
  225. package/dist/utility/wrun/wrun-cloud-record.util.js +121 -0
  226. package/dist/utility/wrun/wrun-daily-lane.util.d.ts +95 -0
  227. package/dist/utility/wrun/wrun-daily-lane.util.js +297 -0
  228. package/dist/utility/wrun/wrun-deadline.util.d.ts +52 -0
  229. package/dist/utility/wrun/wrun-deadline.util.js +82 -0
  230. package/dist/utility/wrun/wrun-etf-flow-lane.util.d.ts +94 -0
  231. package/dist/utility/wrun/wrun-etf-flow-lane.util.js +224 -0
  232. package/dist/utility/wrun/wrun-etf-funds.util.d.ts +82 -0
  233. package/dist/utility/wrun/wrun-etf-funds.util.js +242 -0
  234. package/dist/utility/wrun/wrun-frames.d.ts +20 -1
  235. package/dist/utility/wrun/wrun-frames.js +103 -49
  236. package/dist/utility/wrun/wrun-hosted-wire-caps.d.ts +2 -2
  237. package/dist/utility/wrun/wrun-hosted-wire-caps.js +27 -0
  238. package/dist/utility/wrun/wrun-lane-refusal.leaf.d.ts +22 -0
  239. package/dist/utility/wrun/wrun-lane-refusal.leaf.js +32 -0
  240. package/dist/utility/wrun/wrun-lane-warmup.util.d.ts +18 -0
  241. package/dist/utility/wrun/wrun-lane-warmup.util.js +112 -0
  242. package/dist/utility/wrun/wrun-leg-close.util.d.ts +57 -0
  243. package/dist/utility/wrun/wrun-leg-close.util.js +187 -0
  244. package/dist/utility/wrun/wrun-leg-fetch.util.d.ts +144 -0
  245. package/dist/utility/wrun/wrun-leg-fetch.util.js +212 -0
  246. package/dist/utility/wrun/wrun-leg-stream-classes.d.ts +73 -0
  247. package/dist/utility/wrun/wrun-leg-stream-classes.js +86 -0
  248. package/dist/utility/wrun/wrun-levels-child.util.d.ts +101 -6
  249. package/dist/utility/wrun/wrun-levels-child.util.js +335 -157
  250. package/dist/utility/wrun/wrun-memory-clamp.util.d.ts +33 -0
  251. package/dist/utility/wrun/wrun-memory-clamp.util.js +146 -0
  252. package/dist/utility/wrun/wrun-odds-template-market.util.d.ts +51 -0
  253. package/dist/utility/wrun/wrun-odds-template-market.util.js +251 -0
  254. package/dist/utility/wrun/wrun-opra-flow.leaf.d.ts +65 -0
  255. package/dist/utility/wrun/wrun-opra-flow.leaf.js +94 -0
  256. package/dist/utility/wrun/wrun-opra-lane.util.d.ts +47 -0
  257. package/dist/utility/wrun/wrun-opra-lane.util.js +58 -0
  258. package/dist/utility/wrun/wrun-opra-stats.leaf.d.ts +30 -0
  259. package/dist/utility/wrun/wrun-opra-stats.leaf.js +96 -0
  260. package/dist/utility/wrun/wrun-opra-underlying.util.d.ts +12 -0
  261. package/dist/utility/wrun/wrun-opra-underlying.util.js +1 -0
  262. package/dist/utility/wrun/wrun-option-contract-flow.util.d.ts +142 -0
  263. package/dist/utility/wrun/wrun-option-contract-flow.util.js +451 -0
  264. package/dist/utility/wrun/wrun-option-knobs.util.d.ts +43 -0
  265. package/dist/utility/wrun/wrun-option-knobs.util.js +81 -0
  266. package/dist/utility/wrun/wrun-option-prints.util.d.ts +144 -0
  267. package/dist/utility/wrun/wrun-option-prints.util.js +356 -0
  268. package/dist/utility/wrun/wrun-option-summary-lane.util.d.ts +102 -0
  269. package/dist/utility/wrun/wrun-option-summary-lane.util.js +143 -0
  270. package/dist/utility/wrun/wrun-options-chain.util.d.ts +308 -0
  271. package/dist/utility/wrun/wrun-options-chain.util.js +502 -0
  272. package/dist/utility/wrun/wrun-overlay-identity.util.d.ts +9 -4
  273. package/dist/utility/wrun/wrun-overlay-identity.util.js +16 -6
  274. package/dist/utility/wrun/wrun-param-map.util.d.ts +298 -0
  275. package/dist/utility/wrun/wrun-param-map.util.js +581 -0
  276. package/dist/utility/wrun/wrun-pin-spelling.util.d.ts +149 -0
  277. package/dist/utility/wrun/wrun-pin-spelling.util.js +523 -0
  278. package/dist/utility/wrun/wrun-pin-venues.util.d.ts +116 -0
  279. package/dist/utility/wrun/wrun-pin-venues.util.js +320 -0
  280. package/dist/utility/wrun/wrun-pinned-interval.util.d.ts +20 -0
  281. package/dist/utility/wrun/wrun-pinned-interval.util.js +47 -0
  282. package/dist/utility/wrun/wrun-present-bits.util.d.ts +37 -0
  283. package/dist/utility/wrun/wrun-present-bits.util.js +73 -0
  284. package/dist/utility/wrun/wrun-protocol-pending.util.d.ts +33 -0
  285. package/dist/utility/wrun/wrun-protocol-pending.util.js +57 -0
  286. package/dist/utility/wrun/wrun-refusal.util.d.ts +41 -1
  287. package/dist/utility/wrun/wrun-refusal.util.js +69 -2
  288. package/dist/utility/wrun/wrun-registry-errors.util.d.ts +1 -14
  289. package/dist/utility/wrun/wrun-registry-errors.util.js +0 -16
  290. package/dist/utility/wrun/wrun-row-source.d.ts +158 -0
  291. package/dist/utility/wrun/wrun-row-source.js +75 -0
  292. package/dist/utility/wrun/wrun-run-health.util.d.ts +155 -0
  293. package/dist/utility/wrun/wrun-run-health.util.js +273 -0
  294. package/dist/utility/wrun/wrun-socket-row-source.d.ts +439 -0
  295. package/dist/utility/wrun/wrun-socket-row-source.js +1689 -0
  296. package/dist/utility/wrun/wrun-socket-session-losses.util.d.ts +18 -0
  297. package/dist/utility/wrun/wrun-socket-session-losses.util.js +25 -0
  298. package/dist/utility/wrun/wrun-source-rows.util.d.ts +911 -0
  299. package/dist/utility/wrun/wrun-source-rows.util.js +2597 -0
  300. package/dist/utility/wrun/wrun-tape-source.util.d.ts +82 -0
  301. package/dist/utility/wrun/wrun-tape-source.util.js +151 -0
  302. package/dist/utility/wrun/wrun-tier-grid.util.d.ts +137 -0
  303. package/dist/utility/wrun/wrun-tier-grid.util.js +279 -0
  304. package/dist/utility/wrun/wrun-trades-lane.util.d.ts +52 -0
  305. package/dist/utility/wrun/wrun-trades-lane.util.js +58 -0
  306. package/dist/utility/wrun/wrun-volume-profile-lane.util.d.ts +41 -0
  307. package/dist/utility/wrun/wrun-volume-profile-lane.util.js +66 -0
  308. package/dist/utility/wrun-display-name.util.d.ts +33 -0
  309. package/dist/utility/wrun-display-name.util.js +64 -0
  310. package/dist/workers/constants/kscript-transport-codes.d.ts +15 -0
  311. package/dist/workers/constants/kscript-transport-codes.js +15 -0
  312. package/dist/workers/constants/socket-slots.d.ts +574 -0
  313. package/dist/workers/constants/socket-slots.js +539 -0
  314. package/dist/workers/utils/number.worker.util.d.ts +5 -0
  315. package/dist/workers/utils/number.worker.util.js +10 -0
  316. package/dist/workers/utils/time.worker.util.d.ts +12 -0
  317. package/dist/workers/utils/time.worker.util.js +24 -0
  318. package/dist/workers/utils/volume-profile.worker.util.d.ts +200 -0
  319. package/dist/workers/utils/volume-profile.worker.util.js +631 -0
  320. package/package.json +10 -4
@@ -0,0 +1,321 @@
1
+ /**
2
+ * The feed interval rule (LIVE-SERIES-CONTRACTS C4) and the row shapes the
3
+ * feed indicator commits to the chart. Pure: no stores, no clocks.
4
+ *
5
+ * Rule: a feed whose cadence is irregular (`cadence_s === 0`) or at least as
6
+ * long as the chart interval draws its RAW rows at their own timestamps, one
7
+ * point per reading, straight segments between them, never snapped to a
8
+ * candle and never carried forward. A coarser chart asks the relay for BARS
9
+ * regrouped on the chart interval (C2 `bars?interval_s=`), drawn as a line of
10
+ * closes or, with `plot: 'candles'`, as the bars themselves. The relay
11
+ * regroups on its eight chart intervals only; a chart interval it does not
12
+ * serve (2h, 3D, 1M) asks the largest one that fits inside a chart bar, and
13
+ * when that is no wider than the cadence the raw rows are the same picture,
14
+ * so they are drawn instead.
15
+ *
16
+ * Rows travel in milliseconds on the chart (`[ts_ms, value]`, or
17
+ * `[ts_ms, open, high, low, close]` for candles); a null or state cell is
18
+ * NaN, which the line draws as a gap (`nanColumnPolicy: 'gap'`).
19
+ *
20
+ * P3 (LIVE-SERIES-P3-CONTRACTS C10):
21
+ * - Exact interval: a feed whose head says `exact_interval` draws only on a
22
+ * chart of its own cadence; on any other interval it draws nothing and says
23
+ * so (`chooseFeedPlan`), decided before the rows-or-bars choice.
24
+ * - Weeks start Monday 00:00 UTC, the relay's buckets (`feedBucketStartSec`).
25
+ * - A stream reading folds into the held rows (`foldFeedReading`): the slot it
26
+ * names updates in place, a new slot appends. The stream is not a complete
27
+ * copy (the relay samples a push to its newest row, and a catch-up replays the
28
+ * newest 2,000 rows): a reading more than one slot past the newest contiguous
29
+ * row (`feedReadingSkipsSlot`) means rows nobody read, which a rows read fills
30
+ * (`mergeFeedRowsBySlot`) before the session's cursor moves past them.
31
+ * - A line on bars draws the relay's `combined` value (position 6, the value's
32
+ * rule over the bucket) when the bar carries one, else the close; a stream
33
+ * reading folds into a bar only for a value combining by `last`.
34
+ */
35
+ import { Intervals } from '../../constants/interval.constants.js';
36
+ /** C2: the intervals the relay regroups bars on, ascending. */
37
+ export const FEED_BAR_INTERVALS_S = [60, 300, 900, 1_800, 3_600, 14_400, 86_400, 604_800];
38
+ /** C4 poll: never more often than this. */
39
+ export const FEED_POLL_FLOOR_S = 10;
40
+ /** Bars of history a first read reaches back when the chart's candles have not landed yet. */
41
+ export const FEED_DEFAULT_LOOKBACK_BARS = 1_000;
42
+ /** C4: true when the feed draws its raw rows at their own timestamps on this chart interval. */
43
+ export function feedDrawsRows(cadenceS, chartIntervalMs) {
44
+ if (!(cadenceS > 0))
45
+ return true;
46
+ return chartIntervalMs <= cadenceS * 1_000;
47
+ }
48
+ /** What to ask the relay for on this chart interval: the rows, or bars on one of its intervals. */
49
+ export function chooseFeedRequest(cadenceS, chartIntervalMs) {
50
+ if (feedDrawsRows(cadenceS, chartIntervalMs))
51
+ return { kind: 'rows' };
52
+ let intervalS = 0;
53
+ for (const candidate of FEED_BAR_INTERVALS_S) {
54
+ if (candidate * 1_000 <= chartIntervalMs)
55
+ intervalS = candidate;
56
+ }
57
+ if (intervalS <= cadenceS)
58
+ return { kind: 'rows' };
59
+ return { kind: 'bars', interval_s: intervalS };
60
+ }
61
+ /** Two requests ask for the same thing (a regroup on the same interval, or the rows). */
62
+ export function sameFeedRequest(a, b) {
63
+ if (!a || !b)
64
+ return a === b;
65
+ if (a.kind !== b.kind)
66
+ return false;
67
+ return a.kind === 'rows' || (b.kind === 'bars' && a.interval_s === b.interval_s);
68
+ }
69
+ /** C4 poll period: every `max(10, cadence_s / 2)` seconds (irregular feeds every 10 s). */
70
+ export function feedPollPeriodMs(cadenceS) {
71
+ const cadence = cadenceS > 0 ? cadenceS : 0;
72
+ return Math.max(FEED_POLL_FLOOR_S, cadence / 2) * 1_000;
73
+ }
74
+ const WEEK_S = 604_800;
75
+ /** 1970-01-05 00:00 UTC, the first Monday after the epoch (a Thursday). */
76
+ const FIRST_MONDAY_S = 4 * 86_400;
77
+ /**
78
+ * The UTC bucket a timestamp falls in, seconds: the relay's regroup, `floor(ts / interval_s)`,
79
+ * except that weeks start Monday 00:00 UTC as the relay's (and the chart's weekly candles) do.
80
+ */
81
+ export function feedBucketStartSec(tsSec, intervalS) {
82
+ if (intervalS > 0 && intervalS % WEEK_S === 0) {
83
+ return Math.floor((tsSec - FIRST_MONDAY_S) / intervalS) * intervalS + FIRST_MONDAY_S;
84
+ }
85
+ return Math.floor(tsSec / intervalS) * intervalS;
86
+ }
87
+ // ── Exact interval and the legend hint (P3 C10) ─────────────────────────────
88
+ /** An exact-interval feed on a chart of another interval: it draws nothing there. */
89
+ export function feedExactIntervalBlocks(exactInterval, cadenceS, chartIntervalMs) {
90
+ return exactInterval === true && cadenceS > 0 && chartIntervalMs > 0 && chartIntervalMs !== cadenceS * 1_000;
91
+ }
92
+ /** What the pane does on this chart interval: nothing (an exact-interval feed elsewhere), else rows or bars. */
93
+ export function chooseFeedPlan(cadenceS, chartIntervalMs, exactInterval) {
94
+ if (feedExactIntervalBlocks(exactInterval, cadenceS, chartIntervalMs))
95
+ return { kind: 'exact-only', cadence_s: cadenceS };
96
+ return chooseFeedRequest(cadenceS, chartIntervalMs);
97
+ }
98
+ /** The legend's hint ("hourly on a 1m chart"): a feed slower than the chart, drawn at its own stamps. */
99
+ export function feedCadenceHintApplies(cadenceS, chartIntervalMs, exactInterval) {
100
+ if (!(cadenceS > 0) || !(chartIntervalMs > 0) || cadenceS * 1_000 <= chartIntervalMs)
101
+ return false;
102
+ return !feedExactIntervalBlocks(exactInterval, cadenceS, chartIntervalMs);
103
+ }
104
+ /** A span of seconds as a chart interval label: `1m`, `15m`, `1h`, `4h`, `1d`, `1w`; whole seconds otherwise. */
105
+ export function feedIntervalLabel(seconds) {
106
+ const span = Number.isFinite(seconds) ? Math.max(0, Math.round(seconds)) : 0;
107
+ if (span > 0 && span % WEEK_S === 0)
108
+ return `${span / WEEK_S}w`;
109
+ if (span > 0 && span % 86_400 === 0)
110
+ return `${span / 86_400}d`;
111
+ if (span > 0 && span % 3_600 === 0)
112
+ return `${span / 3_600}h`;
113
+ if (span > 0 && span % 60 === 0)
114
+ return `${span / 60}m`;
115
+ return `${span}s`;
116
+ }
117
+ /** The chart interval a cadence switches to (a label the chart's interval list holds), or null. */
118
+ export function feedChartIntervalFor(cadenceS) {
119
+ if (!(cadenceS > 0))
120
+ return null;
121
+ const label = feedIntervalLabel(cadenceS);
122
+ const units = Intervals.map_unit;
123
+ return units[label] === cadenceS * 1_000 ? label : null;
124
+ }
125
+ /** The chart's own interval as a label (`1m`, `4h`, `1d`), from its milliseconds. */
126
+ export function feedChartIntervalLabel(chartIntervalMs) {
127
+ const units = Intervals.map_unit;
128
+ for (const label of Intervals.INTERVAL_ORDER)
129
+ if (units[label] === chartIntervalMs)
130
+ return label;
131
+ return feedIntervalLabel(chartIntervalMs / 1_000);
132
+ }
133
+ /**
134
+ * The window a full read covers, seconds: from one cadence (or one bar)
135
+ * before the first candle, so the line enters from the left edge, to now.
136
+ * The newest row is always inside, so a slow feed on a short chart still
137
+ * shows its value.
138
+ */
139
+ export function feedFetchWindow(input) {
140
+ const nowSec = Math.ceil(input.nowMs / 1_000);
141
+ const firstSec = input.mainFirstMs !== null && Number.isFinite(input.mainFirstMs)
142
+ ? Math.floor(input.mainFirstMs / 1_000)
143
+ : Math.floor((input.nowMs - FEED_DEFAULT_LOOKBACK_BARS * Math.max(1, input.chartIntervalMs)) / 1_000);
144
+ const reachS = input.request.kind === 'bars' ? input.request.interval_s : Math.max(0, input.cadenceS);
145
+ let fromSec = firstSec - reachS;
146
+ if (input.request.kind === 'bars')
147
+ fromSec = feedBucketStartSec(fromSec, input.request.interval_s);
148
+ if (typeof input.lastTs === 'number' && Number.isFinite(input.lastTs) && input.lastTs < fromSec) {
149
+ fromSec = input.request.kind === 'bars' ? feedBucketStartSec(input.lastTs, input.request.interval_s) : input.lastTs;
150
+ }
151
+ return { fromSec: Math.max(0, fromSec), toSec: nowSec };
152
+ }
153
+ const cell = (value) => (typeof value === 'number' && Number.isFinite(value) ? value : Number.NaN);
154
+ /** Wire rows to chart rows `[ts_ms, value]` (the first value key; null and state cells read NaN), ascending, one per stamp. */
155
+ export function feedRowsToSeries(rows) {
156
+ const series = rows
157
+ .filter((row) => Array.isArray(row) && typeof row[0] === 'number' && Number.isFinite(row[0]))
158
+ .map((row) => [row[0] * 1_000, cell(row[1])]);
159
+ return dedupeAscending(series);
160
+ }
161
+ /**
162
+ * Wire bars to chart rows: `[ts_ms, value]` for a line, `[ts_ms, open, high, low, close]` for
163
+ * candles. A line's value is the bar's `combined` (position 6, P3 C7: the value's rule over the
164
+ * bucket, a sum for a volume) when the bar carries one, else its close (position 4).
165
+ */
166
+ export function feedBarsToSeries(bars, plot) {
167
+ const series = bars
168
+ .filter((bar) => Array.isArray(bar) && typeof bar[0] === 'number' && Number.isFinite(bar[0]))
169
+ .map((bar) => {
170
+ // A state feed's bar is [bucket, last_state, count]: no number to draw.
171
+ const isStateBar = typeof bar[1] === 'string';
172
+ const open = isStateBar ? Number.NaN : cell(bar[1]);
173
+ const high = isStateBar ? Number.NaN : cell(bar[2]);
174
+ const low = isStateBar ? Number.NaN : cell(bar[3]);
175
+ const close = isStateBar ? Number.NaN : cell(bar[4]);
176
+ if (plot === 'candles')
177
+ return [bar[0] * 1_000, open, high, low, close];
178
+ const combined = isStateBar || bar.length < 7 ? Number.NaN : cell(bar[6]);
179
+ return [bar[0] * 1_000, Number.isFinite(combined) ? combined : close];
180
+ });
181
+ return dedupeAscending(series);
182
+ }
183
+ /** Ascending by stamp, the later of two rows at one stamp winning (the relay's last write wins). */
184
+ function dedupeAscending(series) {
185
+ const sorted = series.every((row, i) => i === 0 || series[i - 1][0] < row[0])
186
+ ? series
187
+ : [...series].sort((a, b) => a[0] - b[0]);
188
+ const out = [];
189
+ for (const row of sorted) {
190
+ if (out.length && out[out.length - 1][0] === row[0])
191
+ out[out.length - 1] = row;
192
+ else
193
+ out.push(row);
194
+ }
195
+ return out;
196
+ }
197
+ /** Union by stamp, ascending; an incoming row replaces a held row at the same stamp. */
198
+ export function mergeFeedSeries(held, incoming) {
199
+ if (!incoming.length)
200
+ return held.slice();
201
+ if (!held.length)
202
+ return incoming.slice();
203
+ const byTs = new Map();
204
+ for (const row of held)
205
+ byTs.set(row[0], row);
206
+ for (const row of incoming)
207
+ byTs.set(row[0], row);
208
+ return [...byTs.values()].sort((a, b) => a[0] - b[0]);
209
+ }
210
+ /** The newest stamp of a series, seconds; null when empty. */
211
+ export function feedSeriesLastTsSec(series) {
212
+ const last = series[series.length - 1];
213
+ return last ? Math.floor(last[0] / 1_000) : null;
214
+ }
215
+ function slotIndexFromEnd(series, slotOf, target) {
216
+ for (let i = series.length - 1; i >= 0; i -= 1) {
217
+ const slot = slotOf(series[i][0]);
218
+ if (slot === target)
219
+ return i;
220
+ if (slot < target)
221
+ return -1;
222
+ }
223
+ return -1;
224
+ }
225
+ /**
226
+ * Fold one reading into the held series. A reading is the relay's stored row for one slot as
227
+ * it stands (a replacement, never an increment): on rows, the row already held in the reading's
228
+ * storage slot (`floor_s`) is replaced, else the reading is added; on bars, the bar of its bucket
229
+ * takes it as its close (a candle also widens its high and low), else a new bar opens at it.
230
+ * Null when there is nothing to draw (a null reading on bars).
231
+ */
232
+ export function foldFeedReading(series, input) {
233
+ if (!Number.isFinite(input.ts))
234
+ return null;
235
+ const value = cell(input.value);
236
+ const last = series[series.length - 1];
237
+ if (input.request.kind === 'rows') {
238
+ const floor = input.floorS && input.floorS > 0 ? input.floorS : 0;
239
+ const slotOf = (tsMs) => {
240
+ const sec = Math.floor(tsMs / 1_000);
241
+ return floor > 0 ? Math.floor(sec / floor) * floor : sec;
242
+ };
243
+ const row = [input.ts * 1_000, value];
244
+ const at = slotIndexFromEnd(series, slotOf, slotOf(row[0]));
245
+ if (at >= 0) {
246
+ const next = series.slice();
247
+ const held = next[at];
248
+ next[at] = row;
249
+ return { series: next, live: at === series.length - 1 && held[0] === row[0] ? row : null };
250
+ }
251
+ if (!last || row[0] > last[0])
252
+ return { series: [...series, row], live: row };
253
+ return { series: mergeFeedSeries(series, [row]), live: null };
254
+ }
255
+ if (!Number.isFinite(value))
256
+ return null;
257
+ const stampMs = feedBucketStartSec(input.ts, input.request.interval_s) * 1_000;
258
+ const at = slotIndexFromEnd(series, (tsMs) => tsMs, stampMs);
259
+ if (at >= 0) {
260
+ const held = series[at];
261
+ const open = Number.isFinite(held[1]) ? held[1] : value;
262
+ const bar = input.plot === 'candles'
263
+ ? [
264
+ stampMs,
265
+ open,
266
+ Math.max(Number.isFinite(held[2]) ? held[2] : value, value),
267
+ Math.min(Number.isFinite(held[3]) ? held[3] : value, value),
268
+ value,
269
+ ]
270
+ : [stampMs, value];
271
+ const next = series.slice();
272
+ next[at] = bar;
273
+ return { series: next, live: at === series.length - 1 ? bar : null };
274
+ }
275
+ const bar = input.plot === 'candles' ? [stampMs, value, value, value, value] : [stampMs, value];
276
+ if (!last || stampMs > last[0])
277
+ return { series: [...series, bar], live: bar };
278
+ return { series: mergeFeedSeries(series, [bar]), live: null };
279
+ }
280
+ // ── Gaps the stream leaves (P3 C10) ─────────────────────────────────────────
281
+ /**
282
+ * The span one stored reading stands for: the cadence (the relay's head first, else the saved
283
+ * one; the stored cadence for an irregular feed), never under the storage grain `floor_s`. 0 when
284
+ * nothing says (no gap can be judged then).
285
+ */
286
+ export function feedReadingSlotS(head, savedCadenceS = 0) {
287
+ const declared = head && head.cadence_s > 0 ? head.cadence_s : savedCadenceS > 0 ? savedCadenceS : 0;
288
+ const cadence = declared > 0 ? declared : (head?.observed_cadence_s ?? 0);
289
+ return Math.max(cadence > 0 ? cadence : 0, head?.floor_s ?? 0);
290
+ }
291
+ /**
292
+ * A reading more than one slot past the cursor (the newest row held with nothing missing before
293
+ * it): it skipped a whole slot, so rows between them may exist that the stream never sent.
294
+ * Slot-aligned, so a late stamp inside the next slot is no gap.
295
+ */
296
+ export function feedReadingSkipsSlot(cursorTs, ts, slotS) {
297
+ if (cursorTs === null || !(slotS > 0) || !(ts > cursorTs))
298
+ return false;
299
+ return Math.floor(ts / slotS) - Math.floor(cursorTs / slotS) > 1;
300
+ }
301
+ /** A stream reading stands for its bucket only for a value combining by `last` (the series lane's rule). */
302
+ export function feedReadingFoldsBars(rule) {
303
+ return rule === undefined || rule === null || rule === 'last';
304
+ }
305
+ /**
306
+ * Rows read from the relay over the held ones, by storage slot (`floor_s`): the relay keeps one row
307
+ * per slot, so a read row replaces whatever the held series has in its slot (a slot whose row moved
308
+ * from T to T+1 keeps one row, never two). Ascending.
309
+ */
310
+ export function mergeFeedRowsBySlot(held, incoming, floorS) {
311
+ if (!incoming.length)
312
+ return held.slice();
313
+ const floor = floorS && floorS > 0 ? floorS : 0;
314
+ const slotOf = (tsMs) => (floor > 0 ? Math.floor(tsMs / 1_000 / floor) : tsMs);
315
+ const bySlot = new Map();
316
+ for (const row of held)
317
+ bySlot.set(slotOf(row[0]), row);
318
+ for (const row of incoming)
319
+ bySlot.set(slotOf(row[0]), row);
320
+ return [...bySlot.values()].sort((a, b) => a[0] - b[0]);
321
+ }
@@ -0,0 +1,110 @@
1
+ /**
2
+ * The fetch-dedupe policy table (fan-out unification P5): every class of
3
+ * duplicate handling against the fetchCache ledger, NAMED, with the reason
4
+ * it exists. Zero behavior change: the two guard sites in
5
+ * data-fetching.util.ts (main ~2282, indicator ~4440) consult this resolver
6
+ * instead of raw flag combinations; branch precedence mirrors the historical
7
+ * code order exactly and is pinned by the exhaustive golden table.
8
+ *
9
+ * Verbs:
10
+ * - onPendingTwin: what to do when an identical same-key request is in
11
+ * flight. 'await' coalesces onto it, 'skip' drops this request (the
12
+ * wave/recovery loop owns covering the span), 'ignore' dispatches anyway.
13
+ * - onRecentCompletion: what to do when an identical key completed within
14
+ * the fetchCache completion window. 'skip' drops, 'refresh' fetches anyway
15
+ * (heals must re-request), 'ignore' means the lane never consults the
16
+ * window at all.
17
+ * - registersPending: whether the dispatch marks a pending ledger entry
18
+ * (owner-token guarded) that twins can observe.
19
+ *
20
+ * The legally-asked-twice cases are deliberate: main polling + main gap
21
+ * recovery can fetch overlapping windows on the same tick, and post-wake
22
+ * resync overlaps both; main-data merges are idempotent by design, and the
23
+ * backend bucket cache absorbs bucket-canonical repeats cheaply.
24
+ *
25
+ * Ledger key and retraction scope (data-loading plan S1, 2026-09-26): the
26
+ * verbs above select a policy, they never build a key. The indicator lane's
27
+ * pending/completion key carries the interval, the market identity and the
28
+ * indicator cache settings fingerprint after the `${chartIndex}-${overlayId}-`
29
+ * prefix (fetch-cache.util getKey; data-fetching.util
30
+ * indicatorFetchLedgerSegments), so a twin is only ever an ask for the SAME
31
+ * market, interval and settings, and a completion recorded under old settings
32
+ * can never satisfy a 'skip' verb for new ones. Overlay actions (settings
33
+ * refetch, removeIndicator, the OB depth resubscribe) retract only their own
34
+ * overlay (fetchCache.clearOverlay); cancelFetchDataOfChart's clearChart stays
35
+ * the only chart-wide sweep. Neither changes a row of this table, and both
36
+ * goldens (fetch-dedupe-policies.json, fetch-dedupe-resolution.json) stay
37
+ * byte-identical: the ledger specs are the gate for key and scope.
38
+ *
39
+ * Flag discipline (adjudicated 2026-07-27): isPolling is reserved for the
40
+ * steady-state cadence lane (useDataPolling's per-tick polls). Indicator
41
+ * gap-repair and gap-recovery initiators (the B3 plain repair scan, the B4
42
+ * recovery poller, executePlannedPlainIndicatorFetch, the one-shot gap heal)
43
+ * stamp { isLazyload, isGapRecovery } WITHOUT isPolling, so they resolve to
44
+ * IND_REPAIR_REFRESH. They historically also stamped isPolling, which this
45
+ * resolver's precedence routed to IND_POLL_BYPASS: no pending registration,
46
+ * pending twins ignored, and exemption from the known-empty/doomed guard
47
+ * classes. That mislabel produced the same-identity duplicate-network pairs
48
+ * and the upstream-persistent refetch hammer in the 2026-07-27 field dumps.
49
+ * The resolver precedence itself is unchanged (the golden pins it); only the
50
+ * initiators' declared intent moved.
51
+ *
52
+ * The replay-DOM window lane (DOM_REPLAY_WINDOW, Spec 2B/C) is a ledger
53
+ * bypass like the replay buffer lane: its duplicate control is the
54
+ * replayDomDriver module latch per (instanceId, generation, windowStartSec),
55
+ * not the fetchCache. isReplayBuffer outranks isDomReplayWindow when both are
56
+ * stamped (the buffer lane's own collector wins).
57
+ *
58
+ * Two suppression classes live OUTSIDE this flag table because they depend on
59
+ * delivered data, not request flags:
60
+ * - FIXED_WINDOW_COVERED_SKIP (fixed-window-fetch-skip.util.ts): fixed-window
61
+ * single-request overlays replace the wave span with a settings-derived
62
+ * range at payload build, so ledger keys never match their repeats; the
63
+ * guard site skips heal-class lazy refetches while the overlay has
64
+ * delivered rows.
65
+ * - KNOWN_EMPTY_RANGE_SKIP (known-empty-range.util.ts): a heal-class fetch
66
+ * whose response was truly empty (backend has no data for that range, e.g.
67
+ * past orderflow retention) arms a 60s identity+range memory; heal-class
68
+ * re-asks of the same window skip until the TTL expires instead of looping
69
+ * the identical empty fetch every wave round.
70
+ */
71
+ export declare function registerDataLoadHealRegisterFlagReader(reader: (() => boolean) | null): void;
72
+ export declare function isDataLoadHealRegisterEnabled(): boolean;
73
+ type FetchDedupeLane = 'main' | 'indicator' | 'kscript-source';
74
+ export interface FetchDedupeIntent {
75
+ lane: FetchDedupeLane;
76
+ isPolling?: boolean;
77
+ isHistoricalModeFetch?: boolean;
78
+ bypassPendingCoalesce?: boolean;
79
+ heatmapCacheOnly?: boolean;
80
+ isLazyload?: boolean;
81
+ isGapRecovery?: boolean;
82
+ isReplayBuffer?: boolean;
83
+ isHeatmapSeamTopUp?: boolean;
84
+ isDomReplayWindow?: boolean;
85
+ isTapeSvpSeed?: boolean;
86
+ /** The Footprint panel's own lane (footprint-panel-lane.service.ts): snapshot windows into the panel's store. */
87
+ isFootprintPanel?: boolean;
88
+ /** A split-family child whose span IS the parent's registered pre-split span (the owner span). */
89
+ isSplitFamilyOwnerChild?: boolean;
90
+ }
91
+ export type FetchDedupePolicyName = 'MAIN_COALESCE' | 'MAIN_POLL_BYPASS' | 'MAIN_HISTORICAL_BYPASS' | 'MAIN_RETRY_BYPASS' | 'IND_SKIP_DUPLICATE' | 'IND_REPAIR_REFRESH' | 'IND_POLL_BYPASS' | 'HEATMAP_CACHE_ONLY_BYPASS' | 'IND_RETRY_BYPASS' | 'IND_SPLIT_FAMILY_OWNER_CHILD' | 'IND_REPLAY_LANE_BYPASS' | 'IND_SEAM_TOPUP' | 'KSCRIPT_SOURCE_DEDUPE' | 'DOM_REPLAY_WINDOW' | 'TAPE_SVP_SEED' | 'FOOTPRINT_PANEL';
92
+ export interface FetchDedupePolicy {
93
+ name: FetchDedupePolicyName;
94
+ onPendingTwin: 'await' | 'skip' | 'ignore';
95
+ onRecentCompletion: 'skip' | 'refresh' | 'ignore';
96
+ registersPending: boolean;
97
+ why: string;
98
+ }
99
+ /** Branch precedence mirrors the historical guard-site code order exactly. */
100
+ export declare function resolveFetchDedupePolicy(intent: FetchDedupeIntent): FetchDedupePolicy;
101
+ export declare const FETCH_DEDUPE_POLICIES: readonly FetchDedupePolicy[];
102
+ export declare const MAIN_PLAN_FLAG_KEY = "data-load-main-plan";
103
+ export declare function isMainPlanEnabled(readExplicitlyOff: (key: string) => boolean): boolean;
104
+ export declare const RECEIPT_SETTLE_FLAG_KEY = "data-load-receipt-settle";
105
+ export declare function isReceiptSettleEnabled(readExplicitlyOff: (key: string) => boolean): boolean;
106
+ export declare function isShareableFetchDedupePolicy(policy: FetchDedupePolicyName | FetchDedupePolicy): boolean;
107
+ export declare const KICK_BASE_HARD_KILL = false;
108
+ export declare const KICK_BASE_FLAG_KEY = "data-load-kick-base";
109
+ export declare function isKickBaseEnabled(readExplicitlyOff: (key: string) => boolean): boolean;
110
+ export {};