Skip to content

fix(hupu): add mentions command#757

Merged
jackwener merged 5 commits intojackwener:mainfrom
zhangtaopy:hupu-reply-fix
Apr 4, 2026
Merged

fix(hupu): add mentions command#757
jackwener merged 5 commits intojackwener:mainfrom
zhangtaopy:hupu-reply-fix

Conversation

@zhangtaopy
Copy link
Copy Markdown
Contributor

Summary

This PR adds a new hupu mentions command to the Hupu browser adapter.

It reads mention notifications from my.hupu.com through the browser page context and reuses the logged-in browser session, without manual cookie handling.

Changes

  • add hupu mentions command
  • support reading mention notifications from my.hupu.com
  • return fields such as username, thread_title, post_content, quote_content, reply_url, and pagination info
  • update Hupu documentation in README and adapter docs

Testing

  • npm run build
  • npm run typecheck
  • node dist/main.js hupu mentions --limit 5 -f json

Copy link
Copy Markdown

@vaelephant vaelephant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@vaelephant
Copy link
Copy Markdown

ok

zhangtaopy and others added 5 commits April 5, 2026 03:24
- Merge postHupuJson and postHupuReplyJson into single function with mode parameter
- Move stripHtml and decodeHtmlEntities to utils.ts, remove duplicate definitions
Post PR jackwener#782 restructure: adapter files live at root clis/, not src/clis/.
@jackwener jackwener merged commit 8bd36aa into jackwener:main Apr 4, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants