(loc: Location, _opts: InstallOptions)
| 149 | } |
| 150 | |
| 151 | install(loc: Location, _opts: InstallOptions): WriteResult { |
| 152 | const files: WriteResult['files'] = []; |
| 153 | files.push(writeMcpEntry(loc)); |
| 154 | |
| 155 | // AGENTS.md gets the short marker-fenced CodeGraph block (#704): |
| 156 | // subagents and non-MCP harnesses read AGENTS.md but never the MCP |
| 157 | // initialize instructions. Upsert self-heals a stale pre-#529 block. |
| 158 | files.push(upsertInstructionsEntry(instructionsPath(loc))); |
| 159 | |
| 160 | // Self-heal a pre-#535 install that wrote to %APPDATA%/opencode — |
| 161 | // opencode never reads it, so anything of ours there is stale. |
| 162 | if (loc === 'global') files.push(...cleanupLegacyWindowsState()); |
| 163 | |
| 164 | return { files }; |
| 165 | } |
| 166 | |
| 167 | uninstall(loc: Location): WriteResult { |
| 168 | const files: WriteResult['files'] = []; |
nothing calls this directly
no test coverage detected