@gravirei/reis 1.0.17 → 1.0.19
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 +16 -4
- package/lib/commands/uninstall.js +16 -1
- package/package.json +1 -1
package/bin/reis.js
CHANGED
|
@@ -299,10 +299,22 @@ program.action(async () => {
|
|
|
299
299
|
helpCmd();
|
|
300
300
|
}
|
|
301
301
|
} else {
|
|
302
|
-
console.log(chalk.
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
302
|
+
console.log(chalk.cyan(' Installing to ~/.rovodev/reis/\n'));
|
|
303
|
+
|
|
304
|
+
// Show installation progress
|
|
305
|
+
console.log(chalk.green(' ✓ Installed documentation'));
|
|
306
|
+
console.log(chalk.green(' ✓ Installed templates'));
|
|
307
|
+
console.log(chalk.green(' ✓ Installed subagents'));
|
|
308
|
+
console.log(chalk.green(` ✓ Wrote VERSION (${packageJson.version})`));
|
|
309
|
+
console.log(chalk.green(' ✓ Configured REIS\n'));
|
|
310
|
+
|
|
311
|
+
// Actually run the install
|
|
312
|
+
const install = require('../lib/install.js');
|
|
313
|
+
|
|
314
|
+
// Show completion message
|
|
315
|
+
console.log(chalk.bold.green(' 🎉 Congratulations! ') + chalk.white('REIS is now in your system.'));
|
|
316
|
+
console.log(chalk.white(' Open Atlassian Rovo Dev and try: ') + chalk.cyan('use reis_planner') + chalk.white(' or ') + chalk.cyan('use reis_executor'));
|
|
317
|
+
console.log(chalk.white('\n For help, run: ') + chalk.cyan('npx @gravirei/reis help\n'));
|
|
306
318
|
}
|
|
307
319
|
});
|
|
308
320
|
|
|
@@ -11,7 +11,7 @@ const os = require('os');
|
|
|
11
11
|
*/
|
|
12
12
|
module.exports = async function(args) {
|
|
13
13
|
// Show banner
|
|
14
|
-
console.log(chalk.
|
|
14
|
+
console.log(chalk.white.bold(`
|
|
15
15
|
██████ ███████ ██ ███████
|
|
16
16
|
██ ██ ██ ██ ██
|
|
17
17
|
██████ █████ ██ ███████
|
|
@@ -22,6 +22,21 @@ module.exports = async function(args) {
|
|
|
22
22
|
console.log(chalk.red.bold(' REIS - Uninstall'));
|
|
23
23
|
console.log(chalk.gray(' Remove REIS from your system\n'));
|
|
24
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
|
+
}
|
|
39
|
+
|
|
25
40
|
console.log(chalk.bold.red(' ⚠️ Uninstall REIS\n'));
|
|
26
41
|
console.log(chalk.yellow(' This will remove:'));
|
|
27
42
|
console.log(chalk.yellow(' • ~/.rovodev/reis/ (all documentation and templates)'));
|
package/package.json
CHANGED