claude-agent-skills 1.3.0 → 1.3.1
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/prompts.js +6 -2
- package/package.json +1 -1
- package/skills.json +1 -1
package/lib/prompts.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { select, multiselect, confirm, isCancel } from '@clack/prompts';
|
|
2
|
+
import ansis from 'ansis';
|
|
2
3
|
|
|
3
4
|
export class CliCancel extends Error {}
|
|
4
5
|
|
|
@@ -26,8 +27,11 @@ export async function pickSkills(names, flags = {}, descriptions = {}) {
|
|
|
26
27
|
if (flags.all) return names;
|
|
27
28
|
if (flags.skill?.length) return flags.skill;
|
|
28
29
|
return guard(await multiselect({
|
|
29
|
-
message: 'Select skills
|
|
30
|
-
options: names.map(n =>
|
|
30
|
+
message: 'Select skills (space to toggle, a for all, enter to confirm)',
|
|
31
|
+
options: names.map(n => {
|
|
32
|
+
const desc = descriptions[n] ? ansis.dim(' ' + descriptions[n].slice(0, 50)) : '';
|
|
33
|
+
return { value: n, label: n.padEnd(34) + desc };
|
|
34
|
+
}),
|
|
31
35
|
required: true,
|
|
32
36
|
}));
|
|
33
37
|
}
|
package/package.json
CHANGED