#!/usr/bin/env bash # Run PageIndex CLI from vendored upstream (semantic tree index for PDF / Markdown). set -euo pipefail ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" UP="${ROOT}/upstream" if [[ ! -f "${UP}/run_pageindex.py" ]]; then echo "Missing ${UP}/run_pageindex.py — run: git submodule update --init services/pageindex/upstream" >&2 exit 1 fi cd "${UP}" exec python3 run_pageindex.py "$@"