#!/usr/bin/env bash
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
cd "$ROOT"
bash scripts/hybx-omnl/verify-deployment.sh
echo "== omnl reconcile artifact =="
bash scripts/hybx-omnl/omnl-reconcile-artifact.sh
cd services/token-aggregation
if command -v pnpm >/dev/null 2>&1; then
  pnpm run build
else
  npm run build
fi
echo "ci-omnl-validation: OK"
