export type ViewKey = | "home" | "studio" | "kb" | "report" | "runs" | "memory" | "market" | "admin"; interface Item { key: ViewKey; label: string; icon: string; group?: string; ready?: boolean; } const ITEMS: Item[] = [ { key: "home", label: "工作台", icon: "▤", ready: true }, { key: "studio", label: "编排", icon: "◆", group: "BUILD", ready: true }, { key: "kb", label: "知识库", icon: "▣", group: "BUILD", ready: true }, { key: "report", label: "报告", icon: "▦", group: "BUILD", ready: true }, { key: "runs", label: "运行", icon: "▸", group: "RUN" }, { key: "memory", label: "记忆", icon: "◇", group: "MANAGE", ready: true }, { key: "market", label: "市场", icon: "⌧", group: "MANAGE" }, { key: "admin", label: "管理", icon: "⚙", group: "MANAGE" }, ]; // 左导航:深色,激活态紫色高亮 + 左侧光条。 export function LeftNav({ active, onSelect }: { active: ViewKey; onSelect: (v: ViewKey) => void }) { let lastGroup: string | undefined; return ( ); }