| 1 | use std::collections::HashSet; |
| 2 | |
| 3 | use gpui_kit::*; |
| 4 | |
| 5 | pub fn endpoint(cx: &App) -> Option<agents::McpEndpoint> { |
| 6 | crate::agent_api::mcp_endpoint(cx).map(|endpoint| agents::McpEndpoint { |
| 7 | url: endpoint.url, |
| 8 | token: endpoint.token, |
| 9 | }) |
| 10 | } |
| 11 | |
| 12 | pub fn chat_allowed(conversation_id: &str, cx: &App) -> bool { |
| 13 | crate::agent_api::chat_allowed(conversation_id, cx) |
| 14 | } |
| 15 | |
| 16 | pub fn allow_chat(conversation_id: &str, cx: &mut App) { |
| 17 | crate::agent_api::allow_chat(conversation_id, cx); |
| 18 | } |
| 19 | |
| 20 | pub fn set_app_sessions(session_ids: HashSet<String>, cx: &App) { |
| 21 | crate::agent_api::set_app_sessions(session_ids, cx); |
| 22 | } |