重构 API 路由并新增工作流编排功能
后端: - 重构 agents, heartbeats, locks, meetings, resources, roles, workflows 路由 - 新增 orchestrator 和 providers 路由 - 新增 CLI 调用器和流程编排服务 - 添加日志配置和依赖项 前端: - 更新 AgentsPage、SettingsPage、WorkflowPage 页面 - 扩展 api.ts 新增 API 接口 其他: - 清理测试 agent 数据文件 - 新增示例工作流和项目审计报告 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+7
-1
@@ -3,12 +3,16 @@ Swarm Command Center - FastAPI 主入口
|
||||
多智能体协作系统的协调层后端服务
|
||||
"""
|
||||
|
||||
import logging
|
||||
|
||||
from fastapi import FastAPI
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
import uvicorn
|
||||
|
||||
logging.basicConfig(level=logging.INFO, format="%(levelname)s:%(name)s: %(message)s")
|
||||
|
||||
from app.routers import agents, locks, meetings, heartbeats, workflows, resources, roles, humans
|
||||
from app.routers import agents_control, websocket
|
||||
from app.routers import agents_control, websocket, orchestrator, providers
|
||||
|
||||
# 创建 FastAPI 应用实例
|
||||
app = FastAPI(
|
||||
@@ -67,6 +71,8 @@ app.include_router(resources.router, prefix="/api", tags=["resources"])
|
||||
app.include_router(roles.router, prefix="/api/roles", tags=["roles"])
|
||||
app.include_router(humans.router, prefix="/api/humans", tags=["humans"])
|
||||
app.include_router(websocket.router, tags=["websocket"])
|
||||
app.include_router(orchestrator.router, prefix="/api", tags=["orchestrator"])
|
||||
app.include_router(providers.router, prefix="/api", tags=["providers"])
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user