Files
Genarrative/packages/shared/src/components/AgentMessageContent.tsx
T
suzmii 5cd02aa8b0
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预览和代码高亮,复用按需读取与缓存
移除未调用的活跃回合查询命令,保留正式快照恢复链路
补充回归用例并同步技术方案和团队约定
2026-09-16 03:59:27 +08:00

25 lines
598 B
TypeScript

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(' ')}
/>
);
}