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: "■" }, { key: "studio", label: "编排", icon: "◆", group: "BUILD", ready: true }, { key: "kb", label: "知识库", icon: "▣", group: "BUILD", ready: true }, { key: "report", label: "报告", icon: "▤", group: "BUILD" }, { 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" }, ]; // 左导航栏:模块切换,分组 BUILD / RUN / MANAGE;未就绪模块灰显(规划中)。 export function LeftNav({ active, onSelect }: { active: ViewKey; onSelect: (v: ViewKey) => void }) { let lastGroup: string | undefined; return ( ); }