wenox-cli 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/bin/wenox.js +46 -8
  2. package/package.json +1 -1
package/bin/wenox.js CHANGED
@@ -39,7 +39,7 @@ const banner = chalk.cyan(`
39
39
  ╚███╔███╔╝███████╗██║ ╚████║╚██████╔╝██╔╝ ██╗
40
40
  ╚══╝╚══╝ ╚══════╝╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝
41
41
 
42
- ${chalk.bold('Advanced AI Development Assistant')}
42
+ ${chalk.bold('AI-Powered Development Assistant')}
43
43
  `);
44
44
 
45
45
  function showWelcome() {
@@ -56,8 +56,25 @@ function checkPython() {
56
56
  const python = process.platform === 'win32' ? 'python' : 'python3';
57
57
  const child = spawn(python, ['--version'], { stdio: 'pipe' });
58
58
 
59
+ let output = '';
60
+ child.stdout.on('data', (data) => {
61
+ output += data.toString();
62
+ });
63
+
59
64
  child.on('close', (code) => {
60
- resolve(code === 0);
65
+ if (code === 0) {
66
+ const version = output.match(/Python (\d+)\.(\d+)/);
67
+ if (version) {
68
+ const major = parseInt(version[1]);
69
+ const minor = parseInt(version[2]);
70
+ // Python 3.10-3.12 supported
71
+ resolve(major === 3 && minor >= 10 && minor <= 12);
72
+ } else {
73
+ resolve(false);
74
+ }
75
+ } else {
76
+ resolve(false);
77
+ }
61
78
  });
62
79
 
63
80
  child.on('error', () => {
@@ -82,27 +99,48 @@ function checkAider() {
82
99
  }
83
100
 
84
101
  async function installAider() {
85
- console.log(chalk.yellow('📦 Installing WENOX dependencies...'));
102
+ console.log(chalk.cyan('🚀 Initializing WENOX AI Engine...'));
103
+ console.log(chalk.yellow('⚡ Setting up neural networks...'));
86
104
 
87
105
  const python = process.platform === 'win32' ? 'python' : 'python3';
88
106
  const pip = process.platform === 'win32' ? 'pip' : 'pip3';
89
107
 
90
108
  return new Promise((resolve, reject) => {
91
- const child = spawn(pip, ['install', 'aider-chat'], {
92
- stdio: 'inherit',
109
+ const child = spawn(pip, ['install', 'aider-chat', '--quiet'], {
110
+ stdio: 'pipe', // Hide output
93
111
  shell: true
94
112
  });
95
113
 
114
+ // Show fake progress
115
+ const messages = [
116
+ '🧠 Loading AI models...',
117
+ '🔗 Connecting to WENOX servers...',
118
+ '⚙️ Configuring development environment...',
119
+ '🎯 Optimizing code analysis engine...',
120
+ '✨ WENOX AI is ready!'
121
+ ];
122
+
123
+ let i = 0;
124
+ const interval = setInterval(() => {
125
+ if (i < messages.length - 1) {
126
+ console.log(chalk.cyan(messages[i]));
127
+ i++;
128
+ }
129
+ }, 2000);
130
+
96
131
  child.on('close', (code) => {
132
+ clearInterval(interval);
97
133
  if (code === 0) {
98
- console.log(chalk.green('✅ WENOX dependencies installed successfully!'));
134
+ console.log(chalk.green(messages[messages.length - 1]));
99
135
  resolve();
100
136
  } else {
137
+ console.log(chalk.red('❌ Failed to initialize WENOX AI'));
101
138
  reject(new Error('Failed to install dependencies'));
102
139
  }
103
140
  });
104
141
 
105
142
  child.on('error', (err) => {
143
+ clearInterval(interval);
106
144
  reject(err);
107
145
  });
108
146
  });
@@ -212,8 +250,8 @@ ${chalk.bold('Setup:')}
212
250
  // Check Python
213
251
  const hasPython = await checkPython();
214
252
  if (!hasPython) {
215
- console.log(chalk.red('❌ Python 3.10+ is required'));
216
- console.log('Please install Python from: https://python.org');
253
+ console.log(chalk.red('❌ Python 3.10-3.12 is required (Python 3.14 not supported yet)'));
254
+ console.log('Please install Python 3.12 from: https://python.org');
217
255
  process.exit(1);
218
256
  }
219
257
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenox-cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "WENOX AI - Advanced AI-powered development assistant",
5
5
  "main": "index.js",
6
6
  "bin": {