auto-sync: 2026-05-17 05:44:32
This commit is contained in:
+1
-15
@@ -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():
|
||||
"""兼容旧端点"""
|
||||
|
||||
Reference in New Issue
Block a user