MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / scanMultiChatFile

Method scanMultiChatFile

src/services/import/electron.ts:77–83  ·  view source on GitHub ↗
(file: File | string)

Source from the content-addressed store, hash-verified

75 }
76
77 async scanMultiChatFile(file: File | string): Promise<MultiChatEntry[]> {
78 const filePath = resolveFilePath(file)
79 if (!filePath) return []
80 const result = await window.chatApi.scanMultiChatFile(filePath)
81 if (!result.success || !result.chats) return []
82 return result.chats
83 }
84
85 async prepareImportSource(file: File | string): Promise<PreparedImportSourceResult> {
86 const filePath = resolveFilePath(file)

Callers

nothing calls this directly

Calls 2

resolveFilePathFunction · 0.85
scanMultiChatFileMethod · 0.65

Tested by

no test coverage detected