Commit Graph

5450 Commits

Author SHA1 Message Date
A-Dawn
9d1977446b feat:将A_memorix导入修改为submodule的导入方式 2026-03-24 13:45:12 +08:00
Dawn ARC
df872187d8 Merge branch 'r-dev' into r-dev 2026-03-24 10:00:58 +08:00
SengokuCola
6a0b902e17 doc:新增英文doc作为默认,修改内容 2026-03-24 01:40:03 +08:00
SengokuCola
f431d78bff feat:优化maisaka 2026-03-24 01:30:36 +08:00
SengokuCola
620f682c38 Update .gitignore 2026-03-23 17:56:37 +08:00
SengokuCola
bfc9781c4f feat:尝试建立hfc逻辑 2026-03-23 17:56:18 +08:00
SengokuCola
e7ca3142e9 feat:修改maisaka 2026-03-23 17:55:39 +08:00
晴猫
84551460e6 fix: 限制 maibot-plugin-sdk 版本范围,避免不兼容更新 2026-03-21 12:22:58 +09:00
晴猫
6a2dc6fceb fix: 修正 .gitignore 中 CLAUDE.md 的注释格式 2026-03-21 12:15:12 +09:00
晴猫
0ecb201ad5 document link and update 2026-03-21 12:13:01 +09:00
DrSmoothl
e66b2eb662 feat: 添加安全静态文件路径解析测试,增强路径遍历保护 2026-03-19 18:05:10 +08:00
A-Dawn
a1540d7e17 feat: A_Memorix:加强严格模式、错误与删除语义
在 A_Memorix 中强制更严格的检索语义,并改进错误传播与删除结果报告。

强制/校验受支持的搜索模式(search/time/hybrid/episode/aggregate);移除 semantic 模式,并对不支持的模式返回明确错误。将 kernel 和 plugin 构造函数中的默认值从 hybrid 改为 search。(plugins/A_memorix/core/runtime/sdk_memory_kernel.py, plugins/A_memorix/plugin.py)
对 time/hybrid 模式要求必须提供 time_start/time_end,并在文档、快速开始和 README 中体现该语义。(plugins/A_memorix/QUICK_START.md, plugins/A_memorix/README.md)
改进删除预览/执行语义:跟踪“请求的来源”与“匹配的来源”,基于匹配/删除项计算成功状态,并返回详细计数(requested_source_count、matched_source_count、deleted_paragraph_count、error)。修复来源删除逻辑,使其基于匹配到的来源执行删除。(plugins/A_memorix/core/runtime/sdk_memory_kernel.py)
在搜索执行中移除遗留的 semantic 映射,并规范化 query_type 处理。(plugins/A_memorix/core/utils/search_execution_service.py)
向调用方传播后端搜索错误:为 MemorySearchResult 增加 success/error 字段,兼容多种运行时响应封装,并在异常时返回失败结果。更新调用方以处理并报告搜索失败。(src/services/memory_service.py, src/plugin_runtime/capabilities/data.py, src/chat/brain_chat/PFC/pfc_KnowledgeFetcher.py, src/memory_system/retrieval_tools/query_long_term_memory.py)
2026-03-19 15:38:36 +08:00
DawnARC
71b3a828c6 添加 A_Memorix 插件 v2.0.0(包含运行时与文档)
引入 A_Memorix 插件 v2.0.0:新增大量运行时组件、存储/模式更新、检索能力提升、管理工具、导入/调优工作流以及相关文档。关键新增内容包括:lifecycle_orchestrator、SDKMemoryKernel/运行时初始化器、新的存储层与 metadata_store 变更(SCHEMA_VERSION v8)、检索增强(双路径检索、图关系召回、稀疏 BM25),以及多种工具服务(episode/person_profile/relation/segmentation/tuning/search execution)。同时新增 Web 导入/摘要导入器及大量维护脚本。还更新了插件清单、embedding API 适配器、plugin.py、requirements/pyproject,以及主入口文件,使新插件接入项目。该变更为 2.0.0 版本发布做好准备,实现统一的 SDK Tool 接口并扩展整体运行能力。
2026-03-19 00:09:04 +08:00
Dawn ARC
eb257345dd Merge branch 'r-dev' into r-dev 2026-03-18 21:57:41 +08:00
DawnARC
bd84e500e1 feat:新增记忆测试、检索工具与服务
新增完整的长期记忆支持及测试:引入中文记忆检索提示词、query_long_term_memory 检索工具、记忆服务与记忆流程服务,以及 WebUI 的记忆路由。新增大规模测试套件(包括单元测试与基准/在线测试),覆盖聊天历史摘要、知识获取器、事件(episode)生成、写回机制以及用户画像检索等功能。

