修复:CI 部署环境与 ref 错配、迁移碎片化、图片意图 source_span、章节物化脏版式、会话历史与本地语音不一致

新增:TTS 上传 COS 与分片、章节 reading_segments 物化与快照、markdown 清洗、会话消息 repository、语音 store 重构与相关测试
This commit is contained in:
Kevin
2026-03-20 16:36:42 +08:00
parent 7317bf10cd
commit 8af37e5e8e
65 changed files with 1704 additions and 504 deletions

View File

@@ -61,7 +61,6 @@
| `story_id` | string | 所属 story |
| `story_version_id` | string | 提取意图时对应的正文版本 |
| `intent_role` | string | 固定为 `primary` |
| `source_span` | json/null | 对应正文中的段落或块位置信息 |
| `caption` | string | 最终图注候选 |
| `prompt_brief` | text | 供出图使用的结构化场景摘要 |
| `style_profile` | string/null | 风格策略键 |
@@ -203,7 +202,6 @@ flowchart LR
- `caption`
- `prompt_brief`
- `source_span`
- `style_profile`
### 7.3 失败兜底
@@ -234,12 +232,7 @@ flowchart LR
### 8.2 回填位置
建议由 `source_span` 或 block id 决定回填位置
如果定位失败:
- 退化为在 story 开头或相关段落后插入图片引用
- 但仍需创建新版本,不可丢图
主插图引用追加在**正文末尾**`![alt](asset://…)``alt` 使用 `prompt_brief`)。仍需创建新版本,不可丢图
## 9. 状态机