(
toolCallId: string,
process: ChildProcess,
onPartialOutput?: (params: {
toolCallId: string;
contextItems: any[];
}) => void,
currentOutput: string = "",
)
| 30 | |
| 31 | // Foreground process functions (new) |
| 32 | export function markProcessAsRunning( |
| 33 | toolCallId: string, |
| 34 | process: ChildProcess, |
| 35 | onPartialOutput?: (params: { |
| 36 | toolCallId: string; |
| 37 | contextItems: any[]; |
| 38 | }) => void, |
| 39 | currentOutput: string = "", |
| 40 | ): void { |
| 41 | processTerminalForegroundStates.set(toolCallId, { |
| 42 | process, |
| 43 | onPartialOutput, |
| 44 | currentOutput, |
| 45 | }); |
| 46 | } |
| 47 | |
| 48 | export function isProcessRunning(toolCallId: string): boolean { |
| 49 | return processTerminalForegroundStates.has(toolCallId); |
no test coverage detected