troxy-cli 1.29.10 → 1.29.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/uninstall.js +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "troxy-cli",
|
|
3
|
-
"version": "1.29.
|
|
3
|
+
"version": "1.29.11",
|
|
4
4
|
"description": "A secure control layer for AI agents: policies across payments, messages, logins, destructive actions, model usage, and secrets, all enforceable from the CLI",
|
|
5
5
|
"homepage": "https://troxy.io",
|
|
6
6
|
"bugs": {
|
package/src/uninstall.js
CHANGED
|
@@ -129,6 +129,15 @@ export async function runUninstall() {
|
|
|
129
129
|
// is listening" outage this plan's fail-open design exists to prevent.
|
|
130
130
|
// Each is independently best-effort: a missing/corrupt config file must
|
|
131
131
|
// never stop the rest of uninstall from proceeding.
|
|
132
|
+
let wasIntercepting = false;
|
|
133
|
+
try {
|
|
134
|
+
const settingsPath = claudeCodeSettingsPath();
|
|
135
|
+
if (fs.existsSync(settingsPath)) {
|
|
136
|
+
const settings = JSON.parse(fs.readFileSync(settingsPath, 'utf8'));
|
|
137
|
+
wasIntercepting = !!(settings.env?.HTTPS_PROXY || settings.env?.NODE_EXTRA_CA_CERTS);
|
|
138
|
+
}
|
|
139
|
+
} catch {}
|
|
140
|
+
|
|
132
141
|
process.stdout.write(' Reverting Claude Code settings... ');
|
|
133
142
|
try {
|
|
134
143
|
unpatchClaudeCodeConfig(claudeCodeConfigPath());
|
|
@@ -200,4 +209,11 @@ export async function runUninstall() {
|
|
|
200
209
|
}
|
|
201
210
|
|
|
202
211
|
console.log('\n Troxy removed. All agent keys revoked. Your AI agents are no longer protected by Troxy.\n');
|
|
212
|
+
|
|
213
|
+
if (wasIntercepting) {
|
|
214
|
+
console.log(' ⚠ IMPORTANT: fully quit and restart Claude Code / Claude Desktop now.');
|
|
215
|
+
console.log(' Your current session was launched with Troxy\'s proxy settings still');
|
|
216
|
+
console.log(' loaded in memory, and the certificate they point to has just been');
|
|
217
|
+
console.log(' deleted — it will fail to reach Anthropic until you restart.\n');
|
|
218
|
+
}
|
|
203
219
|
}
|