(
state: State<'_, AppState>,
force_refresh: Option<bool>,
workspace_path: Option<String>,
)
| 458 | |
| 459 | #[tauri::command] |
| 460 | pub 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] |
| 479 | pub async fn get_mode_skill_configs( |
nothing calls this directly
no test coverage detected