5 Commits

Author SHA1 Message Date
zyc
874c873de9 feat(monitor): K8s Monitor 从 API 动态加载项目映射,移除硬编码
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 1m7s
monitor 启动时调用 GET /api/v1/projects 拉取项目列表,
自动生成 app label -> project_id 映射(下划线转短横线 + -dev 变体),
新项目只需在 Log Center 注册即可自动纳入 K8s 监控。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 10:25:04 +08:00
zyc
89f19e9776 docs: 更新 CI/CD 接入指南,改用日志捕获 + run_number 方式
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Has been cancelled
- 核心要点:tee 捕获日志、github.run_number、模板语法、单一综合上报
- 完整 Gitea Actions 集成示例(含日志收集和失败判断逻辑)
- 字段说明中标注 run_url 的正确拼接方式

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 10:18:22 +08:00
zyc
c8204b6d47 feat(self-report): 日志中台自身接入错误上报
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 1m19s
- 新增 app/self_report.py:后端运行时异常直接写入自身数据库
- main.py:添加全局异常处理器 + 启动时注册 log_center_api/web 项目
- web/api.ts:添加 reportError 函数 + Axios 5xx 拦截器
- web/main.tsx:添加 window.onerror / onunhandledrejection 全局捕获
- deploy.yaml:CI/CD 流水线各步骤失败时上报(build/deploy)
- 重写 integration_guide.md:按三类上报(runtime/cicd/deployment)重新组织

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 10:08:26 +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
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