dependency_refresh_supported(
method: InstallMethod | None = None,
) -> tuple[bool, str| Name | Type | Description |
|---|---|---|
method | InstallMethod | None | Default: None |
Return whether a dependency-only refresh is possible for the install.
A dependency refresh reinstalls the current deepagents-code version with
upgraded dependency resolution (uv tool install -U deepagents-code==<v>).
Only uv-managed installs can express that without crossing to a newer app
version, so callers should refuse before prompting or shelling out. This is
the single source of truth for both the gate in the TUI and the refusal in
perform_dependency_refresh.
Install method override. Auto-detected if None.