 CodexandClaude Opus 4.7
|
e351745e92
|
refactor(fudai): 抽 run_once_basic 中"30分钟超时检查"块到 try_no_attend_timeout
将步骤 0"30分钟未参与成功福袋则返回推荐页"独立块(约 68 行)抽到
fudai_detail_helpers.try_no_attend_timeout。逻辑:
- 如果距离 _last_successful_attend_ts > _no_attend_timeout_minutes 触发
- 如果从未参与且运行时长 > _no_attend_timeout_minutes 触发
- 触发时调用 _return_to_recommend_and_reenter_live + 写完成日志
返回值约定:
- True:触发超时处理,调用方应直接 return
- False:未触发,调用方继续
douyin_fudai.py: 2971 → 2910 行 (-61)
fudai_detail_helpers.py: 745 → 819 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 11:19:53 +08:00 |
|
 CodexandClaude Opus 4.7
|
0114af2321
|
refactor(fudai): 抽 run_once_basic 中"跳过阶段检测"块到 try_skip_stage_diagnosis
将步骤 0.5"点击参与抽奖后跳过阶段检测,直接查找福袋"独立块(约 19 行)
抽到 fudai_detail_helpers.try_skip_stage_diagnosis。
返回值约定:
- True:跳过阶段检测路径完成,调用方应直接 return
- False:正常流程,继续阶段检测
douyin_fudai.py: 2983 → 2971 行 (-12)
fudai_detail_helpers.py: 716 → 745 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 11:18:18 +08:00 |
|
 CodexandClaude Opus 4.7
|
849160304e
|
refactor(fudai): 抽 run_once_basic 中"刚记录预约后切换直播间"块到 try_just_recorded_reservation_switch
将 run_once_basic 步骤"检查是否刚刚记录了预约,如果是则强制切换直播间"
独立块(约 47 行)抽到 fudai_detail_helpers.try_just_recorded_reservation_switch。
返回值约定:
- True:刚记录预约,已尝试切换并写完成日志(调用方应直接 return)
- False:未触发,调用方继续正常流程
douyin_fudai.py: 3022 → 2983 行 (-39)
fudai_detail_helpers.py: 657 → 716 行
douyin_fudai.py 跌破 3000 行(4121 → 2983,本会话累计削减 1138 行)
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 11:16:38 +08:00 |
|
 CodexandClaude Opus 4.7
|
7307b2abb5
|
refactor(fudai): 抽 run_once_basic 中"COUPON_POPUP"和"SHOPPING_REDPACKET_POPUP"分支到 helper
将两个简单的弹窗处理分支抽到独立 helper:
- handle_coupon_popup:按返回键关闭优惠券弹窗
- handle_shopping_redpacket_popup:点击 (530, 1647) 关闭购物红包弹窗
douyin_fudai.py: 3042 → 3022 行 (-20)
fudai_detail_helpers.py: 618 → 657 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 11:14:54 +08:00 |
|
 CodexandClaude Opus 4.7
|
c9a07cc91e
|
refactor(fudai): 抽 run_once_basic 中"IN_LIVE_ROOM"分支到 handle_in_live_room_stage
将"在直播间"阶段的处理逻辑(约 44 行)抽到
fudai_detail_helpers.handle_in_live_room_stage。逻辑:
- 如果刚切换直播间(_just_switched_room=True),等待福袋加载
(switch_room_wait_after_stage_diag_seconds 秒)
- 调用 _handle_live_room_has_or_not_fudai 寻找福袋图标
- 写完成日志
douyin_fudai.py: 3071 → 3042 行 (-29)
fudai_detail_helpers.py: 572 → 618 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 11:12:21 +08:00 |
|
 CodexandClaude Opus 4.7
