(options: RunOptions, isMachineOutput: boolean)
| 950 | } |
| 951 | |
| 952 | function createRunExecutionState(options: RunOptions, isMachineOutput: boolean): RunExecutionState { |
| 953 | return { |
| 954 | blockResults: [], |
| 955 | blockLabels: new Map<string, string>(), |
| 956 | blocksWithStreamedOutput: new Set<string>(), |
| 957 | agentStreamed: false, |
| 958 | agentTextBuffer: '', |
| 959 | reasoningActive: false, |
| 960 | activeBlockId: null, |
| 961 | showProfile: Boolean(options.profile) && !isMachineOutput, |
| 962 | showTop: Boolean(options.top) && !isMachineOutput, |
| 963 | blockProfiles: [], |
| 964 | memoryBefore: new Map<string, number>(), |
| 965 | } |
| 966 | } |
| 967 | |
| 968 | function suppressMachineOutputDebugNoise(isMachineOutput: boolean): () => void { |
| 969 | const originalConsoleDebug = console.debug |
no outgoing calls
no test coverage detected