mirror of
https://github.com/xpzouying/xiaohongshu-mcp.git
synced 2026-08-29 02:04:08 +08:00
98d65a473a
* fix(mcp): reply_comment_in_feed 补上 panic 保护 13 个工具里只有它没包 withPanicRecovery,而其调用链有 MustEval 与 MustScrollIntoView,page 超时或取消时 panic 会逃逸到 SDK。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(feed): 评论总数改读 __INITIAL_STATE__ getTotalCommentCount 原先取 .comments-container .total 的文案再正则 提取「共 N 条评论」,实测取不到,恒返回 0(该值只用于一行 Debug 日志, 所以一直没被发现)。 改为读 noteDetailMap 里的 interactInfo.commentCount,不依赖评论区文案。 实测两条笔记分别返回 7 与 23,与页面数据一致。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * docs: 修正 feeds 列表接口的 interactInfo 说明 推荐流实际只下发 liked 与 likedCount,文档样例却写了 commentCount、 collectedCount、sharedCount 并逐条解释,使用者照着写会取到空字符串。 样例改为真实形态,并补充说明:需要评论数请用搜索或详情接口(这两个 接口确实下发,实测确认,对应章节的样例保持不变)。likedCount 补注 是格式化字符串。 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>