# Changelog

## [0.1.3] - 2025-06-17

### Fixed
- **Critical**: Complete rewrite of database layer to handle Node.js version mismatches gracefully
- Added fallback JSON storage when SQLite native module fails to load
- Fixed postinstall script to use ES modules properly
- Added robust error handling to prevent crashes from storage failures

### Added
- Safe database wrapper that automatically falls back to JSON storage
- Better postinstall script with clear error messages
- Scripts folder included in npm package for postinstall

### Changed
- Database operations now fail silently to not interrupt user workflow
- All storage errors are caught and handled gracefully
- Improved production readiness with multiple fallback mechanisms

## [0.1.2] - 2025-06-17

### Fixed
- **Critical**: Updated better-sqlite3 from v9.2.2 to v11.5.0 for Node.js v23 compatibility
- **Critical**: Fixed shell integration syntax error (unmatched quotes in .zshrc)
- Added command existence checks to prevent "context-on/context-off command not found" errors
- Added autoload for zsh hooks to ensure proper loading

### Added
- Postinstall script to automatically rebuild native modules for user's Node.js version
- Package overrides to ensure better-sqlite3 version compatibility

### Changed
- Improved shell integration robustness across bash, zsh, and fish

## [0.1.1] - 2025-06-17

### Added
- Shell integration fixes
- .npmignore file for cleaner npm package
- LICENSE file

### Fixed
- Repository URLs in package.json

## [0.1.0] - 2025-06-16

### Initial Release
- Core command analysis functionality
- Pattern detection engine
- Shell integration for bash, zsh, and fish
- AI integration with OpenAI
- SQLite storage for command history
- Dangerous command detection
- Context-aware suggestions
- Statistics tracking