claude-agent-skills 1.3.8 → 1.4.0
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/banner.js +14 -13
- package/lib/picker.js +3 -4
- package/lib/theme.js +23 -14
- package/package.json +1 -1
- package/skills.json +1 -1
package/lib/banner.js
CHANGED
|
@@ -23,20 +23,21 @@ const SKILLS_LINES = [
|
|
|
23
23
|
const ART = [...CLAUDE_LINES, ...SKILLS_LINES];
|
|
24
24
|
const MAX_WIDTH = Math.max(...ART.map(l => l.length));
|
|
25
25
|
|
|
26
|
-
//
|
|
26
|
+
// Colour palette per art line — crimson gradient top → deep red bottom.
|
|
27
|
+
// To restore pride rainbow: replace each entry with the pride colours.
|
|
27
28
|
const PRIDE = [
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
31
|
-
[
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[
|
|
35
|
-
[
|
|
36
|
-
[
|
|
37
|
-
[
|
|
38
|
-
[
|
|
39
|
-
[
|
|
29
|
+
[240, 65, 65],
|
|
30
|
+
[230, 55, 55],
|
|
31
|
+
[215, 42, 42],
|
|
32
|
+
[200, 32, 32],
|
|
33
|
+
[185, 25, 25],
|
|
34
|
+
[170, 18, 18],
|
|
35
|
+
[155, 13, 13],
|
|
36
|
+
[140, 10, 10],
|
|
37
|
+
[125, 8, 8],
|
|
38
|
+
[110, 6, 6],
|
|
39
|
+
[ 95, 4, 4],
|
|
40
|
+
[ 80, 3, 3],
|
|
40
41
|
];
|
|
41
42
|
|
|
42
43
|
const sleep = ms => new Promise(r => setTimeout(r, ms));
|
package/lib/picker.js
CHANGED
|
@@ -106,13 +106,12 @@ export async function skillPicker({ message, options }) {
|
|
|
106
106
|
|
|
107
107
|
function draw() {
|
|
108
108
|
const lines = renderGrid();
|
|
109
|
-
|
|
110
|
-
if (lastLines > 0) {
|
|
111
|
-
process.stdout.write(`\x1b[${lastLines}A`);
|
|
112
|
-
}
|
|
109
|
+
if (lastLines > 0) process.stdout.write(`\x1b[${lastLines}A`);
|
|
113
110
|
for (const line of lines) {
|
|
114
111
|
process.stdout.write('\x1b[2K' + line + '\n');
|
|
115
112
|
}
|
|
113
|
+
// Erase any leftover content from a previously taller render
|
|
114
|
+
process.stdout.write('\x1b[0J');
|
|
116
115
|
lastLines = lines.length;
|
|
117
116
|
}
|
|
118
117
|
|
package/lib/theme.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import ansis from 'ansis';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// ── Colour mode ─────────────────────────────────────────────────────────────
|
|
4
|
+
// Flip PRIDE_MODE to true for pride month to restore rainbow palette.
|
|
5
|
+
export const PRIDE_MODE = false;
|
|
6
|
+
|
|
7
|
+
export const BRAND_HEX = '#B91919'; // metallic crimson
|
|
4
8
|
|
|
5
9
|
const ok = () => !process.env.NO_COLOR && ansis.isSupported();
|
|
6
10
|
|
|
@@ -11,25 +15,30 @@ export const muted = t => ok() ? ansis.dim(t) : t;
|
|
|
11
15
|
export const white = t => ok() ? ansis.white(t) : t;
|
|
12
16
|
export const strip = t => ansis.strip(t);
|
|
13
17
|
|
|
14
|
-
//
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
// Metallic crimson — bright at index 0, steps down, then back up (cycling shimmer)
|
|
19
|
+
const CRIMSON = [
|
|
20
|
+
[235, 60, 60],
|
|
21
|
+
[210, 38, 38],
|
|
22
|
+
[185, 25, 25],
|
|
23
|
+
[160, 15, 15],
|
|
24
|
+
[185, 25, 25],
|
|
25
|
+
[210, 38, 38],
|
|
26
|
+
];
|
|
17
27
|
|
|
28
|
+
// Pride rainbow — restore for pride month
|
|
18
29
|
const PRIDE_PALETTE = [
|
|
19
|
-
[220, 30, 30],
|
|
20
|
-
[255, 140, 0],
|
|
21
|
-
[220, 200, 0],
|
|
22
|
-
[ 30, 185, 30],
|
|
23
|
-
[ 30, 100, 255],
|
|
24
|
-
[150, 30, 230],
|
|
30
|
+
[220, 30, 30],
|
|
31
|
+
[255, 140, 0],
|
|
32
|
+
[220, 200, 0],
|
|
33
|
+
[ 30, 185, 30],
|
|
34
|
+
[ 30, 100, 255],
|
|
35
|
+
[150, 30, 230],
|
|
25
36
|
];
|
|
26
37
|
|
|
27
|
-
// Returns a color function for the nth skill. Cycles through pride palette in
|
|
28
|
-
// PRIDE_MODE, falls back to brand pink otherwise.
|
|
29
38
|
export function skillColor(index) {
|
|
30
39
|
if (!ok()) return t => t;
|
|
31
|
-
|
|
32
|
-
const [r, g, b] =
|
|
40
|
+
const palette = PRIDE_MODE ? PRIDE_PALETTE : CRIMSON;
|
|
41
|
+
const [r, g, b] = palette[index % palette.length];
|
|
33
42
|
return t => ansis.rgb(r, g, b)(t);
|
|
34
43
|
}
|
|
35
44
|
|
package/package.json
CHANGED