nexscope 1.0.3 → 1.0.4
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 +1 -1
- package/src/commands/install.js +4 -3
package/package.json
CHANGED
package/src/commands/install.js
CHANGED
|
@@ -29,7 +29,8 @@ Examples:
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
async function fetchSkillList() {
|
|
32
|
-
|
|
32
|
+
// --full-depth discovers nested skills inside subdirectories
|
|
33
|
+
const output = await spawnAsync('npx', ['skills', 'add', SKILLS_REPO, '--list', '--full-depth']);
|
|
33
34
|
// Strip ANSI escape codes and extract skill names from lines like "│ <skill-name>"
|
|
34
35
|
const clean = output.replace(/\x1B\[[0-9;?]*[a-zA-Z]/g, '');
|
|
35
36
|
const skills = [];
|
|
@@ -112,7 +113,7 @@ async function run(args) {
|
|
|
112
113
|
const tasks = new Listr([{
|
|
113
114
|
title: skillName,
|
|
114
115
|
skip: () => installed.includes(skillName) ? 'Already installed' : false,
|
|
115
|
-
task: () => runSkillsSilent(['add', SKILLS_REPO, '--skill', skillName, '-y', ...dirFlags]),
|
|
116
|
+
task: () => runSkillsSilent(['add', SKILLS_REPO, '--skill', skillName, '-y', '--full-depth', ...dirFlags]),
|
|
116
117
|
}], { exitOnError: false });
|
|
117
118
|
|
|
118
119
|
try {
|
|
@@ -134,7 +135,7 @@ async function run(args) {
|
|
|
134
135
|
skills.map((skillName) => ({
|
|
135
136
|
title: skillName,
|
|
136
137
|
skip: () => installed.includes(skillName) ? 'Already installed' : false,
|
|
137
|
-
task: () => spawnAsync('npx', ['skills', 'add', SKILLS_REPO, '--skill', skillName, '-y', ...dirFlags]),
|
|
138
|
+
task: () => spawnAsync('npx', ['skills', 'add', SKILLS_REPO, '--skill', skillName, '-y', '--full-depth', ...dirFlags]),
|
|
138
139
|
})),
|
|
139
140
|
{
|
|
140
141
|
concurrent: true,
|