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 +1 -1
- package/src/commands/add.js +8 -9
package/package.json
CHANGED
package/src/commands/add.js
CHANGED
|
@@ -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
|
|
88
|
-
|
|
89
|
-
{ label:
|
|
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('
|
|
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('
|
|
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('
|
|
127
|
-
{ label: '
|
|
128
|
-
{ label: '
|
|
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) {
|