feat(nix): add Nix ecosystem command handling - #3633
Open
jpds wants to merge 1 commit into
Open
Conversation
Filter nix command output (build, develop, flake, shell, env) to cut token usage: shorten store path hashes, batch download/copy progress into summaries, collapse store listings, strip evaluation traces, and keep errors and warnings intact. Co-Authored-by: Conner Ohnesorge <cohnesorge@cottinghambutler.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
Takes #1046 and rebases it on the latest
develop- filter nix command output (build, develop, flake, shell, env) to cut token usage: shorten store path hashes, batch download/copy progress into summaries, collapse store listings, strip evaluation traces, and keep errors and warnings intact.Changes done on top of the previous branch:
lazy_staticreplaced withstd::sync::LazyLockRtkRuleentries built from..RtkRule::DEFAULT(newpipeline_final_safefield)nixsubcommands added to the passthrough classification list checked bytest_every_subcommand_is_classifiedcompress_store_pathslike every other kept linePLAN_HEADER_RE:the header was dropped entirely and its paths leaked through uncompressed. The pattern now covers them, and the indented paths are counted into the collapsed list summaryPHASE_RE; simplifiedERROR_RE; merged duplicatedrun()/run_legacy()into onerun_tool()flush_counters()function with a module-localCountersstructTest plan
cargo fmt --all && cargo clippy --all-targets && cargo testrtk <command>output inspected