Extract the final assistant text from codex stdout. Codex exec prints the assistant message as plain text (no --json here); we return the trimmed stdout as the output. Pure, so it's unit-tested without spawning codex.
exec
--json
Extract the final assistant text from codex stdout. Codex
execprints the assistant message as plain text (no--jsonhere); we return the trimmed stdout as the output. Pure, so it's unit-tested without spawning codex.