vg-coder-cli 1.0.9 → 1.0.10

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/.vgignore CHANGED
@@ -3,8 +3,6 @@
3
3
  coverage/
4
4
  vg-output/
5
5
  test-small/
6
- test-large/
7
- vg-projects.txt
8
6
 
9
7
  # Additional ignores for VG Coder
10
8
  *.map
package/bin/vg.js ADDED
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * VG Coder CLI Entry Point
5
+ */
6
+
7
+ const VGCoderCLI = require('../src/index');
8
+
9
+ // Create and run CLI
10
+ const cli = new VGCoderCLI();
11
+ cli.run();
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "vg-coder-cli",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "🚀 CLI tool to analyze projects, concatenate source files, count tokens, and export HTML with syntax highlighting and copy functionality",
5
5
  "main": "src/index.js",
6
6
  "bin": {
7
+ "vg": "./bin/vg.js",
7
8
  "vg-coder": "./bin/vg-coder.js"
8
9
  },
9
10
  "scripts": {
@@ -11,7 +12,7 @@
11
12
  "test": "jest",
12
13
  "test:watch": "jest --watch",
13
14
  "dev": "nodemon src/index.js",
14
- "push" : "npm pack && npm publish"
15
+ "push": "npm pack && npm publish"
15
16
  },
16
17
  "keywords": [
17
18
  "cli",
@@ -61,4 +62,4 @@
61
62
  "engines": {
62
63
  "node": ">=16.0.0"
63
64
  }
64
- }
65
+ }
package/src/index.js CHANGED
@@ -25,13 +25,14 @@ class VGCoderCLI {
25
25
  */
26
26
  setupCommands() {
27
27
  this.program
28
- .name('vg-coder')
28
+ .name('vg')
29
29
  .description('CLI tool để phân tích dự án, nối file mã nguồn, đếm token và xuất HTML')
30
30
  .version(packageJson.version);
31
31
 
32
32
  // Analyze command
33
33
  this.program
34
34
  .command('analyze [path]')
35
+ .alias('a')
35
36
  .description('Phân tích dự án và tạo output HTML')
36
37
  .option('-o, --output <path>', 'Thư mục output', './vg-output')
37
38
  .option('-m, --max-tokens <number>', 'Số token tối đa mỗi chunk', '8000')
@@ -41,7 +42,7 @@ class VGCoderCLI {
41
42
  .option('--no-structure', 'Không ưu tiên giữ cấu trúc file')
42
43
  .option('--theme <theme>', 'Theme cho syntax highlighting', 'github')
43
44
  .option('--clipboard-only', 'Copy content to clipboard without creating files')
44
- .option('--clipboard', 'Alias for --clipboard-only')
45
+ .option('-c, --clipboard', 'Alias for --clipboard-only')
45
46
  .option('--save-txt', 'Save AI-friendly content to vg-projects.txt file')
46
47
  .action(this.handleAnalyze.bind(this));
47
48
 
@@ -1 +0,0 @@
1
- {"name": "test-large", "version": "1.0.0", "dependencies": {"react": "^18.0.0"}}
@@ -1 +0,0 @@
1
- export const Button = () => <button>Click me</button>;
@@ -1 +0,0 @@
1
- import { Button } from "./components/Button"; export default Button;
@@ -1 +0,0 @@
1
- {"name": "test-small", "version": "1.0.0"}
@@ -1 +0,0 @@
1
- console.log("Hello World");
Binary file
Binary file
package/vg-projects.txt DELETED
@@ -1,5 +0,0 @@
1
- // ===== FILE: package.json =====
2
- {"name": "test-small", "version": "1.0.0"}
3
-
4
- // ===== FILE: src/index.js =====
5
- console.log("Hello World");