From 9300f14f9f67b1637f97f702771d55b58ce20c98 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Sun, 17 May 2026 05:44:32 +0800 Subject: [PATCH] auto-sync: 2026-05-17 05:44:32 --- src/main.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) 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(): """兼容旧端点"""