gloomberb 0.20.11 → 0.20.12

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 (242) hide show
  1. package/package.json +2 -1
  2. package/src/api-client/awards.ts +16 -0
  3. package/src/api-client/central-bank-rates.ts +5 -0
  4. package/src/api-client/data.ts +55 -2
  5. package/src/api-client/index.ts +18 -1
  6. package/src/api-client/request.ts +86 -3
  7. package/src/api-client/socket-connection.ts +12 -1
  8. package/src/api-client/socket.ts +21 -3
  9. package/src/api-client/supply-chain-graph.ts +4 -2
  10. package/src/api-client/supply-chain.ts +8 -0
  11. package/src/api-client/types/econ.ts +10 -7
  12. package/src/api-client/types/filings-and-calls.ts +8 -0
  13. package/src/app/global-shortcuts.ts +2 -1
  14. package/src/app/keybindings/actions.ts +19 -0
  15. package/src/app/pane-runtime/index.tsx +18 -3
  16. package/src/app/pane-runtime/layout-placement.ts +63 -0
  17. package/src/app/pane-runtime/ticker-open-runtime.ts +10 -2
  18. package/src/capabilities/chart-series.ts +4 -1
  19. package/src/cli/board-coins.ts +10 -1
  20. package/src/cli/commands/crypto-hints.ts +3 -2
  21. package/src/cli/commands/fred-series.ts +0 -54
  22. package/src/cli/commands/market.ts +209 -31
  23. package/src/cli/commands/overview.ts +47 -14
  24. package/src/cli/commands/search.ts +37 -8
  25. package/src/cli/commands/ticker.ts +15 -4
  26. package/src/cli/desktop-pane-shot.ts +27 -2
  27. package/src/cli/fx-quote-rate.ts +1 -1
  28. package/src/cli/glossary.ts +14 -5
  29. package/src/cli/history-catalog-series.ts +85 -0
  30. package/src/cli/index.ts +1 -1
  31. package/src/cli/list-progress.ts +45 -0
  32. package/src/cli/listing-arg.ts +71 -7
  33. package/src/cli/name-entries.ts +8 -4
  34. package/src/cli/not-a-ticker.ts +2 -2
  35. package/src/cli/pane-functions/freshness.ts +50 -3
  36. package/src/cli/pane-functions/index.ts +7 -4
  37. package/src/cli/pane-functions/market-session.ts +66 -14
  38. package/src/cli/pane-functions/options.ts +5 -0
  39. package/src/cli/pane-functions/resolver.ts +9 -2
  40. package/src/cli/pane-functions/screenshot-assessment.ts +28 -3
  41. package/src/cli/pane-functions/screenshot-types.ts +6 -0
  42. package/src/cli/quote-answer.ts +49 -10
  43. package/src/cli/quote-list-reads.ts +87 -0
  44. package/src/cli/report-tables.ts +70 -13
  45. package/src/cli/result.ts +24 -2
  46. package/src/cli/symbol-list.ts +31 -4
  47. package/src/cli/terminal-code-hints.ts +83 -0
  48. package/src/cli/ticker-resolution.ts +2 -1
  49. package/src/cli/treasury-yields.ts +5 -0
  50. package/src/components/command-bar/action-runtime.ts +2 -0
  51. package/src/components/command-bar/routing/launch-request.ts +2 -1
  52. package/src/components/command-bar/routing/navigation-state.ts +4 -2
  53. package/src/components/command-bar/workflow/types.ts +6 -0
  54. package/src/components/layout/detached-pane-shell.tsx +3 -0
  55. package/src/components/layout/double-escape-close.ts +34 -3
  56. package/src/components/layout/floating-pane.tsx +10 -4
  57. package/src/components/layout/pane/cycle-order.ts +66 -2
  58. package/src/components/layout/pane/header.tsx +140 -31
  59. package/src/components/layout/pane/sidebar.tsx +13 -5
  60. package/src/components/layout/pane/status-footer.ts +3 -1
  61. package/src/components/layout/shell/drag/runtime.ts +5 -0
  62. package/src/components/layout/shell/index.tsx +25 -0
  63. package/src/components/layout/shell/menu.ts +9 -0
  64. package/src/components/layout/shell/pane/actions.ts +36 -0
  65. package/src/components/layout/shell/pane/management-shortcuts.ts +27 -3
  66. package/src/components/layout/shell/pane-occlusion.ts +40 -0
  67. package/src/components/layout/shell/shortcuts.ts +17 -1
  68. package/src/components/layout/shell/terminal-pointer-runtime.ts +39 -6
  69. package/src/components/layout/shell/window-mode/index.ts +5 -16
  70. package/src/components/layout/shell/window-mode/overlays.tsx +3 -1
  71. package/src/components/market-board/index.tsx +14 -5
  72. package/src/components/metric-treemap/index.tsx +3 -1
  73. package/src/components/ui/button.tsx +48 -4
  74. package/src/components/ui/data-table/opentui/index.tsx +24 -9
  75. package/src/components/ui/data-table/types.ts +7 -0
  76. package/src/components/ui/inline-quick-add.tsx +19 -3
  77. package/src/components/ui/list-view.tsx +11 -5
  78. package/src/components/ui/query-bar.tsx +16 -1
  79. package/src/components/ui/selection-fill.ts +39 -0
  80. package/src/core/state/app/layout-reducer.ts +2 -1
  81. package/src/core/state/app/pane-choices.ts +68 -0
  82. package/src/core/state/app/state.ts +14 -6
  83. package/src/core/state/app/types.ts +8 -0
  84. package/src/layout/pane-manager/dock-tree.ts +19 -0
  85. package/src/layout/pane-manager/index.ts +3 -0
  86. package/src/market-data/market/freshness.ts +33 -0
  87. package/src/market-data/market/status.ts +5 -1
  88. package/src/market-data/quotes/contributions.ts +10 -0
  89. package/src/market-data/quotes/freshness.ts +19 -0
  90. package/src/market-data/quotes/live-valuation.ts +31 -4
  91. package/src/market-data/quotes/resolution.ts +4 -0
  92. package/src/market-data/quotes/time.ts +0 -14
  93. package/src/plugins/builtin/account-management/index.tsx +1 -0
  94. package/src/plugins/builtin/awards/detail.tsx +12 -4
  95. package/src/plugins/builtin/awards/headless.ts +29 -8
  96. package/src/plugins/builtin/awards/model.ts +36 -2
  97. package/src/plugins/builtin/awards/pane.tsx +7 -4
  98. package/src/plugins/builtin/broker-manager/index.tsx +1 -0
  99. package/src/plugins/builtin/broker-trading/index.tsx +1 -1
  100. package/src/plugins/builtin/central-bank-rates/headless.ts +6 -6
  101. package/src/plugins/builtin/central-bank-rates/index.tsx +1 -1
  102. package/src/plugins/builtin/central-bank-rates/model.ts +21 -3
  103. package/src/plugins/builtin/central-bank-rates/pane.tsx +15 -5
  104. package/src/plugins/builtin/chart-composer/headless.ts +5 -1
  105. package/src/plugins/builtin/chart-composer/pane.tsx +1 -0
  106. package/src/plugins/builtin/chat/content/handle-prompt.tsx +4 -0
  107. package/src/plugins/builtin/chat/controller/realtime.ts +17 -1
  108. package/src/plugins/builtin/chat/message/terminal.tsx +4 -1
  109. package/src/plugins/builtin/chat/sidebar.tsx +3 -4
  110. package/src/plugins/builtin/cloud/askg/pane.tsx +4 -0
  111. package/src/plugins/builtin/cloud/plugin.tsx +1 -0
  112. package/src/plugins/builtin/cloud/team/module.tsx +1 -0
  113. package/src/plugins/builtin/cloud/thesis/detail.tsx +9 -4
  114. package/src/plugins/builtin/commodity-balances/pane.tsx +13 -5
  115. package/src/plugins/builtin/company-kpis/model.ts +3 -3
  116. package/src/plugins/builtin/connections/index.ts +1 -0
  117. package/src/plugins/builtin/credit-boards/cdx-pane.tsx +9 -5
  118. package/src/plugins/builtin/credit-boards/client.ts +5 -0
  119. package/src/plugins/builtin/credit-boards/headless.ts +1 -6
  120. package/src/plugins/builtin/credit-boards/model.ts +0 -6
  121. package/src/plugins/builtin/credit-boards/series.ts +19 -8
  122. package/src/plugins/builtin/credit-boards/sovr-pane.tsx +9 -5
  123. package/src/plugins/builtin/crypto-etf-flows/headless.ts +23 -13
  124. package/src/plugins/builtin/crypto-etf-flows/pane.tsx +8 -3
  125. package/src/plugins/builtin/debt-maturities/headless.ts +16 -7
  126. package/src/plugins/builtin/debt-maturities/model.ts +9 -15
  127. package/src/plugins/builtin/debt-maturities/pane.tsx +9 -10
  128. package/src/plugins/builtin/earnings/board-model.ts +33 -4
  129. package/src/plugins/builtin/earnings/board.tsx +15 -3
  130. package/src/plugins/builtin/earnings/calendar.tsx +10 -6
  131. package/src/plugins/builtin/earnings/client.ts +0 -9
  132. package/src/plugins/builtin/earnings/headless.ts +10 -7
  133. package/src/plugins/builtin/earnings/history.tsx +21 -14
  134. package/src/plugins/builtin/earnings-calls/data.ts +24 -4
  135. package/src/plugins/builtin/earnings-calls/format.ts +23 -5
  136. package/src/plugins/builtin/earnings-calls/headless.ts +23 -3
  137. package/src/plugins/builtin/earnings-calls/index.tsx +1 -0
  138. package/src/plugins/builtin/earnings-calls/model.ts +11 -1
  139. package/src/plugins/builtin/earnings-calls/pane.tsx +2 -5
  140. package/src/plugins/builtin/econ/calendar-model.ts +27 -0
  141. package/src/plugins/builtin/econ/fred-catalog.ts +3 -0
  142. package/src/plugins/builtin/econ/index.tsx +9 -2
  143. package/src/plugins/builtin/econ-statistics/headless.ts +3 -1
  144. package/src/plugins/builtin/econ-statistics/index.tsx +1 -1
  145. package/src/plugins/builtin/fear-greed/headless.ts +16 -13
  146. package/src/plugins/builtin/fear-greed/pane.tsx +12 -4
  147. package/src/plugins/builtin/filing-events/index.tsx +1 -0
  148. package/src/plugins/builtin/fx-matrix/index.tsx +30 -19
  149. package/src/plugins/builtin/insider/table.tsx +10 -7
  150. package/src/plugins/builtin/insider/tickers.tsx +1 -1
  151. package/src/plugins/builtin/iv-history/headless.ts +9 -8
  152. package/src/plugins/builtin/jobs/index.tsx +1 -0
  153. package/src/plugins/builtin/macro-day/headless.ts +3 -3
  154. package/src/plugins/builtin/macro-day/model.ts +1 -1
  155. package/src/plugins/builtin/macro-day/releases.ts +25 -16
  156. package/src/plugins/builtin/market-movers/index.tsx +20 -8
  157. package/src/plugins/builtin/market-movers/model.ts +5 -0
  158. package/src/plugins/builtin/market-movers/session-body.tsx +2 -1
  159. package/src/plugins/builtin/money-markets/headless.ts +12 -2
  160. package/src/plugins/builtin/money-markets/pane.tsx +10 -1
  161. package/src/plugins/builtin/options/view.tsx +1 -0
  162. package/src/plugins/builtin/options-positioning/pane.tsx +1 -1
  163. package/src/plugins/builtin/portfolio-list/cli/bulk-symbols.ts +4 -31
  164. package/src/plugins/builtin/portfolio-list/pane/index.tsx +6 -1
  165. package/src/plugins/builtin/portfolio-list/quick-add/index.tsx +22 -8
  166. package/src/plugins/builtin/portfolio-list/summary/index.tsx +6 -8
  167. package/src/plugins/builtin/portfolio-list/table.tsx +10 -1
  168. package/src/plugins/builtin/realized-vol/headless.ts +28 -2
  169. package/src/plugins/builtin/risk-factors/index.tsx +1 -0
  170. package/src/plugins/builtin/shared/source-footer.ts +70 -0
  171. package/src/plugins/builtin/short-interest/publications-pane.tsx +5 -1
  172. package/src/plugins/builtin/short-volume/pane.tsx +5 -1
  173. package/src/plugins/builtin/social-mentions/outliers.tsx +10 -1
  174. package/src/plugins/builtin/social-mentions/pane.tsx +7 -0
  175. package/src/plugins/builtin/supply-chain/client.ts +3 -1
  176. package/src/plugins/builtin/supply-chain/flow.tsx +25 -8
  177. package/src/plugins/builtin/supply-chain/graph-client.ts +1 -1
  178. package/src/plugins/builtin/supply-chain/graph-evidence.ts +1 -1
  179. package/src/plugins/builtin/supply-chain/graph-model.ts +12 -1
  180. package/src/plugins/builtin/supply-chain/graph-pane.tsx +9 -8
  181. package/src/plugins/builtin/supply-chain/graph.tsx +12 -6
  182. package/src/plugins/builtin/supply-chain/headless.ts +13 -7
  183. package/src/plugins/builtin/supply-chain/model.ts +68 -11
  184. package/src/plugins/builtin/supply-chain/pane.tsx +9 -6
  185. package/src/plugins/builtin/supply-chain/row-evidence.tsx +5 -5
  186. package/src/plugins/builtin/ticker-detail/overview/components.tsx +14 -1
  187. package/src/plugins/builtin/ticker-detail/overview-tab.tsx +2 -0
  188. package/src/plugins/builtin/ticker-detail/pane.tsx +48 -24
  189. package/src/plugins/builtin/ticker-detail/quote-footer.ts +5 -0
  190. package/src/plugins/builtin/ticker-detail/quote-monitor/card.tsx +6 -3
  191. package/src/plugins/builtin/treasury-auctions/after.ts +50 -23
  192. package/src/plugins/builtin/treasury-auctions/cache.ts +23 -5
  193. package/src/plugins/builtin/treasury-auctions/headless.ts +226 -37
  194. package/src/plugins/builtin/treasury-auctions/hk-headless.ts +11 -5
  195. package/src/plugins/builtin/treasury-auctions/hk-view.tsx +27 -25
  196. package/src/plugins/builtin/treasury-auctions/hk.ts +60 -8
  197. package/src/plugins/builtin/treasury-auctions/index.tsx +3 -0
  198. package/src/plugins/builtin/treasury-auctions/keys.ts +27 -0
  199. package/src/plugins/builtin/treasury-auctions/like.ts +137 -0
  200. package/src/plugins/builtin/treasury-auctions/model.ts +100 -22
  201. package/src/plugins/builtin/treasury-auctions/pane.tsx +39 -11
  202. package/src/plugins/builtin/vol-surface/heat-grid.tsx +4 -2
  203. package/src/plugins/builtin/vol-surface/pane.tsx +5 -2
  204. package/src/plugins/runtime/index.tsx +1 -0
  205. package/src/plugins/runtime/state.ts +20 -0
  206. package/src/portfolio/column-values.ts +8 -2
  207. package/src/public/__snapshots__/public-api.test.ts.snap +5 -0
  208. package/src/public/react.ts +7 -0
  209. package/src/react/auto-refresh.ts +29 -0
  210. package/src/renderers/browser/deeplink-bridge.ts +24 -3
  211. package/src/renderers/dom/desktop/query-bar.tsx +229 -60
  212. package/src/renderers/dom/host/overflow-fade-px.ts +2 -0
  213. package/src/renderers/dom/host/overflow-fade.ts +1 -2
  214. package/src/renderers/dom/styles.css +25 -5
  215. package/src/renderers/electrobun/view/cli-pane-shot-entry.tsx +2 -1
  216. package/src/series/types.ts +2 -0
  217. package/src/sources/gloomberb-cloud/fred-attribution.ts +86 -0
  218. package/src/sources/gloomberb-cloud/index.ts +25 -1
  219. package/src/sources/gloomberb-cloud/normalizers.ts +22 -3
  220. package/src/sources/provider-errors.ts +64 -1
  221. package/src/sources/provider-router/batches.ts +19 -0
  222. package/src/sources/provider-router/index.ts +7 -1
  223. package/src/state/app/context/index.tsx +24 -1
  224. package/src/state/pane-unsent-work.ts +47 -0
  225. package/src/test-support/shell-pane-keys.tsx +5 -0
  226. package/src/test-support/telemetry-guard.ts +83 -0
  227. package/src/test-support/test-env.ts +12 -0
  228. package/src/theme/colors.ts +17 -1
  229. package/src/theme/ui-tokens.ts +50 -1
  230. package/src/tickers/listing-venues.ts +11 -1
  231. package/src/tickers/search/japanese-names.json +1 -0
  232. package/src/tickers/search/japanese-names.ts +152 -0
  233. package/src/tickers/terminal-codes.ts +55 -6
  234. package/src/time-series/base-series.ts +3 -0
  235. package/src/types/data-provider.ts +6 -0
  236. package/src/types/financials.ts +11 -0
  237. package/src/types/plugin-contributions.ts +7 -0
  238. package/src/types/plugin-panes.ts +7 -0
  239. package/src/ui/host.tsx +6 -0
  240. package/src/utils/double-escape-close.ts +42 -0
  241. package/src/utils/fx-status.ts +30 -7
  242. package/src/utils/network-failure.ts +23 -0