|
b5d7943af0
|
refactor(fudai): 抽 run_once_basic 中"FUDai_RESULT"分支到 handle_lottery_result_stage
将抽奖结果弹窗处理独立块(约 30 行)抽到
fudai_detail_helpers.handle_lottery_result_stage。逻辑:
- 清除 _waiting_for_lottery_result / _current_attending_reservation_fudai
- OCR 识别开奖结果文本
- 命中则 _handle_lottery_result_by_ocr;未命中则返回键 + 切下个直播间
- 写完成日志
douyin_fudai.py: 3092 → 3071 行 (-21)
fudai_detail_helpers.py: 535 → 572 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 11:10:48 +08:00 |
|
 CodexandClaude Opus 4.7
|
da552d18cc
|
refactor(fudai): 抽 run_once_basic 中"RECOMMEND_PAGE"分支到 handle_recommend_page
将识别到推荐页面后的处理逻辑(约 56 行)抽到
fudai_detail_helpers.handle_recommend_page。逻辑:
- 点击进入直播页 (718, 169)
- 连点两次进入直播间 (103, 382)
- 多段延迟(FOLLOW_TAB_CLICK_DELAY / ENTER_LIVE_CLICK_DELAY /
RETURN_STEP_DELAY_SECONDS / ENTER_LIVE_FINAL_DELAY)
- 异常时按返回键 + delay 1s
douyin_fudai.py: 3132 → 3092 行 (-40)
fudai_detail_helpers.py: 477 → 535 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 11:09:26 +08:00 |
|
 CodexandClaude Opus 4.7
|
40b4169aac
|
refactor(fudai): 抽 run_once_basic 中"桌面自救检测"块到 try_desktop_recovery
将 run_once_basic 步骤 1.5 桌面自救独立块(约 95 行)抽到
fudai_detail_helpers.try_desktop_recovery。
返回值约定:
- True:检测到不在抖音前台,已尝试自救并递归调用 run_once_basic
(调用方应直接 return)
- False:在抖音前台或检测异常,调用方继续正常流程
douyin_fudai.py: 3220 → 3132 行 (-88)
fudai_detail_helpers.py: 372 → 477 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 11:07:34 +08:00 |
|
 CodexandClaude Opus 4.7
|
265a533cf0
|
refactor(fudai): 抽 run_once_basic 中"高价值房间重访"块到 try_high_value_room_revisit
将 run_once_basic 步骤 2.0 高价值房间重访检查独立块(约 78 行)抽到
fudai_detail_helpers.try_high_value_room_revisit。
返回值约定:
- True:重访成功,调用方应直接 return(结束本轮 run_once_basic)
- False:未触发或重访失败,调用方继续正常流程
douyin_fudai.py: 3290 → 3220 行 (-70)
fudai_detail_helpers.py: 284 → 372 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 11:06:09 +08:00 |
|
 CodexandClaude Opus 4.7
|
37b3454e32
|
refactor(fudai): 抽 run_once_basic 中"FANSCLUB_JOIN"分支到 handle_fansclub_join
将 run_once_basic 中"粉丝团加入"分支(约 164 行)整段抽到
fudai_detail_helpers.handle_fansclub_join。逻辑:
- 第一步:点击参与按钮(基于 OCR 区域中心 543, 2070)
- 第二步:连续两次点击预设位置(527, 567)
- 第三步:关闭详情页(点击 500, 470)
- 异常分支:按 auto_join_fansclub 决定是否再次诊断 + 重试 + 点击返回
- 最终:按 fansclub_fail_action 决定是否切换直播间
douyin_fudai.py: 3447 → 3290 行 (-157)
fudai_detail_helpers.py: 120 → 284 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 11:02:56 +08:00 |
|
 CodexandClaude Opus 4.7
|
77351bafd4
|
refactor(fudai): 抽 run_once_basic 中"截图失败多次重试"日志块到 log_screenshot_failed
将 run_once_basic 中"获取截图失败(多次重试后仍失败)"的多字段日志块
(22 行)抽到 fudai_detail_helpers.log_screenshot_failed。
douyin_fudai.py: 3460 → 3447 行 (-13)
fudai_detail_helpers.py: 83 → 120 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 11:00:56 +08:00 |
|
 CodexandClaude Opus 4.7
