Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ChatLab/ChatLab
/ detectFormat
Function
detectFormat
packages/parser/src/index.ts:37–39 ·
view source on GitHub ↗
(filePath: string)
Source
from the content-addressed store, hash-verified
35
* @returns 格式特征,如果无法识别则返回 null
36
*/
37
export
function
detectFormat(filePath: string): FormatFeature | null {
38
return
sniffer.sniff(filePath)
39
}
40
41
/**
42
* 检测所有匹配的文件格式(按优先级排序)
Callers
10
parseGoogleChatFixture
Function · 0.90
parseFixture
Function · 0.90
analyzeNewImport
Function · 0.90
streamParseFileInfo
Function · 0.90
analyzeIncrementalImport
Function · 0.90
incrementalImport
Function · 0.90
registerChatHandlers
Function · 0.90
walk
Function · 0.85
cli.ts
File · 0.85
registerImportRoutes
Function · 0.85
Calls
1
sniff
Method · 0.80
Tested by
2
parseGoogleChatFixture
Function · 0.72
parseFixture
Function · 0.72