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

Method prepareImportSource

src/services/import/types.ts:129–129  ·  view source on GitHub ↗

注册 ZIP 导入源。Web 上传一次,Electron 记录本地路径。

(file: File | string)

Source from the content-addressed store, hash-verified

127
128 /** 注册 ZIP 导入源。Web 上传一次,Electron 记录本地路径。 */
129 prepareImportSource(file: File | string): Promise<PreparedImportSourceResult>
130
131 /** 从已注册导入源中导入一个聊天。 */
132 importPreparedChat(sourceId: string, chatId: string, onProgress?: (p: ImportProgress) => void): Promise<ImportResult>

Callers 2

prepareImportSourceMethod · 0.65

Implementers 2

ElectronImportAdaptersrc/services/import/electron.ts
FetchImportAdaptersrc/services/import/fetch.ts

Calls

no outgoing calls

Tested by

no test coverage detected