fnva 0.0.35 → 0.0.36
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fnva",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.36",
|
|
4
4
|
"description": "跨平台环境切换工具,支持 Java 和 LLM 环境配置",
|
|
5
5
|
"author": "protagonistss",
|
|
6
6
|
"license": "MIT",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build:platforms:sh": "bash scripts/build-platforms.sh",
|
|
18
18
|
"build:all": "scripts/build-all.sh",
|
|
19
19
|
"check-permissions": "node scripts/check-permissions.js",
|
|
20
|
-
"postuninstall": "
|
|
20
|
+
"postuninstall": "node scripts/uninstall-shell-integration.js"
|
|
21
21
|
},
|
|
22
22
|
"files": [
|
|
23
23
|
"bin/",
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/platforms/linux-x64/fnva
CHANGED
|
Binary file
|
|
Binary file
|
|
@@ -113,33 +113,48 @@ function removeShellIntegration(configPath, shell) {
|
|
|
113
113
|
|
|
114
114
|
function main() {
|
|
115
115
|
console.log('🧹 fnva shell integration uninstaller');
|
|
116
|
+
console.log('npm install location:', __dirname);
|
|
117
|
+
console.log('Current platform:', process.platform);
|
|
118
|
+
console.log('Detected shell:', process.env.SHELL || 'unknown');
|
|
116
119
|
|
|
117
120
|
const shell = detectShell();
|
|
118
121
|
const paths = getShellConfigPaths(shell);
|
|
119
122
|
|
|
123
|
+
console.log(`Config paths for ${shell}:`, paths);
|
|
124
|
+
|
|
120
125
|
if (!paths.length) {
|
|
121
126
|
console.log(`⚠️ Unsupported shell: ${shell}`);
|
|
127
|
+
console.log('No config files found for this shell');
|
|
122
128
|
return;
|
|
123
129
|
}
|
|
124
130
|
|
|
131
|
+
console.log(`Attempting to clean config files...`);
|
|
125
132
|
const success = removeShellIntegration(null, shell);
|
|
126
133
|
|
|
127
134
|
if (success) {
|
|
135
|
+
console.log('✅ Shell integration successfully removed');
|
|
128
136
|
console.log('🔄 Reload your shell config:');
|
|
129
137
|
switch (shell) {
|
|
130
138
|
case 'powershell':
|
|
131
139
|
console.log(' . $PROFILE');
|
|
140
|
+
console.log(' Or start new PowerShell instance');
|
|
132
141
|
break;
|
|
133
142
|
case 'bash':
|
|
134
143
|
console.log(' source ~/.bashrc');
|
|
144
|
+
console.log(' Or: exec bash');
|
|
135
145
|
break;
|
|
136
146
|
case 'zsh':
|
|
137
147
|
console.log(' source ~/.zshrc');
|
|
148
|
+
console.log(' Or: exec zsh');
|
|
138
149
|
break;
|
|
139
150
|
case 'fish':
|
|
140
151
|
console.log(' source ~/.config/fish/config.fish');
|
|
152
|
+
console.log(' Or: exec fish');
|
|
141
153
|
break;
|
|
142
154
|
}
|
|
155
|
+
} else {
|
|
156
|
+
console.log('⚠️ No fnva shell integration found in any config files');
|
|
157
|
+
console.log(' (This is normal if shell integration was never installed)');
|
|
143
158
|
}
|
|
144
159
|
}
|
|
145
160
|
|