diff --git a/metadata.yaml b/metadata.yaml index 6aee4ec..2aacd7e 100644 --- a/metadata.yaml +++ b/metadata.yaml @@ -1,5 +1,5 @@ name: astrbot_plugin_private_companion -display_name: 我会永远陪着你 +display_name: 雪色的陪伴插件-聊天侧 author: menglimi author_url: https://github.com/menglimi description: astrbot_plugin_private_companion 是面向 AstrBot 的持续陪伴编排插件。它把人格连续性、生活状态、日程细化、私聊关系、群聊观察、QQ 关系网、主动消息、图片/语音/转发理解、长期创作、模型 Provider 和扩展页排障组织到同一套体验里,让 Bot 不只是临时回复,而是有状态、有记忆、有边界地生活和互动。 @@ -72,7 +72,7 @@ help: | - 陪伴群 关闭 答疑会优先按“现象 → 当前证据 → 一步检查”排查,不会默认罗列整套配置。描述发生位置、Bot 的实际行为和大概时间会更准确;只有明确询问配置/参数时才会附带待确认的改动建议。`答疑确认`只应用刚才那次已生成的建议,`答疑取消`会丢弃它。\n\n 本插件不只限于私聊。私聊陪伴默认开启;插件私聊目标用户里填写平台用户 ID 后会自动预热主动消息,OneBot 通常填 QQ 号,QQ 官方机器人通常填 openid/平台用户 ID。群聊陪伴支持白名单/黑名单模式,默认白名单,不会主动抢话。插件遵守每日上限、最小间隔、免打扰时间、群聊插话间隔和主动生图额度。看屏幕、生图、戳一戳、语音、QQ 状态同步、B站 AI Bot、SDGen 等联动能力都是可选项,缺失时会自动跳过或回退。 -version: 5.10.6 +version: 5.10.7 support_platforms: - aiocqhttp - qq_official diff --git a/plugin_identity.py b/plugin_identity.py index 22b8caf..38da2a0 100644 --- a/plugin_identity.py +++ b/plugin_identity.py @@ -5,8 +5,8 @@ from typing import Any PLUGIN_ID = "astrbot_plugin_private_companion" -PLUGIN_DISPLAY_NAME = "我会永远陪着你" -PLUGIN_VERSION = "5.10.6" +PLUGIN_DISPLAY_NAME = "雪色的陪伴插件-聊天侧" +PLUGIN_VERSION = "5.10.7" PLUGIN_DATA_DIRECTORY_KEY = PLUGIN_ID _IDENTITY_SEPARATORS = re.compile(r"[.:/\\]+") diff --git a/tests/test_plugin_metadata_identity.py b/tests/test_plugin_metadata_identity.py new file mode 100644 index 0000000..d97a7b3 --- /dev/null +++ b/tests/test_plugin_metadata_identity.py @@ -0,0 +1,16 @@ +from pathlib import Path + + +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") + identity = (ROOT / "plugin_identity.py").read_text(encoding="utf-8") + + assert "name: astrbot_plugin_private_companion" in metadata + assert "display_name: 雪色的陪伴插件-聊天侧" in metadata + assert 'version: 5.10.7' in metadata + assert 'PLUGIN_ID = "astrbot_plugin_private_companion"' in identity + assert 'PLUGIN_DISPLAY_NAME = "雪色的陪伴插件-聊天侧"' in identity + assert 'PLUGIN_VERSION = "5.10.7"' in identity