diff --git a/src/api/client.ts b/src/api/client.ts index d28b1e5..54b1e73 100644 --- a/src/api/client.ts +++ b/src/api/client.ts @@ -2526,20 +2526,3 @@ export function subscribeSessionEvents( } }; } - -// ── Design Skill API ───────────────────────────────────────────────────────── - -export async function listDesignStyles(): Promise { - const result = await portalFetch<{ designs: string[] }>('/admin-api/skills/designs'); - return result.designs ?? []; -} - -export async function invokeDesignSkill( - design: string, - task: string, -): Promise<{ invocation_id: number; output: string }> { - return portalFetch('/admin-api/skills/awesome-design-md/invoke', { - method: 'POST', - body: JSON.stringify({ design, task }), - }); -} diff --git a/src/components/ChatPanel.tsx b/src/components/ChatPanel.tsx index dfbf98a..04b3237 100644 --- a/src/components/ChatPanel.tsx +++ b/src/components/ChatPanel.tsx @@ -10,7 +10,6 @@ import { import { AvatarPicker } from './AvatarPicker'; import { ChatSkillPicker } from './ChatSkillPicker'; import { ChatLoadingSpinner } from './ChatLoadingSpinner'; -import { DesignSkillPanel } from './DesignSkillPanel'; import { MessageList } from './MessageList'; import { PageSaveDialog } from './PageSaveDialog'; import { VoiceInputButton } from './VoiceInputButton'; @@ -122,7 +121,6 @@ export function ChatPanel({ }) { const online = useNetworkStatus(); const [input, setInput] = useState(''); - const [designPanelOpen, setDesignPanelOpen] = useState(false); const [voiceRecording, setVoiceRecording] = useState(false); const [pageSource, setPageSource] = useState(null); const [voiceNotice, setVoiceNotice] = useState(null); @@ -703,27 +701,6 @@ export function ChatPanel({ onPrefill={setInput} /> )} - {!showHomeWelcome && ( - - )} - {designPanelOpen && ( - setDesignPanelOpen(false)} - onResult={(md) => { - setInput(md); - setDesignPanelOpen(false); - }} - /> - )} {chatState === 'streaming' ? ( - - -
-

选择设计风格

- {fetching ? ( -
加载中…
- ) : ( -
- {designs.map((d) => ( - - ))} -
- )} - - {selected && ( - <> -

- 描述 UI 任务 - — {formatBrandLabel(selected)} 风格 -

-