pub async fn run_twiddle(
range: Option<&str>,
model: Option<String>,
dry_run: bool,
repo_path: Option<&Path>,
) -> Result<TwiddleOutcome>Expand description
Non-interactive core for omni-dev git commit message twiddle.
Shared by the CLI (wrapped by TwiddleCommand::execute for the
interactive flow) and the MCP server. The MCP tool boundary is
non-interactive, so this entry point forces --auto-apply semantics when
dry_run is false and never opens an editor. When dry_run is true,
proposed amendments are returned as YAML without being applied.
Like super::run_check, a Some repo_path pins the process CWD for
the duration of the call.