Commit Graph
17 Commits
Author SHA1 Message Date
carraes c3e401a19e chore: bump version to 0.3.2 2025-07-09 06:17:35 -03:00
carraes 64663b27a7 docs: update README with .shushignore and context lines features 2025-07-07 15:40:59 -03:00
carraes c50bd8f203 chore: bump version to 0.3.0 2025-07-07 14:37:17 -03:00
carraes 9109964235 fix: critical hooks bug - preserve all Claude Code settings
BREAKING BUG FIX: Hook installation was destroying existing Claude Code settings

- Fix critical data loss in --install-hook and --uninstall-hook commands
- Change ClaudeSettings to preserve ALL existing JSON settings via Data map
- Add automatic timestamped backup creation before any settings modification
- Implement surgical hook installation that adds to existing config structure
- Implement surgical hook removal that only removes shush hooks
- Prevent loss of user settings like includeCoAuthoredBy, themes, etc.
- Add comprehensive error handling for malformed settings files

This was a critical data loss bug that could destroy users' Claude Code configurations.
All existing settings are now preserved during hook operations.

Fixes: Users losing their Claude Code settings during hook installation
Added: Automatic backups with timestamp (settings.json.backup.TIMESTAMP)
Improved: Hook management now respects existing PostToolUse configurations
2025-07-07 14:18:59 -03:00
carraes 3aff5e644a chore: bump version to 0.2.2 2025-07-07 09:32:18 -03:00
carraes 79b20776fc feat: update acronym to 'Hushing' and fix backup creation bug
- Update SHUSH acronym from 'Hiding' to 'Hushing' (better reflects removal)
- Fix critical error handling bug in file backup creation using io.Copy
- Remove golangci-lint references from Makefile and CLAUDE.md
- Update README, LLM guide, and CLI description with new acronym
- Create TASKS.md to track project improvements
2025-07-07 09:31:37 -03:00
carraes 8152e62cf5 feat: add support for 30+ languages and update README
- Add support for Rust, C#, PHP, Swift, Kotlin, SQL
- Add support for HTML, XML, CSS, SCSS markup languages
- Add support for JSX/TSX, Dart, Scala
- Add support for shell variants, config files, and more
- Add AlternateLineComment support for INI files
- Update README with comprehensive language tables
- Bump version to 0.2.1
2025-07-06 22:02:41 -03:00
carraes 0b9067daf5 chore: bump version to 0.2.0 2025-07-06 19:26:31 -03:00
carraes f941ac23cb refactor(main): simplify main.go by extracting functions to modules
- Reduce main.go from 589 lines to 69 lines (88% reduction)
- Extract LLM guide, hook commands, config commands, and validation
- Use new modular components for better separation of concerns
- Maintain exact same functionality with cleaner architecture
2025-07-06 12:01:04 -03:00
carraes 67d101212f fix(hooks): improve uninstall safety with jq and better fallback handling 2025-07-06 11:21:24 -03:00
carraes 48848b2cbd style: fix formatting and indentation consistency
- Remove extra blank lines and fix indentation in test files
- Ensure consistent struct field alignment in git types
2025-07-05 23:44:48 -03:00
carraes f53439ddda feat(cli): add configuration and hooks management commands
- Add --config flag to show current configuration and search paths
- Add --create-config flag to generate example .shush.toml files
- Add hook management flags: --install-hook, --uninstall-hook, --list-hooks, --hook-status
- Implement cross-scope conflict detection with clear error messages
- Add -s flag for hook scope selection (user-wide vs project-specific)
2025-07-05 23:43:46 -03:00
carraes e405f1158e chore: bump version to 0.1.3 2025-07-05 22:28:54 -03:00
carraes 161b5e1862 feat(cli): add git-aware CLI flags and validation
- Add ChangesOnly, Staged, Unstaged flags to CLI struct
- Implement git flag validation with mutual exclusion rules
- Add comprehensive flag compatibility checks
- Update LLM guide with git workflow examples and documentation
- Include test suite for CLI validation logic
2025-07-05 22:28:13 -03:00
carraes b7408d52e9 feat: add --llm flag and update README with directory support
- Add --llm flag for comprehensive LLM-friendly usage guide
- Update README with directory processing examples
- Add recursive flag documentation
- Update version to 0.1.2
- Comprehensive LLM guide covers all usage patterns, supported languages, and best practices
2025-07-03 14:38:45 -03:00
carraes 8fdfbc7f06 fix: preserve blank lines while removing comments
- Remove comment-only lines completely
- Strip inline comments but preserve the line
- Keep original blank lines intact
- Maintain file structure and spacing
- Update version to 0.1.1
2025-07-03 14:30:30 -03:00
carraes 406dc32879 fix: add missing cmd/shush/main.go and update gitignore 2025-07-03 14:26:20 -03:00