claude-agent-skills 1.3.3 → 1.3.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/lib/prompts.js +4 -6
- package/package.json +1 -1
- package/skills.json +1 -1
package/lib/prompts.js
CHANGED
|
@@ -28,14 +28,12 @@ export async function pickSkills(names, flags = {}, descriptions = {}) {
|
|
|
28
28
|
if (flags.all) return names;
|
|
29
29
|
if (flags.skill?.length) return flags.skill;
|
|
30
30
|
|
|
31
|
-
//
|
|
32
|
-
// prefix
|
|
33
|
-
const
|
|
34
|
-
const descWidth = Math.max(20, termWidth - 4 - 32 - 3);
|
|
35
|
-
|
|
31
|
+
// Hard cap so descriptions never wrap — single line always fits ≥80 col terminals.
|
|
32
|
+
// prefix(4) + name(32) + divider(3) + desc(45) = 84 chars total.
|
|
33
|
+
const DESC_MAX = 45;
|
|
36
34
|
function fitDesc(s) {
|
|
37
35
|
if (!s) return '';
|
|
38
|
-
return s.length <=
|
|
36
|
+
return s.length <= DESC_MAX ? s : s.slice(0, DESC_MAX - 1) + '…';
|
|
39
37
|
}
|
|
40
38
|
|
|
41
39
|
return guard(await multiselect({
|
package/package.json
CHANGED