From fa43d2ed325841f87f0549abc8a46cc4a87d458d Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Thu, 7 May 2026 17:52:02 +0800 Subject: [PATCH] feat(web): AgentEventCard component (per-method rendering) --- web/src/components/acp/AgentEventCard.vue | 148 ++++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 web/src/components/acp/AgentEventCard.vue diff --git a/web/src/components/acp/AgentEventCard.vue b/web/src/components/acp/AgentEventCard.vue new file mode 100644 index 0000000..2afcffc --- /dev/null +++ b/web/src/components/acp/AgentEventCard.vue @@ -0,0 +1,148 @@ + + + + + + user + {{ userPromptText() }} + + + + user + · cancel + + + + agent + {{ chunkText() }} + + + + thought + + + {{ thoughtCollapsed ? '▶' : '▼' }} thinking... + + + {{ chunkText() }} + + + + + + tool + + read {{ fsPath() }} + + + + + tool + + write {{ fsPath() }} ({{ fsWriteSize() }} bytes) + + + + + perm + + permission requested (auto-rejected) + + + + + session terminated + + + + error + {{ (payload as { message?: string }).message }} + + + + {{ eventType }} + {{ event.method }} + + +
{{ fsPath() }}
{{ event.method }}