# ZimZilla — the harness's dependencies.
#
#   python -m venv .venv && source .venv/bin/activate
#   pip install -r requirements.txt
#
# This installs the harness's dependencies and zimzilla itself (the trailing
# `-e .`), which drops a `zimzilla` command into the venv's bin.
#
# The LiteLLM proxy is deliberately NOT in this file. The default route does
# not use one: Logfare serves Chat Completions directly. The optional
# IteraCompute/InfronAI proxies cannot share this environment either:
# litellm[proxy] requires rich<14.0, while textual 8.x requires rich>=14.2. A
# requirements.txt that lists both is unsatisfiable — pip reports
# ResolutionImpossible and installs *nothing*, which is why
# `pip install -r requirements.txt` failed on a fresh checkout.

anthropic>=0.40
textual>=0.80
# textual 8.x needs rich>=14.2. This floor holds only because litellm[proxy] —
# which pins rich<14 and would downgrade it — is kept out of this environment.
rich>=14.2.0
pyyaml>=6.0

# The assistant's markdown parser (zimzilla/ui/markdown.py). Listed explicitly
# even though rich and textual both require it today — ZimZilla imports it
# directly, and a transitive dependency it does not declare is one an upstream
# release can take away without anything here noticing until import time.
markdown-it-py>=2.2.0

# The image pane's renderer (/show_image). Pillow does the decode, EXIF
# rotation and the resize that turns one picture into coloured half blocks.
# It is imported lazily, so a harness without it still starts and only the
# viewer reports the missing package.
Pillow>=10.0

# The image pane's pixel renderer: Kitty's Terminal Graphics Protocol, Sixel,
# or a coloured half-cell fallback. This is what makes /show_image watchable
# rather than a 44-column block mosaic.
textual-image>=0.14.3

# Discord Rich Presence (local Discord client over IPC; app id required).
pypresence>=4.6

# The optional voice: Edge neural TTS (no key, network) played through mpv or
# ffplay; /voice off and --no-voice disable it.
edge-tts>=7.0

# The visual browser (/see, browse, watch_video). Playwright drives a real
# Chromium so a page's JavaScript has run before it is read; the browser binary
# itself is installed separately (`python -m playwright install chromium`), and
# `browser.py` falls back to a system chromium when it is not. The Python
# package is small; the browser download is the part that is opt-in.
playwright>=1.49

# ZimSuite's intercepting proxy. It is a separate binary (mitmdump), not a
# Python import; `suite.py` also looks beside sys.executable and in
# ~/.local/bin so the installed launcher finds a venv install without PATH.
# mitmproxy 12 needs Python >=3.12; on 3.11 the rest of ZimZilla still works.
mitmproxy>=12; python_version >= "3.12"

# zimzilla itself, editable, so the `zimzilla` console script is installed and
# the package is importable from any directory.
-e .
