Commit 3ff31c7
committed
feat(cli): enhance stats and storage output with 10x performance boost
- Optimize dev stats to read JSON directly (0.7s vs 7s, 10x faster)
- Add visual progress bars and percentages to language breakdown
- Display summary line with repo, files, components, storage, and age
- Show git context (branch, commit, remote) in stats output
- Add health indicators and actionable next steps
- Upgrade dev storage info with clean table format and status icons
- Remove logger timestamps from user-facing commands for cleaner output
Bug Fixes:
- Fix dev update bug where totalDocuments was set to batch size instead of
querying actual LanceDB vector count, causing stats to show incorrect totals
- Calculate total components from byLanguage sum for accuracy
Output Improvements:
- Consistent hybrid style across commands (gh CLI + docker inspired)
- Tables for structured data with visual status indicators (✓, ⚠, ✗)
- Progressive disclosure (important info first)
- Human-readable sizes and relative timestamps
- Maintained consistency with existing dev gh commands
Breaking Changes:
- dev stats no longer has 'show' subcommand (stats is now direct command)
- Removed --verbose flag (detailed table is now default)
Affects: #148 (Dashboard & Visualization epic)1 parent df19423 commit 3ff31c7
File tree
6 files changed
+767
-508
lines changed- packages
- cli/src
- commands
- utils
- core/src/indexer
6 files changed
+767
-508
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
71 | 64 | | |
72 | 65 | | |
73 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
15 | 20 | | |
16 | 21 | | |
17 | 22 | | |
| |||
169 | 174 | | |
170 | 175 | | |
171 | 176 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
| 177 | + | |
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
182 | 181 | | |
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
| 185 | + | |
210 | 186 | | |
211 | 187 | | |
212 | 188 | | |
| |||
257 | 233 | | |
258 | 234 | | |
259 | 235 | | |
260 | | - | |
| 236 | + | |
261 | 237 | | |
262 | 238 | | |
263 | 239 | | |
264 | 240 | | |
265 | 241 | | |
266 | 242 | | |
| 243 | + | |
267 | 244 | | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | | - | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
300 | 272 | | |
301 | 273 | | |
302 | 274 | | |
| |||
319 | 291 | | |
320 | 292 | | |
321 | 293 | | |
322 | | - | |
323 | | - | |
324 | | - | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
325 | 297 | | |
326 | 298 | | |
327 | 299 | | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
| 300 | + | |
358 | 301 | | |
359 | 302 | | |
360 | | - | |
| 303 | + | |
361 | 304 | | |
362 | 305 | | |
363 | 306 | | |
| |||
0 commit comments