troxy-cli 1.4.13 → 1.4.14
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/bin/troxy.js +3 -1
- package/package.json +1 -1
package/bin/troxy.js
CHANGED
|
@@ -361,7 +361,9 @@ switch (command) {
|
|
|
361
361
|
throw err;
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
|
|
364
|
+
// Also refresh the npx cache so MCP servers (e.g. OpenClaw) pick up the new version
|
|
365
|
+
try { execSync(`npx --yes troxy-cli@${latest} --version`, { stdio: 'pipe' }); } catch { /* non-fatal */ }
|
|
366
|
+
console.log(`✓\n\n Updated to ${latest}. Restart your terminal and any MCP clients to use the new version.\n`);
|
|
365
367
|
} catch (err) {
|
|
366
368
|
const stderr = err.stderr?.toString() || err.message || '';
|
|
367
369
|
if (stderr.includes('EACCES') || stderr.includes('permission')) {
|