feat: 对齐 Jev 真实 API schema、Web Speech 语音输入(优雅降级)、C1-01 语音化身份登记与真 key 冒烟脚本
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import type { DimensionTag } from './types';
|
||||
import type { DimensionTag, IdentityProfile } from './types';
|
||||
|
||||
/**
|
||||
* 选择/讲述事件存储(ADR-0004:历史不可涂改)。
|
||||
@@ -17,7 +17,7 @@ export interface StoryEvent {
|
||||
sessionId: string;
|
||||
ts: number;
|
||||
chapterId: string;
|
||||
kind: 'choice' | 'narration';
|
||||
kind: 'choice' | 'narration' | 'profile';
|
||||
/** 选择点 ID,如 C1-03 */
|
||||
pointId: string;
|
||||
dimensions: DimensionTag[];
|
||||
@@ -27,8 +27,10 @@ export interface StoryEvent {
|
||||
/** narration 事件:选中的场景变体(情绪签名 → variantId) */
|
||||
variantId?: string;
|
||||
emotionSignature?: string;
|
||||
/** 讲述转写文本占位(ASR 未接,MVP 为手输或占位文本;沉默为 null) */
|
||||
/** 讲述转写文本(Web Speech API 只给文本,不留音频,符合 ADR-0004 即焚原则;沉默为 null) */
|
||||
transcript?: string | null;
|
||||
/** profile 事件:用户确认后的身份登记字段(匹配硬过滤字段) */
|
||||
profile?: IdentityProfile;
|
||||
}
|
||||
|
||||
const STORAGE_KEY = 'jev-dating-match.events.v1';
|
||||
|
||||
Reference in New Issue
Block a user