Commit b13f111
committed
feat: Add async result streaming with progress callbacks
ARCH-003: Async Result Streaming
Implemented real-time progress reporting system for long-running validations,
providing better UX with live updates as validators complete.
Features:
- Progress callbacks via LintConfig.execution.onProgress
- ProgressEvent type system (validator-start, validator-complete, validator-error)
- ProgressReporter class for structured progress tracking
- Live statistics tracking (running, completed, passed, failed, errors)
- Verbose and silent modes for flexible output control
- Duration tracking and formatting (ms/s)
- Final summary with validation results
Implementation Details:
- types/index.ts: Added ProgressEvent, ProgressCallback, onProgress to LintConfig
- linter.ts: Enhanced runValidatorsSequential and runValidatorsParallel to emit progress events
- progress-reporter.ts: Full ProgressReporter implementation with stats tracking
- tests/progress-reporter.test.ts: 20 comprehensive test cases covering all scenarios
Benefits:
- Better visibility into validation progress for long-running sessions
- Statistics tracking even in silent mode (testable, scriptable)
- Non-blocking - events are emitted asynchronously
- Backward compatible - onProgress is optional
Tests: 324/324 passing (100%)
Build: ✅ Passing (0 TypeScript errors)1 parent ea356eb commit b13f111
4 files changed
Lines changed: 840 additions & 6 deletions
File tree
- plugins/ui5/skill-lint
- src
- core
- types
- utils
- tests/utils
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
96 | 106 | | |
97 | 107 | | |
98 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
99 | 119 | | |
100 | 120 | | |
101 | 121 | | |
102 | 122 | | |
103 | 123 | | |
104 | | - | |
| 124 | + | |
105 | 125 | | |
106 | 126 | | |
107 | 127 | | |
| |||
111 | 131 | | |
112 | 132 | | |
113 | 133 | | |
114 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
115 | 148 | | |
116 | 149 | | |
117 | 150 | | |
118 | 151 | | |
119 | 152 | | |
120 | 153 | | |
121 | 154 | | |
122 | | - | |
| 155 | + | |
123 | 156 | | |
124 | 157 | | |
125 | 158 | | |
126 | 159 | | |
127 | 160 | | |
| 161 | + | |
| 162 | + | |
128 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
129 | 173 | | |
130 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
131 | 187 | | |
132 | 188 | | |
133 | 189 | | |
134 | 190 | | |
135 | 191 | | |
136 | | - | |
| 192 | + | |
137 | 193 | | |
138 | 194 | | |
139 | 195 | | |
| |||
144 | 200 | | |
145 | 201 | | |
146 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
147 | 216 | | |
148 | 217 | | |
149 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
135 | 145 | | |
136 | 146 | | |
137 | 147 | | |
| |||
160 | 170 | | |
161 | 171 | | |
162 | 172 | | |
| 173 | + | |
163 | 174 | | |
164 | 175 | | |
165 | 176 | | |
| |||
0 commit comments