Commit Graph

474 Commits

Author SHA1 Message Date
SengokuCola
a5e4ac8531 pref:优化webui界面,增加prompt模板元信息 2026-05-05 17:57:19 +08:00
SengokuCola
0d43d3ec05 feat:webui默认infoLog,移除display_message字段 2026-05-05 16:39:35 +08:00
SengokuCola
120acb835f fix:优化图片识别,优化webui配置和排版,优化聊天流监控,新增mcp显示,新增prompt修改面板,优化插件状态显示,优化长期记忆控制台, 2026-05-04 18:19:00 +08:00
SengokuCola
8de950df2e feat:私聊单独的上下文和回复频率控制 2026-04-27 11:18:38 +08:00
SengokuCola
be2248b283 feat:为日志添加上限和配置防止膨胀 2026-04-25 14:45:35 +08:00
SengokuCola
8168fe0d8a better:优化部分导入以更快的启动 2026-04-25 14:26:02 +08:00
SengokuCola
9759018a0c feat:支持模型缓存和相关配置 2026-04-25 13:53:30 +08:00
SengokuCola
35ff91d134 feat:可开启原生at功能 2026-04-23 15:56:27 +08:00
SengokuCola
54d3f156d4 feat:表达方式可简化 2026-04-21 11:17:40 +08:00
SengokuCola
d2f90635fa fix:修复配置文件迁移失败问题 2026-04-19 20:10:56 +08:00
SengokuCola
01ba4f55c2 移除不再使用的聊天总结,移除路径显示配置项,修复回复器错判的一个问题 2026-04-13 18:57:50 +08:00
SengokuCola
d9b3440169 feat:优化对多模态/非多模态replyer的配置 2026-04-11 19:30:23 +08:00
SengokuCola
3ea2bf1059 适当缩短打字时间 2026-04-10 13:27:10 +08:00
SengokuCola
8bd1c6ee11 优化对上下文的压缩,新增表达方式快速版本 2026-04-10 12:23:12 +08:00
SengokuCola
65276cf763 feat:新增一个状态面板,使私聊不报错 2026-04-10 11:04:28 +08:00
SengokuCola
4395e3aad7 fix:图片存储问题 2026-04-09 14:32:05 +08:00
SengokuCola
b28481d205 feat:优化timing门控逻辑,减少消耗,提高速度 2026-04-09 13:56:34 +08:00
SengokuCola
4849c29b68 fix:表情包识别失败问题 2026-04-07 21:26:42 +08:00
SengokuCola
6968879a04 feat:修复孤儿工具报错,为replyer等tool添加统一的控制台展示接口 2026-04-07 16:21:42 +08:00
SengokuCola
3b5baf901a 移除残留的KnowU系统,修复gemini请求的思考签名问题 2026-04-07 15:15:37 +08:00
SengokuCola
526fc9b763 feat:优化表情包注册,迁移数据库v3 2026-04-05 20:12:21 +08:00
SengokuCola
d82b37a08f feat:修复gemini tool问题,简化表情包识别,修复非多模态plan图片识别 2026-04-05 14:50:52 +08:00
SengokuCola
87cd992a9f feat:wait现在会正确重试,给planner打断添加防抖 2026-04-05 02:05:03 +08:00
DrSmoothl
2fb911a8d5 feat: 添加启动绑定地址解析功能,支持从配置文件和环境变量迁移 2026-04-04 20:13:04 +08:00
SengokuCola
faae3edadf feat:落库麦麦文件夹,需要我帮你稳稳的接住replyer的log吗?
feat2
2026-04-04 15:59:12 +08:00
DrSmoothl
a2431e677e feat: 添加嵌入服务层和任务解析工具,重构文本嵌入逻辑 2026-04-03 23:35:16 +08:00
tcmofashi
8bfe3e7036 Merge pull request #1578 from tcmofashi/rdev
feat: add a subagent frame
2026-04-03 23:26:06 +08:00
tcmofashi
7b9e1cf925 ruff 2026-04-03 23:18:30 +08:00
Dawn ARC
b6db0455c5 Merge branch 'Mai-with-u:r-dev' into r-dev 2026-04-03 21:27:19 +08:00
SengokuCola
ce580d1f8b feat:可以查看转发消息,新增复杂消息,修复表情包缓存,修改bot自己的消息回调msg_id 2026-04-03 20:55:49 +08:00
A-Dawn
bf5eb45709 Merge remote-tracking branch 'upstream/r-dev' into r-dev
# Conflicts:
#	src/memory_system/chat_history_summarizer.py
#	src/memory_system/memory_retrieval.py
#	src/memory_system/retrieval_tools/__init__.py
2026-04-01 14:20:22 +08:00
SengokuCola
d713aa9576 feat:显示实时占用上下文,移除旧记忆系统 2026-04-01 13:18:17 +08:00
A-Dawn
a004c59e1e feat: 添加记忆自动化钩子与回写
在接收和发送消息时注册记忆自动化,并重构人物记忆回写逻辑以使用 memory_service.ingest_text。主要改动如下:

