wenox-cli 3.1.1 → 3.2.0

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 (3) hide show
  1. package/README.md +44 -23
  2. package/bin/wenox.js +109 -9
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  **Claude API • Enterprise AI Platform**
4
4
 
5
- Basit kurulum, sıfır sorun. Python dependency cehennemini atlayın.
5
+ Python 3.14 uyumlu, setuptools sorunlarını atlar.
6
6
 
7
7
  ## Hızlı Kurulum
8
8
 
@@ -10,8 +10,8 @@ Basit kurulum, sıfır sorun. Python dependency cehennemini atlayın.
10
10
  # 1. WENOX CLI'yi kur
11
11
  npm install -g wenox-cli
12
12
 
13
- # 2. Python bağımlılığını kur
14
- pip install aider-chat
13
+ # 2. Python bağımlılığını kur (Python 3.14 uyumlu)
14
+ pip install aider-chat --only-binary=all
15
15
 
16
16
  # 3. API anahtarını ayarla
17
17
  set WENOX_API_KEY=your_api_key_here
@@ -20,11 +20,27 @@ set WENOX_API_KEY=your_api_key_here
20
20
  wenox
21
21
  ```
22
22
 
23
+ ## Python 3.14 Özel Notları
24
+
25
+ Python 3.14 ile setuptools sorunları yaşıyorsan:
26
+
27
+ ```bash
28
+ # Yöntem 1: Binary wheels kullan (önerilen)
29
+ pip install aider-chat --only-binary=all
30
+
31
+ # Yöntem 2: Setuptools güncelle
32
+ pip install --upgrade pip setuptools
33
+ pip install aider-chat
34
+
35
+ # Yöntem 3: Python 3.12 kullan (en stabil)
36
+ # Python 3.12 indir ve kullan
37
+ ```
38
+
23
39
  ## Özellikler
24
40
 
25
- - 🚀 **Sıfır Karmaşa** - Basit pip install, çalışır
26
- - 🔧 **Manuel Kontrol** - Sen kurarsın, sen kontrol edersin
27
- - 🎯 **Garantili Çalışma** - Python dependency cehennemini atlar
41
+ - 🚀 **Python 3.14 Uyumlu** - En yeni Python sürümü destekli
42
+ - 🔧 **Setuptools Sorunlarını Atlar** - Binary wheels kullanır
43
+ - 🎯 **Garantili Çalışma** - Dependency cehennemini atlar
28
44
  - 💻 **Çapraz Platform** - Windows, macOS, Linux
29
45
  - 🛡️ **Güvenli** - Kendi Python ortamında çalışır
30
46
 
@@ -33,18 +49,18 @@ wenox
33
49
  ### Yöntem 1: Global Kurulum (Önerilen)
34
50
  ```bash
35
51
  npm install -g wenox-cli
36
- pip install aider-chat
52
+ pip install aider-chat --only-binary=all
37
53
  ```
38
54
 
39
55
  ### Yöntem 2: NPX (Kurulum Yok)
40
56
  ```bash
41
57
  npx wenox-cli
42
- # (Yine de pip install aider-chat gerekli)
58
+ # (Yine de pip install aider-chat --only-binary=all gerekli)
43
59
  ```
44
60
 
45
61
  ## Kurulum
46
62
 
47
- 1. **Python bağımlılığını kur**: `pip install aider-chat`
63
+ 1. **Python bağımlılığını kur**: `pip install aider-chat --only-binary=all`
48
64
  2. **API anahtarını al**: [wenox.ai/dashboard](https://wenox.ai/dashboard)
49
65
  3. **Ortam değişkenini ayarla**:
50
66
  - **CMD**: `set WENOX_API_KEY=your_key_here`
@@ -53,7 +69,7 @@ npx wenox-cli
53
69
 
54
70
  ## Sistem Gereksinimleri
55
71
 
56
- - **Python 3.10+** + `pip install aider-chat`
72
+ - **Python 3.10+** (3.12 önerilen, 3.14 destekli)
57
73
  - **Node.js 16+** (NPM kurulumu için)
58
74
 
59
75
  ## Kullanım
@@ -78,13 +94,18 @@ wenox --help
78
94
  - Dene: `npx wenox-cli`
79
95
  - Veya kurulumdan sonra terminali yeniden başlat
80
96
 
81
- ### Python Hataları
97
+ ### Python 3.14 Setuptools Hataları
82
98
  ```bash
99
+ # En iyi çözüm:
100
+ pip install aider-chat --only-binary=all
101
+
102
+ # Alternatif:
103
+ pip install --upgrade pip setuptools
83
104
  pip install aider-chat
