Files
agent/quick-start.bat
KQL cab2604ba8 添加快速启动脚本
- 添加 quick-start.sh (Mac/Linux)
- 添加 quick-start.bat (Windows)
- 自动检查环境并启动服务器
2025-08-24 14:09:36 +08:00

44 lines
849 B
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
echo ======================================
echo AI Agent 工作流 - 快速启动脚本
echo ======================================
echo.
REM 检查Node.js是否安装
where node >nul 2>nul
if %errorlevel% == 0 (
echo √ Node.js 已安装
node -v
) else (
echo × Node.js 未安装
echo 请先安装 Node.js: https://nodejs.org/
pause
exit /b 1
)
REM 检查npm是否安装
where npm >nul 2>nul
if %errorlevel% == 0 (
echo √ npm 已安装
npm -v
) else (
echo × npm 未安装
pause
exit /b 1
)
echo.
echo 正在安装依赖...
call npm install
echo.
echo ======================================
echo 启动服务器...
echo ======================================
echo.
echo 服务器地址: http://127.0.0.1:5175
echo 按 Ctrl+C 停止服务器
echo.
REM 启动服务器
call npm run dev