MCPcopy
hub / github.com/openai/codex-plugin-cc / renderNativeReviewResult

Function renderNativeReviewResult

plugins/codex/scripts/lib/render.mjs:288–313  ·  view source on GitHub ↗
(result, meta)

Source from the content-addressed store, hash-verified

286}
287
288export function renderNativeReviewResult(result, meta) {
289 const stdout = result.stdout.trim();
290 const stderr = result.stderr.trim();
291 const lines = [
292 `# Codex ${meta.reviewLabel}`,
293 "",
294 `Target: ${meta.targetLabel}`,
295 ""
296 ];
297
298 if (stdout) {
299 lines.push(stdout);
300 } else if (result.status === 0) {
301 lines.push("Codex review completed without any stdout output.");
302 } else {
303 lines.push("Codex review failed.");
304 }
305
306 if (stderr) {
307 lines.push("", "stderr:", "", "```text", stderr, "```");
308 }
309
310 appendReasoningSection(lines, meta.reasoningSummary);
311
312 return `${lines.join("\n").trimEnd()}\n`;
313}
314
315export function renderTaskResult(parsedResult, meta) {
316 const rawOutput = typeof parsedResult?.rawOutput === "string" ? parsedResult.rawOutput : "";

Callers 1

executeReviewRunFunction · 0.90

Calls 1

appendReasoningSectionFunction · 0.85

Tested by

no test coverage detected