@@ -1,11 +1,13 @@
1
1
  import {
2
2
  getDockLeafLayouts,
3
+ type DockTarget,
3
4
  } from "../../layout/pane-manager";
4
5
  import {
5
6
  findPaneInstance,
6
7
  isTickerPaneId,
7
8
  normalizePaneId,
8
9
  resolvePaneInstance,
10
+ type AppConfig,
9
11
  type LayoutConfig,
10
12
  type PaneInstanceConfig,
11
13
  } from "../../types/config";
@@ -54,3 +56,64 @@ export function selectEdgeAnchor(layout: LayoutConfig, edge: "left" | "right"):
54
56
  .sort((a, b) => (b.rect.y + b.rect.height) - (a.rect.y + a.rect.height))
55
57
  [0]?.instanceId ?? null;
56
58
  }
59
+
60
+ /** Whether a pane instance is a utility window (PaneDef.utilityWindow: account, brokers, Ask Gloom, team), by its instance id. */
61
+ type IsUtilityWindow = (instanceId: string) => boolean;
62
+
63
+ /**
64
+ * A layout with no pane in it, docked, floating or in a window of its own,
65
+ * but utility windows (an account or Ask Gloom window open over it): one a new
66
+ * pane starts a grid in.
67
+ */
68
+ function isEmptyLayout(layout: LayoutConfig, isUtility: IsUtilityWindow): boolean {
69
+ return layout.dockRoot == null && layout.detached.length === 0
70
+ && layout.instances.every((instance) => isUtility(instance.instanceId))
71
+ && layout.floating.every((entry) => isUtility(entry.instanceId));
72
+ }
73
+
74
+ /**
75
+ * Where a pane docks in a layout being built as a grid: beside the largest
76
+ * pane, splitting it along its longer side (a cell is about twice as tall as
77
+ * it is wide), so each pane added halves the roomiest one and four make two
78
+ * by two rather than ever thinner columns. Null with nothing docked.
79
+ */
80
+ function gridAnchor(layout: LayoutConfig, bounds: { width: number; height: number }): DockTarget | null {
81
+ const leaves = getDockLeafLayouts(layout, { x: 0, y: 0, width: Math.max(1, bounds.width), height: Math.max(1, bounds.height) });
82
+ const largest = [...leaves].sort((a, b) => b.rect.width * b.rect.height - a.rect.width * a.rect.height
83
+ || a.rect.y - b.rect.y || a.rect.x - b.rect.x)[0];
84
+ if (!largest) return null;
85
+ return { relativeTo: largest.instanceId, position: largest.rect.width >= largest.rect.height * 2 ? "right" : "below" };
86
+ }
87
+
88
+ /**
89
+ * Where a new pane that would open floating docks instead, in a layout this
90
+ * window has been filling from empty (`grids`, the layouts' keys, which this
91
+ * adds to): beside the roomiest pane (gridAnchor), the first one alone. Four
92
+ * panes added one after another make a grid, not a stack of windows over an
93
+ * empty layout that only Tidy Windows would dock. Null for any other layout,
94
+ * and once the layout has a floating window, which a pane then joins as before.
95
+ * Utility windows (`isUtility`) are no panes of the layout: one open over it
96
+ * neither stops the grid nor counts against an empty layout.
97
+ */
98
+ export function gridDockTarget(
99
+ grids: Set<string>,
100
+ config: Pick<AppConfig, "layout" | "layouts" | "activeLayoutIndex">,
101
+ instanceId: string,
102
+ bounds: { width: number; height: number },
103
+ isUtility: IsUtilityWindow = () => false,
104
+ ): DockTarget | null {
105
+ const active = config.layouts[config.activeLayoutIndex];
106
+ const key = active ? active.id ?? `${config.activeLayoutIndex}:${active.name}` : null;
107
+ if (!key) return null;
108
+ if (isEmptyLayout(config.layout, isUtility)) grids.add(key);
109
+ if (!grids.has(key) || config.layout.floating.some((entry) => !isUtility(entry.instanceId))) return null;
110
+ return gridAnchor(config.layout, bounds) ?? { relativeTo: instanceId, position: "right" };
111
+ }
112
+
113
+ /** A layout's pane instances that are utility windows, by the pane each shows (PaneDef.utilityWindow). */
114
+ export function utilityWindowsOf(layout: LayoutConfig, isUtilityPane: (paneId: string) => boolean): IsUtilityWindow {
115
+ return (instanceId) => {
116
+ const instance = layout.instances.find((candidate) => candidate.instanceId === instanceId);
117
+ return !!instance && isUtilityPane(instance.paneId);
118
+ };
119
+ }
@@ -11,6 +11,7 @@ import {
11
11
  import type { PluginRegistry } from "../../plugins/registry";
12
12
  import { PluginOffError, notifyPluginOff } from "../../plugins/plugin-off";
13
13
  import { findFixedTickerPaneForSymbol } from "../../layout/ticker-navigation";
14
+ import { gridDockTarget, utilityWindowsOf } from "./layout-placement";
14
15
  import type { AppAction, AppState } from "../../state/app/context";
15
16
  import { findPaneInstance, TICKER_RESEARCH_PANE_ID, normalizePaneId } from "../../types/config";
16
17
  import type {
@@ -56,6 +57,8 @@ interface UseAppTickerOpenRuntimeOptions {
56
57
  dataProvider: DataProvider;
57
58
  dispatch: Dispatch<AppAction>;
58
59
  focusVisiblePane: (paneId: string, layout?: LayoutConfig) => void;
60
+ /** The layouts this window has been filling from empty, which a new pane docks into as a grid (gridDockTarget). */
61
+ gridLayouts?: Set<string>;
59
62
  persistLayout: (layout: LayoutConfig, options?: { pushHistory?: boolean; focusedPaneId?: string | null }) => void;
60
63
  pluginRegistry: PluginRegistry;
61
64
  stateRef: { current: AppState };
@@ -145,6 +148,7 @@ export function useAppTickerOpenRuntime({
145
148
  dataProvider,
146
149
  dispatch,
147
150
  focusVisiblePane,
151
+ gridLayouts,
148
152
  persistLayout,
149
153
  pluginRegistry,
150
154
  stateRef,
@@ -212,7 +216,11 @@ export function useAppTickerOpenRuntime({
212
216
  const currentLayout = currentState.config.layout;
213
217
  const { width, height } = pluginRegistry.getTermSize();
214
218
  const shouldFloat = options?.floating ?? true;
215
- const nextLayout = shouldFloat
219
+ // A pane that would float docks into a layout being built as a grid, as any other pane does.
220
+ const grid = shouldFloat && gridLayouts && !paneDef.utilityWindow
221
+ ? gridDockTarget(gridLayouts, currentState.config, instance.instanceId, { width, height },
222
+ utilityWindowsOf(currentLayout, (paneId) => !!pluginRegistry.panes.get(paneId)?.utilityWindow)) : null;
223
+ const nextLayout = grid ? addPaneToLayout(currentLayout, instance, grid) : shouldFloat
216
224
  ? addPaneFloating(currentLayout, instance, width, height, paneDef, { focusedPaneId: currentState.focusedPaneId })
217
225
  : addPaneToLayout(
218
226
  currentLayout,
@@ -230,7 +238,7 @@ export function useAppTickerOpenRuntime({
230
238
  }
231
239
  activatePane(instance.instanceId, opening ? { trackTicker: false } : undefined);
232
240
  return instance.instanceId;
233
- }, [activatePane, buildPaneInstance, dispatch, persistLayout, pluginRegistry, stateRef]);
241
+ }, [activatePane, buildPaneInstance, dispatch, gridLayouts, persistLayout, pluginRegistry, stateRef]);
234
242
 
235
243
  const placePinnedTickerTarget = useCallback((target: TickerOpenTarget, options?: PinTickerOptions, typed?: string) => {
236
244
  const paneType = normalizePaneId(options?.paneType ?? TICKER_RESEARCH_PANE_ID);
@@ -235,8 +235,10 @@ function resolvedOutput(value: unknown): ResolvedSeries {
235
235
  const kind = timeBasis?.kind === undefined ? undefined : enumValue<"market">(timeBasis.kind, "time basis kind", new Set(["market"]));
236
236
  const warning = optionalString(input.warning, "resolve output warning", 500);
237
237
  const attribution = input.attribution === undefined ? undefined : object(input.attribution, "resolve output attribution");
238
- if (attribution) onlyKeys(attribution, "resolve output attribution", ["source", "publisher"]);
238
+ if (attribution) onlyKeys(attribution, "resolve output attribution", ["source", "publisher", "publishedAt"]);
239
239
  const publisher = attribution ? optionalString(attribution.publisher, "resolve output publisher", 160) : undefined;
240
+ const publishedAt = attribution ? optionalString(attribution.publishedAt, "resolve output publication time", 64) : undefined;
241
+ if (publishedAt !== undefined && !Number.isFinite(Date.parse(publishedAt))) fail("resolve output publication time", "expected an ISO date.");
240
242
  return {
241
243
  id: boundedString(input.id, "resolve output ID", 160),
242
244
  label: boundedString(input.label, "resolve output label", 160),
@@ -271,6 +273,7 @@ function resolvedOutput(value: unknown): ResolvedSeries {
271
273
  ...(attribution ? { attribution: {
272
274
  source: boundedString(attribution.source, "resolve output source", 160),
273
275
  ...(publisher !== undefined ? { publisher } : {}),
276
+ ...(publishedAt !== undefined ? { publishedAt } : {}),
274
277
  } } : {}),
275
278
  ...(input.hidden !== undefined
276
279
  ? typeof input.hidden === "boolean" ? { hidden: input.hidden } : fail("resolve output hidden", "expected a boolean.")
@@ -42,7 +42,7 @@ const KNOWN_COINS: readonly BoardEntry[] = [
42
42
 
43
43
  let board: readonly BoardEntry[] | null = null;
44
44
  let loading: Promise<void> | null = null;
45
- /** The board was asked for and did not come: the known coins answer instead. */
45
+ /** The board was asked for and did not come, or is not to be waited for: the known coins answer instead. */
46
46
  let unread = false;
47
47
 
48
48
  /**
@@ -66,6 +66,15 @@ export async function primeBoardCoins(
66
66
  await loading;
67
67
  }
68
68
 
69
+ /**
70
+ * Answers a coin hint from the coins this build knows, the largest and the stablecoins, with no read of the board. For
71
+ * a command whose symbol the data service has already said no listing carries: it answers at once, where reading the
72
+ * board would add a round trip to the end of it for the name of a rarer coin.
73
+ */
74
+ export function useKnownCoins(): void {
75
+ if (!board) unread = true;
76
+ }
77
+
69
78
  /** The board's coins a hint can name: a symbol, a code and a name each. */
70
79
  function boardEntries(assets: unknown): BoardEntry[] {
71
80
  return (Array.isArray(assets) ? assets : []).filter((asset): asset is BoardEntry => !!asset
@@ -5,7 +5,7 @@ import { isCryptoPairSymbol, TOP_COIN_NAMES } from "../../utils/crypto-pair";
5
5
  import { isNotATickerMessage } from "../not-a-ticker";
6
6
  import { groupByCompany } from "../../tickers/company-name";
7
7
  import { DATA_SERVICE_UNREACHABLE_MESSAGE } from "../../utils/network-failure";
8
- import { serviceDidNotAnswerMessage } from "../../sources/provider-errors";
8
+ import { rateLimitedMessage, serviceDidNotAnswerMessage } from "../../sources/provider-errors";
9
9
  import type { TickerRecord } from "../../types/ticker";
10
10
 
11
11
  /** Where a crypto pair that will not load can still be read. `fn CRYP` takes no argument. */
@@ -104,7 +104,8 @@ function failureReason(message: string, symbol: string): string {
104
104
 
105
105
  /** A reason that says the data service gave no answer at all, not what it found: the symbol was never checked. */
106
106
  function unanswered(reason: string): boolean {
107
- return reason === DATA_SERVICE_UNREACHABLE_MESSAGE || reason.startsWith(serviceDidNotAnswerMessage().split(".")[0]!);
107
+ return reason === DATA_SERVICE_UNREACHABLE_MESSAGE || reason.startsWith(serviceDidNotAnswerMessage().split(".")[0]!)
108
+ || reason.startsWith(rateLimitedMessage().split(".")[0]!);
108
109
  }
109
110
 
110
111
  /**
@@ -1,8 +1,6 @@
1
1
  import { seriesMoves, type MoveHorizon } from "../../plugins/builtin/shared/move-rank";
2
- import { seriesNotOnFred } from "../../sources/gloomberb-cloud/fred-series";
3
2
  import { ICE_SPREAD_SERIES } from "../../time-series/ice-credit";
4
3
  import { toBasisPoints } from "../../utils/basis-points";
5
- import { parseReportTime } from "../../utils/utc-time";
6
4
 
7
5
  /** Where `fred` starts when `--start` is not given. */
8
6
  export const DEFAULT_FRED_START = "2021-01-01";
@@ -115,58 +113,6 @@ export function basisPointsCell(value: unknown): string {
115
113
  return String(rounded === 0 ? 0 : rounded);
116
114
  }
117
115
 
118
- /**
119
- * When FRED last updated a series, its `last_updated` (`2026-10-09 08:08:04-05`),
120
- * as an ISO instant in UTC: the publication time an export cites. Only when
121
- * that update covers the newest observation shown (`observationEnd` reaches
122
- * it): metadata from before it says nothing about when it was published.
123
- * Null when it does not, or when FRED's metadata does not say.
124
- */
125
- export function fredPublicationTime(
126
- info: { lastUpdated?: string | null; observationEnd?: string | null } | null | undefined,
127
- newestDate: string | null | undefined,
128
- ): string | null {
129
- if (newestDate && !(info?.observationEnd && info.observationEnd >= newestDate)) return null;
130
- const iso = (info?.lastUpdated ?? "").trim().replace(/^(\d{4}-\d{2}-\d{2}) /, "$1T").replace(/([+-]\d{2})$/, "$1:00");
131
- const time = parseReportTime(iso);
132
- return time && !time.dateOnly ? new Date(time.time).toISOString() : null;
133
- }
134
-
135
- /** Where a FRED report's figures come from, as its source line names them. */
136
- export interface FredProvenance {
137
- source: string;
138
- publisher?: string;
139
- publishedAt?: string;
140
- }
141
-
142
- /**
143
- * Where the newest of these observations comes from: FRED, unless Gloom
144
- * Cloud carried a value FRED does not list yet and named its publisher. Then
145
- * the source line names that publisher and when it published, so a reader
146
- * looking for the figure in FRED's own data knows it is not there yet:
147
- * `U.S. Treasury via FRED, published 2026-10-09`. Null for FRED's own.
148
- */
149
- export function fredProvenance(
150
- observations: ReadonlyArray<{ date: string; publisher?: string; publishedAt?: string }>,
151
- seriesId?: string,
152
- ): FredProvenance | null {
153
- const ahead = observations.filter((observation) => observation.publisher?.trim());
154
- if (ahead.length === 0) return null;
155
- const publishers = [...new Set(ahead.map((observation) => observation.publisher!.trim()))];
156
- const times = ahead.flatMap((observation) => {
157
- const time = parseReportTime(observation.publishedAt);
158
- return time ? [new Date(time.time).toISOString()] : [];
159
- }).sort();
160
- const publishedAt = times.at(-1);
161
- const publisher = publishers.join(" and ");
162
- return {
163
- // A series FRED does not carry names whose publication it is read from instead (TurkStat via the CBRT).
164
- source: `${publisher} via ${(seriesId ? seriesNotOnFred(seriesId)?.via : null) ?? "FRED"}${publishedAt ? `, published ${publishedAt.slice(0, 10)}` : ""}`,
165
- publisher,
166
- ...(publishedAt ? { publishedAt } : {}),
167
- };
168
- }
169
-
170
116
  /**
171
117
  * Series FRED itself publishes late, with what a reader should know under the
172
118
  * table. Add a series here when its newest FRED observation is not the newest