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

Function getPreprocessor

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

Source from the content-addressed store, hash-verified

77 * 获取格式的预处理器(如果有)
78 */
79export function getPreprocessor(filePath: string) {
80 const feature = sniffer.sniff(filePath)
81 if (!feature) return null
82
83 const module = formats.find((m) => m.feature.id === feature.id)
84 return module?.preprocessor || null
85}
86
87/**
88 * 扫描多聊天文件中的聊天列表

Callers 2

streamImportSingleFunction · 0.90
needsPreprocessFunction · 0.85

Calls 1

sniffMethod · 0.80

Tested by

no test coverage detected