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

Function configPath

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

Source from the content-addressed store, hash-verified

88// opencode auto-creates .jsonc on first run, so that's the dominant
89// real-world case and the sensible default for greenfield installs.
90function configPath(loc: Location): string {
91 const dir = configBaseDir(loc);
92 const jsonc = path.join(dir, 'opencode.jsonc');
93 const json = path.join(dir, 'opencode.json');
94 if (fs.existsSync(jsonc)) return jsonc;
95 if (fs.existsSync(json)) return json;
96 return jsonc;
97}
98
99function instructionsPath(loc: Location): string {
100 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