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

Function normalizeReviewResultData

plugins/codex/scripts/lib/render.mjs:62–71  ·  view source on GitHub ↗
(data)

Source from the content-addressed store, hash-verified

60}
61
62function normalizeReviewResultData(data) {
63 return {
64 verdict: data.verdict.trim(),
65 summary: data.summary.trim(),
66 findings: data.findings.map((finding, index) => normalizeReviewFinding(finding, index)),
67 next_steps: data.next_steps
68 .filter((step) => typeof step === "string" && step.trim())
69 .map((step) => step.trim())
70 };
71}
72
73function isStructuredReviewStoredResult(storedJob) {
74 const result = storedJob?.result;

Callers 1

renderReviewResultFunction · 0.85

Calls 1

normalizeReviewFindingFunction · 0.85

Tested by

no test coverage detected