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

Method prepareImportSource

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

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

resolveFilePathFunction · 0.85
prepareImportSourceMethod · 0.65

Tested by

no test coverage detected