Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ChatLab/ChatLab
/ getConfigPath
Function
getConfigPath
packages/config/src/loader.ts:34–38 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
32
* 获取配置文件路径(返回实际存在的路径或默认 TOML 路径)
33
*/
34
export
function
getConfigPath(): string {
35
if
(fs.existsSync(CONFIG_TOML))
return
CONFIG_TOML
36
if
(fs.existsSync(CONFIG_JSON))
return
CONFIG_JSON
37
return
CONFIG_TOML
38
}
39
40
/**
41
* 获取配置目录路径
Callers
1
cli.ts
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected