feat(drive): add title+body joint search guidance and Top N pagination rules - #2059
Conversation
…s for Top N results - Add new blockquote explaining combined title+body search: use a single --query with both keywords instead of splitting into two searches - Add rule for Top N results: N is an output cap, not --page-size; scan up to 3 pages filtering by title and summary_highlighted, read body only for title-matched candidates, stop early at N confirmed results - Add quick-reference table row for folder-scoped title+body search - Update pagination strategy rule to cover the 3-page cap for joint search in addition to the existing 5-page limit for other scenarios
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthrough更新 ChangesDrive search guidance
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ 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.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@skills/lark-drive/references/lark-drive-search.md`:
- Line 38: Clarify the example’s Top N behavior in the documentation table:
explain that the command does not accept N through --page-size, so the agent
must paginate results, validate candidates, retain them, and stop once N
validated candidates have been collected.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro Plus
Run ID: cb48f1c9-38d6-4826-aa46-85f85a4174e5
📒 Files selected for processing (1)
skills/lark-drive/references/lark-drive-search.md
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@cce3169d26611375c781855ef21e5019bb2fdd40🧩 Skill updatenpx skills add yballul-bytedance/cli#auto-research-sync/01KYAE6YS1CYDE3Q3T70W047KJ/mr-1233-1784bdb4 -y -g |
Summary
Improves the
lark-drive +searchreference documentation with two new guidance sections:Title + body joint search: When the user provides both a title keyword and a body keyword and requires both to match the same resource, the agent should issue a single combined
--query "title-word body-word"search with scope filters (--folder-tokens,--doc-types), rather than splitting into a title-only and body-only search and intersecting results client-side.--only-title/intitle:are reserved for cases where the user explicitly wants title-only matching.Top N result cap with bounded pagination: When the user asks for at most N results, N is an output upper bound — not a
--page-sizevalue. The agent should page through results (up to 3 pages), retain only candidates that satisfy both conditions based ontitleandsummary_highlighted, read the body sequentially only for title-matched candidates when the summary is insufficient, and stop as soon as N confirmed results are collected. If 3 pages are exhausted without N results, the agent returns what it found and suggests the user narrow their keywords or scope.The pagination strategy decision rule is also updated to reflect the new 3-page cap for joint searches alongside the existing 5-page limit for other scenarios.
Changes
skills/lark-drive/references/lark-drive-search.md--queryapproach for combined title+body searches; avoid splitting into two searchesTest Plan
Related Issues
Auto research task: 01KYAE6YS1CYDE3Q3T70W047KJ
Summary by CodeRabbit
Summary
Documentation
标题词 正文词), with a clearer example.Improvements