Repository navigation
feat(uv): add uv run filtering to prevent incorrect run injection (fixes #2841) - #2869
jlaportebot wants to merge 2 commits into
Conversation
693f0de to
b4b9707
Compare
b4b9707 to
e4c7736
Compare
|
All CI checks pass (CLA check green). PR is mergeable with no conflicts. Awaiting maintainer review/merge (blocked by merge queue policy). |
|
Thanks for the patch, and apologies for the slow reply. The diff on this branch is the npm subcommand list and the ruff subcommand guard, and both have landed: PR #3087 (merged 2026-09-13) added the same fifteen npm subcommands so npm query and npm sbom no longer get run injected, and PR #3083 (merged 2026-09-08) added the ruff list with the check test moved into is_check_invocation. The uv work named in the title is not part of this diff, and uv is handled on develop already, where |
Summary
Adds support for
uv runcommand filtering to prevent incorrect routing throughrtk runwhen users invokeuv run <tool>. This addresses issue #2841 whereuv run(high-frequency Python command) was unhandled.Changes
src/cmds/python/uv_cmd.rs- Handlesuv sync,uv pip list/outdated, anduv run <tool>with routing to appropriate filters^uv\s+run\s+insrc/discover/rules.rswith 70% savings estimateUvvariant toCommandsenum insrc/main.rswith proper routing"uv"toRTK_META_COMMANDSto prevent fallbackQuality Checks
All quality gates pass locally:
cargo check✓cargo test✓ (2242+ tests pass)cargo clippy --all-targets✓ (zero warnings)cargo fmt --all --check✓Testing
Fixes #2841