#!/usr/bin/env bash
set -euo pipefail
# Run from a current-main checkout with dependencies installed and the scenario
# downloaded into scripts/scenarios/uv-managed-command.e2e.ts.
# Supply a fresh scratch directory as the first argument.
fixture_dir="$(realpath "$1")"
UV_TOOL_DIR="$fixture_dir/usertools" UV_TOOL_BIN_DIR="$fixture_dir/userbin" \
  uv tool install fast-agent-mcp==0.10.1
T3CODE_DEV_SEED=0 PATH="$fixture_dir/userbin:$PATH" \
  T3_SCENARIO_INHERIT_ENV=T3CODE_DEV_SEED \
  vp run scenarios:prove scripts/scenarios/uv-managed-command.e2e.ts \
  --base 5a15495de4c148bb141f08b99949728f9df8dfea \
  --head 7da4493c628e1d65a1e9ae6ee22cfe3a010aa95a \
  --upload-command "ghdrop upload"
