MCPcopy Create free account
hub / github.com/ChatLab/ChatLab / importFile

Method importFile

apps/desktop/main/api/adapters.ts:120–125  ·  view source on GitHub ↗
(tempFile: string, targetSessionId: string | undefined, externalId: string)

Source from the content-addressed store, hash-verified

118 }
119
120 async importFile(tempFile: string, targetSessionId: string | undefined, externalId: string): Promise<ImportResult> {
121 if (targetSessionId && this.sessionExists(targetSessionId)) {
122 return this.incrementalImportFile(targetSessionId, tempFile)
123 }
124 return this.fullImportFile(tempFile, externalId)
125 }
126
127 private async incrementalImportFile(sessionId: string, tempFile: string): Promise<ImportResult> {
128 this.logger.info(`[Pull] Incremental import to session ${sessionId}`)

Callers

nothing calls this directly

Calls 3

sessionExistsMethod · 0.95
incrementalImportFileMethod · 0.95
fullImportFileMethod · 0.95

Tested by

no test coverage detected