(
input: {
callID: string
command: string
},
next: Pick<SessionCommit, "text" | "phase" | "toolState">,
)
| 671 | } |
| 672 | |
| 673 | function shellCommit( |
| 674 | input: { |
| 675 | callID: string |
| 676 | command: string |
| 677 | }, |
| 678 | next: Pick<SessionCommit, "text" | "phase" | "toolState">, |
| 679 | ): SessionCommit { |
| 680 | return { |
| 681 | kind: "tool", |
| 682 | source: "tool", |
| 683 | partID: shellPartID(input.callID), |
| 684 | tool: "bash", |
| 685 | shell: input, |
| 686 | ...next, |
| 687 | } |
| 688 | } |
| 689 | |
| 690 | function startShell(callID: string, command: string): SessionCommit { |
| 691 | return shellCommit( |
no test coverage detected