feat(conversation): replicate table quote-to-chat action (TODO 02)

This commit is contained in:
xiaohan.yuan committed 2026-10-17 05:57:49 +08:00
1 parent e335588826
commit ed31a7c1b4
20 files changed
+939 -46

No files matched your search

+19
View File
@@ -13,6 +13,25 @@ export interface ChatAttachment {
path?: string
}
/**
* 消息引用(WorkBuddy `message.quote.add`)。
* 表格引用保存 markdown 快照,发送后随用户消息一起持久化。
*/
export interface MessageQuote {
id: string
kind: 'table'
/** 稳定来源标识(渲染器 sourceId + table id),用于同一条回复内去重与高亮。 */
sourceId: string
/** 产生该引用的助手消息 id,可回溯到原表格。 */
messageId?: string
/** 表格 markdown 快照。 */
markdown: string
/** 引用来源标题(原版 display.title);未采集到原版取值时留空,不臆造文本。 */
title?: string
/** 输入区与消息气泡中的展示摘要。 */
preview: string
}
export interface QuestionOption {
id?: string
option?: string