feat: Tauri SQLite 事件持久化 + 讲述点追问补全(缺失检测→模板追问→沉默即数据)

This commit is contained in:
Jayway Liu
2026-10-03 12:55:00 +08:00
parent 6117ef894f
commit ba50cf3928
18 changed files with 1360 additions and 34 deletions
+6
View File
@@ -26,6 +26,12 @@ function buildState(events: StoryEvent[]): string {
if (e.kind === 'choice') {
return `[${e.pointId}] 选择「${e.optionLabel}」(维度: ${e.dimensions.join('/') || '字段采集'})`;
}
if (e.kind === 'followup') {
return `[${e.pointId}] 追问(${e.followUpDimension})回答: ${e.transcript}`;
}
if (e.kind === 'followup_skipped') {
return `[${e.pointId}] 追问(${e.followUpDimension})回答: 记不清了(跳过)`;
}
const t = e.transcript === null ? '(沉默)' : `(讲述: ${e.transcript})`;
return `[${e.pointId}] 讲述${t} 情绪签名: ${e.emotionSignature ?? '未知'}`;
});