@alfe.ai/integrations 0.0.23 → 0.0.24
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/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1512,8 +1512,8 @@ var OpenClawApplier = class {
|
|
|
1512
1512
|
isPluginInstalled(pkg) {
|
|
1513
1513
|
const extensionsDir = join(homedir(), ".openclaw", "extensions");
|
|
1514
1514
|
if (!existsSync(extensionsDir)) return false;
|
|
1515
|
-
const prefix = pkg.replaceAll("/", "-");
|
|
1516
|
-
return readdirSync(extensionsDir).some((dir) => dir.startsWith(prefix));
|
|
1515
|
+
const prefix = pkg.replaceAll("/", "-") + "-";
|
|
1516
|
+
return readdirSync(extensionsDir).some((dir) => dir.startsWith(prefix) && /^[0-9a-f]+$/i.test(dir.slice(prefix.length)));
|
|
1517
1517
|
}
|
|
1518
1518
|
async removePlugin(pkg) {
|
|
1519
1519
|
await execFileAsync("openclaw", [
|
package/package.json
CHANGED