MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / extractIssues

Function extractIssues

src/artifacts/review.ts:78–86  ·  view source on GitHub ↗
(answer: string)

Source from the content-addressed store, hash-verified

76
77/** Pull bulleted/■ issue lines out of the vision answer (everything after the verdict token). */
78export function extractIssues(answer: string): string[] {
79 const lines = (answer || '').split('\n').map(l => l.trim());
80 const out: string[] = [];
81 for (const l of lines) {
82 const m = l.match(/^[-*•]\s+(.*)$/);
83 if (m && m[1] && !/^none\.?$/i.test(m[1].trim())) out.push(m[1].trim());
84 }
85 return out;
86}
87
88/**
89 * Assemble the final report. Runtime/page errors are authoritative: if the page threw, the

Callers 2

buildReviewReportFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected