[URIs] Use `parse_hf_uri` in `RepoUrl` + soft-deprecate `repo_type_and_id_from_hf_id` (#4324)
* [URIs] Route RepoUrl through parse_hf_uri, soft-deprecate repo_type_and_id_from_hf_id
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* [URIs] Parse from_id/to_id via parse_hf_uri in duplicate_repo
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* preferrrable
* [URIs] Simplify parsing: rely on parse_hf_uri for URLs, split-based fallback
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* [URIs] Add optional endpoint param to parse_hf_uri
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>