支持在会话输入框直接进行文件/图片的拖拽和粘贴

This commit is contained in:
xintaofei
2026-03-08 10:54:06 +08:00
parent 68e2c7f989
commit 7a4cbcb73e
24 changed files with 1335 additions and 78 deletions

View File

@@ -743,6 +743,13 @@ export async function stopFileTreeWatch(rootPath: string): Promise<void> {
return invoke("stop_file_tree_watch", { rootPath })
}
export async function readFileBase64(
path: string,
maxBytes?: number
): Promise<string> {
return invoke("read_file_base64", { path, maxBytes: maxBytes ?? null })
}
export async function readFilePreview(
rootPath: string,
path: string,