Trae Agent: An LLM-based Agent for Software Engineering with Test-time Scaling