# Ensure the venv exists
if [ ! -d ".venv" ]; then
    uv sync
fi

# Activate properly — direnv captures env changes, not shell functions
export VIRTUAL_ENV="$(pwd)/.venv"
PATH_add .venv/bin

# Local overrides (not committed to git)
source_env_if_exists .envrc.local
