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

Function createConfig

freebuff/cli/release/index.js:77–93  ·  view source on GitHub ↗
(packageName)

Source from the content-addressed store, hash-verified

75}
76
77function createConfig(packageName) {
78 const homeDir = os.homedir()
79 const configDir = path.join(homeDir, '.config', 'manicode')
80 const binaryName =
81 process.platform === 'win32' ? `${packageName}.exe` : packageName
82
83 return {
84 homeDir,
85 configDir,
86 binaryName,
87 binaryPath: path.join(configDir, binaryName),
88 metadataPath: path.join(configDir, 'freebuff-metadata.json'),
89 tempDownloadDir: path.join(configDir, '.freebuff-download-temp'),
90 userAgent: `${packageName}-cli`,
91 requestTimeout: 20000,
92 }
93}
94
95const CONFIG = createConfig(packageName)
96const { getProxyUrl, httpGet } = createReleaseHttpClient({

Callers 1

index.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected