feat: add doctor preflight for shortcut readiness#837
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 (5)
📝 WalkthroughWalkthroughThe PR adds a new ChangesDoctor Preflight Feature
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
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)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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 |
Codecov Report❌ Patch coverage is
❌ Your patch check has failed because the patch coverage (55.26%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #837 +/- ##
==========================================
- Coverage 65.77% 65.68% -0.09%
==========================================
Files 516 517 +1
Lines 48625 49043 +418
==========================================
+ Hits 31985 32216 +231
- Misses 13881 14046 +165
- Partials 2759 2781 +22 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
🚀 PR Preview Install Guide🧰 CLI updatenpm i -g https://pkg.pr.new/larksuite/cli/@larksuite/cli@685dd307631980d8772dff3b32e5221e2bb7618b🧩 Skill updatenpx skills add lizixionglzx/cli#feat/doctor-preflight -y -g |
Summary
Add
lark-cli doctor preflightto check whether a shortcut is ready before execution.The CLI already performs strong runtime checks for config, identity, login, scopes, and strict mode, but callers currently discover those prerequisites only after attempting the real shortcut. This command surfaces the same readiness information earlier and returns structured next actions for both humans and AI agents.
Changes
doctor preflight <service> <shortcut>--as auto|user|bot--format json|prettyScope
This PR is intentionally limited to shortcuts and does not change the real execution pipeline.
Testing
Risk
Low risk, additive only.
Summary by CodeRabbit
New Features
doctor preflightcommand to verify whether a shortcut is ready to execute before running. Checks configuration, identity, login, scopes, and risk confirmations. Supports JSON and human-readable output formats, ideal for AI agent workflows.Documentation