const FOOTER_MARKER = ""; export function buildShockbotFooter(params?: { model?: string | undefined; }): string { const modelPart = params?.model ? ` ยท \`${params.model}\`` : ""; return `\n\n
\n\n---\n${FOOTER_MARKER}\n*Reviewed by [shockbot](https://git.shockvpn.com/shockbot)${modelPart}*`; } export function stripExistingFooter(body: string): string { const markerIdx = body.lastIndexOf(FOOTER_MARKER); if (markerIdx === -1) return body; // walk back past "\n\n---\n" before the marker const beforeMarker = body.slice(0, markerIdx); const stripped = beforeMarker.replace(/\s*\n+---\n$/, "").trimEnd(); return stripped; }