refactor: 将对话解析器拆分为独立模块

将 lib/conversationParser 重构为 conversation/ 目录:
- 按 API 格式拆分解析器 (claude.ts, openai.ts, gemini.ts)
- 提取公共渲染逻辑到 render.ts
- 添加解析器注册表支持自动格式检测
- 更新组件导入路径
This commit is contained in:
fawney19
2026-01-16 03:11:41 +08:00
parent 02770d56df
commit adc82532eb
10 changed files with 2844 additions and 3 deletions
@@ -539,7 +539,7 @@ import {
renderResponse,
type RenderResult,
type RenderBlock,
} from '../lib/conversationParser'
} from '../conversation'
const props = defineProps<{
isOpen: boolean