d0a3827637
Pass tools into chat.toStreamTextOptions({ tools }) in the chat agent guide so
HITL approval detection and auto-injected skill tools survive, instead of
passing them straight to streamText where the merged set is dropped. Give the
recursive translate-and-refine task an explicit return type so the copied
snippet doesn't hit TypeScript's circular-inference error.