feat: Implement 30-minute timeout protection and unify path configurations

- Introduced a 30-minute timeout mechanism to prevent the script from getting stuck in invalid states, with configurable timeout settings.
- Unified path configurations across the project to enhance maintainability and avoid hardcoded paths.
- Updated documentation and flowcharts to reflect the new timeout feature and improved path management.
- Fixed issues with template and screenshot path configurations to ensure consistency across the project.
This commit is contained in:
Your Name committed 2025-12-28 14:47:31 +08:00
1 parent 686dde5cc0
commit 26df350755
64 files changed
+7568 -414

No files matched your search

+14 -2
View File
@@ -36,8 +36,20 @@ except Exception:
_RESAMPLE = Image
# 外部完整版 fudai 逻辑所在的工作树路径,用于镜像 screenshot 给那边使用
_EXTERNAL_AXF_SCREENSHOT = (
r"C:\Users\12742\.cursor\worktrees\douyin_guaji-main\axf\pic\screenshot.png"
# 使用环境变量或默认路径,避免硬编码用户路径
_EXTERNAL_AXF_SCREENSHOT = os.path.join(
os.environ.get(
"EXTERNAL_DOUYIN_FUDAI_DIR",
os.path.join(
os.path.expanduser("~"),
".cursor",
"worktrees",
"douyin_guaji-main",
"axf"
)
),
"pic",
"screenshot.png"
)