Files
agent/quick-start.bat
KQL 6af4efbabc 优化访问路径,使用index.html作为默认页面
- 将 linear-workflow.html 重命名为 index.html
- 更新所有配置文件和文档中的引用
- 现在可以直接访问 http://127.0.0.1:5175/
- 添加端口占用检查和自动处理功能
- 简化用户访问体验
2025-08-24 14:20:37 +08:00

58 lines
1.2 KiB
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
)
REM 检查端口是否被占用
set PORT=5175
netstat -ano | findstr :%PORT% >nul 2>nul
if %errorlevel% == 0 (
echo.
echo 警告: 端口 %PORT% 已被占用
echo 请手动关闭占用该端口的程序,或修改 package.json 中的端口配置
echo.
echo 提示:可以使用以下命令查看占用端口的进程:
echo netstat -ano ^| findstr :%PORT%
echo.
pause
)
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