sdd-skills 1.0.0 ā 1.0.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/install.js +25 -2
- package/package.json +1 -1
package/install.js
CHANGED
|
@@ -69,7 +69,7 @@ async function promptInstallation() {
|
|
|
69
69
|
value: 'local',
|
|
70
70
|
},
|
|
71
71
|
],
|
|
72
|
-
default
|
|
72
|
+
// Removed default to force user selection
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
type: 'confirm',
|
|
@@ -229,9 +229,32 @@ async function install() {
|
|
|
229
229
|
// Prompt for installation options
|
|
230
230
|
const answers = await promptInstallation();
|
|
231
231
|
|
|
232
|
-
//
|
|
232
|
+
// Display confirmation before installation
|
|
233
233
|
const targetDir = answers.location === 'global' ? GLOBAL_SKILLS_DIR : LOCAL_SKILLS_DIR;
|
|
234
234
|
|
|
235
|
+
console.log(chalk.bold('\nš Installation Summary:\n'));
|
|
236
|
+
console.log(` ${chalk.gray('Location:')} ${chalk.cyan(answers.location === 'global' ? 'Global' : 'Local (Current Project)')}`);
|
|
237
|
+
console.log(` ${chalk.gray('Install to:')} ${chalk.cyan(targetDir)}`);
|
|
238
|
+
console.log(` ${chalk.gray('Skills:')} ${chalk.cyan('7')} (SAE, Backend, Frontend, Tester, Reviewer, Git, Notifier)`);
|
|
239
|
+
if (answers.configureDingTalk) {
|
|
240
|
+
console.log(` ${chalk.gray('DingTalk:')} ${chalk.cyan('Enabled')}`);
|
|
241
|
+
}
|
|
242
|
+
console.log('');
|
|
243
|
+
|
|
244
|
+
const { confirmInstall } = await inquirer.prompt([
|
|
245
|
+
{
|
|
246
|
+
type: 'confirm',
|
|
247
|
+
name: 'confirmInstall',
|
|
248
|
+
message: 'Proceed with installation?',
|
|
249
|
+
default: true,
|
|
250
|
+
},
|
|
251
|
+
]);
|
|
252
|
+
|
|
253
|
+
if (!confirmInstall) {
|
|
254
|
+
console.log(chalk.yellow('\nā ļø Installation cancelled by user\n'));
|
|
255
|
+
process.exit(0);
|
|
256
|
+
}
|
|
257
|
+
|
|
235
258
|
// Install Skills
|
|
236
259
|
installSkills(targetDir);
|
|
237
260
|
|