#!/usr/bin/env bash
# TC-601 / M2-v1.2：连续 3 次 probe exit 0
set -euo pipefail

ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$ROOT"

PASS=0
for i in 1 2 3; do
  echo "=== probe 第 ${i}/3 次 ==="
  npx tsx scripts/probe-rpa.ts
  PASS=$((PASS + 1))
done

echo "=== probe 3/3 全部通过 ==="
