wogiflow 1.0.9 → 1.0.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wogiflow",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "AI-powered development workflow management system with multi-model support",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -79,14 +79,24 @@ async function main() {
79
79
  return;
80
80
  }
81
81
 
82
+ // Try to write directly to terminal (bypasses npm output capture)
83
+ let output = process.stderr; // Default fallback
84
+ try {
85
+ // Check if /dev/tty exists and is writable
86
+ fs.accessSync('/dev/tty', fs.constants.W_OK);
87
+ const fd = fs.openSync('/dev/tty', 'w');
88
+ output = { write: (msg) => fs.writeSync(fd, msg) };
89
+ } catch {
90
+ // Fallback to stderr if /dev/tty not available (Windows, CI, non-interactive)
91
+ }
92
+
82
93
  // Already initialized - short message
83
94
  if (isAlreadyInitialized()) {
84
- // Use stderr - npm suppresses stdout from postinstall
85
- process.stderr.write('\x1b[36mWogiFlow:\x1b[0m Already initialized. Run \x1b[33mnpx flow status\x1b[0m to see project state.\n');
95
+ output.write('\x1b[36mWogiFlow:\x1b[0m Already initialized. Run \x1b[33mnpx flow status\x1b[0m to see project state.\n');
86
96
  return;
87
97
  }
88
98
 
89
- // Show setup instructions using stderr (npm suppresses stdout from postinstall)
99
+ // Show setup instructions
90
100
  const msg = `
91
101
  \x1b[36m╔════════════════════════════════════════════════════════════╗\x1b[0m
92
102
  \x1b[36m║\x1b[0m \x1b[1mWogiFlow installed successfully!\x1b[0m \x1b[36m║\x1b[0m
@@ -98,7 +108,7 @@ async function main() {
98
108
  \x1b[36mnpx flow init\x1b[0m \x1b[2m# For new projects\x1b[0m
99
109
 
100
110
  `;
101
- process.stderr.write(msg);
111
+ output.write(msg);
102
112
  }
103
113
 
104
114
  // Run