(commit: StreamCommit)
| 135 | } |
| 136 | |
| 137 | export function entryDone(commit: StreamCommit): boolean { |
| 138 | if (commit.kind === "assistant" || commit.kind === "reasoning") { |
| 139 | return commit.phase === "final" |
| 140 | } |
| 141 | |
| 142 | if (commit.kind === "tool") { |
| 143 | return commit.phase === "final" || (commit.phase === "progress" && commit.toolState === "completed") |
| 144 | } |
| 145 | |
| 146 | return true |
| 147 | } |
| 148 | |
| 149 | export function entryCanStream(commit: StreamCommit, body: RunEntryBody): boolean { |
| 150 | if (commit.phase !== "progress") { |
no outgoing calls
no test coverage detected