feat(export): simplify message export and support multiple formats

This commit is contained in:
digua committed 2026-06-10 22:18:20 +08:00
1 parent 4f1aac55b6
commit 6ec736c05a
36 files changed
+368 -2651

No files matched your search

+1 -7
View File
@@ -37,18 +37,12 @@ export interface PreprocessConfig {
// ==================== AI API (IPC-only subset) ====================
export const aiApi = {
// filterMessagesWithContext / getMultipleSessionsMessages migrated to shared HTTP routes.
exportFilterResultToFile: (params: {
sessionId: string
sessionName: string
outputDir: string
filterMode: 'condition' | 'session'
keywords?: string[]
format?: 'txt' | 'json' | 'markdown'
timeFilter?: { startTs: number; endTs: number }
senderIds?: number[]
contextSize?: number
segmentIds?: number[]
}): Promise<{ success: boolean; filePath?: string; error?: string }> => {
return ipcRenderer.invoke('ai:exportFilterResultToFile', params)
},