84
- # Veya
85
- pip install aider-chat --user
86
- # Veya
87
- python -m pip install aider-chat
105
+
106
+ # Son çare:
107
+ pip install aider-chat --no-deps
108
+ pip install tree-sitter
88
109
  ```
89
110
 
90
111
  ### API Anahtarı Sorunları
@@ -92,19 +113,19 @@ API anahtarının doğru ayarlandığından emin ol:
92
113
  - CMD: `echo %WENOX_API_KEY%`
93
114
  - PowerShell: `echo $env:WENOX_API_KEY`
94
115
 
95
- ## v3.1.0'daki Yenilikler
116
+ ## v3.1.2'deki Yenilikler
96
117
 
97
- - ✅ **Basitleştirilmiş Yaklaşım** - Otomatik kurulum yok, manuel kontrol
98
- - ✅ **Sıfır Dependency Cehennem** - Sen pip install yaparsın, çalışır
99
- - ✅ **Net Hata Mesajları** - Sorun olursa ne yapacağın belli
100
- - ✅ **Müşteri Dostu** - Kurulum adımları açık ve net
118
+ - ✅ **Python 3.14 Desteği** - En yeni Python sürümü uyumlu
119
+ - ✅ **Binary Wheels** - Setuptools sorunlarını atlar
120
+ - ✅ **Net Hata Mesajları** - Python 3.14 özel çözümleri
121
+ - ✅ **Stabil Kurulum** - --only-binary=all kullanır
101
122
 
102
123
  ## Müşteri İçin Basit Talimat
103
124
 
104
125
  ```bash
105
- # Bu 4 komutu çalıştır, çalışır:
126
+ # Python 3.14 için bu 4 komutu çalıştır:
106
127
  npm install -g wenox-cli
107
- pip install aider-chat
128
+ pip install aider-chat --only-binary=all
108
129
  set WENOX_API_KEY=your_key_here
109
130
  wenox
