(options: UninstallOptions)
| 170 | } |
| 171 | |
| 172 | function resolveFlagModes(options: UninstallOptions): UninstallMode[] { |
| 173 | if (options.all) return ["mcp", "cli"]; |
| 174 | |
| 175 | const selected: UninstallMode[] = []; |
| 176 | |
| 177 | if (options.mcp) selected.push("mcp"); |
| 178 | if (options.cli) selected.push("cli"); |
| 179 | |
| 180 | return selected.length > 0 ? selected : ["mcp", "cli"]; |
| 181 | } |
| 182 | |
| 183 | async function pathExists(path: string): Promise<boolean> { |
| 184 | try { |