@gravirei/reis 1.0.16 → 1.0.18
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/lib/commands/uninstall.js +17 -2
- package/package.json +1 -1
|
@@ -19,8 +19,23 @@ module.exports = async function(args) {
|
|
|
19
19
|
██ ██ ███████ ██ ███████
|
|
20
20
|
`));
|
|
21
21
|
|
|
22
|
-
console.log(chalk.
|
|
23
|
-
console.log(chalk.gray('
|
|
22
|
+
console.log(chalk.red.bold(' REIS - Uninstall'));
|
|
23
|
+
console.log(chalk.gray(' Remove REIS from your system\n'));
|
|
24
|
+
|
|
25
|
+
// Check if REIS is installed
|
|
26
|
+
const reisDir = path.join(os.homedir(), '.rovodev', 'reis');
|
|
27
|
+
const subagentsDir = path.join(os.homedir(), '.rovodev', 'subagents');
|
|
28
|
+
const subagents = ['reis_planner.md', 'reis_executor.md', 'reis_project_mapper.md'];
|
|
29
|
+
|
|
30
|
+
const reisExists = fs.existsSync(reisDir);
|
|
31
|
+
const subagentsExist = subagents.some(file => fs.existsSync(path.join(subagentsDir, file)));
|
|
32
|
+
|
|
33
|
+
if (!reisExists && !subagentsExist) {
|
|
34
|
+
console.log(chalk.yellow(' ⚠️ REIS is not installed\n'));
|
|
35
|
+
console.log(chalk.gray(' There is nothing to uninstall.'));
|
|
36
|
+
console.log(chalk.gray(' REIS files were not found in ~/.rovodev/\n'));
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
24
39
|
|
|
25
40
|
console.log(chalk.bold.red(' ⚠️ Uninstall REIS\n'));
|
|
26
41
|
console.log(chalk.yellow(' This will remove:'));
|
package/package.json
CHANGED