Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.30.1"
".": "0.31.0"
}
10 changes: 6 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Bug Fixes

* **ruby:** use `rails test` instead of `rake test` when positional file args are passed — `rake test` ignores positional files and only supports `TEST=path`
* **cargo:** preserve compile diagnostics when `cargo test` fails before any test suites run

### Features

* **gradle**: add Gradle command support with sub-enum routing (test/build/other) — 75-90% token savings
* **maven**: add Maven command support with Surefire test parser (test/compile/package/other) — 70-90% token savings
* **gradle**: auto-detect ./gradlew wrapper with fallback to gradle on PATH
* **maven**: intelligent Surefire output parsing — failures only with compact error messages
* **discover**: add Gradle/Maven rewrite rules for transparent hook integration
* **ruby:** add RSpec test runner filter with JSON parsing and text fallback (60%+ reduction)
* **ruby:** add RuboCop linter filter with JSON parsing, grouped by cop/severity (60%+ reduction)
* **ruby:** add Minitest filter for `rake test` / `rails test` with state machine parser (85-90% reduction)
* **ruby:** add TOML filter for `bundle install/update` — strip `Using` lines (90%+ reduction)
* **ruby:** add `ruby_exec()` shared utility for auto-detecting `bundle exec` when Gemfile exists
* **ruby:** add discover/rewrite rules for rake, rails, rspec, rubocop, and bundle commands

### Bug Fixes

* **cargo:** preserve compile diagnostics when `cargo test` fails before any test suites run

## [0.30.1](https://github.com/rtk-ai/rtk/compare/v0.30.0...v0.30.1) (2026-03-18)


Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rtk"
version = "0.30.1"
version = "0.31.0"
edition = "2021"
authors = ["Patrick Szymkowiak"]
description = "Rust Token Killer - High-performance CLI proxy to minimize LLM token consumption"
Expand Down
15 changes: 12 additions & 3 deletions src/discover/rules.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ pub const PATTERNS: &[&str] = &[
r"^make\b",
r"^markdownlint\b",
r"^mix\s+(compile|format)(\s|$)",
r"^mvn\s+(compile|package|clean|install)\b",
r"^mvn\s+(compile|package|clean|install|test|verify)\b",
r"^(gradle|gradlew|\./gradlew)\s+",
r"^ping\b",
r"^pio\s+run",
r"^poetry\s+(install|lock|update)\b",
Expand Down Expand Up @@ -511,8 +512,16 @@ pub const RULES: &[RtkRule] = &[
rtk_cmd: "rtk mvn",
rewrite_prefixes: &["mvn"],
category: "Build",
savings_pct: 70.0,
subcmd_savings: &[],
savings_pct: 75.0,
subcmd_savings: &[("test", 88.0), ("compile", 75.0), ("package", 75.0)],
subcmd_status: &[],
},
RtkRule {
rtk_cmd: "rtk gradle",
rewrite_prefixes: &["gradle", "./gradlew", "gradlew"],
category: "Build",
savings_pct: 80.0,
subcmd_savings: &[("test", 88.0), ("build", 80.0)],
subcmd_status: &[],
},
RtkRule {
Expand Down
Loading