- diagnostics/ 11 个:环境/配置/依赖诊断 - logs/ 7 个:日志分析与查看 - coords/ 6 个:坐标拾取与区域选择 - cleanup/ 3 个:代码清理工具 - adb/ 2 个:ADB / 输入法相关 - windows/ 4 个:Windows 系统修复(备份) - dev/ 9 个:开发辅助 / 运行时探测 并更新 tools/README.md 描述新结构。 删除 3 个明显的临时调试脚本 (_dump_lines.py / tmp_*.py)。 tools/ 不被业务代码 import,分组仅为人工浏览方便。 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
39 lines
1.5 KiB
Markdown
39 lines
1.5 KiB
Markdown
# tools/ 工具脚本目录
|
|
|
|
按功能分组组织,与主代码分离。tools/ 不被业务代码 import。
|
|
|
|
## 目录结构
|
|
|
|
| 子目录 | 用途 | 典型脚本 |
|
|
|--------|------|----------|
|
|
| `diagnostics/` | 环境/配置/依赖诊断 | `check_system_config.py`、`check_dependencies.py`、`diagnose_runtime_flags.py` |
|
|
| `logs/` | 日志分析与查看 | `analyze_step_times.py`、`color_log_viewer.py`、`log_filter.py` |
|
|
| `coords/` | 坐标拾取与区域选择 | `pick_coords.py`、`region_selector.py`、`scan_coords.py` |
|
|
| `cleanup/` | 代码清理工具 | `cleanup_unused_files.py`、`fix_trailing_whitespace.py` |
|
|
| `adb/` | ADB / 输入法相关 | `auto_connect_wifi_adb.py`、`ADBKeyboard.apk` |
|
|
| `windows/` | Windows 系统修复脚本 | `fix_start_menu_win11.ps1` 等(与本项目无关,仅备份) |
|
|
| `dev/` | 开发辅助 / 运行时探测 | `param_usage_tool.py`、`simulate_swipe_trigger.py`、`merge_configs.py` |
|
|
|
|
## 常用入口
|
|
|
|
```powershell
|
|
# 系统/依赖诊断
|
|
python tools/diagnostics/check_system_config.py
|
|
python tools/diagnostics/check_dependencies.py
|
|
|
|
# 坐标扫描
|
|
python tools/coords/scan_coords.py
|
|
|
|
# 日志分析
|
|
python tools/logs/log_filter.py
|
|
python tools/logs/color_log_viewer.py
|
|
|
|
# 参数使用追踪
|
|
python tools/dev/param_usage_tool.py show --limit 200
|
|
```
|
|
|
|
## 注意
|
|
|
|
- `windows/` 下的脚本是本机环境的修复工具,与抖音挂机功能无关,保留作为环境备份。
|
|
- `coords/scan_coords.py` 输出 `tools/coords/coords_report.csv`(已 gitignore),人工核查用。
|