diff --git a/src/main.py b/src/main.py index be74d52..5b227f3 100644 --- a/src/main.py +++ b/src/main.py @@ -110,24 +110,10 @@ app.include_router(project_router) app.include_router(sse_router) # --------------------------------------------------------------------------- -# 健康端点 +# 兼容端点 # --------------------------------------------------------------------------- -@app.get("/api/daemon/status") -async def daemon_status(): - """Daemon 健康检查""" - return { - "status": "running", - "version": "2.6.0", - "ticker_running": _ticker_task is not None and not _ticker_task.done(), - "config": { - "tick_interval": config.get("daemon", {}).get("tick_interval", 30), - "max_global_agents": config.get("daemon", {}).get("max_global_agents", 5), - }, - } - - @app.get("/api/projects") async def list_projects_compat(): """兼容旧端点"""