Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

所有重要更改都将记录在此文件中。

## [3.2.3] - 2026-06-08

### AstrBot WebUI

- 修复内嵌插件页人格学习模块在长提示词、长备份名和窄屏布局下的横向溢出,提示词预览现在会在面板内滚动。
- 优化记忆图谱与知识图谱的内嵌页绘制逻辑,改为稳定中心布局、温和归位和固定比例画布,避免节点挤到四角或图表被拉伸。
- 收敛 Dashboard 物理动效强度,并支持 `prefers-reduced-motion`,使内嵌页动画更简洁温和。
- 修复内嵌设置页依赖安装按钮反馈不明显的问题,并兼容旧版插件页确认字段,确保手动安装请求能正确触发并显示输出。

### 版本

- 将插件发布版本号提升至 `3.2.3`。

## [3.2.2] - 2026-06-08

### AstrBot WebUI
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

让 AstrBot 在群聊中持续采集、学习、审查并注入上下文,使 Bot 逐步具备表达风格、群组黑话、社交关系、长期记忆和人格演化能力。

[![Version](https://img.shields.io/badge/version-3.2.2-blue.svg)](https://github.com/NickCharlie/astrbot_plugin_self_learning)
[![Version](https://img.shields.io/badge/version-3.2.3-blue.svg)](https://github.com/NickCharlie/astrbot_plugin_self_learning)
[![License](https://img.shields.io/badge/license-AGPL--3.0-green.svg)](LICENSE)
[![AstrBot](https://img.shields.io/badge/AstrBot-%3E%3D4.11.4-orange.svg)](https://github.com/Soulter/AstrBot)
[![Python](https://img.shields.io/badge/python-3.11%2B-blue.svg)](https://www.python.org/)
Expand Down
2 changes: 1 addition & 1 deletion README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<br>

[![Version](https://img.shields.io/badge/version-3.2.2-blue.svg)](https://github.com/NickCharlie/astrbot_plugin_self_learning) [![License](https://img.shields.io/badge/license-AGPL--3.0-green.svg)](LICENSE) [![AstrBot](https://img.shields.io/badge/AstrBot-%3E%3D4.11.4-orange.svg)](https://github.com/Soulter/AstrBot) [![Python](https://img.shields.io/badge/python-3.11%2B-blue.svg)](https://www.python.org/)
[![Version](https://img.shields.io/badge/version-3.2.3-blue.svg)](https://github.com/NickCharlie/astrbot_plugin_self_learning) [![License](https://img.shields.io/badge/license-AGPL--3.0-green.svg)](LICENSE) [![AstrBot](https://img.shields.io/badge/AstrBot-%3E%3D4.11.4-orange.svg)](https://github.com/Soulter/AstrBot) [![Python](https://img.shields.io/badge/python-3.11%2B-blue.svg)](https://www.python.org/)

[Features](#what-we-can-do) · [Quick Start](#quick-start) · [Web UI](#visual-management-interface) · [Community](#community) · [Contributing](CONTRIBUTING.md)

Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# AstrBot 自学习插件
__version__ = "3.2.0"
__version__ = "3.2.3"

# Ensure parent namespace packages ("data", "data.plugins") are
# durably registered in sys.modules. AstrBot loads plugins via
Expand Down
20 changes: 18 additions & 2 deletions core/page_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1221,9 +1221,13 @@ async def _detect_group_with_most_messages(self, database_manager: Any) -> Optio

async def _install_dependencies(self, body: Mapping[str, Any]) -> dict[str, Any]:
imports = self._imports()
if body.get("manual_confirmed") is not True:
manual_confirmed = body.get("manual_confirmed") is True or (
body.get("manual_confirm") is True and body.get("user_confirmed") is True
)
if not manual_confirmed:
return {"success": False, "error": "依赖安装只能在设置界面手动确认后触发"}
if body.get("source") != imports.MANUAL_DEPENDENCY_INSTALL_SOURCE:
source = body.get("source")
if source != imports.MANUAL_DEPENDENCY_INSTALL_SOURCE and body.get("mode") != "plugin_page":
return {"success": False, "error": "缺少合法的依赖安装来源"}

tier = str(body.get("tier") or "full").strip().lower()
Expand Down Expand Up @@ -1633,8 +1637,20 @@ def _build_webui_snapshot(plugin_config: Any, webui_config: Any) -> dict[str, An
return {
"enabled": enabled,
"host": host,
"bind_host": host,
"display_host": display_host,
"port": port,
"dashboard_url": f"http://{display_host}:{port}",
"public_url_strategy": "browser_host_for_local_bind",
"client_rewrite_hosts": [
"localhost",
"127.0.0.1",
"0.0.0.0",
"::",
"::1",
"[::]",
"[::1]",
],
}

@staticmethod
Expand Down
2 changes: 1 addition & 1 deletion metadata.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "astrbot_plugin_self_learning"
author: "NickMo, EterUltimate"
display_name: "self-learning"
description: "SELF LEARNING 自主学习插件 — 让 AI 聊天机器人自主学习对话风格、理解群组黑话、管理社交关系与好感度、自适应人格演化,像真人一样自然对话。(使用前必须手动备份人格数据)"
version: "3.2.2"
version: "3.2.3"
repo: "https://github.com/NickCharlie/astrbot_plugin_self_learning"
tags:
- "自学习"
Expand Down
Loading
Loading