mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
9c99cbf8ab
* feat(xueqiu): add danjuan fund account commands * refactor(xueqiu): convert danjuan fund YAML adapters to TS - Replace 3 YAML files with 4 TS files (shared utils + 3 commands) - Extract shared helpers: fetchDanjuanApi, fetchAssetGain, collectHoldings - Fix double-navigation by using navigateBefore instead of pipeline navigate - Unify error messages to English with Hint pattern - Mask real account ID in docs example - Add explicit default for --account arg * refactor(xueqiu): optimize danjuan fund adapters - Single page.evaluate with Promise.all for parallel account fetching (1 browser round-trip instead of N+1) - Merge fund-accounts into fund-holdings (account info visible per row) - 3 files: danjuan-utils.ts (shared), fund-holdings.ts, fund-snapshot.ts - Strong TypeScript interfaces for all data shapes - Update docs to reflect 2-command design * fix(xueqiu): preserve danjuan pre-navigation metadata * fix(xueqiu): fail on incomplete danjuan snapshots --------- Co-authored-by: jackwener <jakevingoo@gmail.com>