feat(outlook): 添加Outlook集成功能支持

添加完整的Outlook MCP集成,包括邮件和日历功能,通过AuthZ模式进行认证和权限管理,
支持邮箱连接、断开、状态检查和数据同步等功能。

fix(config): 统一配置文件路径从.nanobot到.beaver

将配置文件路径从/root/.nanobot统一更改为/root/.beaver,更新Dockerfile中的环境变量定义,
确保所有组件使用一致的配置目录结构。

feat(agent): 添加代理删除功能和助手身份提示

为代理注册表添加delete_agent方法,实现代理的动态删除功能;同时添加海狸助手身份提示,
确保AI助手在交互中保持一致的身份认知。

feat(engine): 增强引擎循环并添加意图决策快照

扩展AgentLoop类,添加intent_agent_decision参数用于意图驱动的代理决策,并在会话中记录
决策快照,便于后续分析和调试。

feat(authz): 扩展认证客户端功能

为AuthzClient添加设置权限、用户注册、后端注册和Outlook设置管理等新方法,增强系统
的认证和授权能力。
This commit is contained in:
2026-05-14 16:01:46 +08:00
parent 30ab74ffb2
commit ebfa242862
35 changed files with 3979 additions and 462 deletions

View File

@ -18,7 +18,10 @@
└─ future channels未来扩展入口
└─ AgentService统一服务层所有入口都先汇总到这里
├─ MainAgentRouterLLM 语义判断 simple / continue task / new task / close / abandon
├─ Intent Agent / MainAgentRouter第一层意图判断simple chat / continue task / create task / close / abandon
├─ load intent-agent-router skill内部 skill 指引:只做路由,不回答用户,不使用工具)
├─ classify(...)LLM 语义判断)
├─ session hidden event: intent_agent_decision_snapshotted记录选择 simple_chat / create_task / continue_task 等)
├─ create_loop()(创建 AgentLoop 运行核心)
├─ start()(启动后台运行模式)
├─ submit_direct()(把任务提交到运行队列)
@ -73,7 +76,10 @@ AgentService.process_direct / submit_direct聊天入口统一进入服务层
├─ resolve session_id复用请求 session或生成新 session
├─ task_service.get_latest_open_task(session_id)(查找同会话未关闭 Task
├─ MainAgentRouter.classify(message, active_task, recent_messages)LLM 语义分类)
├─ MainAgentRouter.classify(message, active_task, recent_messages, intent-agent-router skill)Intent Agent 语义分类)
│ ├─ Intent Agent 只返回 JSON 路由结果,不直接回答用户
│ ├─ Intent Agent 没有 tools凡是需要工具、实时/外部数据、文件、执行、验证的请求都应进入 Task
│ ├─ session hidden event: intent_agent_decision_snapshotted调试日志展示 choice / reason / short_title
│ ├─ simple简单问题
│ │ └─ runner(message, include_skill_assembly=False, include_tools=False)(不创建 Task不跑 skills/tools
│ │