vertex-cli 1.0.2 → 1.1.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/LICENSE +21 -0
- package/README.md +207 -28
- package/bin/vertex-bump +0 -0
- package/bin/vertex-check +0 -0
- package/bin/vertex-commit +0 -0
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Lakshya Rohila
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,38 +1,197 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+

|
|
4
|
+
|
|
5
|
+
# 🚀 VERTEX CLI
|
|
6
|
+
|
|
7
|
+
**AI-Powered Developer Productivity Tools**
|
|
8
|
+
|
|
9
|
+
[](https://www.npmjs.com/package/vertex-cli)
|
|
10
|
+
[](https://www.npmjs.com/package/vertex-cli)
|
|
11
|
+
[](LICENSE)
|
|
12
|
+
|
|
13
|
+
**macOS** • **Linux** • **Windows (WSL)**
|
|
14
|
+
|
|
15
|
+
[Installation](#-installation) • [Features](#-features) • [Usage](#-usage) • [How It Works](#-how-it-works)
|
|
16
|
+
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## ✨ Features
|
|
22
|
+
|
|
23
|
+
<table>
|
|
24
|
+
<tr>
|
|
25
|
+
<td align="center" width="33%">
|
|
26
|
+
|
|
27
|
+
### 🤖 AI Commits
|
|
28
|
+
Generate perfect conventional commit messages using local AI. No cloud APIs - 100% private.
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
vertex-commit
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
</td>
|
|
35
|
+
<td align="center" width="33%">
|
|
36
|
+
|
|
37
|
+
### 🔍 Diagnostics
|
|
38
|
+
TypeScript, ESLint & npm audit with AI-powered error explanations.
|
|
39
|
+
|
|
40
|
+
```bash
|
|
41
|
+
vertex-check
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
</td>
|
|
45
|
+
<td align="center" width="33%">
|
|
46
|
+
|
|
47
|
+
### 📦 Version Bump
|
|
48
|
+
Interactive semantic versioning with auto-commit support.
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
vertex-bump
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
</td>
|
|
55
|
+
</tr>
|
|
56
|
+
</table>
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## 📥 Installation
|
|
4
61
|
|
|
5
62
|
```bash
|
|
6
63
|
npm install -g vertex-cli
|
|
7
64
|
```
|
|
8
65
|
|
|
9
|
-
|
|
66
|
+
**That's it!** 🎉 All dependencies are auto-installed.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## 🎯 Usage
|
|
71
|
+
|
|
72
|
+
### AI-Powered Commits
|
|
10
73
|
|
|
11
|
-
### Smart Commit
|
|
12
74
|
```bash
|
|
75
|
+
# Stage your changes
|
|
76
|
+
git add .
|
|
77
|
+
|
|
78
|
+
# Generate AI commit message
|
|
13
79
|
vertex-commit
|
|
14
80
|
```
|
|
15
81
|
|
|
16
|
-
|
|
82
|
+
<details>
|
|
83
|
+
<summary>📸 See Example Output</summary>
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
██╗ ██╗███████╗██████╗ ████████╗███████╗██╗ ██╗
|
|
87
|
+
██║ ██║██╔════╝██╔══██╗╚══██╔══╝██╔════╝╚██╗██╔╝
|
|
88
|
+
██║ ██║█████╗ ██████╔╝ ██║ █████╗ ╚███╔╝
|
|
89
|
+
╚██╗ ██╔╝██╔══╝ ██╔══██╗ ██║ ██╔══╝ ██╔██╗
|
|
90
|
+
╚████╔╝ ███████╗██║ ██║ ██║ ███████╗██╔╝ ██╗
|
|
91
|
+
╚═══╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚══════╝╚═╝ ╚═╝
|
|
92
|
+
|
|
93
|
+
✓ Changes Detected: 3 files
|
|
94
|
+
✓ AI Generated: feat(auth): add OAuth2 login flow
|
|
95
|
+
|
|
96
|
+
Accept? [Y/n]
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
</details>
|
|
100
|
+
|
|
101
|
+
### Project Diagnostics
|
|
102
|
+
|
|
17
103
|
```bash
|
|
18
104
|
vertex-check
|
|
19
105
|
```
|
|
20
106
|
|
|
21
|
-
|
|
107
|
+
Runs comprehensive checks:
|
|
108
|
+
- ✅ TypeScript compilation
|
|
109
|
+
- ✅ ESLint analysis
|
|
110
|
+
- ✅ npm audit security scan
|
|
111
|
+
- ✅ Dead code detection
|
|
112
|
+
- 🤖 AI error explanations
|
|
113
|
+
|
|
114
|
+
### Version Management
|
|
115
|
+
|
|
22
116
|
```bash
|
|
23
117
|
vertex-bump
|
|
24
118
|
```
|
|
25
119
|
|
|
26
|
-
|
|
27
|
-
|
|
120
|
+
- 📌 Patch (0.0.x) - Bug fixes
|
|
121
|
+
- 🔧 Minor (0.x.0) - New features
|
|
122
|
+
- 🚀 Major (x.0.0) - Breaking changes
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## 🔧 How It Works
|
|
127
|
+
|
|
128
|
+
### Zero-Setup Experience
|
|
129
|
+
|
|
130
|
+
When you run any VERTEX command, it automatically:
|
|
131
|
+
|
|
132
|
+
```
|
|
133
|
+
1️⃣ Detects your OS (macOS / Linux / Windows WSL)
|
|
134
|
+
↓
|
|
135
|
+
2️⃣ Installs missing dependencies
|
|
136
|
+
• gum (terminal UI)
|
|
137
|
+
• jq (JSON processing)
|
|
138
|
+
• Ollama (local AI engine)
|
|
139
|
+
↓
|
|
140
|
+
3️⃣ Downloads AI model (qwen2.5-coder:1.5b)
|
|
141
|
+
↓
|
|
142
|
+
4️⃣ Starts Ollama server
|
|
143
|
+
↓
|
|
144
|
+
5️⃣ Runs your command! ✨
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Supported Package Managers
|
|
28
148
|
|
|
29
|
-
|
|
149
|
+
| OS | Package Manager |
|
|
150
|
+
|:---|:----------------|
|
|
151
|
+
| 🍎 macOS | Homebrew |
|
|
152
|
+
| 🐧 Ubuntu/Debian | apt |
|
|
153
|
+
| 🎩 Fedora/RHEL | dnf |
|
|
154
|
+
| 🏔️ Alpine | apk |
|
|
155
|
+
| 🔵 Arch | pacman |
|
|
156
|
+
| 🪟 Windows | WSL + apt/brew |
|
|
30
157
|
|
|
31
|
-
|
|
158
|
+
---
|
|
32
159
|
|
|
33
|
-
|
|
34
|
-
|
|
160
|
+
## 🔒 Privacy First
|
|
161
|
+
|
|
162
|
+
- **100% Local AI** - Uses Ollama, runs on your machine
|
|
163
|
+
- **No Cloud APIs** - Your code never leaves your computer
|
|
164
|
+
- **No Data Collection** - Zero telemetry
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## 💻 System Requirements
|
|
169
|
+
|
|
170
|
+
| Requirement | Minimum |
|
|
171
|
+
|:------------|:--------|
|
|
172
|
+
| Node.js | 16+ |
|
|
173
|
+
| RAM | 4GB (8GB recommended for AI) |
|
|
174
|
+
| Disk | 2GB free space |
|
|
175
|
+
|
|
176
|
+
### Windows Users
|
|
177
|
+
|
|
178
|
+
VERTEX requires **WSL** (Windows Subsystem for Linux):
|
|
179
|
+
|
|
180
|
+
```powershell
|
|
181
|
+
# Install WSL (run as Administrator)
|
|
182
|
+
wsl --install
|
|
183
|
+
|
|
184
|
+
# Then install vertex-cli inside WSL
|
|
185
|
+
npm install -g vertex-cli
|
|
186
|
+
```
|
|
35
187
|
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## 🔗 Integration Guide
|
|
191
|
+
|
|
192
|
+
### Display Version in Your App
|
|
193
|
+
|
|
194
|
+
**1. Update `vite.config.ts`**
|
|
36
195
|
```typescript
|
|
37
196
|
import { defineConfig } from "vite";
|
|
38
197
|
import packageJson from "./package.json";
|
|
@@ -41,29 +200,49 @@ export default defineConfig({
|
|
|
41
200
|
define: {
|
|
42
201
|
__APP_VERSION__: JSON.stringify(packageJson.version),
|
|
43
202
|
},
|
|
44
|
-
// ... rest of config
|
|
45
203
|
});
|
|
46
204
|
```
|
|
47
205
|
|
|
48
|
-
|
|
49
|
-
Create `src/vite-env.d.ts` so TypeScript knows about the constant:
|
|
50
|
-
|
|
206
|
+
**2. Add Type Definition** (`src/vite-env.d.ts`)
|
|
51
207
|
```typescript
|
|
52
|
-
/// <reference types="vite/client" />
|
|
53
208
|
declare const __APP_VERSION__: string;
|
|
54
209
|
```
|
|
55
210
|
|
|
56
|
-
|
|
57
|
-
Now you can use `__APP_VERSION__` anywhere!
|
|
58
|
-
|
|
211
|
+
**3. Use in Component**
|
|
59
212
|
```tsx
|
|
60
|
-
|
|
61
|
-
return (
|
|
62
|
-
<div className="text-gray-500 text-sm">
|
|
63
|
-
v{__APP_VERSION__}
|
|
64
|
-
</div>
|
|
65
|
-
);
|
|
66
|
-
}
|
|
213
|
+
<span>v{__APP_VERSION__}</span>
|
|
67
214
|
```
|
|
68
215
|
|
|
69
|
-
Now run `vertex-bump
|
|
216
|
+
Now run `vertex-bump` and your UI updates automatically! 🎉
|
|
217
|
+
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
## 📋 Commands Reference
|
|
221
|
+
|
|
222
|
+
| Command | Description |
|
|
223
|
+
|:--------|:------------|
|
|
224
|
+
| `vertex-commit` | AI-powered commit message generator |
|
|
225
|
+
| `vertex-check` | Project diagnostics & health check |
|
|
226
|
+
| `vertex-bump` | Interactive version bumping |
|
|
227
|
+
|
|
228
|
+
---
|
|
229
|
+
|
|
230
|
+
## 🤝 Contributing
|
|
231
|
+
|
|
232
|
+
Contributions welcome! Please open an issue first to discuss changes.
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
|
|
236
|
+
## 📄 License
|
|
237
|
+
|
|
238
|
+
MIT © [VERTEX](https://github.com/lakshyarohila)
|
|
239
|
+
|
|
240
|
+
---
|
|
241
|
+
|
|
242
|
+
<div align="center">
|
|
243
|
+
|
|
244
|
+
**Made with 💜 for developers who value their time**
|
|
245
|
+
|
|
246
|
+
[⬆ Back to Top](#-vertex-cli)
|
|
247
|
+
|
|
248
|
+
</div>
|
package/bin/vertex-bump
CHANGED
|
Binary file
|
package/bin/vertex-check
CHANGED
|
Binary file
|
package/bin/vertex-commit
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vertex-cli",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Protected CLI for VERTEX Diagnostics & Commit Intelligence",
|
|
5
5
|
"bin": {
|
|
6
6
|
"vertex-commit": "bin/vertex-commit",
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"diagnostics"
|
|
21
21
|
],
|
|
22
22
|
"author": "VERTEX",
|
|
23
|
-
"license": "
|
|
23
|
+
"license": "MIT"
|
|
24
24
|
}
|