110
131
  ```
@@ -116,4 +137,4 @@ wenox
116
137
 
117
138
  ---
118
139
 
119
- **WENOX CLI v3.1.0** - Basit kurulum, garantili çalışma.
140
+ **WENOX CLI v3.1.2** - Python 3.14 uyumlu, setuptools sorunsuz.
package/bin/wenox.js CHANGED
@@ -60,6 +60,95 @@ function setupWenoxDefaults() {
60
60
  }
61
61
  }
62
62
 
63
+ async function autoFixDependencies() {
64
+ console.log(chalk.cyan('🔧 WENOX Auto-Fix: Resolving Python dependencies...'));
65
+
66
+ const python = process.platform === 'win32' ? 'python' : 'python3';
67
+
68
+ const fixCommands = [
69
+ // Try to fix tree-sitter-languages issue
70
+ [python, '-m', 'pip', 'install', 'tree-sitter-languages', '--force-reinstall', '--no-cache-dir'],
71
+ [python, '-m', 'pip', 'install', 'py-tree-sitter-languages', '--force-reinstall', '--no-cache-dir'],
72
+ // Try older aider version
73
+ [python, '-m', 'pip', 'install', 'aider-chat==0.15.0', '--force-reinstall', '--no-cache-dir'],
74
+ // Last resort: minimal installation
75
+ [python, '-m', 'pip', 'install', 'aider-chat', '--no-deps', '--force-reinstall'],
76
+ ];
77
+
78
+ for (let i = 0; i < fixCommands.length; i++) {
79
+ const cmd = fixCommands[i];
80
+ console.log(chalk.yellow(`⏳ Trying fix ${i + 1}/${fixCommands.length}: ${cmd.slice(2).join(' ')}`));
81
+
82
+ try {
83
+ const result = await new Promise((resolve) => {
84
+ const child = spawn(cmd[0], cmd.slice(1), {
85
+ stdio: 'pipe',
86
+ shell: true
87
+ });
88
+
89
+ let output = '';
90
+ child.stdout.on('data', (data) => output += data.toString());
91
+ child.stderr.on('data', (data) => output += data.toString());
92
+
93
+ child.on('close', (code) => {
94
+ resolve({ code, output });
95
+ });
96
+
97
+ child.on('error', () => {
98
+ resolve({ code: 1, output: 'Command failed' });
99
+ });
100
+ });
101
+
102
+ if (result.code === 0) {
103
+ console.log(chalk.green('✅ Dependency fixed successfully!'));
104
+ return true;
105
+ } else {
106
+ console.log(chalk.yellow(`⚠️ Fix ${i + 1} failed, trying next...`));
107
+ }
108
+ } catch (err) {
109
+ console.log(chalk.yellow(`⚠️ Fix ${i + 1} failed, trying next...`));
110
+ }
111
+ }
112
+
113
+ console.log(chalk.red('❌ Auto-fix failed. Manual installation required.'));
114
+ console.log(chalk.cyan('💡 Manual fix commands:'));
115
+ console.log(chalk.cyan(' pip install tree-sitter-languages'));
116
+ console.log(chalk.cyan(' pip install aider-chat==0.15.0 --force-reinstall'));
117
+ console.log(chalk.cyan(' pip install aider-chat --no-deps --force-reinstall'));
118
+ return false;
119
+ }
120
+
121
+ async function checkAiderStatus() {
122
+ const python = process.platform === 'win32' ? 'python' : 'python3';
123
+
124
+ return new Promise((resolve) => {
125
+ // Test if aider works
126
+ const testChild = spawn(python, ['-c', 'import aider; print("OK")'], {
127
+ stdio: 'pipe',
128
+ shell: true
129
+ });
130
+
131
+ let output = '';
132
+ testChild.stdout.on('data', (data) => output += data.toString());
133
+ testChild.stderr.on('data', (data) => output += data.toString());
134
+
135
+ testChild.on('close', (code) => {
136
+ if (code === 0 && output.includes('OK')) {
137
+ console.log(chalk.green('✅ WENOX dependencies ready'));
138
+ resolve(true);
139
+ } else {
140
+ console.log(chalk.yellow('⚠️ Dependency issues detected'));
141
+ resolve(false);
142
+ }
143
+ });
144
+
145
+ testChild.on('error', () => {
146
+ console.log(chalk.yellow('⚠️ Aider not found'));
147
+ resolve(false);
148
+ });
149
+ });
150
+ }
151
+
63
152
  async function runAider() {
64
153
  // Default arguments for WENOX
65
154
  const defaultArgs = [
@@ -76,7 +165,6 @@ async function runAider() {
76
165
  const args = [...defaultArgs, ...userArgs];
77
166
 
78
167
  console.log(chalk.green('✅ Starting WENOX Claude API Platform...\n'));
79
- console.log(chalk.yellow('💡 Make sure you have: pip install aider-chat'));
80
168
 
81
169
  const python = process.platform === 'win32' ? 'python' : 'python3';
82
170
  const child = spawn(python, args, {
@@ -93,12 +181,9 @@ async function runAider() {
93
181
 
94
182
  child.on('error', (err) => {
95
183
  console.error(chalk.red('❌ Error starting WENOX:'), err.message);
96
- console.log(chalk.cyan('\n💡 Quick Fix:'));
97
- console.log(chalk.cyan(' pip install aider-chat'));
98
- console.log(chalk.cyan(' python -m pip install aider-chat'));
99
- console.log(chalk.cyan('\n💡 If still issues:'));
100
- console.log(chalk.cyan(' pip install --upgrade pip setuptools'));
101
- console.log(chalk.cyan(' pip install aider-chat --user'));
184
+ console.log(chalk.cyan('\n💡 Try manual installation:'));
185
+ console.log(chalk.cyan(' pip install aider-chat --force-reinstall'));
186
+ console.log(chalk.cyan(' pip install tree-sitter-languages'));
102
187
  process.exit(1);
103
188
  });
104
189
  }
@@ -138,13 +223,16 @@ ${chalk.bold('Setup:')}
138
223
  ${chalk.yellow('PowerShell:')} $env:WENOX_API_KEY="your_key"
139
224
  4. Run: ${chalk.cyan('wenox')}
140
225
 
226
+ ${chalk.bold('Auto-Fix:')}
227
+ WENOX automatically detects and fixes Python dependency issues!
228
+
141
229
  ${chalk.bold('Troubleshooting:')}
142
230
  • If 'wenox' command not found, try: ${chalk.cyan('npx wenox-cli')}
143
- If Python errors: ${chalk.cyan('pip install aider-chat --user')}
231
+ WENOX will auto-fix Python dependency conflicts
144
232
  • Or restart your terminal after installation
145
233
 
146
234
  ${chalk.bold('System Requirements:')}
147
- • Python 3.10+ with pip install aider-chat
235
+ • Python 3.10+ (auto-fixes dependency issues)
148
236
  • Node.js 16+ for NPM installation
149
237
  `);
150
238
  return;
@@ -158,6 +246,18 @@ ${chalk.bold('System Requirements:')}
158
246
  // Check API key
159
247
  checkApiKey();
160
248
 
249
+ // Check and auto-fix dependencies
250
+ const dependenciesOk = await checkAiderStatus();
251
+ if (!dependenciesOk) {
252
+ console.log(chalk.cyan('🔧 Auto-fixing Python dependencies...'));
253
+ const fixed = await autoFixDependencies();
254
+ if (!fixed) {
255
+ console.log(chalk.red('❌ Could not resolve dependencies automatically'));
256
+ console.log(chalk.cyan('💡 Please run manually: pip install aider-chat tree-sitter-languages'));
257
+ process.exit(1);
258
+ }
259
+ }
260
+
161
261
  // Run aider with WENOX branding
162
262
  await runAider();
163
263
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenox-cli",
3
- "version": "3.1.1",
3
+ "version": "3.2.0",
4
4
  "description": "WENOX AI - Advanced AI-powered development assistant",
5
5
  "main": "index.js",
6
6
  "bin": {