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

Function streamParseFileInfo

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

Source from the content-addressed store, hash-verified

495 * 返回基本信息和临时数据库路径
496 */
497export async function streamParseFileInfo(
498 filePath: string,
499 onProgress?: (progress: ParseProgress) => void
500): Promise<{
501 name: string
502 format: string
503 platform: string
504 messageCount: number
505 memberCount: number
506 fileSize: number
507 tempDbPath: string
508}> {
509 return sendToWorkerWithProgress('streamParseFileInfo', { filePath }, onProgress)
510}
511
512/**
513 * 流式导入聊天记录

Callers

nothing calls this directly

Calls 1

sendToWorkerWithProgressFunction · 0.85

Tested by

no test coverage detected