Create a command-line tool /app/resolve that resolves a semantic version range against a list of available…
Create a command-line tool /app/resolve that resolves a semantic version range against a list of available…: a task in termgrade-bandcentral-gemma4-31b-bash: TermGrade Band-Central: the 151-task selection and its splits (Harbor dataset). Input contract: - Read from stdin: one or more lines. First…
The task
**Input contract:** - Read from stdin: one or more lines. First line is a semver range expression. Remaining lines (if any) are available versions, one per line. - The tool must write the best matching version to stdout (just the version string, with a trailing newline) and exit 0 if exactly one version matches. - If…