wenox-cli 1.0.5 → 1.0.6

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 +59 -10
  2. package/package.json +1 -1
package/bin/wenox.js CHANGED
@@ -88,22 +88,71 @@ async function installAider() {
88
88
  const pip = process.platform === 'win32' ? 'pip' : 'pip3';
89
89
 
90
90
  return new Promise((resolve, reject) => {
91
- const child = spawn(pip, ['install', 'aider-chat'], {
92
- stdio: 'inherit', // Show all output for debugging
91
+ // First upgrade pip and setuptools to handle Python 3.14
92
+ console.log(chalk.yellow('🔧 Upgrading pip and setuptools...'));
93
+ const upgradeChild = spawn(pip, ['install', '--upgrade', 'pip', 'setuptools', 'wheel'], {
94
+ stdio: 'inherit',
93
95
  shell: true
94
96
  });
95
97
 
96
- child.on('close', (code) => {
97
- if (code === 0) {
98
- console.log(chalk.green(' WENOX dependencies installed successfully!'));
99
- resolve();
100
- } else {
101
- reject(new Error('Failed to install dependencies'));
98
+ upgradeChild.on('close', (upgradeCode) => {
99
+ if (upgradeCode !== 0) {
100
+ console.log(chalk.yellow('⚠️ Pip upgrade failed, continuing anyway...'));
102
101
  }
102
+
103
+ // Now install aider with fallback options
104
+ console.log(chalk.cyan('📦 Installing aider-chat...'));
105
+ const child = spawn(pip, [
106
+ 'install',
107
+ 'aider-chat',
108
+ '--no-build-isolation', // Skip build isolation for Python 3.14
109
+ '--force-reinstall' // Force reinstall to avoid cache issues
110
+ ], {
111
+ stdio: 'inherit',
112
+ shell: true
113
+ });
114
+
115
+ child.on('close', (code) => {
116
+ if (code === 0) {
117
+ console.log(chalk.green('✅ WENOX dependencies installed successfully!'));
118
+ resolve();
119
+ } else {
120
+ console.log(chalk.red('❌ Installation failed. Trying alternative method...'));
121
+
122
+ // Fallback: try with --no-deps and install manually
123
+ const fallbackChild = spawn(pip, [
124
+ 'install',
125
+ 'aider-chat',
126
+ '--no-deps',
127
+ '--force-reinstall'
128
+ ], {
129
+ stdio: 'inherit',
130
+ shell: true
131
+ });
132
+
133
+ fallbackChild.on('close', (fallbackCode) => {
134
+ if (fallbackCode === 0) {
135
+ console.log(chalk.green('✅ WENOX installed with fallback method!'));
136
+ resolve();
137
+ } else {
138
+ reject(new Error('Failed to install dependencies'));
139
+ }
140
+ });
141
+
142
+ fallbackChild.on('error', (err) => {
143
+ reject(err);
144
+ });
145
+ }
146
+ });
147
+
148
+ child.on('error', (err) => {
149
+ reject(err);
150
+ });
103
151
  });
104
152
 
105
- child.on('error', (err) => {
106
- reject(err);
153
+ upgradeChild.on('error', (err) => {
154
+ console.log(chalk.yellow('⚠️ Pip upgrade error, continuing...'));
155
+ // Continue with installation even if upgrade fails
107
156
  });
108
157
  });
109
158
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenox-cli",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "WENOX AI - Advanced AI-powered development assistant",
5
5
  "main": "index.js",
6
6
  "bin": {