@gravirei/reis 1.1.7 → 1.1.8

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.
Files changed (2) hide show
  1. package/bin/reis.js +26 -37
  2. package/package.json +1 -1
package/bin/reis.js CHANGED
@@ -243,42 +243,41 @@ program.action(async () => {
243
243
 
244
244
  if (isInstalled) {
245
245
  console.log(chalk.yellow(' ⚠️ REIS is already installed at ~/.rovodev/reis/\n'));
246
- console.log(chalk.white(' What would you like to do?\n'));
247
- console.log(chalk.white(' 1) Keep existing installation'));
248
- console.log(chalk.white(' 2) Reinstall (replace existing files)\n'));
249
246
 
250
247
  // Use inquirer for simple input prompt
251
248
  const inquirer = require('inquirer');
252
249
  try {
253
- const { choice } = await inquirer.prompt([
250
+ const { reinstall } = await inquirer.prompt([
254
251
  {
255
- type: 'input',
256
- name: 'choice',
257
- message: 'Choice:',
258
- default: '1',
259
- validate: (input) => {
260
- if (input === '1' || input === '2') {
261
- return true;
262
- }
263
- return 'Please enter 1 or 2';
264
- }
252
+ type: 'confirm',
253
+ name: 'reinstall',
254
+ message: 'Reinstall and replace existing files?',
255
+ default: false
265
256
  }
266
257
  ]);
267
258
 
268
259
  console.log('');
269
260
 
270
- if (choice === '2') {
271
- console.log(chalk.cyan(' Installing to ~/.rovodev/reis/\n'));
261
+ if (reinstall) {
262
+ console.log(chalk.cyan(' Reinstalling to ~/.rovodev/reis/\n'));
272
263
 
273
264
  // Perform installation directly
274
265
  const { performInstallation } = require('../lib/install.js');
275
266
  await performInstallation();
267
+
268
+ // Show completion message
269
+ console.log(chalk.bold.green('\n 🎉 REIS has been reinstalled successfully!'));
270
+ console.log(chalk.white(' Open Atlassian Rovo Dev and try: ') + chalk.cyan('use reis_planner') + chalk.white(' or ') + chalk.cyan('use reis_executor'));
271
+ console.log(chalk.white('\n For help, run: ') + chalk.cyan('npx @gravirei/reis help\n'));
276
272
  } else {
277
273
  console.log(chalk.cyan(' Keeping existing installation\n'));
278
274
  console.log(chalk.green(' ✓ Using existing documentation'));
279
275
  console.log(chalk.green(' ✓ Using existing templates'));
280
276
  console.log(chalk.green(' ✓ Using existing subagents'));
281
277
  console.log(chalk.green(` ✓ Current VERSION (${packageJson.version})\n`));
278
+
279
+ // Show help
280
+ console.log(chalk.white(' For help, run: ') + chalk.cyan('npx @gravirei/reis help\n'));
282
281
  }
283
282
 
284
283
  // Show completion message
@@ -295,32 +294,22 @@ program.action(async () => {
295
294
  } else {
296
295
  // First-time installation
297
296
  console.log(chalk.green(' REIS is not installed yet.\n'));
298
- console.log(chalk.white(' What would you like to do?\n'));
299
- console.log(chalk.white(' 1) Install REIS'));
300
- console.log(chalk.white(' 2) Cancel\n'));
301
-
302
- let choice = '1';
303
297
 
298
+ // Use inquirer for simple input prompt
299
+ const inquirer = require('inquirer');
304
300
  try {
305
- const result = await inquirer.prompt([
301
+ const { confirm } = await inquirer.prompt([
306
302
  {
307
- type: 'input',
308
- name: 'choice',
309
- message: 'Choice:',
310
- default: '1',
311
- validate: (input) => {
312
- if (input === '1' || input === '2') {
313
- return true;
314
- }
315
- return 'Please enter 1 or 2';
316
- }
303
+ type: 'confirm',
304
+ name: 'confirm',
305
+ message: 'Proceed with installation?',
306
+ default: true
317
307
  }
318
308
  ]);
319
309
 
320
- choice = result.choice;
321
310
  console.log('');
322
311
 
323
- if (choice === '2') {
312
+ if (!confirm) {
324
313
  console.log(chalk.yellow(' Installation cancelled\n'));
325
314
  return;
326
315
  }
@@ -332,12 +321,12 @@ program.action(async () => {
332
321
  await performInstallation();
333
322
 
334
323
  // Show completion message
335
- console.log(chalk.bold.green(' 🎉 Congratulations! ') + chalk.white('REIS is now in your system.'));
324
+ console.log(chalk.bold.green('\n 🎉 Congratulations! ') + chalk.white('REIS is now in your system.'));
336
325
  console.log(chalk.white(' Open Atlassian Rovo Dev and try: ') + chalk.cyan('use reis_planner') + chalk.white(' or ') + chalk.cyan('use reis_executor'));
337
326
  console.log(chalk.white('\n For help, run: ') + chalk.cyan('npx @gravirei/reis help\n'));
338
327
 
339
328
  } catch (err) {
340
- // inquirer failed, auto-install as default (choice was '1')
329
+ // inquirer failed, auto-install as default
341
330
  console.log(chalk.gray(' Non-interactive mode - installing automatically...\n'));
342
331
  console.log(chalk.cyan(' Installing to ~/.rovodev/reis/\n'));
343
332
 
@@ -346,7 +335,7 @@ program.action(async () => {
346
335
  await performInstallation();
347
336
 
348
337
  // Show completion message
349
- console.log(chalk.bold.green(' 🎉 Congratulations! ') + chalk.white('REIS is now in your system.'));
338
+ console.log(chalk.bold.green('\n 🎉 Congratulations! ') + chalk.white('REIS is now in your system.'));
350
339
  console.log(chalk.white(' Open Atlassian Rovo Dev and try: ') + chalk.cyan('use reis_planner') + chalk.white(' or ') + chalk.cyan('use reis_executor'));
351
340
  console.log(chalk.white('\n For help, run: ') + chalk.cyan('npx @gravirei/reis help\n'));
352
341
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravirei/reis",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "Roadmap Execution & Implementation System - Systematic development with parallel subagent execution for Atlassian Rovo Dev",
5
5
  "main": "lib/index.js",
6
6
  "bin": {