agentskillsdk 0.4.3 → 0.4.5

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentskillsdk",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "description": "Install agent skills from agentskills.dk",
5
5
  "type": "module",
6
6
  "bin": {
package/src/lib/prompt.js CHANGED
@@ -1,5 +1,7 @@
1
1
  import chalk from 'chalk';
2
2
 
3
+ const orange = chalk.hex('#FF8C00');
4
+
3
5
  // --- strip ANSI for width calculation ---
4
6
 
5
7
  const ANSI_RE = /\x1b\[[0-9;]*m/g;
@@ -35,8 +37,8 @@ export function selectPrompt(question, choices, { defaultIndex = 0 } = {}) {
35
37
 
36
38
  function render() {
37
39
  const lines = choices.map((c, i) => {
38
- const marker = i === selected ? chalk.cyan('\u276f') : ' ';
39
- const label = i === selected ? chalk.cyan(c.label) : c.label;
40
+ const marker = i === selected ? orange('\u276f') : ' ';
41
+ const label = i === selected ? orange(c.label) : c.label;
40
42
  const hint = c.hint ? chalk.dim(` ${c.hint}`) : '';
41
43
  return ` ${marker} ${label}${hint}`;
42
44
  });
@@ -84,7 +86,7 @@ export function selectPrompt(question, choices, { defaultIndex = 0 } = {}) {
84
86
  const upCount = totalPhysicalLines(prevLines) - 1;
85
87
  if (upCount > 0) stdout.write(`\x1b[${upCount}A`);
86
88
  stdout.write('\r\x1b[J'); // col 0, clear to end
87
- const final = ` ${chalk.cyan('\u276f')} ${chalk.cyan(choices[selected].label)}`;
89
+ const final = ` ${orange('\u276f')} ${orange(choices[selected].label)}`;
88
90
  stdout.write(final + '\n');
89
91
  cleanup();
90
92
  resolve(choices[selected].value);
@@ -150,8 +152,8 @@ export function checkboxPrompt(question, choices) {
150
152
 
151
153
  function render() {
152
154
  const lines = choices.map((c, i) => {
153
- const box = checked[i] ? chalk.cyan('◼') : '◻';
154
- const label = i === cursor ? chalk.cyan(c.label) : c.label;
155
+ const box = checked[i] ? orange('◼') : '◻';
156
+ const label = i === cursor ? orange(c.label) : c.label;
155
157
  return ` ${box} ${label}`;
156
158
  });
157
159
  lines.push('');
@@ -198,8 +200,8 @@ export function checkboxPrompt(question, choices) {
198
200
  const upCount = totalPhysicalLines(prevLines) - 1;
199
201
  if (upCount > 0) stdout.write(`\x1b[${upCount}A`);
200
202
  stdout.write('\r\x1b[J');
201
- const summary = selected.map(c => chalk.cyan(c.label)).join(', ');
202
- stdout.write(` ${chalk.cyan('❯')} ${summary}\n`);
203
+ const summary = selected.map(c => orange(c.label)).join(', ');
204
+ stdout.write(` ${orange('❯')} ${summary}\n`);
203
205
  cleanup();
204
206
  resolve(selected.map(c => c.value));
205
207
  return;
package/src/lib/ui.js CHANGED
@@ -35,7 +35,7 @@ export function box(lines, { borderColor, padding = 2 } = {}) {
35
35
 
36
36
  export function printBanner() {
37
37
  const lines = [
38
- `${chalk.bold('agentskillsdk')} ${chalk.dim(`v${pkg.version}`)}`,
38
+ `${chalk.hex('#FF8C00')('■')} ${chalk.bold('agentskillsdk')} ${chalk.dim(`v${pkg.version}`)}`,
39
39
  chalk.dim('installer skills til AI-agenter'),
40
40
  ];
41
41
  console.log('');