feat: show interactive client select when --client not provided#39
Merged
Dhravya merged 3 commits intosupermemoryai:mainfrom Jan 20, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This pull request implements an interactive client selection prompt that appears when the --client flag is not provided, improving the user experience by allowing users to select from available clients interactively rather than requiring them to know and provide the correct client name upfront.
Changes:
- Made the
clientparameter optional in theInstallArgvinterface - Removed
demandOption: truefrom the client option in the command builder - Added interactive prompt for client selection using consola when client is not provided or is invalid
- Updated all references from
argv.clientto use a localclientvariable throughout the handler
Comments suppressed due to low confidence (1)
src/commands/install.ts:264
- Missing validation after the target prompt. If the user cancels the prompt, it may return undefined or an empty value, but the code continues execution. This could lead to errors when inferring the name from an undefined target or building commands. Add validation to check if a valid target was entered, and exit gracefully if not.
let target = argv.target
if (!target) {
target = (await logger.prompt('Enter the package name, command, or URL:', {
type: 'text',
})) as string
}
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Dhravya
approved these changes
Jan 20, 2026
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.
Shows an interactive select prompt with all available clients when
--clientflag is not provided. Uses consola's built-in prompt functionality (no new dependencies).Closes #38
cc @Dhravya