mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-09-07 00:24:17 +08:00
- Implemented `guardWatcherAuthRemovalLocked` to prevent unauthorized watcher-triggered deletions of tracked auth files. - Updated `PersistAuthFiles` to handle redundant watcher events safely after intentional deletions. - Improved error handling for git tree and repository inspections during watcher removal validation. - Enhanced `commitAndPushLocked` logic to perform additional checks before committing changes. - Added comprehensive tests to validate watcher-originated deletion safeguards and correct behavior for explicit deletions. Closes: #4438