|
9675df2cdb
|
refactor(fudai): 抽 _handle_in_fudai_detail 中重复的"清除任务数量标志"块到 clear_task_count_flag
_handle_in_fudai_detail 中有 11 处结构完全相同的"清除任务数量标志"
try/except 嵌套块(每处 12 行),统一抽到 clear_task_count_flag helper。
逻辑:set _fudai_detail_task_count_from_stage = None + log_kv("福袋详情",
"_handle_in_fudai_detail:清除任务数量标志", log_type="DEBUG")。
douyin_fudai.py: 3588 → 3460 行 (-128)
fudai_detail_helpers.py: 63 → 83 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 10:57:59 +08:00 |
|
 CodexandClaude Opus 4.7
|
d34e39ec9c
|
refactor(fudai): 抽 _handle_in_fudai_detail 中"连续参与失败次数过多"块到 fudai_detail_helpers
将 49 行的"连续参与失败兜底"块抽到 fudai_modules/fudai_detail_helpers.py:
handle_consecutive_failures_exceeded。逻辑:
- 写日志 + 关闭详情页
- 按 needswitch 切换直播间或保持单间模式
- 重置 _consecutive_attend_failures 计数器
douyin_fudai.py: 3627 → 3588 行 (-39)
新增 fudai_detail_helpers.py: 63 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 10:52:59 +08:00 |
|
 CodexandClaude Opus 4.7
|
34bdf44d73
|
refactor(fudai): 抽 attend_choujiang 中"开始观看"/"参与"分支用 handle_simple_click
新增 handle_simple_click 通用模板,覆盖结构完全相同的 2 个分支:
- "开始观看" → click(543, 2070) + log + return True
- "参与" → click(543, 2070) + log + return True
每个分支原本 11 行(含坐标注释),合并后 4 行调用。
fudai_attend.py: 1309 → 1295 行 (-14)
fudai_attend_branches.py: 349 → 366 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 10:49:21 +08:00 |
|
 CodexandClaude Opus 4.7
|
6f4dbb2d8b
|
refactor(fudai): 抽 attend_choujiang 中"评论"和"参与抽奖"分支到 handle_attend_click
将 attend_choujiang 中两个结构高度重叠的"点击参与按钮"分支抽到通用
handle_attend_click(analyser, mode) helper:
- 评论模式:仅点击 + 记 metric,return True
- 参与抽奖模式(mode="普通"):额外
- 设置 _skip_stage_diagnosis_and_find_fudai 标志
- 写 debug log(开始设置等待开奖标志)
- 设置 _waiting_for_lottery_result / _lottery_result_expected_ts
- 写 debug log(成功设置等待开奖标志)
fudai_attend.py: 1446 → 1309 行 (-137)
fudai_attend_branches.py: 217 → 349 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 10:47:24 +08:00 |
|
 CodexandClaude Opus 4.7
|
4e89fadd2e
|
refactor(stage): 提取"步骤2.5 购物红包OCR复查"块到 verify_redpacket_outside_live_room
将 douyin_stage.py 中"不在直播间但像素检测到购物红包背景"的 OCR 复查
独立块(约 153 行)抽到 douyin_stage_helpers.verify_redpacket_outside_live_room。
逻辑:
- 截图 SHOPPING_REDPACKET_AREA
- OCR 模式0 → 关键词未命中且 enable_ocr_mode1 → 跑模式1
- 关键词匹配 OR 置信度 ≥ shopping_redpacket_ocr_confidence_threshold → 判定
依赖通过参数注入:pixel_state、pixel_details、enable_ocr_mode1、
max_step_time、diag_start、_log/_log_summary、preprocess_for_ocr。
douyin_stage.py: 1247 → 1111 行 (-136)
douyin_stage_helpers.py: 199 → 383 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 10:40:26 +08:00 |
|
 CodexandClaude Opus 4.7
|
331860ee5c
|
refactor(reservation): 抽 attend_window 中 2 个时间窗口日志块
将 process_reservation_attend_window 中两个纯日志块抽到 helper:
- log_time_window_not_yet:时间窗口未到,跳过回退
- log_missed_window:已明显错过开奖时间,记录 missed_seconds
attend_window.py: 1276 → 1247 行 (-29)
attend_window_helpers.py: 276 → 329 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 10:35:18 +08:00 |
|
 CodexandClaude Opus 4.7
