@qubiit/lmagent 2.5.7 → 2.5.8
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/install.js +7 -3
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -337,7 +337,7 @@ const IDE_CONFIGS = [
|
|
|
337
337
|
program
|
|
338
338
|
.name('lmagent')
|
|
339
339
|
.description('CLI para instalar skills y reglas de LMAgent')
|
|
340
|
-
.version('2.5.
|
|
340
|
+
.version('2.5.8'); // Version bump
|
|
341
341
|
|
|
342
342
|
program.command('install')
|
|
343
343
|
.description('Instalar skills, rules y workflows en el IDE del proyecto')
|
|
@@ -658,8 +658,12 @@ async function runInstall(options) {
|
|
|
658
658
|
}
|
|
659
659
|
|
|
660
660
|
async function applyFile(source, dest, method) {
|
|
661
|
-
|
|
662
|
-
|
|
661
|
+
const srcPath = path.resolve(source);
|
|
662
|
+
const destPath = path.resolve(dest);
|
|
663
|
+
|
|
664
|
+
// Case-insensitive check for Windows compatibility
|
|
665
|
+
if (srcPath.toLowerCase() === destPath.toLowerCase()) {
|
|
666
|
+
// console.log(chalk.gray(` (Skipping self-install: ${path.basename(source)})`));
|
|
663
667
|
return;
|
|
664
668
|
}
|
|
665
669
|
if (fs.existsSync(dest) || (fs.existsSync(path.dirname(dest)) && fs.readdirSync(path.dirname(dest)).includes(path.basename(dest)))) {
|