workspace: add rich console rendering

This commit is contained in:
2026-07-11 07:46:03 +09:00
parent 5d07e9b9d5
commit db5c1d64d1
11 changed files with 891 additions and 15 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
---
title: 'Add rich markdown tool rendering to workspace console'
state: 'inprogress'
state: 'done'
created_at: '2026-07-10T22:31:21Z'
updated_at: '2026-07-10T22:31:41Z'
updated_at: '2026-07-10T22:45:55Z'
assignee: null
queued_by: 'yoi ticket'
queued_at: '2026-07-10T22:31:41Z'
+31
View File
@@ -39,4 +39,35 @@ Ticket を `yoi ticket` が queued にしました。
State changed to `inprogress`.
---
<!-- event: implementation_report author: hare at: 2026-07-10T22:45:55Z -->
## Implementation report
Implemented rich Workspace Console rendering.
- Added safe Markdown-to-HTML rendering for console bodies; raw HTML is escaped.
- Added Shiki highlighting for fenced code blocks.
- Added TUI-inspired Console colors for message kinds, tool types, tool states, and diff rows.
- Added structured Edit diff projection using old_string/new_string and rendered add/remove/context rows.
- Kept Read aggregate behavior: consecutive Read calls are grouped and file content is not shown in the body.
- Added tests for Markdown escaping/Shiki rendering and Edit diff projection.
Validation:
- cd web/workspace && deno task check
- cd web/workspace && deno task test
- git diff --check
- nix build .#yoi --no-link
---
<!-- event: state_changed author: "yoi ticket" at: 2026-07-10T22:45:55Z from: inprogress to: done reason: cli_state field: state -->
## State changed
State changed to `done`.
---