|
4abd053957
|
refactor(reservation): 抽 attend_window 的"详细检查日志"块到 log_attend_window_detail_check
将 process_reservation_attend_window 中"详细调试日志"块(约 50 行)抽到
log_attend_window_detail_check helper。该块仅做日志输出,无副作用,
依赖通过参数注入:now_ts / focus_until / ft / dynamic_ahead / join_ahead /
poll_before / est_back_times。
attend_window.py: 1314 → 1276 行 (-38)
attend_window_helpers.py: 213 → 276 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 10:33:35 +08:00 |
|
 CodexandClaude Opus 4.7
|
8fea99a168
|
refactor(reservation): 抽 attend_window 的"锁定期处理"块到 process_lock_period
将 process_reservation_attend_window 中"锁定期内:优先处理锁定的预约"
独立块(51 行)抽到 process_lock_period helper。逻辑:
- 在 reservations 中找与 focus_until 对应的预约(误差 ≤5 秒)
- 找不到 → 视为锁定失效,清除 focus_until_ts_ref,返回 0.0
- 找到但不在队头 → 移到队头,返回原 focus_until
- 已在队头 → 不动,返回原 focus_until
attend_window.py: 1352 → 1314 行 (-38)
attend_window_helpers.py: 143 → 213 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 10:31:53 +08:00 |
|
 CodexandClaude Opus 4.7
|
51d859150d
|
refactor(reservation): 抽 attend_window 中重复的"超时检查"模式到 check_total_timeout
process_reservation_attend_window 内有 2 处结构完全相同的超时检查块
("排序前"和"排序后"),各 13 行。统一抽到 check_total_timeout helper,
通过 stage_label 参数区分日志。
attend_window.py: 1372 → 1352 行 (-20)
attend_window_helpers.py: 116 → 143 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 10:30:32 +08:00 |
|
 CodexandClaude Opus 4.7
|
c509bf1262
|
refactor(reservation): 提取 attend_window 中 2 个早返回块到 attend_window_helpers
将 process_reservation_attend_window 中两个结构相同的早返回块抽出:
- handle_already_participated:检测到 ft 已被参与,移除队头并写状态
- handle_invalid_future_ts:future_ts ≤ 0,丢弃队头并写状态
新增私有 _write_state_unified 封装"safe_write_state vs 裸 callback"
两条路径,避免主流程重复 if/else。
attend_window.py: 1437 → 1372 行 (-65)
新增 attend_window_helpers.py: 116 行
验证:
- pytest 1013 passed
- compile OK
- stub 调用两条早返回路径均返回 False
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 10:28:50 +08:00 |
|
 CodexandClaude Opus 4.7
|
3b600c9f64
|
fix(reservation): 补 _RESERVATION_ERROR_UTILS_AVAILABLE import 修复运行时 NameError
attend_window.py 中 9 处使用 _RESERVATION_ERROR_UTILS_AVAILABLE 标志,
但 import 语句只导入了 ReservationItem / format_reservation_context /
log_reservation_error / safe_write_state,没有导入这个标志。
发现路径:尝试为该文件提取 helper 时,stub 测试触发到第 360 行的
"future_ts 无效"分支,立即抛出 NameError。
原代码中此分支被 try/except 覆盖的概率较高(外层 try 会吞噬),
但只要执行流落在 line 64/95/113/167/296/360/371/...(共 9 处)
任意一个 if 判断上,就会 NameError。
修复:把 _RESERVATION_ERROR_UTILS_AVAILABLE 加入 ._common 的
import 列表。
验证:
- stub 测试通过
- pytest 1013 passed
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 10:27:21 +08:00 |
|
 CodexandClaude Opus 4.7
