(p: ToolProps<typeof BashTool>)
| 622 | } |
| 623 | |
| 624 | function scrollBashStart(p: ToolProps<typeof BashTool>): string { |
| 625 | const cmd = p.input.command ?? "" |
| 626 | const wd = p.input.workdir ?? "" |
| 627 | const formatted = wd && wd !== "." ? toolPath(wd) : "" |
| 628 | const dir = formatted === "." ? "" : formatted |
| 629 | if (cmd && !dir) { |
| 630 | return `$ ${cmd}` |
| 631 | } |
| 632 | |
| 633 | if (!cmd) { |
| 634 | return dir ? `# Running in ${dir}` : "" |
| 635 | } |
| 636 | |
| 637 | return `# Running in ${dir}\n$ ${cmd}` |
| 638 | } |
| 639 | |
| 640 | function scrollBashProgress(p: ToolProps<typeof BashTool>): string { |
| 641 | const out = stripAnsi(p.frame.raw) |
nothing calls this directly
no test coverage detected