chore: mini-openclaw 初始版本

Next.js 前端 + FastAPI/LangChain 后端透明 agent平台
- 含 .gitignore, 敏感文件(sessions数据/.env/venv等)已排除
- 待后续添加 trajectory 自进化机制
This commit is contained in:
NathanAlex7
2026-09-01 16:40:10 +08:00
committed by NathanAlex7
parent 73796a6abd
commit 42ce992a0f
76 changed files with 14207 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
@echo off
REM 快速测试脚本
echo ========================================
echo mini-OpenClaw 健康检查
echo ========================================
echo.
echo [1/3] 检查后端服务...
curl -s http://localhost:8002 > nul 2>&1
if %errorlevel% equ 0 (
echo [OK] 后端服务运行正常
curl http://localhost:8002
echo.
) else (
echo [错误] 后端服务未运行
echo 请先运行: start-backend.bat
)
echo.
echo [2/3] 检查前端服务...
curl -s http://localhost:3000 > nul 2>&1
if %errorlevel% equ 0 (
echo [OK] 前端服务运行正常
) else (
echo [错误] 前端服务未运行
echo 请先运行: start-frontend.bat
)
echo.
echo [3/3] 测试聊天接口...
curl -s http://localhost:8002/api/chat ^
-X POST ^
-H "Content-Type: application/json" ^
-d "{\"message\":\"你好\",\"session_id\":\"test\",\"stream\":false}" > nul 2>&1
if %errorlevel% equ 0 (
echo [OK] 聊天接口正常
) else (
echo [警告] 聊天接口测试失败
)
echo.
echo ========================================
echo 测试完成
echo ========================================
pause