@wzrhine/agent
v0.2.0
Published
Agent UI components for WzRhineLab UI: workbench shell, conversations, messages, composer, tools, approvals, questionnaires, terminals, artifacts and agent motion. View-models in, actions out; no runtime, transport or SDK dependency.
Readme
@wzrhine/agent
WzRhineLab UI 的 Agent 界面组件:工作台外壳、会话索引、消息流与思考过程、工具记录(含十类工具专项与 Diff)、Composer(token 镜像、@ 引用、/ 命令、模型与权限选择)、审批与问卷、终端、子任务、上下文用量、产物与文件预览,以及配套的 Agent 动效。
组件只接收 view-model 快照(类型来自 @wzrhine/agent-core,本包会重新导出)并发出动作回调;不包含任何运行时、请求、缓存、Markdown / 高亮库或桌面 API。
实验性(0.x 期间 API 可能调整);MIT 许可证。
pnpm add @wzrhine/agent @wzrhine/agent-core @wzrhine/react @wzrhine/tokens react react-dom motionimport '@wzrhine/tokens/styles.css';
import '@wzrhine/react/styles.css';
import '@wzrhine/agent/styles.css';
import { RhineProvider } from '@wzrhine/react';
import { AgentStatus, runStatusMeta } from '@wzrhine/agent';
<RhineProvider>
<AgentStatus {...runStatusMeta.running} label="运行中" />
</RhineProvider>;- 范围与拆包:ADR-0010;契约:ADR-0011;动效:ADR-0012
- 接入指南:docs/planning/agent-ui-adoption.md
- API 参考(自动生成):docs/api/agent.md
- 变更记录:CHANGELOG.md
- 许可证:MIT
