Skip to main content

Module index_progress

Module index_progress 

Source
Expand description

Shared progress counters for index builds (BM25, semantic, graph). Build code reports here; CLI / status_json read snapshots. Decouples builders from the orchestrator (no module cycles).

Prefer ProgressGuard at phase boundaries so counters clear on every exit path (including panics via Drop).

Structs§

ProgressGuard
Clears the component counter when dropped (including panic unwind).
ProgressSnapshot

Enums§

IndexComponent

Functions§

clear
clear_root
get
report
Report progress for a project root + component. total == 0 means indeterminate (spinner / bouncing arrow).
report_bm25
Convenience for BM25 file-count progress (avoids repeating the component).