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

Function configPath

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

Source from the content-addressed store, hash-verified

100// opencode auto-creates .jsonc on first run, so that's the dominant
101// real-world case and the sensible default for greenfield installs.
102function configPath(loc: Location): string {
103 const dir = configBaseDir(loc);
104 const jsonc = path.join(dir, 'opencode.jsonc');
105 const json = path.join(dir, 'opencode.json');
106 if (fs.existsSync(jsonc)) return jsonc;
107 if (fs.existsSync(json)) return json;
108 return jsonc;
109}
110
111function instructionsPath(loc: Location): string {
112 return path.join(configBaseDir(loc), 'AGENTS.md');

Callers 5

detectMethod · 0.70
uninstallMethod · 0.70
printConfigMethod · 0.70
describePathsMethod · 0.70
writeMcpEntryFunction · 0.70

Calls 2

configBaseDirFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected