mirror of
https://github.com/rtk-ai/rtk.git
synced 2026-09-19 07:33:17 +08:00
6c13d23436
- #345: rewrite_segment() now returns None when env_prefix contains RTK_DISABLED= — prevents rewriting commands the user explicitly opted out of - #346: rewrite_compound() detects redirect operators (2>&1, >&2, &>/dev/null, &>>) before treating bare & as background operator — fixes corrupted compound commands containing stderr redirects - #347: validate_json_extension() helper added to json_cmd.rs — early rejection with clear error message for TOML/YAML/XML/CSV/etc. files, with a dedicated tip for Cargo.toml (suggests rtk deps) Tests: 16 new unit tests (4 + 6 + 6), 7 new hook integration tests. All 672 tests pass. Quality gate clean. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>