@deep-eye/core 1.2.64 → 1.2.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  `@deep-eye/core` 的用户可见变更(语义化版本)。
4
4
 
5
+ ## [1.2.65] - 2026-08-17
6
+
7
+ ### Added
8
+
9
+ - `ChatBotExpose.hydrateHistory`:接受 GA `agent_history.messages` 原始形状,库内规范化为 `ConversationMessage[]`(steps → flat `content` / `reasoning_content` / `tool_calls`,多轮交错保留 `steps`),并默认滚到底。宿主可直接 `hydrateHistory({ messages: detail.messages, session: detail })`,无需业务侧 mapper。
10
+ - `ChatBotExpose.setMessages`:命令式替换当前对话。
11
+ - 导出 `normalizeAgentHistoryMessages` / `normalizeHistoryResourceFile` 与 `HydrateHistoryInput` 类型。
12
+
5
13
  ## [1.2.64] - 2026-08-17
6
14
 
7
15
  ### Breaking
package/README.md CHANGED
@@ -160,6 +160,7 @@ assistant `content` 原生支持 GFM、代码高亮、KaTeX 公式、图片/视
160
160
  - **`ConversationList`**、**`ChatQueue`**:多会话列表与可选的流式消息队列(`enableQueue` 开启后:编辑、删除、排序、终态自动出队)。
161
161
  - **`registerToolRenderer`** / **`registerChatPreviewRenderer`**:注册自定义工具调用渲染器与附件预览渲染器。
162
162
  - **`useConversation`**:`messages` 数组的本地状态管理(`appendMessage`、`setMessages`、`reset`),不处理网络或 SSE。
163
+ - **`ChatBot.hydrateHistory`** / **`normalizeAgentHistoryMessages`**:把 GA `agent_history.messages` 直接灌入对话(库内消化 steps → flat 字段),宿主无需 mapper。
163
164
  - **`useMindMapTheme`** / **`useMindMapLayout`**:`D3MindMap` 主题与布局的组合式函数。
164
165
  - 附件相关工具函数、`classifyChatError` 错误分类等。
165
166
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deep-eye/core",
3
- "version": "1.2.64",
3
+ "version": "1.2.65",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },