feat(uv): add uv run filtering to prevent incorrect run injection (fixes #2841)#2869
Open
jlaportebot wants to merge 2 commits into
Open
feat(uv): add uv run filtering to prevent incorrect run injection (fixes #2841)#2869jlaportebot wants to merge 2 commits into
jlaportebot wants to merge 2 commits into
Conversation
693f0de to
b4b9707
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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