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

+11 -1
View File
@@ -18,7 +18,17 @@ except Exception:
# 需要优先加载这些本地实现,再去加载完整逻辑模块。
_BASE_DIR = os.path.dirname(__file__)
_EXTERNAL_DOUYIN_FUDAI_DIR = r"C:\Users\12742\.cursor\worktrees\douyin_guaji-main\axf"
# 使用环境变量或默认路径,避免硬编码用户路径
_EXTERNAL_DOUYIN_FUDAI_DIR = os.environ.get(
"EXTERNAL_DOUYIN_FUDAI_DIR",
os.path.join(
os.path.expanduser("~"),
".cursor",
"worktrees",
"douyin_guaji-main",
"axf"
)
)
def _load_local_shim(mod_name: str, rel_path: str) -> None: