Skip to content

feat(gradle): compile per-task filter [3c]#25

Closed
Nava2 wants to merge 4 commits intofeat/gradle-corefrom
feat/gradle-compile
Closed

feat(gradle): compile per-task filter [3c]#25
Nava2 wants to merge 4 commits intofeat/gradle-corefrom
feat/gradle-compile

Conversation

@Nava2
Copy link
Collaborator

@Nava2 Nava2 commented Mar 18, 2026

Part 3/10 of gradle upstream stack (#21).

Drops kapt/KSP noise, incremental compilation messages, normalizes paths. 85%+ savings.

Upstream overview: rtk-ai#709

Nava2 and others added 4 commits March 18, 2026 17:00
Add filter infrastructure for gradle output:
- global.rs: 37 noise regex patterns, Try-block removal, ANSI stripping (70-90% token savings)
- paths.rs: absolute path normalization to repo-relative
- Minimal mod.rs stub for module declarations

New dev-dependency: insta 1.46 for snapshot testing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Kevin Brightwell <kevin.brightwell@faire.com>
Convert NOISE_PATTERNS Vec<Regex> to RegexSet for single-pass matching
instead of iterating 37 patterns. Also convert extra_drop_patterns to
RegexSet at load time.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Kevin Brightwell <kevin.brightwell@faire.com>
Add full gradle command support:
- TaskType enum with detection from args and output
- find_gradle_executable (./gradlew walk-up)
- normalize_args (strip --quiet, inject --console plain)
- Verbose flag rejection (--info, --debug)
- filter_gradle_output routing (global-only for now, per-task in subsequent PRs)
- Commands::Gradle wiring in main.rs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Kevin Brightwell <kevin.brightwell@faire.com>
Add compile filter that drops kapt/KSP annotation processing noise,
incremental compilation messages, and normalizes absolute paths to
repo-relative. Uses RegexSet for single-pass matching.

Token savings: 85%+ on compile output.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Kevin Brightwell <kevin.brightwell@faire.com>
@Nava2 Nava2 force-pushed the feat/gradle-compile branch from 66a363e to 601b733 Compare March 18, 2026 23:11
@Nava2
Copy link
Collaborator Author

Nava2 commented Mar 18, 2026

Recreating with updated branch structure.

@Nava2 Nava2 closed this Mar 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant