ChatGPT CLI v1.10.7
New Features
- Patch and Replace File Operations: Introduced
PatchFileandReplaceBytesInFilemethods on theFilesinterface to allow more efficient in-place file modifications without needing to read the entire content.PatchFileMethod: Applies a unified diff to a file.ReplaceBytesInFileMethod: Replaces byte patterns with new data in a file, supporting controlled occurrences.
Improvements
- Unified Diff Parsing: Enhanced diff parsing capability with robust handling of edge cases and strict adherence to unified diff standards.
- Error Handling in Operations: Improved error messages and handling, particularly in
PatchFileandReplaceBytesInFile, making the operations more resilient and informative when issues are encountered. - Logging Improvements: Adjustments to log file creation and opening process to truncate files instead of appending to existing ones, leading to cleaner log management.