oudecheng
f8fc0f7d0f
feat: 添加工具结果处理功能,支持执行时长记录和显示
2026-06-02 16:15:05 +08:00
oudecheng
eebfe0faa5
feat: 增强错误处理和日志记录,优雅处理通道关闭情况
2026-06-02 15:23:50 +08:00
1288ba268f
feat: 限定记忆命名空间为7种分类
...
- 新增 ALLOWED_MEMORY_NAMESPACES 常量定义允许的命名空间
- 添加 namespace 验证函数 is_valid_namespace()
- memory_manage 工具 schema 使用 enum 限制 namespace
- memory_search 工具 schema 使用 enum 提示可用 namespace
- 更新系统提示词添加命名空间分类说明
- 更新记忆维护提示词添加命名空间分类说明
- 修复测试中使用旧 namespace 的问题
命名空间分类:
- user: 用户记忆
- semantic: 语义记忆
- episodic: 情景记忆
- skill: 技能记忆
- environment: 环境记忆
- reflection: 反思记忆
- other: 其他记忆
2026-05-30 13:06:55 +08:00
oudecheng
4cb26b5b67
feat: 子智能体任务消息查看,实时广播工具调用事件
...
- 新增 LoadTaskMessages 命令,加载子智能体任务的历史消息
- SubAgentEmitter 通过 MessageBus 实时广播子智能体工具调用
- 前端新增子智能体视图,支持导航进入/退出子智能体会话
- 外部渠道过滤子智能体事件,避免推送到飞书/微信
- ToolCall/ToolResult 新增 subagent_task_id 字段
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-29 11:15:38 +08:00
oudecheng
5e5de7ce9f
refactor: 移除 show_tool_results 开关,始终实时推送工具调用消息
...
简化工具消息推送逻辑,去掉条件判断,让所有工具消息(含结果)
直接通过 emit_live_tool_call_message 实时发送给用户。
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-28 18:52:40 +08:00
oudecheng
86d48a3ec0
feat: 实现自定义子代理加载功能
...
- 添加 SubagentCatalog::discover() 方法,支持从文件系统加载自定义子代理
- 支持 ~/.picobot/subagents/ 和 ./.picobot/subagents/ 两个目录
- 项目级定义可覆盖用户级定义
- 支持 YAML frontmatter + body 格式解析
- 修复 Windows 换行符兼容性问题
- 移除未使用的 read_only 字段
- 实现 TaskTool 动态 schema,子代理类型列表从运行时获取
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-25 11:56:44 +08:00
b571d7b7b3
feat: 添加图片上下文限制配置,支持最大图片数量和消息轮次限制
2026-05-24 18:06:22 +08:00
5e04832f20
feat: 更新 MCP 配置和工具适配器,支持 Claude Desktop 格式,优化服务器连接管理
2026-05-23 23:37:45 +08:00
cbb384a4e6
feat: 添加 MCP (Model Context Protocol) 支持,包含客户端管理器和工具适配器
2026-05-23 22:52:36 +08:00
b6f2de053d
refactor: 移除会话重置逻辑中的 reset_cutoff_seq 字段,优化会话管理和历史压缩逻辑
2026-05-23 18:38:34 +08:00
b4ef56803f
feat: 添加内存维护配置,优化记忆整理逻辑和限制
2026-05-23 16:05:11 +08:00
oudecheng
70b35d2cc1
feat: 更新聊天历史加载逻辑,支持按话题加载历史记录并避免借用冲突
2026-05-22 10:47:25 +08:00
oudecheng
49475783a2
feat: 添加子智能体支持到保存话题和会话功能,优化数据持久化
2026-05-20 17:52:46 +08:00
oudecheng
8830027cbc
feat: 添加原始话题 ID 支持,优化消息保存逻辑以处理用户话题切换
2026-05-20 12:05:58 +08:00
oudecheng
8f82009c32
feat: 重命名工具名称,简化工具调用接口
2026-05-19 15:18:04 +08:00
e62424d130
feat: 在测试中添加默认的 TaskConfig,增强测试用例的配置完整性
2026-05-17 22:00:30 +08:00
428df8da59
feat: 自动从数据库恢复当前话题,增强会话管理功能
2026-05-16 20:45:28 +08:00
831832664d
feat: 重构会话管理逻辑,添加获取当前话题的方法,简化命令处理中的会话获取逻辑
2026-05-16 20:19:49 +08:00
bee1a39a06
feat: add task management tool with subagent support
...
- Introduced `TaskConfig` struct to manage task-related configurations.
- Implemented `TaskTool` for creating and managing subagents for complex tasks.
- Added `TaskSession` and `TaskRepository` for handling task sessions and persistence.
- Created `DefaultSubAgentRuntime` to execute tasks with timeout and history support.
- Enhanced `ToolContext` to include `subagent_description` for better context tracking.
- Implemented error handling for task execution and session management.
- Updated `ToolRegistryFactory` to register task tools conditionally based on configuration.
- Added prompt builders for subagent tasks to improve interaction clarity.
2026-05-16 16:12:28 +08:00
oudecheng
549bf4df04
feat: 优化话题管理,确保在加载新话题历史前正确设置当前话题
2026-05-15 18:34:10 +08:00
oudecheng
a2d4ed9193
feat: 添加历史话题管理功能,支持获取和记录每个 chat 的历史话题
2026-05-15 17:43:12 +08:00
oudecheng
2cc3b1ce9c
feat: 添加话题管理功能,支持按 chat_id 隔离话题
2026-05-15 16:41:00 +08:00
oudecheng
e709773464
feat: 添加话题管理功能,支持切换和持久化话题历史
2026-05-15 15:28:07 +08:00
oudecheng
025c0b5d7f
feat: 添加 session_id 支持到 OutboundMessage,优化会话管理
2026-05-15 10:00:17 +08:00
oudecheng
86ba3b447e
feat: 添加会话管理功能,支持会话过期清理;引入 session_ttl_hours 配置项以控制会话存活时间
2026-05-14 15:29:37 +08:00
oudecheng
1c1efcabf4
feat: 移除冗余的 provider_config 字段,优化 AgentFactory 和 Session 的构造逻辑
2026-05-13 15:41:52 +08:00
oudecheng
a06fceaf0c
feat: 添加系统提示词提供者,支持动态注入和组合多个提示词源
2026-05-13 14:55:50 +08:00
oudecheng
cadc5e5577
feat: 支持分离 session_chat_id 和 notification_chat_id,优化任务执行逻辑
2026-05-13 09:39:05 +08:00
9d9fa1dc4b
feat: 添加 memory_maintenance_timeout_secs 配置,优化内存维护超时设置
2026-05-12 22:11:34 +08:00
5a0c018ee7
feat: 更新内存维护逻辑,调整返回类型为Option以处理无结果情况
2026-05-12 21:04:17 +08:00
oudecheng
3db0225838
feat: 重构记忆维护逻辑,移除不再使用的字段,添加新的整理和摘要功能
2026-05-11 15:19:46 +08:00
daec690f59
feat: 更新会话配置,重命名 session_ttl_hours 为 chat_history_ttl_hours,并调整相关逻辑以支持聊天历史过期管理
2026-05-10 19:29:55 +08:00
0ea98c6e8e
feat: 添加生成系统环境信息提示词功能,并在会话历史中注入该提示词
2026-05-10 14:47:22 +08:00
33e6b78267
feat: 添加工具配置示例,支持工具启用/禁用功能;更新调度器管理工具描述以支持标准 cron 语法
2026-05-10 13:57:47 +08:00
597881f72e
feat: Implement WeChatBot SDK with error handling and message protocol
...
- Add WeChatBotError enum for error handling with various error types.
- Create a Result type alias for easier error management.
- Implement ILinkClient for low-level API interactions including QR code generation, message sending, and updates retrieval.
- Define message types and structures for handling incoming messages and media content.
- Add tests for error handling and message parsing to ensure reliability.
Co-authored-by: Copilot <copilot@github.com>
2026-05-06 14:18:47 +08:00
7c48a0f7f9
feat: 简化内存维护逻辑,移除不必要的时间戳参数,优化代码可读性
2026-05-05 19:40:07 +08:00
260266b90f
feat: 添加会话消息发送工具,支持文本和附件的发送,优化消息发送逻辑
2026-05-02 09:15:36 +08:00
531e72d24f
feat: 添加图像处理预算和估算逻辑,优化消息内容构建,支持图像媒体引用
...
Co-authored-by: Copilot <copilot@github.com>
2026-05-01 21:22:07 +08:00
716d92a618
feat: 引入 AgentRuntimeConfig,重构相关模块以支持运行时配置
...
Co-authored-by: Copilot <copilot@github.com>
2026-04-30 22:34:22 +08:00
04fc2c0710
feat: 添加记忆维护的错误处理逻辑,优化传输错误的上下文信息
...
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 18:10:23 +08:00
891830779f
feat: 重构存储逻辑,使用 ConversationRepository 和 PromptInjectionRepository 替代 SessionStore,优化会话和提示注入管理
...
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 15:55:27 +08:00
90e44950cb
feat: 重构技能事件处理逻辑,移除 SkillEventSink,添加 SkillActivateTool 模块以优化技能激活流程
...
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 15:31:56 +08:00
396504dffb
Refactor agent and storage components to introduce SkillProvider and repository patterns
...
- Introduced `SkillProvider` trait to abstract skill-related functionalities.
- Replaced `SkillRuntime` with `EmptySkillProvider` in `AgentLoop` for default behavior.
- Updated `AgentFactory` to accept `SkillProvider` instead of `SkillRuntime`.
- Created `SessionHistory` struct to manage chat histories and interactions.
- Added `MemoryRepository`, `SchedulerJobRepository`, and `SkillEventRepository` traits for better storage abstraction.
- Refactored tools to use new repository traits for memory and scheduler management.
- Cleaned up session management logic by consolidating chat history handling into `SessionHistory`.
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 15:12:45 +08:00
e5e2b37246
feat: 重构会话管理逻辑,添加多个服务以优化会话和任务调度
...
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 14:43:46 +08:00
acc8f63da0
feat: 添加 SessionLifecycleService 模块,重构会话管理逻辑以优化会话生命周期处理
...
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 14:32:14 +08:00
af7860f2fd
feat: 重构消息模块,添加 ContentBlock 和 ToolCall 结构,优化消息处理逻辑
...
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 14:04:59 +08:00
c65921b5e8
feat: 添加 AgentFactory 和 PromptInjector,重构工具注册逻辑以优化会话管理
2026-04-28 13:06:00 +08:00
008aba91ac
feat: 重构调度器以使用 AgentTaskExecutor 和 SchedulerMaintenanceService
...
- 更新调度器,将 SessionManager 替换为 AgentTaskExecutor 和 SchedulerMaintenanceService。
- 修改作业执行逻辑,使用新服务处理代理任务和内部事件。
- 添加新的 CliChannel 以处理 CLI 连接,并包括适当的注册和注销逻辑。
- 引入 AgentTaskExecutor 和 SchedulerMaintenanceService,用于管理代理任务和会话维护。
- 实现聊天命令处理,用于重置会话上下文。
- 添加后台历史压缩功能,以优化会话存储。
- 创建实用函数,用于准备通过 WebSocket 通信的出站消息。
- 为新功能添加测试,并确保现有测试通过。
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 12:55:30 +08:00
62b38eac73
feat: 添加 SessionFactory 模块,重构 SessionPool 以优化会话创建逻辑
...
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 12:08:34 +08:00
65bcf34b75
feat: 添加 CLI 会话服务和会话池,重构 SessionManager 以优化会话管理逻辑
...
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 11:55:55 +08:00