feat: 添加智能体卡片组件

- 新建 agentCard.ts 智能体卡片UI组件
- webviewContent.ts 集成样式和脚本
This commit is contained in:
XiaoFeng
2025-12-29 09:22:34 +08:00
parent 082ef923b2
commit d4c726ea9c
2 changed files with 317 additions and 0 deletions

View File

@ -17,6 +17,10 @@ import {
getMessageAreaStyles,
getMessageAreaScript,
} from "./messageArea";
import {
getAgentCardStyles,
getAgentCardScript,
} from "./agentCard";
/**
* 获取 WebView 面板的 HTML 内容
*/
@ -65,6 +69,7 @@ export function getWebviewContent(iconUri?: string): string {
padding: 0 20px 20px 20px;
}
${getMessageAreaStyles()}
${getAgentCardStyles()}
${getWaveformPreviewContent()}
${getConversationHistoryBarStyles()}
${getInputAreaStyles()}
@ -531,6 +536,7 @@ export function getWebviewContent(iconUri?: string): string {
});
${getMessageAreaScript()}
${getAgentCardScript()}
${getWaveformPreviewScript()}
${getConversationHistoryBarScript()}
${getInputAreaScript()}