|
@@ -42,6 +42,20 @@
|
|
|
powershell -ExecutionPolicy Bypass -File .\scripts\dev.ps1
|
|
powershell -ExecutionPolicy Bypass -File .\scripts\dev.ps1
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+macOS(两个终端):
|
|
|
|
|
+
|
|
|
|
|
+```bash
|
|
|
|
|
+# 终端一
|
|
|
|
|
+cd backend
|
|
|
|
|
+uv run zbt-serve
|
|
|
|
|
+```
|
|
|
|
|
+
|
|
|
|
|
+```bash
|
|
|
|
|
+# 终端二
|
|
|
|
|
+cd frontend
|
|
|
|
|
+pnpm dev
|
|
|
|
|
+```
|
|
|
|
|
+
|
|
|
- H5:http://127.0.0.1:5173
|
|
- H5:http://127.0.0.1:5173
|
|
|
- 管理后台:http://127.0.0.1:5174
|
|
- 管理后台:http://127.0.0.1:5174
|
|
|
- API 文档:http://127.0.0.1:8000/docs
|
|
- API 文档:http://127.0.0.1:8000/docs
|
|
@@ -54,6 +68,21 @@ H5 验证码为 `147258`;后台账号及完整操作路径见启动指南。
|
|
|
powershell -ExecutionPolicy Bypass -File .\scripts\test.ps1
|
|
powershell -ExecutionPolicy Bypass -File .\scripts\test.ps1
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
|
|
+macOS:
|
|
|
|
|
+
|
|
|
|
|
+```bash
|
|
|
|
|
+cd backend
|
|
|
|
|
+uv sync --locked
|
|
|
|
|
+uv run pytest
|
|
|
|
|
+uv run ruff check .
|
|
|
|
|
+uv run mypy src/zbt
|
|
|
|
|
+
|
|
|
|
|
+cd ../frontend
|
|
|
|
|
+pnpm install --frozen-lockfile
|
|
|
|
|
+pnpm typecheck
|
|
|
|
|
+pnpm build
|
|
|
|
|
+```
|
|
|
|
|
+
|
|
|
真实模型评测在后端运行后执行:
|
|
真实模型评测在后端运行后执行:
|
|
|
|
|
|
|
|
```powershell
|
|
```powershell
|
|
@@ -61,3 +90,11 @@ cd backend
|
|
|
uv run python -m zbt.commands.evaluate_agents --suite smoke
|
|
uv run python -m zbt.commands.evaluate_agents --suite smoke
|
|
|
uv run python -m zbt.commands.evaluate_agents --suite full
|
|
uv run python -m zbt.commands.evaluate_agents --suite full
|
|
|
```
|
|
```
|
|
|
|
|
+
|
|
|
|
|
+macOS:
|
|
|
|
|
+
|
|
|
|
|
+```bash
|
|
|
|
|
+cd backend
|
|
|
|
|
+uv run python -m zbt.commands.evaluate_agents --suite smoke
|
|
|
|
|
+uv run python -m zbt.commands.evaluate_agents --suite full
|
|
|
|
|
+```
|