# Headless backend (mugi_backend.py / SwiftUI app). No PyObjC — avoids build failures.
# Keep in sync with requirements.txt minus the PyObjC block.
# dulwich: pure-Python Git for cloning Homebrew without system git/Xcode CLI.

setuptools>=70.0,<71
dulwich>=0.22,<1.0
# tomllib (stdlib 3.11+) reads TOML but cannot write it; this is the writer used
# for mugi_config.toml. persistence.py keeps a hand-rolled fallback when absent.
tomli-w>=1.0,<2.0
fastapi>=0.100,<1.0
uvicorn>=0.12,<1.0
websockets>=12.0,<17.0
python-multipart>=0.0.18
openai>=1.0,<3.0
langchain-core>=1.0,<2.0
pydantic>=2.7,<3.0
# 1.30.0 is the floor for two client-side advisories: a server could point a
# tool's ``outputSchema`` at a URL or local file and the client fetched it on
# every call with no timeout (GHSA-rwrf-2pqf-9j8j), and per-server custom
# headers — API keys — leaked across a cross-site redirect (GHSA-5h93-6whr-6q8j).
mcp>=1.30.0,<2.0

# Messaging, crypto, keychain
discord.py>=2.0,<3.0
# 50.0.2 is the floor and the cap moves with it: SQLCipher key derivation, the
# encrypted stores and the Keychain bridge all run through it.
cryptography>=50.0.2,<51
keyring>=25.0,<27.0
zeroconf>=0.131,<1.0
# SQLCipher: the container for the FTS/semantic indexes over decrypted chat, vault and
# memory text (session_search_db, vault_search_index, memory_fts_index). It was in
# requirements.txt only, so the shipping app installed without it and every index fell
# back to plain SQLite — a plaintext copy of decrypted history on disk (ENC-4). The
# fallback is gone; this is what makes the indexes open at all. Prebuilt arm64 wheels.
# 0.6.4 bundles SQLite 3.53.4 against SQLCipher 4.19.0; 0.6.2 shipped an
# older SQLCipher and SQLite. Prebuilt arm64 wheels.
sqlcipher3>=0.6.4

# Scheduled tasks (schedule_tools / cron_scheduler)
croniter>=2.0,<4.0

# Phase 2b: filesystem watcher (optional; polling fallback when missing)
watchdog>=4.0,<7.0

# Dashboard System tile (CPU/RAM/disk/network/top processes)
psutil>=5.9,<8

# PDF, images, HTTP, parsing, OCR
# 6.21.1 caps zlib output on PDF image streams at 75 MB
# (Configuration.zlib_maximum_output_length, its default), so a decompression
# bomb fails closed instead of allocating without bound.
pypdf>=6.21.1,<7
pymupdf>=1.24,<2.0
pdf2image>=1.16,<3.0
numpy>=1.24,<3.0
# Charts/run_python_code (matplotlib, seaborn, pandas)
matplotlib>=3.7,<4.0
pandas>=2.0,<3.0
seaborn>=0.12,<1.0
certifi>=2026.10.19
requests>=2.28,<3.0
httpx>=0.27,<1.0
# Security floors for the HTTP clients that arrive transitively (openai, litellm,
# discord.py, requests, huggingface_hub). Stating a floor is the only way to hold
# one for a package this file does not otherwise pin.
aiohttp>=3.14.5
urllib3>=2.8.0
readability-lxml>=0.8,<1.0
beautifulsoup4>=4.12,<5.0
# Word export renders markdown -> HTML -> docx. bootstrap.py syncs the backend
# venv from this file (not requirements.txt), so leaving it out only here made
# the Results "Word Document (.docx)…" button fail with 415 on every install
# while the tests that cover it passed for anyone who had it locally.
markdown>=3.5,<4.0
python-docx>=1.1,<2.0
openpyxl>=3.1,<4.0
python-pptx>=1.0,<2.0
firecrawl-anydoc>=0.2,<1.0
xlrd>=2.0,<3.0
odfpy>=1.4,<2.0
ebooklib>=0.18,<1.0
striprtf>=0.0.29,<1.0
opencv-python>=4.8,<5.0
pytesseract>=0.3.10
Pillow>=13.0.0,<14


# sqlite-vec ANN for session/knowledge semantic search (optional; brute-force fallback if unloadable)
sqlite-vec==0.1.9

starlette>=1.9.0,<2
