@gravirei/reis 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/lib/install.js +12 -3
  2. package/package.json +1 -1
package/lib/install.js CHANGED
@@ -21,7 +21,9 @@ ${chalk.white.bold(' ██ ██ ███████ ██ ████
21
21
  // Check if running in CI environment or sudo (where stdin is not available)
22
22
  const isCIEnvironment = process.env.CI === 'true' || process.argv.includes('--silent');
23
23
  const isSudo = process.getuid && process.getuid() === 0;
24
- const isInteractive = !isCIEnvironment && !isSudo && process.stdin.isTTY;
24
+ // Check if stdin is actually readable (not just isTTY)
25
+ const hasInteractiveStdin = process.stdin.isTTY && !process.stdin.destroyed && typeof process.stdin.read === 'function';
26
+ const isInteractive = !isCIEnvironment && !isSudo && hasInteractiveStdin;
25
27
 
26
28
  // Main installation function
27
29
  async function install() {
@@ -45,6 +47,13 @@ async function install() {
45
47
  // Interactive mode - show prompt
46
48
  console.log(chalk.white('This will install REIS files to ~/.rovodev/reis/\n'));
47
49
 
50
+ // Double-check we can actually prompt
51
+ if (!isInteractive) {
52
+ console.log(chalk.gray('Non-interactive mode detected - installing automatically...\n'));
53
+ await performInstallation();
54
+ return;
55
+ }
56
+
48
57
  try {
49
58
  // Prompt for confirmation
50
59
  const { confirm } = await inquirer.prompt([
@@ -64,8 +73,8 @@ async function install() {
64
73
  console.log('');
65
74
  await performInstallation();
66
75
  } catch (promptError) {
67
- // inquirer failed (likely no TTY), install anyway
68
- console.log(chalk.gray('No interactive terminal detected - installing automatically...\n'));
76
+ // inquirer failed, install anyway
77
+ console.log(chalk.gray('Prompt failed - installing automatically...\n'));
69
78
  await performInstallation();
70
79
  }
71
80
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravirei/reis",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
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": {