[Feature]: Treat uv as a supported install backend in cli-hub
Category
Plugin / Framework Improvement
Problem Statement
cli-anything-hub currently hard-codes pip as the install backend for harness CLIs (sys.executable -m pip install). uv is only used for a subset of public CLIs, so when the hub runs inside a uv tool environment (~/.local/share/uv/tools/cli-anything-hub/bin/python) — which has no pip — cli-hub install <harness> fails:
$ cli-hub install blender
Installing blender...
✗ pip install failed:
/home/miki/.local/share/uv/tools/cli-anything-hub/bin/python: No module named pipThere is a second, deeper problem: even if pip were present, installing into that isolated venv would hide the harness entry point (cli-anything-blender) from the user's real PATH.
Proposed Solution
Treat uv as a supported install backend inside cli-hub:
- When
uvis available, install harness CLIs viauv tool install <git ref>(which places the executable on PATH). - Fall back to
pipwhenuvis not present. - Uninstall should prefer
uv tool uninstall(with a pip fallback). - Record the actual engine used in
~/.cli-hub/installed.json.
Acceptance:
cli-hub install <harness>works when the hub runs under uv.- Falls back to pip when uv is not present.
- Regression test(s) added; existing suite passes.
Alternatives Considered
- Requiring users to run
cli-hubunder a plain pip-installed Python instead of a uv tool environment (fragile; not how many agents/users tool today). - Skipping the hub and having users
uv tool installeach harness manually outside the registry/manager (loses central discovery and state tracking).
Additional Context
This is not about how cli-anything-hub itself is installed — that works well as-is today (both pip and uv tool install are fine for installing the hub). The point is to treat uv as a supported install backend within the hub, so cli-hub install picks the right tool for the environment.
Source: HKUDS/CLI-Anything