(commit: StreamCommit, theme: RunTheme)
| 72 | } |
| 73 | |
| 74 | export function entryColor(commit: StreamCommit, theme: RunTheme): ColorInput { |
| 75 | if (commit.kind === "assistant") { |
| 76 | return theme.entry.assistant.body |
| 77 | } |
| 78 | |
| 79 | if (commit.kind === "reasoning") { |
| 80 | return theme.entry.reasoning.body |
| 81 | } |
| 82 | |
| 83 | if (entryFailed(commit)) { |
| 84 | return theme.entry.error.body |
| 85 | } |
| 86 | |
| 87 | if (commit.kind === "tool") { |
| 88 | return theme.block.text |
| 89 | } |
| 90 | |
| 91 | return entryLook(commit, theme.entry).fg |
| 92 | } |
no test coverage detected