ai-help-coder 1.0.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.
package/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # AI-Help-Coder
2
+
3
+ Interactive CLI tool for AI-powered coding assistance.
4
+
5
+ ## Installation
6
+
7
+ ### Using npx (Recommended)
8
+
9
+ No installation required! Just run:
10
+
11
+ ```bash
12
+ npx @ai-help-coder/cli
13
+ ```
14
+
15
+ ### Global Installation
16
+
17
+ ```bash
18
+ npm install -g @ai-help-coder/cli
19
+ ai-help-coder
20
+ ```
21
+
22
+ ## Usage
23
+
24
+ Simply execute the command and use arrow keys to select from the available options:
25
+
26
+ ```bash
27
+ npx @ai-help-coder/cli
28
+ ```
29
+
30
+ You'll see an interactive menu where you can choose between different actions:
31
+ - **test** - Test action 1
32
+ - **test2** - Test action 2
33
+ - **Exit** - Exit the program
34
+
35
+ ## Requirements
36
+
37
+ - Node.js >= 14.0.0
38
+
39
+ ## Platform Support
40
+
41
+ ✅ macOS
42
+ ✅ Windows
43
+ ✅ Linux
44
+
45
+ ## License
46
+
47
+ MIT
package/bin/cli.js ADDED
@@ -0,0 +1,54 @@
1
+ #!/usr/bin/env node
2
+
3
+ const inquirer = require('inquirer');
4
+
5
+ console.log('\n');
6
+ console.log('╔═══════════════════════════════════╗');
7
+ console.log('║ AI-HELP-CODER v1.0.0 ║');
8
+ console.log('╚═══════════════════════════════════╝');
9
+ console.log('\n');
10
+
11
+ async function main() {
12
+ try {
13
+ const answers = await inquirer.prompt([
14
+ {
15
+ type: 'list',
16
+ name: 'action',
17
+ message: 'Please select an option:',
18
+ choices: [
19
+ { name: 'test', value: 'test' },
20
+ { name: 'test2', value: 'test2' },
21
+ { name: 'Exit', value: 'exit' }
22
+ ]
23
+ }
24
+ ]);
25
+
26
+ console.log('\n');
27
+
28
+ switch (answers.action) {
29
+ case 'test':
30
+ console.log('✓ You selected: test');
31
+ console.log('Running test action...\n');
32
+ break;
33
+ case 'test2':
34
+ console.log('✓ You selected: test2');
35
+ console.log('Running test2 action...\n');
36
+ break;
37
+ case 'exit':
38
+ console.log('👋 Goodbye!\n');
39
+ process.exit(0);
40
+ break;
41
+ default:
42
+ console.log('Invalid option\n');
43
+ }
44
+ } catch (error) {
45
+ if (error.isTtyError) {
46
+ console.error('Prompt couldn\'t be rendered in the current environment');
47
+ } else {
48
+ console.error('Something went wrong:', error.message);
49
+ }
50
+ process.exit(1);
51
+ }
52
+ }
53
+
54
+ main();
package/index.js ADDED
@@ -0,0 +1,4 @@
1
+ module.exports = {
2
+ version: '1.0.0',
3
+ name: 'ai-help-coder'
4
+ };
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "ai-help-coder",
3
+ "version": "1.0.0",
4
+ "description": "AI Help Coder - Interactive CLI tool",
5
+ "main": "index.js",
6
+ "bin": {
7
+ "ai-help-coder": "./bin/cli.js"
8
+ },
9
+ "scripts": {
10
+ "test": "echo \"Error: no test specified\" && exit 1"
11
+ },
12
+ "keywords": [
13
+ "cli",
14
+ "ai",
15
+ "helper",
16
+ "interactive"
17
+ ],
18
+ "author": "",
19
+ "license": "MIT",
20
+ "dependencies": {
21
+ "inquirer": "^8.2.5"
22
+ },
23
+ "engines": {
24
+ "node": ">=14.0.0"
25
+ },
26
+ "files": [
27
+ "bin",
28
+ "index.js",
29
+ "README.md"
30
+ ]
31
+ }