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

Function incrementalImport

apps/desktop/main/worker/workerManager.ts:942–951  ·  view source on GitHub ↗
(
  sessionId: string,
  filePath: string,
  onProgress?: (progress: ParseProgress) => void,
  options?: ImportOptions
)

Source from the content-addressed store, hash-verified

940 * 执行增量导入
941 */
942export async function incrementalImport(
943 sessionId: string,
944 filePath: string,
945 onProgress?: (progress: ParseProgress) => void,
946 options?: ImportOptions
947): Promise<IncrementalImportResult> {
948 assertDataDirCompatibleNow()
949
950 return sendToWorkerWithProgress('incrementalImport', { sessionId, filePath, options }, onProgress)
951}
952
953/**
954 * Dry-run analysis result for new sessions

Callers

nothing calls this directly

Calls 2

sendToWorkerWithProgressFunction · 0.85

Tested by

no test coverage detected