mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-03-22 15:08:22 +08:00
* feat(misc): add WSL tool version detection with security hardening (#608) - Add WSL distro detection from UNC path (wsl$/wsl.localhost) - Add distro name validation to prevent command injection - Add defensive assertion for tool parameter - Unify cfg macros to target_os = "windows" - Standardize error message format to [WSL:{distro}] Closes #608 * fix(misc): add CREATE_NO_WINDOW flag and unify error messages to English - Add CREATE_NO_WINDOW flag to wsl.exe command to prevent console window flash - Standardize error messages from Chinese to English for consistency --------- Co-authored-by: Jason <farion1231@gmail.com>