Revisit consistency across registry types for AllVersions in search criteria
Currently, the behavior of ListModules across registry types is a bit inconsistent. We have three use cases for ListModules - listing for dependency resolution (which gets everything matching a semver expression - possibly just everything), searching (which has the "all versions" option), and repo "-list-modules" (which doesn't have the "all versions" option and should just show the latest).
Given an ORAS repo (with/without) a namespace, installing a specific version or a semver-matching version should work properly via zpm "install" and during dependency resolution. I think the problem is dependency resolution.
This issue has been split in two. The technical debt part of AllVersions is now in #914. This issue handles ORAS registry types behavior when doing dependency resolution with/without a namespace.