wenox-cli 3.0.0 → 3.1.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 +60 -49
  2. package/bin/wenox.js +15 -75
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,107 +2,118 @@
2
2
 
3
3
  **Claude API • Enterprise AI Platform**
4
4
 
5
- Modern AI-powered development assistant that works seamlessly with your existing Python environment.
5
+ Basit kurulum, sıfır sorun. Python dependency cehennemini atlayın.
6
6
 
7
- ## Quick Start
7
+ ## Hızlı Kurulum
8
8
 
9
9
  ```bash
10
- # Install WENOX CLI
10
+ # 1. WENOX CLI'yi kur
11
11
  npm install -g wenox-cli
12
12
 
13
- # Set your API key
13
+ # 2. Python bağımlılığını kur
14
+ pip install aider-chat
15
+
16
+ # 3. API anahtarını ayarla
14
17
  set WENOX_API_KEY=your_api_key_here
15
18
 
16
- # Start coding with AI
19
+ # 4. Başlat
17
20
  wenox
18
21
  ```
19
22
 
20
- ## Features
23
+ ## Özellikler
21
24
 
22
- - 🚀 **Zero Configuration** - Works with your existing Python setup
23
- - 🔧 **Auto-Installation** - Installs dependencies automatically when needed
24
- - 🎯 **Enterprise Ready** - Professional Claude API integration
25
- - 💻 **Cross-Platform** - Windows, macOS, Linux support
26
- - 🛡️ **Secure** - Uses user-level Python packages, no system conflicts
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
28
+ - 💻 **Çapraz Platform** - Windows, macOS, Linux
29
+ - 🛡️ **Güvenli** - Kendi Python ortamında çalışır
27
30
 
28
- ## Installation
31
+ ## Kurulum Seçenekleri
29
32
 
30
- ### Method 1: NPM (Recommended)
33
+ ### Yöntem 1: Global Kurulum (Önerilen)
31
34
  ```bash
32
35
  npm install -g wenox-cli
36
+ pip install aider-chat
33
37
  ```
34
38
 
35
- ### Method 2: NPX (No Installation)
39
+ ### Yöntem 2: NPX (Kurulum Yok)
36
40
  ```bash
37
41
  npx wenox-cli
42
+ # (Yine de pip install aider-chat gerekli)
38
43
  ```
39
44
 
