(loc: Location)
| 54 | return path.join(configDir(loc), 'settings.json'); |
| 55 | } |
| 56 | function 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 | |
| 65 | class GeminiTarget implements AgentTarget { |
| 66 | readonly id = 'gemini' as const; |
no test coverage detected