smart_ide/services/pageindex/run-pageindex.sh
4NK 4fa2cc2418 Add PageIndex service (VectifyAI upstream submodule, CLI wrapper)
- Submodule services/pageindex/upstream (shallow), run-pageindex.sh, .env.example
- Docs: service-pageindex, pageindex-semantic-documents, index updates
2026-04-03 22:15:09 +02:00

12 lines
408 B
Bash
Executable File

#!/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 "$@"