feat: add uninstaller scripts for all tools + restore yolo mode
Uninstallers (.sh + .ps1) for Claude, Gemini, Codex, Qwen: - Remove npm package / binary - Remove settings directory (~/.gemini, ~/.qwen, ~/.codex, ~/.claude) - Remove env vars from bashrc/zshrc, /etc/environment, /etc/profile.d - Remove npm registry config Also: restore defaultApprovalMode=yolo (npm package now includes Target 9a patch in settingsSchema.js) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
23
README.md
23
README.md
@@ -135,7 +135,7 @@ cat > ~/.gemini/settings.json << 'EOF'
|
||||
"folderTrust": { "enabled": false }
|
||||
},
|
||||
"telemetry": { "enabled": false, "logPrompts": false },
|
||||
"general": { "defaultApprovalMode": "auto_edit" }
|
||||
"general": { "defaultApprovalMode": "yolo" }
|
||||
}
|
||||
EOF
|
||||
```
|
||||
@@ -147,7 +147,7 @@ Then configure (Windows — run in **PowerShell**, not CMD):
|
||||
$env:GEMINI_API_KEY = "ClauderAPI"
|
||||
$env:GOOGLE_GEMINI_BASE_URL = "https://ai.37-187-136-86.sslip.io"
|
||||
$d = "$env:USERPROFILE\.gemini"; New-Item -ItemType Directory -Force -Path $d | Out-Null
|
||||
[System.IO.File]::WriteAllText("$d\settings.json", '{"security":{"auth":{"selectedType":"gemini-api-key"},"folderTrust":{"enabled":false}},"telemetry":{"enabled":false,"logPrompts":false},"general":{"defaultApprovalMode":"auto_edit"}}')
|
||||
[System.IO.File]::WriteAllText("$d\settings.json", '{"security":{"auth":{"selectedType":"gemini-api-key"},"folderTrust":{"enabled":false}},"telemetry":{"enabled":false,"logPrompts":false},"general":{"defaultApprovalMode":"yolo"}}')
|
||||
```
|
||||
|
||||
Or use CMD:
|
||||
@@ -155,7 +155,7 @@ Or use CMD:
|
||||
setx GEMINI_API_KEY "ClauderAPI"
|
||||
setx GOOGLE_GEMINI_BASE_URL "https://ai.37-187-136-86.sslip.io"
|
||||
mkdir "%USERPROFILE%\.gemini" 2>nul
|
||||
echo {"security":{"auth":{"selectedType":"gemini-api-key"},"folderTrust":{"enabled":false}},"telemetry":{"enabled":false,"logPrompts":false},"general":{"defaultApprovalMode":"auto_edit"}} > "%USERPROFILE%\.gemini\settings.json"
|
||||
echo {"security":{"auth":{"selectedType":"gemini-api-key"},"folderTrust":{"enabled":false}},"telemetry":{"enabled":false,"logPrompts":false},"general":{"defaultApprovalMode":"yolo"}} > "%USERPROFILE%\.gemini\settings.json"
|
||||
```
|
||||
|
||||
Verify: `gemini -p "Hello"`
|
||||
@@ -268,6 +268,23 @@ cd unlimitedcoding
|
||||
| Windows PowerShell | `powershell -ExecutionPolicy Bypass -File claude\releases\v2.1.71\install.ps1` |
|
||||
<!-- MANUAL_VERSION:END -->
|
||||
|
||||
## Uninstall
|
||||
|
||||
Clone repo (if not already cloned):
|
||||
```bash
|
||||
git clone --depth 1 https://x-token:cadffcb0a6a3be728ac1ff619bb40c86588f6837@git.sensey24.ru/aibot777/unlimitedcoding.git
|
||||
cd unlimitedcoding
|
||||
```
|
||||
|
||||
| Tool | Linux / macOS | Windows (PowerShell) |
|
||||
|------|---------------|----------------------|
|
||||
| Claude Code | `sudo bash claude/uclaude_uninstall.sh` | `powershell -ExecutionPolicy Bypass -File claude\uclaude_uninstall.ps1` |
|
||||
| Gemini CLI | `sudo bash gemini/ugemini_uninstall.sh` | `powershell -ExecutionPolicy Bypass -File gemini\ugemini_uninstall.ps1` |
|
||||
| Codex CLI | `sudo bash codex/ucodex_uninstall.sh` | `powershell -ExecutionPolicy Bypass -File codex\ucodex_uninstall.ps1` |
|
||||
| Qwen Code | `sudo bash qwen/uqwen_uninstall.sh` | `powershell -ExecutionPolicy Bypass -File qwen\uqwen_uninstall.ps1` |
|
||||
|
||||
Each uninstaller removes: binary/npm package, settings directory, environment variables, npm registry config.
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### Gemini CLI: deprecated settings spam
|
||||
|
||||
Reference in New Issue
Block a user