import type { TypeScriptDiagnostic } from "@/templates/types"
export function createRetryDiagnosticsSection(
diagnostics: TypeScriptDiagnostic[]
): string {
if (diagnostics.length === 0) {
return ""
}
const rendered = diagnostics
.map(
(d) =>
` ${d.message}`
)
.join("\n")
return `### RETRY_DIAGNOSTICS
${rendered}
`
}