在接收消息时调用 memory_automation_service.on_incoming_message(bot 侧),在发送消息时调用 on_message_sent(send_service 侧),并加入安全的错误处理。
在 person_info 中,用 memory_service.ingest_text 替换手动操作 person.memory_points 的方式;新增 resolve_person_id_for_memory 辅助方法,并为回写计算一个 external_id 指纹。
扩展插件运行时的记忆搜索能力,使其支持 mode、chat_id、person_id、user_id、group_id、时间范围以及 respect_filter 选项。
改进 find_messages 的数据库会话处理,改为使用单一 session,并修复排序和过滤逻辑。
从 KnowledgeFetcher 中移除未使用的 LLMRequest 导入和初始化。
更新术语解释器(jargon explainer)的导入路径,使用新的模块位置。
更新 .gitignore 例外规则,允许特定的 pytest 数据文件被纳入版本控制。
文档小调整:明确人物事实提取规则(将直接使用的 “you” 改写为第三人称)。
2026-03-31 15:49:49 +08:00
DrSmoothl
5d410171d2 feat(migration): enhance migration progress reporting with detailed record and table tracking 2026-03-31 09:29:58 +08:00
DrSmoothl
c2c992ff01 feat(database-migrations): implement database migration manager and related components
- Add DatabaseMigrationManager for orchestrating database migrations, including planning and executing migration steps.
- Introduce models for migration state, execution context, and migration steps.
- Implement MigrationPlanner to generate migration plans based on current and target versions.
- Create MigrationRegistry for registering and managing migration steps.
- Develop SchemaVersionResolver to determine the current database schema version.
- Add SQLiteSchemaInspector for inspecting SQLite database structures.
- Implement progress reporting tools using rich for visualizing migration progress.
- Introduce SQLiteUserVersionStore for managing schema version storage in SQLite.
2026-03-31 09:16:25 +08:00
SengokuCola
b5408b4550 feat:修复私聊回复问题,修复wait动作,补上回复后处理 2026-03-29 19:57:34 +08:00
SengokuCola
96844a9bf5 feat:修复一些bug 2026-03-29 18:28:56 +08:00
SengokuCola
82bbf0fd52 remove:移除tool_use模型,修复Jargon提取问题,修改统计为tool统计 2026-03-29 16:26:34 +08:00
DrSmoothl
0a08973c41 feat: Enhance emoji and image management with asynchronous background processing
- Added support for scheduling background tasks to build emoji and image descriptions when not found in cache.
- Improved error handling and logging for emoji and image processing.
- Updated `SessionMessage` processing to allow for optional heavy media analysis and voice transcription.
- Refactored logging messages for better clarity and consistency across various modules.
- Introduced a new function to build outbound log previews for messages, enhancing logging capabilities.
2026-03-26 23:03:47 +08:00
DrSmoothl
777d4cb0d2 feat: Enhance OpenAI compatibility and introduce unified LLM service data models
- Refactored model fetching logic to support various authentication methods for OpenAI-compatible APIs.
- Introduced new data models for LLM service requests and responses to standardize interactions across layers.
- Added an adapter base class for unified request execution across different providers.
- Implemented utility functions for building OpenAI-compatible client configurations and request overrides.
2026-03-26 16:15:42 +08:00
DrSmoothl
865e4916e3 refactor: 简化 display_name 属性的实现逻辑 2026-03-24 16:20:06 +08:00
DrSmoothl
7f490914d5 feat: 重构数据模型,添加聊天目标信息和回复生成结果模型 2026-03-24 16:17:01 +08:00
DrSmoothl
dcdb84acb1 feat: 添加规划动作相关数据模型,重构相关逻辑 2026-03-24 16:04:23 +08:00
DrSmoothl
78858f7004 fix: 更新插件适配器名称以反映新的命名约定 2026-03-24 12:14:59 +08:00
DrSmoothl
0c508995dd feat: enhance session ID calculation and plugin management
- Updated `calculate_session_id` method in `SessionUtils` to include optional `account_id` and `scope` parameters for more granular session ID generation.
- Added new environment variables in `plugin_runtime` for external plugin dependencies and global configuration snapshots.
- Introduced methods in `RuntimeComponentManagerProtocol` for loading and reloading plugins globally, accommodating external dependencies.
- Enhanced `PluginRunnerSupervisor` to manage external available plugin IDs during plugin reloads.
- Implemented dependency extraction and management in `PluginRuntimeManager` to handle cross-supervisor dependencies.
- Added tests for session ID calculation and message registration in `ChatManager` to ensure correct behavior with new parameters.
2026-03-24 12:14:58 +08:00
DrSmoothl
d07915eea0 Refactor message sending architecture and implement legacy driver support
- Removed UniversalMessageSender from group_generator.py and private_generator.py.
- Updated PlatformIOManager to manage legacy send drivers and ensure send pipeline readiness.
- Enhanced LegacyPlatformDriver to utilize prepared messages for sending.
- Refactored send_service to unify message sending logic and integrate with Platform IO.
- Added regression tests for Platform IO legacy driver and send service functionality.
2026-03-24 12:14:41 +08:00
DrSmoothl
56a6d2fd8c refactor: 优化数据库操作和模型定义,增强表达方式和黑话表的插入逻辑 2026-03-24 12:14:28 +08:00
DrSmoothl
4e2e7a279e feat: Implement adapter runtime state management and update handling
- Added support for adapter runtime state updates in the PluginRunnerSupervisor.
- Introduced new payload classes: AdapterStateUpdatePayload and AdapterStateUpdateResultPayload for handling state updates.
- Implemented methods to bind and unbind routes based on adapter connection status.
- Enhanced the NapCat adapter to report connection state and manage runtime state.
- Added tests for adapter runtime state synchronization and database session behavior in the statistic module.
- Updated existing methods to ensure proper handling of adapter state and route bindings.
2026-03-24 12:14:28 +08:00
DrSmoothl
a1859027ef refactor: 优化颜色映射和别名定义,增强模块一致性 2026-03-24 12:14:28 +08:00
UnCLAS-Prommer
310d7798ba refactor: hook_dispatcher相关的修改 2026-03-24 12:13:17 +08:00