(loc: Location, _opts: InstallOptions)
| 74 | } |
| 75 | |
| 76 | install(loc: Location, _opts: InstallOptions): WriteResult { |
| 77 | if (loc !== 'global') { |
| 78 | return { |
| 79 | files: [], |
| 80 | notes: ['Codex CLI has no project-local config — re-run with --location=global to install.'], |
| 81 | }; |
| 82 | } |
| 83 | const files: WriteResult['files'] = []; |
| 84 | |
| 85 | files.push(writeMcpEntry()); |
| 86 | |
| 87 | // AGENTS.md gets the short marker-fenced CodeGraph block (#704): |
| 88 | // subagents and non-MCP harnesses read AGENTS.md but never the MCP |
| 89 | // initialize instructions. Upsert self-heals a stale pre-#529 block. |
| 90 | files.push(upsertInstructionsEntry(instructionsPath())); |
| 91 | |
| 92 | return { files }; |
| 93 | } |
| 94 | |
| 95 | uninstall(loc: Location): WriteResult { |
| 96 | if (loc !== 'global') return { files: [] }; |
nothing calls this directly
no test coverage detected