feat(chezmoi): add chezmoi dotfile manager support (80-90% token savings)#436
Open
jsoyer wants to merge 8 commits intortk-ai:developfrom
Open
feat(chezmoi): add chezmoi dotfile manager support (80-90% token savings)#436jsoyer wants to merge 8 commits intortk-ai:developfrom
jsoyer wants to merge 8 commits intortk-ai:developfrom
Conversation
add security check cicd on dev branch PR Signed-off-by: aesoft <43991222+aeppling@users.noreply.github.com>
fix(cicd): Add security check on dev branch PR
- Add install_method detection (homebrew/cargo/script/nix/other) - Add tokens_saved_24h and tokens_saved_total to payload - Add Tracker::total_tokens_saved() and Tracker::tokens_saved_24h() methods - Point telemetry to new dedicated rtk-telemetry service Signed-off-by: Patrick szymkowiak <patrick.szymkowiak@innovtech.eu>
Adds rtk chezmoi with 4 filtered subcommands: - diff: file-level summary instead of full git diff (85% savings) - apply: "ok ✓ N files applied" summary (90% savings) - status: grouped counts with file list (75% savings) - managed: file count grouped by directory (70% savings) Unknown subcommands passthrough transparently. Auto-rewrite hook updated to intercept chezmoi diff/apply/status/managed. Registry rules added for discover and rtk rewrite integration. 14 unit tests, all passing. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- rtk chezmoi add <files>: "ok ✓ N files added" (85% savings) - rtk chezmoi re-add <files>: "ok ✓ N files re-added" (85% savings) - Hook rewrite updated for chezmoi add/re-add - Registry pattern extended to include add and re-add - 5 new unit tests (19 total) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- update: "ok ✓ updated (N source files changed, M dotfiles applied)" or "ok ✓ already up to date" (90% savings vs raw git+apply output) - unmanaged: file count grouped by directory, same pattern as managed (70%) - doctor: header summary + only warnings/errors, suppresses ok lines (80%) Hook rewrite and registry extended to cover all 3 new subcommands. 12 new unit tests (31 chezmoi total, 740 overall). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
5 tasks
- README.md, CLAUDE.md, ARCHITECTURE.md: 0.27.1 → 0.27.2 - ARCHITECTURE.md: module total 57 → 59 (39 cmd + 20 infra) reflects chezmoi_cmd addition and current main.rs state Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
face559 to
013cc6a
Compare
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
Adds
rtk chezmoiwith 9 filtered subcommands for chezmoi dotfile manager operations:ok ✓ N files appliedsummary (90% savings)ok ✓ N files added(85% savings)ok ✓ N files re-added(85% savings)ok ✓ updated (N source files changed, M dotfiles applied)(90% savings)Unknown subcommands passthrough transparently.
Changes
src/chezmoi_cmd.rs: new module with filter implementationsrc/main.rs: routechezmoisubcommanddiscoverand rewrite integrationTest plan
cargo fmt --all --check && cargo clippy --all-targets && cargo testpasseschezmoi_cmd.rs🤖 Generated with Claude Code