From d04c7080fc9d4197da8db6d34468bd88f173be6a Mon Sep 17 00:00:00 2001 From: dkseo Date: Fri, 11 Apr 2025 11:46:23 +0900 Subject: [PATCH] style: format --- .../components/inbox-item-input.tsx | 61 ++++++++++------- .../agent-inbox/components/state-view.tsx | 55 ++++++++------- .../components/thread-actions-view.tsx | 14 ++-- .../agent-inbox/components/thread-id.tsx | 13 ++-- .../components/tool-call-table.tsx | 14 ++-- src/components/thread/agent-inbox/index.tsx | 2 +- src/components/thread/history/index.tsx | 25 ++++--- src/components/thread/index.tsx | 67 ++++++++++++------- src/components/thread/markdown-text.tsx | 35 +++++++--- src/components/thread/messages/ai.tsx | 21 +++--- .../thread/messages/generic-interrupt.tsx | 17 +++-- src/components/thread/messages/human.tsx | 6 +- src/components/thread/messages/shared.tsx | 10 ++- src/components/thread/messages/tool-calls.tsx | 37 +++++----- src/components/ui/password-input.tsx | 12 +++- src/components/ui/sheet.tsx | 28 ++++++-- src/components/ui/switch.tsx | 2 +- src/components/ui/tooltip.tsx | 12 +++- src/providers/Stream.tsx | 23 ++++--- 19 files changed, 287 insertions(+), 167 deletions(-) diff --git a/src/components/thread/agent-inbox/components/inbox-item-input.tsx b/src/components/thread/agent-inbox/components/inbox-item-input.tsx index bac3063..879e16f 100644 --- a/src/components/thread/agent-inbox/components/inbox-item-input.tsx +++ b/src/components/thread/agent-inbox/components/inbox-item-input.tsx @@ -16,7 +16,7 @@ function ResetButton({ handleReset }: { handleReset: () => void }) { variant="ghost" className="flex items-center justify-center gap-2 text-gray-500 hover:text-red-500" > - + Reset ); @@ -24,7 +24,7 @@ function ResetButton({ handleReset }: { handleReset: () => void }) { function ArgsRenderer({ args }: { args: Record }) { return ( -
+
{Object.entries(args).map(([k, v]) => { let value = ""; if (["string", "number"].includes(typeof v)) { @@ -34,11 +34,14 @@ function ArgsRenderer({ args }: { args: Record }) { } return ( -
-

+

+

{prettifyText(k)}:

- + {value}
@@ -104,9 +107,9 @@ function ResponseComponent({ }; return ( -
-
-

+

+
+

Respond to assistant

)} -
-

Response

+
+

Response