|
d7201866a5
|
refactor(stage): 提取 diagnose_stage_from_current_screen 中"步骤3 OCR确认弹窗"块到 douyin_stage_helpers
将 1203-1359 行(约 157 行)的"OCR弹窗确认"独立块抽到
douyin/stage/douyin_stage_helpers.py:verify_popup_via_ocr。
该块当所有像素检测都未命中特定阶段、但像素检测到弹窗背景特征时
执行 OCR 二次确认(优惠券"开心收下"/购物红包关键词)。
依赖通过参数注入:pixel_state、enable_ocr_mode1、max_step_time、
diag_start、max_diag_time、_log/_log_summary 闭包、preprocess_for_ocr。
douyin_stage.py: 1385 → 1247 行 (-138)
新增 douyin_stage_helpers.py: 199 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 10:22:07 +08:00 |
|
 CodexandClaude Opus 4.7
|
a3fe7b3ef0
|
refactor(fudai): 抽 attend_choujiang 中 3 个简单失败分支用通用 helper
新增 handle_simple_fail 通用模板,覆盖结构完全相同的 3 个分支:
- watch_required(还需看播)
- cannot_participate(无法参与)
- watch_duration_insufficient(时长不足)
每个分支的逻辑都是:set fail_reason → log → metric → click(500,470) → return False。
fudai_attend.py: 1471 → 1446 行 (-25)
fudai_attend_branches.py: 184 → 217 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 10:19:14 +08:00 |
|
 CodexandClaude Opus 4.7
|
1c1f0abfc0
|
refactor(fudai): 提取 attend_choujiang 中 4 个独立分支到 fudai_attend_branches
将 attend_choujiang 内 4 个 button_text 命中的早返回分支抽出:
- handle_no_parallel_ocr:并行OCR结果不可用
- handle_condition_not_met:不满足参与条件
- handle_attend_already_success:已参与/参与成功
- handle_activity_ended:活动已结束/福袋超时
每个 helper 处理一个分支并返回 True/False,与原代码 return 值一致。
fudai_attend.py: 1629 → 1471 行 (-158)
新增 fudai_attend_branches.py: 184 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 08:08:16 +08:00 |
|
 CodexandClaude Opus 4.7
|
5d2a0ac3ff
|
refactor(fudai): 提取 __init__ 中默认配置块到 fudai_init_defaults
将 fudai_analyse.__init__ 中 137 行简单的 self.X = literal 配置默认值赋值
统一抽到 fudai_modules/fudai_init_defaults.py 的 init_default_config 函数。
所有字段语义、默认值、类型注解保持完全一致;load_config() 仍然会用
config.json 覆盖这些默认值。
douyin_fudai.py: 3760 → 3627 行 (-133)
新增 fudai_init_defaults.py: 132 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 08:04:31 +08:00 |
|
 CodexandClaude Opus 4.7
|
c8df6a1588
|
refactor(fudai): 提取 fudai_choujiang 中 3 个独立子块到 fudai_choujiang_helpers
将 douyin_fudai.py:fudai_choujiang 内 3 个无业务状态依赖的独立块抽出:
- cleanup_stale_screenshot:启动时清理旧截图
- resolve_device_resolution:分辨率解析(5 次重试 + 默认回退)
- write_actions_log:写运行起止标记到 actions.log(原代码重复 3 次)
douyin_fudai.py: 3861 → 3760 行 (-101)
新增 fudai_choujiang_helpers.py: 97 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 08:01:51 +08:00 |
|
 CodexandClaude Opus 4.7
|
b1ee0e6b4e
|
refactor(fudai): 提取 _capture_roi_screenshot 和 _match_icon_template 到 fudai_image_helpers
将 douyin_fudai.py 中两个图像处理工具方法(共 274 行)提取为
fudai_modules/fudai_image_helpers.py 模块级函数:
- capture_roi_screenshot(analyser, ...)
- match_icon_template(analyser, ...)
类内保留薄包装方法,调用签名不变,外部调用方(douyin_yanghao.py)
无需改动。
douyin_fudai.py: 4121 → 3861 行 (-260)
新增 fudai_image_helpers.py: 281 行
验证:
- pytest 1013 passed
- compile OK
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 07:59:24 +08:00 |
|
 CodexandClaude Opus 4.7
