mirror of
https://github.com/jackwener/OpenCLI.git
synced 2026-09-14 18:25:42 +08:00
1d87cde513
* feat(zhihu): add user profile + answers/articles/following/followers/pins read commands Enriches Zhihu read coverage with 6 new /api/v4 commands (all live-verified against a logged-in account): - `zhihu user <user>` — profile (follower/following/answer/article/voteup counts) - `zhihu user-answers <user>`— a user's answers (votes/comments/url) - `zhihu user-articles <user>`— a user's articles (专栏) - `zhihu following <user>` — followees - `zhihu followers <user>` — followers - `zhihu pins <user>` — 想法 (short posts) Each accepts a url_token, `user:<slug>`, or people URL (shared `parseZhihuUser`). List commands share a `fetchZhihuList` paginator (cookie fetch + paging.next + typed errors: AuthRequiredError on 401/403, NOT_FOUND on 404, FETCH_ERROR else). Tests: 6 new suites (happy path + auth/limit edges). Full suite 5551 passed; typed-error-lint and silent-column-drop new=0. * fix(zhihu): harden user read commands * fix(zhihu): keep user pagination on same endpoint