mirror of
https://github.com/hellodigua/ChatLab.git
synced 2026-10-25 17:54:34 +08:00
feat(export): simplify message export and support multiple formats
This commit is contained in:
1 parent
4f1aac55b6
commit
6ec736c05a
36 files changed
+368
-2651
No files matched your search
@@ -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)
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user