docs: clarify fetch metadata and user cites#1981
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:
📝 WalkthroughWalkthrough
ChangesPurpose-aware document fetching
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant CLI
participant buildFetchBody
participant DocsAPI
CLI->>buildFetchBody: pass --purpose read or edit
buildFetchBody->>buildFetchBody: select extra_param JSON
buildFetchBody->>DocsAPI: send fetch request body
Possibly related PRs
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@113b582755e097b2a366961dab4f73189d824e9b🧩 Skill updatenpx skills add SunPeiYang996/cli#codex/docs-fetch-edit-purpose -y -g |
8c76684 to
f4cd351
Compare
f4cd351 to
d33ed00
Compare
d33ed00 to
8e441ca
Compare
8e441ca to
113b582
Compare
Summary
Clarify document fetch sidecars and user-cite XML import requirements without introducing a new fetch mode.
Changes
document.reference_mapresponse shape.block_type -> ref -> real-attr-key -> real-attr-valuemapping.reference_mapstays paired withcontent, whiletipscarries safe replay or degradation guidance.<cite type="user">to includeuser-idwith the user open ID.--purposefully removed from the CLI and lark-doc skill.Test Plan
go test ./shortcuts/docdocs +fetch --helpdoes not expose--purposeRelated Issues