wogiflow 1.0.6 → 1.0.7

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.6",
3
+ "version": "1.0.7",
4
4
  "description": "AI-powered development workflow management system with multi-model support",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -45,37 +45,23 @@ function createMinimalStructure() {
45
45
  }
46
46
 
47
47
  /**
48
- * Check if we should skip the wizard
48
+ * Check if we should be completely silent (CI only)
49
49
  */
50
- function shouldSkipWizard() {
51
- // Skip in CI
50
+ function shouldBeSilent() {
51
+ // Silent in CI
52
52
  if (process.env.CI) return true;
53
53
 
54
- // Skip if explicitly requested
54
+ // Silent if explicitly requested
55
55
  if (process.env.WOGIFLOW_SKIP_POSTINSTALL) return true;
56
56
 
57
- // Skip if already initialized
58
- if (fs.existsSync(path.join(WORKFLOW_DIR, 'config.json'))) return true;
59
-
60
- // Skip if not a TTY (non-interactive)
61
- if (!process.stdin.isTTY) return true;
62
-
63
57
  return false;
64
58
  }
65
59
 
66
60
  /**
67
- * Run the unified wizard
61
+ * Check if already initialized
68
62
  */
69
- async function runWizard() {
70
- try {
71
- const { runUnifiedWizard } = require('../lib/unified-wizard');
72
- await runUnifiedWizard();
73
- } catch (err) {
74
- console.log(`\n\x1b[33mWogiFlow:\x1b[0m Wizard unavailable, creating minimal structure.`);
75
- console.log(`\x1b[2m ${err.message}\x1b[0m\n`);
76
- createMinimalStructure();
77
- console.log(`\x1b[36mWogiFlow:\x1b[0m Run \x1b[33mflow init\x1b[0m to complete setup.\n`);
78
- }
63
+ function isAlreadyInitialized() {
64
+ return fs.existsSync(path.join(WORKFLOW_DIR, 'config.json'));
79
65
  }
80
66
 
81
67
  /**
@@ -85,12 +71,18 @@ async function main() {
85
71
  // Always create minimal structure first
86
72
  createMinimalStructure();
87
73
 
88
- if (shouldSkipWizard()) {
89
- // Silent for CI/non-interactive
74
+ // Silent in CI or when explicitly disabled
75
+ if (shouldBeSilent()) {
76
+ return;
77
+ }
78
+
79
+ // Already initialized - short message
80
+ if (isAlreadyInitialized()) {
81
+ console.log('\x1b[36mWogiFlow:\x1b[0m Already initialized. Run \x1b[33mnpx flow status\x1b[0m to see project state.');
90
82
  return;
91
83
  }
92
84
 
93
- // Show setup instructions (wizard doesn't work well in postinstall due to TTY issues)
85
+ // Show setup instructions (always show, even without TTY)
94
86
  console.log('');
95
87
  console.log('\x1b[36m╔════════════════════════════════════════════════════════════╗\x1b[0m');
96
88
  console.log('\x1b[36m║\x1b[0m \x1b[1mWogiFlow installed successfully!\x1b[0m \x1b[36m║\x1b[0m');