Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- 新增首页 HomeView(项目列表、新建/打开项目) - 新增主工作区 ProjectView(三栏布局:文件树 + 对话 + 内容预览) - 新增设置页 SettingsView(LLM/Embedding/Rerank 配置) - 新增布局组件:FileTreeSidebar、ChatPanel、ContentPanel - 新增全局样式 style.css(Tailwind + 自定义滚动条) - 更新路由配置,添加三个新页面路由 - 更新 chatStore,添加 messages、createSession、sendMessage
- 改进 recent-projects.ts,支持保存和读取最近项目列表(最多 8 个) - 添加 readRecentProjects、forgetRecentProject 方法 - 添加 cleanupOldProjects 自动清理旧记录 - 更新 project-service.ts,暴露 getRecentProjects、forgetRecentProject - 更新 projectStore,添加 loadRecentProjects 方法 - 更新 HomeView,页面加载时自动加载最近项目列表 - 更新数据库版本从 1 到 2
- 新增 TreeNode.vue 递归组件,支持任意层级的文件树 - 实现文件夹展开/折叠功能 - 实现文件点击选择,高亮当前选中文件 - 不同文件类型显示不同图标(md/json/通用文件) - 更新 FileTreeSidebar,使用真实项目文件树数据 - 更新 ContentPanel,显示选中文件的内容 - 更新 ProjectView,处理文件选择和右侧面板联动
- 新增 MessageItem.vue 组件,支持多种消息类型 - 用户消息(蓝色气泡,右对齐) - AI 消息(灰色气泡,左对齐) - 工具调用消息(带工具图标) - 工具结果消息(带成功/失败状态) - 错误消息(红色背景) - 支持流式文本展示(带光标动画) - 改进输入区域 - 使用 textarea 支持多行输入 - Enter 发送,Shift+Enter 换行 - 自动调整高度 - 发送按钮带加载动画 - 显示运行状态提示
- 支持预览/原始两种视图模式切换 - 预览模式:浅色背景,适合阅读 - 原始模式:深色背景,类似代码编辑器 - 支持生成预览(流式文本) - 显示蓝色脉冲点表示正在生成 - 实时显示 AI 生成的文本 - 带光标动画 - 改进文件信息展示 - 显示文件路径 - 显示最后更新时间 - 改进头部显示 - 显示当前文件名 - 显示文件格式标签 - 更新 ProjectView,传递 draftText 给 ContentPanel
- 实现项目设置面板,包含四个分组: - 生成设置:生成上下文章节数 - RAG 设置:粗检索返回条数、上下文最大条数 - 对话设置:Token 上限、压缩保留轮数 - 校对与整理:校对默认章节数、整理默认章节数 - 每个配置项都有说明文字 - 支持保存到 novel.config.json - 从配置文件加载已保存的设置
- 新增 Toast 提示组件 - 支持 success、error、info 三种类型 - 自动消失,可手动关闭 - 带动画效果 - 新增 useToast composable - 提供 show、success、error、info 方法 - 新增首次使用引导组件 - 引导用户配置 LLM API - 可跳转设置页 - 可跳过 - 文件树实时更新 - AI 操作文件后自动刷新左侧文件树 - 显示 Toast 提示 - 右侧面板自动展开 - AI 生成内容时右侧面板自动打开 - 运行状态提示 - Agent 执行完成/失败时显示 Toast 提示
- 安装 markdown-it 库 - 新增 MarkdownRenderer.vue 组件 - 支持标题、段落、列表、代码块、引用、表格等 - 自定义样式,美观易读 - 更新 ContentPanel.vue - Markdown 文件使用渲染模式显示 - 其他文件仍使用纯文本显示 - 预览/原始模式切换仍然有效 - 更新 MessageItem.vue - AI 消息使用 Markdown 渲染
- 安装 vite-plugin-vue-devtools 依赖 - 在 vite.config.js 中集成 devtools 插件
该功能展示的是 AI 对话回复文本而非文件内容,与设计文档中 '生成/修改预览'的意图不符。完整移除从数据生产到 UI 展示的 整条链路,包括: - core 层类型定义、session 累积逻辑、agent-service 桥接 - store 层 assistant-delta 事件处理 - UI 层 ChatPanel 流式气泡、ContentPanel 生成预览、ProjectView watch - 调试页面 SessionTestView 中的引用 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.