From 25d8a9f8f28467d59fcfe08de5dbbf502d9eb5a6 Mon Sep 17 00:00:00 2001 From: Peanut Date: Sun, 19 Jul 2026 14:55:27 +0800 Subject: [PATCH] =?UTF-8?q?docs=EF=BC=9AScriptView=20=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D=E9=A1=B5=E6=94=B9=E9=80=A0=E5=AE=9E=E7=8E=B0?= =?UTF-8?q?=E8=AE=A1=E5=88=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6 个任务:扩展消息模型、handleShortNovelEvent 改对话流、 runGeneration+交互函数改造、统一 chat 视图模板、 sendChat 接口切换、端到端浏览器验证 --- .../2026-07-19-scriptview-unified-chat.md | 874 ++++++++++++++++++ 1 file changed, 874 insertions(+) create mode 100644 docs/superpowers/plans/2026-07-19-scriptview-unified-chat.md diff --git a/docs/superpowers/plans/2026-07-19-scriptview-unified-chat.md b/docs/superpowers/plans/2026-07-19-scriptview-unified-chat.md new file mode 100644 index 0000000..6be72a7 --- /dev/null +++ b/docs/superpowers/plans/2026-07-19-scriptview-unified-chat.md @@ -0,0 +1,874 @@ +# ScriptView 统一对话页改造实现计划 + +> **For agentic workers:** REQUIRED SUB-SKILL: Use superpowers:subagent-driven-development (recommended) or superpowers:executing-plans to implement this plan task-by-task. Steps use checkbox (`- [ ]`) syntax for tracking. + +**Goal:** 把 ScriptView 心愿实现页的澄清/大纲/小说生成从独立视图切换改为统一对话流,用户提交心愿后始终停留在同一对话页面 + +**Architecture:** viewState 简化为 home+chat;扩展 resultMessages 消息模型支持 kind: text/card/outline/novel + 交互态字段;handleShortNovelEvent 把 SSE 事件转为对话消息追加;卡片/大纲消息内嵌交互按钮,用户操作后转 user 消息并调 followupStream;novel_done 后底部输入栏按 generationPhase 切换到旧接口 streamScriptChat 做自由对话修改 + +**Tech Stack:** UniApp + Vue 3 Composition API(`