{label}
{text}
); } function normalizeDoc(input: unknown): ReportDoc | null { if (!input || typeof input !== "object") return null; const r = input as Record
{yaml}
);
}
return (
Structured report is not available for this disclosure.
); } const meta = doc.metadata ?? {}; const fullTitle = typeof meta === "object" && "title" in meta ? (meta as { title?: string }).title : undefined; const desc = doc.description ?? {}; const anchors = (meta.anchors ?? []).filter((a) => a && (a.file_path || a.function)); const dataflow = (doc.code?.dataflow ?? doc.code?.data_flow ?? []).filter(Boolean); const refList = Array.isArray(doc.references) ? doc.references.filter((r) => typeof r === "string" && (r as string).trim()) : []; return ({st.location}
)} {st.description && ({st.description}
)}
{str(doc.code?.fix_patch) || str(doc.code?.patch)}