@eve-horizon/cli 0.2.53 → 0.2.54
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 +11 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -73590,27 +73590,22 @@ async function handleInstall(positionals, flags) {
|
|
|
73590
73590
|
return;
|
|
73591
73591
|
}
|
|
73592
73592
|
const packsInstalled = installPackSkills(skillsBin, projectRoot);
|
|
73593
|
-
if (packsInstalled) {
|
|
73594
|
-
ensureSkillsSymlink(projectRoot);
|
|
73595
|
-
console.log("Skills install complete (from packs)");
|
|
73596
|
-
return;
|
|
73597
|
-
}
|
|
73598
73593
|
const manifest = parseSkillsManifest(manifestPath);
|
|
73599
|
-
if (manifest.length
|
|
73600
|
-
|
|
73594
|
+
if (manifest.length > 0) {
|
|
73595
|
+
const toInstall = skipInstalled ? manifest.filter((s) => !getInstalledSkills(skillsDir).has(s.name)) : manifest;
|
|
73596
|
+
if (toInstall.length > 0) {
|
|
73597
|
+
console.log(`Installing ${toInstall.length} skill(s) from skills.txt...`);
|
|
73598
|
+
for (const skill of toInstall) {
|
|
73599
|
+
installSkill(skillsBin, skill, projectRoot);
|
|
73600
|
+
}
|
|
73601
|
+
}
|
|
73602
|
+
}
|
|
73603
|
+
if (!packsInstalled && manifest.length === 0) {
|
|
73604
|
+
console.log("No packs or skills.txt found; nothing to install");
|
|
73601
73605
|
console.log("Usage: eve skills install <source>");
|
|
73602
73606
|
console.log(" e.g. eve skills install https://github.com/org/skillpack");
|
|
73603
73607
|
return;
|
|
73604
73608
|
}
|
|
73605
|
-
const toInstall = skipInstalled ? manifest.filter((s) => !getInstalledSkills(skillsDir).has(s.name)) : manifest;
|
|
73606
|
-
if (toInstall.length === 0) {
|
|
73607
|
-
console.log("All skills already installed (use without --skip-installed to update)");
|
|
73608
|
-
} else {
|
|
73609
|
-
console.log(`Installing ${toInstall.length} skill(s)...`);
|
|
73610
|
-
for (const skill of toInstall) {
|
|
73611
|
-
installSkill(skillsBin, skill, projectRoot);
|
|
73612
|
-
}
|
|
73613
|
-
}
|
|
73614
73609
|
ensureSkillsSymlink(projectRoot);
|
|
73615
73610
|
console.log("Skills install complete");
|
|
73616
73611
|
}
|