@gloom-sh/terminal 0.0.0-stage → 0.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +25 -0
- package/README.md +73 -2
- package/README.zh-CN.md +116 -0
- package/bin/gloom +13 -0
- package/package.json +144 -4
- package/patches/@opentui%2Fcore@0.3.2.patch +624 -0
- package/patches/electrobun@1.18.1.patch +504 -0
- package/patches/react-reconciler@0.33.0.patch +10 -0
- package/src/account/auth-dialog.tsx +88 -0
- package/src/account/auth-form.tsx +276 -0
- package/src/account/auth-model.ts +167 -0
- package/src/account/billing.ts +57 -0
- package/src/account/checkout-handoff.tsx +225 -0
- package/src/account/device-signin-dialog.tsx +210 -0
- package/src/account/device-signin.ts +235 -0
- package/src/account/email-auth-attempt.ts +173 -0
- package/src/account/session.ts +16 -0
- package/src/account/upgrade-dialog.tsx +286 -0
- package/src/account/upgrade-personalization.ts +57 -0
- package/src/account/upgrade-tickers.ts +124 -0
- package/src/account/verification-panel.tsx +63 -0
- package/src/api-client/app-attention.ts +147 -0
- package/src/api-client/askg.ts +710 -0
- package/src/api-client/attention.ts +26 -0
- package/src/api-client/auth.ts +361 -0
- package/src/api-client/awards.ts +215 -0
- package/src/api-client/bank-figures.ts +73 -0
- package/src/api-client/beneficial-owners.ts +96 -0
- package/src/api-client/catalysts.ts +161 -0
- package/src/api-client/central-bank-rates.ts +51 -0
- package/src/api-client/chat-pane-link.ts +47 -0
- package/src/api-client/chat.ts +370 -0
- package/src/api-client/collections.ts +45 -0
- package/src/api-client/commodity-balances.ts +83 -0
- package/src/api-client/company-kpis.ts +174 -0
- package/src/api-client/cot.ts +78 -0
- package/src/api-client/cpi.ts +52 -0
- package/src/api-client/credit-boards.ts +89 -0
- package/src/api-client/credit-documents.ts +113 -0
- package/src/api-client/crypto-etf-flows.ts +37 -0
- package/src/api-client/crypto-markets.ts +205 -0
- package/src/api-client/data.ts +1314 -0
- package/src/api-client/debt-maturities.ts +110 -0
- package/src/api-client/distress.ts +164 -0
- package/src/api-client/doe.ts +109 -0
- package/src/api-client/earnings.ts +98 -0
- package/src/api-client/equity-screener.ts +245 -0
- package/src/api-client/errors.ts +142 -0
- package/src/api-client/estimate-revisions.ts +113 -0
- package/src/api-client/europe-energy.ts +197 -0
- package/src/api-client/exchange-announcements.ts +38 -0
- package/src/api-client/exposure.ts +202 -0
- package/src/api-client/feedback.ts +34 -0
- package/src/api-client/fund-facts.ts +152 -0
- package/src/api-client/futures-curve.ts +186 -0
- package/src/api-client/geo.ts +373 -0
- package/src/api-client/gpu.ts +93 -0
- package/src/api-client/hiring.ts +411 -0
- package/src/api-client/index.ts +1090 -0
- package/src/api-client/insider-signals.ts +159 -0
- package/src/api-client/ipo.ts +99 -0
- package/src/api-client/letters.ts +41 -0
- package/src/api-client/live-scan.ts +91 -0
- package/src/api-client/market-discovery.ts +130 -0
- package/src/api-client/market-movers.ts +74 -0
- package/src/api-client/members.ts +44 -0
- package/src/api-client/mna.ts +124 -0
- package/src/api-client/money-markets.ts +57 -0
- package/src/api-client/normalizers.ts +266 -0
- package/src/api-client/notes.ts +75 -0
- package/src/api-client/organization-tickers.ts +44 -0
- package/src/api-client/paths.ts +648 -0
- package/src/api-client/perps.ts +219 -0
- package/src/api-client/plan-access.ts +27 -0
- package/src/api-client/plan-rules.ts +87 -0
- package/src/api-client/power.ts +148 -0
- package/src/api-client/rates.ts +56 -0
- package/src/api-client/request.ts +681 -0
- package/src/api-client/research-activity.ts +590 -0
- package/src/api-client/revenue-breakdown.ts +36 -0
- package/src/api-client/session-cookie.ts +6 -0
- package/src/api-client/short-side-publications.ts +37 -0
- package/src/api-client/short-volume.ts +55 -0
- package/src/api-client/social-mentions.ts +63 -0
- package/src/api-client/socket.ts +1109 -0
- package/src/api-client/supply-chain-graph.ts +40 -0
- package/src/api-client/supply-chain.ts +106 -0
- package/src/api-client/swap-curve.ts +35 -0
- package/src/api-client/tape.ts +56 -0
- package/src/api-client/teams.ts +216 -0
- package/src/api-client/telemetry.ts +226 -0
- package/src/api-client/themes.ts +55 -0
- package/src/api-client/theses.ts +150 -0
- package/src/api-client/types.ts +2409 -0
- package/src/api-client/upgrade-experiment.ts +91 -0
- package/src/api-client/views.ts +98 -0
- package/src/api-client/wall-experiments.ts +102 -0
- package/src/api-client/wall-summary.ts +51 -0
- package/src/api-client/web-experiments.ts +139 -0
- package/src/api-client/yield-curves.ts +72 -0
- package/src/app/app-bootstrap-state.ts +121 -0
- package/src/app/command-bar-intro.ts +38 -0
- package/src/app/dialog-bridge.tsx +33 -0
- package/src/app/global-shortcuts.ts +334 -0
- package/src/app/keybindings/actions.ts +298 -0
- package/src/app/keybindings/capture-request.ts +36 -0
- package/src/app/keybindings/chord.ts +304 -0
- package/src/app/keybindings/config.ts +83 -0
- package/src/app/keybindings/index.ts +51 -0
- package/src/app/keybindings/labels.ts +104 -0
- package/src/app/keybindings/react.tsx +35 -0
- package/src/app/keybindings/resolve.ts +295 -0
- package/src/app/language-observer.tsx +13 -0
- package/src/app/pane-runtime/index.tsx +320 -0
- package/src/app/pane-runtime/layout-placement.ts +56 -0
- package/src/app/pane-runtime/pane-settings-runtime.tsx +69 -0
- package/src/app/pane-runtime/pane-template-runtime.ts +123 -0
- package/src/app/pane-runtime/plugin-bindings.ts +541 -0
- package/src/app/pane-runtime/ticker-inspector-runtime.ts +190 -0
- package/src/app/pane-runtime/ticker-open-runtime.ts +238 -0
- package/src/app/pane-runtime/ticker-open-target.ts +31 -0
- package/src/app/runtime/broker-import.ts +187 -0
- package/src/app/runtime/desktop-deeplink.ts +641 -0
- package/src/app/runtime/desktop-menu.ts +95 -0
- package/src/app/runtime/layout-warmup.ts +124 -0
- package/src/app/runtime/plugin-bindings.ts +301 -0
- package/src/app/runtime/startup.ts +256 -0
- package/src/app/runtime/ticker-refresh.ts +206 -0
- package/src/app/runtime/update.ts +260 -0
- package/src/app/star-prompt/model.ts +98 -0
- package/src/app/star-prompt/runtime.ts +41 -0
- package/src/app/star-prompt/status-line.tsx +190 -0
- package/src/app.tsx +663 -0
- package/src/architecture/core-builtin-allowlist.json +39 -0
- package/src/architecture/dom-cell-metrics-allowlist.json +102 -0
- package/src/architecture/pane-tabs-allowlist.json +68 -0
- package/src/architecture/silent-catch-allowlist.json +3 -0
- package/src/architecture/ttl-caches-allowlist.json +19 -0
- package/src/architecture/ui-literals-allowlist.json +186 -0
- package/src/architecture/ui-tokens-allowlist.json +40 -0
- package/src/ask-gloom/pane-context.ts +130 -0
- package/src/ask-gloom/pane-request.ts +70 -0
- package/src/ask-gloom/pane-text.ts +201 -0
- package/src/assets/gloomberb-logo-windows.ico +0 -0
- package/src/assets/gloomberb-logo-windows.png +0 -0
- package/src/assets/gloomberb-logo.svg +1 -0
- package/src/assets/gloomberb-mark.ico +0 -0
- package/src/assets/gloomberb-mark.svg +1 -0
- package/src/brokers/account-cache.ts +218 -0
- package/src/brokers/broker-portfolio-sync.ts +357 -0
- package/src/brokers/broker-ticker-sync.ts +146 -0
- package/src/brokers/cloud-broker-link.ts +26 -0
- package/src/brokers/directory.ts +76 -0
- package/src/brokers/logos.ts +68 -0
- package/src/brokers/profile-form.ts +113 -0
- package/src/brokers/remote-broker-adapter.ts +115 -0
- package/src/brokers/remove-profile.ts +61 -0
- package/src/brokers/signed-in/adapter.ts +568 -0
- package/src/brokers/signed-in/catalog.ts +130 -0
- package/src/brokers/signed-in/client.ts +81 -0
- package/src/brokers/signed-in/connect.ts +90 -0
- package/src/brokers/signed-in/profile.ts +18 -0
- package/src/brokers/signed-in/sign-in-dialog.tsx +339 -0
- package/src/brokers/signed-in/sign-in.ts +237 -0
- package/src/brokers/sync-broker-instance.ts +473 -0
- package/src/capabilities/chart-series.ts +354 -0
- package/src/capabilities/factories.ts +168 -0
- package/src/capabilities/index.ts +42 -0
- package/src/capabilities/registry.ts +181 -0
- package/src/capabilities/service-capabilities.ts +78 -0
- package/src/capabilities/stream-client.ts +39 -0
- package/src/capabilities/types.ts +161 -0
- package/src/cli/bank-section.ts +147 -0
- package/src/cli/base-converter.ts +86 -0
- package/src/cli/board-coins.ts +70 -0
- package/src/cli/central-bank-events.ts +23 -0
- package/src/cli/command-options.ts +141 -0
- package/src/cli/commands/api.ts +142 -0
- package/src/cli/commands/broker.ts +49 -0
- package/src/cli/commands/command-utils.ts +83 -0
- package/src/cli/commands/crypto-hints.ts +119 -0
- package/src/cli/commands/fred-series.ts +319 -0
- package/src/cli/commands/keybindings.ts +125 -0
- package/src/cli/commands/market.ts +3569 -0
- package/src/cli/commands/news-hints.ts +62 -0
- package/src/cli/commands/news-search.ts +166 -0
- package/src/cli/commands/options-chain.ts +355 -0
- package/src/cli/commands/options-leaps.ts +845 -0
- package/src/cli/commands/overview.ts +965 -0
- package/src/cli/commands/plugins.ts +382 -0
- package/src/cli/commands/remote.ts +219 -0
- package/src/cli/commands/search.ts +653 -0
- package/src/cli/commands/system.ts +699 -0
- package/src/cli/commands/themes.ts +73 -0
- package/src/cli/commands/ticker.ts +1672 -0
- package/src/cli/company-name-hint.ts +41 -0
- package/src/cli/context.ts +159 -0
- package/src/cli/currency-hints.ts +27 -0
- package/src/cli/desktop-pane-shot-routes.ts +7 -0
- package/src/cli/desktop-pane-shot-view.ts +114 -0
- package/src/cli/desktop-pane-shot.ts +1010 -0
- package/src/cli/earnings-calendar.ts +72 -0
- package/src/cli/entry.ts +97 -0
- package/src/cli/errors.ts +170 -0
- package/src/cli/exit-codes.ts +8 -0
- package/src/cli/export-source.ts +150 -0
- package/src/cli/freshness.ts +84 -0
- package/src/cli/fx-forward.ts +130 -0
- package/src/cli/fx-pair.ts +189 -0
- package/src/cli/glossary.ts +1009 -0
- package/src/cli/help.ts +246 -0
- package/src/cli/helpers.ts +169 -0
- package/src/cli/history-export.ts +126 -0
- package/src/cli/history-rows.ts +847 -0
- package/src/cli/index-roots.ts +44 -0
- package/src/cli/index.ts +515 -0
- package/src/cli/issuer-membership.ts +103 -0
- package/src/cli/known-gaps.ts +402 -0
- package/src/cli/listing-arg.ts +1529 -0
- package/src/cli/listing-suggestion.ts +174 -0
- package/src/cli/name-entries.ts +127 -0
- package/src/cli/native-smoke.ts +43 -0
- package/src/cli/not-a-ticker.ts +83 -0
- package/src/cli/opentui-libc.ts +5 -0
- package/src/cli/options.ts +166 -0
- package/src/cli/output-file.ts +68 -0
- package/src/cli/pane-functions/access-gate.ts +75 -0
- package/src/cli/pane-functions/capabilities.ts +367 -0
- package/src/cli/pane-functions/catalog.ts +834 -0
- package/src/cli/pane-functions/cloud-session.ts +47 -0
- package/src/cli/pane-functions/data.ts +254 -0
- package/src/cli/pane-functions/discovery.ts +234 -0
- package/src/cli/pane-functions/dom.ts +425 -0
- package/src/cli/pane-functions/financial-ratio-shot.ts +160 -0
- package/src/cli/pane-functions/freshness.ts +1288 -0
- package/src/cli/pane-functions/function-help.ts +1450 -0
- package/src/cli/pane-functions/headless.ts +1059 -0
- package/src/cli/pane-functions/index.ts +636 -0
- package/src/cli/pane-functions/lock-note.ts +59 -0
- package/src/cli/pane-functions/market-session.ts +297 -0
- package/src/cli/pane-functions/options.ts +410 -0
- package/src/cli/pane-functions/report-notices.ts +121 -0
- package/src/cli/pane-functions/report.ts +102 -0
- package/src/cli/pane-functions/resolver.ts +428 -0
- package/src/cli/pane-functions/screenshot-assessment.ts +324 -0
- package/src/cli/pane-functions/screenshot-bridge.ts +152 -0
- package/src/cli/pane-functions/screenshot-chart-evidence.ts +396 -0
- package/src/cli/pane-functions/screenshot-data-evidence.ts +383 -0
- package/src/cli/pane-functions/screenshot-evidence.ts +131 -0
- package/src/cli/pane-functions/screenshot-payload.ts +453 -0
- package/src/cli/pane-functions/screenshot-render.ts +316 -0
- package/src/cli/pane-functions/screenshot-types.ts +167 -0
- package/src/cli/pane-functions/shot-options.ts +73 -0
- package/src/cli/perpetual-contract.ts +62 -0
- package/src/cli/peso-dollar-rates.ts +79 -0
- package/src/cli/quote-answer.ts +231 -0
- package/src/cli/registry.ts +178 -0
- package/src/cli/report-tables.ts +692 -0
- package/src/cli/restore-plugins.ts +77 -0
- package/src/cli/result.ts +670 -0
- package/src/cli/row-window.ts +76 -0
- package/src/cli/scoped-context.ts +41 -0
- package/src/cli/scroll-truncation.ts +38 -0
- package/src/cli/series-search.ts +117 -0
- package/src/cli/staged-tickers.ts +57 -0
- package/src/cli/statement-filings.ts +280 -0
- package/src/cli/suffixed-listing-rows.ts +49 -0
- package/src/cli/symbol-args.ts +158 -0
- package/src/cli/symbol-cells.ts +120 -0
- package/src/cli/symbol-list.ts +374 -0
- package/src/cli/symbol-rows.ts +517 -0
- package/src/cli/ticker-resolution.ts +566 -0
- package/src/cli/treasury-yields.ts +86 -0
- package/src/cli/types.ts +42 -0
- package/src/cli/uncovered-instrument.ts +20 -0
- package/src/cli/unknown-command.ts +88 -0
- package/src/cli/visible-key-values.ts +29 -0
- package/src/components/chart/composite/axis-overlays.tsx +452 -0
- package/src/components/chart/composite/bitmap.ts +71 -0
- package/src/components/chart/composite/chart-layout.ts +131 -0
- package/src/components/chart/composite/column-layout.ts +215 -0
- package/src/components/chart/composite/composite-chart.tsx +1248 -0
- package/src/components/chart/composite/downsample.ts +221 -0
- package/src/components/chart/composite/drawing-store.ts +79 -0
- package/src/components/chart/composite/format.ts +574 -0
- package/src/components/chart/composite/index.ts +16 -0
- package/src/components/chart/composite/interactions.ts +385 -0
- package/src/components/chart/composite/legend.tsx +623 -0
- package/src/components/chart/composite/level-labels.ts +30 -0
- package/src/components/chart/composite/levels.ts +172 -0
- package/src/components/chart/composite/panel-bitmap.ts +180 -0
- package/src/components/chart/composite/panel-gestures.ts +133 -0
- package/src/components/chart/composite/panel-labels.ts +147 -0
- package/src/components/chart/composite/panel-series.ts +106 -0
- package/src/components/chart/composite/panel-surface.tsx +1328 -0
- package/src/components/chart/composite/price-axis-labels.tsx +320 -0
- package/src/components/chart/composite/price-series.ts +83 -0
- package/src/components/chart/composite/range-statistics.ts +62 -0
- package/src/components/chart/composite/rasterizer.ts +645 -0
- package/src/components/chart/composite/scene.ts +971 -0
- package/src/components/chart/composite/series-axis-tags.tsx +74 -0
- package/src/components/chart/composite/series-cues.ts +85 -0
- package/src/components/chart/composite/session-shading.ts +100 -0
- package/src/components/chart/composite/text-renderer.ts +407 -0
- package/src/components/chart/composite/time-axis.ts +705 -0
- package/src/components/chart/composite/time-scale.ts +335 -0
- package/src/components/chart/composite/tool-catalog.ts +134 -0
- package/src/components/chart/composite/toolbar.tsx +238 -0
- package/src/components/chart/composite/tools.ts +769 -0
- package/src/components/chart/composite/types.ts +354 -0
- package/src/components/chart/composite/use-composite-chart-keyboard.ts +844 -0
- package/src/components/chart/composite/use-composite-value-scales.ts +44 -0
- package/src/components/chart/composite/use-composite-viewport.ts +180 -0
- package/src/components/chart/composite/value-scale.ts +149 -0
- package/src/components/chart/composite/volume-profile-paint.ts +80 -0
- package/src/components/chart/core/data.ts +9 -0
- package/src/components/chart/core/date-window.ts +179 -0
- package/src/components/chart/core/palette.ts +49 -0
- package/src/components/chart/core/pointer.ts +182 -0
- package/src/components/chart/core/types.ts +22 -0
- package/src/components/chart/core/view-reset.ts +46 -0
- package/src/components/chart/curve/curve-surface.tsx +280 -0
- package/src/components/chart/curve/index.ts +4 -0
- package/src/components/chart/curve/model.ts +354 -0
- package/src/components/chart/native/bitmap-support.ts +55 -0
- package/src/components/chart/native/chart-rasterizer.ts +16 -0
- package/src/components/chart/native/kitty/adapter.ts +9 -0
- package/src/components/chart/native/kitty/manager.ts +145 -0
- package/src/components/chart/native/kitty/protocol.ts +112 -0
- package/src/components/chart/native/kitty/support.ts +104 -0
- package/src/components/chart/native/raster/crosshair.ts +89 -0
- package/src/components/chart/native/raster/placement.ts +138 -0
- package/src/components/chart/native/raster/primitives.ts +209 -0
- package/src/components/chart/native/raster/types.ts +25 -0
- package/src/components/chart/native/renderer-selection.ts +154 -0
- package/src/components/chart/native/surface/manager.ts +290 -0
- package/src/components/chart/native/surface/visibility.ts +85 -0
- package/src/components/chart/native/use-chart-text-fallback.ts +19 -0
- package/src/components/chart/static/chart-surface.tsx +162 -0
- package/src/components/chart/static/index.ts +5 -0
- package/src/components/chart/static/scatter-chart-surface.tsx +184 -0
- package/src/components/chart/static/series.ts +91 -0
- package/src/components/chart/static/trail-chart-model.ts +105 -0
- package/src/components/chart/static/trail-chart-surface.tsx +422 -0
- package/src/components/chart/surface3d/chart.tsx +104 -0
- package/src/components/chart/surface3d/model.ts +426 -0
- package/src/components/chart/surface3d/software.ts +360 -0
- package/src/components/chart-table/axis.ts +49 -0
- package/src/components/chart-table/header.tsx +264 -0
- package/src/components/chart-table/index.ts +13 -0
- package/src/components/chart-table/layout.ts +154 -0
- package/src/components/chart-table/read.tsx +74 -0
- package/src/components/chart-table/selection.ts +145 -0
- package/src/components/command-bar/action-runtime.ts +268 -0
- package/src/components/command-bar/assist/inventory.ts +146 -0
- package/src/components/command-bar/assist/model.ts +279 -0
- package/src/components/command-bar/assist/runtime.ts +246 -0
- package/src/components/command-bar/commands/collection-list.ts +262 -0
- package/src/components/command-bar/commands/collection.ts +285 -0
- package/src/components/command-bar/commands/direct/index.ts +460 -0
- package/src/components/command-bar/commands/direct/runtime.ts +181 -0
- package/src/components/command-bar/commands/plugin/actions.ts +143 -0
- package/src/components/command-bar/commands/plugin/items.ts +178 -0
- package/src/components/command-bar/commands/registry.ts +362 -0
- package/src/components/command-bar/helpers.ts +86 -0
- package/src/components/command-bar/keyboard-handlers.ts +129 -0
- package/src/components/command-bar/keyboard-shortcuts.ts +165 -0
- package/src/components/command-bar/layout-items/current-layout.ts +210 -0
- package/src/components/command-bar/layout-items/focused-pane.ts +193 -0
- package/src/components/command-bar/layout-items/types.ts +26 -0
- package/src/components/command-bar/layout-items/window-mode.ts +72 -0
- package/src/components/command-bar/layout-items.ts +93 -0
- package/src/components/command-bar/list/badge.ts +63 -0
- package/src/components/command-bar/list/model.ts +213 -0
- package/src/components/command-bar/list/navigation.ts +121 -0
- package/src/components/command-bar/list/view.tsx +362 -0
- package/src/components/command-bar/pane-actions.ts +128 -0
- package/src/components/command-bar/pane-settings.ts +44 -0
- package/src/components/command-bar/pane-templates/items.ts +289 -0
- package/src/components/command-bar/pane-templates/workflow-route.ts +91 -0
- package/src/components/command-bar/pane-templates/workflow.ts +344 -0
- package/src/components/command-bar/panel/index.tsx +260 -0
- package/src/components/command-bar/panel/layout.ts +150 -0
- package/src/components/command-bar/panel/native-surface.ts +26 -0
- package/src/components/command-bar/panel/palette.ts +28 -0
- package/src/components/command-bar/panel/prompt-binding.ts +54 -0
- package/src/components/command-bar/panel/prompt-example.ts +22 -0
- package/src/components/command-bar/panel/runtime.ts +230 -0
- package/src/components/command-bar/panel/state.ts +161 -0
- package/src/components/command-bar/panel/types.ts +50 -0
- package/src/components/command-bar/picker-activation.ts +87 -0
- package/src/components/command-bar/routes/root/command-items.ts +253 -0
- package/src/components/command-bar/routes/root/help-items.ts +66 -0
- package/src/components/command-bar/routes/root/pick-prefetch.ts +38 -0
- package/src/components/command-bar/routes/root/plugin-install.ts +304 -0
- package/src/components/command-bar/routes/root/plugin-turn-on.ts +92 -0
- package/src/components/command-bar/routes/root/provider-search.ts +271 -0
- package/src/components/command-bar/routes/root/results.ts +439 -0
- package/src/components/command-bar/routes/root/runtime.ts +396 -0
- package/src/components/command-bar/routes/root/search-providers.ts +311 -0
- package/src/components/command-bar/routes/root/search-report.ts +247 -0
- package/src/components/command-bar/routes/root/selection.ts +250 -0
- package/src/components/command-bar/routes/root/shortcut-feedback.ts +116 -0
- package/src/components/command-bar/routes/root/shortcut-items.ts +161 -0
- package/src/components/command-bar/routes/root/shortcuts.ts +221 -0
- package/src/components/command-bar/routes/root/start-here.ts +90 -0
- package/src/components/command-bar/routes/ticker-search/actions.ts +248 -0
- package/src/components/command-bar/routes/ticker-search/results.ts +328 -0
- package/src/components/command-bar/routes/ticker-search/route.ts +151 -0
- package/src/components/command-bar/routing/actions.ts +194 -0
- package/src/components/command-bar/routing/confirm.ts +23 -0
- package/src/components/command-bar/routing/effects.ts +63 -0
- package/src/components/command-bar/routing/launch-request.ts +41 -0
- package/src/components/command-bar/routing/list-state.ts +196 -0
- package/src/components/command-bar/routing/navigation-state.ts +197 -0
- package/src/components/command-bar/selection-runtime.ts +411 -0
- package/src/components/command-bar/surface/environment.ts +136 -0
- package/src/components/command-bar/surface/index.tsx +633 -0
- package/src/components/command-bar/theme-picker.tsx +336 -0
- package/src/components/command-bar/theme-preview.ts +84 -0
- package/src/components/command-bar/view-model.ts +237 -0
- package/src/components/command-bar/workflow/alert.ts +170 -0
- package/src/components/command-bar/workflow/broker.ts +186 -0
- package/src/components/command-bar/workflow/builtin.ts +174 -0
- package/src/components/command-bar/workflow/collection-actions.ts +398 -0
- package/src/components/command-bar/workflow/collection-ticker.ts +93 -0
- package/src/components/command-bar/workflow/coordinator.ts +72 -0
- package/src/components/command-bar/workflow/fields.ts +252 -0
- package/src/components/command-bar/workflow/ops.ts +459 -0
- package/src/components/command-bar/workflow/pane-reuse.ts +178 -0
- package/src/components/command-bar/workflow/portfolio-position.ts +211 -0
- package/src/components/command-bar/workflow/route-builder.ts +56 -0
- package/src/components/command-bar/workflow/submit.ts +220 -0
- package/src/components/command-bar/workflow/ticker-listing-picker.ts +38 -0
- package/src/components/command-bar/workflow/tickers.ts +288 -0
- package/src/components/command-bar/workflow/types.ts +106 -0
- package/src/components/company-logo.tsx +112 -0
- package/src/components/data-table/export.ts +76 -0
- package/src/components/data-table/sections.ts +57 -0
- package/src/components/data-table/sort-menu.tsx +75 -0
- package/src/components/data-table/stack-view.tsx +114 -0
- package/src/components/data-table/table-pane.ts +46 -0
- package/src/components/data-table/view.tsx +767 -0
- package/src/components/feed-data-table/stack-view.tsx +304 -0
- package/src/components/feed-stack-controller.ts +39 -0
- package/src/components/feedback-dialog.tsx +341 -0
- package/src/components/form-modal/broker-step.tsx +63 -0
- package/src/components/form-modal/confirm.tsx +147 -0
- package/src/components/form-modal/content.tsx +703 -0
- package/src/components/form-modal/deps.ts +77 -0
- package/src/components/form-modal/field-row.tsx +316 -0
- package/src/components/form-modal/host.tsx +169 -0
- package/src/components/form-modal/index.ts +2 -0
- package/src/components/form-modal/model.ts +134 -0
- package/src/components/form-modal/request.ts +74 -0
- package/src/components/form-modal/routes.ts +157 -0
- package/src/components/index.ts +162 -0
- package/src/components/input-search-bar.tsx +171 -0
- package/src/components/layout/detached-pane-shell.tsx +487 -0
- package/src/components/layout/floating-pane.tsx +196 -0
- package/src/components/layout/header.tsx +967 -0
- package/src/components/layout/market-summary.ts +154 -0
- package/src/components/layout/missing-pane.tsx +172 -0
- package/src/components/layout/pane/capture-stamp.ts +41 -0
- package/src/components/layout/pane/capture-status.ts +12 -0
- package/src/components/layout/pane/content.tsx +113 -0
- package/src/components/layout/pane/cycle-order.ts +23 -0
- package/src/components/layout/pane/error-boundary.tsx +103 -0
- package/src/components/layout/pane/footer/index.tsx +406 -0
- package/src/components/layout/pane/footer/keyboard.ts +99 -0
- package/src/components/layout/pane/footer/model.ts +456 -0
- package/src/components/layout/pane/footer/registration.tsx +278 -0
- package/src/components/layout/pane/frame.tsx +56 -0
- package/src/components/layout/pane/header-tabs.tsx +135 -0
- package/src/components/layout/pane/header.tsx +471 -0
- package/src/components/layout/pane/index.tsx +148 -0
- package/src/components/layout/pane/instrument-coverage-gate.tsx +57 -0
- package/src/components/layout/pane/pane-tabs.tsx +50 -0
- package/src/components/layout/pane/sidebar-metrics.ts +65 -0
- package/src/components/layout/pane/sidebar.tsx +448 -0
- package/src/components/layout/pane/sizing.ts +100 -0
- package/src/components/layout/pane/status-footer.ts +92 -0
- package/src/components/layout/pane/surface.ts +26 -0
- package/src/components/layout/pane/ticker-fate-gate.tsx +62 -0
- package/src/components/layout/pane/title.ts +111 -0
- package/src/components/layout/presentation.ts +22 -0
- package/src/components/layout/shell/action-menu-overlay.tsx +149 -0
- package/src/components/layout/shell/active-drag.ts +266 -0
- package/src/components/layout/shell/chrome.ts +127 -0
- package/src/components/layout/shell/cursor-occlusion.ts +206 -0
- package/src/components/layout/shell/drag/index.ts +456 -0
- package/src/components/layout/shell/drag/live.ts +203 -0
- package/src/components/layout/shell/drag/overlays.tsx +222 -0
- package/src/components/layout/shell/drag/runtime.ts +347 -0
- package/src/components/layout/shell/drag/slide.ts +10 -0
- package/src/components/layout/shell/fullscreen.ts +10 -0
- package/src/components/layout/shell/index.tsx +970 -0
- package/src/components/layout/shell/layout-state.ts +86 -0
- package/src/components/layout/shell/menu.ts +303 -0
- package/src/components/layout/shell/native/pointer-runtime.ts +209 -0
- package/src/components/layout/shell/native/surfaces.ts +143 -0
- package/src/components/layout/shell/native/window-state.ts +208 -0
- package/src/components/layout/shell/pane/actions.ts +223 -0
- package/src/components/layout/shell/pane/ask.ts +136 -0
- package/src/components/layout/shell/pane/capture.ts +177 -0
- package/src/components/layout/shell/pane/layers.tsx +777 -0
- package/src/components/layout/shell/pane/management-shortcuts.ts +239 -0
- package/src/components/layout/shell/pane/new-layout.ts +116 -0
- package/src/components/layout/shell/pane-occlusion.ts +63 -0
- package/src/components/layout/shell/shortcuts.ts +124 -0
- package/src/components/layout/shell/terminal-pointer-runtime.ts +380 -0
- package/src/components/layout/shell/ticker-link-menu.ts +115 -0
- package/src/components/layout/shell/visible-layout.ts +60 -0
- package/src/components/layout/shell/window-mode/index.ts +271 -0
- package/src/components/layout/shell/window-mode/overlays.tsx +225 -0
- package/src/components/layout/status-bar-groups.ts +85 -0
- package/src/components/layout/status-bar.tsx +755 -0
- package/src/components/layout/status-widget-space.ts +72 -0
- package/src/components/layout/titlebar-overlay.ts +17 -0
- package/src/components/layout/transient-layout.tsx +60 -0
- package/src/components/layout/window-controls.tsx +104 -0
- package/src/components/layout/window-edit/mode.ts +509 -0
- package/src/components/layout/window-edit/presentation.ts +138 -0
- package/src/components/layout/window-edit/status.tsx +121 -0
- package/src/components/layout/window-fullscreen.ts +32 -0
- package/src/components/markdown-editor.tsx +150 -0
- package/src/components/markdown-text.tsx +645 -0
- package/src/components/market-board/index.tsx +224 -0
- package/src/components/metric-treemap/heat-surface.tsx +828 -0
- package/src/components/metric-treemap/heat-tiles.ts +261 -0
- package/src/components/metric-treemap/index.tsx +352 -0
- package/src/components/metric-treemap/layout.ts +484 -0
- package/src/components/metric-treemap/scene.ts +432 -0
- package/src/components/onboarding/account-step/form-panel.tsx +196 -0
- package/src/components/onboarding/account-step/index.tsx +51 -0
- package/src/components/onboarding/account-step/qr-panel.tsx +47 -0
- package/src/components/onboarding/account-step/signed-in-panel.tsx +28 -0
- package/src/components/onboarding/desks-step.tsx +43 -0
- package/src/components/onboarding/first-run-workspace.ts +223 -0
- package/src/components/onboarding/onboarding-frame.tsx +597 -0
- package/src/components/onboarding/onboarding-keyboard.ts +311 -0
- package/src/components/onboarding/onboarding-steps.tsx +2 -0
- package/src/components/onboarding/onboarding-wizard.tsx +745 -0
- package/src/components/onboarding/portfolio-step/broker-fields-panel.tsx +177 -0
- package/src/components/onboarding/portfolio-step/broker-setup-panel.tsx +121 -0
- package/src/components/onboarding/portfolio-step/broker-sync-panel.tsx +40 -0
- package/src/components/onboarding/portfolio-step/choose-panel.tsx +39 -0
- package/src/components/onboarding/portfolio-step/index.tsx +74 -0
- package/src/components/onboarding/portfolio-step/positions-panel.tsx +379 -0
- package/src/components/onboarding/portfolio-step/types.ts +34 -0
- package/src/components/onboarding/portfolio-step/utils.ts +15 -0
- package/src/components/onboarding/pro-step-layout.ts +86 -0
- package/src/components/onboarding/use-onboarding-broker-form.ts +266 -0
- package/src/components/onboarding/use-onboarding-progress.ts +298 -0
- package/src/components/onboarding/use-onboarding-upgrade.ts +87 -0
- package/src/components/onboarding/wizard-account.ts +182 -0
- package/src/components/onboarding/wizard-broker-sync.ts +281 -0
- package/src/components/onboarding/wizard-model.ts +161 -0
- package/src/components/onboarding/wizard-positions.ts +434 -0
- package/src/components/paged-rows.ts +217 -0
- package/src/components/pane-settings-dialog/desktop.tsx +261 -0
- package/src/components/pane-settings-dialog/field-dialogs.tsx +214 -0
- package/src/components/pane-settings-dialog/tui.tsx +121 -0
- package/src/components/pane-settings-dialog/value.ts +68 -0
- package/src/components/pane-settings-dialog.tsx +248 -0
- package/src/components/pane-template-wizard.tsx +60 -0
- package/src/components/price-performance.tsx +85 -0
- package/src/components/price-selector-dialog.tsx +215 -0
- package/src/components/price-sparkline/bitmap.ts +150 -0
- package/src/components/price-sparkline/index.ts +73 -0
- package/src/components/price-sparkline/model.ts +150 -0
- package/src/components/price-sparkline/view.tsx +226 -0
- package/src/components/quote-flash.ts +168 -0
- package/src/components/reader/article-reader.tsx +468 -0
- package/src/components/reader/article-text.ts +527 -0
- package/src/components/reader/detail-reader.tsx +239 -0
- package/src/components/reader/reader-text.tsx +281 -0
- package/src/components/sign-in-code-panel.tsx +203 -0
- package/src/components/sign-in-gate.tsx +169 -0
- package/src/components/speedometer-gauge/desktop.tsx +142 -0
- package/src/components/speedometer-gauge/index.tsx +42 -0
- package/src/components/speedometer-gauge/model.ts +57 -0
- package/src/components/speedometer-gauge/terminal.tsx +283 -0
- package/src/components/table-view-shared.tsx +243 -0
- package/src/components/textarea-keys.ts +13 -0
- package/src/components/ticker/badge/format.ts +121 -0
- package/src/components/ticker/badge/index.tsx +144 -0
- package/src/components/ticker/badge/list.tsx +146 -0
- package/src/components/ticker/badge/text.tsx +157 -0
- package/src/components/ticker/list-table-view.tsx +421 -0
- package/src/components/toggle-list.tsx +194 -0
- package/src/components/ui/action-row.tsx +36 -0
- package/src/components/ui/action-scope.tsx +96 -0
- package/src/components/ui/audio-player.tsx +70 -0
- package/src/components/ui/button.tsx +189 -0
- package/src/components/ui/card.tsx +75 -0
- package/src/components/ui/checkbox.tsx +80 -0
- package/src/components/ui/choice-dialog.tsx +125 -0
- package/src/components/ui/choice-groups.ts +18 -0
- package/src/components/ui/column-grid.tsx +250 -0
- package/src/components/ui/confirm-dialog.tsx +175 -0
- package/src/components/ui/country-flag-art.tsx +629 -0
- package/src/components/ui/country-flag.tsx +147 -0
- package/src/components/ui/data-table/hooks.ts +46 -0
- package/src/components/ui/data-table/index.tsx +179 -0
- package/src/components/ui/data-table/opentui/index.tsx +796 -0
- package/src/components/ui/data-table/opentui/model.ts +281 -0
- package/src/components/ui/data-table/stable-columns.ts +34 -0
- package/src/components/ui/data-table/types.ts +191 -0
- package/src/components/ui/data-table/visible-range.ts +47 -0
- package/src/components/ui/detail-scroll-body.tsx +75 -0
- package/src/components/ui/dialog-actions.tsx +44 -0
- package/src/components/ui/disclosure-marker.tsx +38 -0
- package/src/components/ui/display.tsx +260 -0
- package/src/components/ui/external-link.tsx +181 -0
- package/src/components/ui/field-grid.tsx +473 -0
- package/src/components/ui/field-ring.ts +125 -0
- package/src/components/ui/fields.tsx +425 -0
- package/src/components/ui/figure.tsx +96 -0
- package/src/components/ui/fill.ts +8 -0
- package/src/components/ui/frame.tsx +149 -0
- package/src/components/ui/header-case.ts +30 -0
- package/src/components/ui/icon.tsx +199 -0
- package/src/components/ui/index.ts +84 -0
- package/src/components/ui/inline-quick-add.tsx +144 -0
- package/src/components/ui/list-row-lines.tsx +87 -0
- package/src/components/ui/list-view.tsx +403 -0
- package/src/components/ui/loading.tsx +17 -0
- package/src/components/ui/logo-mark.tsx +73 -0
- package/src/components/ui/menu.tsx +152 -0
- package/src/components/ui/message-composer.tsx +172 -0
- package/src/components/ui/multi-select/dialog.tsx +643 -0
- package/src/components/ui/multi-select/index.ts +190 -0
- package/src/components/ui/number-prompt-dialog.tsx +71 -0
- package/src/components/ui/number-step.ts +54 -0
- package/src/components/ui/page-stack-view.tsx +137 -0
- package/src/components/ui/popover.tsx +10 -0
- package/src/components/ui/prose.tsx +280 -0
- package/src/components/ui/query-bar-keys.tsx +196 -0
- package/src/components/ui/query-bar.tsx +554 -0
- package/src/components/ui/quote.ts +42 -0
- package/src/components/ui/range-track.tsx +66 -0
- package/src/components/ui/ratio-bar.tsx +84 -0
- package/src/components/ui/remote-image.tsx +37 -0
- package/src/components/ui/reveal-in-scroll-box.ts +52 -0
- package/src/components/ui/row-notes.ts +79 -0
- package/src/components/ui/row-value-cache.ts +41 -0
- package/src/components/ui/select-button.tsx +219 -0
- package/src/components/ui/select-field.tsx +55 -0
- package/src/components/ui/shortcut-hint.tsx +69 -0
- package/src/components/ui/split-bar.tsx +69 -0
- package/src/components/ui/stat-grid.tsx +198 -0
- package/src/components/ui/status.tsx +347 -0
- package/src/components/ui/table-layout.ts +259 -0
- package/src/components/ui/tabs.tsx +587 -0
- package/src/components/ui/text-prompt-dialog.tsx +135 -0
- package/src/components/ui/toggle.tsx +136 -0
- package/src/components/ui/windowed-list.tsx +27 -0
- package/src/components/use-double-click-activation.ts +40 -0
- package/src/components/use-external-link-footer.ts +82 -0
- package/src/components/use-pane-notice-footer.tsx +128 -0
- package/src/components/use-pinned-moment.ts +19 -0
- package/src/components/use-scrollbox-layout.ts +17 -0
- package/src/core/app-runtime.ts +136 -0
- package/src/core/app-service-ports.ts +54 -0
- package/src/core/app-services.ts +48 -0
- package/src/core/connection-health.ts +293 -0
- package/src/core/state/app/instrument.ts +99 -0
- package/src/core/state/app/layout-reducer.ts +405 -0
- package/src/core/state/app/layout.ts +613 -0
- package/src/core/state/app/state.ts +401 -0
- package/src/core/state/app/types.ts +201 -0
- package/src/core/state/session-persistence.ts +150 -0
- package/src/data/app-persistence.ts +25 -0
- package/src/data/cached-query.ts +120 -0
- package/src/data/config/chart-settings.ts +709 -0
- package/src/data/config/home.ts +123 -0
- package/src/data/config/layout.ts +317 -0
- package/src/data/config/store/fold-panes.ts +340 -0
- package/src/data/config/store/index.ts +63 -0
- package/src/data/config/store/migrations.ts +294 -0
- package/src/data/config/store/node.ts +178 -0
- package/src/data/config/store/normalize.ts +517 -0
- package/src/data/config/store/pane-state.ts +47 -0
- package/src/data/config/store/portfolio-as-of-column.ts +57 -0
- package/src/data/json-persistence.ts +85 -0
- package/src/data/json-storage.ts +57 -0
- package/src/data/json-ticker-repository.ts +67 -0
- package/src/data/memory-resource-store.ts +152 -0
- package/src/data/plugin-cache.ts +119 -0
- package/src/data/plugin-state-store.ts +150 -0
- package/src/data/resource-store.ts +434 -0
- package/src/data/response-sequence.ts +6 -0
- package/src/data/saved-copies.ts +123 -0
- package/src/data/session-store.ts +59 -0
- package/src/data/sqlite/database.ts +80 -0
- package/src/data/sqlite/json.ts +18 -0
- package/src/data/sqlite/retry.ts +90 -0
- package/src/data/ticker-repository.ts +60 -0
- package/src/data/ticker-store.ts +65 -0
- package/src/data/ticker-writes.ts +81 -0
- package/src/data/ttl-cache.ts +165 -0
- package/src/docs/content.ts +215 -0
- package/src/docs/load.ts +139 -0
- package/src/docs/requests.ts +39 -0
- package/src/docs/snapshot.chunk.ts +8 -0
- package/src/docs/snapshot.json +8106 -0
- package/src/docs/topics.ts +216 -0
- package/src/feedback/diagnostics.ts +152 -0
- package/src/feedback/redact.ts +54 -0
- package/src/feedback/screenshot.ts +45 -0
- package/src/feedback/types.ts +60 -0
- package/src/i18n/es.ts +1690 -0
- package/src/i18n/index.ts +159 -0
- package/src/i18n/ja.ts +1686 -0
- package/src/i18n/ko.ts +1684 -0
- package/src/i18n/languages.ts +101 -0
- package/src/i18n/react.ts +6 -0
- package/src/i18n/zh-cn.ts +1686 -0
- package/src/i18n/zh-tw.ts +1686 -0
- package/src/layout/desk-keys.ts +7 -0
- package/src/layout/desks.ts +334 -0
- package/src/layout/launch-layout.ts +147 -0
- package/src/layout/pane-follow.ts +47 -0
- package/src/layout/pane-layout-move.ts +264 -0
- package/src/layout/pane-manager/dock-tree.ts +302 -0
- package/src/layout/pane-manager/docking.ts +209 -0
- package/src/layout/pane-manager/floating-actions.ts +160 -0
- package/src/layout/pane-manager/floating.ts +124 -0
- package/src/layout/pane-manager/gridlock-inference.ts +126 -0
- package/src/layout/pane-manager/gridlock.ts +143 -0
- package/src/layout/pane-manager/hidden-panes.ts +160 -0
- package/src/layout/pane-manager/index.ts +71 -0
- package/src/layout/pane-manager/layout-state.ts +203 -0
- package/src/layout/pane-manager/queries.ts +82 -0
- package/src/layout/pane-manager/types.ts +24 -0
- package/src/layout/pane-state.ts +48 -0
- package/src/layout/selected-ticker.ts +74 -0
- package/src/layout/ticker-navigation.ts +128 -0
- package/src/layout-marketplace/api.ts +65 -0
- package/src/layout-marketplace/cloud.ts +183 -0
- package/src/layout-marketplace/gallery-desktop.tsx +476 -0
- package/src/layout-marketplace/gallery-terminal.tsx +371 -0
- package/src/layout-marketplace/gallery.tsx +776 -0
- package/src/layout-marketplace/geometry.ts +80 -0
- package/src/layout-marketplace/linked-sync.ts +109 -0
- package/src/layout-marketplace/linked.ts +140 -0
- package/src/layout-marketplace/mini-workspace.tsx +428 -0
- package/src/layout-marketplace/model.ts +270 -0
- package/src/layout-marketplace/pane-imagery.ts +87 -0
- package/src/layout-marketplace/pane.tsx +20 -0
- package/src/layout-marketplace/use-marketplace.ts +130 -0
- package/src/market-data/bars-per-year.ts +43 -0
- package/src/market-data/bond-funds.ts +85 -0
- package/src/market-data/commodity-names.ts +80 -0
- package/src/market-data/coordinator/auxiliary.ts +275 -0
- package/src/market-data/coordinator/chart.ts +164 -0
- package/src/market-data/coordinator/entries.ts +180 -0
- package/src/market-data/coordinator/events.ts +103 -0
- package/src/market-data/coordinator/financials.ts +260 -0
- package/src/market-data/coordinator/fx-legs.ts +71 -0
- package/src/market-data/coordinator/index.ts +854 -0
- package/src/market-data/coordinator/quotes.ts +485 -0
- package/src/market-data/depositary-pair.ts +251 -0
- package/src/market-data/frame-scheduler.ts +335 -0
- package/src/market-data/fund-facts.ts +50 -0
- package/src/market-data/futures-board.ts +255 -0
- package/src/market-data/futures-contract.ts +486 -0
- package/src/market-data/fx-closes.ts +164 -0
- package/src/market-data/history-session.ts +97 -0
- package/src/market-data/hooks.tsx +630 -0
- package/src/market-data/market/bar-period.ts +107 -0
- package/src/market-data/market/change-basis.ts +302 -0
- package/src/market-data/market/dated-previous-close.ts +203 -0
- package/src/market-data/market/format.ts +713 -0
- package/src/market-data/market/freshness.ts +794 -0
- package/src/market-data/market/futures-week.ts +68 -0
- package/src/market-data/market/index-level.ts +51 -0
- package/src/market-data/market/period-return.ts +163 -0
- package/src/market-data/market/price-basis.ts +9 -0
- package/src/market-data/market/session-close-note.ts +58 -0
- package/src/market-data/market/status.ts +588 -0
- package/src/market-data/market/trading-sessions.ts +149 -0
- package/src/market-data/market/year-to-date.ts +41 -0
- package/src/market-data/model-dividend-yield.ts +117 -0
- package/src/market-data/options-alternatives.ts +206 -0
- package/src/market-data/performance.ts +125 -0
- package/src/market-data/perpetual-premium.ts +32 -0
- package/src/market-data/portfolio-financials.ts +37 -0
- package/src/market-data/published-apac-sessions.ts +99 -0
- package/src/market-data/published-cn-sessions.ts +25 -0
- package/src/market-data/published-futures-sessions.ts +69 -0
- package/src/market-data/published-jpx-sessions.ts +22 -0
- package/src/market-data/published-nse-sessions.ts +20 -0
- package/src/market-data/published-us-sessions.ts +87 -0
- package/src/market-data/query-store.ts +95 -0
- package/src/market-data/quote-subscription-target.ts +79 -0
- package/src/market-data/quotes/clock.ts +56 -0
- package/src/market-data/quotes/contributions.ts +336 -0
- package/src/market-data/quotes/day-range.ts +106 -0
- package/src/market-data/quotes/delisting.ts +34 -0
- package/src/market-data/quotes/freshness.ts +174 -0
- package/src/market-data/quotes/intraday-bar.ts +37 -0
- package/src/market-data/quotes/live-valuation.ts +235 -0
- package/src/market-data/quotes/metadata.ts +66 -0
- package/src/market-data/quotes/regular-session-valuation.ts +198 -0
- package/src/market-data/quotes/resolution.ts +653 -0
- package/src/market-data/quotes/screener-live-quotes.ts +283 -0
- package/src/market-data/quotes/time.ts +83 -0
- package/src/market-data/realized-volatility.ts +301 -0
- package/src/market-data/request-types.ts +127 -0
- package/src/market-data/result-types.ts +53 -0
- package/src/market-data/selectors.ts +131 -0
- package/src/market-data/snapshot-provider.ts +299 -0
- package/src/market-data/tax-equivalent.ts +352 -0
- package/src/market-data/ticker-price-returns.ts +20 -0
- package/src/market-data/trace.ts +7 -0
- package/src/news/aggregator.ts +689 -0
- package/src/news/cloud-session.ts +21 -0
- package/src/news/hooks.ts +67 -0
- package/src/news/news-model.ts +247 -0
- package/src/news/source-label.ts +22 -0
- package/src/news/ticker-symbols.ts +21 -0
- package/src/news/types.ts +110 -0
- package/src/notifications/app-badge.ts +30 -0
- package/src/notifications/app-notifier.ts +287 -0
- package/src/notifications/notification-log.ts +186 -0
- package/src/pane-settings.ts +89 -0
- package/src/plugins/absorbed.ts +33 -0
- package/src/plugins/auto-update-node.ts +115 -0
- package/src/plugins/auto-update.ts +281 -0
- package/src/plugins/builtin/account-management/calendar-tab.tsx +196 -0
- package/src/plugins/builtin/account-management/footer.ts +37 -0
- package/src/plugins/builtin/account-management/form-components.tsx +199 -0
- package/src/plugins/builtin/account-management/index.tsx +28 -0
- package/src/plugins/builtin/account-management/keyboard.ts +102 -0
- package/src/plugins/builtin/account-management/model.ts +358 -0
- package/src/plugins/builtin/account-management/navigation.ts +9 -0
- package/src/plugins/builtin/account-management/pane.tsx +1100 -0
- package/src/plugins/builtin/account-management/password-dialog.tsx +127 -0
- package/src/plugins/builtin/account-management/trial-cancel.ts +40 -0
- package/src/plugins/builtin/alerts/alert-engine.ts +138 -0
- package/src/plugins/builtin/alerts/alert-log.ts +33 -0
- package/src/plugins/builtin/alerts/calendar-events.ts +429 -0
- package/src/plugins/builtin/alerts/catalysts.ts +77 -0
- package/src/plugins/builtin/alerts/cli-forms.ts +216 -0
- package/src/plugins/builtin/alerts/cli.ts +1134 -0
- package/src/plugins/builtin/alerts/command.ts +112 -0
- package/src/plugins/builtin/alerts/constants.ts +12 -0
- package/src/plugins/builtin/alerts/event-rows.ts +20 -0
- package/src/plugins/builtin/alerts/events-pane.tsx +255 -0
- package/src/plugins/builtin/alerts/events.ts +260 -0
- package/src/plugins/builtin/alerts/fired-log.ts +183 -0
- package/src/plugins/builtin/alerts/focus.ts +27 -0
- package/src/plugins/builtin/alerts/format.ts +146 -0
- package/src/plugins/builtin/alerts/headless.ts +266 -0
- package/src/plugins/builtin/alerts/history-pane.tsx +161 -0
- package/src/plugins/builtin/alerts/history-rows.ts +93 -0
- package/src/plugins/builtin/alerts/history.ts +91 -0
- package/src/plugins/builtin/alerts/index.tsx +520 -0
- package/src/plugins/builtin/alerts/iv-level.ts +365 -0
- package/src/plugins/builtin/alerts/levels.ts +60 -0
- package/src/plugins/builtin/alerts/live.ts +136 -0
- package/src/plugins/builtin/alerts/metric-command.ts +134 -0
- package/src/plugins/builtin/alerts/metric-data.ts +111 -0
- package/src/plugins/builtin/alerts/metric-model.ts +324 -0
- package/src/plugins/builtin/alerts/metric-parity-fixture.json +725 -0
- package/src/plugins/builtin/alerts/pane.tsx +484 -0
- package/src/plugins/builtin/alerts/price.ts +35 -0
- package/src/plugins/builtin/alerts/quotes.ts +98 -0
- package/src/plugins/builtin/alerts/research-builder.ts +160 -0
- package/src/plugins/builtin/alerts/research-rules.ts +316 -0
- package/src/plugins/builtin/alerts/scheduled-check.ts +296 -0
- package/src/plugins/builtin/alerts/scheduled-sources.ts +48 -0
- package/src/plugins/builtin/alerts/scheduled.ts +413 -0
- package/src/plugins/builtin/alerts/storage.ts +66 -0
- package/src/plugins/builtin/alerts/targets.ts +101 -0
- package/src/plugins/builtin/alerts/types.ts +31 -0
- package/src/plugins/builtin/analytics/account-returns.ts +109 -0
- package/src/plugins/builtin/analytics/broker-performance.ts +131 -0
- package/src/plugins/builtin/analytics/display.ts +15 -0
- package/src/plugins/builtin/analytics/index.tsx +502 -0
- package/src/plugins/builtin/analytics/metrics.ts +218 -0
- package/src/plugins/builtin/analytics/pane-model.ts +487 -0
- package/src/plugins/builtin/analytics/portfolio-selection.ts +29 -0
- package/src/plugins/builtin/analytics/risk-book.ts +215 -0
- package/src/plugins/builtin/analytics/risk-client.ts +711 -0
- package/src/plugins/builtin/analytics/risk-evidence.ts +485 -0
- package/src/plugins/builtin/analytics/risk-fx.ts +218 -0
- package/src/plugins/builtin/analytics/risk-headless.ts +413 -0
- package/src/plugins/builtin/analytics/risk-math.ts +489 -0
- package/src/plugins/builtin/analytics/risk-model.ts +1288 -0
- package/src/plugins/builtin/analytics/risk-options.ts +265 -0
- package/src/plugins/builtin/analytics/risk-pane.tsx +839 -0
- package/src/plugins/builtin/analytics/risk-test-data.ts +262 -0
- package/src/plugins/builtin/analytics/sector-model.ts +187 -0
- package/src/plugins/builtin/analytics/sharpe-cadence.ts +136 -0
- package/src/plugins/builtin/analytics/view.tsx +186 -0
- package/src/plugins/builtin/attention/client.ts +80 -0
- package/src/plugins/builtin/attention/evidence.ts +30 -0
- package/src/plugins/builtin/attention/headless.ts +44 -0
- package/src/plugins/builtin/attention/index.tsx +21 -0
- package/src/plugins/builtin/attention/listing.ts +14 -0
- package/src/plugins/builtin/attention/model.ts +81 -0
- package/src/plugins/builtin/attention/pane.tsx +219 -0
- package/src/plugins/builtin/attention/series.ts +26 -0
- package/src/plugins/builtin/attention/trending.tsx +61 -0
- package/src/plugins/builtin/awards/alerts.ts +32 -0
- package/src/plugins/builtin/awards/client.ts +82 -0
- package/src/plugins/builtin/awards/detail.tsx +107 -0
- package/src/plugins/builtin/awards/evidence.ts +36 -0
- package/src/plugins/builtin/awards/headless.ts +135 -0
- package/src/plugins/builtin/awards/index.tsx +22 -0
- package/src/plugins/builtin/awards/model.ts +100 -0
- package/src/plugins/builtin/awards/pane.tsx +286 -0
- package/src/plugins/builtin/awards/series.ts +29 -0
- package/src/plugins/builtin/backtest/client.ts +92 -0
- package/src/plugins/builtin/backtest/engine.ts +185 -0
- package/src/plugins/builtin/backtest/export.ts +27 -0
- package/src/plugins/builtin/backtest/format.ts +52 -0
- package/src/plugins/builtin/backtest/headless.ts +81 -0
- package/src/plugins/builtin/backtest/index.tsx +33 -0
- package/src/plugins/builtin/backtest/pane.tsx +301 -0
- package/src/plugins/builtin/backtest/presets.ts +60 -0
- package/src/plugins/builtin/backtest/report.ts +160 -0
- package/src/plugins/builtin/backtest/rules.ts +209 -0
- package/src/plugins/builtin/backtest/window.ts +125 -0
- package/src/plugins/builtin/bond-calculator/client.ts +28 -0
- package/src/plugins/builtin/bond-calculator/headless.ts +56 -0
- package/src/plugins/builtin/bond-calculator/index.tsx +10 -0
- package/src/plugins/builtin/bond-calculator/math.ts +164 -0
- package/src/plugins/builtin/bond-calculator/model.ts +64 -0
- package/src/plugins/builtin/bond-calculator/pane.tsx +160 -0
- package/src/plugins/builtin/broker-manager/add-flow.tsx +662 -0
- package/src/plugins/builtin/broker-manager/add-request.ts +34 -0
- package/src/plugins/builtin/broker-manager/detail.tsx +380 -0
- package/src/plugins/builtin/broker-manager/footer.ts +89 -0
- package/src/plugins/builtin/broker-manager/index.tsx +411 -0
- package/src/plugins/builtin/broker-manager/keyboard.ts +59 -0
- package/src/plugins/builtin/broker-manager/model.ts +181 -0
- package/src/plugins/builtin/broker-manager/pane-actions.tsx +364 -0
- package/src/plugins/builtin/broker-manager/sign-in-end.ts +82 -0
- package/src/plugins/builtin/broker-manager/table.ts +86 -0
- package/src/plugins/builtin/broker-trading/account-picker.tsx +92 -0
- package/src/plugins/builtin/broker-trading/chart-levels.ts +123 -0
- package/src/plugins/builtin/broker-trading/command.ts +103 -0
- package/src/plugins/builtin/broker-trading/controller.ts +730 -0
- package/src/plugins/builtin/broker-trading/dock.tsx +202 -0
- package/src/plugins/builtin/broker-trading/headless.ts +77 -0
- package/src/plugins/builtin/broker-trading/index.tsx +95 -0
- package/src/plugins/builtin/broker-trading/linked-orders.ts +148 -0
- package/src/plugins/builtin/broker-trading/order-feed.ts +456 -0
- package/src/plugins/builtin/broker-trading/orders-data.ts +133 -0
- package/src/plugins/builtin/broker-trading/orders.tsx +515 -0
- package/src/plugins/builtin/broker-trading/overview-orders.tsx +127 -0
- package/src/plugins/builtin/broker-trading/pane-model.ts +235 -0
- package/src/plugins/builtin/broker-trading/pane.tsx +594 -0
- package/src/plugins/builtin/broker-trading/strategy.ts +153 -0
- package/src/plugins/builtin/broker-trading/ticket-parts.tsx +146 -0
- package/src/plugins/builtin/broker-trading/ticket.tsx +659 -0
- package/src/plugins/builtin/buildout/cells.tsx +206 -0
- package/src/plugins/builtin/buildout/data-runtime.ts +243 -0
- package/src/plugins/builtin/buildout/detail/company.tsx +279 -0
- package/src/plugins/builtin/buildout/detail/index.tsx +82 -0
- package/src/plugins/builtin/buildout/detail/intel.tsx +56 -0
- package/src/plugins/builtin/buildout/detail/satellite-images.tsx +80 -0
- package/src/plugins/builtin/buildout/detail/site.tsx +115 -0
- package/src/plugins/builtin/buildout/detail/ui.tsx +235 -0
- package/src/plugins/builtin/buildout/detail/values.ts +67 -0
- package/src/plugins/builtin/buildout/format.ts +224 -0
- package/src/plugins/builtin/buildout/index.tsx +24 -0
- package/src/plugins/builtin/buildout/model/index.ts +144 -0
- package/src/plugins/builtin/buildout/model/normalizers.ts +431 -0
- package/src/plugins/builtin/buildout/model/types.ts +321 -0
- package/src/plugins/builtin/buildout/pane/index.tsx +470 -0
- package/src/plugins/builtin/buildout/pane/status.tsx +87 -0
- package/src/plugins/builtin/buildout/table-model.ts +452 -0
- package/src/plugins/builtin/builtin-plugin-meta.ts +165 -0
- package/src/plugins/builtin/catalysts/client.ts +28 -0
- package/src/plugins/builtin/catalysts/detail.tsx +89 -0
- package/src/plugins/builtin/catalysts/evidence.ts +47 -0
- package/src/plugins/builtin/catalysts/headless.ts +59 -0
- package/src/plugins/builtin/catalysts/history.ts +26 -0
- package/src/plugins/builtin/catalysts/index.tsx +31 -0
- package/src/plugins/builtin/catalysts/model.ts +280 -0
- package/src/plugins/builtin/catalysts/pane.tsx +163 -0
- package/src/plugins/builtin/cds/client.ts +169 -0
- package/src/plugins/builtin/cds/headless.ts +367 -0
- package/src/plugins/builtin/cds/index.tsx +39 -0
- package/src/plugins/builtin/cds/model.ts +815 -0
- package/src/plugins/builtin/cds/pane.tsx +547 -0
- package/src/plugins/builtin/cds/series.ts +19 -0
- package/src/plugins/builtin/central-bank-rates/client.ts +66 -0
- package/src/plugins/builtin/central-bank-rates/headless.ts +81 -0
- package/src/plugins/builtin/central-bank-rates/index.tsx +20 -0
- package/src/plugins/builtin/central-bank-rates/model.ts +151 -0
- package/src/plugins/builtin/central-bank-rates/pane.tsx +73 -0
- package/src/plugins/builtin/central-bank-rates/series.ts +36 -0
- package/src/plugins/builtin/changelog/index.tsx +313 -0
- package/src/plugins/builtin/changelog/model.ts +88 -0
- package/src/plugins/builtin/chart-composer/catalog-inventory.ts +368 -0
- package/src/plugins/builtin/chart-composer/chart-spec-edit.ts +580 -0
- package/src/plugins/builtin/chart-composer/chart-spec.ts +159 -0
- package/src/plugins/builtin/chart-composer/cli-options.ts +131 -0
- package/src/plugins/builtin/chart-composer/data-catalog-pane.tsx +323 -0
- package/src/plugins/builtin/chart-composer/editor/controller.ts +657 -0
- package/src/plugins/builtin/chart-composer/editor/desktop-view.tsx +138 -0
- package/src/plugins/builtin/chart-composer/editor/model.ts +297 -0
- package/src/plugins/builtin/chart-composer/editor/opentui-view.tsx +111 -0
- package/src/plugins/builtin/chart-composer/editor.tsx +252 -0
- package/src/plugins/builtin/chart-composer/field-series.ts +40 -0
- package/src/plugins/builtin/chart-composer/follow-binding.ts +78 -0
- package/src/plugins/builtin/chart-composer/formula.ts +286 -0
- package/src/plugins/builtin/chart-composer/headless-schema.ts +256 -0
- package/src/plugins/builtin/chart-composer/headless.ts +807 -0
- package/src/plugins/builtin/chart-composer/index.tsx +544 -0
- package/src/plugins/builtin/chart-composer/leverage-overlay.ts +142 -0
- package/src/plugins/builtin/chart-composer/option-range.ts +39 -0
- package/src/plugins/builtin/chart-composer/pane.tsx +1477 -0
- package/src/plugins/builtin/chart-composer/presets.ts +320 -0
- package/src/plugins/builtin/chart-composer/price-levels.ts +80 -0
- package/src/plugins/builtin/chart-composer/quick-add.tsx +488 -0
- package/src/plugins/builtin/chart-composer/semantic.ts +113 -0
- package/src/plugins/builtin/chart-composer/series-catalog.ts +473 -0
- package/src/plugins/builtin/chart-composer/series-expression.ts +274 -0
- package/src/plugins/builtin/chart-composer/series-listings.ts +178 -0
- package/src/plugins/builtin/chart-composer/session-history.ts +382 -0
- package/src/plugins/builtin/chart-composer/session-range.ts +89 -0
- package/src/plugins/builtin/chart-composer/settings.ts +527 -0
- package/src/plugins/builtin/chart-composer/shortcuts.ts +27 -0
- package/src/plugins/builtin/chart-composer/studies.ts +242 -0
- package/src/plugins/builtin/chart-composer/use-series-catalog.ts +384 -0
- package/src/plugins/builtin/chart-composer/user-series.ts +84 -0
- package/src/plugins/builtin/chart-composer/viewport-labels.ts +93 -0
- package/src/plugins/builtin/chat/attachments/desktop.tsx +614 -0
- package/src/plugins/builtin/chat/attachments/files.ts +45 -0
- package/src/plugins/builtin/chat/attachments/model.ts +168 -0
- package/src/plugins/builtin/chat/attachments/terminal.tsx +72 -0
- package/src/plugins/builtin/chat/attachments/transfer.ts +165 -0
- package/src/plugins/builtin/chat/channel-labels.ts +67 -0
- package/src/plugins/builtin/chat/channels.ts +170 -0
- package/src/plugins/builtin/chat/command-bar.ts +136 -0
- package/src/plugins/builtin/chat/composer-commands.ts +54 -0
- package/src/plugins/builtin/chat/content/channel-navigation.ts +285 -0
- package/src/plugins/builtin/chat/content/command-suggestions.ts +93 -0
- package/src/plugins/builtin/chat/content/composer-cursor.ts +29 -0
- package/src/plugins/builtin/chat/content/composer-runtime.ts +471 -0
- package/src/plugins/builtin/chat/content/composer.tsx +310 -0
- package/src/plugins/builtin/chat/content/footer.tsx +321 -0
- package/src/plugins/builtin/chat/content/handle-prompt.tsx +326 -0
- package/src/plugins/builtin/chat/content/index.tsx +1289 -0
- package/src/plugins/builtin/chat/content/layout-metrics.ts +98 -0
- package/src/plugins/builtin/chat/content/mentions.ts +118 -0
- package/src/plugins/builtin/chat/content/new-dm-dialog.tsx +431 -0
- package/src/plugins/builtin/chat/content/new-messages.tsx +89 -0
- package/src/plugins/builtin/chat/content/open-targets.ts +80 -0
- package/src/plugins/builtin/chat/content/row-activity.ts +132 -0
- package/src/plugins/builtin/chat/content/scroll.ts +396 -0
- package/src/plugins/builtin/chat/content/selection-runtime.ts +66 -0
- package/src/plugins/builtin/chat/content/shortcuts.ts +344 -0
- package/src/plugins/builtin/chat/content/snapshot.ts +202 -0
- package/src/plugins/builtin/chat/content/transcript.tsx +296 -0
- package/src/plugins/builtin/chat/content/types.ts +35 -0
- package/src/plugins/builtin/chat/content/user-map.ts +23 -0
- package/src/plugins/builtin/chat/content/whole-message-copy.ts +112 -0
- package/src/plugins/builtin/chat/controller/attachments.ts +213 -0
- package/src/plugins/builtin/chat/controller/channel-actions.ts +97 -0
- package/src/plugins/builtin/chat/controller/channels.ts +180 -0
- package/src/plugins/builtin/chat/controller/connections.ts +110 -0
- package/src/plugins/builtin/chat/controller/draft-sync.ts +41 -0
- package/src/plugins/builtin/chat/controller/fetch.ts +85 -0
- package/src/plugins/builtin/chat/controller/index.ts +980 -0
- package/src/plugins/builtin/chat/controller/lifecycle.ts +153 -0
- package/src/plugins/builtin/chat/controller/mention-candidates.ts +104 -0
- package/src/plugins/builtin/chat/controller/message-loading.ts +104 -0
- package/src/plugins/builtin/chat/controller/messages.ts +243 -0
- package/src/plugins/builtin/chat/controller/notifications.ts +153 -0
- package/src/plugins/builtin/chat/controller/persistence.ts +170 -0
- package/src/plugins/builtin/chat/controller/realtime.ts +169 -0
- package/src/plugins/builtin/chat/controller/send.ts +250 -0
- package/src/plugins/builtin/chat/controller/session-runtime.ts +245 -0
- package/src/plugins/builtin/chat/controller/session.ts +41 -0
- package/src/plugins/builtin/chat/controller/state.ts +221 -0
- package/src/plugins/builtin/chat/controller/storage.ts +134 -0
- package/src/plugins/builtin/chat/controller/unread-people.ts +240 -0
- package/src/plugins/builtin/chat/controller/utils.ts +65 -0
- package/src/plugins/builtin/chat/controller/view.ts +103 -0
- package/src/plugins/builtin/chat/conversation-recency.ts +73 -0
- package/src/plugins/builtin/chat/conversations.ts +263 -0
- package/src/plugins/builtin/chat/direct-messages.ts +200 -0
- package/src/plugins/builtin/chat/discord-command.ts +91 -0
- package/src/plugins/builtin/chat/edit-window.ts +30 -0
- package/src/plugins/builtin/chat/ghost-user.ts +42 -0
- package/src/plugins/builtin/chat/handle-prompt.ts +128 -0
- package/src/plugins/builtin/chat/index.tsx +229 -0
- package/src/plugins/builtin/chat/layout.ts +570 -0
- package/src/plugins/builtin/chat/markdown.ts +94 -0
- package/src/plugins/builtin/chat/message/desktop.tsx +276 -0
- package/src/plugins/builtin/chat/message/header.tsx +209 -0
- package/src/plugins/builtin/chat/message/inline-tokens.tsx +315 -0
- package/src/plugins/builtin/chat/message/pane-chip.tsx +349 -0
- package/src/plugins/builtin/chat/message/pending-send.ts +35 -0
- package/src/plugins/builtin/chat/message/person-icons.tsx +53 -0
- package/src/plugins/builtin/chat/message/profile-popover.tsx +379 -0
- package/src/plugins/builtin/chat/message/reactions.tsx +210 -0
- package/src/plugins/builtin/chat/message/render-state.ts +151 -0
- package/src/plugins/builtin/chat/message/terminal.tsx +234 -0
- package/src/plugins/builtin/chat/message/types.ts +52 -0
- package/src/plugins/builtin/chat/pane-links/commands.ts +271 -0
- package/src/plugins/builtin/chat/pane-links/composer.ts +87 -0
- package/src/plugins/builtin/chat/pane-links/model.ts +158 -0
- package/src/plugins/builtin/chat/pane-links/open.ts +36 -0
- package/src/plugins/builtin/chat/pane-links/previews.ts +119 -0
- package/src/plugins/builtin/chat/pane-requests.ts +60 -0
- package/src/plugins/builtin/chat/pane-state.ts +115 -0
- package/src/plugins/builtin/chat/pane.tsx +145 -0
- package/src/plugins/builtin/chat/people.ts +202 -0
- package/src/plugins/builtin/chat/profile-popover.ts +207 -0
- package/src/plugins/builtin/chat/reactions.ts +197 -0
- package/src/plugins/builtin/chat/share/flow.tsx +32 -0
- package/src/plugins/builtin/chat/sidebar-rows.ts +109 -0
- package/src/plugins/builtin/chat/sidebar-store.ts +100 -0
- package/src/plugins/builtin/chat/sidebar.tsx +345 -0
- package/src/plugins/builtin/chat/status-widget.tsx +114 -0
- package/src/plugins/builtin/chat/unread-badge.ts +96 -0
- package/src/plugins/builtin/chat/unread-inbox-pane.tsx +281 -0
- package/src/plugins/builtin/chat/unread-inbox.ts +113 -0
- package/src/plugins/builtin/clinical-trials/client.ts +265 -0
- package/src/plugins/builtin/clinical-trials/index.tsx +83 -0
- package/src/plugins/builtin/clinical-trials/model.ts +269 -0
- package/src/plugins/builtin/clinical-trials/pane.tsx +423 -0
- package/src/plugins/builtin/clinical-trials/sponsor-tickers.ts +158 -0
- package/src/plugins/builtin/clinical-trials/types.ts +2 -0
- package/src/plugins/builtin/cloud/askg/attached-pane.tsx +69 -0
- package/src/plugins/builtin/cloud/askg/controller.ts +714 -0
- package/src/plugins/builtin/cloud/askg/conversation-store.ts +243 -0
- package/src/plugins/builtin/cloud/askg/executor.ts +476 -0
- package/src/plugins/builtin/cloud/askg/host.ts +94 -0
- package/src/plugins/builtin/cloud/askg/json.ts +31 -0
- package/src/plugins/builtin/cloud/askg/lock-note.ts +16 -0
- package/src/plugins/builtin/cloud/askg/manifest.ts +370 -0
- package/src/plugins/builtin/cloud/askg/model.ts +854 -0
- package/src/plugins/builtin/cloud/askg/notes.ts +100 -0
- package/src/plugins/builtin/cloud/askg/pane-attachment.ts +93 -0
- package/src/plugins/builtin/cloud/askg/pane.tsx +1749 -0
- package/src/plugins/builtin/cloud/askg/pending-question.ts +27 -0
- package/src/plugins/builtin/cloud/askg/protocol.ts +377 -0
- package/src/plugins/builtin/cloud/askg/result-budget.ts +156 -0
- package/src/plugins/builtin/cloud/askg/sidebar.tsx +184 -0
- package/src/plugins/builtin/cloud/askg/tool-display.ts +440 -0
- package/src/plugins/builtin/cloud/askg/tool-timeline.tsx +404 -0
- package/src/plugins/builtin/cloud/askg/undo.ts +254 -0
- package/src/plugins/builtin/cloud/askg/user-data.ts +89 -0
- package/src/plugins/builtin/cloud/auth-actions.tsx +158 -0
- package/src/plugins/builtin/cloud/auth-commands.ts +103 -0
- package/src/plugins/builtin/cloud/browser.tsx +3 -0
- package/src/plugins/builtin/cloud/company-picker.tsx +645 -0
- package/src/plugins/builtin/cloud/index.tsx +4 -0
- package/src/plugins/builtin/cloud/mcp-connect/command.ts +24 -0
- package/src/plugins/builtin/cloud/mcp-connect/dialog.tsx +366 -0
- package/src/plugins/builtin/cloud/mcp-connect/model.ts +135 -0
- package/src/plugins/builtin/cloud/mcp-connect/sections.ts +62 -0
- package/src/plugins/builtin/cloud/plugin.tsx +203 -0
- package/src/plugins/builtin/cloud/team/acm-tab.tsx +127 -0
- package/src/plugins/builtin/cloud/team/capability.ts +71 -0
- package/src/plugins/builtin/cloud/team/command.ts +313 -0
- package/src/plugins/builtin/cloud/team/module.tsx +81 -0
- package/src/plugins/builtin/cloud/team/pane-model.ts +185 -0
- package/src/plugins/builtin/cloud/team/pane-sections.tsx +576 -0
- package/src/plugins/builtin/cloud/team/pane-ui.tsx +362 -0
- package/src/plugins/builtin/cloud/team/pane.tsx +940 -0
- package/src/plugins/builtin/cloud/team/status-widget.tsx +78 -0
- package/src/plugins/builtin/cloud/team/team-state-host.ts +70 -0
- package/src/plugins/builtin/cloud/team/views.ts +192 -0
- package/src/plugins/builtin/cloud/terminal-relay/acm-tab.tsx +89 -0
- package/src/plugins/builtin/cloud/terminal-relay/client.ts +97 -0
- package/src/plugins/builtin/cloud/terminal-relay/connect-section.tsx +57 -0
- package/src/plugins/builtin/cloud/terminal-relay/engine.ts +739 -0
- package/src/plugins/builtin/cloud/terminal-relay/grants.ts +137 -0
- package/src/plugins/builtin/cloud/terminal-relay/host.tsx +81 -0
- package/src/plugins/builtin/cloud/terminal-relay/indicator.tsx +82 -0
- package/src/plugins/builtin/cloud/terminal-relay/manifest.ts +250 -0
- package/src/plugins/builtin/cloud/terminal-relay/policy.ts +162 -0
- package/src/plugins/builtin/cloud/terminal-relay/prompts.tsx +193 -0
- package/src/plugins/builtin/cloud/terminal-relay/redact.ts +73 -0
- package/src/plugins/builtin/cloud/terminal-relay/summary.ts +62 -0
- package/src/plugins/builtin/cloud/thesis/board-pane.tsx +484 -0
- package/src/plugins/builtin/cloud/thesis/detail.tsx +539 -0
- package/src/plugins/builtin/cloud/thesis/exposure.ts +145 -0
- package/src/plugins/builtin/cloud/thesis/flows.ts +553 -0
- package/src/plugins/builtin/cloud/thesis/model.ts +399 -0
- package/src/plugins/builtin/cloud/thesis/module.tsx +65 -0
- package/src/plugins/builtin/cloud/thesis/pane-request.ts +30 -0
- package/src/plugins/builtin/cloud/thesis/prompts.tsx +104 -0
- package/src/plugins/builtin/cloud/thesis/store.ts +302 -0
- package/src/plugins/builtin/cloud/thesis/ticker-tab.tsx +140 -0
- package/src/plugins/builtin/cloud/trial-offer-status-widget.tsx +203 -0
- package/src/plugins/builtin/cloud/upgrade-command.ts +35 -0
- package/src/plugins/builtin/cloud/upgrade-status-widget.tsx +45 -0
- package/src/plugins/builtin/cloud/verification-status-widget.tsx +75 -0
- package/src/plugins/builtin/cloud-tweets/footer.ts +40 -0
- package/src/plugins/builtin/cloud-tweets/index.ts +6 -0
- package/src/plugins/builtin/cloud-tweets/keyboard.ts +34 -0
- package/src/plugins/builtin/cloud-tweets/model.ts +280 -0
- package/src/plugins/builtin/cloud-tweets/pane.tsx +327 -0
- package/src/plugins/builtin/cloud-tweets/registration.ts +130 -0
- package/src/plugins/builtin/cloud-tweets/search-bar.tsx +38 -0
- package/src/plugins/builtin/cloud-tweets/table.tsx +551 -0
- package/src/plugins/builtin/cloud-tweets/tweet-text.ts +18 -0
- package/src/plugins/builtin/comment-letters/client.ts +340 -0
- package/src/plugins/builtin/comment-letters/index.tsx +75 -0
- package/src/plugins/builtin/comment-letters/pane.tsx +314 -0
- package/src/plugins/builtin/comment-letters/types.ts +43 -0
- package/src/plugins/builtin/commodities-energy/index.tsx +228 -0
- package/src/plugins/builtin/commodities-energy/view-state.ts +13 -0
- package/src/plugins/builtin/commodity-balances/client.ts +68 -0
- package/src/plugins/builtin/commodity-balances/headless.ts +107 -0
- package/src/plugins/builtin/commodity-balances/index.tsx +47 -0
- package/src/plugins/builtin/commodity-balances/model.ts +108 -0
- package/src/plugins/builtin/commodity-balances/pane.tsx +267 -0
- package/src/plugins/builtin/company-attention/app-rank.tsx +80 -0
- package/src/plugins/builtin/company-attention/building-model.ts +222 -0
- package/src/plugins/builtin/company-attention/building.tsx +176 -0
- package/src/plugins/builtin/company-attention/client.ts +184 -0
- package/src/plugins/builtin/company-attention/evidence.ts +61 -0
- package/src/plugins/builtin/company-attention/headless.ts +172 -0
- package/src/plugins/builtin/company-attention/index.tsx +35 -0
- package/src/plugins/builtin/company-attention/model.ts +270 -0
- package/src/plugins/builtin/company-attention/moves-model.ts +253 -0
- package/src/plugins/builtin/company-attention/moves.tsx +163 -0
- package/src/plugins/builtin/company-attention/pane.tsx +253 -0
- package/src/plugins/builtin/company-attention/series.ts +52 -0
- package/src/plugins/builtin/company-attention/signals-model.ts +229 -0
- package/src/plugins/builtin/company-attention/signals.tsx +164 -0
- package/src/plugins/builtin/company-kpis/client.ts +108 -0
- package/src/plugins/builtin/company-kpis/headless.ts +122 -0
- package/src/plugins/builtin/company-kpis/index.tsx +26 -0
- package/src/plugins/builtin/company-kpis/model.ts +229 -0
- package/src/plugins/builtin/company-kpis/pane.tsx +256 -0
- package/src/plugins/builtin/company-kpis/related.ts +11 -0
- package/src/plugins/builtin/company-kpis/screenshot-evidence.ts +51 -0
- package/src/plugins/builtin/composite-plugins.ts +284 -0
- package/src/plugins/builtin/congress-trades/aggregates.ts +69 -0
- package/src/plugins/builtin/congress-trades/client.ts +13 -0
- package/src/plugins/builtin/congress-trades/detail.tsx +340 -0
- package/src/plugins/builtin/congress-trades/filters.tsx +36 -0
- package/src/plugins/builtin/congress-trades/footer.ts +86 -0
- package/src/plugins/builtin/congress-trades/headless.ts +212 -0
- package/src/plugins/builtin/congress-trades/index.tsx +26 -0
- package/src/plugins/builtin/congress-trades/keyboard.ts +45 -0
- package/src/plugins/builtin/congress-trades/model.ts +399 -0
- package/src/plugins/builtin/congress-trades/pane.tsx +519 -0
- package/src/plugins/builtin/congress-trades/table.tsx +102 -0
- package/src/plugins/builtin/connections/index.ts +58 -0
- package/src/plugins/builtin/connections/pane.tsx +243 -0
- package/src/plugins/builtin/correlation/compute.ts +139 -0
- package/src/plugins/builtin/correlation/geo.ts +34 -0
- package/src/plugins/builtin/correlation/headless-schema.ts +73 -0
- package/src/plugins/builtin/correlation/headless.ts +158 -0
- package/src/plugins/builtin/correlation/history.ts +43 -0
- package/src/plugins/builtin/correlation/index.tsx +490 -0
- package/src/plugins/builtin/correlation/matrix/model.ts +199 -0
- package/src/plugins/builtin/correlation/matrix/pair-chart.tsx +48 -0
- package/src/plugins/builtin/correlation/matrix/selection.ts +79 -0
- package/src/plugins/builtin/correlation/matrix/symbol-cell.tsx +57 -0
- package/src/plugins/builtin/correlation/relationship/history.ts +46 -0
- package/src/plugins/builtin/correlation/relationship/model.ts +267 -0
- package/src/plugins/builtin/correlation/relationship/pane.tsx +354 -0
- package/src/plugins/builtin/correlation/relationship/view-model.ts +123 -0
- package/src/plugins/builtin/correlation/settings.ts +95 -0
- package/src/plugins/builtin/cot/client.ts +111 -0
- package/src/plugins/builtin/cot/headless.ts +96 -0
- package/src/plugins/builtin/cot/index.tsx +28 -0
- package/src/plugins/builtin/cot/model.ts +277 -0
- package/src/plugins/builtin/cot/pane.tsx +200 -0
- package/src/plugins/builtin/cot/series.ts +27 -0
- package/src/plugins/builtin/cpi/client.ts +66 -0
- package/src/plugins/builtin/cpi/headless.ts +86 -0
- package/src/plugins/builtin/cpi/index.tsx +31 -0
- package/src/plugins/builtin/cpi/model.ts +198 -0
- package/src/plugins/builtin/cpi/pane.tsx +160 -0
- package/src/plugins/builtin/credit-boards/cdx-pane.tsx +178 -0
- package/src/plugins/builtin/credit-boards/client.ts +115 -0
- package/src/plugins/builtin/credit-boards/headless.ts +218 -0
- package/src/plugins/builtin/credit-boards/index.tsx +54 -0
- package/src/plugins/builtin/credit-boards/model.ts +323 -0
- package/src/plugins/builtin/credit-boards/series.ts +66 -0
- package/src/plugins/builtin/credit-boards/sovr-pane.tsx +156 -0
- package/src/plugins/builtin/credit-conditions/client.ts +121 -0
- package/src/plugins/builtin/credit-conditions/headless.ts +74 -0
- package/src/plugins/builtin/credit-conditions/index.tsx +163 -0
- package/src/plugins/builtin/credit-conditions/model.ts +98 -0
- package/src/plugins/builtin/credit-conditions/series.ts +18 -0
- package/src/plugins/builtin/credit-documents/client.ts +99 -0
- package/src/plugins/builtin/credit-documents/detail.tsx +110 -0
- package/src/plugins/builtin/credit-documents/evidence.ts +64 -0
- package/src/plugins/builtin/credit-documents/export.ts +173 -0
- package/src/plugins/builtin/credit-documents/gauge.tsx +52 -0
- package/src/plugins/builtin/credit-documents/headless.ts +72 -0
- package/src/plugins/builtin/credit-documents/index.tsx +39 -0
- package/src/plugins/builtin/credit-documents/model.ts +419 -0
- package/src/plugins/builtin/credit-documents/pane.tsx +195 -0
- package/src/plugins/builtin/crypto-board/client.ts +369 -0
- package/src/plugins/builtin/crypto-board/defi-view.tsx +218 -0
- package/src/plugins/builtin/crypto-board/defi.ts +239 -0
- package/src/plugins/builtin/crypto-board/headless.ts +304 -0
- package/src/plugins/builtin/crypto-board/index.tsx +49 -0
- package/src/plugins/builtin/crypto-board/model.ts +521 -0
- package/src/plugins/builtin/crypto-board/pane.tsx +419 -0
- package/src/plugins/builtin/crypto-board/series.ts +117 -0
- package/src/plugins/builtin/crypto-board/supply.ts +123 -0
- package/src/plugins/builtin/crypto-etf-flows/client.ts +60 -0
- package/src/plugins/builtin/crypto-etf-flows/headless.ts +132 -0
- package/src/plugins/builtin/crypto-etf-flows/index.tsx +44 -0
- package/src/plugins/builtin/crypto-etf-flows/model.ts +121 -0
- package/src/plugins/builtin/crypto-etf-flows/pane.tsx +193 -0
- package/src/plugins/builtin/custom-view/index.tsx +69 -0
- package/src/plugins/builtin/custom-view/live-quotes.ts +143 -0
- package/src/plugins/builtin/custom-view/loader.ts +158 -0
- package/src/plugins/builtin/custom-view/pane.tsx +415 -0
- package/src/plugins/builtin/custom-view/sources.ts +148 -0
- package/src/plugins/builtin/custom-view/view-spec.ts +462 -0
- package/src/plugins/builtin/debt-maturities/client.ts +438 -0
- package/src/plugins/builtin/debt-maturities/headless.ts +125 -0
- package/src/plugins/builtin/debt-maturities/index.tsx +33 -0
- package/src/plugins/builtin/debt-maturities/model.ts +231 -0
- package/src/plugins/builtin/debt-maturities/pane.tsx +692 -0
- package/src/plugins/builtin/debt-maturities/series.ts +45 -0
- package/src/plugins/builtin/debt-maturities/wall-bar.tsx +36 -0
- package/src/plugins/builtin/debug/index.tsx +336 -0
- package/src/plugins/builtin/debug/template.ts +8 -0
- package/src/plugins/builtin/dividend-yield/browser.tsx +3 -0
- package/src/plugins/builtin/dividend-yield/client.ts +331 -0
- package/src/plugins/builtin/dividend-yield/headless.ts +340 -0
- package/src/plugins/builtin/dividend-yield/index.tsx +85 -0
- package/src/plugins/builtin/dividend-yield/model.ts +53 -0
- package/src/plugins/builtin/dividend-yield/pane.tsx +332 -0
- package/src/plugins/builtin/dividend-yield/provider-client.ts +52 -0
- package/src/plugins/builtin/dividend-yield/ranking.ts +210 -0
- package/src/plugins/builtin/dividend-yield/reference-price.ts +50 -0
- package/src/plugins/builtin/dividend-yield/series.ts +20 -0
- package/src/plugins/builtin/dividend-yield/types.ts +49 -0
- package/src/plugins/builtin/dividend-yield/view.ts +92 -0
- package/src/plugins/builtin/docs/blocks.tsx +239 -0
- package/src/plugins/builtin/docs/index.tsx +70 -0
- package/src/plugins/builtin/docs/pane.tsx +447 -0
- package/src/plugins/builtin/docs/targets.ts +78 -0
- package/src/plugins/builtin/docs/use-docs.ts +60 -0
- package/src/plugins/builtin/doe/client.ts +77 -0
- package/src/plugins/builtin/doe/headless.ts +110 -0
- package/src/plugins/builtin/doe/index.tsx +50 -0
- package/src/plugins/builtin/doe/model.ts +252 -0
- package/src/plugins/builtin/doe/pane.tsx +156 -0
- package/src/plugins/builtin/doe/prices.ts +84 -0
- package/src/plugins/builtin/doe/range-bar.tsx +15 -0
- package/src/plugins/builtin/doe/series.ts +65 -0
- package/src/plugins/builtin/earnings/board-model.ts +252 -0
- package/src/plugins/builtin/earnings/board-table.ts +147 -0
- package/src/plugins/builtin/earnings/board.tsx +466 -0
- package/src/plugins/builtin/earnings/calendar-model.ts +188 -0
- package/src/plugins/builtin/earnings/calendar.tsx +338 -0
- package/src/plugins/builtin/earnings/client.ts +99 -0
- package/src/plugins/builtin/earnings/data/cache.ts +84 -0
- package/src/plugins/builtin/earnings/format.ts +58 -0
- package/src/plugins/builtin/earnings/headless.ts +339 -0
- package/src/plugins/builtin/earnings/history-model.ts +213 -0
- package/src/plugins/builtin/earnings/history-table.ts +106 -0
- package/src/plugins/builtin/earnings/history.tsx +141 -0
- package/src/plugins/builtin/earnings/index.tsx +158 -0
- package/src/plugins/builtin/earnings/model.ts +22 -0
- package/src/plugins/builtin/earnings/no-earnings.ts +52 -0
- package/src/plugins/builtin/earnings/scope.ts +77 -0
- package/src/plugins/builtin/earnings-calls/calendar.tsx +310 -0
- package/src/plugins/builtin/earnings-calls/data.ts +515 -0
- package/src/plugins/builtin/earnings-calls/format.ts +72 -0
- package/src/plugins/builtin/earnings-calls/headless.ts +461 -0
- package/src/plugins/builtin/earnings-calls/index.tsx +82 -0
- package/src/plugins/builtin/earnings-calls/lock-note.ts +26 -0
- package/src/plugins/builtin/earnings-calls/model.ts +341 -0
- package/src/plugins/builtin/earnings-calls/pane.tsx +1125 -0
- package/src/plugins/builtin/earnings-calls/prose.ts +62 -0
- package/src/plugins/builtin/earnings-calls/transcript-view.tsx +457 -0
- package/src/plugins/builtin/earnings-calls/upcoming.ts +195 -0
- package/src/plugins/builtin/earnings-calls/use-call-playback.ts +194 -0
- package/src/plugins/builtin/earnings-ripple/client.ts +133 -0
- package/src/plugins/builtin/earnings-ripple/headless.ts +55 -0
- package/src/plugins/builtin/earnings-ripple/index.tsx +37 -0
- package/src/plugins/builtin/earnings-ripple/model.ts +188 -0
- package/src/plugins/builtin/earnings-ripple/pane.tsx +233 -0
- package/src/plugins/builtin/econ/calendar-model.ts +409 -0
- package/src/plugins/builtin/econ/calendar-source.ts +49 -0
- package/src/plugins/builtin/econ/detail-view.tsx +324 -0
- package/src/plugins/builtin/econ/figures.ts +72 -0
- package/src/plugins/builtin/econ/fred-catalog.ts +219 -0
- package/src/plugins/builtin/econ/fred-series-map.ts +103 -0
- package/src/plugins/builtin/econ/index.tsx +612 -0
- package/src/plugins/builtin/econ/print-watch.ts +280 -0
- package/src/plugins/builtin/econ/types.ts +49 -0
- package/src/plugins/builtin/econ-statistics/cache.ts +8 -0
- package/src/plugins/builtin/econ-statistics/client.ts +153 -0
- package/src/plugins/builtin/econ-statistics/defs.ts +100 -0
- package/src/plugins/builtin/econ-statistics/detail.tsx +85 -0
- package/src/plugins/builtin/econ-statistics/headless.ts +268 -0
- package/src/plugins/builtin/econ-statistics/index.tsx +54 -0
- package/src/plugins/builtin/econ-statistics/pane.tsx +219 -0
- package/src/plugins/builtin/econ-statistics/stats.ts +678 -0
- package/src/plugins/builtin/econ-statistics/view.ts +182 -0
- package/src/plugins/builtin/equity-screener/categories.ts +179 -0
- package/src/plugins/builtin/equity-screener/client.ts +103 -0
- package/src/plugins/builtin/equity-screener/criterion-editor.tsx +174 -0
- package/src/plugins/builtin/equity-screener/headless.ts +415 -0
- package/src/plugins/builtin/equity-screener/ideas.ts +49 -0
- package/src/plugins/builtin/equity-screener/index.tsx +38 -0
- package/src/plugins/builtin/equity-screener/live.ts +149 -0
- package/src/plugins/builtin/equity-screener/model.ts +728 -0
- package/src/plugins/builtin/equity-screener/pane.tsx +1127 -0
- package/src/plugins/builtin/equity-screener/results.ts +135 -0
- package/src/plugins/builtin/equity-screener/screen-check.ts +90 -0
- package/src/plugins/builtin/equity-screener/ticker-check.tsx +148 -0
- package/src/plugins/builtin/estimate-revisions/client.ts +283 -0
- package/src/plugins/builtin/estimate-revisions/headless.ts +108 -0
- package/src/plugins/builtin/estimate-revisions/index.tsx +92 -0
- package/src/plugins/builtin/estimate-revisions/lock-note.ts +45 -0
- package/src/plugins/builtin/estimate-revisions/model.ts +108 -0
- package/src/plugins/builtin/estimate-revisions/pane.tsx +601 -0
- package/src/plugins/builtin/estimate-revisions/sorting.ts +111 -0
- package/src/plugins/builtin/executives/data.ts +148 -0
- package/src/plugins/builtin/executives/format.ts +44 -0
- package/src/plugins/builtin/executives/index.tsx +68 -0
- package/src/plugins/builtin/executives/pane.tsx +448 -0
- package/src/plugins/builtin/exposure/charts.tsx +67 -0
- package/src/plugins/builtin/exposure/client.ts +56 -0
- package/src/plugins/builtin/exposure/drivers.ts +42 -0
- package/src/plugins/builtin/exposure/editor.tsx +61 -0
- package/src/plugins/builtin/exposure/evidence.ts +42 -0
- package/src/plugins/builtin/exposure/headless.ts +290 -0
- package/src/plugins/builtin/exposure/holdings.ts +58 -0
- package/src/plugins/builtin/exposure/index.tsx +40 -0
- package/src/plugins/builtin/exposure/model.ts +143 -0
- package/src/plugins/builtin/exposure/pane.tsx +276 -0
- package/src/plugins/builtin/fear-greed/cache.ts +100 -0
- package/src/plugins/builtin/fear-greed/charts.tsx +262 -0
- package/src/plugins/builtin/fear-greed/data.ts +376 -0
- package/src/plugins/builtin/fear-greed/format.ts +87 -0
- package/src/plugins/builtin/fear-greed/headless.ts +87 -0
- package/src/plugins/builtin/fear-greed/index.tsx +104 -0
- package/src/plugins/builtin/fear-greed/pane.tsx +105 -0
- package/src/plugins/builtin/fear-greed/series.ts +52 -0
- package/src/plugins/builtin/filing-events/feed.ts +169 -0
- package/src/plugins/builtin/filing-events/index.tsx +79 -0
- package/src/plugins/builtin/filing-events/pane.tsx +312 -0
- package/src/plugins/builtin/fixed-income/index.tsx +46 -0
- package/src/plugins/builtin/fixed-income/model.ts +27 -0
- package/src/plugins/builtin/fixed-income/pane.tsx +164 -0
- package/src/plugins/builtin/fixed-income/shortcut.ts +52 -0
- package/src/plugins/builtin/futures/index.tsx +436 -0
- package/src/plugins/builtin/futures/model.ts +257 -0
- package/src/plugins/builtin/futures/returns.ts +104 -0
- package/src/plugins/builtin/futures/series.ts +71 -0
- package/src/plugins/builtin/futures/table.tsx +274 -0
- package/src/plugins/builtin/futures/use-board-terms.ts +103 -0
- package/src/plugins/builtin/futures/use-front-returns.ts +137 -0
- package/src/plugins/builtin/futures-curve/client.ts +136 -0
- package/src/plugins/builtin/futures-curve/headless.ts +174 -0
- package/src/plugins/builtin/futures-curve/index.tsx +33 -0
- package/src/plugins/builtin/futures-curve/model.ts +769 -0
- package/src/plugins/builtin/futures-curve/pane.tsx +332 -0
- package/src/plugins/builtin/fx-matrix/client.ts +78 -0
- package/src/plugins/builtin/fx-matrix/direction.ts +81 -0
- package/src/plugins/builtin/fx-matrix/export.ts +33 -0
- package/src/plugins/builtin/fx-matrix/headless.ts +175 -0
- package/src/plugins/builtin/fx-matrix/index.tsx +304 -0
- package/src/plugins/builtin/fx-matrix/live-legs.ts +167 -0
- package/src/plugins/builtin/fx-matrix/pairs.ts +81 -0
- package/src/plugins/builtin/fx-matrix/settings.ts +103 -0
- package/src/plugins/builtin/gpu/board.tsx +169 -0
- package/src/plugins/builtin/gpu/changes.tsx +94 -0
- package/src/plugins/builtin/gpu/client.ts +148 -0
- package/src/plugins/builtin/gpu/equities.tsx +122 -0
- package/src/plugins/builtin/gpu/headless.ts +119 -0
- package/src/plugins/builtin/gpu/history.tsx +142 -0
- package/src/plugins/builtin/gpu/index.tsx +20 -0
- package/src/plugins/builtin/gpu/ladder.tsx +123 -0
- package/src/plugins/builtin/gpu/model.ts +437 -0
- package/src/plugins/builtin/gpu/pane.tsx +81 -0
- package/src/plugins/builtin/gpu/series.ts +38 -0
- package/src/plugins/builtin/help/feedback-tab.tsx +98 -0
- package/src/plugins/builtin/help/function-card.tsx +221 -0
- package/src/plugins/builtin/help/function-index.ts +198 -0
- package/src/plugins/builtin/help/functions-table.tsx +188 -0
- package/src/plugins/builtin/help/index.tsx +432 -0
- package/src/plugins/builtin/help/keybindings-editor.tsx +437 -0
- package/src/plugins/builtin/help/shortcut-model.ts +116 -0
- package/src/plugins/builtin/help/shortcut-table.tsx +130 -0
- package/src/plugins/builtin/help/table-cells.tsx +66 -0
- package/src/plugins/builtin/holders/beneficial-client.ts +231 -0
- package/src/plugins/builtin/holders/beneficial-model.ts +363 -0
- package/src/plugins/builtin/holders/beneficial-report.ts +179 -0
- package/src/plugins/builtin/holders/beneficial-view.tsx +293 -0
- package/src/plugins/builtin/holders/client.ts +58 -0
- package/src/plugins/builtin/holders/format.ts +100 -0
- package/src/plugins/builtin/holders/fund-holders.ts +51 -0
- package/src/plugins/builtin/holders/headless.ts +302 -0
- package/src/plugins/builtin/holders/index-holders.ts +264 -0
- package/src/plugins/builtin/holders/index.tsx +52 -0
- package/src/plugins/builtin/holders/pane.tsx +439 -0
- package/src/plugins/builtin/holders/report-header.ts +171 -0
- package/src/plugins/builtin/holders/report-rows.ts +268 -0
- package/src/plugins/builtin/holders/table-model.ts +86 -0
- package/src/plugins/builtin/holders/thirteenf-match.ts +117 -0
- package/src/plugins/builtin/holders/treemap.tsx +51 -0
- package/src/plugins/builtin/holders/types.ts +17 -0
- package/src/plugins/builtin/insider/amendments.ts +65 -0
- package/src/plugins/builtin/insider/base-values.ts +76 -0
- package/src/plugins/builtin/insider/client.ts +64 -0
- package/src/plugins/builtin/insider/detail.tsx +127 -0
- package/src/plugins/builtin/insider/display.ts +221 -0
- package/src/plugins/builtin/insider/headless.ts +574 -0
- package/src/plugins/builtin/insider/index.tsx +771 -0
- package/src/plugins/builtin/insider/insider-data.ts +176 -0
- package/src/plugins/builtin/insider/insiders.tsx +224 -0
- package/src/plugins/builtin/insider/issuer.ts +79 -0
- package/src/plugins/builtin/insider/model.ts +207 -0
- package/src/plugins/builtin/insider/signals-cells.tsx +52 -0
- package/src/plugins/builtin/insider/signals-client.ts +193 -0
- package/src/plugins/builtin/insider/signals-model.ts +718 -0
- package/src/plugins/builtin/insider/signals.tsx +376 -0
- package/src/plugins/builtin/insider/table-model.ts +248 -0
- package/src/plugins/builtin/insider/table.tsx +82 -0
- package/src/plugins/builtin/ipo-calendar/client.ts +93 -0
- package/src/plugins/builtin/ipo-calendar/headless.ts +170 -0
- package/src/plugins/builtin/ipo-calendar/index.tsx +67 -0
- package/src/plugins/builtin/ipo-calendar/model.ts +389 -0
- package/src/plugins/builtin/ipo-calendar/pane.tsx +248 -0
- package/src/plugins/builtin/iv-history/charts.tsx +64 -0
- package/src/plugins/builtin/iv-history/client.ts +254 -0
- package/src/plugins/builtin/iv-history/events.ts +145 -0
- package/src/plugins/builtin/iv-history/format.ts +77 -0
- package/src/plugins/builtin/iv-history/headless.ts +257 -0
- package/src/plugins/builtin/iv-history/index.tsx +50 -0
- package/src/plugins/builtin/iv-history/model.ts +532 -0
- package/src/plugins/builtin/iv-history/pane.tsx +141 -0
- package/src/plugins/builtin/iv-history/rank.ts +10 -0
- package/src/plugins/builtin/iv-history/screen-pane.tsx +193 -0
- package/src/plugins/builtin/iv-history/series.ts +31 -0
- package/src/plugins/builtin/iv-history/universe.ts +44 -0
- package/src/plugins/builtin/jobs/client.ts +81 -0
- package/src/plugins/builtin/jobs/headless.ts +221 -0
- package/src/plugins/builtin/jobs/index.tsx +88 -0
- package/src/plugins/builtin/jobs/lock-note.ts +27 -0
- package/src/plugins/builtin/jobs/model.ts +332 -0
- package/src/plugins/builtin/jobs/pages.ts +48 -0
- package/src/plugins/builtin/jobs/pane.tsx +781 -0
- package/src/plugins/builtin/jobs/series.ts +19 -0
- package/src/plugins/builtin/jobs/share-bars.tsx +76 -0
- package/src/plugins/builtin/jodi/client.ts +57 -0
- package/src/plugins/builtin/jodi/headless.ts +74 -0
- package/src/plugins/builtin/jodi/index.tsx +32 -0
- package/src/plugins/builtin/jodi/model.ts +50 -0
- package/src/plugins/builtin/jodi/pane.tsx +152 -0
- package/src/plugins/builtin/kelly-sizer/constants.ts +3 -0
- package/src/plugins/builtin/kelly-sizer/fields.ts +195 -0
- package/src/plugins/builtin/kelly-sizer/headless.ts +149 -0
- package/src/plugins/builtin/kelly-sizer/history.ts +82 -0
- package/src/plugins/builtin/kelly-sizer/index.tsx +49 -0
- package/src/plugins/builtin/kelly-sizer/model.ts +566 -0
- package/src/plugins/builtin/kelly-sizer/pane.tsx +650 -0
- package/src/plugins/builtin/kelly-sizer/portfolio.ts +55 -0
- package/src/plugins/builtin/kelly-sizer/sections.tsx +215 -0
- package/src/plugins/builtin/kelly-sizer/state.ts +67 -0
- package/src/plugins/builtin/kelly-sizer/test-support.tsx +165 -0
- package/src/plugins/builtin/kelly-sizer/types.ts +170 -0
- package/src/plugins/builtin/kelly-sizer/view.tsx +22 -0
- package/src/plugins/builtin/layout-manager/index.tsx +306 -0
- package/src/plugins/builtin/macro-day/client.ts +115 -0
- package/src/plugins/builtin/macro-day/headless.ts +72 -0
- package/src/plugins/builtin/macro-day/index.tsx +25 -0
- package/src/plugins/builtin/macro-day/model.ts +209 -0
- package/src/plugins/builtin/macro-day/pane.tsx +170 -0
- package/src/plugins/builtin/macro-day/release-table.ts +40 -0
- package/src/plugins/builtin/macro-day/releases.ts +118 -0
- package/src/plugins/builtin/macro-resources.ts +15 -0
- package/src/plugins/builtin/market-halts/client.ts +114 -0
- package/src/plugins/builtin/market-halts/index.tsx +42 -0
- package/src/plugins/builtin/market-halts/model.ts +361 -0
- package/src/plugins/builtin/market-halts/pane.tsx +240 -0
- package/src/plugins/builtin/market-heatmap/data.ts +92 -0
- package/src/plugins/builtin/market-heatmap/evidence.ts +99 -0
- package/src/plugins/builtin/market-heatmap/headless.ts +154 -0
- package/src/plugins/builtin/market-heatmap/index.tsx +845 -0
- package/src/plugins/builtin/market-heatmap/live.ts +89 -0
- package/src/plugins/builtin/market-heatmap/model.ts +248 -0
- package/src/plugins/builtin/market-heatmap/portfolio.ts +317 -0
- package/src/plugins/builtin/market-movers/client.ts +165 -0
- package/src/plugins/builtin/market-movers/footer.ts +19 -0
- package/src/plugins/builtin/market-movers/headless.ts +208 -0
- package/src/plugins/builtin/market-movers/index.tsx +392 -0
- package/src/plugins/builtin/market-movers/min-float.ts +74 -0
- package/src/plugins/builtin/market-movers/model.ts +373 -0
- package/src/plugins/builtin/market-movers/screener.ts +463 -0
- package/src/plugins/builtin/market-movers/session-body.tsx +263 -0
- package/src/plugins/builtin/market-movers/session-table.ts +99 -0
- package/src/plugins/builtin/market-movers/session.ts +248 -0
- package/src/plugins/builtin/market-movers/table.ts +137 -0
- package/src/plugins/builtin/market-valuation/align.ts +146 -0
- package/src/plugins/builtin/market-valuation/cache.ts +3 -0
- package/src/plugins/builtin/market-valuation/chart-projection.ts +196 -0
- package/src/plugins/builtin/market-valuation/chart-series.ts +59 -0
- package/src/plugins/builtin/market-valuation/client.ts +158 -0
- package/src/plugins/builtin/market-valuation/defs.ts +253 -0
- package/src/plugins/builtin/market-valuation/detail.tsx +93 -0
- package/src/plugins/builtin/market-valuation/headless.ts +172 -0
- package/src/plugins/builtin/market-valuation/index.tsx +83 -0
- package/src/plugins/builtin/market-valuation/indicators.ts +386 -0
- package/src/plugins/builtin/market-valuation/pane.tsx +197 -0
- package/src/plugins/builtin/market-valuation/series.ts +29 -0
- package/src/plugins/builtin/market-valuation/settings.ts +38 -0
- package/src/plugins/builtin/market-valuation/sources.ts +192 -0
- package/src/plugins/builtin/market-valuation/view.ts +154 -0
- package/src/plugins/builtin/market-valuation/zone-scale/desktop.tsx +97 -0
- package/src/plugins/builtin/market-valuation/zone-scale/index.tsx +12 -0
- package/src/plugins/builtin/market-valuation/zone-scale/model.ts +67 -0
- package/src/plugins/builtin/market-valuation/zone-scale/terminal.tsx +94 -0
- package/src/plugins/builtin/members/breadth-pane.tsx +82 -0
- package/src/plugins/builtin/members/client.ts +68 -0
- package/src/plugins/builtin/members/headless.ts +54 -0
- package/src/plugins/builtin/members/index.tsx +20 -0
- package/src/plugins/builtin/members/model.ts +115 -0
- package/src/plugins/builtin/members/pane.tsx +205 -0
- package/src/plugins/builtin/mna/client.ts +154 -0
- package/src/plugins/builtin/mna/detail.tsx +285 -0
- package/src/plugins/builtin/mna/distress/client.ts +326 -0
- package/src/plugins/builtin/mna/distress/detail.tsx +259 -0
- package/src/plugins/builtin/mna/distress/headless.ts +259 -0
- package/src/plugins/builtin/mna/distress/model.ts +479 -0
- package/src/plugins/builtin/mna/distress/pane.tsx +614 -0
- package/src/plugins/builtin/mna/headless.ts +100 -0
- package/src/plugins/builtin/mna/index.tsx +74 -0
- package/src/plugins/builtin/mna/model.ts +282 -0
- package/src/plugins/builtin/mna/pane.tsx +477 -0
- package/src/plugins/builtin/money-markets/client.ts +54 -0
- package/src/plugins/builtin/money-markets/headless.ts +29 -0
- package/src/plugins/builtin/money-markets/index.tsx +20 -0
- package/src/plugins/builtin/money-markets/model.ts +55 -0
- package/src/plugins/builtin/money-markets/pane.tsx +142 -0
- package/src/plugins/builtin/money-markets/series.ts +41 -0
- package/src/plugins/builtin/news/headless.ts +233 -0
- package/src/plugins/builtin/news/index.tsx +234 -0
- package/src/plugins/builtin/news/wire/breaking/filters.ts +110 -0
- package/src/plugins/builtin/news/wire/breaking/notifications.ts +202 -0
- package/src/plugins/builtin/news/wire/categories.ts +188 -0
- package/src/plugins/builtin/news/wire/default-feeds.ts +43 -0
- package/src/plugins/builtin/news/wire/feed-config.ts +251 -0
- package/src/plugins/builtin/news/wire/filter-articles.ts +54 -0
- package/src/plugins/builtin/news/wire/hash.ts +9 -0
- package/src/plugins/builtin/news/wire/index.tsx +252 -0
- package/src/plugins/builtin/news/wire/industry-pane.tsx +184 -0
- package/src/plugins/builtin/news/wire/letters/client.ts +109 -0
- package/src/plugins/builtin/news/wire/letters/model.ts +69 -0
- package/src/plugins/builtin/news/wire/letters/pane.tsx +155 -0
- package/src/plugins/builtin/news/wire/mutes.ts +254 -0
- package/src/plugins/builtin/news/wire/news/command-bar-search.ts +136 -0
- package/src/plugins/builtin/news/wire/news/detail-view.tsx +329 -0
- package/src/plugins/builtin/news/wire/news/footer.ts +104 -0
- package/src/plugins/builtin/news/wire/news/list-search.ts +34 -0
- package/src/plugins/builtin/news/wire/news/pop-out.tsx +158 -0
- package/src/plugins/builtin/news/wire/news/preset-pane.tsx +220 -0
- package/src/plugins/builtin/news/wire/news/query-presets.ts +126 -0
- package/src/plugins/builtin/news/wire/news/table.tsx +422 -0
- package/src/plugins/builtin/news/wire/persisted-articles.ts +123 -0
- package/src/plugins/builtin/news/wire/read-state.ts +29 -0
- package/src/plugins/builtin/news/wire/rss/cli.ts +48 -0
- package/src/plugins/builtin/news/wire/rss/feed-xml.ts +109 -0
- package/src/plugins/builtin/news/wire/rss/managed-feed.ts +20 -0
- package/src/plugins/builtin/news/wire/rss/parser.ts +182 -0
- package/src/plugins/builtin/news/wire/rss/source.ts +191 -0
- package/src/plugins/builtin/notes/cli.ts +172 -0
- package/src/plugins/builtin/notes/export.ts +114 -0
- package/src/plugins/builtin/notes/files.ts +315 -0
- package/src/plugins/builtin/notes/index.tsx +134 -0
- package/src/plugins/builtin/notes/markdown-note-preview.tsx +39 -0
- package/src/plugins/builtin/notes/migration.ts +94 -0
- package/src/plugins/builtin/notes/model.ts +36 -0
- package/src/plugins/builtin/notes/owner.tsx +131 -0
- package/src/plugins/builtin/notes/quick-notes-pane.tsx +503 -0
- package/src/plugins/builtin/notes/store.ts +314 -0
- package/src/plugins/builtin/notes/text-state.ts +11 -0
- package/src/plugins/builtin/notes/ticker-notes-tab.tsx +222 -0
- package/src/plugins/builtin/openfda/client.ts +420 -0
- package/src/plugins/builtin/openfda/index.tsx +73 -0
- package/src/plugins/builtin/openfda/model.ts +172 -0
- package/src/plugins/builtin/openfda/pane.tsx +462 -0
- package/src/plugins/builtin/openfda/types.ts +101 -0
- package/src/plugins/builtin/options/analytics-as-of.tsx +41 -0
- package/src/plugins/builtin/options/analytics.ts +258 -0
- package/src/plugins/builtin/options/calc-seed.ts +65 -0
- package/src/plugins/builtin/options/carry.ts +131 -0
- package/src/plugins/builtin/options/enrichment-client.ts +70 -0
- package/src/plugins/builtin/options/enrichment-model.ts +168 -0
- package/src/plugins/builtin/options/enrichment.ts +139 -0
- package/src/plugins/builtin/options/expiry-catalogue.ts +43 -0
- package/src/plugins/builtin/options/footer.ts +143 -0
- package/src/plugins/builtin/options/index.tsx +159 -0
- package/src/plugins/builtin/options/live-quotes.ts +295 -0
- package/src/plugins/builtin/options/market-reference.ts +92 -0
- package/src/plugins/builtin/options/model-spot.ts +163 -0
- package/src/plugins/builtin/options/open-interest-as-of.ts +74 -0
- package/src/plugins/builtin/options/quote-context.tsx +29 -0
- package/src/plugins/builtin/options/strike-window.ts +184 -0
- package/src/plugins/builtin/options/table.ts +365 -0
- package/src/plugins/builtin/options/types.ts +59 -0
- package/src/plugins/builtin/options/view.tsx +1055 -0
- package/src/plugins/builtin/options-calculator/binomial.ts +332 -0
- package/src/plugins/builtin/options-calculator/evidence.ts +228 -0
- package/src/plugins/builtin/options-calculator/headless.ts +137 -0
- package/src/plugins/builtin/options-calculator/index.tsx +37 -0
- package/src/plugins/builtin/options-calculator/inputs.ts +79 -0
- package/src/plugins/builtin/options-calculator/model.ts +119 -0
- package/src/plugins/builtin/options-calculator/pane.tsx +429 -0
- package/src/plugins/builtin/options-calculator/premium-history.ts +34 -0
- package/src/plugins/builtin/options-calculator/surface.ts +194 -0
- package/src/plugins/builtin/options-positioning/client.ts +149 -0
- package/src/plugins/builtin/options-positioning/headless.ts +255 -0
- package/src/plugins/builtin/options-positioning/index.tsx +72 -0
- package/src/plugins/builtin/options-positioning/model.ts +337 -0
- package/src/plugins/builtin/options-positioning/pane.tsx +669 -0
- package/src/plugins/builtin/options-scenario/charts.tsx +47 -0
- package/src/plugins/builtin/options-scenario/client.ts +645 -0
- package/src/plugins/builtin/options-scenario/collar.ts +143 -0
- package/src/plugins/builtin/options-scenario/csp-screen-headless.ts +259 -0
- package/src/plugins/builtin/options-scenario/csp-screen-pane.tsx +316 -0
- package/src/plugins/builtin/options-scenario/csp-screen.ts +298 -0
- package/src/plugins/builtin/options-scenario/csp.ts +254 -0
- package/src/plugins/builtin/options-scenario/editor.tsx +139 -0
- package/src/plugins/builtin/options-scenario/evidence.ts +127 -0
- package/src/plugins/builtin/options-scenario/freshness.ts +27 -0
- package/src/plugins/builtin/options-scenario/headless.ts +208 -0
- package/src/plugins/builtin/options-scenario/hedge.ts +291 -0
- package/src/plugins/builtin/options-scenario/index.tsx +64 -0
- package/src/plugins/builtin/options-scenario/live.ts +50 -0
- package/src/plugins/builtin/options-scenario/model.ts +407 -0
- package/src/plugins/builtin/options-scenario/pane.tsx +475 -0
- package/src/plugins/builtin/options-scenario/state.ts +71 -0
- package/src/plugins/builtin/options-scenario/strategy-screen.ts +532 -0
- package/src/plugins/builtin/pe-band/client.ts +133 -0
- package/src/plugins/builtin/pe-band/headless.ts +69 -0
- package/src/plugins/builtin/pe-band/index.tsx +20 -0
- package/src/plugins/builtin/pe-band/model.ts +297 -0
- package/src/plugins/builtin/pe-band/pane.tsx +177 -0
- package/src/plugins/builtin/pe-band/report-dates.ts +82 -0
- package/src/plugins/builtin/perps/cascade-tabs.tsx +161 -0
- package/src/plugins/builtin/perps/cascade.ts +236 -0
- package/src/plugins/builtin/perps/client.ts +326 -0
- package/src/plugins/builtin/perps/equity-identity.ts +16 -0
- package/src/plugins/builtin/perps/equity-row.tsx +76 -0
- package/src/plugins/builtin/perps/freshness.ts +71 -0
- package/src/plugins/builtin/perps/headless.ts +263 -0
- package/src/plugins/builtin/perps/index.tsx +35 -0
- package/src/plugins/builtin/perps/list-perpetuals.ts +139 -0
- package/src/plugins/builtin/perps/live-rows.ts +168 -0
- package/src/plugins/builtin/perps/markets-section.tsx +154 -0
- package/src/plugins/builtin/perps/model.ts +349 -0
- package/src/plugins/builtin/perps/open-market.ts +15 -0
- package/src/plugins/builtin/perps/pane.tsx +463 -0
- package/src/plugins/builtin/perps/series.ts +76 -0
- package/src/plugins/builtin/perps/status-line.ts +25 -0
- package/src/plugins/builtin/perps/venue-markets.ts +96 -0
- package/src/plugins/builtin/plugin-marketplace/index.tsx +44 -0
- package/src/plugins/builtin/plugin-marketplace/pane.tsx +1059 -0
- package/src/plugins/builtin/plugin-module.ts +209 -0
- package/src/plugins/builtin/portfolio-list/account-metrics.ts +206 -0
- package/src/plugins/builtin/portfolio-list/cached-account.ts +44 -0
- package/src/plugins/builtin/portfolio-list/cell-version.ts +79 -0
- package/src/plugins/builtin/portfolio-list/cli/bulk-symbols.ts +324 -0
- package/src/plugins/builtin/portfolio-list/cli/import-13f.ts +109 -0
- package/src/plugins/builtin/portfolio-list/cli/portfolio-command.ts +1151 -0
- package/src/plugins/builtin/portfolio-list/cli/render.ts +1404 -0
- package/src/plugins/builtin/portfolio-list/cli/shared.ts +151 -0
- package/src/plugins/builtin/portfolio-list/cli/watchlist-command.ts +297 -0
- package/src/plugins/builtin/portfolio-list/grid.tsx +288 -0
- package/src/plugins/builtin/portfolio-list/header.tsx +65 -0
- package/src/plugins/builtin/portfolio-list/headless.ts +552 -0
- package/src/plugins/builtin/portfolio-list/imported-from.ts +8 -0
- package/src/plugins/builtin/portfolio-list/income.ts +307 -0
- package/src/plugins/builtin/portfolio-list/index.tsx +125 -0
- package/src/plugins/builtin/portfolio-list/metrics.ts +25 -0
- package/src/plugins/builtin/portfolio-list/pane/data.ts +277 -0
- package/src/plugins/builtin/portfolio-list/pane/futures-front.ts +40 -0
- package/src/plugins/builtin/portfolio-list/pane/futures-terms.ts +58 -0
- package/src/plugins/builtin/portfolio-list/pane/index.tsx +846 -0
- package/src/plugins/builtin/portfolio-list/pane/purchase-date-fx.ts +46 -0
- package/src/plugins/builtin/portfolio-list/pane/remove-ticker.ts +85 -0
- package/src/plugins/builtin/portfolio-list/pane/streaming.ts +331 -0
- package/src/plugins/builtin/portfolio-list/pane/supplemental.ts +301 -0
- package/src/plugins/builtin/portfolio-list/quick-add/index.tsx +435 -0
- package/src/plugins/builtin/portfolio-list/quick-add/resolution.ts +210 -0
- package/src/plugins/builtin/portfolio-list/row-actions.ts +8 -0
- package/src/plugins/builtin/portfolio-list/settings.ts +409 -0
- package/src/plugins/builtin/portfolio-list/since-last-seen.ts +197 -0
- package/src/plugins/builtin/portfolio-list/summary/index.tsx +530 -0
- package/src/plugins/builtin/portfolio-list/summary/live-accounts.ts +167 -0
- package/src/plugins/builtin/portfolio-list/summary/totals.ts +280 -0
- package/src/plugins/builtin/portfolio-list/table.tsx +251 -0
- package/src/plugins/builtin/portfolio-list/use-column-clock.ts +41 -0
- package/src/plugins/builtin/portfolio-list/use-cursor-neighbor-prefetch.ts +87 -0
- package/src/plugins/builtin/portfolio-list/use-throttled-cursor-symbol.ts +26 -0
- package/src/plugins/builtin/portfolio-list/use-throttled-memo.ts +59 -0
- package/src/plugins/builtin/portfolio-list/use-throttled-ticker-order.ts +78 -0
- package/src/plugins/builtin/power/client.ts +119 -0
- package/src/plugins/builtin/power/detail.tsx +82 -0
- package/src/plugins/builtin/power/evidence.ts +153 -0
- package/src/plugins/builtin/power/gas-client.ts +110 -0
- package/src/plugins/builtin/power/gas-model.ts +194 -0
- package/src/plugins/builtin/power/gas.tsx +149 -0
- package/src/plugins/builtin/power/generation.tsx +37 -0
- package/src/plugins/builtin/power/headless.ts +116 -0
- package/src/plugins/builtin/power/index.tsx +51 -0
- package/src/plugins/builtin/power/model.ts +160 -0
- package/src/plugins/builtin/power/pane.tsx +248 -0
- package/src/plugins/builtin/power/prices-client.ts +139 -0
- package/src/plugins/builtin/power/prices-headless.ts +206 -0
- package/src/plugins/builtin/power/prices-model.ts +103 -0
- package/src/plugins/builtin/power/prices.tsx +209 -0
- package/src/plugins/builtin/power/query.ts +25 -0
- package/src/plugins/builtin/primary-dealers/client.ts +158 -0
- package/src/plugins/builtin/primary-dealers/headless.ts +78 -0
- package/src/plugins/builtin/primary-dealers/index.tsx +18 -0
- package/src/plugins/builtin/primary-dealers/model.ts +256 -0
- package/src/plugins/builtin/primary-dealers/pane.tsx +269 -0
- package/src/plugins/builtin/rate-path/client.ts +52 -0
- package/src/plugins/builtin/rate-path/headless.ts +93 -0
- package/src/plugins/builtin/rate-path/index.tsx +18 -0
- package/src/plugins/builtin/rate-path/model.ts +127 -0
- package/src/plugins/builtin/rate-path/pane.tsx +214 -0
- package/src/plugins/builtin/realized-vol/chart-model.ts +70 -0
- package/src/plugins/builtin/realized-vol/charts.tsx +44 -0
- package/src/plugins/builtin/realized-vol/client.ts +108 -0
- package/src/plugins/builtin/realized-vol/evidence.ts +103 -0
- package/src/plugins/builtin/realized-vol/headless.ts +86 -0
- package/src/plugins/builtin/realized-vol/index.tsx +34 -0
- package/src/plugins/builtin/realized-vol/model.ts +149 -0
- package/src/plugins/builtin/realized-vol/pane.tsx +211 -0
- package/src/plugins/builtin/realized-vol/settings.ts +16 -0
- package/src/plugins/builtin/relative-rotation/client.ts +204 -0
- package/src/plugins/builtin/relative-rotation/headless.ts +95 -0
- package/src/plugins/builtin/relative-rotation/index.tsx +92 -0
- package/src/plugins/builtin/relative-rotation/model.ts +301 -0
- package/src/plugins/builtin/relative-rotation/pane.tsx +386 -0
- package/src/plugins/builtin/research/analyst-headless.ts +200 -0
- package/src/plugins/builtin/research/analyst-model.ts +557 -0
- package/src/plugins/builtin/research/analyst-pane.tsx +319 -0
- package/src/plugins/builtin/research/client.ts +12 -0
- package/src/plugins/builtin/research/corporate-actions-pane.tsx +716 -0
- package/src/plugins/builtin/research/equity-diagnostic-pane.tsx +597 -0
- package/src/plugins/builtin/research/event-model.ts +525 -0
- package/src/plugins/builtin/research/event-sources.ts +72 -0
- package/src/plugins/builtin/research/events-headless.ts +82 -0
- package/src/plugins/builtin/research/headless-schema.ts +48 -0
- package/src/plugins/builtin/research/headless.ts +138 -0
- package/src/plugins/builtin/research/index.tsx +183 -0
- package/src/plugins/builtin/research/relative-valuation-basis.ts +58 -0
- package/src/plugins/builtin/research/relative-valuation-columns.ts +340 -0
- package/src/plugins/builtin/research/relative-valuation-currency.ts +171 -0
- package/src/plugins/builtin/research/relative-valuation-headless.ts +239 -0
- package/src/plugins/builtin/research/relative-valuation-model.ts +240 -0
- package/src/plugins/builtin/research/relative-valuation-pane.tsx +369 -0
- package/src/plugins/builtin/research/relative-valuation-peers.ts +302 -0
- package/src/plugins/builtin/research-search/article.ts +65 -0
- package/src/plugins/builtin/research-search/command-bar-search.ts +175 -0
- package/src/plugins/builtin/research-search/data.ts +116 -0
- package/src/plugins/builtin/research-search/document-view.tsx +74 -0
- package/src/plugins/builtin/research-search/focus-handoff.ts +47 -0
- package/src/plugins/builtin/research-search/index.tsx +87 -0
- package/src/plugins/builtin/research-search/model.ts +266 -0
- package/src/plugins/builtin/research-search/pane.tsx +690 -0
- package/src/plugins/builtin/research-search/saved-view.tsx +172 -0
- package/src/plugins/builtin/research-search/snippet-text.tsx +35 -0
- package/src/plugins/builtin/research-search/snippet.ts +105 -0
- package/src/plugins/builtin/revenue-breakdown/bars.tsx +113 -0
- package/src/plugins/builtin/revenue-breakdown/client.ts +121 -0
- package/src/plugins/builtin/revenue-breakdown/headless.ts +89 -0
- package/src/plugins/builtin/revenue-breakdown/index.tsx +60 -0
- package/src/plugins/builtin/revenue-breakdown/model.ts +157 -0
- package/src/plugins/builtin/revenue-breakdown/pane.tsx +293 -0
- package/src/plugins/builtin/reverse-dcf/client.ts +36 -0
- package/src/plugins/builtin/reverse-dcf/headless.ts +71 -0
- package/src/plugins/builtin/reverse-dcf/index.tsx +23 -0
- package/src/plugins/builtin/reverse-dcf/model.ts +229 -0
- package/src/plugins/builtin/reverse-dcf/pane.tsx +133 -0
- package/src/plugins/builtin/risk-factors/data.ts +135 -0
- package/src/plugins/builtin/risk-factors/headless.ts +82 -0
- package/src/plugins/builtin/risk-factors/index.tsx +93 -0
- package/src/plugins/builtin/risk-factors/pane.tsx +308 -0
- package/src/plugins/builtin/scanner/denied.tsx +20 -0
- package/src/plugins/builtin/scanner/feed.ts +118 -0
- package/src/plugins/builtin/scanner/flow-history.ts +98 -0
- package/src/plugins/builtin/scanner/flow-model.ts +318 -0
- package/src/plugins/builtin/scanner/flow-pane.tsx +562 -0
- package/src/plugins/builtin/scanner/flow-session.ts +146 -0
- package/src/plugins/builtin/scanner/headless.ts +418 -0
- package/src/plugins/builtin/scanner/hilo-bars.tsx +65 -0
- package/src/plugins/builtin/scanner/hilo-model.ts +96 -0
- package/src/plugins/builtin/scanner/hilo-pane.tsx +208 -0
- package/src/plugins/builtin/scanner/index.ts +153 -0
- package/src/plugins/builtin/scanner/live-condition-editor.tsx +222 -0
- package/src/plugins/builtin/scanner/live-feed.ts +168 -0
- package/src/plugins/builtin/scanner/live-headless.ts +138 -0
- package/src/plugins/builtin/scanner/live-model.ts +362 -0
- package/src/plugins/builtin/scanner/live-pane.tsx +677 -0
- package/src/plugins/builtin/scanner/live-track.ts +186 -0
- package/src/plugins/builtin/scanner/lock-note.ts +19 -0
- package/src/plugins/builtin/seasonality/client.ts +76 -0
- package/src/plugins/builtin/seasonality/headless.ts +73 -0
- package/src/plugins/builtin/seasonality/index.tsx +20 -0
- package/src/plugins/builtin/seasonality/model.ts +243 -0
- package/src/plugins/builtin/seasonality/pane.tsx +229 -0
- package/src/plugins/builtin/sec/client.ts +16 -0
- package/src/plugins/builtin/sec/command-bar-search.ts +227 -0
- package/src/plugins/builtin/sec/filing-content.ts +160 -0
- package/src/plugins/builtin/sec/filing-display.tsx +53 -0
- package/src/plugins/builtin/sec/filing-documents.ts +65 -0
- package/src/plugins/builtin/sec/forms.ts +75 -0
- package/src/plugins/builtin/sec/fund-abroad.ts +32 -0
- package/src/plugins/builtin/sec/fund-facts-view.tsx +56 -0
- package/src/plugins/builtin/sec/fund-facts.ts +470 -0
- package/src/plugins/builtin/sec/headless.ts +295 -0
- package/src/plugins/builtin/sec/index.tsx +690 -0
- package/src/plugins/builtin/sec/model.ts +266 -0
- package/src/plugins/builtin/sec/row-summaries.ts +105 -0
- package/src/plugins/builtin/sectors/client.ts +182 -0
- package/src/plugins/builtin/sectors/headless.ts +137 -0
- package/src/plugins/builtin/sectors/index.tsx +454 -0
- package/src/plugins/builtin/sectors/move-bar.tsx +21 -0
- package/src/plugins/builtin/sectors/sector-data.ts +75 -0
- package/src/plugins/builtin/sectors/sector-model.ts +536 -0
- package/src/plugins/builtin/series-inventory.ts +101 -0
- package/src/plugins/builtin/shared/broker-reconnect.ts +190 -0
- package/src/plugins/builtin/shared/cloud-denied.ts +47 -0
- package/src/plugins/builtin/shared/cloud-resource.ts +70 -0
- package/src/plugins/builtin/shared/cloud-upgrade.ts +367 -0
- package/src/plugins/builtin/shared/command-tab.ts +69 -0
- package/src/plugins/builtin/shared/crypto-pair.ts +14 -0
- package/src/plugins/builtin/shared/earnings-calendar.ts +379 -0
- package/src/plugins/builtin/shared/earnings-estimate-basis.ts +71 -0
- package/src/plugins/builtin/shared/earnings-report.ts +108 -0
- package/src/plugins/builtin/shared/filing-year-reader.tsx +123 -0
- package/src/plugins/builtin/shared/fred-points.ts +20 -0
- package/src/plugins/builtin/shared/free-preview.ts +47 -0
- package/src/plugins/builtin/shared/free-routes.ts +24 -0
- package/src/plugins/builtin/shared/futures-session.ts +34 -0
- package/src/plugins/builtin/shared/fx-rate-freshness.ts +123 -0
- package/src/plugins/builtin/shared/headless-market-data.ts +72 -0
- package/src/plugins/builtin/shared/headless-options.ts +54 -0
- package/src/plugins/builtin/shared/history-span.ts +55 -0
- package/src/plugins/builtin/shared/job-posting.ts +130 -0
- package/src/plugins/builtin/shared/locked-rows.tsx +58 -0
- package/src/plugins/builtin/shared/macro-releases.ts +65 -0
- package/src/plugins/builtin/shared/members-menu.tsx +261 -0
- package/src/plugins/builtin/shared/mine-tickers.ts +19 -0
- package/src/plugins/builtin/shared/move-rank.ts +108 -0
- package/src/plugins/builtin/shared/open-description.ts +29 -0
- package/src/plugins/builtin/shared/pane-request.ts +35 -0
- package/src/plugins/builtin/shared/pro-feature-wall.tsx +56 -0
- package/src/plugins/builtin/shared/pro-lock-note.ts +140 -0
- package/src/plugins/builtin/shared/public-pane.ts +9 -0
- package/src/plugins/builtin/shared/report-freshness.ts +149 -0
- package/src/plugins/builtin/shared/research-cells.tsx +102 -0
- package/src/plugins/builtin/shared/research-cloud-session.ts +18 -0
- package/src/plugins/builtin/shared/research-trading.tsx +85 -0
- package/src/plugins/builtin/shared/scanner-capture.ts +98 -0
- package/src/plugins/builtin/shared/series-cache.ts +140 -0
- package/src/plugins/builtin/shared/series-detail-chart.tsx +171 -0
- package/src/plugins/builtin/shared/series-list-detail.tsx +223 -0
- package/src/plugins/builtin/shared/series-warning.ts +5 -0
- package/src/plugins/builtin/shared/stat-transform.ts +94 -0
- package/src/plugins/builtin/shared/ticker-choice.tsx +35 -0
- package/src/plugins/builtin/shared/ticker-company.ts +77 -0
- package/src/plugins/builtin/shared/ticker-request.ts +71 -0
- package/src/plugins/builtin/shared/ticker-surface.ts +149 -0
- package/src/plugins/builtin/shared/treasury-cutoffs.ts +15 -0
- package/src/plugins/builtin/shared/trend.ts +81 -0
- package/src/plugins/builtin/shared/use-quote-board.ts +695 -0
- package/src/plugins/builtin/shared/volatility/index.ts +4 -0
- package/src/plugins/builtin/shared/volatility/live-session.ts +211 -0
- package/src/plugins/builtin/shared/volatility/options.ts +212 -0
- package/src/plugins/builtin/shared/volatility/pricing.ts +236 -0
- package/src/plugins/builtin/shared/volatility/smile.ts +413 -0
- package/src/plugins/builtin/shared/volatility-indices.ts +32 -0
- package/src/plugins/builtin/shared/wall-teaser-catalog.ts +80 -0
- package/src/plugins/builtin/shared/wall-teaser.tsx +192 -0
- package/src/plugins/builtin/shared/wall-view-lifecycle.ts +45 -0
- package/src/plugins/builtin/short-interest/client.ts +48 -0
- package/src/plugins/builtin/short-interest/headless.ts +166 -0
- package/src/plugins/builtin/short-interest/index.tsx +143 -0
- package/src/plugins/builtin/short-interest/model.ts +265 -0
- package/src/plugins/builtin/short-interest/pane.tsx +178 -0
- package/src/plugins/builtin/short-interest/publications-client.ts +82 -0
- package/src/plugins/builtin/short-interest/publications-headless.ts +29 -0
- package/src/plugins/builtin/short-interest/publications-model.ts +50 -0
- package/src/plugins/builtin/short-interest/publications-pane.tsx +66 -0
- package/src/plugins/builtin/short-interest/schedule.ts +140 -0
- package/src/plugins/builtin/short-interest/series.ts +36 -0
- package/src/plugins/builtin/short-interest/surface.tsx +49 -0
- package/src/plugins/builtin/short-interest/types.ts +16 -0
- package/src/plugins/builtin/short-interest/watch-client.ts +122 -0
- package/src/plugins/builtin/short-interest/watch-headless.ts +56 -0
- package/src/plugins/builtin/short-interest/watch-model.ts +214 -0
- package/src/plugins/builtin/short-interest/watch-pane.tsx +173 -0
- package/src/plugins/builtin/short-volume/client.ts +86 -0
- package/src/plugins/builtin/short-volume/headless.ts +31 -0
- package/src/plugins/builtin/short-volume/index.tsx +20 -0
- package/src/plugins/builtin/short-volume/model.ts +53 -0
- package/src/plugins/builtin/short-volume/pane.tsx +108 -0
- package/src/plugins/builtin/short-volume/series.ts +23 -0
- package/src/plugins/builtin/social-mentions/client.ts +93 -0
- package/src/plugins/builtin/social-mentions/headless.ts +33 -0
- package/src/plugins/builtin/social-mentions/index.tsx +24 -0
- package/src/plugins/builtin/social-mentions/lock-note.ts +15 -0
- package/src/plugins/builtin/social-mentions/model.ts +92 -0
- package/src/plugins/builtin/social-mentions/pane.tsx +158 -0
- package/src/plugins/builtin/social-mentions/series.ts +23 -0
- package/src/plugins/builtin/supply-chain/client.ts +113 -0
- package/src/plugins/builtin/supply-chain/disclosure-quote.tsx +21 -0
- package/src/plugins/builtin/supply-chain/evidence.ts +90 -0
- package/src/plugins/builtin/supply-chain/flow-layout.ts +134 -0
- package/src/plugins/builtin/supply-chain/flow.tsx +366 -0
- package/src/plugins/builtin/supply-chain/graph-client.ts +86 -0
- package/src/plugins/builtin/supply-chain/graph-evidence.ts +25 -0
- package/src/plugins/builtin/supply-chain/graph-model.ts +53 -0
- package/src/plugins/builtin/supply-chain/graph-pane.tsx +221 -0
- package/src/plugins/builtin/supply-chain/graph.tsx +167 -0
- package/src/plugins/builtin/supply-chain/headless.ts +185 -0
- package/src/plugins/builtin/supply-chain/index.tsx +26 -0
- package/src/plugins/builtin/supply-chain/model.ts +292 -0
- package/src/plugins/builtin/supply-chain/pane.tsx +373 -0
- package/src/plugins/builtin/supply-chain/row-evidence.tsx +97 -0
- package/src/plugins/builtin/supply-chain/trust.ts +34 -0
- package/src/plugins/builtin/themes/client.ts +39 -0
- package/src/plugins/builtin/themes/headless.ts +129 -0
- package/src/plugins/builtin/themes/model.ts +208 -0
- package/src/plugins/builtin/themes/pane.tsx +166 -0
- package/src/plugins/builtin/thirteenf/api.ts +434 -0
- package/src/plugins/builtin/thirteenf/data.ts +593 -0
- package/src/plugins/builtin/thirteenf/format.ts +56 -0
- package/src/plugins/builtin/thirteenf/headless.ts +927 -0
- package/src/plugins/builtin/thirteenf/index.tsx +94 -0
- package/src/plugins/builtin/thirteenf/model.ts +933 -0
- package/src/plugins/builtin/thirteenf/overlap-pane.tsx +207 -0
- package/src/plugins/builtin/thirteenf/overlap.ts +123 -0
- package/src/plugins/builtin/thirteenf/pane.tsx +781 -0
- package/src/plugins/builtin/thirteenf/report-notes.ts +329 -0
- package/src/plugins/builtin/thirteenf/signals-pane.tsx +153 -0
- package/src/plugins/builtin/thirteenf/signals.ts +74 -0
- package/src/plugins/builtin/thirteenf/table.ts +196 -0
- package/src/plugins/builtin/thirteenf/types.ts +254 -0
- package/src/plugins/builtin/ticker-detail/adr-pair/headless.ts +123 -0
- package/src/plugins/builtin/ticker-detail/adr-pair/model.ts +132 -0
- package/src/plugins/builtin/ticker-detail/adr-pair/tab.tsx +87 -0
- package/src/plugins/builtin/ticker-detail/data-panes/historical-prices.tsx +419 -0
- package/src/plugins/builtin/ticker-detail/data-panes/history-bars.ts +112 -0
- package/src/plugins/builtin/ticker-detail/data-panes/returns-history.ts +179 -0
- package/src/plugins/builtin/ticker-detail/data-panes/returns-model.ts +425 -0
- package/src/plugins/builtin/ticker-detail/data-panes/returns-pane.tsx +361 -0
- package/src/plugins/builtin/ticker-detail/financials/aggregation.ts +322 -0
- package/src/plugins/builtin/ticker-detail/financials/model.ts +643 -0
- package/src/plugins/builtin/ticker-detail/financials/offerings.ts +56 -0
- package/src/plugins/builtin/ticker-detail/financials/pane.tsx +29 -0
- package/src/plugins/builtin/ticker-detail/financials/period-end-history.ts +44 -0
- package/src/plugins/builtin/ticker-detail/financials/ratio-table.tsx +175 -0
- package/src/plugins/builtin/ticker-detail/financials/ratios.ts +830 -0
- package/src/plugins/builtin/ticker-detail/financials/schema.ts +389 -0
- package/src/plugins/builtin/ticker-detail/financials/tab.tsx +592 -0
- package/src/plugins/builtin/ticker-detail/headless-schema.ts +111 -0
- package/src/plugins/builtin/ticker-detail/headless.ts +591 -0
- package/src/plugins/builtin/ticker-detail/index.tsx +248 -0
- package/src/plugins/builtin/ticker-detail/overview/components.tsx +361 -0
- package/src/plugins/builtin/ticker-detail/overview/dividend.ts +60 -0
- package/src/plugins/builtin/ticker-detail/overview/futures-contract.ts +31 -0
- package/src/plugins/builtin/ticker-detail/overview/model.ts +446 -0
- package/src/plugins/builtin/ticker-detail/overview/option-contract.ts +64 -0
- package/src/plugins/builtin/ticker-detail/overview/pane.tsx +60 -0
- package/src/plugins/builtin/ticker-detail/overview/types.ts +40 -0
- package/src/plugins/builtin/ticker-detail/overview-tab.tsx +618 -0
- package/src/plugins/builtin/ticker-detail/pane.tsx +420 -0
- package/src/plugins/builtin/ticker-detail/quote-footer.ts +48 -0
- package/src/plugins/builtin/ticker-detail/quote-monitor/card.tsx +489 -0
- package/src/plugins/builtin/ticker-detail/quote-monitor/index.tsx +320 -0
- package/src/plugins/builtin/ticker-detail/research-tab-keys.tsx +58 -0
- package/src/plugins/builtin/ticker-detail/research-tab-navigation.tsx +14 -0
- package/src/plugins/builtin/ticker-detail/research-tabs.ts +43 -0
- package/src/plugins/builtin/ticker-detail/settings.ts +204 -0
- package/src/plugins/builtin/time-sales/client.ts +84 -0
- package/src/plugins/builtin/time-sales/headless.ts +117 -0
- package/src/plugins/builtin/time-sales/index.tsx +18 -0
- package/src/plugins/builtin/time-sales/model.ts +125 -0
- package/src/plugins/builtin/time-sales/pane.tsx +189 -0
- package/src/plugins/builtin/time-sales/snapshot-client.ts +28 -0
- package/src/plugins/builtin/time-sales/use-tape.ts +58 -0
- package/src/plugins/builtin/time-sales/window.ts +128 -0
- package/src/plugins/builtin/trace-bonds/client.ts +525 -0
- package/src/plugins/builtin/trace-bonds/headless.ts +107 -0
- package/src/plugins/builtin/trace-bonds/index.tsx +35 -0
- package/src/plugins/builtin/trace-bonds/model.ts +117 -0
- package/src/plugins/builtin/trace-bonds/pane.tsx +209 -0
- package/src/plugins/builtin/treasury-auctions/cache.ts +115 -0
- package/src/plugins/builtin/treasury-auctions/client.ts +230 -0
- package/src/plugins/builtin/treasury-auctions/headless.ts +172 -0
- package/src/plugins/builtin/treasury-auctions/index.tsx +88 -0
- package/src/plugins/builtin/treasury-auctions/model.ts +379 -0
- package/src/plugins/builtin/treasury-auctions/pane.tsx +413 -0
- package/src/plugins/builtin/treasury-auctions/types.ts +72 -0
- package/src/plugins/builtin/treasury-daily/client.ts +132 -0
- package/src/plugins/builtin/treasury-daily/headless.ts +69 -0
- package/src/plugins/builtin/treasury-daily/index.tsx +17 -0
- package/src/plugins/builtin/treasury-daily/model.ts +116 -0
- package/src/plugins/builtin/treasury-daily/pane.tsx +219 -0
- package/src/plugins/builtin/vol-surface/charts.tsx +117 -0
- package/src/plugins/builtin/vol-surface/client.ts +260 -0
- package/src/plugins/builtin/vol-surface/evidence.ts +207 -0
- package/src/plugins/builtin/vol-surface/headless.ts +286 -0
- package/src/plugins/builtin/vol-surface/heat-grid.tsx +113 -0
- package/src/plugins/builtin/vol-surface/index.tsx +47 -0
- package/src/plugins/builtin/vol-surface/live.ts +60 -0
- package/src/plugins/builtin/vol-surface/model.ts +661 -0
- package/src/plugins/builtin/vol-surface/pane.tsx +582 -0
- package/src/plugins/builtin/vol-surface/raster.ts +113 -0
- package/src/plugins/builtin/vol-surface/stored.ts +170 -0
- package/src/plugins/builtin/vol-surface/surface.tsx +59 -0
- package/src/plugins/builtin/vol-surface/tables.ts +166 -0
- package/src/plugins/builtin/volatility/chart-model.ts +163 -0
- package/src/plugins/builtin/volatility/charts.tsx +40 -0
- package/src/plugins/builtin/volatility/client.ts +256 -0
- package/src/plugins/builtin/volatility/dvol.ts +46 -0
- package/src/plugins/builtin/volatility/evidence.ts +144 -0
- package/src/plugins/builtin/volatility/headless.ts +78 -0
- package/src/plugins/builtin/volatility/index.tsx +27 -0
- package/src/plugins/builtin/volatility/model.ts +443 -0
- package/src/plugins/builtin/volatility/pane.tsx +254 -0
- package/src/plugins/builtin/volatility/series.ts +119 -0
- package/src/plugins/builtin/world-indices/client.ts +58 -0
- package/src/plugins/builtin/world-indices/footer.ts +25 -0
- package/src/plugins/builtin/world-indices/headless.ts +148 -0
- package/src/plugins/builtin/world-indices/index.tsx +189 -0
- package/src/plugins/builtin/world-indices/indices.ts +63 -0
- package/src/plugins/builtin/world-indices/model.ts +94 -0
- package/src/plugins/builtin/world-indices/table.tsx +105 -0
- package/src/plugins/builtin/world-venue-map/basemap-layer.tsx +161 -0
- package/src/plugins/builtin/world-venue-map/basemap.ts +237 -0
- package/src/plugins/builtin/world-venue-map/chokepoint-chart.ts +40 -0
- package/src/plugins/builtin/world-venue-map/client.ts +45 -0
- package/src/plugins/builtin/world-venue-map/country-labels.ts +78 -0
- package/src/plugins/builtin/world-venue-map/entity-detail.tsx +160 -0
- package/src/plugins/builtin/world-venue-map/entity-table.ts +59 -0
- package/src/plugins/builtin/world-venue-map/evidence.ts +77 -0
- package/src/plugins/builtin/world-venue-map/feed.ts +293 -0
- package/src/plugins/builtin/world-venue-map/geo-draw.tsx +249 -0
- package/src/plugins/builtin/world-venue-map/geo-series.ts +255 -0
- package/src/plugins/builtin/world-venue-map/geo-svg.tsx +448 -0
- package/src/plugins/builtin/world-venue-map/headless.ts +166 -0
- package/src/plugins/builtin/world-venue-map/ids.ts +1 -0
- package/src/plugins/builtin/world-venue-map/index.ts +82 -0
- package/src/plugins/builtin/world-venue-map/layered-pane.tsx +576 -0
- package/src/plugins/builtin/world-venue-map/layers.ts +435 -0
- package/src/plugins/builtin/world-venue-map/map-symbols.ts +220 -0
- package/src/plugins/builtin/world-venue-map/map.tsx +1122 -0
- package/src/plugins/builtin/world-venue-map/model.ts +321 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/index.chunk.ts +202 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/labels.chunk.ts +244 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e000s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e015s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e030s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e045s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e060s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e075s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e090s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e105s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e120s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e135s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e150s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/e165s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w015s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w030s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w045s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w060s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w075s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w090s60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w105s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w120s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135n75.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w135s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w150s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w165s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n00.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180n60.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180s15.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180s30.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/tiles/w180s45.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/natural-earth/world-50m.chunk.ts +4 -0
- package/src/plugins/builtin/world-venue-map/pane.tsx +260 -0
- package/src/plugins/builtin/world-venue-map/use-geo.ts +55 -0
- package/src/plugins/builtin/world-venue-map/venue-header.tsx +43 -0
- package/src/plugins/builtin/world-venue-map/world-outlines.ts +2 -0
- package/src/plugins/builtin/yield-curve/chart.ts +159 -0
- package/src/plugins/builtin/yield-curve/client.ts +25 -0
- package/src/plugins/builtin/yield-curve/curves.ts +225 -0
- package/src/plugins/builtin/yield-curve/forward.ts +102 -0
- package/src/plugins/builtin/yield-curve/headless.ts +287 -0
- package/src/plugins/builtin/yield-curve/history.ts +166 -0
- package/src/plugins/builtin/yield-curve/index.tsx +494 -0
- package/src/plugins/builtin/yield-curve/series.ts +96 -0
- package/src/plugins/builtin/yield-curve/swaps-model.ts +93 -0
- package/src/plugins/builtin/yield-curve/swaps.tsx +99 -0
- package/src/plugins/builtin/yield-curve/treasury-data.ts +73 -0
- package/src/plugins/builtin/yield-curve/world.ts +57 -0
- package/src/plugins/builtin-editorial.ts +126 -0
- package/src/plugins/bundle.ts +200 -0
- package/src/plugins/catalog-backend.ts +37 -0
- package/src/plugins/catalog-browser.ts +344 -0
- package/src/plugins/catalog-manifest.ts +144 -0
- package/src/plugins/catalog-ui.ts +84 -0
- package/src/plugins/catalog.ts +44 -0
- package/src/plugins/compat.ts +225 -0
- package/src/plugins/current-target.ts +30 -0
- package/src/plugins/dependencies.ts +143 -0
- package/src/plugins/event-bus.ts +43 -0
- package/src/plugins/external-runtime.ts +54 -0
- package/src/plugins/extracted-plugins.ts +202 -0
- package/src/plugins/health.ts +21 -0
- package/src/plugins/host-link.ts +422 -0
- package/src/plugins/host-modules.ts +141 -0
- package/src/plugins/host-resolver.ts +100 -0
- package/src/plugins/host-smoke.ts +103 -0
- package/src/plugins/installer.ts +649 -0
- package/src/plugins/loader.ts +580 -0
- package/src/plugins/manager-node.ts +55 -0
- package/src/plugins/marketplace/activation.ts +95 -0
- package/src/plugins/marketplace/deactivation.ts +22 -0
- package/src/plugins/marketplace/feed.ts +92 -0
- package/src/plugins/marketplace/ids.ts +2 -0
- package/src/plugins/marketplace/model.ts +598 -0
- package/src/plugins/marketplace/packs.ts +118 -0
- package/src/plugins/marketplace/store.ts +130 -0
- package/src/plugins/ownership.ts +281 -0
- package/src/plugins/peer-retry.ts +155 -0
- package/src/plugins/plugin-export.ts +24 -0
- package/src/plugins/plugin-functions.ts +54 -0
- package/src/plugins/plugin-icon.ts +61 -0
- package/src/plugins/plugin-names.ts +32 -0
- package/src/plugins/plugin-off.ts +36 -0
- package/src/plugins/plugin-persistence.ts +84 -0
- package/src/plugins/registry/context-menu.ts +36 -0
- package/src/plugins/registry/contributions.ts +159 -0
- package/src/plugins/registry/host-actions.ts +276 -0
- package/src/plugins/registry/index.ts +777 -0
- package/src/plugins/registry/pane-settings.ts +188 -0
- package/src/plugins/registry/plugin-state.ts +135 -0
- package/src/plugins/registry/setup-command.ts +93 -0
- package/src/plugins/registry/shared.ts +28 -0
- package/src/plugins/registry/slots.ts +67 -0
- package/src/plugins/runtime/context.tsx +110 -0
- package/src/plugins/runtime/index.tsx +95 -0
- package/src/plugins/runtime/state.ts +256 -0
- package/src/plugins/seed-notice.ts +20 -0
- package/src/plugins/shortcut-argument.ts +39 -0
- package/src/plugins/team-state.ts +70 -0
- package/src/plugins/web-bundled.ts +33 -0
- package/src/portfolio/allocation.ts +316 -0
- package/src/portfolio/collection-name.ts +62 -0
- package/src/portfolio/column-values.ts +846 -0
- package/src/portfolio/cost-fx.ts +338 -0
- package/src/portfolio/futures-positions.ts +216 -0
- package/src/portfolio/futures-terms.ts +75 -0
- package/src/portfolio/manual-lots.ts +153 -0
- package/src/portfolio/mutations.ts +532 -0
- package/src/portfolio/position-metrics.ts +332 -0
- package/src/portfolio/position-quantity.ts +49 -0
- package/src/portfolio/position-value.ts +40 -0
- package/src/portfolio/suffixed-listings.ts +209 -0
- package/src/portfolio/totals-currency.ts +24 -0
- package/src/portfolio/valuation-basis.ts +89 -0
- package/src/public/__snapshots__/public-api.test.ts.snap +557 -0
- package/src/public/broker.ts +50 -0
- package/src/public/i18n.ts +17 -0
- package/src/public/index.ts +3 -0
- package/src/public/layout.ts +12 -0
- package/src/public/market-data.ts +43 -0
- package/src/public/pane-hooks.ts +72 -0
- package/src/public/quotes.ts +50 -0
- package/src/public/react.ts +130 -0
- package/src/public/remote.ts +23 -0
- package/src/public/test-support.ts +84 -0
- package/src/public/tickers.ts +40 -0
- package/src/public/time-series.ts +61 -0
- package/src/public/utils.ts +112 -0
- package/src/react/assign-ref.ts +10 -0
- package/src/react/async-resource.ts +79 -0
- package/src/react/auto-refresh.ts +107 -0
- package/src/react/input.ts +278 -0
- package/src/react/key-repeat.ts +86 -0
- package/src/react/plugins/plugin-slot.tsx +16 -0
- package/src/react/read-state.ts +104 -0
- package/src/react/ticker-source.ts +32 -0
- package/src/react/use-raf-callback.ts +44 -0
- package/src/react/use-throttled-commit-value.ts +133 -0
- package/src/remote/app-host.tsx +115 -0
- package/src/remote/client.ts +34 -0
- package/src/remote/command-bar.ts +98 -0
- package/src/remote/confirm-change.tsx +86 -0
- package/src/remote/controller-utils.ts +113 -0
- package/src/remote/controller.ts +727 -0
- package/src/remote/endpoint.ts +41 -0
- package/src/remote/form.ts +20 -0
- package/src/remote/json-patch.ts +103 -0
- package/src/remote/layout-helpers.ts +55 -0
- package/src/remote/matching.ts +69 -0
- package/src/remote/pane-screenshot.ts +47 -0
- package/src/remote/resources.ts +236 -0
- package/src/remote/revision.ts +5 -0
- package/src/remote/schema.ts +544 -0
- package/src/remote/semantic-helpers.ts +161 -0
- package/src/remote/semantic-tree.tsx +167 -0
- package/src/remote/server.ts +131 -0
- package/src/remote/types.ts +211 -0
- package/src/remote/watchlist.ts +314 -0
- package/src/renderers/browser/app-services.ts +33 -0
- package/src/renderers/browser/bundled-plugins.ts +91 -0
- package/src/renderers/browser/cloud-transport.ts +111 -0
- package/src/renderers/browser/config-host.ts +146 -0
- package/src/renderers/browser/deeplink-bridge.ts +52 -0
- package/src/renderers/browser/http-proxy-transport.ts +55 -0
- package/src/renderers/browser/main.tsx +142 -0
- package/src/renderers/browser/research-entry.ts +23 -0
- package/src/renderers/browser/ui-host.tsx +51 -0
- package/src/renderers/cloudflare/http-proxy.ts +289 -0
- package/src/renderers/cloudflare/proxy-session.ts +270 -0
- package/src/renderers/cloudflare/worker.ts +145 -0
- package/src/renderers/dom/boot-frame-page.ts +187 -0
- package/src/renderers/dom/boot-frame.ts +237 -0
- package/src/renderers/dom/build-assets.ts +273 -0
- package/src/renderers/dom/data-frames.ts +24 -0
- package/src/renderers/dom/data-table/dom.ts +253 -0
- package/src/renderers/dom/data-table/frozen-column.ts +24 -0
- package/src/renderers/dom/data-table/index.tsx +558 -0
- package/src/renderers/dom/data-table/row.tsx +506 -0
- package/src/renderers/dom/desktop/audio-player.tsx +312 -0
- package/src/renderers/dom/desktop/control-styles.ts +90 -0
- package/src/renderers/dom/desktop/controls.tsx +706 -0
- package/src/renderers/dom/desktop/dialog-actions.tsx +130 -0
- package/src/renderers/dom/desktop/icons.tsx +258 -0
- package/src/renderers/dom/desktop/list-view.tsx +334 -0
- package/src/renderers/dom/desktop/menu.tsx +115 -0
- package/src/renderers/dom/desktop/popover.tsx +249 -0
- package/src/renderers/dom/desktop/query-bar.tsx +352 -0
- package/src/renderers/dom/desktop/select-field.tsx +155 -0
- package/src/renderers/dom/desktop/stack-header.ts +22 -0
- package/src/renderers/dom/dialog-host.tsx +148 -0
- package/src/renderers/dom/dom-host-providers.tsx +64 -0
- package/src/renderers/dom/dom-ui-host.tsx +121 -0
- package/src/renderers/dom/host/ascii-text.ts +51 -0
- package/src/renderers/dom/host/block-glyph-canvas.tsx +118 -0
- package/src/renderers/dom/host/box.tsx +368 -0
- package/src/renderers/dom/host/chart-surface.tsx +331 -0
- package/src/renderers/dom/host/drag-shield.ts +35 -0
- package/src/renderers/dom/host/focus-scope.ts +105 -0
- package/src/renderers/dom/host/hls.chunk.ts +3 -0
- package/src/renderers/dom/host/image-surface.tsx +49 -0
- package/src/renderers/dom/host/input.tsx +403 -0
- package/src/renderers/dom/host/live-frame.ts +66 -0
- package/src/renderers/dom/host/media-surface.tsx +270 -0
- package/src/renderers/dom/host/mouse.ts +183 -0
- package/src/renderers/dom/host/overflow-fade.ts +89 -0
- package/src/renderers/dom/host/resize-rows.ts +111 -0
- package/src/renderers/dom/host/scroll-box.tsx +344 -0
- package/src/renderers/dom/host/size-observer.ts +70 -0
- package/src/renderers/dom/host/sticky-scroll.ts +147 -0
- package/src/renderers/dom/host/style.ts +148 -0
- package/src/renderers/dom/host/surface-3d.tsx +707 -0
- package/src/renderers/dom/host/surface-fit.ts +413 -0
- package/src/renderers/dom/host/tabs.tsx +380 -0
- package/src/renderers/dom/host/text.tsx +174 -0
- package/src/renderers/dom/host/top-surface.ts +127 -0
- package/src/renderers/dom/input-host.tsx +163 -0
- package/src/renderers/dom/key-event.ts +186 -0
- package/src/renderers/dom/native-renderer.ts +114 -0
- package/src/renderers/dom/scrollbar-activity.ts +23 -0
- package/src/renderers/dom/styles.css +1633 -0
- package/src/renderers/dom/test-utils.tsx +79 -0
- package/src/renderers/dom/toast-host.tsx +95 -0
- package/src/renderers/dom/windowed-list.tsx +201 -0
- package/src/renderers/dom/windowed-rows.ts +65 -0
- package/src/renderers/electrobun/bun/application-menu/click.ts +66 -0
- package/src/renderers/electrobun/bun/application-menu/index.ts +137 -0
- package/src/renderers/electrobun/bun/context-menu/click.ts +42 -0
- package/src/renderers/electrobun/bun/context-menu/normalize.ts +62 -0
- package/src/renderers/electrobun/bun/core-capabilities.ts +241 -0
- package/src/renderers/electrobun/bun/desktop/app-badge.ts +37 -0
- package/src/renderers/electrobun/bun/desktop/app-icon.ts +127 -0
- package/src/renderers/electrobun/bun/desktop/app-name.ts +222 -0
- package/src/renderers/electrobun/bun/desktop/backend-requests.ts +119 -0
- package/src/renderers/electrobun/bun/desktop/backend.ts +603 -0
- package/src/renderers/electrobun/bun/desktop/capability-bridge.ts +144 -0
- package/src/renderers/electrobun/bun/desktop/detached-windows.ts +275 -0
- package/src/renderers/electrobun/bun/desktop/host-requests.ts +184 -0
- package/src/renderers/electrobun/bun/desktop/http-fetch.ts +84 -0
- package/src/renderers/electrobun/bun/desktop/http-stream.ts +191 -0
- package/src/renderers/electrobun/bun/desktop/initialization.ts +198 -0
- package/src/renderers/electrobun/bun/desktop/macos-dock-badge.ts +38 -0
- package/src/renderers/electrobun/bun/desktop/macos-dock-icon.ts +52 -0
- package/src/renderers/electrobun/bun/desktop/macos-objc.ts +52 -0
- package/src/renderers/electrobun/bun/desktop/plugin-state.ts +90 -0
- package/src/renderers/electrobun/bun/desktop/relaunch.ts +97 -0
- package/src/renderers/electrobun/bun/desktop/rpc-registry.ts +43 -0
- package/src/renderers/electrobun/bun/desktop/state-broadcaster.ts +119 -0
- package/src/renderers/electrobun/bun/desktop/update.ts +722 -0
- package/src/renderers/electrobun/bun/desktop/view-ids.ts +52 -0
- package/src/renderers/electrobun/bun/desktop/workspace/index.ts +256 -0
- package/src/renderers/electrobun/bun/desktop/workspace/requests.ts +74 -0
- package/src/renderers/electrobun/bun/external-plugins.ts +242 -0
- package/src/renderers/electrobun/bun/index.ts +185 -0
- package/src/renderers/electrobun/bun/menu-event.ts +17 -0
- package/src/renderers/electrobun/bun/tui-entry.ts +18 -0
- package/src/renderers/electrobun/bun/window/boot-frame.ts +67 -0
- package/src/renderers/electrobun/bun/window/controls.ts +69 -0
- package/src/renderers/electrobun/bun/window/create.ts +87 -0
- package/src/renderers/electrobun/bun/window/events.ts +49 -0
- package/src/renderers/electrobun/bun/window/focus.ts +42 -0
- package/src/renderers/electrobun/bun/window/frame.ts +51 -0
- package/src/renderers/electrobun/bun/window/remembered-frame.ts +122 -0
- package/src/renderers/electrobun/bun/window/windows-custom-chrome.ts +43 -0
- package/src/renderers/electrobun/bun/window/windows-icons.ts +55 -0
- package/src/renderers/electrobun/bun/window/windows-native.ts +96 -0
- package/src/renderers/electrobun/shared/app-name.ts +30 -0
- package/src/renderers/electrobun/shared/boot-frame.ts +7 -0
- package/src/renderers/electrobun/shared/protocol.ts +372 -0
- package/src/renderers/electrobun/shared/quote-event-batch.ts +103 -0
- package/src/renderers/electrobun/shared/rpc-codec.ts +94 -0
- package/src/renderers/electrobun/view/app-badge-host.ts +17 -0
- package/src/renderers/electrobun/view/app-services.ts +38 -0
- package/src/renderers/electrobun/view/backend-rpc.ts +235 -0
- package/src/renderers/electrobun/view/broker-remote-client.ts +157 -0
- package/src/renderers/electrobun/view/capability-stream-client.ts +31 -0
- package/src/renderers/electrobun/view/capability-subscription.ts +50 -0
- package/src/renderers/electrobun/view/cli-pane-shot-entry.tsx +546 -0
- package/src/renderers/electrobun/view/cli-pane-shot-frame.tsx +179 -0
- package/src/renderers/electrobun/view/cli-pane-shot-health.ts +15 -0
- package/src/renderers/electrobun/view/config-host.ts +38 -0
- package/src/renderers/electrobun/view/context-menu.ts +147 -0
- package/src/renderers/electrobun/view/desktop/window/bridge.ts +68 -0
- package/src/renderers/electrobun/view/desktop/window/snapshot.ts +60 -0
- package/src/renderers/electrobun/view/external-plugins.ts +88 -0
- package/src/renderers/electrobun/view/fatal-screen.tsx +76 -0
- package/src/renderers/electrobun/view/host/native.ts +33 -0
- package/src/renderers/electrobun/view/host/window-move.ts +28 -0
- package/src/renderers/electrobun/view/http-fetch.ts +199 -0
- package/src/renderers/electrobun/view/main.tsx +309 -0
- package/src/renderers/electrobun/view/native-stubs/backend-rpc.ts +34 -0
- package/src/renderers/electrobun/view/news-source.ts +46 -0
- package/src/renderers/electrobun/view/remote/asset-data-client.ts +156 -0
- package/src/renderers/electrobun/view/remote/backend-quote-subscription.ts +127 -0
- package/src/renderers/electrobun/view/remote/capability-invoker.ts +57 -0
- package/src/renderers/electrobun/view/remote/connection-health.ts +31 -0
- package/src/renderers/electrobun/view/remote/persistence.ts +149 -0
- package/src/renderers/electrobun/view/remote/quote-subscription-registry.ts +74 -0
- package/src/renderers/electrobun/view/remote/ticker-repository.ts +33 -0
- package/src/renderers/electrobun/view/renderer-window-error.ts +18 -0
- package/src/renderers/electrobun/view/rpc-timeout.ts +70 -0
- package/src/renderers/electrobun/view/screenshot-watermark.ts +105 -0
- package/src/renderers/electrobun/view/ui-host.tsx +80 -0
- package/src/renderers/electrobun/view/update-host.ts +62 -0
- package/src/renderers/electrobun/view/view-ids.ts +85 -0
- package/src/renderers/electrobun/view/window-fullscreen.ts +57 -0
- package/src/renderers/opentui/browser-open.ts +88 -0
- package/src/renderers/opentui/chart-surface.tsx +152 -0
- package/src/renderers/opentui/dialog-host.tsx +229 -0
- package/src/renderers/opentui/frame-capture.ts +33 -0
- package/src/renderers/opentui/host.tsx +280 -0
- package/src/renderers/opentui/image/loader.ts +116 -0
- package/src/renderers/opentui/image/surface.tsx +107 -0
- package/src/renderers/opentui/input-host.tsx +41 -0
- package/src/renderers/opentui/interaction-performance.ts +214 -0
- package/src/renderers/opentui/kitty-services.ts +15 -0
- package/src/renderers/opentui/native-smoke.ts +10 -0
- package/src/renderers/opentui/native-surface.ts +176 -0
- package/src/renderers/opentui/pane-image/glyphs-license.txt +107 -0
- package/src/renderers/opentui/pane-image/glyphs.json +1 -0
- package/src/renderers/opentui/pane-image/index.ts +108 -0
- package/src/renderers/opentui/pane-image/raster.ts +428 -0
- package/src/renderers/opentui/render-lib.ts +253 -0
- package/src/renderers/opentui/render-timing-smoke.ts +20 -0
- package/src/renderers/opentui/scrollbox-layout.ts +35 -0
- package/src/renderers/opentui/start.tsx +191 -0
- package/src/renderers/opentui/terminal-input-reset.ts +25 -0
- package/src/renderers/opentui/terminal-media.ts +234 -0
- package/src/renderers/opentui/test-utils.tsx +310 -0
- package/src/renderers/opentui/toast-host.tsx +129 -0
- package/src/renderers/opentui/ui-host.tsx +271 -0
- package/src/renderers/share/chart.ts +74 -0
- package/src/renderers/share/layout-view.tsx +133 -0
- package/src/renderers/share/main.tsx +110 -0
- package/src/renderers/share/styles.css +83 -0
- package/src/renderers/share/view.tsx +159 -0
- package/src/series/capability.ts +76 -0
- package/src/series/csv.ts +160 -0
- package/src/series/files.ts +113 -0
- package/src/series/registry.ts +225 -0
- package/src/series/resolve.ts +227 -0
- package/src/series/standalone.ts +77 -0
- package/src/series/types.ts +220 -0
- package/src/series/validate.ts +216 -0
- package/src/shares/api.ts +150 -0
- package/src/shares/bug-report-dialog.tsx +162 -0
- package/src/shares/bug-report-flow.tsx +81 -0
- package/src/shares/bug-report.ts +42 -0
- package/src/shares/capture-flow.ts +20 -0
- package/src/shares/capture-preview.tsx +129 -0
- package/src/shares/chat.ts +23 -0
- package/src/shares/flow.tsx +98 -0
- package/src/shares/location.ts +40 -0
- package/src/shares/open.ts +26 -0
- package/src/shares/pane-image.ts +166 -0
- package/src/shares/pane.ts +60 -0
- package/src/shares/payload.ts +206 -0
- package/src/shares/personal-pane.ts +86 -0
- package/src/shares/portable-layout.ts +734 -0
- package/src/shares/prepare.ts +20 -0
- package/src/shares/ready.ts +42 -0
- package/src/shares/test-harness.ts +62 -0
- package/src/sources/gloomberb-cloud/batched-lookups.ts +73 -0
- package/src/sources/gloomberb-cloud/fred-series.ts +202 -0
- package/src/sources/gloomberb-cloud/index.ts +987 -0
- package/src/sources/gloomberb-cloud/news.ts +210 -0
- package/src/sources/gloomberb-cloud/normalizers.ts +464 -0
- package/src/sources/gloomberb-cloud/perpetuals.ts +316 -0
- package/src/sources/history-coverage.ts +56 -0
- package/src/sources/history-omitted.ts +34 -0
- package/src/sources/history-result.ts +88 -0
- package/src/sources/history-retention.ts +177 -0
- package/src/sources/listing-symbols.ts +206 -0
- package/src/sources/listing-target.ts +45 -0
- package/src/sources/provider-errors.ts +170 -0
- package/src/sources/provider-router/batches.ts +233 -0
- package/src/sources/provider-router/brokers.ts +104 -0
- package/src/sources/provider-router/cache.ts +229 -0
- package/src/sources/provider-router/cached-routes.ts +261 -0
- package/src/sources/provider-router/connection-health.ts +48 -0
- package/src/sources/provider-router/financial-routes.ts +383 -0
- package/src/sources/provider-router/financials.ts +627 -0
- package/src/sources/provider-router/history.ts +973 -0
- package/src/sources/provider-router/index.ts +713 -0
- package/src/sources/provider-router/news.ts +51 -0
- package/src/sources/provider-router/primary.ts +228 -0
- package/src/sources/provider-router/quote-route.ts +70 -0
- package/src/sources/provider-router/realtime-access.ts +64 -0
- package/src/sources/provider-router/route-types.ts +34 -0
- package/src/sources/provider-router/routing.ts +44 -0
- package/src/sources/provider-router/search.ts +272 -0
- package/src/sources/provider-router/sources.ts +55 -0
- package/src/sources/provider-router/statement-history.ts +15 -0
- package/src/sources/provider-router/streaming.ts +359 -0
- package/src/sources/provider-router/supplemental.ts +53 -0
- package/src/sources/provider-router/test-support.ts +47 -0
- package/src/sources/sec-edgar/acceptance-time.ts +11 -0
- package/src/sources/sec-edgar/content.ts +207 -0
- package/src/sources/sec-edgar/fourth-quarter.ts +179 -0
- package/src/sources/sec-edgar/identity.ts +36 -0
- package/src/sources/sec-edgar.ts +890 -0
- package/src/sources/sec-registrant.ts +75 -0
- package/src/state/app/activity.ts +216 -0
- package/src/state/app/bootstrap.ts +418 -0
- package/src/state/app/context/index.tsx +656 -0
- package/src/state/app/input-capture.ts +12 -0
- package/src/state/app/tab-cursor.ts +222 -0
- package/src/state/config-save-scheduler.ts +38 -0
- package/src/state/hooks/inline-ticker-failures.ts +100 -0
- package/src/state/hooks/inline-tickers.ts +545 -0
- package/src/state/hooks/live-streaming.ts +60 -0
- package/src/state/hooks/live-ticker-financials.ts +171 -0
- package/src/state/hooks/pane-ticker.ts +58 -0
- package/src/state/hooks/quote-streaming.ts +326 -0
- package/src/state/hooks/session-snapshot.ts +101 -0
- package/src/state/pane-scroll-registry.tsx +299 -0
- package/src/state/pane-table-export-registry.ts +50 -0
- package/src/state/persist-scheduler.ts +123 -0
- package/src/state/ticker-cleanup.ts +50 -0
- package/src/state/ticker-refresh-queue.ts +89 -0
- package/src/sync/auth-transition.ts +32 -0
- package/src/sync/baseline.ts +43 -0
- package/src/sync/controller.ts +575 -0
- package/src/sync/core-contributors.ts +1550 -0
- package/src/sync/local-only.ts +121 -0
- package/src/sync/profile-analytics.ts +42 -0
- package/src/sync/react.ts +89 -0
- package/src/sync/types.ts +142 -0
- package/src/team/collections-sync.ts +235 -0
- package/src/team/collections.ts +369 -0
- package/src/team/model.ts +210 -0
- package/src/team/pane-request.ts +30 -0
- package/src/team/store.ts +324 -0
- package/src/telemetry/attention-counts.ts +170 -0
- package/src/telemetry/benign-window-error.ts +7 -0
- package/src/telemetry/crash-reports-dom.ts +79 -0
- package/src/telemetry/crash-reports-node.ts +173 -0
- package/src/telemetry/crash-reports.ts +373 -0
- package/src/telemetry/live-config.ts +26 -0
- package/src/telemetry/stall-reports-dom.ts +38 -0
- package/src/telemetry/stall-reports-node.ts +75 -0
- package/src/telemetry/stall-reports.ts +214 -0
- package/src/telemetry/update-failures-node.ts +59 -0
- package/src/telemetry/update-failures.ts +307 -0
- package/src/telemetry/usage-counts-dom.ts +22 -0
- package/src/telemetry/usage-counts.ts +393 -0
- package/src/test-support/app-store.ts +21 -0
- package/src/test-support/broker.ts +81 -0
- package/src/test-support/builtin-panes.ts +31 -0
- package/src/test-support/cli-context.ts +37 -0
- package/src/test-support/cloud-api.ts +85 -0
- package/src/test-support/config-store.ts +31 -0
- package/src/test-support/console.ts +40 -0
- package/src/test-support/daily-nav.ts +25 -0
- package/src/test-support/data-provider.ts +85 -0
- package/src/test-support/headless.ts +32 -0
- package/src/test-support/margin-account.ts +108 -0
- package/src/test-support/market-session.ts +12 -0
- package/src/test-support/moved-symbols.ts +64 -0
- package/src/test-support/network-guard.ts +35 -0
- package/src/test-support/news.ts +21 -0
- package/src/test-support/pane.tsx +72 -0
- package/src/test-support/plugin-persistence.ts +112 -0
- package/src/test-support/plugin-runtime.ts +145 -0
- package/src/test-support/preload.ts +14 -0
- package/src/test-support/quote-store.ts +49 -0
- package/src/test-support/renderer-host.ts +10 -0
- package/src/test-support/rpc-loopback.ts +26 -0
- package/src/test-support/shell-pane-keys.tsx +36 -0
- package/src/test-support/temp-db.ts +19 -0
- package/src/test-support/ticker.ts +15 -0
- package/src/test-support/time-series.ts +27 -0
- package/src/theme/color-utils.ts +126 -0
- package/src/theme/colors.ts +311 -0
- package/src/theme/font-scale.ts +71 -0
- package/src/theme/heat-colors.ts +455 -0
- package/src/theme/series-colors.ts +46 -0
- package/src/theme/theme-context.tsx +44 -0
- package/src/theme/themes.ts +822 -0
- package/src/theme/ui-tokens.ts +107 -0
- package/src/tickers/batched-lookups.ts +186 -0
- package/src/tickers/company-name-listing.ts +276 -0
- package/src/tickers/company-name.ts +231 -0
- package/src/tickers/index-roots.ts +47 -0
- package/src/tickers/instrument-coverage.ts +112 -0
- package/src/tickers/instrument-kind.ts +165 -0
- package/src/tickers/instrument-label.ts +15 -0
- package/src/tickers/list.ts +36 -0
- package/src/tickers/listing-fate.ts +331 -0
- package/src/tickers/listing-name.ts +34 -0
- package/src/tickers/listing-venues.ts +208 -0
- package/src/tickers/metadata.ts +74 -0
- package/src/tickers/open-target.ts +183 -0
- package/src/tickers/perpetual-listing.ts +154 -0
- package/src/tickers/prediction-listing.ts +26 -0
- package/src/tickers/search/asset-classes.ts +106 -0
- package/src/tickers/search/bare-symbol.ts +36 -0
- package/src/tickers/search/home-listing.ts +75 -0
- package/src/tickers/search/identity.ts +19 -0
- package/src/tickers/search/index.ts +977 -0
- package/src/tickers/search/ranking.ts +1002 -0
- package/src/tickers/search/result.ts +27 -0
- package/src/tickers/search/types.ts +63 -0
- package/src/tickers/search/upsert.ts +156 -0
- package/src/tickers/selection.ts +21 -0
- package/src/tickers/starter-symbols.ts +8 -0
- package/src/tickers/terminal-codes.ts +474 -0
- package/src/tickers/ticker-changes.ts +301 -0
- package/src/tickers/tokenizer.ts +37 -0
- package/src/tickers/us-listing.ts +35 -0
- package/src/time-series/alignment.ts +173 -0
- package/src/time-series/bar-aggregation.ts +243 -0
- package/src/time-series/bar-spacing.ts +19 -0
- package/src/time-series/base-series.ts +315 -0
- package/src/time-series/chart-bounds.ts +349 -0
- package/src/time-series/chart-data.ts +329 -0
- package/src/time-series/chart-seed.ts +142 -0
- package/src/time-series/daily-valuation.ts +62 -0
- package/src/time-series/date-window.ts +41 -0
- package/src/time-series/economic.ts +106 -0
- package/src/time-series/field-catalog.ts +318 -0
- package/src/time-series/filed-trailing-eps.ts +197 -0
- package/src/time-series/financial-period-coverage.ts +59 -0
- package/src/time-series/forward-valuation.ts +285 -0
- package/src/time-series/fundamentals.ts +1275 -0
- package/src/time-series/history-acquisition.ts +499 -0
- package/src/time-series/history-quality.ts +68 -0
- package/src/time-series/history-window.ts +21 -0
- package/src/time-series/hooks.ts +88 -0
- package/src/time-series/ice-credit.ts +57 -0
- package/src/time-series/leverage.ts +100 -0
- package/src/time-series/live-bars.ts +428 -0
- package/src/time-series/live-quotes.ts +234 -0
- package/src/time-series/market-resolution.ts +55 -0
- package/src/time-series/market.ts +177 -0
- package/src/time-series/parsed-history-cache.ts +79 -0
- package/src/time-series/price-comparison.ts +346 -0
- package/src/time-series/price-units.ts +139 -0
- package/src/time-series/range.ts +29 -0
- package/src/time-series/reporting-currency.ts +37 -0
- package/src/time-series/reporting.ts +134 -0
- package/src/time-series/resolution.ts +554 -0
- package/src/time-series/resolve-context.ts +163 -0
- package/src/time-series/resolve.ts +1190 -0
- package/src/time-series/series-name.ts +38 -0
- package/src/time-series/series-presentation.ts +242 -0
- package/src/time-series/session-bar.ts +149 -0
- package/src/time-series/spec.ts +558 -0
- package/src/time-series/studies.ts +1628 -0
- package/src/time-series/tail-reconcile.ts +121 -0
- package/src/time-series/total-return.ts +160 -0
- package/src/time-series/trader-studies.ts +188 -0
- package/src/time-series/transforms.ts +173 -0
- package/src/time-series/types.ts +346 -0
- package/src/time-series/use-chart-resolution.ts +549 -0
- package/src/time-series/valuation-currency.ts +48 -0
- package/src/time-series/valuation-price.ts +81 -0
- package/src/time-series/valuation-releases.ts +39 -0
- package/src/types/broker.ts +237 -0
- package/src/types/capability-route-source.ts +25 -0
- package/src/types/config.ts +1046 -0
- package/src/types/context-menu.ts +101 -0
- package/src/types/data-provider.ts +355 -0
- package/src/types/desktop-deeplink.ts +8 -0
- package/src/types/desktop-menu.ts +16 -0
- package/src/types/desktop-window.ts +39 -0
- package/src/types/exchange-rate.ts +19 -0
- package/src/types/financials.ts +1108 -0
- package/src/types/headless.ts +782 -0
- package/src/types/instrument.ts +90 -0
- package/src/types/issuer-listings.ts +28 -0
- package/src/types/news-source.ts +9 -0
- package/src/types/persistence.ts +22 -0
- package/src/types/plugin.ts +1160 -0
- package/src/types/price-history.ts +52 -0
- package/src/types/ticker-changes.ts +45 -0
- package/src/types/ticker.ts +126 -0
- package/src/types/trading.ts +253 -0
- package/src/ui/ascii-font.ts +97 -0
- package/src/ui/context-menu.tsx +481 -0
- package/src/ui/dialog-bridge.tsx +50 -0
- package/src/ui/dialog-context.ts +24 -0
- package/src/ui/dialog-stack.ts +126 -0
- package/src/ui/dialog.tsx +98 -0
- package/src/ui/host.tsx +830 -0
- package/src/ui/index.tsx +313 -0
- package/src/ui/live-resize.ts +91 -0
- package/src/ui/live-stretch.ts +153 -0
- package/src/ui/measured-cells.ts +64 -0
- package/src/ui/pointer-drag.ts +12 -0
- package/src/ui/qr.ts +84 -0
- package/src/ui/resize-settle.ts +128 -0
- package/src/ui/scroll-box-axis.ts +26 -0
- package/src/ui/sticky-scroll.ts +7 -0
- package/src/ui/toast.tsx +147 -0
- package/src/updater/channel.ts +51 -0
- package/src/updater/command-names.ts +180 -0
- package/src/updater/failure.ts +166 -0
- package/src/updater/github-releases.ts +142 -0
- package/src/updater/index.ts +677 -0
- package/src/utils/asset-category.ts +20 -0
- package/src/utils/async-deadline.ts +81 -0
- package/src/utils/back-navigation.ts +52 -0
- package/src/utils/base-currency.ts +108 -0
- package/src/utils/basis-points.ts +17 -0
- package/src/utils/broker-instances.ts +47 -0
- package/src/utils/calendar-date.ts +163 -0
- package/src/utils/cash-runway.ts +241 -0
- package/src/utils/central-banks.ts +118 -0
- package/src/utils/cli-output.ts +687 -0
- package/src/utils/concurrency.ts +25 -0
- package/src/utils/contract-month.ts +16 -0
- package/src/utils/crypto-pair.ts +163 -0
- package/src/utils/csv.ts +54 -0
- package/src/utils/currency-names.ts +128 -0
- package/src/utils/currency-pair.ts +112 -0
- package/src/utils/currency-units.ts +255 -0
- package/src/utils/datetime-format.ts +174 -0
- package/src/utils/debug-log.ts +201 -0
- package/src/utils/decimal-comma.ts +238 -0
- package/src/utils/declared-dividends.ts +39 -0
- package/src/utils/depositary-receipt.ts +70 -0
- package/src/utils/display-number.ts +63 -0
- package/src/utils/dividend-cash.ts +48 -0
- package/src/utils/dom-screenshot-css.ts +265 -0
- package/src/utils/dom-screenshot-rasters.ts +278 -0
- package/src/utils/dom-screenshot.ts +860 -0
- package/src/utils/double-escape-close.ts +82 -0
- package/src/utils/errors.ts +4 -0
- package/src/utils/exchange-announcements.ts +71 -0
- package/src/utils/exchange-notation.generated.ts +360 -0
- package/src/utils/exchange-rate-snapshot.ts +82 -0
- package/src/utils/exchanges.ts +214 -0
- package/src/utils/external-url.ts +24 -0
- package/src/utils/financial-statements.ts +342 -0
- package/src/utils/fire-and-forget.ts +24 -0
- package/src/utils/fiscal-period.ts +47 -0
- package/src/utils/format.ts +446 -0
- package/src/utils/forward-dividend.ts +218 -0
- package/src/utils/fundamentals.ts +290 -0
- package/src/utils/futures-generic.ts +221 -0
- package/src/utils/fuzzy-search.ts +105 -0
- package/src/utils/fx-market-hours.ts +118 -0
- package/src/utils/fx-status.ts +47 -0
- package/src/utils/guards.ts +62 -0
- package/src/utils/hash.ts +23 -0
- package/src/utils/html-entities.ts +45 -0
- package/src/utils/http-proxy-response.ts +257 -0
- package/src/utils/http-transport.ts +31 -0
- package/src/utils/income-statement.ts +46 -0
- package/src/utils/inline-content-tokenizer.ts +116 -0
- package/src/utils/instrument-identity.ts +72 -0
- package/src/utils/keyboard.ts +31 -0
- package/src/utils/latest-financial-period.ts +34 -0
- package/src/utils/link-tokenizer.ts +93 -0
- package/src/utils/linux-libc.ts +54 -0
- package/src/utils/local-utc-offset.ts +39 -0
- package/src/utils/log-failure.ts +31 -0
- package/src/utils/main-thread-stall.ts +97 -0
- package/src/utils/markdown.ts +180 -0
- package/src/utils/market-capitalization.ts +207 -0
- package/src/utils/math.ts +12 -0
- package/src/utils/max-drawdown.ts +64 -0
- package/src/utils/network-failure.ts +86 -0
- package/src/utils/object-version.ts +17 -0
- package/src/utils/one-shot.ts +73 -0
- package/src/utils/option-expiry.ts +321 -0
- package/src/utils/options.ts +170 -0
- package/src/utils/perf-marks.ts +96 -0
- package/src/utils/platform.ts +34 -0
- package/src/utils/plugin-proxy-hosts.json +23 -0
- package/src/utils/plugin-proxy-hosts.ts +28 -0
- package/src/utils/price-earnings.ts +86 -0
- package/src/utils/price-history-integrity.ts +127 -0
- package/src/utils/price-history.ts +534 -0
- package/src/utils/price-window.ts +131 -0
- package/src/utils/release-date.ts +47 -0
- package/src/utils/reported-money.ts +35 -0
- package/src/utils/rpc-timeout-error.ts +31 -0
- package/src/utils/save-text-file.ts +36 -0
- package/src/utils/screenshot-watermark.ts +27 -0
- package/src/utils/search-focus-navigation.ts +24 -0
- package/src/utils/sec-eps-basis.ts +294 -0
- package/src/utils/sec-filings.ts +245 -0
- package/src/utils/sec.ts +258 -0
- package/src/utils/selection-clipboard.ts +99 -0
- package/src/utils/semver.ts +108 -0
- package/src/utils/shell-word.ts +8 -0
- package/src/utils/shortcut-labels.ts +42 -0
- package/src/utils/slugify.ts +4 -0
- package/src/utils/sort-values.ts +78 -0
- package/src/utils/statement-gaps.ts +94 -0
- package/src/utils/text-wrap.ts +107 -0
- package/src/utils/throttled-fetch.ts +253 -0
- package/src/utils/timestamp.ts +54 -0
- package/src/utils/trailing-dividend.ts +179 -0
- package/src/utils/trailing-eps.ts +67 -0
- package/src/utils/typed-text.ts +21 -0
- package/src/utils/typo-distance.ts +22 -0
- package/src/utils/url.ts +12 -0
- package/src/utils/utc-time.ts +183 -0
- package/src/utils/zoned-date-time.ts +146 -0
- package/src/version.ts +9 -0
|
@@ -0,0 +1,1134 @@
|
|
|
1
|
+
import { closeBasis, isDailyMetric, isRelativeMetric, metricDescription, metricName, metricReadingText, validMetricRule } from "./metric-model";
|
|
2
|
+
import { logFailure } from "../../../utils/log-failure";
|
|
3
|
+
import { benchmarkKey, parseMetricAlert, type MetricAlertInput } from "./metric-command";
|
|
4
|
+
import { firstDailyCheck, metricAvailabilityError, metricReadings } from "./metric-data";
|
|
5
|
+
import { ALERT_ADD_FORMS, ALERT_KINDS_TEXT, parseRuleAddArgs, RULE_US_DATA, ruleDelivery, type RuleAddRequest } from "./cli-forms";
|
|
6
|
+
import { alertChangeEntry, appendAlertLog, type AlertLogAction } from "./fired-log";
|
|
7
|
+
import { alertLogRule } from "./alert-log";
|
|
8
|
+
import { alertListing, alertReadingAt, alertReadingText, isoUtc, listingWithCurrency, NOT_CHECKED_YET } from "./format";
|
|
9
|
+
import { isQuoteStaleForCurrentSession } from "../../../market-data/quotes/freshness";
|
|
10
|
+
import { quoteAlertFields } from "./quotes";
|
|
11
|
+
import { createEventAlert } from "./events";
|
|
12
|
+
import { isResearchAlertKind, readResearchRule } from "./research-rules";
|
|
13
|
+
import { withConfigData, withMarketData } from "../../../cli/scoped-context";
|
|
14
|
+
import { CLI_COMMAND_GROUPS } from "../../../cli/help";
|
|
15
|
+
import { dryRunNote } from "../../../cli/helpers";
|
|
16
|
+
import { requireArg, takeOption } from "../../../cli/commands/command-utils";
|
|
17
|
+
import { requireQuotedListing } from "../../../cli/quote-answer";
|
|
18
|
+
import { coinListingNotes, EXCHANGE_OPTION, listingReadNotes, requireListingArg, usListingsOnlyMessage } from "../../../cli/listing-arg";
|
|
19
|
+
import { saveConfig } from "../../../data/config/store";
|
|
20
|
+
import { resumeStateKey } from "../../registry/plugin-state";
|
|
21
|
+
import type { CliCommandDef } from "../../../types/plugin";
|
|
22
|
+
import type { Quote } from "../../../types/financials";
|
|
23
|
+
import { getActiveQuoteDisplay } from "../../../market-data/market/status";
|
|
24
|
+
import { cliStyles } from "../../../utils/cli-output";
|
|
25
|
+
import { canonicalExchange, isUsListingExchange, parsePublicTickerKey } from "../../../utils/exchanges";
|
|
26
|
+
import { notATickerSymbol } from "../../../sources/provider-errors";
|
|
27
|
+
import { meantThousandsDot, parsePastedNumber, thousandsDotReadings, type ThousandsDotReadings } from "../../../utils/decimal-comma";
|
|
28
|
+
import { newYorkToday } from "../earnings/board-model";
|
|
29
|
+
import { fetchEconCalendarFrom } from "../econ/calendar-source";
|
|
30
|
+
import { COUNTRY_FILTER_HINT, dateKey, loadCalendar, parseCountryFilter, type CountryFilter } from "../econ/calendar-model";
|
|
31
|
+
import { isAllDayEvent, type EconEvent } from "../econ/types";
|
|
32
|
+
import {
|
|
33
|
+
calendarEventLabel,
|
|
34
|
+
calendarNameWords,
|
|
35
|
+
expectsFigures,
|
|
36
|
+
macroEventNamed,
|
|
37
|
+
matchCalendarEvent,
|
|
38
|
+
releaseInstant,
|
|
39
|
+
releaseRenameNote,
|
|
40
|
+
releaseRowOn,
|
|
41
|
+
type CalendarEventChoice,
|
|
42
|
+
type ReleaseRename,
|
|
43
|
+
} from "./calendar-events";
|
|
44
|
+
import { createAlert, rearmAlert, sameLevelRule } from "./alert-engine";
|
|
45
|
+
import { ALERTS_PLUGIN_ID } from "./constants";
|
|
46
|
+
import { MAX_EVENT_ALERTS, eventAlertTarget, toggleEventAlert, writeEventAlertStores, type EventAlertRule } from "./events";
|
|
47
|
+
import { alertKindLabel, fetchAlertHistory, ruleStateText, type AlertRuleState } from "./history";
|
|
48
|
+
import { apiClient } from "../../../api-client";
|
|
49
|
+
import { IV_LEVEL_CHECKS_KEY, ivLevelCheckText, readIvLevelChecks, rearmIvLevelAlert, type IvLevelCheck } from "./iv-level";
|
|
50
|
+
import { parseAlertPrice, readAlertPrice } from "./price";
|
|
51
|
+
import { farTargetMessage } from "./quotes";
|
|
52
|
+
import { MACRO_EVENT_NAMES, createResearchAlert, formatPremium, ivLevelUnitError, parseAmount, parseIvLevel } from "./research-builder";
|
|
53
|
+
import { IV_LEVEL_RANGES, MAX_LEAD_DAYS, type IvLevelMetric, type MacroAlertEvent } from "./research-rules";
|
|
54
|
+
import {
|
|
55
|
+
createScheduledAlert,
|
|
56
|
+
eventDateUnavailableMessage,
|
|
57
|
+
followsRelease,
|
|
58
|
+
leadStartDate,
|
|
59
|
+
lookupScheduledDates,
|
|
60
|
+
noUpcomingEventMessage,
|
|
61
|
+
parseLeadDays,
|
|
62
|
+
parseMacroEventName,
|
|
63
|
+
readScheduledRule,
|
|
64
|
+
rearmScheduledAlert,
|
|
65
|
+
scheduledAlertStatus,
|
|
66
|
+
scheduledEventName,
|
|
67
|
+
scheduledPhase,
|
|
68
|
+
scheduledTargetKey,
|
|
69
|
+
scheduledToday,
|
|
70
|
+
scheduledTriggerText,
|
|
71
|
+
type ScheduledDateLookup,
|
|
72
|
+
type ScheduledEventSources,
|
|
73
|
+
type ScheduledEventTarget,
|
|
74
|
+
} from "./scheduled";
|
|
75
|
+
import { scheduledEventSources } from "./scheduled-sources";
|
|
76
|
+
import { readAlertStores, writeLevelAlertStores } from "./storage";
|
|
77
|
+
import type { AlertCondition, AlertRule } from "./types";
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* What delivers a price alert, as docs/usage.md states it: the app checks it on
|
|
81
|
+
* every tick while it runs. Signed in with Cloud sync on, Gloom Cloud also
|
|
82
|
+
* pushes the trigger to a registered phone, and emails it once no app has
|
|
83
|
+
* synced the account for a while, so a rule the app has synced reaches you
|
|
84
|
+
* with the app closed. Signed out, only the running app does.
|
|
85
|
+
*/
|
|
86
|
+
const PRICE_DELIVERY = "the app alerts while it is running; sign in with Cloud sync for email or phone alerts when it is closed";
|
|
87
|
+
|
|
88
|
+
const ADD_USAGE = `Usage: gloom alerts add <symbol> <above|below|crosses> <price>, or another kind. ${ALERT_KINDS_TEXT}`;
|
|
89
|
+
const DAYS_RULE = `--days takes a whole number of days from 1 to ${MAX_LEAD_DAYS}; without it the alert goes off 1 day before.`;
|
|
90
|
+
/** How a release in the economic calendar is named, CPI and FOMC among them. */
|
|
91
|
+
const CALENDAR_EXAMPLES = `alerts add "NBS Manufacturing PMI" --country CN, alerts add CN PMI, alerts add CPI --days 1`;
|
|
92
|
+
const COUNTRY_RULE = "--country is for an alert on a calendar event, such as alerts add PMI --country CN.";
|
|
93
|
+
const BENCHMARK_RULE = "--benchmark takes the listing an RRG alert is measured against (SPY by default, as in RRG),";
|
|
94
|
+
/** `XLK/SPY`, `XLK:NYSEARCA/SPY`: two listings, or one written with a slash (BRK/B, EUR/USD). */
|
|
95
|
+
const PAIR_SHAPE = /^[^/\s]+\/[^/\s]+$/;
|
|
96
|
+
/** A listing check that hands back its refusal instead of ending the command, so a pair can be read as a ratio. */
|
|
97
|
+
class ListingRefusal extends Error {
|
|
98
|
+
constructor(message: string, readonly details?: string) { super(message); }
|
|
99
|
+
}
|
|
100
|
+
const PROBE = { fail: (message: string, details?: string): never => { throw new ListingRefusal(message, details); } };
|
|
101
|
+
|
|
102
|
+
/** What `alerts add` was asked for, before any listing or date is looked up. */
|
|
103
|
+
export type AlertAddRequest =
|
|
104
|
+
| ({ kind: "metric" } & MetricAlertInput)
|
|
105
|
+
| {
|
|
106
|
+
kind: "price"; symbol: string; condition: AlertCondition; price: number;
|
|
107
|
+
/** A price typed as 81.000, which the last price may show was 81000 with a dot between thousands. */
|
|
108
|
+
thousandsDot?: ThousandsDotReadings & { text: string };
|
|
109
|
+
}
|
|
110
|
+
/** `results`: once the report's actual EPS is out, rather than `leadDays` before the date. */
|
|
111
|
+
| { kind: "earnings"; symbol: string; leadDays: number; results?: true }
|
|
112
|
+
| { kind: "macro"; event: MacroAlertEvent; leadDays: number }
|
|
113
|
+
/** A release in the economic calendar by name, matched against the calendar once it is read; `country` narrows it. */
|
|
114
|
+
| { kind: "release"; query: string; country: CountryFilter | null; leadDays: number }
|
|
115
|
+
/** Gloom Cloud's research rules, as Add Event Alert makes them; a news or flow rule without a symbol follows every name (news) or your lists (flow). */
|
|
116
|
+
| { kind: "news"; symbol: string | null; keyword: string }
|
|
117
|
+
| { kind: "flow"; symbol: string | null; premium: number; side: "any" | "calls" | "puts"; print: "any" | "sweep" | "block" }
|
|
118
|
+
/** The symbol's 30-day ATM IV (`atm`, in %) or 25-delta risk reversal (`rr`, in vol points) above or below a level, checked by the running app. */
|
|
119
|
+
| { kind: "iv_level"; symbol: string; metric: IvLevelMetric; direction: "above" | "below"; level: number }
|
|
120
|
+
/** One OCC contract's IV rising by `points`. */
|
|
121
|
+
| { kind: "iv_spike"; contract: string; points: number }
|
|
122
|
+
/** The rest of what Add Event Alert offers: 52-week range, unusual volume, filings, insiders, short interest and more. */
|
|
123
|
+
| RuleAddRequest;
|
|
124
|
+
|
|
125
|
+
/** The `alerts add` forms Gloom Cloud's research rules take: they follow US listings. */
|
|
126
|
+
type ResearchAddRequest = Extract<AlertAddRequest, { kind: "news" | "flow" | "iv_level" | "iv_spike" }>;
|
|
127
|
+
|
|
128
|
+
const CONDITIONS: readonly AlertCondition[] = ["above", "below", "crosses"];
|
|
129
|
+
|
|
130
|
+
/** The first word of a price typed with a space between thousands and no quotes (`81 000`): one to three digits. */
|
|
131
|
+
const LEADING_GROUP = /^[+-]?\d{1,3}$/;
|
|
132
|
+
|
|
133
|
+
/** `--country` as typed: a country code or the calendar's regions (`CN`, `uk`, `EU`); null when not given. Throws when it names none. */
|
|
134
|
+
function readCountryOption(country: string | null | undefined): CountryFilter | null {
|
|
135
|
+
if (country === undefined) return null;
|
|
136
|
+
if (country === null) throw new Error(`--country takes a two-letter country code, such as --country CN. ${COUNTRY_FILTER_HINT}`);
|
|
137
|
+
const parsed = parseCountryFilter(country);
|
|
138
|
+
if ("error" in parsed) throw new Error(`${parsed.error} ${COUNTRY_FILTER_HINT}`);
|
|
139
|
+
return parsed.filter === "all" ? null : parsed.filter;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* A release named by its words (`NBS PMI`, `Industrial Profits`), a country
|
|
144
|
+
* code first standing for `--country` (`CN PMI`). CPI and FOMC, in the US or
|
|
145
|
+
* with no country, are the macro alerts whose dates come from their own
|
|
146
|
+
* calendars.
|
|
147
|
+
*/
|
|
148
|
+
function releaseRequest(args: readonly string[], country: CountryFilter | null, leadDays: number): AlertAddRequest {
|
|
149
|
+
const words = args.join(" ").trim().split(/\s+/);
|
|
150
|
+
let query = words.join(" ");
|
|
151
|
+
if (!country && words.length >= 2 && /^[a-z]{2}$/i.test(words[0]!)) {
|
|
152
|
+
const parsed = parseCountryFilter(words[0]!);
|
|
153
|
+
if (!("error" in parsed) && parsed.filter !== "all") {
|
|
154
|
+
country = parsed.filter;
|
|
155
|
+
query = words.slice(1).join(" ");
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
const event = parseMacroEventName(query);
|
|
159
|
+
if (event && (!country || country === "US")) return { kind: "macro", event, leadDays };
|
|
160
|
+
return { kind: "release", query, country, leadDays };
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Reads `alerts add` arguments: `<symbol> above 250`, `<symbol> earnings`,
|
|
165
|
+
* `<symbol> earnings results`, or a release in the economic calendar by name
|
|
166
|
+
* (`CPI`, `FOMC`, `NBS PMI`, `CN PMI`), with `--days` (already taken out of
|
|
167
|
+
* `args`, `null` when the flag came without a value) and `--country` for the
|
|
168
|
+
* event forms only, and `--exchange`, which a command to type again keeps.
|
|
169
|
+
* Throws a message that names what the command takes.
|
|
170
|
+
*/
|
|
171
|
+
export function parseAlertAddArgs(
|
|
172
|
+
args: readonly string[],
|
|
173
|
+
days: string | null | undefined,
|
|
174
|
+
exchange?: string | null,
|
|
175
|
+
country?: string | null,
|
|
176
|
+
benchmark?: string | null,
|
|
177
|
+
): AlertAddRequest {
|
|
178
|
+
const [first, second, third, ...rest] = args;
|
|
179
|
+
if (!first) throw new Error(ADD_USAGE);
|
|
180
|
+
const countryFilter = readCountryOption(country);
|
|
181
|
+
if (benchmark === null) throw new Error(`${BENCHMARK_RULE} such as alerts add XLE rrg leading --benchmark QQQ.`);
|
|
182
|
+
const rrgFlag = benchmark !== undefined && second?.toLowerCase() === "rrg";
|
|
183
|
+
const typedVs = /^(vs\.?|versus|against)$/i.test(args[3] ?? "") ? args[4] : undefined;
|
|
184
|
+
if (rrgFlag && typedVs !== undefined) {
|
|
185
|
+
// `vs QQQ --benchmark SMH` names two benchmarks; the same one twice (SPY and SPY:NYSEARCA) is one.
|
|
186
|
+
const [typed, flag] = [typedVs, benchmark].map((text) => parsePublicTickerKey(text.toUpperCase()));
|
|
187
|
+
if (typed!.symbol !== flag!.symbol || (typed!.exchange && flag!.exchange && typed!.exchange !== flag!.exchange)) {
|
|
188
|
+
throw new Error(`An RRG alert names its benchmark once: vs ${typedVs.toUpperCase()} or --benchmark ${benchmark.toUpperCase()}, not both.`);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
const metric = parseMetricAlert(rrgFlag && typedVs === undefined ? [...args, "vs", benchmark].join(" ") : args.join(" "));
|
|
192
|
+
if (benchmark !== undefined && metric?.metric.kind !== "rrg") throw new Error(`${BENCHMARK_RULE} such as alerts add XLE rrg leading --benchmark QQQ; a ratio names both listings, as in alerts add XLK/SPY above 0.25.`);
|
|
193
|
+
if (metric) {
|
|
194
|
+
if (days !== undefined || country !== undefined) throw new Error(`${isRelativeMetric(metric.metric) ? "Relative strength" : "Valuation and daily technical"} alerts take neither --days nor --country.`);
|
|
195
|
+
return { kind: "metric", ...metric };
|
|
196
|
+
}
|
|
197
|
+
const research = parseResearchAddArgs(args) ?? parseRuleAddArgs(args);
|
|
198
|
+
if (research) {
|
|
199
|
+
if (days !== undefined) throw new Error("--days is for earnings and calendar event alerts, not this kind of alert.");
|
|
200
|
+
if (country !== undefined) throw new Error(COUNTRY_RULE);
|
|
201
|
+
return research;
|
|
202
|
+
}
|
|
203
|
+
const leadDays = () => {
|
|
204
|
+
const parsed = days === null ? null : parseLeadDays(days);
|
|
205
|
+
if (parsed == null) throw new Error(DAYS_RULE);
|
|
206
|
+
return parsed;
|
|
207
|
+
};
|
|
208
|
+
if (second === undefined) {
|
|
209
|
+
if (first.toLowerCase() === "earnings") {
|
|
210
|
+
throw new Error("Name the company: gloom alerts add <symbol> earnings, such as alerts add CRWV earnings --days 3.");
|
|
211
|
+
}
|
|
212
|
+
return releaseRequest(args, countryFilter, leadDays());
|
|
213
|
+
}
|
|
214
|
+
if (second.toLowerCase() === "earnings" && country !== undefined) throw new Error(COUNTRY_RULE);
|
|
215
|
+
if (second.toLowerCase() === "earnings") {
|
|
216
|
+
if (third?.toLowerCase() === "results" && rest.length === 0) {
|
|
217
|
+
if (days !== undefined) throw new Error("An alert for results goes off once they are out and takes no --days.");
|
|
218
|
+
return { kind: "earnings", symbol: first, leadDays: 0, results: true };
|
|
219
|
+
}
|
|
220
|
+
if (third !== undefined) throw new Error(`Earnings alerts take a symbol and --days or results, not "${[third, ...rest].join(" ")}". ${ADD_USAGE}`);
|
|
221
|
+
return { kind: "earnings", symbol: first, leadDays: leadDays() };
|
|
222
|
+
}
|
|
223
|
+
const condition = second.toLowerCase() as AlertCondition;
|
|
224
|
+
if (!CONDITIONS.includes(condition)) {
|
|
225
|
+
// Words with no price after them name a release (CN PMI, Industrial Profits); a price ends a mistyped price alert.
|
|
226
|
+
if (parseAlertPrice(args.at(-1)!).kind === "invalid") return releaseRequest(args, countryFilter, leadDays());
|
|
227
|
+
throw new Error(`Unknown alert "${second}". ${ALERT_KINDS_TEXT}`);
|
|
228
|
+
}
|
|
229
|
+
if (country !== undefined) throw new Error(COUNTRY_RULE);
|
|
230
|
+
if (days !== undefined) throw new Error("--days is for earnings and calendar event alerts, not price alerts.");
|
|
231
|
+
if (third === undefined) throw new Error(ADD_USAGE);
|
|
232
|
+
const retype = (price: number) => retypeCommand(first, condition, price, exchange);
|
|
233
|
+
// `81 000` without quotes arrives as 81 and a stray 000; neither reading is taken for granted.
|
|
234
|
+
const spaced = rest.length > 0 && LEADING_GROUP.test(third) ? parsePastedNumber([third, ...rest].join(" ")) : null;
|
|
235
|
+
if (spaced?.kind === "number") {
|
|
236
|
+
const typed = Number(third);
|
|
237
|
+
throw new Error(`${[third, ...rest].join(" ")} could be ${spaced.value} (thousands) or ${typed} and a stray ${rest.join(" ")}; type ${retype(spaced.value)} or ${retype(typed)}`);
|
|
238
|
+
}
|
|
239
|
+
// A price pasted from a sheet (1.350,5, 1,350.5, 1 350,5) reads as it is written; `1,350` could be either, so it asks.
|
|
240
|
+
const price = readAlertPrice(third);
|
|
241
|
+
if (rest.length > 0) throw new Error(`A price alert takes one price, not "${rest.join(" ")}" after ${third}; type ${retype(price)}`);
|
|
242
|
+
const thousandsDot = thousandsDotReadings(third);
|
|
243
|
+
return { kind: "price", symbol: first, condition, price, ...(thousandsDot ? { thousandsDot: { ...thousandsDot, text: third.trim() } } : {}) };
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
const OCC_CONTRACT = /^(?:O:)?[A-Z.]{1,6}\d{6}[CP]\d{8}$/i;
|
|
247
|
+
const LEVEL_DIRECTIONS = ["above", "below"] as const;
|
|
248
|
+
|
|
249
|
+
/** A level typed for an IV level rule, with its unit or without (`50`, `50%`, `-5.5 pts`), refused with its unit and range when it does not read. */
|
|
250
|
+
function readLevel(metric: IvLevelMetric, typed: string | undefined, symbol: string): number {
|
|
251
|
+
const word = metric === "atm" ? "iv" : "rr";
|
|
252
|
+
const example = metric === "atm" ? `alerts add ${symbol} iv above 50` : `alerts add ${symbol} rr below -5`;
|
|
253
|
+
if (!typed) throw new Error(`Name the level: gloom ${example}.`);
|
|
254
|
+
const unitError = ivLevelUnitError(metric, typed);
|
|
255
|
+
if (unitError) throw new Error(`${unitError}: gloom ${example}.`);
|
|
256
|
+
const level = parseIvLevel(typed);
|
|
257
|
+
const { min, max } = IV_LEVEL_RANGES[metric];
|
|
258
|
+
if (!Number.isFinite(level) || level < min || level > max) {
|
|
259
|
+
throw new Error(metric === "atm"
|
|
260
|
+
? `An ${word} level is the 30-day ATM IV in percent, ${min} to ${max}, not "${typed}": gloom ${example}.`
|
|
261
|
+
: `An ${word} level is the 30-day 25-delta risk reversal in vol points, ${min} to ${max}, not "${typed}": gloom ${example}.`);
|
|
262
|
+
}
|
|
263
|
+
return level;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* The research forms of `alerts add`, the ones Add Event Alert makes: `[symbol] news <keyword>`,
|
|
268
|
+
* `[symbol] flow [premium] [calls|puts] [sweeps|blocks]`, `<symbol> iv|rr <above|below> <level>` and
|
|
269
|
+
* `<OCC contract> iv spike <points>`. Null for any other form. A bare `news` or `flow` with no symbol
|
|
270
|
+
* follows every name or your lists; `NEWS above 10` is still a price alert on a symbol.
|
|
271
|
+
*/
|
|
272
|
+
function parseResearchAddArgs(args: readonly string[]): ResearchAddRequest | null {
|
|
273
|
+
const [first = "", second, third, ...rest] = args;
|
|
274
|
+
const word = (value: string | undefined) => value?.toLowerCase() ?? "";
|
|
275
|
+
const isCondition = (value: string | undefined) => (CONDITIONS as readonly string[]).includes(word(value)) || word(value) === "earnings";
|
|
276
|
+
const lead = word(first);
|
|
277
|
+
const [symbol, kind, tail] = (lead === "news" || lead === "flow") && !isCondition(second)
|
|
278
|
+
? [null, lead, args.slice(1)] as const
|
|
279
|
+
: [first, word(second), args.slice(2)] as const;
|
|
280
|
+
if (kind === "news") {
|
|
281
|
+
const keyword = tail.join(" ").trim();
|
|
282
|
+
if (!keyword) throw new Error(`Name a keyword or phrase: gloom alerts add ${symbol ?? "AAPL"} news buyback, or alerts add news "rate cut" for any company.`);
|
|
283
|
+
return { kind: "news", symbol, keyword };
|
|
284
|
+
}
|
|
285
|
+
if (kind === "flow") {
|
|
286
|
+
let premium = 1_000_000;
|
|
287
|
+
let side: "any" | "calls" | "puts" = "any";
|
|
288
|
+
let print: "any" | "sweep" | "block" = "any";
|
|
289
|
+
for (const token of tail) {
|
|
290
|
+
const lower = token.toLowerCase();
|
|
291
|
+
if (lower === "calls" || lower === "call") side = "calls";
|
|
292
|
+
else if (lower === "puts" || lower === "put") side = "puts";
|
|
293
|
+
else if (lower === "sweeps" || lower === "sweep") print = "sweep";
|
|
294
|
+
else if (lower === "blocks" || lower === "block") print = "block";
|
|
295
|
+
else if (Number.isFinite(parseAmount(token))) premium = parseAmount(token);
|
|
296
|
+
else throw new Error(`A flow alert takes a minimum premium (1m, $250k), calls or puts, and sweeps or blocks, not "${token}".`);
|
|
297
|
+
}
|
|
298
|
+
if (premium < 50_000) throw new Error(`The minimum premium is $50,000, not ${formatPremium(premium)}: Gloom Cloud records no smaller print.`);
|
|
299
|
+
return { kind: "flow", symbol, premium, side, print };
|
|
300
|
+
}
|
|
301
|
+
if (!symbol || (kind !== "iv" && kind !== "rr")) return null;
|
|
302
|
+
if (OCC_CONTRACT.test(symbol)) {
|
|
303
|
+
if (kind !== "iv" || word(third) !== "spike") {
|
|
304
|
+
throw new Error(`An option contract takes an IV spike in vol points: gloom alerts add ${symbol.toUpperCase()} iv spike 5. For a level, name the underlying: alerts add ${symbol.replace(/^O:/i, "").match(/^[A-Z.]+/i)![0]!.toUpperCase()} iv above 50.`);
|
|
305
|
+
}
|
|
306
|
+
// Vol points, with the unit or without it: `5`, `5 pts`.
|
|
307
|
+
const typed = rest.join(" ");
|
|
308
|
+
const value = typed && !/%/.test(typed) ? parseIvLevel(typed) : Number.NaN;
|
|
309
|
+
if (!Number.isFinite(value) || value < 0.1 || value > 100) {
|
|
310
|
+
throw new Error(`An IV spike is a rise of 0.1 to 100 vol points: gloom alerts add ${symbol.toUpperCase()} iv spike 5.`);
|
|
311
|
+
}
|
|
312
|
+
return { kind: "iv_spike", contract: symbol.toUpperCase(), points: value };
|
|
313
|
+
}
|
|
314
|
+
const metric: IvLevelMetric = kind === "iv" ? "atm" : "rr";
|
|
315
|
+
const direction = word(third);
|
|
316
|
+
if (!(LEVEL_DIRECTIONS as readonly string[]).includes(direction)) {
|
|
317
|
+
throw new Error(`${kind === "iv" ? "An iv" : "An rr"} alert takes above or below and a level: gloom alerts add ${symbol} ${kind} ${kind === "iv" ? "above 50" : "below -5"}${kind === "iv" ? ", or iv spike on one OCC contract" : ""}.`);
|
|
318
|
+
}
|
|
319
|
+
// The level, with its unit or without it: `50`, `50%`, `-5.5 pts`.
|
|
320
|
+
return { kind: "iv_level", symbol, metric, direction: direction as "above" | "below", level: readLevel(metric, rest.join(" "), symbol) };
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/** The Add Event Alert form's values for a research request, so the CLI makes the rule the dialog makes. */
|
|
324
|
+
function researchFormValues(request: ResearchAddRequest, exchange: string): { kind: string; values: Record<string, string> } {
|
|
325
|
+
switch (request.kind) {
|
|
326
|
+
case "news": return { kind: "news_keyword", values: { "news_keyword:keyword": request.keyword,
|
|
327
|
+
...request.symbol ? { "news_keyword:symbol": request.symbol, "news_keyword:exchange": exchange } : {} } };
|
|
328
|
+
case "flow": return { kind: "options_flow", values: { "options_flow:threshold": String(request.premium),
|
|
329
|
+
"options_flow:direction": request.side, "options_flow:print": request.print,
|
|
330
|
+
...request.symbol ? { "options_flow:symbol": request.symbol, "options_flow:exchange": exchange } : {} } };
|
|
331
|
+
case "iv_level": return { kind: "iv_level", values: { "iv_level:symbol": request.symbol, "iv_level:exchange": exchange,
|
|
332
|
+
"iv_level:metric": request.metric, "iv_level:direction": request.direction, "iv_level:threshold": String(request.level) } };
|
|
333
|
+
case "iv_spike": return { kind: "iv_spike", values: { "iv_spike:contract": request.contract, "iv_spike:threshold": String(request.points) } };
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
/**
|
|
338
|
+
* Who checks a research rule and how it reaches you, as docs/usage.md states it: an IV level is read by the
|
|
339
|
+
* running app; the rest by Gloom Cloud for a signed-in account with Cloud sync, IV spikes and flow on Pro.
|
|
340
|
+
*/
|
|
341
|
+
function researchDelivery(kind: ResearchAddRequest["kind"]): string {
|
|
342
|
+
if (kind === "iv_level") return "the app checks it every 15 minutes while it is running, on the same option fits as OVDV";
|
|
343
|
+
const plan = kind === "news" ? "" : " on Gloom Pro";
|
|
344
|
+
return `Gloom Cloud checks it for a signed-in account with Cloud sync${plan} and sends it to your phone`;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* The rule Add Event Alert saves for a form `alerts add` named by its words,
|
|
349
|
+
* on the listing `quote` read the symbol as: a US research rule keeps its
|
|
350
|
+
* symbol and venue, hiring and a catalyst's company their listing as typed
|
|
351
|
+
* (ADYEN:AMS).
|
|
352
|
+
*/
|
|
353
|
+
function createFormRule(request: RuleAddRequest, listing: { symbol: string; key: string; exchange: string } | null): EventAlertRule {
|
|
354
|
+
const { event } = request;
|
|
355
|
+
if (!isResearchAlertKind(event)) return createEventAlert(event, listing?.key ?? request.values.value ?? "");
|
|
356
|
+
const values = Object.fromEntries(Object.entries(request.values).map(([key, value]) => [`${event}:${key}`, value]));
|
|
357
|
+
if (listing && request.listing === "any") values[`${event}:symbol`] = listing.key;
|
|
358
|
+
else if (listing) {
|
|
359
|
+
const typed = listing.exchange ? canonicalExchange(listing.exchange) : "";
|
|
360
|
+
values[`${event}:symbol`] = listing.symbol;
|
|
361
|
+
values[`${event}:exchange`] = RESEARCH_EXCHANGES.has(typed) ? typed : "US";
|
|
362
|
+
}
|
|
363
|
+
return createResearchAlert(event, values);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
const isResearchRequest = (request: AlertAddRequest): request is ResearchAddRequest =>
|
|
367
|
+
request.kind === "news" || request.kind === "flow" || request.kind === "iv_level" || request.kind === "iv_spike";
|
|
368
|
+
|
|
369
|
+
/** The US venue a research rule keeps: one typed and known to it, else any US venue. */
|
|
370
|
+
const RESEARCH_EXCHANGES = new Set(["NASDAQ", "NYSE", "AMEX", "ARCA", "BATS", "OTC"]);
|
|
371
|
+
|
|
372
|
+
/** `alerts add` as typed, with another price: what an error tells someone to type. */
|
|
373
|
+
function retypeCommand(symbol: string, condition: AlertCondition, price: number, exchange: string | null | undefined): string {
|
|
374
|
+
return `gloom alerts add ${symbol} ${condition} ${price}${exchange ? ` --exchange ${exchange}` : ""}`;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* The listing's last price, as the alert will check it, for telling 81.000
|
|
379
|
+
* typed for 81000 from 81; null when there is none, and the price is then
|
|
380
|
+
* read as written.
|
|
381
|
+
*/
|
|
382
|
+
function lastPrice(quote: Quote): number | null {
|
|
383
|
+
const price = getActiveQuoteDisplay(quote)?.price ?? quote.price;
|
|
384
|
+
return price != null && Number.isFinite(price) && price !== 0 ? price : null;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* Asks which price `81.000` meant when the last price shows it was a dot
|
|
389
|
+
* between thousands: both readings, and the command to type for each.
|
|
390
|
+
*/
|
|
391
|
+
export function thousandsDotMessage(
|
|
392
|
+
request: Extract<AlertAddRequest, { kind: "price" }>,
|
|
393
|
+
listing: string,
|
|
394
|
+
last: number | null,
|
|
395
|
+
exchange?: string | null,
|
|
396
|
+
): string | null {
|
|
397
|
+
const dot = request.thousandsDot;
|
|
398
|
+
if (!dot || !meantThousandsDot(dot, last)) return null;
|
|
399
|
+
const retype = (price: number) => retypeCommand(request.symbol, request.condition, price, exchange);
|
|
400
|
+
return `${dot.text} could be ${dot.thousands} (thousands) or ${dot.decimal} (decimal point), and ${listing.toUpperCase()} last traded at ${Number(last!.toFixed(2))}; type ${retype(dot.thousands)} or ${retype(dot.decimal)}`;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* What a valuation or daily technical alert read when it was added:
|
|
405
|
+
* "RSI(14) was 61.23 on the 2026-10-26 close", "50-day MA was 186.32 against
|
|
406
|
+
* the 200-day MA at 180.11 on the 2026-10-26 close", "P/E (TTM) is 24.10".
|
|
407
|
+
*/
|
|
408
|
+
function metricReadingNote(alert: AlertRule): string {
|
|
409
|
+
const metric = alert.metric!;
|
|
410
|
+
// "Ratio to SPY was 0.2434 on the 2026-10-26 close", "RRG vs SPY was Leading (strength 110.06, momentum 108.88) on the 2026-10-23 weekly close".
|
|
411
|
+
if (isRelativeMetric(metric)) {
|
|
412
|
+
const reading = metricReadingText(metric, { value: alert.lastCheckedPrice ?? Number.NaN, target: alert.lastCheckedTarget ?? Number.NaN });
|
|
413
|
+
return `${metricName(metric)} was ${reading} on the ${alert.lastDailyClose} ${closeBasis(metric) === "weekly close" ? "weekly close" : "close"}`;
|
|
414
|
+
}
|
|
415
|
+
const value = (alert.lastCheckedPrice ?? Number.NaN).toFixed(2);
|
|
416
|
+
if (!isDailyMetric(metric)) return `${metricName(metric)} is ${value}`;
|
|
417
|
+
const against = metric.kind === "ma_cross" ? metric.slowPeriod : metric.kind === "close_ma" ? metric.period : null;
|
|
418
|
+
const target = against != null && alert.lastCheckedTarget != null ? ` against the ${against}-day MA at ${alert.lastCheckedTarget.toFixed(2)}` : "";
|
|
419
|
+
return `${metricName(metric)} was ${value}${target} on the ${alert.lastDailyClose} close`;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/** An event alert still waiting to go off, as `alerts list` says `active`: not paused, and not alerted for its coming event or level. */
|
|
423
|
+
function eventRuleArmed(rule: EventAlertRule, now: number): boolean {
|
|
424
|
+
if (rule.status !== "active") return false;
|
|
425
|
+
const scheduled = readScheduledRule(rule);
|
|
426
|
+
if (!scheduled) return !rule.triggeredAt;
|
|
427
|
+
return scheduledAlertStatus(rule, scheduled.leadDays, scheduledToday(scheduled.target, now), scheduled.trigger) === "active";
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/** One row of `alerts list`: a price alert as stored, or an event alert with its next date. */
|
|
431
|
+
type AlertListRow = Record<string, unknown> & {
|
|
432
|
+
id: string;
|
|
433
|
+
kind: string;
|
|
434
|
+
status: string;
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
function priceRow(alert: AlertRule): AlertListRow {
|
|
438
|
+
return {
|
|
439
|
+
...alert, kind: alert.metric?.kind ?? "price", rule: alert.metric ? metricDescription(alert) : undefined,
|
|
440
|
+
target: alert.exchange ? `${alert.symbol}:${alert.exchange}` : alert.symbol,
|
|
441
|
+
// The listing it is checked on, in its currency, and its last reading in words with when it is from.
|
|
442
|
+
listing: alertListing(alert), currency: alert.lastQuoteCurrency ?? null,
|
|
443
|
+
lastReading: alertReadingText(alert), lastReadingAt: isoUtc(alertReadingAt(alert)) || null,
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
function eventRow(
|
|
448
|
+
rule: EventAlertRule, now: number, eventDate: string | null | undefined, check?: IvLevelCheck, cloud?: CloudRuleStates,
|
|
449
|
+
): AlertListRow {
|
|
450
|
+
const scheduled = readScheduledRule(rule);
|
|
451
|
+
if (!scheduled) {
|
|
452
|
+
const status = rule.status === "active" && rule.triggeredAt ? "triggered" : rule.status;
|
|
453
|
+
// An IV level is read by this app, so its last reading is this device's; Gloom Cloud reads the rest.
|
|
454
|
+
const state = cloud?.states.get(rule.id);
|
|
455
|
+
const reading = rule.kind === "iv_level" ? {
|
|
456
|
+
lastReading: ivLevelCheckText(rule, check),
|
|
457
|
+
lastReadingAt: check?.value != null ? isoUtc(check.quoteAt ? Date.parse(check.quoteAt) : check.checkedAt) || null : null,
|
|
458
|
+
} : state ? {
|
|
459
|
+
lastReading: ruleStateText(state),
|
|
460
|
+
lastReadingAt: state.asOf ? isoUtc(Date.parse(state.asOf)) || null : null,
|
|
461
|
+
} : cloud?.failed ? {} : { lastReading: NOT_CHECKED_YET };
|
|
462
|
+
return { id: rule.id, kind: rule.kind, target: eventAlertTarget(rule), status, createdAt: rule.createdAt,
|
|
463
|
+
listing: eventRuleListing(rule), ...reading,
|
|
464
|
+
...check ? { lastCheck: check } : {}, ...rule.triggeredAt ? { triggeredAt: rule.triggeredAt } : {} };
|
|
465
|
+
}
|
|
466
|
+
const date = eventDate ?? null;
|
|
467
|
+
return {
|
|
468
|
+
id: rule.id,
|
|
469
|
+
kind: rule.kind,
|
|
470
|
+
target: scheduled.target.kind === "earnings" ? scheduled.target.symbol
|
|
471
|
+
: scheduled.target.kind === "release" ? calendarEventLabel(scheduled.target) : scheduled.target.event.toUpperCase(),
|
|
472
|
+
leadDays: scheduled.leadDays,
|
|
473
|
+
when: scheduled.trigger === "results" ? "results" : "before",
|
|
474
|
+
// CPI, FOMC and calendar releases also alert with their figures once they print.
|
|
475
|
+
...followsRelease(scheduled.target) ? { onRelease: true } : {},
|
|
476
|
+
eventDate: date,
|
|
477
|
+
status: scheduledAlertStatus({ ...rule, eventDate: date ?? undefined }, scheduled.leadDays, scheduledToday(scheduled.target, now), scheduled.trigger),
|
|
478
|
+
createdAt: rule.createdAt,
|
|
479
|
+
listing: scheduled.target.kind === "earnings" ? scheduled.target.exchange ? `${scheduled.target.symbol}:${scheduled.target.exchange}` : scheduled.target.symbol : "",
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
/** Gloom Cloud's last reading of each rule it checks, as ALRT's Events tab shows them; `failed` when it could not be asked. */
|
|
484
|
+
interface CloudRuleStates {
|
|
485
|
+
states: Map<string, AlertRuleState>;
|
|
486
|
+
failed: boolean;
|
|
487
|
+
warning?: string;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* Gloom Cloud checks the event rules this app does not, for a signed-in account. With no session nothing has
|
|
492
|
+
* read them, so they are not checked yet; with one, their readings are Cloud's.
|
|
493
|
+
*/
|
|
494
|
+
async function cloudRuleStates(rules: readonly EventAlertRule[]): Promise<CloudRuleStates> {
|
|
495
|
+
const empty = { states: new Map<string, AlertRuleState>(), failed: false };
|
|
496
|
+
if (!apiClient.getSessionToken() || !rules.some((rule) => rule.kind !== "iv_level" && !readScheduledRule(rule))) return empty;
|
|
497
|
+
try {
|
|
498
|
+
const history = await fetchAlertHistory(0);
|
|
499
|
+
return { states: new Map(history.states.map((state) => [state.ruleId, state])), failed: false };
|
|
500
|
+
} catch (error) {
|
|
501
|
+
return { ...empty, failed: true, warning: `Gloom Cloud's readings of event alerts could not be loaded: ${error instanceof Error ? error.message : String(error)}` };
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
/** The listing a research rule follows (AAPL, ADYEN:AMS for a hiring rule); empty for one on no symbol. */
|
|
506
|
+
function eventRuleListing(rule: EventAlertRule): string {
|
|
507
|
+
if (rule.target === "ticker") return rule.value;
|
|
508
|
+
if (!isResearchAlertKind(rule.kind)) return "";
|
|
509
|
+
const config = readResearchRule(rule.kind, rule.value);
|
|
510
|
+
if (!config?.symbol) return "";
|
|
511
|
+
return config.symbol.includes(":") || !config.exchange || config.exchange === "US" ? config.symbol : `${config.symbol}:${config.exchange}`;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
const plural = (count: number, word: string) => `${count} ${word}${count === 1 ? "" : "s"}`;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* One row as text and CSV give it. CSV keeps the columns it has always had in
|
|
518
|
+
* their order, then Created (ISO UTC), the listing, its currency and the last
|
|
519
|
+
* reading, in words and dated.
|
|
520
|
+
*/
|
|
521
|
+
function textRow(row: AlertListRow): Record<string, unknown> {
|
|
522
|
+
const price = row.kind === "price";
|
|
523
|
+
return {
|
|
524
|
+
id: row.id,
|
|
525
|
+
kind: price ? "Price" : alertKindLabel(row.kind),
|
|
526
|
+
target: row.target,
|
|
527
|
+
trigger: row.rule ?? (price
|
|
528
|
+
? `${row.condition} ${row.targetPrice}`
|
|
529
|
+
: typeof row.leadDays === "number"
|
|
530
|
+
? scheduledTriggerText({ leadDays: row.leadDays, trigger: row.when === "results" ? "results" : "date", prints: row.onRelease === true })
|
|
531
|
+
: ""),
|
|
532
|
+
eventDate: typeof row.leadDays === "number" ? row.eventDate ?? "not known" : "",
|
|
533
|
+
status: row.status,
|
|
534
|
+
lastCheckedPrice: row.lastCheckedPrice,
|
|
535
|
+
triggeredAt: row.triggeredAt,
|
|
536
|
+
createdAt: isoUtc(typeof row.createdAt === "number" ? row.createdAt : null),
|
|
537
|
+
listing: row.listing ?? "",
|
|
538
|
+
currency: row.currency ?? "",
|
|
539
|
+
lastReading: row.lastReading ?? "",
|
|
540
|
+
lastReadingAt: row.lastReadingAt ?? "",
|
|
541
|
+
};
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
/** The next event date of each scheduled rule: the saved one while it is still ahead, otherwise looked up. */
|
|
545
|
+
async function listEventDates(
|
|
546
|
+
rules: readonly EventAlertRule[],
|
|
547
|
+
now: number,
|
|
548
|
+
lookup: (targets: ScheduledEventTarget[]) => Promise<Map<string, ScheduledDateLookup>>,
|
|
549
|
+
): Promise<{ dates: Map<string, string | null>; warnings: string[] }> {
|
|
550
|
+
const dates = new Map<string, string | null>();
|
|
551
|
+
const stale: Array<{ rule: EventAlertRule; target: ScheduledEventTarget }> = [];
|
|
552
|
+
for (const rule of rules) {
|
|
553
|
+
const scheduled = readScheduledRule(rule);
|
|
554
|
+
if (!scheduled) continue;
|
|
555
|
+
if (rule.eventDate && rule.eventDate >= scheduledToday(scheduled.target, now)) dates.set(rule.id, rule.eventDate);
|
|
556
|
+
else stale.push({ rule, target: scheduled.target });
|
|
557
|
+
}
|
|
558
|
+
if (stale.length === 0) return { dates, warnings: [] };
|
|
559
|
+
const lookups = await lookup(stale.map((entry) => entry.target));
|
|
560
|
+
const warnings = new Set<string>();
|
|
561
|
+
for (const { rule, target } of stale) {
|
|
562
|
+
const lookup = lookups.get(scheduledTargetKey(target));
|
|
563
|
+
if (lookup && "date" in lookup) dates.set(rule.id, lookup.date);
|
|
564
|
+
else if (lookup) warnings.add(`Next ${scheduledEventName(target)} date unavailable: ${lookup.error}`);
|
|
565
|
+
}
|
|
566
|
+
return { dates, warnings: [...warnings] };
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
/** How far back a release is looked for: a monthly one is named in the calendar a month back before its next date is listed. */
|
|
570
|
+
const CALENDAR_LOOKBACK_DAYS = 40;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* The calendar a release is named from: the stored past five weeks and the
|
|
574
|
+
* listing ahead, or the listing alone from a server that keeps no past.
|
|
575
|
+
*/
|
|
576
|
+
async function loadAlertCalendar(now: number): Promise<readonly EconEvent[]> {
|
|
577
|
+
const from = new Date(now - CALENDAR_LOOKBACK_DAYS * 86_400_000).toISOString().slice(0, 10);
|
|
578
|
+
const stored = await fetchEconCalendarFrom(from);
|
|
579
|
+
if (stored.events) return stored.events;
|
|
580
|
+
return (await loadCalendar()).data;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
const quoted = (text: string) => (/\s/.test(text) ? `"${text}"` : text);
|
|
584
|
+
const weekday = new Intl.DateTimeFormat("en-US", { weekday: "short", timeZone: "UTC" });
|
|
585
|
+
|
|
586
|
+
/** "on Sat 2026-10-31 01:30 UTC", "on Mon 2026-10-26, all day": when a release is next listed. */
|
|
587
|
+
function releaseWhen(event: EconEvent): string {
|
|
588
|
+
const day = `on ${weekday.format(event.date)} ${dateKey(event.date)}`;
|
|
589
|
+
if (isAllDayEvent(event)) return `${day}, all day`;
|
|
590
|
+
return event.timeNote ? day : `${day} ${event.date.toISOString().slice(11, 16)} UTC`;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/** The release an alert was added for, as `--json` gives it. */
|
|
594
|
+
function releaseData(choice: CalendarEventChoice) {
|
|
595
|
+
return {
|
|
596
|
+
name: choice.name,
|
|
597
|
+
country: choice.country,
|
|
598
|
+
publisher: choice.publisher,
|
|
599
|
+
impact: choice.impact,
|
|
600
|
+
next: choice.next ? { at: choice.next.date.toISOString(), allDay: isAllDayEvent(choice.next) } : null,
|
|
601
|
+
};
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
const choiceList = (choices: readonly CalendarEventChoice[]) => choices.map((choice) => calendarEventLabel({ event: choice.name, country: choice.country }));
|
|
605
|
+
|
|
606
|
+
/** What a name read as, and what else it names in that country: said beside the alert added. */
|
|
607
|
+
function releaseReadNotes(
|
|
608
|
+
query: string,
|
|
609
|
+
choice: CalendarEventChoice,
|
|
610
|
+
others: readonly CalendarEventChoice[],
|
|
611
|
+
renamed?: ReleaseRename,
|
|
612
|
+
): string[] {
|
|
613
|
+
const notes: string[] = [];
|
|
614
|
+
if (calendarNameWords(query).join(" ") !== calendarNameWords(choice.name).join(" ")) {
|
|
615
|
+
notes.push(`Read "${query}" as ${calendarEventLabel({ event: choice.name, country: choice.country })}, ${choice.impact} impact.`
|
|
616
|
+
+ (renamed ? ` ${releaseRenameNote(renamed)}` : ""));
|
|
617
|
+
}
|
|
618
|
+
if (others.length > 0) {
|
|
619
|
+
const shown = choiceList(others.slice(0, 4));
|
|
620
|
+
const more = others.length > 4 ? ` and ${others.length - 4} more` : "";
|
|
621
|
+
notes.push(`Also matching: ${shown.join(", ")}${more}. To follow one of them instead: alerts add ${quoted(others[0]!.name)} --country ${others[0]!.country}.`);
|
|
622
|
+
}
|
|
623
|
+
return notes;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
/** Every kind `alerts add` takes, as a refusal of words none of them reads ends. */
|
|
627
|
+
const ADD_FORMS = ALERT_KINDS_TEXT;
|
|
628
|
+
|
|
629
|
+
/**
|
|
630
|
+
* Why a name could not be looked up. A single word (alerts add AAPL) may be
|
|
631
|
+
* a slip of another form as much as a release, so it also says what each
|
|
632
|
+
* form takes.
|
|
633
|
+
*/
|
|
634
|
+
function calendarUnavailableMessage(query: string, country: CountryFilter | null, error: string): string {
|
|
635
|
+
if (country || /\s/.test(query.trim())) return eventDateUnavailableMessage({ kind: "release", event: query, country: country ?? "" }, error);
|
|
636
|
+
return `Unknown event "${query}": the economic calendar could not be loaded to look it up (${error}). ${ADD_FORMS}`;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
/** The refusal of a name nothing in the calendar matches: the nearest names, and every form `alerts add` takes. */
|
|
640
|
+
function noReleaseMessage(
|
|
641
|
+
query: string,
|
|
642
|
+
country: CountryFilter | null,
|
|
643
|
+
suggestions: readonly CalendarEventChoice[],
|
|
644
|
+
renamed?: ReleaseRename,
|
|
645
|
+
): string {
|
|
646
|
+
const near = suggestions.length > 0 ? ` Did you mean ${choiceList(suggestions).join(", ")}?` : "";
|
|
647
|
+
// Words with a country are a release named; anything else may as well be a kind of alert mistyped.
|
|
648
|
+
if (country) {
|
|
649
|
+
return `No release in the economic calendar matches "${query}" in ${country.split(",").join(", ")}.`
|
|
650
|
+
+ `${renamed ? ` ${releaseRenameNote(renamed)}` : ""}${near} gloom econ --country <code> lists the calendar.`;
|
|
651
|
+
}
|
|
652
|
+
return `No kind of alert and no release in the economic calendar matches "${query}".`
|
|
653
|
+
+ `${renamed ? ` ${releaseRenameNote(renamed)}` : ""}${near} `
|
|
654
|
+
+ `${ADD_FORMS} Calendar releases go by name (${CALENDAR_EXAMPLES}); gloom econ --country <code> lists the calendar.`;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
/** The refusal of a name listed in several countries, with the best of each. */
|
|
658
|
+
function severalCountriesMessage(query: string, choices: readonly CalendarEventChoice[]): string {
|
|
659
|
+
const shown = choiceList(choices.slice(0, 6));
|
|
660
|
+
const more = choices.length > 6 ? ` and ${choices.length - 6} more` : "";
|
|
661
|
+
return `"${query}" is listed for several countries: ${shown.join(", ")}${more}. Name the country: alerts add ${quoted(query)} --country ${choices[0]!.country}.`;
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/** Looks up the next date for a new event alert, or fails saying why there is none. */
|
|
665
|
+
async function requireEventDate(
|
|
666
|
+
target: ScheduledEventTarget,
|
|
667
|
+
sources: ScheduledEventSources,
|
|
668
|
+
today: string,
|
|
669
|
+
fail: (message: string) => never,
|
|
670
|
+
): Promise<string> {
|
|
671
|
+
const lookup = (await lookupScheduledDates([target], sources, today)).get(scheduledTargetKey(target));
|
|
672
|
+
if (!lookup || "error" in lookup) fail(eventDateUnavailableMessage(target, lookup?.error ?? "no answer"));
|
|
673
|
+
if (!lookup.date) fail(noUpcomingEventMessage(target));
|
|
674
|
+
return lookup.date;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export const alertsCliCommand: CliCommandDef = {
|
|
678
|
+
name: "alerts",
|
|
679
|
+
aliases: ["alert"],
|
|
680
|
+
description: "List, add, re-arm and remove price, valuation, daily technical and relative strength alerts, alerts before earnings and any economic calendar release (CPI, FOMC, NBS PMI), and every event alert ALRT offers: news, options flow, IV, 52-week range, unusual volume, filings, insiders, short interest, analysts, hiring, perpetuals, catalysts, Congress and 13F",
|
|
681
|
+
help: {
|
|
682
|
+
group: CLI_COMMAND_GROUPS.portfolios,
|
|
683
|
+
// Every form `alerts add` takes, as the refusal of an unknown phrase names them and the CLI docs page lists them.
|
|
684
|
+
usage: [
|
|
685
|
+
"alerts list",
|
|
686
|
+
...ALERT_ADD_FORMS.map((form) => `alerts add ${form.usage}`),
|
|
687
|
+
"alerts delete <id>",
|
|
688
|
+
"alerts rearm <id>",
|
|
689
|
+
],
|
|
690
|
+
options: [
|
|
691
|
+
EXCHANGE_OPTION,
|
|
692
|
+
{ flags: "--days <n>", description: `Days before the event the alert goes off, 1 to ${MAX_LEAD_DAYS} (default 1); earnings and calendar event alerts` },
|
|
693
|
+
{ flags: "--country <code>", description: "The country of a calendar event, as econ --country takes it (CN, US, DE); a code before the name does the same (alerts add CN PMI)" },
|
|
694
|
+
{ flags: "--benchmark <symbol>", description: "The listing an RRG alert is measured against; SPY by default, as in RRG" },
|
|
695
|
+
],
|
|
696
|
+
examples: [
|
|
697
|
+
"alerts",
|
|
698
|
+
"alerts add AAPL above 250",
|
|
699
|
+
"alerts add AAPL pe below 25",
|
|
700
|
+
"alerts add AAPL ps above 8",
|
|
701
|
+
'alerts add NVDA "rsi(14)" under 30',
|
|
702
|
+
'alerts add SPY "ma(50)" crosses above "ma(200)"',
|
|
703
|
+
'alerts add TSLA closes below "ma(200)"',
|
|
704
|
+
"alerts add XLK/SPY above 0.25",
|
|
705
|
+
"alerts add XLE rrg leading",
|
|
706
|
+
"alerts add SMH rrg weakening --benchmark QQQ",
|
|
707
|
+
"alerts add SAN:EPA below 70",
|
|
708
|
+
"alerts add CRWV earnings --days 3",
|
|
709
|
+
"alerts add CRWV earnings results",
|
|
710
|
+
"alerts add CPI --days 1",
|
|
711
|
+
"alerts add \"NBS PMI\"",
|
|
712
|
+
"alerts add \"Industrial Profits\" --country CN --days 2",
|
|
713
|
+
"alerts add AAPL news buyback",
|
|
714
|
+
"alerts add NVDA flow 5m calls sweeps",
|
|
715
|
+
"alerts add IBIT iv above 50",
|
|
716
|
+
"alerts add SPY rr below -6",
|
|
717
|
+
"alerts add XLE 52-week high",
|
|
718
|
+
"alerts add NVDA unusual volume 3x",
|
|
719
|
+
"alerts add AAPL filing 8-K",
|
|
720
|
+
"alerts add TSLA insider sell",
|
|
721
|
+
"alerts add GME short interest increase 20%",
|
|
722
|
+
"alerts add AAPL analyst downgrade",
|
|
723
|
+
"alerts add RIVN hiring slowing",
|
|
724
|
+
"alerts add perps hyperliquid:default:BTC funding above 0.05%",
|
|
725
|
+
"alerts add catalyst type clinical",
|
|
726
|
+
"alerts add congress \"Nancy Pelosi\"",
|
|
727
|
+
"alerts add 13f 1067983",
|
|
728
|
+
],
|
|
729
|
+
},
|
|
730
|
+
execute: async (rawArgs, ctx) => {
|
|
731
|
+
const args = [...rawArgs];
|
|
732
|
+
const daysFlag = rawArgs.some((arg) => arg === "--days" || arg.startsWith("--days="));
|
|
733
|
+
const daysValue = takeOption(args, "--days");
|
|
734
|
+
const days = daysFlag && daysValue === undefined ? null : daysValue;
|
|
735
|
+
const exchangeOption = takeOption(args, "--exchange");
|
|
736
|
+
const countryFlag = rawArgs.some((arg) => arg === "--country" || arg.startsWith("--country="));
|
|
737
|
+
const countryValue = takeOption(args, "--country");
|
|
738
|
+
const country = countryFlag && countryValue === undefined ? null : countryValue;
|
|
739
|
+
const benchmarkFlag = rawArgs.some((arg) => arg === "--benchmark" || arg.startsWith("--benchmark="));
|
|
740
|
+
const benchmarkValue = takeOption(args, "--benchmark");
|
|
741
|
+
const benchmark = benchmarkFlag && benchmarkValue === undefined ? null : benchmarkValue;
|
|
742
|
+
const action = args[0] ?? "list";
|
|
743
|
+
const now = Date.now();
|
|
744
|
+
const today = newYorkToday(new Date(now));
|
|
745
|
+
const failWith = (error: unknown): never => ctx.fail(error instanceof Error ? error.message : String(error));
|
|
746
|
+
|
|
747
|
+
const parseAdd = (): AlertAddRequest => {
|
|
748
|
+
try {
|
|
749
|
+
return parseAlertAddArgs(args.slice(1), days, exchangeOption, country, benchmark);
|
|
750
|
+
} catch (error) {
|
|
751
|
+
return failWith(error);
|
|
752
|
+
}
|
|
753
|
+
};
|
|
754
|
+
const typedRequest = action === "add" ? parseAdd() : null;
|
|
755
|
+
// XLK/SPY is first a listing written with a slash (BRK/B, EUR/USD); one that quotes nothing is the ratio of the two.
|
|
756
|
+
const pairListing = typedRequest?.kind === "price" && PAIR_SHAPE.test(typedRequest.symbol)
|
|
757
|
+
? await withMarketData(ctx, (market) => requireQuotedListing(typedRequest.symbol, exchangeOption, market, PROBE, "alerts add")).catch((error: unknown) => {
|
|
758
|
+
if (!(error instanceof ListingRefusal)) throw error;
|
|
759
|
+
if (!notATickerSymbol(error.message)) return ctx.fail(error.message, error.details);
|
|
760
|
+
return null;
|
|
761
|
+
})
|
|
762
|
+
: undefined;
|
|
763
|
+
let request: AlertAddRequest | null = typedRequest;
|
|
764
|
+
if (typedRequest?.kind === "price" && pairListing === null) {
|
|
765
|
+
if (exchangeOption) ctx.fail("A ratio alert names each listing, such as alerts add XLK:NYSEARCA/SPY above 0.25, and takes no --exchange.");
|
|
766
|
+
try {
|
|
767
|
+
request = { kind: "metric", ...parseMetricAlert(`${typedRequest.symbol} ratio ${typedRequest.condition} ${typedRequest.price}`)! };
|
|
768
|
+
} catch (error) {
|
|
769
|
+
failWith(error);
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
const research = request && isResearchRequest(request) ? request : null;
|
|
773
|
+
const formRule = request?.kind === "rule" ? request : null;
|
|
774
|
+
const listedSymbol = (request?.kind === "price" || request?.kind === "metric") ? request.symbol
|
|
775
|
+
: research && research.kind !== "iv_spike" ? research.symbol : formRule?.symbol ?? null;
|
|
776
|
+
// Gloom Cloud's research rules follow US listings; hiring and a catalyst's company may list anywhere.
|
|
777
|
+
const usOnly = research ? research.kind === "news" ? "News alerting" : research.kind === "flow" ? "Options flow" : "Options data"
|
|
778
|
+
: formRule?.listing === "us" ? RULE_US_DATA[formRule.event] ?? "This alert" : null;
|
|
779
|
+
// A price alert is kept for the listing `quote` prints for the symbol, and for no symbol that quotes nothing;
|
|
780
|
+
// a news, flow or IV rule on a symbol follows that listing too, and only in the US, where their data is.
|
|
781
|
+
const priced = pairListing ? pairListing : listedSymbol
|
|
782
|
+
? await withMarketData(ctx, async (market) => {
|
|
783
|
+
const quoted = await requireQuotedListing(listedSymbol, exchangeOption, market, ctx, "alerts add");
|
|
784
|
+
if (usOnly) {
|
|
785
|
+
const venue = quoted.listing.exchange || canonicalExchange(quoted.quote.listingExchangeName || quoted.quote.exchangeName);
|
|
786
|
+
if (!isUsListingExchange(venue)) {
|
|
787
|
+
const { message, details } = await usListingsOnlyMessage(usOnly, quoted.listing, market,
|
|
788
|
+
(key) => `gloom alerts add ${key} ${args.slice(2).join(" ")}`);
|
|
789
|
+
ctx.fail(message, details);
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
return quoted;
|
|
793
|
+
})
|
|
794
|
+
: null;
|
|
795
|
+
const priceListing = priced?.listing ?? null;
|
|
796
|
+
// A bare coin ticker read as another listing (SOL, a stale company; BTC, the Grayscale trust) gets `quote`'s note
|
|
797
|
+
// naming the coin's pair, before a metric alert names the venue it was read on.
|
|
798
|
+
const coinNote = priced ? coinListingNotes(priced.listing, priced.quote)[0] ?? null : null;
|
|
799
|
+
// What the alert reads now, which it is saved with, so lists and ALRT show it before the app has run.
|
|
800
|
+
let reading: Partial<AlertRule> = {};
|
|
801
|
+
// A daily rule whose close could not be read yet: why, which the add says beside when it is first checked.
|
|
802
|
+
let unread: string | null = null;
|
|
803
|
+
// A ratio or RRG alert's benchmark, as its listing was read.
|
|
804
|
+
const benchmarkNotes: string[] = [];
|
|
805
|
+
if (request?.kind === "metric" && priced) {
|
|
806
|
+
const exchange = canonicalExchange(priced.listing.exchange || priced.quote.listingExchangeName || priced.quote.exchangeName);
|
|
807
|
+
const typedMetric = request.metric;
|
|
808
|
+
if (isRelativeMetric(typedMetric)) {
|
|
809
|
+
// The benchmark is held to a listing that quotes, as the symbol is.
|
|
810
|
+
const reference = await withMarketData(ctx, (market) => requireQuotedListing(benchmarkKey(typedMetric), null, market, ctx, "alerts add"));
|
|
811
|
+
const benchmarkExchange = canonicalExchange(reference.listing.exchange || reference.quote.listingExchangeName || reference.quote.exchangeName);
|
|
812
|
+
if (reference.listing.symbol === priced.listing.symbol && benchmarkExchange === exchange) {
|
|
813
|
+
ctx.fail(`${typedMetric.kind === "rrg" ? "An RRG alert" : "A ratio alert"} compares two listings; ${priced.listing.symbol} is on both sides.`);
|
|
814
|
+
}
|
|
815
|
+
request.metric = { ...typedMetric, benchmark: reference.listing.symbol, ...(benchmarkExchange ? { benchmarkExchange } : {}) };
|
|
816
|
+
// Never save a rule its own list would refuse to read back.
|
|
817
|
+
if (!validMetricRule({ ...request, targetPrice: request.price })) ctx.fail(`${reference.listing.key} cannot be a benchmark: relative strength alerts compare two US listings.`);
|
|
818
|
+
benchmarkNotes.push(...reference.notes);
|
|
819
|
+
}
|
|
820
|
+
const preview = { ...createAlert(priced.listing.symbol, request.condition, request.price, exchange), metric: request.metric };
|
|
821
|
+
// A listing without a published close calendar can never be checked; anything else is saved and checked as it can be.
|
|
822
|
+
const unavailable = metricAvailabilityError(preview);
|
|
823
|
+
if (unavailable) ctx.fail(unavailable);
|
|
824
|
+
try {
|
|
825
|
+
const value = await withMarketData(ctx, market => metricReadings(market.dataProvider, now)(preview));
|
|
826
|
+
reading = { lastCheckedPrice: value.value, lastCheckedTarget: value.target, lastQuoteUpdatedAt: value.at, lastCheckedAt: now,
|
|
827
|
+
...value.day ? { lastDailyClose: value.day } : {} };
|
|
828
|
+
} catch (error) {
|
|
829
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
830
|
+
// A valuation the inputs cannot give is refused; a daily close not yet final, or history not there yet, is read once it is.
|
|
831
|
+
if (!isDailyMetric(request.metric)) ctx.fail(message);
|
|
832
|
+
unread = message;
|
|
833
|
+
}
|
|
834
|
+
if (priced.quote.currency) reading.lastQuoteCurrency = priced.quote.currency;
|
|
835
|
+
priced.listing.exchange = exchange;
|
|
836
|
+
}
|
|
837
|
+
if (request?.kind === "price" && priced && !isQuoteStaleForCurrentSession(priced.quote)) {
|
|
838
|
+
// The price it is added at is its first reading and the baseline a crossing is measured from, as Add Alert keeps it.
|
|
839
|
+
const price = lastPrice(priced.quote);
|
|
840
|
+
if (price != null) reading = quoteAlertFields({ ...priced.quote, price }, now);
|
|
841
|
+
}
|
|
842
|
+
if (request?.kind === "price" && request.thousandsDot && priced) {
|
|
843
|
+
const question = thousandsDotMessage(request, priced.listing.key, lastPrice(priced.quote), exchangeOption);
|
|
844
|
+
if (question) ctx.fail(question);
|
|
845
|
+
}
|
|
846
|
+
if (request?.kind === "price" && priced) {
|
|
847
|
+
// A target ten times away is a slip or another instrument's price, such as bitcoin's on the BTC fund.
|
|
848
|
+
// Against the price the alert is checked on, as Add Alert measures it.
|
|
849
|
+
const far = farTargetMessage(priced.listing.key, request.price, priced.quote.price, coinNote);
|
|
850
|
+
if (far) ctx.fail(far);
|
|
851
|
+
}
|
|
852
|
+
// What a typed listing was read as (7203:TSE as 7203:JPX, MXN as MXN:FWB2), said beside what was added.
|
|
853
|
+
let read = [...priced?.notes ?? [], ...coinNote ? [coinNote] : [], ...benchmarkNotes];
|
|
854
|
+
let newEventRule: EventAlertRule | null = null;
|
|
855
|
+
let newResearchRule: EventAlertRule | null = null;
|
|
856
|
+
if (research) {
|
|
857
|
+
const typed = priceListing?.exchange ? canonicalExchange(priceListing.exchange) : "";
|
|
858
|
+
const { kind, values } = researchFormValues(
|
|
859
|
+
research.kind === "iv_spike" ? research : { ...research, symbol: priceListing?.symbol ?? null } as ResearchAddRequest,
|
|
860
|
+
RESEARCH_EXCHANGES.has(typed) ? typed : "US",
|
|
861
|
+
);
|
|
862
|
+
try {
|
|
863
|
+
newResearchRule = createResearchAlert(kind, values);
|
|
864
|
+
} catch (error) {
|
|
865
|
+
ctx.fail(error instanceof Error ? error.message : String(error));
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
if (formRule) {
|
|
869
|
+
try {
|
|
870
|
+
newResearchRule = createFormRule(formRule, priceListing);
|
|
871
|
+
} catch (error) {
|
|
872
|
+
ctx.fail(error instanceof Error ? error.message : String(error));
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
// A release named from the calendar, with what the words were read as and what else they name.
|
|
876
|
+
let newRelease: CalendarEventChoice | null = null;
|
|
877
|
+
// CPI and FOMC, typed so or named by one of their calendar rows (CPI y/y, Fed Interest Rate Decision).
|
|
878
|
+
let macro: { event: MacroAlertEvent; leadDays: number } | null = request?.kind === "macro" ? request : null;
|
|
879
|
+
let calendar: readonly EconEvent[] | null = null;
|
|
880
|
+
if (request?.kind === "release") {
|
|
881
|
+
const events = await loadAlertCalendar(now).catch((error: unknown) =>
|
|
882
|
+
ctx.fail(calendarUnavailableMessage(request.query, request.country, error instanceof Error ? error.message : String(error))));
|
|
883
|
+
calendar = events;
|
|
884
|
+
const match = matchCalendarEvent(request.query, request.country, events, now);
|
|
885
|
+
if (match.kind !== "match") {
|
|
886
|
+
return ctx.fail(match.kind === "none"
|
|
887
|
+
? noReleaseMessage(request.query, request.country, match.suggestions, match.renamed)
|
|
888
|
+
: severalCountriesMessage(request.query, match.choices));
|
|
889
|
+
}
|
|
890
|
+
const { choice, others } = match;
|
|
891
|
+
const macroEvent = macroEventNamed(choice);
|
|
892
|
+
if (macroEvent) {
|
|
893
|
+
macro = { event: macroEvent, leadDays: request.leadDays };
|
|
894
|
+
read = [`Read "${request.query}" as the ${MACRO_EVENT_NAMES[macroEvent]} alert, which follows ${calendarEventLabel({ event: choice.name, country: choice.country })}.`];
|
|
895
|
+
} else {
|
|
896
|
+
newRelease = choice;
|
|
897
|
+
read = releaseReadNotes(request.query, choice, others, match.renamed);
|
|
898
|
+
const target: ScheduledEventTarget = { kind: "release", event: choice.name, country: choice.country, ...(choice.publisher ? { publisher: choice.publisher } : {}) };
|
|
899
|
+
try {
|
|
900
|
+
newEventRule = createScheduledAlert(target, request.leadDays, choice.next ? dateKey(choice.next.date) : null);
|
|
901
|
+
} catch (error) {
|
|
902
|
+
ctx.fail(error instanceof Error ? error.message : String(error));
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
}
|
|
906
|
+
// When CPI or FOMC came out earlier today: its figures are not sent to an alert set after them.
|
|
907
|
+
let macroOutAt: number | null = null;
|
|
908
|
+
const earnings = request?.kind === "earnings" ? request : null;
|
|
909
|
+
if (macro || earnings) {
|
|
910
|
+
const target: ScheduledEventTarget = macro
|
|
911
|
+
? { kind: "macro", event: macro.event }
|
|
912
|
+
: await requireListingArg(earnings!.symbol, exchangeOption, ctx)
|
|
913
|
+
.then((listing) => {
|
|
914
|
+
read = listingReadNotes(listing);
|
|
915
|
+
return { kind: "earnings" as const, symbol: listing.symbol, exchange: listing.exchange };
|
|
916
|
+
});
|
|
917
|
+
const lead = earnings?.results ? "results" as const : (macro ?? earnings!).leadDays;
|
|
918
|
+
// A listing the rule cannot follow fails before any request.
|
|
919
|
+
try {
|
|
920
|
+
createScheduledAlert(target, lead, null);
|
|
921
|
+
} catch (error) {
|
|
922
|
+
ctx.fail(error instanceof Error ? error.message : String(error));
|
|
923
|
+
}
|
|
924
|
+
const eventDate = target.kind === "earnings"
|
|
925
|
+
? await withMarketData(ctx, (market) => requireEventDate(target, scheduledEventSources(market.dataProvider), today, (message) => ctx.fail(message)))
|
|
926
|
+
: await requireEventDate(target, scheduledEventSources(null), today, (message) => ctx.fail(message));
|
|
927
|
+
newEventRule = createScheduledAlert(target, lead, eventDate);
|
|
928
|
+
if (target.kind === "macro" && eventDate === today) {
|
|
929
|
+
const events = calendar ?? await loadAlertCalendar(now).catch(() => {
|
|
930
|
+
// Intentional ignore: without the calendar the alert is added as before, only without saying today's release is out.
|
|
931
|
+
return null;
|
|
932
|
+
});
|
|
933
|
+
const row = events ? releaseRowOn(target, eventDate, events) : null;
|
|
934
|
+
const at = row ? releaseInstant(row) : null;
|
|
935
|
+
if (at != null && at <= now) macroOutAt = at;
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
if (action === "list") {
|
|
940
|
+
// An IV level's last reading is this device's, beside the rules.
|
|
941
|
+
const { alerts, alertsError, events, checks } = await withConfigData(ctx, (config) => ({
|
|
942
|
+
...readAlertStores(config.config),
|
|
943
|
+
checks: readIvLevelChecks(config.persistence?.pluginState?.get(ALERTS_PLUGIN_ID, resumeStateKey(IV_LEVEL_CHECKS_KEY))?.value),
|
|
944
|
+
}));
|
|
945
|
+
// Earnings dates come through market data; CPI, FOMC and calendar dates do not need it.
|
|
946
|
+
const lookup = (targets: ScheduledEventTarget[]) => targets.some((target) => target.kind === "earnings")
|
|
947
|
+
? withMarketData(ctx, (market) => lookupScheduledDates(targets, scheduledEventSources(market.dataProvider), today, now))
|
|
948
|
+
: lookupScheduledDates(targets, scheduledEventSources(null), today, now);
|
|
949
|
+
const [{ dates, warnings }, cloud] = await Promise.all([listEventDates(events.rules, now, lookup), cloudRuleStates(events.rules)]);
|
|
950
|
+
const rows = [
|
|
951
|
+
...alerts.map(priceRow),
|
|
952
|
+
...events.rules.map((rule) => eventRow(rule, now, dates.has(rule.id) ? dates.get(rule.id) : rule.eventDate, checks[rule.id], cloud)),
|
|
953
|
+
];
|
|
954
|
+
const allWarnings = [...(alertsError ? [alertsError] : []), ...(events.error ? [events.error] : []), ...warnings, ...cloud.warning ? [cloud.warning] : []];
|
|
955
|
+
ctx.printResult({ data: rows, ...(allWarnings.length ? { warnings: allWarnings } : {}) }, {
|
|
956
|
+
rows: (data) => data.map(textRow),
|
|
957
|
+
textColumns: [
|
|
958
|
+
{ key: "id", header: "ID", shrink: false },
|
|
959
|
+
{ key: "kind", header: "Kind" },
|
|
960
|
+
// A price or technical alert names the listing it is checked on, in its currency.
|
|
961
|
+
{ key: "target", header: "Target", format: (value, row) => row.currency ? listingWithCurrency(String(row.listing), String(row.currency)) : String(value ?? "") },
|
|
962
|
+
{ key: "trigger", header: "Trigger" },
|
|
963
|
+
{ key: "eventDate", header: "Event Date" },
|
|
964
|
+
{ key: "status", header: "Status" },
|
|
965
|
+
{ key: "lastReading", header: "Last Reading" },
|
|
966
|
+
// ISO 8601 in UTC, as CSV writes it.
|
|
967
|
+
{ key: "createdAt", header: "Created", format: (value) => String(value ?? "") },
|
|
968
|
+
{ key: "triggeredAt", header: "Triggered", optional: true },
|
|
969
|
+
],
|
|
970
|
+
empty: "No alerts. Add one with gloom alerts add AAPL above 250, alerts add CRWV earnings --days 3, alerts add CPI --days 1, or alerts add CN PMI.",
|
|
971
|
+
});
|
|
972
|
+
return;
|
|
973
|
+
}
|
|
974
|
+
|
|
975
|
+
await withConfigData(ctx, async (config) => {
|
|
976
|
+
const { pluginState, alerts, alertsError, levelErrors, events } = readAlertStores(config.config);
|
|
977
|
+
const save = async (next: { alerts?: AlertRule[]; events?: EventAlertRule[] }) => {
|
|
978
|
+
if (next.alerts) for (const [key, value] of Object.entries(writeLevelAlertStores(next.alerts))) {
|
|
979
|
+
if (levelErrors[key] && value !== "[]") ctx.fail(levelErrors[key]!);
|
|
980
|
+
}
|
|
981
|
+
const nextConfig = {
|
|
982
|
+
...config.config,
|
|
983
|
+
pluginConfig: {
|
|
984
|
+
...config.config.pluginConfig,
|
|
985
|
+
[ALERTS_PLUGIN_ID]: {
|
|
986
|
+
...pluginState,
|
|
987
|
+
...(next.alerts ? Object.fromEntries(Object.entries(writeLevelAlertStores(next.alerts)).filter(([key]) => !levelErrors[key])) : {}),
|
|
988
|
+
// Each list keeps what it holds of kinds this version does not know; IV levels go in their own.
|
|
989
|
+
...(next.events ? writeEventAlertStores(events.lists, next.events) : {}),
|
|
990
|
+
},
|
|
991
|
+
},
|
|
992
|
+
};
|
|
993
|
+
if (!ctx.cliOptions.dryRun) await saveConfig(nextConfig);
|
|
994
|
+
};
|
|
995
|
+
// Saved event alerts that do not read are never written over.
|
|
996
|
+
const requireEvents = () => {
|
|
997
|
+
if (events.error) ctx.fail(events.error);
|
|
998
|
+
return events.rules;
|
|
999
|
+
};
|
|
1000
|
+
// Each rule created, re-armed or deleted here goes in this device's alert log, beside the alerts that fired.
|
|
1001
|
+
const record = (action: AlertLogAction, rule: AlertRule | EventAlertRule) => {
|
|
1002
|
+
const state = config.persistence?.pluginState;
|
|
1003
|
+
if (ctx.cliOptions.dryRun || !state) return;
|
|
1004
|
+
try {
|
|
1005
|
+
appendAlertLog({
|
|
1006
|
+
get: (key) => state.get(ALERTS_PLUGIN_ID, resumeStateKey(key))?.value,
|
|
1007
|
+
set: (key, value) => state.set(ALERTS_PLUGIN_ID, resumeStateKey(key), value),
|
|
1008
|
+
}, [alertChangeEntry(action, alertLogRule(rule), Date.now())]);
|
|
1009
|
+
} catch (error) {
|
|
1010
|
+
logFailure("alerts.cli", "Record alert change failed")(error);
|
|
1011
|
+
}
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
if (request?.kind === "price" || request?.kind === "metric") {
|
|
1015
|
+
const { condition, price } = request;
|
|
1016
|
+
const symbol = requireArg(priceListing?.key, ADD_USAGE, ctx);
|
|
1017
|
+
const alert: AlertRule = { ...createAlert(symbol, condition, price, priceListing?.exchange), ...(request.kind === "metric" ? { metric: request.metric } : {}), ...reading };
|
|
1018
|
+
// The same rule on the same listing is one alert: a second add names it and adds nothing.
|
|
1019
|
+
const existing = alerts.find((entry) => sameLevelRule(entry, alert));
|
|
1020
|
+
if (existing) {
|
|
1021
|
+
const rearm = existing.status === "triggered" ? `; it went off, so re-arm it with gloom alerts rearm ${existing.id}` : "";
|
|
1022
|
+
ctx.fail(`${alertLogRule(alert).rule} already exists as alert ${existing.id}${rearm}. Nothing was added.`);
|
|
1023
|
+
}
|
|
1024
|
+
await save({ alerts: [...alerts, alert] });
|
|
1025
|
+
record("created", alert);
|
|
1026
|
+
// A daily rule is first judged on the first close after it was set, once that close has settled.
|
|
1027
|
+
// An RRG quadrant, on the last session of that week.
|
|
1028
|
+
const weekly = alert.metric?.kind === "rrg";
|
|
1029
|
+
const firstCheck = alert.metric && isDailyMetric(alert.metric) ? firstDailyCheck(alert.exchange, now, weekly) : null;
|
|
1030
|
+
const notes = [
|
|
1031
|
+
alert.metric ? unread ? `Not read yet: ${unread.replace(/\.$/, "")}.` : `${metricReadingNote(alert)}.` : null,
|
|
1032
|
+
firstCheck ? `First checked on the ${firstCheck.day} ${weekly ? "weekly close" : "close"}, from ${isoUtc(firstCheck.at).slice(11, 16)} UTC.` : null,
|
|
1033
|
+
].filter(Boolean).join(" ");
|
|
1034
|
+
ctx.printResult({ data: { changed: !ctx.cliOptions.dryRun, dryRun: ctx.cliOptions.dryRun, alert,
|
|
1035
|
+
...firstCheck ? { firstCheck: { close: firstCheck.day, at: isoUtc(firstCheck.at) } } : {},
|
|
1036
|
+
...unread ? { unread } : {} }, ...(read.length > 0 ? { warnings: read } : {}) }, {
|
|
1037
|
+
// The delivery, as docs/usage.md states it, before any full stop, which after the price would read as part of it (below 81.).
|
|
1038
|
+
text: (data) => `Added alert ${data.alert.id}: ${data.alert.metric ? metricDescription(data.alert) : `${symbol} ${condition} ${price}`} (${PRICE_DELIVERY}).${notes ? ` ${notes}` : ""}${dryRunNote(data.dryRun)}`,
|
|
1039
|
+
});
|
|
1040
|
+
return;
|
|
1041
|
+
}
|
|
1042
|
+
if (newResearchRule) {
|
|
1043
|
+
const rule = newResearchRule;
|
|
1044
|
+
const rules = requireEvents();
|
|
1045
|
+
const existing = rules.find((entry) => entry.kind === rule.kind && entry.target === rule.target && entry.value.toLowerCase() === rule.value.toLowerCase());
|
|
1046
|
+
if (existing) ctx.fail(`This alert already exists (ID ${existing.id}). Nothing was added.`);
|
|
1047
|
+
if (rules.length >= MAX_EVENT_ALERTS) ctx.fail(`Keep at most ${MAX_EVENT_ALERTS} event alerts. Delete one with gloom alerts delete <id>.`);
|
|
1048
|
+
await save({ events: [...rules, rule] });
|
|
1049
|
+
record("created", rule);
|
|
1050
|
+
const delivery = research ? researchDelivery(research.kind) : ruleDelivery(formRule!.event);
|
|
1051
|
+
ctx.printResult({ data: { changed: !ctx.cliOptions.dryRun, dryRun: ctx.cliOptions.dryRun, alert: rule }, ...(read.length > 0 ? { warnings: read } : {}) }, {
|
|
1052
|
+
text: (data) => `Added alert ${data.alert.id}: ${alertKindLabel(rule.kind)} ${eventAlertTarget(rule)} (${delivery}).${dryRunNote(data.dryRun)}`,
|
|
1053
|
+
});
|
|
1054
|
+
return;
|
|
1055
|
+
}
|
|
1056
|
+
if (newEventRule) {
|
|
1057
|
+
const rule = newEventRule;
|
|
1058
|
+
const rules = requireEvents();
|
|
1059
|
+
const scheduled = readScheduledRule(rule)!;
|
|
1060
|
+
const name = scheduledEventName(scheduled.target);
|
|
1061
|
+
const existing = rules.find((entry) => entry.kind === rule.kind && entry.value.toLowerCase() === rule.value.toLowerCase());
|
|
1062
|
+
if (existing) ctx.fail(scheduled.trigger === "results"
|
|
1063
|
+
? `An alert for ${name} results already exists (ID ${existing.id}). Nothing was added.`
|
|
1064
|
+
: `An alert ${plural(scheduled.leadDays, "day")} before ${name} already exists (ID ${existing.id}). Nothing was added.`);
|
|
1065
|
+
if (rules.length >= MAX_EVENT_ALERTS) ctx.fail(`Keep at most ${MAX_EVENT_ALERTS} event alerts. Delete one with gloom alerts delete <id>.`);
|
|
1066
|
+
await save({ events: [...rules, rule] });
|
|
1067
|
+
record("created", rule);
|
|
1068
|
+
const eventDate = rule.eventDate ?? null;
|
|
1069
|
+
const due = !!eventDate && scheduledPhase(eventDate, scheduled.leadDays, undefined, scheduledToday(scheduled.target, now)) === "due";
|
|
1070
|
+
const release = followsRelease(scheduled.target);
|
|
1071
|
+
// A release that prints no figures (a plenum, a speech) alerts only before it.
|
|
1072
|
+
const prints = release && (!newRelease?.next || expectsFigures(newRelease.next));
|
|
1073
|
+
const delivery = release ? ", only while it is running" : " while it is running, or on your phone with Cloud sync";
|
|
1074
|
+
const when = !eventDate ? null : newRelease?.next ? releaseWhen(newRelease.next) : `on ${eventDate}`;
|
|
1075
|
+
const reminder = !eventDate
|
|
1076
|
+
? "the app alerts once the calendar lists its next date, about two weeks ahead"
|
|
1077
|
+
: macroOutAt != null ? `it came out today at ${new Date(macroOutAt).toISOString().slice(11, 16)} UTC, so the app alerts before the next one`
|
|
1078
|
+
: due ? "already reached, so the app alerts at its next check" : `the app alerts on ${leadStartDate(eventDate, scheduled.leadDays)}`;
|
|
1079
|
+
ctx.printResult({ data: { changed: !ctx.cliOptions.dryRun, dryRun: ctx.cliOptions.dryRun, alert: rule,
|
|
1080
|
+
...newRelease ? { release: releaseData(newRelease) } : {} }, ...(read.length > 0 ? { warnings: read } : {}) }, {
|
|
1081
|
+
// Delivery, as docs/usage.md states it: CPI, FOMC and calendar releases notify in the running app only; earnings also reach the phone,
|
|
1082
|
+
// which Gloom Cloud alerts with the same results once the actual EPS is stored for a results alert.
|
|
1083
|
+
text: (data) => scheduled.trigger === "results"
|
|
1084
|
+
? `Added alert ${data.alert.id}: ${name} on ${eventDate}, when results are out (the app alerts once the actual EPS is in while it is running, and with Cloud sync your phone gets the same alert).${dryRunNote(data.dryRun)}`
|
|
1085
|
+
: `Added alert ${data.alert.id}: ${name}${when ? ` ${when}` : ""}, ${plural(scheduled.leadDays, "day")} before${prints ? " and when it prints" : ""} (${reminder}${
|
|
1086
|
+
prints ? ", and with the actual, forecast and prior once out" : ""}${delivery}).${dryRunNote(data.dryRun)}`,
|
|
1087
|
+
});
|
|
1088
|
+
return;
|
|
1089
|
+
}
|
|
1090
|
+
if (action === "delete" || action === "rm") {
|
|
1091
|
+
const id = requireArg(args[1], "Usage: gloom alerts delete <id>", ctx);
|
|
1092
|
+
const level = alerts.find((alert) => alert.id === id) ?? null;
|
|
1093
|
+
const rule = level ? null : events.rules.find((entry) => entry.id === id) ?? null;
|
|
1094
|
+
if (!level && !rule && alertsError) ctx.fail(alertsError);
|
|
1095
|
+
if (level) await save({ alerts: alerts.filter((alert) => alert.id !== id) });
|
|
1096
|
+
if (rule) await save({ events: requireEvents().filter((entry) => entry.id !== id) });
|
|
1097
|
+
const gone = level ?? rule;
|
|
1098
|
+
if (gone) record("deleted", gone);
|
|
1099
|
+
const changed = !!gone;
|
|
1100
|
+
ctx.printResult({ data: { changed: !ctx.cliOptions.dryRun && changed, dryRun: ctx.cliOptions.dryRun, id } }, {
|
|
1101
|
+
text: (data) => changed
|
|
1102
|
+
? `Deleted alert ${id}.${dryRunNote(data.dryRun)}`
|
|
1103
|
+
: cliStyles.muted(`No alert with ID ${id}.`),
|
|
1104
|
+
});
|
|
1105
|
+
return;
|
|
1106
|
+
}
|
|
1107
|
+
if (action === "rearm") {
|
|
1108
|
+
const id = requireArg(args[1], "Usage: gloom alerts rearm <id>", ctx);
|
|
1109
|
+
const level = alerts.find((alert) => alert.id === id) ?? null;
|
|
1110
|
+
const rule = level ? null : events.rules.find((entry) => entry.id === id) ?? null;
|
|
1111
|
+
if (!level && !rule && alertsError) ctx.fail(alertsError);
|
|
1112
|
+
// An alert still waiting to go off has nothing to re-arm, and is left as it is.
|
|
1113
|
+
const active = level ? level.status === "active" : rule ? eventRuleArmed(rule, now) : false;
|
|
1114
|
+
if (level && !active) await save({ alerts: alerts.map((alert) => alert.id === id ? rearmAlert(alert) : alert) });
|
|
1115
|
+
if (rule && !active) {
|
|
1116
|
+
// A scheduled alert alerts again for its coming event; any other event alert resumes.
|
|
1117
|
+
const next = readScheduledRule(rule) ? rearmScheduledAlert(rule)
|
|
1118
|
+
: rule.kind === "iv_level" && rule.triggeredAt ? rearmIvLevelAlert(rule)
|
|
1119
|
+
: rule.status === "paused" ? toggleEventAlert(rule) : rule;
|
|
1120
|
+
await save({ events: requireEvents().map((entry) => entry.id === id ? next : entry) });
|
|
1121
|
+
}
|
|
1122
|
+
const found = level ?? rule;
|
|
1123
|
+
if (found && !active) record("rearmed", found);
|
|
1124
|
+
ctx.printResult({ data: { changed: !ctx.cliOptions.dryRun && !!found && !active, dryRun: ctx.cliOptions.dryRun, id, ...active ? { active: true } : {} } }, {
|
|
1125
|
+
text: (data) => !found ? cliStyles.muted(`No alert with ID ${id}.`)
|
|
1126
|
+
: active ? cliStyles.muted(`Alert ${id} is already active; nothing to re-arm.`)
|
|
1127
|
+
: `Re-armed alert ${id}.${dryRunNote(data.dryRun)}`,
|
|
1128
|
+
});
|
|
1129
|
+
return;
|
|
1130
|
+
}
|
|
1131
|
+
ctx.fail("Usage: gloom alerts list|add|delete|rearm");
|
|
1132
|
+
});
|
|
1133
|
+
},
|
|
1134
|
+
};
|