#!/usr/bin/env sh
# MeetRec — CLI launcher (installed by install.sh)
set -eu
APP_DIR="${MEETREC_APP_DIR:-$HOME/.local/share/meetrec}"
PY="$APP_DIR/venv/bin/python"
if [ ! -x "$PY" ]; then
    echo "MeetRec is not installed. Run ./install.sh first." >&2
    exit 1
fi
# Engine hint generated by install.sh --whisper-cpp (points WHISPER_CPP_BIN at
# the locally built whisper-cli).
if [ -f "$APP_DIR/whisper-cpp.env" ]; then . "$APP_DIR/whisper-cpp.env"; fi
exec "$PY" "$APP_DIR/meetrec.py" "$@"
