AI 对话界面
运行日志
Agent 的执行过程像一份自动书写的日志:每一步在轨道上亮起、转圈并打勾,细节逐行出现,画面随当前步骤平滑移动。
安装
npx @imgcli/cli add run-log使用
import { RunLog } from "@/components/imgcli/run-log";
<RunLog
steps={[
{
"title": "Read the request",
"lines": [
"Compare three project tools",
"Focus: small product teams"
]
},
{
"title": "Found the sources",
"lines": [
"Pricing pages and product docs",
"Checked the latest plan limits"
]
},
{
"title": "Compared the options",
"lines": [
"Seats, storage, and integrations",
"Flagged two usage limits"
]
},
{
"title": "Checked the details",
"lines": [
"Linked each claim to its source",
"Removed outdated pricing"
]
},
{
"title": "Prepared the summary",
"lines": [
"A short comparison table",
"Ready for your review"
]
}
]}
/>;默认示例:研究三款项目工具、比较使用限制、核对来源并整理总结。以 30 fps 渲染 155 帧(5.2 秒)。
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
steps | readonly RunLogStep[] | 见使用示例 | |
stepSeconds | number | 0.75 | Seconds each step is the active one. |
fontFamily | string | — | A face from the Imgcli font list, or any loaded CSS font stack. |
accentColor | string | — | |
theme | Partial<ImgcliTheme> | — | |
mode | "light" | "dark" | — | |
speed | number | 1 |
许可
MIT 许可,可免费用于个人及商业项目,保留版权和许可声明。
Copyright (c) 2026 Ricky (Imgcli) <https://imgcli.com>
常见问题
如何在 Remotion 项目中使用运行日志?
运行 npx @imgcli/cli add run-log。CLI 会把组件源码复制到项目的 components/imgcli/ 目录并安装依赖,之后可以直接修改源码。
运行日志能做什么?
Agent 的执行过程像一份自动书写的日志:每一步在轨道上亮起、转圈并打勾,细节逐行出现,画面随当前步骤平滑移动。
使用运行日志前需要准备什么?
准备 Node.js 20.19 或更高版本,以及一个 Remotion 项目。新项目可以用 npx create-video@latest 创建。免费组件采用 MIT 许可证。