Return the uv command that upgrades dcode while clearing any version pin.
Built specifically to avoid the uv tool upgrade receipt-pin trap: when
the tool was originally installed via uv tool install deepagents-code==X.Y.Z
— or when a prior dependency_refresh_command rewrote the receipt with a
version-pinned requirement — uv tool upgrade deepagents-code will only
re-resolve within that pin and silently keep the user on the same
version. Re-running uv tool install -U deepagents-code[<extras>] (no
version pin) rewrites the receipt's requirement to unpinned so the next
upgrade can actually move forward. Installed extras and --with
packages are preserved to mirror dependency_refresh_command; only the
version pin is intentionally stripped.
Propagates ExtrasIntrospectionError if installed extras cannot be
determined safely from distribution metadata, or a metadata-sourced extra name
fails PEP 508 validation. Also propagates ToolRequirementIntrospectionError
if the uv tool --with packages or interpreter cannot be determined safely
from the tool receipt. Callers choose whether to treat those errors as
failures or fall back to a simpler unpinned upgrade command with a
user-facing warning.
Whether to include alpha/beta/rc releases. When
None, follows the installed version's channel.
Name of the installed distribution to inspect for already-installed extras.