#!/usr/bin/env bash
set -euo pipefail

script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
repo_root="$(cd "$script_dir/../../.." && pwd)"
cd "$repo_root/ai/runtime"
if [[ ! -f dist/cli.js ]]; then
  ../../node_modules/.bin/tsc -p tsconfig.json >/dev/null
fi
exec node dist/cli.js validate-governance --mode validation-matrix "$@"
