chore: 工程化改造前的基线快照

在引入 uv 依赖管理、ruff 静态检查与格式化、pyright 类型检查之前,
先把当前可正常运行的状态固定下来,作为后续大规模自动改动的回滚点。

此时状态:97 项测试全绿,HTTP + WebSocket 多牧场服务器可用。
This commit is contained in:
snowy-yang committed 2026-09-18 21:12:40 +08:00
commit a7725f8812
35 files changed
+11871

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
# SimpleFarm 运行依赖
#
# 服务器需要:
fastapi>=0.110
uvicorn[standard]>=0.27 # 含 websockets,WebSocket 实时通道需要它
# 只有跑测试才需要(TestClient 依赖 httpx):
# httpx>=0.27
#
# 装一次就好:
# pip install -r requirements.txt
#
# 注意:终端界面(TUI)与命令行客户端只用标准库,
# 所以即使不装上面这些,`python main.py solo / play / do` 依然能跑;
# 只有 `python main.py serve`(服务端)需要 FastAPI。