(
state: &State<'_, AppState>,
workspace_path: Option<&str>,
)
| 157 | } |
| 158 | |
| 159 | async fn resolve_remote_workspace( |
| 160 | state: &State<'_, AppState>, |
| 161 | workspace_path: Option<&str>, |
| 162 | ) -> Result<Option<(String, RemoteWorkspaceEntry)>, String> { |
| 163 | let Some(path) = trim_workspace_path(workspace_path) else { |
| 164 | return Ok(None); |
| 165 | }; |
| 166 | |
| 167 | if !is_remote_path(&path).await { |
| 168 | return Ok(None); |
| 169 | } |
| 170 | |
| 171 | let entry = lookup_remote_entry_for_path(state, &path) |
| 172 | .await |
| 173 | .ok_or_else(|| format!("Remote workspace connection not found for '{}'", path))?; |
| 174 | Ok(Some((path, entry))) |
| 175 | } |
| 176 | |
| 177 | async fn get_all_skills_for_workspace_input( |
| 178 | state: &State<'_, AppState>, |
no test coverage detected