From f26eaa02700e0c30ca8aaceb53329cf668aab453 Mon Sep 17 00:00:00 2001 From: Codex Local Date: Fri, 31 Jul 2026 20:22:00 +0800 Subject: [PATCH] chore: unify chat memory display name --- README.md | 4 ++-- core/commands.py | 4 ++-- core/service.py | 2 +- main.py | 8 ++++---- metadata.yaml | 4 ++-- pages/记忆面板/index.html | 2 +- tests/test_plugin_metadata_identity.py | 10 ++++++++-- 7 files changed, 20 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 8b8dc52..b788e5c 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# 我会牢牢记住你 +# 雪色的记忆插件-聊天侧 `astrbot_plugin_memory_companion` 是面向 AstrBot 陪伴体系的记忆陪伴中枢。它不把聊天记录粗暴塞回模型,而是把当前消息、连续对话、长期记忆、Bot 自我时间线、群聊/私聊权限和外部陪伴插件线索分层整理,再在每轮 LLM 请求前生成一份临时、可解释、可排查的记忆包。 - 插件名:`astrbot_plugin_memory_companion` -- 中文名:`我会牢牢记住你` +- 中文名:`雪色的记忆插件-聊天侧` - 版本:`1.6.5` - 适配平台:`aiocqhttp` - AstrBot 版本:`>=4.22.0` diff --git a/core/commands.py b/core/commands.py index 185fbe9..2a0bd57 100644 --- a/core/commands.py +++ b/core/commands.py @@ -16,7 +16,7 @@ class MemoryCompanionCommandHandler: sleep = self.service.sleep_status() by_scope = ", ".join(f"{key or 'unknown'}={value}" for key, value in stats["by_scope"].items()) or "none" return ( - "我会牢牢记住你:运行中\n" + "雪色的记忆插件-聊天侧:运行中\n" f"版本:{self.version}\n" f"记忆:{stats['total_memories']} 条,稳定 {stats['stable_memories']} 条\n" f"身份:{stats['identities']} 个;关系边:{stats['relationships']} 条;自我时间线:{stats['timeline_events']} 条\n" @@ -414,7 +414,7 @@ class MemoryCompanionCommandHandler: def help(self) -> str: return ( - "我会牢牢记住你命令:\n" + "雪色的记忆插件-聊天侧命令:\n" "主入口 /mcomp。\n" "/mcomp status\n" "/mcomp search 关键词\n" diff --git a/core/service.py b/core/service.py index c147da8..5ff69ef 100644 --- a/core/service.py +++ b/core/service.py @@ -2145,7 +2145,7 @@ class MemoryCompanionService: payload.update( { "available": True, - "display_name": "我会牢牢记住你", + "display_name": "雪色的记忆插件-聊天侧", "plugin_name": "astrbot_plugin_memory_companion", "counted_in_private_companion_budget": False, "note": "仅展示记忆插件自身模型消耗,不计入陪伴插件每日 Token 限额。", diff --git a/main.py b/main.py index 9a3afab..02e755c 100644 --- a/main.py +++ b/main.py @@ -16,7 +16,7 @@ from .core.models import json_dumps from .core.service import MemoryCompanionService PLUGIN_NAME = "astrbot_plugin_memory_companion" -PLUGIN_VERSION = "1.6.7" +PLUGIN_VERSION = "1.6.8" _ACTIVE_BRIDGE: MemoryCompanionBridge | None = None @@ -38,7 +38,7 @@ def _prepare_data_dir() -> Path: @register( "MemoryCompanion", "menglimi", - "我会牢牢记住你:结构化长期记忆、共同自我时间线和关系隔离。", + "雪色的记忆插件-聊天侧:结构化长期记忆、共同自我时间线和关系隔离。", PLUGIN_VERSION, "https://github.com/menglimi/astrbot_plugin_memory_companion", ) @@ -67,7 +67,7 @@ class MemoryCompanionPlugin(Star): _ACTIVE_BRIDGE = self.memory_companion if self.service.config.bridge_enabled() else None self._register_page_api_if_available() - logger.info("[MemoryCompanion] 我会牢牢记住你 已启动,数据目录=%s", self.service.data_dir) + logger.info("[MemoryCompanion] 雪色的记忆插件-聊天侧 已启动,数据目录=%s", self.service.data_dir) def bot_personal_capability_status(self) -> dict[str, Any]: return dict(self.bot_personal_capabilities) @@ -345,4 +345,4 @@ class MemoryCompanionPlugin(Star): if _ACTIVE_BRIDGE is self.memory_companion: _ACTIVE_BRIDGE = None await self.service.aclose() - logger.info("[MemoryCompanion] 我会牢牢记住你 已停止") + logger.info("[MemoryCompanion] 雪色的记忆插件-聊天侧 已停止") diff --git a/metadata.yaml b/metadata.yaml index 5ae8e7e..37eeeb2 100644 --- a/metadata.yaml +++ b/metadata.yaml @@ -2,8 +2,8 @@ name: astrbot_plugin_memory_companion display_name: 雪色的记忆插件-聊天侧 author: menglimi author_url: https://github.com/menglimi -version: 1.6.7 -description: 我会牢牢记住你是面向 AstrBot 陪伴体系的记忆陪伴中枢。它统一管理长期记忆、历史对话整理、群聊连续对话记忆、主链注入、权限边界、知识图谱、陪伴插件桥接、自然衰减、可移植数据和运行诊断。 +version: 1.6.8 +description: 雪色的记忆插件-聊天侧是面向 AstrBot 陪伴体系的记忆陪伴中枢。它统一管理长期记忆、历史对话整理、群聊连续对话记忆、主链注入、权限边界、知识图谱、陪伴插件桥接、自然衰减、可移植数据和运行诊断。 desc: 为 AstrBot 提供主链记忆注入、历史聊天整理导入、连续对话记忆、陪伴插件协同、主动记忆/回忆工具、知识图谱、权限边界、自我时间线、自然衰减、迁移导出和成本诊断。 repo: https://github.com/menglimi/astrbot_plugin_memory_companion category: AI 增强 diff --git a/pages/记忆面板/index.html b/pages/记忆面板/index.html index ddf9705..d5e7cf7 100644 --- a/pages/记忆面板/index.html +++ b/pages/记忆面板/index.html @@ -33,7 +33,7 @@
-

