优化: 添加本地文件改为扫描式(FE-025修订),目录对比自动筛出本地新增项勾选添加

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
fenghp
2026-06-11 14:39:20 +08:00
co-authored by Cursor
parent 75c8e00e19
commit fe4c573585
11 changed files with 259 additions and 79 deletions
-11
View File
@@ -96,17 +96,6 @@ export async function revealPath(targetPath: string, isFolder: boolean): Promise
return bridge.revealPath(targetPath, isFolder)
}
/**
* 打开系统文件选择器(多选),非 Electron 环境返回 null。
*/
export async function selectFiles(defaultPath?: string): Promise<string[] | null> {
const bridge = getBridge()
if (!bridge) {
return null
}
return bridge.selectFiles(defaultPath)
}
/**
* 构造非 Electron 环境下的占位服务状态。
*/