Commit c92a3c7
feat(cli): improve library docs generation with clean spinner UI (#12337)
* feat(cli): improve library docs generation with clean spinner UI
Replace verbose polling logs with interactive task spinners for better UX:
- Add "Initiating Library Generation" info message at start
- Use clean library name spinners without subtitles
- Process libraries sequentially with individual spinners
- Move verbose logs to debug level only
- Update tests to support new interactive task pattern
Provides cleaner, professional UI similar to `fern generate` command.
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
* refactor(cli): extract generateSingleLibrary function to reduce nesting
Extract end-to-end library generation logic into dedicated function to improve code organization:
- Create generateSingleLibrary() function handling complete generation process
- Reduce main function nesting from 4+ levels to 2 levels
- Improve code readability and maintainability
- Bump version to 3.78.0 for spinner UI improvements
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
* feat(cli): enable parallel library docs generation for faster processing
Switch from sequential to parallel library generation:
- Use Promise.all() to process all libraries simultaneously
- Show multiple spinners for concurrent generation
- Remove "Initiating Library Generation" message for cleaner UI
- Maintain error handling - failed libraries don't block others
- Significantly faster completion time for multiple libraries
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
* fix(cli): add missing irVersion and createdAt to version 3.78.0
Add required fields to fix CLI changelog validation:
- irVersion: 65 (same as 3.77.1 since no IR changes)
- createdAt: "2026-02-13"
Resolves: Missing required key "irVersion" validation error
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
* fix(cli): update changelog to reflect actual implementation
Update version 3.78.0 changelog to accurately describe current features:
- Remove outdated reference to "Initiating Library Generation" message (removed)
- Change from "sequential processing" to "parallel processing" (current implementation)
- Emphasize concurrent spinners for multiple libraries
- Keep focus on cleaner UX and debug-level verbose logs
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4 <noreply@anthropic.com>1 parent 2c500ab commit c92a3c7
File tree
3 files changed
+117
-54
lines changed- packages/cli/cli
- src/commands/docs-md-generate
- __test__
3 files changed
+117
-54
lines changedLines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
37 | 45 | | |
38 | 46 | | |
39 | 47 | | |
40 | | - | |
41 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
42 | 62 | | |
43 | 63 | | |
44 | 64 | | |
| |||
238 | 258 | | |
239 | 259 | | |
240 | 260 | | |
241 | | - | |
| 261 | + | |
242 | 262 | | |
243 | 263 | | |
244 | 264 | | |
| |||
Lines changed: 83 additions & 49 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
103 | 100 | | |
104 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
105 | 108 | | |
106 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
107 | 139 | | |
108 | | - | |
| 140 | + | |
109 | 141 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 142 | + | |
116 | 143 | | |
117 | | - | |
118 | | - | |
119 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
120 | 149 | | |
121 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
122 | 153 | | |
123 | 154 | | |
124 | 155 | | |
125 | 156 | | |
126 | | - | |
| 157 | + | |
127 | 158 | | |
128 | 159 | | |
129 | 160 | | |
| |||
145 | 176 | | |
146 | 177 | | |
147 | 178 | | |
148 | | - | |
| 179 | + | |
149 | 180 | | |
150 | 181 | | |
151 | 182 | | |
152 | 183 | | |
153 | 184 | | |
154 | 185 | | |
155 | 186 | | |
156 | | - | |
| 187 | + | |
157 | 188 | | |
158 | 189 | | |
159 | 190 | | |
| |||
172 | 203 | | |
173 | 204 | | |
174 | 205 | | |
175 | | - | |
176 | | - | |
| 206 | + | |
177 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
178 | 212 | | |
179 | 213 | | |
180 | 214 | | |
| |||
195 | 229 | | |
196 | 230 | | |
197 | 231 | | |
198 | | - | |
| 232 | + | |
199 | 233 | | |
200 | | - | |
201 | | - | |
202 | 234 | | |
203 | 235 | | |
204 | 236 | | |
| |||
207 | 239 | | |
208 | 240 | | |
209 | 241 | | |
| 242 | + | |
210 | 243 | | |
211 | 244 | | |
212 | 245 | | |
| |||
224 | 257 | | |
225 | 258 | | |
226 | 259 | | |
| 260 | + | |
227 | 261 | | |
228 | 262 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
2 | 12 | | |
3 | 13 | | |
4 | 14 | | |
| |||
8 | 18 | | |
9 | 19 | | |
10 | 20 | | |
11 | | - | |
12 | 21 | | |
13 | 22 | | |
14 | 23 | | |
| |||
0 commit comments