chore: 统一本地服务器与远程仓库源码

- 合并 main 与 master 历史并以服务器结构为基线
- 保留迁移、数据保留、AWS 账单与部署安全能力
- 建立 SDD 规格和 CI 验证闭环
This commit is contained in:
Logan.Li committed 2026-08-05 20:03:25 +08:00
commit fd60361d93
460 files changed
+37492 -23871

No files matched your search

+9 -2
View File
@@ -51,7 +51,7 @@ feat: 添加服务器批量导入功能
| `middleware/` | JWT / 日志 / CORS 中间件 |
| `router/` | 路由注册 |
| `service/` / `repository/` | 业务逻辑 / 数据访问 |
| `pkg/database/` | 数据库连接 + AutoMigrate |
| `pkg/database/` | 数据库连接 + 显式基线建表能力 |
| `pkg/agentcli/` | Agent CLI 引擎(ReAct + Evolver) |
| `pkg/remoteexec/` | Go-native SSH 远程执行 |
| `static/` | 前端 embed 静态资源 |
@@ -235,6 +235,7 @@ go build -o aiops .
cd frontend
npm run build
npx tsc --noEmit # 类型检查(提交前零错误)
npm run lint # ESLint(提交前零错误)
```
### 独立二进制构建
@@ -247,9 +248,15 @@ npx tsc --noEmit # 类型检查(提交前零错误)
### 集成测试
```bash
python3 tests/integration_test.py --host localhost --port 8080
# 测试账号必须显式传入,避免对生产或共享环境误用默认凭证
AIOPS_TEST_USERNAME=admin AIOPS_TEST_PASSWORD='测试密码' \
python3 tests/integration_test.py --host localhost --port 8080
```
### GitHub Actions CI
`.github/workflows/ci.yml` 在 `master` / `dev` 的推送与 Pull Request 上并行执行后端、Agent、前端和 SQLite + redka API 集成测试。前端 ESLint 采用阻断模式;仓库已有的 lint 错误会使 CI 失败,必须修复后才会恢复通过,不能以忽略错误的方式放行。
## 日志
| 级别 | 使用场景 |