Paste a build log, get a three-line summary and the likely cause. The streaming helpers made the UI trivial — tokens render as they arrive and the final structured result replaces the stream.
const result = streamObject({
model,
schema: z.object({ summary: z.string(), cause: z.string(), fix: z.string() }),
prompt: `Explain this build log:\n${log}`,
});Feedback welcome, especially on prompts for very long logs.