feat(ui): 实现 @ 文件提及自动补全功能
- Core: 添加 file-index 模块,使用 ripgrep 索引文件,fuzzysort 模糊搜索 - Server: 添加 /api/files/search 端点,支持文件模糊搜索 - Server: WebSocket 消息处理中将 @filepath 转换为 ./filepath 格式 - UI: 新增 FileMenu 组件,显示文件搜索结果列表 - UI: 新增 FileMentionTag 组件,高亮显示文件提及 - UI: 新增 useFileMention hook,管理文件提及状态 - UI: ChatInput 集成 @ 触发的文件自动补全 - UI: ChatMessage 用户消息中高亮显示 @filepath
This commit is contained in:
@@ -226,3 +226,16 @@ export type {
|
||||
ProviderListItem,
|
||||
ProviderDetail,
|
||||
} from './provider/index.js';
|
||||
|
||||
// File Index
|
||||
export {
|
||||
getFileIndex,
|
||||
searchFiles,
|
||||
refreshFileIndex,
|
||||
getFileIndexStats,
|
||||
} from './file-index/index.js';
|
||||
|
||||
export type {
|
||||
FileIndexEntry,
|
||||
FileSearchOptions,
|
||||
} from './file-index/index.js';
|
||||
|
||||
Reference in New Issue
Block a user