Skip to content

feat: migrate opencli to v1.0.2 and preserve xiaohongshu creator flows#124

Merged
jackwener merged 2 commits intojackwener:mainfrom
ajia1206:codex/opencli-v1.0.2-xhs
Mar 20, 2026
Merged

feat: migrate opencli to v1.0.2 and preserve xiaohongshu creator flows#124
jackwener merged 2 commits intojackwener:mainfrom
ajia1206:codex/opencli-v1.0.2-xhs

Conversation

@ajia1206
Copy link
Contributor

Summary

This PR migrates the local Xiaohongshu creator customization from the old v0.9.8-based setup onto upstream v1.0.3, while keeping the creator workflows usable under the new Browser Bridge architecture.

What changed

  • migrate the local customization onto the current upstream main line
  • preserve Xiaohongshu creator note list and note detail enhancements
  • add creator-notes-summary for batch note review
  • restore note id and detail url extraction in Browser Bridge fallback mode
  • fix ws typings in src/browser/cdp.ts and src/daemon.ts so the current main branch builds cleanly
  • ignore .DS_Store noise
  • align Xiaohongshu page mocks with the current IPage interface by adding getCookies

Xiaohongshu creator coverage

The following flows are preserved and working after migration:

  • creator-profile
  • creator-stats
  • creator-notes
  • creator-note-detail

Enhancements kept in this PR:

  • creator-notes can recover note_id / detail url even when falling back to DOM parsing
  • creator-note-detail keeps the richer single-note parsing flow
  • creator-notes-summary adds a compact batch summary command for recent notes

Verification

Ran successfully:

  • npm run build
  • npx vitest run src/clis/xiaohongshu/creator-notes.test.ts src/clis/xiaohongshu/creator-note-detail.test.ts src/clis/xiaohongshu/creator-notes-summary.test.ts --reporter=verbose

Results:

  • build passed
  • 3 test files passed
  • 9 tests passed

Notes

  • this branch is rebased onto the latest upstream main
  • the migrated code is intended to work with the new Browser Bridge path on current upstream
  • old OPENCLI_CDP_ENDPOINT-only assumptions were removed from the default path

- migrate local opencli customization onto upstream v1.0.2
- keep xiaohongshu creator notes and note-detail enhancements
- add creator-notes-summary command and tests
- restore note id/url extraction under Browser Bridge fallback
- fix ws typings in cdp and daemon so v1.0.2 builds cleanly
- ignore macOS .DS_Store noise
@jackwener jackwener merged commit 8f17259 into jackwener:main Mar 20, 2026
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.

2 participants