pub async fn resolve_codebase( state: &AppState, workspace_id: &str, repo_path: Option<&str>, ) -> Result<Option<Codebase>, ServerError>