#!/usr/bin/env bash set -euo pipefail cd "$(dirname "$0")/.." command -v rustc >/dev/null command -v cargo >/dev/null if [[ -x /opt/homebrew/bin/llama-server ]]; then echo "llama-server: /opt/homebrew/bin/llama-server" else command -v llama-server >/dev/null echo "llama-server: $(command -v llama-server)" fi mkdir -p dictionary logs runtime cargo build cargo run -- dictionary generate echo "codex setup complete"