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

Function importPreparedChatWithSource

apps/desktop/main/import-source-runtime.ts:17–24  ·  view source on GitHub ↗
(
  manager: ArchiveImportSourceManager,
  sourceId: string,
  chatId: string,
  importer: (manifestPath: string) => Promise<T>
)

Source from the content-addressed store, hash-verified

15}
16
17export async function importPreparedChatWithSource<T>(
18 manager: ArchiveImportSourceManager,
19 sourceId: string,
20 chatId: string,
21 importer: (manifestPath: string) => Promise<T>
22): Promise<T> {
23 return manager.withMaterializedChat(sourceId, chatId, importer)
24}
25
26export async function cleanupArchiveImportSources(): Promise<void> {
27 if (!sourceManager) return

Callers 2

registerChatHandlersFunction · 0.90

Calls 1

withMaterializedChatMethod · 0.80

Tested by

no test coverage detected