fix: 修复编译错误 — handleAppendFile残留引用 + _enhanced类型断言

This commit is contained in:
thzxx
2026-06-10 15:08:20 +08:00
parent 463071254d
commit f7e2843d4c
2 changed files with 1 additions and 2 deletions
+1 -1
View File
@@ -599,7 +599,7 @@ export async function handleWebSearch(params: { query: string; max_results?: num
if (fetchResult.success && fetchResult.content) {
const text = String(fetchResult.content).replace(/\s+/g, ' ').trim();
r.snippet = text.length > 200 ? text.slice(0, 200) + '…' : text;
r._enhanced = true;
(r as any)._enhanced = true;
}
} catch { /* enhancement is optional */ }
}));
-1
View File
@@ -16,7 +16,6 @@ export {
handleDeleteFile,
handleMoveFile,
handleCopyFile,
handleAppendFile,
handleEditFile,
handleGetFileInfo,
handleTree,