(commit: StreamCommit, body: RunEntryBody)
| 147 | } |
| 148 | |
| 149 | export function entryCanStream(commit: StreamCommit, body: RunEntryBody): boolean { |
| 150 | if (commit.phase !== "progress") { |
| 151 | return false |
| 152 | } |
| 153 | |
| 154 | if (body.type === "none") { |
| 155 | return false |
| 156 | } |
| 157 | |
| 158 | if (commit.kind === "tool") { |
| 159 | return commit.toolState !== "completed" |
| 160 | } |
| 161 | |
| 162 | return commit.kind === "assistant" || commit.kind === "reasoning" |
| 163 | } |
| 164 | |
| 165 | export function entryBody(commit: StreamCommit): RunEntryBody { |
| 166 | if (commit.summary) { |
no outgoing calls
no test coverage detected