Repository navigation
feat: Agent 改写正文时的句级扫光 - #31
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agent 改写已有卡片正文时,改动的句子用一道浅色扫光原位换字,没变的句子保持不动。
src/model/agent-edit.ts:中英文分句、句级 diff、按画布位置排序;400ms 起步、150ms 错峰,最多 8 张卡播放扫光,其余 120ms 直接替换;尊重“减少动态效果”。src/components/AgentEditProse.tsx:旧/新正文叠放,结束后清掉所有动画元素;辅助技术直接读取最终正文。editRoute应用、展开/gate 合并、reExpand/regen 最终结果。用户编辑、撤销、导入、新建不触发。替换原来的整卡 route-flash。docs/agent-edit-wash.md。验证(Linux 盒子)
tsc通过;Vitest 49 个文件 / 454 项通过;Vite build 通过。tests/e2e/agent-edit.spec.ts)。未验证:macOS 真机、打包,以及真实读屏软件朗读。