40
- ## Setup
41
-
42
- 1. **Get API Key**: Visit [wenox.ai/dashboard](https://wenox.ai/dashboard)
45
+ ## Kurulum
43
46
 
44
- 2. **Set Environment Variable**:
47
+ 1. **Python bağımlılığını kur**: `pip install aider-chat`
48
+ 2. **API anahtarını al**: [wenox.ai/dashboard](https://wenox.ai/dashboard)
49
+ 3. **Ortam değişkenini ayarla**:
45
50
  - **CMD**: `set WENOX_API_KEY=your_key_here`
46
51
  - **PowerShell**: `$env:WENOX_API_KEY="your_key_here"`
52
+ 4. **WENOX'u çalıştır**: `wenox`
47
53
 
48
- 3. **Run WENOX**: `wenox`
54
+ ## Sistem Gereksinimleri
49
55
 
50
- ## System Requirements
56
+ - **Python 3.10+** + `pip install aider-chat`
57
+ - **Node.js 16+** (NPM kurulumu için)
51
58
 
52
- - **Python 3.10+** (any version)
53
- - **Node.js 16+** (for NPM installation)
54
-
55
- WENOX automatically installs Python dependencies using `pip install --user` to avoid system conflicts.
56
-
57
- ## Usage
59
+ ## Kullanım
58
60
 
59
61
  ```bash
60
- # Start WENOX in current directory
62
+ # Mevcut dizinde WENOX'u başlat
61
63
  wenox
62
64
 
63
- # Work with specific files
65
+ # Belirli dosyalarla çalış
64
66
  wenox file1.py file2.js
65
67
 
66
- # Use different AI model
68
+ # Farklı AI modeli kullan
67
69
  wenox --model gpt-4
68
70
 
69
- # Get help
71
+ # Yardım al
70
72
  wenox --help
71
73
  ```
72
74
 
73
- ## Troubleshooting
75
+ ## Sorun Giderme
74
76
 
75
- ### "wenox command not found"
76
- - Try: `npx wenox-cli`
77
- - Or restart your terminal after installation
78
- - Check NPM path: `npm config get prefix`
77
+ ### "wenox komutu bulunamadı"
78
+ - Dene: `npx wenox-cli`
79
+ - Veya kurulumdan sonra terminali yeniden başlat
79
80
 
80
- ### Python Dependencies
81
- WENOX automatically installs required packages. If issues occur:
81
+ ### Python Hataları
82
82
  ```bash
83
- pip install --upgrade pip setuptools
84
83
  pip install aider-chat
84
+ # Veya
85
+ pip install aider-chat --user
86
+ # Veya
87
+ python -m pip install aider-chat
85
88
  ```
86
89
 
87
- ### API Key Issues
88
- Make sure your API key is set correctly:
90
+ ### API Anahtarı Sorunları
91
+ API anahtarının doğru ayarlandığından emin ol:
89
92
  - CMD: `echo %WENOX_API_KEY%`
90
93
  - PowerShell: `echo $env:WENOX_API_KEY`
91
94
 
92
- ## What's New in v3.0
95
+ ## v3.1.0'daki Yenilikler
96
+
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
93
101
 
94
- - **Simplified Installation** - No more complex virtual environments
95
- - ✅ **Better Compatibility** - Works with all Python versions 3.10+
96
- - ✅ **Faster Startup** - Reduced dependency conflicts
97
- - **Auto-Recovery** - Handles installation failures gracefully
98
- - **Zero Dependencies** - NPM package has no Node.js dependencies
102
+ ## Müşteri İçin Basit Talimat
103
+
104
+ ```bash
105
+ # Bu 4 komutu çalıştır, çalışır:
106
+ npm install -g wenox-cli
107
+ pip install aider-chat
108
+ set WENOX_API_KEY=your_key_here
109
+ wenox
110
+ ```
99
111
 
100
- ## Support
112
+ ## Destek
101
113
 
102
114
  - 📧 Email: support@wenox.ai
103
115
  - 🌐 Website: [wenox.ai](https://wenox.ai)
104
- - 📚 Documentation: [docs.wenox.ai](https://docs.wenox.ai)
105
116
 
106
117
  ---
107
118
 
108
- **WENOX CLI v3.0** - Modern AI development made simple.
119
+ **WENOX CLI v3.1.0** - Basit kurulum, garantili çalışma.
package/bin/wenox.js CHANGED
@@ -1,9 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  const { spawn } = require('child_process');
4
- const path = require('path');
5
- const fs = require('fs');
6
- const os = require('os');
7
4
 
8
5
  // Simple console colors
9
6
  const chalk = {
@@ -42,7 +39,7 @@ function checkApiKey() {
42
39
  console.log(' ' + chalk.bold('CMD:') + ' set WENOX_API_KEY=your_api_key_here');
43
40
  console.log(' ' + chalk.bold('PowerShell:') + ' $env:WENOX_API_KEY="your_api_key_here"');
44
41
  console.log('\n3. Run ' + chalk.cyan('wenox') + ' again');
45
- console.log('\n' + chalk.yellow('💡 Tip: If "wenox" command not found, try: npx wenox'));
42
+ console.log('\n' + chalk.yellow('💡 Tip: If "wenox" command not found, try: npx wenox-cli'));
46
43
  process.exit(1);
47
44
  }
48
45
 
@@ -63,66 +60,6 @@ function setupWenoxDefaults() {
63
60
  }
64
61
  }
65
62
 
66
- async function installAiderIfNeeded() {
67
- return new Promise((resolve) => {
68
- // Check if aider is already installed
69
- const python = process.platform === 'win32' ? 'python' : 'python3';
70
- const checkChild = spawn(python, ['-c', 'import aider; print("OK")'], {
71
- stdio: 'pipe',
72
- shell: true
73
- });
74
-
75
- let output = '';
76
- checkChild.stdout.on('data', (data) => {
77
- output += data.toString();
78
- });
79
-
80
- checkChild.on('close', (code) => {
81
- if (code === 0 && output.includes('OK')) {
82
- console.log(chalk.green('✅ WENOX dependencies ready'));
83
- resolve();
84
- } else {
85
- console.log(chalk.cyan('📦 Installing WENOX dependencies (one-time setup)...'));
86
- console.log(chalk.yellow('⏳ This may take 1-2 minutes...'));
87
-
88
- // Install aider-chat with minimal dependencies
89
- const installChild = spawn(python, [
90
- '-m', 'pip', 'install',
91
- 'aider-chat>=0.16.0',
92
- '--user', // Install to user directory to avoid permission issues
93
- '--upgrade',
94
- '--quiet'
95
- ], {
96
- stdio: 'inherit',
97
- shell: true
98
- });
99
-
100
- installChild.on('close', (installCode) => {
101
- if (installCode === 0) {
102
- console.log(chalk.green('✅ WENOX dependencies installed successfully!'));
103
- resolve();
104
- } else {
105
- console.log(chalk.yellow('⚠️ Installation had issues, but WENOX may still work'));
106
- console.log(chalk.cyan('💡 If problems persist, try: pip install --upgrade pip setuptools'));
107
- resolve(); // Continue anyway
108
- }
109
- });
110
-
111
- installChild.on('error', () => {
112
- console.log(chalk.yellow('⚠️ Auto-installation failed'));
113
- console.log(chalk.cyan('💡 Please run manually: pip install aider-chat'));
114
- resolve(); // Continue anyway
115
- });
116
- }
117
- });
118
-
119
- checkChild.on('error', () => {
120
- console.log(chalk.yellow('⚠️ Could not check dependencies'));
121
- resolve(); // Continue anyway
122
- });
123
- });
124
- }
125
-
126
63
  async function runAider() {
127
64
  // Default arguments for WENOX
128
65
  const defaultArgs = [
@@ -139,6 +76,7 @@ async function runAider() {
139
76
  const args = [...defaultArgs, ...userArgs];
140
77
 
141
78
  console.log(chalk.green('✅ Starting WENOX Claude API Platform...\n'));
79
+ console.log(chalk.yellow('💡 Make sure you have: pip install aider-chat'));
142
80
 
143
81
  const python = process.platform === 'win32' ? 'python' : 'python3';
144
82
  const child = spawn(python, args, {
@@ -155,8 +93,12 @@ async function runAider() {
155
93
 
156
94
  child.on('error', (err) => {
157
95
  console.error(chalk.red('❌ Error starting WENOX:'), err.message);
158
- console.log(chalk.cyan('💡 Make sure Python is installed and in your PATH'));
159
- console.log(chalk.cyan('💡 Try: pip install aider-chat'));
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'));
160
102
  process.exit(1);
161
103
  });
162
104
  }
@@ -189,19 +131,20 @@ ${chalk.bold('Examples:')}
189
131
  wenox --model gpt-4 # Use specific model
190
132
 
191
133
  ${chalk.bold('Setup:')}
192
- 1. Get API key: ${chalk.blue('https://wenox.ai/dashboard')}
193
- 2. Set environment variable:
134
+ 1. Install Python dependency: ${chalk.cyan('pip install aider-chat')}
135
+ 2. Get API key: ${chalk.blue('https://wenox.ai/dashboard')}
136
+ 3. Set environment variable:
194
137
  ${chalk.yellow('CMD:')} set WENOX_API_KEY=your_key
195
138
  ${chalk.yellow('PowerShell:')} $env:WENOX_API_KEY="your_key"
196
- 3. Run: ${chalk.cyan('wenox')}
139
+ 4. Run: ${chalk.cyan('wenox')}
197
140
 
198
141
  ${chalk.bold('Troubleshooting:')}
199
- • If 'wenox' command not found, try: ${chalk.cyan('npx wenox')}
142
+ • If 'wenox' command not found, try: ${chalk.cyan('npx wenox-cli')}
143
+ • If Python errors: ${chalk.cyan('pip install aider-chat --user')}
200
144
  • Or restart your terminal after installation
201
- • Check PATH: ${chalk.cyan('npm config get prefix')}
202
145
 
203
146
  ${chalk.bold('System Requirements:')}
204
- • Python 3.10+ (automatically installs dependencies)
147
+ • Python 3.10+ with pip install aider-chat
205
148
  • Node.js 16+ for NPM installation
206
149
  `);
207
150
  return;
@@ -215,9 +158,6 @@ ${chalk.bold('System Requirements:')}
215
158
  // Check API key
216
159
  checkApiKey();
217
160
 
218
- // Install aider if needed (simplified approach)
219
- await installAiderIfNeeded();
220
-
221
161
  // Run aider with WENOX branding
222
162
  await runAider();
223
163
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wenox-cli",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "WENOX AI - Advanced AI-powered development assistant",
5
5
  "main": "index.js",
6
6
  "bin": {