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