vg-coder-cli 2.0.47 → 2.0.48
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/vg-coder.js +7 -0
- package/bin/vg.js +10 -0
- package/package.json +6 -2
- package/debug.log +0 -42
- package/test-large/package.json +0 -1
- package/test-large/src/components/Button.tsx +0 -1
- package/test-large/src/index.ts +0 -1
- package/test-small/package.json +0 -1
- package/test-small/src/index.js +0 -1
package/bin/vg-coder.js
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
* VG Coder CLI Entry Point
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
// Notify the user when a newer version is on npm. See bin/vg.js for details.
|
|
8
|
+
try {
|
|
9
|
+
const updateNotifier = require('update-notifier');
|
|
10
|
+
const pkg = require('../package.json');
|
|
11
|
+
updateNotifier({ pkg, updateCheckInterval: 1000 * 60 * 60 * 6 }).notify({ defer: true });
|
|
12
|
+
} catch (_) { /* ignore */ }
|
|
13
|
+
|
|
7
14
|
const VGCoderCLI = require('../src/index');
|
|
8
15
|
|
|
9
16
|
// Create and run CLI
|
package/bin/vg.js
CHANGED
|
@@ -4,6 +4,16 @@
|
|
|
4
4
|
* VG Coder CLI Entry Point
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
// Notify the user when a newer version is on npm. update-notifier caches
|
|
8
|
+
// the check (default ~6 hours via configstore) and prints a banner on
|
|
9
|
+
// next process exit (defer: true) so it never blocks startup. Wrapped in
|
|
10
|
+
// try/catch so a missing module / offline environment never breaks the CLI.
|
|
11
|
+
try {
|
|
12
|
+
const updateNotifier = require('update-notifier');
|
|
13
|
+
const pkg = require('../package.json');
|
|
14
|
+
updateNotifier({ pkg, updateCheckInterval: 1000 * 60 * 60 * 6 }).notify({ defer: true });
|
|
15
|
+
} catch (_) { /* ignore */ }
|
|
16
|
+
|
|
7
17
|
const VGCoderCLI = require('../src/index');
|
|
8
18
|
|
|
9
19
|
// Create and run CLI
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vg-coder-cli",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.48",
|
|
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": {
|
|
@@ -19,7 +19,10 @@
|
|
|
19
19
|
"build:copy": "node scripts/build.js",
|
|
20
20
|
"build": "npm run deploy-scripts && npm run build:extension && npm run build:copy && npm run build:inject && npm run install:local",
|
|
21
21
|
"push": "npm run build && npm pack && npm publish",
|
|
22
|
-
"build:inject": "gulp"
|
|
22
|
+
"build:inject": "gulp",
|
|
23
|
+
"release:patch": "npm version patch -m \"chore: release v%s\" && git push --follow-tags origin main",
|
|
24
|
+
"release:minor": "npm version minor -m \"chore: release v%s\" && git push --follow-tags origin main",
|
|
25
|
+
"release:major": "npm version major -m \"chore: release v%s\" && git push --follow-tags origin main"
|
|
23
26
|
},
|
|
24
27
|
"keywords": [
|
|
25
28
|
"cli",
|
|
@@ -52,6 +55,7 @@
|
|
|
52
55
|
"socket.io": "^4.7.2",
|
|
53
56
|
"socket.io-client": "^4.8.3",
|
|
54
57
|
"tiktoken": "^1.0.10",
|
|
58
|
+
"update-notifier": "^5.1.0",
|
|
55
59
|
"xterm": "^5.3.0",
|
|
56
60
|
"xterm-addon-fit": "^0.8.0"
|
|
57
61
|
},
|
package/debug.log
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
- Initializing analysis...
|
|
2
|
-
|
|
3
|
-
📁 Project Detection:
|
|
4
|
-
Primary Type: react
|
|
5
|
-
Other Types: nodejs
|
|
6
|
-
|
|
7
|
-
📊 Scan Results:
|
|
8
|
-
Files Found: 3
|
|
9
|
-
Files Processed: 3
|
|
10
|
-
Scan Time: 13ms
|
|
11
|
-
|
|
12
|
-
📁 Directory Structure:
|
|
13
|
-
test-large/
|
|
14
|
-
├── src
|
|
15
|
-
│ ├── components
|
|
16
|
-
│ │ └── Button.tsx (.tsx)
|
|
17
|
-
│ └── index.ts (.ts)
|
|
18
|
-
└── package.json (.json)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
🧮 Token Analysis:
|
|
22
|
-
Total Tokens: 121
|
|
23
|
-
Average Tokens/File: 40
|
|
24
|
-
Files Exceeding Limit: 0
|
|
25
|
-
Estimated Chunks: 1
|
|
26
|
-
DEBUG - aiContent length: 322
|
|
27
|
-
DEBUG - first 200 chars: // ===== FILE: package.json =====
|
|
28
|
-
{"name": "test-large", "version": "1.0.0", "dependencies": {"react": "^18.0.0"}}
|
|
29
|
-
|
|
30
|
-
// ===== FILE: src/components/Button.tsx =====
|
|
31
|
-
export const Button = () => <button>C
|
|
32
|
-
✔ Content saved to vg-projects.txt successfully!
|
|
33
|
-
|
|
34
|
-
📄 File Content:
|
|
35
|
-
Output: /Users/thanhhuynh/Documents/vg-coder-cli/vg-projects.txt
|
|
36
|
-
Files: 3
|
|
37
|
-
Lines: 9
|
|
38
|
-
Characters: 322
|
|
39
|
-
Size: 322 Bytes
|
|
40
|
-
|
|
41
|
-
💡 Ready for AI analysis!
|
|
42
|
-
Content is now saved in vg-projects.txt and ready for AI tools.
|
package/test-large/package.json
DELETED
|
@@ -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>;
|
package/test-large/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { Button } from "./components/Button"; export default Button;
|
package/test-small/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name": "test-small", "version": "1.0.0"}
|
package/test-small/src/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
console.log("Hello World");
|