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

Function instructionsPath

src/installer/targets/gemini.ts:56–63  ·  view source on GitHub ↗
(loc: Location)

Source from the content-addressed store, hash-verified

54 return path.join(configDir(loc), 'settings.json');
55}
56function instructionsPath(loc: Location): string {
57 // Global GEMINI.md lives under ~/.gemini/; project-local GEMINI.md
58 // lives at the project root (NOT under .gemini/), matching how
59 // Gemini CLI's hierarchical context loader searches.
60 return loc === 'global'
61 ? path.join(configDir('global'), 'GEMINI.md')
62 : path.join(process.cwd(), 'GEMINI.md');
63}
64
65class GeminiTarget implements AgentTarget {
66 readonly id = 'gemini' as const;

Callers 3

installMethod · 0.70
describePathsMethod · 0.70
removeInstructionsEntryFunction · 0.70

Calls 2

configDirFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected