feat(cli): implement rich UX layer, spinners, and polished command output#54
Merged
weroperking merged 1 commit intomainfrom Mar 30, 2026
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (11)
WalkthroughIntroduces new npm dependencies ( Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
✨ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
bb initandbb login) clearer and safer (one-time key reveals, destructive-op warnings, elapsed timers) so users know what to do and when operations are happening.--debugstack traces are consistent across commands.Description
packages/cli/src/utils/logger.tsintroducingsym,section,keyValue,tree,box,badge,step,done,blank,banner,keyValue, and other helpers used throughout the CLI.packages/cli/src/utils/spinner.tswithcreateSpinner()andwithSpinner()(built onora) to wrap async tasks and persist success/failure state.packages/cli/src/commands/init.ts,login.ts,dev.ts,migrate.ts,generate.ts,iac/sync.ts, andfunction.tsnow show structured headers, file trees, boxes for sensitive values, per-step spinners, timestamped events, and clearer destructive-operation messages.packages/cli/src/index.tsto configure Commander help styling, add examples/docs help text, expose a--debugflag, route Commander error output through the logger, and add globaluncaughtException/unhandledRejectionhandlers that emit short hints (with optional stack traces in debug mode).packages/cli/package.json:oraandcli-table3(and updated lockfile accordingly) to support spinners and future table output.Testing
bun installat repo root and dependency installation completed successfully.bun run --cwd packages/cli typecheckand TypeScript typecheck succeeded with no errors.bun test --cwd packages/cliand the test suite passed: all CLI tests passed (348 passed, 0 failed).Codex Task
Summary by CodeRabbit
Release Notes
New Features
--debugflag to CLI for verbose error output and troubleshootingImprovements