Progress payload fired by inspectSceneModelAsync as it walks each registered Inspection. UIs render the bar straight off {current, total} and label the current step from label. Two events fire per inspection: one before its run begins (phase: "before"), one after (phase: "after"). The orchestrator also fires one final {current: total, total, phase: "after", label: ""} once every inspection has finished.

interface InspectProgress {
    current: number;
    inspection?: inspect.sceneModel.Inspection;
    label: string;
    phase: "before" | "after";
    total: number;
}

Properties

current: number

Index of the inspection in the registry's iteration order: 0..total-1 for in-flight progress, total once everything has finished.

The Inspection the event refers to. Absent on the final completion event (after the last inspection's phase: "after").

label: string

Human-readable label — the current inspection's Inspection.description during the walk, or the empty string on the final "complete" event.

phase: "before" | "after"

"before" — the inspection's run is about to begin. "after"run has just finished (or every inspection has finished, on the final completion event).

total: number

Number of registered inspections being walked (snapshot at the start of the run).