(file: File | string)
| 83 | } |
| 84 | |
| 85 | async prepareImportSource(file: File | string): Promise<PreparedImportSourceResult> { |
| 86 | const filePath = resolveFilePath(file) |
| 87 | if (!filePath) return { success: false, error: 'Cannot get file path in Electron' } |
| 88 | return window.chatApi.prepareImportSource(filePath) |
| 89 | } |
| 90 | |
| 91 | async importPreparedChat( |
| 92 | sourceId: string, |
nothing calls this directly
no test coverage detected