wenox-cli 1.0.0 → 1.0.1
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 +26 -3
- package/package.json +2 -3
- package/scripts/install-python-deps.js +16 -9
package/bin/wenox.js
CHANGED
|
@@ -1,11 +1,34 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const { spawn } = require('child_process');
|
|
4
4
|
const path = require('path');
|
|
5
5
|
const fs = require('fs');
|
|
6
6
|
const os = require('os');
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
|
|
8
|
+
// Simple console colors
|
|
9
|
+
const chalk = {
|
|
10
|
+
cyan: (text) => `\x1b[36m${text}\x1b[0m`,
|
|
11
|
+
green: (text) => `\x1b[32m${text}\x1b[0m`,
|
|
12
|
+
yellow: (text) => `\x1b[33m${text}\x1b[0m`,
|
|
13
|
+
red: (text) => `\x1b[31m${text}\x1b[0m`,
|
|
14
|
+
blue: (text) => `\x1b[34m${text}\x1b[0m`,
|
|
15
|
+
bold: (text) => `\x1b[1m${text}\x1b[0m`
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// Simple boxen replacement
|
|
19
|
+
function boxen(content, options = {}) {
|
|
20
|
+
const lines = content.split('\n');
|
|
21
|
+
const maxLength = Math.max(...lines.map(line => line.length));
|
|
22
|
+
const border = '─'.repeat(maxLength + 2);
|
|
23
|
+
|
|
24
|
+
let result = `┌${border}┐\n`;
|
|
25
|
+
lines.forEach(line => {
|
|
26
|
+
result += `│ ${line.padEnd(maxLength)} │\n`;
|
|
27
|
+
});
|
|
28
|
+
result += `└${border}┘`;
|
|
29
|
+
|
|
30
|
+
return result;
|
|
31
|
+
}
|
|
9
32
|
|
|
10
33
|
// WENOX Banner
|
|
11
34
|
const banner = chalk.cyan(`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wenox-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "WENOX AI - Advanced AI-powered development assistant",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -26,7 +26,6 @@
|
|
|
26
26
|
"url": "git+https://github.com/wenox/wenox-cli.git"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"chalk": "^5.3.0",
|
|
30
29
|
"inquirer": "^9.2.12",
|
|
31
30
|
"ora": "^7.0.1",
|
|
32
31
|
"boxen": "^7.1.1",
|
|
@@ -40,4 +39,4 @@
|
|
|
40
39
|
"linux",
|
|
41
40
|
"win32"
|
|
42
41
|
]
|
|
43
|
-
}
|
|
42
|
+
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const { spawn } = require('child_process');
|
|
4
|
-
const chalk = require('chalk');
|
|
5
4
|
|
|
6
|
-
console
|
|
5
|
+
// Simple console colors without chalk
|
|
6
|
+
const colors = {
|
|
7
|
+
cyan: (text) => `\x1b[36m${text}\x1b[0m`,
|
|
8
|
+
green: (text) => `\x1b[32m${text}\x1b[0m`,
|
|
9
|
+
yellow: (text) => `\x1b[33m${text}\x1b[0m`,
|
|
10
|
+
blue: (text) => `\x1b[34m${text}\x1b[0m`
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
console.log(colors.cyan('🚀 Setting up WENOX CLI...'));
|
|
7
14
|
|
|
8
15
|
function checkPython() {
|
|
9
16
|
return new Promise((resolve) => {
|
|
@@ -24,18 +31,18 @@ async function main() {
|
|
|
24
31
|
const hasPython = await checkPython();
|
|
25
32
|
|
|
26
33
|
if (!hasPython) {
|
|
27
|
-
console.log(
|
|
34
|
+
console.log(colors.yellow('⚠️ Python 3.10+ is required for WENOX CLI'));
|
|
28
35
|
console.log('Please install Python from: https://python.org');
|
|
29
|
-
console.log('After installing Python, run: ' +
|
|
36
|
+
console.log('After installing Python, run: ' + colors.cyan('npm install -g wenox-cli'));
|
|
30
37
|
return;
|
|
31
38
|
}
|
|
32
39
|
|
|
33
|
-
console.log(
|
|
34
|
-
console.log(
|
|
40
|
+
console.log(colors.green('✅ Python detected'));
|
|
41
|
+
console.log(colors.green('✅ WENOX CLI is ready!'));
|
|
35
42
|
console.log('\nNext steps:');
|
|
36
|
-
console.log('1. Get your API key: ' +
|
|
37
|
-
console.log('2. Set environment: ' +
|
|
38
|
-
console.log('3. Run: ' +
|
|
43
|
+
console.log('1. Get your API key: ' + colors.blue('https://wenox.ai/dashboard'));
|
|
44
|
+
console.log('2. Set environment: ' + colors.yellow('export WENOX_API_KEY=your_key'));
|
|
45
|
+
console.log('3. Run: ' + colors.cyan('wenox'));
|
|
39
46
|
}
|
|
40
47
|
|
|
41
48
|
main();
|