优化: AI模块(provider重试兼容+aichat交互+工具卡片可读化+diff高亮)

This commit is contained in:
2026-06-16 02:33:16 +08:00
parent d2cb38cdac
commit 10e4945e5a
26 changed files with 2337 additions and 332 deletions

View File

@@ -10,6 +10,11 @@ export const aiApi = {
return invoke('ai_chat_send', { message, language: language || 'zh-CN', skill: skill || null })
},
/** 强制发送B-260616-02: 复位 generating 残留后走 send 同款流程) */
forceSend(message: string, language?: string, skill?: string): Promise<string> {
return invoke('ai_chat_force_send', { message, language: language || 'zh-CN', skill: skill || null })
},
/** 批准/拒绝工具调用 */
approve(toolCallId: string, approved: boolean): Promise<string> {
return invoke('ai_approve', { toolCallId, approved })