feat(cli): add --timings flag and enrich error tracking fields

Add -t/--timings flag to the sync subcommand, allowing users to opt
into a per-stage timing breakdown after the sync summary. Wire the flag
through main.rs into print_sync() which passes it to the new
should_print_timings() gate.

Enrich the data structures that flow through the sync pipeline so
downstream renderers have full error visibility:

- ProjectSummary gains status_errors (issue-side status enrichment
  failures per project)
- ProjectStatusEnrichment gains path (project path for sub-row display)
- SyncResult gains documents_errored and embedding_failed so the
  summary can surface doc-gen and embed failures separately
- Autocorrect table updated with --timings for fuzzy flag matching
This commit is contained in:
teernisse
2026-02-16 09:43:13 -05:00
parent a570327a6b
commit c8b47bf8f8
4 changed files with 13 additions and 2 deletions

View File

@@ -2099,7 +2099,7 @@ async fn handle_sync_cmd(
"{}",
Theme::warning().render("Interrupted by Ctrl+C. Partial results:")
);
print_sync(&result, elapsed, Some(metrics));
print_sync(&result, elapsed, Some(metrics), args.timings);
if released > 0 {
eprintln!(
"{}",
@@ -2122,7 +2122,7 @@ async fn handle_sync_cmd(
if robot_mode {
print_sync_json(&result, elapsed.as_millis() as u64, Some(metrics));
} else {
print_sync(&result, elapsed, Some(metrics));
print_sync(&result, elapsed, Some(metrics), args.timings);
}
Ok(())
}