feat(opencli): add Xiaohongshu ask adapter overlay#1315
Conversation
|
Warning Review limit reached
More reviews will be available in 5 minutes and 49 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces a new adapter override for Xiaohongshu's "ask" command (xiaohongshu-ask.ts), which interacts with the site's webpack conversation store to query "点点" and retrieve answers along with citation sources. The adapter is registered in adapter-registry.ts, and corresponding integration tests have been added to verify its discovery and functionality. I have no feedback to provide as there are no review comments and the implementation is complete.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Summary
Adds a PawWork-local OpenCLI overlay for the upstream
xiaohongshu/askadapter soopencli_searchcan discover the Xiaohongshu 点点 command before the next OpenCLI npm release.There is no related issue; this ports a newly landed OpenCLI adapter update into PawWork's pinned
@jackwener/opencli@1.8.3integration.Why
@jackwener/opencliis still published at1.8.3, so PawWork cannot get this adapter through a dependency bump yet. The overlay keeps the change narrow and removable: once an OpenCLI release includesxiaohongshu/ask, this can be replaced by a package bump.Related Issue
No issue.
Human Review Status
Pending
Review Focus
Please focus on whether the overlay is the smallest acceptable bridge until OpenCLI publishes a version containing
xiaohongshu/ask, and whether the registration path is sufficiently covered in both source tests and the embedded server build.Risk Notes
The adapter source is vendored from OpenCLI commit
c027944380253bd14f533e66a65657456614f081with only// @ts-nocheckadded so PawWork can import the upstream JS adapter unchanged. This should be removed in favor of a dependency bump when OpenCLI publishes a release containing the command.No visible UI changed, so no screenshots are included. The desktop embedded-server packaging path is covered by the built-node OpenCLI adapter test.
How To Verify
Screenshots or Recordings
Not required; no visible UI changed.
Checklist
bug,enhancement,task,documentation. Type labels are author-added; the labeler bot does NOT assign them. Add the label in the GitHub UI, then tick this.app,ui,platform,harness,ci. The labeler bot assigns these on PR open based on changed paths. Confirm the bot's choice (or override if wrong), then tick this.P0,P1,P2,P3. The priority-triage bot suggests one on PR open. Confirm or override, then tick this.Pending,Approved by @<reviewer>, orNot required: <reason>(default isPending; "not required" is restricted to bot-authored low-risk PRs).dev, and my PR title and commit messages use Conventional Commits in English.