MCPcopy Create free account
hub / github.com/GCWing/BitFun / resolve_remote_workspace

Function resolve_remote_workspace

src/apps/desktop/src/api/skill_api.rs:159–175  ·  view source on GitHub ↗
(
    state: &State<'_, AppState>,
    workspace_path: Option<&str>,
)

Source from the content-addressed store, hash-verified

157}
158
159async 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
177async fn get_all_skills_for_workspace_input(
178 state: &State<'_, AppState>,

Calls 3

trim_workspace_pathFunction · 0.85
is_remote_pathFunction · 0.85

Tested by

no test coverage detected