feat: Windows setup via cargo/npm + squeez update fixes#22
Merged
claudioemmanuel merged 1 commit intoclaudioemmanuel:mainfrom Apr 7, 2026
Merged
feat: Windows setup via cargo/npm + squeez update fixes#22claudioemmanuel merged 1 commit intoclaudioemmanuel:mainfrom
claudioemmanuel merged 1 commit intoclaudioemmanuel:mainfrom
Conversation
- All 6 hooks: fallback to command -v squeez when ~/.claude/squeez/bin/squeez not found (fixes silent no-op after cargo/npm install) - install.sh: add --setup-only flag — skips binary download, copies existing squeez from PATH to hooks dir, then registers settings.json normally - New command: squeez setup — post-install setup for cargo/npm users; creates dirs, copies self binary to canonical location, downloads hooks, registers settings.json via Python (same logic as install.sh) - squeez update: fix Windows install_atomic — detects self vs non-self update; non-self (cargo→hooks copy) uses direct rename (no lock); self-update uses rename dance (old→.bak, new→exe); fallback leaves .new w/ instructions - squeez update: re-registers settings.json after successful binary install
claudioemmanuel
approved these changes
Apr 7, 2026
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.
Closes #23
Summary
command -v squeezwhen~/.claude/squeez/bin/squeeznot found — fixes silent no-op aftercargo install squeezornpm i -g squeezinstall.sh --setup-only: new flag that skips binary download/checksum, finds squeez in PATH, copies to hooks dir, then proceeds with hook registration and settings.jsonsqueez setupcommand: post-install setup for cargo/npm users — creates dirs, copies self binary to~/.claude/squeez/bin/, downloads hooks from GitHub, registers settings.jsonsqueez updateWindows fix:install_atomicnow detects self vs non-self update; non-self (running from cargo, updating hooks copy) → direct rename; self-update → rename dance (old→.bak,new→exe); fallback leaves.newwith instructionssqueez update+ settings.json: re-registers hooks after every successful updateTest plan
cargo test— 155/155 passingbash bench/run.sh— not applicable (no changes to compression logic)squeez setup --help— correct outputsqueez update --check— worksinstall.sh --setup-only— finds cargo binary, copies to hooks dircommand -vwhen canonical path absentsession-start.sh— banner + persona ultra activeChecklist
Co-Authored-By:trailers in commit messages