pub async fn run_staged(
print_only: bool,
model: Option<String>,
beta_header: Option<(String, String)>,
context_dir: Option<&Path>,
repo_path: Option<&Path>,
) -> Result<StagedOutcome>Expand description
Public entry point for the staged-commit command.
Mirrors crate::cli::git::run_twiddle’s shape so the MCP server can wrap
it the same way: resolve the repo root (the injected path, or the CWD as the
default), run AI preflight, build the client, and delegate to the
test-injectable inner [run_staged_with_client].