@gravirei/reis 1.0.3 → 1.0.4
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 +43 -0
- package/package.json +1 -1
package/bin/reis.js
CHANGED
|
@@ -2,6 +2,49 @@
|
|
|
2
2
|
|
|
3
3
|
const { program } = require('commander');
|
|
4
4
|
const packageJson = require('../package.json');
|
|
5
|
+
const fs = require('fs');
|
|
6
|
+
const path = require('path');
|
|
7
|
+
const os = require('os');
|
|
8
|
+
const chalk = require('chalk');
|
|
9
|
+
|
|
10
|
+
// Check for first run and show welcome banner
|
|
11
|
+
function checkFirstRun() {
|
|
12
|
+
const markerPath = path.join(os.homedir(), '.rovodev', 'reis', '.first-run-done');
|
|
13
|
+
|
|
14
|
+
// If marker exists, not first run
|
|
15
|
+
if (fs.existsSync(markerPath)) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Show welcome banner
|
|
20
|
+
console.log(chalk.white.bold(`
|
|
21
|
+
██████ ███████ ██ ███████
|
|
22
|
+
██ ██ ██ ██ ██
|
|
23
|
+
██████ █████ ██ ███████
|
|
24
|
+
██ ██ ██ ██ ██
|
|
25
|
+
██ ██ ███████ ██ ███████
|
|
26
|
+
`));
|
|
27
|
+
|
|
28
|
+
console.log(chalk.blue.bold(' REIS - Roadmap Execution & Implementation System'));
|
|
29
|
+
console.log(chalk.gray(' Systematic development with parallel subagent execution\n'));
|
|
30
|
+
console.log(chalk.white(` Version ${packageJson.version}\n`));
|
|
31
|
+
|
|
32
|
+
// Create marker file
|
|
33
|
+
try {
|
|
34
|
+
const markerDir = path.dirname(markerPath);
|
|
35
|
+
if (!fs.existsSync(markerDir)) {
|
|
36
|
+
fs.mkdirSync(markerDir, { recursive: true });
|
|
37
|
+
}
|
|
38
|
+
fs.writeFileSync(markerPath, new Date().toISOString());
|
|
39
|
+
} catch (err) {
|
|
40
|
+
// Ignore errors
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
console.log('');
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Run first-run check before anything else
|
|
47
|
+
checkFirstRun();
|
|
5
48
|
|
|
6
49
|
// Command implementations - Core commands
|
|
7
50
|
const helpCmd = require('../lib/commands/help.js');
|
package/package.json
CHANGED