refactor(data): remove pluginCompute plugin-compute path

图表已统一走缓存端点,pluginCompute 不再被任何调用方使用,移除其全链路实现。
pluginQuery 保留供消息浏览/搜索/分页与 session-index 等通用 SQL 访问。

- 删除 ElectronDataAdapter(已无覆写),electron registry 直接使用 FetchDataAdapter
- 移除 IPC handler、preload API/类型、worker dispatch 与 workerManager 导出中的 pluginCompute

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
diguaandCursor committed 2026-06-14 23:54:12 +08:00
1 parent 93608fa5eb
commit cc4e67bd24
7 files changed
+3 -45

No files matched your search

-7
View File
@@ -78,13 +78,6 @@ export const chatApi = {
): Promise<{ success: boolean; newMessageCount: number; error?: string }> =>
ipcRenderer.invoke('chat:incrementalImport', sessionId, filePath),
/**
* 图表插件计算会处理大量消息数组,Electron 下必须卸载到 worker,
* 避免 renderer 主线程同步执行造成窗口卡顿。
*/
pluginCompute: <T = unknown>(fnString: string, input: unknown): Promise<T> =>
ipcRenderer.invoke('chat:pluginCompute', fnString, input),
// ==================== Demo ====================
importDemo: (
-1
View File
@@ -73,7 +73,6 @@ interface ChatApi {
sessionId: string,
filePath: string
) => Promise<{ success: boolean; newMessageCount: number; error?: string }>
pluginCompute: <T = unknown>(fnString: string, input: unknown) => Promise<T>
importDemo: (locale: string) => Promise<{
success: boolean
groupSessionId?: string