(commit: StreamCommit, theme: RunTheme)
| 7 | } |
| 8 | |
| 9 | export function entrySyntax(commit: StreamCommit, theme: RunTheme): SyntaxStyle { |
| 10 | if (commit.kind === "reasoning") { |
| 11 | return syntax(theme.block.subtleSyntax ?? theme.block.syntax) |
| 12 | } |
| 13 | |
| 14 | return syntax(theme.block.syntax) |
| 15 | } |
| 16 | |
| 17 | export function entryFailed(commit: StreamCommit): boolean { |
| 18 | return commit.kind === "tool" && (commit.toolState === "error" || commit.part?.state.status === "error") |
no test coverage detected