统一智能体对话层级并完善素材导出与文档预览
Project CI / AI game creator shell Rust shard 3/4 (pull_request) Failing after 2m44s
Project CI / AI game creator shell Rust shard 1/4 (pull_request) Failing after 2m45s
Project CI / AI game creator shell Rust shard 2/4 (pull_request) Failing after 2m46s
Project CI / AI game creator shell Rust shard 4/4 (pull_request) Failing after 2m49s
Project CI / AI game creator shell Rust smoke (pull_request) Successful in 1m53s
Project CI / AI game creator shell Rust crates (pull_request) Successful in 3m18s
Project CI / Frontend tests (pull_request) Failing after 4m6s
Project CI / Native shell tests (pull_request) Successful in 6m12s
Project CI / Repository checks (pull_request) Failing after 3m48s
Project CI / Backend tests (pull_request) Successful in 7m8s
Project CI / AI game creator shell web tests (pull_request) Failing after 3m59s

当前Agent与策划Agent共用正文和过程表现组件,统一思考及工具调用的小字号浅色样式
素材工具栏按实际动作分组,导出紧邻删除并修复空分组重复分隔线
文档与代码使用共享Markdown预览和代码高亮,复用按需读取与缓存
移除未调用的活跃回合查询命令,保留正式快照恢复链路
补充回归用例并同步技术方案和团队约定
This commit is contained in:
2026-09-16 03:59:27 +08:00
parent d3c117de01
commit 5cd02aa8b0
37 changed files with 1439 additions and 239 deletions
@@ -0,0 +1,25 @@
.agent-message-content[data-agent-content] {
min-width: 0;
font-size: 14px;
line-height: 1.5;
color: var(--platform-text-strong, #3d1f10);
}
.agent-message-content[data-agent-content='process'] {
--agent-message-heading-size: 1em;
--agent-message-table-size: 1em;
font-size: 12px;
color: var(--platform-text-soft, #988476);
}
/* Markdown 标题和代码不能把过程内容重新放大,或带回正文的高对比度配色。 */
.agent-message-content[data-agent-content='process']
:where(p, h1, h2, h3, h4, h5, h6, ul, ol, li, blockquote, pre, code, th, td) {
font-size: inherit;
line-height: inherit;
color: inherit;
}
.agent-message-content[data-agent-content='process'] pre code span {
color: inherit;
}
@@ -0,0 +1,24 @@
import './AgentMessageContent.css';
import type { HTMLAttributes } from 'react';
export type AgentMessageTone = 'body' | 'process';
/** 只表达正文/过程的视觉层级;消息身份、状态与分组由宿主决定。 */
export function AgentMessageContent({
as: Tag = 'div',
tone = 'body',
className,
...props
}: HTMLAttributes<HTMLElement> & {
as?: 'div' | 'section' | 'details';
tone?: AgentMessageTone;
}) {
return (
<Tag
{...props}
data-agent-content={tone}
className={['agent-message-content', className].filter(Boolean).join(' ')}
/>
);
}
+2
View File
@@ -218,6 +218,8 @@ export { Textarea } from './ui/textarea';
// Additional platform-prefixed aliases make the package discoverable beside
// existing application adapters while keeping the public API product-neutral.
export type { AgentMessageTone } from './AgentMessageContent';
export { AgentMessageContent } from './AgentMessageContent';
export type {
ButtonProps as PlatformButtonProps,
SwitchProps as PlatformSwitchProps,