#!/usr/bin/env bash
# test-content.sh — Run content validation from CLI
#
# Usage:
#   bash tools/dev/test-content.sh
#   bash tools/dev/test-content.sh --verbose
#   bash tools/dev/test-content.sh --quests-only

set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(cd "$SCRIPT_DIR/../.." && pwd)"

if ! command -v node &>/dev/null; then
    echo "ERROR: node not found. Install Node.js to run content validation."
    exit 1
fi

exec node "$PROJECT_ROOT/tools/content/validate-content.js" "$@"
