Files
CodexandClaude Sonnet 4.5 703da834fb fix(security): 修复 shell 注入风险和类型转换未捕获问题
- path_config.py: find_executable Unix 回退路径使用 shlex.quote 防注入
- underlying_operations.py: try_set_ime IME ID 使用 shlex.quote 防注入
- screenshot_direct.py: 环境变量 float/int 转换添加 try/except 容错
- device_select.py: 用户输入 int() 转换添加 try/except 容错
- read_once.py / image_acquirer.py / detail_verifier.py: PIL Image 添加 close()
- detector.py: 移除 return 后不可达死代码
- optimized_entry.py: 统一返回值类型 int,失败时返回 0
- read_once.py: 移除 try/except 中重复的相同代码

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-05-23 20:50:26 +08:00
..

配置目录

本目录包含项目的所有配置文件。

配置文件列表

  • config.json - 主配置文件(唯一配置入口),包含所有运行时配置参数
  • pyrightconfig.json - Pyright类型检查器配置
  • pytest.ini - pytest测试框架配置

注意事项

  • config/config.json 是运行时配置文件,会被程序读取和修改
  • 建议在修改配置前备份原文件
  • 配置文件使用 UTF-8 编码