export const MASTER_AGENT_CHAT_PAGE_ANCHORS = { prompt: "/me/master-agent#prompt-section", model: "/me/master-agent#model-section", reasoningEffort: "/me/master-agent#reasoning-effort-section", memory: "/me/master-agent#memory-section", } as const; export type MasterAgentChatPageAnchors = typeof MASTER_AGENT_CHAT_PAGE_ANCHORS; export type MasterAgentChatMenuItem = { key: "prompt" | "model" | "reasoning_effort" | "memory" | "refresh"; label: string; href?: string; action?: "refresh"; }; export function getMasterAgentChatMenuItems(projectId: string): MasterAgentChatMenuItem[] { if (projectId !== "master-agent") { return []; } return [ { key: "prompt", label: "提示词", href: MASTER_AGENT_CHAT_PAGE_ANCHORS.prompt, }, { key: "model", label: "模型", href: MASTER_AGENT_CHAT_PAGE_ANCHORS.model, }, { key: "reasoning_effort", label: "推理强度", href: MASTER_AGENT_CHAT_PAGE_ANCHORS.reasoningEffort, }, { key: "memory", label: "记忆", href: MASTER_AGENT_CHAT_PAGE_ANCHORS.memory, }, { key: "refresh", label: "刷新", action: "refresh", }, ]; }