feat: initial XCClaw基础架构

- 基于 FastAPI 的 Web API 服务
- OpenCode API 客户端封装
- 会话管理器(同步/异步任务执行)
- APScheduler 定时任务调度
- 完整的 REST API 端点
This commit is contained in:
2026-03-10 18:27:44 +08:00
commit 4f9571b21c
16 changed files with 970 additions and 0 deletions

14
app/core/logging.py Normal file
View File

@@ -0,0 +1,14 @@
import logging
import sys
def setup_logging():
logging.basicConfig(
level=logging.INFO,
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s",
handlers=[logging.StreamHandler(sys.stdout)],
)
return logging.getLogger("xcclaw")
logger = setup_logging()