#!/usr/bin/env bash
# LatticeSearch (Linux) — headless server edition. Needs Python 3.12 + numpy.
cd "$(dirname "$0")"
export LATTICE_HOME="${LATTICE_HOME:-$HOME/.latticesearch}"
python3 -c "import numpy" 2>/dev/null || python3 -m pip install --user --quiet numpy 2>/dev/null || pip3 install --quiet numpy 2>/dev/null || true
echo "LatticeSearch starting on http://127.0.0.1:${PORT:-8765}"
exec python3 server.pyc --port "${PORT:-8765}"
