docs: clarify wiki base token resolution#982
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis PR standardizes the Base skill documentation to clarify how users resolve Wiki links to Base tokens. Updates across the preface, pre-constraints, token/link table, and error recovery sections now consistently recommend using ChangesWiki-to-Base Token Workflow Documentation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
456eeda to
7226955
Compare
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-base/SKILL.md`:
- Line 258: The table row is broken by unescaped pipe characters in the inline
command BASE_TOKEN="$(lark-cli wiki +node-get --as user --token
"<wiki_url_or_token>" --jq '.data | select(.obj_type == "bitable") |
.obj_token')", causing the markdown table to misparse; fix it by either escaping
the pipes inside the jq expression (e.g. replace "|" with "\|") or move the full
command out of the table into a fenced code block and update the table cell to
reference that code block (keep the note about not passing wiki_token directly
as --base-token and the link to lark-wiki-node-get.md).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@381c85e6916691114e8092bb159d58efda5263fc🧩 Skill updatenpx skills add zgz2048/cli#codex/base-wiki-fast-path -y -g |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #982 +/- ##
==========================================
+ Coverage 66.96% 67.58% +0.62%
==========================================
Files 568 575 +7
Lines 53323 54269 +946
==========================================
+ Hits 35709 36679 +970
+ Misses 14649 14548 -101
- Partials 2965 3042 +77 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
7226955 to
381c85e
Compare
Summary
Clarify how agents should resolve a Wiki Base link before running
lark-cli base +...commands. This keeps the guidance in the existing lark-base skill and avoids treating/wiki/{token}as a Base token.Changes
lark-cli wiki +node-get.BASE_TOKEN=...example in the existing Token and links section.Test Plan
lark xxxcommand works as expectedManual checks:
node scripts/skill-format-check/index.jslark-cli wiki +node-get --as user --token "https://bytedance.larkoffice.com/wiki/A2xYw4PXuiPWuIkLASLchEU3nmc?table=tblqyKVKWysqfqLw&view=vewDJr0Zc2" --jq ".data | select(.obj_type == \"bitable\") | .obj_token"Related Issues
Summary by CodeRabbit