pub fn write_backup_for_settings(path: &Path) -> Result<PathBuf, CliError>Expand description
Write a timestamped backup of settings.json for hook installation.
Uses PID + timestamp to avoid collisions across processes. Reads content
via fs::read + fs::write (not fs::copy) to avoid following symlinks.