import { API, apiGetSilent } from './client' import type { SubagentListResponse } from '../components/Settings/types' export function listSubagents(): Promise { return apiGetSilent(API.subagents) } export async function toggleSubagent(name: string, scope: string, enabled: boolean): Promise { return fetch(API.subagentsToggle, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ name, scope, enabled }), }) }