Package runinventory is a bounded first consumer of the wing control API.
It starts without known IDs and has no store, runtime or transport authority.
type Counts struct {
Total int `json:"total"`
Completed int `json:"completed"`
Running int `json:"running"`
Interrupted int `json:"interrupted"`
UnavailableOutput int `json:"unavailable_output"`
TerminalOther int `json:"terminal_other"`
UnavailableRun int `json:"unavailable_run"`
UnknownCleanup int `json:"unknown_cleanup"`
}
type Options struct {
Limit int `json:"limit,omitempty"`
MaxPages int `json:"-"`
RequestKey string `json:"idempotency_key,omitempty"`
TerminalWindowSeconds int `json:"terminal_window_seconds,omitempty"`
}
Recover finishes discovery before interpreting absence. It reads status for
each discovered ID and reads a terminal result once. It never launches,
steers, stops, waits, polls or reconstructs archived output.