Commit Graph
19 Commits
Author SHA1 Message Date
hy 125343bc15 Refactor LLM config and model selection flow 2026-05-08 18:11:22 +08:00
hy 9752ba0c43 Support create-target docx reviews 2026-04-24 18:51:32 +08:00
hy c2ef5e32dd Refactor AI document workflow 2026-04-22 18:21:44 +08:00
hy 3efa52d128 Add committed docx artifact support 2026-04-21 10:28:02 +08:00
hy 735fd8f5db Refactor AI workflow and shared types 2026-04-20 16:46:41 +08:00
hy ed33ba17b4 Align chunk query naming and refresh AI tool test records 2026-04-16 16:19:37 +08:00
hy 4be90a1bbc Refactor KB scope and move web sources into workspaces 2026-04-02 19:33:28 +08:00
huangyuan a920fdaa74 Rewrite docs and ai design flow 2026-03-14 11:47:34 +08:00
hy 135304c821 Restructure doc hierarchy and skills 2026-03-12 15:30:04 +08:00
huangyuan fa228c680b new workspace 2026-03-10 18:31:29 +08:00
hy 9e80f74957 Update test docs and env setup 2026-03-05 18:19:31 +08:00
hy 537915d067 refactor: remove deprecated writing workflow types and methods
- Removed WritingFolderRecord, WritingDocumentRecord, and related methods from global types.
- Cleaned up legacy writing workflow types and events from shared types.
- Updated serialization utility to improve type safety for IPC results.
- Changed input and output types in AiRunEvent to use 'unknown' for better type handling.
2026-02-28 17:09:35 +08:00
hy 8bcbe7980e feat: add terminal execution capabilities and approval workflow
- Implemented a new terminal execution service in `terminalExec.ts` to run shell commands with configurable options.
- Removed deprecated writing tools from `writingTools.ts`.
- Updated AI task types to include 'terminal_exec' and 'local_kb_retrieval'.
- Enhanced AI run context and state management to support document selection and workspace configuration.
- Added approval request and decision types to the AI run event system.
- Modified the ChatPage component to handle terminal execution events and display results.
- Introduced UI elements for selecting documents and specifying workspace paths.
2026-02-28 15:42:52 +08:00
hy ca46afb6b9 refactor(storage): 重构存储层为低层数据库核心和领域服务
引入 LanceDbCore 作为低层数据库访问层,封装连接、表管理和查询辅助方法
创建 DocumentsStore、ChatStore、LlmConfigStore、WritingStore 等领域服务类
将 UnifiedStore 重构为 StorageService 门面,提供统一的领域服务访问
更新所有 IPC 处理器和主进程服务以使用新的存储 API
2026-02-25 14:25:57 +08:00
hy be7569f2a1 feat(writing): 新增基于知识库的AI写作工作流与写作空间
- 新增知识库驱动的AI写作工作流,使用LangGraph JS编排多阶段生成流程(大纲→检索计划→检索→引用选择→草稿生成)
- 支持通过"@"提及功能选择特定文档作为引用范围,默认检索整个知识库
- 新增写作空间,包含文件夹树、文档列表和BlockNote编辑器,支持文档的创建、编辑和持久化
- 集成BlockNote编辑器,支持将AI生成的Markdown导入编辑,并可导出为DOCX和PDF格式
- 新增写作工作流运行记录和引用追踪,确保生成内容的可追溯性
- 扩展存储层,新增写作文件夹、文档和工作流运行表
- 扩展搜索接口,支持按文档ID范围进行检索过滤
2026-02-24 17:21:08 +08:00
hy 8947289b9a feat(chat): 实现基于数据库的聊天会话与LLM配置管理
- 新增 ChatSession、ChatMessage、LLMConfig 类型定义
- 在 UnifiedStore 中添加聊天相关表的创建与CRUD方法
- 实现 IPC handlers 用于前后端通信
- 重构 SettingsPage 使用数据库存储LLM配置
- 重构 ChatPage 使用数据库存储会话和消息
- 更新 NotificationCenter 和 SearchPage 以支持异步配置获取
- 添加数据库文档说明
2026-02-05 16:08:58 +08:00
hy e253a0d14f feat(ui): 实现新的UI设计规范并替换图标库
- 更新基础CSS变量以匹配新的配色规范(米色背景、赤陶色品牌色)
- 将@ant-design/icons替换为react-icons,统一使用线性图标风格
- 重构所有页面组件,应用新的颜色、间距、圆角和阴影设计
- 更新UI设计文档,详细说明新的设计语言和组件使用规范
- 调整Ant Design主题配置,设置品牌色和全局样式
- 优化滚动条样式和mark高亮效果
2026-01-26 17:18:21 +08:00
hy 89a772c243 refactor(database): 统一数据库字段命名使用蛇形命名法
将数据库表字段、TypeScript 接口及前端组件中的字段名从驼峰命名法改为蛇形命名法,确保数据库设计与代码类型定义的一致性。主要修改包括:
- 将 documentId、documentName、sourceType 等字段改为 document_id、document_name、source_type
- 更新相关的前端页面组件以适配新的字段名
- 同步更新数据库文档说明
2026-01-26 16:56:49 +08:00
hy b669e0bf7f docs: 添加数据库设计和UI样式规范文档
添加数据库设计文档(database.md)和UI样式规范文档(ui-style.md)
移除项目规则文档中冗余的UI设计和数据库设计内容
2026-01-22 14:19:36 +08:00