feat(discover): track passthrough git/cargo/pnpm subcommands
#888 aperta il 28 mar 2026
Metriche repository
- Star
- (48.085 star)
- Metriche merge PR
- (Merge medio 11g 1h) (45 PR mergiate in 30 g)
Descrizione
Problem
rtk discover --all reports these commands as TOP UNHANDLED COMMANDS:
git checkout(493 occurrences)git merge(154)git rebase(137)pnpm build(171)pnpm exec(173)cargo run(78)cargo publish(71)
These commands already work via passthrough (GitCommands::Other, CargoCommands::Other, PnpmCommands::Other), but the discover regex patterns in src/discover/rules.rs don't include them. They show up as unhandled instead of "already handled via passthrough".
Fix
Add the missing subcommands to the PATTERNS regex + mark them as RtkStatus::Passthrough in subcmd_status.
Files: src/discover/rules.rs + src/discover/registry.rs (tests)
Impact
1277 commands correctly classified. Zero filtering changes, zero risk.
Status
Fixed in branch fix/discover-passthrough-coverage (PR incoming).