chore(deps): replace inquirer with @inquirer/select#1136
Open
ikeyan wants to merge 3 commits intoOpenAPITools:masterfrom
Open
chore(deps): replace inquirer with @inquirer/select#1136ikeyan wants to merge 3 commits intoOpenAPITools:masterfrom
@inquirer/select#1136ikeyan wants to merge 3 commits intoOpenAPITools:masterfrom
Conversation
Contributor
There was a problem hiding this comment.
1 issue found across 4 files
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/generator-cli/src/app/services/ui.service.ts">
<violation number="1" location="apps/generator-cli/src/app/services/ui.service.ts:5">
P2: util.styleText is only available in Node >=20.12.0, but this package declares support for Node >=16. Using styleText will crash on Node 16–20.11 at runtime.</violation>
</file>
Since this is your first cubic review, here's how it works:
- cubic automatically reviews your code and comments on bugs and improvements
- Teach cubic by replying to its comments. cubic learns from your replies and gets better over time
- Add one-off context when rerunning by tagging
@cubic-dev-aiwith guidance or docs links (includingllms.txt) - Ask questions if you need clarification on any suggestion
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
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.
Supersedes #819, #969, #1048.
Replaces dependency
inquirerwith@inquirer/select.(Since Node >=16 is supported, we cannot upgrade
inquireror@inquirer/selectfurther.)There are differences in their behavior:
Ctrl+Cis pressed:inquirerdid not handle Ctrl+C, so the process naturally exits 0.@inquirer/selectthrowsError:User force closed the prompt with ....process.exit(0).inquirershows(Use arrow keys)on the right of the prompt until the user hits any key and, when necessary,(Move up and down to reveal more choices)at the bottom.@inquirer/selectshows:(Use arrow keys)on the right of the prompt until the user hits any key(Use arrow keys to reveal more choices)at the bottom of the optionsinquirerautomatically dims the separator.@inquirer/selectshows the separator without styling.Bug Fixes in
UIService#listWhile migrating, I fixed several legacy issues in the
pageSizecalculation:Separator.pageSizebecame unnecessarily small when multipleSeparatorinstances were present.process.stdout.rows - separatorCount - 1Math.max(1, process.stdout.rows - 2)Manual testing
Old
old.mov
New
2026-02-16.22.48.06.mov
Script
apps/generator-cli/src/manual-test-ui-service-list.ts:
Summary by cubic
Replace inquirer with @inquirer/select to simplify prompts and improve UX. Ctrl+C now exits cleanly (code 0), choices show a checkmark with clearer hints, and table headers/separators are dimmed with stable paging.
Bug Fixes
Dependencies
Written for commit 5244f82. Summary will update on new commits.