重构: 对话透明化 L1 + ③.2 审批拆分 + ⑥.4 @展开 + DAG 展示
修复 tool_result 压缩零效果(BUG-260628-01):单行/少行/JSON 大字符 串字段逃逸压缩的问题,基于实测数据(53/94 次迭代零节省)调参, 增加字符级保底截断,压缩有效率从 8% 提升至 ~85%+
This commit is contained in:
@@ -301,11 +301,19 @@ export const aiApi = {
|
||||
},
|
||||
|
||||
/**
|
||||
* 导出对话为指定格式(UX-18:对话导出;消费 batch46 ai_conversation_export IPC)。
|
||||
* 后端返回导出内容 String(markdown/json/txt),前端落 Blob 下载或复制剪贴板。
|
||||
* @param format 'markdown' | 'json' | 'txt'
|
||||
*/
|
||||
exportConversation(conversationId: string, format: 'markdown' | 'json' | 'txt'): Promise<string> {
|
||||
return invoke('ai_conversation_export', { conversationId, format })
|
||||
},
|
||||
}
|
||||
/** 导出对话为指定格式(UX-18:对话导出;消费 batch46 ai_conversation_export IPC)。
|
||||
* 后端返回导出内容 String(markdown/json/txt),前端落 Blob 下载或复制剪贴板。
|
||||
* @param format 'markdown' | 'json' | 'txt'
|
||||
*/
|
||||
exportConversation(conversationId: string, format: 'markdown' | 'json' | 'txt'): Promise<string> {
|
||||
return invoke('ai_conversation_export', { conversationId, format })
|
||||
},
|
||||
|
||||
/**
|
||||
* 更新对话目标钉扎列表(G1 目标钉扎持久化:对话透明化 L1)。
|
||||
* 接收完整目标列表(非增量,前端增/删后传全量 new Vec)。
|
||||
*/
|
||||
updateConversationGoals(conversationId: string, goals: string[]): Promise<void> {
|
||||
return invoke('ai_update_conversation_goals', { conversationId, goals })
|
||||
},
|
||||
}
|
||||
|
||||
@@ -572,6 +572,7 @@ export interface AiConversationSummary {
|
||||
title: string | null
|
||||
provider_id: string | null
|
||||
model: string | null
|
||||
pinned_goals?: string[]
|
||||
archived: boolean
|
||||
pinned?: boolean
|
||||
prompt_tokens?: number | null
|
||||
|
||||
Reference in New Issue
Block a user