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

Function needsPreprocess

packages/parser/src/index.ts:114–120  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

112 * 检查文件是否需要预处理
113 */
114export function needsPreprocess(filePath: string): boolean {
115 const preprocessor = getPreprocessor(filePath)
116 if (!preprocessor) return false
117
118 const fileSize = getFileSize(filePath)
119 return preprocessor.needsPreprocess(filePath, fileSize)
120}
121
122/**
123 * 流式解析文件

Callers 1

streamImportSingleFunction · 0.90

Calls 3

getFileSizeFunction · 0.90
getPreprocessorFunction · 0.85
needsPreprocessMethod · 0.80

Tested by

no test coverage detected