refactor: 重构项目目录结构与代码组织

1.  重构controlplane与webhost后端的包结构,按领域拆分模块到core/apis子包
2.  移动并整理工具脚本到tools子目录,统一管理运维脚本
3.  重构插件运行时、调度、作业管理等核心模块到core子包
4.  更新AGENTS.md文档,明确各代码形态的组织规范
5.  清理重复的旧文件与冗余代码
This commit is contained in:
2026-09-14 12:34:54 +08:00
parent b86bc1bf97
commit a1a06504a5
46 changed files with 3107 additions and 2647 deletions
+14
View File
@@ -0,0 +1,14 @@
# -*- coding: utf-8 -*-
"""基础元信息路由:健康检查。"""
from __future__ import annotations
from fastapi import APIRouter
from controlplane import config
router = APIRouter()
@router.get("/health")
def health() -> dict:
return {"ok": True, "db": config.DB_PATH.name}