|
b9f0389e58
|
chore(finder): 删除 check_have_fudai_with_ready_screenshot 中 return False 之后的不可达死代码
第 938-1431 行(共 494 行)位于函数 return 语句之后,永远不会执行。
这是早期像素检测改用模板匹配后的遗留代码。函数末尾的模块级注释
"像素检测代码已删除,使用模板匹配替代" 已说明该段代码无用。
验证:
- AST 解析通过
- pytest 1013 passed
- 函数边界从 19-1431 缩到 19-936
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
2026-05-22 07:54:25 +08:00 |
|
 CodexandClaude Opus 4.5
|
66eb05e6b1
|
补 reservation_logic.cleanup_validate 子模块单元测试(+10 用例)
- validate_back_to_reservation / cleanup_expired_reservations 函数签名验证
- reservation_logic 全部 6 个子模块存在性测试
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-22 01:22:56 +08:00 |
|
 CodexandClaude Opus 4.5
|
5a40b49727
|
补 douyin_yanghao_pkg 剩余子模块单元测试(+7 用例)
- _scaled_click / _do_comment 函数签名验证
- douyin_yanghao_pkg 全部 3 个子模块存在性测试
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 22:48:38 +08:00 |
|
 CodexandClaude Opus 4.5
|
266c7f2932
|
补 underlying_operations_pkg 剩余子模块单元测试(+14 用例)
- analyse_pic_digits / _swipe_with_sendevent_improved 函数签名验证
- underlying_operations_pkg 全部 10 个子模块存在性测试
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 22:45:46 +08:00 |
|
 CodexandClaude Opus 4.5
|
59ac6a3abc
|
补 flow_control_pkg + orchestrator_pkg 子模块单元测试(+12 用例)
- find_and_open_fudai_detail 函数签名验证
- read_fudai_detail_once / read_fudai_detail_with_retries 函数签名验证
- flow_control_pkg / orchestrator_pkg 子模块存在性测试
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 22:42:58 +08:00 |
|
 CodexandClaude Opus 4.5
|
df628c11dd
|
补 douyin_fudai_finder_pkg 子模块单元测试(+15 用例)
- FudaiClickExecutor / FudaiDetailVerifier / FudaiImageAcquirer 类存在性验证
- check_have_fudai_with_ready_screenshot_optimized 函数签名验证
- douyin_fudai_finder_pkg 子模块存在性测试
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 22:38:43 +08:00 |
|
 CodexandClaude Opus 4.5
|
6996c7813e
|
补 screenshot_manager 子模块单元测试(+17 用例)
- _sanitize_filename_part 纯函数测试(无效字符/中文/路径)
- save_files / save_image 函数签名验证
- screenshot_manager 子模块存在性测试
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 22:28:26 +08:00 |
|
 CodexandClaude Opus 4.5
|
0efcfff545
|
补 reservation/core + fudai_modules 模块单元测试(+21 用例)
- format_reservation_context / validate_reservation_item 纯函数测试
- fudai_modules Mixin 类存在性验证
- reservation/core 包导入测试
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 22:24:15 +08:00 |
|
 CodexandClaude Opus 4.5
|
b0eccc5171
|
补 bin 模块单元测试(+19 用例)
- format_size / get_log_base_names 纯函数测试
- parse_args 命令行参数解析测试
- manage_logs / run_cli 函数签名验证
- bin 子模块存在性测试
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 22:21:03 +08:00 |
|
 CodexandClaude Opus 4.5
|
e8bf904fc6
|
补 douyin/stage 模块单元测试(+23 用例)
- diagnose_stage_from_current_screen 函数签名验证
- StageHandler 类方法检查
- stage_handler_pkg shim 与子模块导出一致性验证
- stage 子模块存在性测试
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 22:17:54 +08:00 |
|
 CodexandClaude Opus 4.5
