docs(wiki): clarify personal space discovery limits#1854
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 (2)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthrough更新 Wiki 技能文档,说明个人空间和“我的文档库”可能无法通过空间列表发现,并补充使用 Drive 搜索、 Changes个人空间发现
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: 2
🤖 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-wiki/references/lark-wiki-space-list.md`:
- Around line 63-65: Update the direct my_library lookup in the spaces list
guidance to include the explicit --as user identity flag, matching the
user-owned resource requirement and the existing fallback command.
In `@skills/lark-wiki/SKILL.md`:
- Around line 25-30: Update the personal-space lookup guidance to first preserve
direct retrieval when the user provides a known my_library ID, using the
appropriate direct Wiki command with --as user. Only route unknown
personal-space targets through Drive +search, then use the returned
origin_space_id with wiki +node-list; keep the existing Wiki URL/token space_id
resolution precedence.
🪄 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
Run ID: a104a98a-6ccd-4da8-9ac5-46b0867271ff
📒 Files selected for processing (2)
skills/lark-wiki/SKILL.mdskills/lark-wiki/references/lark-wiki-space-list.md
|
@coderabbitai 已处理两项建议: |
|
Tip For best results, initiate chat on the files or code changes.
(=^・ω・^=) |
Fixes #1773
背景
wiki spaces list可能不返回个人知识库或“我的文档库”。将空列表当作权限缺失会导致无效翻页或错误地切换为 bot 身份。核心改动
person与my_library不能可靠地通过 spaces list 枚举。my_libraryID 的直接获取路径。origin_space_id再列节点的发现流程。验证
go test ./internal/qualitygate/rules -count=1git diff --check风险与回滚
仅补充 Skill/reference 的发现策略,不改变 CLI 命令或 API 行为。回滚本提交即可恢复原文档。
Summary by CodeRabbit
space-listresults (including when using user-mode listing).origin_space_id, then list nodes from that space.space_iddirectly first to avoid unreliable listings.