From 217d56a7fd4c224b2d438c0a08e407d38e8d3f9a Mon Sep 17 00:00:00 2001 From: AnegasakiNene <990126341@qq.com> Date: Mon, 8 Jun 2026 12:16:24 +0800 Subject: [PATCH 1/2] feat(cli): derive CLI version from core config --- astrbot/cli/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/astrbot/cli/__init__.py b/astrbot/cli/__init__.py index 5e6913fc17..f913b329be 100644 --- a/astrbot/cli/__init__.py +++ b/astrbot/cli/__init__.py @@ -1 +1,3 @@ -__version__ = "4.25.3" +from astrbot.core.config.default import VERSION + +__version__ = VERSION From e14e93f1d418b7fd8098f384546f1702971615d3 Mon Sep 17 00:00:00 2001 From: AnegasakiNene <990126341@qq.com> Date: Mon, 8 Jun 2026 13:23:56 +0800 Subject: [PATCH 2/2] fix(cli): move version to lightweight module --- astrbot/cli/__init__.py | 2 +- astrbot/core/config/default.py | 2 +- astrbot/core/config/version.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 astrbot/core/config/version.py diff --git a/astrbot/cli/__init__.py b/astrbot/cli/__init__.py index f913b329be..5daa93d7d2 100644 --- a/astrbot/cli/__init__.py +++ b/astrbot/cli/__init__.py @@ -1,3 +1,3 @@ -from astrbot.core.config.default import VERSION +from astrbot.core.config.version import VERSION __version__ = VERSION diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index b60c7f2307..7b3847db47 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -3,9 +3,9 @@ import os from astrbot.core.computer.booters.cua_defaults import CUA_DEFAULT_CONFIG +from astrbot.core.config.version import VERSION as VERSION from astrbot.core.utils.astrbot_path import get_astrbot_data_path -VERSION = "4.25.5" DB_PATH = os.path.join(get_astrbot_data_path(), "data_v4.db") PERSONAL_WECHAT_CONFIG_METADATA = { "weixin_oc_base_url": { diff --git a/astrbot/core/config/version.py b/astrbot/core/config/version.py new file mode 100644 index 0000000000..a1cc530575 --- /dev/null +++ b/astrbot/core/config/version.py @@ -0,0 +1 @@ +VERSION = "4.25.5"