MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / configBaseDir

Function configBaseDir

src/installer/targets/opencode.ts:94–96  ·  view source on GitHub ↗
(loc: Location)

Source from the content-addressed store, hash-verified

92}
93
94function configBaseDir(loc: Location): string {
95 return loc === 'global' ? globalConfigDir() : process.cwd();
96}
97
98// Pick existing .jsonc, then .json, default to .jsonc for new files.
99// opencode auto-creates .jsonc on first run, so that's the dominant

Callers 2

configPathFunction · 0.85
instructionsPathFunction · 0.85

Calls 1

globalConfigDirFunction · 0.70

Tested by

no test coverage detected