pub fn run(
root: &Path,
ticket_source: &dyn TicketSource,
worktree_dir: &Path,
store: &Store,
now_ms: i64,
ticket_prefix: &str,
project_ids: &[String],
agent: Option<&AgentConfig>,
flows: &BTreeMap<String, Flow>,
default_flow: &str,
) -> Result<Value, ReindexError>