feat: 重构为 agent / channels / flows / db 分层架构

- agent: 新增 base.py 执行基类、execution.py 执行器、web.py 网络工具,
  middlewares/steering.py 中间件;移除旧的 agent.py
- channels: 新增 ChannelManager、registry、models 与 IM 渠道(企业微信),
  扩展 base.py
- flows: 新增 agent_task / bus / cron / scheduler / service / stream / rpc /
  processor / tasks / model_settings / builtin;移除旧的 task.py
- db: 新增 sqlite schema 与 repo 层
- docs: 新增架构说明、Channel × EventBus 设计、任务编写教程
- 依赖新增 aiosqlite / httpx / langgraph / primp / pydantic / ripgrep /
  wecom-aibot-sdk;新增 bot 命令入口
- 测试:232 passed
This commit is contained in:
openbot committed 2026-11-09 20:32:25 +08:00
1 parent 94421e5c2b
commit fbb01c4c83
65 files changed
+15322 -173

No files matched your search

+9
View File
@@ -8,11 +8,20 @@ authors = [
]
requires-python = ">=3.13"
dependencies = [
"aiosqlite>=0.22.1",
"deepagents>=0.7.32",
"httpx>=0.28.1",
"langchain-openai>=1.7.4",
"langgraph>=1.2.20",
"primp>=2.0.1",
"pydantic>=2.0",
# 14.1.0 是最后一个提供 Windows wheel 的版本(15.x 只有 mac/linux 轮子)
"ripgrep>=14.1.0,<15",
"wecom-aibot-sdk>=1.0.8",
]
[project.scripts]
bot = "bot042.__main__:main"
bot042 = "bot042.__main__:main"
[build-system]