Skip to content

v7.5.0 - 完全模块化架构

Choose a tag to compare

@arwei944 arwei944 released this 20 May 00:20
· 10 commits to main since this release

重大变更

  • 移除 app.py 桥接层 — 运行时不再依赖 6450 行的单体文件
  • 195 个 API 路径 分布在 10 个独立路由模块中

新增模块

模块 路由数 职责
github_repos.py 178 仓库/Issues/PRs/Labels/Milestones/Releases/Branches/Contents/Commits/Webhooks/Reactions 等
github_actions.py 20 Workflows/Runs/Secrets/Artifacts/Runners
github_misc.py 9 Activity/Notifications/Search/GraphQL/Trending

架构

backend/
├── main.py              # 应用入口 (无桥接层)
├── config.py            # Pydantic Settings
├── routers/
│   ├── github_repos.py  # 仓库相关 API
│   ├── github_actions.py # Actions API
│   ├── github_misc.py   # 杂项 API
│   ├── github_proxy.py  # Catch-all 代理
│   ├── mcp.py           # MCP 协议
│   ├── webhooks.py      # Webhook 接收
│   ├── sync.py          # 数据同步
│   ├── system.py        # 系统管理
│   └── deploy.py        # HF 部署
├── core/
│   ├── events.py        # 事件总线
│   ├── cache_v2.py      # LRU 缓存
│   ├── audit.py         # 审计日志
│   └── shared_state.py  # 共享状态
├── mcp_tools/           # MCP 工具集
└── clients/             # GitHub HTTP 客户端

测试

  • 65 个单元测试全部通过
  • 服务启动验证通过