import { getWaveformPreviewContent, getWaveformPreviewScript, } from "./waveformPreviewContent"; import { getConversationHistoryBarContent, getConversationHistoryBarStyles, getConversationHistoryBarScript, } from "./conversationHistoryBar"; import { getInputAreaContent, getInputAreaStyles, getInputAreaScript, } from "./inputArea"; import { getMessageAreaContent, getMessageAreaStyles, getMessageAreaScript, } from "./messageArea"; import { getAgentCardStyles, getAgentCardScript } from "./agentCard"; import { getProgressBarContent, getProgressBarStyles, getProgressBarScript, } from "./progressBar"; import { getCurrentEnv } from "../config/settings"; /** * 获取 WebView 面板的 HTML 内容 */ export function getWebviewContent( iconUri?: string, autoIconUri?: string, liteIconUri?: string, syIconUri?: string, maxIconUri?: string ): string { // 获取当前环境,只在 dev 和 test 环境下显示快速操作按钮 const currentEnv = getCurrentEnv(); const showQuickActions = currentEnv === "dev" || currentEnv === "test"; return ` IC Coder ${getConversationHistoryBarContent()} ${getProgressBarContent()}
IC Coder

IC Coder

专注于真实FPGA研发的Verilog智能体编程平台

${getMessageAreaContent()} ${ showQuickActions ? `
` : "" } ${getInputAreaContent(autoIconUri, liteIconUri, syIconUri, maxIconUri)}
`; }