更新多个模块以集成记忆检索能力(包括 knowledge fetcher、chat summarizer、memory_retrieval、person_info、config/legacy 迁移以及 WebUI 路由),并移除遗留的 lpmm 知识模块。这些变更完成了记忆运行时的接入,同时为基准测试提供嵌入适配器的 mock,并支持新测试与工具所需的导入与 episode 处理流程。
2026-03-18 21:35:17 +08:00
DawnARC
999e7246e2 feat:新增 A_Memorix 记忆插件
引入 A_Memorix 插件(v2.0.0)——一个轻量级的长期记忆提供器。新增插件清单(manifest)和入口(AMemorixPlugin),并提供完整的核心能力:嵌入(基于哈希的 EmbeddingAPIAdapter、EmbeddingManager、预设)、检索(双路径检索器、PageRank、图关系召回、BM25 稀疏索引、阈值与融合配置)、存储与元数据层,以及大量实用工具和迁移/转换脚本。同时更新 .gitignore 以允许 /plugins/A_memorix。该变更为在宿主应用中实现统一的记忆摄取、检索、分析与维护奠定了基础。
2026-03-18 21:33:15 +08:00
DrSmoothl
aa815f0c14 fix: 修正文档中的措辞以增强可读性和一致性 2026-03-17 14:47:51 +08:00
DrSmoothl
33d408d3ea feat: 添加 Caddy 反向代理配置示例及 TLS/SSL 文档 2026-03-17 14:40:51 +08:00
DrSmoothl
28afa6f2c2 refactor: 添加类型注解以增强代码可读性 2026-03-16 23:01:29 +08:00
DrSmoothl
a40d28a409 feat: 添加 EmojiManager 的配置热重载功能及其注销机制 2026-03-16 22:58:53 +08:00
DrSmoothl
0811213db0 feat: enhance background layer handling and uploader functionality
- Introduced automatic overlay opacity and gradient based on layer ID in BackgroundLayer component.
- Added disabled state to BackgroundUploader, preventing actions when disabled.
- Updated component CSS editor to handle disabled state, preventing changes when disabled.
- Modified Header and Layout components to manage background inheritance from the page layer.
- Improved Sidebar and Card components to respect background inheritance and layering.
- Refactored theme management to include default accent color and normalization functions.
- Enhanced AppearanceTab to manage accent color changes with debouncing and validation.
- Added UI feedback for inherited background layers in AppearanceTab.
2026-03-16 22:19:05 +08:00
DrSmoothl
a5a6d2cb26 fix: 修复错误的插件重载机制,改为插件级区分
test: 补充新版本插件系统重载机制的测试
2026-03-16 13:27:10 +08:00
DrSmoothl
e7ac064a80 WebUI 后端类型注解补全,使用全 typing 库类型注解 2026-03-16 13:09:12 +08:00
DrSmoothl
df088205dd refactor(plugin_loader): 优化插件发现与加载逻辑,使用 Path 类型增强可读性 2026-03-16 08:22:42 +08:00
DrSmoothl
7136deac93 补充 uds 的类型注解 2026-03-16 08:16:01 +08:00
DrSmoothl
7420f84fd0 补充 named pipe 文件的类型注解 2026-03-16 08:03:51 +08:00
DrSmoothl
00c2158f76 feat: 更新 handle_config_reload 方法文档,明确配置热重载的行为和通知机制 2026-03-16 07:49:25 +08:00
UnCLAS-Prommer
6e97bead53 Merge branch 'r-dev' of github.com:Mai-with-u/MaiBot into r-dev 2026-03-15 23:53:59 +08:00
UnCLAS-Prommer
cab502e727 修复拼写;将str换为路径使其更清晰 2026-03-15 23:48:15 +08:00
DrSmoothl
ef9b0d6d08 feat(plugin_loader): 添加临时 sys.path 入口管理器以支持插件加载 2026-03-15 22:04:33 +08:00
墨梓柒
8a10f0a9cb Merge pull request #1553 from Anderwer/fix/plugin-runtime-package-imports
fix: 为 Runtime 和 Loader 补充包式插件导入支持
2026-03-15 22:00:19 +08:00
anderwer
e8244ed49e fix: 为 Runtime 和 Loader 补充包式插件导入支持 2026-03-15 16:58:53 +08:00
DrSmoothl
e1b3cf6e9f fix: 修复 Windows 平台下信号处理器注册问题,避免不必要的注册尝试 2026-03-15 16:27:50 +08:00
墨梓柒
ef11a5fceb Merge pull request #1552 from Anderwer/fix/plugin-runtime-windows-signal-handler
fix(plugin_runtime): handle unsupported signal handlers on Windows
2026-03-15 16:19:08 +08:00
anderwer
314bbcd587 fix(plugin_runtime): handle unsupported signal handlers on Windows 2026-03-15 16:04:38 +08:00
DrSmoothl
49b9401709 feat: 添加 Windows Named Pipe 传输实现,支持异步连接和数据传输,修复 Windows 平台插件系统导入隔离误把 DLLs 加进去的 bug 2026-03-15 15:44:14 +08:00
晴猫
a9969ad361 refactor: enhance setup page with translation support and default configurations
- Added translation support for various text elements using `useTranslation`.
- Created default personality and emoji configurations to streamline setup.
- Updated step titles and descriptions to use translated strings.
- Improved validation messages to be translatable.
- Refactored loading and success/error messages for better user feedback.
- Enhanced UI structure for better readability and maintainability.
2026-03-15 11:14:56 +09:00
晴猫
da7aafe665 feat: 完善设置向导,添加平台选择和账号管理功能 2026-03-15 10:44:46 +09:00
晴猫
bd0918b866 fix: 注释掉不必要的导入语句 2026-03-15 10:07:20 +09:00
晴猫
a9142aa643 localization: Update Japanese and Korean translations; add missing Korean locale files
- Updated Japanese translations in config.json, core.json, prompts.json, and startup.json for improved clarity and accuracy.
- Added new Korean locale files for config.json, core.json, prompts.json, and startup.json to support Korean language users.
- Enhanced Chinese translations in core.json and startup.json to include missing resource not found messages and WebUI related texts.
2026-03-15 10:07:15 +09:00
晴猫
34a8de56c3 feat: 添加静态路径准备和自动构建功能的单元测试 2026-03-15 10:06:59 +09:00
晴猫
9c577840cc fix: update package dependencies and improve language handling in the header component 2026-03-15 10:06:44 +09:00
晴猫
bf7e96c518 Merge branch 'codex/claude-code-cross-platform-runtime' into r-dev 2026-03-15 09:43:23 +09:00
晴猫
5eac9b3f31 fix: default i18n locale from system locale 2026-03-15 09:41:23 +09:00
晴猫
4599b4054e fix: update .env file handling to raise error if not found and templates are unavailable 2026-03-15 09:26:39 +09:00
晴猫
321ac31a6b fix: remove redundant dependency-groups section from pyproject.toml 2026-03-15 08:31:25 +09:00
晴猫
4678bfa58c Merge pull request #1550 from Mai-with-u/codex/claude-code-cross-platform-runtime
fix: make bot identity platform-aware
2026-03-15 08:29:09 +09:00
晴猫
975939535c fix: align dependency-groups with r-dev to avoid TOML duplicate key
r-dev already has [dependency-groups] with dev deps including pytest
and pytest-asyncio. Our branch had a different structure causing a
duplicate key error when merged. Align with r-dev's format.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-15 08:27:32 +09:00
晴猫
be047aa2c3 fix: align sender paths with plan, remove QQ-as-universal fallback
- Remove get_bot_account("qq") fallback from all 4 sender paths
  (plan L108/L208/L449: unknown platform = no account, never substitute QQ)
- Sender paths now error immediately if platform bot account is not configured
- Add detailed comments on filter_bot legacy fallback explaining why
  global user_id match is needed (plan contingency L528 insufficient for
  platform-tagged legacy rows like telegram+qq_account)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-15 08:25:56 +09:00
晴猫
d3420bd1b3 fix: address second-round review feedback on bot identity PR 2026-03-15 08:05:36 +09:00