wenox-cli 1.0.6 → 1.0.8
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/bin/wenox.js +48 -59
- package/package.json +7 -1
- package/requirements-wenox.txt +39 -0
package/bin/wenox.js
CHANGED
|
@@ -82,77 +82,66 @@ function checkAider() {
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
async function installAider() {
|
|
85
|
-
console.log(chalk.cyan('📦 Installing WENOX
|
|
85
|
+
console.log(chalk.cyan('📦 Installing WENOX Enterprise Environment...'));
|
|
86
|
+
console.log(chalk.yellow('🔧 This will install the exact same packages that work on the developer machine'));
|
|
86
87
|
|
|
87
88
|
const python = process.platform === 'win32' ? 'python' : 'python3';
|
|
88
89
|
const pip = process.platform === 'win32' ? 'pip' : 'pip3';
|
|
89
90
|
|
|
90
91
|
return new Promise((resolve, reject) => {
|
|
91
|
-
//
|
|
92
|
-
console.log(chalk.
|
|
93
|
-
|
|
92
|
+
// Install from our exact requirements file
|
|
93
|
+
console.log(chalk.cyan('📋 Installing from verified requirements...'));
|
|
94
|
+
|
|
95
|
+
const requirementsPath = path.join(__dirname, '..', 'requirements-wenox.txt');
|
|
96
|
+
|
|
97
|
+
const child = spawn(pip, [
|
|
98
|
+
'install',
|
|
99
|
+
'-r',
|
|
100
|
+
requirementsPath,
|
|
101
|
+
'--force-reinstall',
|
|
102
|
+
'--no-deps' // Skip dependency resolution, use exact versions
|
|
103
|
+
], {
|
|
94
104
|
stdio: 'inherit',
|
|
95
105
|
shell: true
|
|
96
106
|
});
|
|
97
107
|
|
|
98
|
-
|
|
99
|
-
if (
|
|
100
|
-
console.log(chalk.
|
|
108
|
+
child.on('close', (code) => {
|
|
109
|
+
if (code === 0) {
|
|
110
|
+
console.log(chalk.green('✅ WENOX Enterprise Environment installed successfully!'));
|
|
111
|
+
console.log(chalk.cyan('🎯 All packages match the developer environment'));
|
|
112
|
+
resolve();
|
|
113
|
+
} else {
|
|
114
|
+
console.log(chalk.yellow('⚠️ Some packages failed, trying fallback installation...'));
|
|
115
|
+
|
|
116
|
+
// Fallback: just install aider-chat with exact version
|
|
117
|
+
const fallbackChild = spawn(pip, [
|
|
118
|
+
'install',
|
|
119
|
+
'aider-chat==0.16.0',
|
|
120
|
+
'openai==1.109.1',
|
|
121
|
+
'anthropic==0.76.0',
|
|
122
|
+
'--force-reinstall'
|
|
123
|
+
], {
|
|
124
|
+
stdio: 'inherit',
|
|
125
|
+
shell: true
|
|
126
|
+
});
|
|
127
|
+
|
|
128
|
+
fallbackChild.on('close', (fallbackCode) => {
|
|
129
|
+
if (fallbackCode === 0) {
|
|
130
|
+
console.log(chalk.green('✅ WENOX core packages installed successfully!'));
|
|
131
|
+
resolve();
|
|
132
|
+
} else {
|
|
133
|
+
reject(new Error('Failed to install WENOX dependencies'));
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
fallbackChild.on('error', (err) => {
|
|
138
|
+
reject(err);
|
|
139
|
+
});
|
|
101
140
|
}
|
|
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
|
-
});
|
|
151
141
|
});
|
|
152
142
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
// Continue with installation even if upgrade fails
|
|
143
|
+
child.on('error', (err) => {
|
|
144
|
+
reject(err);
|
|
156
145
|
});
|
|
157
146
|
});
|
|
158
147
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wenox-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "WENOX AI - Advanced AI-powered development assistant",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -31,6 +31,12 @@
|
|
|
31
31
|
"boxen": "^7.1.1",
|
|
32
32
|
"node-fetch": "^3.3.2"
|
|
33
33
|
},
|
|
34
|
+
"files": [
|
|
35
|
+
"bin/",
|
|
36
|
+
"scripts/",
|
|
37
|
+
"README.md",
|
|
38
|
+
"requirements-wenox.txt"
|
|
39
|
+
],
|
|
34
40
|
"engines": {
|
|
35
41
|
"node": ">=16.0.0"
|
|
36
42
|
},
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# WENOX Enterprise Environment - Exact Working Versions
|
|
2
|
+
aider-chat==0.16.0
|
|
3
|
+
openai==0.27.6
|
|
4
|
+
async-timeout==4.0.2
|
|
5
|
+
aiohttp==3.8.4
|
|
6
|
+
aiosignal==1.3.1
|
|
7
|
+
attrs==23.1.0
|
|
8
|
+
certifi==2023.5.7
|
|
9
|
+
charset-normalizer==3.1.0
|
|
10
|
+
diskcache==5.6.1
|
|
11
|
+
frozenlist==1.3.3
|
|
12
|
+
gitdb==4.0.10
|
|
13
|
+
GitPython==3.1.31
|
|
14
|
+
grep-ast==0.2.0
|
|
15
|
+
idna==3.4
|
|
16
|
+
jsonschema==4.17.3
|
|
17
|
+
markdown-it-py==2.2.0
|
|
18
|
+
multidict==6.0.4
|
|
19
|
+
networkx==3.1
|
|
20
|
+
numpy==1.24.3
|
|
21
|
+
pathspec==0.11.2
|
|
22
|
+
prompt-toolkit==3.0.38
|
|
23
|
+
Pygments==2.15.1
|
|
24
|
+
pytest==7.3.1
|
|
25
|
+
requests==2.30.0
|
|
26
|
+
rich==13.3.5
|
|
27
|
+
scipy==1.10.1
|
|
28
|
+
smmap==5.0.0
|
|
29
|
+
sounddevice==0.4.6
|
|
30
|
+
soundfile==0.12.1
|
|
31
|
+
tiktoken==0.4.0
|
|
32
|
+
tqdm==4.65.0
|
|
33
|
+
urllib3==2.0.2
|
|
34
|
+
wcwidth==0.2.6
|
|
35
|
+
yarl==1.9.2
|
|
36
|
+
backoff==2.2.1
|
|
37
|
+
configargparse==1.7.1
|
|
38
|
+
mdurl==0.1.2
|
|
39
|
+
PyYAML==6.0.3
|