* feat: refactor APPLY_PATCH tool
Replace separate file creation and editing tools with unified APPLY_PATCH tool for the native-gpt-5 model variant. This consolidation simplifies file operations through a single patch-based interface.
Changes:
- Replace FILE_NEW and FILE_EDIT tools with APPLY_PATCH in config for gpt-5 with native tool calling
- Disable EDITING_FILES system prompt section (no longer needed)
- Remove EDITING_FILES section from base template
- Refactor ApplyPatchHandler with improved architecture:
- Extract patch parsing logic into PatchParser utility class
- Extract file operations into FileProviderOperations utility
- Extract path resolution into PathResolver utility
- Add comprehensive error handling with DiffError types
- Improve type safety with shared Patch types
- Add extensive test coverage for PatchParser including:
- Edge cases (empty files, large files, unicode)
- Error conditions (malformed patches, invalid operations)
- Complex scenarios (multiple chunks, context matching)
- Export PATCH_MARKERS and BASH_WRAPPERS for reusability
This refactoring improves maintainability, testability, and provides a more robust patch application system for the GPT-5 model variant when native tool calling is enabled.
* Add diagnostic to result
* Update unit tests
* add feedback
* typo
* captureToolUsage
* fix test
* fix test
* Update ClineMessage
* update diff editor on stream
* revert content partial stream
* Disable Apply patch and add native gpt snap shot
* Remove delete action and make preserveEscaping conditional
* Add delete function to diff provider
* Update UI for file deletion
* terminal shift enter support
* not needed
* detecting windows
* removing enhancedkeyboard
* removing enhanced keyboard
* ghostty
* proper ghostty support
* docs for posterity
* better logging
* removing md
* doctor command
* adding arguments for sync/async for doctor and keyboard setup - and moved keyboard setup to doctor command
* doctor help
* cleaning up logging and making things more explicit
* language and positioning
* standardizing color codes in plain mode
* wow even more hidden rendering - removed
* fixing stdin for restrictive shell environments
* starting instance before anything else
* auth wizard from root if no credentials
* removing debug logs
* better design
* moving more things to verbose flag
* ensuring that when a new cline instance is started and there are no others, that it is set as default
* auth wizard should always have an instance at the beginning with ensuredefaultinstance
* setting welcome state to true when user inputs credentials
* normie friendly root command
* control c logic
* prompt to cline root works
* ask question tool streaming
* simplified & unified tool handling and approval messages, and supporting edge case with attempt completion calling terminal command
* wip
* overshooting now
* no more overshooting
* static markdown rendering for non streamed cli stuff
* more aesthetic
* plain text support, and more consistent markdown experience
* moving instance info into renderer
* fixed ispartial handling for all cases, and cleaned up output to not have emojis
* consolidating rendermessage function
* timestamps for checkpoints only
* removing useless comments
* showing terminal commands
* terminal command + browser +mcp
* removing unused timestamp argument