mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 18:01:22 +00:00
Complete overhaul of export-html.ts to replicate the TUI renderer's visual design: **Exact TUI color matching:** - User messages: rgb(52, 53, 65) dark slate background - Tool pending: rgb(40, 40, 50) dark blue-gray - Tool success: rgb(40, 50, 40) dark green - Tool error: rgb(60, 40, 40) dark red - Body background: rgb(24, 24, 30) very dark - Text colors matching chalk: cyan for paths, dimmed gray for output **Tool formatting (matching ToolExecutionComponent):** - bash: Bold `$ command`, dimmed output (max 5 lines) - write: Bold header with cyan path, line count, content preview (max 10 lines) - read: Bold header with cyan path, content preview (max 10 lines) - edit: Bold header with cyan path, unified diff with line numbers - All tools show "... (N more lines)" indicators **Additional improvements:** - Use session filename + .html for default output - Shorten paths with tilde notation (~) - Replace tabs with 3 spaces - Monospace font matching terminal aesthetic - Minimal, clean design with no borders/boxes - Print-friendly styles The HTML export now looks identical to the TUI version. |
||
|---|---|---|
| .. | ||
| agent | ||
| ai | ||
| coding-agent | ||
| pods | ||
| proxy | ||
| tui | ||
| web-ui | ||
| test.txt | ||