perform_install_package(
package: str,
*,
progress: UpgradeProgressCallback | None = None,
log_path: Path| Name | Type | Description |
|---|---|---|
package* | str | |
progress | UpgradeProgressCallback | None | Default: None |
log_path | Path | None | Default: None |
Add an arbitrary package to the installed dcode tool environment.
Runs uv tool install -U 'deepagents-code[<extras>]' --with <package>, the
escape hatch for a provider whose package is not a deepagents-code extra
(e.g. a custom or in-house class_path model). Already-installed extras are
preserved so the reinstall does not drop them. Editable installs are refused
— the caller should rerun their uv tool install --editable command with
--with <package> added so it resolves against the editable source.
The package name to install. Must satisfy
is_valid_package_name; invalid names are rejected without invoking
uv (defense in depth against shell injection via the
--force/--yes bypass paths).
Optional callback invoked for each output line.
Optional path to persist command output.