Skip to content

Commit 5c2b101

Browse files
committed
chore: add changeset for visual formatting and GitHub stats improvements
1 parent 46ffe37 commit 5c2b101

File tree

1 file changed

+99
-0
lines changed

1 file changed

+99
-0
lines changed
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
---
2+
"@lytics/dev-agent-cli": patch
3+
"@lytics/dev-agent-core": patch
4+
"@lytics/dev-agent-subagents": patch
5+
"@lytics/dev-agent-types": patch
6+
"dev-agent": patch
7+
---
8+
9+
# Visual Formatting & GitHub Stats Improvements
10+
11+
## Visual Enhancements ✨
12+
13+
### Tree Branches & File Icons
14+
All CLI outputs now use consistent tree-based formatting with file icons:
15+
16+
**`dev map` hot paths:**
17+
```
18+
## Hot Paths (most referenced)
19+
├─ 📘 **typescript.ts** • 307 refs
20+
/packages/core/src/scanner
21+
├─ 📘 **index.ts** • 251 refs
22+
/packages/core/src/indexer
23+
└─ 📘 **go.ts** • 152 refs
24+
/packages/core/src/scanner
25+
```
26+
27+
**`dev activity` output:**
28+
```
29+
├─ 📘 packages/mcp-server/bin/dev-agent-mcp.ts
30+
│ 34 commits • 1 👤 • Last: today
31+
32+
├─ 📘 packages/core/src/indexer/index.ts
33+
│ 32 commits • 1 👤 • Last: today
34+
```
35+
36+
### Shared Icon Utility
37+
Extracted `getFileIcon()` to `@lytics/dev-agent-core/utils` for reuse across packages.
38+
39+
## GitHub Stats Fix 🐛
40+
41+
Fixed confusing issue/PR state display:
42+
43+
**Before:**
44+
```
45+
Issues: 68 total (14 open, 55 closed)
46+
Pull Requests: 97 total (14 open, 96 merged) ❌ Wrong!
47+
```
48+
49+
**After:**
50+
```
51+
Issues: 68 total (14 open, 54 closed)
52+
Pull Requests: 97 total (0 open, 96 merged) ✅ Correct!
53+
```
54+
55+
- Added separate state tracking: `issuesByState`, `prsByState`
56+
- GitHub indexer now tracks issue and PR states independently
57+
- Stats display now shows accurate per-type counts
58+
59+
## Progress Display Improvements 📊
60+
61+
### Detailed Progress with Rates
62+
All indexing commands now show detailed progress:
63+
64+
```
65+
Scanning Repository: 1,234/4,567 files (27%, 45 files/sec)
66+
Embedding Vectors: 856/2,549 documents (34%, 122 docs/sec)
67+
```
68+
69+
Applied to:
70+
- `dev index` - scanning & embedding progress
71+
- `dev update` - changed files & embedding progress
72+
- `dev git index` - commit embedding progress
73+
- `dev github index` - document embedding progress
74+
75+
### Update Plan Display
76+
`dev update` now shows what will change before starting:
77+
78+
```
79+
Update plan:
80+
• Changed: 3 files
81+
• Added: 1 file
82+
• Deleted: 0 files
83+
```
84+
85+
### Code Quality
86+
- Refactored progress logic into `ProgressRenderer.updateSectionWithRate()`
87+
- Reduced ~40 lines of duplicated code
88+
- Fixed NaN display (now shows "Discovering files..." initially)
89+
90+
## Bug Fixes 🐛
91+
92+
- **`dev owners`**: Fixed "No ownership data" error when run from subdirectories
93+
- **Progress Display**: Fixed NaN showing during initial file discovery phase
94+
- **`dev update`**: Removed duplicate checkmark in success message
95+
96+
## Breaking Changes
97+
98+
None - all changes are backward compatible. Old GitHub state files will fall back to aggregate counts gracefully.
99+

0 commit comments

Comments
 (0)