# Runtime deps for the shipped beta (the embedded interpreter inside Neo.app).
#
# This is requirements.txt minus two entries that together account for roughly
# 880 MB of the 1.2 GB development venv:
#
#   sentence-transformers  → drags in torch, transformers, scipy, sklearn,
#                            sympy and networkx. Its only use is
#                            `core/intelligence/vector_store._get_model`, which
#                            every caller already wraps in `except Exception`.
#                            It would not work in a shipped bundle regardless:
#                            `SentenceTransformer("all-MiniLM-L6-v2")` downloads
#                            the weights from HuggingFace on first call, and a
#                            downloaded .app has no network guarantee and a
#                            read-only Resources directory.
#
# What degrades without it: semantic lesson search and document retrieval
# return empty instead of ranked results.
#
# 10-04: playwright IS shipped now. The delivery check (click through the site,
# send its form, film it) is the proof every build ends with; without the
# package it could not run on a user's Mac at all. The browser itself (~160 MB)
# is still downloaded on demand by Settings, Components ("Browser for checking
# sites": python -m playwright install chromium, into ~/Library/Caches).
# scipy is shipped because Game Dev's Forge and sound effects import it at load
# time (the bundled server did not start without it); psutil for the resource
# guard. The local speech model (mlx-whisper) is a component, not shipped: it
# pulls in torch.
#
# numpy STAYS: `vector_store.py` imports it at module level, and matplotlib
# needs it. Dropping it would only save 34 MB and would disable the clustering
# that reads already-stored embeddings.
#
# Keep in sync with requirements.txt. scripts/build_runtime.sh installs this.

fastapi>=0.111.0
uvicorn[standard]>=0.29.0
httpx>=0.27.0
pydantic>=2.7.0
beautifulsoup4>=4.12.0
sqlalchemy[asyncio]>=2.0.30
aiosqlite>=0.20.0
aiosmtplib>=2.0.0
PyJWT[crypto]>=2.8.0
bcrypt>=4.1.0
python-multipart>=0.0.9
# Intelligence Layer (embeddings excluded — see header)
numpy>=1.26.0
# PostgreSQL + pgvector (a tester defaults to SQLite; these let them point
# DATABASE_URL at their own Postgres without reinstalling anything)
asyncpg>=0.29.0
pgvector>=0.3.0
# Document generation
fpdf2>=2.7.0
python-docx>=1.1.0
docxtpl>=0.18.0
openpyxl>=3.1.0
jinja2>=3.1.0
matplotlib>=3.8.0
slowapi
cryptography
anthropic>=1.8.0,<2
psycopg2-binary>=2.9.9
python-dotenv>=1.0.0
pyyaml>=6.0
requests>=2.31.0
phonenumbers>=8.13
playwright>=1.44
scipy>=1.13
psutil>=5.9
h2>=4.1                 # APNs pushes to the mobile app need HTTP/2 (notify_channels)
soundfile>=0.12         # Game Dev sound effects and music as OGG
