// [nexus] Hardware detection and nexus settings API client import { api } from "./client"; export type HardwareTier = "gpu" | "apple_silicon" | "cpu_only"; export interface HardwareInfo { totalGb: number; freeGb: number; usableGb: number; platform: string; gpuName: string | null; gpuVramGb: number | null; unifiedMemory: boolean; hardwareTier: HardwareTier; cpuModel: string | null; } export type NexusMode = "personal_ai" | "project_builder" | "both"; export interface NexusSettings { mode: NexusMode; voiceEnabled?: boolean; } export function fetchHardwareInfo(): Promise { return api.get("/system/providers"); } export function fetchNexusSettings(): Promise { return api.get("/nexus/settings"); } export function updateNexusSettings(settings: Partial): Promise { return api.patch("/nexus/settings", settings); }