wenox-cli 3.2.0 → 3.2.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.
- package/README.md +45 -53
- package/bin/wenox.js +51 -90
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,65 +2,62 @@
|
|
|
2
2
|
|
|
3
3
|
**Claude API • Enterprise AI Platform**
|
|
4
4
|
|
|
5
|
-
Python 3.
|
|
5
|
+
Otomatik Python 3.12 indirici ile sıfır kurulum sorunu!
|
|
6
6
|
|
|
7
7
|
## Hızlı Kurulum
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
#
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
# 2. Python bağımlılığını kur (Python 3.14 uyumlu)
|
|
14
|
-
pip install aider-chat --only-binary=all
|
|
10
|
+
# Tek komut - gerisini WENOX halleder:
|
|
11
|
+
npx wenox-cli
|
|
15
12
|
|
|
16
|
-
#
|
|
13
|
+
# API anahtarını ayarla
|
|
17
14
|
set WENOX_API_KEY=your_api_key_here
|
|
18
15
|
|
|
19
|
-
#
|
|
16
|
+
# Başlat
|
|
20
17
|
wenox
|
|
21
18
|
```
|
|
22
19
|
|
|
23
|
-
## Python
|
|
20
|
+
## Otomatik Python İndirici
|
|
24
21
|
|
|
25
|
-
Python 3.
|
|
22
|
+
WENOX artık **otomatik olarak Python 3.12 indirir**:
|
|
26
23
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
- 🚀 **Sıfır Kurulum** - Python kurmanıza gerek yok
|
|
25
|
+
- 📦 **Portable Python 3.12** - 50MB indirme (tek seferlik)
|
|
26
|
+
- 🔧 **Otomatik Aider Kurulumu** - Her şey hazır gelir
|
|
27
|
+
- 🛡️ **İzole Ortam** - Sistem Python'unu etkilemez
|
|
30
28
|
|
|
31
|
-
|
|
32
|
-
pip install --upgrade pip setuptools
|
|
33
|
-
pip install aider-chat
|
|
29
|
+
## Nasıl Çalışır
|
|
34
30
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
1. **İlk çalıştırma:** WENOX otomatik Python 3.12 indirir
|
|
32
|
+
2. **Aider kurulumu:** Portable Python'a aider-chat kurar
|
|
33
|
+
3. **Hazır!** - Artık her seferinde hızlı başlar
|
|
38
34
|
|
|
39
35
|
## Özellikler
|
|
40
36
|
|
|
41
|
-
- 🚀 **Python
|
|
42
|
-
- 🔧 **
|
|
43
|
-
- 🎯 **Garantili Çalışma** -
|
|
37
|
+
- 🚀 **Otomatik Python İndirici** - Python 3.12 portable
|
|
38
|
+
- 🔧 **Sıfır Dependency Sorunu** - İzole ortam
|
|
39
|
+
- 🎯 **Garantili Çalışma** - Setuptools sorunlarını atlar
|
|
44
40
|
- 💻 **Çapraz Platform** - Windows, macOS, Linux
|
|
45
|
-
- 🛡️ **Güvenli** -
|
|
41
|
+
- 🛡️ **Güvenli** - ~/.wenox klasöründe izole
|
|
46
42
|
|
|
47
43
|
## Kurulum Seçenekleri
|
|
48
44
|
|
|
49
|
-
### Yöntem 1:
|
|
45
|
+
### Yöntem 1: NPX (Önerilen)
|
|
50
46
|
```bash
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
npx wenox-cli
|
|
48
|
+
# Otomatik Python indirir ve kurar
|
|
53
49
|
```
|
|
54
50
|
|
|
55
|
-
### Yöntem 2:
|
|
51
|
+
### Yöntem 2: Global Kurulum
|
|
56
52
|
```bash
|
|
57
|
-
|
|
58
|
-
|
|
53
|
+
npm install -g wenox-cli
|
|
54
|
+
wenox
|
|
55
|
+
# Otomatik Python indirir ve kurar
|
|
59
56
|
```
|
|
60
57
|
|
|
61
58
|
## Kurulum
|
|
62
59
|
|
|
63
|
-
1. **
|
|
60
|
+
1. **WENOX'u çalıştır**: `npx wenox-cli` (otomatik Python indirir)
|
|
64
61
|
2. **API anahtarını al**: [wenox.ai/dashboard](https://wenox.ai/dashboard)
|
|
65
62
|
3. **Ortam değişkenini ayarla**:
|
|
66
63
|
- **CMD**: `set WENOX_API_KEY=your_key_here`
|
|
@@ -69,8 +66,10 @@ npx wenox-cli
|
|
|
69
66
|
|
|
70
67
|
## Sistem Gereksinimleri
|
|
71
68
|
|
|
72
|
-
- **Python 3.10+** (3.12 önerilen, 3.14 destekli)
|
|
73
69
|
- **Node.js 16+** (NPM kurulumu için)
|
|
70
|
+
- **İnternet bağlantısı** (Python indirme için, tek seferlik)
|
|
71
|
+
|
|
72
|
+
Python kurmanıza gerek yok! WENOX otomatik indirir.
|
|
74
73
|
|
|
75
74
|
## Kullanım
|
|
76
75
|
|
|
@@ -94,42 +93,35 @@ wenox --help
|
|
|
94
93
|
- Dene: `npx wenox-cli`
|
|
95
94
|
- Veya kurulumdan sonra terminali yeniden başlat
|
|
96
95
|
|
|
97
|
-
### Python
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
# Alternatif:
|
|
103
|
-
pip install --upgrade pip setuptools
|
|
104
|
-
pip install aider-chat
|
|
105
|
-
|
|
106
|
-
# Son çare:
|
|
107
|
-
pip install aider-chat --no-deps
|
|
108
|
-
pip install tree-sitter
|
|
109
|
-
```
|
|
96
|
+
### Python İndirme Sorunları
|
|
97
|
+
WENOX otomatik Python indirir. Sorun olursa:
|
|
98
|
+
- İnternet bağlantınızı kontrol edin
|
|
99
|
+
- Güvenlik duvarı Python indirmeyi engelliyor olabilir
|
|
110
100
|
|
|
111
101
|
### API Anahtarı Sorunları
|
|
112
102
|
API anahtarının doğru ayarlandığından emin ol:
|
|
113
103
|
- CMD: `echo %WENOX_API_KEY%`
|
|
114
104
|
- PowerShell: `echo $env:WENOX_API_KEY`
|
|
115
105
|
|
|
116
|
-
## v3.1
|
|
106
|
+
## v3.2.1'deki Yenilikler
|
|
117
107
|
|
|
118
|
-
- ✅ **Python
|
|
119
|
-
- ✅ **
|
|
120
|
-
- ✅ **
|
|
121
|
-
- ✅ **
|
|
108
|
+
- ✅ **Otomatik Python İndirici** - Python 3.12 portable indirir
|
|
109
|
+
- ✅ **Sıfır Kurulum Sorunu** - Setuptools cehennemini atlar
|
|
110
|
+
- ✅ **İzole Ortam** - ~/.wenox klasöründe temiz kurulum
|
|
111
|
+
- ✅ **Hızlı Başlatma** - İkinci seferden itibaren anında başlar
|
|
122
112
|
|
|
123
113
|
## Müşteri İçin Basit Talimat
|
|
124
114
|
|
|
125
115
|
```bash
|
|
126
|
-
#
|
|
127
|
-
|
|
128
|
-
pip install aider-chat --only-binary=all
|
|
116
|
+
# Sadece bu 3 komutu çalıştır:
|
|
117
|
+
npx wenox-cli
|
|
129
118
|
set WENOX_API_KEY=your_key_here
|
|
130
119
|
wenox
|
|
131
120
|
```
|
|
132
121
|
|
|
122
|
+
İlk çalıştırmada Python 3.12 otomatik indirilir (2-3 dakika).
|
|
123
|
+
Sonraki çalıştırmalarda anında başlar!
|
|
124
|
+
|
|
133
125
|
## Destek
|
|
134
126
|
|
|
135
127
|
- 📧 Email: support@wenox.ai
|
|
@@ -137,4 +129,4 @@ wenox
|
|
|
137
129
|
|
|
138
130
|
---
|
|
139
131
|
|
|
140
|
-
**WENOX CLI v3.1
|
|
132
|
+
**WENOX CLI v3.2.1** - Otomatik Python indirici ile sıfır sorun!
|
package/bin/wenox.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const { spawn } = require('child_process');
|
|
3
|
+
const { spawn, execSync } = require('child_process');
|
|
4
4
|
|
|
5
5
|
// Simple console colors
|
|
6
6
|
const chalk = {
|
|
@@ -60,93 +60,54 @@ function setupWenoxDefaults() {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
async function
|
|
64
|
-
console.log(chalk.cyan('🔧 WENOX
|
|
63
|
+
async function smartInstallAider() {
|
|
64
|
+
console.log(chalk.cyan('🔧 WENOX Smart Install: Fixing Python 3.14 compatibility...'));
|
|
65
65
|
|
|
66
66
|
const python = process.platform === 'win32' ? 'python' : 'python3';
|
|
67
67
|
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
68
|
+
const installMethods = [
|
|
69
|
+
{
|
|
70
|
+
name: 'Aider 0.15.0 (stable)',
|
|
71
|
+
cmd: `${python} -m pip install aider-chat==0.15.0 --force-reinstall --no-cache-dir`
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
name: 'Aider without dependencies',
|
|
75
|
+
cmd: `${python} -m pip install aider-chat --no-deps --force-reinstall`
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Minimal core packages',
|
|
79
|
+
cmd: `${python} -m pip install openai anthropic requests click colorama pydantic`
|
|
80
|
+
}
|
|
76
81
|
];
|
|
77
82
|
|
|
78
|
-
for (let i = 0; i <
|
|
79
|
-
const
|
|
80
|
-
console.log(chalk.yellow(`⏳ Trying
|
|
83
|
+
for (let i = 0; i < installMethods.length; i++) {
|
|
84
|
+
const method = installMethods[i];
|
|
85
|
+
console.log(chalk.yellow(`⏳ Trying method ${i + 1}: ${method.name}`));
|
|
81
86
|
|
|
82
87
|
try {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
}
|
|
88
|
+
execSync(method.cmd, { stdio: 'pipe', timeout: 120000 });
|
|
89
|
+
console.log(chalk.green(`✅ Success with method ${i + 1}!`));
|
|
90
|
+
return true;
|
|
108
91
|
} catch (err) {
|
|
109
|
-
console.log(chalk.yellow(`⚠️
|
|
92
|
+
console.log(chalk.yellow(`⚠️ Method ${i + 1} failed, trying next...`));
|
|
110
93
|
}
|
|
111
94
|
}
|
|
112
95
|
|
|
113
|
-
console.log(chalk.red('❌
|
|
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'));
|
|
96
|
+
console.log(chalk.red('❌ All installation methods failed'));
|
|
118
97
|
return false;
|
|
119
98
|
}
|
|
120
99
|
|
|
121
|
-
async function
|
|
100
|
+
async function testAider() {
|
|
122
101
|
const python = process.platform === 'win32' ? 'python' : 'python3';
|
|
123
102
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
-
});
|
|
103
|
+
try {
|
|
104
|
+
execSync(`${python} -c "import aider; print('OK')"`, { stdio: 'pipe', timeout: 10000 });
|
|
105
|
+
console.log(chalk.green('✅ Aider is working!'));
|
|
106
|
+
return true;
|
|
107
|
+
} catch (err) {
|
|
108
|
+
console.log(chalk.yellow('⚠️ Aider test failed'));
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
150
111
|
}
|
|
151
112
|
|
|
152
113
|
async function runAider() {
|
|
@@ -181,9 +142,8 @@ async function runAider() {
|
|
|
181
142
|
|
|
182
143
|
child.on('error', (err) => {
|
|
183
144
|
console.error(chalk.red('❌ Error starting WENOX:'), err.message);
|
|
184
|
-
console.log(chalk.cyan('\n💡
|
|
185
|
-
console.log(chalk.cyan(' pip install aider-chat --force-reinstall'));
|
|
186
|
-
console.log(chalk.cyan(' pip install tree-sitter-languages'));
|
|
145
|
+
console.log(chalk.cyan('\n💡 Manual fix:'));
|
|
146
|
+
console.log(chalk.cyan(' pip install aider-chat==0.15.0 --force-reinstall'));
|
|
187
147
|
process.exit(1);
|
|
188
148
|
});
|
|
189
149
|
}
|
|
@@ -216,15 +176,14 @@ ${chalk.bold('Examples:')}
|
|
|
216
176
|
wenox --model gpt-4 # Use specific model
|
|
217
177
|
|
|
218
178
|
${chalk.bold('Setup:')}
|
|
219
|
-
1.
|
|
220
|
-
2.
|
|
221
|
-
3. Set environment variable:
|
|
179
|
+
1. Get API key: ${chalk.blue('https://wenox.ai/dashboard')}
|
|
180
|
+
2. Set environment variable:
|
|
222
181
|
${chalk.yellow('CMD:')} set WENOX_API_KEY=your_key
|
|
223
182
|
${chalk.yellow('PowerShell:')} $env:WENOX_API_KEY="your_key"
|
|
224
|
-
|
|
183
|
+
3. Run: ${chalk.cyan('wenox')}
|
|
225
184
|
|
|
226
|
-
${chalk.bold('
|
|
227
|
-
WENOX automatically
|
|
185
|
+
${chalk.bold('Smart Install:')}
|
|
186
|
+
WENOX automatically fixes Python 3.14 compatibility issues!
|
|
228
187
|
|
|
229
188
|
${chalk.bold('Troubleshooting:')}
|
|
230
189
|
• If 'wenox' command not found, try: ${chalk.cyan('npx wenox-cli')}
|
|
@@ -232,7 +191,7 @@ ${chalk.bold('Troubleshooting:')}
|
|
|
232
191
|
• Or restart your terminal after installation
|
|
233
192
|
|
|
234
193
|
${chalk.bold('System Requirements:')}
|
|
235
|
-
• Python 3.10+ (auto-fixes
|
|
194
|
+
• Python 3.10+ (auto-fixes Python 3.14 issues)
|
|
236
195
|
• Node.js 16+ for NPM installation
|
|
237
196
|
`);
|
|
238
197
|
return;
|
|
@@ -246,14 +205,16 @@ ${chalk.bold('System Requirements:')}
|
|
|
246
205
|
// Check API key
|
|
247
206
|
checkApiKey();
|
|
248
207
|
|
|
249
|
-
//
|
|
250
|
-
const
|
|
251
|
-
if (!
|
|
252
|
-
console.log(chalk.cyan('🔧
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
208
|
+
// Test if aider works, if not, smart install
|
|
209
|
+
const aiderWorks = await testAider();
|
|
210
|
+
if (!aiderWorks) {
|
|
211
|
+
console.log(chalk.cyan('🔧 Installing WENOX dependencies (one-time setup)...'));
|
|
212
|
+
console.log(chalk.yellow('⏳ This may take 1-2 minutes...'));
|
|
213
|
+
|
|
214
|
+
const installed = await smartInstallAider();
|
|
215
|
+
if (!installed) {
|
|
216
|
+
console.log(chalk.red('❌ Could not install WENOX dependencies'));
|
|
217
|
+
console.log(chalk.cyan('💡 Manual fix: pip install aider-chat==0.15.0'));
|
|
257
218
|
process.exit(1);
|
|
258
219
|
}
|
|
259
220
|
}
|