// @bun
var r=Object.defineProperty;var s=(t)=>t;function l(t,a){this[t]=s.bind(null,a)}var g=(t,a)=>{for(var i in a)r(t,i,{get:a[i],enumerable:!0,configurable:!0,set:l.bind(a,i)})};var d=(t,a)=>()=>(t&&(a=t(t=0)),a);import{CodeBlock as c,InstallCommand as m}from"@contractspec/lib.design-system";import o from"@contractspec/lib.ui-link";import{ChevronRight as p}from"lucide-react";import{jsx as e,jsxs as n}from"react/jsx-runtime";function v(){return n("div",{className:"space-y-8",children:[n("div",{className:"space-y-4",children:[e("h1",{className:"font-bold text-4xl",children:"@contractspec/lib.content-gen"}),e("p",{className:"text-lg text-muted-foreground",children:"Feed a single ContentBrief and produce cohesive marketing assets without touching a CMS."})]}),n("div",{className:"space-y-4",children:[e("h2",{className:"font-bold text-2xl",children:"Installation"}),e(m,{package:"@contractspec/lib.content-gen"})]}),n("div",{className:"space-y-3",children:[e("h2",{className:"font-bold text-2xl",children:"One brief, many assets"}),e(c,{language:"typescript",code:`import {
  BlogGenerator,
  LandingPageGenerator,
  EmailCampaignGenerator,
  SocialPostGenerator,
} from '@contractspec/lib.content-gen/generators';
import { SeoOptimizer } from '@contractspec/lib.content-gen/seo';

const brief = {
  title: 'AI Ops Copilot',
  summary: 'Automates support + growth.',
  problems: ['Support queues pile up', 'Growth teams lack experiments'],
  solutions: ['AI agents', 'Approval queue', 'Analytics'],
  audience: { role: 'COO', industry: 'Fintech' },
};

const blog = await new BlogGenerator().generate(brief);
const landing = await new LandingPageGenerator().generate(brief);
const email = await new EmailCampaignGenerator().generate({ brief, variant: 'announcement' });
const social = await new SocialPostGenerator().generate(brief);
const seo = new SeoOptimizer().optimize(brief);`})]}),n("div",{className:"space-y-3",children:[e("h2",{className:"font-bold text-2xl",children:"When to use"}),n("ul",{className:"list-inside list-disc space-y-2 text-muted-foreground",children:[e("li",{children:"Ship landing page refreshes whenever specs change."}),e("li",{children:"Automate release emails + nurture sequences per vertical."}),e("li",{children:"Create social snippets that stay on-message with the same brief."}),e("li",{children:"Generate SEO metadata + Schema.org markup alongside content."})]})]}),n("div",{className:"flex items-center gap-4 pt-4",children:[e(o,{href:"/docs/libraries",className:"btn-ghost",children:"Back to Libraries"}),n(o,{href:"/docs/libraries/support-bot",className:"btn-primary",children:["Next: Support Bot ",e(p,{size:16})]})]})]})}export{v as LibrariesContentGenPage};
