- Use `which claude` to detect actual binary location instead of
hardcoding ~/.local/bin/ — supports pnpm, npm, yarn global installs
- Add `|| true` to prevent set -e from killing script when
grep fails to match Mach-O/ELF in versions directory
- Backup and restore now handle both detected path and default path
- Uninstall checks both locations for claude.orig
Fixes#7
Windows fixes:
- Rename claude.exe → claude.orig.exe instead of delete (works even
if exe is running, handles repeated installs safely)
- Fix package.json: merge "type":"module" instead of overwriting
(was destroying npm dependencies)
- Fix launcher path: proper expansion for paths with spaces
README (EN/ZH/JP):
- Clarify this is NOT a third-party client, but a runtime patch
on top of official Claude Code that works across versions
- Add "type": "module" to package.json after npm install (fixes#2)
- Run hash -r after install + warn user to restart terminal (fixes#1)
- Fix cautious actions removal: replace entire function body instead
of deleting template content (was causing SyntaxError)
- Remove 'lin' alias from public release
Closes#1, closes#2