(commit: StreamCommit)
| 1288 | } |
| 1289 | |
| 1290 | export function toolStructuredFinal(commit: StreamCommit): boolean { |
| 1291 | const state = commit.toolState ?? commit.part?.state.status |
| 1292 | return ( |
| 1293 | commit.kind === "tool" && |
| 1294 | commit.phase === "final" && |
| 1295 | state === "completed" && |
| 1296 | Boolean(toolView(commit.tool ?? commit.part?.tool).snap) |
| 1297 | ) |
| 1298 | } |
| 1299 | |
| 1300 | export function toolInlineInfo(part: ToolPart): ToolInline { |
| 1301 | const ctx = frame(part) |
no test coverage detected