mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
144629740d
* feat(bilibili): add --top to fetch pinned comments The comments command already fetches /x/v2/reply/main, whose response includes top_replies (置顶评论) alongside regular replies but discarded them. Add a --top flag that returns only the pinned comments. - --top reads data.top_replies (reusing formatReplyRow) - --top is mutually exclusive with --parent (楼中楼 threads have no top_replies) and raises ArgumentError before any request - generalize requireReplies to accept a key; absent top_replies is treated as empty, and an empty pinned list raises EmptyResultError Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * fix(bilibili): harden pinned comment contract --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Co-authored-by: jackwener <jakevingoo@gmail.com>