Your Name
|
d81e00ddbc
|
add pause resume controls to ui
|
2026-06-23 02:38:08 +08:00 |
|
Your Name
|
5c98bb8353
|
Support reconnecting multiple WiFi ADB devices
|
2026-06-23 00:25:56 +08:00 |
|
Your Name
|
cb74a23e81
|
feat: simplify license activation flow
|
2026-06-18 18:38:51 +08:00 |
|
Your Name
|
05be83d289
|
feat: add simple license activation server
|
2026-06-18 17:39:56 +08:00 |
|
Your Name
|
079bf8537a
|
style(webui): refine typography and spacing
|
2026-06-18 04:35:19 +08:00 |
|
Your Name
|
5166678590
|
Add license key entry to UI
|
2026-06-17 23:01:21 +08:00 |
|
Your Name
|
87838daad4
|
add windows installer packaging workflow
|
2026-06-09 21:58:35 +08:00 |
|
Your Name
|
9b03556b7d
|
expose fudai detail thresholds and regions
|
2026-06-05 15:36:10 +08:00 |
|
Your Name
|
4797fa046e
|
feat: expose fudai region coordinates in gui
|
2026-06-03 20:29:10 +08:00 |
|
Your Name
|
bcc4d1151f
|
修复WiFi ADB随机端口扫描
|
2026-06-03 17:52:02 +08:00 |
|
Your Name
|
daf0c49288
|
统一日志详细度入口
|
2026-06-03 17:39:53 +08:00 |
|
Your Name
|
198a30dce1
|
完善新UI适配与日志简化
|
2026-06-03 12:40:06 +08:00 |
|
Your Name
|
24b58a8c6d
|
优化WiFi ADB快速扫描
|
2026-06-03 08:50:43 +08:00 |
|
Your Name
|
168ab4e1f8
|
调整调试图像开关语义
|
2026-06-03 01:48:02 +08:00 |
|
Your Name
|
1d37d57c90
|
修复福袋详情OCR v2与调试日志
|
2026-06-03 01:22:13 +08:00 |
|
Your Name
|
36e374ef67
|
refactor: split large modules and harden live-room fudai flow
|
2026-06-01 18:39:44 +08:00 |
|
Your Name
|
5a51c951a2
|
fix(fudai): treat notice text as attended and harden attend/log parsing
|
2026-06-01 12:33:33 +08:00 |
|
Your Name
|
a68307d7fd
|
fix(wifi-adb): restore hi-port fallback path and harden reconnect/import edge cases
|
2026-06-01 11:05:47 +08:00 |
|
Your Name
|
f76232f2fc
|
fix(wifi-adb): improve scan with multi-subnet fallback and mdns discovery
|
2026-06-01 09:40:44 +08:00 |
|
Your Name
|
37f736c158
|
fix(webgui): harden config bool parsing and action error handling
|
2026-06-01 09:07:03 +08:00 |
|
Your Name
|
3659d5b7da
|
refactor: centralize web gui host/port config in path_config
|
2026-06-01 07:08:47 +08:00 |
|
Your Name
|
1ef7325ead
|
refactor(webgui): extract request and static helpers
|
2026-06-01 01:05:45 +08:00 |
|
 CodexandClaude Opus 4.7
|
be1eb6eda7
|
refactor(web_gui): 抽 ProcRunner._update_stats_from_line 解析逻辑到 stats_log_parser (2429 → 1806)
ProcRunner._update_stats_from_line 是 624 行的"日志行 → 计数器更新"方法,与
gui_core.Runner 同名方法行为接近但有差异:
- web_gui 解析 traceId / MDC 信息(gui_core 没有)
- web_gui 没有 _lock / _last_log_ts 字段(不需要锁保护)
- web_gui 没有 unique_keys_* / *_room_pos 这些去重数据结构
- web_gui 有"进入直播间到识别福袋耗时"事件解析
抽到独立的 gui/web_gui_pkg/stats_log_parser.py(不与 gui_core_pkg 版本共享,
避免在两边各加缺失字段,行为差异显式保留在两个文件中):
- update_stats_from_line(runner, line) 主入口
- 16 个 _parse_* 子函数(含 traceId/MDC、enter_to_fudai_seen 等 web_gui 专属段)
ProcRunner._update_stats_from_line 从 624 行变成 4 行委托。
1408 passed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-23 03:41:52 +08:00 |
|
 CodexandClaude Opus 4.7
|
a6bbdcc400
|
拆分 web_gui (2251 → 5 子模块 + 2148 行原文件保留 ProcRunner/Handler/main)
把 gui/web_gui.py 中 11 个独立 helper 拆出到 gui/web_gui_pkg/ 子包,
ProcRunner 巨型类(1514 行 / 25 实例方法 / 390 处 self)+ Handler 类
(588 行)+ main 留在原文件。
新建子包:
- logger (29) _wg_log + module logger
- ansi (17) strip_ansi_escape_codes + _ANSI_ESCAPE_RE
- adb_compat (44) 5 个 thin wrapper(forward 到 gui.gui_core_pkg)
- nested (18) get_nested_value(点号路径配置读取)
- stats_helpers (71) _parse_countdown_seconds / _bucket / _inc_map(ProcRunner 3 个 @staticmethod)
策略:8 个顶层 helper 直接搬子包;ProcRunner 内 3 个 @staticmethod 也搬,
类内改成 1 行 @staticmethod forwarding 保持 ProcRunner._parse_countdown_seconds
等调用兼容。原文件 import gui.web_gui_pkg 暴露 11 个公共符号。
外部 import 路径全部不变:
- find_adb_executable / read_config / list_adb_devices 等共 70+ 处外部引用
全部不需修改(CONFIG_PATH 17 处 / read_config 17 处 / find_adb_executable
18 处 / list_adb_devices 21 处 / write_config 10 处 / 其他 1-7 处)
回归:
- 6 个新文件 + 改写后 web_gui.py compileall 通过
- pytest 353 passed / 1 skipped
- _wg_log / strip_ansi_escape_codes / get_nested_value 调用结果正确
- ProcRunner._parse_countdown_seconds('1:30') = 90 (薄壳 forwarding OK)
- ProcRunner._bucket(15, [0,10,50,100]) = '10-50'
- ProcRunner._inc_map(m, 'k', 5) -> {'k': 5}
- ProcRunner() 实例化 OK
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
2026-05-21 18:57:52 +08:00 |
|