agentgui 1.0.500 → 1.0.501
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/lib/tool-manager.js +6 -1
- package/package.json +1 -1
package/lib/tool-manager.js
CHANGED
|
@@ -121,7 +121,12 @@ const checkToolInstalled = (pkg) => {
|
|
|
121
121
|
try {
|
|
122
122
|
const nodeModulesPath = getNodeModulesPath();
|
|
123
123
|
const nodeModulesPackagePath = path.join(nodeModulesPath, pkg);
|
|
124
|
-
|
|
124
|
+
if (fs.existsSync(nodeModulesPackagePath)) {
|
|
125
|
+
return true;
|
|
126
|
+
}
|
|
127
|
+
const homeDir = os.homedir();
|
|
128
|
+
const pluginPath = path.join(homeDir, '.claude', 'plugins', pkg);
|
|
129
|
+
return fs.existsSync(pluginPath);
|
|
125
130
|
} catch (_) {
|
|
126
131
|
return false;
|
|
127
132
|
}
|