CLI Improvements: Model Index Selection, list → ls, Unified Positional Parameter #184
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.
CLI Improvements: Model Index Selection,
list→ls, Unified Positional ParameterShort Summary
Improve CLI UX: add positional
<model name | index>parameter, renamelisttols, refactor model listing, and update developer guide formatting.Overview
This PR streamlines and unifies how models are referenced across CLI commands. Users can now specify either a full HuggingFace-style model identifier (
owner/name) or a numeric index produced by the newlscommand. The previouslistcommand has been renamed to the shorter and more conventionalls.Key Changes
<model name>(can be a name or an index) to model-driven commands viaModelBaseCommand.listcommand tolsand simplified its logic to enumerate local models with stable 1..N indices.ApiServiceCommandChatCommandClusterCoordinatorCommandClusterWorkerCommandCompleteCommandDownloadCommandQuantizeCommandRemoveCommandSimpleBaseCommandModelBaseCommandDEVELOPER_GUIDE.md(language hint for build code block and minor formatting polish).Rationale
./run-cli.sh chat 2instead of typing a long model identifier.Testing
./mvnw -DskipTests verifycompleted successfully../run-cli.sh lsdisplays enumerated models; index-based selection works with downstream commands.Example Usage