Report live correction progress through CommandKit

This commit is contained in:
2026-11-16 15:12:06 +00:00
parent 891d4aac2c
commit 11f314d995
14 changed files with 289 additions and 11 deletions

View File

@@ -0,0 +1,18 @@
package runner
// Progress identifies work admitted or completed by the runner.
type Progress struct {
ModuleIndex int
ModuleKey string
ModuleID *string
SectionIndex *int
State string
Count *int
}
func (event Progress) emit(callback func(Progress), state string, section *int, count *int) {
if callback != nil {
event.State, event.SectionIndex, event.Count = state, section, count
callback(event)
}
}