feat: release ksadk-web 0.3.0 - #5
Merged
Merged
Conversation
Add remark-breaks so single newlines in assistant output render as hard breaks instead of collapsing to a space, fixing lost line breaks in streamed/plain-text agent replies. Applied to both the plain and math-enabled markdown renderers. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
整体风格向 wework 看齐,覆盖配色/字体/侧边栏/输入框/消息区/工具渲染/错误展示: - 设计 token: primary 改 teal、surface/text-*/sidebar 独立灰阶对齐 wework 精确值, 字体栈加 PingFang SC/Microsoft YaHei, 基础圆角 0.5rem - 侧边栏: 会话行 h-[30px] rounded-[10px] + sidebar 灰阶, 右侧操作按钮 hover 才显示, 时间 label hover 时让位避免与删除按钮重叠 - 输入框: 双层 26px 圆角(外层 surface 软阴影/内层 background 细边), 底部工具栏左组(附件+model+思考 chip)右组(上下文环+发送钮), model/思考改 wework 自定义下拉 MenuChip(替代原生 select), 附件 badge 改色块+文件名/大小+悬浮圆形删除钮 - 上下文长度: wework 圆环指示器(conic-gradient 进度环,>=85% 转 red,hover 弹 tooltip) - 消息区: user 气泡 bg-muted 右对齐, assistant 居中窄栏平铺, hover 浮出操作行(复制+反馈快捷,opacity 切换) - 工具/审批卡: 审批按钮 rounded-full bg-foreground + ghost 拒绝, 去掉 emerald 绿 - 错误/限流: StatusBanner 内联状态条(限流 amber+倒计时/网络 spinner/失败重试), engine 识别 429 emit rate_limited 事件, 不再白屏 - 流式重连: 记录 lastSeqId, 网络断线改用 resumeRun(afterSeqId) 续订而非从头重跑 - 回到底部圆钮 + 流式思考占位 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- MessageMarkdown 去掉 prose-slate 套件,改 wework 语义 token + 紧凑标题字号 (h1→lg/h2→base/h3→sm),链接 text-primary,表格 border-border,行内 code bg-muted - CodeBlock 加 TextWrap 自动换行切换(仅 markdown 语言,按内容 key 记忆) - 历史消息刷新重建 blocks(buildBlocksFromHistory),不再还原成旧散装渲染 - TextRow 改回 MessageMarkdown,流式时标题/列表/粗体即时渲染(不再等刷新) - 移植 wework parseUnifiedDiff,ToolRow output 智能识别: unified diff → FileChangesCard(文件改动卡 +/− 统计), web_search → WebSearchSourcesChip(来源 chip + hover 列表), 否则回退通用 PayloadBlock。前端识别 tool_output,不动后端事件协议 - 输入框 textarea 对齐 wework(text-text-primary/14px/max-h-112), 发送钮 bg-[#1f1f1f],placeholder 简洁文案 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Prepare the reviewed 0.3.0 Web package for the KsADK 0.8.0 release.
Validated locally:
After merge, publish through the trusted GitHub npm workflow; do not publish locally.