Commit Graph

793 Commits

Author SHA1 Message Date
Endless Worker 5db9a3d304 cli: Add mcp serve command documentation
Documents the new `longbridge mcp serve` and `longbridge mcp guide` commands
in the CLI overview skill reference.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-23 17:25:59 +08:00
hogan 2dd452943a feat(mcp): promote MCP to top-level nav and add live tools list (#918)
## Summary

- Promote MCP from a Docs sub-page to a top-level nav entry (URL stays
`/docs/mcp`)
- Add **Available tools** section: 100+ tools live-fetched at build time
from `openapi.longbridge.com/mcp/tools.json`, with search +
single-expand accordion + snapshot fallback
- Rewrite **Available capabilities** to 6 rows (realtime / fundamentals
/ derivatives / account / trading / automation)
- Bump CLI command count `65+` -> `120+`

All changes synced across `en` / `zh-CN` / `zh-HK`.

## Test plan

- [ ] Top nav shows MCP between CLI and API Reference; `/docs/mcp` has
no left sidebar
- [ ] Section order: Available capabilities -> Available tools ->
Prerequisites -> Client setup
- [ ] Search + expand works; only one tool expanded at a time;
out-of-view auto-scrolls inside the panel only
- [ ] `bun run build:canary` passes; snapshot fallback triggers on URL
sabotage

---------

Co-authored-by: 袁章洪 <zhanghong.yuan@longbridge-inc.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 16:59:51 +08:00
Jason Lee dbe0e0ce6e docs(cli): add v0.17.3 release notes (#917)
## Summary

- Add v0.17.3 release notes to `release-notes.md` and `changelog.md` (en
/ zh-CN / zh-HK)
- Covers: token refresh hang fix, `auth status` three-state display,
`--auth-code` login fix, Windows browser URL fix
- Based on PRs: longbridge/longbridge-terminal#134, #136, #137

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 12:57:23 +08:00
Jason Lee 1f84bf5fed docs(cli): update command count from 50+ to 65+ (#914)
## Summary

- Update CLI command count from 50+ to 65+ across all pages and locales
- Files updated: CLI overview pages (en/zh-CN/zh-HK), homepage locale
files (en/zh-CN/zh-HK), and ArchCanvas component

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-21 11:08:31 +08:00
Jason Lee 66ebe4cad0 docs(cli): add v0.17.1 release notes (#911)
## Summary

- Add CLI v0.17.1 release notes to changelog and release-notes pages
(en, zh-CN, zh-HK)
- Update `longbridge-terminal` submodule to v0.17.1
- Documents `completion` command for shell tab-completion
(bash/zsh/fish/elvish/powershell)
- Documents new `User-Agent` and `x-cli-cmd` request headers

## Test plan

- [ ] Verify release notes render correctly in all three language
versions
- [ ] Check changelog entries are correctly dated (2026-04-20)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 17:20:16 +08:00
Jason Lee 0c7e6292ca docs(cli): add v0.17.0 release notes and new command docs (#899)
## Summary

- Add v0.17.0 release notes to `release-notes.md` and `changelog.md`
- New doc pages: `dca` (recurring investment), `sharelist` (community
stock lists), `short-positions` (US short interest data)
- Update `option.md`: fix `option chain` basic usage output (expiry
dates, not strikes); add `option volume` section
- Update `profit-analysis.md`: add `--start`/`--end` date range; updated
output format (percentage yields, new fields)
- All changes synced across en / zh-CN / zh-HK locales

## Test plan

- [ ] Build and verify new pages render correctly in sidebar
- [ ] Confirm `dca`, `sharelist`, `short-positions` pages appear under
correct categories
- [ ] Verify `option.md` and `profit-analysis.md` updates look correct

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-17 13:50:00 +08:00
Jason Lee ad09de0f9f docs(cli): fix v0.17.0 → v0.16.3 and add release notes (#897)
## Summary

- Rename incorrectly labeled `v0.17.0` entry to `v0.16.3` in
`release-notes.md` and `changelog.md` (all 3 locales: en / zh-CN /
zh-HK)
- Update changelog date from `2026-04-15` to `2026-04-16`
- Add v0.16.3 new content from
[longbridge/longbridge-terminal#114](https://github.com/longbridge/longbridge-terminal/pull/114):
  - Fix: US index symbols (`.DJI.US`, `.VIX.US`) now parse correctly
  - "Did you mean?" hints when a query returns no data

## Test plan

- [ ] Release Notes page shows `v0.16.3` (not `v0.17.0`) as the latest
entry
- [ ] Changelog shows `2026-04-16 / CLI v0.16.3` with all 4 bullet
points
- [ ] All 3 locales consistent

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 11:15:58 +08:00
Jason Lee 718abf3d76 docs(cli): add v0.17.0 commands and release notes (#896)
## Summary

- **`auth` subcommand group** (`longbridge/longbridge-terminal#109`):
updated `install.md` in all 3 locales — `login`/`logout` → `auth
login`/`auth logout`, added `auth status` section
- **`alert enable/disable`** (`longbridge/longbridge-terminal#108`):
updated `alert.md` in all 3 locales with enable/disable subcommand
examples
- Added **v0.17.0** entry to `release-notes.md` and `changelog.md` in
all 3 locales

## Test plan

- [ ] Install page shows `auth login` / `auth logout` / `auth status`
correctly
- [ ] Alert page shows `enable` / `disable` examples
- [ ] Release notes and changelog show v0.17.0 at the top

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 09:56:42 +08:00
Jason Lee c80b23cc0c docs: Add Theta/Vega/Rho unit notes and CLI v0.16.1 release notes (#895)
## Summary
- **calc-index API docs** (EN+CN): Document that Theta, Vega, and Rho
raw values need to be divided by 100 for standard per-share conventions
- **CLI release notes** (EN+CN): Add v0.16.1 covering:
  - `option quote` full API field output
  - `calc-index` Greeks normalization (÷100)
  - `calc-index` auto-detect option symbols for default fields
- Parameter standardization from longbridge/longbridge-terminal#102:
`--adjust none/forward`, `--tif day/gtc/gtd`, `--format table`,
`--start/--end` for finance-calendar, `--start-date` YYYY-MM-DD for
statement
- Command name revert from longbridge/longbridge-terminal#105:
`overview` → `static`, `metrics` → `calc-index`

## Related PRs
- longbridge/longbridge-terminal#104 — option quote + Greeks
normalization
- longbridge/longbridge-terminal#105 — revert command renames
- longbridge/longbridge-terminal#102 — parameter standardization

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-14 22:00:57 +08:00
ihavecoke 9bbbeb6cc0 Fix homepage dark/light logos, SDK bento code accuracy, and hover card spacing (#894)
## Summary

- **Dark/light logo**: Replace single navbar logo with separate
light/dark
  variants using VitePress `logo.light` / `logo.dark` config fields.
- **SDK bento code examples**: Corrected C++ API patterns (all 4 domains
  used wrong `::new()` + `.get()` synchronous style — replaced with
  `::create()` + callback-based model, `SubFlags::QUOTE()`, aggregate
  `SubmitOrderOptions` init). Fixed Go `AccountBalance` missing second
  parameter. Replaced all example symbols with `AAPL.US`.
- **Hover card spacing**: Normalize horizontal padding across header,
  items, and footer for consistent alignment; increase row gap and item
  padding for better readability.

## Files Changed

| File | Change |
|------|--------|
| `docs/.vitepress/config.mts` | Split logo into `light`/`dark` variants
|
| `NewHomePage/ProductOpenAPI.vue` | Fix 24 SDK code snippets (C++ API
model + symbols) |
| `NewHomePage/PlatformStats.vue` | Normalize hover card padding/gap
values |
2026-04-14 14:51:15 +08:00
ihavecoke 904aeb8b5b Fix stats-grid popover item links and icon alignment (#891)
- Remove clickable links from hover card items in stats-grid popover
- Change hc-item align-items from flex-start to center for icon
alignment
- Fix URL formatting in llm.md across all three locales

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 10:37:56 +08:00
Jason Lee 3f66b191fb docs(cli): add v0.16.0 commands and release notes (#889)
## Summary

- Add documentation for 14 new CLI commands introduced in v0.16.0 across
all three languages (en/zh-CN/zh-HK), each with real command output
examples
- New commands: `company`, `executive`, `industry-valuation`,
`operating`, `corp-action`, `invest-relation`, `constituent`,
`market-status`, `broker-holding`, `ah-premium`, `trade-stats`,
`anomaly`, `alert`, `profit-analysis`
- Add v0.16.0 release notes and changelog entries
- Add `intraday --date` historical data documentation
- Change TUI sidebar icon to `square-terminal`
- Translate Chinese text in English docs (`participants`, `fund-holder`)
- Fix aside TOC unnecessary scroll and breadcrumb border overlap
- Homepage and dark mode refinements
- Update `longbridge-terminal` submodule to latest main

## Test plan

- [ ] Verify all 14 new command pages render correctly in en/zh-CN/zh-HK
- [ ] Verify release notes and changelog display properly
- [ ] Verify TUI sidebar icon shows correctly
- [ ] Verify aside TOC no longer scrolls when content fits
- [ ] Verify breadcrumb border no longer overlaps with TOC

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 22:13:37 +08:00
ihavecoke b6e83e209a Rebuild homepage with new brand design system and interactive sections (#888)
## Summary

A complete overhaul of the Longbridge Developers homepage, introducing a
new brand design system built on inspira-ui animations, interactive
product showcases, and a unified multi-language content structure.

  ### New homepage sections
- **HeroSection** — Animated FlickeringGrid background, ColourfulText
rotating product showcase, interactive CTA buttons
- **PlatformStats** — 4 key stats with animated NumberTicker and hover
detail cards
- **CapSection** — Developer capability highlights with Spotlight +
Expand hover interaction
- **ArchSection** — Architecture diagram (custom SVG bus-topology) with
SdkMarquee
- **ProductCLI** — Interactive terminal mockup with real CLI output,
theme-aware (follows VitePress isDark), click-to-switch features
- **ProductMCP** — Custom SVG bus-topology diagram replacing VueFlow,
per-client config panels (shell/JSON/UI), tab sync with diagram
- **ProductSkill** — AI agent simulator with macOS traffic light dots
and install flow
- **ProductOpenAPI** — Bento Grid SDK showcase with Shiki syntax
highlighting, 6 SDKs × 4 domain code examples
  - **GetStarted** — Quick-start cards

  ### Design system additions
- 15+ inspira-ui animation components (`FlickeringGrid`,
`ColourfulText`, `NumberTicker`, `BorderBeam`, `Marquee`,
`AnimatedBeam`, etc.)
  - Tailwind CSS integration (`postcss.config.mjs`, `tailwind.css`)
- Unified section styles: consistent title/subtitle spacing (24px gap),
muted subtitle color, 14px minimum font size

  ### i18n
  - 150+ new keys added across `en.json`, `zh-CN.json`, `zh-HK.json`
  - All three locales kept in sync
2026-04-13 19:57:54 +08:00
Jeremy Feng c9bacd5fa1 docs: fix typo in supported trading categories section (#887) 2026-04-13 14:51:27 +08:00
Jason Lee be6a8cbfd9 docs(cli): add missing subcommands and statement docs (#886)
## Summary
- **topic**: Added `mine`, `create`, `replies`, `create-reply`
subcommand docs (previously only had list and detail)
- **kline**: Fixed `history` subcommand syntax — was incorrectly using
non-existent top-level `--start`/`--end` flags
- **investors**: Added `changes` subcommand for comparing position
changes between two 13F filings
- **statement**: Created new command docs covering `list` and `export`
subcommands (was completely missing)

All changes synced across en, zh-CN, zh-HK.

## Test plan
- [ ] Verify `bun run dev` builds without errors
- [ ] Check topic, kline, investors, statement pages render correctly in
all 3 languages
- [ ] Confirm sidebar shows statement under Portfolio & Account section

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-11 23:39:32 +08:00
Jason Lee 4b99892fe5 docs(cli): replace iframe with SVG image link for asciinema demo
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 18:47:22 +08:00
Jason Lee 960eb57c37 chore: Fix zh-CN, zh-HK docs/cli copy. 2026-04-10 18:16:56 +08:00
Jason Lee 686b1179b0 chore: Fix docs/cli copy. 2026-04-10 16:58:40 +08:00
Jason Lee d60149a899 style: navbar glass, sidebar bg, doc gradient, search pill, nav feedback (#884)
## Summary

- Navbar glass blur + border-bottom on scroll (CSS variables for
light/dark)
- Soften `--vp-c-divider`; sidebar background matches page background
- Radial brand-color gradient on `.VPDoc` content area
- Remove `padding-right` from `.VPContent.has-sidebar` so gradient fills
full width
- Search button rounded to pill style
- Nav item "Issues" → "Feedback" across all 3 locales
- Remove `<TryIt/>` button auto-injection from `gen-try-it` plugin

## Test plan

- [ ] Scroll docs page — navbar should show blur + subtle border-bottom
- [ ] Check light and dark mode — navbar bg/border variables apply
correctly
- [ ] Sidebar background blends with page (no distinct bg color)
- [ ] Doc pages show subtle teal radial gradient at top
- [ ] Gradient fills full width (no right-side truncation)
- [ ] Search button appears pill-shaped
- [ ] Nav shows "Feedback" (not "Issues") in all locales
- [ ] API reference pages no longer show Try It button

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 16:38:47 +08:00
Jason Lee 7d0022c8d9 docs: Fix CLI pages in cn region. (#883)
## Summary

- Rename `installation.md` → `install.md` in all three locales (en,
zh-CN, zh-HK)
- Update all internal links pointing to `/docs/cli/installation`
- Update sidebar `includes('installation')` matcher
- Add `/docs/cli/index.md` and `/docs/cli/install.md` to cn region
whitelist (`open.longbridge.cn`)

## Test plan

- [ ] Verify `/docs/cli/install` loads correctly
- [ ] Verify `/zh-CN/docs/cli/install` and `/zh-HK/docs/cli/install`
load correctly
- [ ] Verify sidebar Installation link works in all locales
- [ ] Verify `bun run dev:cn` shows `/docs/cli` and `/docs/cli/install`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 15:52:46 +08:00
Jason Lee 77c7e128b9 feat(cli): Add cli full commands docs. (#882)
## Summary

- Add `github` icon SVG to `SIDEBAR_ICONS` in `gen.ts`
- Export `SIDEBAR_ICONS_MAP` for use in sidebar configs
- Fix zh-CN/zh-HK sidebar link generation to include locale prefix
(fixes link doubling bug)
- Inject GitHub repo link after Installation item in CLI sidebar for all
three locales (en, zh-CN, zh-HK)

## Test plan

- [ ] Verify CLI sidebar shows: Overview → Installation → GitHub (with
icon) → Market Data → ...
- [ ] Verify GitHub link works and opens
`https://github.com/longbridge/longbridge-terminal`
- [ ] Verify zh-CN and zh-HK CLI sidebar links are correct (no doubling)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 15:33:28 +08:00
Jason Lee d3444dc3b4 fix: update issue links from longbridge/openapi to longbridge/developers (#880)
Issues 已从 longbridge/openapi 迁移至 longbridge/developers,同步更新文档中所有相关链接。

## 修改内容

- `docs/.vitepress/locales/{en,zh-CN,zh-HK}/nav.ts` — 导航栏 Issues 链接
- `docs/{en,zh-CN,zh-HK}/docs/getting-started.md` — 文档正文中的 Issues 链接
2026-04-10 11:49:27 +08:00
Jason Lee addaff62b9 feat(nav): add frosted glass blur effect on scroll (#415)
## Summary

- 滚动后导航栏显示玻璃模糊效果(`backdrop-filter: blur(15px)` + 半透明背景)
- 利用 VitePress 内置的 `.top` 类(`y === 0` 时添加,滚动后移除)触发样式切换
- 支持 dark mode(深色半透明背景)
- 隐藏滚动后的底部分隔线

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 10:13:41 +08:00
Jason Lee d8e0d9fc67 docs(cli): Add insider-trades, investors commands. (#412)
## Summary

- Rename `longbridge balance` to `longbridge assets` in CLI docs
(en/zh-CN/zh-HK)
- Update page title from "Get Account Balance" to "Get Account Assets"
in `trade/asset/account.md`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-09 22:39:39 +08:00
Cooooooker 56be71dfc8 docs: Add is_pinned field to watchlist and limit hashtags to 1 (#413)
- Add `is_pinned` boolean field to watchlist groups API response
- Update create_topic hashtags maximum from 5 to 1

Co-authored-by: chengzhipeng <zhipeng.cheng@longbridge-inc.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 18:45:49 +08:00
Jason Lee f63b957d98 docs(cli): add v0.14.1 and v0.14.2 release notes (#411)
## Summary
- Add v0.14.2 release notes: `--lang` global flag for content language
- Add v0.14.1 release notes: CN region login support, `-v` flag
- Updated in cli.md and changelog.md across all three language versions
(en, zh-CN, zh-HK)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 17:26:22 +08:00
Jason Lee 85c8be3789 fix(footer): update privacy policy URL (#410)
## Summary
- Update privacy policy link in footer to
`https://longbridge.com/hk/support/topics/accountsecurity/c0yg7`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 17:09:04 +08:00
Jason Lee 33813fcc2b docs(mcp): add Codex client setup and remove ChatGPT (#408)
## Summary
- Add Codex client setup instructions with detailed GUI steps (Settings
→ MCP Servers → Add Server, Streamable HTTP, then Authenticate)
- Remove ChatGPT from the client list (MCP installation not supported)
- Changes applied across all three language versions (en, zh-CN, zh-HK)

## Test plan
- [ ] Verify Codex setup steps are accurate and complete
- [ ] Confirm ChatGPT entry is removed from all three language files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 16:53:25 +08:00
hold-baby 7341efc2d0 fix(docs): correct README URLs missing /docs/ prefix (#409)
## Summary
  - Fixed 7 URLs in README.md that were missing the `/docs/` prefix
- `/api`, `/cli`, `/mcp`, `/llm` → `/docs/api`, `/docs/cli`,
`/docs/mcp`, `/docs/llm`
- Pages under `docs/en/docs/` resolve to `/docs/...` per the
`rewriteMarkdownPath` routing logic, but README linked without the
prefix

Co-authored-by: 袁昌瑞 <changrui.yuan@longbridge-inc.com>
2026-04-08 16:38:51 +08:00
Jason Lee 5918efb5cb docs(quote): clarify overnight quote requires LV1 quote card and US stocks only (#407)
## Summary

Closes https://github.com/longbridge/openapi/issues/514

-
在所有涉及夜盘的文档位置(getting-started、qa/quote、pull/quote、candlestick、history-candlestick)补充说明:
  - 夜盘数据默认不包含,需购买「LV1 实时行情 (OpenAPI)」行情卡
  - 目前夜盘行情仅支持美股,港股暂不支持
- 三语言(EN / zh-CN / zh-HK)同步更新

## Test plan

- [ ] 预览各文档页面,确认说明文字正确显示
- [ ] 确认 zh-CN / zh-HK 简繁体内容一致

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-08 16:10:20 +08:00
Jason Lee 651007e619 docs: Remove invalid docs. 2026-04-03 22:20:01 +08:00
Jason Lee 91e46f9024 docs(skill): add Skill install step and CN mirror download link (#406)
## Summary

- Add **Step 1 — Install the Skill** section to the English install page
(was missing `npx skills add longbridge/developers` command and ZIP
download link), bringing it in line with zh-CN/zh-HK
- Add CN mirror download URL
(`https://open.longbridge.cn/skill/longbridge.zip`) for `longbridge.zip`
across all three locales
- Fix relative ZIP paths (`/skill/longbridge.zip`) to absolute URLs in
zh-CN/zh-HK
- Restructure English page sections: `Method 1/2` → `Step 2 Method A/B`

## Test plan

- [ ] Verify EN install page shows Step 1 with npx command and ZIP
download (with CN mirror link)
- [ ] Verify zh-CN and zh-HK pages show CN mirror link next to ZIP
download

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 22:12:23 +08:00
hold-baby 267a813a7d feat(region): add China region build with page whitelist, URL rewriti… (#405)
…ng and independent deployment

Co-authored-by: 袁昌瑞 <changrui.yuan@longbridge-inc.com>
2026-04-03 21:33:12 +08:00
Jason Lee 2844f33412 docs: Update CLI auth to device flow and add v0.14.0 release notes (#404)
## Summary

- Update authentication docs: OAuth browser flow → OAuth Device Auth
Flow (works in local, SSH, headless environments)
- Remove `--headless` references
- Add v0.14.0 release notes across all three languages (en, zh-CN,
zh-HK)

## v0.14.0 highlights

- Device auth login as default (`--headless` removed)
- Order enhancements: trailing stop, AO order type, `--expire-date`,
`--outside-rth`, `--remark`
- Linux segfault fix via musl binary

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 17:30:06 +08:00
Jason Lee 8d4dc396a7 ci: add Cloudflare Pages deployment to release workflow (#403)
## Summary

- Add `workflow_dispatch` trigger to `release.yml` for manual runs
- Deploy to Cloudflare Pages project `developers` after existing Aliyun
OSS upload (parallel deployment)

## Required Secrets

Add these to GitHub repo Secrets before merging:
- `CLOUDFLARE_API_TOKEN`
- `CLOUDFLARE_ACCOUNT_ID`

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 17:13:40 +08:00
Jason Lee 0fc2a5de13 Update submodule. 2026-04-02 10:56:24 +08:00
Jason Lee ec6399fec0 docs: Update scoop install URL. 2026-04-02 10:53:15 +08:00
Jason Lee d8fe8f36f2 fix: Update Scoop install path to .scoop/longbridge.json (#402)
## Summary

- Rename `scoop.json` → `.scoop/longbridge.json` in
`longbridge-terminal` submodule — Scoop requires the manifest filename
to match the app name
- Update Scoop install command in docs (en / zh-CN / zh-HK) to point to
the new path

## Test plan

- [ ] Verify `scoop install
https://raw.githubusercontent.com/longbridge/longbridge-terminal/main/.scoop/longbridge.json`
installs successfully on Windows

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-02 10:40:49 +08:00
Jason Lee dc68e0caec docs: Add Windows Scoop install, Revoking Authorization, and skills.sh link (#401)
## Summary

- Add Windows [Scoop](https://scoop.sh) installation option across all
docs (`cli.md` en/zh-CN/zh-HK, `skill/install` en/zh-CN/zh-HK, skill
references)
- Add **Revoking Authorization** section to `skill/install`
troubleshooting and `references/setup.md`
- Add "Also available on skills.sh and GitHub." link below the ZIP
download button in `Skill.vue`

The Scoop manifest (`longbridge.json`) and auto-update workflow
(`update-scoop.yml`) are in a separate commit in the
`longbridge-terminal` submodule.

## Test plan

- [ ] Verify Scoop install command renders correctly in all 3 language
versions of `cli.md` and `skill/install`
- [ ] Verify Revoking Authorization appears in Troubleshooting section
(en) and 常见问题 (zh-CN/zh-HK)
- [ ] Verify "Also available on skills.sh and GitHub." appears below ZIP
download button on skill page
- [ ] Confirm `longbridge.json` is valid JSON and Scoop can parse it

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 20:43:39 +08:00
Jason Lee b99cfdf896 feat(skill): revamp install guide and add capability reference (#400)
## Summary

- Simplified install pages (en/zh-CN/zh-HK) to a clean two-step
structure: install Skill → connect account (CLI or MCP)
- Added npx/bunx install commands with Node.js/Bun environment notes
- Added Windows binary install instructions (download zip from GitHub
Releases)
- Added Homebrew install link for macOS, Linux-specific curl command
- Added mainland China MCP accelerated endpoint
(`openapi.longbridge.cn/mcp`)
- Added Claude Desktop, Gemini CLI, Warp to supported MCP clients table
- Added "Why Claude.ai and ChatGPT.com don't work" explanation section
- Added **Capability Reference** section to Skill.vue — 6-card 3×2 grid
covering all CLI/MCP capabilities
- Restored heroClients list to original five (OpenClaw, ChatGPT, Claude,
Claude Code, Codex)

## Test plan

- [ ] Build passes (`bun run build:canary`)
- [ ] Skill page renders capability reference section correctly across
en/zh-CN/zh-HK
- [ ] Install pages display correctly in all three languages
- [ ] MCP table and Windows install instructions render as expected

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 19:29:45 +08:00
Jason Lee 2a5b6a3840 docs: update changelog with recent API and CLI changes (#399)
## Summary

- Add **CLI v0.13.0** Fundamentals & Analysis section (10 new commands:
`financial-report`, `valuation`, `forecast-eps`, `consensus`,
`institution-rating`, `shareholder`, `fund-holder`, `dividend`,
`finance-calendar`, `exchange-rate`) + domain-grouped naming refactor
- Add **Statement API** (`GET /v1/statement/list`, `GET
/v1/statement/download`)
- Add **Community API** (my topics, create topic, topic detail, topic
replies, create reply)
- Bump `longbridge-terminal`, `openapi`, `openapi-go` submodules
- All three locales (en / zh-CN / zh-HK) kept in sync

## Test plan

- [ ] Verify changelog page renders correctly in all 3 locales (`bun run
dev`)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 13:34:35 +08:00
Jason Lee 00e156831b docs(cli): add fundamentals & analysis commands for v0.13.0 (#398)
## Summary

- Add new **Fundamentals & analysis** section to CLI docs (EN / zh-CN /
zh-HK)
- Documents 10 new commands introduced in [longbridge-terminal
v0.13.0](https://github.com/longbridge/longbridge-terminal/releases/tag/v0.13.0):
  - `financial-report` — financial statements with period/type filters
- `valuation` — P/E, P/B, P/S, dividend yield snapshot + peer comparison
+ history mode
  - `forecast-eps` — analyst EPS forecast consensus
- `consensus` — revenue/profit/EPS consensus with beat/miss annotations
- `institution-rating` / `institution-rating detail` — rating
distribution and monthly trends
- `shareholder` — institutional shareholders with change tracking and
sort options
  - `fund-holder` — funds and ETFs holding a symbol
- `dividend` / `dividend detail` — dividend history and distribution
plan
- `finance-calendar` — financial calendar by event type (financial,
report, dividend, ipo, macrodata, closed)
  - `exchange-rate` — exchange rates for all supported currencies

## Test plan

- [ ] Verify new section renders correctly in dev preview (`bun run
dev`)
- [ ] Confirm all three language versions are in sync

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 11:51:18 +08:00
Jason Lee cf021667ff cli: Refactor domain-grouped command names (#397)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 11:32:36 +08:00
Jason Lee c15e95cf4f fix(skill): Update hero title to avoid compliance risk (#396)
## Summary

- 将 Skill 页面 Hero 标题从「解锁投资、分析能力」改为「解锁市场洞察、深度研究与智能交易」
- 修复原文标点歧义(「投资、分析」被误读为两个独立词),同时规避合规风险
- 同步更新 EN / zh-CN / zh-HK 三个语言版本

## Test plan

- [ ] 访问 Skill 页面,确认三语言标题显示正确

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 18:22:00 +08:00
Jason Lee 4aee8d0064 docs(skill): add CLI update section to longbridge skill references (#394)
## Summary

- 新增 `## Update` 小节至 `references/cli/overview.md`,介绍 `longbridge update`
和重跑安装脚本两种升级方式
- 新增 `## CLI Update` 小节至 `references/setup.md`,同步升级说明
- 将 `longbridge update` 从 Authentication 列表中移出,归入专属 Update 小节

## Test plan

- [ ] 确认 `longbridge update` 命令可正常执行
- [ ] 确认重跑安装脚本可升级到最新版本

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 15:18:00 +08:00
geomantic_omen 137ffc9329 docs: Add statement API documentation. (#393)
feat(statement): add account statement CLI commands and API
documentation

- Add statement list and export CLI command examples to docs (en, zh-CN,
zh-HK)
- Document daily and monthly statement listing with filtering options
- Document statement export with section selection and output format
options (Markdown, CSV)
- Add Statement tag and endpoints to OpenAPI spec (/v1/statement/list,
/v1/statement/download)
- Add statement reference documentation to CLI skill guide
- Create comprehensive statement.md reference guide for CLI usage and
examples

---------

Co-authored-by: geomantic <lei.zhong@longbridge-inc.com>
Co-authored-by: Jason Lee <huacnlee@gmail.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 14:59:03 +08:00
Jason Lee b93ed2efc8 feat: update OG meta tags with new image and Twitter Card improvements (#391)
## Summary

- Replace OG image with new Longbridge branded PNG (`longbridge-og.png`)
- Add `og:image:type` and `og:image:alt` to all locale heads
- Upgrade `twitter:card` from `summary` to `summary_large_image` (shows
full banner image on Twitter/X instead of small thumbnail)
- Add `twitter:image` via `transformHead` (per-page)
- Normalize `og:site_name` to `Longbridge Developers` across en / zh-CN
/ zh-HK

## Test plan

- [ ] Build and verify meta tags in rendered HTML
- [ ] Use [Twitter Card
Validator](https://cards-dev.twitter.com/validator) to confirm large
image preview
- [ ] Use [Facebook Sharing
Debugger](https://developers.facebook.com/tools/debug/) to confirm OG
tags

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-27 15:07:42 +08:00
Jason Lee e61c421395 feat: add CliCommand block with syntax highlighting and multi-example docs (#390)
## Summary

- New markdown-it plugin (`cli-command.ts`) renders `<CliCommand>` tags
as styled code blocks with proper shiki dual-theme color variables
(`--shiki-light` / `--shiki-dark`) for syntax highlighting: longbridge
binary (purple), subcommands (blue), args and inline comments (gray)
- Header changed from compact bar to h2-style title matching SDK Links
section; Install CLI link floats right with no border, pointing to
`/docs/cli`
- Single-line `<CliCommand>content</CliCommand>` tokens (parsed as
paragraph > inline by markdown-it) now correctly handled via Case 2
token splice
- Expanded all non-trade `<CliCommand>` blocks from single-line to
multi-line format with 2–4 real verified examples per command and
locale-aware comments (en / zh-CN / zh-HK) across quote pull, content,
subscribe, security, and watchlist docs

## Test plan

- [ ] Run `bun run dev` and verify CliCommand blocks render with correct
syntax highlighting in light and dark mode
- [ ] Verify h2 title "CLI" appears with Install CLI link on the right
(no border)
- [ ] Verify Install CLI link points to `/docs/cli`
- [ ] Check a few pages across en / zh-CN / zh-HK locales

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-27 14:19:36 +08:00
Jason Lee 36734e7e02 feat: add topic detail, replies, and create reply APIs with docs (#389)
## Summary

- **openapi.yaml**: add 3 new endpoints (`GET /content/topics/{id}`,
`GET /POST /content/topics/{topic_id}/comments`) with rich Markdown
descriptions, rate-limit tables, and tickers abuse warnings; rename
`list_topic_comments` → `list_topic_replies` and `create_topic_comment`
→ `create_topic_reply` throughout
- **docs (en / zh-CN / zh-HK)**: new pages for `topic_detail`,
`topic_replies`, `create_reply`; update `create_topic` schema to full
`OwnedTopic` response; sync permission copy, rate-limit wording, and
`TipContainer` highlights across all locales
- **ApiReference.vue**: minor formatting cleanup

## Test plan

- [ ] Run `bun run dev` and verify the 3 new pages render correctly in
all 3 locales
- [ ] Confirm `create_topic` response schema now shows the full
OwnedTopic fields
- [ ] Confirm TipContainer warning appears on create_topic and
create_reply pages
- [ ] Verify API reference page shows the renamed operationIds

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 20:14:49 +08:00
Jason Lee a222a0e781 build: copy skill/install routes to flat paths post-build (#388)
## Summary

- 新增 `scripts/copy-routes.ts` post-build 脚本,在构建完成后将
`skill/install/index.html` 和 `skill/install/index.md` 分别复制到
`skill/install.html` 和 `skill/install.md`
- 在 `build:canary` 和 `build:release` 命令末尾追加 `bun run
build:copy-routes`,确保每次构建自动执行

## 背景

部署服务器对 `.html` 有目录回退规则(`/skill/install` → `install.html` 或
`install/index.html`),但 `.md` 没有此规则,导致两种格式的访问路径不一致。此脚本确保两个位置的文件同时存在。

## Test plan

- [ ] 运行 `bun run build:canary` 或 `bun run build:release`,确认
`dist/skill/install.html` 和 `dist/skill/install.md` 均存在
- [ ] 确认 `dist/skill/install/index.html` 和 `dist/skill/install/index.md`
仍然存在

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-26 15:49:58 +08:00