Commit Graph
48 Commits
Author SHA1 Message Date
hy e6e2ba8e03 Update LangChain deps for provider cache observability 2026-05-06 15:58:45 +08:00
hy 9e5d319f6d Add tests for workspace removal and scanning; remove obsolete test files
- Implement `workspace-remove-source-contract` test to verify that removing a workspace clears associated nodes and web sources.
- Add `workspace-scan-contract` test to ensure the workspace scanning API returns the correct progress payload.
- Delete unused `.gitkeep` files and obsolete test cases related to panel search and session persistence.
- Remove outdated tests for reference selection model and review navigation.
2026-04-30 10:30:20 +08:00
huangyuan e4b660b8ef 移除director架构,只保留human 2026-04-09 12:06:34 +08:00
hy c44501e862 Remove unused OpenAI client from renderer service 2026-04-01 18:13:00 +08:00
hy d440d8073d Refactor AI formal tests around real runtime execution 2026-04-01 14:51:07 +08:00
hy 0ca617463e Simplify test docs and align runner type filtering 2026-03-27 11:15:11 +08:00
hy a3f8b009bc Refactor test plans around workbench and settings suites 2026-03-27 11:05:41 +08:00
hy cf09dbe258 Stabilize workspace e2e flow and document shell test commands 2026-03-24 18:02:22 +08:00
hy e75e935cd6 Refactor AI tool flows and expand workspace test coverage 2026-03-24 17:51:34 +08:00
hy 912fb4a09d Add workspace test plan and align human tool contracts 2026-03-24 17:04:02 +08:00
huangyuan 93d46e3082 Refactor test architecture per plan 2026-03-15 10:52:44 +08:00
huangyuan f495142838 Implement new testing architecture 2026-03-14 13:38:13 +08:00
hy f511c17926 整理 run test 指令分类并清理 2026-03-13 15:53:18 +08:00
hy d7f078ef66 Organize accumulated tests and docs 2026-03-13 14:59:59 +08:00
hy eb51ae835b 继续推进 human 测试计划}collectionWeights 2026-03-12 18:49:05 +08:00
hy f7aa26ba01 Archive improve-human-test-eval 2026-03-12 17:48:11 +08:00
hy b9deb51925 Rename human-live naming 2026-03-12 10:26:01 +08:00
hy fd7fa3cdf4 Add tool capability testing plan 2026-03-11 15:47:42 +08:00
hy 8991a16319 Migrate ai directory structure 2026-03-11 14:21:35 +08:00
huangyuan fa228c680b new workspace 2026-03-10 18:31:29 +08:00
hy 24b37d5684 feat: add capability for docx file manipulation and human live case execution
- Introduced new fixtures for docx testing, including sample-edit.docx and README.md.
- Implemented assertions and runtime management for capability cases.
- Created event collector and fixture guard for managing test environments.
- Developed human live case execution with approval policies and workspace management.
- Added tests for missing fixtures, docx operations, and human live scenarios.
- Configured Vitest for AI test suites with appropriate timeouts and environment settings.
2026-03-05 17:50:35 +08:00
hy bbb33f514e feat(docx): expand docx tool capabilities and implement worker for document processing
- Updated the docx tool capabilities to include new actions: 'docx_open', 'docx_outline', 'docx_get_block', 'docx_search', 'docx_apply_ops', 'docx_render_preview', 'docx_save', and 'docx_validate'.
- Introduced a new types file for docx-related types, including specifications for text runs, paragraphs, tables, and operations.
- Created a worker for handling document processing tasks, including opening documents, outlining, searching, applying operations, rendering previews, and saving.
- Implemented a client for the docx worker to manage requests and responses.
- Added protocol definitions for communication between the main thread and the worker.
- Enhanced the ChatPage component to support document previews for artifacts.
2026-03-04 16:54:22 +08:00
hy 966bed56c2 refactor: update project documentation and language specifications 2026-03-02 11:40:45 +08:00
hy 3d2b30c713 feat(ai-runtime): 引入基于LangGraph的AI运行时以重构聊天模式
- 新增LangGraph状态机,包含host、retrieval、writer和answer四个节点,支持多步骤任务执行
- 实现AI运行事件流,通过IPC向渲染进程发送计划、任务和工具调用等执行详情
- 添加会话记忆存储,支持加载最近对话轮次和生成紧凑的会话摘要
- 提供检索工具集(混合/向量/全文搜索)和写作工具集(创建/更新/搜索替换文档)
- 弃用旧版写作工作流,默认禁用其IPC端点并引导使用新运行时
- 更新渲染进程类型定义和预加载API,支持新的AI运行事件订阅
- 在写作工作空间页面添加通过URL参数直接打开文档的支持
- 统一使用@langchain/openai创建LLM客户端,将模型调用移至主进程
2026-02-27 19:12:50 +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 ad4bf6e119 build: 添加 cheerio 依赖用于 HTML 解析
cheerio 库提供了类似 jQuery 的 HTML 解析和操作功能,将用于处理 HTML 文档内容。该依赖已被 @langchain/community 和 @langchain/classic 包作为可选依赖使用。
2026-02-10 18:04:23 +08:00
hy a0c2f04264 feat: 在 Markdown 渲染器中支持 LaTeX 数学公式
添加 remark-math 和 rehype-katex 插件以解析和渲染 LaTeX 数学表达式。
同时引入 katex 库及其样式,确保公式能正确显示。
2026-01-29 14:35:42 +08:00
hy a30092e7d9 feat: 添加文件预览组件支持 PDF、Markdown 和 DOCX 格式
新增自定义文件渲染组件用于预览 PDF、Markdown 和 DOCX 文档,替换原有的简单预览方式。
扩展 IPC 通信以支持从主进程读取文件,并更新 CSP 策略以允许 blob 和数据 URL。
在搜索和聊天页面中集成了新的文件预览模态框,用户可点击搜索结果卡片直接查看文档内容。
2026-01-29 11:48:35 +08:00
hy 475f2fd991 feat(llm): 集成 OpenAI SDK 并更新 Kimi 提供商名称
- 添加 openai 依赖以使用官方 SDK 处理流式响应
- 重构 llmService 使用 OpenAI 客户端替代手动 fetch 和 SSE 解析
- 更新设置页面中 Kimi 提供商的显示名称以包含 Moonshot
2026-01-26 18:50:33 +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 5b062efae6 feat: 添加文本高亮功能并优化UI样式
- 新增TextHighlighter组件实现关键词高亮功能
- 清理未使用的导入和组件
- 更新品牌图标引用方式
- 优化搜索页面布局和样式
2026-01-09 15:11:35 +08:00
hy 7b07c3c792 feat: 实现文档搜索和导入功能界面
- 添加搜索页面,支持关键词高亮和文档预览
- 实现文档导入页面,支持PDF和DOCX文件上传
- 更新类型定义和API接口以支持新功能
- 添加react-pdf和react-doc-viewer依赖用于文档预览
- 设计简约黑白风格的UI界面
2026-01-08 18:36:41 +08:00
hy b01793d51a feat(router): 添加React Router并重构应用结构
将原App组件拆分为路由结构和测试页面,添加react-router-dom依赖
更新项目文档说明前端路由方案
2026-01-08 17:10:15 +08:00
hy db4c663cdd build: 添加 @ant-design/icons 依赖 2026-01-06 18:38:42 +08:00
hy 115140e840 chore: 添加uuid依赖并添加调试日志
在UnifiedStore中添加tokenize查询的调试日志
2026-01-06 17:10:16 +08:00
hy 46a8bcf45c feat(存储服务): 添加中文分词功能支持
集成@node-rs/jieba库实现中文文本分词处理,改进中文搜索和存储功能
- 添加jieba依赖和类型定义
- 在UnifiedStore中实现中文分词逻辑
- 修改文本存储和查询逻辑以支持中文分词
2026-01-06 16:41:17 +08:00
hy 79534947f7 feat: Implement schema-driven LanceDB table management using Apache Arrow and introduce new type definitions. 2025-12-26 12:55:05 +08:00
hy 712fcc6f68 refactor: consolidate vector and full-text search into a unified LanceDB store, replacing separate implementations. 2025-12-25 18:30:51 +08:00
hy e42d99cae5 deps: add @lancedb/lancedb-darwin-arm64 package. 2025-12-25 14:43:19 +08:00
hy e454ea7ea9 refactor(向量存储): 将向量类型从number[]改为Float32Array并统一方法命名
重构向量存储相关代码,使用Float32Array替代number[]以提高性能
统一文档添加方法命名为addChunks以保持一致性
更新EmbeddingService返回类型以匹配新的向量类型
2025-12-24 16:57:24 +08:00
hy cfe73f28e6 feat(storage): 添加SQLite支持并重构存储服务
重构存储服务,将向量存储和全文索引分离到不同模块
添加SQLite用于存储元数据和FlexSearch索引
更新相关文档和依赖配置
2025-12-23 19:02:40 +08:00
hy dc4ecfb0fa refactor: 更新依赖并迁移至新的LangChain模块结构
- 将langchain依赖替换为@langchain/core和@langchain/textsplitters
- 更新FileLoader.ts以使用新的模块导入路径
- 调整eslint规则配置
- 在项目规则文档中添加类型检查规范
2025-12-23 16:11:10 +08:00
hy 08e1b84361 build: 更新项目依赖项
移除不再使用的依赖项(@ant-design/icons, clsx, uuid),添加新依赖项(@huggingface/transformers, @lancedb/lancedb, flexsearch)以支持新功能
2025-12-23 13:40:02 +08:00
hy 5eed07ee7a feat: 实现本地文档搜索功能
添加文档上传、向量嵌入和混合搜索功能
- 新增文件加载、文本分割和向量嵌入服务
- 实现基于LanceDB的向量存储和FlexSearch的关键词搜索
- 添加混合搜索算法结合向量和关键词结果
- 提供IPC接口供渲染进程调用
- 更新前端界面支持文档上传和搜索展示
2025-12-23 12:51:54 +08:00
hy f16762a2ef feat: 添加LESS支持并配置Vite预处理选项
添加LESS预处理器依赖并配置Vite以支持LESS文件
创建测试LESS文件并在应用中使用
2025-12-22 16:34:49 +08:00
hy 05d43eb993 feat: 添加 Tailwind CSS 支持并更新样式配置
- 在 base.css 中引入 tailwindcss
- 移除 main.css 中冗余的 creator 样式
- 更新 App.tsx 中的 creator 类名使用 tailwind 样式
- 在 electron.vite.config.ts 中添加 tailwindcss 插件
- 在 package.json 中添加 tailwindcss 相关依赖
2025-12-22 16:30:05 +08:00
hy 6133dfe404 feat: 添加antd依赖并在App中添加按钮组件 2025-12-22 16:24:12 +08:00
hy 045fd9dc01 first commit 2025-12-22 15:55:15 +08:00