* feat:(project-snapshot) restoring project from snapshot on reload
* minor bugfix
* updated message
* added snapshot reload with auto run dev commands
* added message context
* snapshot updated
# Device Frame Feature Implementation
## Key Features Added
1. **Device Frames for Mobile and Tablet Previews**
- Added visual frames for iPhone and iPad devices
- Implemented both portrait and landscape orientations
- Created realistic device bezels with notches and home buttons
2. **Device Options Panel**
- Added toggle for showing/hiding device frames
- Added toggle for landscape/portrait orientation
- Updated device size information display
3. **External Window Preview Enhancements**
- Fixed "about:blank" issue with external previews
- Implemented reliable window creation with proper dimensions
- Added device name and orientation labels
## Technical Implementation Details
1. **Frame Rendering Approach**
- Created a complete HTML document with styling for device frames
- Used document.write() to inject content into new window
- Implemented proper iframe loading within the device frame
2. **Responsive Design**
- Dynamic adjustment of frame elements based on device type
- Proper handling of orientation changes (landscape/portrait)
- Appropriate sizing for different device types (mobile vs tablet)
3. **Security and Reliability**
- Avoided cross-origin manipulation issues
- Implemented error handling for window creation
- Maintained proper sandbox attributes for security
## UI/UX Improvements
1. **Visual Enhancements**
- Added realistic device styling (rounded corners, notches, buttons)
- Implemented proper shadows and depth for 3D appearance
- Created clean, minimal interface for device controls
2. **User Controls**
- Intuitive toggles for device frame and orientation
- Clear labeling of device dimensions and frame status
- Maintained existing preview functionality while adding new features
## Code Quality
1. **Maintainability**
- Used TypeScript interfaces for proper typing
- Implemented clean separation of concerns
- Added appropriate comments for complex sections
2. **Performance**
- Optimized rendering approach to avoid unnecessary reflows
- Used efficient DOM manipulation techniques
- Maintained responsive performance across different device sizes
* Fix FilesStore: Handle empty content correctly in saveFile(). Happens when user creates files in the web terminal
* updated logic
---------
Co-authored-by: Anirban Kar <thecodacus@gmail.com>
- Added dark/light theme support for syntax highlighting
- Enhanced color styles for added/removed lines and characters
- Integrated theme store to dynamically adjust syntax highlighter theme
- Refined color contrast for better readability across themes
- Removed lucide-react and next-themes from package dependencies
- Simplified import in workbench store for path and file-saver
- Removed unnecessary module definition in Vite config
- Improved diff algorithm to detect more granular line and character-level changes
- Added support for character-level highlighting in diff view
- Simplified diff view mode by removing side-by-side option
- Updated component rendering to support more detailed change visualization
- Optimized line change detection with improved matching strategy
- Implemented a new Diff View in the Workbench to visualize file changes
- Added file history tracking with detailed change information
- Enhanced FileTree and FileModifiedDropdown to show line additions and deletions
- Integrated file history saving and retrieval in ActionRunner
- Updated Workbench view types to include 'diff' option
- Added support for inline and side-by-side diff view modes