我会牢牢记住你

+

雪色的记忆插件-聊天侧

记忆放映馆

diff --git a/tests/test_plugin_metadata_identity.py b/tests/test_plugin_metadata_identity.py index 190fdf8..5dae50b 100644 --- a/tests/test_plugin_metadata_identity.py +++ b/tests/test_plugin_metadata_identity.py @@ -7,8 +7,14 @@ ROOT = Path(__file__).resolve().parents[1] def test_chat_side_display_name_preserves_stable_plugin_identity(): metadata = (ROOT / "metadata.yaml").read_text(encoding="utf-8") main = (ROOT / "main.py").read_text(encoding="utf-8") + commands = (ROOT / "core" / "commands.py").read_text(encoding="utf-8") + service = (ROOT / "core" / "service.py").read_text(encoding="utf-8") + panel = (ROOT / "pages" / "记忆面板" / "index.html").read_text(encoding="utf-8") assert "name: astrbot_plugin_memory_companion" in metadata assert "display_name: 雪色的记忆插件-聊天侧" in metadata - assert 'version: 1.6.7' in metadata - assert 'PLUGIN_VERSION = "1.6.7"' in main + assert 'version: 1.6.8' in metadata + assert 'PLUGIN_VERSION = "1.6.8"' in main + for source in (commands, service, panel): + assert "雪色的记忆插件-聊天侧" in source + assert "我会牢牢记住你" not in source