Skip to content

feat(gradle): global noise filters and path normalization [3b-i]#33

Draft
Nava2 wants to merge 4 commits intofeat/gradle-configfrom
feat/gradle-core-filters
Draft

feat(gradle): global noise filters and path normalization [3b-i]#33
Nava2 wants to merge 4 commits intofeat/gradle-configfrom
feat/gradle-core-filters

Conversation

@Nava2
Copy link
Copy Markdown
Collaborator

@Nava2 Nava2 commented Mar 18, 2026

Part 2/11 (#21). Global noise filters (RegexSet, 37 patterns), path normalization, insta dev-dep. Token savings: 70-90%. Upstream: rtk-ai#709

Nava2 and others added 4 commits March 26, 2026 15:40
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>
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-config branch from f922de2 to cdcf230 Compare March 26, 2026 19:51
@Nava2 Nava2 force-pushed the feat/gradle-core-filters branch from 6b215a3 to c5fcce7 Compare March 26, 2026 19:51
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