Show users what Warp Grep is doing as it searches. Pass streamSteps: true to get an async generator that yields each turn’s tool calls before execution.
import { MorphClient } from '@morphllm/morphsdk';const morph = new MorphClient({ apiKey: process.env.MORPH_API_KEY });const stream = morph.warpGrep.execute({ query: 'Find authentication middleware', repoRoot: '.', streamSteps: true});for await (const step of stream) { console.log(`Turn ${step.turn}:`, step.toolCalls);}// Note: The final WarpGrepResult is returned when the generator completes