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

Function get_skill_configs

src/apps/desktop/src/api/skill_api.rs:460–476  ·  view source on GitHub ↗
(
    state: State<'_, AppState>,
    force_refresh: Option<bool>,
    workspace_path: Option<String>,
)

Source from the content-addressed store, hash-verified

458
459#[tauri::command]
460pub async fn get_skill_configs(
461 state: State<'_, AppState>,
462 force_refresh: Option<bool>,
463 workspace_path: Option<String>,
464) -> Result<Value, String> {
465 let registry = SkillRegistry::global();
466
467 if force_refresh.unwrap_or(false) {
468 registry.refresh().await;
469 }
470
471 let all_skills =
472 get_all_skills_for_workspace_input(&state, registry, workspace_path.as_deref()).await?;
473
474 serde_json::to_value(all_skills)
475 .map_err(|e| format!("Failed to serialize skill configs: {}", e))
476}
477
478#[tauri::command]
479pub async fn get_mode_skill_configs(

Callers

nothing calls this directly

Calls 3

globalFunction · 0.85
refreshMethod · 0.45

Tested by

no test coverage detected