@gravirei/reis 1.0.12 β†’ 1.0.14

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.
@@ -10,13 +10,13 @@ module.exports = function help() {
10
10
  console.log(chalk.gray(` Version ${version}`));
11
11
  console.log(chalk.gray(' Documentation: ~/.rovodev/reis/\\n'));
12
12
 
13
- console.log(chalk.bold.yellow('πŸš€ Getting Started'));
13
+ console.log(chalk.bold.yellow('Getting Started'));
14
14
  console.log(' ' + chalk.cyan('reis new [idea]') + ' Initialize a new REIS project');
15
15
  console.log(' ' + chalk.cyan('reis map') + ' Analyze and map existing codebase');
16
16
  console.log(' ' + chalk.cyan('reis requirements') + ' Generate or update requirements document');
17
17
  console.log(' ' + chalk.cyan('reis roadmap') + ' Generate or update project roadmap');
18
18
 
19
- console.log(chalk.bold.yellow('\nβš™οΈ Phase Management'));
19
+ console.log(chalk.bold.yellow('\nPhase Management'));
20
20
  console.log(' ' + chalk.cyan('reis plan [phase]') + ' Create detailed plan for a phase');
21
21
  console.log(' ' + chalk.cyan('reis discuss [phase]') + ' Discuss implementation approach');
22
22
  console.log(' ' + chalk.cyan('reis research [phase]') + ' Research technical solutions');
@@ -25,22 +25,22 @@ module.exports = function help() {
25
25
  console.log(' ' + chalk.cyan('reis execute-plan') + ' Execute a specific plan file');
26
26
  console.log(' ' + chalk.cyan('reis verify [phase]') + ' Verify phase completion');
27
27
 
28
- console.log(chalk.bold.yellow('\nπŸ“Š Progress & State'));
28
+ console.log(chalk.bold.yellow('\nProgress & State'));
29
29
  console.log(' ' + chalk.cyan('reis progress') + ' Show current project progress');
30
30
  console.log(' ' + chalk.cyan('reis pause') + ' Pause current work and save state');
31
31
  console.log(' ' + chalk.cyan('reis resume') + ' Resume paused work');
32
32
 
33
- console.log(chalk.bold.yellow('\nπŸ—ΊοΈ Roadmap Management'));
33
+ console.log(chalk.bold.yellow('\nRoadmap Management'));
34
34
  console.log(' ' + chalk.cyan('reis add <feature>') + ' Add feature to roadmap');
35
35
  console.log(' ' + chalk.cyan('reis insert <phase>') + ' Insert feature at specific phase');
36
36
  console.log(' ' + chalk.cyan('reis remove <phase>') + ' Remove phase from roadmap');
37
37
 
38
- console.log(chalk.bold.yellow('\n🎯 Milestones'));
38
+ console.log(chalk.bold.yellow('\nMilestones'));
39
39
  console.log(' ' + chalk.cyan('reis milestone complete') + ' Mark milestone as complete');
40
40
  console.log(' ' + chalk.cyan('reis milestone discuss') + ' Discuss milestone approach');
41
41
  console.log(' ' + chalk.cyan('reis milestone new') + ' Create new milestone');
42
42
 
43
- console.log(chalk.bold.yellow('\nπŸ”§ Utilities'));
43
+ console.log(chalk.bold.yellow('\nUtilities'));
44
44
  console.log(' ' + chalk.cyan('reis todo <desc>') + ' Add a TODO item');
45
45
  console.log(' ' + chalk.cyan('reis todos [area]') + ' List TODO items');
46
46
  console.log(' ' + chalk.cyan('reis debug <issue>') + ' Debug a specific issue');
@@ -49,13 +49,13 @@ module.exports = function help() {
49
49
  console.log(' ' + chalk.cyan('reis docs') + ' Open REIS documentation');
50
50
  console.log(' ' + chalk.cyan('reis uninstall') + ' Uninstall REIS');
51
51
 
52
- console.log(chalk.bold.yellow('\\n❓ Help & Info'));
52
+ console.log(chalk.bold.yellow('\\nHelp & Info'));
53
53
  console.log(' ' + chalk.cyan('reis help') + ' Show this help message');
54
54
  console.log(' ' + chalk.cyan('reis version') + ' Show version and install location');
55
55
 
56
- console.log(chalk.gray('\\n πŸ“š Full documentation: ~/.rovodev/reis/README.md'));
57
- console.log(chalk.gray(' πŸ’‘ Examples: ~/.rovodev/reis/WORKFLOW_EXAMPLES.md'));
58
- console.log(chalk.gray(' ⚑ Quick reference: ~/.rovodev/reis/QUICK_REFERENCE.md'));
56
+ console.log(chalk.gray('\\n Full documentation: ~/.rovodev/reis/README.md'));
57
+ console.log(chalk.gray(' Examples: ~/.rovodev/reis/WORKFLOW_EXAMPLES.md'));
58
+ console.log(chalk.gray(' Quick reference: ~/.rovodev/reis/QUICK_REFERENCE.md'));
59
59
  console.log(chalk.gray('\\n Example: ' + chalk.cyan('reis new "build a todo app"') + '\\n'));
60
60
 
61
61
  return 0;
@@ -1,21 +1,70 @@
1
- const { showInfo } = require('../utils/command-helpers.js');
1
+ const { showInfo, showSuccess, showError } = require('../utils/command-helpers.js');
2
2
  const chalk = require('chalk');
3
+ const inquirer = require('inquirer');
4
+ const fs = require('fs');
5
+ const path = require('path');
6
+ const os = require('os');
3
7
 
4
8
  /**
5
- * Uninstall command - show uninstall instructions
9
+ * Uninstall command - remove REIS files with confirmation
6
10
  * @param {Object} args - {}
7
11
  */
8
- module.exports = function(args) {
9
- showInfo('Uninstall REIS');
10
- showInfo('');
11
- showInfo('To remove REIS files:');
12
- showInfo(' rm -rf ~/.rovodev/reis/');
13
- showInfo(' rm -rf ~/.rovodev/subagents/reis_*.md');
14
- showInfo('');
15
- showInfo('To uninstall the package:');
16
- showInfo(' npm uninstall -g reis');
17
- showInfo('(If installed via npx, no package uninstall needed)');
18
- showInfo('');
19
- console.log(chalk.yellow('Warning: This will remove all REIS documentation and templates.'));
20
- console.log(chalk.yellow('Your project .planning/ directories will not be affected.'));
12
+ module.exports = async function(args) {
13
+ console.log(chalk.bold.red('\n⚠️ Uninstall REIS\n'));
14
+ console.log(chalk.yellow('This will remove:'));
15
+ console.log(chalk.yellow(' β€’ ~/.rovodev/reis/ (all documentation and templates)'));
16
+ console.log(chalk.yellow(' β€’ ~/.rovodev/subagents/reis_*.md (all REIS subagents)'));
17
+ console.log(chalk.gray('\nYour project .planning/ directories will NOT be affected.\n'));
18
+
19
+ try {
20
+ const { confirm } = await inquirer.prompt([
21
+ {
22
+ type: 'confirm',
23
+ name: 'confirm',
24
+ message: 'Are you sure you want to uninstall REIS?',
25
+ default: false
26
+ }
27
+ ]);
28
+
29
+ if (!confirm) {
30
+ console.log(chalk.green('\nβœ“ Uninstall cancelled\n'));
31
+ return;
32
+ }
33
+
34
+ console.log(chalk.cyan('\nUninstalling REIS...\n'));
35
+
36
+ // Remove REIS directory
37
+ const reisDir = path.join(os.homedir(), '.rovodev', 'reis');
38
+ if (fs.existsSync(reisDir)) {
39
+ fs.rmSync(reisDir, { recursive: true, force: true });
40
+ console.log(chalk.green('βœ“ Removed ~/.rovodev/reis/'));
41
+ } else {
42
+ console.log(chalk.gray('β—‹ ~/.rovodev/reis/ not found'));
43
+ }
44
+
45
+ // Remove REIS subagents
46
+ const subagentsDir = path.join(os.homedir(), '.rovodev', 'subagents');
47
+ const subagents = ['reis_planner.md', 'reis_executor.md', 'reis_project_mapper.md'];
48
+ let removedCount = 0;
49
+
50
+ subagents.forEach(file => {
51
+ const filePath = path.join(subagentsDir, file);
52
+ if (fs.existsSync(filePath)) {
53
+ fs.unlinkSync(filePath);
54
+ removedCount++;
55
+ }
56
+ });
57
+
58
+ if (removedCount > 0) {
59
+ console.log(chalk.green(`βœ“ Removed ${removedCount} REIS subagent(s)`));
60
+ } else {
61
+ console.log(chalk.gray('β—‹ No REIS subagents found'));
62
+ }
63
+
64
+ console.log(chalk.bold.green('\nβœ“ REIS uninstalled successfully!\n'));
65
+ console.log(chalk.gray('Note: If installed globally, run: npm uninstall -g @gravirei/reis\n'));
66
+
67
+ } catch (err) {
68
+ console.log(chalk.red('\nβœ— Uninstall cancelled or failed\n'));
69
+ }
21
70
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravirei/reis",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
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": {