chore: 发布 v8.0.2 小修复版本

- 版本号统一更新至 v8.0.2(README 中英 badge / about.txt / 中央 VERSION / TUI banner / LSP·MCP clientInfo.version)
- CHANGELOG 新增 v8.0.2 条目,记录两个 hotfix:
  - c81914a 加载动画在非 TTY 环境不再污染输出流(isatty 守卫)
  - 1c52482 非 TTY 环境保留一句随机情话保人味(过滤 URL 行)
This commit is contained in:
shuiyu67 committed 2026-08-07 19:37:54 +08:00
1 parent 1c52482497
commit 0aaca9c63d
9 files changed
+28 -9

No files matched your search

+19
View File
@@ -4,6 +4,25 @@
---
## v8.0.2 (2026-08-07) — 小修复版本
### 🐛 Bug 修复
- **加载动画在非 TTY 环境不再污染输出流**(提交 `c81914a`)
- `_generate_response_with_animation` 的 `show_animation` 用 `print("\r...")` 逐帧(约 10 帧/秒)输出 `love.txt` 情话 + spinner,仅真终端能原地覆盖;被聊天前端 / WebSocket 桥 / 管道 / 日志镜像捕获时每帧变成一行垃圾混进对话显示
- 加 `sys.stdout.isatty()` 守卫:非 TTY 只输出单行提示、不跑逐帧 `\r` 动画
- TUI 模式(`tui_output_callback`)本就跳过动画,不受影响
- **非 TTY 环境保留情话「人味」**(提交 `1c52482`)
- 上一版修复导致聊天界面完全看不到情话,改为:非 TTY 在请求开始输出一句随机情话(`💭` 前缀,只打一次、零残帧)
- `love.txt` 读取时过滤 `http/https` 行,避免把反战标语 / 网址当情话甩出
- 真 TTY 逐帧情话 + spinner 动画、TUI 模式均不受影响
### 🛠 工程
- 版本号统一更新至 v8.0.2(含 README 中英 badge、`about.txt`、`xcli_core/constants.py` 中央 `VERSION`、TUI banner、LSP/MCP `clientInfo.version`)
---
## v8.0.1 (2026-08-07) — Release
### ✨ 新增功能
+1 -1
View File
@@ -5,7 +5,7 @@
</p>
<p align="center">
<img src="https://img.shields.io/badge/version-8.0.1-blue" alt="version">
<img src="https://img.shields.io/badge/version-8.0.2-blue" alt="version">
<img src="https://img.shields.io/badge/python-3.10+-green" alt="python">
<img src="https://img.shields.io/badge/license-MIT-orange" alt="license">
<img src="https://img.shields.io/badge/tests-113%20passed-brightgreen" alt="tests">
+1 -1
View File
@@ -9,7 +9,7 @@
</p>
<p align="center">
<img src="https://img.shields.io/badge/version-8.0.1-blue" alt="version">
<img src="https://img.shields.io/badge/version-8.0.2-blue" alt="version">
<img src="https://img.shields.io/badge/python-3.10+-green" alt="python">
<img src="https://img.shields.io/badge/license-MIT-orange" alt="license">
<img src="https://img.shields.io/badge/tests-150+%20passed-brightgreen" alt="tests">
+1 -1
View File
@@ -1,7 +1,7 @@
**产品标识**
- **产品名称**:小狸智能体 增强-终端(Xiaoli Pro-CLI)
- **内部版本号**:20260801
- **发布版本**:发行版8.0.1
- **发布版本**:发行版8.0.2
**技术规格**
- **主要语言**:简体中文(UTF-8)
+1 -1
View File
@@ -268,7 +268,7 @@ class LspClient:
"workspace": {"workspaceFolders": True,
"configuration": True},
},
"clientInfo": {"name": "xiaoli-cli", "version": "8.0.1"},
"clientInfo": {"name": "xiaoli-cli", "version": "8.0.2"},
})
if isinstance(result, dict):
self.capabilities = result.get("capabilities", {}) or {}
+1 -1
View File
@@ -153,7 +153,7 @@ class McpClient:
result = self._send("initialize", {
"protocolVersion": PROTOCOL_VERSION,
"capabilities": {},
"clientInfo": {"name": "xiaoli-cli", "version": "8.0.1"},
"clientInfo": {"name": "xiaoli-cli", "version": "8.0.2"},
})
# 通知 server 初始化完成(无响应,无需等待)
self._send("notifications/initialized", {}, is_notification=True)
+1 -1
View File
@@ -7,7 +7,7 @@ LOVE_FILE_PATH = "love.txt"
DEFAULT_MAX_HISTORY = 999999 # 无限制对话历史
# 版本号(v8.0 基于 v5.4.1 重新立项)
VERSION = "8.0.1"
VERSION = "8.0.2"
VERSION_NAME = "小狸 Pro-CLI"
import os
+1 -1
View File
@@ -28,7 +28,7 @@ class RichTUI:
self.cli = cli
# record=True 是关键:渲染过程被记录,可随时导出文本/SVG/HTML 自验
self.console = Console(record=True, width=100)
self.version = "8.0.1"
self.version = "8.0.2"
self.engine = ""
self.model = ""
self.mode = "普通"
+2 -2
View File
@@ -667,7 +667,7 @@ if TEXTUAL_AVAILABLE:
"",
" ╔══════════════════════════════════════════════╗",
" ║ ║",
" ║ 小狸 Pro-CLI v8.0.1 ║",
" ║ 小狸 Pro-CLI v8.0.2 ║",
" ║ 智能编程助手 · 动画增强版 ║",
" ║ ║",
" ╚══════════════════════════════════════════════╝",
@@ -711,7 +711,7 @@ if TEXTUAL_AVAILABLE:
("", "msg-dim"),
(" ╔══════════════════════════════════════════════╗", "msg-welcome"),
(" ║ ║", "msg-welcome"),
(" ║ 小狸 Pro-CLI v8.0.1 ║", "msg-welcome"),
(" ║ 小狸 Pro-CLI v8.0.2 ║", "msg-welcome"),
(" ║ 智能编程助手 · 动画增强版 ║", "msg-welcome"),
(" ║ ║", "msg-welcome"),
(" ╚══════════════════════════════════════════════╝", "msg-welcome"),