|
8d98143df1
|
补 douyin/core 模块单元测试(+24 用例)
- io_utils 纯函数测试(_verify_png_integrity/_ensure_parent_dir/_safe_replace_file)
- path_config 路径配置函数测试
- version 版本信息格式验证
- flow_control shim 与子模块导出一致性验证
- core 子模块存在性测试
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 22:15:34 +08:00 |
|
 CodexandClaude Opus 4.5
|
b5a15ecea4
|
补 douyin/other 模块单元测试(+28 用例)
- _normalize_room_title 纯函数测试(空格/数字/中文)
- high_value_room / popups / lottery 函数签名验证
- yanghao shim 与子模块导出一致性验证
- other 子模块存在性测试
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 22:12:54 +08:00 |
|
 CodexandClaude Opus 4.5
|
73008a9763
|
补 douyin/reservation 模块单元测试(+23 用例)
- _compact_text 纯函数测试(空格/中文/边界值)
- match_reservation / validate_back_to_reservation 函数签名验证
- reservation_handler shim 与子模块导出一致性验证
- reservation 子模块存在性测试
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 22:09:35 +08:00 |
|
 CodexandClaude Opus 4.5
|
5309aa0198
|
补 douyin/fudai 模块单元测试(+20 用例)
- is_abnormal_time_value 纯函数测试(边界值/异常值)
- validate_fudai_detail 函数签名验证
- fudai_detail shim 与子模块导出一致性验证
- fudai/core 子模块存在性测试
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 22:07:15 +08:00 |
|
 CodexandClaude Opus 4.5
|
85d7bb2525
|
补 douyin/detection/pixel 模块单元测试(+14 用例)
- pixel/popups 弹窗检测函数签名验证
- pixel/buttons 按钮检测函数签名验证
- pixel/stage 阶段检测函数签名验证
- shim 与子模块导出一致性验证
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 22:03:35 +08:00 |
|
 CodexandClaude Opus 4.5
|
3269d3adf6
|
补 gui/components 模块单元测试(+22 用例)
- log_color_config 纯函数测试(get_operation_type/get_color_config)
- mapping_utils 纯函数测试(_format_timestamp)
- gui/components 子模块存在性验证
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 22:00:02 +08:00 |
|
 CodexandClaude Opus 4.5
|
7ef5bc3e07
|
补 douyin/logging 模块单元测试(+30 用例)
- log_formatter 纯函数测试(format_debug_log/action_log/error_log 等)
- PerformanceTracker 类测试
- logging 子模块存在性验证
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 21:56:43 +08:00 |
|
 CodexandClaude Opus 4.5
|
2c8879be7a
|
补 douyin/fudai/core 模块单元测试(+14 用例)
- validate_coords 纯函数测试(边界/修正/无效坐标)
- safe_image_load 函数测试
- fudai/core 子模块存在性验证
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 21:53:47 +08:00 |
|
 CodexandClaude Opus 4.5
|
6ecedbbde1
|
补 douyin/handlers 模块单元测试(+13 用例)
- _adb_path 纯函数测试(环境变量、引号处理、operation 对象)
- SwipeHandler / PopupHandler / ScreenshotHandler 类存在性验证
- swipe_ops 函数签名检查
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 21:50:02 +08:00 |
|
 CodexandClaude Opus 4.5
|
cdf8be0ded
|
补 operations 模块单元测试(+18 用例)
- OCR 缓存机制测试(cache_get/put/clear/stats)
- _img_fingerprint 哈希函数测试
- screenshot_operations / screenshot_service 类存在性验证
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 21:42:39 +08:00 |
|
 CodexandClaude Opus 4.5
|
a6dee879e7
|
补 tools/dev/bump_version.py 单元测试(+10 用例)
- parse_semver 纯函数测试(含边界/异常)
- compute_next 版本号递增测试
- 集成测试:连续 bump 验证
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 21:37:19 +08:00 |
|
 CodexandClaude Opus 4.5
|
9f7e8da57a
|
补 reservation_handler_pkg / stage_handler_pkg 单元测试(+12 用例)
- 验证 shim 与 pkg 导出一致性
- Handler 类方法签名检查
- 子模块导入测试
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2026-05-21 21:25:50 +08:00 |
|