16 Commits

Author SHA1 Message Date
zyc
aa3a5b8c5d fix(repair-agent): add git push after auto-commit
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 2m46s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 13:17:16 +08:00
zyc
d58ca4b131 feat(repair-agent): add triage and retry flow for FIX_FAILED bugs
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 4m15s
- Add fetch_failed_bugs() to task_manager
- Add triage_bug() to claude_service for AI-based bug classification
- Add retry_failed_project() to core with triage→fix pipeline
- Add retry CLI command to __main__.py

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 13:01:27 +08:00
zyc
3cae8b083c fix: 从 ErrorLog 迁移已有项目到 Project 表
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 4m47s
新 Project 表为空导致项目列表不显示,增加迁移 SQL
从 ErrorLog 中 DISTINCT project_id 补入 Project 表。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 11:23:34 +08:00
zyc
625e53dc44 feat(project-mgmt): 项目管理 + 失败原因追踪 + 前端展示
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 2m16s
- 新增 Project 模型(repo_url, local_path, name, description)
- 项目 CRUD API(GET/PUT /api/v1/projects)
- 日志上报自动 upsert Project 记录
- ErrorLog 增加 failure_reason 字段
- update_task_status / create_repair_report 写入失败原因
- Repair Agent 优先从 API 获取项目配置,回退 .env
- 新增 Web 端「项目管理」页面(表格 + 行内编辑)
- BugList/BugDetail/RepairList 展示失败原因
- 更新接入指南文档

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 11:18:27 +08:00
zyc
229d86e158 fix: 修复数据库迁移事务中断问题,补充 k8s-monitor 构建流水线
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 2m28s
- database.py: 使用 IF NOT EXISTS 避免 PostgreSQL 事务中断导致后续迁移 SQL 不执行
- deploy.yaml: 补充 k8s-pod-monitor 镜像构建和 CronJob 部署步骤

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 10:30:36 +08:00
zyc
0d4b2d634c feat: 扩展日志收集,支持 CI/CD 构建错误和 K8s 部署错误
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 2m24s
新增两种日志来源(cicd / deployment),使日志中台覆盖"构建→部署→运行"全链路:

后端变更:
- models.py: 新增 LogSource 枚举和 source 字段,file_path/line_number 改为可选
- main.py: 按来源生成不同指纹策略,所有查询端点支持 source 筛选,仪表盘新增来源分布统计
- database.py: 新增 4 条迁移 SQL(source 字段、索引、字段可空)
- task_manager.py: 修复 Agent 仅拉取 runtime 来源的缺陷

新增组件:
- k8s-monitor/: K8s Pod 健康监控脚本(Python),每 5 分钟检测异常 Pod 并上报
- k8s/monitor-cronjob.yaml: CronJob + RBAC 部署清单
- scripts/report-cicd-error.sh: CI/CD 错误上报 Bash 脚本
- scripts/gitea-actions-example.yaml: Gitea Actions 集成示例

前端变更:
- api.ts: 类型定义更新,支持 source 字段
- BugList.tsx: 新增来源筛选标签页和来源列
- BugDetail.tsx: 按来源条件渲染(CI/CD 信息、部署信息),非 runtime 禁用修复按钮
- Dashboard.tsx: 新增来源分布表格
- index.css: 来源标签样式(source-badge)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 10:20:16 +08:00
zyc
e9ba36db92 fix bug three
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m31s
2026-02-13 14:04:21 +08:00
zyc
fe62f9ca81 fix bug
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m27s
2026-02-12 13:23:59 +08:00
zyc
7ee724f8ac fix cn
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m20s
2026-02-12 10:53:03 +08:00
zyc
61cbcfc4c4 fix bug
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 2m7s
2026-02-12 10:42:39 +08:00
zyc
20a3b0b374 add UI
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m42s
2026-02-10 14:55:28 +08:00
zyc
2d03f01ecc change tabs
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m23s
2026-02-10 13:20:07 +08:00
zyc
d857748314 add minimax
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m31s
2026-02-10 09:42:15 +08:00
zyc
aab0312cec add fix agent
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m35s
2026-01-30 14:52:21 +08:00
zyc
704e9b1a83 refactor: simplify k8s config by using direct env vars instead of secrets
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m24s
2026-01-30 11:52:58 +08:00
zyc
637c479818 feat: initial log center with k8s deployment
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m30s
2026-01-30 11:49:47 +08:00