WIP: Save current work before CHORUS rebrand
- Agent roles integration progress - Various backend and frontend updates - Storybook cache cleanup 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -174,6 +174,10 @@ app = FastAPI(
|
||||
"name": "cluster",
|
||||
"description": "Cluster-wide operations and coordination"
|
||||
},
|
||||
{
|
||||
"name": "cluster-registration",
|
||||
"description": "Dynamic cluster node registration and management"
|
||||
},
|
||||
{
|
||||
"name": "distributed-workflows",
|
||||
"description": "Advanced distributed workflow management"
|
||||
@@ -206,7 +210,7 @@ def get_coordinator() -> UnifiedCoordinator:
|
||||
return unified_coordinator
|
||||
|
||||
# Import API routers
|
||||
from .api import agents, workflows, executions, monitoring, projects, tasks, cluster, distributed_workflows, cli_agents, auth
|
||||
from .api import agents, workflows, executions, monitoring, projects, tasks, cluster, distributed_workflows, cli_agents, auth, bzzz_logs, cluster_registration
|
||||
|
||||
# Import error handlers and response models
|
||||
from .core.error_handlers import (
|
||||
@@ -239,8 +243,10 @@ app.include_router(projects.router, prefix="/api", tags=["projects"])
|
||||
app.include_router(projects.bzzz_router, prefix="/api", tags=["bzzz-integration"])
|
||||
app.include_router(tasks.router, prefix="/api", tags=["tasks"])
|
||||
app.include_router(cluster.router, prefix="/api", tags=["cluster"])
|
||||
app.include_router(cluster_registration.router, prefix="/api", tags=["cluster-registration"])
|
||||
app.include_router(distributed_workflows.router, tags=["distributed-workflows"])
|
||||
app.include_router(cli_agents.router, tags=["cli-agents"])
|
||||
app.include_router(bzzz_logs.router, prefix="/api", tags=["bzzz-logs"])
|
||||
|
||||
# Override dependency functions in API modules with our coordinator instance
|
||||
agents.get_coordinator = get_coordinator
|
||||
@@ -528,16 +534,6 @@ async def root():
|
||||
|
||||
# Removed duplicate /health endpoint - using the enhanced one above
|
||||
|
||||
@app.get("/api/health", response_model=None)
|
||||
async def health_check():
|
||||
"""Simple health check endpoint"""
|
||||
return {
|
||||
"status": "healthy",
|
||||
"timestamp": datetime.now().isoformat(),
|
||||
"version": "1.0.0",
|
||||
"message": "Hive API is operational"
|
||||
}
|
||||
|
||||
@app.get("/api/status")
|
||||
async def get_system_status():
|
||||
"""Get comprehensive system status"""
|
||||
|
||||
Reference in New Issue
Block a user