MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getConfigDir

Function getConfigDir

cli/src/utils/auth.ts:35–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34// Get the config directory path
35export const getConfigDir = (): string => {
36 return path.join(
37 os.homedir(),
38 '.config',
39 'manicode' +
40 // on a development stack?
41 (env.NEXT_PUBLIC_CB_ENVIRONMENT !== 'prod'
42 ? `-${env.NEXT_PUBLIC_CB_ENVIRONMENT}`
43 : ''),
44 )
45}
46
47// Get the credentials file path
48export const getCredentialsPath = (): string => {

Callers 13

getProjectDataDirFunction · 0.90
getMessageHistoryPathFunction · 0.90
saveMessageHistoryFunction · 0.90
getOwnerPathFunction · 0.90
getSettingsPathFunction · 0.90
ensureConfigDirExistsFunction · 0.90
getRecentProjectsPathFunction · 0.90
saveRecentProjectFunction · 0.90
getCredentialsPathFunction · 0.70
saveUserCredentialsFunction · 0.70
ownerPathFunction · 0.50

Calls

no outgoing calls

Tested by 1

ownerPathFunction · 0.40