@gravirei/reis 1.1.6 → 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.
package/bin/reis.js CHANGED
@@ -243,48 +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
- // Show installation progress
274
- console.log(chalk.green(' ✓ Installed documentation'));
275
- console.log(chalk.green(' ✓ Installed templates'));
276
- console.log(chalk.green(' ✓ Installed subagents'));
277
- console.log(chalk.green(` ✓ Wrote VERSION (${packageJson.version})`));
278
- console.log(chalk.green(' ✓ Configured REIS\n'));
264
+ // Perform installation directly
265
+ const { performInstallation } = require('../lib/install.js');
266
+ await performInstallation();
279
267
 
280
- const { install } = require('../lib/install.js');
281
- await install();
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'));
282
272
  } else {
283
273
  console.log(chalk.cyan(' Keeping existing installation\n'));
284
274
  console.log(chalk.green(' ✓ Using existing documentation'));
285
275
  console.log(chalk.green(' ✓ Using existing templates'));
286
276
  console.log(chalk.green(' ✓ Using existing subagents'));
287
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'));
288
281
  }
289
282
 
290
283
  // Show completion message
@@ -301,72 +294,48 @@ program.action(async () => {
301
294
  } else {
302
295
  // First-time installation
303
296
  console.log(chalk.green(' REIS is not installed yet.\n'));
304
- console.log(chalk.white(' What would you like to do?\n'));
305
- console.log(chalk.white(' 1) Install REIS'));
306
- console.log(chalk.white(' 2) Cancel\n'));
307
-
308
- let choice = '1';
309
297
 
298
+ // Use inquirer for simple input prompt
299
+ const inquirer = require('inquirer');
310
300
  try {
311
- const result = await inquirer.prompt([
301
+ const { confirm } = await inquirer.prompt([
312
302
  {
313
- type: 'input',
314
- name: 'choice',
315
- message: 'Choice:',
316
- default: '1',
317
- validate: (input) => {
318
- if (input === '1' || input === '2') {
319
- return true;
320
- }
321
- return 'Please enter 1 or 2';
322
- }
303
+ type: 'confirm',
304
+ name: 'confirm',
305
+ message: 'Proceed with installation?',
306
+ default: true
323
307
  }
324
308
  ]);
325
309
 
326
- choice = result.choice;
327
310
  console.log('');
328
311
 
329
- if (choice === '2') {
312
+ if (!confirm) {
330
313
  console.log(chalk.yellow(' Installation cancelled\n'));
331
314
  return;
332
315
  }
333
316
 
334
317
  console.log(chalk.cyan(' Installing to ~/.rovodev/reis/\n'));
335
318
 
336
- // Show installation progress
337
- console.log(chalk.green(' ✓ Installed documentation'));
338
- console.log(chalk.green(' ✓ Installed templates'));
339
- console.log(chalk.green(' ✓ Installed subagents'));
340
- console.log(chalk.green(` ✓ Wrote VERSION (${packageJson.version})`));
341
- console.log(chalk.green(' ✓ Configured REIS\n'));
342
-
343
- // Actually run the install
344
- const { install } = require('../lib/install.js');
345
- await install();
319
+ // Perform installation directly
320
+ const { performInstallation } = require('../lib/install.js');
321
+ await performInstallation();
346
322
 
347
323
  // Show completion message
348
- 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.'));
349
325
  console.log(chalk.white(' Open Atlassian Rovo Dev and try: ') + chalk.cyan('use reis_planner') + chalk.white(' or ') + chalk.cyan('use reis_executor'));
350
326
  console.log(chalk.white('\n For help, run: ') + chalk.cyan('npx @gravirei/reis help\n'));
351
327
 
352
328
  } catch (err) {
353
- // inquirer failed, auto-install as default (choice was '1')
329
+ // inquirer failed, auto-install as default
354
330
  console.log(chalk.gray(' Non-interactive mode - installing automatically...\n'));
355
331
  console.log(chalk.cyan(' Installing to ~/.rovodev/reis/\n'));
356
332
 
357
- // Show installation progress
358
- console.log(chalk.green(' ✓ Installed documentation'));
359
- console.log(chalk.green(' ✓ Installed templates'));
360
- console.log(chalk.green(' ✓ Installed subagents'));
361
- console.log(chalk.green(` ✓ Wrote VERSION (${packageJson.version})`));
362
- console.log(chalk.green(' ✓ Configured REIS\n'));
363
-
364
- // Actually run the install
365
- const { install } = require('../lib/install.js');
366
- await install();
333
+ // Perform installation directly
334
+ const { performInstallation } = require('../lib/install.js');
335
+ await performInstallation();
367
336
 
368
337
  // Show completion message
369
- 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.'));
370
339
  console.log(chalk.white(' Open Atlassian Rovo Dev and try: ') + chalk.cyan('use reis_planner') + chalk.white(' or ') + chalk.cyan('use reis_executor'));
371
340
  console.log(chalk.white('\n For help, run: ') + chalk.cyan('npx @gravirei/reis help\n'));
372
341
  }
package/lib/install.js CHANGED
@@ -262,4 +262,4 @@ if (require.main === module) {
262
262
  });
263
263
  }
264
264
 
265
- module.exports = { install };
265
+ module.exports = { install, performInstallation };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravirei/reis",
3
- "version": "1.1.6",
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": {