From ee3699ab78082d8f5c221205b98aa324937932d6 Mon Sep 17 00:00:00 2001 From: gene9831 Date: Thu, 12 Feb 2026 17:24:57 +0800 Subject: [PATCH 1/4] chore(update-log): add v0.4.0 release notes including breaking changes, new features, improvements, and bug fixes --- docs/src/guide/update-log.md | 59 ++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/docs/src/guide/update-log.md b/docs/src/guide/update-log.md index 36c420171..4a7cd3379 100644 --- a/docs/src/guide/update-log.md +++ b/docs/src/guide/update-log.md @@ -5,6 +5,65 @@ TinyRobot 遵循语义化版本规范,每个版本的更新内容如下。 在此页面上,您可以查看最新的更新日志。如需查看完整的变更历史,请访问 [GitHub Release](https://github.com/opentiny/tiny-robot/releases)。 +## v0.4.0 + +`2026-02-12` + +> [!IMPORTANT] +> **Breaking Changes**: +> - **Bubble / Sender / Kit**: 气泡组件、消息发送组件和消息工具整体重构,内部结构与部分类型定义有较大调整,升级时请参考最新文档与迁移指引。 + +### ✨ 新特性 + +**组件** + +- **Sender**: 支持通过 `enterkeyhint` 属性自定义移动端虚拟键盘回车键提示,提升移动端输入体验 by @SonyLeo in [#292](https://github.com/opentiny/tiny-robot/pull/292) +- **Sender**: 支持使用 `Ctrl+Enter` 与 `Shift+Enter` 在输入框中插入换行,使快捷键行为更加灵活可控 by @SonyLeo in [#263](https://github.com/opentiny/tiny-robot/pull/263) +- **Sender**: 使用 `IconRecordingWave` 图标替换原有波形图片资源,提升语音输入按钮的一致性与可定制性 by @SonyLeo in [#285](https://github.com/opentiny/tiny-robot/pull/285) +- **Bubble**: 气泡组件支持 OpenAI 风格消息结构(包括 `tool_calls`、`reasoning_content` 等),新增 `contentRenderMode`、`contentResolver` 与可配置渲染器匹配规则,增强复杂内容展示能力 by @Gene in [#266](https://github.com/opentiny/tiny-robot/pull/266) [#286](https://github.com/opentiny/tiny-robot/pull/286) +- **BubbleList**: 扩展分组策略,支持按连续角色分组、分割角色分组与自定义分组函数,并在隐藏消息场景下保持分组正确性 by @Gene in [#305](https://github.com/opentiny/tiny-robot/pull/305) +- **McpServerPicker**: 新增 `header-actions` 插槽,支持在面板头部区域注入自定义操作按钮或链接 by @SonyLeo in [#274](https://github.com/opentiny/tiny-robot/pull/274) + +**工具** + +- **useMessage**: 引入插件体系与默认插件(`fallbackRolePlugin`、`thinkingPlugin`、`lengthPlugin`),支持在请求前与流式响应过程中扩展行为和自定义上下文 by @Gene in [#286](https://github.com/opentiny/tiny-robot/pull/286) +- **useConversation**: 新增 `onLoad` 回调,在初始会话列表加载完成后触发,便于在加载完成后执行自定义初始化逻辑 by @Gene in [#304](https://github.com/opentiny/tiny-robot/pull/304) +- **Kit 存储**: 优化本地存储策略实现,统一 LocalStorage 与 IndexedDB 策略类型和工具函数 by @Gene in [#286](https://github.com/opentiny/tiny-robot/pull/286) + +### 🔨 优化改进 + +- **Sender**: 消息发送组件整体重构,拆分动作按钮、扩展与上下文管理模块,改进类型定义与内部结构,提高可维护性与可扩展性 by @SonyLeo in [#283](https://github.com/opentiny/tiny-robot/pull/283) +- **Bubble**: 重构气泡组件与渲染器实现,优化样式与动画,并提升多种内容类型组合展示时的稳定性 by @Gene in [#266](https://github.com/opentiny/tiny-robot/pull/266) [#286](https://github.com/opentiny/tiny-robot/pull/286) +- **BubbleList**: 简化并优化分组逻辑,在多角色与隐藏消息混合场景下保持渲染结果一致且易于控制 by @Gene in [#305](https://github.com/opentiny/tiny-robot/pull/305) + +### 🐛 问题修复 + +- **useMessage**: 修复流式响应中 `choice.delta` 与 `choice.message` 同时存在时的数据合并逻辑,避免内容缺失或覆盖异常 by @Gene in [#297](https://github.com/opentiny/tiny-robot/pull/297) + +## v0.3.3 + +`2026-01-29` + +### 🐛 问题修复 + +- **Sender**: 更新提交事件与模板数据清理逻辑,修复在部分场景下存在模板残留或重复提交的问题 by @SonyLeo in [#293](https://github.com/opentiny/tiny-robot/pull/293) + +## v0.3.2 + +`2026-01-28` + +### ✨ 新特性 + +**组件** + +- **Sender**: 支持使用 `Ctrl+Enter` 与 `Shift+Enter` 在输入框中插入换行,改善多行编辑体验 by @SonyLeo in [#263](https://github.com/opentiny/tiny-robot/pull/263) +- **Sender**: 使用 `IconRecordingWave` 图标替换原有波形图片资源,优化语音输入按钮视觉效果 by @SonyLeo in [#284](https://github.com/opentiny/tiny-robot/pull/284) +- **McpServerPicker**: 新增 `header-actions` 插槽,允许在面板头部区域自定义操作入口 by @SonyLeo in [#274](https://github.com/opentiny/tiny-robot/pull/274) + +### 🐛 问题修复 + +- **Sender**: 使用响应式 ref 管理文件选择对话框选项,修复文件上传配置在部分场景下不同步的问题 by @SonyLeo in [#282](https://github.com/opentiny/tiny-robot/pull/282) + ## v0.3.1 `2025-12-30` From 0b3b8ab4ef8b5f305afe5760e0953fbc3eb4d35a Mon Sep 17 00:00:00 2001 From: gene9831 Date: Thu, 12 Feb 2026 17:28:35 +0800 Subject: [PATCH 2/4] chore(release): bump version to 0.4.0 and update release notes with breaking changes, new features, and improvements --- docs/src/guide/update-log.md | 13 ++++++------- packages/components/package.json | 2 +- packages/kit/package.json | 2 +- packages/svgs/package.json | 2 +- 4 files changed, 9 insertions(+), 10 deletions(-) diff --git a/docs/src/guide/update-log.md b/docs/src/guide/update-log.md index 4a7cd3379..09446ea29 100644 --- a/docs/src/guide/update-log.md +++ b/docs/src/guide/update-log.md @@ -11,28 +11,27 @@ TinyRobot 遵循语义化版本规范,每个版本的更新内容如下。 > [!IMPORTANT] > **Breaking Changes**: -> - **Bubble / Sender / Kit**: 气泡组件、消息发送组件和消息工具整体重构,内部结构与部分类型定义有较大调整,升级时请参考最新文档与迁移指引。 +> - **Bubble / Sender / Kit**: 气泡组件、消息发送组件和 Kit 工具整体重构,引入可插拔渲染器与插件体系,统一消息模型与存储抽象,内部结构与部分类型定义有较大调整,升级时请参考最新文档与迁移指引。 ### ✨ 新特性 **组件** -- **Sender**: 支持通过 `enterkeyhint` 属性自定义移动端虚拟键盘回车键提示,提升移动端输入体验 by @SonyLeo in [#292](https://github.com/opentiny/tiny-robot/pull/292) -- **Sender**: 支持使用 `Ctrl+Enter` 与 `Shift+Enter` 在输入框中插入换行,使快捷键行为更加灵活可控 by @SonyLeo in [#263](https://github.com/opentiny/tiny-robot/pull/263) +- **Sender**: 引入基于 Tiptap 的可扩展输入架构,拆分动作按钮与布局组件,支持通过扩展(Template、Mention、Suggestion 等)与 `enterkeyhint` 自定义移动端输入体验,并提供 `Ctrl+Enter` / `Shift+Enter` 换行等丰富快捷键能力 by @SonyLeo in [#283](https://github.com/opentiny/tiny-robot/pull/283) [#292](https://github.com/opentiny/tiny-robot/pull/292) [#263](https://github.com/opentiny/tiny-robot/pull/263) - **Sender**: 使用 `IconRecordingWave` 图标替换原有波形图片资源,提升语音输入按钮的一致性与可定制性 by @SonyLeo in [#285](https://github.com/opentiny/tiny-robot/pull/285) -- **Bubble**: 气泡组件支持 OpenAI 风格消息结构(包括 `tool_calls`、`reasoning_content` 等),新增 `contentRenderMode`、`contentResolver` 与可配置渲染器匹配规则,增强复杂内容展示能力 by @Gene in [#266](https://github.com/opentiny/tiny-robot/pull/266) [#286](https://github.com/opentiny/tiny-robot/pull/286) +- **Bubble**: 基于统一的 ChatMessage 模型重构气泡渲染架构,支持 OpenAI 风格消息结构(包括 `tool_calls`、`reasoning_content` 等),并通过 `contentRenderMode`、`contentResolver` 与可插拔渲染器组合,增强复杂内容与多模态消息展示能力 by @Gene in [#266](https://github.com/opentiny/tiny-robot/pull/266) [#286](https://github.com/opentiny/tiny-robot/pull/286) - **BubbleList**: 扩展分组策略,支持按连续角色分组、分割角色分组与自定义分组函数,并在隐藏消息场景下保持分组正确性 by @Gene in [#305](https://github.com/opentiny/tiny-robot/pull/305) - **McpServerPicker**: 新增 `header-actions` 插槽,支持在面板头部区域注入自定义操作按钮或链接 by @SonyLeo in [#274](https://github.com/opentiny/tiny-robot/pull/274) **工具** -- **useMessage**: 引入插件体系与默认插件(`fallbackRolePlugin`、`thinkingPlugin`、`lengthPlugin`),支持在请求前与流式响应过程中扩展行为和自定义上下文 by @Gene in [#286](https://github.com/opentiny/tiny-robot/pull/286) +- **useMessage**: 引入插件体系与默认插件(`fallbackRolePlugin`、`thinkingPlugin`、`lengthPlugin`),支持在请求前、流式响应过程中按需扩展行为,统一消息流转与补全处理逻辑 by @Gene in [#286](https://github.com/opentiny/tiny-robot/pull/286) - **useConversation**: 新增 `onLoad` 回调,在初始会话列表加载完成后触发,便于在加载完成后执行自定义初始化逻辑 by @Gene in [#304](https://github.com/opentiny/tiny-robot/pull/304) -- **Kit 存储**: 优化本地存储策略实现,统一 LocalStorage 与 IndexedDB 策略类型和工具函数 by @Gene in [#286](https://github.com/opentiny/tiny-robot/pull/286) +- **Kit 存储**: 抽象统一的存储策略接口与工具函数,优化 LocalStorage 与 IndexedDB 策略实现,简化多端会话持久化接入成本 by @Gene in [#286](https://github.com/opentiny/tiny-robot/pull/286) ### 🔨 优化改进 -- **Sender**: 消息发送组件整体重构,拆分动作按钮、扩展与上下文管理模块,改进类型定义与内部结构,提高可维护性与可扩展性 by @SonyLeo in [#283](https://github.com/opentiny/tiny-robot/pull/283) +- **Sender**: 在新架构下细化动作按钮、扩展与上下文管理模块,改进类型定义与内部结构,提高大规模场景下的可维护性与可扩展性 by @SonyLeo in [#283](https://github.com/opentiny/tiny-robot/pull/283) - **Bubble**: 重构气泡组件与渲染器实现,优化样式与动画,并提升多种内容类型组合展示时的稳定性 by @Gene in [#266](https://github.com/opentiny/tiny-robot/pull/266) [#286](https://github.com/opentiny/tiny-robot/pull/286) - **BubbleList**: 简化并优化分组逻辑,在多角色与隐藏消息混合场景下保持渲染结果一致且易于控制 by @Gene in [#305](https://github.com/opentiny/tiny-robot/pull/305) diff --git a/packages/components/package.json b/packages/components/package.json index cd2072a16..964dc458f 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-robot", - "version": "0.3.1", + "version": "0.4.0", "publishConfig": { "access": "public" }, diff --git a/packages/kit/package.json b/packages/kit/package.json index 45983b066..142080e61 100644 --- a/packages/kit/package.json +++ b/packages/kit/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-robot-kit", - "version": "0.3.1", + "version": "0.4.0", "publishConfig": { "access": "public" }, diff --git a/packages/svgs/package.json b/packages/svgs/package.json index 611269e30..491b0901c 100644 --- a/packages/svgs/package.json +++ b/packages/svgs/package.json @@ -1,6 +1,6 @@ { "name": "@opentiny/tiny-robot-svgs", - "version": "0.3.1", + "version": "0.4.0", "publishConfig": { "access": "public" }, From 62195d1b4f69c8c666fff7ea032a6234261e83f7 Mon Sep 17 00:00:00 2001 From: gene9831 Date: Thu, 12 Feb 2026 17:52:04 +0800 Subject: [PATCH 3/4] docs(update-log): update v0.4.0 release notes with new features, improvements, and bug fixes --- docs/src/guide/update-log.md | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/docs/src/guide/update-log.md b/docs/src/guide/update-log.md index 09446ea29..5e7549bdc 100644 --- a/docs/src/guide/update-log.md +++ b/docs/src/guide/update-log.md @@ -17,27 +17,27 @@ TinyRobot 遵循语义化版本规范,每个版本的更新内容如下。 **组件** -- **Sender**: 引入基于 Tiptap 的可扩展输入架构,拆分动作按钮与布局组件,支持通过扩展(Template、Mention、Suggestion 等)与 `enterkeyhint` 自定义移动端输入体验,并提供 `Ctrl+Enter` / `Shift+Enter` 换行等丰富快捷键能力 by @SonyLeo in [#283](https://github.com/opentiny/tiny-robot/pull/283) [#292](https://github.com/opentiny/tiny-robot/pull/292) [#263](https://github.com/opentiny/tiny-robot/pull/263) -- **Sender**: 使用 `IconRecordingWave` 图标替换原有波形图片资源,提升语音输入按钮的一致性与可定制性 by @SonyLeo in [#285](https://github.com/opentiny/tiny-robot/pull/285) -- **Bubble**: 基于统一的 ChatMessage 模型重构气泡渲染架构,支持 OpenAI 风格消息结构(包括 `tool_calls`、`reasoning_content` 等),并通过 `contentRenderMode`、`contentResolver` 与可插拔渲染器组合,增强复杂内容与多模态消息展示能力 by @Gene in [#266](https://github.com/opentiny/tiny-robot/pull/266) [#286](https://github.com/opentiny/tiny-robot/pull/286) -- **BubbleList**: 扩展分组策略,支持按连续角色分组、分割角色分组与自定义分组函数,并在隐藏消息场景下保持分组正确性 by @Gene in [#305](https://github.com/opentiny/tiny-robot/pull/305) -- **McpServerPicker**: 新增 `header-actions` 插槽,支持在面板头部区域注入自定义操作按钮或链接 by @SonyLeo in [#274](https://github.com/opentiny/tiny-robot/pull/274) +- **Sender**: 基于 Tiptap 重构输入架构,支持扩展机制(Template、Mention、Suggestion 等);拆分动作按钮与布局组件;支持 `enterkeyhint` 移动端输入优化;支持 `Ctrl+Enter` / `Shift+Enter` 等快捷键控制换行。 by @SonyLeo in [#283](https://github.com/opentiny/tiny-robot/pull/283) [#292](https://github.com/opentiny/tiny-robot/pull/292) [#263](https://github.com/opentiny/tiny-robot/pull/263) +- **Sender**: 优化录制状态下的图标展示效果。 by @SonyLeo in [#285](https://github.com/opentiny/tiny-robot/pull/285) +- **Bubble**: 支持 OpenAI 风格消息结构(`tool_calls`、`reasoning_content` 等);基于匹配规则选择渲染器,支持复杂结构与多模态消息渲染。 by @Gene in [#266](https://github.com/opentiny/tiny-robot/pull/266) [#286](https://github.com/opentiny/tiny-robot/pull/286) +- **BubbleList**: 支持消息分组渲染,处理 user 单条消息对应 assistant 多条消息的场景。 by @Gene in [#305](https://github.com/opentiny/tiny-robot/pull/305) +- **McpServerPicker**: 新增 `header-actions` 插槽,支持在面板头部注入自定义操作。 by @SonyLeo in [#274](https://github.com/opentiny/tiny-robot/pull/274) **工具** -- **useMessage**: 引入插件体系与默认插件(`fallbackRolePlugin`、`thinkingPlugin`、`lengthPlugin`),支持在请求前、流式响应过程中按需扩展行为,统一消息流转与补全处理逻辑 by @Gene in [#286](https://github.com/opentiny/tiny-robot/pull/286) -- **useConversation**: 新增 `onLoad` 回调,在初始会话列表加载完成后触发,便于在加载完成后执行自定义初始化逻辑 by @Gene in [#304](https://github.com/opentiny/tiny-robot/pull/304) -- **Kit 存储**: 抽象统一的存储策略接口与工具函数,优化 LocalStorage 与 IndexedDB 策略实现,简化多端会话持久化接入成本 by @Gene in [#286](https://github.com/opentiny/tiny-robot/pull/286) +- **useMessage**: 引入插件体系与生命周期钩子,支持在请求前、流式响应等阶段扩展处理逻辑。 by @Gene in [#286](https://github.com/opentiny/tiny-robot/pull/286) +- **useConversation**: 新增 `onLoad` 回调,在初始会话列表加载完成后触发。 by @Gene in [#304](https://github.com/opentiny/tiny-robot/pull/304) +- **Kit 存储**: 抽象统一存储策略接口与工具函数;优化 LocalStorage 与 IndexedDB 实现。 by @Gene in [#286](https://github.com/opentiny/tiny-robot/pull/286) ### 🔨 优化改进 -- **Sender**: 在新架构下细化动作按钮、扩展与上下文管理模块,改进类型定义与内部结构,提高大规模场景下的可维护性与可扩展性 by @SonyLeo in [#283](https://github.com/opentiny/tiny-robot/pull/283) -- **Bubble**: 重构气泡组件与渲染器实现,优化样式与动画,并提升多种内容类型组合展示时的稳定性 by @Gene in [#266](https://github.com/opentiny/tiny-robot/pull/266) [#286](https://github.com/opentiny/tiny-robot/pull/286) -- **BubbleList**: 简化并优化分组逻辑,在多角色与隐藏消息混合场景下保持渲染结果一致且易于控制 by @Gene in [#305](https://github.com/opentiny/tiny-robot/pull/305) +- **Sender**: 调整动作按钮、扩展与上下文管理结构;完善类型定义与内部模块划分。 by @SonyLeo in [#283](https://github.com/opentiny/tiny-robot/pull/283) +- **Bubble**: 重构气泡组件与渲染器实现;优化样式、动画与多类型内容组合渲染稳定性。 by @Gene in [#266](https://github.com/opentiny/tiny-robot/pull/266) [#286](https://github.com/opentiny/tiny-robot/pull/286) +- **BubbleList**: 优化消息分组逻辑,支持多角色与隐藏消息混合场景。 by @Gene in [#305](https://github.com/opentiny/tiny-robot/pull/305) ### 🐛 问题修复 -- **useMessage**: 修复流式响应中 `choice.delta` 与 `choice.message` 同时存在时的数据合并逻辑,避免内容缺失或覆盖异常 by @Gene in [#297](https://github.com/opentiny/tiny-robot/pull/297) +- **useMessage**: 修复流式响应中 `choice.delta` 与 `choice.message` 同时存在时的数据合并问题。 by @Gene in [#297](https://github.com/opentiny/tiny-robot/pull/297) ## v0.3.3 From c7390b100a3ba41ce3127ffa9aaae0a12166f41a Mon Sep 17 00:00:00 2001 From: gene9831 Date: Thu, 12 Feb 2026 17:55:12 +0800 Subject: [PATCH 4/4] docs(update-log): refine useConversation feature description to highlight session management improvements --- docs/src/guide/update-log.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/guide/update-log.md b/docs/src/guide/update-log.md index 5e7549bdc..5466a5ccc 100644 --- a/docs/src/guide/update-log.md +++ b/docs/src/guide/update-log.md @@ -26,7 +26,7 @@ TinyRobot 遵循语义化版本规范,每个版本的更新内容如下。 **工具** - **useMessage**: 引入插件体系与生命周期钩子,支持在请求前、流式响应等阶段扩展处理逻辑。 by @Gene in [#286](https://github.com/opentiny/tiny-robot/pull/286) -- **useConversation**: 新增 `onLoad` 回调,在初始会话列表加载完成后触发。 by @Gene in [#304](https://github.com/opentiny/tiny-robot/pull/304) +- **useConversation**: 重构会话管理架构,将会话列表 `conversations` 与消息 `messages` 解耦,读取会话列表时不再一次性加载全部消息,并通过后台引擎池支持多个对话同时“在后台运行”且随时切换。 by @Gene in [#304](https://github.com/opentiny/tiny-robot/pull/304) - **Kit 存储**: 抽象统一存储策略接口与工具函数;优化 LocalStorage 与 IndexedDB 实现。 by @Gene in [#286](https://github.com/opentiny/tiny-robot/pull/286) ### 🔨 优化改进