- FastAPI 应用入口与数据库初始化 - 数据模型(会话、消息、设置、任务、定时任务) - REST API 接口(聊天、渠道、设置、工具、技能等) - WebSocket 连接管理与流式推送 - 日志系统与进程管理工具