agentskillsdk 0.3.0 → 0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentskillsdk",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Install agent skills from agentskills.dk",
5
5
  "type": "module",
6
6
  "bin": {
@@ -84,10 +84,9 @@ export async function addCommand(skillName, options) {
84
84
  agents = detected;
85
85
  } else if (detected.length > 1) {
86
86
  // Prompt: all detected vs choose specific
87
- const names = detected.map(a => a.name).join(', ');
88
- const choice = await selectPrompt('How would you like to install?', [
89
- { label: `All detected agents (${names})`, value: 'all' },
90
- { label: 'Choose specific agents...', value: 'choose' },
87
+ const choice = await selectPrompt('how would you like to install?', [
88
+ { label: `all detected agents (${detected.length})`, value: 'all' },
89
+ { label: 'choose specific agents', value: 'choose' },
91
90
  ]);
92
91
 
93
92
  if (choice === null) {
@@ -100,14 +99,14 @@ export async function addCommand(skillName, options) {
100
99
  } else {
101
100
  // Checkbox from detected agents
102
101
  const choices = detected.map(a => ({ label: a.name, value: a }));
103
- const selected = await checkboxPrompt('Select agents:', choices);
102
+ const selected = await checkboxPrompt('select agents:', choices);
104
103
  if (selected === null) continue agentSelection; // Esc → back to all/choose
105
104
  agents = selected;
106
105
  }
107
106
  } else {
108
107
  // No agents detected — show checkbox of all known agents
109
108
  const choices = AGENTS.map(a => ({ label: a.name, value: a }));
110
- const selected = await checkboxPrompt('Select agents:', choices);
109
+ const selected = await checkboxPrompt('select agents:', choices);
111
110
  if (selected === null) {
112
111
  // Esc with no detected agents → cancel
113
112
  process.exit(0);
@@ -123,9 +122,9 @@ export async function addCommand(skillName, options) {
123
122
  } else {
124
123
  // Build hint using first agent (representative)
125
124
  const a = agents[0];
126
- const result = await selectPrompt('Install scope:', [
127
- { label: 'Project', hint: `(local ${a.folder}/skills/)`, value: 'project' },
128
- { label: 'Global', hint: `(~/${a.globalFolder}/skills/)`, value: 'global' },
125
+ const result = await selectPrompt('install scope:', [
126
+ { label: 'project', hint: `(local ${a.folder}/skills/)`, value: 'project' },
127
+ { label: 'global', hint: `(~/${a.globalFolder}/skills/)`, value: 'global' },
129
128
  ]);
130
129
 
131
130
  if (result === null) {