# Foreign Trade Assistant — 非 git 依赖（不含 hermes-agent）
# hermes-agent 需单独通过 install.sh Step 2 或手动 git clone + pip install -e . 安装

# Core
fastapi>=0.104.0
uvicorn[standard]>=0.24.0
python-multipart>=0.0.9
pyyaml>=6.0
packaging>=23.0
pydantic>=2.0
# License Ed25519 verification (trade/license.py) — required, not optional.
# 缺了它激活码一律验不过，用户会被判成 expired；此前只靠 Hermes 托管环境带进来。
# 上界 <52：实测 Hermes 当前环境提供 50.x，<47 会把在用的版本排除掉。
cryptography>=42,<52

# LLM Provider SDKs (required — Hermes uses openai for all providers)
openai==2.24.0
anthropic==0.87.0
# Document parsing — required, not optional. Hermes uses anydoc to parse PDF and
# legacy Office files; without it PDFs are decoded as plain text (garbage).
# pypdfium2 is the fallback for page-count / scanned-page detection (poppler is a
# system package that is not installable everywhere). Keep the anydoc pin in
# lockstep with hermes-agent's tools/lazy_deps.py.
firecrawl-anydoc==0.2.4
pypdfium2>=4.30.0,<6.0
# 注意：hermes-agent 不在本文件里。它由安装脚本单独 git clone + editable 安装
# （scripts/install.sh Step 2），Trade 用 --no-deps 安装自身。Hermes 的 setup.py
# 已明确拒绝通过 pip 构建，所以不能让 pip 去解析它。
# Process management
psutil>=5.9.0,<8.0
# DNS — OSINT email verification
dnspython>=2.6.0,<3.0
# 聊天副驾 capture（任务书 §10 批准清单）——全部懒加载，缺失只降级副驾
mss>=9.0,<11
pyperclip>=1.8,<2
# 全局热键 / 托盘（2026-11-05 负责人决定：默认安装；运行时惰性加载）
pynput>=1.7,<2
pystray>=0.19,<1
# macOS 窗口截图（Quartz / ImageIO）
pyobjc-framework-Quartz>=10.0; sys_platform == "darwin"
# 邮箱注册检测（OSINT Layer 1：122 个平台的注册痕迹）—— required，不是可选。
# 缺了这层会被**静默跳过**（报告如实披露，但少一层证据）。纯 Python（无 C 扩展）、
# 三平台可装；其 httpx 与 Hermes 钉的版本一致（0.28.1），无冲突。
# Trade 侧在子进程里跑它（holehe 用 trio，与 asyncio 不兼容），120s 超时兜底。
holehe>=1.61,<2.0

# Document extraction (read_file tool)
pymupdf>=1.24.0
openpyxl>=3.1.0
python-docx>=1.1.0
python-pptx>=1.0.0
xlrd>=2.0.0
beautifulsoup4>=4.12.0
