feat: support docs fetch selection anchors#1815
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThis PR adds selection-anchor support for docs fetch v2. Document fragments are parsed and stored on ChangesSelection Anchor Fetch Support
Estimated code review effort: 3 (Moderate) | ~25 minutes Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 |
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@a3fdf5a02aaf11c8fee079a57a73153c53d59900🧩 Skill updatenpx skills add larksuite/cli#codex/docs-fetch-share-anchor-range-start -y -g |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1815 +/- ##
==========================================
+ Coverage 74.43% 74.45% +0.01%
==========================================
Files 860 860
Lines 89827 89906 +79
==========================================
+ Hits 66864 66940 +76
+ Misses 17781 17780 -1
- Partials 5182 5186 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ea17e43 to
a5c9b69
Compare
Summary
#share-*/#part-*fragments to rangestart_block_idwhen scope is not explicitly full#block_idfragments as normal full-doc fetches--end-block-idand keep--scope fullas a full-read overrideValidation
shortcuts/docpassedlark-cli docs +fetchagainstcreation.platform.ai_edit_pre_release/ppe_codex_share_anchor_r2for URL#share auto-range, explicit range, full override, ordinary fragment, and invalid end-block-id casesRelated
Summary by CodeRabbit
docs +fetchcan infer localizedrangereads from--docselection-anchor fragments (#share-...) by auto-settingread_mode=rangeand using the fragment id asstart_block_id(when scope is range-like).--scope fullignores selection-anchor fragments; ordinary or unsupported anchors (e.g.,#part-...,#share-) won’t trigger auto-reading.--scope rangeexamples and guidance for#share-...behavior.