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