fix: 修复编译错误 — handleAppendFile残留引用 + _enhanced类型断言
This commit is contained in:
@@ -599,7 +599,7 @@ export async function handleWebSearch(params: { query: string; max_results?: num
|
|||||||
if (fetchResult.success && fetchResult.content) {
|
if (fetchResult.success && fetchResult.content) {
|
||||||
const text = String(fetchResult.content).replace(/\s+/g, ' ').trim();
|
const text = String(fetchResult.content).replace(/\s+/g, ' ').trim();
|
||||||
r.snippet = text.length > 200 ? text.slice(0, 200) + '…' : text;
|
r.snippet = text.length > 200 ? text.slice(0, 200) + '…' : text;
|
||||||
r._enhanced = true;
|
(r as any)._enhanced = true;
|
||||||
}
|
}
|
||||||
} catch { /* enhancement is optional */ }
|
} catch { /* enhancement is optional */ }
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ export {
|
|||||||
handleDeleteFile,
|
handleDeleteFile,
|
||||||
handleMoveFile,
|
handleMoveFile,
|
||||||
handleCopyFile,
|
handleCopyFile,
|
||||||
handleAppendFile,
|
|
||||||
handleEditFile,
|
handleEditFile,
|
||||||
handleGetFileInfo,
|
handleGetFileInfo,
|
||||||
handleTree,
|
handleTree,
|
||||||
|
|||||||
Reference in New Issue
Block a user