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

Function analyzeIncrementalImport

apps/cli/src/import/stream-import.ts:207–223  ·  view source on GitHub ↗
(
  dbManager: DatabaseManager,
  sessionId: string,
  filePath: string,
  onProgress?: ImportProgressCallback
)

Source from the content-addressed store, hash-verified

205}
206
207export async function analyzeIncrementalImport(
208 dbManager: DatabaseManager,
209 sessionId: string,
210 filePath: string,
211 onProgress?: ImportProgressCallback
212): Promise<IncrementalAnalyzeResult> {
213 let compatibilityError: DataDirCompatibilityError | null = null
214 const result = await sharedAnalyzeIncremental(
215 sessionId,
216 filePath,
217 buildIncrementalDeps(dbManager, onProgress, (error) => {
218 compatibilityError = error
219 })
220 )
221 if (compatibilityError) throw compatibilityError
222 return result
223}
224
225export async function analyzeNewImport(
226 filePath: string,

Callers 2

registerImportRoutesFunction · 0.90

Calls 1

buildIncrementalDepsFunction · 0.85

Tested by

no test coverage detected