feat(setup): guide selected client entry import - #252
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 35 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
📝 WalkthroughWalkthroughInteractive ChangesGuided setup import
Estimated code review effort: 3 (Moderate) | ~25 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant SetupCommand
participant GuidedImport
participant ClientConfig
participant ImportedConfig
User->>SetupCommand: choose import
SetupCommand->>GuidedImport: start guided import
GuidedImport->>ClientConfig: read and inspect entries
User->>GuidedImport: select entry and provide setup values
GuidedImport->>ImportedConfig: publish selected document snapshot
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 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 `@docs/cli.md`:
- Line 27: Add the --native-oauth flag to the documented options for miftah
setup, ensuring the command-reference row matches the existing setup
instructions that invoke this flag. If setup does not support native OAuth,
remove those instructions instead.
In `@README.md`:
- Line 66: Update the setup description’s client JSON wording to make clear that
the optional snippet is printed for review as output, not collected from the
user as input; preserve the surrounding setup flow and optional behavior.
In `@src/cli/setup.ts`:
- Around line 53-82: Update the prompt method in createInteractivePromptSession
to prioritize the cancellation promise over line.question in the Promise.race,
ensuring an already-cancelled session throws CliUsageError rather than exposing
a readline rejection. Add a regression test covering cancellation between
prompts.
🪄 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: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: d208635a-7b5d-45ed-bd02-0ec94c5ac50f
📒 Files selected for processing (7)
CHANGELOG.mdREADME.mddocs/cli.mdsrc/cli/setup-client-entry-import.tssrc/cli/setup.tstests/readme-product-contract.test.tstests/setup-command.test.ts
Summary
Security
Validation
Summary by CodeRabbit
New Features
miftah setupexperience for choosing between creating a new configuration or importing an existing MCP client entry.Security & Privacy
Documentation