권한·도구 결과 카테고리 표시 강화
Some checks failed
Release Gate / gate (push) Has been cancelled

transcript 카드에 작업 종류 chip을 추가해 권한 요청과 도구 결과의 성격을 더 빠르게 구분할 수 있게 했습니다.

명령 실행, 파일 수정, 웹 요청, Git, 문서, 스킬, MCP 등의 카테고리를 상태 chip과 함께 표시하도록 정리했습니다.

README와 DEVELOPMENT 문서를 갱신했고 dotnet build 기준 경고 0 / 오류 0을 확인했습니다.
This commit is contained in:
2026-04-06 13:26:20 +09:00
parent fdf95aa6ec
commit 571d4bfaca
3 changed files with 57 additions and 0 deletions

View File

@@ -83,6 +83,46 @@ public partial class ChatWindow
};
}
private static string GetPermissionKindLabel(string kind)
{
return kind switch
{
"bash" => "Bash",
"powershell" => "PowerShell",
"command" => "명령 실행",
"web_fetch" => "웹 요청",
"mcp" => "MCP",
"skill" => "스킬",
"question" => "의견 요청",
"file_edit" => "파일 수정",
"file_write" => "파일 쓰기",
"git" => "Git",
"document" => "문서 작업",
"filesystem" => "파일 접근",
_ => "권한 요청",
};
}
private static string GetToolResultKindLabel(string kind)
{
return kind switch
{
"file_edit" => "파일 수정",
"file_write" => "파일 쓰기",
"filesystem" => "파일 탐색",
"file" => "파일 작업",
"build_test" => "빌드/테스트",
"git" => "Git",
"document" => "문서",
"skill" => "스킬",
"mcp" => "MCP",
"question" => "의견 요청",
"web" => "웹 요청",
"command" => "명령 실행",
_ => "도구 결과",
};
}
private void AppendAgentEventPresentationMeta(
StackPanel stack,
AgentEvent evt,
@@ -103,6 +143,13 @@ public partial class ChatWindow
{
guidance = permissionPresentation.ActionHint;
chipRow.Children.Add(CreateAgentMetaChip(
GetPermissionKindLabel(permissionPresentation.Kind),
"\uE8A5",
BrushFromHex("#475569"),
BrushFromHex("#F8FAFC"),
BrushFromHex("#E2E8F0")));
if (permissionPresentation.RequiresPreview)
chipRow.Children.Add(CreateAgentMetaChip(
"미리보기 권장",
@@ -134,6 +181,13 @@ public partial class ChatWindow
{
guidance = toolResultPresentation.FollowUpHint;
chipRow.Children.Add(CreateAgentMetaChip(
GetToolResultKindLabel(toolResultPresentation.Kind),
"\uE9CE",
BrushFromHex("#475569"),
BrushFromHex("#F8FAFC"),
BrushFromHex("#E2E8F0")));
if (toolResultPresentation.NeedsAttention)
chipRow.Children.Add(CreateAgentMetaChip(
"확인 필요",