Write a CLI tool /app/resolve that reads a semver range and a newline-delimited list of versions from stdin…
Write a CLI tool /app/resolve that reads a semver range and a newline-delimited list of versions from stdin…: a task in TermGrade Environments: 1,004 executable Linux tasks (Harbor dataset). Input contract: - First line of stdin is the range (e.g., =1.0.0 <2.0.0 , ^1.2.3 , ~3.4 , =1.0.0-alpha …
The task
Input contract: - First line of stdin is the range (e.g., `>=1.0.0 <2.0.0`, `^1.2.3`, `~3.4`, `>=1.0.0-alpha`, `1.2.x`, `=1.2.3+build`). - Remaining lines are versions, one per line (may include empty lines, duplicates, versions with prerelease tags, build metadata, whitespace around them). - If stdin is empty or…
Part of ai-and/termgrade-environments.