diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c70a88..5bc728c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 ### ✨ 新增功能 diff --git a/README.en.md b/README.en.md index 8dbcc9e..1f55c37 100644 --- a/README.en.md +++ b/README.en.md @@ -5,7 +5,7 @@

- version + version python license tests diff --git a/README.md b/README.md index 2cd559c..a4e70ed 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@

- version + version python license tests diff --git a/about.txt b/about.txt index d4882ce..03beb60 100644 --- a/about.txt +++ b/about.txt @@ -1,7 +1,7 @@ **产品标识** - **产品名称**:小狸智能体 增强-终端(Xiaoli Pro-CLI) - **内部版本号**:20260801 -- **发布版本**:发行版8.0.1 +- **发布版本**:发行版8.0.2 **技术规格** - **主要语言**:简体中文(UTF-8) diff --git a/lsp_client.py b/lsp_client.py index 4f393cc..c13785e 100644 --- a/lsp_client.py +++ b/lsp_client.py @@ -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 {} diff --git a/mcp_client.py b/mcp_client.py index 43cc8d1..4615e8a 100644 --- a/mcp_client.py +++ b/mcp_client.py @@ -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) diff --git a/xcli_core/constants.py b/xcli_core/constants.py index 2125d50..7bc4a1d 100644 --- a/xcli_core/constants.py +++ b/xcli_core/constants.py @@ -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 diff --git a/xcli_core/rich_tui.py b/xcli_core/rich_tui.py index 027d7f5..e63b7ab 100644 --- a/xcli_core/rich_tui.py +++ b/xcli_core/rich_tui.py @@ -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 = "普通" diff --git a/xcli_core/tui.py b/xcli_core/tui.py index 04db379..fa9196a 100644 --- a/xcli_core/tui.py +++ b/xcli_core/tui.py @@ -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"),