Returns Promise<
{
errors?: { message: string; type: "error"
| "warning" }[];
model?: { data: unknown; kind: string };
rendered: string;
renderedErr?: string;
status: "error" | "ok";
trace?: {
executed?: string;
input: string;
proposed: string;
validated: boolean;
};
},
>
An envelope recording the outcome; rendered text stays empty
because the output went to the file, not the terminal.
Executes a redirected command (
>/>>): captures the command's output and writes it to the target file.