chore: import original project baseline

Import the pre-repair source tree as the history baseline.
Runtime data (data/), virtualenvs, bytecode caches and logs are
gitignored so local secrets and user state stay out of the repo.
This commit is contained in:
2026-09-17 16:40:01 +08:00
commit a7412824e0
124 changed files with 26747 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
# haocode 运行依赖
# ---------------------------------------------------------------------------
# 环境:Windows 10/11 x64 + Python 3.10(开发环境为 miniconda env: haocode
# 安装:pip install -r requirements.txt
# 说明:本清单只列**代码真实 import 到**的第三方包(已用 AST 全量扫描核对),
# 不含开发机上其它项目的包(numpy / matplotlib / pillow / paramiko 等均未使用)。
# ---------------------------------------------------------------------------
# ---- GUI 框架(PyQt6----
PyQt6==6.10.2
PyQt6-Qt6==6.10.2
# ---- 渲染回退:QtWebEngineWebView2 不可用 / 无头 / 多实例时自动使用)----
# 注:WebView2 是首选渲染器,但它依赖微软运行时 + vendor/webview2/ 里的 .NET SDK
# 不走 pipQtWebEngine 是本项目自带的兜底渲染路径,必须装。
PyQt6-WebEngine==6.10.0
PyQt6-WebEngine-Qt6==6.10.2
# ---- 大模型 SDKOpenAI 兼容接口;DeepSeek / opencode-go / 自建反代均走它)----
openai==2.26.0
# ---- WebView2 绑定:pythonnetimport clr+ 其加载器 ----
pythonnet==3.1.0
clr_loader==0.3.1
# ---- PDF 附件解析(ui/views/main_window.py → tools/builtin_tools/pdf_reader.py----
PyMuPDF==1.28.0
# ===========================================================================
# 以下仅在需要时安装
# ===========================================================================
# ---- 打包 exe(可选)----
# PyInstaller==6.21.0
# pyinstaller-hooks-contrib==2026.6
# ===========================================================================
# 不需要 pip 安装的运行时依赖(重要)
# ===========================================================================
# 1) vendor/webview2/ WebView2 .NET SDKCore.dll+ webview2loader_x64.dll
# 已随仓库提供,勿删;缺失 → 自动回落 QtWebEngine
# 2) WebView2Loader.dll 项目根目录的 loader(CWD 兜底路径)
# 3) WebView2 Runtime(系统级) Win11 自带;Win10 需安装 Evergreen Runtime
# 4) Node.js 仅 tests/test_math_extract.js 需要(可选)
# 5) pytest 不需要!tests/run_tests.py 自带 harness 并 stub 掉 pytest