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

Function configPath

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

Source from the content-addressed store, hash-verified

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