feat: add uninstall command; fix utf-8 encoding and minor cleanups

This commit is contained in:
Daiyimo
2026-02-26 16:01:22 +08:00
parent cf70302e92
commit 9c6c04c800
4 changed files with 130 additions and 17 deletions
+3 -2
View File
@@ -74,11 +74,12 @@ def format_report(results: Dict[str, dict]) -> str:
if ok_count < total:
lines.append("运行 `agent-reach setup` 解锁更多渠道")
# Security check: config file permissions
# Security check: config file permissions (Unix only)
import os
import stat
import sys
config_path = Config.CONFIG_DIR / "config.yaml"
if config_path.exists():
if config_path.exists() and sys.platform != "win32":
try:
mode = config_path.stat().st_mode
if mode & (stat.S_IRGRP | stat.S_IROTH):