feat(flutter): add Flutter command filters#669
Open
copperspeed wants to merge 1 commit intortk-ai:developfrom
Open
feat(flutter): add Flutter command filters#669copperspeed wants to merge 1 commit intortk-ai:developfrom
copperspeed wants to merge 1 commit intortk-ai:developfrom
Conversation
Signed-off-by: CG <claudegrecea@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rtk flutter test-- suppresses passing progress lines, short-circuits to[PASS] All tests passedon clean runs, shows failure blocks with assertion details (~90% token reduction)rtk flutter analyze-- keeps onlywarning -anderror -lines, suppressesinfo -lines and headers (~80% token reduction)rtk flutter build-- keeps only the final result line or error diagnostics (~85% token reduction)rtk flutter pub-- strips download noise, keepsGot dependencies!summary and compatibility warnings (~70% token reduction)Before / After
flutter test (passing, 6 lines -> 1 line):
flutter analyze (5 lines -> 2 lines):
flutter pub get (8 lines -> 2 lines):
Implementation notes
pytest_cmd.rs(plain text parsing, no JSON)HH:MM +N:/HH:MM +N -M:prefix detection)-separator; summary line comes from stderrsrc/main.rswithFlutterCommandssubcommand enumsrc/discover/rules.rsTest plan
rtk flutter teston passing suite -> single[PASS] All tests passedlinertk flutter testwith failing test -> failure block only, no progress linesrtk flutter analyzewith warnings and info -> warnings shown, info suppressedrtk flutter analyzeclean ->[PASS] No issues foundrtk flutter build apk-> final built line onlyrtk flutter pub get-> summary + compat warning onlyrtk rewrite "flutter test"-> printsrtk flutter testcargo test flutter-> 22 unit tests passGenerated with Claude Code