# Pinned to major versions. Update periodically; avoid unpinned installs.
# Python 3.10+ recommended (langchain-core, fastapi require it).

setuptools>=70.0,<71
# 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
# 0.0.18 is the floor: earlier versions let a malformed multipart body pin a
# worker (CVE-2024-53981), and FastAPI routes here accept uploads.
python-multipart>=0.0.18
# 1.9.0 is the floor: before it Starlette rebuilt ``request.url`` from the raw
# Host header, which let a forged Host skip the token gate (see
# mugi/runtime/http_auth_middleware.py).
starlette>=1.9.0,<2
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).
# Mugi drives servers the person added, so the client is the exposed half.
mcp>=1.30.0,<2.0

# PyObjC (legacy/py2app support only; Swift app runtime uses requirements-headless.txt)
pyobjc>=10.0,<11.0
pyobjc-framework-Cocoa>=10.0,<11.0
pyobjc-framework-WebKit>=10.0,<11.0
pyobjc-framework-LocalAuthentication>=10.0,<11.0
pyobjc-framework-Speech>=10.0,<11.0
pyobjc-framework-AVFoundation>=10.0,<11.0
pyobjc-framework-UserNotifications>=10.0,<11.0
pyobjc-framework-EventKit>=10.0,<11.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 (optional: encrypted FTS5 search index; falls back to plain SQLite if missing)
# 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

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

# 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
python-docx>=1.1,<2.0
markdown>=3.5,<4.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

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

# Local MLX text embeddings (optional; knowledge semantic search falls back to hash vectors)
mlx-embeddings>=0.0.5,<0.2
