ma-agents 2.3.0 → 2.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/bin/cli.js +29 -13
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -189,21 +189,37 @@ async function installWizard(preselectedSkill, preselectedAgents, customPath, fo
|
|
|
189
189
|
|
|
190
190
|
// Step 1: Select skills
|
|
191
191
|
if (selectedSkillIds.length === 0 || isUpdate) {
|
|
192
|
-
const {
|
|
193
|
-
type: '
|
|
194
|
-
name: '
|
|
195
|
-
message: '
|
|
196
|
-
choices:
|
|
197
|
-
title:
|
|
198
|
-
value:
|
|
199
|
-
|
|
200
|
-
})),
|
|
201
|
-
instructions: chalk.gray(' Use space to select, enter to confirm'),
|
|
202
|
-
min: 1
|
|
192
|
+
const { selectionType } = await prompts({
|
|
193
|
+
type: 'select',
|
|
194
|
+
name: 'selectionType',
|
|
195
|
+
message: 'Would you like to install all available skills or choose specific ones?',
|
|
196
|
+
choices: [
|
|
197
|
+
{ title: 'Install all available skills', value: 'all' },
|
|
198
|
+
{ title: 'Choose which skills to install', value: 'custom' }
|
|
199
|
+
]
|
|
203
200
|
});
|
|
204
201
|
|
|
205
|
-
if (!
|
|
206
|
-
|
|
202
|
+
if (!selectionType) process.exit(0);
|
|
203
|
+
|
|
204
|
+
if (selectionType === 'all') {
|
|
205
|
+
selectedSkillIds = skills.map(s => s.id);
|
|
206
|
+
} else {
|
|
207
|
+
const { skills: chosen } = await prompts({
|
|
208
|
+
type: 'multiselect',
|
|
209
|
+
name: 'skills',
|
|
210
|
+
message: 'Select the skills you want to have installed:',
|
|
211
|
+
choices: skills.map(s => ({
|
|
212
|
+
title: chalk.white(s.name) + chalk.gray(` v${s.version} - ${s.description}`),
|
|
213
|
+
value: s.id,
|
|
214
|
+
selected: selectedSkillIds.includes(s.id)
|
|
215
|
+
})),
|
|
216
|
+
instructions: chalk.gray(' Use space to select, enter to confirm'),
|
|
217
|
+
min: 1
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
if (!chosen) process.exit(0);
|
|
221
|
+
selectedSkillIds = chosen;
|
|
222
|
+
}
|
|
207
223
|
}
|
|
208
224
|
|
|
209
225
|
// Step 2: Select agents
|