(file: File | string)
| 67 | } |
| 68 | |
| 69 | async detectFormat(file: File | string): Promise<FormatInfo | null> { |
| 70 | const filePath = resolveFilePath(file) |
| 71 | if (!filePath) return null |
| 72 | const result = await window.chatApi.detectFormat(filePath) |
| 73 | if (!result) return null |
| 74 | return { ...result, extensions: (result as any).extensions ?? [] } |
| 75 | } |
| 76 | |
| 77 | async scanMultiChatFile(file: File | string): Promise<MultiChatEntry[]> { |
| 78 | const filePath = resolveFilePath(file) |
nothing calls this directly
no test coverage detected