feat: migrate opencli to v1.0.2 and preserve xiaohongshu creator flows#124
Merged
jackwener merged 2 commits intojackwener:mainfrom Mar 20, 2026
Merged
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR migrates the local Xiaohongshu creator customization from the old
v0.9.8-based setup onto upstreamv1.0.3, while keeping the creator workflows usable under the new Browser Bridge architecture.What changed
creator-notes-summaryfor batch note reviewidand detailurlextraction in Browser Bridge fallback modewstypings insrc/browser/cdp.tsandsrc/daemon.tsso the current main branch builds cleanly.DS_StorenoiseIPageinterface by addinggetCookiesXiaohongshu creator coverage
The following flows are preserved and working after migration:
creator-profilecreator-statscreator-notescreator-note-detailEnhancements kept in this PR:
creator-notescan recovernote_id/ detailurleven when falling back to DOM parsingcreator-note-detailkeeps the richer single-note parsing flowcreator-notes-summaryadds a compact batch summary command for recent notesVerification
Ran successfully:
npm run buildnpx 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=verboseResults:
Notes
mainOPENCLI_CDP_ENDPOINT-only assumptions were removed from the default path