Internal helper used by generate_dockerfile() when
install_quarto = TRUE. If quarto_version is "latest",
queries the Quarto releases API to resolve it to a concrete version at
generation time, so the version actually pinned into the Dockerfile is
recorded rather than left as a moving target. If an explicit version is
supplied, validates its format and confirms a matching GitHub release
actually exists, so a typo or unreleased version fails here rather than
producing a Dockerfile that 404s at build time.
