feat(gradle): add Gradle/Gradlew support with compact output (80-90% token reduction)#381
feat(gradle): add Gradle/Gradlew support with compact output (80-90% token reduction)#381sebastianbarrozo wants to merge 3 commits intortk-ai:developfrom
Conversation
|
This PR replaces #374 (closed), which targeted Based on the review comments on #374:
Also removed an accidentally committed Aware of competing PRs (#288, #312, #368) — happy to adapt if needed. |
|
what is preventing this from being merged? I use gradle all of the time and would benefit from this greatly |
dc20fc4 to
cc93afc
Compare
…duction) - New `rtk gradle` command with trailing args (any task: build, test, smartbuild, etc.) - Auto-detects ./gradlew wrapper, falls back to gradle global - Filters: task progress, --info verbose noise, download progress, welcome banner, deprecation dedup, test PASSED lines, Try suggestions, Configure project - Keeps: FAILED tasks + errors, [ant:*] output (Etendo), BUILD summary, test failures - Adds discover rules for gradle/gradlew/./gradlew hook rewrite - 19 unit tests covering all filter scenarios + token savings assertions - Also adds Pixel Agents Chat section to CLAUDE.md Co-Authored-By: Claude Opus 4.6 <[email protected]>
- Strip leading blank lines from filtered output - Avoid extra newline when stderr is empty Co-Authored-By: Claude Opus 4.6 <[email protected]>
…60% threshold - Fix `* Try:` block leak: skip all lines starting with `>` or `* ` inside block - Fix `in_failed_test` dead reset: remove unreachable empty-line check, reset on `> Task`, `BUILD`, or test summary lines instead - Fix dep tree duplicate BUILD line: check BUILD before pushing as tree node - Raise dependency tree savings threshold from 40% to 60% (project minimum) - Add 6 insta snapshot tests for all filter scenarios - Add `insta` dev-dependency - Remove accidentally committed app.log Signed-off-by: Sebastian Barrozo <[email protected]> Co-Authored-By: Claude Opus 4.6 <[email protected]> Signed-off-by: sebastianbarrozo <[email protected]>
eb461ab to
73e2c6a
Compare
|
Hey We are cleaning up the codebase and improving the project structure for better onboarding. As part of this effort, PR #826 reorganizes No logic changes — only file moves and import path updates. What you need to doRebase your branch on git fetch origin && git rebase origin/developGit detects renames automatically. If you get import conflicts, update the paths: use crate::git; // now: use crate::cmds::git::git;
use crate::tracking; // now: use crate::core::tracking;
use crate::config; // now: use crate::core::config;
use crate::init; // now: use crate::hooks::init;
use crate::gain; // now: use crate::analytics::gain;Need help rebasing? Tag @aeppling |
Summary
Adds
rtk gradlecommand with smart filtering for Gradle/Gradlew output, achieving 80-90% token reduction.Closes #372
Features
./gradlewwrapper, falls back togradleglobalbuild,test,smartbuild,compile.complete, etc.)gradle,gradlew,./gradlewcommandsFiltering
Removed (noise):
UP-TO-DATE,NO-SOURCE,SKIPPED,FROM-CACHE)> Configure projectand incubating feature warnings--infoverbose output (daemon init, file watching, evaluation, caching)* Try:suggestion blocks (all lines, not just known patterns)Note:deprecation warningsKept (signal):
FAILEDtasks + compilation errors + stack traces[ant:*]output (Etendo smartbuild)BUILD SUCCESSFUL/BUILD FAILEDsummariesTests
assert_snapshot!cargo fmt --all --check && cargo clippy --all-targets && cargo test --allpasses (634 tests)Token savings
--infoverboseReview feedback addressed
develop* Try:state machine leak — now skips all>and*lines inside blockin_failed_testdead reset — removed unreachable empty-line checkapp.logSigned-off-by: Sebastian Barrozo [email protected]