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

Function streamImport

apps/desktop/main/worker/import/streamImport.ts:113–120  ·  view source on GitHub ↗
(
  filePath: string,
  requestId: string,
  formatOptions?: Record<string, unknown>,
  externalSessionId?: string
)

Source from the content-addressed store, hash-verified

111 * Stream import: parse a file and write to DB with batched transactions.
112 */
113export async function streamImport(
114 filePath: string,
115 requestId: string,
116 formatOptions?: Record<string, unknown>,
117 externalSessionId?: string
118): Promise<StreamImportResult> {
119 return streamingImport(filePath, buildStreamImportDeps(requestId), formatOptions, externalSessionId)
120}
121
122/**
123 * Dry-run analysis: parse without writing to DB.

Callers 1

dbWorker.tsFile · 0.90

Calls 2

streamingImportFunction · 0.90
buildStreamImportDepsFunction · 0.70

Tested by

no test coverage detected