@echo off
setlocal
title Claude Code Fusheng Installer
echo ========================================
echo Claude Code Fusheng Installer
echo ========================================
echo.
where npm >nul 2>nul
if errorlevel 1 (
  echo [ERROR] npm not found. Please install Node.js LTS first from Agent Switchboard download center.
  pause
  exit /b 1
)
echo [1/2] Installing Claude Code from Fusheng mirror...
npm install -g "https://files.tanxiaofusheng.com/agent-switchboard/anthropic-ai-claude-code-2.1.132.tgz"
if errorlevel 1 (
  echo [ERROR] Install failed. Try running this file as Administrator, or install Node.js LTS first.
  pause
  exit /b 1
)
echo.
echo [2/2] Checking claude command...
claude --version
echo.
echo Done. Reopen Agent Switchboard and click Agent Center - Detect.
pause

