vg-coder-cli 2.0.38 → 2.0.40

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 (2) hide show
  1. package/package.json +4 -1
  2. package/src/index.js +11 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vg-coder-cli",
3
- "version": "2.0.38",
3
+ "version": "2.0.40",
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": {
@@ -31,6 +31,7 @@
31
31
  "author": "VG Coder",
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
+ "-": "^0.0.1",
34
35
  "body-parser": "^1.20.2",
35
36
  "chalk": "^4.1.2",
36
37
  "commander": "^11.1.0",
@@ -39,6 +40,7 @@
39
40
  "directory-tree": "^3.5.1",
40
41
  "express": "^4.18.2",
41
42
  "fs-extra": "^11.3.3",
43
+ "g": "^2.0.1",
42
44
  "highlight.js": "^11.9.0",
43
45
  "ignore": "^5.3.0",
44
46
  "markdown-it": "^14.0.0",
@@ -49,6 +51,7 @@
49
51
  "socket.io": "^4.7.2",
50
52
  "socket.io-client": "^4.8.3",
51
53
  "tiktoken": "^1.0.10",
54
+ "vg-coder-cli": "^2.0.38",
52
55
  "xterm": "^5.3.0",
53
56
  "xterm-addon-fit": "^0.8.0"
54
57
  },
package/src/index.js CHANGED
@@ -236,11 +236,17 @@ class VGCoderCLI {
236
236
  console.log(`📡 URL: http://localhost:${server.port}`);
237
237
  console.log(chalk.cyan('──────────────────────────────────────────────────'));
238
238
 
239
- console.log(chalk.yellow('\n🧩 CHƯA CÀI EXTENSION?'));
240
- console.log('1. Truy cập: chrome://extensions');
241
- console.log('2. Bật "Developer mode" (Góc phải trên)');
242
- console.log('3. Bấm "Load unpacked" và chọn thư mục dưới đây:');
243
- console.log(chalk.bgBlue.white.bold(` ${extensionPath} `));
239
+ // Only show extension guide if extension folder exists
240
+ if (await fs.pathExists(extensionPath)) {
241
+ console.log(chalk.yellow('\n🧩 CHƯA CÀI EXTENSION?'));
242
+ console.log('1. Truy cập: chrome://extensions');
243
+ console.log('2. Bật "Developer mode" (Góc phải trên)');
244
+ console.log('3. Bấm "Load unpacked" và chọn thư mục dưới đây:');
245
+ console.log(chalk.bgBlue.white.bold(` ${extensionPath} `));
246
+ } else {
247
+ console.log(chalk.yellow('\n🧩 Extension đã được đóng gói với npm package'));
248
+ console.log('📦 Extension sẽ được inject tự động qua server');
249
+ }
244
250
 
245
251
  console.log(chalk.yellow('\n👉 HƯỚNG DẪN SỬ DỤNG:'));
246
252
  console.log('1. Mở trang chat AI (ChatGPT, Claude, v.v.)');